summaryrefslogtreecommitdiffstats
path: root/lighttpd-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lighttpd-controller.lua')
-rw-r--r--lighttpd-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/lighttpd-controller.lua b/lighttpd-controller.lua
index d9f5d58..9cd8240 100644
--- a/lighttpd-controller.lua
+++ b/lighttpd-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,7 +7,7 @@ function status(self)
end
function startstop(self)
- return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata)
+ return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
function listfiles(self)
@@ -18,7 +15,7 @@ function listfiles(self)
end
function expert(self)
- return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Lighttpd File", "File Saved")
+ return self.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Lighttpd File", "File Saved")
end
function logfile(self)