$get_var) { if(strstr($key, "opt")) { list($name, $value) = explode("|", $get_var); $_POST[$name] = $value; } } ### FIXME - build this string in new method if ($_POST['hostname']) { $where .= " AND hostname LIKE '%".mres($_POST['hostname'])."%'"; } if ($_POST['os']) { $where .= " AND os = '".mres($_POST['os'])."'"; } if ($_POST['version']) { $where .= " AND version = '".mres($_POST['version'])."'"; } if ($_POST['hardware']) { $where .= " AND hardware = '".mres($_POST['hardware'])."'"; } if ($_POST['features']) { $where .= " AND features = '".mres($_POST['features'])."'"; } if ($_GET['location'] == "Unset") { $location_filter = ''; } if ($_GET['location'] && !isset($_POST['location'])) { $location_filter = $_GET['location']; } if ($_POST['location']) { $location_filter = $_POST['location']; } print_r($_POST); print_optionbar_start(62); ?>


DeviceOperating SystemPlatformUptime/Location'); foreach(dbFetch($sql) as $device) { if (device_permitted($device['device_id'])) { if (!$location_filter || ((get_dev_attrib($device,'override_sysLocation_bool') && get_dev_attrib($device,'override_sysLocation_string') == $location_filter) || $device['location'] == $location_filter)) { include("includes/hostbox.inc.php"); } } } echo(""); ?>