Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="stylesheet" type="text/css" href="http://screenshootsite.xtgem.com/green.css" media="all,handheld"/><div class="body">
- <title>Cpanel Account Creator By xdzhax</title>
- <html>
- <style>
- </style>
- </body></html>
- <head>
- <div class="title">Cpanel Account Creator By xdzhax</div>
- <div class="str">
- <?php
- set_time_limit(0);
- $whm_interface_path = '/usr/local/cpanel/Cpanel/Accounting.php.inc';
- function getVar($name, $def = '') {
- if (isset($_REQUEST[$name]))
- return $_REQUEST[$name];
- else
- return $def;
- }
- ?>
- <?php
- $host = "host or ip whm";
- $user = "user whm";
- $accesshash = 'insert you accesshash here';
- require_once $whm_interface_path;
- $accts = listpkgs($host,$user,$accesshash,1);
- ?>
- <a href="?xdzhax">>>List of domain</a>
- <?php
- if(isset($_GET['xdzhax'])) {
- ?>
- <?php
- $tes = listaccts($host,$user,$accesshash,1);
- foreach ($tes as $kpy => $lue){
- echo "<br/>Domain: $lue[0]";
- }
- ?>
- <?php } ?>
- <?php
- $tes = listaccts($host,$user,$accesshash,1);
- foreach ($tes as $kpy => $lue){
- }
- $giniandoank = str_replace("http://cpanel.net/","<font color=green>Aktif</font>",$kpy);
- $ko = str_replace("Unauthorized copying is prohibited -->","",$giniandoank);
- $root = str_replace("Access denied","<font color=red>Failed</font>",$ko);
- echo "<br/>STATUS WHM: $root";
- ?>
- </div>
- <form method="post">
- <table border="0">
- <tr><td>Domain:</td><td><input name="domain" value=""></td></tr>
- <tr><td>Username:</td><td><input name="username" value=""></td></tr>
- <tr><td>Package:</td><td><select name="package">
- <?php
- foreach ($accts as $key => $value){
- echo '<option> '.$key.' </option>';
- }
- ?>
- </select>
- </td></tr>
- </table>
- <br/>
- <input type="submit" value="Create Account"></form></html>
- <?php
- set_time_limit(0);
- if (!isset($user_domain)) {
- $user_domain = getVar('domain');
- }
- // Username of the new hosting account
- if (!isset($user_name)) {
- $user_name = getVar('username');
- }
- // Password for the new hosting account
- if (!isset($user_pass)) {
- $user_pass = getVar('password');
- }
- // Package for the new hosting account
- if (!isset($user_plan)) {
- $user_plan = getVar('package');
- }
- if (!file_exists($whm_interface_path)) {
- die($whm_interface_path . " does not exist. Please update program with correct path to your WHM interface file.");
- }
- // if parameters passed then create account
- if (!empty($user_name)) {
- // load cPanel WHM interface functions
- require_once $whm_interface_path;
- // create account on the cPanel server
- $my = createacct ($host,$user,$accesshash,1,$user_domain,$user_name,$user_pass,$user_plan);
- $oke = explode('|', $my);
- $gembok = implode('<br/>|', $oke);
- // output result
- echo "$gembok";
- }
- ?>
- <center>
- <BR/>
- <BR/>
- Powered by <a href="http://asiansexdiary.com/">xdzhax</a>
- <BR/>Copyright© 2016 cPanel, Inc.
- </center>
Advertisement
Add Comment
Please, Sign In to add comment