blob: 95a172a516ea0d4563c5beb20604f8daab750fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
%
%
%my $conf=new FS::Conf;
%
%http_header('Content-Type' => 'application/x-unknown' );
%
%die "No configuration variable specified (bad URL)!" # umm
% unless $cgi->keywords;
%my($query) = $cgi->keywords;
%$query =~ /^([\w -\)+-\/@;:?=[\]]+)$/;
%my $name = $1;
%
%http_header('Content-Disposition' => "attachment; filename=$name" );
% print $conf->config_binary($name);
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
</%init>
|