diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-15 10:38:12 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-15 10:38:12 +0545 |
commit | abe98adb911f9ff76af12034646a4c64e26d6390 (patch) | |
tree | 49c09b6bdf22f6afb54eb99e6d2287a8c65283d7 /src/usr/local/www/status_gateway_groups.php | |
parent | 7895a8802317a8477929bea6428bf8dfe214306f (diff) | |
download | pfsense-abe98adb911f9ff76af12034646a4c64e26d6390.zip pfsense-abe98adb911f9ff76af12034646a4c64e26d6390.tar.gz |
Code style status*
Diffstat (limited to 'src/usr/local/www/status_gateway_groups.php')
-rwxr-xr-x | src/usr/local/www/status_gateway_groups.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/usr/local/www/status_gateway_groups.php b/src/usr/local/www/status_gateway_groups.php index 68c29cc..acbce69 100755 --- a/src/usr/local/www/status_gateway_groups.php +++ b/src/usr/local/www/status_gateway_groups.php @@ -116,7 +116,7 @@ display_top_tabs($tab_array); <?php /* process which priorities we have */ $priorities = array(); - foreach($gateway_group['item'] as $item) { + foreach ($gateway_group['item'] as $item) { $itemsplit = explode("|", $item); $priorities[$itemsplit[1]] = true; } @@ -127,7 +127,7 @@ display_top_tabs($tab_array); <tr> <?php // Make a column for each tier - foreach($priorities as $number => $tier) { + foreach ($priorities as $number => $tier) { echo "<th>" . sprintf(gettext("Tier %s"), $number) . "</th>"; } ?> @@ -137,23 +137,23 @@ display_top_tabs($tab_array); <?php /* inverse gateway group to gateway priority */ $priority_arr = array(); - foreach($gateway_group['item'] as $item) { + foreach ($gateway_group['item'] as $item) { $itemsplit = explode("|", $item); $priority_arr[$itemsplit[1]][] = $itemsplit[0]; } ksort($priority_arr); $p = 1; - foreach($priority_arr as $number => $tier) { + foreach ($priority_arr as $number => $tier) { /* for each priority process the gateways */ - foreach($tier as $member) { + foreach ($tier as $member) { /* we always have $priority_count fields */ ?> <tr> <?php $c = 1; - while($c <= $priority_count) { + while ($c <= $priority_count) { $monitor = lookup_gateway_monitor_ip_by_name($member); - if($p == $c) { + if ($p == $c) { $status = $gateways_status[$monitor]['status']; if (stristr($status, "down")) { $online = gettext("Offline"); @@ -172,11 +172,12 @@ display_top_tabs($tab_array); $bgcolor = LIGHTBLUE; } - if(!COLOR) + if (!COLOR) { $bgcolor = WHITE; + } ?> <td bgcolor="<?=$bgcolor?>"> - <?=htmlspecialchars($member);?>,<br /><?=$online?> + <?=htmlspecialchars($member);?>,<br/><?=$online?> </td> <?php |