diff --git a/generic-button-1357003_960_720.png b/generic-button-1357003_960_720.png
new file mode 100644
index 0000000..02a6397
Binary files /dev/null and b/generic-button-1357003_960_720.png differ
diff --git a/index.php b/index.php
index 9ef6d58..271070e 100644
--- a/index.php
+++ b/index.php
@@ -1,15 +1,30 @@
- MARC KANN NICHTS! Cheaterliste
+ Cheaterliste
" rel="stylesheet" type="text/css">
+
' . $_SESSION['Test'] . '' ;
+if (!isset($_SESSION['id'])){
+ echo 'Nicht eingeloggt!
';
+ echo '';
+ return;
+}
+
$cockDatabase = "dulow";
$host = "localhost";
$user = "root";
$password = "";
$conn = new mysqli($host,$user,$password,$cockDatabase);
-if ($conn->connect_error){
+if($conn->connect_error){
die("Verbindung fehlgeschlagen: " . $conn->connect_error);
}
?>
@@ -17,7 +32,6 @@ if ($conn->connect_error){
Eintrag |
-
Steam-Profil |
Ersteller |
Erstelldatum |
@@ -70,7 +84,9 @@ $number++;
Text:
URL:
-
-
-
+
+
diff --git a/login.php b/login.php
new file mode 100644
index 0000000..a36763a
--- /dev/null
+++ b/login.php
@@ -0,0 +1,20 @@
+connect_error){
+ die("Verbindung fehlgeschlagen: " . $conn->connect_error);
+ }
+ $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'];
+ }
+ header('Location: /');
+?>
diff --git a/style.css b/style.css
index 8314bc8..2d5d6b8 100644
--- a/style.css
+++ b/style.css
@@ -1,6 +1,7 @@
body {
background-size: cover;
background-image: url(bg.jpg);
+ font-family: 'Lato', sans-serif;
}
table, td, th {
@@ -8,7 +9,7 @@ table, td, th {
}
td, th {
padding: 1px 15px;
- font-family: 'Lato', Arial, sans-serif;
+ font-family: 'Lato', sans-serif;
}
table {
border-collapse: collapse;
@@ -48,7 +49,6 @@ table.center {
margin-right: auto;
margin-top: 200px;
}
-
form {
margin-left: 50%;
margin-right: 50%;
diff --git a/test.php b/test.php
new file mode 100644
index 0000000..9b08c1c
--- /dev/null
+++ b/test.php
@@ -0,0 +1,7 @@
+