make a copy of $optcfg since the wireless code depenes on $optcfg

This commit is contained in:
Scott Ullrich 2005-06-03 20:44:23 +00:00
parent 2901afebfd
commit 8bb295317f
3 changed files with 6 additions and 2 deletions

View File

@ -33,6 +33,7 @@
require("guiconfig.inc");
$wancfg = &$config['interfaces']['wan'];
$optcfg = &$config['interfaces']['wan'];
$pconfig['username'] = $config['pppoe']['username'];
$pconfig['password'] = $config['pppoe']['password'];

View File

@ -33,6 +33,7 @@
require("guiconfig.inc");
$wancfg = &$config['interfaces']['wan'];
$optcfg = &$config['interfaces']['wan'];
$pconfig['username'] = $config['pppoe']['username'];
$pconfig['password'] = $config['pppoe']['password'];

View File

@ -105,7 +105,8 @@ function wireless_config_print() {
<tr>
<td colspan="2" valign="top" class="listtopic">Wireless configuration</td>
</tr>
<?php if (strstr($optcfg['if'], "ath")): ?>
<?php if (stristr($optcfg['if'], "ath") == true): ?>
<tr>
<td valign="top" class="vncellreq">Standard</td>
<td class="vtable"><select name="standard" class="formfld" id="standard">
@ -124,7 +125,8 @@ function wireless_config_print() {
<td class="vtable"><select name="mode" class="formfld" id="mode">
<?php
$opts = array();
if (strstr($optcfg['if'], "wi") || strstr($optcfg['if'], "ath"))
if (stristr($optcfg['if'], "wi" == true) ||
stristr($optcfg['if'], "ath") == true)
$opts[] = "hostap";
$opts[] = "BSS";
$opts[] = "IBSS";