Your IP : 172.28.240.42


Current Path : /var/www/html/clients/e-nkama.ru/e-nkama_bitrix/bitrix/templates/mobile/
Upload File :
Current File : /var/www/html/clients/e-nkama.ru/e-nkama_bitrix/bitrix/templates/mobile/footer.php

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if($DBisAjax):
	$contentRes = $content = $GLOBALS['APPLICATION']->EndBufferContentMan();
	$titleRes = $GLOBALS['APPLICATION']->GetTitle(false, true);
	$breadcrumbRes = $GLOBALS['APPLICATION']->GetNavChain(false, 0, SITE_TEMPLATE_PATH."/components/bitrix/breadcrumb/breadcrumb/chain_template.php", false, false);

	$ptn= "!<[^\!]?script[^>]*>.*</script>!isU"; $contentRes = preg_replace($ptn,"<deljs></deljs>",$contentRes);
	$ptn= "!onclick=\".*\"!isU"; $contentRes = preg_replace($ptn,"data-onclick=\"hide\"",$contentRes);
	$ptn= "!style=\".*\"!isU"; $contentRes = preg_replace($ptn,"dat-style=\"hide\"",$contentRes);
	$ptn= "!style='.*'!isU"; $contentRes = preg_replace($ptn,"dat-style=\"hide\"",$contentRes);
	$ptn= "!<\!script>!isU"; $contentRes = preg_replace($ptn,"<script>",$contentRes);
	
	if (!defined("BX_UTF")){
		$titleRes = $APPLICATION->ConvertCharset($titleRes, SITE_CHARSET, "UTF-8");
		$breadcrumbRes = $APPLICATION->ConvertCharset($breadcrumbRes, SITE_CHARSET, "UTF-8");
		$contentRes = $APPLICATION->ConvertCharset($contentRes, SITE_CHARSET, "UTF-8");
	}
	$strResult = 'context='.CUtil::PhpToJSObject(array(
		'title' => trim($titleRes),
		'breadcrumb' => trim($breadcrumbRes),
		'content' => trim($contentRes)
	));
	echo $strResult;
	if(defined("HTML_PAGES_FILE") && !defined("ERROR_404")) CHTMLPagesCache::writeFile(HTML_PAGES_FILE, $content);
die();
endif;
?>