Changeset 5199 for trunk/expressoMail1_2
- Timestamp:
- 11/23/11 14:36:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
r5196 r5199 98 98 $contacts_result['field'] = $field; 99 99 $contacts_result['ID'] = $ID; 100 $search_for = utf8_encode($params['search_for']); 101 100 $search_for = utf8_encode($params['search_for']); 101 102 if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['extended_info']) 103 $extendedinfo=true; 104 else 105 $extendedinfo=false; 106 102 107 // follow the referral 103 108 $this->ldapConnect(true); … … 106 111 { 107 112 $ldapService->connection = $this->ds; 108 109 $justthese = array("cn", "mail", "telephonenumber", "mobile", "phpgwaccountvisible", "uid", "employeenumber", "ou"); 113 if($extendedinfo) 114 $justthese = array("cn", "mail", "telephonenumber", "mobile", "phpgwaccountvisible", "uid", "employeenumber", "ou"); 115 else 116 $justthese = array("cn", "mail", "telephoneNumber", "phpgwAccountVisible", "uid"); 110 117 $types = false; 111 118 … … 139 146 $this->ldapConnect(true,$i); 140 147 $filter="(|(cn=*$search_for*)(mail=*$search_for*))"; 141 $justthese = array("cn", "mail", "telephoneNumber", "mobile", "phpgwAccountVisible", "uid","employeeNumber", "ou"); 148 if($extendedinfo) 149 $justthese = array("cn", "mail", "telephonenumber", "mobile", "phpgwaccountvisible", "uid", "employeenumber", "ou"); 150 else 151 $justthese = array("cn", "mail", "telephoneNumber", "phpgwAccountVisible", "uid"); 142 152 $sr=@ldap_search($this->ds, $this->ldap_context, $filter, $justthese, 0, $this->max_result+1); 143 153 if(!$sr) … … 426 436 } 427 437 ldap_close($this->ds); 428 438 429 439 //Busca em Catalagos externos 430 440 $catalogsNum=count($this->external_srcs); … … 459 469 return $info_return; 460 470 } 461 462 463 464 465 466 467 471 468 472 function make_quicksearch_card($info, $cn)
Note: See TracChangeset
for help on using the changeset viewer.