From ef406edc61b697438655fb6a6bd3d032b754c8c5 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 7 Sep 2019 09:55:42 +0100 Subject: [PATCH] Added check for monitor setting. Resolves #378 --- templates/dashboard.php | 13 +++++++------ templates/dhcp.php | 36 ++++++++++++++++++------------------ templates/hostapd.php | 19 ++++++++++--------- templates/networking.php | 8 +++++--- templates/system.php | 12 +++++++----- templates/themes.php | 2 +- 6 files changed, 48 insertions(+), 42 deletions(-) diff --git a/templates/dashboard.php b/templates/dashboard.php index 35a4afb5..12c27d73 100644 --- a/templates/dashboard.php +++ b/templates/dashboard.php @@ -84,13 +84,14 @@ exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.$client_iface.' -n | grep
- - - " name="ifup_wlan0" /> - - " name="ifdown_wlan0" /> + + + " name="ifup_wlan0" /> + + " name="ifdown_wlan0" /> + - +
diff --git a/templates/dhcp.php b/templates/dhcp.php index 8dcce473..6e4705f6 100644 --- a/templates/dhcp.php +++ b/templates/dhcp.php @@ -63,13 +63,13 @@ - -" name="savedhcpdsettings" /> - - - " name="stopdhcpd" /> - - " name="startdhcpd" /> + + " name="savedhcpdsettings" /> + + " name="stopdhcpd" /> + + " name="startdhcpd" /> + @@ -153,16 +153,16 @@ - - " name="savedhcpdsettings" /> - '; - } else { - echo''; - } - ?> + + " name="savedhcpdsettings" /> + '; + } else { + echo''; + } + ?> + @@ -171,4 +171,4 @@ - \ No newline at end of file + diff --git a/templates/hostapd.php b/templates/hostapd.php index bd14b2ab..b57aee92 100644 --- a/templates/hostapd.php +++ b/templates/hostapd.php @@ -433,15 +433,16 @@ if(ops[i].value == country){ - - " /> - ' , PHP_EOL; - } else { - echo '' , PHP_EOL; - }; -?> + + + " /> + ' , PHP_EOL; + } else { + echo '' , PHP_EOL; + }; + endif ?> diff --git a/templates/networking.php b/templates/networking.php index ea534842..8572b01d 100644 --- a/templates/networking.php +++ b/templates/networking.php @@ -86,9 +86,11 @@
-
- - + + + + + diff --git a/templates/system.php b/templates/system.php index 9f184ad7..66330ca8 100644 --- a/templates/system.php +++ b/templates/system.php @@ -66,10 +66,12 @@ if ($cpuload > 90) {
- - " /> - " /> - + + + " /> + " /> + +
@@ -84,7 +86,7 @@ if ($cpuload > 90) { " /> - +
diff --git a/templates/themes.php b/templates/themes.php index 8920ad00..be5141ea 100644 --- a/templates/themes.php +++ b/templates/themes.php @@ -15,7 +15,7 @@
- +