Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $imgdir="imgs/";
- $key="3FCF42E25668B619D69A6D8F7D6BDE7C";
- $id="76561198028624830";
- $map="unknown";
- $avatar=$imgdir."unknown.png";
- $nick="unknown";
- $steamid="unknown";
- if (isset($_GET["id"])) {
- $id=$_GET["id"];
- $url="http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $key . "&steamids=" . $id;
- $response = file_get_contents($url);
- $tbl = json_decode($json, true);
- $plytbl = $tbl["response"]["players"][0];
- $avatar = $plytbl["avatarfull"];
- $nick = $plytbl["personaname"];
- $authserver = bcsub( $id, '76561197960265728' ) & 1;
- $authid = ( bcsub( $id, '76561197960265728' ) - $authserver ) / 2;
- $steamid = "STEAM_0:".$authserver.":".$authid;
- };
- if (isset($_GET["map"])) {
- $map=$_GET["map"];
- };
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement