From e8c259d72021efda959bcbf6655cacaf3a484266 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 22 May 2023 19:19:15 +0200 Subject: [PATCH] Use Lua Kepler syntax everywhere. Needs the most recent patched FTL that enforces Kepler syntax for all Lua scripts to work as expected. Signed-off-by: DL6ER --- scripts/pi-hole/lua/header.lp | 36 ++++++++-------- scripts/pi-hole/lua/header_authenticated.lp | 26 +++++------ scripts/pi-hole/lua/sidebar.lp | 48 ++++++++++----------- settings-api.lp | 4 +- 4 files changed, 56 insertions(+), 58 deletions(-) diff --git a/scripts/pi-hole/lua/header.lp b/scripts/pi-hole/lua/header.lp index 8afd78a6..a4a68ea7 100644 --- a/scripts/pi-hole/lua/header.lp +++ b/scripts/pi-hole/lua/header.lp @@ -1,6 +1,3 @@ -HTTP/1.0 200 OK -Content-Type: text/html - -\ - html { background-color: #000; }\ - \ -") end ?> + + + -\ - \ -') else mg.write('\ - \ -') end ?> + + + + + + - \ - \ - \ - ') end ?> + + + + + + diff --git a/scripts/pi-hole/lua/header_authenticated.lp b/scripts/pi-hole/lua/header_authenticated.lp index 846f9e0e..78a2fe16 100644 --- a/scripts/pi-hole/lua/header_authenticated.lp +++ b/scripts/pi-hole/lua/header_authenticated.lp @@ -20,7 +20,7 @@ mg.include('header.lp','r') - logged-in"> +