summaryrefslogtreecommitdiffstats
path: root/snort-expert-html.lsp
blob: ab2ee56af824544798af52562168f6bebb535968 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<? local view = ... ?>
<?
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(view))
io.write("</span>")
--]]
?>
<h1>SYSTEM INFO</h1>

<dl>
<dt>Program status
<dd><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></dd>
</dl>

<dl>
<dt>Program version</dt>
<dd><?= view.status.version ?></dd>
</dl>

<h1>CONFIGURATION</h1>

<H2>Expert config</H2>

<h3>File details</h3>

<DL>
<dt>File name</dt>
<dd><?= view.file.details.path ?></dd>
</DL>

<DL>
<dt>File size</dt>
<dd><?= view.file.details.size ?></dd>
</DL>

<DL>
<dt>Last modified</dt>
<dd><?= view.file.details.mtime ?></dd>
</DL>

<h3>File content</h3>

<form name="myform" action="" method="POST">
<input name="name" type=hidden value="">
<textarea name="modifications"><?= view.file.content ?></textarea>

<H2>Save and apply above settings</H2>
<DL>
<DT>Apply settings</DT>
<DD><input class="submit" type="submit" value="Apply"/></DD>
</DL>
</form>

<H1>MANAGEMENT</H1>

<dl>
<dt>Program controll-panel</dt>
<dd><form name="cmd" action="" method="POST">
<input type=submit class="submit" name="cmd" value="start">
<input type=submit class="submit" name="cmd" value="stop">
<input type=submit class="submit" name="cmd" value="restart">
</form></dd>
</dl>

<? if (view.startstop) then ?>
<dl>
<dt>Previous action result</dt>
<dd><pre><?= view.startstop?></pre></dd>
</dl>
<? end ?>

<?
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(form))
io.write("</span>")
--]]
?>