summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces.php28
-rwxr-xr-xusr/local/www/interfaces_wan.php28
2 files changed, 0 insertions, 56 deletions
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) {
<td colspan="2" valign="top" class="listtopic">Bandwidth Management (Traffic Shaping)</td>
</tr>
<tr>
- <td valign="top" class="vncell">Interface Bandwidth Speed</td>
- <td class="vtable"> <input name="bandwidth" type="text" class="formfld" id="bandwidth" size="30" value="<?=htmlspecialchars($wancfg['bandwidth']);?>">
- <select name="bandwidthtype">
- <option value="<?=htmlspecialchars($wancfg['bandwidthtype']);?>"><?=htmlspecialchars($wancfg['bandwidthtype']);?></option>
- <option value="b">bit/s</option>
- <option value="Kb">Kilobit/s</option>
- <option value="Mb">Megabit/s</option>
- <option value="Gb">Gigabit/s</option>
- <option value=""></option>
- </select>
- <br> The bandwidth setting will define the speed of the interface for traffic shaping. Do not enter your "Internet" bandwidth here, only the physical speed!
- </td>
- </tr>
- <tr>
- <td colspan="2" valign="top" height="16"></td>
- </tr>
- <tr>
<td colspan="2" valign="top" class="listtopic">DHCP client configuration</td>
</tr>
<tr>
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) {
<td colspan="2" valign="top" class="listtopic">Bandwidth Management (Traffic Shaping)</td>
</tr>
<tr>
- <td valign="top" class="vncell">Interface Bandwidth Speed</td>
- <td class="vtable"> <input name="bandwidth" type="text" class="formfld" id="bandwidth" size="30" value="<?=htmlspecialchars($wancfg['bandwidth']);?>">
- <select name="bandwidthtype">
- <option value="<?=htmlspecialchars($wancfg['bandwidthtype']);?>"><?=htmlspecialchars($wancfg['bandwidthtype']);?></option>
- <option value="b">bit/s</option>
- <option value="Kb">Kilobit/s</option>
- <option value="Mb">Megabit/s</option>
- <option value="Gb">Gigabit/s</option>
- <option value=""></option>
- </select>
- <br> The bandwidth setting will define the speed of the interface for traffic shaping. Do not enter your "Internet" bandwidth here, only the physical speed!
- </td>
- </tr>
- <tr>
- <td colspan="2" valign="top" height="16"></td>
- </tr>
- <tr>
<td colspan="2" valign="top" class="listtopic">DHCP client configuration</td>
</tr>
<tr>
OpenPOWER on IntegriCloud