summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-21 17:51:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-21 17:51:02 +0000
commit519a599ecc7ddb86b73b725c2b5bc093ed4983e5 (patch)
treeaae85770ab5d9bd420e25b4b7bac2b81bd3f76a9 /usr
parent931745c6651906fbff3e2fd2cb15204ad9d34e5e (diff)
downloadpfsense-519a599ecc7ddb86b73b725c2b5bc093ed4983e5.zip
pfsense-519a599ecc7ddb86b73b725c2b5bc093ed4983e5.tar.gz
Move post routine to end so that the page will refresh before rebooting (panicing)
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index 44c1ffb..56fab26 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -44,24 +44,6 @@ if (!is_array($config['virtualip']['vip'])) {
}
$a_vip = &$config['virtualip']['vip'];
-if ($_POST) {
- $pconfig = $_POST;
-
- if ($_POST['apply']) {
- $retval = 0;
-
- config_lock();
- $retval = services_proxyarp_configure();
- /* Bring up any configured CARP interfaces */
- reset_carp();
- $retval |= filter_configure();
- config_unlock();
-
- $savemsg = get_std_save_message($retval);
- unlink_if_exists($d_vipconfdirty_path);
- }
-}
-
if ($_GET['act'] == "del") {
if ($a_vip[$_GET['id']]) {
/* make sure no inbound NAT mappings reference this entry */
@@ -180,3 +162,21 @@ include("head.inc");
<?php include("fend.inc"); ?>
</body>
</html>
+
+if ($_POST) {
+ $pconfig = $_POST;
+
+ if ($_POST['apply']) {
+ $retval = 0;
+
+ config_lock();
+ $retval = services_proxyarp_configure();
+ /* Bring up any configured CARP interfaces */
+ reset_carp();
+ $retval |= filter_configure();
+ config_unlock();
+
+ $savemsg = get_std_save_message($retval);
+ unlink_if_exists($d_vipconfdirty_path);
+ }
+}
OpenPOWER on IntegriCloud