$v){ foreach($badStrings as $v2){ if(strpos($v, $v2) !== false){ logBadRequest(); header("HTTP/1.0 403 Forbidden"); exit; } } } // Made it past spammer test, free up some memory // and continue rest of script: unset($k, $v, $v2, $badStrings, $authHosts, $fromArray, $wwwUsed); foreach ($_POST as $key => $value) { $$key = trim($value); } function myCheckDNSRR($hostName, $recType = '') { if(!empty($hostName)) { if( $recType == '' ) $recType = "MX"; exec("nslookup -type=$recType $hostName", $result); // check each line to find the one that starts with the host // name. If it exists then the function succeeded. foreach ($result as $line) { if(eregi("^$hostName",$line)) { return true; } } // otherwise there was no mail handler for the domain return false; } return false; } //end dns check //verify email syntax if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'. '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) { $error_email=1; } else { //if valid syntax then: list($userName, $mailDomain) = split("@", $email); if (checkdnsrr($mailDomain, "MX")) { //$error_email=0; } else { $error_email=1; } //close valid syntax } if ($name=="") {$error=3; $error_desc="Please enter your name.
";} if ($phone=="") {$error=3; $error_desc.="Please enter your phone number.
";} if ($email=="") {$error=3; $error_desc.="Please enter an e-mail address.
";} elseif ($error_email=="1") {$error=3; $error_desc.="Please enter a VALID Email address.
";} if ($error_email!=1 && $error!=3) { $body=" Name: $name Phone: $phone Email: $email Comments: $comments "; $headers .= "From: $name <$email>"; mail("jsnorman@inhisserviceproductions.org", "Contact from Sack-Ups",$body,$headers); /* $email2="bburnette@sackups.com"; $body2="$name: Thank you for contacting Sack-Ups. We have received your message and we will contact you shortly. "; $headers2 .= "From: Sack-Ups <$email2>"; mail($email, "Contact received by Sack-Ups",$body2,$headers2); //autoresponder */ $email_sent="yes"; } } ?> Facebook - Sack-Ups

 

Sack-Ups on Facebook