$cwd = getcwd();chdir('./forums');require_once('./global.php');chdir($cwd);if (!is_member_of($vbulletin->userinfo, X)){ print_no_permission();}