From a73d96f30bbd0b3cf3fed30337c172c2405c11f7 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/openvpn/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openvpn-clientconfig-html.lsp | 48 ++++++++++++++++++------------------ openvpn-logfile-html.lsp | 6 ++--- openvpn-peminfo-html.lsp | 2 +- openvpn-serverconfig-html.lsp | 56 +++++++++++++++++++++--------------------- openvpn-status-html.lsp | 22 ++++++++--------- openvpn-statusinfo-html.lsp | 18 +++++++------- openvpn-unknownconfig-html.lsp | 16 ++++++------ 7 files changed, 84 insertions(+), 84 deletions(-) diff --git a/openvpn-clientconfig-html.lsp b/openvpn-clientconfig-html.lsp index 3130f9f..1aa2bc3 100644 --- a/openvpn-clientconfig-html.lsp +++ b/openvpn-clientconfig-html.lsp @@ -1,7 +1,7 @@ - +<% local view = ... %> -

Client config ''

+

Client config '<%= view.config.name %>'

Client settings

@@ -9,18 +9,18 @@
client
User device
-
+
<%= view.config.dev %>
Remote server
-
: ()
+
<%= view.config.remote %>:<%= view.config.remoteport %> (<%= view.config.proto %>)
Logfile
-
Syslog (Verbosity level: )
+
<% if ( view.config.log ) then %><%= html.link{value = view.url .. "/logfile?name=" .. view.config.linkname , label=view.config.log } %><% else %>Syslog<% end %> (Verbosity level: <%= view.config.verb %>)
View/Modify configfile
-
+
<%= html.link{value = view.url .. "/unknown_config?name=" .. view.config.linkname , label=view.config.name } %>
- +<% --[[ %>

Client properties

Common name
@@ -32,39 +32,39 @@
Real address
xxx.xxx.xxx.xxx:xxxx
- +<% --]] %>

Startup options

Process running
-
>
+
>

Certificate files

- +<% if (view.config.ca) then %>
CA Certificate
-
- +
<%= view.config.ca %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.ca , label=view.config.ca } %>
+<% end %> - +<% if (view.config.cert) then %>
Client Certificate
-
- +
<%= view.config.cert %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.cert , label=view.config.cert } %>
+<% end %> - +<% if (view.config.key) then %>
Client Private Key
-
- +
<%= view.config.key %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.key , label=view.config.key } %>
+<% end %> - +<% if (view.config.tls) then %>
TLS Authentication
-
- +
<%= view.config.tls %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.tls , label=view.config.tls } %>
+<% end %> - +<% if (view.config.crl) then %>
CRL Verify File
-
(client side)
- +
<%= view.config.crl %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.crl , label=view.config.crl } %> (client side)
+<% end %> diff --git a/openvpn-logfile-html.lsp b/openvpn-logfile-html.lsp index 0615b77..22ebabe 100644 --- a/openvpn-logfile-html.lsp +++ b/openvpn-logfile-html.lsp @@ -1,8 +1,8 @@ - +<% local view = ... %> -

Logfile ''

- +

Logfile '<%= view.logfilecontent.name %>'

+ diff --git a/openvpn-peminfo-html.lsp b/openvpn-peminfo-html.lsp index 5f048b4..070399f 100644 --- a/openvpn-peminfo-html.lsp +++ b/openvpn-peminfo-html.lsp @@ -1,4 +1,4 @@ - +<% local view = ... %>

Certificate Info 'xxx.conf'

diff --git a/openvpn-serverconfig-html.lsp b/openvpn-serverconfig-html.lsp index 6b4b215..fad78dc 100644 --- a/openvpn-serverconfig-html.lsp +++ b/openvpn-serverconfig-html.lsp @@ -1,7 +1,7 @@ - +<% local view = ... %> -

Server config ''

+

Server config '<%= view.config.name %>'

Server settings

@@ -9,64 +9,64 @@
server
User device
-
+
<%= view.config.dev %>
Listens on
-
: ()
+
<%= view.config["local"] %>:<%= view.config.port %> (<%= view.config.proto %>)
Logfile
-
Syslog (Verbosity level: )
+
<% if ( view.config.log ) then %><%= html.link{value = view.url .. "/logfile?name=" .. view.config.linkname , label=view.config.log } %><% else %>Syslog<% end %> (Verbosity level: <%= view.config.verb %>)
View/Modify configfile
-
+
<%= html.link{value = view.url .. "/unknown_config?name=" .. view.config.linkname , label=view.config.name } %>

