I basically understand how to pass the user data to non-VB pages, but after doing so, I have an issue with a $_GET variable stops working.
I have the below to get the user data:
PHP Code:
$curdir = getcwd ();
chdir('../forum');
require_once('../forum/global.php');
chdir ($curdir);
$userdata = $vbulletin->userinfo;
if ($userdata)
{
//Do something
}
// And now my Get Page Variable stops working?
$cpage = $_GET['page']; //Now why did this stop working?
// If I comment out the require_once, and leave the change
// of directories, the $_GET works?