$cwd = getcwd();chdir('mydir/forum');require_once('./global.php');/* USER CREATION CODE HERE */chdir($cwd);