summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-01 15:51:38 +0000
committerErmal <eri@pfsense.org>2010-09-01 15:51:38 +0000
commite847108459441367a88a6e8185165f2e33690d67 (patch)
treef6fef1f6cd75052641248cef39dbfa069203147a /usr/local/www/system_routes.php
parent8e0c376055498bf0a43ff2114062cd8ef8992a09 (diff)
downloadpfsense-e847108459441367a88a6e8185165f2e33690d67.zip
pfsense-e847108459441367a88a6e8185165f2e33690d67.tar.gz
Ticket #866 #632. Save old settings or actions to be taken for reconfiguring a route/vip on a tmp file and make use that information when apply settings buttons is clicked. This makes the gui behave as expected.
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-xusr/local/www/system_routes.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php
index 454e613..84f5de0 100755
--- a/usr/local/www/system_routes.php
+++ b/usr/local/www/system_routes.php
@@ -59,6 +59,14 @@ if ($_POST) {
$retval = 0;
+ if (file_exists("{$g['tmp_path']}/.system_routes.apply")) {
+ $toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.system_routes.apply"));
+ foreach ($toapplylist as $toapply)
+ mwexec("{$toapply}");
+
+ @unlink("{$g['tmp_path']}/.system_routes.apply");
+ }
+
$retval = system_routing_configure();
$retval |= filter_configure();
/* reconfigure our gateway monitor */
@@ -92,7 +100,6 @@ if ($_GET['act'] == "del") {
mwexec("/sbin/route delete " . escapeshellarg($a_routes[$_GET['id']]['network']));
unset($a_routes[$_GET['id']]);
write_config($changedesc);
- mark_subsystem_dirty('staticroutes');
header("Location: system_routes.php");
exit;
}
OpenPOWER on IntegriCloud