Phone : (6 088) 257752
Get Adobe Flash player

You did not press the submit button; this page should not be accessed directly.

“);
} else {
$exploits = “/(content-type|bcc:|cc:|document.cookie|onclick|onload|javascript|alert)/i”;
$profanity = “/(beastial|bestial|blowjob|clit|cock|cum|cunilingus|cunillingus|cunnilingus|cunt|ejaculate|fag|felatio|fellatio|fuck|fuk|fuks|gangbang|gangbanged|gangbangs|hotsex|jism|jiz|kock|kondum|kum|kunilingus|orgasim|orgasims|orgasm|orgasms|phonesex|phuk|phuq|porn|pussies|pussy|spunk|xxx)/i”;
$spamwords = “/(viagra|phentermine|tramadol|adipex|advai|alprazolam|ambien|ambian|amoxicillin|antivert|blackjack|backgammon|texas|holdem|poker|carisoprodol|ciara|ciprofloxacin|debt|dating|porn)/i”;
$bots = “/(Indy|Blaiz|Java|libwww-perl|Python|OutfoxBot|User-Agent|PycURL|AlphaServer)/i”;

if (preg_match($bots, $_SERVER[‘HTTP_USER_AGENT’])) {
exit(“

Known spam bots are not allowed.

“);
}
foreach ($_POST as $key => $value) {
$value = trim($value);

if (empty($value)) {
exit(“

Empty fields are not allowed. Please go back and fill in the form properly.

“);
} elseif (preg_match($exploits, $value)) {
exit(“

Exploits/malicious scripting attributes aren’t allowed.

“);
} elseif (preg_match($profanity, $value) || preg_match($spamwords, $value)) {
exit(“

That kind of language is not allowed through our form.

“);
}

$_POST[$key] = stripslashes(strip_tags($value));
}

if (!ereg(“^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,6})$”,strtolower($_POST[’email’]))) {
exit(“

That e-mail address is not valid, please use another.

“);
}

$recipient = “[email protected]”;
$subject = “CPL Reservation Form”;
$message = “CPL Reservation Form \n”;
$message .= “Name: {$_POST[‘name’]} \n\n”;
$message .= “Sex: {$_POST[‘sex’]} \n\n”;
$message .= “E-mail: {$_POST[’email’]} \n\n”;
$message = “Company or Group Name: {$_POST[‘CompanyName’]} \n\n”;
$message .= “Full Address: {$_POST[‘address’]} \n\n”;
$message .= “Country: {$_POST[‘country’]} \n\n”;
$message .= “Contact Phone: {$_POST[‘tel’]} \n\n”;
$message .= “No. of Guests: {$_POST[‘NumGuests’]} \n\n”;
$message .= “Check-In Date: {$_POST[‘Checkin_Day’]} {$_POST[‘Checkin_Month’]} {$_POST[‘Checkin_Year’]} \n\n”;
$message .= “Check-Out Date: {$_POST[‘Checkout_Day’]} {$_POST[‘Checkout_Month’]} {$_POST[‘Checkout_Year’]} \n\n”;
$message = “Arrival Time: {$_POST[‘Arrival_Time’]} \n\n”;
$message = “Check-in Time: {$_POST[‘Check-inTime’]} \n\n”;
$message .= “Room Type: {$_POST[‘RoomType’]} \n\n”;
$message = “Guest Name List: {$_POST[‘NameList’]} \n\n”;
$headers = “From: {$_POST[‘name’]} \n\n”;
$headers .= “Reply-To: <{$_POST['email']}>“;

if (mail($recipient,$subject,$message,$headers)) {
echo “

Thank you {$_POST[‘name’]}!

Your reservation was successfully sent to City Park Lodge.

We will reserve for you and contact you as soon as possible.

“;
} else {
echo “

Sorry, there was an error and your reservation was not sent. Please try again. Thanks.

“;
}
}
?>