} /*********** ДЕЙСТВИЯ НАД ПОМОЩЬЮ *************/ 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) { CUpdateSystem::AddMessage2Log("Query loading helps: " . $load_help); if (strlen($load_help) <= 0) { $strErrorMessage .= GetMessage("SUP_EMPTY_HELP_LANG") . " [PUH301]. "; CUpdateSystem::AddMessage2Log(GetMessage("SUP_EMPTY_HELP_LANG"), "PUH301"); } } 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); }