Handle hostnames with upper-case letters
[webmin.git] / qmailadmin / list_locals.cgi
1 #!/usr/local/bin/perl
2 # list_locals.cgi
3 # Display domains for which we accept mail for local delivery
4
5 require './qmail-lib.pl';
6 &ui_print_header(undef, $text{'locals_title'}, "");
7
8 $dlist = &list_control_file("locals");
9 $me = &get_control_file("me");
10
11 print "<form method=post action=save_locals.cgi enctype=multipart/form-data>\n";
12 print "<table cellpadding=5 width=100%><tr><td valign=top nowrap>\n";
13 print "<b>$text{'locals_domains'}</b><br>\n";
14
15 printf "<input type=radio name=locals_def value=1 %s> %s &nbsp;&nbsp;&nbsp;\n",
16         $dlist ? "" : "checked", &text('locals_only', "<tt>$me</tt>");
17 printf "<input type=radio name=locals_def value=0 %s> %s<br>\n",
18         $dlist ? "checked" : "", $text{'locals_sel'};
19
20 print "<textarea name=locals rows=15 cols=65>",
21         &html_escape(join("\n", @$dlist)),"</textarea><br>\n";
22 print "<input type=submit value=\"$text{'save'}\">\n";
23
24 print "</td><td valign=top>\n";
25 print $text{'locals_desc'},"\n";
26 print "</td></tr></table>\n";
27 print "</form>\n";
28
29 &ui_print_footer("", $text{'index_return'});
30
31