diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-02 17:30:59 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-02 17:30:59 +0000 |
commit | 2faf2639ee89ab6e92ac474bbc01ca226c4c4ed3 (patch) | |
tree | fc921eff9cd66ee46f22b550977b2d9fe3f34ca4 /phpBB/includes/functions_compress.php | |
parent | e68d442f522dd51fe23d4f0ae6095b132c7052ce (diff) | |
download | forums-2faf2639ee89ab6e92ac474bbc01ca226c4c4ed3.tar forums-2faf2639ee89ab6e92ac474bbc01ca226c4c4ed3.tar.gz forums-2faf2639ee89ab6e92ac474bbc01ca226c4c4ed3.tar.bz2 forums-2faf2639ee89ab6e92ac474bbc01ca226c4c4ed3.tar.xz forums-2faf2639ee89ab6e92ac474bbc01ca226c4c4ed3.zip |
- install style and style elements
- refresh template and style cache
git-svn-id: file:///svn/phpbb/trunk@5416 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_compress.php')
-rw-r--r-- | phpBB/includes/functions_compress.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php index 0b24ec14dc..55457bc226 100644 --- a/phpBB/includes/functions_compress.php +++ b/phpBB/includes/functions_compress.php @@ -184,7 +184,12 @@ class compress_zip extends compress $file_name_length = unpack("v", fread($this->fp, 2)); // filename length $extra_field_length = unpack("v", fread($this->fp, 2)); // extra field length $file_name = fread($this->fp, $file_name_length[1]); // filename - fread($this->fp, $extra_field_length[1]); + + if ($extra_field_length[1]) + { + fread($this->fp, $extra_field_length[1]); + } + $file['offset'] = ftell($this->fp); // Bypass the whole compressed contents, and look for the next file @@ -560,7 +565,12 @@ class compress_tar extends compress { $fzwrite = ($this->isbz && function_exists('bzwrite')) ? 'bzwrite' : (($this->isgz && extension_loaded('zlib')) ? 'gzwrite' : 'fwrite'); $fzclose = ($this->isbz && function_exists('bzclose')) ? 'bzclose' : (($this->isgz && extension_loaded('zlib')) ? 'gzclose' : 'fclose'); - if ($this->wrote) $fzwrite($this->fp, pack("a1024", "")); + + if ($this->wrote) + { + $fzwrite($this->fp, pack("a1024", "")); + } + $fzclose($this->fp); } |