summaryrefslogtreecommitdiffstats
path: root/apps/user_migrate
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-02-03 20:48:32 +0000
committerTom Needham <needham.thomas@gmail.com>2012-02-03 20:48:32 +0000
commit0bbc9ade7d51c73b4bffc13f21fbab5561fd075c (patch)
tree0cf2a2f8b6ea966ebcb017ee3ba2e4bdd452cab9 /apps/user_migrate
parent5507db9b15034c73d9a121596da4bf440206f173 (diff)
downloadnextcloud-server-0bbc9ade7d51c73b4bffc13f21fbab5561fd075c.tar.gz
nextcloud-server-0bbc9ade7d51c73b4bffc13f21fbab5561fd075c.zip
fix syntax, add logging, debug xml output instead of zip
Diffstat (limited to 'apps/user_migrate')
-rw-r--r--apps/user_migrate/settings.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/apps/user_migrate/settings.php b/apps/user_migrate/settings.php
index fbf190e37d0..5831bf54cb7 100644
--- a/apps/user_migrate/settings.php
+++ b/apps/user_migrate/settings.php
@@ -49,21 +49,22 @@ if (isset($_POST['user_migrate'])) {
// adding owncloud system files
OC_Log::write('user_migrate',"Adding app data to user export",OC_Log::INFO);
// Call to OC_Migrate for the xml file.
- $appdatafile = $tempdir . "/appdata.xml";
- $fh = fopen($appdatafile, 'w');
+ //$appdatafile = $tempdir . "/appdata.xml";
+ //$fh = fopen($appdatafile, 'w');
$appdata = OC_Migrate::export(OC_User::getUser());
- fwrite($fh, $appdata);
- $zip->addFile($appdatafile, "appdata.xml");
- fclose($fh);
+ //fwrite($fh, $appdata);
+ //$zip->addFile($appdatafile, "appdata.xml");
+ //fclose($fh);
}
$zip->close();
- header("Content-Type: application/zip");
- header("Content-Disposition: attachment; filename=" . basename($filename));
- header("Content-Length: " . filesize($filename));
- @ob_end_clean();
- readfile($filename);
+ //header("Content-Type: application/zip");
+ //header("Content-Disposition: attachment; filename=" . basename($filename));
+ //header("Content-Length: " . filesize($filename));
+ //@ob_end_clean();
+ echo $appdata;
+ //readfile($filename);
unlink($filename);
} else {
// fill template