ossim_valid($sensors, OSS_ALPHA, OSS_PUNC, 'illegal: sensors'); ossim_valid($sensor, OSS_IP_ADDR, OSS_NULLABLE, 'illegal: sensor'); ossim_valid($mac, OSS_MAC, OSS_NULLABLE, 'illegal: mac'); if (ossim_error()) { die(ossim_error()); } $db = new ossim_db(); $ossim = $db->connect(); $conn = $db->snort_connect(); if ($mac != '' && $sensor != '' && $ssid != '' && GET('action') == 'delete') { if (!validate_sensor_perms($ossim, $sensor, ", sensor_properties WHERE sensor.id=sensor_properties.sensor_id AND sensor_properties.has_kismet=1")) { echo ossim_error($_SESSION["_user"] . " have not privileges for {$sensor}"); $db->close(); exit; } Wireless::del_clients($ossim, $mac, $sensor, $ssid); } ?> <!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="/ossim/style/av_common.css?t=<?php echo Util::get_css_id(); ?> "/>