I'm not particularly advanced in PHP. All I know is that anything I set before requiring globals.php gets unset after the include.
I found
a thread dating to 2004 in which a vB staff member said
Quote:
Originally Posted by Andreas
For security reasons, vBulletin global.php unsets all global variables except a few specified in array $_allowedvars.
|
I believe this is what I mean.
If I were to do the following…
PHP Code:
$var='value';
require('/home/dir/www/forums/globals.php');
echo $var;
…$var would return empty.