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
commitb0e121b6278ba89b08ed5364c509b228c53c4a36 (patch)
tree9dcda849d1ee2f5670af828d8d94ca9c85007d9c
parent079f3ef73b734d155b642e0f9feed03acd3f4478 (diff)
downloadacf-openntpd-b0e121b6278ba89b08ed5364c509b228c53c4a36.tar.bz2
acf-openntpd-b0e121b6278ba89b08ed5364c509b228c53c4a36.tar.xz
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--openntpd-config-html.lsp32
-rw-r--r--openntpd-expert-html.lsp28
-rw-r--r--openntpd-logfile-html.lsp22
-rw-r--r--openntpd-status-html.lsp16
4 files changed, 49 insertions, 49 deletions
diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp
index 87f2134..97a5a97 100644
--- a/openntpd-config-html.lsp
+++ b/openntpd-config-html.lsp
@@ -1,21 +1,21 @@
-<? 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>
<form name="cmd" action="" method="POST">
@@ -23,42 +23,42 @@ displayinfo(myform,tags,"viewonly")
<H2>Advanced config</H2>
<H3>General settings</H3>
<DL>
-<?
+<%
local myform = form.config
local tags = { "setstimeonstartup", "cmdsavesetstimeonstartup", }
displayinfo(myform,tags)
-?>
+%>
</DL>
<h3>'SET TIME' OPTIONS</h3>
<DL>
-<?
+<%
local myform = form.config
local tags = { "hosts_list", "hosts_cmd_delete", }
displayinfo(myform,tags)
-?>
+%>
</DL>
<DL>
-<?
+<%
local myform = form.config
local tags = { "hosts_add", "hosts_type", "hosts_cmd_add", }
displayinfo(myform,tags)
-?>
+%>
</DL>
<h3>'PRESENT TIME' OPTIONS (ACT AS TIME SERVER)</h3>
<DL>
-<?
+<%
local myform = form.config
local tags = { "listen_list", "listen_cmd_delete", "listen_add", "listen_cmd_add", }
displayinfo(myform,tags)
-?>
+%>
</DL>
-<?
+<%
-- Management buttons
local myform = form.management
local tags = { "start", "stop", "restart" }
@@ -67,5 +67,5 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
-?>
+%>
</form>
diff --git a/openntpd-expert-html.lsp b/openntpd-expert-html.lsp
index 4f77e5e..78ec15d 100644
--- a/openntpd-expert-html.lsp
+++ b/openntpd-expert-html.lsp
@@ -1,21 +1,21 @@
-<? 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>
<form name="myform" action="" method="POST">
@@ -23,28 +23,28 @@ displayinfo(myform,tags,"viewonly")
<H2>Expert config</H2>
<h3>File details</h3>
<DL>
-<?
+<%
local myform = form.file
local tags = { "filename", "filesize", "mtime", "sumerrors", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<H3>FILE CONTENT</H3>
-<?
+<%
local myform = form.file
io.write(html.form[myform.filecontent.type](myform.filecontent))
-?>
+%>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
<DL>
-<?
+<%
local tags = { "cmdsave", }
displayinfo(myform,tags)
-?>
+%>
</DL>
-<?
+<%
-- Management buttons
local myform = form.management
local tags = { "start", "stop", "restart" }
@@ -53,6 +53,6 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
-?>
+%>
</form>
diff --git a/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp
index f01b751..15daa91 100644
--- a/openntpd-logfile-html.lsp
+++ b/openntpd-logfile-html.lsp
@@ -1,37 +1,37 @@
-<? 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>
-<? local myform = form.logfile ?>
+<% local myform = form.logfile %>
<form name="myform" action="" method="POST">
<h1>LOGFILE</h1>
<h2>Details</h2>
<DL>
-<?
+<%
local tags = { "filename", "filesize", "mtime", "sumerrors", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>
<H3>FILE CONTENT</H3>
-<?
+<%
io.write(html.form[myform.filecontent.type](myform.filecontent))
-?>
+%>
</form>
diff --git a/openntpd-status-html.lsp b/openntpd-status-html.lsp
index 1e75972..c4c709d 100644
--- a/openntpd-status-html.lsp
+++ b/openntpd-status-html.lsp
@@ -1,29 +1,29 @@
-<? 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>
-<?
+<%
local myform = form.status
local tags = { "setstimeonstartup", "date", "timechanged", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
</DL>