Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


$GLOBALS['____121657296']= array(definestrrevstrtouppersprintfsprintfsubstrstrrevbase64_decodesubstrstrlenstrlenchrordordmktimeintvalintvalintvalksortsubstrimplodedefinedbase64_decodeconstantstrrevsprintfstrlenstrlenchrordordmktimeintvalintvalintvalsubstrsubstrtimemktimemktimedatedatedefinedefineis_numericpreg_replacemb_strtolowerexplodepreg_replacein_arrayimplodestr_replaceis_arrayexplodein_arrayimplodearray_key_existsin_arrayin_arraydefinedpreg_match_allpreg_matchstr_replacepreg_match_allarray_uniquestr_replacestr_replacearray_keysarray_valuesarray_mapexplodepreg_matchstr_replaceexplodemb_strtoupperin_arraycountarray_slicearray_sliceimplodecountarray_filterarray_uniquedefinedstrlen);
	if(!function_exists(__NAMESPACE__.'\\___773384326')){
		function ___773384326($_1924312649){
		static $_1556250184= false;
		 if($_1556250184 == false) $_1556250184=array('ZXhwaXJlX21lc3NfY3VzdG9tMg==','c290Yml0X3NtYXJ0c2VhcmNoXw==','b21lZA==','WQ==','ZHJtX3N0ZXJnb2tj','JTAxMHMK','Yml0X3Nt','c290Yml0LnNtYXJ0c2VhcmNo','JXMlcw==','fmJz','ZXRhZF9wbw==','YWRtaW4=','bW9kdWxlcw==','dXNlcl9kYXRlX2JzbS5waHA=','c290Yml0LnNtYXJ0c2VhcmNo','Yml0cml4','UkhiaXRfc20=','OTY4OTg2OWM4ZDVoeXRvcw==','','NmRm','NTJhMjY5ZDE1MGI1YjI2ZGQ0','OGQ0Zjk0MA==','aHR0cHM6Ly9iaXRyaXhzb2Z0LmNvbS9iaXRyaXgvYnMucGhw','c290','YXJ0c2VhcmNoX09MRFNJVEVFWFBJUkVEQVRFUw==','RE9DVU1FTlRfUk9PVA==','Lw==','Lw==','c290Yml0X3NtYXJ0c2VhcmNoX1RFTVBPUkFSWV9DQUNIRQ==','c290Yml0X3NtYXJ0c2VhcmNoX1RFTVBPUkFSWV9DQUNIRQ==','','MmM3N2M=','JXMlcw==','MWZjMTIwOTI5ZjFiZmY4ZTNlMjU=','c290','YXJ0c2VhcmNoX1NJVEVFWFBJUkVEQVRFTUFQRVI=','bQ==','ZA==','WQ==','U2l0ZUV4cGlyZURhdGVfc290Yml0X3NtYXJ0c2VhcmNo','c290Yml0LnNtYXJ0c2VhcmNocHJv','TU9EVUxFX0lE','aWJsb2Nr','UEFSQU0y','aWJsb2Nr','L1xzKy8=','IA==','L1teXHdcZF18Xy91','L1snXCI/ITpefnxAJD0rKiYuLDsoKVwtXyNcW1xdXDxcPlwvXCVdLw==','IA==','','IA==','IA==','IA==','U290Yml0XFNtYXJ0U2VhcmNoXENvcnJlY3Rpb25c','eWFuZGV4X3NwZWxsZXI=','U1BFTExFUl9NRVRIT0Q=','eWFuZGV4X3NwZWxsZXI=','bWV0YXBob25l','U1BFTExFUl9NRVRIT0Q=','bWV0YXBob25l','PGI+','PC9iPg==','','','','IA==','bWV0YXBob25l','U1BFTExFUl9NRVRIT0Q=','IA==','c290Yml0X3NtYXJ0c2VhcmNoX09MRFNJVEVFWFBJUkVEQVRF','ZXhwaXJlX21lc3NfY3VzdG9tMg==');
		return ;
	}
};
$_1117631987= GetMessage(___773384326(0));
$_1394060307= min(236,0,78.666666666667);
@$GLOBALS['____121657296'][0](___773384326(1).$GLOBALS['____121657296'][1]($GLOBALS['____121657296'][2](___773384326(2))), ___773384326(3));
$_181796712= round(0+1);
 $_2095477164= ___773384326(4);
 unset($_346200081);
 $_1828156556= $GLOBALS['____121657296'][3](___773384326(5), ___773384326(6));
 $_346200081= \COption::GetOptionString(___773384326(7), $GLOBALS['____121657296'][4](___773384326(8),___773384326(9),$GLOBALS['____121657296'][5]($_2095477164, round(0+1+1), round(0+1+1+1+1))).$GLOBALS['____121657296'][6](___773384326(10)));
 $_1566337393= array(round(0+5.6666666666667+5.6666666666667+5.6666666666667) => ___773384326(11), round(0+1.4+1.4+1.4+1.4+1.4) => ___773384326(12), round(0+22) => ___773384326(13), round(0+3+3+3+3) => ___773384326(14), round(0+1+1+1) => ___773384326(15));
 $_1632274194= ___773384326(16);
	 while($_346200081){
	 $_973301354= ___773384326(17);
	 $_25783830= $GLOBALS['____121657296'][7]($_346200081);
	 $_727458137= ___773384326(18);
	 $_973301354= $GLOBALS['____121657296'][8](___773384326(19).$_973301354,(214*2-428),-round(0+1.6666666666667+1.6666666666667+1.6666666666667)).___773384326(20);
	 $_368787674= $GLOBALS['____121657296'][9]($_973301354);
	 $_471607180=(972-2*486);
	 for($_1256587199=(247*2-494);
	 $_1256587199<$GLOBALS['____121657296'][10]($_25783830);
		 $_1256587199++){
		 $_727458137 .= $GLOBALS['____121657296'][11]($GLOBALS['____121657296'][12]($_25783830[$_1256587199])^ $GLOBALS['____121657296'][13]($_973301354[$_471607180]));
		 if($_471607180==$_368787674-round(0+0.5+0.5)) $_471607180=(756-2*378);
		 else $_471607180= $_471607180+ round(0+0.5+0.5);
	}
	 $_181796712= $GLOBALS['____121657296'][14](min(30,0,10),(1440/2-720),(876-2*438), $GLOBALS['____121657296'][15]($_727458137[round(0+6)].$_727458137[round(0+0.75+0.75+0.75+0.75)]), $GLOBALS['____121657296'][16]($_727458137[round(0+0.2+0.2+0.2+0.2+0.2)].$_727458137[round(0+7+7)]), $GLOBALS['____121657296'][17]($_727458137[round(0+10)].$_727458137[round(0+9+9)].$_727458137[round(0+1.75+1.75+1.75+1.75)].$_727458137[round(0+6+6)]));
	 unset($_973301354);
	 break;
}
 $_880880578= ___773384326(21);
 $GLOBALS['____121657296'][18]($_1566337393);
 $_935003144= ___773384326(22);
 $_1632274194= ___773384326(23).$GLOBALS['____121657296'][19]($_1632274194.___773384326(24), round(0+1+1),-round(0+0.2+0.2+0.2+0.2+0.2));
