From dbc0d0d65fa461c63db2b091eadf1a9494f60ee7 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 24 Mar 2023 12:04:34 +0100 Subject: [PATCH] Update w/ getSignalBars, hide/show passphrase glyphs --- templates/wifi_stations/network.php | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/templates/wifi_stations/network.php b/templates/wifi_stations/network.php index 1199a5e5..43523e47 100644 --- a/templates/wifi_stations/network.php +++ b/templates/wifi_stations/network.php @@ -4,7 +4,7 @@ -
+
@@ -29,21 +29,14 @@
- = -200) { - echo htmlspecialchars($network['RSSI'], ENT_QUOTES); - echo "dB ("; - if ($network['RSSI'] >= -50) { - echo 100; - } elseif ($network['RSSI'] <= -100) { - echo 0; - } else { - echo 2*($network['RSSI'] + 100); - } - echo "%)"; + = -200) { + echo '
'; + echo getSignalBars($network['RSSI']); + echo '
' .htmlspecialchars($network['RSSI'], ENT_QUOTES) . "dB" . "
"; + echo '
'; } else { echo " not found "; - } + } ?>
@@ -52,8 +45,8 @@ -
-
+
+
@@ -63,7 +56,7 @@
- +