Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2. $curl_handle=curl_init();
  3. curl_setopt($curl_handle,CURLOPT_URL,'http://domain.co.uk/folder/api/login.php?server=api.testserver.co.uk&username=' . $row["username"] . '&password=' . $row["password"]);
  4. curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
  5. $result = curl_exec($curl_handle);
  6. curl_close($curl_handle);
  7.  
  8. $tab = explode(' ', $result);
  9. #print_r($tab);
  10.  
  11. $accusername= substr($tab[0], 46);
  12. $accpassword= substr($tab[1], 38);
  13. $useserver= $tab[2];
  14. $code = $tab[3];
  15.  
  16. echo 'Username: '. $accusername;
  17. echo '<br>';
  18. echo 'Password: '. $accpassword;
  19. echo '<br>';
  20. echo 'Used Server: '. $useserver;
  21. echo '<br>';
  22. echo 'Code: '. $code;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement