if (POST('withoutmenu') != "1") { include "../hmenu.php"; $get_param = "name={$net_name}"; } else { $get_param = "name={$net_name}&withoutmenu=1"; } if (POST('insert') && !empty($net_name)) { if ($error == true) { $txt_error = "<div>" . _("We Found the following errors") . ":</div><div style='padding:10px;'>" . implode("<br/>", $message_error) . "</div>"; Util::print_error($txt_error); Util::make_form("POST", "newnetform.php?" . $get_param); die; } $db = new ossim_db(); $conn = $db->connect(); Net::update($conn, $net_name, $cidr, $asset, $threshold_c, $threshold_a, $rrd_profile, $alert, $persistence, $sensors, $descr, $icon); Net_scan::delete($conn, $net_name, 3001); Net_scan::delete($conn, $net_name, 2007); //if (POST('nessus')) Net_scan::insert($conn, $net_name, 3001, 0); if ($nagios) { Net_scan::insert($conn, $net_name, 2007, 0); } $db->close($conn); Util::clean_json_cache_files("(policy|vulnmeter|hostgroup)"); } if (isset($_SESSION['_net'])) { unset($_SESSION['_net']); } if ($_SESSION["menu_sopc"] == "Networks" && POST('withoutmenu') != "1") { ?> <p> <?php