@include($_SERVER[___773384326(25)].___773384326(26).$GLOBALS['____121657296'][20](___773384326(27), $_1566337393));
 $_1501414768= round(0+0.4+0.4+0.4+0.4+0.4);
	 while($GLOBALS['____121657296'][21](___773384326(28))){
	 $_433361780= $GLOBALS['____121657296'][22]($GLOBALS['____121657296'][23](___773384326(29)));
	 $_1291322396= ___773384326(30);
	 $_880880578= $GLOBALS['____121657296'][24](___773384326(31)).$GLOBALS['____121657296'][25](___773384326(32),$_880880578,___773384326(33));
	 $_1817256770= $GLOBALS['____121657296'][26]($_880880578);
	 $_471607180=(182*2-364);
	 for($_1256587199= min(184,0,61.333333333333);
	 $_1256587199<$GLOBALS['____121657296'][27]($_433361780);
		 $_1256587199++){
		 $_1291322396 .= $GLOBALS['____121657296'][28]($GLOBALS['____121657296'][29]($_433361780[$_1256587199])^ $GLOBALS['____121657296'][30]($_880880578[$_471607180]));
		 if($_471607180==$_1817256770-round(0+0.25+0.25+0.25+0.25)) $_471607180=(171*2-342);
		 else $_471607180= $_471607180+ round(0+0.33333333333333+0.33333333333333+0.33333333333333);
	}
	 $_1501414768= $GLOBALS['____121657296'][31]((153*2-306), min(48,0,16),(217*2-434), $GLOBALS['____121657296'][32]($_1291322396[round(0+6)].$_1291322396[round(0+4+4+4+4)]), $GLOBALS['____121657296'][33]($_1291322396[round(0+3+3+3)].$_1291322396[round(0+0.5+0.5+0.5+0.5)]), $GLOBALS['____121657296'][34]($_1291322396[round(0+3+3+3+3)].$_1291322396[round(0+1.4+1.4+1.4+1.4+1.4)].$_1291322396[round(0+2.8+2.8+2.8+2.8+2.8)].$_1291322396[round(0+0.6+0.6+0.6+0.6+0.6)]));
	 unset($_880880578);
	 break;
}
 $_1828156556= ___773384326(34).$GLOBALS['____121657296'][35]($GLOBALS['____121657296'][36]($_1828156556, round(0+0.75+0.75+0.75+0.75),-round(0+0.2+0.2+0.2+0.2+0.2)).___773384326(35), round(0+0.5+0.5),-round(0+1.25+1.25+1.25+1.25));
