Changeset 13 for trunk/contactcenter/inc/class.ui_data.inc.php
- Timestamp:
- 04/10/07 10:21:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.ui_data.inc.php
r12 r13 2338 2338 2339 2339 $array_participants = array(); 2340 $filter = null; 2341 $array_uid = explode(',',$id); 2342 $uid = $array_uid[0]; 2343 2344 $filter="(&(".$uid."))"; 2345 2346 if($filter) { 2347 $filter = "(|".$filter.")"; 2348 if(!$this->bo->catalog->src_info) { 2349 $ldap = CreateObject('contactcenter.bo_ldap_manager'); 2350 $this->bo->catalog->src_info = $ldap->srcs[1]; 2351 } 2352 $ds = $GLOBALS['phpgw']->common->ldapConnect($this->bo->catalog->src_info['host'], $this->bo->catalog->src_info['acc'], $this->bo->catalog->src_info['pw'], true); 2353 $dn=$this->bo->catalog->src_info['dn']; 2354 $justThese = array("givenname","givenname","sn","telephonenumber","mail"); 2355 $sr = ldap_search($ds,$dn, $filter,$justThese); 2356 $info = ldap_get_entries($ds, $sr); 2357 for($z = 0; $z < 5; $z++) { 2358 $participant = $info[0][$justThese[$z]]; 2359 array_push($array_participants, $participant); 2360 } 2361 2362 ldap_close($ds); 2363 } 2364 2340 if(!$this->bo->catalog->src_info) { 2341 $ldap = CreateObject('contactcenter.bo_ldap_manager'); 2342 $this->bo->catalog->src_info = $ldap->srcs[1]; 2343 } 2344 2345 $ds = $GLOBALS['phpgw']->common->ldapConnect($this->bo->catalog->src_info['host'], $this->bo->catalog->src_info['acc'], $this->bo->catalog->src_info['pw'], true); 2346 $dn=$this->bo->catalog->src_info['dn']; 2347 $justThese = array("givenname","givenname","sn","telephonenumber","mail"); 2348 $sr = ldap_read($ds,$id, "objectClass=*",$justThese); 2349 $info = ldap_get_entries($ds, $sr); 2350 for($z = 0; $z < 5; $z++) { 2351 $participant = $info[0][$justThese[$z]]; 2352 array_push($array_participants, $participant); 2353 } 2354 2355 ldap_close($ds); 2365 2356 echo serialize($array_participants); 2366 2357 }
Note: See TracChangeset
for help on using the changeset viewer.