summaryrefslogtreecommitdiffstats
path: root/snort-status-html.lsp
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-07-28 06:48:16 +0000
committerNatanael Copa <natanael.copa@gmail.com>2008-07-28 06:48:16 +0000
commita8d40f980d2ee051aec7bf95f9171ae5f6a393b3 (patch)
tree1e935951a932568452bc556f819da8846a344790 /snort-status-html.lsp
parent646a7206b615856e9fc78e06eef5e4425c9eb809 (diff)
downloadacf-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.lsp50
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 %>