Fixed it.
Here are my changes
Find:
PHP Code:
if ((int)$maxusers['maxonline'] <= $totalonline)
{
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers['maxonline'] . " " . $maxusers['maxonlinedate'];
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
Replace with:
PHP Code:
if (intval($maxusers['maxonline']) <= $totalonline)
{
$maxusers[0] = $totalonline;
$maxusers[1] = TIMENOW;
}
Now Find:
PHP Code:
if ((int)$maxusers[2] <= $numbertodayonline) {
$time = time();
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . $time;
$maxusers[2] = $numbertodayonline;
$maxusers[3] = $time;
}
Replace with:
PHP Code:
if (intval($maxusers['maxonline']) <= $totalonline) {
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . TIMENOW;
$maxusers[2] = $numbertodayonline;
$maxusers[3] = TIMENOW;
$DB_site->query("REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) VALUES ('maxloggedin', '" . addslashes(serialize($maxusers)) . "')");
}