if ($vbulletin->userinfo['userid']){ eval('print_output("' . fetch_template('your_template') . '");');}else{ exec_header_redirect("login.php");}