[dev] MIMP...

Marc Jauvin marc at register4less.com
Fri Sep 10 20:07:30 PDT 2004


One of our customer is trying to login to "mimp", but it seems the
"browser::isMobile()" call does not return true for his HP iPaq 6315
PocketPC...

Here is my config (horde/config/conf.php):

$conf['auth']['driver'] = 'composite';
$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';
    }
}



His HTTP_USER_AGENT is:

   Mozilla/4.0 (compatible; MSIE 4.01; WindowsCE; PPC; 240X280

Any Idea? Chuck?

Thanks!

-- 
Marc Jauvin
514-905-6500
http://register4less.com


More information about the dev mailing list