- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/update_client.php
- Класс: CUpdateClient
- Вызов: CUpdateClient::ActivateCoupon
static function ActivateCoupon($_1803564405,&$_2050926524, $_41514650= false, $_170690667= "Y"){ $_2024921826= ""; CUpdateClient::AddMessage2Log(___844642661(279)); $_592347650= CUpdateClient::CollectRequestData($_2024921826, $_41514650, $_170690667, array(), array(), array()); if($_592347650 === false || $_592347650 == ___844642661(280) || $_2024921826 <> ___844642661(281)){ if($_2024921826 == ___844642661(282)) $_2024921826= ___844642661(283).GetMessage(___844642661(284)).___844642661(285);} if(CModule::IncludeModule(___844642661(286)) &&!BitrixRestOAuthService::getEngine()->isRegistered()){ try{ BitrixRestOAuthService::register(); BitrixRestOAuthService::getEngine()->getClient()->getApplicationList();} catch(BitrixMainSystemException $_1718435253){}} if($_2024921826 == ___844642661(287)){ $_592347650 .= ___844642661(288).UrlEncode($_1803564405).___844642661(289); CUpdateClient::AddMessage2Log($GLOBALS['____72038768'][58](___844642661(290), ___844642661(291), $_592347650)); $_1875326983= CUpdateClient::getmicrotime(); $_2010661539= CUpdateClient::GetHTTPPage(___844642661(292), $_592347650, $_2024921826); if($_2010661539 == ___844642661(293)){ if($_2024921826 == ___844642661(294)) $_2024921826= ___844642661(295).GetMessage(___844642661(296)).___844642661(297);} CUpdateClient::AddMessage2Log(___844642661(298).Round(CUpdateClient::getmicrotime()- $_1875326983, round(0+1+1+1)).___844642661(299));} if($_2024921826 == ___844642661(300)){ $_1916023688= Array(); CUpdateClient::__2061500291($_2010661539, $_1916023688, $_2024921826);} if($_2024921826 == ___844642661(301)){ if(isset($_1916023688[___844642661(302)][___844642661(303)][___844642661(304)]) && $GLOBALS['____72038768'][59]($_1916023688[___844642661(305)][___844642661(306)][___844642661(307)]) &&!empty($_1916023688[___844642661(308)][___844642661(309)][___844642661(310)])){ for($_1540823556=(169*2-338), $_1519453005= $GLOBALS['____72038768'][60]($_1916023688[___844642661(311)][___844642661(312)][___844642661(313)]); $_1540823556< $_1519453005; $_1540823556++){ if($_1916023688[___844642661(314)][___844642661(315)][___844642661(316)][$_1540823556][___844642661(317)][___844642661(318)] <> ___844642661(319)) $_2024921826 .= ___844642661(320).$_1916023688[___844642661(321)][___844642661(322)][___844642661(323)][$_1540823556][___844642661(324)][___844642661(325)].___844642661(326); $_2024921826 .= $_1916023688[___844642661(327)][___844642661(328)][___844642661(329)][$_1540823556][___844642661(330)].___844642661(331);}}} if($_2024921826 == ___844642661(332)){ if(isset($_1916023688[___844642661(333)][___844642661(334)][___844642661(335)]) && $GLOBALS['____72038768'][61]($_1916023688[___844642661(336)][___844642661(337)][___844642661(338)])){ COption::SetOptionString(___844642661(339), ___844642661(340), ___844642661(341)); CUpdateClient::__ApplyLicenseInfo($_1916023688[___844642661(342)][___844642661(343)][___844642661(344)][(802-2*401)][___844642661(345)]);}} if($_2024921826 <> ___844642661(346)){ CUpdateClient::AddMessage2Log($_2024921826, ___844642661(347)); $_2050926524 .= $_2024921826; return false;} else{ $_1355258497= ___844642661(348); CUpdateClient::RegisterVersion($_1355258497); return true;}}