* @package addressbook * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id: class.bocontacts.inc.php 21831 2006-06-14 16:53:14Z ralfbecker $ */ function contact_repositories($config) { $repositories = array('sql' => 'SQL'); // check account-repository, contact-repository LDAP is only availible for account-repository == ldap if ($config['account_repository'] == 'ldap' || !$config['account_repository'] && $config['auth_type'] == 'ldap') { $repositories['ldap'] = 'LDAP'; $repositories['sql-ldap'] = 'SQL --> LDAP ('.lang('read only').')'; } $options = ''; foreach($repositories as $repo => $label) { $options .= '\n"; } return $options; }