Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    Allow custom logo integration on client site · 6dc05fba
    Jared Hancock authored
    Administrators are allowed to upload one or more logos and then select from
    the uploaded logos to set one for the client site. Logos can also be deleted
    on settings->pages submission
    6dc05fba
logo.php 980 B
<?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 <peter@osticket.com>
    Jared Hancock <jared@osticket.com>
    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');

if (($logo = $ost->getConfig()->getClientLogo())) {
    $logo->display();
} else {
    header('Location: '.ASSETS_PATH.'images/logo.png');
}

?>