Ebay IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php'); global $APPLICATION, $USER; $arSetupErrors = array(); $strAllowExportPath = COption::GetOptionString("catalog", "export_default_path", "/bitrix/catalog_export/"); if (($ACTION == 'EXPORT_EDIT' || $ACTION == 'EXPORT_COPY') && $STEP == 1) { if (array_key_exists('IBLOCK_ID', $arOldSetupVars)) $IBLOCK_ID = $arOldSetupVars['IBLOCK_ID']; if (array_key_exists('SETUP_FILE_NAME', $arOldSetupVars)) $SETUP_FILE_NAME = str_replace($strAllowExportPath,'',$arOldSetupVars['SETUP_FILE_NAME']); if (array_key_exists('SETUP_PROFILE_NAME', $arOldSetupVars)) $SETUP_PROFILE_NAME = $arOldSetupVars['SETUP_PROFILE_NAME']; if (array_key_exists('V', $arOldSetupVars)) $V = $arOldSetupVars['V']; if (array_key_exists('XML_DATA', $arOldSetupVars)) { $XML_DATA = base64_encode($arOldSetupVars['XML_DATA']); } if (array_key_exists('SETUP_SERVER_NAME', $arOldSetupVars)) $SETUP_SERVER_NAME = $arOldSetupVars['SETUP_SERVER_NAME']; } if ($STEP>1) { $IBLOCK_ID = intval($IBLOCK_ID); $rsIBlocks = CIBlock::GetByID($IBLOCK_ID); if ($IBLOCK_ID<=0 || !($arIBlock = $rsIBlocks->Fetch())) { $arSetupErrors[] = GetMessage("CET_ERROR_NO_IBLOCK1")." #".$IBLOCK_ID." ".GetMessage("CET_ERROR_NO_IBLOCK2"); } else { $bRightBlock = !CIBlockRights::UserHasRightTo($IBLOCK_ID, $IBLOCK_ID, "iblock_admin_display"); if ($bRightBlock) { $arSetupErrors[] = str_replace('#IBLOCK_ID#',$IBLOCK_ID,GetMessage("CET_ERROR_IBLOCK_PERM")); } } if ($SETUP_FILE_NAME == '') { $arSetupErrors[] = GetMessage("CET_ERROR_NO_FILENAME"); } elseif (preg_match(BX_CATALOG_FILENAME_REG, $strAllowExportPath.$SETUP_FILE_NAME)) { $arSetupErrors[] = GetMessage("CES_ERROR_BAD_EXPORT_FILENAME"); } elseif ($APPLICATION->GetFileAccessPermission($strAllowExportPath.$SETUP_FILE_NAME) < "W") { $arSetupErrors[] = str_replace("#FILE#", $strAllowExportPath.$SETUP_FILE_NAME, GetMessage('CET_YAND_RUN_ERR_SETUP_FILE_ACCESS_DENIED')); } $SETUP_SERVER_NAME = trim($SETUP_SERVER_NAME); if (empty($arSetupErrors)) { $bAllSections = false; $arSections = array(); if (!empty($V) && is_array($V)) { foreach ($V as $key => $value) { if (trim($value)=="0") { $bAllSections = true; break; } $value = intval($value); if ($value>0) { $arSections[] = $value; } } } if (!$bAllSections && !empty($arSections)) { $arCheckSections = array(); $rsSections = CIBlockSection::GetList(array(), array('IBLOCK_ID' => $IBLOCK_ID, 'ID' => $arSections), false, array('ID')); while ($arOneSection = $rsSections->Fetch()) { $arCheckSections[] = $arOneSection['ID']; } $arSections = $arCheckSections; } if (!$bAllSections && empty($arSections)) { $arSetupErrors[] = GetMessage("CET_ERROR_NO_GROUPS"); $V = array(); } } if (is_array($V)) { $V = array_unique(array_values($V)); $_REQUEST['V'] = $V; } $arCatalog = CCatalogSKU::GetInfoByIBlock($IBLOCK_ID); if (CCatalogSKU::TYPE_PRODUCT == $arCatalog['CATALOG_TYPE'] || CCatalogSKU::TYPE_FULL == $arCatalog['CATALOG_TYPE']) { if ($XML_DATA == '') { $arSetupErrors[] = GetMessage('YANDEX_ERR_SKU_SETTINGS_ABSENT'); } } if (($ACTION=="EXPORT_SETUP" || $ACTION=="EXPORT_EDIT" || $ACTION=="EXPORT_COPY") && $SETUP_PROFILE_NAME == '') $arSetupErrors[] = GetMessage("CET_ERROR_NO_PROFILE_NAME"); if (!empty($arSetupErrors)) { $STEP = 1; } } if (!empty($arSetupErrors)) echo ShowError(implode('
', $arSetupErrors)); $aMenu = array( array( "TEXT"=>GetMessage("CATI_ADM_RETURN_TO_LIST"), "TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"), "LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID, "ICON"=>"btn_list", ) ); $context = new CAdminContextMenu($aMenu); $context->Show(); $actionParams = ""; if ($adminSidePanelHelper->isSidePanel()) { $actionParams = "?IFRAME=Y&IFRAME_TYPE=SIDE_SLIDER"; } ?>
"yand_edit1", "TAB" => GetMessage("CAT_ADM_MISC_EXP_TAB1"), "ICON" => "store", "TITLE" => GetMessage("CAT_ADM_MISC_EXP_TAB1_TITLE")), array("DIV" => "yand_edit2", "TAB" => GetMessage("CAT_ADM_MISC_EXP_TAB2"), "ICON" => "store", "TITLE" => GetMessage("CAT_ADM_MISC_EXP_TAB2_TITLE")), ); $tabControl = new CAdminTabControl("tabYandex", $aTabs, false, true); $tabControl->Begin(); $tabControl->BeginNextTab(); if ($STEP==1) { ?> 0), false, false, array('PRODUCT_IBLOCK_ID') ); while ($arCatalog = $rsCatalogs->Fetch()) { $arCatalog['PRODUCT_IBLOCK_ID'] = intval($arCatalog['PRODUCT_IBLOCK_ID']); if (0 < $arCatalog['PRODUCT_IBLOCK_ID']) $arIBlockIDs[$arCatalog['PRODUCT_IBLOCK_ID']] = true; } $rsCatalogs = CCatalog::GetList( array(), array('PRODUCT_IBLOCK_ID' => 0), false, false, array('IBLOCK_ID') ); while ($arCatalog = $rsCatalogs->Fetch()) { $arCatalog['IBLOCK_ID'] = intval($arCatalog['IBLOCK_ID']); if (0 < $arCatalog['IBLOCK_ID']) $arIBlockIDs[$arCatalog['IBLOCK_ID']] = true; } if (empty($arIBlockIDs)) $arIBlockIDs[-1] = true; echo GetIBlockDropDownListEx( $IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', array( 'ID' => array_keys($arIBlockIDs), 'ACTIVE' => 'Y', 'CHECK_PERMISSIONS' => 'Y','MIN_PERMISSION' => 'W' ), "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';", "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';", 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"' ); ?>

Fatal error: Uncaught Error: Call to undefined function GetMessage() in D:\ktt\ttepla.com\public_html\bitrix\modules\catalog\load\ebay_mip_setup.php:364 Stack trace: #0 {main} thrown in D:\ktt\ttepla.com\public_html\bitrix\modules\catalog\load\ebay_mip_setup.php on line 364