From 37b4a15a9a0e07504188b96567d500085b035b4d Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 1 Feb 2008 18:14:36 +0000 Subject: Changed shorewall so that it reports/uses cfe's instead! git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@682 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-logfile-html.lsp | 111 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 91 insertions(+), 20 deletions(-) (limited to 'shorewall-logfile-html.lsp') diff --git a/shorewall-logfile-html.lsp b/shorewall-logfile-html.lsp index f509a1d..e7d32b2 100644 --- a/shorewall-logfile-html.lsp +++ b/shorewall-logfile-html.lsp @@ -1,32 +1,103 @@ - + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + +") + for k,v in pairs(tags) do + if (myform[v]) then + local val = myform[v] + io.write("\t 0) then io.write(" class='error'") end + io.write(">" .. val.label .. "\n") + + io.write("\t\t
" .. val.value .. "\n") + if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end + if (#val.errtxt > 0) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") + end + end + io.write("") +end +?> +") + for k,v in pairs(tags) do + if (myform[v]) then + local val = myform[v] + io.write("\t 0) then io.write(" class='error'") end + io.write(">" .. val.label .. "\n") + + io.write("\t\t
" .. html.form[val.type](val) .. "\n") + if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end + if (#val.errtxt > 0) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") + end + end + io.write("") +end +?> + -

SYSTEM INFO

+

SYSTEM INFO

+ -
-
Program status
-
-
+

LOGIFLES

+

DETAILS

+ +

FILE DETAILS

+ -
-
Program version
-
-
+

FILE CONTENT

-

LOGFILE

-

Details

+ +
+

MANAGEMENT

+
+
+
+ + + + + +
-
-
Logfile
-
-
+ 0) then ?> +
Previous action result
+
+ +
+
-

Content

- + DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") --]] ?> -- cgit v1.2.3