1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 00:37:42 +02:00

- Cleaned up some compress stuff

- Replaced deprecated functions in the PostrgreSQL DBAL
- Added an undefined constant during install
- Oh, and we now have backups :D We currently work with all the MySQL flavors, PostgreSQL and SQLite...


git-svn-id: file:///svn/phpbb/trunk@5647 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-03-18 06:39:47 +00:00
parent f2cc5c093d
commit 593ab697a0
8 changed files with 1045 additions and 132 deletions

View File

@@ -81,6 +81,7 @@ class compress
function add_data($src, $name)
{
$stat = array();
$stat[2] = 436; //384
$stat[4] = $stat[5] = 0;
$stat[7] = strlen($src);
@@ -543,15 +544,15 @@ class compress_tar extends compress
switch ($this->type)
{
case 'tar':
case '.tar':
$mimetype = 'application/x-tar';
break;
case 'tar.gz':
case '.tar.gz':
$mimetype = 'application/x-gzip';
break;
case 'tar.bz2':
case '.tar.bz2':
$mimetype = 'application/x-bzip2';
break;
@@ -561,10 +562,10 @@ class compress_tar extends compress
}
header('Pragma: no-cache');
header("Content-Type: $mimetype; name=\"$filename.$this->type\"");
header("Content-disposition: attachment; filename=$filename.$this->type");
header("Content-Type: $mimetype; name=\"$filename$this->type\"");
header("Content-disposition: attachment; filename=$filename$this->type");
$fp = fopen("{$phpbb_root_path}store/$filename.$this->type", 'rb');
$fp = fopen("{$phpbb_root_path}store/$filename$this->type", 'rb');
while ($buffer = fread($fp, 1024))
{
echo $buffer;