NULL,"MBIEMRI"=>NULL,"EMAIL"=>NULL,"KOMENTE"=>NULL,); error_reporting(E_ERROR); global $PHP_SELF, $POST_VARS, $COOKIE_VARS, $SERVER_VARS; if (!$_POST) { $POST_VARS = $HTTP_POST_VARS; } else { $POST_VARS=$_POST; } $POST_VARS = array_merge ($addreq, $POST_VARS); if (!$_SERVER) { $SERVER_VARS = $HTTP_SERVER_VARS; } else { $SERVER_VARS = $_SERVER; } if (!$_COOKIE) { $COOKIE_VARS = $HTTP_COOKIE_VARS; } else { $COOKIE_VARS = $_COOKIE; } if ($breakoff == "true") { $breaktype = ""; } else { $breaktype = "\n"; } if (!isset ($POST_VARS["email"])) { $email = NULL; } if (!isset ($POST_VARS["subject"])) { $subject = NULL; } if (!isset ($POST_VARS["firstname"])) { $firstname = NULL; } if (!isset ($POST_VARS["lastname"])) { $lastname = NULL; } $form = NULL; $reqck = NULL; $PHP_SELF = $SERVER_VARS["PHP_SELF"]; if (isset ($POST_VARS["submit"])) { foreach ($POST_VARS as $Name=>$Value) { if (strtolower($Name)=="emailcc") { $emailcc = trim($Value); } $ucName = strtoupper ($Name); if ($Name == $ucName && (is_null($Value) || !$Value)) { $reqck = "fail"; } if( $reqck == "fail") { if (!$requrl) { echo"

Required Field Missing

Please use your browsers back button to return to the form and complete the required field $Name.

"; } else { header ("Location: $requrl?reason=$Name"); } exit(); } if (strtolower ($Name) == "email") { $email = trim ($Value); } if (strtolower ($Name) == "subject") { $subject = trim ($Value); } if (strtolower ($Name) == "firstname") { $firstname = trim ($Value); } if (strtolower($Name) == "lastname") { $lastname = trim ($Value); } } if (is_null ($email) || !$email) { $email = $delemail; } if (!ereg ('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|};~]+$',$email) && $email! = $delemail) { if (!$ckurl) { echo"

Email Address Not Valid

Your Email Address $email does not appear to be valid. Please use your browsers back button to return to the form and input a valid email address.

"; } else { header ("Location: $ckurl?reason=$email"); } exit(); } else { if (!$firstname && !$lastname) { $from_email = $email; } elseif (!$lastname) { $from_email = "$firstname<$email>"; } elseif (!$firstname) { $from_email = "$lastname<$email>"; } else { $from_email = "$firstname $lastname<$email>"; } foreach ($POST_VARS as $Name=>$Value) { if (ucfirst($Name) == $Name || strtoupper ($Name) == $Name) { if (is_array ($Value)) { $form .= "$Name :$breaktype"; foreach ($Value as $formName => $formValue) { $form .= "$formValue, "; } $form .= "\n\n"; } else { $form .= "$Name : $breaktype $Value\n\n"; } } } $timepro = "Form Processed: " .gmdate("D, d M Y H:i:s",time())." GMT/UTC\n\n";$form .=$timepro; if ($usehttpvars == "true" && $SERVER_VARS) { $httpvars = array ("HTTP_REFERER" => "User File", "HTTP_USER_AGENT" => "User Browser", "REMOTE_ADDR" => "User IP Address", "SERVER_ADDR" => "Form Server IP", "SERVER_NAME" => "Form Server Name", "REQUEST_URI" => "Requested URL"); $form .= "Variables -\n"; foreach ($httpvars as $httpvar => $httpdesc) { $form .= "$httpdesc ($httpvar) : $SERVER_VARS[$httpvar]\n"; } $form .= "\n"; } if ($usecookvars == "true" && $COOKIE_VARS) { $form .= "Cookies -\n"; foreach ($COOKIE_VARS as $Name => $Value) { $Value = urlencode ($Value); $form .= "$Name : $Value\n"; } } $from_email = trim (stripslashes ($from_email)); $form = trim (stripslashes ($form)); $subject = trim (stripslashes($subject)); $curs = time(); $xheaders = "Content-Type: text/plain;charset='iso-8859-1'\r\n"; $arxheaders = $xheaders; $xheaders .= "From:$from_email\r\n"; if (isset ($emailcc)) { $xheaders .= "Cc:$email\r\n"; } $xheaders .= "Reply-To:$from_email\r\nReturn-path:$email\r\nX-Mailer: PHP/" . phpversion(); if ( @mail ($delemail, $subject, $form, $xheaders)) { if (isset ($autoresponse)) { $autoresponse = trim (stripslashes ($autoresponse)); if ($autoresponse != "") { $arxheaders .= "From:$delemail\r\nReply-To:$delemail\r\nReturn-path:$delemail\r\nX-Mailer: PHP/" . phpversion(); @mail ($email, $subject, $autoresponse, $arxheaders); } } if (!$thankurl) { $thankurl = $PHP_SELF; echo"

Thank you

Your form has been delivered.

Click here to continue.

"; } else { header ("Location: $thankurl?reason=$PHP_SELF"); } exit(); } else { if (!$errurl) { echo"

Form Delivery Error

Your form has not been delivered. Please use your browsers back button to return to the form and resubmit.

"; } else { header("Location: $errurl"); } exit(); } } $submit = NULL; $autoresponse = NULL; $ccsend = NULL; } ?>
Home     Theatre      Poetry     Store      Contact   


For questions, comments or booking enquires, please fill out the form below.

   
Select
First Name
Last Name
Email:
Message:
   
 
   

 

 





| Home | Theatre | Poetry | Store | Contact |