summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-14 11:54:23 +0000
committerErmal <eri@pfsense.org>2010-06-14 11:54:23 +0000
commit2b6f65d736003028f8def68b325cc10998dc6fea (patch)
tree63f5a09fe7525e38f4ba64378fc006bf3cf75e2e /usr/local/www/firewall_virtual_ip_edit.php
parente03b0a03fb52f94e4f2a85baecdcb9ada18ec939 (diff)
downloadpfsense-2b6f65d736003028f8def68b325cc10998dc6fea.zip
pfsense-2b6f65d736003028f8def68b325cc10998dc6fea.tar.gz
Fixes #549. Save a list of all changed vips to reload in a temporary file so when apply is clicked it can process all of them.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index d8a44db..8970e33 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -218,7 +218,13 @@ if ($_POST) {
write_config();
if (!isset($id))
$id = count($a_vip) - 1;
- header("Location: firewall_virtual_ip.php?changes=mods&id={$id}");
+ if (file_exists("{$g['tmp_path']}/firewall_virtual_ip.apply"))
+ $toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/firewall_virtual_ip.apply"));
+ else
+ $toapplylist = array();
+ $toapplylist[] = $id;
+ file_put_contents("{$g['tmp_path']}/firewall_virtual_ip.apply", serialize($toapplylist));
+ header("Location: firewall_virtual_ip.php");
exit;
}
}
OpenPOWER on IntegriCloud