summaryrefslogtreecommitdiffstats
path: root/openvpn-unknown_config-html.lsp
blob: 302ea565da237572fd9eae32a4302e5b6f727c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<? local view = ... ?>
<html>
<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.linkname ?>">server config</a></dd>

<dt>View this as it was a</dt>
<dd><a href="<?= view.url ?>/client_config?name=<?= view.configfilecontent.linkname ?>">client config</a></dd>

<h2>Details</h2>

<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>