ossim_valid($order, OSS_ALPHA, OSS_SPACE, OSS_SCORE, OSS_NULLABLE, 'illegal:' . _("order")); if (ossim_error()) { die(ossim_error()); } if (empty($order)) { $order = "inet_aton(ip)"; } ?> <table align="center" width="35%"> <tr> <th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("profile", $order); ?> "> <?php echo gettext("Profile"); ?> </a></th> <th> <?php echo gettext("Action"); ?> </th> </tr> <?php $db = new ossim_db(); $conn = $db->connect();
</a></td> <td style="background-color:#9DD131;font-weight:bold"><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("dst_ip", $order) . "&inf={$inf}&sup={$sup}&src_ip={$src_ip}&dst_ip={$dst_ip}&num_alarms_page={$num_alarms_page}&date_from={$date_from}&date_to={$date_to}&hide_closed={$hide_closed}&norefresh={$norefresh}&query={$query}&directive_id={$directive_id}&no_resolv={$no_resolv}&sensor_query={$sensor_query}&num_events={$num_events}&num_events_op={$num_events_op}"; ?> "> <?php echo gettext("Destination"); ?> </a></td> <td style="background-color:#9DD131;font-weight:bold"><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("status", $order) . "&inf={$inf}&sup={$sup}&src_ip={$src_ip}&dst_ip={$dst_ip}&num_alarms_page={$num_alarms_page}&date_from={$date_from}&date_to={$date_to}&hide_closed={$hide_closed}&norefresh={$norefresh}&query={$query}&directive_id={$directive_id}&no_resolv={$no_resolv}&sensor_query={$sensor_query}&num_events={$num_events}&num_events_op={$num_events_op}"; ?> "> <?php echo gettext("Status"); ?> </a></td> <td style="background-color:#9DD131;font-weight:bold"> <?php echo gettext("Action"); ?> </td> </tr> <form name="fchecks" action="alarms_check_delete.php" method="post"> <input type="hidden" name="hide_closed" value="<?php echo $hide_closed; ?> ">
</a></th> <th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("company", $order); ?> "><?php echo gettext("Company"); ?> </a></th> <th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("department", $order); ?> "><?php echo gettext("Department"); ?> </a></th> <th><?php echo gettext("Actions"); ?> </th> <th><?php echo gettext("Language"); ?> </th> </tr>
echo $user != "" ? "&user={$user}" : ""; echo $code != "" ? "&code={$code}" : ""; ?> "> <?php echo gettext("Code"); ?> </a> </th> <th> <a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("info", $order); echo $user != "" ? "&user={$user}" : ""; echo $code != "" ? "&code={$code}" : ""; ?> "> <?php echo gettext("Action"); ?> </a> </th> </tr> </thead> <tbody> <?php $time_start = time();
?order=<?php echo ossim_db::get_order("persistence", $order); ?> &profile=<?php echo $profile; ?> "> <?php echo gettext("Persistence"); ?> </a></th> <th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("enable", $order); ?> &profile=<?php echo $profile; ?> "> <?php echo gettext("Enable"); ?> </a></th> <td></td> </tr> <form method="post" action="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ">
<th width="110"><a href="plugin_id?order=<?php echo ossim_db::get_order('name', $order); ?> "><?php echo _("Name"); ?> </a></th> <th width="70"><a href="plugin_id?order=<?php echo ossim_db::get_order('type', $order); ?> "><?php echo _("Type"); ?> </a></th> <th><a href="plugin_id?order=<?php echo ossim_db::get_order('type', $order); ?> "><?php echo _("Description"); ?> </a></th> </tr> <tr> <td class="nobborder" colspan="5"> <div style="overflow:auto;height:300px;width:500px;border:1px solid #EEEEEE"> <table class="transparent" width="100%"> <?php $i = 0; foreach ($plugin_list as $plugin) { $plugin_type = $plugin->get_type(); // Skip monitor plugins for root rule
<th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("plugin_id", $order); ?> "> <?php echo gettext("Plugin id"); ?> </a></th> <th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("plugin_sid", $order); ?> "> <?php echo gettext("Plugin sid"); ?> </a></th> <th> <?php echo gettext("Action"); ?> </th> </tr> <?php require_once 'classes/Host_scan.inc'; require_once 'classes/Plugin.inc';
</th> <?php print ' <th>'; print ' <a href="plugin_id?order='; print ossim_db::get_order('name', $order) . '"'; print ' >' . gettext("Name") . '</a>'; print ' </th>'; print ' <th>'; print ' <a href="plugin_id?order='; print ossim_db::get_order('type', $order) . '"'; print ' >' . gettext("Type") . '</a>'; print ' </th>'; print ' <th>'; print ' <a href="plugin_id?order='; print ossim_db::get_order('type', $order) . '"'; print ' >' . gettext("Description") . '</a>'; print ' </th>'; print ' </tr>'; $none_checked = 'true'; $plugin_list = getPluginList('ORDER BY ' . $order); foreach ($plugin_list as $plugin) { $plugin_type = $plugin->get_type(); if ($plugin_type == '1') { $type_name = 'Detector (1)'; } elseif ($plugin_type == '2') { $type_name = 'Monitor (2)'; } else { $type_name = 'Other (' . $plugin_type . ')'; } if ($plugin_id == $plugin->get_id()) {
<th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("inet_aton(ip)", $order); ?> "> <?php echo gettext("Host"); ?> </a></th> <th><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?> ?order=<?php echo ossim_db::get_order("active", $order); ?> "> <?php echo gettext("Active"); ?> </a></th> <th> <?php echo gettext("Action"); ?> </th> </tr> <?php $db = new ossim_db(); $conn = $db->connect();