True, 'update_quota' => True, 'load_quota' => True, 'quota' => True ); function vfs_functions(){ } function quota(){ $GLOBALS['phpgw_info']['flags'] = array ( 'currentapp' => 'filemanager', 'noheader' => False, 'nonavbar' => False, 'nofooter' => False, 'noappheader' => False, 'enable_browser_class' => True ); $GLOBALS['phpgw']->common->phpgw_header(); include('load_lang.php'); echo ""; echo ""; echo ""; echo "".lang('Directory')."
 
".lang('Search').":

       

Quota:mb

"; } function search_dir(){ $GLOBALS['phpgw_info']['flags'] = array ( 'currentapp' => 'filemanager', 'noheader' => True, 'nonavbar' => True, 'nofooter' => True, 'noappheader' => True, 'enable_browser_class' => True ); $name = $GLOBALS['phpgw']->db->db_addslashes($_GET['name']); $GLOBALS['phpgw']->db->query('SELECT DISTINCT directory FROM phpgw_vfs WHERE directory like \'%'.$name.'%\' LIMIT 20',__LINE__,__FILE__); while ($GLOBALS['phpgw']->db->next_record()){ $val = $GLOBALS['phpgw']->db->row(); echo ""; } } function update_quota(){ $GLOBALS['phpgw_info']['flags'] = array ( 'currentapp' => 'filemanager', 'noheader' => True, 'nonavbar' => True, 'nofooter' => True, 'noappheader' => True, 'enable_browser_class' => True ); $name = $GLOBALS['phpgw']->db->db_addslashes(base64_decode($_GET['dir'])); $size = ($_GET['val'])*1; $GLOBALS['phpgw']->db->query('UPDATE phpgw_vfs_quota SET quota_size = '.$size.' WHERE directory = \''.$name.'\'',__LINE__,__FILE__); if ($GLOBALS['phpgw']->db->Error) echo "Erro"; else echo lang('entry updated sucessfully'); return; } function load_quota(){ $GLOBALS['phpgw_info']['flags'] = array ( 'currentapp' => 'filemanager', 'noheader' => True, 'nonavbar' => True, 'nofooter' => True, 'noappheader' => True, 'enable_browser_class' => True ); $name = $GLOBALS['phpgw']->db->db_addslashes(base64_decode($_GET['name'])); $GLOBALS['phpgw']->db->query('SELECT quota_size FROM phpgw_vfs_quota WHERE directory = \''.$name.'\' LIMIT 1',__LINE__,__FILE__); $GLOBALS['phpgw']->db->next_record(); $val =$GLOBALS['phpgw']->db->row(); echo $val['quota_size']; return; } } ?>