Ignore:
Timestamp:
03/22/11 10:26:07 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1250 - Adição do controle de quotas por OU

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/filemanager/inc/class.uiconfig.inc.php

    r3875 r3887  
    480480                 $size  = ($_POST['val']) * 1; 
    481481 
     482                 $eAdminDbFunctions = CreateObject('expressoAdmin1_2.db_functions'); 
     483                 if($eAdminDbFunctions->use_cota_control()) { 
     484                        $eAdminFunctions = CreateObject('expressoAdmin1_2.functions'); 
     485                                                 
     486                        if(!$eAdminFunctions->has_file_disk_quota($name,$size)){ 
     487                                echo lang("not enough quota"); 
     488                                return; 
     489                        } 
     490 
     491                 } 
     492                  
    482493                 /* See if quota exists or not */ 
    483494                 $query = "SELECT count(directory) FROM phpgw_vfs_quota WHERE directory = '".$name."' LIMIT 1"; 
Note: See TracChangeset for help on using the changeset viewer.