From 4a3a5327082b8c284bd5a95cc691778140adb47d Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 10 Jan 2008 13:24:06 +0000 Subject: 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 --- snort-controller.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'snort-controller.lua') 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 + -- cgit v1.2.3