commit a7a1d8ad8d1ba3be76d4421e182bd39f391e01f5 Author: Marc Date: Wed Mar 29 21:00:22 2017 +0200 Initial Commit diff --git a/bg.jpg b/bg.jpg new file mode 100644 index 0000000..c1f06e6 Binary files /dev/null and b/bg.jpg differ diff --git a/haken.png b/haken.png new file mode 100644 index 0000000..6d24b8d Binary files /dev/null and b/haken.png differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..e3ebe35 --- /dev/null +++ b/index.php @@ -0,0 +1,76 @@ + + Cheaterliste + " rel="stylesheet" type="text/css"> + +connect_error){ + die("Verbindung fehlgeschlagen: " . $conn->connect_error); +} +?> + + + + + + + + + + + +query($sql); +$number = 1; + + +while($row = $result->fetch_assoc()){ + if($row['deleted']) + continue; + if($number % 2 == 0){ + $output = " + + + + "; + if($row['banned'] == 0){ + $output .= ""; + }else{ + $output .= ""; + } + }else{ + $output = " + + + + "; + if($row['banned'] == 0){ + $output .= ""; + }else{ + $output .= ""; + } + } +echo $output; +$number++; +} +?> +
EintragSteam-ProfilErstellerErstelldatumVAC-Ban
".$number."".$row['url']."".$row['author']."".$row['addtime']." +
+
".$number."".$row['url']."".$row['author']."".$row['addtime']." +
+

+ +
+Text:
+URL:
+ + + + +
diff --git a/insert.php b/insert.php new file mode 100644 index 0000000..2fcf063 --- /dev/null +++ b/insert.php @@ -0,0 +1,25 @@ +connect_error){ + die("Verbindung fehlgeschlagen: " . $conn->connect_error); +} + +var_dump($_POST['url']); +var_dump($_POST['author']); +if($_POST['url'] == '' && $_POST['author'] == ''){ + header('Location: /'); + return; +} + + +$url = $_POST['url']; +$author = $_POST['author']; + + $sql = "INSERT INTO cheaterliste (url, author) VALUES('".$url."', '".$author."')"; + $conn->query($sql); +?> diff --git a/kreuz.png b/kreuz.png new file mode 100644 index 0000000..15edd96 Binary files /dev/null and b/kreuz.png differ diff --git a/style.css b/style.css new file mode 100644 index 0000000..8314bc8 --- /dev/null +++ b/style.css @@ -0,0 +1,56 @@ +body { + background-size: cover; + background-image: url(bg.jpg); +} + +table, td, th { + text-align: center; +} +td, th { + padding: 1px 15px; + font-family: 'Lato', Arial, sans-serif; +} +table { + border-collapse: collapse; + width: 100% +} +tr:last-child { + border-bottom: 2px solid rgba(255,255,255, 1) !important; +} +th { + color: #DDDDDD; + background: rgba(18,18,18, 0.3) !important; + border-bottom: 2px solid #DDDDDD; + border: 2px solid #DDDDDD; +} +td { + padding: 10px; + border: 2px solid #DDDDDD; + border-bottom: 2px solid rgba(255,255,255, 0.1); + color: #DDDDDD; +} +tr { + background: rgba(18,18,18, 0.6) !important; +} +.profil { + text-align: left !important; +} + +a:link{ + color: white; +} +a:visited{ + color: white; +} + +table.center { + margin-left: auto; + margin-right: auto; + margin-top: 200px; +} + +form { + margin-left: 50%; + margin-right: 50%; + margin-top: 250px; +}