Advertisement
cinos11

Xat id and registered name converter using arcbots api

Dec 26th, 2012
982
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <?php
  2. /*
  3. | Source: http://pastebin.com/DjLjsqCv
  4. | This is the ARCbot's xat ID and registered name converter
  5. | It does a lot more then use xat's xatspace profiles to find the names/ID's
  6. | We use our self learning database, with more up to date current information of known xat users
  7. */
  8.  
  9. function getReg($id) {return file_get_contents('http://arcbots.com/userinfo.php?id='.$id);}
  10. function getID($reg) {return file_get_contents('http://arcbots.com/userinfo.php?reg='.$reg);}
  11. function lastSeen($user) {return file_get_contents('http://arcbots.com/userinfo.php?lastseen='.$user);}
  12. function getDisplayname($user) {return file_get_contents('http://arcbots.com/userinfo.php?displayname='.$user);}
  13. function getHomepage($user) {return file_get_contents('http://arcbots.com/userinfo.php?homepage='.$user);}
  14. function getAvatar($user) {return file_get_contents('http://arcbots.com/userinfo.php?avatar='.$user);}
  15. /* We also have the userinfo.php?info=user option, but it contains more detailed info such as avatar/homepage/name */
  16.  
  17. echo getReg('367927622'); #This returns Actavus
  18. echo getID('Actavus'); #This returns 367927622
  19. echo lastSeen('Actavus'); #This returns (You can also use 367927622): The last time an ARCbot spotted Actavus online was on: 12/27/2012 1:12:55PM @ chat room xat.com/ARCbot
  20. #^ Results repeated for avatar/homepage/displayname as above ^
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement