BUG-14988 Administrative Interfaces are Accessible... IMPROVEMENT

- Change of variable to uppercase.
This commit is contained in:
Marco Antonio Nina
2014-06-25 08:50:01 -04:00
parent 0041f066af
commit 592da16515
2 changed files with 4 additions and 4 deletions

View File

@@ -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 ();

View File

@@ -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'];