From cc38597bb7e683758fe43d09403fd9f279155352 Mon Sep 17 00:00:00 2001
From: Natanael Copa
Date: Mon, 28 Jul 2008 06:48:16 +0000
Subject: use <% %> instead of ?>
git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
---
dansguardian-advanced-html.lsp | 30 +++++++++++-----------
dansguardian-category-html.lsp | 24 +++++++++---------
dansguardian-edit-html.lsp | 12 ++++-----
dansguardian-editcategories-html.lsp | 48 ++++++++++++++++++------------------
dansguardian-general-html.lsp | 42 +++++++++++++++----------------
dansguardian-plain-html.lsp | 38 ++++++++++++++--------------
dansguardian-status-html.lsp | 12 ++++-----
7 files changed, 103 insertions(+), 103 deletions(-)
diff --git a/dansguardian-advanced-html.lsp b/dansguardian-advanced-html.lsp
index 082119f..7316774 100644
--- a/dansguardian-advanced-html.lsp
+++ b/dansguardian-advanced-html.lsp
@@ -1,4 +1,4 @@
-
+<%
require("viewfunctions")
local form = ...
local data = form.option
@@ -18,32 +18,32 @@ require("viewfunctions")
end
end
-?>
+%>
-
+<%
--[[ DEBUG INFORMATION
io.write("DEBUGGING DEBUG INFO: CFE ")
io.write(html.cfe_unpack(form))
io.write(" ")
--]]
-?>
+%>
SYSTEM INFO
-
+<%
local myform = form.info
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
Configuration
- if (#service.cfgerr > 0) then ?>
+<% if (#service.cfgerr > 0) then %>
Errors
Config errors
- io.write( service.cfgerr ) ?>
+<% io.write( service.cfgerr ) %>
- end ?>
+<% end %>
@@ -52,19 +52,19 @@ displayinfo(myform,tags,"viewonly")
-
+<%
for k,v in ipairs( config.files ) do
io.write( "" .. v.path .. " " .. (v.size or "--") .." " .. (v.mtime or "--") .." \n" )
end
-?>
+%>
MANAGEMENT
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("DEBUGGING DEBUG INFO: CFE ")
io.write(html.cfe_unpack(form))
io.write(" ")
--]]
-?>
+%>
SYSTEM INFO
-
+<%
local myform = form.info
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
Modify Categories
@@ -42,7 +42,7 @@ displayinfo(myform,tags,"viewonly")
Category list
@@ -76,9 +76,9 @@ end
MANAGEMENT
diff --git a/dansguardian-edit-html.lsp b/dansguardian-edit-html.lsp
index 1f34d30..3d1c0e6 100644
--- a/dansguardian-edit-html.lsp
+++ b/dansguardian-edit-html.lsp
@@ -1,4 +1,4 @@
-
+<%
local form = ...
local data = form.option
local service = form.service
@@ -17,15 +17,15 @@
end
end
-?>
-Content Filter ( io.write( service.name ) ?>)
+%>
+Content Filter (<% io.write( service.name ) %>)
+
<% io.write( service.cfgerr ) %>
These parameters define the interface and port that Dansguardian uses to accept connections.
-
-
+
+
Save Changes
Save the content of the above box
diff --git a/dansguardian-editcategories-html.lsp b/dansguardian-editcategories-html.lsp
index ab814fa..63087bf 100644
--- a/dansguardian-editcategories-html.lsp
+++ b/dansguardian-editcategories-html.lsp
@@ -1,89 +1,89 @@
- local form = ...
+<% local form = ...
require("viewfunctions")
-?>
-
+%>
+<%
--[[ DEBUG INFORMATION
io.write("DEBUGGING DEBUG INFO: CFE ")
io.write(html.cfe_unpack(form))
io.write(" ")
--]]
-?>
+%>
INFO
-
+<%
local myform = form.info
local tags = { "configfile","mtime","category", "name", "activestatus", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
CONFIGURE
General
-
+<%
local myform = form.info
local tags = { "activate" }
displayinfo(myform,tags)
-?>
+%>
Details
-
+<%
local myform = form.info
io.write(' ')
io.write(html.form[myform.filecontent.type](myform.filecontent))
-?>
+%>
Save
-
+<%
local myform = form.info
local tags = { "cmdsave" }
displayinfo(myform,tags)
-?>
+%>
Delete
You can delete this object. This will result in erazing instead of deactivating it.
When deleting a object, you will not be able to get it back! If you are unsure, it's better to only deactivate this object instead of deleting it.
-
+<%
local myform = form.info
local tags = { "cmddelete" }
displayinfo(myform,tags)
-?>
+%>
- --[[ ?>
+<% --[[ %>
- --]] ?>
+<% --]] %>
diff --git a/dansguardian-general-html.lsp b/dansguardian-general-html.lsp
index a5c1aa0..09d1600 100644
--- a/dansguardian-general-html.lsp
+++ b/dansguardian-general-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("DEBUGGING DEBUG INFO: CFE ")
io.write(html.cfe_unpack(form))
io.write(" ")
--]]
-?>
+%>
SYSTEM INFO
-
+<%
local myform = form.info
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
diff --git a/dansguardian-plain-html.lsp b/dansguardian-plain-html.lsp
index 7ef2847..5ad57b9 100644
--- a/dansguardian-plain-html.lsp
+++ b/dansguardian-plain-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("DEBUGGING DEBUG INFO: CFE ")
io.write(html.cfe_unpack(form))
io.write(" ")
--]]
-?>
+%>
SYSTEM INFO
-
+<%
local myform = form.info
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
Content Filter (Plain Config File)
@@ -48,22 +48,22 @@ You must be familiar with the configuration file before proceeding.
-Daemon control >
- >
- >
- if (service.message) and (service.message.descr) and (#service.message.descr > 0) then ?> io.write( service.message.descr ) ?> end ?>
+Daemon control >
+ >
+ >
+<% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %><% io.write( service.message.descr ) %> <% end %>
diff --git a/dansguardian-status-html.lsp b/dansguardian-status-html.lsp
index 2b35a51..33efc1b 100644
--- a/dansguardian-status-html.lsp
+++ b/dansguardian-status-html.lsp
@@ -1,22 +1,22 @@
- local form = ...
+<% local form = ...
require("viewfunctions")
-?>
+%>
-
+<%
--[[ DEBUG INFORMATION
io.write("DEBUGGING DEBUG INFO: CFE ")
io.write(html.cfe_unpack(form))
io.write(" ")
--]]
-?>
+%>
SYSTEM INFO
-
+<%
local myform = form.info
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
-?>
+%>
General Information
--
cgit v1.2.3