3 # Save global majordomo options
5 require './majordomo-lib.pl';
7 %access = &get_module_acl();
8 $access{'global'} || &error($text{'global_ecannot'});
9 &lock_file($config{'majordomo_cf'});
10 $conf = &get_config();
11 &error_setup($text{'global_err'});
14 $in{'whereami'} =~ /^[A-z0-9\-\.]+$/ ||
15 &error($text{'global_ewhereami'});
16 $in{'whoami'} =~ /^\S+$/ ||
17 &error($text{'global_ewhoami'});
18 $in{'whoami_owner'} =~ /^\S+$/ ||
19 &error($text{'global_eowner'});
20 -x $in{'sendmail_command'} ||
21 &error(&text('global_esendmail', "<tt>$in{'sendmail_command'}</tt>"));
24 &save_directive($conf, "whereami", $in{'whereami'});
25 &save_directive($conf, "whoami", $in{'whoami'});
26 &save_directive($conf, "whoami_owner", $in{'whoami_owner'});
27 &save_directive($conf, "sendmail_command", $in{'sendmail_command'});
29 &unlock_file($config{'majordomo_cf'});
30 &webmin_log("global", undef, undef, \%in);