summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/vpn_ipsec_settings.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-01-10 18:27:15 -0200
committerRenato Botelho <renato@netgate.com>2017-01-10 18:27:15 -0200
commit6a9a75958c21ab3011ea6d52c00d5e370c08cf89 (patch)
tree50dc713c40bd7e0deb7b0386c46f6863223ae725 /src/usr/local/www/vpn_ipsec_settings.php
parenta271ed3d5eff8595a558af802f883c47a7dab884 (diff)
parent3cb0c7c312d4c17cb75e8ce9fff3a28c706d76a5 (diff)
downloadpfsense-6a9a75958c21ab3011ea6d52c00d5e370c08cf89.zip
pfsense-6a9a75958c21ab3011ea6d52c00d5e370c08cf89.tar.gz
Merge pull request #3343 from phil-davis/retval1
Diffstat (limited to 'src/usr/local/www/vpn_ipsec_settings.php')
-rw-r--r--src/usr/local/www/vpn_ipsec_settings.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/usr/local/www/vpn_ipsec_settings.php b/src/usr/local/www/vpn_ipsec_settings.php
index 8d140c3..9e21937 100644
--- a/src/usr/local/www/vpn_ipsec_settings.php
+++ b/src/usr/local/www/vpn_ipsec_settings.php
@@ -165,20 +165,11 @@ if ($_POST) {
write_config();
+ $changes_applied = true;
$retval = 0;
- $retval = filter_configure();
- if (stristr($retval, "error") <> true) {
- $savemsg = get_std_save_message(gettext($retval));
- $class = 'success';
- } else {
- $savemsg = gettext($retval);
- $class = 'warning';
- }
+ $retval |= filter_configure();
vpn_ipsec_configure($needsrestart);
-
- header("Location: vpn_ipsec_settings.php");
- return;
}
// The logic value sent by $POST for autoexcludelanaddress is opposite to
@@ -213,8 +204,8 @@ function maxmss_checked(obj) {
</script>
<?php
-if ($savemsg) {
- print_info_box($savemsg, $class);
+if ($changes_applied) {
+ print_apply_result_box($retval);
}
if ($input_errors) {
OpenPOWER on IntegriCloud