X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fpclzip.php;h=449d3f3c85c4717826035cc75f0d9a88700edc19;hp=1eb1be1c2153725582f351a36054fbc2a6ab1c94;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=d686c3e22e97dd46ef42bcd0f138c65083f8f232 diff --git a/www/ecrire/inc/pclzip.php b/www/ecrire/inc/pclzip.php index 1eb1be1..449d3f3 100644 --- a/www/ecrire/inc/pclzip.php +++ b/www/ecrire/inc/pclzip.php @@ -21,9 +21,17 @@ // this software the author can not be responsible. // The use of this software is at the risk of the user. // -// -------------------------------------------------------------------------------- -// $Id: pclzip.php 19990 2012-11-03 12:57:57Z eric@smellup.net $ -// -------------------------------------------------------------------------------- + + // personnalisations spip + if (!defined('PCLZIP_TEMPORARY_DIR')) { + define('PCLZIP_TEMPORARY_DIR', _DIR_TMP); + } + if (!function_exists('gzopen') && function_exists('gzopen64')) { + function gzopen($filename, $mode, $use_include_path = 0) { + return gzopen64($filename, $mode, $use_include_path); + } + } + // fin personnalisations spip // ----- Constants if (!defined('PCLZIP_READ_BLOCK_SIZE')) { @@ -63,7 +71,7 @@ // define( 'PCLZIP_TEMPORARY_DIR', '/temp/' ); // define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' ); if (!defined('PCLZIP_TEMPORARY_DIR')) { - define( 'PCLZIP_TEMPORARY_DIR', _DIR_TMP ); + define( 'PCLZIP_TEMPORARY_DIR', '' ); } // ----- Optional threshold ratio for use of temporary files