Commit 67e462c9 authored by Ted Trask's avatar Ted Trask

Remove trailing whitespace

parent 9ad1da37
...@@ -8,7 +8,7 @@ APP_DIST=\ ...@@ -8,7 +8,7 @@ APP_DIST=\
EXTRA_DIST=README Makefile config.mk EXTRA_DIST=README Makefile config.mk
DISTFILES=$(APP_DIST) $(EXTRA_DIST) DISTFILES=$(APP_DIST) $(EXTRA_DIST)
TAR=tar TAR=tar
......
<% local form, viewlibrary, page_info, session = ... <% local form, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions") htmlviewfunctions = require("htmlviewfunctions")
%> %>
......
<% local data, viewlibrary, page_info, session = ... <% local data, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions") htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html") html = require("acf.html")
%> %>
...@@ -42,7 +42,7 @@ local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Edit/Vie ...@@ -42,7 +42,7 @@ local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Edit/Vie
<% <%
domain.value = d domain.value = d
htmlviewfunctions.displayitem(cfe({type="link", value={domain=domain, redir=redir}, label="", option="Edit", action="editdomain"}), page_info, -1) 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) htmlviewfunctions.displayitem(cfe({type="form", value={domain=domain}, label="", option="Delete", action="deletedomain"}), page_info, -1)
end end
%> %>
......
...@@ -62,7 +62,7 @@ end ...@@ -62,7 +62,7 @@ end
function mymodule.get_startstop(self, clientdata) function mymodule.get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname) return modelfunctions.get_startstop(processname)
end end
function mymodule.startstop_service(self, startstop, action) function mymodule.startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action) return modelfunctions.startstop_service(startstop, action)
end end
...@@ -96,7 +96,7 @@ function mymodule.setconfig(self, config) ...@@ -96,7 +96,7 @@ function mymodule.setconfig(self, config)
else else
file = format.update_ini_file(file,"","FORWARDONLY","") file = format.update_ini_file(file,"","FORWARDONLY","")
end end
fs.write_file(configfile, file) fs.write_file(configfile, file)
else else
config.errtxt = "Failed to set config" config.errtxt = "Failed to set config"
end end
...@@ -142,7 +142,7 @@ function mymodule.setIPs(self, iplist) ...@@ -142,7 +142,7 @@ function mymodule.setIPs(self, iplist)
end end
if not iplist.errtxt then if not iplist.errtxt then
local currentIPlist = mymodule.getIPs() 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 if reverseIPs[name] then
reverseIPs[name] = nil reverseIPs[name] = nil
else else
...@@ -215,7 +215,7 @@ end ...@@ -215,7 +215,7 @@ end
function mymodule.setDomain(self, domain) function mymodule.setDomain(self, domain)
local success, domain = validatedomain(domain) local success, domain = validatedomain(domain)
if success then 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") ) table.concat(domain.value.iplist.value, "\n") )
else else
domain.errtxt = "Failed to save domain" domain.errtxt = "Failed to save domain"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment