Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
license.php
1<? namespace Bitrix\Main;$GLOBALS['____1444769544']= array(base64_decode('Z'.'mlsZV'.'9l'.'eGlzdHM='),base64_decode('c3'.'RydG91cHBlc'.'g=='),base64_decode('bWQ'.'1'),base64_decode('b'.'WQ1'),base64_decode('aW5fYXJyYXk='),base64_decode('Z'.'GVma'.'W5lZA=='),base64_decode(''.'ZGVmaW5lZA=='),base64_decode('ZGVmaW5l'.'ZA=='),base64_decode('Zml'.'sZ'.'V9l'.'eGlz'.'dHM='),base64_decode('Z'.'mlsZ'.'V9leGl'.'zdHM='),base64_decode('Zml'.'sZ'.'V9'.'leGlzdHM'.'='),base64_decode(''.'Z'.'mlsZ'.'V9leGl'.'z'.'dHM='));if(!function_exists(__NAMESPACE__.'\\___1034172934')){function ___1034172934($_702436001){static $_688406072= false; if($_688406072 == false) $_688406072=array('L2'.'JpdHJpe'.'C'.'9sa'.'WNlbnNlX2tleS5waHA=','','','REVNT'.'w==','REV'.'NTw='.'=',''.'QklUU'.'k'.'lY',''.'TElDRU'.'5DRQ==',''.'REV'.'NTw==','L'.'2tleV91'.'c'.'GRhdGUucG'.'h'.'wP2xpY2Vuc2'.'Vfa'.'2'.'V'.'5PQ==','Jn'.'RvYm'.'Fza2'.'V0PXk'.'mbGFuZz0=','cnU=','a3o=','Ynk=','aHR0cHM6Ly9kZ'.'X'.'YuMWM'.'t'.'Ym'.'l0cml'.'4L'.'nJ1L2xlYXJu'.'aW5'.'nL2NvdXJ'.'zZS9pbmRl'.'eC5'.'w'.'aHA/Q0'.'9VU'.'lN'.'FX0lEPTEzNSZM'.'RVNTT'.'05fSUQ9Mj'.'U'.'3M'.'jA'.'=','aH'.'R'.'0cHM6Ly90cmFpbml'.'uZ'.'y5'.'iaXRyaXgyNC5j'.'b20vc3Vwc'.'G9ydC90c'.'mFpbm'.'luZy9'.'jb'.'3Vy'.'c'.'2'.'UvaW5'.'kZXgucGhwP'.'0'.'N'.'P'.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AgV'.'UcgT04gV'.'U'.'cuVV'.'NFUl9JRCA9'.'I'.'FUuSUQ'.'gQU'.'5EIFVHL'.'kdST1'.'VQX0lEID0g',''.'CgkJCQ'.'kJCQlMRUZ'.'UIEpPSU4gKA'.'oJCQkJCQ'.'kJC'.'VNFT'.'EVDVCBVRi5WQ'.'UxVRV9JR'.'CAKCQkJCQk'.'JCQ'.'lGUk9NIAoJ'.'CQ'.'kJCQkJCQliX3'.'VzZXJ'.'fZm'.'llbGQ'.'gRgoJCQkJ'.'CQ'.'k'.'JCQlJTk'.'5FU'.'iBKT0l'.'OIGJfd'.'XRt'.'X'.'3VzZXIg'.'VUYgT0'.'4g'.'VU'.'YuRklFTERfSUQgPSBGLk'.'lEIEFORC'.'BV'.'Ri5'.'WQUx'.'VRV9'.'J'.'TlQg'.'PiA'.'wCgkJCQkJCQk'.'JV0'.'hFUkU'.'gRi'.'5FTlRJVFlfS'.'UQ'.'gPSAnV'.'VNFU'.'i'.'cgQU5EIEYuRklF'.'T'.'ER'.'fTkFN'.'RS'.'A9I'.'CdVRl9ER'.'VB'.'BUlRNRU5'.'U'.'JwoJCQk'.'JCQk'.'JKSB'.'EI'.'E9'.'OIEQuVkF'.'MVUVf'.'S'.'UQgP'.'SBVLk'.'lEC'.'g'.'kJCQkJCV'.'dIRVJF'.'IFUuQUNU'.'S'.'VZ'.'FID0gJ'.'1knCgkJC'.'Q'.'kJCQ'.'k'.'=','C'.'gkJC'.'QkJCQl'.'BTkQgRC5WQUxVRV9'.'JRCBJU'.'y'.'BOVUxMCgkJCQkJ');return base64_decode($_688406072[$_702436001]);}}; use Bitrix\Main\Config\Option; use Bitrix\Main\Type\Date; final class License{ private?string $_1995123866= 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->_1995123866 === null){ $_1091507769= Loader::getDocumentRoot(). ___1034172934(0); $LICENSE_KEY= ___1034172934(1); if($GLOBALS['____1444769544'][0]($_1091507769)){ include($_1091507769);} $this->_1995123866=($LICENSE_KEY == ___1034172934(2) || $GLOBALS['____1444769544'][1]($LICENSE_KEY) == ___1034172934(3)? ___1034172934(4): $LICENSE_KEY);} return $this->_1995123866;} public function getHashLicenseKey(): string{ return $GLOBALS['____1444769544'][2]($this->getKey());} public function getPublicHashKey(): string{ return $GLOBALS['____1444769544'][3](___1034172934(5). $this->getKey(). ___1034172934(6));} public function isDemoKey(): bool{ return $this->getKey() == ___1034172934(7);} public function getBuyLink(): string{ return $this->getDomainStoreLicense(). ___1034172934(8). $this->getHashLicenseKey(). ___1034172934(9). LANGUAGE_ID;} public function getDocumentationLink(): string{ $_883074445= $this->getRegion(); if($GLOBALS['____1444769544'][4]($_883074445,[___1034172934(10), ___1034172934(11), ___1034172934(12)])){ return ___1034172934(13);} return ___1034172934(14);} public function getDomainStoreLicense(): string{ return self::DOMAINS_STORE_LICENSE[$this->getRegion()] ?? self::DOMAINS_STORE_LICENSE[___1034172934(15)];} public function isDemo(): bool{ return $GLOBALS['____1444769544'][5](___1034172934(16)) && DEMO === ___1034172934(17);} public function isTimeBound(): bool{ return $GLOBALS['____1444769544'][6](___1034172934(18)) && TIMELIMIT_EDITION === ___1034172934(19);} public function isEncoded(): bool{ return $GLOBALS['____1444769544'][7](___1034172934(20)) && ENCODE === ___1034172934(21);} public function getExpireDate():?Date{ $_374665139= (int)$GLOBALS[___1034172934(22)]; if($_374665139>(182*2-364)){ return Date::createFromTimestamp($_374665139);} return null;} public function getRegion():?string{ if(Loader::includeModule(___1034172934(23))){ return \CBitrix24::getPortalZone();} $_883074445= Option::get(___1034172934(24), ___1034172934(25)); if(!empty($_883074445)){ return $_883074445;} $_883074445= $this->__1131562766(); if(!empty($_883074445)){ return $_883074445;} return $this->__162840770();} public function getEulaLink(): string{ if(ModuleManager::isModuleInstalled(___1034172934(26))){ return self::URL_CP_EULA[$this->getRegion()] ?? self::URL_CP_EULA[___1034172934(27)];} return self::URL_BUS_EULA[$this->getRegion()] ?? self::URL_BUS_EULA[___1034172934(28)];} private function __1131562766():?string{ $_1846695132= Option::get(___1034172934(29), ___1034172934(30)); if($_1846695132 === ___1034172934(31)){ return ___1034172934(32);} if($_1846695132 === ___1034172934(33)){ return ___1034172934(34);} if($_1846695132 === ___1034172934(35)){ return ___1034172934(36);} return null;} private function __162840770():?string{ $_1968415907= Application::getDocumentRoot(); if($GLOBALS['____1444769544'][8]($_1968415907. ___1034172934(37))){ return ___1034172934(38);} if($GLOBALS['____1444769544'][9]($_1968415907. ___1034172934(39))){ return ___1034172934(40);} if($GLOBALS['____1444769544'][10]($_1968415907. ___1034172934(41))){ return ___1034172934(42);} if($GLOBALS['____1444769544'][11]($_1968415907. ___1034172934(43))){ return ___1034172934(44);} return null;} public function getPartnerId(): int{ return (int)Option::get(___1034172934(45), ___1034172934(46),(914-2*457));} public function getMaxUsers(): int{ return (int)Option::get(___1034172934(47), ___1034172934(48),(808-2*404));} public function isExtraCountable(): bool{ return Option::get(___1034172934(49), ___1034172934(50), ___1034172934(51)) === ___1034172934(52) && ModuleManager::isModuleInstalled(___1034172934(53));} public function getActiveUsersCount(Date $_1979394153= null){ $_660185364= Application::getConnection(); if($_1979394153 !== null){ $_2144002222= ___1034172934(54).$_660185364->getSqlHelper()->convertToDbDate($_1979394153);} else{ $_2144002222= ___1034172934(55);} $_1753344690=(225*2-450); if(ModuleManager::isModuleInstalled(___1034172934(56))){ $_344018497= ___1034172934(57). $_2144002222. ___1034172934(58); $_1753344690= (int)$_660185364->queryScalar($_344018497); if($this->isExtraCountable()){ $_1885980267= (int)Option::get(___1034172934(59), ___1034172934(60)); if($_1885980267> min(120,0,40)){ $_344018497= ___1034172934(61). $_1885980267. ___1034172934(62). $_2144002222. ___1034172934(63); $_1753344690 += (int)$_660185364->queryScalar($_344018497);}}} return $_1753344690;}}?>
static getConnection($name="")
static getDocumentRoot()
Definition loader.php:254
$GLOBALS['____1979065141']
Definition mutator.php:1
if(!function_exists(__NAMESPACE__.'\\___29363097'))
Definition mutator.php:1
$GLOBALS['____1444769544']
Definition license.php:1
if(!function_exists(__NAMESPACE__.'\\___1034172934'))
Definition license.php:1