if (strlen($strErrorMessage) <= 0) { if (!CUpdateSystem::LoadHelpUpdates(array($load_help), $strErrorMessage, LANG, $stableVersionsOnly)) { $strErrorMessage .= GetMessage("SUP_HELP_LOAD_BREAK") . " [PUH302]. "; CUpdateSystem::AddMessage2Log(GetMessage("SUP_HELP_LOAD_BREAK"), "PUH302"); } } if (strlen($strErrorMessage) <= 0) { $temporary_updates_dir = ""; 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);