$request_uri) { $nl="http://" . $_SERVER['HTTP_HOST'] . $should_be; header("HTTP/1.1 301 Moved Permanently"); header("Location: $nl"); exit ; } require('./incl/config.php'); require('./incl/common.php'); session_start(); function cleanSTR($thestr) { $thestr = trim($thestr); $thestr = strip_tags($thestr); $thestr = htmlspecialchars($thestr); $thestr = str_replace(array( "%0a", "%0A", "%0d", "%0D", "Content-Type:", "multipart", "bcc:", "to:", "cc:" ), "", $thestr ) ; return $thestr; } $page_title = $municate_Settings['site_name'] . " " . line_format($municate_Settings['site_email_anchor']); $page_title .= line_format($municate_Settings['site_name_ext']); $page_descr = "Info: " . $page_title; if ($municate_Settings['site_contact_pick']) { $pagep = 1; } include('template/header.php'); include('template/topmenu.php'); ?> " . line_format($municate_Settings['site_email_anchor']) . "" ; if ($_SERVER['REQUEST_METHOD'] <> "POST") { require("./incl/captcha.php"); $_SESSION['captcha'] = captcha(); print "

" . text_format($municate_Settings['site_email_page'],0) . "

"; ?>

Your Name

Email Address

Date check in

Date check out

Nr of People

Message

Spam protection, please type the words in the captcha field below
And then press SEND to send your message to us......

'; ?>

$cap) { $cerror=true; } if (!$cerror) { // HIER $name = cleanSTR($_POST['contact_name']); $email = cleanSTR($_POST['contact_email']); $message = cleanSTR($_POST['contact_message']); if ($pagep) { $message .= "\r\n\r\n"; $message .= cleanSTR($_POST['date1']) . " check in." . "\r\n"; $message .= cleanSTR($_POST['date2']) . " check out." . "\r\n"; $message .= cleanSTR($_POST['nrpeople']) . " people." . "\r\n"; } $message .= "\r\n\r\n" . "Name: " . $name . "\r\n" . "Email: " . $email; $message .= "\r\n\r\n" . $municate_Settings['site_url'] . "\r\n" ; $site_email_from = $municate_Settings['site_email_from']; $site_email_to = $municate_Settings['site_email_to']; $subject = $name . ": " . $municate_Settings['site_name'] ; $headers = "Content-Type: text/plain; charset=UTF-8" . "\r\n"; $headers .= "Content-Transfer-Encoding: 8bit" . "\r\n"; $headers .= "X-WebSite-Mailer-Agent: [MunicateCMS]" . "\r\n"; $headers .= "X-Mailer: PHP " . phpversion() . "\r\n"; $HTPU = mysqli_escape_string($link,strip_tags($_SERVER['HTTP_USER_AGENT'])); $headers .= "X-HTTP-UserAgent: " .$HTPU . "\r\n"; $headers .= "X-Originating-IP: [" . $_SERVER['REMOTE_ADDR']. "]\r\n"; //$HTPXF = mysqli_escape_string($link,strip_tags($_SERVER['HTTP_X_FORWARDED_FOR'])); //$headers .= "X-HTTP-Forward-For: [" . $HTPXF . "]\r\n"; //$HTPV = mysqli_escape_string($link,strip_tags($_SERVER['HTTP_VIA'])); //$headers .= "X-HTTP-Via: " . $HTPV . "\r\n"; $headers .= "X-Server-IP: " . $_SERVER['SERVER_ADDR']. "\r\n"; $headers .= "X-Server-Domain: " . $_SERVER['HTTP_HOST']. "\r\n"; $headers .= "Date: " . date("r") . "\r\n"; //MAIL TO SITE OP $mhdr = "Reply-To: " . $email . "\r\n"; //$mhdr .= "Bcc: bv@bpibali.com" . "\r\n"; $mhdr .= "From: " . $site_email_from . "\r\n" . $headers ; mail($site_email_to, $subject, $message, $mhdr); //MAIL TO CLIENT $mhdr = "From: ". $site_email_from . "\r\n" . $headers; mail($email, $subject, "Copy for you, please don't reply:\r\n\r\nWe will reply to your email as soon as possible...\r\n\r\n" .$message, $mhdr); // END HIER echo "

" . text_format($municate_Settings['site_email_thanks'],0) . "

"; } else { print "



You didn't enter the Captcha text correctly..."; print "

Go back to the email form....
And please refresh the email form!!

"; } } ?>