Skip to content
Snippets Groups Projects
api.inc.php 856 B
Newer Older
  • Learn to ignore specific revisions
  • Jared Hancock's avatar
    Jared Hancock committed
    <?php
    /*********************************************************************
        api.inc.php
    
    
        File included on every API page...handles common includes.
    
    Jared Hancock's avatar
    Jared Hancock committed
    
        Peter Rotich <peter@osticket.com>
    
        Copyright (c)  2006-2013 osTicket
    
    Jared Hancock's avatar
    Jared Hancock committed
        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');
    
    
    // Disable sessions for the API. API should be considered stateless and
    // shouldn't chew up database records to store sessions
    
    if (!defined('DISABLE_SESSION'))
        define('DISABLE_SESSION', true);
    
    Jared Hancock's avatar
    Jared Hancock committed
    require_once('../main.inc.php');
    require_once(INCLUDE_DIR.'class.http.php');
    require_once(INCLUDE_DIR.'class.api.php');
    
    ?>