Handle hostnames with upper-case letters
[webmin.git] / itsecur-firewall / list_bandwidth.cgi
1 #!/usr/bin/perl
2 # Show a form for setting up bandwidth monitoring
3
4 require './itsecur-lib.pl';
5 &can_edit_error("bandwidth");
6 &header($text{'bandwidth_title'}, "",
7         undef, undef, undef, undef, &apply_button());
8 print "<hr>\n";
9
10 print "<form action=save_bandwidth.cgi method=post>\n";
11 print "<table border>\n";
12 print "<tr $tb> <td><b>$text{'bandwidth_header'}</b></td> </tr>\n";
13 print "<tr $cb> <td><table>\n";
14
15 print "<tr> <td><b>$text{'bandwidth_enabled'}</b></td> <td>\n";
16 printf "<input type=radio name=enabled value=0 %s> %s\n",
17         $config{'bandwidth'} ? "" : "checked", $text{'no'};
18 printf "<input type=radio name=enabled value=1 %s> %s\n",
19         $config{'bandwidth'} ? "checked" : "", $text{'bandwidth_yes'};
20 print &iface_input("iface", $config{'bandwidth'}, 1, 1, 0);
21 print "</td> </tr>\n";
22
23 print "</table></td></tr></table>\n";
24 print "<input type=submit value='$text{'save'}'></form>\n";
25
26 print "<hr>\n";
27 &footer("", $text{'index_return'});
28