Handle hostnames with upper-case letters
[webmin.git] / sendmail / list_cws.cgi
1 #!/usr/local/bin/perl
2 # list_cws.cgi
3 # List domains for which we accept mail
4
5 require './sendmail-lib.pl';
6 $access{'cws'} || &error($text{'cws_ecannot'});
7 &ui_print_header(undef, $text{'cws_title'}, "");
8
9 $conf = &get_sendmailcf();
10 @dlist = &get_file_or_config($conf, "w");
11
12 # Explanation
13 print &text('cws_desc1', "<tt>".&get_system_hostname()."</tt>"),"<p>\n";
14 print $text{'cws_desc2'},"<p>\n";
15
16 # Local domains field
17 print &ui_form_start("save_cws.cgi", "form-data");
18 print &ui_table_start(undef, undef, 2);
19 print &ui_table_row(undef, ui_textarea("dlist", join("\n", @dlist), 15, 80), 2);
20 print &ui_table_end();
21 print &ui_form_end([ [ undef, $text{'save'} ] ]);
22
23 &ui_print_footer("", $text{'index_return'});
24
25