[imp] MySQL Setup

Max Kalika max@the-triumvirate.net
Thu, 12 Oct 2000 07:25:38 -0700 (PDT)


Quoting Chuck Hagenbuch <chuck@horde.org>:

> (if you're running 2.3 to access multiple servers, and usernames> might
> overlap between those servers, _don't_ use prefs right now. Nothing
> security-sensitive will be shared, but your users will be weirded out.)

You know, I was just wondering about that the other day.  Could the prefs 
instances in IMP.php be augmented with something like this?

if ($conf['server']['server_list'] &&
    is_array($servers[$HTTP_POST_VARS['server']])) {
  $prefs = Prefs::factory($conf['prefs']['driver'],
                       $imp['user'] . "@" . $HTTP_POST_VARS['server']['server'],
                       $conf['prefs']['params']);
}
else {
  $prefs = Prefs::factory($conf['prefs']['driver'], $imp['user'],
                       $conf['prefs']['params']);
}

just a thought, I'm sure you guys will come up with something better. :-)


--mk23