|
From: Jamessketch <jam...@gm...> - 2007-11-23 17:43:12
|
Hello all and thank you for replying to this post.
I am sorry to bother you more but unfortunatelly this patch still does not
work for me.
When I have tryed to use it in console (patch -p0 <
login_auto_webmail.patch) it reported:
(Stripping trailing CRs from patch.)
patching file login_auto/functions.php
(Stripping trailing CRs from patch.)
patching file login_auto/setup.php
Hunk #2 succeeded at 41 with fuzz 2.
Than everything work as nothing was changed. I have just try to use this
patch after everything was installed and fully working. I use Squirrelmail
1.4.11.
Thank you for any help. Have a nice day.
James
Jon Angliss wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Michael
>
>> On 11/15/07, Jon Angliss <jo...@sq...> wrote:
>>> Doing some research on this, it might not be too difficult, you
>>> *should* be able to catch this in the logout_error hook. It's a bit of
>>> a "cheap shot" so to speak, but you can probably do something like
>>> this:
>
>>> function login_auto_logout_err() {
>>> if (defined('PAGE_NAME') && (PAGE_NAME == 'webmail')) {
>>> if (!empty($_COOKIE['user'])) {
>>> header('Location: ' . SM_PATH . 'src/login.php');
>>> }
>>> }
>>> }
>
>>> This forces a redirect to the login page, only if the page is webmail,
>>> and the login_auto cookie 'user' is set. This will allow the normal
>>> login_auto code to kick in. You'll also need to update the
>>> squirrelmail_plugin_hooks, which is in the _init function in
>>> login_auto/setup.php.
>>>
>>> $squirrelmail_plugin_hooks['logout_error']['login_auto'] =
>>> 'login_auto_logout_err';
>
>> Thanks.
>
>> O.K. in login_auto/setup.php, I have (showing relevant parts only):
>
> [..]
>
>> login_auto_logout_err_do() never seems to be called and no redirection
>> happens.
>> login_auto_logout_err never seems to be called either.
>
>> Do I have something incorrect?
>
> What SM version are you using? The 1.5.2-svn builds a static PHP array
> from the plugins, so you'd need to rerun the configuration util. I
> just applied it to my login_auto 1.1, and SM 1.4.12-svn setup, and got
> it working fine. I've included a patch.
>
> - --
> Jon Angliss
> <jo...@sq...
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
>
> iD8DBQFHPbykK4PoFPj9H3MRAjTPAJsEqQJnHzv0t0wPofbLN9ceoW2faACgnXmF
> eEQFlhqn3jxuJ+mj2+EkS/o=
> =f9ZZ
> -----END PGP SIGNATURE-----
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> -----
> squirrelmail-devel mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squ...@li...
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
>
--
View this message in context: http://www.nabble.com/%27You-must-be-logged-in-to-access-this-page.%27-after-going-to-%27webmail.php%27-%28plugin-%27login_auto%27%29-tf4622255.html#a13916147
Sent from the squirrelmail-devel mailing list archive at Nabble.com.
|