From: <ral...@us...> - 2011-02-25 13:13:59
|
Author: ralfbecker Date: Fri Feb 25 14:13:40 2011 New Revision: 33944 URL: http://www.egroupware.org/viewvc/egroupware?rev=33944&view=rev Log: * removing memory limit from backup download, by switching off output buffering and zlib output compression Modified: trunk/setup/db_backup.php Modified: trunk/setup/db_backup.php URL: http://www.egroupware.org/viewvc/egroupware/trunk/setup/db_backup.php?rev=33944&r1=33943&r2=33944&view=diff ============================================================================== --- trunk/setup/db_backup.php (original) +++ trunk/setup/db_backup.php Fri Feb 25 14:13:40 2011 @@ -37,11 +37,10 @@ { list($file) = each($_POST['download']); $file = $db_backup->backup_dir.'/'.basename($file); // basename to now allow to change the dir - ob_end_clean(); + while (@ob_end_clean()) ; // end all active output buffering + ini_set('zlib.output_compression',0); // switch off zlib.output_compression, as this would limit downloads in size to memory_limit html::content_header(basename($file)); - $f = fopen($file,'rb'); - fpassthru($f); - fclose($f); + readfile($file); exit; } $setup_tpl = CreateObject('phpgwapi.Template',$tpl_root); |