Code: |
MOD Name: Redirection MOD
Author: Ornette
MOD Description: This mod follows on from a couple of previous available
[2.0.19] Login Redirection Suite [phantomk]
http://www.phpbb.com/community/viewtopic.php?t=27880
[DEV/BETA] Redirection Suite [Thoul]
http://www.phpbb.com/community/viewtopic.php?t=27880
It wraps up into one, the redirection outside of a forum, and the redirection back to previous location within forum when logging in & out, and now also from edit profile & registering.
I've cleaned up some code and added single ACP to enable disable redirection on *log out* links - i personally think log out should always drop user back to index.php, but i've put in in there anyway
I'd really like some feedback and a good look at code to check security holes.... it takes all the redirect verification out of login.php putting into functions.php which gets reused by usercp_register.php... I adjusted some of the routines, so I'd really like a second opinion. although I have looked long good & hard at it! 8-)
oh and it adds new template field, "S_HIDDEN_FIELDS" with the redirect link, in case anyone wanted to reuse it for putting a login form on page header or anywhere else (i didn't)
its an API type mod, for people wanting to create their own portal type thing. like me :mrgreen: |