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);
define('ASSETS_PATH',ROOT_PATH.'assets/default/');
//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');
exit;
}
......
......@@ -14,9 +14,7 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require_once('client.inc.php');
if(is_object($ost) && $ost->isSystemOnline()
&& (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])),
array('logo.php',)))) {
if(is_object($ost) && $ost->isSystemOnline()) {
@header('Location: index.php'); //Redirect if the system is online.
include('index.php');
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