summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_virtual_ip.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/firewall_virtual_ip.php')
-rw-r--r--src/usr/local/www/firewall_virtual_ip.php26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/usr/local/www/firewall_virtual_ip.php b/src/usr/local/www/firewall_virtual_ip.php
index b6b0e46..45fb083 100644
--- a/src/usr/local/www/firewall_virtual_ip.php
+++ b/src/usr/local/www/firewall_virtual_ip.php
@@ -275,12 +275,13 @@ $types = array('proxyarp' => 'Proxy ARP',
$pgtitle = array(gettext("Firewall"), gettext("Virtual IP Addresses"));
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
-else if ($savemsg)
+} else if ($savemsg) {
print_info_box($savemsg, 'success');
-else if (is_subsystem_dirty('vip'))
+} else if (is_subsystem_dirty('vip')) {
print_info_box_np(gettext("The VIP configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
+}
/* active tabs
$tab_array = array();
@@ -307,8 +308,9 @@ display_top_tabs($tab_array);
$interfaces = get_configured_interface_with_descr(false, true);
$carplist = get_configured_carp_interface_list();
-foreach ($carplist as $cif => $carpip)
+foreach ($carplist as $cif => $carpip) {
$interfaces[$cif] = $carpip." (".get_vip_descr($carpip).")";
+}
$interfaces['lo0'] = "Localhost";
@@ -320,15 +322,19 @@ foreach ($a_vip as $vipent):
<tr>
<td>
<?php
- if (($vipent['type'] == "single") || ($vipent['type'] == "network"))
- if ($vipent['subnet_bits'])
+ if (($vipent['type'] == "single") || ($vipent['type'] == "network")) {
+ if ($vipent['subnet_bits']) {
print("{$vipent['subnet']}/{$vipent['subnet_bits']}");
+ }
+ }
- if ($vipent['type'] == "range")
- print("{$vipent['range']['from']}-{$vipent['range']['to']}");
+ if ($vipent['type'] == "range") {
+ print("{$vipent['range']['from']}-{$vipent['range']['to']}");
+ }
- if ($vipent['mode'] == "carp")
- print(" (vhid: {$vipent['vhid']})");
+ if ($vipent['mode'] == "carp") {
+ print(" (vhid: {$vipent['vhid']})");
+ }
?>
</td>
<td>
OpenPOWER on IntegriCloud