Commit e18b8b34 authored by Natanael Copa's avatar Natanael Copa

use <% %> instead of <? ?>

git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent f063c936
<? local form = ... ?>
<?
<% local form = ... %>
<%
require("viewfunctions")
?>
%>
<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">
......@@ -17,44 +17,44 @@ displayinfo(myform,tags,"viewonly")
<H2>Expert config - 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>Expert config - Policy</H2>
<h3>File details</h3>
<DL>
<?
<%
local myform = form.file2
local tags = { "filename2", "filesize2", "mtime2", "sumerrors2", }
displayinfo(myform,tags,"viewonly")
?>
%>
</DL>
<H3>FILE CONTENT</H3>
<?
<%
io.write(html.form[myform.filecontent2.type](myform.filecontent2))
?>
%>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
<DL>
<?
<%
local myform = form.file
local tags = { "cmdsave", }
displayinfo(myform,tags)
?>
%>
</DL>
<?
<%
-- Management buttons
local myform = form.management
local tags = { "start", "stop", "restart" }
......@@ -63,6 +63,6 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
?>
%>
</form>
<? local form = ... ?>
<?
<% local form = ... %>
<%
require("viewfunctions")
?>
%>
<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>
<? local form = ... ?>
<?
<% local form = ... %>
<%
require("viewfunctions")
?>
%>
<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>
<H3>Phase1 and Phase2 information</H3>
<DL>
<?
<%
local myform = form.status.show_isakmp.option
for k,v in pairs(myform) do
if (type(v) == "table") and (v.Destination) and (v.Destination.value) and (#v.Destination.value > 0) then
......@@ -43,5 +43,5 @@ for k,v in pairs(myform) do
io.write("</TABLE></DD>")
end
end
?>
%>
</DL>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment