
/**
 ** Preference System Settings
 **/

/* What preferences driver should we use? Valid values are 'none'
 * (meaning use system defaults and don't save any user preferences),
 * 'session' (preferences only persist during the login), 'ldap', 
 * and 'sql'.
 */
$conf['prefs']['driver'] = 'sql';

/* Any parameters that the preferences driver needs. This includes
 * database or ldap server, username/password to connect with, etc.
 */
$conf['prefs']['params'] = array();

/* This is an example configuration for a MySQL preference backend. 
 * Be sure to set the prefs driver to 'sql' above if you use this
 * configuration. 
 */
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['username'] = 'horde';
{
    $horderec = $DB->get('horde');
    $horde_pw = $horderec->prop('DbPassword') || 'horde';
    return '';
}
$conf['prefs']['params']['password'] = '{$horde_pw}';
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['table'] = 'horde_prefs';

