Quote:
Originally Posted by Billspaintball
Doh!
Your right.
Login_inc.php is the actual login box and should be placed on the page where you want the box, not in the header.
Ive been going to revise it with a simpler version (only one line to edit in the include so I will change the instructions then as well.
|
Nice one
Does it actually work across domains?
I tried to implement it on my site
www.sw-eaw.de in order to restrict users which are not registered on the forums on
www.cncforen.de from commenting news and using the shoutbox.
So I made a test with a simple php which only calls the include_inc.php.
After editing the vB Setting for the referer white list I was able to send POST data from one to the other domain.
And after filling in my login details the script redirects me to my forum homepage. (I assume I will have to edit login.php around line 120 (redirect) and ask for the referer before redirect is called so I can switch between forum login and site login redirect?)
When I call my loginscript again it will keep on telling me I'm not logged in and presents the login form.
Any ideas?