</td> </tr> </tbody> </table> <?php return 1; } if (GET('type') == 'alarm') { $report_type = "alarm"; } else { $report_type = "event"; } $path_conf = $GLOBALS["CONF"]; $jpgraph_path = $path_conf->get_conf("jpgraph_path"); if (!is_readable($jpgraph_path)) { $error = new Av_error(); $error->set_message('JPGRAPH_PATH'); $error->display(); } $geoloc = new Geolocation("/usr/share/geoip/GeoLiteCity.dat"); require_once 'jgraphs/jgraphs.php'; $security_report = new Security_report(); $server = Util::get_default_admin_ip(); $file = $_SERVER["REQUEST_URI"]; /* database connect */ $db = new ossim_db(); $conn = $db->connect(); /* Number of hosts to show */ $NUM_HOSTS = 10; //############################# // Top attacked hosts
function valid_value($key, $value, $numeric_values) { if (in_array($key, $numeric_values)) { if (!is_numeric($value)) { $error_msg = _('Error!') . ' ' . "<strong>{$key}</strong>" . ' ' . _('must be numeric'); $error = new Av_error(); $error->set_message($error_msg); $error->display(); } } return TRUE; }
{ width: 100px; } </style> </head> <body> <!-- Asset form --> <div id='c_info'> <?php if (!$nmap_exists) { $error = new Av_error(); $error->set_message('NMAP_PATH'); $error->display(); } if (is_array($validation_errors) && !empty($validation_errors)) { $txt_error = '<div>' . _('We Found the following errors') . ":</div>\n\t\t\t\t\t <div style='padding: 10px;'>" . implode('<br/>', $validation_errors) . '</div>'; $config_nt = array('content' => $txt_error, 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'width: 80%; margin: 20px auto; text-align: left;'); $nt = new Notification('nt_1', $config_nt); $nt->show(); } ?> </div> <div id='c_asset_discovery'> <form name="assets_form" id="assets_form">