Changeset 3909
- Timestamp:
- 03/25/11 09:20:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.ldap_functions.inc.php
r3908 r3909 470 470 for ($i=0; $i<$info["count"]; $i++) 471 471 $groups[$uids=$info[$i]["gidnumber"][0]] = Array('name' => $uids=$info[$i]["cn"][0], 'type' => g); 472 $justthese = array("phpgwaccountvisible","uid ","cn");472 $justthese = array("phpgwaccountvisible","uidNumber","cn"); 473 473 if ($params['type'] == 'search') 474 474 // $sr=ldap_search($this->ds, $user_context, ("(&(phpgwaccounttype=u)(!(phpgwaccountvisible=-1))(phpgwaccountstatus=A)(|(cn=*$filtro*)(mail=$filtro*)))"),$justthese); … … 482 482 if ($info[$i]["phpgwaccountvisible"][0] == '-1') 483 483 continue; 484 $users[$uids=$info[$i]["uid "][0]] = Array('name' => $uids=$info[$i]["cn"][0], 'type' => u);484 $users[$uids=$info[$i]["uidnumber"][0]] = Array('name' => $uids=$info[$i]["cn"][0], 'type' => u); 485 485 } 486 486 } … … 494 494 $group_options =''; 495 495 496 /*foreach($groups as $id => $user_array) {496 foreach($groups as $id => $user_array) { 497 497 $newId = $id.'U'; 498 498 $group_options .= '<option value="'.$newId.'">'.utf8_decode($user_array['name']).'</option>'."\n"; 499 } */499 } 500 500 foreach($users as $id => $user_array) { 501 501 if($owner != $id){ 502 //$newId = $id.'U';503 $user_options .= '<option value="'.$ id.'">'.utf8_decode($user_array['name']).'</option>'."\n";502 $newId = $id.'U'; 503 $user_options .= '<option value="'.$newId.'">'.utf8_decode($user_array['name']).'</option>'."\n"; 504 504 } 505 505 } 506 return array("users" => $user_options /*, "groups" => $group_options*/);506 return array("users" => $user_options, "groups" => $group_options); 507 507 } 508 508
Note: See TracChangeset
for help on using the changeset viewer.