summaryrefslogtreecommitdiffstats
path: root/shorewall-expert-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-15 13:44:22 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-15 13:44:22 +0000
commit91f600e62d83f942e722dd18e7c42c244557a610 (patch)
treeb1374d3109b9140da0f0fecde2a8d739e091f9b3 /shorewall-expert-html.lsp
parent880d1fbbed5e15454383dccf7c3497a8772df118 (diff)
downloadacf-shorewall-91f600e62d83f942e722dd18e7c42c244557a610.tar.bz2
acf-shorewall-91f600e62d83f942e722dd18e7c42c244557a610.tar.xz
Created a confirmation when you start/stop/restart the firewall.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@572 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-expert-html.lsp')
-rw-r--r--shorewall-expert-html.lsp38
1 files changed, 38 insertions, 0 deletions
diff --git a/shorewall-expert-html.lsp b/shorewall-expert-html.lsp
new file mode 100644
index 0000000..1b638ca
--- /dev/null
+++ b/shorewall-expert-html.lsp
@@ -0,0 +1,38 @@
+<? local view = ... ?>
+<h1>SYSTEM INFO</h1>
+
+<dt>Program status</dt>
+<DD><?= view.status.status ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<h1>CONFIGURATION</h1>
+
+<h2>Expert config</h2>
+<h3>List of configfiles</h3>
+
+<TABLE>
+ <TR style="background:#eee;font-weight:bold;">
+ <TD width="120px" align="left">File</TD>
+ <TD width="60px" align="right" style="padding-right:10px">Size</TD>
+ <TD align="left">Last Modified</TD>
+ </TR>
+
+
+<? for i = 1, table.maxn(view.filelist) do ?>
+ <TR>
+ <TD><?= html.link{value = view.url .. "/edit?name=" .. view.filelist[i].path , label=view.filelist[i].name } ?></TD>
+ <TD style="padding-right:10px" align="right"><?= view.filelist[i].filedetails.size ?></TD>
+ <TD><?= view.filelist[i].filedetails.mtime ?></TD>
+ </TR>
+<? end ?>
+</TABLE>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
+