summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_lb_pool.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
committerPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
commit6c07db487164262f9191ad02805523bd153e0ba6 (patch)
tree0c266356179ac730233a16c0e3767a0c22514c4d /usr/local/www/status_lb_pool.php
parent67d9685607eef7c679fda929ad4855be1b2f9dec (diff)
downloadpfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip
pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz
Code spacing
and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
Diffstat (limited to 'usr/local/www/status_lb_pool.php')
-rw-r--r--usr/local/www/status_lb_pool.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php
index d5b277d..984ab9e 100644
--- a/usr/local/www/status_lb_pool.php
+++ b/usr/local/www/status_lb_pool.php
@@ -56,7 +56,7 @@ $lb_logfile = "{$g['varlog_path']}/relayd.log";
$now = time();
$year = date("Y");
-$pgtitle = array(gettext("Status"),gettext("Load Balancer"),gettext("Pool"));
+$pgtitle = array(gettext("Status"), gettext("Load Balancer"), gettext("Pool"));
$shortcut_section = "relayd";
include("head.inc");
@@ -154,23 +154,23 @@ if ($_POST) {
<td class="listr" align="center">
<table border="0" cellpadding="2" cellspacing="0" summary="status">
<?php
- $pool_hosts=array();
+ $pool_hosts = array();
foreach ((array) $pool['servers'] as $server) {
- $svr['ip']['addr']=$server;
- $svr['ip']['state']=$relay_hosts[$pool['name'].":".$pool['port']][$server]['state'];
- $svr['ip']['avail']=$relay_hosts[$pool['name'].":".$pool['port']][$server]['avail'];
+ $svr['ip']['addr'] = $server;
+ $svr['ip']['state'] = $relay_hosts[$pool['name'] . ":" . $pool['port']][$server]['state'];
+ $svr['ip']['avail'] = $relay_hosts[$pool['name'] . ":" . $pool['port']][$server]['avail'];
$pool_hosts[]=$svr;
}
foreach ((array) $pool['serversdisabled'] as $server) {
- $svr['ip']['addr']="$server";
- $svr['ip']['state']='disabled';
- $svr['ip']['avail']='disabled';
+ $svr['ip']['addr'] = "$server";
+ $svr['ip']['state'] = 'disabled';
+ $svr['ip']['avail'] = 'disabled';
$pool_hosts[]=$svr;
}
asort($pool_hosts);
foreach ((array) $pool_hosts as $server) {
- if ($server['ip']['addr']!="") {
+ if ($server['ip']['addr'] != "") {
switch ($server['ip']['state']) {
case 'up':
$bgcolor = "#90EE90"; // lightgreen
OpenPOWER on IntegriCloud