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
45
46
47
48
49
50
51
52
53
|
<? local form = ... ?>
<?
require("viewfunctions")
?>
<H1>SYSTEM INFO</H1>
<DL>
<?
local myform = form.status
local tags = { "status", "version", "autostart", }
displayinfo(myform,tags,"viewonly")
?>
</DL>
<form name="myform" action="" method="POST">
<h1>CONFIGURATION</h1>
<H2>Expert config</H2>
<h3>File details</h3>
<DL>
<?
local myform = form.file
local tags = { "filename", "filesize", "mtime", "sumerrors", }
displayinfo(myform,tags,"viewonly")
?>
</DL>
<H3>FILE CONTENT</H3>
<?
local myform = form.file
io.write(html.form[myform.filecontent.type](myform.filecontent))
?>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
<DL>
<?
local tags = { "cmdsave", }
displayinfo(myform,tags)
?>
</DL>
<H1>MANAGEMENT</H1>
<DL>
<?
local myform = form.management
local tags = { "start", "stop", "restart" }
displaymanagement(myform,tags)
?>
</DL>
</form>
|