summaryrefslogtreecommitdiff
path: root/httemplate/config/config-download.cgi
diff options
context:
space:
mode:
authorjeff <jeff>2007-02-27 01:51:52 +0000
committerjeff <jeff>2007-02-27 01:51:52 +0000
commitfbfffdabe931d704aae420984058e61dc4196b01 (patch)
tree20b82398f278cb8a0aebd47e1beb433bba660e03 /httemplate/config/config-download.cgi
parent1d719ccff55b1a82208fdf44b6dcd2da96b3c42e (diff)
config goes in database
Diffstat (limited to 'httemplate/config/config-download.cgi')
-rw-r--r--httemplate/config/config-download.cgi14
1 files changed, 14 insertions, 0 deletions
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);