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 .= "
".PRFLAN_169."
+ + + + ".$e_userclass->uc_dropdown('contact_visibility', varset( $pref['contact_visibility'],e_UC_PUBLIC), 'public,nobody,main,admin,classes', "tabindex='".$frm->getNext()."'")." +
Contact information and/or form will only be visible to this userclass group.
+ + "; diff --git a/e107_core/xml/default_install.xml b/e107_core/xml/default_install.xml index 3a16624a4..0627fbd53 100644 --- a/e107_core/xml/default_install.xml +++ b/e107_core/xml/default_install.xml @@ -30,6 +30,7 @@ desc 0 0 + 0 e107cookie 'e-administrator',