1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 13:52:35 +02:00

Contact page visibility preference added. eg. Limit the contact form to members or a userclass if required.

This commit is contained in:
Cameron
2015-05-31 12:50:16 -07:00
parent a7cc11f5ee
commit 1f8092d9c7
3 changed files with 14 additions and 0 deletions

View File

@@ -13,6 +13,12 @@
require_once("class2.php");
//define('e_HANDLER', "e107_handlers/");
// security image may be disabled by removing the appropriate shortcodes from the template.
$active = varset($pref['contact_visibility'], e_UC_PUBLIC);
if(!check_class($active))
{
e107::getRedirect()->go(e_HTTP."index.php");
}
require_once(e_HANDLER."secure_img_handler.php");
$sec_img = new secure_image;