Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com
- /////// DATA LOGIN WHM ANDA
- $whm_user = "User Whm Anda"; // Username WHM
- $whm_pass = "Password Anda"; // Password untuk masuk ke whm
- ////// END SETTING
- $whm_host = $_SERVER['HTTP_HOST'];
- function getVar($name, $def = '') {
- if (isset($_REQUEST[$name]))
- return $_REQUEST[$name];
- else
- return $def;
- }
- // Domain name of new hosting account
- // To create subdomain just pass full subdomain name
- if (!isset($user_domain)) {
- $user_domain = getVar('domain');
- }
- // Username of the new hosting account
- if (!isset($user_name)) {
- $user_name = getVar('user');
- }
- // Password for the new hosting account
- if (!isset($user_pass)) {
- $user_pass = getVar('password');
- }
- // New hosting account Package
- if (!isset($user_plan)) {
- $user_plan = getVar('package');
- }
- // Contact email
- if (!isset($user_email)) {
- $user_email = getVar('email');
- }
- // if parameters passed then create account
- if (!empty($user_name)) {
- // create account on the cPanel server
- $script = "http://{$whm_user}:{$whm_pass}@{$whm_host}:2086/scripts/wwwacct";
- $params = "?plan={$user_plan}&domain={$user_domain}&username={$user_name}&password={$user_pass}&contactemail={$user_email}";
- $result = file_get_contents($script.$params);
- // output result
- echo "HASIL: " . $result;
- }
- // otherwise show input form
- else {
- $frm = <<<EOD
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title> Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com </title>
- <meta name="description" content="Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com" />
- <meta name="robots" content="index, follow">
- <meta property="og:title" content="Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com" />
- <meta property="og:type" content="website" />
- <meta property="og:locale" content="en_US" />
- <meta property="og:site_name" content="Amirtutorial.blogspot.com" />
- </head>
- <body>
- <center>
- <h1><font color="red"> cPanel Account Creator </font><font color="blue">(Gunakan Dengan Bijak)</font></h1>
- <h3> anda yang ingin membeli cPanel berbayar+murah, silahkan
- <a href="http://fb.com/akun.unikamir" target="blank">Klik Disini</a></h3>
- <hr>
- <hr>
- <form method="post">
- <table border="0">
- <tr><td>Domain<font color="red">*</font></td><td><input name="domain" size="15"></td></div>
- <tr><td>Username<font color="red">*</font></td><td><input name="user" size="15"></td></tr>
- <tr><td>Password<font color="red">*</font></td><td><input name="password" size="15"></td></tr>
- <tr><td></td><td><input type="hidden" name="package" value="pack anda" size="10"></td></tr>
- <tr><td>Email<font color="red">*</font></td><td><input name="email" size="15"></td></tr>
- <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Ffacebook.com%2Famirtutorku&width&layout=standard&action=like&show_faces=false&share=false&height=35&appId=1540265889562847" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>
- <tr><td colspan="3"><br /><input type="submit" value="Create cPanel Account!"></td></tr>
- </table>
- </form>
- <br>
- <br><br>
- <hr>
- cP Creator © 2017 <a href="http://m.facebook.com/groups/694214000693301" target="blank">Amir Tutorial kU</a> All rights reserved
- <hr>
- </center>
- </body>
- </html>
- EOD;
- echo $frm;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement