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

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

?? tar.php

?? php版wap手機網站源碼(英語) the best wap scripts from
?? PHP
?? 第 1 頁 / 共 4 頁
字號:
    * @access public
    * @see extractList()
    */
    function extractModify($p_path, $p_remove_path)
    {
        $v_result = true;
        $v_list_detail = array();

        if ($v_result = $this->_openRead()) {
            $v_result = $this->_extractList($p_path, $v_list_detail, "complete", 0, $p_remove_path);
            $this->_close();
        }

        return $v_result;
    }
    // }}}

    // {{{ extractInString()
    /**
    * This method extract from the archive one file identified by $p_filename.
    * The return value is a string with the file content, or NULL on error.
    * @param string $p_filename     The path of the file to extract in a string.
    * @return                       a string with the file content or NULL.
    * @access public
    */
    function extractInString($p_filename)
    {
        if ($this->_openRead()) {
            $v_result = $this->_extractInString($p_filename);
            $this->_close();
        } else {
            $v_result = NULL;
        }

        return $v_result;
    }
    // }}}

    // {{{ extractList()
    /**
    * This method extract from the archive only the files indicated in the
    * $p_filelist. These files are extracted in the current directory or
    * in the directory indicated by the optional $p_path parameter.
    * If indicated the $p_remove_path can be used in the same way as it is
    * used in extractModify() method.
    * @param array  $p_filelist     An array of filenames and directory names, or a single
    *                               string with names separated by a single blank space.
    * @param string $p_path         The path of the directory where the files/dir need to by
    *                               extracted.
    * @param string $p_remove_path  Part of the memorized path that can be removed if
    *                               present at the beginning of the file/dir path.
    * @return                       true on success, false on error.
    * @access public
    * @see extractModify()
    */
    function extractList($p_filelist, $p_path='', $p_remove_path='')
    {
        $v_result = true;
        $v_list_detail = array();

        if (is_array($p_filelist))
            $v_list = $p_filelist;
        elseif (is_string($p_filelist))
            $v_list = explode($this->_separator, $p_filelist);
        else {
            $this->_error('Invalid string list');
            return false;
        }

        if ($v_result = $this->_openRead()) {
            $v_result = $this->_extractList($p_path, $v_list_detail, "partial", $v_list, $p_remove_path);
            $this->_close();
        }

        return $v_result;
    }
    // }}}

    // {{{ setAttribute()
    /**
    * This method set specific attributes of the archive. It uses a variable
    * list of parameters, in the format attribute code + attribute values :
    * $arch->setAttribute(ARCHIVE_TAR_ATT_SEPARATOR, ',');
    * @param mixed $argv            variable list of attributes and values
    * @return                       true on success, false on error.
    * @access public
    */
    function setAttribute()
    {
        $v_result = true;

        // ----- Get the number of variable list of arguments
        if (($v_size = func_num_args()) == 0) {
            return true;
        }

        // ----- Get the arguments
        $v_att_list = &func_get_args();

        // ----- Read the attributes
        $i=0;
        while ($i<$v_size) {

            // ----- Look for next option
            switch ($v_att_list[$i]) {
                // ----- Look for options that request a string value
                case ARCHIVE_TAR_ATT_SEPARATOR :
                    // ----- Check the number of parameters
                    if (($i+1) >= $v_size) {
                        $this->_error('Invalid number of parameters for attribute ARCHIVE_TAR_ATT_SEPARATOR');
                        return false;
                    }

                    // ----- Get the value
                    $this->_separator = $v_att_list[$i+1];
                    $i++;
                break;

                default :
                    $this->_error('Unknow attribute code '.$v_att_list[$i].'');
                    return false;
            }

            // ----- Next attribute
            $i++;
        }

        return $v_result;
    }
    // }}}

    // {{{ _error()
    function _error($p_message)
    {
        // ----- To be completed
        $this->raiseError($p_message);
    }
    // }}}

    // {{{ _warning()
    function _warning($p_message)
    {
        // ----- To be completed
        $this->raiseError($p_message);
    }
    // }}}

    // {{{ _openWrite()
    function _openWrite()
    {
        if ($this->_compress_type == 'gz')
            $this->_file = @gzopen($this->_tarname, "wb");
        else if ($this->_compress_type == 'bz2')
            $this->_file = @bzopen($this->_tarname, "wb");
        else if ($this->_compress_type == 'none')
            $this->_file = @fopen($this->_tarname, "wb");
        else
            $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

        if ($this->_file == 0) {
            $this->_error('Unable to open in write mode \''.$this->_tarname.'\'');
            return false;
        }

        return true;
    }
    // }}}

    // {{{ _openRead()
    function _openRead()
    {
        if (strtolower(substr($this->_tarname, 0, 7)) == 'http://') {

          // ----- Look if a local copy need to be done
          if ($this->_temp_tarname == '') {
              $this->_temp_tarname = uniqid('tar').'.tmp';
              if (!$v_file_from = @fopen($this->_tarname, 'rb')) {
                $this->_error('Unable to open in read mode \''.$this->_tarname.'\'');
                $this->_temp_tarname = '';
                return false;
              }
              if (!$v_file_to = @fopen($this->_temp_tarname, 'wb')) {
                $this->_error('Unable to open in write mode \''.$this->_temp_tarname.'\'');
                $this->_temp_tarname = '';
                return false;
              }
              while ($v_data = @fread($v_file_from, 1024))
                  @fwrite($v_file_to, $v_data);
              @fclose($v_file_from);
              @fclose($v_file_to);
          }

          // ----- File to open if the local copy
          $v_filename = $this->_temp_tarname;

        } else
          // ----- File to open if the normal Tar file
          $v_filename = $this->_tarname;

        if ($this->_compress_type == 'gz')
            $this->_file = @gzopen($v_filename, "rb");
        else if ($this->_compress_type == 'bz2')
            $this->_file = @bzopen($v_filename, "rb");
        else if ($this->_compress_type == 'none')
            $this->_file = @fopen($v_filename, "rb");
        else
            $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

        if ($this->_file == 0) {
            $this->_error('Unable to open in read mode \''.$v_filename.'\'');
            return false;
        }

        return true;
    }
    // }}}

    // {{{ _openReadWrite()
    function _openReadWrite()
    {
        if ($this->_compress_type == 'gz')
            $this->_file = @gzopen($this->_tarname, "r+b");
        else if ($this->_compress_type == 'bz2')
            $this->_file = @bzopen($this->_tarname, "r+b");
        else if ($this->_compress_type == 'none')
            $this->_file = @fopen($this->_tarname, "r+b");
        else
            $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

        if ($this->_file == 0) {
            $this->_error('Unable to open in read/write mode \''.$this->_tarname.'\'');
            return false;
        }

        return true;
    }
    // }}}

    // {{{ _close()
    function _close()
    {
        //if (isset($this->_file)) {
        if (is_resource($this->_file)) {
            if ($this->_compress_type == 'gz')
                @gzclose($this->_file);
            else if ($this->_compress_type == 'bz2')
                @bzclose($this->_file);
            else if ($this->_compress_type == 'none')
                @fclose($this->_file);
            else
                $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

            $this->_file = 0;
        }

        // ----- Look if a local copy need to be erase
        // Note that it might be interesting to keep the url for a time : ToDo
        if ($this->_temp_tarname != '') {
            @unlink($this->_temp_tarname);
            $this->_temp_tarname = '';
        }

        return true;
    }
    // }}}

    // {{{ _cleanFile()
    function _cleanFile()
    {
        $this->_close();

        // ----- Look for a local copy
        if ($this->_temp_tarname != '') {
            // ----- Remove the local copy but not the remote tarname
            @unlink($this->_temp_tarname);
            $this->_temp_tarname = '';
        } else {
            // ----- Remove the local tarname file
            @unlink($this->_tarname);
        }
        $this->_tarname = '';

        return true;
    }
    // }}}

    // {{{ _writeBlock()
    function _writeBlock($p_binary_data, $p_len=null)
    {
      if (is_resource($this->_file)) {
          if ($p_len === null) {
              if ($this->_compress_type == 'gz')
                  @gzputs($this->_file, $p_binary_data);
              else if ($this->_compress_type == 'bz2')
                  @bzwrite($this->_file, $p_binary_data);
              else if ($this->_compress_type == 'none')
                  @fputs($this->_file, $p_binary_data);
              else
                  $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');
          } else {
              if ($this->_compress_type == 'gz')
                  @gzputs($this->_file, $p_binary_data, $p_len);
              else if ($this->_compress_type == 'bz2')
                  @bzwrite($this->_file, $p_binary_data, $p_len);
              else if ($this->_compress_type == 'none')
                  @fputs($this->_file, $p_binary_data, $p_len);
              else
                  $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

          }
      }
      return true;
    }
    // }}}

    // {{{ _readBlock()
    function _readBlock($p_len=null)
    {
      $v_block = null;
      if (is_resource($this->_file)) {
          if ($p_len === null)
              $p_len = 512;

          if ($this->_compress_type == 'gz')
              $v_block = @gzread($this->_file, 512);
          else if ($this->_compress_type == 'bz2')
              $v_block = @bzread($this->_file, 512);
          else if ($this->_compress_type == 'none')
              $v_block = @fread($this->_file, 512);
          else
              $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

      }
      return $v_block;
    }
    // }}}

    // {{{ _jumpBlock()
    function _jumpBlock($p_len=null)
    {
      if (is_resource($this->_file)) {
          if ($p_len === null)
              $p_len = 1;

          if ($this->_compress_type == 'gz')
              @gzseek($this->_file, @gztell($this->_file)+($p_len*512));
          else if ($this->_compress_type == 'bz2') {
              // ----- Replace missing bztell() and bzseek()
              for ($i=0; $i<$p_len; $i++)
                  $this->_readBlock();
          } else if ($this->_compress_type == 'none')
              @fseek($this->_file, @ftell($this->_file)+($p_len*512));
          else
              $this->_error('Unknown or missing compression type ('.$this->_compress_type.')');

      }
      return true;
    }
    // }}}

    // {{{ _writeFooter()
    function _writeFooter()
    {
      if (is_resource($this->_file)) {
          // ----- Write the last 0 filled block for end of archive
          $v_binary_data = pack("a512", '');
          $this->_writeBlock($v_binary_data);
      }
      return true;
    }
    // }}}

    // {{{ _addList()
    function _addList($p_list, $p_add_dir, $p_remove_dir)
    {
      $v_result=true;
      $v_header = array();

      // ----- Remove potential windows directory separator
      $p_add_dir = $this->_translateWinPath($p_add_dir);
      $p_remove_dir = $this->_translateWinPath($p_remove_dir, false);

      if (!$this->_file) {
          $this->_error('Invalid file descriptor');
          return false;
      }

      if (sizeof($p_list) == 0)
          return true;

      for ($j=0; ($j<count($p_list)) && ($v_result); $j++) {
        $v_filename = $p_list[$j];

        // ----- Skip the current tar name
        if ($v_filename == $this->_tarname)
            continue;

        if ($v_filename == '')
            continue;

        if (!file_exists($v_filename)) {
            $this->_warning("File '$v_filename' does not exist");
            continue;
        }

        // ----- Add the file or directory header
        if (!$this->_addFile($v_filename, $v_header, $p_add_dir, $p_remove_dir))
            return false;

        if (@is_dir($v_filename)) {
            if (!($p_hdir = opendir($v_filename))) {
                $this->_warning("Directory '$v_filename' can not be read");
                continue;
            }
            $p_hitem = readdir($p_hdir); // '.' directory
            $p_hitem = readdir($p_hdir); // '..' directory

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利区一区二区三区| 日韩一区二区三区av| 91天堂素人约啪| 99国产一区二区三精品乱码| www.在线成人| www.日韩大片| 欧美激情中文不卡| 亚洲欧洲日产国产综合网| 亚洲人成精品久久久久久 | 中文字幕欧美一| 一区二区三区视频在线看| 首页综合国产亚洲丝袜| 国产一区二区影院| 欧美综合一区二区| 日韩欧美国产成人一区二区| 亚洲视频精选在线| 美女网站色91| 色综合久久久久综合体桃花网| 欧美日韩精品一区二区在线播放| 国产亚洲一本大道中文在线| 亚洲电影一级片| 成人动漫在线一区| 精品电影一区二区| 亚洲第一福利视频在线| jlzzjlzz亚洲日本少妇| 日韩一卡二卡三卡四卡| 亚洲一区在线视频| 成人中文字幕在线| 国产日韩欧美高清在线| 精品一区二区三区的国产在线播放| 99视频热这里只有精品免费| 国产欧美一区二区精品性| 免费成人在线视频观看| 欧美一区二区三区在线观看视频| 亚洲综合久久久久| 欧美日韩mp4| 日韩二区在线观看| 日韩欧美中文字幕公布| 奇米色777欧美一区二区| 91精品久久久久久久99蜜桃| 亚洲成av人**亚洲成av**| 欧美日韩视频专区在线播放| 亚洲一区二区欧美| 91麻豆精品国产91久久久久久久久| 午夜久久久久久久久久一区二区| 欧美三级电影网| 激情综合色综合久久| 国产精品欧美一区二区三区| 91丝袜美女网| 激情成人午夜视频| 久久久久久久电影| 色综合天天做天天爱| 亚洲国产va精品久久久不卡综合| 欧美电影在线免费观看| 国产一区二区三区av电影| 中文欧美字幕免费| 欧美一个色资源| 92精品国产成人观看免费 | 正在播放亚洲一区| 国产成人日日夜夜| 日韩精品免费视频人成| 中文字幕欧美日本乱码一线二线| 欧美调教femdomvk| 成人一区在线看| 国产一区二区三区日韩| 亚洲欧美另类图片小说| 久久久久久免费网| 日韩一区二区三区观看| 91国产成人在线| 99久久精品一区| 福利视频网站一区二区三区| 老司机精品视频导航| 五月天网站亚洲| 亚洲成人av免费| 亚洲伦理在线免费看| 成人欧美一区二区三区在线播放| 久久精品视频一区| 久久综合九色综合欧美98| 日韩美女一区二区三区四区| 91精品欧美综合在线观看最新| 欧美日韩激情在线| 色综合天天综合狠狠| 91麻豆蜜桃一区二区三区| 99精品久久99久久久久| 色综合激情五月| 日本乱人伦aⅴ精品| 欧美日韩视频一区二区| 欧美一区二区三区四区久久| 欧美r级电影在线观看| 久久久影视传媒| 亚洲免费在线电影| 亚洲国产精品麻豆| 麻豆国产精品777777在线| 精品一区二区三区影院在线午夜| 国产不卡高清在线观看视频| 91亚洲精品久久久蜜桃| 日韩一区二区免费在线观看| 国产视频在线观看一区二区三区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 欧美三级三级三级爽爽爽| 精品卡一卡二卡三卡四在线| 欧美国产一区二区| 亚洲高清视频在线| 丁香激情综合五月| 欧美男人的天堂一二区| 国产精品久久久久久久久快鸭 | 国产精品二三区| 日韩黄色免费网站| 国产乱人伦偷精品视频免下载| 9i看片成人免费高清| 精品理论电影在线观看| 婷婷六月综合网| 9色porny自拍视频一区二区| 精品久久久久久亚洲综合网| 亚洲靠逼com| 99久久国产综合精品色伊| 久久夜色精品一区| 日韩成人一区二区三区在线观看| 波多野结衣中文字幕一区| 欧美精品一区二区久久婷婷| 天天操天天综合网| 欧美午夜寂寞影院| 一区二区三区四区国产精品| 97精品国产97久久久久久久久久久久| 日韩一区二区免费高清| 蜜臀av一区二区在线观看| 欧美人伦禁忌dvd放荡欲情| 亚洲精品国产无天堂网2021| 一本色道亚洲精品aⅴ| 亚洲天堂精品在线观看| 91理论电影在线观看| 国产精品电影院| 色综合色综合色综合| 香蕉久久夜色精品国产使用方法| 欧美亚洲愉拍一区二区| 日韩理论片在线| 欧美日韩国产中文| 久久黄色级2电影| 国产欧美精品国产国产专区| av午夜精品一区二区三区| 亚洲精品v日韩精品| 91麻豆精品国产自产在线 | 日本一区二区在线不卡| 一本一道久久a久久精品综合蜜臀| 一区二区欧美视频| 欧美成人三级在线| www.爱久久.com| 日韩精品免费专区| 国产精品成人午夜| 91精品国产综合久久久久久久| 国产乱码精品1区2区3区| 亚洲欧美另类久久久精品 | 国产精品一区二区黑丝| 亚洲啪啪综合av一区二区三区| 日韩欧美国产一二三区| 色噜噜久久综合| 福利电影一区二区| 美腿丝袜亚洲三区| 性欧美大战久久久久久久久| 亚洲欧洲性图库| 久久久国产精品麻豆| 精品奇米国产一区二区三区| 色噜噜狠狠成人中文综合 | 中文字幕+乱码+中文字幕一区| 在线不卡中文字幕| 色网站国产精品| 99久久99久久精品国产片果冻| 国模无码大尺度一区二区三区| 午夜视频在线观看一区二区| 亚洲精品免费视频| 亚洲美女屁股眼交3| 亚洲毛片av在线| 亚洲视频一二三区| 亚洲精品亚洲人成人网| 亚洲黄色在线视频| 亚洲女爱视频在线| 一区二区三区**美女毛片| 亚洲国产精品99久久久久久久久| 久久精品夜色噜噜亚洲aⅴ| 久久久久久久久久电影| 中文字幕av资源一区| 成人免费在线观看入口| 亚洲激情自拍偷拍| 18涩涩午夜精品.www| 亚洲女同一区二区| 日韩中文字幕亚洲一区二区va在线| 亚洲一区二区视频| 同产精品九九九| 国产福利一区二区| 91免费视频网| 91精品欧美福利在线观看| 久久综合色之久久综合| 亚洲欧美在线观看| 偷拍日韩校园综合在线| 国产白丝精品91爽爽久久 | 日韩中文字幕1| 丁香婷婷深情五月亚洲| 欧美精品日韩精品| 欧美极品美女视频| 天天做天天摸天天爽国产一区|