summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-01-29 00:10:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-01-29 00:10:19 +0000
commit0e7fe2ade720b539a48d3dcc5d5517066af8cf31 (patch)
treecd345057373c6d18c309c4535868774154abe6bd /usr/local
parent3b7abf1c4a141723f2163d98c604a180bf1f122f (diff)
downloadpfsense-0e7fe2ade720b539a48d3dcc5d5517066af8cf31.zip
pfsense-0e7fe2ade720b539a48d3dcc5d5517066af8cf31.tar.gz
Cleanup if(). Remove additional save message.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index 6c2630b..96232d5 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -72,7 +72,7 @@ if ($_GET['act'] == "del") {
}
if ($_POST['apply']) {
- if (file_exists("/tmp/carp_reboot_needed") == "del") {
+ if (file_exists("/tmp/carp_reboot_needed")) {
$savemsg = "The firewall is now rebooting, please wait.";
unlink_if_exists($d_vipconfdirty_path);
}
@@ -89,11 +89,9 @@ include("head.inc");
<?php
if ($input_errors)
print_input_errors($input_errors);
- else
- if ($savemsg)
+ else if ($savemsg)
print_info_box($savemsg);
- else
- if (file_exists($d_vipconfdirty_path))
+ else if (file_exists($d_vipconfdirty_path))
print_info_box_np("The VIP configuration has been changed.<br>You must apply the changes in order for them to take effect.");
?>
<p>
@@ -200,8 +198,7 @@ if ($_POST) {
reset_carp();
$retval |= filter_configure();
config_unlock();
-
- $savemsg = get_std_save_message($retval);
+
unlink_if_exists($d_vipconfdirty_path);
}
}
OpenPOWER on IntegriCloud