Advertisement
akunfbamir

Cpanel Creator

Jan 6th, 2017
597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. <?php
  2. // Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com
  3. /////// DATA LOGIN WHM ANDA
  4. $whm_user = "User Whm Anda"; // Username WHM
  5. $whm_pass = "Password Anda"; // Password untuk masuk ke whm
  6. ////// END SETTING
  7.  
  8. $whm_host = $_SERVER['HTTP_HOST'];
  9.  
  10. function getVar($name, $def = '') {
  11. if (isset($_REQUEST[$name]))
  12. return $_REQUEST[$name];
  13. else
  14. return $def;
  15. }
  16.  
  17. // Domain name of new hosting account
  18. // To create subdomain just pass full subdomain name
  19. if (!isset($user_domain)) {
  20. $user_domain = getVar('domain');
  21. }
  22.  
  23. // Username of the new hosting account
  24. if (!isset($user_name)) {
  25. $user_name = getVar('user');
  26. }
  27.  
  28. // Password for the new hosting account
  29. if (!isset($user_pass)) {
  30. $user_pass = getVar('password');
  31. }
  32.  
  33. // New hosting account Package
  34. if (!isset($user_plan)) {
  35. $user_plan = getVar('package');
  36. }
  37.  
  38. // Contact email
  39. if (!isset($user_email)) {
  40. $user_email = getVar('email');
  41. }
  42.  
  43. // if parameters passed then create account
  44. if (!empty($user_name)) {
  45.  
  46. // create account on the cPanel server
  47. $script = "http://{$whm_user}:{$whm_pass}@{$whm_host}:2086/scripts/wwwacct";
  48. $params = "?plan={$user_plan}&domain={$user_domain}&username={$user_name}&password={$user_pass}&contactemail={$user_email}";
  49. $result = file_get_contents($script.$params);
  50.  
  51. // output result
  52. echo "HASIL: " . $result;
  53. }
  54. // otherwise show input form
  55. else {
  56. $frm = <<<EOD
  57. <!DOCTYPE html>
  58. <html lang="en">
  59. <head>
  60. <meta charset="utf-8">
  61. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  62. <meta name="viewport" content="width=device-width, initial-scale=1">
  63. <title> Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com </title>
  64. <meta name="description" content="Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com" />
  65. <meta name="robots" content="index, follow">
  66. <meta property="og:title" content="Terimaksih Telah Mendownload Script Dari Amirtutorial.blogspot.com" />
  67. <meta property="og:type" content="website" />
  68. <meta property="og:locale" content="en_US" />
  69. <meta property="og:site_name" content="Amirtutorial.blogspot.com" />
  70. </head>
  71. <body>
  72. <center>
  73. <h1><font color="red"> cPanel Account Creator </font><font color="blue">(Gunakan Dengan Bijak)</font></h1>
  74. <h3> anda yang ingin membeli cPanel berbayar+murah, silahkan
  75. <a href="http://fb.com/akun.unikamir" target="blank">Klik Disini</a></h3>
  76. <hr>
  77. <hr>
  78. <form method="post">
  79. <table border="0">
  80. <tr><td>Domain<font color="red">*</font></td><td><input name="domain" size="15"></td></div>
  81. <tr><td>Username<font color="red">*</font></td><td><input name="user" size="15"></td></tr>
  82. <tr><td>Password<font color="red">*</font></td><td><input name="password" size="15"></td></tr>
  83. <tr><td></td><td><input type="hidden" name="package" value="pack anda" size="10"></td></tr>
  84. <tr><td>Email<font color="red">*</font></td><td><input name="email" size="15"></td></tr>
  85. <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Ffacebook.com%2Famirtutorku&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1540265889562847" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>
  86. <tr><td colspan="3"><br /><input type="submit" value="Create cPanel Account!"></td></tr>
  87. </table>
  88. </form>
  89. <br>
  90. <br><br>
  91. <hr>
  92. cP Creator &copy; 2017 <a href="http://m.facebook.com/groups/694214000693301" target="blank">Amir Tutorial kU</a> All rights reserved
  93. <hr>
  94. </center>
  95. </body>
  96. </html>
  97. EOD;
  98. echo $frm;
  99. }
  100. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement