Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. function getRS($roblox, $robloxpw){
  2.  
  3. $login_user = 'username=' . $roblox . '&password=' . $robloxpw;
  4. $get_cookies = curl_init('https://www.roblox.com/newlogin');
  5. curl_setopt($get_cookies, CURLOPT_POST, 1);
  6. curl_setopt($get_cookies, CURLOPT_POSTFIELDS, $login_user);
  7. curl_setopt_array($get_cookies,
  8. array(
  9. CURLOPT_RETURNTRANSFER => true,
  10. CURLOPT_HEADER => true
  11. )
  12. );
  13. $t = curl_exec($get_cookies);
  14. $exp = explode('.ROBLOSECURITY=', $t);
  15. $expl = explode(';', $exp[1]);
  16. return '.ROBLOSECURITY='.$expl[0].';';
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement