| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/public_html/allsportsjournal.com/payment/ |
Upload File : |
<?php
require_once('../inc/config.php');
$akiniktxn = new mysqli('localhost', 'akiniktransactions', '.3[HO07+LWo{', 'akiniktransactions');
$status = isset($_GET['status']) ? $akiniktxn->real_escape_string($_GET['status']) : null;
$txnid = isset($_GET['txnid']) ? $akiniktxn->real_escape_string($_GET['txnid']) : null;
$token = isset($_GET['token']) ? $akiniktxn->real_escape_string($_GET['token']) : null;
$stmt = $akiniktxn->prepare("SELECT * FROM transactions WHERE (txnid = ? AND token = ?)");
$stmt->bind_param('ss', $txnid, $token);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->close();
if ($count_rows === 1 && ($status === 'success' or $status === 'failed')) {
$statusText = $status === 'success' ? 'successful' : 'failed';
$stmt = $akiniktxn->prepare("UPDATE transactions SET status = ?, token = null WHERE (txnid = ? AND token = ?)");
$stmt->bind_param('sss', $statusText, $txnid, $token);
$stmt->execute();
$stmt->close();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Robots" content="noindex, nofollow" />
<title>Payment <?php echo $status === 'success' ? 'Successful' : 'Failed'; ?></title>
<link rel="shortcut icon" href="<?php echo $imageurl;?>favicon.ico" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:wght@400;700|Material+Icons&display=swap" rel="stylesheet">
<style type="text/css">
body{font-size:14px;font-family:'Roboto Condensed', sans-serif;overflow-y:scroll;}
</style>
</head>
<body class="black-text">
<div class="bg-primary container-fluid py-1">
<div class="row">
<div class="col"></div>
<div class="col text-center d-flex justify-content-center">
<a href="<?php echo $baseurl; ?>">
<img src="<?php echo $baseurl . 'images/logowhite.png'; ?>" alt="Logo" height="36" />
</a>
</div>
<div class="col d-flex align-items-center justify-content-end">
<a href="<?php echo $baseurl; ?>" class="btn btn-sm text-white">Home</a>
</div>
</div>
</div>
<br clear="all">
<br clear="all">
<div class="container-lg">
<div class="row">
<div class="col-lg-6 mx-auto">
<div class="card">
<div class="card-body text-center">
<?php if ($status === 'success') { ?>
<i class="material-icons text-success" style="font-size: 60px;">check</i>
<h6 class="mb-3 text-success mt-1 text-uppercase">Your payment has been successful</h6>
<p class="mb-0">Your transaction id.: <?php echo $txnid; ?></p>
<p class="mb-0">We've sent you a confirmation email with your payment details and payment receipt.</p>
<?php } else { ?>
<i class="material-icons text-danger" style="font-size: 60px;">info</i>
<h6 class="mb-3 text-danger mt-1 text-uppercase">Your payment has been failed</h6>
<p class="mb-0">Your transaction id.: <?php echo $txnid; ?></p>
<p class="mb-0">Please note the transaction id for your reference.</p>
<?php } ?>
<p class="mb-3">For any other query Call: +91-9711224068</p>
<a href="<?php echo $baseurl; ?>" class="btn btn-primary" style="font-size: 14px;">Go Back to Home</a>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<?php
} else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Robots" content="noindex, nofollow" />
<title>404 Page Not Found</title>
<link rel="shortcut icon" href="<?php echo $baseurl . 'images/favicon.ico'; ?>" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:wght@400;700|Material+Icons&display=swap" rel="stylesheet">
<style type="text/css">
body{font-size:14px;font-family:'Roboto Condensed', sans-serif;overflow-y:scroll;}
</style>
</head>
<body class="black-text">
<div class="bg-primary container-fluid py-1">
<div class="row">
<div class="col"></div>
<div class="col text-center d-flex justify-content-center">
<a href="<?php echo $baseurl; ?>">
<img src="<?php echo $baseurl . 'images/logowhite.png'; ?>" alt="Logo" height="36" />
</a>
</div>
<div class="col d-flex align-items-center justify-content-end">
<a href="<?php echo $baseurl; ?>" class="btn btn-sm text-white">Home</a>
</div>
</div>
</div>
<br clear="all">
<br clear="all">
<div class="container-lg">
<div class="row">
<div class="col-lg-6 mx-auto">
<div class="card">
<div class="card-body text-center">
<i class="material-icons text-danger" style="font-size: 60px;">info</i>
<h2 class="mb-2 text-danger mt-1">404</h2>
<h6 class="mb-3 mt-1">OOPS, SORRY WE CAN'T FIND THAT PAGE</h6>
<p class="mb-3">Either something went wrong or the page doesn't exist anymore.</p>
<a href="<?php echo $baseurl; ?>" class="btn btn-primary" style="font-size: 14px;">Go Back to Home</a>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<?php
}
?>