mirror of
https://github.com/e107inc/e107.git
synced 2025-05-06 04:06:08 +02:00
signup link only for value 1
This commit is contained in:
parent
042172096c
commit
19cadb6a8f
@ -28,7 +28,7 @@ function custom_shortcode($parm)
|
||||
$ret .= "<form method='post' action='".e_SELF.(e_QUERY ? '?'.e_QUERY : '')."'>\n<div class='loginc_div'>\n".LAN_LOGINMENU_1."<input class='tbox loginc user' type='text' name='username' size='15' value='$username' maxlength='20' /> \n".LAN_LOGINMENU_2."<input class='tbox loginc pass' type='password' name='userpass' size='15' value='' maxlength='20' /> \n";
|
||||
$ret .= ($pref['user_tracking'] == "cookie") ? "<input type='checkbox' name='autologin' value='1' />".LAN_LOGINMENU_6." \n" : "";
|
||||
$ret .= "<input class='btn btn-default button loginc' type='submit' name='userlogin' value='".LAN_LOGIN."' />";
|
||||
if($pref['user_reg'])
|
||||
if (intval($pref['user_reg'])===1)
|
||||
{
|
||||
$ret .= " <a class='loginc signup' href='".e_SIGNUP."'>".LAN_LOGINMENU_3."</a>";
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ e107::getLanguage()->bcDefs($bcDefs);
|
||||
function sc_lm_signup_link($parm='')
|
||||
{
|
||||
$pref = e107::getPref();
|
||||
if ($pref['user_reg'])
|
||||
if (intval($pref['user_reg'])===1)
|
||||
{
|
||||
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107')
|
||||
{
|
||||
@ -189,7 +189,7 @@ e107::getLanguage()->bcDefs($bcDefs);
|
||||
{
|
||||
$pref = e107::getPref();
|
||||
|
||||
if ($pref['user_reg'])
|
||||
if (intval($pref['user_reg'])===1)
|
||||
{
|
||||
if(isset($pref['user_reg_veri']) && $pref['user_reg_veri'] == 1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user