summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/logfiles/logfiles-controller.lua33
-rw-r--r--app/logfiles/logfiles-model.lua22
-rw-r--r--app/logfiles/logfiles-read-html.lsp8
-rw-r--r--app/logfiles/logfiles.menu2
4 files changed, 0 insertions, 65 deletions
diff --git a/app/logfiles/logfiles-controller.lua b/app/logfiles/logfiles-controller.lua
deleted file mode 100644
index 1770754..0000000
--- a/app/logfiles/logfiles-controller.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-module (..., package.seeall)
-
--- Cause an http redirect to our "read" action
--- We use the self.conf table because it already has prefix,controller,etc
--- The redir code is defined in the application error handler (acf-controller)
-local list_redir = function (self)
- self.conf.action = "read"
- self.conf.type = "redir"
- error (self.conf)
-end
-
-mvc={}
-mvc.on_load = function(self, parent)
- if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then
- self.worker[self.conf.action] = list_redir(self)
- end
-end
-
--- Public methods
-
-read = function (self )
- return ({logfile = self.model:get("/var/log/mini_httpd.log")} )
-end
-
---update = function (self)
--- return nil
---end
-
---delete = function (self)
--- return nil
---end
-
---create = update
diff --git a/app/logfiles/logfiles-model.lua b/app/logfiles/logfiles-model.lua
deleted file mode 100644
index 6198107..0000000
--- a/app/logfiles/logfiles-model.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-module (..., package.seeall)
-
--- no initializer in model - use controller.init for that
-
-local function read_file ( path )
- local file = io.open(path)
- if ( file ) then
- local f = file:read("*a") or "unknown"
- file:close()
- return f
- else
- return "Cant find '" .. path .. "'"
- end
-end
-
-get = function (self,path)
- local file_content = {}
- file_content = cfe{value=read_file(path), name=path}
- file_name = cfe{value=path, name=file_name}
- return file_content, file_name
-end
-
diff --git a/app/logfiles/logfiles-read-html.lsp b/app/logfiles/logfiles-read-html.lsp
deleted file mode 100644
index b8864f8..0000000
--- a/app/logfiles/logfiles-read-html.lsp
+++ /dev/null
@@ -1,8 +0,0 @@
-<? local view = ... ?>
-<html>
-<body>
-<h1>Logfile</h1>
-<dt><?= view.logfile.name ?></dt>
-<dd><textarea name="<?= view.logfile.name ?>"><?= view.logfile.value ?></textarea></dd>
-</body>
-</html>
diff --git a/app/logfiles/logfiles.menu b/app/logfiles/logfiles.menu
deleted file mode 100644
index f775cfc..0000000
--- a/app/logfiles/logfiles.menu
+++ /dev/null
@@ -1,2 +0,0 @@
-#CAT GROUP/DESC TAB ACTION
-General Logfiles dlogfiles read