summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openntpd-controller.lua24
-rw-r--r--openntpd-logfile-html.lsp26
2 files changed, 0 insertions, 50 deletions
diff --git a/openntpd-controller.lua b/openntpd-controller.lua
index 22fb89f..006b353 100644
--- a/openntpd-controller.lua
+++ b/openntpd-controller.lua
@@ -299,34 +299,10 @@ config = function (self)
end
logfile = function (self)
- -- Start/Stop/Restart process
- local cmdmanagement
- if ( self.clientdata.cmdmanagement) then
- cmdmanagement = cfe({
- name="cmdmanagement",
- label="Previous action result",
- action=cfe({
- name="cmdmanagement",
- value=string.lower(self.clientdata.cmdmanagement), -- This row contains start/stop/restart (one of these commands)
- }),
- })
- local actionresult, cmdmanagement = self.model:startstop_service( cmdmanagement.action )
- end
local status = getstatus(self)
local logfile = self.model:get_logfile()
- -- Management buttons
- local disablestart,disablestop,disablerestart
- -- Disable management buttons based on if the process is running or not
- if (string.lower(status.status.value) == "enabled" ) then
- disablestart = "yes"
- else
- disablestop = "yes"
- end
- -- Display management buttons
- management = displaycmdmanagement(disablestart,disablestop,disablerestart)
-
return ({
management = management,
cmdmanagement = cmdmanagement,
diff --git a/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp
index 5ac4d2d..6f8f8f7 100644
--- a/openntpd-logfile-html.lsp
+++ b/openntpd-logfile-html.lsp
@@ -69,32 +69,6 @@ io.write(html.form[myform.filecontent.type](myform.filecontent))
</form>
-
-<? -- MANAGEMENT BUTTONS
-local cmdform = form.management
-local cmdresult = form.cmdmanagement
-local tags = { "start", "stop", "restart" }
-if (cmdform) and (cmdform[tags[1]]) then
-
- io.write('<form name="management" action="" method="POST">')
- io.write('<H1>MANAGEMENT</H1>')
- io.write('<dl>')
- io.write('<dt>' .. cmdform[tags[1]]["label"] .. '</dt>')
- io.write('<dd>')
- for k,v in pairs(tags) do
- if (cmdform[v]) then
- io.write(html.form[cmdform[v].type](cmdform[v]))
- end
- end
- io.write('</dd>')
-
- if (cmdresult) and (cmdresult.action) and (#cmdresult.action.descr > 0) then
- io.write('<dt>' .. cmdresult.label .. '</dt>')
- io.write('<dd><pre>' .. cmdresult.action.descr .. '</pre></dd>')
- end
- io.write('</dl></form>')
-end ?>
-
<?
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")