summaryrefslogtreecommitdiffstats
path: root/snort-expert-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-10 13:24:06 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-10 13:24:06 +0000
commit4a3a5327082b8c284bd5a95cc691778140adb47d (patch)
tree560bcd23b02099186d8f3da0d8100543bf4789dc /snort-expert-html.lsp
parent657097cf1b434e26367123dcc7e95486509e9976 (diff)
downloadacf-snort-4a3a5327082b8c284bd5a95cc691778140adb47d.tar.bz2
acf-snort-4a3a5327082b8c284bd5a95cc691778140adb47d.tar.xz
Chaning names on tabs, and showing expert config (Applying settings don't work)
git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@529 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'snort-expert-html.lsp')
-rw-r--r--snort-expert-html.lsp38
1 files changed, 38 insertions, 0 deletions
diff --git a/snort-expert-html.lsp b/snort-expert-html.lsp
new file mode 100644
index 0000000..5f5d6ec
--- /dev/null
+++ b/snort-expert-html.lsp
@@ -0,0 +1,38 @@
+<? local view = ... ?>
+
+<h1>CONFIGURATION</h1>
+
+<H2>Enable/Disable</H2>
+<DT>Change status for this program</DT>
+<DD><input class="radio" type="radio" name="enabled" value="2" <? if (view.status.enabled) then io.write('checked') end ?> >Enable
+<input class="radio" type="radio" name="enabled" value="3" <? if not (view.status.enabled) then io.write('checked') end ?> >Disable</DD>
+
+<H2>Expert config</H2>
+
+<h3>File details</h3>
+
+<dt>File name</dt>
+<dd><?= view.file.details.path ?></dd>
+
+<dt>File size</dt>
+<dd><?= view.file.details.size ?></dd>
+
+<dt>Last modified</dt>
+<dd><?= view.file.details.mtimelong ?></dd>
+
+<h3>File content</h3>
+
+<form name="myform" action="" method="POST">
+<input name="name" type=hidden value="">
+<textarea name="modifications"><?= view.file.content ?></textarea>
+
+<H2>Save and apply above settings</H2>
+<DT>Apply settings</DT>
+<DD><input class="submitxxx" type="submit" value="Apply"/></DD>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>