From a73140a10fb4dad3130f8dc60e4595beb8fb785a Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 24 Jul 2013 04:15:20 -0700 Subject: [PATCH] Disable Sign-up link when user-registration is not active. --- class2.php | 1 + e107_themes/bootstrap/theme_shortcodes.php | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/class2.php b/class2.php index 7efc326dc..cb5027d9f 100644 --- a/class2.php +++ b/class2.php @@ -630,6 +630,7 @@ define('SITEADMINEMAIL', $pref['siteadminemail']); define('SITEDISCLAIMER', $tp->toHTML($pref['sitedisclaimer'], '', 'emotes_off,defs')); define('SITECONTACTINFO', $tp->toHTML($pref['sitecontactinfo'], true, 'emotes_off,defs')); define('SITEEMAIL', vartrue($pref['replyto_email'],$pref['siteadminemail'])); +define('USER_REGISTRATION', vartrue($pref['user_reg'],false)); // User Registration System Active or Not. if(is_array($pref['xurl'])) { diff --git a/e107_themes/bootstrap/theme_shortcodes.php b/e107_themes/bootstrap/theme_shortcodes.php index 9145dacb0..2dca09c68 100644 --- a/e107_themes/bootstrap/theme_shortcodes.php +++ b/e107_themes/bootstrap/theme_shortcodes.php @@ -23,8 +23,16 @@ class theme_shortcodes extends e_shortcode if(!USERID) // Logged Out. { $text = ' -