From a9ee8d9d80bdc21a35542fb1befaeaa6425c6465 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 19 Jul 2013 12:58:21 -0500 Subject: [PATCH] Logo is not displayed in the offline page After merging the custom logo patch, the logo on the offline page disappeared. This addresses the issue by exempting the logo.php script for the offline redirect in client.inc.php --- include/client/header.inc.php | 2 +- offline.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/client/header.inc.php b/include/client/header.inc.php index 781df6e59..6636c4dde 100644 --- a/include/client/header.inc.php +++ b/include/client/header.inc.php @@ -21,7 +21,7 @@ header("Content-Type: text/html; charset=UTF-8\r\n"); <div id="container"> <div id="header"> <a id="logo" href="<?php echo ROOT_PATH; ?>index.php" - title="Support Center"><img src="logo.php" border=0 alt="<?php + title="Support Center"><img src="<?php echo ROOT_PATH; ?>logo.php" border=0 alt="<?php echo $ost->getConfig()->getTitle(); ?>" style="height: 5em"></a> <p> diff --git a/offline.php b/offline.php index 04323f9e0..ca7654c71 100644 --- a/offline.php +++ b/offline.php @@ -14,7 +14,9 @@ vim: expandtab sw=4 ts=4 sts=4: **********************************************************************/ 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. include('index.php'); exit; -- GitLab