PDA

View Full Version : Integrating vB3.5 with custom script


bamaster
01-10-2006, 04:56 AM
I just upgraded and my custom script no longer works. I simply retrieved $bbuserinfo['userid'] to authenticate.

My code looks like this:

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);

chdir('/home/httpd/path/forum');

require_once('./global.php');
require_once('./includes/functions_user.php');

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];

print("Welcome back, $username!<br>");

}

I've researched some but didn't find anything that helped. What has changed?

Thanks in advance!