Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $api_key = ""; // API Key Wonderful Panel
- $link = $_POST['usrnmlink'];
- $jenis = $_POST['layanan'];
- $jumlah = $_POST['jumlah'];
- $postdata = 'api_key='.$api_key.'&link='.$link.'&jenis='.$jenis.'&jumlah='.$jumlah.'';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://wonderful-panel.com/api.php');
- curl_setopt ($ch, CURLOPT_POST, 1);
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
- $store = curl_exec ($ch);
- curl_close ($ch);
- $json = json_decode($store,true);
- if ($json['result'] == "error") { ?>
- Order error karena <?php echo $json['reason']; ?>
- <? } else if ($json['result'] == "success") {
- $no = $json['id'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement