Quote:
Originally Posted by Lynne
If you include global.php in the page at the top, then the username should be available.
|
look. I tried
PHP Code:
chdir ('../../vbulletin/');
require_once('./global.php');
echo "<pre>";
print_r($vbulletin->userinfo);
echo "</pre>";
The global variable It's ok. But when I print the data of the $vbulletin->userinfo at my page, I receive this
Quote:
Array
(
[userid] => 0
[usergroupid] => 1
[username] => N?o Registrado (User not registered)
[password] =>
[email] =>
[styleid] => 1
[languageid] => 4
[lastactivity] => 1274807054
[daysprune] => 0
[timezoneoffset] => -3
[dstonoff] => 1
[showsignatures] => 1
[showavatars] => 1
[showimages] => 1
[showusercss] => 1
[dstauto] => 0
[maxposts] => -1
[startofweek] => 1
[threadedmode] => 0
[securitytoken] => guest
[securitytoken_raw] => guest
[options] => 1048647
[lang_options] => 1
[lang_code] => pt-br
[lang_charset] => ISO-8859-1
[lang_locale] =>
[lang_imagesoverride] =>
[lang_dateoverride] =>
[lang_timeoverride] =>
[lang_registereddateoverride] =>
[lang_calformat1override] =>
[lang_calformat2override] =>
[lang_logdateoverride] =>
[lang_decimalsep] => ,
[lang_thousandsep] => .
[lastvisit] => 1274807054
[tzoffset] => -2
[lastvisitdate] => 25-05-2010 15:04
....
}
|
I can acess the variable, but the information doesn't correspond to my session because at this time I was logged at the forum.
help me! Please