[imp] redirect on logout

Tim Gorter email@teletechnics.com
Mon, 12 Aug 2002 23:38:22 +0200


using imp RELENG_3

I'm currently trying to implement a redirect on logout, depending on what
domain a user belongs to.
As I set my domain via from_addr hook based on virtual mappings file it is
not readily available from the server as HTTP_HOST etc.

So believing that Auth::getAuth() should be available to give me the user,
I went ahead on that. But it seems that if I try retrieve that variable
then it affects the CSS of IMP. Meaning by simply adding
$username = Auth::getAuth() in the imp/config/conf.php file
removes all colour from the IMP screen on reload. no errors, and the
username is retrieved fine.

As I can cope with errors, trying to trace that etc. But loosing colour
(presumably the call to the CSS) is new to me...

So I am trying to find out either why this happens, or another way to
retrieve the users from_addr (which I can from an external file) without
loosing any colour (or errors!)

Any help appreciated,
tim.