From d5e5189772554041935454713c426aed5f9815fe Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 23 Jan 2006 05:34:39 +0000 Subject: Remove bandwidth items. We don't want to confuse the user with un-used items. --- usr/local/www/interfaces.php | 28 ---------------------------- usr/local/www/interfaces_wan.php | 28 ---------------------------- 2 files changed, 56 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 6995631..49057ff 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -169,9 +169,6 @@ if ($_POST) { if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) { $input_errors[] = "The MTU must be between 576 and 1500 bytes."; } - if($_POST['bandwidth'] <> "" && !is_numeric($_POST['bandwidth'])) { - $input_errors[] = "A valid bandwidth value is required 1-999999."; - } /* Wireless interface? */ if (isset($wancfg['wireless'])) { @@ -254,14 +251,6 @@ if ($_POST) { $config['bigpond']['minheartbeatinterval'] = $_POST['bigpond_minheartbeatinterval']; } - if($_POST['bandwidth'] <> "" and $_POST['bandwidthtype'] <> "") { - $wancfg['bandwidth'] = $_POST['bandwidth']; - $wancfg['bandwidthtype'] = $_POST['bandwidthtype']; - } else { - unset($wancfg['bandwidth']); - unset($wancfg['bandwidthtype']); - } - if($_POST['blockpriv'] == "yes") $wancfg['blockpriv'] = true; else @@ -527,23 +516,6 @@ function type_change(enable_change,enable_change_pptp) { Bandwidth Management (Traffic Shaping) - Interface Bandwidth Speed - - -
The bandwidth setting will define the speed of the interface for traffic shaping. Do not enter your "Internet" bandwidth here, only the physical speed! - - - - - - DHCP client configuration diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 6995631..49057ff 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -169,9 +169,6 @@ if ($_POST) { if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) { $input_errors[] = "The MTU must be between 576 and 1500 bytes."; } - if($_POST['bandwidth'] <> "" && !is_numeric($_POST['bandwidth'])) { - $input_errors[] = "A valid bandwidth value is required 1-999999."; - } /* Wireless interface? */ if (isset($wancfg['wireless'])) { @@ -254,14 +251,6 @@ if ($_POST) { $config['bigpond']['minheartbeatinterval'] = $_POST['bigpond_minheartbeatinterval']; } - if($_POST['bandwidth'] <> "" and $_POST['bandwidthtype'] <> "") { - $wancfg['bandwidth'] = $_POST['bandwidth']; - $wancfg['bandwidthtype'] = $_POST['bandwidthtype']; - } else { - unset($wancfg['bandwidth']); - unset($wancfg['bandwidthtype']); - } - if($_POST['blockpriv'] == "yes") $wancfg['blockpriv'] = true; else @@ -527,23 +516,6 @@ function type_change(enable_change,enable_change_pptp) { Bandwidth Management (Traffic Shaping) - Interface Bandwidth Speed - - -
The bandwidth setting will define the speed of the interface for traffic shaping. Do not enter your "Internet" bandwidth here, only the physical speed! - - - - - - DHCP client configuration -- cgit v1.1