- Timestamp:
- 05/22/12 16:36:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-2/expressoMail1_2/inc/class.ldap_functions.inc.php
r6257 r6272 461 461 $info = ldap_get_entries($this->ds, $sr); 462 462 $info_return = $info; 463 463 464 //if($campos_extras != '') 464 465 //array_push($info_return, $campos_extras); … … 496 497 497 498 $info_return['search_for'] = $params['search_for']; 498 return $info_return; 499 500 501 return $this->toISO8859($info_return); 499 502 } 500 503 504 /*Converte um parametro de UTF-8 para ISO8859*/ 505 function toISO8859($data) 506 { 507 if(!is_array($data)) 508 return mb_convert_encoding( $data , 'ISO-8859-1' , 'UTF-8 , ISO-8859-1' ); 509 510 $return = array(); 511 512 foreach ($data as $i => $v) 513 $return[$this->toISO8859($i)] = $this->toISO8859($v); 514 515 return $return; 516 } 517 518 501 519 function make_quicksearch_card($info, $cn) 502 520 {
Note: See TracChangeset
for help on using the changeset viewer.