\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\part{ MIMP HowTo}
\section{Colortext: NINOTE: As of September 2006, the CVS HEAD development version of MIMP no longer needs this configuration.  The HEAD version will automatically authenticate via a mobile-friendly screen when it detects a mobile browser.Colortext: NI}
If you want to setup MIMP\footnote{http://www.horde.org/mimp/} in parallel with IMP\footnote{http://www.horde.org/imp/}, you need the composite authentication driver\footnote{http://example.com/index.php?page=AuthCompositeHowToH3} with a browser switch.

To use the composite driver select it from the dropdown list in the authentication tab of the configuration interface or change \texttt{\$conf['auth']['driver']} to \texttt{'composite'} in \texttt{horde/config/conf.php}.

In \texttt{horde/config/conf.php}, insert the following code:

\begin{verbatim}

$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';
    }
}
\end{verbatim}

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

If you want to use some other authentication driver than "application/imp" for Horde if \textsl{not} using a mobile browser, just replace the \texttt{'imp'} part with your regular Horde authentication settings:

\begin{verbatim}

$conf['auth']['params']['drivers'] = array(
    'horde' => array('driver' => 'my_auth_driver',
                     'params' => array(
                         // Necessary parameters for 'my_auth_driver'.
                         ...
                         )),
    '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 'horde';
    }
}
\end{verbatim}

\end{document}
