Server IP : 184.154.167.98 / Your IP : 18.216.32.251 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/mesa/scp/apps/ |
Upload File : |
<?php /********************************************************************* dispatcher.php Dispatcher for staff applications Jared Hancock <jared@osticket.com> 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: **********************************************************************/ if (basename($_SERVER['SCRIPT_NAME'])==basename(__FILE__)) die('Access denied'); //Say hi to our friend.. require('staff.inc.php'); //Clean house...don't let the world see your crap. #ini_set('display_errors','0'); //Disable error display #ini_set('display_startup_errors','0'); //TODO: disable direct access via the browser? i,e All request must have REFER? if(!defined('INCLUDE_DIR')) Http::response(500, 'Server configuration error'); require_once INCLUDE_DIR.'/class.dispatcher.php'; $dispatcher = new Dispatcher(); $PI = Osticket::get_path_info(); if (strpos(strtolower($PI), '/admin/') === 0) { require('admin.inc.php'); $PI = substr($PI, 6); Signal::send('apps.admin', $dispatcher); } else { Signal::send('apps.scp', $dispatcher); } $nav->setActiveTab('apps'); # Call the respective function print $dispatcher->resolve($PI);