diff --git a/contact.php b/contact.php index 398dc8000..17074fb5e 100644 --- a/contact.php +++ b/contact.php @@ -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; diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 03edfd05a..db54317b9 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -600,6 +600,13 @@ $text .= "