mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Membersonly enhancement.(option to redirect to login page or membersonly splash page). User Login page minor HTML cleanup. PHP Notice removal.
This commit is contained in:
@@ -177,6 +177,28 @@ class login_shortcodes extends e_shortcode
|
||||
return $text;
|
||||
|
||||
}
|
||||
|
||||
function sc_login_table_signup_link($parm='')
|
||||
{
|
||||
if(empty($this->userReg))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return "<a href='".e_SIGNUP."'>".LAN_LOGIN_11."</a>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
function sc_login_table_fpw_link($parm='')
|
||||
{
|
||||
if(empty($this->userReg))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return "<a href='".e_BASE."fpw.php'>".LAN_LOGIN_12."</a>";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@ $LOGIN_TEMPLATE['page']['header'] = "
|
||||
$LOGIN_TEMPLATE['page']['body'] = '
|
||||
|
||||
<h2 class="form-signin-heading">'.LAN_LOGIN_4.'</h2>';
|
||||
if ($pref['password_CHAP'] == 2)
|
||||
if (e107::pref('core', 'password_CHAP') == 2)
|
||||
{
|
||||
$LOGIN_TEMPLATE['page']['body'] .= "
|
||||
<div style='text-align: center' id='nologinmenuchap'>"."Javascript must be enabled in your browser if you wish to log into this site"."
|
||||
@@ -110,6 +110,7 @@ $LOGIN_WRAPPER['page']['LOGIN_TABLE_SECIMG_TEXTBOC'] = "<div class='form-group'>
|
||||
$LOGIN_WRAPPER['page']['LOGIN_TABLE_REMEMBERME'] = "<div class='form-group checkbox'>{---}</div>";
|
||||
$LOGIN_WRAPPER['page']['LOGIN_TABLE_SUBMIT'] = "<div class='form-group'>{---}</div>";
|
||||
$LOGIN_WRAPPER['page']['LOGIN_TABLE_FOOTER_USERREG'] = "<div class='form-group'>{---}</div>";
|
||||
// $LOGIN_WRAPPER['page']['LOGIN_TABLE_FPW_LINK'] = "<div class='form-group'>{---}</div>";
|
||||
|
||||
$LOGIN_TEMPLATE['page']['body'] .= '
|
||||
{LOGIN_TABLE_USERNAME}
|
||||
@@ -122,8 +123,9 @@ $LOGIN_TEMPLATE['page']['body'] .= '
|
||||
';
|
||||
|
||||
$LOGIN_TEMPLATE['page']['footer'] = "
|
||||
<div style='margin-bottom:100px; width:70%;margin-right:auto;margin-left:auto'>
|
||||
<div style='text-align:center'>{LOGIN_TABLE_FOOTER_USERREG}</div>
|
||||
<div style='margin-bottom:100px; margin-right:auto;margin-left:auto'>
|
||||
<div style='text-align:right'><p>{LOGIN_TABLE_SIGNUP_LINK}</p></div>
|
||||
<div style='text-align:right'><p>{LOGIN_TABLE_FPW_LINK}</p></div>
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
|
@@ -29,7 +29,7 @@ $MEMBERSONLY_END = "<div>";
|
||||
|
||||
$MEMBERSONLY_TEMPLATE['default']['caption'] = LAN_MEMBERS_0;
|
||||
$MEMBERSONLY_TEMPLATE['default']['header'] = "<div class='container text-center' style='margin-right:auto;margin-left:auto'><br /><br />";
|
||||
$MEMBERSONLY_TEMPLATE['default']['body'] = "<div class='alert alert-block alert-danger'>
|
||||
$MEMBERSONLY_TEMPLATE['default']['body'] = "<div class='alert alert-block text-danger'>
|
||||
{MEMBERSONLY_RESTRICTED_AREA} {MEMBERSONLY_LOGIN}
|
||||
{MEMBERSONLY_SIGNUP}<br /><br />{MEMBERSONLY_RETURNTOHOME}
|
||||
|
||||
|
Reference in New Issue
Block a user