Connected clients status

Last status was recorded
-
(This was ago)
+
<%= view.config.client_lastupdate %> (This was <%= view.config.client_lastdatechangediff %> ago)
Maximum clients
-
+
<%= view.config["max-clients"] %>
Connected clients
-
0 ) then ?>
+
<% if ( view.config.client_count > 0 ) then %><%= html.link{value = view.url .. "/status_info?name=" .. view.config.linkname , label=view.config.client_count } %><% else %><%= view.config.client_count %><% end %>

Startup options

Process running
-
>
+
>

Certificate files

- +<% if (view.config.dh) then %>
DH
-
- +
<%= view.config.dh %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.dh , label=view.config.dh } %>
+<% end %> - +<% if (view.config.ca) then %>
CA Certificate
-
- +
<%= view.config.ca %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.ca , label=view.config.ca } %>
+<% end %> - +<% if (view.config.cert) then %>
Server Certificate
-
- +
<%= view.config.cert %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.cert , label=view.config.cert } %>
+<% end %> - +<% if (view.config.key) then %>
Server Private Key
-
- +
<%= view.config.key %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.key , label=view.config.key } %>
+<% end %> - +<% if (view.config.tls) then %>
TLS Authentication
-
- +
<%= view.config.tls %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.tls , label=view.config.tls } %>
+<% end %> - +<% if (view.config.crl) then %>
CRL Verify File
-
- +
<%= view.config.crl %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.crl , label=view.config.crl } %>
+<% end %> diff --git a/openvpn-status-html.lsp b/openvpn-status-html.lsp index c2ed053..8cbe657 100644 --- a/openvpn-status-html.lsp +++ b/openvpn-status-html.lsp @@ -1,9 +1,9 @@ - +<% local view = ... %>

SYSTEM INFO

Program version
-
+
<%= view.version %>

PROGRAM SPECIFIC OPTIONS/INFORMATION

@@ -18,20 +18,20 @@ Notes - +<% for i = 1, table.maxn(view.conflistfiles) do %> - - - - 0 ) then ?> - + <%= html.link{value = view.url .. "/" .. view.conflistfiles[i].type .. "_config?name=" .. view.conflistfiles[i].name , label=view.conflistfiles[i].name } %> + <%= view.conflistfiles[i].type %> + <%= view.conflistfiles[i].status %> + <% if ( view.conflistfiles[i].type == "server" ) then %><% if ( view.conflistfiles[i].clients > 0 ) then %><%= html.link{value = view.url .. "/status_info?name=" .. view.conflistfiles[i].name , label=view.conflistfiles[i].clients } %><% else %><%= view.conflistfiles[i].clients %><% end %><% end %> + <%= view.conflistfiles[i].err %> - +<% end %> - +<% if (#view.conflistfiles == 0) then %> (No existing config-files) - +<% end %> diff --git a/openvpn-statusinfo-html.lsp b/openvpn-statusinfo-html.lsp index 2c28d05..000000f 100644 --- a/openvpn-statusinfo-html.lsp +++ b/openvpn-statusinfo-html.lsp @@ -1,4 +1,4 @@ - +<% local view = ... %>

Status

@@ -12,18 +12,18 @@ Bytes
Received Bytes
Sent - +<% for i = 1, table.maxn(view.clientlist) do %> - - - - - + <%= view.clientlist[i].CN %> + <%= view.clientlist[i].VIRTADDR %> + <%= view.clientlist[i].REALADDR %> + <%= view.clientlist[i].BYTESRCV %> + <%= view.clientlist[i].BYTESSND %> - + <%= view.clientlist[i].CONN %> - +<% end %> diff --git a/openvpn-unknownconfig-html.lsp b/openvpn-unknownconfig-html.lsp index fe8aa1f..ab37bfc 100644 --- a/openvpn-unknownconfig-html.lsp +++ b/openvpn-unknownconfig-html.lsp @@ -1,27 +1,27 @@ - +<% local view = ... %> -

Configuration file ''

+

Configuration file '<%= view.configfilecontent.name %>'

Details

File name
-
+
<%= view.configfilecontent.filedetails.longname %>
File size
-
+
<%= view.configfilecontent.filedetails.size %>
Last modified
-
+
<%= view.configfilecontent.filedetails.mtimelong %>
This config looks like a
-
config
+
<%= view.configfilecontent.type %> config

Content

- - + +
-- cgit v1.2.3