diff options
author | patdenice <patdenice@piwigo.org> | 2009-09-05 11:20:48 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-09-05 11:20:48 +0000 |
commit | d39ce214bceac343844b067d0f00bb904d6af2b2 (patch) | |
tree | 7e68820d328e7509a52e1ac3c6b3e13c949d13f7 /admin | |
parent | 13872e6e923b20fa17483e992989018d9a9f35c4 (diff) |
Update pclzip to 2.8.1 (PHP 5.3 compatibility)
git-svn-id: http://piwigo.org/svn/branches/2.0@3822 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/include/pclzip.lib.php | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/admin/include/pclzip.lib.php b/admin/include/pclzip.lib.php index 8ad270c5d..c7a7cbc1b 100644 --- a/admin/include/pclzip.lib.php +++ b/admin/include/pclzip.lib.php @@ -1,8 +1,8 @@ <?php // -------------------------------------------------------------------------------- -// PhpConcept Library - Zip Module 2.8 +// PhpConcept Library - Zip Module 2.8.1 // -------------------------------------------------------------------------------- -// License GNU/LGPL - Vincent Blavet - March 2006 +// License GNU/LGPL - Vincent Blavet - August 2009 // http://www.phpconcept.net // -------------------------------------------------------------------------------- // @@ -44,7 +44,7 @@ if (!defined('PCLZIP_TEMPORARY_FILE_RATIO')) { } -$g_pclzip_version = "2.8"; +$g_pclzip_version = "2.8.1"; define( 'PCLZIP_ERR_USER_ABORTED', 2 ); define( 'PCLZIP_ERR_NO_ERROR', 0 ); @@ -956,6 +956,7 @@ function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_request break; case PCLZIP_OPT_BY_EREG : + $p_options_list[$i] = PCLZIP_OPT_BY_PREG; case PCLZIP_OPT_BY_PREG : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); @@ -2259,14 +2260,6 @@ function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all } } - else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) - && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { - - if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header['stored_filename'])) { - $v_extract = true; - } - } - else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { @@ -3224,14 +3217,6 @@ function privDeleteByRule(&$p_result_list, &$p_options) } } - else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) - && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { - - if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { - $v_found = true; - } - } - else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { @@ -3868,4 +3853,4 @@ function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) } return $p_path; } -?>
\ No newline at end of file +?> |