• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/lpa.php
  • Класс: LPA
  • Вызов: LPA::PrepareContent
static function PrepareContent($filesrc)
{
	$arPHP = PHPParser::ParseFile($filesrc);
	$l = count($arPHP);
	if ($l > 0)
	{
		$new_filesrc = '';
		$end = 0;
		$php_count = 0;
		for ($n = 0; $n<$l; $n++)
		{
			$start = $arPHP[$n][0];
			$new_filesrc .= mb_substr($filesrc, $end, $start - $end);
			$end = $arPHP[$n][1];

			//Trim php tags
			$src = $arPHP[$n][2];
			if (mb_substr($src, 0, 5) == "