summaryrefslogtreecommitdiffstats
path: root/usr/local/www/bandwidth_by_ip.php
diff options
context:
space:
mode:
authorSjon Hortensius <sjon@hortensius.net>2015-01-04 12:57:21 +0100
committerSjon Hortensius <sjon@hortensius.net>2015-01-04 12:57:21 +0100
commit7d5b007c2ec298d018752365ab0dc56d77838b6e (patch)
treee1d521d2660eedc4638c729920bd8b5332c8a95e /usr/local/www/bandwidth_by_ip.php
parent3b2c83b8a6c2bd2c90b8470c112dde713bac48b6 (diff)
downloadpfsense-7d5b007c2ec298d018752365ab0dc56d77838b6e.zip
pfsense-7d5b007c2ec298d018752365ab0dc56d77838b6e.tar.gz
initial drag/drop WIP, working on backup/restore page
Diffstat (limited to 'usr/local/www/bandwidth_by_ip.php')
-rwxr-xr-xusr/local/www/bandwidth_by_ip.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/bandwidth_by_ip.php b/usr/local/www/bandwidth_by_ip.php
index 74697e6..2665315 100755
--- a/usr/local/www/bandwidth_by_ip.php
+++ b/usr/local/www/bandwidth_by_ip.php
@@ -1,5 +1,5 @@
<?php
-/*
+/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*
@@ -47,7 +47,7 @@ if ($filter == "local") {
//get the sort method
$sort = $_GET['sort'];
-if ($sort == "out")
+if ($sort == "out")
{$sort_method = "-T";}
else
{$sort_method = "-R";}
@@ -77,15 +77,15 @@ $_grb = exec("/usr/local/bin/rate -i {$real_interface} -nlq 1 -Aba 20 {$sort_met
$someinfo = false;
for ($x=2; $x<12; $x++){
- $bandwidthinfo = $listedIPs[$x];
+ $bandwidthinfo = $listedIPs[$x];
- // echo $bandwidthinfo;
- $emptyinfocounter = 1;
- if ($bandwidthinfo != "") {
- $infoarray = explode (":",$bandwidthinfo);
+ // echo $bandwidthinfo;
+ $emptyinfocounter = 1;
+ 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 == "") {
$addrdata = $infoarray[0];
} else {
@@ -116,6 +116,6 @@ unset($listedIPs);
//no bandwidth usage found
if ($someinfo == false)
- echo gettext("no info");
+ echo gettext("no info");
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud