<?phpfunction userVB(){ $fnCwd = getcwd(); chdir('/home/x/public_html/foro/'); global $vbulletin; include('global.php'); chdir($fnCwd); return $vbulletin->userinfo;}$vb = userVB();print_r($vb);