-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathoffline.php
executable file
·45 lines (41 loc) · 1.4 KB
/
offline.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
34
35
36
37
38
39
40
41
42
43
44
45
<?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 class="fullpage app blank sidebar-opened">
<article class="content">
<div class="error-card global">
<div class="error-container">
<?php
if(($page=$cfg->getOfflinePage())) {
echo $page->getBodyWithImages();
} else {
echo '<h2 class="error-title">'.__('Support Ticket System Offline').'</h1>';
}
?>
</div>
<div class="error-container">
<br>
<a class="btn btn-primary" href="index.php">
<i class="fa fa-angle-left"></i> Try Again</a>
</div>
</div>
</article>
</div>
<?php require(CLIENTINC_DIR.'footer.inc.php'); ?>