summaryrefslogtreecommitdiffstats
path: root/squid-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'squid-model.lua')
-rw-r--r--squid-model.lua49
1 files changed, 0 insertions, 49 deletions
diff --git a/squid-model.lua b/squid-model.lua
index 1574966..5d8f181 100644
--- a/squid-model.lua
+++ b/squid-model.lua
@@ -125,55 +125,6 @@ mymodule.enable_digest_userlist = function(self, endigest)
return endigest
end
---[[
-mymodule.get_saccess = function()
-
- local config = {}
-
- config.s_ip = mymodule.get_file_contents( "/etc/squid/anoniplist" )
- config.s_browser = mymodule.get_file_contents( "/etc/squid/anonbrowserlist" )
- config.s_domain = mymodule.get_file_contents( "/etc/squid/anondomainlist" )
-
- return config
-end
-
-mymodule.update_saccess = function( config )
-
- mymodule.write_file_contents( "/etc/squid/anoniplist", config.s_ip )
- mymodule.write_file_contents( "/etc/squid/anonbrowserlist", config.s_browser )
- mymodule.write_file_contents( "/etc/squid/anondomainlist", config.s_domain )
-
- return
-end
-
-mymodule.write_file_contents = function( name, contents )
-
- local ptr = io.open( name, "wb+" )
- if ptr ~= nil then
- ptr:write( format.dostounix( contents ) )
- ptr:close()
- end
-
- return
-end
-
-mymodule.get_file_contents = function( name )
-
- local retval = ""
-
- local ptr = io.open( name )
- if ptr ~= nil then
- retval = ptr:read( "*a" )
- ptr:close()
- if retval == nil then
- retval = ""
- end
- end
-
- return retval
-end
---]]
-
mymodule.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", seq=0 },