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/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

$req_files = array('encryptions', 'functions', 'sendmail', '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.');}}

$stmt = $mysqli->prepare("SELECT websitename, websiteemail, fromname, fromemail, replyname, replyemail FROM settings ORDER BY settingsid DESC LIMIT 1");
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($websitename, $websiteemail, $fromname, $fromemail, $replyname, $replyemail);
$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;
?>
<!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 : <?php echo $websitename;?></title>

<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{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}

@media(max-width:992px){
.col.center-align{}
}
@media(max-width:600px){
.card{padding:20px 0}
}
</style>
</head>
<body class="white black-text">
<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_pdf.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->escape($txnid));
$txnid = preg_replace('/[^A-Z0-9]/', '', $txnid);

$secretkey = filter_input(INPUT_GET, 'secretkey', FILTER_SANITIZE_STRING);
$secretkey = strip_tags($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):

	$status = $fn->element($status, array('success' => 'successful', 'failed' => 'failed'));
	$result = $tn->validate($mysqli, $txnid, $secretkey, $status);

	if($result):
		if($status === 'successful'):
			$stmt = $mysqli->prepare("SELECT name, email, phone, address, city, state, pincode, country, currency, amount, paymenttype, description, creation, mailstatus FROM transactions WHERE txnid = ? LIMIT 1");
			$stmt->bind_param('s', $txnid);
			$stmt->execute();
			$stmt->store_result();
			$count_rows = $stmt->num_rows();
			$stmt->bind_result($name, $email, $phone, $address, $city, $state, $pincode, $country, $currency, $amount, $paymenttype, $description, $creation, $mailstatus);
			$stmt->fetch();
			$stmt->close();

			if(empty($mailstatus) OR $mailstatus == NULL)
			{
				if(method_exists('transaction', 'receipt'))
				{
					$extra_address = ($city && $pincode && $state) ? $city.' - '.$pincode.', '.$state.', ' : '';
					$billto = $name.'<br>'.$address.'<br>'.$extra_address.$country;

					$tn->receipt($txnid, $billto, $description, $amount, $currency, $creation, $websitename, $websiteemail, rtrim($baseurl, '/'));
					$attachments = array($txnid.'.pdf');
				}
				else
				{
					$attachments = NULL;
				}
		
				if(method_exists('transaction', 'genmail'))
				{
					$wmailmsg = $tn->genmail('w', $txnid, $name, $description, $amount, $currency, $creation, $email, $phone, $address, $country, $status);
					$wsubject = $fn->element(0, $wmailmsg);
					$wmessage = $fn->element(1, $wmailmsg);
			
					$cmailmsg = $tn->genmail('c', $txnid, $name, $description, $amount, $currency, $creation, $email, $phone, $address, $country, $status);
					$csubject = $fn->element(0, $cmailmsg);
					$cmessage = $fn->element(1, $cmailmsg);
			
					if($wmessage && $wsubject)
					{
						$to = ($paymenttype == 'Book Chapter' OR $paymenttype == 'Book Publication') ? 'akinikbooks@gmail.com' : $websiteemail;
						$sm->send($to, $websiteemail, '', $wsubject, $wmessage, $fromname, $fromemail, $name, $email);
					}
			
					if($cmessage && $csubject)
					{
						$sm->send($email, '', '', $csubject, $cmessage, $fromname, $fromemail, $replyname, $replyemail, $attachments);
					}
				}
		
				if(file_exists($txnid.'.pdf')){@unlink($txnid.'.pdf');}
			}
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}.</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}" 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