summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-08-29 17:48:43 +0000
committerTed Trask <ttrask01@yahoo.com>2008-08-29 17:48:43 +0000
commit8129c9d35c40420eeccfba9740ebd6a8d7b28f2b (patch)
tree36ac71de7ebd8ed90cfdaaedcff427bedd60e5be
parent7675a3125618bad993398d89e2ef91eb238c8bc3 (diff)
downloadacf-fetchmail-8129c9d35c40420eeccfba9740ebd6a8d7b28f2b.tar.bz2
acf-fetchmail-8129c9d35c40420eeccfba9740ebd6a8d7b28f2b.tar.xz
Added config to fetchmail to configure globals and multiple entries. Also added ability to run once and test. Still need support for ETRN and SSL.
git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@1438 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--fetchmail-startstop-html.lsp31
1 files changed, 31 insertions, 0 deletions
diff --git a/fetchmail-startstop-html.lsp b/fetchmail-startstop-html.lsp
new file mode 100644
index 0000000..e9d692f
--- /dev/null
+++ b/fetchmail-startstop-html.lsp
@@ -0,0 +1,31 @@
+<% local data, viewlibrary, page_info = ... %>
+
+<H1>Management</H1>
+<DL>
+<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST">
+<DT>Program control-panel</DT>
+<DD>
+<input class="submit" type="submit" name="action" value="Start" <% if data.value.status.value== "Enabled" then io.write("disabled") end %>>
+<input class="submit" type="submit" name="action" value="Stop" <% if data.value.status.value== "Disabled" then io.write("disabled") end %>>
+<input class="submit" type="submit" name="action" value="Restart" <% if data.value.status.value== "Disabled" then io.write("disabled") end %>>
+</DD>
+<DT>Run once</DT>
+<DD>
+<input class="submit" type="submit" name="action" value="Run" <% if data.value.status.value== "Enabled" then io.write("disabled") end %>>
+</DD>
+<DT>Test</DT>
+<DD>
+<input class="submit" type="submit" name="action" value="Test" <% if data.value.status.value== "Enabled" then io.write("disabled") end %>>
+</DD>
+</form>
+
+<% if data.value.result then %>
+<DT>Previous action result</DT>
+<DD>
+<% if data.value.result.value ~= "" then %>
+<P CLASS='descr'><%= string.gsub(data.value.result.value, "\n", "<BR>") %></P>
+<% end if data.value.result.errtxt then %>
+<P CLASS='error'><%= string.gsub(data.value.result.errtxt, "\n", "<BR>") %></P>
+<% end end %>
+</DD>
+</DL>