Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Use your Reseller Panel domain name below
- $domain = "";
- //User your Reseller username below
- $username = "";
- //Use your Reseller password below
- $password = "";
- $ch = curl_init($domain);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_POST, 1);
- $tarr = array("use_api" => "1", "page" => "Login", "action" => "index",
- "username" => $username, "password" => $password);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $tarr);
- curl_setopt($ch, CURLOPT_COOKIESESSION, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $output = curl_exec($ch);
- curl_close($ch);
- echo $output . "\n";
- ?>
Add Comment
Please, Sign In to add comment