Ejemplo n.º 1
0
if (ossim_error()) {
    die(ossim_error());
}
require_once 'ossim_db.inc';
$db = new ossim_db();
$conn = $db->connect();
# sensor list with perm
if (!validate_sensor_perms($conn, $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;
}
#
$msg = "";
if ($type != "" && $ssid != "") {
    Wireless::update_network_data($conn, $ssid, $sensor, $desc, $type, $notes);
    $msg = "<font color=green>" . _("Update successfully!") . "</font><script>parent.GB_hide();</script>";
}
?>
<!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>