Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/license.php |
<? namespace Bitrix\Main;$GLOBALS['____1947708256']= array(base64_decode('ZmlsZV9leGlz'.'dHM='),base64_decode('c3Ryd'.'G9'.'1cH'.'Bl'.'cg'.'=='),base64_decode('bWQ1'),base64_decode('b'.'WQ1'),base64_decode('aW5fYXJ'.'y'.'YXk='),base64_decode(''.'ZGVmaW5lZA=='),base64_decode('ZGV'.'m'.'a'.'W5lZ'.'A=='),base64_decode('ZGVmaW5lZA=='),base64_decode('Z'.'mlsZV9'.'le'.'G'.'lzd'.'HM='),base64_decode('Zml'.'sZV'.'9leGlzdH'.'M='),base64_decode('Zm'.'lsZV9'.'leGlz'.'d'.'HM'.'='),base64_decode('ZmlsZV'.'9le'.'Gl'.'zdHM'.'='));if(!function_exists(__NAMESPACE__.'\\___161403596')){function ___161403596($_985298637){static $_2007628463= false; if($_2007628463 == false) $_2007628463=array('L'.'2Jp'.'dHJpe'.'C9sa'.'WN'.'lbnNlX2t'.'le'.'S5waHA=','','','REVNTw='.'=','REVNTw==','QklUUklY',''.'TElDRU'.'5DRQ==','R'.'EVNTw='.'=','L2tleV91cGRhdGUu'.'cGhwP2xpY'.'2'.'Vuc'.'2V'.'fa2V5P'.'Q='.'=',''.'Jn'.'RvYmFza2V0P'.'X'.'kmbGF'.'uZz0=','cn'.'U=','a3o=',''.'Ynk=','a'.'HR0cHM6Ly9k'.'ZX'.'Y'.'uMWM'.'tY'.'ml'.'0cm'.'l4'.'LnJ1L2xlYX'.'JuaW5nL2'.'N'.'vdX'.'JzZ'.'S9pbmR'.'leC5waH'.'A/'.'Q09VUlNFX0lEPT'.'EzNSZ'.'MRVNTT05fSUQ9MjU3'.'M'.'jA'.'=','aH'.'R0cHM6Ly90cmFpbml'.'uZy5iaXRy'.'aXgyNC5'.'jb'.'20vc'.'3'.'V'.'wcG9ydC90cmFpbml'.'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ZXI'.'gVQ'.'oJC'.'Qk'.'JCQkJSU5ORVIgSk9J'.'TiBiX'.'3'.'VzZXJf'.'Z'.'3J'.'vd'.'XAgV'.'Uc'.'gT'.'0'.'4gVUcuVVNFUl9J'.'RC'.'A9IFUu'.'SUQgQ'.'U'.'5EIFV'.'HL'.'kdST1VQ'.'X0lEI'.'D0g',''.'CgkJCQkJ'.'CQlMRU'.'ZUIEpPSU'.'4gKAoJ'.'C'.'QkJCQkJ'.'C'.'VNFTEVDVC'.'B'.'VRi5WQ'.'UxVRV'.'9JR'.'CAKCQkJCQkJC'.'QlGUk9NIAoJCQ'.'kJ'.'CQ'.'kJCQliX3'.'VzZX'.'JfZml'.'lbG'.'Qg'.'R'.'g'.'o'.'JCQkJCQkJ'.'CQlJTk5FUiB'.'KT0lOIGJf'.'d'.'X'.'RtX'.'3V'.'zZX'.'IgV'.'UY'.'gT04g'.'VUY'.'uRklFTE'.'Rf'.'S'.'UQgP'.'S'.'B'.'G'.'LklEI'.'EFORCBV'.'Ri5WQUx'.'V'.'RV9JTlQgPiAwCg'.'kJCQkJCQk'.'JV0'.'hFU'.'kUg'.'Ri5'.'FT'.'lRJVF'.'lfSU'.'QgPSAnVVNFUicg'.'QU5EIEYuRklFTERf'.'TkFN'.'RSA9'.'ICdVR'.'l9ERVBB'.'U'.'lRNRU5'.'UJwo'.'JC'.'QkJCQkJK'.'S'.'B'.'EIE9OIEQ'.'u'.'VkFMVUVfSUQgPSBVLkl'.'ECg'.'kJCQ'.'kJCVdIRV'.'JFIFUuQUNUSVZFI'.'D0'.'gJ1k'.'nCgkJC'.'QkJCQk=','CgkJCQkJ'.'CQlBT'.'kQgRC5W'.'QU'.'xVRV9'.'JRCBJ'.'UyBOVU'.'xMCg'.'k'.'J'.'C'.'QkJ');return base64_decode($_2007628463[$_985298637]);}}; use Bitrix\Main\Config\Option; use Bitrix\Main\Type\Date; final class License{ private?string $_624510449= null; private const DOMAINS_STORE_LICENSE=[ 'ru' => 'https://util.1c-bitrix.ru', 'ua' => 'https://util.bitrix.ua', 'en' => 'https://util.bitrixsoft.com', 'kz' => 'https://util.1c-bitrix.kz', 'by' => 'https://util.1c-bitrix.by',]; public const URL_BUS_EULA=[ 'ru' => 'https://www.1c-bitrix.ru/download/law/eula_bus.pdf', 'by' => 'https://www.1c-bitrix.by/download/law/eula_bus.pdf', 'kz' => 'https://www.1c-bitrix.kz/download/law/eula_bus.pdf', 'ua' => 'https://www.bitrix.ua/download/law/eula_bus.pdf',]; public const URL_CP_EULA=[ 'ru' => 'https://www.1c-bitrix.ru/download/law/eula_cp.pdf', 'by' => 'https://www.1c-bitrix.by/download/law/eula_cp.pdf', 'kz' => 'https://www.1c-bitrix.kz/download/law/eula_cp.pdf', 'en' => 'https://www.bitrix24.com/eula/', 'br' => 'https://www.bitrix24.com.br/eula/', 'fr' => 'https://www.bitrix24.fr/eula/', 'pl' => 'https://www.bitrix24.pl/eula/', 'it' => 'https://www.bitrix24.it/eula/', 'la' => 'https://www.bitrix24.es/eula/',]; public function getKey(): string{ if($this->_624510449 === null){ $_1259914830= Loader::getDocumentRoot(). ___161403596(0); $LICENSE_KEY= ___161403596(1); if($GLOBALS['____1947708256'][0]($_1259914830)){ include($_1259914830);} $this->_624510449=($LICENSE_KEY == ___161403596(2) || $GLOBALS['____1947708256'][1]($LICENSE_KEY) == ___161403596(3)? ___161403596(4): $LICENSE_KEY);} return $this->_624510449;} public function getHashLicenseKey(): string{ return $GLOBALS['____1947708256'][2]($this->getKey());} public function getPublicHashKey(): string{ return $GLOBALS['____1947708256'][3](___161403596(5). $this->getKey(). ___161403596(6));} public function isDemoKey(): bool{ return $this->getKey() == ___161403596(7);} public function getBuyLink(): string{ return $this->getDomainStoreLicense(). ___161403596(8). $this->getHashLicenseKey(). ___161403596(9). LANGUAGE_ID;} public function getDocumentationLink(): string{ $_451976150= $this->getRegion(); if($GLOBALS['____1947708256'][4]($_451976150,[___161403596(10), ___161403596(11), ___161403596(12)])){ return ___161403596(13);} return ___161403596(14);} public function getDomainStoreLicense(): string{ return self::DOMAINS_STORE_LICENSE[$this->getRegion()] ?? self::DOMAINS_STORE_LICENSE[___161403596(15)];} public function isDemo(): bool{ return $GLOBALS['____1947708256'][5](___161403596(16)) && DEMO === ___161403596(17);} public function isTimeBound(): bool{ return $GLOBALS['____1947708256'][6](___161403596(18)) && TIMELIMIT_EDITION === ___161403596(19);} public function isEncoded(): bool{ return $GLOBALS['____1947708256'][7](___161403596(20)) && ENCODE === ___161403596(21);} public function getExpireDate():?Date{ $_382602065= (int)$GLOBALS[___161403596(22)]; if($_382602065>(222*2-444)){ return Date::createFromTimestamp($_382602065);} return null;} public function getSupportExpireDate():?Date{ $_382602065= Option::get(___161403596(23), ___161403596(24)); if(Date::isCorrect($_382602065, ___161403596(25))){ return new Date($_382602065, ___161403596(26));} return null;} public function getRegion():?string{ if(Loader::includeModule(___161403596(27))){ return \CBitrix24::getPortalZone();} $_451976150= Option::get(___161403596(28), ___161403596(29)); if(!empty($_451976150)){ return $_451976150;} $_451976150= $this->__978093054(); if(!empty($_451976150)){ return $_451976150;} return $this->__1184495390();} public function getEulaLink(): string{ if(ModuleManager::isModuleInstalled(___161403596(30))){ return self::URL_CP_EULA[$this->getRegion()] ?? self::URL_CP_EULA[___161403596(31)];} return self::URL_BUS_EULA[$this->getRegion()] ?? self::URL_BUS_EULA[___161403596(32)];} private function __978093054():?string{ $_1515504873= Option::get(___161403596(33), ___161403596(34)); if($_1515504873 === ___161403596(35)){ return ___161403596(36);} if($_1515504873 === ___161403596(37)){ return ___161403596(38);} if($_1515504873 === ___161403596(39)){ return ___161403596(40);} return null;} private function __1184495390():?string{ $_624495500= Application::getDocumentRoot(); if($GLOBALS['____1947708256'][8]($_624495500. ___161403596(41))){ return ___161403596(42);} if($GLOBALS['____1947708256'][9]($_624495500. ___161403596(43))){ return ___161403596(44);} if($GLOBALS['____1947708256'][10]($_624495500. ___161403596(45))){ return ___161403596(46);} if($GLOBALS['____1947708256'][11]($_624495500. ___161403596(47))){ return ___161403596(48);} return null;} public function getPartnerId(): int{ return (int)Option::get(___161403596(49), ___161403596(50),(804-2*402));} public function getMaxUsers(): int{ return (int)Option::get(___161403596(51), ___161403596(52),(181*2-362));} public function isExtraCountable(): bool{ return Option::get(___161403596(53), ___161403596(54), ___161403596(55)) === ___161403596(56) && ModuleManager::isModuleInstalled(___161403596(57));} public function getActiveUsersCount(Date $_887329941= null){ $_1708239488= Application::getConnection(); if($_887329941 !== null){ $_1441290208= ___161403596(58).$_1708239488->getSqlHelper()->convertToDbDate($_887329941);} else{ $_1441290208= ___161403596(59);} $_299761620=(206*2-412); if(ModuleManager::isModuleInstalled(___161403596(60))){ $_1949086139= ___161403596(61). $_1441290208. ___161403596(62); $_299761620= (int)$_1708239488->queryScalar($_1949086139); if($this->isExtraCountable()){ $_223873577= (int)Option::get(___161403596(63), ___161403596(64)); if($_223873577>(132*2-264)){ $_1949086139= ___161403596(65). $_223873577. ___161403596(66). $_1441290208. ___161403596(67); $_299761620 += (int)$_1708239488->queryScalar($_1949086139);}}} return $_299761620;}}?>