mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Display message to main admin if registration is disabled.
This commit is contained in:
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 = e107::getMessage();
|
||||||
//$mes->debug("You are currently logged in.");
|
//$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user