elseif($u['bot_name'])
{
$bots_online++;
if(isset($ulist[ANONYMOUS][$u['bot_name']]))
{
$bot[$u['bot_name']]++;
$ulist[ANONYMOUS][$u['bot_name']] = $u['bot_name'] .' ['. ($bot[$u['bot_name']]) .']';
}
else
{
$bot[$u['bot_name']] = 1;
$ulist[ANONYMOUS][$u['bot_name']] = $u['bot_name'];
}
}
else
{
$guests_online++;
$users_cnt['ANONYMOUS'] = $guests_online;
}
}
if ($ulist)
{
$inline = $block = $short = array();
foreach ($ulist as $level => $users)
{
if (empty($users)) continue;
if (count($users) > 200)
{
$style = 'margin: 3px 0; padding: 2px 4px; border: 1px inset; height: 200px; overflow: auto;';
$block[] = "<div style=\"$style\">\n". join(",\n", $users) ."</div>\n";
$short[] = '<a href="index.php?online_full=1#online">'. $lang['USERS'] .': '. count($users) .'</a>';
}
else
{
$inline[] = join(",\n", $users);
$short[] = join(",\n", $users);
}
if($level != ANONYMOUS) $logged_online += count($users);
}
$online['userlist'] = join(",\n", $inline) . join("\n", $block);
$online_short['userlist'] = join(",\n", $short);
}