3 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
6 if ($cgi->param('agentnum') =~ /^(\d+)$/) {
10 http_header('Content-Type' => 'application/x-unknown' );
12 die "No configuration variable specified (bad URL)!" # umm
13 unless $cgi->param('key');
14 $cgi->param('key') =~ /^([-\w.]+)$/;
18 if ($cgi->param('agentnum') =~ /^(\d+)$/) {
23 if ($cgi->param('locale') =~ /^(\w+)$/) {
26 my $conf=new FS::Conf { 'locale' => $locale };
28 http_header('Content-Disposition' => "attachment; filename=$name" );
29 print $conf->config_binary($name, $agentnum);