summaryrefslogtreecommitdiffstats
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
commitee7b3354f03abc865abe51a5ccea07b376d932ce (patch)
tree763f1dbbc436dd37e2bdcce8f9696a0204aa64e0
parent273d7e350c05aaa70f2481969a63d8230d6dab61 (diff)
downloadacf-shorewall-ee7b3354f03abc865abe51a5ccea07b376d932ce.tar.bz2
acf-shorewall-ee7b3354f03abc865abe51a5ccea07b376d932ce.tar.xz
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--shorewall-check-html.lsp22
-rw-r--r--shorewall-config-html.lsp122
-rw-r--r--shorewall-confirmation-html.lsp16
-rw-r--r--shorewall-edit-html.lsp36
-rw-r--r--shorewall-expert-html.lsp24
-rw-r--r--shorewall-html.lsp22
-rw-r--r--shorewall-logfile-html.lsp18
-rw-r--r--shorewall-startstop-html.lsp24
-rw-r--r--shorewall-status-html.lsp12
-rw-r--r--shorewall-statusbasic-html.lsp8
10 files changed, 152 insertions, 152 deletions
diff --git a/shorewall-check-html.lsp b/shorewall-check-html.lsp
index f970a97..6e39399 100644
--- a/shorewall-check-html.lsp
+++ b/shorewall-check-html.lsp
@@ -1,26 +1,26 @@
-<? local form, viewlibrary = ...
+<% local form, viewlibrary = ...
require("viewfunctions")
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(view))
io.write("</span>")
--]]
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
<H1>CONFIGURATION</H1>
-<? local myform = form.config ?>
+<% local myform = form.config %>
<H2>CHECK CONFIGURATION</H2>
-<?
+<%
io.write(html.form[form.config.checkresult.type](form.config.checkresult))
-?>
+%>
<form name="management" action="" method="POST">
-<?
+<%
-- Management buttons
local myform = form.management
local tags = { "restart" }
@@ -29,10 +29,10 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
-?>
+%>
</form>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("startstop")
-end ?>
+end %>
diff --git a/shorewall-config-html.lsp b/shorewall-config-html.lsp
index ab830f0..5704df8 100644
--- a/shorewall-config-html.lsp
+++ b/shorewall-config-html.lsp
@@ -1,4 +1,4 @@
-<? local form,viewlibrary = ...
+<% local form,viewlibrary = ...
require("viewfunctions")
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
@@ -28,162 +28,162 @@ local descr = {
['width'] = { "100", "70", "70", "70", "100", }
},
}
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
-<? local myform = form.config ?>
+<% local myform = form.config %>
<h1>GUIDED CONFIGURATION</h1>
<H3>Defince zones</H3>
-<? local myform = "zones" ?>
+<% local myform = "zones" %>
<TABLE>
<TR>
-<? for i=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<? io.write(descr[myform]['width'][i] or "*") ?>"><? io.write(descr[myform]['labels'][i] or "") ?></TD>
-<? end ?>
+<% for i=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<% io.write(descr[myform]['width'][i] or "*") %>"><% io.write(descr[myform]['labels'][i] or "") %></TD>
+<% end %>
<TD class="header" WIDTH="60"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record"></TD>
</TR>
-<?
+<%
for i=1, #form.config[myform]['option'] do
-?>
+%>
<TR>
- <? for ii=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px"><? io.write(form.config[myform]['option'][i][ii] or "") ?></TD>
- <? end ?>
+ <% for ii=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px"><% io.write(form.config[myform]['option'][i][ii] or "") %></TD>
+ <% end %>
<TD style="padding-right:0px;text-align:left;">
<IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record">
<IMG SRC='/skins/static/tango/16x16/actions/list-remove.png' width='16' height='16' title="Remove this record">
<IMG SRC='/skins/static/tango/16x16/actions/document-properties.png' width='16' height='16' title="Edit this record">
</TD>
</TR>
-<?
+<%
end
-?>
+%>
</TABLE>
<H3>Interfaces</H3>
-<? local myform = "interfaces" ?>
+<% local myform = "interfaces" %>
<TABLE>
<TR>
-<? for i=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<? io.write(descr[myform]['width'][i] or "*") ?>"><? io.write(descr[myform]['labels'][i] or "") ?></TD>
-<? end ?>
+<% for i=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<% io.write(descr[myform]['width'][i] or "*") %>"><% io.write(descr[myform]['labels'][i] or "") %></TD>
+<% end %>
<TD class="header" WIDTH="60"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record"></TD>
</TR>
-<?
+<%
for i=1, #form.config[myform]['option'] do
-?>
+%>
<TR>
- <? for ii=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;"><? io.write(form.config[myform]['option'][i][ii] or "") ?></TD>
- <? end ?>
+ <% for ii=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;"><% io.write(form.config[myform]['option'][i][ii] or "") %></TD>
+ <% end %>
<TD style="padding-right:0px;">
<IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record">
<IMG SRC='/skins/static/tango/16x16/actions/list-remove.png' width='16' height='16' title="Remove this record">
<IMG SRC='/skins/static/tango/16x16/actions/document-properties.png' width='16' height='16' title="Edit this record">
</TD>
</TR>
-<?
+<%
end
-?>
+%>
</TABLE>
<h3>Default policy</h3>
-<? local myform = "policy" ?>
+<% local myform = "policy" %>
<TABLE>
<TR>
-<? for i=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<? io.write(descr[myform]['width'][i] or "*") ?>"><? io.write(descr[myform]['labels'][i] or "") ?></TD>
-<? end ?>
+<% for i=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<% io.write(descr[myform]['width'][i] or "*") %>"><% io.write(descr[myform]['labels'][i] or "") %></TD>
+<% end %>
<TD class="header" WIDTH="60"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record"></TD>
</TR>
-<?
+<%
for i=1, #form.config[myform]['option'] do
-?>
+%>
<TR>
- <? for ii=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;"><? io.write(form.config[myform]['option'][i][ii] or "") ?></TD>
- <? end ?>
+ <% for ii=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;"><% io.write(form.config[myform]['option'][i][ii] or "") %></TD>
+ <% end %>
<TD style="padding-right:0px;text-align:left;">
<IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record">
<IMG SRC='/skins/static/tango/16x16/actions/list-remove.png' width='16' height='16' title="Remove this record">
<IMG SRC='/skins/static/tango/16x16/actions/document-properties.png' width='16' height='16' title="Edit this record">
</TD>
</TR>
-<?
+<%
end
-?>
+%>
</TABLE>
<h3>Rules</h3>
-<? local myform = "rules"
+<% local myform = "rules"
local val = {1,2,3,4,5,6,7,8,10,}
-?>
+%>
<TABLE>
<TR>
-<? for k,i in pairs(val) do ?>
- <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<? io.write(descr[myform]['width'][i] or "*") ?>"><? io.write(descr[myform]['labels'][i] or "") ?></TD>
-<? end ?>
+<% for k,i in pairs(val) do %>
+ <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<% io.write(descr[myform]['width'][i] or "*") %>"><% io.write(descr[myform]['labels'][i] or "") %></TD>
+<% end %>
<TD class="header" WIDTH="60"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record"></TD>
</TR>
-<?
+<%
for i=1, #form.config[myform]['option'] do
-?>
+%>
<TR>
- <? for ii,vv in pairs(val) do ?>
- <TD style="padding-right:10px;"><? io.write(form.config[myform]['option'][i][ii] or "") ?></TD>
- <? end ?>
+ <% for ii,vv in pairs(val) do %>
+ <TD style="padding-right:10px;"><% io.write(form.config[myform]['option'][i][ii] or "") %></TD>
+ <% end %>
<TD style="padding-right:0px;text-align:left;">
<IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record">
<IMG SRC='/skins/static/tango/16x16/actions/list-remove.png' width='16' height='16' title="Remove this record">
<IMG SRC='/skins/static/tango/16x16/actions/document-properties.png' width='16' height='16' title="Edit this record">
</TD>
</TR>
-<?
+<%
end
-?>
+%>
</TABLE>
<H3>Masq</H3>
-<? local myform = "masq" ?>
+<% local myform = "masq" %>
<TABLE>
<TR>
-<? for i=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<? io.write(descr[myform]['width'][i] or "*") ?>"><? io.write(descr[myform]['labels'][i] or "") ?></TD>
-<? end ?>
+<% for i=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;text-align:left;" class="header" WIDTH="<% io.write(descr[myform]['width'][i] or "*") %>"><% io.write(descr[myform]['labels'][i] or "") %></TD>
+<% end %>
<TD class="header" WIDTH="60"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record"></TD>
</TR>
-<?
+<%
for i=1, #form.config[myform]['option'] do
-?>
+%>
<TR>
- <? for ii=1,#descr[myform]['labels'] do ?>
- <TD style="padding-right:10px;"><? io.write(form.config[myform]['option'][i][ii] or "") ?></TD>
- <? end ?>
+ <% for ii=1,#descr[myform]['labels'] do %>
+ <TD style="padding-right:10px;"><% io.write(form.config[myform]['option'][i][ii] or "") %></TD>
+ <% end %>
<TD style="padding-right:0px;text-align:left;">
<IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Add item below this record">
<IMG SRC='/skins/static/tango/16x16/actions/list-remove.png' width='16' height='16' title="Remove this record">
<IMG SRC='/skins/static/tango/16x16/actions/document-properties.png' width='16' height='16' title="Edit this record">
</TD>
</TR>
-<?
+<%
end
-?>
+%>
</TABLE>
diff --git a/shorewall-confirmation-html.lsp b/shorewall-confirmation-html.lsp
index c0e6268..8cef35e 100644
--- a/shorewall-confirmation-html.lsp
+++ b/shorewall-confirmation-html.lsp
@@ -1,4 +1,4 @@
-<? local view = ... ?>
+<% local view = ... %>
<h1>SECURITY CONFIRMATION</h1>
@@ -9,29 +9,29 @@
<DL>
<DT>Undo and go back</dt>
-<DD><form name="undo" action="<?= view.url ?>" method="POST">
+<DD><form name="undo" action="<%= view.url %>" method="POST">
<input type=submit class="submit" name="confirm" value="Back">
</form></DD>
</DL>
<dl>
<dt>Preform check of configs</dt>
-<dd><form name="check" action="<?= view.url .. "/check" ?>" method="POST"><input type=submit name="check" value="check" class="submit"></form></dd>
+<dd><form name="check" action="<%= view.url .. "/check" %>" method="POST"><input type=submit name="check" value="check" class="submit"></form></dd>
</dl>
-<? if (view.previousaction) then ?>
+<% if (view.previousaction) then %>
<DL>
<dt>Confirm action</dt>
<DD>
<form name="confirm" action="" method="POST">
- <input type=submit class="submit" name="confirm" value="<?= view.previousaction ?>">
+ <input type=submit class="submit" name="confirm" value="<%= view.previousaction %>">
</form>
</DD>
</DL>
-<? elseif (view.startstop) and (view.startstop.cmdresult) then ?>
+<% elseif (view.startstop) and (view.startstop.cmdresult) then %>
<DL>
<DT>Result of previous action</DT>
- <DD><pre><?= view.startstop.cmdresult ?></pre></DD>
+ <DD><pre><%= view.startstop.cmdresult %></pre></DD>
</DL>
-<? end ?>
+<% end %>
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp
index e6231b0..f808a72 100644
--- a/shorewall-edit-html.lsp
+++ b/shorewall-edit-html.lsp
@@ -1,44 +1,44 @@
-<? local form, viewlibrary = ...
+<% local form, viewlibrary = ...
require("viewfunctions")
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
<H1>CONFIGURATION</H1>
-<? local myform = form.config ?>
-<form action="<?= form.option.script .. "/" .. form.option.prefix ..
- form.option.controller .. "/" .. form.option.action ?>" method="POST">
+<% local myform = form.config %>
+<form action="<%= form.option.script .. "/" .. form.option.prefix ..
+ form.option.controller .. "/" .. form.option.action %>" method="POST">
<H2>EXPERT CONFIGURATION</H2>
<H3>FILE DETAILS</H3>
<DL>
-<?
+<%
local tags = { "filename","filesize", "mtime", "sumerrors" }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
-<? if (form.config.filecontent) then ?>
+<% if (form.config.filecontent) then %>
<H3>FILE CONTENT</H3>
-<input type="hidden" value="<?= myform.filename.value ?>" name="<?= myform.filename.name ?>">
-<?
+<input type="hidden" value="<%= myform.filename.value %>" name="<%= myform.filename.name %>">
+<%
io.write(html.form[form.config.filecontent.type](form.config.filecontent))
-?>
+%>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
<DL>
-<?
+<%
local tags = { "cmdsave", }
displayinfo(myform,tags)
-?>
+%>
</DL>
-<? end ?>
+<% end %>
-<?
+<%
-- Management buttons
local myform = form.management
local tags = { "start", "stop", "restart" }
@@ -47,6 +47,6 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
-?>
+%>
</form>
diff --git a/shorewall-expert-html.lsp b/shorewall-expert-html.lsp
index 645d67c..61ad046 100644
--- a/shorewall-expert-html.lsp
+++ b/shorewall-expert-html.lsp
@@ -1,21 +1,21 @@
-<? local form, viewlibrary = ...
+<% local form, viewlibrary = ...
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>")
--]]
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
<h1>EXPERT CONFIGURATION</h1>
-<? local myform = form.config ?>
+<% local myform = form.config %>
<TABLE>
<TR style="background:#eee;font-weight:bold;">
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">File</TD>
@@ -24,12 +24,12 @@ end ?>
</TR>
-<? for i = 1, table.maxn(myform) do ?>
+<% for i = 1, table.maxn(myform) do %>
<TR>
- <TD style="padding-right:20px;white-space:nowrap;"><?= html.link{value = "edit?name=" .. myform[i].value , label=myform[i].value } ?></TD>
- <TD style="padding-right:20px;white-space:nowrap;"><?= myform[i].size ?></TD>
- <TD style="white-space:nowrap;" width="90%"><?= myform[i].mtime ?></TD>
+ <TD style="padding-right:20px;white-space:nowrap;"><%= html.link{value = "edit?name=" .. myform[i].value , label=myform[i].value } %></TD>
+ <TD style="padding-right:20px;white-space:nowrap;"><%= myform[i].size %></TD>
+ <TD style="white-space:nowrap;" width="90%"><%= myform[i].mtime %></TD>
</TR>
-<? end ?>
+<% end %>
</TABLE>
diff --git a/shorewall-html.lsp b/shorewall-html.lsp
index a875a16..4ea23c6 100644
--- a/shorewall-html.lsp
+++ b/shorewall-html.lsp
@@ -1,33 +1,33 @@
-<? 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>")
--]]
-?>
+%>
-<form name="cmd" action="<?= form.option.link ?>/<?= form.option.action ?>" method="POST">
+<form name="cmd" action="<%= form.option.link %>/<%= form.option.action %>" method="POST">
<H1>EDIT PROPERTIES</H1>
<DL>
-<?
+<%
local myform = form.edit
local tags = {}
for i=1,#myform do
table.insert(tags,i)
end
displayinfo(myform,tags)
-?>
+%>
-<?
+<%
local tags = {"cmdsave", "cmddelete", }
local myform = form
displayinfo(myform,tags)
-?>
+%>
-<? -- Add the field that holds the filename
+<% -- Add the field that holds the filename
local myform = form.edit.filename
if (type(myform) == "table") then
io.write(html.form[myform.type](myform))
@@ -40,7 +40,7 @@ local myform = form.edit.actiontype
if (type(myform) == "table") then
io.write(html.form[myform.type](myform))
end
-?>
+%>
</DL>
diff --git a/shorewall-logfile-html.lsp b/shorewall-logfile-html.lsp
index 4f35c40..d3343b7 100644
--- a/shorewall-logfile-html.lsp
+++ b/shorewall-logfile-html.lsp
@@ -1,27 +1,27 @@
-<? local form, viewlibrary = ...
+<% local form, viewlibrary = ...
require("viewfunctions")
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(view))
io.write("</span>")
--]]
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
<H1>LOGIFLES</H1>
<H2>DETAILS</H2>
-<? local myform = form.config ?>
+<% local myform = form.config %>
<H3>FILE DETAILS</H3>
<DL>
-<?
+<%
local tags = { "filename", "filesize", "mtime", "sumerrors" }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
-<H3>FILE CONTENT</H3><?
+<H3>FILE CONTENT</H3><%
io.write(html.form[form.config.checkresult.type](form.config.checkresult))
-?>
+%>
diff --git a/shorewall-startstop-html.lsp b/shorewall-startstop-html.lsp
index 3f6492a..3b706a9 100644
--- a/shorewall-startstop-html.lsp
+++ b/shorewall-startstop-html.lsp
@@ -1,26 +1,26 @@
-<? local data = ... ?>
-<? --[[
+<% local data = ... %>
+<% --[[
io.write(html.cfe_unpack(data))
---]] ?>
+--]] %>
<H1>MANAGEMENT</H1>
<DL>
<form action="startstop" method="POST">
<DT>Program control-panel</DT>
<DD>
-<input class="submit" type="submit" name="action" value="Start" <? if data.value.status.value== "Shorewall is running" then io.write("disabled") end ?>>
-<input class="submit" type="submit" name="action" value="Stop" <? if data.value.status.value~= "Shorewall is running" then io.write("disabled") end ?>>
-<input class="submit" type="submit" name="action" value="Restart" <? if data.value.status.value~= "Shorewall is running" then io.write("disabled") end ?>>
+<input class="submit" type="submit" name="action" value="Start" <% if data.value.status.value== "Shorewall is running" then io.write("disabled") end %>>
+<input class="submit" type="submit" name="action" value="Stop" <% if data.value.status.value~= "Shorewall is running" then io.write("disabled") end %>>
+<input class="submit" type="submit" name="action" value="Restart" <% if data.value.status.value~= "Shorewall is running" then io.write("disabled") end %>>
</DD>
</form>
-<? if data.value.result then ?>
+<% if data.value.result then %>
<DT>Previous action result</DT>
<DD>
-<? if data.value.result.descr then ?>
-<P CLASS='descr'><?= string.gsub(data.value.result.descr, "\n", "<BR>") ?></P>
-<? end if data.value.result.errtxt then ?>
-<P CLASS='error'><?= string.gsub(data.value.result.errtxt, "\n", "<BR>") ?></P>
-<? end end ?>
+<% if data.value.result.descr then %>
+<P CLASS='descr'><%= string.gsub(data.value.result.descr, "\n", "<BR>") %></P>
+<% end if data.value.result.errtxt then %>
+<P CLASS='error'><%= string.gsub(data.value.result.errtxt, "\n", "<BR>") %></P>
+<% end end %>
</DD>
</DL>
diff --git a/shorewall-status-html.lsp b/shorewall-status-html.lsp
index d670e47..f1a2d56 100644
--- a/shorewall-status-html.lsp
+++ b/shorewall-status-html.lsp
@@ -1,4 +1,4 @@
-<? local form, viewlibrary = ...
+<% local form, viewlibrary = ...
require("viewfunctions")
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
@@ -7,17 +7,17 @@ io.write("----------")
io.write(html.cfe_unpack(form))
io.write("</span>")
--]]
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
<DL>
-<?
+<%
local myform = form.status
local tags = { "state", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
diff --git a/shorewall-statusbasic-html.lsp b/shorewall-statusbasic-html.lsp
index 861d8a8..99e7895 100644
--- a/shorewall-statusbasic-html.lsp
+++ b/shorewall-statusbasic-html.lsp
@@ -1,17 +1,17 @@
-<? 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
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>