Skip to content
Snippets Groups Projects
offline.php 920 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    /*********************************************************************
        offline.php
    
        Offline page...modify to fit your needs.
    
        Peter Rotich <peter@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:
    **********************************************************************/
    require_once('client.inc.php');
    
    if(is_object($ost) && $ost->isSystemOnline()) {
    
        @header('Location: index.php'); //Redirect if the system is online.
        include('index.php');
        exit;
    }
    $nav=null;
    require(CLIENTINC_DIR.'header.inc.php');
    ?>
    <div id="landing_page">
    <?php
    if(($page=$cfg->getOfflinePage())) {
        echo $page->getBody();
    } else {
        echo '<h1>Support Ticket System Offline</h1>';
    }
    ?>
    </div>
    <?php require(CLIENTINC_DIR.'footer.inc.php'); ?>