summaryrefslogtreecommitdiffstats
path: root/squid-digest-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-18 12:29:20 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-18 12:29:20 +0000
commit28fb85a4404b102e9660c306c2c71e0633c03ddb (patch)
treef36f93b7c620fc290b54e76e862c1015750b79f3 /squid-digest-html.lsp
parent77b5c04c6b5c6aa966c558fc6e63cd2283205dc9 (diff)
downloadacf-squid-28fb85a4404b102e9660c306c2c71e0633c03ddb.tar.bz2
acf-squid-28fb85a4404b102e9660c306c2c71e0633c03ddb.tar.xz
Rewrote squid to remove dependence on tags in config file. Removed ntlm settings, which will have to be implemented in winbindd acf. No support yet for advanced config.
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@1475 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-digest-html.lsp')
-rw-r--r--squid-digest-html.lsp36
1 files changed, 18 insertions, 18 deletions
diff --git a/squid-digest-html.lsp b/squid-digest-html.lsp
index fb8aab6..c5049c9 100644
--- a/squid-digest-html.lsp
+++ b/squid-digest-html.lsp
@@ -1,21 +1,21 @@
-<%
- local form = ...
- local service = form.service
-
-%>
-<h1>Web Proxy Configuration</h1>
-<h2>General Information</h2>
-<p>
- This panel allows you to edit the list of usernames allowed to access the internet through the squid web proxy.
- This list is active only for digest authentication. If you are using NTLM authentication, all domain users are
- allowed to use the web proxy.
-</p>
-<h2>User List</h2>
-<form action="" method="POST">
-<textarea name="userlist"><% io.write( service.config ) %></textarea>
+<% local form, viewlibrary, page_info, session = ... %>
+<% require("viewfunctions") %>
+
+<% displaycommandresults({"enabledigestlist"}, session) %>
-<h3>Save Changes</h3>
+<H1>Digest User List Status</H1>
<DL>
-<dt>Save the contents of the box above</dt><dd><input class="submit" type="submit" name="cmd" value="save"></dd>
+<%
+ displayitem(form.value.status)
+ if form.value.status.errtxt then %>
+<dt></dt><dd><form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/enabledigestlist" %>">
+<input class="submit" type="submit" value="Enable"></form></dd>
+<% end
+%>
</DL>
-</form>
+
+<%
+local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1")
+local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp")
+func(form, viewlibrary, page_info, session)
+%>