projects
/
Pman.Builder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cda0ed
)
DataObjects/Builder_tables.php
author
Edward
<edward@roojs.com>
Fri, 9 May 2014 06:59:34 +0000
(14:59 +0800)
committer
Edward
<edward@roojs.com>
Fri, 9 May 2014 06:59:34 +0000
(14:59 +0800)
DataObjects/Builder_tables.php
patch
|
blob
|
history
diff --git
a/DataObjects/Builder_tables.php
b/DataObjects/Builder_tables.php
index
d1e41c3
..
403ed24
100644
(file)
--- a/
DataObjects/Builder_tables.php
+++ b/
DataObjects/Builder_tables.php
@@
-219,16
+219,15
@@
class Pman_Builder_DataObjects_Builder_tables extends DB_DataObject
$path = $tmpdir . '/' . $tn . '.sql';
+ file_put_contents($path, passthru($cmd));
+
header ('Content-Type: application/octet-stream');
header("Content-Disposition: attachment; filename=\"".$path."\";" );
@ob_clean();
flush();
readfile($path);
-
-// echo passthru($cmd);;exit;
-
- exit;
+ exit;
}