Advertisement
dganisha

Untitled

Oct 16th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. <?php
  2.                                 if (isset($_POST['tes'])) {
  3.                     $memberid = "PS--84"; // your api key
  4.                     $sign = "3---5"; // your order id
  5.                     $postdata = "memberID=$memberid&sign=$sign";
  6.                    
  7.                     $ch = curl_init();
  8.                     curl_setopt($ch, CURLOPT_URL, "103.20.191.50:8099/balance");
  9.                     curl_setopt($ch, CURLOPT_POST, 1);
  10.                     curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  11.                     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  12.                     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  13.                     $chresult = curl_exec($ch);
  14.  
  15.                     echo $chresult;
  16.                     }
  17.                     ?>
  18.                     <hr>
  19.                     <br>
  20.                     Username nya : <?php echo $a; ?><br>
  21.                     Saldo nya : <?php echo $b; ?><br>
  22.                     Status Sekarang : <?php echo $c; ?><br>
  23.                     <form class="form-horizontal" method="POST">
  24.     Untuk mendapatkan Note, silahkan klik <button type="submit" class="btn btn-default waves-effect waves-light" name="tes"><i class="icon-refresh"></i>Ulangi</button><br />
  25.     </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement