summaryrefslogtreecommitdiff
path: root/httemplate/misc/dump.cgi
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2010-12-27 00:04:45 +0000
committercvs2git <cvs2git>2010-12-27 00:04:45 +0000
commitc82d349f864e6bd9f96fd1156903bc1f7193a203 (patch)
treee117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/misc/dump.cgi
parent74e058c8a010ef6feb539248a550d0bb169c1e94 (diff)
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/misc/dump.cgi')
-rw-r--r--httemplate/misc/dump.cgi20
1 files changed, 0 insertions, 20 deletions
diff --git a/httemplate/misc/dump.cgi b/httemplate/misc/dump.cgi
deleted file mode 100644
index 3b60b20ef..000000000
--- a/httemplate/misc/dump.cgi
+++ /dev/null
@@ -1,20 +0,0 @@
-% die "access denied"
-% unless $FS::CurrentUser::CurrentUser->access_right('Export');
-%
-% if ( driver_name =~ /^Pg$/ ) {
-% my $dbname = (split(':', datasrc))[2];
-% if ( $dbname =~ /[;=]/ ) {
-% my %elements = map { /^(\w+)=(.*)$/; $1=>$2 } split(';', $dbname);
-% $dbname = $elements{'dbname'};
-% }
-% open(DUMP,"pg_dump $dbname |");
-% } else {
-% errorpage("don't (yet) know how to dump ". driver_name. " databases");
-% }
-%
-% http_header('Content-Type' => 'text/plain' );
-%
-% while (<DUMP>) {
-% print $_;
-% }
-% close DUMP;