• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/connector/mobile.php
  • Класс: BitrixLandingConnectorMobile
  • Вызов: Mobile::prologMobileHit
static function prologMobileHit()
{
	if (self::isMobileHit())
	{
		if (
			BitrixMainLoader::includeModule('mobile') &&
			BitrixMainLoader::includeModule('mobileapp')
		)
		{
			if (!defined('SKIP_MOBILEAPP_INIT'))
			{
				CMobile::init();
				if (!Manager::getUserId())
				{
					Manager::getApplication()->restartBuffer();
					Auth::setNotAuthorizedHeaders();
					echo Json::encode(Auth::getNotAuthorizedResponse());
					die();
				}
			}
		}
		else
		{
			die();
		}
	}
}