diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-15 08:46:45 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-15 08:46:45 +0545 |
commit | 3e0a4bbbc87a1f9db8bc17ae057ae0ea55c71457 (patch) | |
tree | c75292eac6206eb3a92a1f70e12216c2b5972ec9 /src/usr | |
parent | 7895a8802317a8477929bea6428bf8dfe214306f (diff) | |
download | pfsense-3e0a4bbbc87a1f9db8bc17ae057ae0ea55c71457.zip pfsense-3e0a4bbbc87a1f9db8bc17ae057ae0ea55c71457.tar.gz |
status_gateways remove unused counter
$counter is incremented but never initialized or used
Code style formatting also done around here.
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/status_gateways.php | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/src/usr/local/www/status_gateways.php b/src/usr/local/www/status_gateways.php index 82da516..8e3215a 100644 --- a/src/usr/local/www/status_gateways.php +++ b/src/usr/local/www/status_gateways.php @@ -115,27 +115,30 @@ display_top_tabs($tab_array); <?php echo lookup_gateway_ip_by_name($gname);?> </td> <td> -<?php if ($gateways_status[$gname]) +<?php + if ($gateways_status[$gname]) { echo $gateways_status[$gname]['monitorip']; - else + } else { echo $gateway['monitorip']; + } ?> </td> <td> -<?php if ($gateways_status[$gname]) - echo $gateways_status[$gname]['delay']; - else - echo gettext("Pending"); +<?php + if ($gateways_status[$gname]) { + echo $gateways_status[$gname]['delay']; + } else { + echo gettext("Pending"); + } ?> - <?php $counter++; ?> </td> <td> -<?php if ($gateways_status[$gname]) +<?php + if ($gateways_status[$gname]) { echo $gateways_status[$gname]['loss']; - else + } else { echo gettext("Pending"); - - $counter++; + } ?> </td> <?php @@ -167,13 +170,14 @@ display_top_tabs($tab_array); $lastchange = $gateways_status[$gname]['lastcheck']; - if(!COLOR) + if (!COLOR) { $bgcolor = WHITE; + } ?> <td bgcolor="<?=$bgcolor?>"> <strong><?=$online?></strong> <?php - if(!empty($lastchange)) { ?> + if (!empty($lastchange)) { ?> <br /><i>Last checked <?=$lastchange?></i> <?php } ?> </td> |