$ldescr) { if (!empty($config['ipsec']["ipsec_{$lkey}"])) $pconfig["ipsec_{$lkey}"] = $config['ipsec']["ipsec_{$lkey}"]; } $pconfig['failoverforcereload'] = isset($config['ipsec']['failoverforcereload']); $pconfig['maxmss_enable'] = isset($config['system']['maxmss_enable']); $pconfig['maxmss'] = $config['system']['maxmss']; if ($_POST['submit']) { unset($input_errors); $pconfig = $_POST; if (!$input_errors) { if($_POST['noinstalllanspd'] == "yes") { if (!isset($pconfig['noinstalllanspd'])) $config['system']['noinstalllanspd'] = true; } else { if (isset($config['system']['noinstalllanspd'])) unset($config['system']['noinstalllanspd']); } if($_POST['preferoldsa_enable'] == "yes") $config['ipsec']['preferoldsa'] = true; elseif (isset($config['ipsec']['preferoldsa'])) unset($config['ipsec']['preferoldsa']); if (is_array($config['ipsec'])) { foreach ($ipsec_loglevels as $lkey => $ldescr) { if (empty($_POST["ipsec_{$lkey}"])) { if (isset($config['ipsec']["ipsec_{$lkey}"])) unset($config['ipsec']["ipsec_{$lkey}"]); } else $config['ipsec']["ipsec_{$lkey}"] = $_POST["ipsec_{$lkey}"]; } } if($_POST['failoverforcereload'] == "yes") $config['ipsec']['failoverforcereload'] = true; elseif (isset($config['ipsec']['failoverforcereload'])) unset($config['ipsec']['failoverforcereload']); if($_POST['maxmss_enable'] == "yes") { $config['system']['maxmss_enable'] = true; $config['system']['maxmss'] = $_POST['maxmss']; } else { unset($config['system']['maxmss_enable']); unset($config['system']['maxmss']); } write_config(); $retval = 0; $retval = filter_configure(); if(stristr($retval, "error") <> true) $savemsg = get_std_save_message(gettext($retval)); else $savemsg = gettext($retval); vpn_ipsec_configure_preferoldsa(); vpn_ipsec_configure(); vpn_ipsec_configure_loglevels(); // header("Location: vpn_ipsec_settings.php"); // return; } } $pgtitle = array(gettext("VPN"),gettext("IPsec"),gettext("Settings")); $shortcut_section = "ipsec"; include("head.inc"); ?>
/>
/>

$ldescr): ?>
\n"; foreach (array("Silent", "Audit", "Control", "Diag", "Raw", "Highest") as $lidx => $lvalue) { echo "\n"; } ?>

/>
onclick="maxmss_checked(this)" />
" class="formfld unknown" />
  ">