Advertisement
Guest User

FEAR Rank Search Source Code

a guest
Dec 8th, 2014
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <title> FEAR - Rank Search </title>
  2. <!-- Coded by S3rpent/Bpn925 -->
  3. <?php function getBetween($content,$start,$end){$r = explode($start, $content);if(isset($r[1])){$r = explode($end, $r[1]);return$r[0]; }return'';} ?>
  4. <?php
  5. if(isset($_GET['un'])) {
  6. $un = $_GET['un'];
  7. $uid0 = file_get_contents("http://api.roblox.com/users/get-by-username?username=$un");
  8. $uid = getBetween($uid0,'{"Id":',',"Username":"');
  9. $primary0 = file_get_contents("http://www.roblox.com/Groups/GetPrimaryGroupInfo.ashx?users=$un");
  10. $primary = getBetween($primary0,'"GroupName" : "','", "RoleSetName"');
  11. if($primary=='The First Encounter Assault Recon') { $xPrimary = 'F.E.A.R.'; } else { $xPrimary = 'Not F.E.A.R'; }
  12. if($primary=='') { $primary = 'No primary group'; }
  13. $rank = file_get_contents("http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=$uid&groupid=72321");
  14. if($rank=='Guest') { $rank = 'Not in F.E.A.R.'; }
  15. echo "<p1 style=\"font-size: 120%; color: black; font-family: 'Roboto Condensed', sans-serif;\">";
  16. echo "<b>Username:</b> $un <br>";
  17. echo "<b>Primary Group:</b> $xPrimary - ($primary) <br>";
  18. echo "<b>Rank:</b> $rank <br>";
  19. } else {
  20. echo "<form method=\"GET\">Username: <input type=\"text\" name=\"un\"> <input type=\"submit\" value=\"Search\"></form>";
  21. } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement