summaryrefslogtreecommitdiffstats
path: root/dnsmasq-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:11:13 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:11:13 +0000
commite61f08c5a9e86d5d313038765e7f261f0bc2258b (patch)
tree938555e928c2b6f0abb684bd9b1ac1f3b14c9fc9 /dnsmasq-controller.lua
parentde41e1d77f077140badcccd4005964c7ebaabc25 (diff)
downloadacf-dnsmasq-e61f08c5a9e86d5d313038765e7f261f0bc2258b.tar.bz2
acf-dnsmasq-e61f08c5a9e86d5d313038765e7f261f0bc2258b.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'dnsmasq-controller.lua')
-rw-r--r--dnsmasq-controller.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/dnsmasq-controller.lua b/dnsmasq-controller.lua
index 41e3780..5ba412b 100644
--- a/dnsmasq-controller.lua
+++ b/dnsmasq-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,15 +7,15 @@ 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 config(self)
- return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set")
+ return self.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set")
end
function expert(self)
- return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set")
+ return self.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set")
end
function viewleases(self)