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-04-30 13:43:49 +00:00
|
|
|
<script src="jquery-3.2.1.min.js"></script>
|
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-30 12:00:40 +00:00
|
|
|
<img src="schriftv2.png" class="cliff_logo">
|
2017-04-08 09:20:41 +00:00
|
|
|
</div>
|
2017-04-30 12:00:40 +00:00
|
|
|
<div class="key_login">
|
|
|
|
<img src="key.png" class="key" id="login_run">
|
|
|
|
</div>
|
|
|
|
|
2017-04-08 09:20:41 +00:00
|
|
|
|
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>
|
2017-04-29 23:32:37 +00:00
|
|
|
<th style="padding: 0.4em">Avatar</th>
|
2017-03-29 19:00:22 +00:00
|
|
|
<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 23:28:38 +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;
|
2017-04-29 23:28:38 +00:00
|
|
|
$getplayersummarie ="http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=E8D51260E5DF95AE8A6DA139D6C80288&steamids=";
|
2017-04-30 03:03:27 +00:00
|
|
|
$getplayerbans = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=E8D51260E5DF95AE8A6DA139D6C80288&steamids=";
|
2017-04-30 01:41:12 +00:00
|
|
|
$avatarid = 0;
|
|
|
|
$fullids = "";
|
2017-04-30 02:24:12 +00:00
|
|
|
$counter = 0;
|
|
|
|
$counter2 = 0;
|
2017-04-30 01:41:12 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
while ($row = $result->fetch_assoc()) {
|
|
|
|
if($row['deleted'])
|
|
|
|
continue;
|
|
|
|
|
|
|
|
$id = explode( "/", $row['url']);
|
|
|
|
|
|
|
|
$fullids = $fullids . end($id) . ",";
|
2017-04-30 02:24:12 +00:00
|
|
|
$counter++;
|
2017-04-30 01:41:12 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mysqli_data_seek($result, 0);
|
2017-04-30 02:24:12 +00:00
|
|
|
|
2017-04-30 03:03:27 +00:00
|
|
|
$fullcallurl_summarie = $getplayersummarie . $fullids;
|
|
|
|
$fullcallurl_bans = $getplayerbans . $fullids;
|
|
|
|
|
|
|
|
|
|
|
|
$summarie = file_get_contents($fullcallurl_summarie);
|
|
|
|
$temp_summarie = json_decode($summarie, true);
|
|
|
|
|
|
|
|
$bans = file_get_contents($fullcallurl_bans);
|
|
|
|
$temp_bans = json_decode($bans, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-30 02:24:12 +00:00
|
|
|
/*ID PICTURE SORT ALPHA*/
|
2017-04-30 03:03:27 +00:00
|
|
|
/*BAN Sorter*/
|
2017-04-30 02:24:12 +00:00
|
|
|
|
2017-04-30 10:03:51 +00:00
|
|
|
$pattern = explode( ",", $fullids);
|
2017-04-30 02:24:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
while ($counter2 < $counter) {
|
|
|
|
$avaid = $temp_summarie["response"]["players"][$avatarid]["avatarmedium"];
|
|
|
|
$userid = $temp_summarie["response"]["players"][$avatarid]["steamid"];
|
2017-04-30 10:03:51 +00:00
|
|
|
$userid_bans = $temp_bans["players"][$avatarid]["SteamId"];
|
|
|
|
|
|
|
|
$visi = $temp_summarie["response"]["players"][$avatarid]["communityvisibilitystate"];
|
2017-04-30 02:43:30 +00:00
|
|
|
$personname = $temp_summarie["response"]["players"][$avatarid]["personaname"];
|
2017-04-30 10:03:51 +00:00
|
|
|
|
2017-04-30 02:24:12 +00:00
|
|
|
|
|
|
|
$sort["$userid"] = $avaid;
|
2017-04-30 02:43:30 +00:00
|
|
|
$sort_name["$userid"] = $personname;
|
2017-04-30 10:03:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($visi > 1){
|
|
|
|
|
|
|
|
$gameban_output = $temp_bans["players"][$avatarid]["NumberOfGameBans"];
|
|
|
|
$vacban_output = $temp_bans["players"][$avatarid]["NumberOfVACBans"];
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$gameban_output = 0;
|
|
|
|
$vacban_output = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
$sort_bans["$userid_bans"]["gameban"] = $gameban_output;
|
|
|
|
$sort_bans["$userid_bans"]["vacban"] = $vacban_output;
|
|
|
|
|
2017-04-30 03:03:27 +00:00
|
|
|
|
2017-04-30 02:24:12 +00:00
|
|
|
|
|
|
|
$avatarid++;
|
|
|
|
$counter2++;
|
|
|
|
}
|
|
|
|
|
2017-04-30 01:41:12 +00:00
|
|
|
?>
|
|
|
|
<?php
|
2017-03-29 19:00:22 +00:00
|
|
|
|
|
|
|
while($row = $result->fetch_assoc()){
|
|
|
|
if($row['deleted'])
|
|
|
|
continue;
|
2017-04-30 01:41:12 +00:00
|
|
|
|
2017-04-30 02:24:12 +00:00
|
|
|
$id = explode( "/", $row['url']);
|
|
|
|
$ida = end($id);
|
|
|
|
|
|
|
|
$avatarurl = $sort["$ida"];
|
2017-04-30 02:43:30 +00:00
|
|
|
$person = $sort_name["$ida"];
|
2017-04-30 02:24:12 +00:00
|
|
|
|
2017-04-30 03:03:27 +00:00
|
|
|
$gamebancheck = $sort_bans["$ida"]["gameban"];
|
|
|
|
$vacbancheck = $sort_bans["$ida"]["vacban"];
|
|
|
|
|
|
|
|
|
2017-04-29 23:28:38 +00:00
|
|
|
|
2017-04-08 10:03:42 +00:00
|
|
|
$output = "<tr>
|
2017-03-29 19:00:22 +00:00
|
|
|
<td>".$number."</td>
|
2017-04-30 02:43:30 +00:00
|
|
|
<td><a href=".$row['url']."><img src=$avatarurl></a></td>
|
|
|
|
<td class='profil'><a target ='_blank'href='".$row['url']."'>".$person."</td>
|
2017-03-29 19:00:22 +00:00
|
|
|
<td>".$row['author']."</td>
|
|
|
|
<td>".$row['addtime']."</td>";
|
2017-04-30 10:03:51 +00:00
|
|
|
if($gamebancheck || $vacbancheck > 0){
|
2017-03-29 19:00:22 +00:00
|
|
|
$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-04-30 02:24:12 +00:00
|
|
|
|
2017-03-29 19:00:22 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table><br>
|
|
|
|
|
2017-04-06 17:03:45 +00:00
|
|
|
|
2017-04-30 12:00:40 +00:00
|
|
|
<div id="login_modal" class="m_login">
|
|
|
|
<div class="m_login_c">
|
2017-04-30 13:43:49 +00:00
|
|
|
|
|
|
|
|
2017-04-30 12:00:40 +00:00
|
|
|
<span class="close">×</span>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var modal1 = document.getElementById("login_modal");
|
|
|
|
var btn1 = document.getElementById("login_run");
|
|
|
|
var span1 = document.getElementsByClassName("close")[0];
|
|
|
|
btn1.onclick = function() {
|
|
|
|
modal1.style.display = "block";
|
|
|
|
}
|
|
|
|
span1.onclick = function() {
|
|
|
|
modal1.style.display = "none";
|
|
|
|
}
|
|
|
|
window.onclick = function(event) {
|
|
|
|
if (event.target == modal1) {
|
|
|
|
modal1.style.display = "none";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2017-04-30 13:43:49 +00:00
|
|
|
|
|
|
|
|
2017-04-30 12:00:40 +00:00
|
|
|
<?php
|
2017-04-30 13:43:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-30 12:00:40 +00:00
|
|
|
if (!isset ($_SESSION['id'])){
|
2017-04-30 13:43:49 +00:00
|
|
|
echo '<div class="loginform" id ="log">'.
|
2017-04-06 17:03:45 +00:00
|
|
|
|
|
|
|
'<form action="/login.php" method="post">' .
|
|
|
|
'<input type="text" placeholder="Username" name="user">' .
|
|
|
|
'<input type="password" placeholder="Password" name="pw">' .
|
2017-04-30 13:43:49 +00:00
|
|
|
'<input type="submit" value="Login" id="login_run">' .
|
2017-04-06 17:03:45 +00:00
|
|
|
'</form>' .
|
|
|
|
|
2017-04-30 12:00:40 +00:00
|
|
|
|
|
|
|
'</div>';
|
|
|
|
if (isset ($_SESSION['status'])){
|
|
|
|
echo $_SESSION['status'];
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
?>
|
2017-04-30 13:43:49 +00:00
|
|
|
}
|
|
|
|
<?php
|
|
|
|
echo '<div class="loginform">' .
|
|
|
|
'<form action="/logout.php" method="post">' .
|
|
|
|
'<input type="submit" value="Logout">' .
|
|
|
|
'</form>' .
|
|
|
|
'</div>';
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-04-30 12:00:40 +00:00
|
|
|
<?php
|
|
|
|
|
2017-04-30 13:43:49 +00:00
|
|
|
echo '<div class="loginform_login">' .
|
2017-04-30 12:00:40 +00:00
|
|
|
'<form action="/insert.php" method="post">' .
|
|
|
|
'<input type="url" pattern="https?://.+" required placeholder="Link" name="url"><br>' .
|
2017-04-30 13:43:49 +00:00
|
|
|
'<input type="submit" value="Hinzufügen">' .
|
2017-04-30 12:00:40 +00:00
|
|
|
'</form>' .
|
|
|
|
'</div>';
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2017-04-08 09:20:41 +00:00
|
|
|
</body>
|