summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-24 01:24:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-24 01:24:48 +0000
commit995c37cb73c1ef69718a9e1e7f149caff8276288 (patch)
treefb3af19db2d0322ee2d4eaee73cabb0bf22ec78c
parent21ee235aec5c701d075a234144c8c2c3ff212a33 (diff)
downloadpfsense-995c37cb73c1ef69718a9e1e7f149caff8276288.zip
pfsense-995c37cb73c1ef69718a9e1e7f149caff8276288.tar.gz
* Only output one error message or save notice at a time
* Correc the reboot workaround for kernel panics (CARP interface deletion) Ticket #1397
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index af1234b..6c2630b 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -86,11 +86,17 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<p class="pgtitle"><?=$pgtitle?></p>
<form action="firewall_virtual_ip.php" method="post">
-<?php if ($input_errors) print_input_errors($input_errors); ?>
-<?php if ($savemsg) print_info_box($savemsg); ?>
-<?php if (file_exists($d_vipconfdirty_path)): ?><p>
-<?php print_info_box_np("The VIP configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br>
-<?php endif; ?>
+<?php
+ if ($input_errors)
+ print_input_errors($input_errors);
+ else
+ if ($savemsg)
+ print_info_box($savemsg);
+ 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>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="tabnavtbl">
<?php
@@ -179,7 +185,7 @@ if ($_POST) {
$pconfig = $_POST;
if ($_POST['apply']) {
- if (file_exists("/tmp/carp_reboot_needed") == "del") {
+ if (file_exists("/tmp/carp_reboot_needed")) {
flush();
ob_flush();
usleep(1000);
OpenPOWER on IntegriCloud