summaryrefslogtreecommitdiffstats
path: root/squid-basic-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-08-12 14:06:46 +0000
committerTed Trask <ttrask01@yahoo.com>2008-08-12 14:06:46 +0000
commit9c32f7047c8d3b3f19f451149b291ee74ef64062 (patch)
tree47d2fc85994bf4b920b09ad456c52c3937b197b7 /squid-basic-html.lsp
parentc9683570fd9a648a80713b4fef357f2cb7d5021b (diff)
downloadacf-squid-9c32f7047c8d3b3f19f451149b291ee74ef64062.tar.bz2
acf-squid-9c32f7047c8d3b3f19f451149b291ee74ef64062.tar.xz
Modified squid to use new status, startstop, and expert (replaced advanced) actions.
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@1379 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-basic-html.lsp')
-rw-r--r--squid-basic-html.lsp39
1 files changed, 10 insertions, 29 deletions
diff --git a/squid-basic-html.lsp b/squid-basic-html.lsp
index 2ee56dc..8822f87 100644
--- a/squid-basic-html.lsp
+++ b/squid-basic-html.lsp
@@ -1,34 +1,21 @@
-<%
+<%
require("viewfunctions")
- local form = ...
- local data = form.option
+ local form, viewlibrary = ...
local service = form.service
local config = form.service.config
-
- local srv1fill = ""
- local srv2fill = "disabled"
- if form.info.status.value == "Enabled" then
- srv1fill = "disabled"
- srv2fill = ""
- end
-
+
local ifthen = function( variable, value, result )
if variable == value then
io.write( result )
end
end
-
-%>
-<H1>SYSTEM INFO</H1>
-<DL>
-<%
-local myform = form.info
-local tags = { "status", "version", "autostart", }
-displayinfo(myform,tags,"viewonly")
%>
-</DL>
+
+<% if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("status")
+end %>
<h1>Configuration</h1>
<form action="" method="POST">
@@ -98,13 +85,7 @@ until you restart the service.</DD>
</dl>
</form>
-<h1>MANAGEMENT</h1>
-<form action="" method="POST">
-<dl>
-<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <% io.write( srv1fill ) %>>
-<input class="submit" type="submit" name="srvcmd" value="stop" <% io.write( srv2fill ) %>>
-<input class="submit" type="submit" name="srvcmd" value="restart" <% io.write( srv2fill ) %>>
-<% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %><pre><% io.write( service.message.descr ) %></pre><% end %></dd>
-</dl>
-</form>
+<% if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("startstop")
+end %>