| 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/journalofpoliticalscience.com/ |
Upload File : |
<?php
if (file_exists('inc/config.php')) {
require_once('inc/config.php');
} else {
die('Required file doesn\'t exist.');
}
$akiniktxn = new mysqli('localhost', 'akiniktransactions', '.3[HO07+LWo{', 'akiniktransactions');
$stmt = $mysqli->prepare("SELECT websitename, websiteemail, fromname, fromemail, replyname, replyemail FROM settings ORDER BY settingsid DESC LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($websitename, $websiteemail, $fromname, $fromemail, $replyname, $replyemail);
$stmt->fetch();
$stmt->close();
$status = filter_input(INPUT_GET, 'status', FILTER_SANITIZE_STRING);
$status = $mysqli->real_escape_string($status);
$txnid = filter_input(INPUT_GET, 'txnid', FILTER_SANITIZE_STRING);
$txnid = $mysqli->real_escape_string($txnid);
$token = filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING);
$token = $mysqli->real_escape_string($token);
$stmt = $akiniktxn->prepare("SELECT ref_number FROM transactions WHERE (txnid = ? AND token = ?)");
$stmt->bind_param('ss', $txnid, $token);
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($ref_number);
$stmt->fetch();
$stmt->close();
if (!$ref_number) {
die('No valid transaction details found.');
}
$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();
if ($status === 'success') {
$download_token = uniqid($txnid . '_', true);
$stmt = $mysqli->prepare("UPDATE archives SET download_token = ? WHERE (refnumber = ? AND status = 'enabled') LIMIT 1");
$stmt->bind_param('ss', $download_token, $ref_number);
$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.0">
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="noindex, nofollow">
<title>Payment <?php echo ucfirst($statusText); ?></title>
<link rel="shortcut icon" href="<?php echo $imageurl;?>favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<style>
body {
font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 400;
}
* {
box-sizing: border-box;
}
b {
font-weight: 400;
}
.form-control,
.form-select {
font-size: 14px;
}
.btn-submitter:disabled {
color: transparent !important;position: relative;
}
.btn-submitter:disabled::after {
content: 'Please wait...';position: absolute;top: 0;bottom: 0;left: 0;right: 0;color: #fff;display: flex;justify-content: center;align-items: center;
}
</style>
</head>
<body>
<div class="bg-primary">
<div class="container py-1">
<div class="d-flex align-items-center justify-content-between">
<div>
<a href="<?php echo $baseurl; ?>" class="d-inline-block">
<img src="<?php echo $imageurl; ?>logo.png" alt="<?php echo $websitename; ?>" title="<?php echo $websitename; ?>" width="40" height="40" />
</a>
</div>
<div>
<a href="<?php echo $baseurl; ?>" title="Home" class="btn btn-light me-1" style="font-size:14px;">Home</a>
<a href="<?php echo $baseurl; ?>contact" title="Contact Us" class="btn btn-light" style="font-size:14px;">Contact Us</a>
</div>
</div>
</div>
</div>
<div class="container my-5">
<div class="row">
<div class="col-sm-12 col-lg-6 offset-lg-3">
<div class="card">
<div class="card-body text-center d-flex flex-column align-items-center justify-content-center row-gap-2">
<?php if ($status === 'success') { ?>
<svg width="48" height="48" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="fill: var(--bs-success);">
<path d="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z" />
</svg>
<h6 class="mb-3 mt-1 text-success">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>
<p class="mb-3">For any other query Call: +91-9711224068</p>
<form method="post" action="<?php echo $baseurl; ?>downloadarticle">
<input type="hidden" name="refnumber" value="<?php echo $ref_number; ?>" />
<input type="hidden" name="token" value="<?php echo $download_token; ?>" />
<button type="submit" class="btn btn-primary" style="font-size: 14px;">Download PDF</button>
</form>
<?php } ?>
<?php if ($status === 'failed') { ?>
<svg width="48" height="48" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="fill: var(--bs-danger);">
<path d="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z" />
</svg>
<h6 class="mb-3 mt-1 text-danger">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>
<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>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>