Domy
08-27-2011, 11:19 PM
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?
<?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.
}
?>
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?
<?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.
}
?>