summaryrefslogtreecommitdiffstats
path: root/snort-status-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-15 16:03:10 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-15 16:03:10 +0000
commit4bac51eb98c5b5c184b697dcb5af63ec8b999db2 (patch)
treed3828f733330c0b4a5fa6fe7dcfaf2010de0db40 /snort-status-html.lsp
parent9c3419edaf3086aa1828be9fc2998e8cf090dd8b (diff)
downloadacf-snort-4bac51eb98c5b5c184b697dcb5af63ec8b999db2.tar.bz2
acf-snort-4bac51eb98c5b5c184b697dcb5af63ec8b999db2.tar.xz
Cleaned up code and used lib's instead.
Added functionallity to change the config-file. git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@579 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'snort-status-html.lsp')
-rw-r--r--snort-status-html.lsp25
1 files changed, 8 insertions, 17 deletions
diff --git a/snort-status-html.lsp b/snort-status-html.lsp
index 66d00c1..0eac963 100644
--- a/snort-status-html.lsp
+++ b/snort-status-html.lsp
@@ -2,31 +2,22 @@
<h1>SYSTEM INFO</h1>
+<dl>
<dt>Program status</dt>
-<dd><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></dd>
+<DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD>
+</dl>
+<dl>
<dt>Program version</dt>
<dd><?= view.status.version ?></dd>
+</dl>
+
<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
+<DL>
<dt>Counted alerts</dt>
<dd><?= view.alerts ?> alert(s)</dd>
-
-
-<? --[[ ?>
-<dt>Daemon control</dt>
-<dd><form action="" method="POST">
-<input type=submit name="srvcmd" value="start" class="submit">
-<input type=submit name="srvcmd" value="stop" class="submit">
-<input type=submit name="srvcmd" value="restart" class="submit"></form>
-</dd>
-<? if (view.srvcmdresult) then ?>
-<dt>Previous action</dt>
-<dd><pre><?= view.srvcmdresult ?></pre></dd>
-<? end ?>
-<? --]] ?>
-
-
+</DL>
<h1>ALERT LIST</h1>