diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:29:47 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:29:47 +0000 |
commit | 0b9bf67d6e1407f0ada461f20bacdca2b8201abc (patch) | |
tree | c3dc7a1bcb2ea406e1cc5d4c14c2ab69e161e1b0 /openssh-controller.lua | |
parent | 681852c990ed9bcaeebce9d62e110239b7ca0498 (diff) | |
download | acf-openssh-0b9bf67d6e1407f0ada461f20bacdca2b8201abc.tar.bz2 acf-openssh-0b9bf67d6e1407f0ada461f20bacdca2b8201abc.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 'openssh-controller.lua')
-rw-r--r-- | openssh-controller.lua | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/openssh-controller.lua b/openssh-controller.lua index 99b7650..9e2f866 100644 --- a/openssh-controller.lua +++ b/openssh-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 config(self) - return controllerfunctions.handle_form(self, self.model.read_config, self.model.update_config, self.clientdata, "Save", "Edit Config", "Configuration Saved") + return self.handle_form(self, self.model.read_config, self.model.update_config, self.clientdata, "Save", "Edit Config", "Configuration Saved") 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 expert(self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Saved") + return self.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Saved") end function connectedpeers(self) @@ -38,5 +35,5 @@ function deleteauth(self) end function addauth(self) - return controllerfunctions.handle_form(self, function() return self.model.get_auth(self.clientdata.user) end, self.model.create_auth, self.clientdata, "Add", "Add New Authorized Key", "Key Added") + return self.handle_form(self, function() return self.model.get_auth(self.clientdata.user) end, self.model.create_auth, self.clientdata, "Add", "Add New Authorized Key", "Key Added") end |