KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/simes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/simes/mail.php
<?php
	require_once("recaptchalib.php");
	
	$privatekey = "6LeQmOYSAAAAAB_OVOyh9aka3l5kb5sObs-D2bom";
	$resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
	
	// What happens when the CAPTCHA was entered incorrectly
	if (!$resp->is_valid) die("The reCAPTCHA wasn&rsquo;t entered correctly. Go back and try it again."."(reCAPTCHA said: ".$resp->error.")");
	else {
		if (!$_POST) exit;
		
		$email = $_POST["email"];
		
		//$error[] = preg_match("/\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i", $_POST["email"]) ? "" : "INVALID EMAIL ADDRESS";
		if (!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$", $email)) {
			$error .= "Invalid email address entered";
			$errors = 1;
		}
		
		if ($errors == 1) echo $error;
		else {
			$values = array("name", "email", "phone", "message");
			$required = array("name", "email", "phone", "message");
			
			$your_email = "[email protected]";
			$email_subject = "New Message From Website";
			$email_content = "new message:\n";
	
			foreach ($values as $key=>$value) {
				if (in_array($value, $required)) {
					if ($key != "name" && $key != "email") {
						if (empty($_POST[$value])) {
							echo "PLEASE FILL IN REQUIRED FIELDS";
							exit;
						}
					}
					$email_content .= $value.": ".$_POST[$value]."\n";
				}
			}
			
			if (@mail($your_email, $email_subject, $email_content)) echo "Message sent!"; 
			else echo "ERROR!";
		}
	}
?>

Anon7 - 2021