Skip to content
Snippets Groups Projects
Commit 6bb78438 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Allow usage of file.php if system is offline

parent b38b3ca7
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ define('OSTCLIENTINC',TRUE); ...@@ -29,7 +29,7 @@ define('OSTCLIENTINC',TRUE);
define('ASSETS_PATH',ROOT_PATH.'assets/default/'); define('ASSETS_PATH',ROOT_PATH.'assets/default/');
//Check the status of the HelpDesk. //Check the status of the HelpDesk.
if (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])), array('logo.php',)) if (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])), array('logo.php','file.php'))
&& !(is_object($ost) && $ost->isSystemOnline())) { && !(is_object($ost) && $ost->isSystemOnline())) {
include(ROOT_DIR.'offline.php'); include(ROOT_DIR.'offline.php');
exit; exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment