diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-10 13:24:06 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-10 13:24:06 +0000 |
commit | 4a3a5327082b8c284bd5a95cc691778140adb47d (patch) | |
tree | 560bcd23b02099186d8f3da0d8100543bf4789dc /snort-controller.lua | |
parent | 657097cf1b434e26367123dcc7e95486509e9976 (diff) | |
download | acf-snort-4a3a5327082b8c284bd5a95cc691778140adb47d.tar.bz2 acf-snort-4a3a5327082b8c284bd5a95cc691778140adb47d.tar.xz |
Chaning names on tabs, and showing expert config (Applying settings don't work)
git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@529 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'snort-controller.lua')
-rw-r--r-- | snort-controller.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/snort-controller.lua b/snort-controller.lua index 880b6d6..199ac4e 100644 --- a/snort-controller.lua +++ b/snort-controller.lua @@ -18,10 +18,9 @@ end -- Public methods -read = function (self) +status = function (self) local srvcmdresult = nil local srvcmd = self.clientdata.srvcmd --- local srvcmd = "start" if (srvcmd ~= nil) then srvcmdresult = self.model:service_control(srvcmd) if (srvcmd == "stop") or (srvcmd == "restart") then @@ -38,3 +37,13 @@ read = function (self) url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) end +--[[ +function config(self) + return { status = self.model.getstatus() } +end +--]] + +function expert(self) + return { file = self.model:get_filedetails(), status = self.model.getstatus(),} +end + |