Handle hostnames with upper-case letters
[webmin.git] / postfix / body.cgi
1 #!/usr/local/bin/perl
2 #
3 # postfix-module by Guillaume Cottenceau <gc@mandrakesoft.com>,
4 # for webmin by Jamie Cameron
5
6 # Manages virtuals for Postfix
7 #
8 # << Here are all options seen in Postfix sample-virtual.cf >>
9
10
11 require './postfix-lib.pl';
12
13 $access{'body'} || &error($text{'body_ecannot'});
14 &ui_print_header(undef, $text{'body_title'}, "", "body");
15
16 # Start of body form
17 print &ui_form_start("save_opts_body.cgi");
18 print &ui_table_start($text{'body_title'}, "width=100%", 2);
19
20 &option_mapfield("body_checks", 60);
21
22 print &ui_table_end();
23 print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
24
25 # Map contents
26 print &ui_hr();
27 if (&get_current_value("body_checks") eq "")
28 {
29     print $text{'no_map'},"<p>\n";
30 }
31 else
32 {
33     &generate_map_edit("body_checks", $text{'map_click'}." ".
34                        &hlink($text{'help_map_format'}, "body"), 1,
35                        $text{'header_name'}, $text{'header_value'});
36 }
37
38 &ui_print_footer("", $text{'index_return'});
39