'IBLOCK_SECTION_SECTION' => $_REQUEST['IBLOCK_SECTION_SECTION'], 'IBLOCK_SECTION_ELEMENT' => $_REQUEST['IBLOCK_SECTION_ELEMENT'], 'FORUM_ACTIVE' => $_REQUEST['FORUM_ACTIVE'], 'FORUM_TOPIC' => $_REQUEST['FORUM_TOPIC'], )); $arSiteMapFields = array( 'NAME' => trim($_REQUEST['NAME']), 'ACTIVE' => $_REQUEST['ACTIVE'] == 'N' ? 'N' : 'Y', 'SITE_ID' => $SITE_ID, 'SETTINGS' => serialize($arSitemapSettings), ); if($ID > 0) { $result = SitemapTable::update($ID, $arSiteMapFields); } else { $result = SitemapTable::add($arSiteMapFields); $ID = $result->getId(); } if($result->isSuccess()) { $arSitemapIblock = array(); SitemapIblockTable::clearBySitemap($ID); if(is_array($_REQUEST['IBLOCK_AUTO'])) {
{ if($rule[1] != $sitemapUrl) { $arExistedSitemaps[] = $rule[1]; } } } } $v = $arValueSteps['index']; } if($v == $arValueSteps['index']) { $msg = Loc::getMessage('SITEMAP_RUN_FINISH'); SitemapTable::update($ID, array('DATE_RUN' => new Freetrix\Main\Type\DateTime())); } echo SitemapRuntime::showProgress($msg, Loc::getMessage('SEO_SITEMAP_RUN_TITLE'), $v); if($v < $arValueSteps['index']) { ?> <script> top.BX.runSitemap(<?php echo $ID; ?> , <?php echo $v; ?> , '<?php