[imp] authenticate in custom page

Jan Schneider jan@horde.org
Wed, 28 Nov 2001 18:45:32 +0100


Commited, thanks.

Zitat von Robert Marchand <robert.marchand@UMontreal.CA>:

> Hi,
> 
>      in order to have the "reason" on logout on a custom page with 
> IMP-3.0RC2, another
> change is needed:
> 
> # diff -c login.php.ORIG login.php
> *** login.php.ORIG      Sun Nov 18 11:28:47 2001
> --- login.php   Tue Nov 27 13:43:31 2001
> ***************
> *** 120,126 ****
> 
>    /* Redirect the user on logout if redirection is enabled. */
>    if (($reason == 'logout') && $conf['user']['redirect_on_logout']) {
> !     header('Location: ' . $conf['user']['redirect_on_logout']);
>        exit;
>    }
> 
> --- 120,126 ----
> 
>    /* Redirect the user on logout if redirection is enabled. */
>    if (($reason == 'logout') && $conf['user']['redirect_on_logout']) {
> !     header('Location: ' . $conf['user']['redirect_on_logout'] . 
> '?reason=logout');
>        exit;
>    }
> 
> Thanks.
> 
> A small note: I'm very happy with this new version (IMP-3.0).  Less code
> 
> "patching" is
> required to achieve our needs here.  In fact, I can do all with "hooks",
> 
> registry file edit and
> even patching the LDAP driver is just dropping a new file in the Driver
> 
> directory and having
> our source.php pointing at it (no other change necessary).  Good work!
> 
> At 12:40 01-11-18 -0500, you wrote:
> >Quoting Robert Marchand <robert.marchand@UMontreal.CA>:
> > > On another issue, I've created an alternate login page and I wanted
> to have
> > > the various messages that show in login.php.  So I've made a change
> to
> > > login.php (just add '?reason=... to the url):
> >[snip]
> > > Would it be possible to add this in the mainstream version?
> >
> >Committed - thanks!
> >
> >-chuck
> >
> >--
> >Charles Hagenbuch, <chuck@horde.org>
> >"What was and what may be, lie, like children whose faces we cannot see,
> 
> >in the
> >arms of silence. All we ever have is here, now." - Ursula K. Le Guin
> 
> -------
> Robert Marchand                 tél: 343-6111 poste 5210
> DGTIC-SIT                       e-mail: robert.marchand@umontreal.ca
> Université de Montréal          Montréal, Canada
> 
> 
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> 


Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::