diff options
-rw-r--r-- | openntpd-config-html.lsp | 32 | ||||
-rw-r--r-- | openntpd-expert-html.lsp | 28 | ||||
-rw-r--r-- | openntpd-logfile-html.lsp | 22 | ||||
-rw-r--r-- | openntpd-status-html.lsp | 16 |
4 files changed, 49 insertions, 49 deletions
diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp index 87f2134..97a5a97 100644 --- a/openntpd-config-html.lsp +++ b/openntpd-config-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="cmd" action="" method="POST"> @@ -23,42 +23,42 @@ displayinfo(myform,tags,"viewonly") <H2>Advanced config</H2> <H3>General settings</H3> <DL> -<? +<% local myform = form.config local tags = { "setstimeonstartup", "cmdsavesetstimeonstartup", } displayinfo(myform,tags) -?> +%> </DL> <h3>'SET TIME' OPTIONS</h3> <DL> -<? +<% local myform = form.config local tags = { "hosts_list", "hosts_cmd_delete", } displayinfo(myform,tags) -?> +%> </DL> <DL> -<? +<% local myform = form.config local tags = { "hosts_add", "hosts_type", "hosts_cmd_add", } displayinfo(myform,tags) -?> +%> </DL> <h3>'PRESENT TIME' OPTIONS (ACT AS TIME SERVER)</h3> <DL> -<? +<% local myform = form.config local tags = { "listen_list", "listen_cmd_delete", "listen_add", "listen_cmd_add", } displayinfo(myform,tags) -?> +%> </DL> -<? +<% -- Management buttons local myform = form.management local tags = { "start", "stop", "restart" } @@ -67,5 +67,5 @@ if (myform) then displaymanagement(myform,tags) io.write("</DL>") end -?> +%> </form> diff --git a/openntpd-expert-html.lsp b/openntpd-expert-html.lsp index 4f77e5e..78ec15d 100644 --- a/openntpd-expert-html.lsp +++ b/openntpd-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/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp index f01b751..15daa91 100644 --- a/openntpd-logfile-html.lsp +++ b/openntpd-logfile-html.lsp @@ -1,37 +1,37 @@ -<? 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> -<? local myform = form.logfile ?> +<% local myform = form.logfile %> <form name="myform" action="" method="POST"> <h1>LOGFILE</h1> <h2>Details</h2> <DL> -<? +<% 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/openntpd-status-html.lsp b/openntpd-status-html.lsp index 1e75972..c4c709d 100644 --- a/openntpd-status-html.lsp +++ b/openntpd-status-html.lsp @@ -1,29 +1,29 @@ -<? 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 = { "setstimeonstartup", "date", "timechanged", } displayinfo(myform,tags,"viewonly") -?> +%> </DL> |