diff --git a/admin/admin_settings.php b/admin/admin_settings.php index a0899dd4..4ac24a06 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -1817,20 +1817,6 @@ if ( defined('HESK_DEMO') ) -
- -
-
- -
-
-
diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php index d409ba78..bb29ae1c 100644 --- a/admin/admin_settings_save.php +++ b/admin/admin_settings_save.php @@ -537,7 +537,6 @@ $set['hesk_version'] = $hesk_settings['hesk_version']; // Save the modsForHesk_settings.inc.php file $set['rtl'] = empty($_POST['rtl']) ? 0 : 1; $set['show-icons'] = empty($_POST['show-icons']) ? 0 : 1; -$set['maintenance-mode'] = empty($_POST['maintenance-mode']) ? 0 : 1; $set['navbarBackgroundColor'] = hesk_input(hesk_POST('navbarBackgroundColor')); $set['navbarBrandColor'] = hesk_input(hesk_POST('navbarBrandColor')); $set['navbarBrandHoverColor'] = hesk_input(hesk_POST('navbarBrandHoverColor')); @@ -568,10 +567,7 @@ $modsForHesk_settings[\'questionMarkColor\'] = \''.$set['questionMarkColor'].'\' $modsForHesk_settings[\'rtl\'] = '.$set['rtl'].'; //-- Set this to 1 to show icons next to navigation menu items -$modsForHesk_settings[\'show_icons\'] = '.$set['show-icons'].'; - -//-- Set this to 1 to enable maintenance mode -$modsForHesk_settings[\'maintenance_mode\'] = '.$set['maintenance-mode'].';'; +$modsForHesk_settings[\'show_icons\'] = '.$set['show-icons'].';'; // Write the file if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) ) diff --git a/admin/index.php b/admin/index.php index f23f0ffe..25f222b6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -34,7 +34,6 @@ 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 90b4810e..70375a1a 100644 --- a/inc/header.inc.php +++ b/inc/header.inc.php @@ -35,10 +35,6 @@ /* Check if this is a valid include */ if (!defined('IN_SCRIPT')) {die('Invalid attempt');} require(HESK_PATH . 'modsForHesk_settings.inc.php'); -// Check to see if we're in maintenance mode before sending anything to the DOM -if ($modsForHesk_settings['maintenance_mode'] && !defined('ON_MAINTENANCE_PAGE') && !defined('ON_LOGIN_PAGE')) { - header('Location: '.HESK_PATH.'maintenance.php'); -} ?> diff --git a/maintenance.php b/maintenance.php deleted file mode 100644 index 0037c119..00000000 --- a/maintenance.php +++ /dev/null @@ -1,24 +0,0 @@ - -
-
-
-

The helpdesk is currently undergoing maintenance. Please come back later.

-
-
- \ No newline at end of file diff --git a/modsForHesk_settings.inc.php b/modsForHesk_settings.inc.php index fa9c9135..2d9a5780 100644 --- a/modsForHesk_settings.inc.php +++ b/modsForHesk_settings.inc.php @@ -17,7 +17,4 @@ $modsForHesk_settings['questionMarkColor'] = '#000000'; $modsForHesk_settings['rtl'] = 0; //-- Set this to 1 to show icons next to navigation menu items -$modsForHesk_settings['show_icons'] = 0; - -//-- Set this to 1 to enable maintenance mode -$modsForHesk_settings['maintenance_mode'] = 0; \ No newline at end of file +$modsForHesk_settings['show_icons'] = 0; \ No newline at end of file