summaryrefslogtreecommitdiffstats
path: root/syslog-basic-html.lsp
blob: 0e5cab31ac9c185fcff45faa7a3139b6b80b5005 (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
45
46
47
<? ctl = ... ?>
<h1>System logging</h1>
<form>
<p>
<input type="radio" name="status" value="enabled" <?= ctl.enabled ?>/>
Enable
</p>
<p>
<input type="radio" name="status" value="disabled" <?= ctl.disabled ?>/>
Disable
</p>

<p>
<input type="checkbox" name="remote" <?= ctl.remote ?>/>
Enable remote logging
</p>

<p>
Remote host: <input type="text" value="<?= ctl.host ?>" name="host"/>
</p>

<p>
<br/>
<input type="submit" value="Apply"/>
</p>
<!-- DEBUG:

<?
for k,v in pairs(ctl) do
	io.write(k..": "..tostring(v).."\n")
end

if ctl.pidlist then
	io.write("pidlist:\n")
	for k,v in pairs(ctl.pidlist) do
		io.write(k..": "..tostring(v).."\n")
	end
end
if ctl.opts then
	io.write("opts:\n")
	for k,v in pairs(ctl.opts) do
		io.write(k..": "..tostring(v).."\n")
	end
end
?>
-->
</form>