ich hab leider einen Fehler der ab und zu im Forum auftritt der aus der page_header ist.
Der Code teil ist aus dem bots online modWarning: array_count_values() [function.array-count-values]: The argument should be an array in /srv/www/vhosts/pcforum24.de/httpdocs/includes/page_header.php on line 377
Warning: Variable passed to each() is not an array or object in /srv/www/vhosts/pcforum24.de/httpdocs/includes/page_header.php on line 378
Code: Alles auswählen
$all_bots = array();
$all_bots = array_count_values($bot_array);
while (list ($key, $val) = each ($all_bots))
{
if (strlen($bots_list) == 0)
{
$bots_list = $key . '(' . $val . ')';
}
else
{
$bots_list .= ', ' . $key . '(' . $val . ')';
}
}
$bots_online = count($all_bots);
Code: Alles auswählen
$all_bots = array_count_values($bot_array);
while (list ($key, $val) = each ($all_bots))