![]() |
Registered for all pages
Ok.. my site is run by php...... and im tryin too make it so someof the files can only be viewed by members.....
instead of require('./global.php') i require data.php (whihc ends up requirin global anyway) .. all of the files i want to be member only require data.php and no other files do so i figuired instead of having to put this code in evry page i could just put it in data.php so in other pages i just have the PHP Code:
|
^^^
|
if you have included global.php it loads the $bbuserinfo array and if they aren't registered or logged in their userid is 0 so you can use the following code
PHP Code:
|
Thx!
|
All times are GMT. The time now is 03:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|