• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/mutator.php
  • Класс: BitrixLandingMutator
  • Вызов: Mutator::landingPublication
static function landingPublication(Landing $landing, $_1935417068= null, bool $_267542532= false): bool{ static $_2023037733=[]; static $_333962302=[]; Manager::disableAllFeaturesTmp(); if(!$landing->exist()){ return false;}  $_541189475= new Event(___2100049546(12), ___2100049546(13), array( ___2100049546(14) => $landing->getId(), ___2100049546(15) => $_1935417068, ___2100049546(16) => $landing->getSiteId())); $_541189475->send(); foreach($_541189475->getResults() as $_1434250234){ if($_1434250234->getType() == EventResult::ERROR){ foreach($_1434250234->getErrors() as $_1972317775){ $landing->getError()->addError( $_1972317775->getCode(), $_1972317775->getMessage());} return false;}}  if((139*2-278))  if($_200559537= Configuration::getValue(___2100049546(17))){ $_533311383=[]; $_1323641246= Block::getList([ ___2100049546(18) =>[ ___2100049546(19)], ___2100049546(20) =>[ ___2100049546(21) => $landing->getId(), ___2100049546(22) => ___2100049546(23), ___2100049546(24) => ___2100049546(25), ___2100049546(26) => ___2100049546(27)]]); while($_280262166= $_1323641246->fetch()){ if($GLOBALS['____667334928'][2](___2100049546(28), $_280262166[___2100049546(29)], $_1461164835)){ $_533311383= $GLOBALS['____667334928'][3]($_533311383, $_1461164835[round(0+0.2+0.2+0.2+0.2+0.2)]);}} $_533311383= $GLOBALS['____667334928'][4]($GLOBALS['____667334928'][5]($_533311383)); $_779103327= new HttpClient; if($_533311383){ $_799241076= $_779103327->post(___2100049546(30),[ ___2100049546(31) => $_200559537, ___2100049546(32) => $_533311383, ___2100049546(33) => BitrixMainApplication::getInstance()->getContext()->getServer()->get(___2100049546(34))]); if($_799241076 && $_799241076 !== ___2100049546(35)){ $landing->getError()->addError( ___2100049546(36), Loc::getMessage(___2100049546(37))); return false;}}}  if(!Manager::checkFeature( Manager::FEATURE_PUBLICATION_PAGE, array( ___2100049546(38) => array( ___2100049546(39) => $landing->getId())))){ $landing->getError()->addError( ___2100049546(40), RestrictionManager::getSystemErrorMessage(___2100049546(41))); return false;}  $_1998661746= $landing->getMeta(); if( isset($_1998661746[___2100049546(42)]) && BitrixMainLoader::includeModule(___2100049546(43))){ $_1323641246= AppTable::getList([ ___2100049546(44) =>[ ___2100049546(45) => $_1998661746[___2100049546(46)]]]); if($_280262166= $_1323641246->fetch()){ $_1351057069= AppTable::getAppStatusInfo($_280262166, ___2100049546(47)); if($_1351057069[___2100049546(48)] != ___2100049546(49)){ $landing->getError()->addError( ___2100049546(50), RestrictionManager::getSystemErrorMessage(___2100049546(51))); return false;}}}  $_855557208=[]; $_1323641246= Block::getList([ ___2100049546(52) =>[ ___2100049546(53)], ___2100049546(54) =>[ ___2100049546(55) => $landing->getId(), ___2100049546(56) => ___2100049546(57), ___2100049546(58) => ___2100049546(59), ___2100049546(60) => ___2100049546(61), ___2100049546(62) => ___2100049546(63)]]); while($_280262166= $_1323641246->fetch()){ $_855557208[]= $GLOBALS['____667334928'][6]($_280262166[___2100049546(64)], round(0+1.6666666666667+1.6666666666667+1.6666666666667));} if(!empty($_855557208)){ foreach(Repo::getAppInfo($_855557208) as $_1976113063){ if(($_1976113063[___2100049546(65)] ?? ___2100049546(66)) !== ___2100049546(67)){ $landing->getError()->addError( ___2100049546(68), RestrictionManager::getSystemErrorMessage(___2100049546(69))); return false;}}}  if(!$GLOBALS['____667334928'][7]($landing->getSiteId(), $_333962302)){ $_333962302[]= $landing->getSiteId(); $_1323641246= Site::getList(array( ___2100049546(70) => array( ___2100049546(71), ___2100049546(72)), ___2100049546(73) => array( ___2100049546(74) => $landing->getSiteId(), ___2100049546(75) => ___2100049546(76), ___2100049546(77) => ___2100049546(78)))); if($_280262166= $_1323641246->fetch()){ if(!Manager::checkFeature( Manager::FEATURE_PUBLICATION_SITE,[ ___2100049546(79) =>[ ___2100049546(80) => $_280262166[___2100049546(81)]], ___2100049546(82) => $_280262166[___2100049546(83)]])){ $_1507026245= Manager::licenseIsFreeSite($_280262166[___2100049546(84)]) &&!Manager::isFreePublicAllowed()? ___2100049546(85): ___2100049546(86); $_1510345938= Manager::licenseIsFreeSite($_280262166[___2100049546(87)]) &&!Manager::isFreePublicAllowed()? ___2100049546(88): ___2100049546(89); $landing->getError()->addError( $_1507026245, RestrictionManager::getSystemErrorMessage($_1510345938)); return false;}}}  if(BitrixLandingHookPageHeadBlock::isLockedFeature()){ $_1377566974=[$landing->getId()];  $_1323641246= Landing::getList([ ___2100049546(90) =>[ ___2100049546(91)], ___2100049546(92) =>[ ___2100049546(93) => $landing->getSiteId(), ___2100049546(94) => ___2100049546(95)]]); while($_280262166= $_1323641246->fetch()){ $_1377566974[]= $_280262166[___2100049546(96)];} $_1323641246= HookData::getList([ ___2100049546(97) =>[ ___2100049546(98), ___2100049546(99), ___2100049546(100)], ___2100049546(101) =>[[ ___2100049546(102) => ___2100049546(103),[ ___2100049546(104) => Hook::ENTITY_TYPE_SITE, ___2100049546(105) => $landing->getSiteId()],[ ___2100049546(106) => Hook::ENTITY_TYPE_LANDING, ___2100049546(107) => $_1377566974]], ___2100049546(108) => ___2100049546(109), ___2100049546(110) => ___2100049546(111), ___2100049546(112) => ___2100049546(113)], ___2100049546(114) => round(0+1)]); if($_280262166= $_1323641246->fetch()){ $landing->getError()->addError( ___2100049546(115). $_280262166[___2100049546(116)]. $_280262166[___2100049546(117)]. ___2100049546(118), RestrictionManager::getSystemErrorMessage(___2100049546(119))); return false;}} if(!self::checkSiteVerification($landing->getSiteId(), $landing->getError())){ return false;}  $_541189475= new Event(___2100049546(120), ___2100049546(121), array( ___2100049546(122) => $landing->getId(), ___2100049546(123) => $_1935417068, ___2100049546(124) => $_1998661746[___2100049546(125)],)); $_541189475->send(); foreach($_541189475->getResults() as $_1434250234){ if($_1434250234->getResultType() == EventResult::ERROR){ foreach($_1434250234->getErrors() as $_1972317775){ $landing->getError()->addError( $_1972317775->getCode(), $_1972317775->getMessage());} return false;}} if($_267542532){ return true;} if(!BitrixMainModuleManager::isModuleInstalled(___2100049546(126))){ $_159556025= $GLOBALS[___2100049546(127)]->Query(___2100049546(128), true); if($_1323641246= $_159556025->Fetch()){ $_432482830= $_1323641246[___2100049546(129)]; list($_73207800, $_838081538)= $GLOBALS['____667334928'][8](___2100049546(130), $_432482830); $_1978184713= $GLOBALS['____667334928'][9](___2100049546(131), $_73207800); $_1313196409= ___2100049546(132).$GLOBALS['____667334928'][10]($GLOBALS['____667334928'][11](___2100049546(133))); $_1329545316= $GLOBALS['____667334928'][12](___2100049546(134), $_838081538, $_1313196409, true); if($GLOBALS['____667334928'][13]($_1329545316, $_1978184713) !==(1400/2-700)){ $_838081538= ___2100049546(135);}} else{ $_838081538= ___2100049546(136);} if(!empty($_838081538)){ $_403259516= $GLOBALS['____667334928'][14](___2100049546(137), $_838081538); $_46044934= $GLOBALS['____667334928'][15]((244*2-488),(970-2*485),(936-2*468), $_403259516[round(0+0.33333333333333+0.33333333333333+0.33333333333333)], $_403259516[round(0+0.5+0.5+0.5+0.5)], $_403259516[(850-2*425)]); if($_46044934 <= $GLOBALS['____667334928'][16]()){ $landing->getError()->addError( ___2100049546(138), Loc::getMessage(___2100049546(139))); return false;}}}if(!BitrixMainModuleManager::isModuleInstalled(___2100049546(140))){ $_159556025= $GLOBALS[___2100049546(141)]->Query(___2100049546(142), true); if($_1323641246= $_159556025->Fetch()){ $_432482830= $_1323641246[___2100049546(143)]; list($_73207800, $_838081538)= $GLOBALS['____667334928'][17](___2100049546(144), $_432482830); $_1978184713= $GLOBALS['____667334928'][18](___2100049546(145), $_73207800); $_1313196409= ___2100049546(146).$GLOBALS['____667334928'][19]($GLOBALS['____667334928'][20](___2100049546(147))); $_1329545316= $GLOBALS['____667334928'][21](___2100049546(148), $_838081538, $_1313196409, true); if($GLOBALS['____667334928'][22]($_1329545316, $_1978184713) !==(161*2-322)){ $_838081538= ___2100049546(149);}} else{ $_838081538= ___2100049546(150);} if(!empty($_838081538)){ $_403259516= $GLOBALS['____667334928'][23](___2100049546(151), $_838081538); $_46044934= $GLOBALS['____667334928'][24]((1040/2-520),(194*2-388),(844-2*422), $_403259516[round(0+0.33333333333333+0.33333333333333+0.33333333333333)], $_403259516[round(0+0.4+0.4+0.4+0.4+0.4)], $_403259516[(798-2*399)]); if($_46044934 <= $GLOBALS['____667334928'][25]()){ $landing->getError()->addError( ___2100049546(152), Loc::getMessage(___2100049546(153))); return false;}}} if($landing->getFolderId()){ Site::publicationFolder($landing->getFolderId());} if(!$_1935417068){ Hook::setEditMode(); Hook::publicationSite($landing->getSiteId()); Hook::publicationLanding($landing->getId());} AssetsManager::rebuildWebpackForLanding($landing->getId());  self::blocksPublication($landing, $_1935417068); $_952725244= new BitrixMainTypeDateTime; $_1323641246= Landing::update($landing->getId(), array( ___2100049546(154) => ___2100049546(155), ___2100049546(156) => ___2100049546(157), ___2100049546(158) => $_952725244, ___2100049546(159) => false));  if($_1323641246->isSuccess()){ if(!$GLOBALS['____667334928'][26]($landing->getSiteId(), $_2023037733)){ $_2023037733[]= $landing->getSiteId(); $_1323641246= Site::update($landing->getSiteId(), array( ___2100049546(160) => ___2100049546(161))); if(!$_1323641246->isSuccess()){ $landing->getError()->addFromResult( $_1323641246); return false;}} return true;} else{ $landing->getError()->addFromResult( $_1323641246);} return false;}