I have the following script in my main page to tell a user they are not logged in OR if they are logged in, some of their profile info. I just upgraded from 3.0.1 to 3.5.1 and this has stopped working. Anyone have a thought on this? Thanks.
<?php
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vtest');
// get special data templates from the datastore
$specialtemplates = array(
'smiliecache',
'bbcodecache',
'iconcache',
'userstats'
);
chdir("vb3");
require_once('./global.php3');
require_once('./includes/functions_bigthree.php3');
require_once('./includes/functions_user.php3');
?>
<HTML>
<?php
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
// user statistics
$userstats = unserialize($datastore['userstats']);
$home['numbermembers'] = vb_number_format($userstats['numbermembers']);
$home['newusername'] = $userstats['newusername'];
$home['newuserid'] = $userstats['newuserid'];
//echo($home['newusername']);
//echo($home['numbermembers']);
//echo($bbuserinfo['username']);
//echo($pmbox['lastvisitdate']);
if( $bbuserinfo['username'] ) {
print('<font face="Arial" size="1">');
print("Welcome " . $bbuserinfo['username'] . "<br>");
print("Current total Alumni Members: " . $home['numbermembers']);
}
else
{
print("You must login/register to gain full access the system.");
}
print("</font>");
unset($userstats);
?>
</BODY>
</HTML>
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vtest');
// get special data templates from the datastore
$specialtemplates = array(
'smiliecache',
'bbcodecache',
'iconcache',
'userstats'
);
chdir("vb3");
require_once('./global.php3');
require_once('./includes/functions_bigthree.php3');
require_once('./includes/functions_user.php3');
?>
<HTML>
<?php
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
// user statistics
$userstats = unserialize($datastore['userstats']);
$home['numbermembers'] = vb_number_format($userstats['numbermembers']);
$home['newusername'] = $userstats['newusername'];
$home['newuserid'] = $userstats['newuserid'];
//echo($home['newusername']);
//echo($home['numbermembers']);
//echo($bbuserinfo['username']);
//echo($pmbox['lastvisitdate']);
if( $bbuserinfo['username'] ) {
print('<font face="Arial" size="1">');
print("Welcome " . $bbuserinfo['username'] . "<br>");
print("Current total Alumni Members: " . $home['numbermembers']);
}
else
{
print("You must login/register to gain full access the system.");
}
print("</font>");
unset($userstats);
?>
</BODY>
</HTML>
Comment