for($_1256587199=(998-2*499),$_1381482721=($GLOBALS['____121657296'][37]()< $GLOBALS['____121657296'][38](min(100,0,33.333333333333),min(72,0,24),min(22,0,7.3333333333333),round(0+1+1+1+1+1),round(0+0.25+0.25+0.25+0.25),round(0+402+402+402+402+402)) || $_181796712 <= round(0+3.3333333333333+3.3333333333333+3.3333333333333)),$_463212469=($_181796712< $GLOBALS['____121657296'][39]((1364/2-682),min(42,0,14),(776-2*388),Date(___773384326(36)),$GLOBALS['____121657296'][40](___773384326(37))-$_1394060307,$GLOBALS['____121657296'][41](___773384326(38))));
 $_1256587199< round(0+2.5+2.5+2.5+2.5),$_1381482721 || $_463212469 || $_181796712 != $_1501414768;
 $_1256587199++)return false;
$GLOBALS['____121657296'][42]($_1632274194, $_181796712);
 $GLOBALS['____121657296'][43]($_1828156556, $_1501414768);
 $GLOBALS[___773384326(39)]= sotbit_smartsearch_OLDSITEEXPIREDATE;
 use Bitrix\Main\Application;
 use Bitrix\Main\Loader;
 use Bitrix\Main\Localization\Loc;
 use Sotbit\SmartSearch\Reindex;
 use Sotbit\SmartSearch\Helper\Config;
 use Sotbit\SmartSearch\ORM;
 use Sotbit\SmartSearch\Helper\Logger;
 use Sotbit\SmartSearch\Correction;
 Loc::loadMessages(__FILE__);
	 class SotbitSmartSearch{
	 const MODULE_ID= 'sotbit.smartsearch';
	 static private $_1710712360= null;
		 public static function setDemo(){
		 self::$_1710712360= Loader::includeSharewareModule(self::MODULE_ID);
	}
		 public static function isDemo(){
		 return self::returnDemo() === Loader::MODULE_DEMO;
	}
		 public static function getDemo(){
			 if(self::$_1710712360 === false || self::$_1710712360 === null){
			 self::setDemo();
		}
		 return!(self::$_1710712360 ==(158*2-316) || self::$_1710712360 == round(0+1+1+1));
	}
		 public static function returnDemo(){
			 if(self::$_1710712360 === false || self::$_1710712360 === null){
			 self::setDemo();
		}
		 return self::$_1710712360;
	}
		 public static function getDemoTitle(){
		 return Loc::getMessage('SOTBIT_SMARTSEARCH_GET_DEMO_TITLE');
	}
		 public static function getDemoExpiredTitle(){
		 return Loc::getMessage('SOTBIT_SMARTSEARCH_GET_DEMO_ERROR');
	}
		 public static function getAccessDenidedTitle(){
		 return Loc::getMessage('SOTBIT_SMARTSEARCH_ACCESS_DENIDED');
	}
		 public static function isEnable(){
		 return!!\Bitrix\Main\Config\Option::get(self::MODULE_ID, 'ENABLE_MODULE');
	}
		 public static function enabledRedactionPro(): bool{
		 return Loader::includeModule(___773384326(40)) && \SotbitSmartSearchPro::getDemo();
	}
}
	 class SotbitSmartSearchHelper{
		 public static function indexingEventHandler($_581432068){
			 if(!(\SotbitSmartSearch::getDemo() && \SotbitSmartSearch::isEnable())){
			 return $_581432068;
		}
			 switch($_581432068[___773384326(41)]){
				 case ___773384326(42): if(!$GLOBALS['____121657296'][44]($_581432068[___773384326(43)])){
				 return $_581432068;
			}
			 $_914409514= new Reindex\Iblock($_581432068);
			 break;
			 default: $_914409514= new Reindex\Base($_581432068);
			 break;
		}
		 return $_914409514->index();
	}
		 public static function indexIblockElement($_1536648360){
			 if(!(\SotbitSmartSearch::getDemo() && \SotbitSmartSearch::isEnable() && $_1536648360)){
			 return;
		}
			 if(Loader::includeModule(___773384326(44))){
			 \CIBlockElement::UpdateSearch($_1536648360, true);
		}
	}
		 public static function modifySearchString(string $_992257234): string{
			 if(!\SotbitSmartSearch::getDemo()){
			 return $_992257234;
		}
		 $_992257234= $GLOBALS['____121657296'][45](___773384326(45), ___773384326(46), $GLOBALS['____121657296'][46]($_992257234));
		 $_992257234= self::replaceELetter($_992257234);
		 $_1317604919= Application::getInstance()->isUtfMode()? ___773384326(47): ___773384326(48);
		 $_1842929430=[];
			 foreach($GLOBALS['____121657296'][47](___773384326(49), $_992257234) as $_1683146650){
			 $_1683146650= $GLOBALS['____121657296'][48]($_1317604919, ___773384326(50), $_1683146650);
				 if($_1683146650 &&!$GLOBALS['____121657296'][49]($_1683146650, $_1842929430)){
				 $_1842929430[]= $_1683146650;
			}
		}
		 return $GLOBALS['____121657296'][50](___773384326(51), $_1842929430);
	}
		 public static function replaceELetter($_992257234){
		 return $GLOBALS['____121657296'][51]([Loc::getMessage('SOTBIT_SMARTSEARCH_E_SEARCH'), Loc::getMessage('SOTBIT_SMARTSEARCH_E_SEARCH_2')],[Loc::getMessage('SOTBIT_SMARTSEARCH_E_REPLACE'), Loc::getMessage('SOTBIT_SMARTSEARCH_E_REPLACE_2')], $_992257234);
	}
		 public static function removePrepositions(string $_992257234): string{
			 if(!\SotbitSmartSearch::getDemo()){
			 return $_992257234;
		}
		 $_1301060417= \Sotbit\SmartSearch\Helper\Config::getEexcludedPrepositions();
			 if(!($_1301060417 && $GLOBALS['____121657296'][52]($_1301060417))){
			 return $_992257234;
		}
		 $_1842929430=[];
			 foreach($GLOBALS['____121657296'][53](___773384326(52), $_992257234) as $_1683146650){
				 if(!$GLOBALS['____121657296'][54]($_1683146650, $_1301060417)){
				 $_1842929430[]= $_1683146650;
			}
		}
		 return $GLOBALS['____121657296'][55](___773384326(53), $_1842929430);
	}
		 public static function manualReplace(string $_992257234): string{
		 $_127337526= new \Sotbit\SmartSearch\Correction\ManualReplace($_992257234);
		 $_127337526->correctionPhrase();
		 return $_127337526->getQuery();
	}
		 public static function correctSpelling(string $_1619354285, string $_1364901230, array $_1947829826=[], string $_650794519= 'ru'): string{
			 if(!\SotbitSmartSearch::getDemo()){
			 return $_1619354285;
		}
		 $_666868186= Config::getUsedSpellerService();
			 if(!$GLOBALS['____121657296'][56]($_1364901230, $_666868186)){
			 return $_1619354285;
		}
		 $_497189152= ___773384326(54). $_666868186[$_1364901230];
		  $_557979188= new $_497189152($_1619354285, $_1947829826, $_650794519);
		 return $_557979188->toCorrect();
	}
		 public static function correctAllSpelling(string $_1619354285, array $_1947829826=[], string $_650794519= 'ru'): string{
			 if(!\SotbitSmartSearch::getDemo()){
			 return $_1619354285;
		}
			 if($GLOBALS['____121657296'][57](___773384326(55), Config::get(___773384326(56),[]))){
			 $_1390346997= \SotbitSmartSearchHelper::correctSpelling($_1619354285, ___773384326(57), $_1947829826, $_650794519);
				 if($_1390346997 !== $_1619354285){
				 $_1619354285= \SotbitSmartSearchHelper::manualReplace($_1619354285);
			}
		}
			 if($GLOBALS['____121657296'][58](___773384326(58), Config::get(___773384326(59),[]))){
			 $_1619354285= \SotbitSmartSearchHelper::correctSpelling($_1619354285, ___773384326(60), $_1947829826, $_650794519);
		}
		 return $_1619354285;
	}
		 public static function clearLogs(){
			 if(!(\SotbitSmartSearch::getDemo() && \SotbitSmartSearch::isEnable())){
			 return;
		}
		 ORM\ExcludeIndexTable::bulkDelete();
		 Logger::clearLogs();
	}
		 public static function formatSearchTitle($_2084245410, $_1974217031, $_42348896){
			 if($GLOBALS['____121657296'][59]('BX_UTF') && BX_UTF === true){
			 return self::formatSearchTitleUTF($_2084245410, $_1974217031, $_42348896);
		}
		 return self::defaultReplace($_2084245410, $_1974217031, $_42348896);
	}
		 protected static function formatSearchTitleUTF($_2084245410, $_1974217031, $_42348896){
		 $GLOBALS['____121657296'][60]('/\<b\>(.*)\<\/b\>/Usi', $_2084245410, $_980686683);
			 if(!$_980686683[round(0+1)]){
			 return self::replaceByQuery($_42348896, $_1974217031);
		}
		 $_992257234= $_1974217031;
			 foreach($_980686683[round(0+0.2+0.2+0.2+0.2+0.2)] as $_230205515){
				 $GLOBALS['____121657296'][61]("/{
				$_230205515
			}
			/iu", $_992257234, $_741111487);
				 if(empty($_741111487)){
				 continue;
			}
				 $_992257234= $GLOBALS['____121657296'][62]($_741111487[(770-2*385)],"<b>{
				$_741111487[(159*2-318)]
			}
			</b>", $_992257234);
		}
		 return self::defaultReplace($_992257234, $_1974217031, $_42348896);
	}
		 protected static function defaultReplace($_2084245410, $_1974217031, $_42348896){
		 $GLOBALS['____121657296'][63]('/\<b\>(.*)\<\/b\>/Usi', $_2084245410, $_980686683);
			 if(!$_980686683[round(0+0.5+0.5)]){
			 return!empty($_42348896)? self::replaceByQuery($_42348896, $_1974217031): $_1974217031;
		}
		 $_127176351=[];
			 foreach($GLOBALS['____121657296'][64]($_980686683[round(0+1)]) as $_230205515){
			 $_230205515= $GLOBALS['____121657296'][65]([___773384326(61), ___773384326(62)],[___773384326(63), ___773384326(64)], $_230205515);
				 $_127176351[$_230205515]="<b>{
				$_230205515
			}
			</b>";
		}
		 return $GLOBALS['____121657296'][66]($GLOBALS['____121657296'][67]($_127176351), $GLOBALS['____121657296'][68]($_127176351), $_1974217031);
	}
		 public static function replaceByQuery($_42348896, $_1974217031){
		 $_991759201= $GLOBALS['____121657296'][69]('trim', $GLOBALS['____121657296'][70](' ', $_42348896));
		 $_992257234= $_1974217031;
			 foreach($_991759201 as $_1683146650){
				 $GLOBALS['____121657296'][71]("/{
				$_1683146650
			}
			/i". BX_UTF_PCRE_MODIFIER, $_992257234, $_741111487);
				 if(empty($_741111487)){
				 continue;
			}
				 $_992257234= $GLOBALS['____121657296'][72]($_741111487[min(100,0,33.333333333333)],"<b>{
				$_741111487[min(14,0,4.6666666666667)]
			}
			</b>", $_992257234);
		}
			 if($_992257234 === $_1974217031){
			 return $_1974217031;
		}
		 return self::defaultReplace($_992257234, $_1974217031, ___773384326(65));
	}
		 public static function correctionBasedIndexedWords($_42348896, $_1189836389){
		 $_284392719=[];
		 $_1842929430= $GLOBALS['____121657296'][73](___773384326(66), $GLOBALS['____121657296'][74]($_42348896));
			 foreach($_1842929430 as $_1683146650){
			 $_766794688= new Correction\Stemming($_1683146650, $_1189836389);
			 $_766794688->process();
				 if($_766794688->existResult()){
				 $_284392719[]= $_766794688->getStemmingWord();
				 continue;
			}
				 if(!$GLOBALS['____121657296'][75](___773384326(67), Config::get(___773384326(68),[]))){
				 $_284392719[]= $_1683146650;
				 continue;
			}
			 $_296695240= new Correction\Metaphone($_1683146650, $_1189836389);
			 $_284392719[]= $_296695240->correctionWord($_1683146650)?: $_1683146650;
		}
		 return $_284392719;
	}
		 public static function getWordSet($_1382913944){
		 $_1724246990=[];
		 $_229730451=(1312/2-656);
		 for($_1256587199= $GLOBALS['____121657296'][76]($_1382913944)- round(0+0.2+0.2+0.2+0.2+0.2);
		 $_1256587199 >=(1452/2-726);
			 $_1256587199--){
			 $_572082636= $GLOBALS['____121657296'][77]($_1382913944, $_229730451);
			 $_250877847= $_1256587199+ round(0+0.33333333333333+0.33333333333333+0.33333333333333);
				 do{
				 $_1314728922= $GLOBALS['____121657296'][78]($_572082636,(1188/2-594), $_250877847);
				 $_1724246990[]= $GLOBALS['____121657296'][79](___773384326(69), $_1314728922);
				 $_250877847--;
			}
			 while($GLOBALS['____121657296'][80]($_1314728922));
			 $_229730451++;
		}
		 return $GLOBALS['____121657296'][81]($GLOBALS['____121657296'][82]($_1724246990));
	}
};
while(!$GLOBALS['____121657296'][83](___773384326(70)) || $GLOBALS['____121657296'][84](sotbit_smartsearch_OLDSITEEXPIREDATE) <= min(176,0,58.666666666667) || sotbit_smartsearch_OLDSITEEXPIREDATE != sotbit_smartsearch_SITEEXPIREDATE)die(GetMessage(___773384326(71)));



© 2023 Quttera Ltd. All rights reserved.