From ca8952c1a3f5107563020604585ada9f6b088860 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 22 Sep 2008 20:58:06 +0000 Subject: Rewrite of shorewall to use new libraries, ... Moved statusbasic to status, status to details, expert to listfiles. Changed check to not have a page. Used links for status, edit, startstop. Didn't change config, so it still doesn't work. git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1480 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-listfiles-html.lsp | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 shorewall-listfiles-html.lsp (limited to 'shorewall-listfiles-html.lsp') diff --git a/shorewall-listfiles-html.lsp b/shorewall-listfiles-html.lsp new file mode 100644 index 0000000..df002b2 --- /dev/null +++ b/shorewall-listfiles-html.lsp @@ -0,0 +1,45 @@ +<% local data, viewlibrary, page_info, session = ... +require("viewfunctions") +%> +<% +--[[ DEBUG INFORMATION +io.write("

DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(data)) +io.write("
") +--]] +%> + +<% displaycommandresults({"check"}, session) %> + +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("status") +end %> + +

<%= data.label %>

+ + + + + + + + + +<% for i,file in ipairs(data.value) do %> + + + + + +<% end %> +
FileSizeLast Modified
<%= html.link{value = "edit?filename=" .. file.filename, label=file.filename} %><%= file.filesize %><%= file.mtime %>
+
+
"> +
Check Configuration
+
+
+
+ +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("startstop") +end %> -- cgit v1.2.3