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 @@ - +%> -DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>

Configuration

- 0) then ?> +<% if (#service.cfgerr > 0) then %>

Errors

Config errors
-
+
<% io.write( service.cfgerr ) %>
- +<% end %> @@ -52,19 +52,19 @@ displayinfo(myform,tags,"viewonly") -\n" ) end -?> +%>
Last Modified
" .. v.path .. "" .. (v.size or "--") .."" .. (v.mtime or "--") .."

MANAGEMENT

-
Daemon control
> -> -> - 0) then ?>
+
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-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 @@ - +%> -DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>

Modify Categories

@@ -42,7 +42,7 @@ displayinfo(myform,tags,"viewonly")

Category list

-") --io.write( "
" .. v .. "\n" ) end -?> +%>
@@ -76,9 +76,9 @@ end

MANAGEMENT

-
Daemon control
> -> -> - 0) then ?>
+
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-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 @@ - -

Content Filter ()

+%> +

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 @@ - - +<% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

INFO

- +%>

CONFIGURE

General

- +%>

Details

-') io.write(html.form[myform.filecontent.type](myform.filecontent)) -?> +%>

Save

- +%>

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.

- +%>
- +<% --[[ %>

CONFIGURATION

Expert config

File details

- +%>

FILE CONTENT

-') io.write(html.form[myform.filecontent.type](myform.filecontent)) -?> +%>

SAVE AND APPLY ABOVE SETTINGS

- +%>
-") end -?> +%>
- +<% --]] %> 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 @@ - +%> -DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>
@@ -45,8 +45,8 @@ These parameters define the interface and port that Dansguardian uses to accept

-
filterip
-
filterport
+
filterip
+
filterport

Proxy service

@@ -55,8 +55,8 @@ These parameters define the ip address and port that Dansguardian should forward

-
proxyip
-
proxyport
+
proxyip
+
proxyport

Filter Actions

@@ -67,20 +67,20 @@ The author recommends 50 for "young children", 100 for "older children" and 160

-
accessdeniedaddress
-
naughtynesslimit
+
accessdeniedaddress
+
naughtynesslimit

Save Changes

- - 0) then ?> -
Config status
- +%> +<% if (service) and (service.cfgerr) and (#service.cfgerr > 0) then %> +
Config status
<% io.write(service.cfgerr ) %>
+<% end %>
Process information
This process runs as a service. When you make and save changes, the configuration files for the service are changed. However, the changes will not be applied until you restart the service.
@@ -91,9 +91,9 @@ until you restart the service.

MANAGEMENT

-
Daemon control
> -> -> - 0) then ?>
+
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-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 @@ - +%> -DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>

Content Filter (Plain Config File)

@@ -48,22 +48,22 @@ You must be familiar with the configuration file before proceeding.

Configuration

- +

Save changes

- - 0) then ?> -
Config status
- - 0) then ?> -
Config status
- +%> +<% if (service) and (service.error) and (#service.error > 0) then %> +
Config status
<% io.write(service.error ) %>
+<% end %> +<% if (service) and (service.cfgerr) and (#service.cfgerr > 0) then %> +
Config status
<% io.write(service.cfgerr ) %>
+<% end %>
Process information
This process runs as a service. When you make and save changes, the configuration files for the service are changed. However, the changes will not be applied @@ -75,9 +75,9 @@ until you restart the service.

MANAGEMENT

-
Daemon control
> -> -> - 0) then ?>
+
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 @@ - +%> -DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] -?> +%>

SYSTEM INFO

- +%>

General Information

-- cgit v1.2.3