Beispiel #1
0
        if (!CUpdateSystem::UnGzipArchive($temporary_updates_dir, $strErrorMessage, "Y")) {
            $strErrorMessage .= GetMessage("SUP_HELP_LOAD_BREAK") . " [PUH303]. ";
            CUpdateSystem::AddMessage2Log(GetMessage("SUP_HELP_LOAD_BREAK"), "PUH303");
        }
    }
    $arHelpUpdates = false;
    if (strlen($strErrorMessage) <= 0) {
        $arHelpUpdates = CUpdateSystem::GetLoadedHelpUpdates($temporary_updates_dir, $strErrorMessage);
    }
    $arErrorHelp = array();
    $arSuccessHelp = array();
    if (strlen($strErrorMessage) <= 0) {
        if (strlen($UNIID) > 0) {
            $_SESSION[$UNIID] = "Y";
        }
        if (!CUpdateSystem::UpdateHelp($temporary_updates_dir, array($load_help), $strErrorMessage, $arErrorHelp, $arSuccessHelp)) {
            $strErrorMessage .= GetMessage("SUP_BAD_HELP_INSTALL") . " [PUH305]. ";
            CUpdateSystem::AddMessage2Log(GetMessage("SUP_BAD_HELP_INSTALL"), "PUH305");
        }
    }
}
if ($TYPE == "HELP" && $STEP == 2 && $MAIN_RIGHT == "W") {
    $arHelpUpdates = CUpdateSystem::GetServerHelpUpdates($strErrorMessage, LANG, $stableVersionsOnly);
}
/*********** КОНЕЦ ДЕЙСТВИЙ *************/
$strTitle = GetMessage("SUP_TITLE_BASE");
if ($TYPE == "UPDATE" && $STEP == 1) {
    $strTitle = GetMessage("SUP_TITLE_UPD_1");
} elseif ($TYPE == "UPDATE" && $STEP == 2) {
    $strTitle = GetMessage("SUP_TITLE_UPD_2");
} elseif ($TYPE == "UPDATE" && $STEP == 3) {