diff --git a/assets/backgroundphp.jpg b/assets/backgroundphp.jpg new file mode 100644 index 0000000..9804dc2 Binary files /dev/null and b/assets/backgroundphp.jpg differ diff --git a/close_session.php b/close_session.php new file mode 100644 index 0000000..587b7cc --- /dev/null +++ b/close_session.php @@ -0,0 +1,13 @@ + + diff --git a/index.php b/index.php new file mode 100644 index 0000000..1beb2bf --- /dev/null +++ b/index.php @@ -0,0 +1,32 @@ + + + + + + + + Document + + + + +
+
+
+
+
+
+ +
+
+ + \ No newline at end of file diff --git a/panel.php b/panel.php new file mode 100644 index 0000000..ad7f625 --- /dev/null +++ b/panel.php @@ -0,0 +1,24 @@ + + + + + + + + + + Document + + + +
+

You are logged in

+ SIGN OUT +
+ + \ 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..9d5426d --- /dev/null +++ b/server_variables.php @@ -0,0 +1,5 @@ +"; +print_r($_SERVER); +echo "<\pre>"; +?> \ No newline at end of file diff --git a/sessions_variables.php b/sessions_variables.php new file mode 100644 index 0000000..cac7bdf --- /dev/null +++ b/sessions_variables.php @@ -0,0 +1,10 @@ +"; +print_r($_SESSION); +echo ""; +?> diff --git a/style.css b/style.css new file mode 100644 index 0000000..7fab59d --- /dev/null +++ b/style.css @@ -0,0 +1,76 @@ +body{ + background: url("assets/backgroundphp.jpg") +} + +.registration{ + width: 20%; + margin: 200px auto; + padding: 20px; + border-radius: 10px; + border: 2px solid black; + background: rgba(235, 222, 236, 0.374); + font-family: fantasy; + +.form input{ + width: 95%; + margin:0 auto; + border-radius: 5px; + border: 1px solid grey; + margin-bottom: 15px; + height: 2rem; + margin-top: 5px; +} + +.form button{ + margin: 0 auto; + display: block; + background: rgb(6, 40, 152); + color: white; + padding: 10px 30px; + border-radius: 5px; + border: 1px solid rgb(6, 40, 152); + margin-top: 10px; + font-weight: bold; + cursor: pointer; +} + +.form label{ + +font-size: 20px; + +} + +.login{ + width: 20%; + margin: 200px auto; + padding: 20px; + border-radius: 10px; + border: 2px solid black; + background: rgba(235, 222, 236, 0.374); +} + +.login h1{ + text-align: center; + +} + +.sign-out{ + margin: 0 auto; + display: block; + background: rgb(6, 40, 152); + color: white; + padding: 10px 30px; + border-radius: 5px; + border: 1px solid rgb(6, 40, 152); + margin-top: 10px; + font-weight: bold; + width: 30%; + text-align: center; + cursor: pointer; + +} + + +a:link, a:visited, a:active { + text-decoration:none; +} \ No newline at end of file diff --git a/validate.php b/validate.php new file mode 100644 index 0000000..349b7d1 --- /dev/null +++ b/validate.php @@ -0,0 +1,18 @@ +'; +print_r($_REQUEST); +echo ''; + +if($username===$_REQUEST['user'] && $password===$_REQUEST['password']){ + $_SESSION['user'] = $username; + header('Location: panel.php'); +}else { + header('Location: index.php'); + echo 'You are not logged'; +} + +?> \ No newline at end of file