示例#1
0
文件: ap.php 项目: jhbsz/ossimTest
ossim_valid($sensor, OSS_IP_ADDR, 'illegal: sensor');
ossim_valid($mac, OSS_MAC, OSS_NULLABLE, 'illegal: mac');
if (ossim_error()) {
    die(ossim_error());
}
require_once 'ossim_db.inc';
$db = new ossim_db();
$conn = $db->snort_connect();
$ossim = $db->connect();
if (!validate_sensor_perms($ossim, $sensor, "s, sensor_properties p WHERE s.ip=p.ip AND p.has_kismet=1")) {
    echo $_SESSION["_user"] . " have not privileges for {$sensor}";
    $db->close($conn);
    exit;
}
if ($mac != "" && GET('action') == "delete") {
    Wireless::del_ap($ossim, $mac, $ssid, $sensor);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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">
  <link rel="stylesheet" type="text/css" href="../style/style.css"/>
</head>
<body>
<table width="100%">