2017-03-29 19:00:22 +00:00
|
|
|
<head>
|
2017-03-31 22:54:08 +00:00
|
|
|
<title>Cheaterliste</title>
|
2017-04-29 15:49:53 +00:00
|
|
|
<link href="style.css?v=1.0.1" rel="stylesheet" type="text/css">
|
2017-03-31 22:54:08 +00:00
|
|
|
</head>
|
2017-03-29 19:24:53 +00:00
|
|
|
|
2017-04-08 09:20:41 +00:00
|
|
|
<body>
|
|
|
|
<div class="bild">
|
2017-04-08 10:03:42 +00:00
|
|
|
<img src="schriftv2.png">
|
2017-04-08 09:20:41 +00:00
|
|
|
</div>
|
|
|
|
|
2017-03-29 19:00:22 +00:00
|
|
|
<?php
|
2017-03-31 22:54:08 +00:00
|
|
|
session_start();
|
2017-04-06 15:17:16 +00:00
|
|
|
|
2017-04-28 20:51:23 +00:00
|
|
|
$vac = "vac";
|
2017-03-29 19:00:22 +00:00
|
|
|
$host = "localhost";
|
2017-04-28 20:51:23 +00:00
|
|
|
$user = "vac";
|
|
|
|
$password = "hPUf8e4karnz61bS";
|
2017-03-29 19:00:22 +00:00
|
|
|
|
2017-04-28 20:51:23 +00:00
|
|
|
$conn = new mysqli($host,$user,$password,$vac);
|
2017-03-31 22:54:08 +00:00
|
|
|
if($conn->connect_error){
|
2017-03-29 19:00:22 +00:00
|
|
|
die("Verbindung fehlgeschlagen: " . $conn->connect_error);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<table style="width:50%" class="center">
|
|
|
|
<tr>
|
|
|
|
<th style="padding: 0.5em 0.5em">Eintrag</th>
|
|
|
|
<th class="profil">Steam-Profil</th>
|
|
|
|
<th style="padding: 0.4em">Ersteller</th>
|
|
|
|
<th style="padding: 0.4em" class="Zeit">Erstelldatum</th>
|
|
|
|
<th style="padding: 0.4em">VAC-Ban</th>
|
|
|
|
</tr>
|
2017-04-29 16:42:53 +00:00
|
|
|
|
2017-03-29 19:00:22 +00:00
|
|
|
<?php
|
2017-04-29 19:29:48 +00:00
|
|
|
$sql = "SELECT * FROM cheaterlist ORDER BY addtime DESC;";
|
2017-03-29 19:00:22 +00:00
|
|
|
$result = $conn->query($sql);
|
|
|
|
$number = 1;
|
|
|
|
|
|
|
|
|
|
|
|
while($row = $result->fetch_assoc()){
|
|
|
|
if($row['deleted'])
|
|
|
|
continue;
|
2017-04-08 10:03:42 +00:00
|
|
|
$output = "<tr>
|
2017-03-29 19:00:22 +00:00
|
|
|
<td>".$number."</td>
|
|
|
|
<td class='profil'><a target ='_blank'href='".$row['url']."'>".$row['url']."</td>
|
|
|
|
<td>".$row['author']."</td>
|
|
|
|
<td>".$row['addtime']."</td>";
|
|
|
|
if($row['banned'] == 0){
|
|
|
|
$output .= "<td><img src='kreuz.png' height='20' width='20'</td>
|
|
|
|
</tr>";
|
|
|
|
}else{
|
|
|
|
$output .= "<td><img src='haken.png' height='20' width='20'</td>
|
|
|
|
</tr>";
|
|
|
|
}
|
2017-04-08 10:03:42 +00:00
|
|
|
echo $output;
|
|
|
|
$number++;
|
2017-03-29 19:00:22 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table><br>
|
|
|
|
|
2017-04-06 17:03:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if (!isset ($_SESSION['id'])){
|
|
|
|
echo '<div class="loginform">' .
|
|
|
|
'<form action="/login.php" method="post">' .
|
|
|
|
'<input type="text" placeholder="Username" name="user">' .
|
|
|
|
'<input type="password" placeholder="Password" name="pw">' .
|
|
|
|
'<input type="submit" value="Login">' .
|
|
|
|
'</form>' .
|
|
|
|
'</div>';
|
|
|
|
if (isset ($_SESSION['status'])){
|
|
|
|
echo $_SESSION['status'];
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
echo '<div class="loginform">' .
|
|
|
|
'<form action="/insert.php" method="post">' .
|
2017-04-08 09:20:41 +00:00
|
|
|
'<input type="url" pattern="https?://.+" required placeholder="Link" name="url"><br>' .
|
2017-04-29 21:52:51 +00:00
|
|
|
'<input type="submit" value="Add">' .
|
2017-04-06 17:03:45 +00:00
|
|
|
'</form>' .
|
2017-04-08 09:20:41 +00:00
|
|
|
'<form action="/logout.php" method="post">' .
|
|
|
|
'<input type="submit" value="Logout">' .
|
2017-04-06 17:03:45 +00:00
|
|
|
'</form>' .
|
|
|
|
'</div>';
|
|
|
|
?>
|
2017-04-29 16:42:53 +00:00
|
|
|
|
2017-04-29 16:41:05 +00:00
|
|
|
|
2017-04-08 09:20:41 +00:00
|
|
|
|
|
|
|
</body>
|