summaryrefslogtreecommitdiffstats
path: root/snort-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:57:28 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:57:28 +0000
commit1128ccf6f3e8c4b75fd02257770e9ceb31192b42 (patch)
treec29369f348fc387678d0de7eea8c0e481c08c8d8 /snort-controller.lua
parentf3724792f225ab8a0f0503b229b0de586f06aae2 (diff)
downloadacf-snort-1128ccf6f3e8c4b75fd02257770e9ceb31192b42.tar.bz2
acf-snort-1128ccf6f3e8c4b75fd02257770e9ceb31192b42.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 'snort-controller.lua')
-rw-r--r--snort-controller.lua13
1 files changed, 2 insertions, 11 deletions
diff --git a/snort-controller.lua b/snort-controller.lua
index 828e10f..1ee4a63 100644
--- a/snort-controller.lua
+++ b/snort-controller.lua
@@ -1,14 +1,5 @@
module (..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
--- ################################################################################
--- LOCAL FUNCTIONS
-
--- ################################################################################
--- PUBLIC FUNCTIONS
-
default_action = "status"
function status(self)
@@ -20,10 +11,10 @@ function details(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 expert(self)
- return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Configuration", "Configuration Set")
+ return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Configuration", "Configuration Set")
end