Index: /branches/2.2/filemanager/setup/phpgw_pt-br.lang =================================================================== --- /branches/2.2/filemanager/setup/phpgw_pt-br.lang (revision 3899) +++ /branches/2.2/filemanager/setup/phpgw_pt-br.lang (revision 4228) @@ -214,4 +214,5 @@ You do not have Java installed, plugin not loaded filemanager pt-br Você não tem o Java instalado, o plugin não foi iniciado Your Home Dir did not exist, eGroupWare created a new one. filemanager pt-br Seu Diretório Home não existia, foi criado um novo. +You have access to the application, but you have no quota. Please contact your administrator filemanager pt-br Você tem acesso ao módulo, mas não possui cota. Por favor, contacte o administrador. You must choose a folder ! filemanager pt-br Você deve escolher uma pasta ! Filemanager notification filemanager pt-br Gerenciador de arquivos notifica Index: /branches/2.2/filemanager/inc/class.uifilemanager.inc.php =================================================================== --- /branches/2.2/filemanager/inc/class.uifilemanager.inc.php (revision 4220) +++ /branches/2.2/filemanager/inc/class.uifilemanager.inc.php (revision 4228) @@ -182,4 +182,10 @@ $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->basedir . $this->bo->homedir, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); if ($test[mime_type] != 'Directory') { + + $c_admin = CreateObject('phpgwapi.config', 'expressoAdmin1_2'); + $c_admin->read_repository(); + if($c_admin->config_data['expressoAdmin_cotasOu']) + $this->generate_error(lang("You have access to the application, but you have no quota. Please contact your administrator")); + $this->bo->vfs->override_acl = 1; @@ -206,4 +212,29 @@ } } + + } + + function generate_error($error) { + $template = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/filemanager/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); + $template->set_file( + Array( + 'error_model' => 'errors.tpl' + ) + ); + $template->set_block('error_model','error_page'); + $template->set_var("errors",$error); + $GLOBALS['phpgw_info']['flags'] = array + ( + 'currentapp' => 'filemanager', + 'noheader' => False, + 'nonavbar' => False, + 'nofooter' => False, + 'noappheader' => False, + 'enable_browser_class' => True + ); + $GLOBALS['phpgw']->common->phpgw_header(); + $template->pfp('out','error_page'); + $GLOBALS['phpgw']->common->phpgw_footer(); + $GLOBALS['phpgw']->common->phpgw_exit(); } Index: /branches/2.2/filemanager/templates/default/errors.tpl =================================================================== --- /branches/2.2/filemanager/templates/default/errors.tpl (revision 3019) +++ /branches/2.2/filemanager/templates/default/errors.tpl (revision 4228) @@ -1,4 +1,4 @@ -{errors} +