From ff6bd18749d1f8e60931f397ac83de3fe5aafa21 Mon Sep 17 00:00:00 2001 From: nrpatten Date: Thu, 12 Sep 2013 20:01:28 +1000 Subject: [PATCH] Create contactform.inc.php --- public/include/pages/contactform.inc.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 public/include/pages/contactform.inc.php diff --git a/public/include/pages/contactform.inc.php b/public/include/pages/contactform.inc.php new file mode 100644 index 00000000..e4f947c4 --- /dev/null +++ b/public/include/pages/contactform.inc.php @@ -0,0 +1,18 @@ +getValue('disable_contactform')) { + $_SESSION['POPUP'][] = array('CONTENT' => 'Contactform is currently disabled. Please try again later.', 'TYPE' => 'errormsg'); + $smarty->assign("CONTENT", "disabled.tpl"); +} else { + if ($setting->getValue('recaptcha_enabled')) { + require_once(INCLUDE_DIR . '/lib/recaptchalib.php'); + $smarty->assign("RECAPTCHA", recaptcha_get_html($setting->getValue('recaptcha_public_key'))); + } + + // Tempalte specifics + $smarty->assign("CONTENT", "default.tpl"); +} +?>