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

Fix logo display in offline mode

parent 852f8466
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,8 @@ define('OSTCLIENTINC',TRUE); ...@@ -29,7 +29,8 @@ 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(!is_object($ost) || !$ost->isSystemOnline()) { if (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])), array('logo.php',))
&& !(is_object($ost) && $ost->isSystemOnline())) {
include('./offline.php'); include('./offline.php');
exit; exit;
} }
......
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
vim: expandtab sw=4 ts=4 sts=4: vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/ **********************************************************************/
require_once('client.inc.php'); require_once('client.inc.php');
if(is_object($ost) && $ost->isSystemOnline() if(is_object($ost) && $ost->isSystemOnline()) {
&& (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])),
array('logo.php',)))) {
@header('Location: index.php'); //Redirect if the system is online. @header('Location: index.php'); //Redirect if the system is online.
include('index.php'); include('index.php');
exit; exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment