diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | dnscache-config-html.lsp | 2 | ||||
-rw-r--r-- | dnscache-listdomains-html.lsp | 4 | ||||
-rw-r--r-- | dnscache-model.lua | 8 |
4 files changed, 8 insertions, 8 deletions
@@ -8,7 +8,7 @@ APP_DIST=\ EXTRA_DIST=README Makefile config.mk -DISTFILES=$(APP_DIST) $(EXTRA_DIST) +DISTFILES=$(APP_DIST) $(EXTRA_DIST) TAR=tar diff --git a/dnscache-config-html.lsp b/dnscache-config-html.lsp index 2fdd23b..9cd679b 100644 --- a/dnscache-config-html.lsp +++ b/dnscache-config-html.lsp @@ -1,4 +1,4 @@ -<% local form, viewlibrary, page_info, session = ... +<% local form, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") %> diff --git a/dnscache-listdomains-html.lsp b/dnscache-listdomains-html.lsp index 8318904..625e5ea 100644 --- a/dnscache-listdomains-html.lsp +++ b/dnscache-listdomains-html.lsp @@ -1,4 +1,4 @@ -<% local data, viewlibrary, page_info, session = ... +<% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> @@ -42,7 +42,7 @@ local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Edit/Vie <% domain.value = d htmlviewfunctions.displayitem(cfe({type="link", value={domain=domain, redir=redir}, label="", option="Edit", action="editdomain"}), page_info, -1) - if d ~= "@" then + if d ~= "@" then htmlviewfunctions.displayitem(cfe({type="form", value={domain=domain}, label="", option="Delete", action="deletedomain"}), page_info, -1) end %> diff --git a/dnscache-model.lua b/dnscache-model.lua index 12bd5f7..705409c 100644 --- a/dnscache-model.lua +++ b/dnscache-model.lua @@ -62,7 +62,7 @@ end function mymodule.get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end - + function mymodule.startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -96,7 +96,7 @@ function mymodule.setconfig(self, config) else file = format.update_ini_file(file,"","FORWARDONLY","") end - fs.write_file(configfile, file) + fs.write_file(configfile, file) else config.errtxt = "Failed to set config" end @@ -142,7 +142,7 @@ function mymodule.setIPs(self, iplist) end if not iplist.errtxt then local currentIPlist = mymodule.getIPs() - for i,name in ipairs(currentIPlist.value.iplist.value) do + for i,name in ipairs(currentIPlist.value.iplist.value) do if reverseIPs[name] then reverseIPs[name] = nil else @@ -215,7 +215,7 @@ end function mymodule.setDomain(self, domain) local success, domain = validatedomain(domain) if success then - fs.write_file(baseurl.."servers/"..domain.value.domain.value, + fs.write_file(baseurl.."servers/"..domain.value.domain.value, table.concat(domain.value.iplist.value, "\n") ) else domain.errtxt = "Failed to save domain" |