PHP Code:
<?php
define('THIS_SCRIPT', 'test');
//===========================
// If your outside forum root:
$cwd = getcwd();
chdir('path/to/forumdir');
require_once('global.php');
chdir($cwd);
//===========================
// Else if your inside forum root:
require_once('global.php');
//===========================
// Now your code:
if($vbulletin->userinfo['userid'] == 9)
{
echo 'Good';
}
else
{
echo 'Bad';
}
?>