diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-14 23:18:15 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-14 23:18:15 +0545 |
commit | 67c2baf157c50ae1b545f36bcf6afee6cdf6f67c (patch) | |
tree | c429615f87c26b3da9c58c7149d827a893461dbe /src/usr/local/www/firewall_virtual_ip.php | |
parent | 935b578b7606b8af6866c3c01e9e7b7f9c58a0d9 (diff) | |
download | pfsense-67c2baf157c50ae1b545f36bcf6afee6cdf6f67c.zip pfsense-67c2baf157c50ae1b545f36bcf6afee6cdf6f67c.tar.gz |
Coe style firewall *
Diffstat (limited to 'src/usr/local/www/firewall_virtual_ip.php')
-rw-r--r-- | src/usr/local/www/firewall_virtual_ip.php | 26 |
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> |