diff options
author | Ermal <eri@pfsense.org> | 2013-02-19 18:03:22 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-02-19 18:03:22 +0000 |
commit | b1b930dd1b7d1dc060402dfd10960077bfa4e203 (patch) | |
tree | 72ad544a30b8a024458a7aa3ecc07e750a1278d6 /usr/local/www/bandwidth_by_ip.php | |
parent | b406c78a1fa408dde44fdbba5eedd103fc20b1fd (diff) | |
download | pfsense-b1b930dd1b7d1dc060402dfd10960077bfa4e203.zip pfsense-b1b930dd1b7d1dc060402dfd10960077bfa4e203.tar.gz |
Use jQuery fully on traffic graph. Also remove some unused code from bandwidth_by_ip
Diffstat (limited to 'usr/local/www/bandwidth_by_ip.php')
-rwxr-xr-x | usr/local/www/bandwidth_by_ip.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/bandwidth_by_ip.php b/usr/local/www/bandwidth_by_ip.php index 8e6b11d..002d17d 100755 --- a/usr/local/www/bandwidth_by_ip.php +++ b/usr/local/www/bandwidth_by_ip.php @@ -19,12 +19,15 @@ $listedIPs = ""; //get interface IP and break up into an array $interface = $_GET['if']; -$real_interface = convert_friendly_interface_to_real_interface_name($interface); +$real_interface = get_real_interface($interface); +if (!does_interface_exist($real_interface)) { + echo gettext("Wrong Interface"); + return; +} $intip = find_interface_ip($real_interface); -$intip = explode (".", $intip); //get interface subnet $netmask = find_interface_subnet($real_interface); -$intsubnet = gen_subnet(find_interface_ip($real_interface), $netmask) . "/$netmask"; +$intsubnet = gen_subnet($intip, $netmask) . "/$netmask"; //get the sort method $sort = $_GET['sort']; if ($sort == "out") |