4
1
Fork 0

Revert "Avatr fatching ausgelagert + avatar in zeile laden aus array counter"

This reverts commit bb4848bf24.
This commit is contained in:
Alpha 2017-04-30 02:11:09 +02:00
parent bb4848bf24
commit 90c2993d76

View file

@ -37,27 +37,15 @@ $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=";
$avatarid = 0;
$fullids
while($row = $result->fetch_assoc()){
if($row['deleted'])
continue;
$id = explode( "/", $row['url']);
$fullids = $fullids . end($id) . ",";
$number++;
}
$fullcallurl = $getplayersummarie . $fullcallurl;
$summarie = file_get_contents($fullcallurl);
$temp_summarie = json_decode($fullcallurl, true);
while($row = $result->fetch_assoc()){
if($row['deleted'])
continue;
$avatarurl = $temp_summarie["response"]["players"][$avatarid]["avatarmedium"];
$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>
@ -74,7 +62,6 @@ while($row = $result->fetch_assoc()){
}
echo $output;
$number++;
$avatarid++;
}
?>
</table><br>