projects
/
Pman.Builder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15660c3
)
DataObjects/Builder_tables.php
author
Edward
<edward@roojs.com>
Fri, 9 May 2014 06:58:35 +0000
(14:58 +0800)
committer
Edward
<edward@roojs.com>
Fri, 9 May 2014 06:58:35 +0000
(14:58 +0800)
DataObjects/Builder_tables.php
patch
|
blob
|
history
diff --git
a/DataObjects/Builder_tables.php
b/DataObjects/Builder_tables.php
index
80e2391
..
7c90b82
100644
(file)
--- a/
DataObjects/Builder_tables.php
+++ b/
DataObjects/Builder_tables.php
@@
-213,8
+213,20
@@
class Pman_Builder_DataObjects_Builder_tables extends DB_DataObject
$cmd = "mysqldump -uroot --no-create-info summit cal_event";
+ require_once 'System.php';
+
+ $tmpdir = System::mktemp("-d remote_upload");
+
+ $path = $tmpdir . '/' . $tn . '.sql';
+
+ header ('Content-Type: application/octet-stream');
+ header("Content-Disposition: attachment; filename=\"".$path."\";" );
+ @ob_clean();
+ flush();
+ readfile($src);
+
- echo passthru($cmd);;exit;
+
//
echo passthru($cmd);;exit;
exit;