Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $imgdir="imgs/";
  3. $key="3FCF42E25668B619D69A6D8F7D6BDE7C";
  4.  
  5. $id="76561198028624830";
  6. $map="unknown";
  7. $avatar=$imgdir."unknown.png";
  8. $nick="unknown";
  9. $steamid="unknown";
  10. if (isset($_GET["id"])) {
  11. $id=$_GET["id"];
  12. $url="http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $key . "&steamids=" . $id;
  13. $response = file_get_contents($url);
  14. $tbl = json_decode($json, true);
  15. $plytbl = $tbl["response"]["players"][0];
  16. $avatar = $plytbl["avatarfull"];
  17. $nick = $plytbl["personaname"];
  18. $authserver = bcsub( $id, '76561197960265728' ) & 1;
  19. $authid = ( bcsub( $id, '76561197960265728' ) - $authserver ) / 2;
  20. $steamid = "STEAM_0:".$authserver.":".$authid;
  21. };
  22. if (isset($_GET["map"])) {
  23. $map=$_GET["map"];
  24. };
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement