Пример #1
0
    	}
    */
    $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) {
        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) {