mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- file_get_contents instead of imploding file()s or fread()ing till the maximum filesize
- language and style properly use compression - language now prompts user for methods - functions_compress does not need to eval() to get a hex date, instead calls pack() - A writing method is defined at the end of tar operations only if data has been sent to the archive - BBCode parser does not have to eval(), it instead uses the regex to loop around the matches Hopefully nothing broke :-) git-svn-id: file:///svn/phpbb/trunk@5422 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -768,23 +768,23 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
switch ($format)
|
||||
{
|
||||
case 'tar':
|
||||
$ext = 'tar';
|
||||
$ext = '.tar';
|
||||
$mimetype = 'x-tar';
|
||||
$compress = 'compress_tar';
|
||||
break;
|
||||
|
||||
case 'zip':
|
||||
$ext = 'zip';
|
||||
$ext = '.zip';
|
||||
$mimetype = 'zip';
|
||||
break;
|
||||
|
||||
case 'tar.gz':
|
||||
$ext = 'tar.gz';
|
||||
$ext = '.tar.gz';
|
||||
$mimetype = 'x-gzip';
|
||||
break;
|
||||
|
||||
case 'tar.bz2':
|
||||
$ext = 'tar.bz2';
|
||||
$ext = '.tar.bz2';
|
||||
$mimetype = 'x-bzip2';
|
||||
break;
|
||||
|
||||
@@ -800,11 +800,11 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
|
||||
if ($format == 'zip')
|
||||
{
|
||||
$compress = new compress_zip('w', $phpbb_root_path . "store/$path.$ext");
|
||||
$compress = new compress_zip('w', $phpbb_root_path . "store/$path$ext");
|
||||
}
|
||||
else
|
||||
{
|
||||
$compress = new compress_tar('w', $phpbb_root_path . "store/$path.$ext", $ext);
|
||||
$compress = new compress_tar('w', $phpbb_root_path . "store/$path$ext", $ext);
|
||||
}
|
||||
|
||||
if (sizeof($files))
|
||||
@@ -830,11 +830,11 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
if (!$store)
|
||||
{
|
||||
$compress->download($path);
|
||||
@unlink("{$phpbb_root_path}store/$path.$ext");
|
||||
@unlink("{$phpbb_root_path}store/$path$ext");
|
||||
exit;
|
||||
}
|
||||
|
||||
trigger_error(sprintf($user->lang[$l_prefix . '_EXPORTED'], "store/$path.$ext") . adm_back_link($this->u_action));
|
||||
trigger_error(sprintf($user->lang[$l_prefix . '_EXPORTED'], "store/$path$ext") . adm_back_link($this->u_action));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user