亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pclzip.lib.php

?? PHP在線解壓程序,如果你的網站太大不好上傳,可以把他壓縮成.ZIP文件上傳上去,最后用這套程序就可以搞定
?? PHP
?? 第 1 頁 / 共 5 頁
字號:
<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.5
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - March 2006
// http://www.phpconcept.net
// --------------------------------------------------------------------------------
//
// Presentation :
//   PclZip is a PHP library that manage ZIP archives.
//   So far tests show that archives generated by PclZip are readable by
//   WinZip application and other tools.
//
// Description :
//   See readme.txt and http://www.phpconcept.net
//
// Warning :
//   This library and the associated files are non commercial, non professional
//   work.
//   It should not have unexpected results. However if any damage is caused by
//   this software the author can not be responsible.
//   The use of this software is at the risk of the user.
//
// --------------------------------------------------------------------------------
// $Id: pclzip.lib.php,v 1.44 2006/03/08 21:23:59 vblavet Exp $
// --------------------------------------------------------------------------------

  // ----- Constants
  define( 'PCLZIP_READ_BLOCK_SIZE', 2048 );
  
  // ----- File list separator
  // In version 1.x of PclZip, the separator for file list is a space
  // (which is not a very smart choice, specifically for windows paths !).
  // A better separator should be a comma (,). This constant gives you the
  // abilty to change that.
  // However notice that changing this value, may have impact on existing
  // scripts, using space separated filenames.
  // Recommanded values for compatibility with older versions :
  //define( 'PCLZIP_SEPARATOR', ' ' );
  // Recommanded values for smart separation of filenames.
  define( 'PCLZIP_SEPARATOR', ',' );

  // ----- Error configuration
  // 0 : PclZip Class integrated error handling
  // 1 : PclError external library error handling. By enabling this
  //     you must ensure that you have included PclError library.
  // [2,...] : reserved for futur use
  define( 'PCLZIP_ERROR_EXTERNAL', 0 );

  // ----- Optional static temporary directory
  //       By default temporary files are generated in the script current
  //       path.
  //       If defined :
  //       - MUST BE terminated by a '/'.
  //       - MUST be a valid, already created directory
  //       Samples :
  // define( 'PCLZIP_TEMPORARY_DIR', '/temp/' );
  // define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' );
  define( 'PCLZIP_TEMPORARY_DIR', '' );

