if (strlen($strErrorMessage)<=0) { if (!CUpdateSystem::CheckUpdatability($temporary_updates_dir, $strErrorMessage)) { $strErrorMessage .= GetMessage("SUP_LANG_LOAD_BREAK")." [PUL304]. "; CUpdateSystem::AddMessage2Log(GetMessage("SUP_LANG_LOAD_BREAK"), "PUL304"); } } */ $arErrorLangs = array(); $arSuccessLangs = array(); if (strlen($strErrorMessage) <= 0) { if (strlen($UNIID) > 0) { $_SESSION[$UNIID] = "Y"; } if (!CUpdateSystem::UpdateLangs($temporary_updates_dir, $arLoadLangs, $strErrorMessage, $arErrorLangs, $arSuccessLangs)) { $strErrorMessage .= GetMessage("SUP_BAD_LANG_INSTALL") . " [PUL305]. "; CUpdateSystem::AddMessage2Log(GetMessage("SUP_BAD_LANG_INSTALL"), "PUL305"); } } } if ($TYPE == "LANGS" && $STEP == 2 && $MAIN_RIGHT == "W") { $arLangsUpdates = CUpdateSystem::GetServerLangsUpdates($strErrorMessage, LANG, $stableVersionsOnly); } /*********** ДЕЙСТВИЯ НАД ПОМОЩЬЮ *************/ if ($TYPE == "HELP" && $STEP == 3 && $MAIN_RIGHT == "W") { if (strlen($UNIID) > 0 && $_SESSION[$UNIID] == "Y") { CUpdateSystem::AddMessage2Log(GetMessage("SUP_NOT_REFRESH"), "PUH300"); $strErrorMessage .= GetMessage("SUP_NOT_REFRESH") . " [PUH300]. "; } if (strlen($strErrorMessage) <= 0) {