| 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/geojournal.net/ |
Upload File : |
<?php
if(file_exists('inc/config.php')){require_once('inc/config.php');}else{die('Required file doesn\'t exist.');}
$req_files = array('encryptions', 'functions', 'transaction', 'MPDF53/mpdf');
foreach($req_files as $req_file){if(file_exists(REQ.$req_file.'.php')){require_once(REQ.$req_file.'.php');}else{die('Required file doesn\'t exist.');}}
if($dbhost === '127.0.0.1'):
$db = new mysqli('127.0.0.1', 'root', '', 'akinik');
else:
$db = new mysqli('localhost', 'akinikpublicatio', '2-xu&*3qAh%C', 'akinikpublication');
endif;
if($db->connect_error):
die('Database connection failed.');
endif;
$stmt = $mysqli->prepare("SELECT websitename, websiteemail 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);
$stmt->fetch();
$stmt->close();
if(isset($_POST['generate_receipt']) && $_SERVER['REQUEST_METHOD'] === 'POST')
{
$txnid = filter_input(INPUT_POST, 'txnid', FILTER_SANITIZE_STRING);
$txnid = strip_tags($fn->escape($txnid));
$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
$email = strip_tags(urldecode($fn->escape($email)));
$stmt = $db->prepare("SELECT name, currency, amount, description, creation FROM transactions WHERE (email = ? AND txnid = ?) LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->bind_param('ss', $email, $txnid);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($name, $currency, $amount, $description, $creation);
$stmt->fetch();
$stmt->close();
if($count_rows === 1)
{
if(method_exists('transaction', 'receipt'))
{
$tn->receipt($txnid, $name, $description, $amount, $currency, $creation, $websitename, $websiteemail, $baseurl);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($txnid.'.pdf'));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: '.filesize($txnid.'.pdf'));
ob_clean();
flush();
readfile($txnid.'.pdf');
@unlink($txnid.'.pdf');
exit();
}
else
{
header('location:'.$baseurl);
exit();
}
}
else
{
header('location:'.$baseurl);
exit();
}
}
else
{
header('location:'.$baseurl);
exit();
}
?>