mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix for auth protocols, thanks @furest. Fixed open wifi network form element. Resolves #326
This commit is contained in:
parent
3f9b422f5f
commit
445ba5c36c
@ -137,11 +137,6 @@ function DisplayWPAConfig()
|
|||||||
foreach ($scan_return as $network) {
|
foreach ($scan_return as $network) {
|
||||||
$arrNetwork = preg_split("/[\t]+/", $network); // split result into array
|
$arrNetwork = preg_split("/[\t]+/", $network); // split result into array
|
||||||
|
|
||||||
// Save RSSI
|
|
||||||
if (array_key_exists(4, $arrNetwork)) {
|
|
||||||
$networks[$arrNetwork[4]]['RSSI'] = $arrNetwork[2];
|
|
||||||
}
|
|
||||||
|
|
||||||
// If network is saved
|
// If network is saved
|
||||||
if (array_key_exists(4, $arrNetwork) && array_key_exists($arrNetwork[4], $networks)) {
|
if (array_key_exists(4, $arrNetwork) && array_key_exists($arrNetwork[4], $networks)) {
|
||||||
$networks[$arrNetwork[4]]['visible'] = true;
|
$networks[$arrNetwork[4]]['visible'] = true;
|
||||||
@ -156,7 +151,13 @@ function DisplayWPAConfig()
|
|||||||
'visible' => true,
|
'visible' => true,
|
||||||
'connected' => false
|
'connected' => false
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Save RSSI
|
||||||
|
if (array_key_exists(4, $arrNetwork)) {
|
||||||
|
$networks[$arrNetwork[4]]['RSSI'] = $arrNetwork[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exec('iwconfig ' . RASPI_WIFI_CLIENT_INTERFACE, $iwconfig_return);
|
exec('iwconfig ' . RASPI_WIFI_CLIENT_INTERFACE, $iwconfig_return);
|
||||||
@ -257,7 +258,7 @@ function DisplayWPAConfig()
|
|||||||
<div class="input-group col-xs-12 col-md-12">
|
<div class="input-group col-xs-12 col-md-12">
|
||||||
<span class="input-group-addon" id="passphrase">Passphrase</span>
|
<span class="input-group-addon" id="passphrase">Passphrase</span>
|
||||||
<?php if ($network['protocol'] === 'Open') { ?>
|
<?php if ($network['protocol'] === 'Open') { ?>
|
||||||
<input type="hidden" name="passphrase<?php echo $index ?>" value="" />---
|
<input type="password" disabled class="form-control" aria-describedby="passphrase" name="passphrase<?php echo $index ?>" value="" />
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<input type="password" class="form-control" aria-describedby="passphrase" name="passphrase<?php echo $index ?>" value="<?php echo $network['passphrase'] ?>" onKeyUp="CheckPSK(this, 'update<?php echo $index?>')" >
|
<input type="password" class="form-control" aria-describedby="passphrase" name="passphrase<?php echo $index ?>" value="<?php echo $network['passphrase'] ?>" onKeyUp="CheckPSK(this, 'update<?php echo $index?>')" >
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user