From fbfffdabe931d704aae420984058e61dc4196b01 Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 27 Feb 2007 01:51:52 +0000 Subject: config goes in database --- httemplate/config/config-download.cgi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 httemplate/config/config-download.cgi (limited to 'httemplate/config/config-download.cgi') diff --git a/httemplate/config/config-download.cgi b/httemplate/config/config-download.cgi new file mode 100644 index 000000000..d4b88ded9 --- /dev/null +++ b/httemplate/config/config-download.cgi @@ -0,0 +1,14 @@ +% +% +%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); -- cgit v1.2.1