<?php $root_path = $_SERVER['DOCUMENT_ROOT']; chdir($root_path."/forum/"); require($root_path."/forum/global.php"); require_once($root_path."/forum/includes/functions_login.php"); $username = $vbulletin->userinfo['username']; $userid = $vbulletin->userinfo['userid']; if ($userid !=0) { echo "Hello $username"; } else { echo "No account logged in"; } ?>