Changeset 493 for trunk/expressoAdmin1_2/inc/class.socomputers.inc.php
- Timestamp:
- 10/01/08 16:27:52 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.socomputers.inc.php
r414 r493 14 14 var $functions; 15 15 var $ldap_connection; 16 var $db_functions; 16 17 17 18 function socomputers() 18 19 { 19 20 $this->functions = CreateObject('expressoAdmin1_2.functions'); 21 $this->db_functions = CreateObject('expressoAdmin1_2.db_functions'); 20 22 21 23 if ( (!empty($GLOBALS['phpgw_info']['server']['ldap_master_host'])) && … … 99 101 function delete_computer_ldap($dn) 100 102 { 101 $result = ldap_delete($this->ldap_connection, $dn);102 ldap_close($this->ldap_connection);103 $this-> functions->write_log('deleted computer',$dn);103 $result = @ldap_delete($this->ldap_connection, $dn); 104 @ldap_close($this->ldap_connection); 105 $this->db_functions->write_log('deleted computer',$dn); 104 106 return $result; 105 107 } … … 109 111 $result = ldap_rename($this->ldap_connection, $old_dn, $new_rdn, $new_context, true); 110 112 ldap_close($this->ldap_connection); 111 $this-> functions->write_log('rename computer',$old_dn . '->' . $new_rdn);113 $this->db_functions->write_log('rename computer',$old_dn . '->' . $new_rdn); 112 114 return $result; 113 115 } … … 117 119 $result = ldap_mod_add($this->ldap_connection, $dn, $ldap_add_attribute); 118 120 ldap_close($this->ldap_connection); 119 $this-> functions->write_log('added ldap attributes from computer',$dn);121 $this->db_functions->write_log('added ldap attributes from computer',$dn); 120 122 return $result; 121 123 } … … 125 127 $result = ldap_mod_del($this->ldap_connection, $dn, $ldap_remove_attribute); 126 128 ldap_close($this->ldap_connection); 127 $this-> functions->write_log('removed ldap attributes from computer',$dn);129 $this->db_functions->write_log('removed ldap attributes from computer',$dn); 128 130 return $result; 129 131 } … … 133 135 $result = ldap_mod_replace($this->ldap_connection, $dn, $ldap_replace_attribute); 134 136 ldap_close($this->ldap_connection); 135 $this-> functions->write_log('replace ldap attributes from computer',$dn);137 $this->db_functions->write_log('replace ldap attributes from computer',$dn); 136 138 return $result; 137 139 }
Note: See TracChangeset
for help on using the changeset viewer.