diff options
Diffstat (limited to 'usr/local/www/status_graph.php')
-rw-r--r-- | usr/local/www/status_graph.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 28d13c1..2e78faf 100644 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -78,7 +78,7 @@ foreach (array('server', 'client') as $mode) { if ($_GET['if']) { $curif = $_GET['if']; $found = false; - foreach($ifdescrs as $descr => $ifdescr) { + foreach ($ifdescrs as $descr => $ifdescr) { if ($descr == $curif) { $found = true; break; @@ -113,7 +113,7 @@ if ($_GET['hostipformat']) { $curhostipformat = ""; } -$pgtitle = array(gettext("Status"),gettext("Traffic Graph")); +$pgtitle = array(gettext("Status"), gettext("Traffic Graph")); include("head.inc"); @@ -158,7 +158,7 @@ function updateBandwidthHosts(data) { var hosts_split = data.split("|"); d = document; //parse top ten bandwidth abuser hosts - for (var y=0; y<10; y++) { + for (var y = 0; y < 10; y++) { if ((y < hosts_split.length) && (hosts_split[y] != "") && (hosts_split[y] != "no info")) { hostinfo = hosts_split[y].split(";"); @@ -250,7 +250,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl <div id="col2" style="float: right; width: 48%; padding: 5px; position: relative;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="status"> <tr> - <td class="listtopic" valign="top"><?=(($curhostipformat=="") ? gettext("Host IP") : gettext("Host Name or IP")); ?></td> + <td class="listtopic" valign="top"><?=(($curhostipformat == "") ? gettext("Host IP") : gettext("Host Name or IP")); ?></td> <td class="listtopic" valign="top"><?=gettext("Bandwidth In"); ?></td> <td class="listtopic" valign="top"><?=gettext("Bandwidth Out"); ?></td> </tr> |