Malicious code content detected.
Your IP Number of ".getenv("REMOTE_ADDR")." has been logged."; /******** END OF CONFIG SECTION *******/ $name = $_POST['name']; $email = $_POST['email']; $country = $_POST['country']; $phone = $_POST['phone']; $no_of_person = $_POST['no_of_person']; $arrival_date = $_POST['arrival_date']; $arrival_month = $_POST['arrival_month']; $arrival_year = $_POST['arrival_year']; $departure_date = $_POST['departure_date']; $departure_month = $_POST['departure_month']; $departure_year = $_POST['departure_year']; $roomtype = $_POST['roomtype']; $no_of_room = $_POST['no_of_room']; $message = $_POST['message']; $headers = "From: $email\n"; $headers . "MIME-Version: 1.0\n" . "Content-Transfer-Encoding: 7bit\n" . "Content-type: text/html; charset = \"iso-8859-1\";\n\n"; if ($SpamCheck == "Y") { if (preg_match("/http/i", "$name")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$email")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$message")) {echo "$SpamErrorMessage"; exit();} // Patterm match search to strip out the invalid charcaters, this prevents the mail injection spammer $pattern = '/(;|\||`|>|<|&|^|"|'."\n|\r|'".'|{|}|[|]|\)|\()/i'; // build the pattern match string $name = preg_replace($pattern, "", $name); $email = preg_replace($pattern, "", $email); $message = preg_replace($pattern, "", $message); // Check for the injected headers. from the spammer attempt // This will replace the injection attempt text with the string you have set in the above config section $find = array("/bcc\:/i","/Content\-Type\:/i","/cc\:/i","/to\:/i"); $email = preg_replace($find, "$SpamReplaceText", $email); $name = preg_replace($find, "$SpamReplaceText", $name); $message = preg_replace($find, "$SpamReplaceText", $message); // Check to see if the fields contain any content we want to ban if(stristr($name, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} if(stristr($message, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} // Do a check on the send email and subject text if(stristr($sendto, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} if(stristr($subject, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();}} // Build the email body text $emailcontent = " ----------------------------------------------------------------------------- Availability Enquiry ----------------------------------------------------------------------------- Name: $name Email: $email Phone: $phone Date of Arrival: $arrival_date/$arrival_month/$arrival_year Date of Departure: $departure_date/$departure_month/$departure_year Room Type: $roomtype No. of Rooms: $no_of_room No. of Person: $no_of_person _______________________________________ End of Email "; if (!preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email)) { echo "
";
}
}
else {
?>
Your IP Number of ".getenv("REMOTE_ADDR")." has been logged."; /******** END OF CONFIG SECTION *******/ $name = $_POST['name']; $email = $_POST['email']; $country = $_POST['country']; $phone = $_POST['phone']; $no_of_person = $_POST['no_of_person']; $arrival_date = $_POST['arrival_date']; $arrival_month = $_POST['arrival_month']; $arrival_year = $_POST['arrival_year']; $departure_date = $_POST['departure_date']; $departure_month = $_POST['departure_month']; $departure_year = $_POST['departure_year']; $roomtype = $_POST['roomtype']; $no_of_room = $_POST['no_of_room']; $message = $_POST['message']; $headers = "From: $email\n"; $headers . "MIME-Version: 1.0\n" . "Content-Transfer-Encoding: 7bit\n" . "Content-type: text/html; charset = \"iso-8859-1\";\n\n"; if ($SpamCheck == "Y") { if (preg_match("/http/i", "$name")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$email")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$message")) {echo "$SpamErrorMessage"; exit();} // Patterm match search to strip out the invalid charcaters, this prevents the mail injection spammer $pattern = '/(;|\||`|>|<|&|^|"|'."\n|\r|'".'|{|}|[|]|\)|\()/i'; // build the pattern match string $name = preg_replace($pattern, "", $name); $email = preg_replace($pattern, "", $email); $message = preg_replace($pattern, "", $message); // Check for the injected headers. from the spammer attempt // This will replace the injection attempt text with the string you have set in the above config section $find = array("/bcc\:/i","/Content\-Type\:/i","/cc\:/i","/to\:/i"); $email = preg_replace($find, "$SpamReplaceText", $email); $name = preg_replace($find, "$SpamReplaceText", $name); $message = preg_replace($find, "$SpamReplaceText", $message); // Check to see if the fields contain any content we want to ban if(stristr($name, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} if(stristr($message, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} // Do a check on the send email and subject text if(stristr($sendto, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} if(stristr($subject, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();}} // Build the email body text $emailcontent = " ----------------------------------------------------------------------------- Availability Enquiry ----------------------------------------------------------------------------- Name: $name Email: $email Phone: $phone Date of Arrival: $arrival_date/$arrival_month/$arrival_year Date of Departure: $departure_date/$departure_month/$departure_year Room Type: $roomtype No. of Rooms: $no_of_room No. of Person: $no_of_person _______________________________________ End of Email "; if (!preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email)) { echo "
It appears you entered an invalid email address
"; } elseif (!trim($name)) { echo "Please go back and enter a Name
"; } elseif (!trim($phone)) { echo "Please go back and type a Phone Number
"; } elseif (!trim($email)) { echo "Please go back and enter an Email
"; } elseif (mail($sendto, $subject, $emailcontent, $headers)) { echo "Thank You for inquiring.
We will be in touch as soon as possible.
In case of emergency kindly contact +91 832 226 8075