Skip to content
Snippets Groups Projects
Commit f08a796e authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #636 from greezybacon/issue/offline-logo


Logo is not displayed in the offline page

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 77d45242 a9ee8d9d
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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;
......
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