diff --git a/admin/index.php b/admin/index.php index 4dcf0239..a4031e58 100644 --- a/admin/index.php +++ b/admin/index.php @@ -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'); diff --git a/inc/header.inc.php b/inc/header.inc.php index 0f76fa02..56edd27f 100644 --- a/inc/header.inc.php +++ b/inc/header.inc.php @@ -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'); } ?>