* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("analysis-menu", "ControlPanelAlarms");
$ip = GET('ip');
ossim_valid($ip, OSS_IP_ADDR, OSS_NULLABLE, 'illegal:' . _("Ip"));
if (ossim_error()) {
    die(ossim_error());
}
/* connect to db */
$db = new ossim_db();
$conn = $db->connect();
$vulns = Vulnerabilities::get_latest_vulns_data($conn, $ip);
$images = array("1" => "risk1.gif", "2" => "risk2.gif", "3" => "risk3.gif", "6" => "risk6.gif", "7" => "risk7.gif");
$levels = array("1" => "Serious", "2" => "High", "3" => "Medium", "6" => "Low", "7" => "Info");
$bgcolors = array("1" => "#FFCDFF", "2" => "#FFDBDB", "3" => "#FFF283", "6" => "#FFFFC0", "7" => "#FFFFE3");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title> <?php 
echo gettext("OSSIM Framework");
?>
 </title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Pragma" content="no-cache"/>