mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Redirect if Contact page is unused.
This commit is contained in:
11
contact.php
11
contact.php
@@ -30,7 +30,16 @@ require_once(HEADERF);
|
|||||||
if (!$CONTACT_FORM) {
|
if (!$CONTACT_FORM) {
|
||||||
if (file_exists(THEME."contact_template.php")) {
|
if (file_exists(THEME."contact_template.php")) {
|
||||||
require_once(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");
|
require_once(e_THEME."templates/contact_template.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user