diff options
Diffstat (limited to 'src/usr/local/www/bandwidth_by_ip.php')
-rwxr-xr-x | src/usr/local/www/bandwidth_by_ip.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/usr/local/www/bandwidth_by_ip.php b/src/usr/local/www/bandwidth_by_ip.php index 39f9a01..9f8cc6c 100755 --- a/src/usr/local/www/bandwidth_by_ip.php +++ b/src/usr/local/www/bandwidth_by_ip.php @@ -1,6 +1,8 @@ <?php /* - bandwidth_by_ip.php + * To change this template, choose Tools | Templates + * and open the template in the editor. + * */ /* @@ -109,8 +111,8 @@ for ($x=2; $x<12; $x++) { if ($bandwidthinfo != "") { $infoarray = explode (":", $bandwidthinfo); if (($filter == "all") || - (($filter == "local") && (ip_in_subnet($infoarray[0], $intsubnet))) || - (($filter == "remote") && (!ip_in_subnet($infoarray[0], $intsubnet)))) { + (($filter == "local") && (ip_in_subnet($infoarray[0], $intsubnet))) || + (($filter == "remote") && (!ip_in_subnet($infoarray[0], $intsubnet)))) { if ($hostipformat == "") { // pass back just the raw IP address $addrdata = $infoarray[0]; @@ -144,7 +146,7 @@ unset($bandwidthinfo, $_grb); unset($listedIPs); //no bandwidth usage found -if ($someinfo == false) { +if ($someinfo == false) echo gettext("no info"); -} -?> + +?>
\ No newline at end of file |