Permalink
Browse files

Begin work on WiFi front-end

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 2, 2018
1 parent 12a1e3a commit 58b3085308853ef8acff6df56bc3ff2ba503bef5
Showing with 15 additions and 0 deletions.
  1. BIN config/.index.php.swp
  2. +15 −0 config/index.php
Binary file not shown.
@@ -199,6 +199,21 @@ function sanitize($string) {
</label>
</section>
<?php } ?>
<?php
if (ver('nems') >= 1.4 && $disabled == 1) {
$wifi = json_decode(trim(shell_exec('/usr/local/bin/nems-info wifi')));
if (is_object($wifi) && count((array)$wifi) > 0) {
echo '<section><label class="label"><b>Wireless Connection</b><br />SSID:</label><label class="select"><select name="wifi">' . PHP_EOL;
foreach ($wifi as $ssid=>$wifidata) {
echo '<option value="' . $ssid . '">' . $ssid . '</option>' . PHP_EOL;
}
}
?>
</select>
<i></i>
</label>
</section>
<?php } ?>
</fieldset>
</div>

0 comments on commit 58b3085

Please sign in to comment.