summaryrefslogtreecommitdiffstats
path: root/openssh-config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openssh-config-html.lsp')
-rw-r--r--openssh-config-html.lsp34
1 files changed, 7 insertions, 27 deletions
diff --git a/openssh-config-html.lsp b/openssh-config-html.lsp
index e76d1a2..6990014 100644
--- a/openssh-config-html.lsp
+++ b/openssh-config-html.lsp
@@ -1,38 +1,18 @@
-<% local form, viewlibrary, page_info, session = ...
+<% local form, viewlibrary, page_info = ...
require("viewfunctions")
---[[
-io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(form))
-io.write("</span>")
---]]
%>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("status")
end %>
-<H1>Configuration</H1>
-<H2>Guided Configuration</H2>
-<FORM NAME="configuration" ACTION="" METHOD="POST">
-<H3>Settings</H3>
-<DL>
-<%
-local myform = form
-local tags = { "Port", "ListenAddress", "PasswordAuthentication", "UseDNS",}
-displayinfo(myform,tags)
+<H1><%= form.label %></H1>
+<%
+ form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
+ local order = {"Port", "ListenAddress", "PermitRootLogin", "PasswordAuthentication", "UseDNS"}
+ displayform(form, order)
%>
-</DL>
-<H3>Save</H3>
-<DL>
-<%
-local myform = form
-local tags = { "cmdsave",}
-displayinfo(myform,tags)
-%>
-</DL>
-</FORM>
-
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].startstop then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("startstop")
end %>