diff --git a/index.php b/index.php
index 271070e..02f4511 100644
--- a/index.php
+++ b/index.php
@@ -5,17 +5,28 @@
Nicht eingeloggt!';
+// echo '
';
+// return;
+// }
+
session_start();
-// $_SESSION['Test'] = 'VerrückterMongoJunge';
-// echo '' . $_SESSION['Test'] . '
' ;
if (!isset($_SESSION['id'])){
echo 'Nicht eingeloggt!
';
- echo '';
- return;
+ echo '' .
+ '' .
+ '
';
+ return;
}
$cockDatabase = "dulow";
@@ -85,8 +96,3 @@ Text:
URL:
-
-
diff --git a/login.php b/login.php
index a36763a..3de739a 100644
--- a/login.php
+++ b/login.php
@@ -12,7 +12,7 @@
$sql = "SELECT id FROM users WHERE user='". $_POST['user'] .
"' AND pw='". $_POST['pw'] ."' ";
$result = $conn->query($sql);
- // echo $result->fetch_array()['id'];
+
if ($result->num_rows == 1) {
$_SESSION['id'] = $result->fetch_array()['id'];
}
diff --git a/style.css b/style.css
index 2d5d6b8..2a7dea7 100644
--- a/style.css
+++ b/style.css
@@ -49,8 +49,25 @@ table.center {
margin-right: auto;
margin-top: 200px;
}
-form {
- margin-left: 50%;
- margin-right: 50%;
- margin-top: 250px;
+
+.form {
+ max-width: 360px;
+ margin: 0 auto;
+ padding: 30px;
+ padding-bottom: 0px;
+ background: rgba(18,18,18, 0.3);
+ border: 2px solid #DDDDDD;
+}
+.form input {
+ width: 100%;
+ margin: 0 0 15px;
+ box-sizing: border-box;
+ font-size: 16px;
+ padding: 10px;
+ border: 2px solid #DDDDDD;
+ color: #000000;
+ background-color: white;
+}
+.form button:hover,.form button:active,.form button:focus {
+ background: #43A047;
}