Handle hostnames with upper-case letters
[webmin.git] / majordomo / save_head.cgi
1 #!/usr/local/bin/perl
2 # save_head.cgi
3 # Save headers and footers
4
5 require './majordomo-lib.pl';
6 &ReadParse();
7 %access = &get_module_acl();
8 &can_edit_list(\%access, $in{'name'}) || &error($text{'edit_ecannot'});
9 $list = &get_list($in{'name'}, &get_config());
10 &lock_file($list->{'config'});
11 $conf = &get_list_config($list->{'config'});
12 &save_multi($conf, $list->{'config'}, "message_fronter");
13 &save_multi($conf, $list->{'config'}, "message_footer");
14 &save_multi($conf, $list->{'config'}, "message_headers");
15 &flush_file_lines();
16 &unlock_file($list->{'config'});
17 &webmin_log("head", undef, $in{'name'}, \%in);
18 &redirect("edit_list.cgi?name=$in{'name'}");
19