4
1
Fork 0

!Testweiße index änderung weil keine locale datenbank !

This commit is contained in:
Alpha 2017-04-30 01:28:38 +02:00
parent a9c74d70f1
commit 5afa2c0558

View file

@ -30,19 +30,25 @@ if($conn->connect_error){
<th style="padding: 0.4em" class="Zeit">Erstelldatum</th>
<th style="padding: 0.4em">VAC-Ban</th>
</tr>
<?php
$sql = "SELECT * FROM cheaterlist ORDER BY addtime DESC;";
$result = $conn->query($sql);
$number = 1;
$getplayersummarie ="http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=E8D51260E5DF95AE8A6DA139D6C80288&steamids=";
while($row = $result->fetch_assoc()){
if($row['deleted'])
continue;
$id = explode( "/", $row['url']);
$comburl_summarie = $getplayersummarie . end($id);
$summarie = file_get_contents($comburl_summarie);
$temp_summarie = json_decode($summarie, true);
$avatarurl = $temp_summarie["response"]["players"][0]["avatarmedium"];
$output = "<tr>
<td>".$number."</td>
<td class='profil'><a target ='_blank'href='".$row['url']."'>".$row['url']."</td>
<td class='profil'><img src=$avatarurl><a target ='_blank'href='".$row['url']."'>".$row['url']."</td>
<td>".$row['author']."</td>
<td>".$row['addtime']."</td>";
if($row['banned'] == 0){
@ -87,7 +93,7 @@ echo '<div class="loginform">' .
'</form>' .
'</div>';
?>
</body>