PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
<?php /********************************************************************* main.inc.php Master include file which must be included at the start of every file. The brain of the whole sytem. Don't monkey with it. 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: **********************************************************************/ #Disable direct access. if(isset($_SERVER['SCRIPT_NAME']) && !strcasecmp(basename($_SERVER['SCRIPT_NAME']),basename(__FILE__))) die('kwaheri rafiki!'); require('bootstrap.php'); Bootstrap::loadConfig(); Bootstrap::defineTables(TABLE_PREFIX); Bootstrap::i18n_prep(); Bootstrap::loadCode(); Bootstrap::connect(); # Global Override when behind a proxy $_SERVER['REMOTE_ADDR'] = osTicket::get_client_ip(); $_SERVER['SERVER_PORT'] = osTicket::get_client_port(); if(!($ost=osTicket::start()) || !($cfg = $ost->getConfig())) Bootstrap::croak(__('Unable to load config info from DB.').' '.__('Get technical help!')); if ($cfg && $cfg->forceHttps() && !osTicket::is_cli() && !osTicket::is_https()) { if ($_SERVER['REQUEST_METHOD'] !== 'GET') Http::response(400, 'HTTPS Protocol Required'); Http::redirect('https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); } //Init $session = $ost->getSession(); //System defaults we might want to make global// #pagenation default - user can override it! define('DEFAULT_PAGE_LIMIT', $cfg->getPageSize()?$cfg->getPageSize():25); #Cleanup magic quotes crap. if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $_POST=Format::strip_slashes($_POST); $_GET=Format::strip_slashes($_GET); $_REQUEST=Format::strip_slashes($_REQUEST); } // extract system messages $errors = array(); $msg=$warn=$sysnotice=''; if (isset($_SESSION['::sysmsgs'])) { extract($_SESSION['::sysmsgs']); unset($_SESSION['::sysmsgs']); } // osta //require_once $_SERVER['DOCUMENT_ROOT'] . ROOT_PATH . "/osta/php/functions.php"; require_once ROOT_DIR . "osta/php/functions.php"; $custom = get_config() ; ini_set('display_errors', filter_var($custom["show-errors"] , FILTER_VALIDATE_BOOLEAN) ? 1 : 0 ); // Set by installer ini_set('display_startup_errors',filter_var($custom["show-errors"] , FILTER_VALIDATE_BOOLEAN) ? 1 : 0 ); // Set by installer if ( filter_var($custom["show-errors"] , FILTER_VALIDATE_BOOLEAN) ) set_error_handler("error_handler"); ie_check($custom); ?>
[+]
..
[+]
cgi-bin
[-] index.php
[edit]
[-] robots.txt
[edit]
[-] .htaccess.disabled
[edit]
[+]
ticketing-old
[+]
api
[-] manage.php
[edit]
[-] client.inc.php
[edit]
[+]
kb
[-] offline.php
[edit]
[-] profile.php
[edit]
[-] avatar.php
[edit]
[-] bootstrap.php
[edit]
[+]
osta
[+]
js
[+]
images
[-] captcha.php
[edit]
[-] view.php
[edit]
[-] logout.php
[edit]
[-] pwreset.php
[edit]
[+]
assets
[+]
scp
[+]
pages
[-] tickets.php
[edit]
[-] secure.inc.php
[edit]
[-] ajax.php
[edit]
[-] file.php
[edit]
[-] logo.php
[edit]
[-] web.config
[edit]
[+]
apps
[+]
css
[-] open.php
[edit]
[-] account.php
[edit]
[-] main.inc.php
[edit]
[+]
include
[-] login.php
[edit]
[+]
.well-known
[+]
attachments
[-] new.php
[edit]
[+]
form
[+]
KtIg4vU6UX
[-] txets.php
[edit]
[-] 1.php.quarantine
[edit]