PDA

View Full Version : $_GET[] not working


Eddie Raps
08-01-2007, 09:48 PM
Trying to include the logged in user's username on our main page.

So, I have this
chdir('forums/');
require_once('forums/global.php');
chdir('../');

$username = $GLOBALS['vbulletin']->userinfo['username'];
$user_id = $GLOBALS['vbulletin']->userinfo['userid'];


But, somehow, including global.php makes any $_GET variable invalid... either shows blank or 0. Any idea why?

Nevermind. Included init.php instead of global.