[imp] Missing 'initial_page' definition for IMP
Miroslaw Jaworski
mjaw at ipartners.pl
Mon Feb 17 13:23:25 PST 2003
Recently in one of my latest Horde/IMP installations a customer wanted
his own login/logout screen.
Versions used:
horde-2.1
imp-3.1
turba-1.1
I found nice IMP options designed to do such a customization.
horde/imp/config/conf.php excerpt:
$conf['user']['alternate_login'] = ''
$conf['user']['redirect_on_logout'] = ''
Both were changed to an URL with customized page.
Problem:
--------
After login, switching from IMP to other application ( in this installation
only one additional application was present - turba ) and choosing IMP back
( by using menu's 'Mail' item ), we get an customized login page instead
of mailbox content view.
Description:
------------
$registry->getInitialPage($app)
function is used for determining a link to the application. It returns a
'horde/imp' path.
/horde/imp/index.php does redirection to a /horde/imp/redirect.php,
/horde/imp/redirect.php does redirection to a /horde/imp/login.php,
/horde/imp/login.php does redirection to alternate login page, which is
bad.
Fix:
----
Probably same problem was ancountered in horde ( i presume that's why
horde's 'initial page' paramater is set and is equal to 'login.php ).
Fixing the problem either needs some playing with params passed between
all redirection scripts ( harder ) or just setting IMP's 'initial page'
paramater in horde/registry ( easier ):
-----------------------
$this->applications['imp'] = array(
'fileroot' => dirname(__FILE__) . '/../imp',
'webroot' => $this->applications['horde']['webroot'] . '/imp',
+ 'initial_page' => 'login.php',
'icon' => $this->applications['horde']['webroot'] . '/imp/graphics/imp.gif',
'name' => _("Mail"),
'allow_guests' => false,
'show' => true
);
After that change $registry->getInitialPage($app) function will return
'horde/imp/login.php' which will result in proper functioning of customized
IMP.
I admit, i didn't checked if it's fixed in the HEAD versions.
Regards
MJ
--
Miroslaw.Jaworski at gts.pl ( Psyborg ) MJ102-RIPE GTS Internet Partners SA
Servers Administration Department Manager
More information about the imp
mailing list