コード例 #1
0
ファイル: UpgradeController.php プロジェクト: AxelPanda/ibos
 private function processingCompareFile($updateFileList, $urlParam, $savePath = "")
 {
     list($modifyList, $showList) = UpgradeUtil::compareBasefile($updateFileList);
     $data["step"] = 3;
     if (empty($modifyList) && empty($showList)) {
         $msg = Ibos::lang("Filecheck nofound md5file");
         $this->render("upgradeError", array("msg" => $msg));
         exit;
     } else {
         $list = array();
         foreach ($updateFileList as $file) {
             if (isset($modifyList[$file])) {
                 $list["diff"][] = $file;
             } elseif (isset($showList[$file])) {
                 $list["normal"][] = $file;
             } else {
                 $list["newfile"][] = $file;
             }
         }
         $backPath = "./data/back/IBOS" . VERSION . " Release[" . VERSION_DATE . "]";
         $data["data"]["param"] = $urlParam;
         $data["data"]["list"] = $list;
         $data["data"]["url"] = $this->createUrl("upgrade/index", array_merge(array("step" => 4), $urlParam));
         $data["data"]["forceUpgrade"] = !empty($modifyList);
         $data["data"]["msg"] = Ibos::lang("Upgrade comepare", "", array("{savePath}" => $savePath, "{backPath}" => $backPath));
     }
     UpgradeUtil::recordStep(3);
     $this->render("upgradeCompare", $data);
 }