![]() |
Limit Guests on foreign scripts?
Just wanting to know the correct code to use to add to a foreign script.
To ensure that only registered users are capable of viewing what i offer? |
Foreign script? More details please.
|
Quote:
For example if i am to create a script and place it in the root directory then i would like to be able to prevent non registered users from viewing the page. |
And is the global.php script included in your custom script? I fyou have that script included, then you can use basic vbulletin code.
|
Quote:
Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/ftwforum/public_html/global.php on line 15 So i assume this is because i am using a directory instead of the root for my script location? --------------- Added [DATE]1287284215[/DATE] at [TIME]1287284215[/TIME] --------------- Anyone got any ideas what i am doing wrong? I can get it to work in the root directory using the below code. PHP Code:
Normally errors like this. Code:
Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/ftwforum/public_html/global.php on line 15 define( ROOT_PATH , "./" ); But that did nothing either. I know this is a simple answer but i am really not that good with PHP and even less skilled with VB. So any help here would be appreciated. |
All times are GMT. The time now is 04:26 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:
|