diff options
Diffstat (limited to 'squid-digest-html.lsp')
-rw-r--r-- | squid-digest-html.lsp | 36 |
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) +%> |