mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Added clearer Login options and labels (LANS). username/password, email/password and username or email/password.
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/languages/English.php,v $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2008-02-06 00:23:28 $
|
||||
| $Author: secretr $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2009-03-06 20:09:08 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -75,5 +75,7 @@ define('LOGIN_MENU_L45b', 'plugin'); //post
|
||||
define('LOGIN_MENU_L46', 'recent items -');
|
||||
define('LOGIN_MENU_L47', 'Login menu - Recent plugin additions');
|
||||
define('LOGIN_MENU_L48', 'Menu Config');
|
||||
define('LOGIN_MENU_L49', 'Email: ');
|
||||
define('LOGIN_MENU_L50', 'Username or Email: ');
|
||||
|
||||
?>
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_shortcodes.php,v $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2008-06-13 20:20:22 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2009-03-06 20:09:08 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@@ -21,10 +21,24 @@ global $tp;
|
||||
$login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
||||
/*
|
||||
SC_BEGIN LM_USERNAME_INPUT
|
||||
global $pref;
|
||||
return "<input class='tbox login user' type='text' name='username' id='username' size='15' value='' maxlength='".varset($pref['loginname_maxlength'],30)."' />\n";
|
||||
global $pref;
|
||||
return "<input class='tbox login user' type='text' name='username' id='username' size='15' value='' maxlength='".varset($pref['loginname_maxlength'],30)."' />\n";
|
||||
SC_END
|
||||
|
||||
SC_BEGIN LM_USERNAME_LABEL
|
||||
if($pref['allowEmailLogin']==1)
|
||||
{
|
||||
return LOGIN_MENU_L49;
|
||||
}
|
||||
|
||||
if($pref['allowEmailLogin']==2)
|
||||
{
|
||||
return LOGIN_MENU_L50;
|
||||
}
|
||||
return LOGIN_MENU_L1;
|
||||
SC_END
|
||||
|
||||
|
||||
SC_BEGIN LM_PASSWORD_INPUT
|
||||
global $pref;
|
||||
$t_password = "<input class='tbox login pass' type='password' name='userpass' id='userpass' size='15' value='' maxlength='30' />\n";
|
||||
@@ -32,6 +46,11 @@ if (!USER && isset($_SESSION['challenge']) && varset($pref['password_CHAP'],0))
|
||||
return $t_password;
|
||||
SC_END
|
||||
|
||||
SC_BEGIN LM_PASSWORD_LABEL
|
||||
return LOGIN_MENU_L2;
|
||||
SC_END
|
||||
|
||||
|
||||
SC_BEGIN LM_IMAGECODE
|
||||
global $use_imagecode, $sec_img;
|
||||
//DEPRECATED - use LM_IMAGECODE_NUMBER, LM_IMAGECODE_BOX instead
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_template.php,v $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2008-12-10 16:37:17 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2009-03-06 20:09:08 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -72,9 +72,9 @@ if (!isset($LOGIN_MENU_FORM)){
|
||||
}
|
||||
|
||||
$LOGIN_MENU_FORM .= "
|
||||
".LOGIN_MENU_L1."<br />
|
||||
{LM_USERNAME_LABEL}<br />
|
||||
{LM_USERNAME_INPUT}<br />
|
||||
".LOGIN_MENU_L2."<br />
|
||||
{LM_PASSWORD_LABEL}<br />
|
||||
{LM_PASSWORD_INPUT}<br />
|
||||
{LM_IMAGECODE_NUMBER}{LM_IMAGECODE_BOX}
|
||||
{LM_LOGINBUTTON}
|
||||
|
Reference in New Issue
Block a user