?> </a> <a href="rrd_conf.php"> <?php echo gettext("No"); ?> </a> </p> <?php exit; } require_once 'ossim_db.inc'; require_once 'classes/RRD_config.inc'; $db = new ossim_db(); $conn = $db->connect(); RRD_config::delete($conn, $profile); $db->close($conn); ?> <p> <?php echo gettext("RRD profile deleted"); ?> </p> <?php $location = "rrd_conf.php"; sleep(2); echo "<script>\n ///history.go(-1);\n window.location='{$location}';\n </script>\n "; ?> </body> </html>
$where_clause = ""; break; case 0: $where_clause = "where acked = 0"; break; case 1: $where_clause = "where acked = 1"; break; } $perl_interval = 3600 / 300; $count = RRD_anomaly_global::get_list_count($conn); if ($event_list_global = RRD_anomaly_global::get_list($conn, $where_clause, "order by anomaly_time desc", "0", $count)) { foreach ($event_list_global as $event) { $ip = "Global"; $tmp_data = explode(" ", $event->get_what()); if ($rrd_list_temp = RRD_config::get_list($conn, "WHERE profile = \"global\" AND rrd_attrib =\"" . end($tmp_data) . "\"")) { $rrd_temp = $rrd_list_temp[0]; } ?> <tr> <th> <A HREF="<?php echo "{$ntop_link}/plugins/rrdPlugin?action=list&key=interfaces/eth0&title=interface%20eth0"; ?> " target="_blank"> <?php echo $ip; ?> </A> </th><td> <?php echo $event->get_what();
?> "> <?php echo gettext("Profile"); ?> </a></th> <th> <?php echo gettext("Action"); ?> </th> </tr> <?php $db = new ossim_db(); $conn = $db->connect(); if ($rrd_list = RRD_config::get_profile_list($conn)) { foreach ($rrd_list as $profile) { ?> <tr> <td><?php echo $profile; ?> </td> <td> <a href="modify_rrd_conf_form.php?profile=<?php echo $profile; ?> "> <?php echo gettext("Modify"); ?>