diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..7e1ac2a Binary files /dev/null and b/.DS_Store differ diff --git a/assets/img/foto.jpeg b/assets/img/foto.jpeg new file mode 100644 index 0000000..2e3a5f8 Binary files /dev/null and b/assets/img/foto.jpeg differ diff --git a/close_session.php b/close_session.php new file mode 100644 index 0000000..6cce941 --- /dev/null +++ b/close_session.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..f911f7c --- /dev/null +++ b/index.php @@ -0,0 +1,31 @@ + + + + + + + + + + + +

Warning!

+

You have not logged in

+'; +?> + +
+
+ + + + + +
+ + + diff --git a/panel.php b/panel.php new file mode 100644 index 0000000..d6fadeb --- /dev/null +++ b/panel.php @@ -0,0 +1,26 @@ + + + + + + + + + + + + + Panel + + +

You're In!

+ Logout + + \ No newline at end of file diff --git a/phpinfo.php b/phpinfo.php new file mode 100644 index 0000000..6480abf --- /dev/null +++ b/phpinfo.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/server_variables.php b/server_variables.php new file mode 100644 index 0000000..5b20cc9 --- /dev/null +++ b/server_variables.php @@ -0,0 +1,6 @@ +"; +print_r($_SERVER); +echo ""; + +?> \ No newline at end of file diff --git a/session_variables.php b/session_variables.php new file mode 100644 index 0000000..883b9f9 --- /dev/null +++ b/session_variables.php @@ -0,0 +1,23 @@ +'; +print_r($_SESSION); +echo ''; + + +$inipath = php_ini_loaded_file(); + +if ($inipath) { + echo 'Loaded php.ini: ' . $inipath; +} else { + echo 'A php.ini file is not loaded'; +} + + + + +?> diff --git a/style.css b/style.css new file mode 100644 index 0000000..40ed4de --- /dev/null +++ b/style.css @@ -0,0 +1,36 @@ + + +*{ + font-family: 'Caveat', cursive; +} + +body { + background-image: url("assets/img/foto.jpeg"); + background-size: cover; +} + +form { + font-size: 20px; + min-width: 330px; + max-width: 330px; + display: flex; + flex-direction: column; + margin: 150px auto; + align-items: center; + /* gap: 5px; */ + border: 5px solid black; + text-align: center; + background-color: rgba(120, 140, 140, 0.534); + +} +form h3{ + + margin-top: 15px; +} +form input{ + margin: 0; +} +.btn{ + font-size: 20px; + margin-bottom: 20px; +} \ No newline at end of file diff --git a/validate.php b/validate.php new file mode 100644 index 0000000..3445cbe --- /dev/null +++ b/validate.php @@ -0,0 +1,22 @@ +"; +print_r($_REQUEST); +echo ""; + + + +if($username===$_REQUEST["user"] && $password===$_REQUEST["password"]){ + $_SESSION["user"] = $username; + header("Location: panel.php"); +}else { + header("Location: index.php?error=You've to insert a correct username"); + echo "You're not logged"; +} + + +?> +