forked from Hy3n4/OSTicket-Reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
secure.inc.php
26 lines (22 loc) · 921 Bytes
/
secure.inc.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
<?php
/*********************************************************************
secure.inc.php
File included on every client's "secure" pages
Peter Rotich <[email protected]>
Copyright (c) 2006-2010 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:
$Id: secure.inc.php,v 1.1.2.2 2010/04/15 15:13:56 carlos.delfino Exp $
**********************************************************************/
if(!strcasecmp(basename($_SERVER['SCRIPT_NAME']),basename(__FILE__))) die('Kwaheri rafiki!');
if(!file_exists('client.inc.php')) die('Fatal Error.');
require_once('client.inc.php');
//User must be logged in!
if(!$thisclient || !$thisclient->getId() || !$thisclient->isValid()){
require('./login.php');
exit;
}
$thisclient->refreshSession();
?>