1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Redirect if Contact page is unused.

This commit is contained in:
CaMer0n
2010-07-27 10:25:17 +00:00
parent 3e2a2f40b8
commit 49da61acef

View File

@@ -30,7 +30,16 @@ require_once(HEADERF);
if (!$CONTACT_FORM) {
if (file_exists(THEME."contact_template.php")) {
require_once(THEME."contact_template.php");
} else {
}
else
{
// Redirect Page if no contact-form or contact-info is available.
if(($pref['sitecontacts']== e_UC_NOBODY) && trim(SITECONTACTINFO) == "")
{
e107::getRedirect()->redirect(e_BASE."index.php");
exit;
}
require_once(e_THEME."templates/contact_template.php");
}
}