3 # An OpenSLP webmin module
4 # by Monty Charlton <monty@caldera.com>,
6 # Copyright (c) 2000 Caldera Systems
8 # Permission to use, copy, modify, and distribute this software and its
9 # documentation under the terms of the GNU General Public License is hereby
10 # granted. No representations are made about the suitability of this software
11 # for any purpose. It is provided "as is" without express or implied warranty.
12 # See the GNU General Public License for more details.
15 require './slp-lib.pl';
16 &ui_print_header(undef, $text{'log_title'}, "");
18 local $log = &get_log_config();
19 print "<form action=save_log.cgi>\n";
20 print "<table border width=100%>\n";
21 print "<tr $tb> <td><b>$text{'log_title'}</b></td> </tr>\n";
22 print "<tr $cb> <td><table width=100%>\n";
24 if ($log->{'traceDATraffic'} !~ /^true$/i || $log->{'traceDATrafficDisabled'}) {
29 print "<tr><td><b>$text{'log_traceDATraffic'}</b></td><td nowrap>\n";
30 print "<input type=radio name=traceDATraffic value=1$true>\n";
31 print "True <BR>";
32 print "<input type=radio name=traceDATraffic value=0$false>\n";
33 print "False (default)";
35 print "<td> </td>\n";
37 local $true=""; local $false="";
38 if ($log->{'traceMsg'} !~ /^true$/i || $log->{'traceMsgDisabled'}) {
43 print "<td><b>$text{'log_traceMsg'}</b></td><td nowrap>\n";
44 print "<input type=radio name=traceMsg value=1$true>\n";
45 print "True <BR>";
46 print "<input type=radio name=traceMsg value=0$false>\n";
47 print "False (default) ";
50 print "<tr><td colspan=6><HR></td></tr>";
53 if ($log->{'traceDrop'} !~ /^true$/i || $log->{'traceDropDisabled'}) {
58 print "<tr><td><b>$text{'log_traceDrop'}</b></td><td nowrap>\n";
59 print "<input type=radio name=traceDrop value=1$true>\n";
60 print "True <BR>";
61 print "<input type=radio name=traceDrop value=0$false>\n";
62 print "False (default) ";
64 print "<td> </td>\n";
67 if ($log->{'traceReg'} !~ /^true$/i || $log->{'traceRegDisabled'}) {
72 print "<td><b>$text{'log_traceReg'}</b></td><td nowrap>\n";
73 print "<input type=radio name=traceReg value=1$true>\n";
74 print "True <BR>";
75 print "<input type=radio name=traceReg value=0$false>\n";
76 print "False (default) ";
79 print "</table></td></tr></table>\n";
80 print "<input type=submit value=\"$text{'save'}\"></form>\n";
82 &ui_print_footer("", $text{'index_return'});