summaryrefslogtreecommitdiffstats
path: root/syslog-config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-config-html.lsp')
-rw-r--r--syslog-config-html.lsp14
1 files changed, 7 insertions, 7 deletions
diff --git a/syslog-config-html.lsp b/syslog-config-html.lsp
index af69007..3782147 100644
--- a/syslog-config-html.lsp
+++ b/syslog-config-html.lsp
@@ -15,9 +15,6 @@
<H1>CONFIGURATION</H1>
<form name="config" action="" method="POST">
-<H2>Guided config</H2>
-
-<!--
<H2>Advanced config</H2>
<H3>General settings</H3>
@@ -74,10 +71,9 @@
</DD>
</DL>
--->
<H3>Remote logging</H3>
<DL>
-<!--
+
<? var = "-L" ?>
<DT <? if (view.errors) and (view.errors["SYSLOGD_OPTS"][var]) then io.write("class='error'") end ?>>Log locally and via network</DT>
<DD><input type="checkbox" name="<?= var ?>" <? if (view.config["SYSLOGD_OPTS"][var]) then io.write('checked=yes') end ?> />
@@ -86,7 +82,7 @@
io.write("<p class='error'>",view.errors["SYSLOGD_OPTS"][var] ,"</p>")
end ?>
</DD>
--->
+
<? var = "-R" ?>
<DT <? if (view.errors) and (view.errors["SYSLOGD_OPTS"][var]) then io.write("class='error'") end ?>>Log to IP or hostname on PORT</DT>
<DD><input type="text" class="text" name="<?= var ?>" value="<?= view.config["SYSLOGD_OPTS"][var] ?>"/>
@@ -103,6 +99,10 @@
<DL>
<DT>Apply settings</DT>
<DD><input class="submit" type="submit" name="cmdsave" value="Apply" /></DD>
+ <? if (view.cmderrors) then ?>
+ <dt class='error'>Errors in previous action</dt>
+ <dd><pre class='error'><?= view.cmderrors?></pre></dd>
+ <? end ?>
</DL>
</form>
<H1>MANAGEMENT</H1>
@@ -123,7 +123,7 @@
<?
---[[ DEBUG INFORMATION
+---[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]