Advertisement
DigitalVeer

Return Place Instances

Jun 13th, 2015
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2.    
  3.     function Send($url,$postData = null)
  4.     {
  5.         global $XsrfToken;
  6.         $ch = curl_init();
  7.         curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  8.         curl_setopt($ch, CURLOPT_URL,$url);
  9.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  10.        
  11.        
  12.         if(isset($postData))
  13.         {
  14.             curl_setopt($ch, CURLOPT_POST, 1);
  15.             curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
  16.         }
  17.  
  18.         $html = curl_exec ($ch);
  19.                
  20.         curl_close($ch);
  21.         return $html;
  22.     }
  23.  
  24.         function GetPlaceInformation($id,$startIndex)
  25.         {          
  26.  
  27.                 $start = $startIndex;
  28.                 $response = Send("http://www.roblox.com/games/getgameinstancesjson?placeId=$id&startindex=$start");
  29.                 return $response;
  30.         }
  31.  
  32.  
  33.      echo GetPlaceInformation($_REQUEST["id"],$_REQUEST["startIndex"]);
  34.        
  35.  
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement