Beispiel #1
0
    $arModulesUpdates = false;
    if (strlen($strErrorMessage) <= 0) {
        $arModulesUpdates = CUpdateSystem::GetLoadedModuleUpdates($temporary_updates_dir, $strErrorMessage);
    }
    if (strlen($strErrorMessage) <= 0) {
        if (!CUpdateSystem::CheckVersions($arModulesUpdates, $strErrorMessage, false)) {
            $strErrorMessage .= GetMessage("SUP_UPD_LOAD_BREAK") . " [PU305]. ";
            CUpdateSystem::AddMessage2Log(GetMessage("SUP_UPD_LOAD_BREAK"), "PU305");
        }
    }
    if (strlen($strErrorMessage) > 0) {
        $STEP = 2;
    }
}
if ($TYPE == "UPDATE" && $STEP == 2 && $MAIN_RIGHT == "W") {
    $arModulesUpdates = CUpdateSystem::GetServerModuleUpdates($strErrorMessage, LANG, $stableVersionsOnly);
}
if ($TYPE == "UPDATE" && $STEP == 1) {
    if (!$bLockUpdateSystemKernel) {
        $arTypesUpdates = CUpdateSystem::GetAvailableUpdateTypes($strErrorMessage, LANG, $stableVersionsOnly);
        COption::SetOptionString("main", "PARAM_MAX_SITES", $arTypesUpdates["CLIENT"]["@"]["MAX_SITES"]);
    }
}
/*********** ДЕЙСТВИЯ НАД ЯЗЫКАМИ *************/
if ($TYPE == "LANGS" && $STEP == 3 && $MAIN_RIGHT == "W") {
    if (strlen($UNIID) > 0 && $_SESSION[$UNIID] == "Y") {
        CUpdateSystem::AddMessage2Log(GetMessage("SUP_NOT_REFRESH"), "PUL300");
        $strErrorMessage .= GetMessage("SUP_NOT_REFRESH") . " [PUL300]. ";
    }
    if (strlen($strErrorMessage) <= 0) {
        CUpdateSystem::AddMessage2Log("Query loading langs: " . $load_langs);