Location: PHPKode > projects > osTicket > osTicket-osTicket-1.7-86abb65/include/ajax.config.php
<?php
/*********************************************************************
    ajax.content.php

    AJAX interface for content fetching...allowed methods.

    Peter Rotich <hide@address.com>
    Copyright (c)  2006-2012 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(!defined('INCLUDE_DIR')) die('!');
	    
class ConfigAjaxAPI extends AjaxController {

    //config info UI might need.
    function scp() {
        global $cfg;

        $config=array(
                      'lock_time'       => ($cfg->getLockTime()*3600),
                      'file_types'      => $cfg->getAllowedFileTypes(),
                      'max_file_size'   => (int) $cfg->getMaxFileSize(),
                      'max_file_uploads'=> (int) $cfg->getStaffMaxFileUploads()
                      );
        return $this->json_encode($config);
    }

    function client() {
        global $cfg;

        $config=array(
                      'file_types'      => $cfg->getAllowedFileTypes(),
                      'max_file_size'   => (int) $cfg->getMaxFileSize(),
                      'max_file_uploads'=> (int) $cfg->getClientMaxFileUploads()
                      );

        return $this->json_encode($config);
    }
}
?>
Return current item: osTicket