Advertisement
wisnu223

SC oper WP

Jun 26th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $api_key = ""; // API Key Wonderful Panel
  2. $link = $_POST['usrnmlink'];
  3. $jenis = $_POST['layanan'];
  4. $jumlah = $_POST['jumlah'];
  5.  
  6. $postdata = 'api_key='.$api_key.'&link='.$link.'&jenis='.$jenis.'&jumlah='.$jumlah.'';
  7. $ch = curl_init();
  8. curl_setopt($ch, CURLOPT_URL, 'http://wonderful-panel.com/api.php');
  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. $store = curl_exec ($ch);
  14. curl_close ($ch);
  15. $json = json_decode($store,true);
  16.  
  17. if ($json['result'] == "error") { ?>
  18. Order error karena <?php echo $json['reason']; ?>
  19. <? } else if ($json['result'] == "success") {
  20. $no = $json['id'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement