Changeset 1850


Ignore:
Timestamp:
12/16/09 12:35:41 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #828 - Corrigida opcao de controle de quotas por OUs no Ldap.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.bosectors.inc.php

    r1516 r1850  
    4848                        $sector_info['objectClass'][1]  = 'organizationalUnit'; 
    4949                         
    50                         /*Insere as informações sobre quota total por usuários e por gigabytes de espaço em disco  
    51                           Se não vierem os dados, ele coloca 0 (Caso não exista controle de cota). 
     50                        /* 
     51                         Insere as informações sobre quota total por usuários e por gigabytes de espaço em disco  
     52                         Se não vierem os dados, ele coloca 0 (Caso não exista controle de cota). 
    5253                        */ 
    53                         $sector_info['diskQuota'] = isset($_POST['disk_quota']) ? $_POST['disk_quota'] : "0"; 
    54                         $sector_info['usersQuota'] = isset($_POST['users_quota']) ? $_POST['users_quota'] : "0"; 
     54                         
     55                        if( isset($_POST['disk_quota']) ) 
     56                        { 
     57                                $sector_info['diskQuota'] = (trim($_POST['disk_quota']) != "") ? $_POST['disk_quota'] : "0"; 
     58                        } 
     59                         
     60                        if( isset($_POST['users_quota']) ) 
     61                        { 
     62                                $sector_info['usersQuota'] = (trim($_POST['users_quota']) != "") ? $_POST['users_quota'] : "0"; 
     63                        } 
    5564 
    56                          
    5765                        $systemName = $GLOBALS['phpgw_info']['server']['system_name']; 
    5866                        if ($systemName != '') 
     
    7381                        } 
    7482                         
    75                         //Escreve no log 
     83                        // Escreve no log 
    7684                        $this->db_functions->write_log("created sector", "$dn"); 
    7785                         
  • trunk/expressoAdmin1_2/inc/class.sosectors.inc.php

    r1516 r1850  
    4848                function write_ldap($dn, $info) 
    4949                { 
    50                         if (ldap_add($this->ldap_connection, $dn, $info)) 
     50                        if ( @ldap_add($this->ldap_connection, $dn, $info) ) 
    5151                        { 
    5252                                $this->db_functions->write_log("write on ldap", "$dn"); 
     
    5656                        else 
    5757                        { 
    58                                 echo lang('Error written in LDAP, function write_ldap'); 
     58                                $this->db_functions->write_log("Error write on ldap", "$dn"); 
    5959                                ldap_close($this->ldap_connection); 
    6060                                return false; 
Note: See TracChangeset for help on using the changeset viewer.