diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
commit | 8de88823055770e63fdba0a381770ea75eb4abd4 (patch) | |
tree | 8378fa81212345ce9abd1340f3d903804a54e36f | |
parent | e97bbf10b3cb72ede20f2929a034867ad920db9d (diff) | |
download | acf-fetchmail-8de88823055770e63fdba0a381770ea75eb4abd4.tar.bz2 acf-fetchmail-8de88823055770e63fdba0a381770ea75eb4abd4.tar.xz |
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | fetchmail-config-html.lsp | 82 | ||||
-rw-r--r-- | fetchmail-expert-html.lsp | 34 | ||||
-rw-r--r-- | fetchmail-status-html.lsp | 16 |
3 files changed, 66 insertions, 66 deletions
diff --git a/fetchmail-config-html.lsp b/fetchmail-config-html.lsp index 8dc090d..ac6dbd6 100644 --- a/fetchmail-config-html.lsp +++ b/fetchmail-config-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> <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>GUIDED CONFIGURATION</H2> -<? --[[ ?> +<% --[[ %> <H3>FREQUENCY</H3> <P>Select how often the mailboxes will be checked. For ETRN transfers (below) this specifies how often transfers are initiated</P> -<? +<% local tags = { "freq", } displayinfo(myform,tags) -?> -<? --]] ?> +%> +<% --]] %> <H3>MAILBOXES</H3> <P>You will need to specify the remote mailbox and password, as well as the local (internal) mailbox to forward the mail to. The SMTP host is the name or address of the SMTP server to send the mail to.</P> <P>If you want to use POP3 account for the entire domain, selecting the <U>pop3domain</U> method will setup the appropriate configuration for retrieving and distributing the mail appropriately. The <B>domain</B> information should be your internet smtp domain. The <B>mailbox</B> field is ignored when this method is selected.</P> <P>When selecting the <U>pop3</U> or <U>imap</U> methods, the <B>domain</B> field should be left blank.</P> -<? -- START - SPECIAL VIEW FOR SHOWING AVAILABLE MAILBOXES ?> -<? +<% -- START - SPECIAL VIEW FOR SHOWING AVAILABLE MAILBOXES %> +<% local tags = "mailboxes" local mailboxform = myform[tags]["value"] -?> +%> <DL> -<? +<% io.write("\n\t<CENTER><TABLE STYLE='border:1px solid #ccc;background:#eee'>\n\t\t<TR>\n\t\t\t<TD CLASS='header' WIDTH='150px'>") io.write("<CENTER>METHOD</CENTER></TD>\n\t\t\t<TD CLASS='header' COLSPAN=2>") io.write("<CENTER>REMOTE</CENTER></TD>\n\t\t\t<TD CLASS='header' COLSPAN=2>") @@ -97,64 +97,64 @@ for i=1, table.maxn(mailboxform) do io.write("\n\t\t<TR>\n\t\t\t<TD COLSPAN=5><HR></TD>\n\t\t</TR>") end io.write("</TABLE></CENTER>") -?> +%> </DL> -<? -- START - SPECIAL VIEW FOR SHOWING AVAILABLE MAILBOXES ?> +<% -- START - SPECIAL VIEW FOR SHOWING AVAILABLE MAILBOXES %> <H3>LAST RESORT</H3> <P>The Postmaster address is the address of last resort when fetchmail cannot determine how to send a mail message. If left blank, undelieverable mail may be discarded.</P> -<? +<% local tags = { "postmaster", } displayinfo(myform,tags) -?> +%> <H3>ETRN</H3> <P>This is for branches that have DNS mail domains hosted by an ISP that allows for ETRN dequeueing. ETRN dequeueing causes the SMTP mail exchanger at the ISP to forward mail to you via SMTP. You will need to make sure that DNS is setup appropriately and that your ISP supports ETRN. If you have not arranged with your ISP to have ETRN support, leave these fields blank.</P> -<? +<% local tags = { "etrnremote","etrnquedomain", } displayinfo(myform,tags) -?> +%> -<? --[[ ?> +<% --[[ %> <H2>ADVANCED CONFIGURATION</H2> <H3>GENERAL</H3> -<? +<% local tags = { "logfile", "loglevel", "smallerlogs", } displayinfo(myform,tags) -?> +%> -<? --]] ?> +<% --]] %> <H2>SAVE AND APPLY ABOVE SETTINGS</H2> -<? +<% local tags = { "cmdsave","cmdtest", } displayinfo(myform,tags) -?> +%> </form> -<? +<% local cmdform = form.management local tags = { "start", "stop", "restart" } if (cmdform) and (cmdform[tags[1]]) then -?> +%> <form name="management" action="" method="POST"> <H1>MANAGEMENT</H1> <dl> - <dt><?= cmdform[tags[1]]["label"] ?></dt> + <dt><%= cmdform[tags[1]]["label"] %></dt> <dd> - <? for k,v in pairs(tags) do ?> - <? if (cmdform[v]) then ?> - <? io.write(html.form[cmdform[v].type](cmdform[v])) ?> - <? end ?> - <? end ?> + <% for k,v in pairs(tags) do %> + <% if (cmdform[v]) then %> + <% io.write(html.form[cmdform[v].type](cmdform[v])) %> + <% end %> + <% end %> </dd> - <? if (form.cmdmanagement) and (#form.cmdmanagement.descr > 0) then ?> + <% if (form.cmdmanagement) and (#form.cmdmanagement.descr > 0) then %> <dt>Previous action result</dt> - <dd><pre><?= form.cmdmanagement.descr ?></pre></dd> - <? end ?> + <dd><pre><%= form.cmdmanagement.descr %></pre></dd> + <% end %> </dl> </form> -<? end ?> +<% end %> diff --git a/fetchmail-expert-html.lsp b/fetchmail-expert-html.lsp index ca6e6da..533c32f 100644 --- a/fetchmail-expert-html.lsp +++ b/fetchmail-expert-html.lsp @@ -1,51 +1,51 @@ -<? 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> <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> <H3>FILE CONTENT</H3> -<? +<% 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> -<? +<% -- Management buttons local myform = form.management local tags = { "start", "stop", "restart" } @@ -54,5 +54,5 @@ if (myform) then displaymanagement(myform,tags) io.write("</DL>") end -?> +%> </form> diff --git a/fetchmail-status-html.lsp b/fetchmail-status-html.lsp index aac75b2..630b440 100644 --- a/fetchmail-status-html.lsp +++ b/fetchmail-status-html.lsp @@ -1,28 +1,28 @@ -<? 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 = { "configfile", } displayinfo(myform,tags,"viewonly") -?> +%> </DL> |