diff options
-rw-r--r-- | squid-config-html.lsp | 15 | ||||
-rw-r--r-- | squid-model.lua | 8 |
2 files changed, 4 insertions, 19 deletions
diff --git a/squid-config-html.lsp b/squid-config-html.lsp deleted file mode 100644 index 22d8bf4..0000000 --- a/squid-config-html.lsp +++ /dev/null @@ -1,15 +0,0 @@ -<% local form, viewlibrary, page_info, session = ... -require("htmlviewfunctions") -html = require("acf.html") -%> - -<% if viewlibrary and viewlibrary.dispatch_component then - viewlibrary.dispatch_component("status") -end %> - -<H1><%= html.html_escape(form.label) %></H1> -<% - form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action - local order = {"httpports", "accesslog", "diskcache", "authmethod"} - htmlviewfunctions.displayform(form, order) -%> diff --git a/squid-model.lua b/squid-model.lua index 525f034..2529e09 100644 --- a/squid-model.lua +++ b/squid-model.lua @@ -176,10 +176,10 @@ end read_config = function() local retval = { - httpports = { type="list", value={}, label="HTTP Ports", descr="List of port, IP:port, or hostname:port entries that Squid will listen on" }, - accesslog = { type="boolean", value=false, label="Log Access" }, - diskcache = { type="boolean", value=false, label="Disk Cache" }, - authmethod = { type="multi", value={}, label="Authentication Methods", option={"negotiate", "ntlm", "digest", "basic"} }, + httpports = { type="list", value={}, label="HTTP Ports", descr="List of port, IP:port, or hostname:port entries that Squid will listen on", seq=0 }, + accesslog = { type="boolean", value=false, label="Log Access", seq=1 }, + diskcache = { type="boolean", value=false, label="Disk Cache", seq=2 }, + authmethod = { type="multi", value={}, label="Authentication Methods", option={"negotiate", "ntlm", "digest", "basic"}, seq=3 }, } configcontent = configcontent or fs.read_file(squidconf) or "" |