Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors', 1);
- ini_set('max_execution_time', 300000000);
- $data = array();
- $status = "bad";
- header('Content-Type: application/json');
- $emai = @strip_tags($_GET['email']);
- $idtk = @strip_tags($_GET['idtk']);
- $idvc = @strip_tags($_GET['idvc']);
- //config (di isi yang kosong)
- $server = "https://id.bookmyshow.com/serv/doSecureTrans.bms";
- $email = ""; //email lu
- $idcek = "3672549"; //nomor tiket
- $idcek2 = $idvc; //nomor vocer
- $nomorhp = ""; //nomor hp lu
- //jangan di edit
- //SIAKBARY genteng
- $p1 = '{"uip":"'.$idcek2.'","email":"'.$email.'","mob":"'.$nomorhp.'","card_no":"","nb_code":""}';
- $c = curl_init($server);
- curl_setopt($c, CURLOPT_REFERER, "https://id.bookmyshow.com/");
- curl_setopt($c, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3067.6 Safari/537.36");
- curl_setopt($c, CURLOPT_TIMEOUT, 200);
- curl_setopt($c, CURLOPT_VERBOSE, false);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- //v = CBLT apa ini?
- curl_setopt($c, CURLOPT_POSTFIELDS,"a=WEBIDN&v=ZCTM&t=".$idcek."&c=SETOFFERVIACOMP&p1=".urlencode($p1)."");
- curl_setopt($c, CURLOPT_POST, 1);
- $cekme = curl_exec($c);
- $cekme = strip_tags($cekme);
- $getrespon = explode("|", $cekme);
- if(@$getrespon[0] == "true"){
- unset($getrespon[0]);
- array_pop($getrespon);
- foreach($getrespon as $x){
- $hereme = explode("=", $x);
- $data[$hereme[0]] = $hereme[1];
- }
- $status = "ok";
- } else {
- $data['log'] = $cekme;
- }
- $data['code'] = $idcek2;
- $data['status'] = $status;
- echo json_encode($data);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement