示例#1
0
文件: zip.php 项目: ASDAFF/entask.ru
 public function __construct($pzipname)
 {
     $this->io = CBXVirtualIo::GetInstance();
     $this->zipname = $this->_convertWinPath($pzipname, false);
     $this->step_time = 30;
     $this->arPackedFiles = array();
     $this->arPackedFilesData = array();
     $this->_errorReset();
     $this->fileSystemEncoding = $this->_getfileSystemEncoding();
     self::$bMbstring = extension_loaded("mbstring");
     return;
 }
示例#2
0
文件: zip.php 项目: spas-viktor/books
 public function __construct($pzipname)
 {
     $this->io = CBXVirtualIo::GetInstance();
     //protecting against creating malicious php file with gzdeflate
     $pzipname = GetDirPath($this->_convertWinPath($pzipname, false)) . $this->io->RandomizeInvalidFilename(GetFileName($pzipname));
     if (HasScriptExtension($pzipname)) {
         $pzipname = RemoveScriptExtension($pzipname) . ".zip";
     }
     $this->zipname = $pzipname;
     $this->step_time = 30;
     $this->arPackedFiles = array();
     $this->_errorReset();
     $this->fileSystemEncoding = $this->_getfileSystemEncoding();
     self::$bMbstring = extension_loaded("mbstring");
     return;
 }