Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ActivationSystem.php
1<? namespace Bitrix\Main\UpdateSystem;$GLOBALS['____592999265']= array(base64_decode('aXNfd3JpdGFibGU='),base64_decode('Zm9w'.'Z'.'W4='),base64_decode('ZndyaXRl'),base64_decode('ZmNsb3N'.'l'),base64_decode('aW50dmFs'),base64_decode('aW'.'50d'.'m'.'Fs'),base64_decode(''.'aXNfd3JpdGFibG'.'U='),base64_decode('Z'.'m9wZW4='),base64_decode('Z'.'nB'.'1dHM'.'='),base64_decode('ZmNsb3Nl'));if(!function_exists(__NAMESPACE__.'\\___1302810634')){function ___1302810634($_796821434){static $_978759232= false; if($_978759232 == false) $_978759232=array('R'.'V'.'JST1I'.'=','RV'.'J'.'ST1I=','X1ZB'.'TF'.'VF','V'.'W5rbm9'.'3b'.'iBl'.'cnJ'.'v'.'cg==','IFtBU1IwM'.'V0=','Uk'.'VOV'.'A'.'==','T'.'m9'.'0IGZvdW'.'5kIGxpY2'.'Vu'.'c2U'.'gaW5mby'.'BbQVNSM'.'DJd','VjE'.'=','VjI=','U'.'2VydmVyIH'.'Jlc3BvbnNl'.'IGl'.'zIG5vdCBy'.'Z'.'WN'.'vZ'.'25pemVk'.'IF'.'tBU0FMSTAxXQ'.'==',''.'bWFp'.'bg==','f'.'l'.'NBQVNfTU9ERQ==','WQ==','b'.'WFpb'.'g'.'==','YWRtaW5fc'.'GFz'.'c3d'.'vcmRo','RE'.'9D'.'VU1FT'.'lR'.'fU'.'k9PVA==','L2JpdH'.'Jp'.'eC'.'9tb'.'2R1'.'b'.'GVzL21ha'.'W4vY'.'WRtaW4'.'=','RE9DV'.'U1FTlRfU'.'k9PV'.'A'.'==','L2Jpd'.'HJpeC9t'.'b2R'.'1bGVz'.'L2'.'1h'.'aW4vYWRt'.'aW'.'4vZGVma'.'W5lLnBocA==','d'.'w==','P'.'A'.'==','P0R'.'lZml'.'uZSgiVE'.'VN'.'UE9'.'S'.'QVJZX'.'0NB'.'Q0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STA0XQ='.'=',''.'R'.'m9'.'sZGVy'.'IG'.'lz'.'I'.'G5vdCB3cml0YWJsZSBbQVNBTEkwNV'.'0=','Tm90IGZvd'.'W5kIGx'.'pY2Vuc2U'.'g'.'aW5mbyBbQ'.'V'.'NBSD'.'AxXQ='.'=','cmVz'.'d'.'Wx0','cmVz'.'d'.'Wx0','ZXJy'.'b3'.'I=','bW'.'V'.'z'.'c2FnZ'.'Q'.'==',''.'RXJyb3Igc2VuZ'.'CBw'.'YXJ'.'0bm'.'VyIGluZm'.'8gW0FTU0lUUDAxX'.'Q==','cmVzcG9'.'u'.'c2'.'U=','cmV'.'xdWVzdA==','ZXJyb3I'.'=','VW5rb'.'m93'.'biBlcnJvcg==','IFtBU'.'1NJ'.'VFAwMV0=');return base64_decode($_978759232[$_796821434]);}}; use Bitrix\Main\Application; use Bitrix\Main\Result; use Bitrix\Main\Security\SecurityException; use Bitrix\Main\SystemException; use Bitrix\Main\Web\Json; class ActivationSystem{ public function reincarnate(Coupon $_509083200): Result{ $_1409621149= new ReincarnationRequestBuilder($_509083200); $_978320177=(new RequestFactory($_1409621149))->build(); $_1812730022= $_978320177->send(); $_806403695= new UpdateServerDataParser($_1812730022); $_840507602= $_806403695->parse(); if(isset($_840507602[___1302810634(0)])){ throw new SystemException(($_840507602[___1302810634(1)][___1302810634(2)] ?? ___1302810634(3)).___1302810634(4));} $_840507602= $_840507602[___1302810634(5)] ??[]; if(empty($_840507602)){ throw new SystemException(___1302810634(6));} $this->applyLicenseInfo($_840507602, $_509083200->getKey()); $_807906085= new Result(); return $_807906085->setData($_840507602);} protected function applyLicenseInfo(array $_840507602, string $_1980895553): void{ $_799234338= $_840507602[___1302810634(7)]; $_1588614807= $_840507602[___1302810634(8)]; if(empty($_799234338) || empty($_1588614807)){ throw new SystemException(___1302810634(9));} \COption::SetOptionString(___1302810634(10), ___1302810634(11), ___1302810634(12)); \COption::SetOptionString(___1302810634(13), ___1302810634(14), $_799234338); if($GLOBALS['____592999265'][0]($_SERVER[___1302810634(15)].___1302810634(16))){ if($_1683663071= $GLOBALS['____592999265'][1]($_SERVER[___1302810634(17)].___1302810634(18), ___1302810634(19))){ $GLOBALS['____592999265'][2]($_1683663071, ___1302810634(20).___1302810634(21).$_1588614807.___1302810634(22).___1302810634(23)); $GLOBALS['____592999265'][3]($_1683663071);} else{ throw new SystemException(___1302810634(24));}} else{ throw new SystemException(___1302810634(25));} if(isset($_840507602[___1302810634(26)])){ \COption::SetOptionString(___1302810634(27), ___1302810634(28), $_840507602[___1302810634(29)]);} if(isset($_840507602[___1302810634(30)])){ \COption::SetOptionString(___1302810634(31), ___1302810634(32), $GLOBALS['____592999265'][4]($_840507602[___1302810634(33)]));} if(isset($_840507602[___1302810634(34)])){ \COption::SetOptionString(___1302810634(35), ___1302810634(36), $GLOBALS['____592999265'][5]($_840507602[___1302810634(37)]));} if(isset($_840507602[___1302810634(38)])){ \COption::SetOptionString(___1302810634(39), ___1302810634(40), $_840507602[___1302810634(41)]);} if(isset($_840507602[___1302810634(42)])){ \COption::SetOptionString(___1302810634(43), ___1302810634(44), $_840507602[___1302810634(45)]);} if(isset($_840507602[___1302810634(46)])){ if($GLOBALS['____592999265'][6]($_SERVER[___1302810634(47)].___1302810634(48))){ if($_1683663071= $GLOBALS['____592999265'][7]($_SERVER[___1302810634(49)].___1302810634(50), ___1302810634(51))){ $GLOBALS['____592999265'][8]($_1683663071, ___1302810634(52).___1302810634(53).EscapePHPString($_1980895553).___1302810634(54).___1302810634(55)); $GLOBALS['____592999265'][9]($_1683663071);} else{ throw new SystemException(___1302810634(56));}} else{ throw new SystemException(___1302810634(57));}}} public function activateByHash(string $_1375230072): Result{ $_806403695= new HashCodeParser($_1375230072); $_840507602= $_806403695->parse(); if(empty($_840507602)){ throw new SystemException(___1302810634(58));} $_1980895553= Application::getInstance()->getLicense()->getKey(); $this->applyLicenseInfo($_840507602, $_1980895553); $_807906085= new Result(); return $_807906085->setData($_840507602);} public function sendInfoToPartner(string $_731419892, string $_1624338839, string $_207165279): Result{ $_1409621149= new PartnerInfoRequestBuilder($_731419892, $_1624338839, $_207165279); $_978320177=(new RequestFactory($_1409621149))->build(); $_1812730022= $_978320177->send(); $_1812730022= Json::decode($_1812730022); if(!isset($_1812730022[___1302810634(59)]) || $_1812730022[___1302810634(60)] === ___1302810634(61)){ $_651970305=[ ___1302810634(62) => ___1302810634(63), ___1302810634(64) => $_1812730022, ___1302810634(65) => $_978320177]; throw new SystemException(($_1812730022[___1302810634(66)] ?? ___1302810634(67)).___1302810634(68));} return(new Result())->setData($_1812730022);}}?>
applyLicenseInfo(array $_840507602, string $_1980895553)