summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-25 21:07:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-25 21:07:30 +0000
commit4776ee1757995ef4bd954896a20ee18d14aeed16 (patch)
tree08ca1bc128d569c3f5fba37d45e7fac7ccc82acb /usr
parent187be28993d1f2eb7cf4d269979a62b5f52e0471 (diff)
downloadpfsense-4776ee1757995ef4bd954896a20ee18d14aeed16.zip
pfsense-4776ee1757995ef4bd954896a20ee18d14aeed16.tar.gz
* Use LAN interface for check
* Convert another ATH|WI hardcode into $g['wireless_regex']
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/fbegin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index 174e668..39e4e48 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -163,13 +163,13 @@ require_once("notices.inc");
preg_match($g['wireless_regex'], $config['interfaces']['wan']['if']))
$ifdescrs['wan'] = 'WAN';
if (is_array($config['interfaces']['lan']['wireless']) &&
- preg_match($g['wireless_regex'], $config['interfaces']['wan']['if']))
+ preg_match($g['wireless_regex'], $config['interfaces']['lan']['if']))
$ifdescrs['lan'] = 'LAN';
for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
if (is_array($config['interfaces']['opt' . $j]['wireless']) &&
isset($config['interfaces']['opt' . $j]['enable']) &&
- (strstr($config['interfaces']['opt' . $j]['if'], "wi") || strstr($config['interfaces']['opt' . $j]['if'], "ath")))
- $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
+ preg_match($g['wireless_regex'], $config['interfaces']['opt' . $j]['if']))
+ $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
}
if (count($ifdescrs) > 0): ?>
<li><a href="/status_wireless.php" class="navlnk">Wireless</a></li>
OpenPOWER on IntegriCloud