Add the following right at the top after the
// Dont allow direct linking
defined ('_VALID_MOS'

or die('Direct Access to this location is not allowed.'

;
[code:1]
$self_url = sprintf('http%s://%s%s',
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': ''),
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
[/code:1]
Around about line 250
Was:[code:1]
if ($inactivePeriod setQuery("UPDATE #__fb_sessions SET allowed='na', readtopics='' where userid=$my->id"«»);
$database->query();
setcookie("fboard_settings[prevvisit]", $fbSession->lasttime, time() + 31536000, '/');
// do not reload the page if user is posting :: TODO: check if it cab be replaced by mosRedirect
if ($func != "post"«») {
echo 'setTimeout("window.location.reload( true )",100);';
}
}[/code:1]
Now:[code:1]
if ($inactivePeriod setQuery("UPDATE #__fb_sessions SET allowed='na',lasttime={$systime}, readtopics='' where userid={$my->id}"«»);
$database->query();
setcookie("fboard_settings[prevvisit]", $fbSession->lasttime, time() + 31536000, '/');
// do not reload the page if user is posting :: TODO: check if it cab be replaced by mosRedirect
if ($func != "post"«») {
mosRedirect($self_url);
die();
/* echo 'setTimeout("window.location.reload( true )",100);';*/
}
}[/code:1]