Replacing pclZip wirh PclZip

skala
Julio Montoya 13 years ago
parent 6803901e16
commit 6716e11536
  1. 2
      main/dropbox/dropbox_submit.php
  2. 2
      main/inc/lib/add_course.lib.inc.php
  3. 8
      main/inc/lib/fileUpload.lib.php
  4. 2
      main/newscorm/aicc.class.php
  5. 2
      main/newscorm/learnpath.class.php
  6. 2
      main/newscorm/scorm.class.php

@ -259,7 +259,7 @@ if (isset($_GET['mailingIndex'])) {
require api_get_path(LIBRARY_PATH) . 'pclzip/pclzip.lib.php';
$zipFile = new pclZip($mailing_file);
$zipFile = new PclZip($mailing_file);
$goodFiles = array();
$zipContent = $zipFile->listContent();
$ucaseFiles = array();

@ -2775,7 +2775,7 @@ function readPropertiesInArchive($archive, $is_compressed = true) {
details.
tempnam() returns the temporary filename, or the string NULL upon failure.
*/
$zip_file = new pclZip($archive);
$zip_file = new PclZip($archive);
$tmp_dir_name = dirname($archive) . '/tmp'.$uid.uniqid($uid);
if (mkdir($tmp_dir_name, api_get_permissions_for_new_directories(), true)) {
$unzipping_state = $zip_file->extract($tmp_dir_name);

@ -561,9 +561,8 @@ function treat_uploaded_file($uploaded_file, $base_work_dir, $upload_path, $max_
*
* @return boolean true if it succeeds false otherwise
*/
function unzip_uploaded_file($uploaded_file, $upload_path, $base_work_dir, $max_filled_space) {
require_once api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php';
$zip_file = new pclZip($uploaded_file['tmp_name']);
function unzip_uploaded_file($uploaded_file, $upload_path, $base_work_dir, $max_filled_space) {
$zip_file = new PclZip($uploaded_file['tmp_name']);
// Check the zip content (real size and file extension)
if (file_exists($uploaded_file)) {
@ -677,8 +676,7 @@ function unzip_uploaded_document($uploaded_file, $upload_path, $base_work_dir, $
global $to_user_id;
global $to_group_id;
require_once api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php';
$zip_file = new pclZip($uploaded_file['tmp_name']);
$zip_file = new PclZip($uploaded_file['tmp_name']);
// Check the zip content (real size and file extension)

@ -359,7 +359,7 @@ class aicc extends learnpath {
$stopping_error = true;
}
*/
$zipFile = new pclZip($zip_file_path);
$zipFile = new PclZip($zip_file_path);
// Check the zip content (real size and file extension).

@ -1777,7 +1777,7 @@ class learnpath {
$file_base_name = str_replace('.' . $extension, '', $filename); // Filename without its extension.
$zipFile = new pclZip($file_path);
$zipFile = new PclZip($file_path);
// Check the zip content (real size and file extension).
$zipContentArray = $zipFile->listContent();
$package_type = '';

@ -487,7 +487,7 @@ class scorm extends learnpath {
$this->subdir = $new_dir;
if ($this->debug > 1) { error_log("New LP - subdir is first set to : ".$this->subdir, 0); }
$zipFile = new pclZip($zip_file_path);
$zipFile = new PclZip($zip_file_path);
// Check the zip content (real size and file extension).

Loading…
Cancel
Save