Steam Key replaced und Time hinzugefügt
This commit is contained in:
parent
c29c72cce6
commit
ff0e5f0d99
1 changed files with 9 additions and 3 deletions
|
@ -2,15 +2,16 @@
|
|||
<?php
|
||||
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=";
|
||||
|
||||
$getplayerbans = "http://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=E8D51260E5DF95AE8A6DA139D6C80288&steamids=";
|
||||
$getplayersummarie ="http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=E8D51260E5DF95AE8A6DA139D6C80288&steamids=";
|
||||
$getplayergameinfocsgo ="http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=E8D51260E5DF95AE8A6DA139D6C80288&steamid=";
|
||||
|
||||
$id = explode( "/", $_GET["url_input"]);
|
||||
|
||||
|
||||
$comburl_summarie = $getplayersummarie . end($id);
|
||||
$comburl_bans = $getplayerbans . end($id);
|
||||
$comburl_csinfo = $getplayergameinfocsgo . end($id);
|
||||
|
||||
$summarie = file_get_contents($comburl_summarie);
|
||||
$temp_summarie = json_decode($summarie, true);
|
||||
|
@ -18,11 +19,15 @@
|
|||
$vaced = file_get_contents($comburl_bans);
|
||||
$temp_bans = json_decode($vaced, true);
|
||||
|
||||
$playercsinfo = file_get_contents($comburl_csinfo);
|
||||
$temp_playercsinfo = json_decode($playercsinfo, true);
|
||||
|
||||
|
||||
$gameban_output = $temp_bans["players"][0]["NumberOfGameBans"];
|
||||
$vacban_output = $temp_bans["players"][0]["NumberOfVACBans"];
|
||||
|
||||
$totalcstime = $temp_playercsinfo["playerstats"]["stats"][2]["value"];
|
||||
|
||||
$personname = $temp_summarie["response"]["players"][0]["personaname"];
|
||||
/* avatr, avatarmedium, avatarfull */
|
||||
$avatarurl = $temp_summarie["response"]["players"][0]["avatarmedium"];
|
||||
|
@ -31,6 +36,7 @@
|
|||
echo $personname . "hat "."Game-Bans: " .$gameban_output .":". "Vac-Bans: ". $vacban_output;
|
||||
|
||||
echo "<img src=$avatarurl>";
|
||||
echo $totalcstime;
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue