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

merge-requests/2/head
Mike Koch 10 years ago
parent bdf2460755
commit b5361d683a

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

@ -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');
}
?>

Loading…
Cancel
Save