1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Merge pull request #2608 from yesszus/patch-1

Update lan_admin.php
This commit is contained in:
Cameron
2017-05-02 15:37:40 -07:00
committed by GitHub
4 changed files with 4 additions and 2 deletions

View File

@@ -535,7 +535,7 @@ TMPO;
if($us->passwordAPIExists() === true && $us->getDefaultHashType() !== PASSWORD_E107_PHP && e107::pref('core','password_CHAP')==0) if($us->passwordAPIExists() === true && $us->getDefaultHashType() !== PASSWORD_E107_PHP && e107::pref('core','password_CHAP')==0)
{ {
$message = "It is HIGHLY recommended that you [change your password encoding] to the PHP Default. (Password hashes will be automatically upgraded during user login.)"; $message = LAN_PASSWORD_WARNING;
$srch = array('[',']'); $srch = array('[',']');
$repl = array("<a class='alert-link' href='".e_ADMIN."prefs.php#nav-core-prefs-security'>","</a>"); $repl = array("<a class='alert-link' href='".e_ADMIN."prefs.php#nav-core-prefs-security'>","</a>");
$mes->addWarning(str_replace($srch,$repl,$message)); $mes->addWarning(str_replace($srch,$repl,$message));

View File

@@ -1411,7 +1411,7 @@ $text .= "
if(function_exists('password_verify')) // ie. php 5.5 or higher if(function_exists('password_verify')) // ie. php 5.5 or higher
{ {
$pwdEncodeOpts[3] = "PHP Default (Preferred)"; $pwdEncodeOpts[3] = PRFLAN_276;
} }

View File

@@ -332,6 +332,7 @@ define("LAN_OPTIONAL", "optional");
define("LAN_INACTIVE","Inactive"); define("LAN_INACTIVE","Inactive");
define("LAN_ACTIVATE","Activate"); define("LAN_ACTIVATE","Activate");
define("LAN_ACCEPT","Accept"); define("LAN_ACCEPT","Accept");
define("LAN_PASSWORD_WARNING", "It is HIGHLY recommended that you [change your password encoding] to the PHP Default. (Password hashes will be automatically upgraded during user login.)");
define("LAN_PENDING","Pending"); define("LAN_PENDING","Pending");
define("LAN_SUBMITTED","Submitted"); define("LAN_SUBMITTED","Submitted");
define("LAN_POSTED_BY_X","Posted by [x] [y]"); define("LAN_POSTED_BY_X","Posted by [x] [y]");

View File

@@ -294,3 +294,4 @@ define("PRFLAN_272", "Session Lifetime");
define("PRFLAN_273", "Lifetime in seconds. 0 = until the browser is closed. "); define("PRFLAN_273", "Lifetime in seconds. 0 = until the browser is closed. ");
define("PRFLAN_274", "Contact form will only be visible to this userclass group."); define("PRFLAN_274", "Contact form will only be visible to this userclass group.");
define("PRFLAN_275", "View this page using https (SSL) to modify this option"); define("PRFLAN_275", "View this page using https (SSL) to modify this option");
define("PRFLAN_276", "PHP Default (Preferred)");