diff --git a/client.inc.php b/client.inc.php index 6fe324bff52eea9229f7bd774800f94fe2149ff1..262b8680c791a3e96d2e4d8ff5fbe462cee29022 100644 --- a/client.inc.php +++ b/client.inc.php @@ -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; } diff --git a/offline.php b/offline.php index ca7654c710409f91e718e790ff6340686700b5f1..04323f9e0a86d6831b6e6149ed65f3933fa88ed1 100644 --- a/offline.php +++ b/offline.php @@ -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;