forked from extern/egroupware
9f59a77b85
- all (sql) accounts have now allways a contact associated with them (account_id is added as new column to the contacts table) - contacts queries are simplefied a lot now, as no more join with the accouns-table, union and case when statesments are necessary - lot of the special handling for accounts in the contacts class is no longer needed - new contact-repository mode "sql-ldap" which additional writes all changes to the ldap repository, to allow to use it read-only from eg. thunderbird and still have the full sql speed and features within eGW (not yet fully working!) ==> requites update of API and addressbook to work (setup!)
29 lines
971 B
PHP
29 lines
971 B
PHP
<?php
|
|
/**
|
|
* Addressbook - configuration
|
|
*
|
|
* @link http://www.egroupware.org
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
* @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 .= '<option value="'.$repo.'"'.($config['contact_repository'] == $repo ? ' selected="1">' : '>').
|
|
$label."</option>\n";
|
|
}
|
|
return $options;
|
|
}
|