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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/www/payumoney_listener1.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(REQ.$file_inc.'.php')): require_once(REQ.$file_inc.'.php'); else: die('Required file doesn\'t exist.'); endif;
endforeach;

$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();

$data = file_get_contents('php://input');
$data = json_decode($data);

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

	if($data->status == 'Success'):
		$stmt = $mysqli->prepare("SELECT journal, journalemail, fromname, fromemail, replyname, replyemail, domain FROM journals WHERE journal = ? LIMIT 1");
		$stmt->bind_param('s', $source);
		$stmt->execute();
		$stmt->store_result();
		$stmt->bind_result($journal, $journalemail, $fromname, $fromemail, $replyname, $replyemail, $domain);
		$stmt->fetch();
		$stmt->close();

		if(method_exists('transaction', 'receipt')):
			$tn->receipt($txnid, $name, $description, $amount, $currency, $creation, $journal, $journalemail, $domain);
			$attachments = array($txnid.'.pdf');
		else:
			$attachments = null;
		endif;

		if(method_exists('transaction', 'genmail')):
			$wmailmsg = $tn->genmail('w', $txnid, $name, $description, $amount, $currency, $creation, $email, $phone, $address, $country, $status);
			$wsubject = (array_key_exists(0, $wmailmsg)) ? $wmailmsg[0] : '';
			$wmessage = (array_key_exists(1, $wmailmsg)) ? $wmailmsg[1] : '';
	
			$cmailmsg = $tn->genmail('c', $txnid, $name, $description, $amount, $currency, $creation, $email, $phone, $address, $country, $status);
			$csubject = (array_key_exists(0, $cmailmsg)) ? $cmailmsg[0] : '';
			$cmessage = (array_key_exists(1, $cmailmsg)) ? $cmailmsg[1] : '';
	
			if($wmessage && $wsubject):
				$to = ($paymenttype == 'Book Chapter' || $paymenttype == 'Book Publication') ? 'akinikbooks@gmail.com' : $journalemail;
				$sm->SendMail($to, $websiteemail, '', $wsubject, $wmessage, $fromname, $fromemail, $name, $email);
			endif;
	
			if($cmessage && $csubject):
				$sm->SendMail($email, '', '', $csubject, $cmessage, $fromname, $fromemail, $replyname, $replyemail, $attachments);
			endif;
		endif;

		if(file_exists($txnid.'.pdf')) : @unlink($txnid.'.pdf'); endif;

		$stmt = $mysqli->prepare("INSERT INTO payumoney_listener(amount, paymentmode, split_info, customername, productinfo, customerphone, paymentid, customeremail, merchanttransactionid, error_message, notificationid, status, creation) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
		$stmt->bind_param('dssssssssssss', $data->amount, $data->paymentMode, $data->split_info, $data->customerName, $data->productInfo, $data->customerPhone, $data->paymentId, $data->customerEmail, $data->merchantTransactionId, $data->error_Message, $data->notificationId, $data->status, $creation);
		$stmt->execute();
		$stmt->close();
	endif;
endif;

header("HTTP/1.1 200 OK");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit