[imp] A few more 2.3.7 queries

Jan Schneider janmailing@gmx.de
Wed, 13 Jun 2001 10:20:40 +0200


Zitat von francus@metsny.yossi.com:

> In 2.3.6 the horde_prefs table was defined in imp/config/conf.php and
> allowed mysql as a parameter. It appears that in 2.3.7 it is defined
> in horde/config/horde.php and mysql is not an allowable parameter, only
> sql is. In any case preferences that were saved with 2.3.6 do not show
> up in 2.3.7 even though the name of the datbase in the relevant config
> files is horde_prefs under both versions.

To use mysql as the prefs driver you should have something like this in your 
horde.php:

// 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();
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['username'] = 'foo';
$conf['prefs']['params']['password'] = 'bar';
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['table'] = 'prefs';

I'm not sure about 2.3.6, but if the scope fields in the prefs table are blank 
try to change them to 'imp'.

Jan.