3 # Save server config options
5 require './pserver-lib.pl';
6 $access{'config'} || &error($text{'config_ecannot'});
8 &error_setup($text{'save_err'});
10 # Validate and save inputs
11 &lock_file($cvs_config_file);
12 @conf = &get_cvs_config();
14 &save_cvs_config(\@conf, "SystemAuth", undef, "yes");
17 &save_cvs_config(\@conf, "SystemAuth", "no", "yes");
20 &save_cvs_config(\@conf, "TopLevelAdmin", "yes", "no");
23 &save_cvs_config(\@conf, "TopLevelAdmin", undef, "no");
25 if ($in{'hist_def'}) {
26 &save_cvs_config(\@conf, "LogHistory", undef, "all");
29 &save_cvs_config(\@conf, "LogHistory",
30 join("", split(/\0/, $in{'hist'})), "all");
32 if ($in{'lock_def'}) {
33 &save_cvs_config(\@conf, "LockDir", undef);
36 -d $in{'lock'} || &error($text{'config_elock'});
37 &save_cvs_config(\@conf, "LockDir", $in{'lock'});
40 &unlock_file($cvs_config_file);
41 &webmin_log("config");