daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Apr 29th, 2017 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Script by Sebastian Wirajaya
  3.  
  4.  
  5.  if (isset($_POST['add'])) {
  6. require_once "../jangan/config.php";
  7. $nama=$_POST['nama'];
  8. $hwid=$_POST['username'];
  9. $password=$_POST['password'];
  10. $reseller = $fet['nama'];
  11. $date=date('Y-m-d', time()+60*60*7);
  12. // memulai proses add user
  13. function acak($panjang)
  14. {
  15.     $karakter= '1234567890AQWVXCO';
  16.     $string = '';
  17.     for ($i = 0; $i < $panjang; $i++) {
  18.         $pos = rand(0, strlen($karakter)-1);
  19.         $string .= $karakter{$pos};
  20.     }
  21.     return $string;
  22. }
  23.  
  24. $user = $_SESSION['username'];
  25. $query = mysql_query("SELECT * FROM user WHERE username = '$user'");
  26. $hasil = mysql_fetch_array($query);
  27. if(!$hwid) {
  28.   echo "Error : Masih Ada Data Yang Kosong";
  29.  } else {
  30. $code1 = acak(5);
  31. $code2 = acak(5);
  32. $pass = $code1;
  33. $idpb = $code2;
  34. $cektanggal = mysql_query("SELECT * FROM PointBlank WHERE username = '$hwid'");
  35. $cekjumlah = mysql_num_rows($cektanggal);
  36. $cekhasil = mysql_fetch_array($cektanggal);
  37. $tanggalsebelum = $cekhasil['expired'];
  38. if ($_POST["durasi"] == '1') {
  39. $fee='7500';
  40. $durasi = '1 Hari';
  41. $newdate = strtotime ( '+1 day' , strtotime ( $date ) ) ;
  42. $newdate = date ( 'Y-m-d' , $newdate );
  43. $perpan = strtotime ( '+1 day' , strtotime ( $tanggalsebelum ) ) ;
  44. $perpan2 = date ( 'Y-m-d' , $perpan);
  45. } else if ($_POST["durasi"] == '3') {
  46. $fee='20000';
  47. $durasi = '3 Hari';
  48. $newdate = strtotime ( '+3 day' , strtotime ( $date ) ) ;
  49. $newdate = date ( 'Y-m-d' , $newdate );
  50. $perpan = strtotime ( '+3 day' , strtotime ( $tanggalsebelum ) ) ;
  51. $perpan2 = date ( 'Y-m-d' , $perpan);
  52. } else if ($_POST["durasi"]=='7') {
  53. $fee='40000';
  54. $durasi = '7 Hari';
  55. $newdate = strtotime ( '+7 day' , strtotime ( $date ) ) ;
  56. $newdate = date ( 'Y-m-d' , $newdate );
  57. $perpan = strtotime ( '+7 day' , strtotime ( $tanggalsebelum ) ) ;
  58. $perpan2 = date ( 'Y-m-d' , $perpan);
  59. } else if ($_POST["durasi"]=='14') {
  60. $fee='80000';
  61. $durasi = '14 Hari';
  62. $newdate = strtotime ( '+14 day' , strtotime ( $date ) ) ;
  63. $newdate = date ( 'Y-m-d' , $newdate );
  64. $perpan = strtotime ( '+14 day' , strtotime ( $tanggalsebelum ) ) ;
  65. $perpan2 = date ( 'Y-m-d' , $perpan);
  66. } else if ($_POST["durasi"]=='30') {
  67. $fee='120000';
  68. $durasi = '30 Hari';
  69. $newdate = strtotime ( '+30 day' , strtotime ( $date ) ) ;
  70. $newdate = date ( 'Y-m-d' , $newdate );
  71. $perpan = strtotime ( '+30 day' , strtotime ( $tanggalsebelum ) ) ;
  72. $perpan2 = date ( 'Y-m-d' , $perpan);
  73. } else if ($_POST["durasi"]=='60') {
  74. $fee='150000';
  75. $durasi = '60 Hari';
  76. $newdate = strtotime ( '+60 day' , strtotime ( $date ) ) ;
  77. $newdate = date ( 'Y-m-d' , $newdate );
  78. $perpan = strtotime ( '+60 day' , strtotime ( $tanggalsebelum ) ) ;
  79. $perpan2 = date ( 'Y-m-d' , $perpan);
  80. } else if ($_POST["durasi"]=='99') {
  81. $fee='0';
  82. $durasi = 'Permanent';
  83. $newdate = strtotime ( '+99999 day' , strtotime ( $date ) ) ;
  84. $newdate = date ( 'Y-m-d' , $newdate );
  85. $perpan = strtotime ( '+999999 day' , strtotime ( $tanggalsebelum ) ) ;
  86. $perpan2 = date ( 'Y-m-d' , $perpan);
  87. }else{
  88. $fee = 'a';
  89. }
  90.  
  91. if($hasil['saldo'] < $fee) {
  92. echo 'Error : Saldo tidak mencukupi';
  93. }else if($cekjumlah !== 0) {
  94. echo 'Error : HDSN telah terdaftar!';
  95. } else {
  96. $no = rand(1111,9999);
  97. $tanggal = date("Y-m-d H:i:s");
  98. $sisa = $hasil['saldo']-$fee;
  99. $simpan = mysql_query("INSERT INTO PointBlank (`name`, `reseller`, `username`, `password`, `expired`, `status`) VALUES ('$nama', '$user', '$hwid', 'xloves', '$newdate', 'aktif')");
  100. $simpan = mysql_query("INSERT INTO historyall VALUES('','$no','$user','Register Cheat PointBlank $durasi','$fee','Sukses','HDSN : $hwid','$tanggal')");
  101. $simpan = mysql_query("UPDATE user SET saldo = saldo-$fee WHERE username = '$user'");
  102. if($simpan) { ?>
  103. <div class="alert bg-success">
  104. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&#215;</span></button>
  105. <font color="black">
  106. <strong>Success: </strong> Add user!<br />
  107. <b>Register HDSN</b><span class="label label-success pull-right badge">SUCCESS</span> <br />
  108. <b>Uplink</b> : '.$user.' <br />
  109. ========<br />
  110. No.Order : '.$no.' <br />
  111. Pembeli : '.$nama.' <br />
  112. Paket : Register Cheat PointBlank  '.$durasi.'<br />
  113. HDSN : '.$hwid.' <br />
  114. Password : <br />
  115. Expired : '.$newdate.' <br />
  116. Tgl. Transaksi : '.$tanggal.' <br />
  117. =========<br />
  118.  
  119. <div class="alert alert-danger"> <strong>Error: </strong> Please Submit Again </div>
  120. <? } ?>
  121.  
  122.  
  123.  
  124.            
  125. <p>
  126. <label>Nama Pelanggan</label>
  127. <span class="field"><input type="text" name="nama" id="nama" class="form-control" placeholder="Masukkan Nama" /></span>
  128.     </p>
  129. <p>
  130. <label>HDSN</label>
  131. <span class="field"><input type="text" name="username" id="username" class="form-control" placeholder="Masukkan HDSN" /></span>
  132.     </p>
  133.                         <p>
  134.                             <label>Paket</label>
  135.                             <span class="field">
  136.                             <select name="durasi" id="durasi" class="form-control input-sm">
  137. <option value='1'>1 Hari</option>
  138. <option value='3'>3 Hari</option>
  139. <option value='7'>7 Hari</option>
  140. <option value='14'>14 Hari</option>
  141. <option value='30'>30 Hari</option>
  142. <option value='60'>60 Hari</option>
  143. <option value='90'>90 Hari</option>
  144.  </select>
  145.                               </div>
  146.                             </div>
  147.                             <br/>
  148.                             <div class="form-group m-b-0">
  149.                               <div class="col-md-12">
  150.                                 <button type="submit" class="btn btn-info waves-effect waves-light" name="add">Create Account</button>
  151.                               </div>
  152.                             </div>
  153.                           </form>
  154.                                 <!-- end content -->
  155.                             </div>
  156.  
  157.                         </div>
  158.                             </div>
  159.  
  160.                         </div>
  161.                         <!-- col -->
  162.                     </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top