- Timestamp:
- 05/21/10 08:10:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/inc/class.ContactsIm.inc.php
r2421 r2833 13 13 private $serverJabber; 14 14 private $serverLdap; 15 private $attribute; 15 16 16 17 function __construct() … … 35 36 // Hosts Jabber / Ldap 36 37 $this->hostsJabberLdap = unserialize($_SESSION['phpgw_info']['jabberit_messenger']['map_org_realm_jabberit']); 38 39 if ( file_exists('attributeLdap.php') ) 40 { 41 require_once('attributeLdap.php'); 42 $this->attribute = trim($attributeTypeName); 43 } 44 else 45 $this->attribute = "uid"; 46 37 47 } 38 48 … … 197 207 { 198 208 $partial_uids_external = array_slice($array_uids_external,$i,50); 199 $filter_uid_external = implode(")( uid=",$partial_uids_external);200 $filter_uid_external = "( uid=". $filter_uid_external. ")";209 $filter_uid_external = implode(")(".$this->attribute."=",$partial_uids_external); 210 $filter_uid_external = "(".$this->attribute."=". $filter_uid_external. ")"; 201 211 $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*", $filter_uid_external, $key ); 202 212 } … … 345 355 if( count($search) > 0 ) 346 356 { 347 // Verifica permiss ões do grupo357 // Verifica permissões do grupo 348 358 foreach($groupsLocked as $value) 349 359 { … … 382 392 if( array_search($this->ou_User, $search) === false ) 383 393 { 384 // Verifica permiss ões do grupo394 // Verifica permissões do grupo 385 395 foreach($groupsLocked as $value) 386 396 {
Note: See TracChangeset
for help on using the changeset viewer.