Don't show the maintenance page when on the login screen

This commit is contained in:
Mike Koch 2014-09-14 01:40:58 -04:00
parent bdf2460755
commit b5361d683a
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@
define('IN_SCRIPT',1);
define('HESK_PATH','../');
define('ON_LOGIN_PAGE',1);
/* Get all the required files and functions */
require(HESK_PATH . 'hesk_settings.inc.php');

View File

@ -36,7 +36,7 @@
if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
require(HESK_PATH . 'nuMods_settings.inc.php');
// Check to see if we're in maintenance mode before sending anything to the DOM
if ($nuMods_settings['maintenance_mode'] && !defined('ON_MAINTENANCE_PAGE')) {
if ($nuMods_settings['maintenance_mode'] && !defined('ON_MAINTENANCE_PAGE') && !defined('ON_LOGIN_PAGE')) {
header('Location: '.HESK_PATH.'maintenance.php');
}
?>