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; }
</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 //############################# $month = 60 * 60 * 24 * 31;