Handle hostnames with upper-case letters
[webmin.git] / majordomo / edit_global.cgi
1 #!/usr/local/bin/perl
2 # edit_global.cgi
3 # Edit global majordomo options
4
5 require './majordomo-lib.pl';
6 $conf = &get_config();
7 %access = &get_module_acl();
8 $access{'global'} || &error($text{'global_ecannot'});
9 &ui_print_header(undef, $text{'global_title'}, "");
10
11 print "<form action=save_global.cgi>\n";
12 print "<table border width=100%>\n";
13 print "<tr $tb> <td><b>$text{'global_header'}</b></td> </tr>\n";
14 print "<tr $cb> <td><table>\n";
15
16 $whereami = &find_value("whereami", $conf);
17 print "<tr> <td><b>$text{'global_whereami'}</b></td>\n";
18 print "<td><input name=whereami size=30 value=\"$whereami\"></td> </tr>\n";
19
20 $whoami = &find_value("whoami", $conf);
21 print "<tr> <td><b>$text{'global_whoami'}</b></td>\n";
22 print "<td><input name=whoami size=40 value=\"$whoami\"></td> </tr>\n";
23
24 $whoami_o = &find_value("whoami_owner", $conf);
25 print "<tr> <td><b>$text{'global_owner'}</b></td>\n";
26 print "<td><input name=whoami_owner size=40 value=\"$whoami_o\"></td> </tr>\n";
27
28 $sendmail = &find_value("sendmail_command", $conf);
29 print "<tr> <td><b>$text{'global_sendmail'}</b></td>\n";
30 print "<td><input name=sendmail_command size=40 value=\"$sendmail\">",
31         &file_chooser_button("sendmail_command", 0),"</td> </tr>\n";
32
33 print "</table></td></tr></table>\n";
34 print "<input type=submit value=\"$text{'save'}\"></form>\n";
35
36 &ui_print_footer("", $text{'index_return'});