From c29c72cce6123ae667480b024df44d531b7f6307 Mon Sep 17 00:00:00 2001 From: Alpha Date: Sat, 29 Apr 2017 23:30:35 +0200 Subject: [PATCH] =?UTF-8?q?Zerlegung=20der=20Url,=20Game-Bans=20Vac-Bans,?= =?UTF-8?q?=20Avatar=20in=20allen=20gr=C3=B6=C3=9Fen,=20Username=20(mehr?= =?UTF-8?q?=20folgt)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- curl_testfile.php | 58 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/curl_testfile.php b/curl_testfile.php index 4e1f87f..e102ba4 100644 --- a/curl_testfile.php +++ b/curl_testfile.php @@ -1,16 +1,46 @@ -

Test!

- - - \ No newline at end of file + if (!empty($_GET['act'])) { + + $getplayerbans = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=F8BD4313F99AB0E4EFF0CD95FC989734&steamids="; + $getplayersummarie ="http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=F8BD4313F99AB0E4EFF0CD95FC989734&steamids="; + + + $id = explode( "/", $_GET["url_input"]); + + + $comburl_summarie = $getplayersummarie . end($id); + $comburl_bans = $getplayerbans . end($id); + + $summarie = file_get_contents($comburl_summarie); + $temp_summarie = json_decode($summarie, true); + + $vaced = file_get_contents($comburl_bans); + $temp_bans = json_decode($vaced, true); + + + + $gameban_output = $temp_bans["players"][0]["NumberOfGameBans"]; + $vacban_output = $temp_bans["players"][0]["NumberOfVACBans"]; + + $personname = $temp_summarie["response"]["players"][0]["personaname"]; + /* avatr, avatarmedium, avatarfull */ + $avatarurl = $temp_summarie["response"]["players"][0]["avatarmedium"]; + + + echo $personname . "hat "."Game-Bans: " .$gameban_output .":". "Vac-Bans: ". $vacban_output; + + echo ""; + + } +?> + + +
+ +
+ +
+ +