golden hour
/home/doctorbruno/public_html/taeionline.com/support/api
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
204 B
Del
OK
api.inc.php
1.02 KB
Del
OK
cron.php
710 B
Del
OK
error_log
5.6 KB
Del
OK
http.php
998 B
Del
OK
index.php
37 B
Del
OK
pipe.php
923 B
Del
OK
Edit: api.inc.php
<?php /********************************************************************* api.inc.php File included on every API page...handles common includes. 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: **********************************************************************/ file_exists('../main.inc.php') or die('System Error'); /* * Why API_SESSION ?? * It indicates that the session is API - which session handler should handle as * stateless for new sessions. * Existing session continue to work as expected - this it's important for * SSO authentication, which uses /api/auth/* endpoints. Such calls are not * stateless. * */ define('API_SESSION', true); // APICALL const. define('APICALL', true); require_once('../main.inc.php'); require_once(INCLUDE_DIR.'class.http.php'); require_once(INCLUDE_DIR.'class.api.php'); ?>
Save