Server IP : 184.154.167.98 / Your IP : 3.145.91.108 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/public_html/mesa/include/ |
Upload File : |
<?php /********************************************************************* class.controller.php Peter Rotich Copyright (c) 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: **********************************************************************/ abstract class Controller { /* * access * * This routine can be defined downstream to check if user has * permission to call routines in the controller. * */ function access() { return true; } // Wrapper for onFatalError public function exerr($code, $error='') { return $this->onFatalError($code, $error); } public function onFatalError($code, $error) { $this->onError($code, $error); // On error should exit but we're making doubly sure $this->response($code, $error); exit(); } protected function response($code, $response) { Http::response($code, $response); exit(); } abstract function onError($code, $error, $title=null, $logOnly=false); }