Changeset 23 for trunk/expressoAdmin1_2/inc/class.group.inc.php
- Timestamp:
- 05/07/07 15:06:04 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.group.inc.php
r9 r23 97 97 } 98 98 99 // ADD ATTRIBUTES 100 if ($params['phpgwaccountvisible'] == 'on') 101 { 102 $group_info['phpgwaccountvisible'] = '-1'; 103 } 104 99 105 $result = $this->ldap_functions->ldap_add_entry($dn, $group_info); 100 106 if (!$result['status']) … … 216 222 } 217 223 else 218 $this->db_functions->write_log("Adicionado atributos samba do grupo $dn",'',$dn,'',''); 219 } 224 $this->db_functions->write_log("Adicionado atributos samba ao grupo $dn",'','','',''); 225 } 226 } 227 228 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 229 // ADD ATTRIBUTES 230 if (($new_values['phpgwaccountvisible'] == 'on') && ($old_values['phpgwaccountvisible'] != '-1')) 231 { 232 $ldap_add['phpgwaccountvisible'] = '-1'; 233 $result = $this->ldap_functions->add_user_attributes($dn, $ldap_add); 234 if (!$result['status']) 235 { 236 $return['status'] = false; 237 $return['msg'] .= $result['msg']; 238 } 239 else 240 $this->db_functions->write_log("Adicionado atributo phpgwaccountvisible ao grupo $dn",'','','',''); 241 } 242 243 // REMOVE ATTRIBUTES 244 if (($new_values['phpgwaccountvisible'] != 'on') && ($old_values['phpgwaccountvisible'] == '-1')) 245 { 246 $ldap_remove['phpgwaccountvisible'] = array(); 247 $result = $this->ldap_functions->remove_user_attributes($dn, $ldap_remove); 248 if (!$result['status']) 249 { 250 $return['status'] = false; 251 $return['msg'] .= $result['msg']; 252 } 253 else 254 $this->db_functions->write_log("Removido atributo phpgwaccountvisible do grupo $dn",'','','',''); 220 255 } 221 256
Note: See TracChangeset
for help on using the changeset viewer.