From 34db03ce3b6a455a17da33bf10a8eb0165b90c2c Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 26 Mar 2008 14:41:22 +0000 Subject: First commit on opennhrp. Only shows standard process information and shows connected peers (or what to call them). git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@841 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-status-html.lsp | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 opennhrp-status-html.lsp (limited to 'opennhrp-status-html.lsp') diff --git a/opennhrp-status-html.lsp b/opennhrp-status-html.lsp new file mode 100644 index 0000000..6137246 --- /dev/null +++ b/opennhrp-status-html.lsp @@ -0,0 +1,74 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + + 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 +end +?> + +

SYSTEM INFO

+
+ +
+ + +

PROGRAM SPECIFIC OPTIONS/INFORMATION

+
+ 0) then io.write(" class='error'") end +io.write(">" .. myform.label .. "\n") +io.write("\t\t
\n") +for k,v in pairs(myform.option or {}) do + io.write("\t\t\t") + io.write("\n\t\t\t\n") + for k1,v1 in pairs(v) do + if (k1 ~= "Protocol-Address") then + io.write("\n") + end + end + io.write("\t\t\t
Protocol-Address" .. v["Protocol-Address"] .. "
"..k1..""..v1.."
") +end +io.write("\t\t
\n") +?> +
+ + + + +DEBUGGING

DEBUG INFO: CFE

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