summaryrefslogtreecommitdiffstats
path: root/snort-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'snort-status-html.lsp')
l---------[-rw-r--r--]snort-status-html.lsp51
1 files changed, 1 insertions, 50 deletions
diff --git a/snort-status-html.lsp b/snort-status-html.lsp
index 5dafd62..b2f8480 100644..120000
--- a/snort-status-html.lsp
+++ b/snort-status-html.lsp
@@ -1,50 +1 @@
-<% local form = ...
-require("viewfunctions")
-%>
-<%
---[[ DEBUG INFORMATION
-io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(form))
-io.write("</span>")
---]]
-%>
-
-<H1>SYSTEM INFO</H1>
-<DL>
-<%
-local myform = form.status
-local tags = { "status", "version", "autostart", }
-displayinfo(myform,tags,"viewonly")
-%>
-</DL>
-
-<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
-<DL>
-<dt>Counted alerts</dt>
-<dd><%= form.alerts %> alert(s)</dd>
-</DL>
-
-<h1>ALERT LIST</h1>
-
-<% for i=1, table.maxn(form.alertresult) do %>
- <h2><%= form.alertresult[i]["name"] %></h2>
- <% for j in pairs(form.alertresult[i]["value"]) do %>
- <h3><%= j %></h3>
- <% for k in pairs(form.alertresult[i]["value"][j]) do %>
- <p><B><%= form.alertresult[i]["value"][j][k]["value"][1] %></B><BR>
- <% for l=2, table.maxn(form.alertresult[i]["value"][j][k]["value"]) do %>
- <%= form.alertresult[i]["value"][j][k]["value"][l] %><BR>
- <% end %>
- <I>(This alarm is repeated <B><%= form.alertresult[i]["value"][j][k]["count"] %></B> times)</I>
- <% if (table.maxn(form.alertresult[i]["value"][j][k]["url"]) ~= 0) then %>
- ( URL's:
- <% for q=1, table.maxn(form.alertresult[i]["value"][j][k]["url"]) do %>
- <a href="<%= form.alertresult[i]["value"][j][k]["url"][q] %>" target="_new"><img src="/static/tango/16x16/categories/applications-internet.png" alt="<%= form.alertresult[i]["value"][j][k]["url"][q] %>"></a>
- <% end %>
- )
- <% end %>
- </p>
- <% end %>
-
- <% end %>
-<% end %>
+../status-html.lsp \ No newline at end of file