Exemplo n.º 1
0
 function download($n)
 {
     $zipName = 'iCMS ' . self::$iCMSVER . '.patch.' . $n . '.zip';
     $zipFile = PATCH_DIR . '/' . $zipName;
     //临时文件
     $msg = '正在下载 [' . $n . '] 更新包 ' . PATCH_URL . '/' . $zipName . '<icms>下载完成....<icms>';
     if (file_exists($zipFile)) {
         return $msg;
     }
     $FileData = FS::remote(PATCH_URL . '/' . $zipName);
     FS::write($zipFile, $FileData);
     //下载更新包
     return $msg;
 }