summaryrefslogtreecommitdiffstats
path: root/snort-status-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-23 20:13:26 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-23 20:13:26 +0000
commit5f605e967d42034581ffabd9df9f43de836b30f9 (patch)
tree2249c20d8cb5880a14a6df42103251e3e1fb9639 /snort-status-html.lsp
parent8d89479e98beed2065ea4d1619cbf8f185dd9fb0 (diff)
downloadacf-snort-5f605e967d42034581ffabd9df9f43de836b30f9.tar.bz2
acf-snort-5f605e967d42034581ffabd9df9f43de836b30f9.tar.xz
Removing presentation of categorie because this is already presented in the header.
Displaying a globe for each URL that exists for each alert. git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@631 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'snort-status-html.lsp')
-rw-r--r--snort-status-html.lsp10
1 files changed, 9 insertions, 1 deletions
diff --git a/snort-status-html.lsp b/snort-status-html.lsp
index 0eac963..5c35e30 100644
--- a/snort-status-html.lsp
+++ b/snort-status-html.lsp
@@ -30,7 +30,15 @@
<? for l=2, table.maxn(view.alertresult[i]["value"][j][k]["value"]) do ?>
<?= view.alertresult[i]["value"][j][k]["value"][l] ?><BR>
<? end ?>
- <I>(This alarm is repeated <B><?= view.alertresult[i]["value"][j][k]["count"] ?></B> times)</I></p>
+ <I>(This alarm is repeated <B><?= view.alertresult[i]["value"][j][k]["count"] ?></B> times)</I>
+ <? if (table.maxn(view.alertresult[i]["value"][j][k]["url"]) ~= 0) then ?>
+ ( URL's:
+ <? for q=1, table.maxn(view.alertresult[i]["value"][j][k]["url"]) do ?>
+ <a href="<?= view.alertresult[i]["value"][j][k]["url"][q] ?>" target="_new"><img src="/static/tango/16x16/categories/applications-internet.png" alt="<?= view.alertresult[i]["value"][j][k]["url"][q] ?>"></a>
+ <? end ?>
+ )
+ <? end ?>
+ </p>
<? end ?>
<? end ?>