mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Display message to main admin if registration is disabled.
This commit is contained in:
parent
dd22369ed5
commit
1dff46e88d
11
signup.php
11
signup.php
@ -284,7 +284,16 @@ if(getperms('0')) // allow main admin to view signup page for design/testing.
|
||||
{
|
||||
//$mes = e107::getMessage();
|
||||
//$mes->debug("You are currently logged in.");
|
||||
$SIGNUP_BEGIN = "<div class='alert alert-block alert-error text-center'>".LAN_SIGNUP_112."</div>". $SIGNUP_BEGIN;
|
||||
|
||||
$adminMsg = LAN_SIGNUP_112;
|
||||
|
||||
if($pref['user_reg'] != 1)
|
||||
{
|
||||
$adminMsg .= "<br />User registration is currently disabled";
|
||||
}
|
||||
|
||||
$SIGNUP_BEGIN = "<div class='alert alert-block alert-error text-center'>".$adminMsg."</div>". $SIGNUP_BEGIN;
|
||||
unset($adminMsg);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user