gettext("Actions"), 'interface' => gettext("Interfaces"), 'proto' => gettext("Protocols"), 'srcip' => gettext("Source IPs"), 'dstip' => gettext("Destination IPs"), 'srcport' => gettext("Source Ports"), 'dstport' => gettext("Destination Ports")); $segcolors = array("#2484c1", "#65a620", "#7b6888", "#a05d56", "#961a1a", "#d8d23a", "#e98125", "#d0743c", "#635222", "#6ada6a"); $numcolors = 10; $summary = array(); foreach (array_keys($fields) as $f) { $summary[$f] = array(); } $totals = array(); function cmp($a, $b) { if ($a == $b) { return 0; } return ($a < $b) ? 1 : -1; } function stat_block($summary, $stat, $num) { global $g, $gotlines, $fields; uasort($summary[$stat] , 'cmp'); print('
' . $fields[$stat] . ' | ' . '' . gettext("Data points") . ' | |
---|---|---|
' . $outstr . ' | ' . '' . $summary[$stat][$k[$i]] . ' | Lookup |
' . $outstr . ' | ' . $summary[$stat][$k[$i]] . ' | |
Other | {$leftover} | "; } print " |