forked from osTicket/osTicket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logo.php
33 lines (26 loc) · 1.05 KB
/
logo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*********************************************************************
logo.php
Simple logo to facilitate serving a customized client-side logo from
osTicet. The logo is configurable in Admin Panel -> Settings -> Pages
Peter Rotich <[email protected]>
Jared Hancock <[email protected]>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
// Don't update the session for inline image fetches
if (!function_exists('noop')) { function noop() {} }
session_set_save_handler('noop','noop','noop','noop','noop','noop');
define('DISABLE_SESSION', true);
require('client.inc.php');
$ttl = 86400; // max-age
if (($logo = $ost->getConfig()->getClientLogo())) {
$logo->display(false, $ttl);
}
header("Cache-Control: private, max-age=$ttl");
header('Pragma: private');
header('Location: '.ASSETS_PATH.'images/logo.png');
?>