summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrony-expert-html.lsp28
-rw-r--r--chrony-logfile-html.lsp18
-rw-r--r--chrony-status-html.lsp16
3 files changed, 31 insertions, 31 deletions
diff --git a/chrony-expert-html.lsp b/chrony-expert-html.lsp
index 4f77e5e..78ec15d 100644
--- a/chrony-expert-html.lsp
+++ b/chrony-expert-html.lsp
@@ -1,21 +1,21 @@
-<? local form = ...
+<% local form = ...
require("viewfunctions")
-?>
-<?
+%>
+<%
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(form))
io.write("</span>")
--]]
-?>
+%>
<H1>SYSTEM INFO</H1>
<DL>
-<?
+<%
local myform = form.status
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<form name="myform" action="" method="POST">
@@ -23,28 +23,28 @@ displayinfo(myform,tags,"viewonly")
<H2>Expert config</H2>
<h3>File details</h3>
<DL>
-<?
+<%
local myform = form.file
local tags = { "filename", "filesize", "mtime", "sumerrors", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<H3>FILE CONTENT</H3>
-<?
+<%
local myform = form.file
io.write(html.form[myform.filecontent.type](myform.filecontent))
-?>
+%>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
<DL>
-<?
+<%
local tags = { "cmdsave", }
displayinfo(myform,tags)
-?>
+%>
</DL>
-<?
+<%
-- Management buttons
local myform = form.management
local tags = { "start", "stop", "restart" }
@@ -53,6 +53,6 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
-?>
+%>
</form>
diff --git a/chrony-logfile-html.lsp b/chrony-logfile-html.lsp
index aa0b6e5..f3d889e 100644
--- a/chrony-logfile-html.lsp
+++ b/chrony-logfile-html.lsp
@@ -1,31 +1,31 @@
-<? local form = ... ?>
-<?
+<% local form = ... %>
+<%
require("viewfunctions")
-?>
+%>
<H1>SYSTEM INFO</H1>
<DL>
-<?
+<%
local myform = form.status
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<form name="myform" action="" method="POST">
<h1>LOGFILE</h1>
<h2>Details</h2>
<DL>
-<?
+<%
local myform = form.logfile
local tags = { "filename", "filesize", "mtime", "sumerrors", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<H3>FILE CONTENT</H3>
-<?
+<%
io.write(html.form[myform.filecontent.type](myform.filecontent))
-?>
+%>
</form>
diff --git a/chrony-status-html.lsp b/chrony-status-html.lsp
index 43ee4db..ebd2052 100644
--- a/chrony-status-html.lsp
+++ b/chrony-status-html.lsp
@@ -1,28 +1,28 @@
-<? local form = ...
+<% local form = ...
require("viewfunctions")
-?>
-<?
+%>
+<%
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(form))
io.write("</span>")
--]]
-?>
+%>
<H1>SYSTEM INFO</H1>
<DL>
-<?
+<%
local myform = form.status
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
<DL>
-<?
+<%
local myform = form.status
local tags = { "date", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>