summaryrefslogtreecommitdiffstats
path: root/openvpn-serverconfig-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-serverconfig-html.lsp')
-rw-r--r--openvpn-serverconfig-html.lsp56
1 files changed, 28 insertions, 28 deletions
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 = ... ?>
+<% local view = ... %>
<html>
<body>
-<h1>Server config '<?= view.config.name ?>'</h1>
+<h1>Server config '<%= view.config.name %>'</h1>
<h2>Server settings</h2>
@@ -9,64 +9,64 @@
<dd>server</dd>
<dt>User device</dt>
-<dd><?= view.config.dev ?></dd>
+<dd><%= view.config.dev %></dd>
<dt>Listens on</dt>
-<dd><?= view.config["local"] ?>:<?= view.config.port ?> (<?= view.config.proto ?>)</dd>
+<dd><%= view.config["local"] %>:<%= view.config.port %> (<%= view.config.proto %>)</dd>
<dt>Logfile</dt>
-<dd><? 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 ?>)</dd>
+<dd><% 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 %>)</dd>
<dt>View/Modify configfile</dt>
-<dd><?= html.link{value = view.url .. "/unknown_config?name=" .. view.config.linkname , label=view.config.name } ?></dd>
+<dd><%= html.link{value = view.url .. "/unknown_config?name=" .. view.config.linkname , label=view.config.name } %></dd>
<h3>Connected clients status</h3>
<dt>Last status was recorded</dt>
-<dd><?= view.config.client_lastupdate ?> (This was <b><?= view.config.client_lastdatechangediff ?></b> ago)</dd>
+<dd><%= view.config.client_lastupdate %> (This was <b><%= view.config.client_lastdatechangediff %></b> ago)</dd>
<dt>Maximum clients</dt>
-<dd><?= view.config["max-clients"] ?></dd>
+<dd><%= view.config["max-clients"] %></dd>
<dt>Connected clients</dt>
-<dd><? 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 ?></dd>
+<dd><% 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 %></dd>
<h2>Startup options</h2>
<dt>Process running</dt>
-<dd><input type="checkbox" disabled <? if (view.config.status_isrunning ~= "") then io.write("checked='yes'") end ?>></dd>
+<dd><input type="checkbox" disabled <% if (view.config.status_isrunning ~= "") then io.write("checked='yes'") end %>></dd>
<h2>Certificate files</h2>
-<? if (view.config.dh) then ?>
+<% if (view.config.dh) then %>
<dt>DH</dt>
-<dd><?= view.config.dh ?><? -- html.link{value = view.url .. "/pem_info?name=" .. view.config.dh , label=view.config.dh } ?></dd>
-<? end ?>
+<dd><%= view.config.dh %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.dh , label=view.config.dh } %></dd>
+<% end %>
-<? if (view.config.ca) then ?>
+<% if (view.config.ca) then %>
<dt>CA Certificate</dt>
-<dd><?= view.config.ca ?><? -- html.link{value = view.url .. "/pem_info?name=" .. view.config.ca , label=view.config.ca } ?></dd>
-<? end ?>
+<dd><%= view.config.ca %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.ca , label=view.config.ca } %></dd>
+<% end %>
-<? if (view.config.cert) then ?>
+<% if (view.config.cert) then %>
<dt>Server Certificate</dt>
-<dd><?= view.config.cert ?><? -- html.link{value = view.url .. "/pem_info?name=" .. view.config.cert , label=view.config.cert } ?></dd>
-<? end ?>
+<dd><%= view.config.cert %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.cert , label=view.config.cert } %></dd>
+<% end %>
-<? if (view.config.key) then ?>
+<% if (view.config.key) then %>
<dt>Server Private Key</dt>
-<dd><?= view.config.key ?><? -- html.link{value = view.url .. "/pem_info?name=" .. view.config.key , label=view.config.key } ?></dd>
-<? end ?>
+<dd><%= view.config.key %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.key , label=view.config.key } %></dd>
+<% end %>
-<? if (view.config.tls) then ?>
+<% if (view.config.tls) then %>
<dt>TLS Authentication</dt>
-<dd><?= view.config.tls ?><? -- html.link{value = view.url .. "/pem_info?name=" .. view.config.tls , label=view.config.tls } ?></dd>
-<? end ?>
+<dd><%= view.config.tls %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.tls , label=view.config.tls } %></dd>
+<% end %>
-<? if (view.config.crl) then ?>
+<% if (view.config.crl) then %>
<dt>CRL Verify File</dt>
-<dd><?= view.config.crl ?><? -- html.link{value = view.url .. "/pem_info?name=" .. view.config.crl , label=view.config.crl } ?></dd>
-<? end ?>
+<dd><%= view.config.crl %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.crl , label=view.config.crl } %></dd>
+<% end %>
</body>
</html>