Example #1
0
    }
    $_SESSION['directive'] = serialize($direct);
    if ($XML_FILE != '/etc/ossim/server/directives.xml') {
        release_file($XML_FILE);
    }
    if (!empty($directive_id)) {
        $direct->printDirective($level, $directive_xml);
    }
    ?>
</table>
<?php 
    $directive_name = Plugin_sid::get_name_by_idsid($conn, "1505", $directive_id);
    list($properties, $num_properties) = Compliance::get_category($conn, "AND category.sid={$directive_id}");
    $iso_groups = ISO27001::get_groups($conn, "WHERE SIDSS_Ref LIKE '{$directive_id}' OR SIDSS_Ref LIKE '{$directive_id},%' OR SIDSS_Ref LIKE '%,{$directive_id}' OR SIDSS_Ref LIKE '%,{$directive_id},%'");
    $pci_groups = PCI::get_groups($conn, "WHERE SIDSS_ref LIKE '{$directive_id}' OR SIDSS_ref LIKE '{$directive_id},%' OR SIDSS_ref LIKE '%,{$directive_id}' OR SIDSS_ref LIKE '%,{$directive_id},%'");
    list($alarms, $num_alarms) = Alarm::get_list3($conn, "", "", 0, "", null, null, null, null, "", $directive_id);
    $kdocs = Repository::get_linked_by_directive($conn, $directive_id);
    ?>
<table class="transparent" height="100%" width="100%">
	<tr>
		<td class="nobborder" valign="top">
			<table height="100%" width="100%">
				<tr><th colspan="2" height="15"><?php 
    echo _("Properties");
    ?>
</th></tr>
				<?php 
    if (count($properties) < 1) {
        ?>
				<tr><td class="nobborder" style="color:gray;padding:10px"><i><?php 
        echo _("No properties found");
Example #2
0
foreach ($sensors as $s_ip => $s_name) {
    if ($s_name != $s_ip) {
        $sensors_str .= '{ txt:"' . $s_ip . ' [' . $s_name . ']", id: "' . $s_ip . '" },';
    } else {
        $sensors_str .= '{ txt:"' . $s_ip . '", id: "' . $s_ip . '" },';
    }
}
foreach ($hosts as $h_ip => $h_name) {
    if ($h_name != $h_ip) {
        $hosts_str .= '{ txt:"' . $h_ip . ' [' . $h_name . ']", id: "' . $h_ip . '" },';
    } else {
        $hosts_str .= '{ txt:"' . $h_ip . '", id: "' . $h_ip . '" },';
    }
}
// Eficiencia mejorada (Granada, junio 2009)
list($alarm_list, $count) = Alarm::get_list3($conn, $src_ip, $dst_ip, $hide_closed, "ORDER BY {$order}", $inf, $sup, $date_from, $date_to, $query, $directive_id, $sensor_query, $tag, $num_events, $num_events_op);
if (!isset($_GET["hide_search"])) {
    ?>

<form method="GET" id="queryform" name="filters">
<input type="hidden" name="tag" value="<?php 
    echo $tag;
    ?>
">
<input type="hidden" name="date_from" id="date_from"  value="<?php 
    echo $date_from;
    ?>
">
<input type="hidden" name="date_to" id="date_to" value="<?php 
    echo $date_to;
    ?>
Example #3
0
?>
 <b><?php 
echo gettext("Alarms");
?>
</b>...');</script>

<?php 
ob_flush();
flush();
usleep(500000);
require_once 'classes/Session.inc';
$hide_closed = 1;
if ($host != 'any') {
    list($alarm_list, $count) = Alarm::get_list3($conn, $host, $host, $hide_closed, "ORDER BY a.timestamp DESC", 0, 5, $date_from, $date_to, "");
} else {
    list($alarm_list, $count) = Alarm::get_list3($conn, '', '', $hide_closed, "ORDER BY a.timestamp DESC", 0, 5, $date_from, $date_to, "");
}
if ($network) {
    list($host_start, $host_end) = Util::cidr_conv($host);
    $retfields = Alarm::get_max_byfield($conn, "risk", "WHERE (inet_aton('{$host_start}') <= a.src_ip AND inet_aton('{$host_end}') >= a.src_ip) OR (inet_aton('{$host_start}') <= a.dst_ip AND inet_aton('{$host_end}') >= a.dst_ip)");
} else {
    if ($host != 'any') {
        $retfields = Alarm::get_max_byfield($conn, "risk", "WHERE a.src_ip=INET_ATON('{$host}') OR a.dst_ip=INET_ATON('{$host}')");
    } else {
        $retfields = Alarm::get_max_byfield($conn, "risk");
    }
}
$a_maxrisk = $retfields[0];
$backlog_id = $retfields[1];
$alarm_link = "../control_panel/events.php?backlog_id={$backlog_id}";
$a_date = "-";