diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
commit | a8d40f980d2ee051aec7bf95f9171ae5f6a393b3 (patch) | |
tree | 1e935951a932568452bc556f819da8846a344790 /snort-status-html.lsp | |
parent | 646a7206b615856e9fc78e06eef5e4425c9eb809 (diff) | |
download | acf-snort-a8d40f980d2ee051aec7bf95f9171ae5f6a393b3.tar.bz2 acf-snort-a8d40f980d2ee051aec7bf95f9171ae5f6a393b3.tar.xz |
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'snort-status-html.lsp')
-rw-r--r-- | snort-status-html.lsp | 50 |
1 files changed, 25 insertions, 25 deletions
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 @@ -<? local form = ... +<% 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> +<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 ?> +<% 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 ?> + <% 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 ?> + <% end %> </p> - <? end ?> + <% end %> - <? end ?> -<? end ?> + <% end %> +<% end %> |