diff --git a/inc/header.inc.php b/inc/header.inc.php index e8d28894..0f76fa02 100644 --- a/inc/header.inc.php +++ b/inc/header.inc.php @@ -35,6 +35,10 @@ /* Check if this is a valid include */ 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')) { + header('Location: '.HESK_PATH.'maintenance.php'); +} ?> @@ -62,6 +66,7 @@ require(HESK_PATH . 'nuMods_settings.inc.php'); +
The helpdesk is currently undergoing maintenance. Please come back later.
+