Firefox PHP

login and back

Posted by pat 
pat
login and back
January 20, 2007 12:52PM
Hi,
I know this came up before but I havn't seen a solution yet (please point me to it if I overlooked).
I want to hijack phorum-usermanagement for the Rest of the site:
-I have a script now that determines if a user is logged in and what group they are in.
-logged-out people should be redirected to phorum-login and than back to where they came from on the site(outside phorum that is).

I still have problems with the bounce-back after login - how can that be done ?

thanx
pat
Re: login and back
January 20, 2007 11:45PM
Phorum only sends people back to the referrer if the referrer is a Phorum page. However, you can use the after_login hook to write a module to do whatever you want. Of course, you will need to somehow keep up with where they were. You could use the after_header hook and a check for phorum_page=="login" to reset $PHORUM["DATA"]["LOGIN"]["redir"] to $_SERVER["HTTP_REFERER"].

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Sorry, only registered users may post in this forum.

Click here to login