Changeset 1712 in subversion for trunk/roundcubemail/program/steps/addressbook/func.inc
- Timestamp:
- Sep 2, 2008 3:42:46 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/addressbook/func.inc
r1577 r1712 21 21 22 22 // instantiate a contacts object according to the given source 23 if (($source = get_input_value('_source', RCUBE_INPUT_GPC)) && isset($CONFIG['ldap_public'][$source])) 24 $CONTACTS = new rcube_ldap($CONFIG['ldap_public'][$source]); 25 else if (strtolower($CONFIG['address_book_type']) == 'ldap') { 26 // Get the first LDAP address book. 27 $source = key((array)$CONFIG['ldap_public']); 28 $prop = current((array)$CONFIG['ldap_public']); 29 $CONTACTS = new rcube_ldap($prop); 30 } else { 31 $CONTACTS = new rcube_contacts($DB, $_SESSION['user_id']); 32 } // end else 23 $CONTACTS = $RCMAIL->get_address_book(($source = get_input_value('_source', RCUBE_INPUT_GPC))); 33 24 34 25 $CONTACTS->set_pagesize($CONFIG['pagesize']);
Note: See TracChangeset
for help on using the changeset viewer.
