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