Ejemplo n.º 1
0
 </th>
<th> <?php 
echo _("Event Type");
?>
 </th>
<th> <?php 
echo _("Target");
?>
 </th>
<th> <?php 
echo _("Extra Data");
?>
 </th>
</tr>
<?php 
$host_ids_list = Host_ids::get_list($conn, "WHERE ip = inet_aton('{$ip}') and date = '{$date}'");
if ($host_ids_list) {
    foreach ($host_ids_list as $host) {
        $sid = $host->get_sid();
        $sid = Host_ids::get_desc($conn, $sid);
        $what = Host_ids::beautify_what($host->get_what());
        $event_type = $host->get_event_type();
        $target = $host->get_target();
        $extra_data = $host->get_extra_data();
        if (preg_match('/^\\[(.*)\\]\\[(.*)\\]$/', $extra_data, $m)) {
            $extra_data = "<font color=\"blue\">" . $m[1] . "</font> -> <font color=\"red\">" . $m[2] . "</font>";
        }
        printf("<TR><TD>\n            {$sid}</TD><TD>\n            {$what}</TD><TD>\n            {$event_type}</TD><TD class=\"left\">\n            <b>{$target}</b></TD><TD>\n            {$extra_data}</TD><TD></TR>");
    }
}
?>