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; }
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; }