summaryrefslogtreecommitdiffstats
path: root/dansguardian-category-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
commitcc38597bb7e683758fe43d09403fd9f279155352 (patch)
tree3cc7ea7cd6a6c3cd9d6f03b429a295eb87959bb8 /dansguardian-category-html.lsp
parentb31fe6b50b2b045f1129c93a43e1421083ca4bb0 (diff)
downloadacf-dansguardian-cc38597bb7e683758fe43d09403fd9f279155352.tar.bz2
acf-dansguardian-cc38597bb7e683758fe43d09403fd9f279155352.tar.xz
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dansguardian-category-html.lsp')
-rw-r--r--dansguardian-category-html.lsp24
1 files changed, 12 insertions, 12 deletions
diff --git a/dansguardian-category-html.lsp b/dansguardian-category-html.lsp
index 475e750..6d6115c 100644
--- a/dansguardian-category-html.lsp
+++ b/dansguardian-category-html.lsp
@@ -1,4 +1,4 @@
-<?
+<%
require("viewfunctions")
local form = ...
local data = form.option
@@ -18,23 +18,23 @@ require("viewfunctions")
end
end
-?>
+%>
-<?
+<%
--[[ 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.info
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<h1>Modify Categories</h1>
@@ -42,7 +42,7 @@ displayinfo(myform,tags,"viewonly")
<h2>Category list</h2>
<form action="" method="POST">
<dl>
-<?
+<%
local myform = form["service"]["config"]["categories"]
for k,v in ipairs( myform ) do
io.write("<DT ")
@@ -68,7 +68,7 @@ for k,v in ipairs( myform ) do
io.write("</TABLE></DD>")
--io.write( "<BR><input type=\"checkbox\" name=\"cats\" value=\"" .. v .. "\"> " .. v .. "\n" )
end
-?>
+%>
</dl>
</form>
@@ -76,9 +76,9 @@ end
<h1>MANAGEMENT</h1>
<form action="" method="POST">
<dl>
-<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <? io.write( srv1fill ) ?>>
-<input class="submit" type="submit" name="srvcmd" value="stop" <? io.write( srv2fill ) ?>>
-<input class="submit" type="submit" name="srvcmd" value="restart" <? io.write( srv2fill ) ?>>
-<? if (service.message) and (service.message.descr) and (#service.message.descr > 0) then ?><pre><? io.write( service.message.descr ) ?></pre><? end ?></dd>
+<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <% io.write( srv1fill ) %>>
+<input class="submit" type="submit" name="srvcmd" value="stop" <% io.write( srv2fill ) %>>
+<input class="submit" type="submit" name="srvcmd" value="restart" <% io.write( srv2fill ) %>>
+<% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %><pre><% io.write( service.message.descr ) %></pre><% end %></dd>
</dl>
</form>