Changeset 23 for trunk/expressoAdmin1_2/inc/class.functions.inc.php
- Timestamp:
- 05/07/07 15:06:04 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r19 r23 344 344 */ 345 345 346 function get_organizations($context, $selected='') 346 /* 347 function get_organizations($context, $selected='', $show_invisible_ou=false) 347 348 { 348 349 $dn = $GLOBALS['phpgw_info']['server']['ldap_root_dn']; … … 355 356 356 357 $justthese = array("dn"); 357 $search=ldap_search($ldap_conn, $context, "ou=*", $justthese); 358 $filter = $show_invisible_ou ? "(ou=*)" : "(& (ou=*) (!(phpgwAccountVisible=-1)) )"; 359 $search=ldap_search($ldap_conn, $context, $filter, $justthese); 358 360 359 361 ldap_sort($ldap_conn, $search, "ou"); … … 418 420 return $options; 419 421 } 422 */ 423 424 function get_organizations($context, $selected='') 425 { 426 $s = CreateObject('phpgwapi.sector_search_ldap'); 427 $sectors_info = $s->get_organizations($context, $selected, false, false); 428 return $sectors_info; 429 } 420 430 421 431 function get_sectors($context, $selected='')
Note: See TracChangeset
for help on using the changeset viewer.