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/emhunter/NewEmpireSite/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/emhunter/NewEmpireSite/contact.php
<?php

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','company','message');
	$required = array('name','email','message');
	 
	$your_email = "[email protected]";
	$email_company = "Company: ".$_POST['company'];
	$email_subject = "Subject: ".$_POST['subject'];
	$email_content = "new message:\n";
	
	foreach($values as $key => $value)
	{
	  if(in_array($value,$required))
	  {
		if ($key != 'subject' && $key != 'company') 
		{
		  if( empty($_POST[$value]) ) 
		  { 
		  echo 'PLEASE FILL IN REQUIRED FIELDS'; 
		  exit; 
		  }
		}
		$email_content .= $value.': '.$_POST[$value]."\n";
	  }
	}
	 $email_type = "Type: ".$_POST['type'];
	if(@mail($your_email,$email_subject, $email_type,$email_content))
	 {
		echo 'Message sent!'; 
	} 
	else 
	{
	
		echo 'ERROR!';
	}
}
?>

Anon7 - 2021