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_lb_pool.php | |
parent | 7895a8802317a8477929bea6428bf8dfe214306f (diff) | |
download | pfsense-abe98adb911f9ff76af12034646a4c64e26d6390.zip pfsense-abe98adb911f9ff76af12034646a4c64e26d6390.tar.gz |
Code style status*
Diffstat (limited to 'src/usr/local/www/status_lb_pool.php')
-rw-r--r-- | src/usr/local/www/status_lb_pool.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/usr/local/www/status_lb_pool.php b/src/usr/local/www/status_lb_pool.php index c14d6eb..f117343 100644 --- a/src/usr/local/www/status_lb_pool.php +++ b/src/usr/local/www/status_lb_pool.php @@ -90,8 +90,9 @@ $lb_logfile = "{$g['varlog_path']}/relayd.log"; $nentries = $config['syslog']['nentries']; -if (!$nentries) +if (!$nentries) { $nentries = 50; +} $now = time(); $year = date("Y"); @@ -146,8 +147,9 @@ if ($_POST) { } } -if (is_subsystem_dirty('loadbalancer')) +if (is_subsystem_dirty('loadbalancer')) { print_info_box_np('The load balancer configuration has been changed You must apply the changes in order for them to take effect.'); +} /* active tabs */ $tab_array = array(); @@ -183,7 +185,7 @@ foreach ($a_pool as $pool): </td> <td> <?php - switch($pool['mode']) { + switch ($pool['mode']) { case "loadbalance": echo "Load balancing"; break; @@ -217,7 +219,7 @@ foreach ($a_pool as $pool): asort($pool_hosts); foreach ((array) $pool_hosts as $server) { - if($server['ip']['addr']!="") { + if ($server['ip']['addr'] != "") { switch ($server['ip']['state']) { case 'up': $bgcolor = LIGHTGREEN; // lightgreen @@ -245,8 +247,9 @@ foreach ($a_pool as $pool): print("<td bgcolor=\"{$bgcolor}\"> {$server['ip']['addr']}:{$pool['port']} </td><td bgcolor=\"{$bgcolor}\"> "); - if($server['ip']['avail']) + if ($server['ip']['avail']) { print(" ({$server['ip']['avail']}) "); + } ?> </td> </tr> @@ -273,7 +276,7 @@ endforeach; </form> <?php -if($rowsprinted > 0) { +if ($rowsprinted > 0) { ?> <nav class="action-buttons"> <button name="Submit" type="submit" class="btn btn-primary btn-sm" value="<?= gettext("Save"); ?>" > |