• Модуль: faceid
  • Путь к файлу: ~/bitrix/modules/faceid/lib/http.php
  • Класс: BitrixFaceIdHttp
  • Вызов: Http::__construct
function __construct()
{
	$this->error = new Error(null, '', '');
	if (defined('FD_CONTROLLER_URL'))
	{
		$this->controllerUrl = FD_CONTROLLER_URL;
	}

	if(defined('BX24_HOST_NAME'))
	{
		$this->licenceCode = BX24_HOST_NAME;
	}
	else
	{
		require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/update_client.php");
		$this->licenceCode = md5("BITRIX".CUpdateClient::GetLicenseKey()."LICENCE");
	}
	$this->type = self::getPortalType();
	$this->domain = self::getServerAddress();

	return true;
}