[imp] scripts/custom_login.php & Horde::applicationUrl

liamr@umich.edu liamr at umich.edu
Thu Aug 31 09:07:55 PDT 2006


I'm upgrading some sites from Horde 3.0.x / IMP 4.0.x to Horde 3.1.x  
and IMP 4.1.x, and one of them uses a custom login screen based on  
scripts/custom_login.php.

It seems that with the new version,

     <form action="?php echo Horde::applicationUrl('redirect.php') ?>"
             method="post">

is now returning...

     <form action="/imp/redirect.php" method="post">

instead of

     <form action="/horde/imp/redirect.php?Horde=SESSION_ID" method="post">

I can't figure it out.  Here's the beginning of my script...

// $Horde: imp/scripts/custom_login.php,v 1.6.10.2 2005/10/18 12:14:06  
jan Exp $

// CUSTOMIZE THIS
define('IMP_BASE', '/usr/local/projects/webmail/html-ssl/horde/imp');

define('AUTH_HANDLER', true);
$authentication = 'none';
require_once IMP_BASE . '/lib/base.php';
require_once IMP_BASE . '/config/servers.php';

/* Set up the password encryption token. */
Secret::setKey('imp');

/* Use the first server defined in servers.php. */
// CUSTOMIZE THIS

$server_key = 'caen';

$server_value = $servers[$server_key]['server'];
$protocol_value = $servers[$server_key]['protocol'];
$port_value = $servers[$server_key]['port'];
$maildomain_value = $servers[$server_key]['maildomain'];
$realm_value = $servers[$server_key]['realm'];
$url = '/horde/imp';
//$url = '/' . $registry->get('initial_page','horde');

?>

liam


More information about the imp mailing list