BUG-14988 Administrative Interfaces are Accessible... IMPROVEMENT
- Change of variable to uppercase.
This commit is contained in:
@@ -141,11 +141,11 @@ $aField ['LOGIN_VERIFY_MSG'] = G::loadTranslation ('LOGIN_VERIFY_MSG');
|
||||
$aField['USER_LANG'] = SYS_LANG;
|
||||
|
||||
$G_PUBLISH = new Publisher ();
|
||||
if (!defined('ws_in_login')) {
|
||||
define('ws_in_login', 'serverconf');
|
||||
if (!defined('WS_IN_LOGIN')) {
|
||||
define('WS_IN_LOGIN', 'serverconf');
|
||||
}
|
||||
$fileLogin = 'login/sysLogin';
|
||||
switch (ws_in_login) {
|
||||
switch (WS_IN_LOGIN) {
|
||||
case 'serverconf':
|
||||
//Get Server Configuration
|
||||
$oServerConf = & serverConf::getSingleton ();
|
||||
|
||||
@@ -316,7 +316,7 @@ define( 'MEMCACHED_ENABLED', $config['memcached'] );
|
||||
define( 'MEMCACHED_SERVER', $config['memcached_server'] );
|
||||
define( 'TIME_ZONE', $config['time_zone'] );
|
||||
|
||||
define ('ws_in_login', isset($config['ws_in_login']) ? $config['ws_in_login'] : 'serverconf');
|
||||
define ('WS_IN_LOGIN', isset($config['WS_IN_LOGIN']) ? $config['WS_IN_LOGIN'] : 'serverconf');
|
||||
|
||||
// IIS Compatibility, SERVER_ADDR doesn't exist on that env, so we need to define it.
|
||||
$_SERVER['SERVER_ADDR'] = isset( $_SERVER['SERVER_ADDR'] ) ? $_SERVER['SERVER_ADDR'] : $_SERVER['SERVER_NAME'];
|
||||
|
||||
Reference in New Issue
Block a user