Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>cPanel Creator by Haris DP</title>
- <font color="blue">
- <fieldset>
- <legend>~ cPanel Creator V1.1 ~</legend>
- <?php
- $whm_user = "user"; // username whm atau root anda
- $whm_pass = "pass"; // password whm atau root anda
- $whm_host = "ipserver"; // ip server anda
- $script = "https://{$whm_user}:{$whm_pass}@{$whm_host}:2087/xml-api/listpkgs";
- $onc = file_get_contents($script);
- $xml = new DOMDocument();
- $xml->loadXML($onc);
- $list = $xml->getElementsByTagName('name');
- $i=0;
- foreach ($list AS $element)
- {
- foreach ($element->childNodes AS $item)
- {
- $result[$i]['package_name']=$item->nodeValue;
- $i++;
- }
- }
- ?>
- <form method="post">
- <hr>
- <strong>Peringatan!</strong> Don't Sell this script!
- <hr>
- <pre>
- <center>*** Tutor by Haris Dwi Pambudi ***</center>
- <center><table border="0">
- <tr><td>Domain:</td><td><input name="domain" value=""></td></tr>
- <tr><td>Username:</td><td><input name="usercp" value="">
- </td></tr>
- <tr><td>Package:</td><td><select
- name="pkg">
- <option VALUE="Kecil">Kecil / 1 Bulan</option>
- <option VALUE="Sedang">Sedang / 1 Bulan</option>
- <option VALUE="Besar">Besar / 1 Bulan</option></select>
- </td></tr>
- <tr><td>Email:</td><td><input name="mail" value=""></td></tr><tr>
- </table>
- <input class="button" type="submit" name="gg" value="Create Account"></div></center>
- <fieldset>
- <legend>Result !!</legend>
- <?php
- if($_POST['gg']){
- $d = $_POST['domain'];
- $uscp = $_POST['usercp'];
- $pkg = $_POST['pkg'];
- $pas = $_POST["pass"];
- $userid = $hasil['username'];
- $vangke = substr($userid, 3);
- $email = $_POST["mail"];
- // Kalau mau dibuat tools, code dibawah bisa digunakan dan sqlnya buat sendiri
- if ($pkg == Kecil) {
- $tiket = 3000;
- $durasi = '30';
- $newdate = strtotime ( '+30 day' , strtotime ( $date ) ) ;
- $newdate = date ( 'Y-m-d' , $newdate );
- }else if ($pkg == Sedang) {
- $tiket = 6000;
- $durasi = '30';
- $newdate = strtotime ( '+30 day' , strtotime ( $date ) ) ;
- $newdate = date ( 'Y-m-d' , $newdate );
- }else if ($pkg == Besar) {
- $tiket = 10000;
- $durasi = '30';
- $newdate = strtotime ( '+30 day' , strtotime ( $date ) ) ;
- $newdate = date ( 'Y-m-d' , $newdate );
- } else {
- $tiket = a;
- }
- $hapy = "https://{$whm_user}:{$whm_pass}@{$whm_host}:2087/scripts/wwwacct?plan={$pkg}&domain={$d}&username={$uscp}&password={$pas}&contactemail={$email}";
- $seru = file_get_contents($hapy);
- $oke = explode("Dns Zone check is enabled.",$seru);
- $okt = explode("...Done",$oke[1]);
- $okc = explode('|', $okt[0]);
- $ak = implode('<br/>|', $okc);
- }
- echo "$ak";
- if($ak){
- $gat = "https://{$whm_user}:{$whm_pass}@{$whm_host}:2087/scripts/wwwacct?plan={$pkg}&domain={$d}&username={$uscp}&password={$pas}&contactemail={$email}";
- $fail = file_get_contents($gat);
- $fmb = explode('failed', $fail);
- echo "<br/>$fmb[1]";
- }
- ?>
- </fieldset>
- </form>
- </div>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement