Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.69 KB | None | 0 0
  1. <?php
  2.  
  3. $title = 'Test'; //ใส่ชื่อสินค้า
  4. $truewallet_em = 'supersharp3310@gmail.com'; //ใส่เมลวอเลท
  5. $truewallet_pw = '1312542a'; //ใส่พาสวอเลท
  6. $truewallet_phone = '0962371804'; //ใส่เบอวอเลท
  7. $truewallet_text = 'XXX'; //ใส่ข้อความเช็คโอน
  8. $truewallet_amount = '1.00'; //ใส่ราคา
  9. $download_url = 'www.google.com'; //ใส่ลิงค์โหลด
  10. if(isset($_GET['truewallet'])) {
  11.     $tw_pw = $_GET['truewallet'];
  12.    
  13.     if(!is_numeric($tw_pw)||strlen($tw_pw)!='14' || $tw_pw < 1) {
  14.     echo "<script>ierror('Error !!', 'กรุณากรอกเลขอ้างอิงให้ถูกต้อง');</script>";
  15.     exit();
  16. }
  17. // API FOR CONNECT WALLET
  18.     $ijson = file_get_contents('https://api.itorkungz.me/?truewallet&email='.$truewallet_em.'&password='.$truewallet_pw.'&card='.$tw_pw);
  19.     $itopup = json_decode($ijson, true);
  20.     $tw_id = $itopup['id'];
  21.     $tw_ms = $itopup['message'];
  22.     $tw_phone = $itopup['phone'];
  23.     $tw_date = $itopup['date'];
  24.     $tw_amount = $itopup['amount'];
  25.    
  26. if ($itopup['use'] == 1) {
  27.     echo "<script>ierror('Error Already!', 'เลขอ้างอิงถูกใช้ไปแล้ว<br> ".$tw_pw."');</script>";
  28.     exit();
  29. }
  30. if ($itopup['code'] == 0) {
  31.    
  32.     if(isset($_POST['submit'])){
  33.    
  34.  
  35.         require 'PHPMailerAutoload.php';
  36.         require 'credentioal.php';
  37.  
  38.         @$mail = new PHPMailer;
  39.  
  40.         @$mail->SMTPDebug = 4;                               // Enable verbose debug output
  41.  
  42.         @$mail->isSMTP();                                      // Set mailer to use SMTP
  43.         @$mail->Host = 'smtp.gmail.com';  // Specify main and backup SMTP servers
  44.         @$mail->SMTPAuth = true;                               // Enable SMTP authentication
  45.         @$mail->Username = EMAIL;                 // SMTP username
  46.         @$mail->Password = PASS;                           // SMTP password
  47.         @$mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
  48.         @$mail->Port = 587;                                    // TCP port to connect to
  49.  
  50.         @$mail->setFrom(EMAIL, 'Auto-Sell');
  51.         @$mail->addAddress(@$_POST['email'], 'Joe User');     // Add a recipient
  52.         //@$mail->addAddress(EMAIL);               // Name is optional
  53.         //@$mail->addReplyTo('info@example.com', 'Information');
  54.        
  55.  
  56.          // Optional name
  57.         @$mail->isHTML(true);                                  // Set email format to HTML
  58.  
  59.         @$mail->Subject = 'Test';
  60.         @$mail->Body    = 'www.google.com';
  61.  
  62.  
  63.         @$mail->send();
  64.  
  65.  
  66. }
  67.     echo "<script>ierror('Error 404!', 'ไม่พบเลขอ้างอิงที่กรอกมา<br> ".$tw_pw."');</script>";
  68.     exit();
  69. }
  70. if($tw_amount !== $truewallet_amount) {
  71.     echo "<script>ierror('Error !!', 'คุณต้องโอนเงินให้ตรงกับ ระบบกำหนดให้ <br> คุณต้องโอนจำนวน <font color=\"black\">\"$truewallet_amount\"</font> เท่านั้น !!');</script>";
  72.     exit();
  73. }
  74. if($tw_ms !== $truewallet_text) {
  75.     echo "<script>ierror('Error !!', 'ข้อความของคุณไม่ตรงกับ ระบบกำหนด <br> คุณต้องใส่ข้อความว่า <font color=\"black\">\"$truewallet_text\"</font> เท่านั้น !!');</script>";
  76.     exit();
  77. }
  78.     if ($itopup['code'] == 1) {
  79.                 echo "<script>isuccess('Success Buy!', 'ซื้อสินค้าสำเร็จ <br>จำนวน : $tw_amount บาท <br><a href=\"".$download_url."\" class=\"btn btn-success\"><i class=\"fas fa-download\"></i>&nbsp;Download</a> ');</script>";
  80.                 exit();
  81.                     }
  82.         else
  83.         {
  84.             echo "<script>ierror('Error 404!', 'ไม่พบเลขอ้างอิงที่กรอกมา<br> ".$tw_pw."');</script>";
  85.             exit();
  86.         }
  87. }
  88. ?>
  89. <html>
  90.  <head>
  91.   <meta charset="utf-8">
  92.   <title>ชำระสินค้า</title>
  93.   <link rel="icon" href="https://png.pngtree.com/svg/20160225/579cc1738b.png">
  94.   <link rel="stylesheet" href="dist/bootstrap.min.css">
  95.   <link rel="stylesheet" href="dist/styles.css">
  96.   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kanit:300">
  97.   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css">
  98.   <script src="dist/jquery.min.js"></script>
  99.   <script src="dist/bootstrap.min.js"></script>
  100.   <script src="dist/sweetalert.min.js"></script>
  101.   <script src="dist/script.js"></script>
  102.   <style type="text/css">
  103.     body
  104.     {
  105.         background: url(dist/backg.jpg) no-repeat center fixed;
  106.         -webkit-background-size: cover;
  107.         -moz-background-size: cover;
  108.         -o-background-size: cover;
  109.         background-size: cover;
  110.         font-family:"Kanit", sans-serif;
  111.         color: black;
  112.     }
  113.     </style>
  114.  </head>
  115.   <body>
  116.         <div class="container col-4" style="margin-top:20px;">
  117.               <div align="center">
  118.               <div class="border border-light" style="margin-top:40px; margin-bottom: 50px; ">
  119.              <div class="card-header" style="color:white; background: rgba(0,0,0,0.5) !important;"><h5><i class="fas fa-cart-plus"></i>&nbsp;<?php echo $title; ?>(<?php echo $truewallet_amount; ?> บาท)</h5></div>
  120.                <div class="card-body" style="background: rgba(0,0,0,0.3) !important;"> 
  121.                <div id="return"></div>
  122.                
  123.                <p>
  124.                </p>
  125.                
  126.                <form method="post">
  127.                <div class="text-left mt-1 text-light"> Email</div>
  128.                 <div class="input-group">
  129.            
  130.                 <input type="text" name="email" class="form-control" placeholder="กรุณากรอก Email" value="" />
  131.                 </div>
  132.                 </form>
  133.  
  134.                <div class="text-left mt-1 text-light"> เลขอ้างอิง</div>
  135.                 <div class="input-group">
  136.                 <input class="form-control" style="height: 40px;" name="itruewallet" id="itruewallet" type="text" required maxlength="14" placeholder="กรุณากรอกเลขอ้างอิง 14 หลัก">
  137.                 </div>
  138.  
  139.  
  140.                 <div class="text-center" style="color: white; margin-top:20px;">
  141.                      
  142.                         <li> เปิดแอพวอเลท กดเมนู โอนเงิน ใส่เบอร์วอเลท <a class="btn btn-primary" style="color: pink;"><?php echo $truewallet_phone; ?></a></li>
  143.                         <li> ใส่จำนวนเงิน <b><?php echo $truewallet_amount; ?> บาท</b> แล้วกดปุ่มโอนเงิน</li>
  144.                         <li> เสร็จแล้วจะเห็นเลขที่อ้างอิง ให้นำมาใส่</li>
  145.                         </div>
  146.                     <div style="margin-top:10px;" class="alert alert-danger"><i class="fa fa-exclamation-triangle fa-lg"></i> <b>คำเตือน</b> ตอนโอนเงินกรุณาใส่คำว่า  "<b><?php echo $truewallet_text; ?></b>" ด้วยไม่งั้น ระบบจะไม่เช็ค !!!!!</div>
  147.                     <div style="margin-top:10px;" class="alert alert-warning"><i class="fa fa-exclamation-triangle fa-lg"></i> <b>หมายเหตุ</b> หากมีปัญหาในการสั่งซื้อหรือรอนานผิดปกติ กรุณาติดต่อที่<a href="#"> Support</a></div>
  148.                    
  149.             <br>
  150.                 <button class="btn btn-outline-success" type="submit" id="btn" onclick="buy();"><i class="fas fa-check"></i> ยืนยันการโอนเงิน</button>
  151.                 <a class="btn btn-outline-danger" href="../index.html" role="button"><i class="fas fa-external-link-alt"></i> กลับไปหน้าแรก</a>
  152.              </div>
  153.            </div>
  154.           </div>
  155.         </div>
  156.        <footer class="mastfoot mt-auto">
  157.       <div class="text-center mt-2 mb-2" style="color: white;">2019  &copy; | Script Shop</div>
  158.      </footer>
  159.      
  160.   </body>
  161. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement