3 %my $conf=new FS::Conf;
5 %http_header('Content-Type' => 'application/x-unknown' );
7 %die "No configuration variable specified (bad URL)!" # umm
8 % unless $cgi->param('key');
9 %$cgi->param('key') =~ /^([-\w.]+)$/;
13 %if ($cgi->param('agentnum') =~ /^(\d+)$/) {
17 %http_header('Content-Disposition' => "attachment; filename=$name" );
18 % print $conf->config_binary($name, $agentnum);
21 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
24 if ($cgi->param('agentnum') =~ /^(\d+)$/) {