How Do I add to the MIMPHowTo wiki?

Rune Maagensen <[email protected]> Sun, 09 Jan 2005 01:15:10 +0100
Newsgroups gmane.comp.horde.mimp
Message-ID <[email protected]>
I've used quite some time messing with the composite mimp/imp login 
depending on mobile browser. If the following had been in the wiki I 
wouldn't have had to mess around so much:

MIMP HowTo

If you want to setup MIMP in parallel with IMP, you need the composite 
authentication driver with a browser switch:

In horde/config/conf.php find $conf['auth']['driver'] = 'application'; 
and change to $conf['auth']['driver'] = 'composite';

Also in horde/config/conf.php, insert the following code:

$conf['auth']['params']['drivers'] = array(
     'imp' => array('driver' => 'application',
                    'params' => array('app' => 'imp')),
     'mimp' => array('driver' => 'application',
                     'params' => array('app' => 'mimp')));
$conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';

if (!function_exists('_horde_select_loginscreen')) {
     function _horde_select_loginscreen()
     {
         require_once 'Horde/Browser.php';
         $browser = &new Browser();
         if ($browser->isMobile()) {
             return 'mimp';
         }
         return 'imp';
     }
}

This will give you either the IMP or the MIMP login screen, depending on 
the browser you use.

-- 
mimp mailing list - Join the hunt: http://horde.org/bounties/#mimp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]