Warning: Undefined array key "बहिः गच्छतु" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 136

Warning: Undefined array key "aksi" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 140

Warning: Undefined array key "नामपत्र" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 159

Warning: Undefined array key "नामपत्र" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 181
Current File : //home/httpd/vhosts/puntogroup.ru/httpdocs/sitemap.php
<?php
//Отключаем статистику Bitrix
define("NO_KEEP_STATISTIC", true);
//Подключаем движок
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
//устанавливаем тип ответа как xml документ
header('Content-Type: application/xml; charset=utf-8');


$array_pages = array();

//Простые текстовые страницы: начало
$array_pages[] = array(
	"NAME" => "Главная",
    "URL" => "/"
);
$array_pages[] = array(
    "NAME" => "О компании",
    "URL" => "/company/"
);
$array_pages[] = array(
    "NAME" => "Дизайнеры",
    "URL" => "/designers/"
);
$array_pages[] = array(
    "NAME" => "Партнеры",
    "URL" => "/brands/"
);
$array_pages[] = array(
    "NAME" => "Индивидуальный заказ",
    "URL" => "/company/individualnyy-zakaz/"
);
$array_pages[] = array(
    "NAME" => "Выставки",
    "URL" => "/vystavki/"
);
$array_pages[] = array(
    "NAME" => "Сертификаты",
    "URL" => "/company/licenses/"
);
$array_pages[] = array(
    "NAME" => "Помощь",
    "URL" => "/help/"
);
$array_pages[] = array(
    "NAME" => "Условия оплаты",
    "URL" => "/help/payment/"
);
$array_pages[] = array(
    "NAME" => "Условия доставки",
    "URL" => "/help/delivery/"
);
$array_pages[] = array(
    "NAME" => "Гарантия на товар",
    "URL" => "/help/warranty/"
);
$array_pages[] = array(
    "NAME" => "Услуги",
    "URL" => "/services/"
);
$array_pages[] = array(
    "NAME" => "Материалы",
    "URL" => "/services/materialy/"
);
$array_pages[] = array(
    "NAME" => "Оборудование",
    "URL" => "/services/oborudovanie/"
);
$array_pages[] = array(
    "NAME" => "Покрытия",
    "URL" => "/services/pokrytiya/"
);
$array_pages[] = array(
    "NAME" => "Производители",
    "URL" => "/brands/"
);
$array_pages[] = array(
    "NAME" => "Контакты",
    "URL" => "/contacts/"
);
$array_pages[] = array(
    "NAME" => "Реквизиты компании",
    "URL" => "/contacts/requisites/"
);
$array_pages[] = array(
    "NAME" => "Задать вопрос",
    "URL" => "/contacts/feedback/"
);
//Простые текстовые страницы: конец

$arrayUri404 = array(
	"/catalog/konteynery_dlya_musora_punto_design/910/",
	"/catalog/konteynery_dlya_musora_punto_design/920/",
	"/catalog/konteynery_dlya_musora_punto_design/917/",
	"/catalog/3578/",
	"/catalog/konteynery_dlya_musora_punto_design/927/",
	"/catalog/proekty/3145/",
	"/catalog/proekty/3117/",
);

$array_iblocks_id = array('19', '10', '14', '18', '20', '24'); //ID инфоблоков, разделы и элементы которых попадут в карту сайта
if(CModule::IncludeModule("iblock"))
{
	foreach($array_iblocks_id as $iblock_id)
	{
		//Список разделов
		//Список элементов
   		$res = CIBlockSection::GetList(
			array(),
			Array(
				"IBLOCK_ID" => $iblock_id,
				"ACTIVE" => "Y" ,
			),
			false,
			array(
			"ID",
			"NAME",
			"SECTION_PAGE_URL",
		));
		while($ob = $res->GetNext())
   		{
			if($ob["GLOBAL_ACTIVE"] != "N")
				$array_pages[] = array(
					'NAME' => $ob['NAME'],
					'URL' => $ob['SECTION_PAGE_URL'],
				);
   		}
		//Список элементов
   		$res = CIBlockElement::GetList(
			array(),
			Array(
				"IBLOCK_ID" => $iblock_id,
				"ACTIVE_DATE" => "Y",
				"ACTIVE" => "Y" ,
			),
			false,
			false,
			array(
			"ID",
			"NAME",
			"DETAIL_PAGE_URL",
		));
   		while($ob = $res->GetNext())
   		{
			if(!in_array($ob['DETAIL_PAGE_URL'], $arrayUri404))
				$array_pages[] = array(
					'NAME' => $ob['NAME'],
					'URL' => $ob['DETAIL_PAGE_URL'],
				);
   		}
	}
}

//Создаём XML документ: начало
$xml_content = '';
$site_url = 'https://'.$_SERVER['HTTP_HOST'];
$quantity_elements = 0;
foreach($array_pages as $v)
{
	$quantity_elements++;
	$xml_content.='
	<url>
		<loc>'.$site_url.$v['URL'].'</loc>
		<priority>1</priority>
	</url>
';
}
//Создаём XML документ: конец

//Выводим документ
echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	'.$xml_content.'
</urlset>
';
?>