[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] vlogin plugin and failed login page.
From:       Jan Hugo Prins <jhp () jhprins ! org>
Date:       2006-10-31 16:52:57
Message-ID: 45477F69.3020005 () jhprins ! org
[Download RAW message or body]

Paul Lesniewski wrote:
> Without feedback from Jan yet, my tentative tests showed that this
> will not work (using vlogin to override "base_uri").  Instead, I have
> proposed a slight change to the logout_error hook for the STABLE
> stream, which should be applied as follows:
>
> diff -u -r1.57.2.22 display_messages.php
> --- functions/display_messages.php      14 May 2006 17:45:29 -0000
> 1.57.2.22
> +++ functions/display_messages.php      27 Oct 2006 04:09:02 -0000
> @@ -71,7 +71,10 @@
>         $color[8]  = '#000000';  /* black         Normal 
> text            */
>     }
>
> -    list($junk, $errString, $errTitle) = do_hook('logout_error',
> $errString, $errTitle);
> +    $logout_link = $base_uri . 'src/login.php';
> +
> +    list($junk, $errString, $errTitle, $logout_link)
> +        = do_hook('logout_error', $errString, $errTitle, $logout_link);
>
>     if ( $errTitle == '' ) {
>         $errTitle = $errString;
> @@ -99,7 +102,7 @@
>          '<tr><td align="center">' . $errString . '</td></tr>'.
>          '<tr><td bgcolor="'.$color[0].'" align="center">'.
>          '<font color="'.$color[2].'"><b>'.
> -         '<a href="'.$base_uri.'src/login.php" 
> target="'.$frame_top.'">'.
> +         '<a href="'.$logout_link.'" target="'.$frame_top.'">'.
>          _("Go to the login page") . '</a></b></font></td></tr>'.
>          '</table></td></tr></table></center></body></html>';
> }
>
>
> Then use the latest version of login_redirect plugin which I will send
> offlist as needed.
>
> - Paul

Hi Paul,

It took a little bit of time because I was busy with all kinds of other 
stuff, but it looks like everything is for the most part OK now.
The only thing that still fails is when I log out en for some reason 
press the back button on my browser. You end up on the error page 
telling you that you are not authorized to view that page, including a 
link to the login page and this login page is still without the ?domain 
part in it.

Jan Hugo Prins


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
squirrelmail-plugins mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-plugins@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic