Skip to content
Snippets Groups Projects
Commit 5927ab0b authored by Peter Rotich's avatar Peter Rotich
Browse files

Add config info for SCP.

parent 9eff3965
Branches
Tags
No related merge requests found
......@@ -19,13 +19,14 @@ if(!defined('INCLUDE_DIR')) die('!');
class ConfigAjaxAPI extends AjaxController {
//config info UI might need.
function scp_ui() {
function scp() {
global $thisstaff, $cfg;
$config=array('ticket_lock_time'=>($cfg->getLockTime()*3600),
'max_attachments'=>$cfg->getMaxFileUploads(),
'max_file_size'=>$cfg->getMaxFileSize());
$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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment