Log in

View Full Version : Using vb security for non-vB pages


Mark Hewitt
01-06-2003, 09:48 AM
I expect this has been covered before so if anyone can point me to the correct place :)

I want to create a website as support from my forums, but seperate from the forums code itself. However I need to be able to restrict access to pages contained in there to registered members only.

Parts of the site will ask the user to submit data via an online form which will be saved into file (or database but probably not). However to ensure this is not abused I need to get the username somehow. Is this just a matter of including global.php? :confused:

Darth Cow
01-07-2003, 01:24 AM
$_COOKIE['bbuserid'] stores userids and $_COOKIE['bbpassword'] stores passwords, all assuming users have "Automatically login when you return to the site" selected. You can get the username and check the password from the database :).