Hello,
I'm trying to hunt down the code required to check for a valid vBulletin login. I've restricted access to my vBulletin site, but in order to protect my files, I've created a script that will feed the files to the users rather than allow them to access the files directly (i.e. pdfs, videos, audio, etc.). I know that once the members get the content they can go around and distribute it as they feel, but I just want to add an extra layer of protection to at least keep non-members from being able to access the files directly. So now that I have the script that feeds the users the files, I want to have that script check that they are a valid vBulletin user. Is there a simple method to do this? The script currently is not tied into vBulletin at all, so I'm wondering what I need to do to verify the user is logged in and is a valid member. I just need pointed in the right direction, because I'm new to vBulletin. Any feedback is greatly appreciated.
Thanks,
Wil
--------------- Added [DATE]1271442679[/DATE] at [TIME]1271442679[/TIME] ---------------
I still have to test it more thoroughly, but so far adding this to the top of my script appears to be working...
PHP Code:
chdir("../");
require_once('./global.php');
Any time I try to access the file now using an unregistered user or user who does not have permission to use the forum, it kicks them out to the login page.
Wil