Changeset 6556 for trunk/expressoAdmin1_2/inc
- Timestamp:
- 06/20/12 16:08:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.bosectors.inc.php
r6553 r6556 111 111 $this->so->remove_attribute($sector_info[0]['dn'], $ldap_mod_del); 112 112 } 113 114 //Modifica o conteúdo das cotas. 115 if( (isset($_POST['disk_quota']) ) && (isset($_POST['users_quota']) ) ) { //se for passado alguma coisa, lógico 116 $ldap_mod_replace = array(); 117 $ldap_mod_replace['diskQuota'] = $_POST['disk_quota']; 118 $ldap_mod_replace['usersQuota'] = $_POST['users_quota']; 119 $this->so->replace_attribute($sector_info[0]['dn'], $ldap_mod_replace); 113 114 if(!in_array('phpgwQuotaControlled',$sector_info[0]['objectclass'] )) 115 { 116 $ldap_mod_add = array(); 117 $ldap_mod_add['objectClass'][] = 'phpgwQuotaControlled'; 118 $ldap_mod_add['diskQuota'] = isset($_POST['disk_quota']) ? (int)$_POST['disk_quota'] : 0; 119 $ldap_mod_add['usersQuota'] = isset($_POST['users_quota']) ? (int)$_POST['users_quota'] : 0; 120 121 $this->so->add_attribute($sector_info[0]['dn'], $ldap_mod_add); 120 122 } 121 123 else 124 { 125 $ldap_mod_replace = array(); 126 if(isset($_POST['disk_quota'])) 127 $ldap_mod_replace['diskQuota'] = (int)$_POST['disk_quota']; 128 129 if(isset($_POST['users_quota'])) 130 $ldap_mod_replace['usersQuota'] = (int)$_POST['users_quota']; 131 132 if(count($ldap_mod_replace) > 0) 133 $this->so->replace_attribute($sector_info[0]['dn'], $ldap_mod_replace); 134 } 122 135 // Volta para o ListSectors 123 136 ExecMethod('expressoAdmin1_2.uisectors.list_sectors');
Note: See TracChangeset
for help on using the changeset viewer.