summaryrefslogtreecommitdiffstats
path: root/openvpn-unknown_config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-unknown_config-html.lsp')
-rw-r--r--openvpn-unknown_config-html.lsp31
1 files changed, 28 insertions, 3 deletions
diff --git a/openvpn-unknown_config-html.lsp b/openvpn-unknown_config-html.lsp
index 03435f8..302ea56 100644
--- a/openvpn-unknown_config-html.lsp
+++ b/openvpn-unknown_config-html.lsp
@@ -3,17 +3,42 @@
<body>
<h1>Configuration file '<?= view.configfilecontent.name ?>'</h1>
+<? --[[ DEBUG INFORMATION...?>
+<h2>DEUB INFO</h2>
+<?
+for a,b in pairs(view.configfilecontent.filedetails) do
+print ("<b>" .. a .. "</b>: >" .. b .. "<<BR>")
+end
+?>
+<? --]] ?>
+
+<h2>Details</h2>
+
+<dt>File name</dt>
+<dd><?= view.configfilecontent.filedetails.longname ?></dd>
+
+<dt>File size</dt>
+<dd><?= view.configfilecontent.filedetails.size ?></dd>
+
+<dt>Last modified</dt>
+<dd><?= view.configfilecontent.filedetails.mtimelong ?></dd>
+
+
<h2>Controlpanel</h2>
<dt>View this as it was a</dt>
-<dd><a href="<?= view.url ?>/server_config?name=<?= view.configfilecontent.shortname ?>">server config</a></dd>
+<dd><a href="<?= view.url ?>/server_config?name=<?= view.configfilecontent.linkname ?>">server config</a></dd>
<dt>View this as it was a</dt>
-<dd><a href="<?= view.url ?>/client_config?name=<?= view.configfilecontent.shortname ?>">client config</a></dd>
+<dd><a href="<?= view.url ?>/client_config?name=<?= view.configfilecontent.linkname ?>">client config</a></dd>
<h2>Details</h2>
-<textarea name="" style="width:100%;height:450px;"><?= view.configfilecontent.value ?></textarea>
+<form name="myform" action="" method="POST">
+<input name="name" type="hidden" value="<?= view.configfilecontent.linkname ?>" style="width:100%">
+<textarea name="modifications" style="width:100%;height:400px;"><?= view.configfilecontent.value ?></textarea>
+
+<input type="submit" name="cmd" value="update"></form>
</body>
</html>