- '. $stats['total_users'] ?>
- '.$stats['total_topics'] ?>
- '.$stats['total_posts'] ?>
query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
while ($pun_user_online = $db->fetch_assoc($result))
{
if ($pun_user_online['user_id'] > 0)
;#$users[] = "\n\t\t\t\t".'- '.pun_htmlspecialchars($pun_user_online['ident']).'';
else
++$num_guests;
}
$num_users = count($users);
echo "\t\t\t\t".'
- '. $lang_index['Users online'].': '.$num_users.'
'."\n\t\t\t\t".'
' . $lang_common['Search'] . ''."\n\t\t\t".'
'."\n";
#if ($num_users > 0) echo "\t\t\t".'
'."\n\t\t\t\t".'- '.$lang_index['Online'].':
'."\t\t\t\t".implode(', ', $users).''."\n\t\t\t".'
'."\n";
#else
echo "\t\t\t".'
'."\n";
}
else
echo "\t\t".''."\n\t\t\t".'
'."\n";
?>