diff options
author | benakamoorthi <benaka.moorthi@gmail.com> | 2012-11-27 02:14:37 +0400 |
---|---|---|
committer | benakamoorthi <benaka.moorthi@gmail.com> | 2012-11-27 02:14:37 +0400 |
commit | dc98a971829c9ed278f79e759ba41b51881ba2fc (patch) | |
tree | 8acbffb943baa97c66ea954099e86fcdf243351a /core/Unzip.php | |
parent | 4caab2461a50d6d4f81435cf52816a43525780ff (diff) |
Fixes #3456, added updating scheduled task for GeoIP databases w/ manager UI and easy-install for GeoLiteCity.
Notes:
* Added new PEAR lib Archive_Tar and new Unzip implmentations for .tar.gz, .tar.bz2 & .gz files.
* Modified Http class to allow use of Range HTTP header.
* Added ability to download file in chunks to Http class.
* Moved GeoIP admin page styles to separate CSS file.
* Allowed monthly scheduled tasks to specify day of week to run on.
git-svn-id: http://dev.piwik.org/svn/trunk@7550 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Unzip.php')
-rw-r--r-- | core/Unzip.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/Unzip.php b/core/Unzip.php index 1031df4540..612b321f1d 100644 --- a/core/Unzip.php +++ b/core/Unzip.php @@ -31,10 +31,20 @@ class Piwik_Unzip case 'ZipArchive': if(class_exists('ZipArchive', false)) return new Piwik_Unzip_ZipArchive($filename); - + break; + case 'tar.gz': + return new Piwik_Unzip_Tar($filename, 'gz'); + case 'tar.bz2': + return new Piwik_Unzip_Tar($filename, 'bz2'); + case 'gz': + if (function_exists('gzopen')) + return new Piwik_Unzip_Gzip($filename); + break; case 'PclZip': default: return new Piwik_Unzip_PclZip($filename); } + + return new Piwik_Unzip_PclZip($filename); } } |