#!/usr/local/bin/perl # edit_config.cgi # Display server configuration options require './pserver-lib.pl'; $access{'config'} || &error($text{'config_ecannot'}); &ui_print_header(undef, $text{'config_title'}, ""); @conf = &get_cvs_config(); print "
\n"; print "\n"; print "\n"; print "
$text{'config_header'}
\n"; $auth = &find("SystemAuth", \@conf); print "\n"; printf "\n", $auth->{'value'} eq 'no' ? "checked" : "", $text{'no'}; $top = &find("TopLevelAdmin", \@conf); print "\n"; printf "\n", $top->{'value'} eq 'yes' ? "" : "checked", $text{'no'}; $hist = &find("LogHistory", \@conf); $all++ if (!$hist || lc($hist->{'value'}) eq 'all'); map { $hist{lc($_)}++ } split(//, $hist->{'value'}) if (!$all); print "\n"; printf "\n"; $lock = &find("LockDir", \@conf); print "\n"; printf "\n", $lock->{'value'}, &file_chooser_button("lock"); print "
$text{'config_auth'} %s\n", $auth->{'value'} eq 'no' ? "" : "checked", $text{'yes'}; printf " %s
$text{'config_top'} %s\n", $top->{'value'} eq 'yes' ? "checked" : "", $text{'yes'}; printf " %s
$text{'config_hist'} %s\n", $all ? "checked" : "", $text{'config_hist_all'}; printf " %s
\n", $all ? "" : "checked", $text{'config_hist_sel'}; print "\n"; $i = 0; foreach $h (@hist_chars) { print "\n" if ($i%2 == 0); printf "\n", $h, $hist{lc($h)} ? "checked" : "", $text{'config_hist_'.$h}; print "\n" if ($i%2 == 1); $i++; } print "
%s
$text{'config_lock'} %s\n", $lock ? "" : "checked", $text{'default'}; printf "\n", $lock ? "checked" : ""; printf " %s
\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});