The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
If in external PHP script
I have a PHP script.
It is a PHP page outside of the forum, but on the same server. I want to make the script only visible to registered users. I used this, but does not work. You know you help me? Code:
<?php require_once('DIR.FORUM/global.php'); ?> <?php if ($vbulletin->userinfo['usergroup'] != 1) { MY_PHP_SCRIPT } else { You don't have permission to view this script. } ?> |
#2
|
|||
|
|||
I think to get that to work you have to chdir to the forum directory, include global.php, and then chdir back (if you need to). Someone just posted some code that does that: https://vborg.vbsupport.ru/showthread.php?t=269215
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|