// --------------------------------------------------------------------------------
// ***** UNDER THIS LINE NOTHING NEEDS TO BE MODIFIED *****
// --------------------------------------------------------------------------------

  // ----- Global variables
  $g_pclzip_version = "2.5";

  // ----- Error codes
  //   -1 : Unable to open file in binary write mode
  //   -2 : Unable to open file in binary read mode
  //   -3 : Invalid parameters
  //   -4 : File does not exist
  //   -5 : Filename is too long (max. 255)
  //   -6 : Not a valid zip file
  //   -7 : Invalid extracted file size
  //   -8 : Unable to create directory
  //   -9 : Invalid archive extension
  //  -10 : Invalid archive format
  //  -11 : Unable to delete file (unlink)
  //  -12 : Unable to rename file (rename)
  //  -13 : Invalid header checksum
  //  -14 : Invalid archive size
  define( 'PCLZIP_ERR_USER_ABORTED', 2 );
  define( 'PCLZIP_ERR_NO_ERROR', 0 );
  define( 'PCLZIP_ERR_WRITE_OPEN_FAIL', -1 );
  define( 'PCLZIP_ERR_READ_OPEN_FAIL', -2 );
  define( 'PCLZIP_ERR_INVALID_PARAMETER', -3 );
  define( 'PCLZIP_ERR_MISSING_FILE', -4 );
  define( 'PCLZIP_ERR_FILENAME_TOO_LONG', -5 );
  define( 'PCLZIP_ERR_INVALID_ZIP', -6 );
  define( 'PCLZIP_ERR_BAD_EXTRACTED_FILE', -7 );
  define( 'PCLZIP_ERR_DIR_CREATE_FAIL', -8 );
  define( 'PCLZIP_ERR_BAD_EXTENSION', -9 );
  define( 'PCLZIP_ERR_BAD_FORMAT', -10 );
  define( 'PCLZIP_ERR_DELETE_FILE_FAIL', -11 );
  define( 'PCLZIP_ERR_RENAME_FILE_FAIL', -12 );
  define( 'PCLZIP_ERR_BAD_CHECKSUM', -13 );
  define( 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP', -14 );
  define( 'PCLZIP_ERR_MISSING_OPTION_VALUE', -15 );
  define( 'PCLZIP_ERR_INVALID_OPTION_VALUE', -16 );
  define( 'PCLZIP_ERR_ALREADY_A_DIRECTORY', -17 );
  define( 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION', -18 );
  define( 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION', -19 );
  define( 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE', -20 );
  define( 'PCLZIP_ERR_DIRECTORY_RESTRICTION', -21 );

  // ----- Options values
  define( 'PCLZIP_OPT_PATH', 77001 );
  define( 'PCLZIP_OPT_ADD_PATH', 77002 );
  define( 'PCLZIP_OPT_REMOVE_PATH', 77003 );
  define( 'PCLZIP_OPT_REMOVE_ALL_PATH', 77004 );
  define( 'PCLZIP_OPT_SET_CHMOD', 77005 );
  define( 'PCLZIP_OPT_EXTRACT_AS_STRING', 77006 );
  define( 'PCLZIP_OPT_NO_COMPRESSION', 77007 );
  define( 'PCLZIP_OPT_BY_NAME', 77008 );
  define( 'PCLZIP_OPT_BY_INDEX', 77009 );
  define( 'PCLZIP_OPT_BY_EREG', 77010 );
  define( 'PCLZIP_OPT_BY_PREG', 77011 );
  define( 'PCLZIP_OPT_COMMENT', 77012 );
  define( 'PCLZIP_OPT_ADD_COMMENT', 77013 );
  define( 'PCLZIP_OPT_PREPEND_COMMENT', 77014 );
  define( 'PCLZIP_OPT_EXTRACT_IN_OUTPUT', 77015 );
  define( 'PCLZIP_OPT_REPLACE_NEWER', 77016 );
  define( 'PCLZIP_OPT_STOP_ON_ERROR', 77017 );
  // Having big trouble with crypt. Need to multiply 2 long int
  // which is not correctly supported by PHP ...
  //define( 'PCLZIP_OPT_CRYPT', 77018 );
  define( 'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION', 77019 );
  
  // ----- File description attributes
  define( 'PCLZIP_ATT_FILE_NAME', 79001 );
  define( 'PCLZIP_ATT_FILE_NEW_SHORT_NAME', 79002 );
  define( 'PCLZIP_ATT_FILE_NEW_FULL_NAME', 79003 );

  // ----- Call backs values
  define( 'PCLZIP_CB_PRE_EXTRACT', 78001 );
  define( 'PCLZIP_CB_POST_EXTRACT', 78002 );
  define( 'PCLZIP_CB_PRE_ADD', 78003 );
  define( 'PCLZIP_CB_POST_ADD', 78004 );
  /* For futur use
  define( 'PCLZIP_CB_PRE_LIST', 78005 );
  define( 'PCLZIP_CB_POST_LIST', 78006 );
  define( 'PCLZIP_CB_PRE_DELETE', 78007 );
  define( 'PCLZIP_CB_POST_DELETE', 78008 );
  */

  // --------------------------------------------------------------------------------
  // Class : PclZip
  // Description :
  //   PclZip is the class that represent a Zip archive.
  //   The public methods allow the manipulation of the archive.
  // Attributes :
  //   Attributes must not be accessed directly.
  // Methods :
  //   PclZip() : Object creator
  //   create() : Creates the Zip archive
  //   listContent() : List the content of the Zip archive
  //   extract() : Extract the content of the archive
  //   properties() : List the properties of the archive
  // --------------------------------------------------------------------------------
  class PclZip
  {
    // ----- Filename of the zip file
    var $zipname = '';

    // ----- File descriptor of the zip file
    var $zip_fd = 0;

    // ----- Internal error handling
    var $error_code = 1;
    var $error_string = '';
    
    // ----- Current status of the magic_quotes_runtime
    // This value store the php configuration for magic_quotes
    // The class can then disable the magic_quotes and reset it after
    var $magic_quotes_status;

  // --------------------------------------------------------------------------------
  // Function : PclZip()
  // Description :
  //   Creates a PclZip object and set the name of the associated Zip archive
  //   filename.
  //   Note that no real action is taken, if the archive does not exist it is not
  //   created. Use create() for that.
  // --------------------------------------------------------------------------------
  function PclZip($p_zipname)
  {
    //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, 'PclZip::PclZip', "zipname=$p_zipname");

    // ----- Tests the zlib
    if (!function_exists('gzopen'))
    {
      //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 1, "zlib extension seems to be missing");
      die('Abort '.basename(__FILE__).' : Missing zlib extensions');
    }

    // ----- Set the attributes
    $this->zipname = $p_zipname;
    $this->zip_fd = 0;
    $this->magic_quotes_status = -1;

    // ----- Return
    //--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, 1);
    return;
  }
  // --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function :
  //   create($p_filelist, $p_add_dir="", $p_remove_dir="")
  //   create($p_filelist, $p_option, $p_option_value, ...)
  // Description :
  //   This method supports two different synopsis. The first one is historical.
  //   This method creates a Zip Archive. The Zip file is created in the
  //   filesystem. The files and directories indicated in $p_filelist
  //   are added in the archive. See the parameters description for the
  //   supported format of $p_filelist.
  //   When a directory is in the list, the directory and its content is added
  //   in the archive.
  //   In this synopsis, the function takes an optional variable list of
  //   options. See bellow the supported options.
  // Parameters :
  //   $p_filelist : An array containing file or directory names, or
  //                 a string containing one filename or one directory name, or
  //                 a string containing a list of filenames and/or directory
  //                 names separated by spaces.
  //   $p_add_dir : A path to add before the real path of the archived file,
  //                in order to have it memorized in the archive.
  //   $p_remove_dir : A path to remove from the real path of the file to archive,
  //                   in order to have a shorter path memorized in the archive.
  //                   When $p_add_dir and $p_remove_dir are set, $p_remove_dir
  //                   is removed first, before $p_add_dir is added.
  // Options :
  //   PCLZIP_OPT_ADD_PATH :
  //   PCLZIP_OPT_REMOVE_PATH :
  //   PCLZIP_OPT_REMOVE_ALL_PATH :
  //   PCLZIP_OPT_COMMENT :
  //   PCLZIP_CB_PRE_ADD :
  //   PCLZIP_CB_POST_ADD :
  // Return Values :
  //   0 on failure,
  //   The list of the added files, with a status of the add action.
  //   (see PclZip::listContent() for list entry format)
  // --------------------------------------------------------------------------------
  function create($p_filelist)
  {
    //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, 'PclZip::create', "filelist='$p_filelist', ...");
    $v_result=1;

    // ----- Reset the error handler
    $this->privErrorReset();

    // ----- Set default values
    $v_options = array();
    $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE;

    // ----- Look for variable options arguments
    $v_size = func_num_args();
    //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, "$v_size arguments passed to the method");

    // ----- Look for arguments
    if ($v_size > 1) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Remove from the options list the first argument
      array_shift($v_arg_list);
      $v_size--;

      // ----- Look for first arg
      if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
        //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Variable list of options detected");

        // ----- Parse the options
        $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                            array (PCLZIP_OPT_REMOVE_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
                                                   PCLZIP_OPT_ADD_PATH => 'optional',
                                                   PCLZIP_CB_PRE_ADD => 'optional',
                                                   PCLZIP_CB_POST_ADD => 'optional',
                                                   PCLZIP_OPT_NO_COMPRESSION => 'optional',
                                                   PCLZIP_OPT_COMMENT => 'optional'
                                                   //, PCLZIP_OPT_CRYPT => 'optional'
                                             ));
        if ($v_result != 1) {
          //--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, 0);
          return 0;
        }
      }

      // ----- Look for 2 args
      // Here we need to support the first historic synopsis of the
      // method.
      else {
        //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Static synopsis");

        // ----- Get the first argument
        $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0];

        // ----- Look for the optional second argument
        if ($v_size == 2) {
          $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
        }
        else if ($v_size > 2) {
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER,
		                       "Invalid number / type of arguments");
          //--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, PclZip::errorCode(), PclZip::errorInfo());
          return 0;
        }
      }
    }

    // ----- Init

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲二区三区| 一道本成人在线| 欧美专区在线观看一区| 精品福利一二区| 亚洲成av人影院| 91麻豆国产自产在线观看| 久久这里只有精品首页| 午夜视频一区在线观看| 99久久99久久精品免费观看| 久久天天做天天爱综合色| 午夜国产精品影院在线观看| 9色porny自拍视频一区二区| 久久久久久免费网| 另类人妖一区二区av| 欧美日韩免费观看一区三区| 最新国产成人在线观看| 国产成人啪免费观看软件| 欧美xxxxx裸体时装秀| 99re这里只有精品6| 久久网站热最新地址| 日韩国产欧美在线播放| 欧美婷婷六月丁香综合色| 国产精品久久久久桃色tv| 国产美女视频91| 精品国内二区三区| 美脚の诱脚舐め脚责91 | 午夜影视日本亚洲欧洲精品| 91老师片黄在线观看| 国产精品女主播av| 国产.精品.日韩.另类.中文.在线.播放| 欧美一卡在线观看| 日韩在线一区二区| 欧美日韩一级二级三级| 午夜精品一区二区三区电影天堂| 欧洲人成人精品| 亚洲香蕉伊在人在线观| 色狠狠桃花综合| 一区二区三区四区不卡在线| 色综合久久中文字幕综合网| 自拍偷拍亚洲激情| 在线日韩国产精品| 亚洲福利电影网| 5566中文字幕一区二区电影| 偷偷要91色婷婷| 日韩视频在线你懂得| 免费看欧美女人艹b| 精品日韩av一区二区| 激情五月婷婷综合| 久久久国际精品| 成人午夜激情影院| 国产精品久久久久久久久晋中| 一区二区成人在线视频| 91精品国产福利| 偷窥少妇高潮呻吟av久久免费| 欧美综合天天夜夜久久| 亚洲一区自拍偷拍| 欧美人与z0zoxxxx视频| 日韩成人免费电影| 久久这里只有精品首页| 成人综合在线观看| 亚洲欧洲国产专区| 欧美亚洲综合另类| 婷婷六月综合亚洲| 精品久久久久香蕉网| 国产精品一区专区| 亚洲欧美日韩在线| 欧美精品久久久久久久多人混战 | 久久亚洲一区二区三区明星换脸 | 日韩精品电影在线观看| 欧美videos大乳护士334| 国产91丝袜在线观看| 亚洲男人都懂的| 精品视频在线看| 久久99国产精品久久99| 亚洲国产精品国自产拍av| 99这里只有久久精品视频| 亚洲成人av中文| 久久―日本道色综合久久| av在线播放一区二区三区| 91福利社在线观看| 日本亚洲天堂网| 国产日韩欧美电影| 在线欧美日韩国产| 国产在线不卡一区| 亚洲精品成人悠悠色影视| 91麻豆精品国产91久久久| 成人做爰69片免费看网站| 亚洲夂夂婷婷色拍ww47| 26uuu欧美| 色婷婷av一区二区三区大白胸| 日韩av二区在线播放| 国产女同性恋一区二区| 欧美日韩高清影院| 国产成人自拍网| 亚洲国产美女搞黄色| 久久久噜噜噜久久人人看| 日本韩国欧美在线| 紧缚奴在线一区二区三区| 亚洲女同一区二区| 欧美成人r级一区二区三区| 91视频国产资源| 久久av资源网| 一区二区久久久久| 久久久777精品电影网影网| 欧美私人免费视频| 高清不卡在线观看av| 日韩中文字幕麻豆| 国产精品传媒视频| 精品美女一区二区三区| 欧美最猛性xxxxx直播| 成人一二三区视频| 理论片日本一区| 亚洲一区中文在线| 国产精品美女久久久久高潮| 日韩一区二区三区精品视频| 色香蕉久久蜜桃| 福利一区二区在线| 免费看欧美女人艹b| 亚洲午夜电影网| ㊣最新国产の精品bt伙计久久| 精品对白一区国产伦| 欧美久久久久免费| 色婷婷久久久亚洲一区二区三区 | 久久精品久久久精品美女| 一区二区三区日本| 国产精品蜜臀av| 国产亚洲一区字幕| 欧美成人福利视频| 日韩一区二区影院| 欧美性欧美巨大黑白大战| 成人av午夜电影| 国产精品综合av一区二区国产馆| 青娱乐精品在线视频| 亚洲高清在线精品| 亚洲精品久久嫩草网站秘色| 中文成人av在线| 国产三级精品在线| 欧美成人性战久久| 欧美一区二区三区在线观看 | 国产成人三级在线观看| 国产在线一区观看| 久久精品国产77777蜜臀| 午夜精品免费在线| 亚洲一级二级三级| 亚洲欧美日韩在线| 亚洲免费毛片网站| 亚洲三级理论片| 中文字幕一区av| 亚洲欧洲成人精品av97| 国产精品色婷婷久久58| 中文av一区特黄| 欧美激情综合五月色丁香小说| 久久久国产精品麻豆| 久久中文娱乐网| 久久精品在线观看| 国产视频911| 国产日韩视频一区二区三区| 久久久综合视频| 国产欧美日本一区视频| 国产欧美精品区一区二区三区| 中文字幕不卡在线播放| 国产精品高清亚洲| 亚洲日本中文字幕区| 亚洲精品大片www| 亚洲高清不卡在线| 日韩电影在线一区| 久久99精品国产麻豆婷婷洗澡| 国产一区二区三区在线观看免费视频 | 91麻豆精品国产| 日韩免费视频一区| 久久久久亚洲综合| 中文字幕乱码亚洲精品一区| 国产精品嫩草影院av蜜臀| 亚洲色图一区二区| 午夜精品久久久久久久| 久久精品久久精品| 国产高清不卡一区二区| av中文一区二区三区| 精品视频全国免费看| 日韩一区二区三区在线观看| 久久久久久一二三区| 亚洲视频你懂的| 亚洲午夜电影网| 精品一区二区三区欧美| 国产.精品.日韩.另类.中文.在线.播放| www.亚洲色图| 欧美日韩中文国产| 精品国产一区二区三区不卡| 日本一区二区三区高清不卡| 亚洲欧美另类综合偷拍| 亚洲高清免费视频| 国产一区二区女| aaa国产一区| 91精品国产乱码久久蜜臀| www国产亚洲精品久久麻豆| 国产精品进线69影院| 亚洲1区2区3区4区| 久久综合久久久久88| 99视频有精品| 欧美色老头old∨ideo|