同步操作将从 IBOS开源OA协同办公管理/IBOS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?phpnamespace application\extensions;// end of the 'zipfile' classclass SimpleUnzip{var $Comment = '';var $Entries = array();var $Name = '';var $Size = 0;var $Time = 0;function __construct($in_FileName = ''){if ($in_FileName !== '') {$this->ReadFile($in_FileName);}}// end of the 'SimpleUnzip' constructorfunction Count(){return count($this->Entries);}// end of the 'Count()' methodfunction GetData($in_Index){return $this->Entries[$in_Index]->Data;}// end of the 'GetData()' methodfunction GetEntry($in_Index){return $this->Entries[$in_Index];}// end of the 'GetEntry()' methodfunction GetError($in_Index){return $this->Entries[$in_Index]->Error;}// end of the 'GetError()' methodfunction GetErrorMsg($in_Index){return $this->Entries[$in_Index]->ErrorMsg;}// end of the 'GetErrorMsg()' methodfunction GetName($in_Index){return $this->Entries[$in_Index]->Name;}// end of the 'GetName()' methodfunction GetPath($in_Index){return $this->Entries[$in_Index]->Path;}// end of the 'GetPath()' methodfunction GetTime($in_Index){return $this->Entries[$in_Index]->Time;}// end of the 'GetTime()' methodfunction ReadFile($in_FileName){$this->Entries = array();$this->Name = $in_FileName;$this->Time = filemtime($in_FileName);$this->Size = filesize($in_FileName);$oF = fopen($in_FileName, 'rb');$vZ = fread($oF, $this->Size);fclose($oF);$aE = explode("\x50\x4b\x05\x06", $vZ);$aP = unpack('x16/v1CL', $aE[1]);$this->Comment = substr($aE[1], 18, $aP['CL']);$this->Comment = strtr($this->Comment, array("\r\n" => "\n","\r" => "\n"));$aE = explode("\x50\x4b\x01\x02", $vZ);$aE = explode("\x50\x4b\x03\x04", $aE[0]);array_shift($aE);foreach ($aE as $vZ) {$aI = array();$aI['E'] = 0;$aI['EM'] = '';$aP = unpack('v1VN/v1GPF/v1CM/v1FT/v1FD/V1CRC/V1CS/V1UCS/v1FNL', $vZ);$bE = ($aP['GPF'] && 0x0001) ? TRUE : FALSE;$nF = $aP['FNL'];if ($aP['GPF'] & 0x0008) {$aP1 = unpack('V1CRC/V1CS/V1UCS', substr($vZ, -12));$aP['CRC'] = $aP1['CRC'];$aP['CS'] = $aP1['CS'];$aP['UCS'] = $aP1['UCS'];$vZ = substr($vZ, 0, -12);}$aI['N'] = substr($vZ, 26, $nF);if (substr($aI['N'], -1) == '/') {continue;}$aI['P'] = dirname($aI['N']);$aI['P'] = $aI['P'] == '.' ? '' : $aI['P'];$aI['N'] = basename($aI['N']);$vZ = substr($vZ, 26 + $nF);if (strlen($vZ) != $aP['CS']) {$aI['E'] = 1;$aI['EM'] = 'Compressed size is not equal with the value in header information.';} else {if ($bE) {$aI['E'] = 5;$aI['EM'] = 'File is encrypted, which is not supported from this class.';} else {switch ($aP['CM']) {case 0: // Storedbreak;case 8: // Deflated$vZ = gzinflate($vZ);break;case 12: // BZIP2if (!extension_loaded('bz2')) {if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {@dl('php_bz2.dll');} else {@dl('bz2.so');}}if (extension_loaded('bz2')) {$vZ = bzdecompress($vZ);} else {$aI['E'] = 7;$aI['EM'] = "PHP BZIP2 extension not available.";}break;default:$aI['E'] = 6;$aI['EM'] = "De-/Compression method {$aP['CM']} is not supported.";}if (!$aI['E']) {if ($vZ === FALSE) {$aI['E'] = 2;$aI['EM'] = 'Decompression of data failed.';} else {if (strlen($vZ) != $aP['UCS']) {$aI['E'] = 3;$aI['EM'] = 'Uncompressed size is not equal with the value in header information.';} else {if (crc32($vZ) != $aP['CRC']) {$aI['E'] = 4;$aI['EM'] = 'CRC32 checksum is not equal with the value in header information.';}}}}}}$aI['D'] = $vZ;$aI['T'] = mktime(($aP['FT'] & 0xf800) >> 11, ($aP['FT'] & 0x07e0) >> 5, ($aP['FT'] & 0x001f) << 1, ($aP['FD'] & 0x01e0) >> 5, ($aP['FD'] & 0x001f), (($aP['FD'] & 0xfe00) >> 9) + 1980);$this->Entries[] = new simpleUnzipEntry($aI);} // end for each entriesreturn $this->Entries;}}class simpleUnzipEntry{var $Data = '';var $Error = 0;var $ErrorMsg = '';var $Name = '';var $Path = '';var $Time = 0;function __construct($in_Entry){$this->Data = $in_Entry['D'];$this->Error = $in_Entry['E'];$this->ErrorMsg = $in_Entry['EM'];$this->Name = $in_Entry['N'];$this->Path = $in_Entry['P'];$this->Time = $in_Entry['T'];}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。