Guest User

Untitled

a guest
Sep 27th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. //Use your Reseller Panel domain name below
  3. $domain = "";
  4. //User your Reseller username below
  5. $username = "";
  6. //Use your Reseller password below
  7. $password = "";
  8.  
  9. $ch = curl_init($domain);
  10. curl_setopt($ch, CURLOPT_HEADER, 0);
  11. curl_setopt($ch, CURLOPT_POST, 1);
  12. $tarr = array("use_api" => "1", "page" => "Login", "action" => "index",
  13. "username" => $username, "password" => $password);
  14. curl_setopt($ch, CURLOPT_POSTFIELDS, $tarr);
  15. curl_setopt($ch, CURLOPT_COOKIESESSION, 1);
  16. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17. $output = curl_exec($ch);
  18. curl_close($ch);
  19. echo $output . "\n";
  20. ?>
Add Comment
Please, Sign In to add comment