From a8d40f980d2ee051aec7bf95f9171ae5f6a393b3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Jul 2008 06:48:16 +0000 Subject: use <% %> instead of git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed --- snort-expert-html.lsp | 28 ++++++++++++++-------------- snort-status-html.lsp | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/snort-expert-html.lsp b/snort-expert-html.lsp index 2e4dc31..f8bcb87 100644 --- a/snort-expert-html.lsp +++ b/snort-expert-html.lsp @@ -1,21 +1,21 @@ - - +<% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>
@@ -23,28 +23,28 @@ displayinfo(myform,tags,"viewonly")

Expert config

File details

- +%>

FILE CONTENT

- +%>

SAVE AND APPLY ABOVE SETTINGS

- +%>
-") end -?> +%>
diff --git a/snort-status-html.lsp b/snort-status-html.lsp index 2efe386..5dafd62 100644 --- a/snort-status-html.lsp +++ b/snort-status-html.lsp @@ -1,50 +1,50 @@ - - +<% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>

PROGRAM SPECIFIC OPTIONS/INFORMATION

Counted alerts
-
alert(s)
+
<%= form.alerts %> alert(s)

ALERT LIST

- -

- -

- -


- -
- - (This alarm is repeated times) - +<% for i=1, table.maxn(form.alertresult) do %> +

<%= form.alertresult[i]["name"] %>

+ <% for j in pairs(form.alertresult[i]["value"]) do %> +

<%= j %>

+ <% for k in pairs(form.alertresult[i]["value"][j]) do %> +

<%= form.alertresult[i]["value"][j][k]["value"][1] %>
+ <% for l=2, table.maxn(form.alertresult[i]["value"][j][k]["value"]) do %> + <%= form.alertresult[i]["value"][j][k]["value"][l] %>
+ <% end %> + (This alarm is repeated <%= form.alertresult[i]["value"][j][k]["count"] %> times) + <% if (table.maxn(form.alertresult[i]["value"][j][k]["url"]) ~= 0) then %> ( URL's: - - " target="_new"><?= form.alertresult[i]["> - + <% for q=1, table.maxn(form.alertresult[i]["value"][j][k]["url"]) do %> + " target="_new"><%= form.alertresult[i]["> + <% end %> ) - + <% end %>

- + <% end %> - - + <% end %> +<% end %> -- cgit v1.2.3