So you did something like:
Code:
$curdir = getcwd();
chdir('forumid'); // change to path to your actual forum directory
require_once('./global.php');
chdir($curdir);
outside of any function, and you got the above error? That looks like an error from a mod that I'm not familiar with, so I'm not sure. Did you look at the line mentioned to see what's going on there?