From 5afa2c05581367808828146c3fb2f86300391ca1 Mon Sep 17 00:00:00 2001 From: Alpha Date: Sun, 30 Apr 2017 01:28:38 +0200 Subject: [PATCH] =?UTF-8?q?!Testwei=C3=9Fe=20index=20=C3=A4nderung=20weil?= =?UTF-8?q?=20keine=20locale=20datenbank=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 648e350..58a902e 100644 --- a/index.php +++ b/index.php @@ -30,19 +30,25 @@ if($conn->connect_error){ Erstelldatum VAC-Ban - + 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 = " ".$number." - ".$row['url']." + ".$row['url']." ".$row['author']." ".$row['addtime'].""; if($row['banned'] == 0){ @@ -87,7 +93,7 @@ echo '
' . '' . '
'; ?> - - + +