From d0e5bcb9c8b9a7d3167f845991f48525fdd6f0cf Mon Sep 17 00:00:00 2001 From: Alpha Date: Sun, 30 Apr 2017 02:43:26 +0200 Subject: [PATCH] Revert "Neuer Versuch brauch dringend ne offline datenbank" This reverts commit a12055cc76cec86a22fde3551506c14ccfbcd0f0. --- index.php | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/index.php b/index.php index 85ea897..6be6d88 100644 --- a/index.php +++ b/index.php @@ -37,26 +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) . ","; -} - -$fullcallurl = $getplayersummarie . $fullids; -$summarie = file_get_contents($fullcallurl); -$temp_summarie = json_decode($summarie, 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 = " ".$number." @@ -73,7 +62,6 @@ while($row = $result->fetch_assoc()){ } echo $output; $number++; - $avatarid++; } ?>