if (!$vbulletin->userinfo['userid'] AND THIS_SCRIPT != 'register') { header("Location: " . $vbulletin->options['bburl'] . "/register.php"); }