Changeset 1850 for trunk/expressoAdmin1_2
- Timestamp:
- 12/16/09 12:35:41 (15 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.bosectors.inc.php
r1516 r1850 48 48 $sector_info['objectClass'][1] = 'organizationalUnit'; 49 49 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). 52 53 */ 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 } 55 64 56 57 65 $systemName = $GLOBALS['phpgw_info']['server']['system_name']; 58 66 if ($systemName != '') … … 73 81 } 74 82 75 // Escreve no log83 // Escreve no log 76 84 $this->db_functions->write_log("created sector", "$dn"); 77 85 -
trunk/expressoAdmin1_2/inc/class.sosectors.inc.php
r1516 r1850 48 48 function write_ldap($dn, $info) 49 49 { 50 if ( ldap_add($this->ldap_connection, $dn, $info))50 if ( @ldap_add($this->ldap_connection, $dn, $info) ) 51 51 { 52 52 $this->db_functions->write_log("write on ldap", "$dn"); … … 56 56 else 57 57 { 58 echo lang('Error written in LDAP, function write_ldap');58 $this->db_functions->write_log("Error write on ldap", "$dn"); 59 59 ldap_close($this->ldap_connection); 60 60 return false;
Note: See TracChangeset
for help on using the changeset viewer.