Here are lines. 290-310
'threadedmode' => $vboptions['threadedmode']
);
// get default language
$DB_site->reporterror = 0;
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");
foreach($phraseinfo AS $_arrykey => $_arryval)
{
$bbuserinfo["$_arrykey"] = $_arryval;
}
$DB_site->reporterror = 1;
unset($phraseinfo);
// emulate the registered user's setup for lastvisit/lastactivity with cookies for new post markers
if (!empty($_COOKIE[COOKIE_PREFIX . 'lastvisit']))
{
$bbuserinfo['lastvisit'] = intval($_COOKIE[COOKIE_PREFIX . 'lastvisit']);
|