retrieveContentInfoByType("Contact Us"); if ($sitecontentinfo) { $headertagtitle = $sitecontentinfo["title"]; $headertagdescription = $sitecontentinfo["description"]; $headertagkeywords = $sitecontentinfo["keywords"]; $sitecontent = $sitecontentinfo["content"]; } else { $headertagtitle = ""; $headertagdescription = ""; $headertagkeywords = ""; $sitecontent = ""; } # ---------------------------------------------------------------------------------------------------- # SUBMIT # ---------------------------------------------------------------------------------------------------- if ($_SERVER["REQUEST_METHOD"] == "POST") { $_POST["email"] = system_denyInjections($_POST["email"]); $_POST["name"] = system_denyInjections($_POST["name"]); $_POST["title"] = system_denyInjections($_POST["title"]); $_POST["messageBody"] = system_denyInjections($_POST["messageBody"]); } # ---------------------------------------------------------------------------------------------------- # HEADER # ---------------------------------------------------------------------------------------------------- $headertag_title = $headertagtitle; $headertag_description = $headertagdescription; $headertag_keywords = $headertagkeywords; include(EDIRECTORY_ROOT."/layout/header.php"); ?>
".$sitecontent.""; } ?> ", "text/html"); } } elseif ($sitemgr_emails[0]) { foreach ($sitemgr_emails as $sitemgr_email) { system_mail($sitemgr_email, "[Message sent through ".EDIRECTORY_TITLE." - Contact Us] ".stripslashes($subject), stripslashes($messageBody), "$from_name <$from_email>", "text/html"); } } $message_style = "successMessage"; $contactus_message = system_showText(LANG_CONTACTMSGSUCCESS); unset($_POST["email"]); unset($_POST["name"]); unset($_POST["title"]); unset($_POST["messageBody"]); } else { if ($nameerror) { $contactus_message .= system_showText(LANG_MSG_CONTACT_TYPE_NAME)."
"; } if ($emailerror) { $contactus_message .= system_showText(LANG_MSG_CONTACT_ENTER_VALID_EMAIL)."
"; } if ($titleerror) { $contactus_message .= system_showText(LANG_MSG_CONTACT_TYPE_SUBJECT)."
"; } if ($messageerror) { $contactus_message .= system_showText(LANG_MSG_CONTACT_TYPE_MESSAGE)."
"; } if ($captchaerror) { $contactus_message .= system_showText(LANG_MSG_CONTACT_TYPE_CODE)."
"; } $message_style = "errorMessage"; $contactus_message .= system_showText(LANG_MSG_CONTACT_CORRECTIT_TRYAGAIN); } } /////////////////////////////////////////////////////////// ?>