[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / ecrire / inc / pclzip.php
index 1eb1be1..449d3f3 100644 (file)
 //   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