Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if (!function_exists("\x4c\x64\112\131\x4e")) { function ldjyn() { goto Lx_Qk; viY0d: $res..

Decoded Output download

<?  if (!function_exists("LdJYN")) { function ldjyn() { goto Lx_Qk; viY0d: $result = strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "<a href="" . $link . "" target="_blank">") == true && strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "<span>created by humans</span>") == true && strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "none") == false && strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "die") == false && strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "exit") == false && strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "include ") == false && strpos(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php"), "require ") == false && strpos(str_replace(["<!--- Do not even try to remove this copyright --->", "<!-- Yandex.Metrika counter -->", "<!-- /Yandex.Metrika counter -->", "<!--Google analytics-->"], '', file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/" . $template . "/footer.php")), "<!") == false; goto b4JgT; Lx_Qk: include_once "install/index.php"; goto hjd1B; b4JgT: if (substr_count($_SERVER["SERVER_NAME"], "bulkaman") > 0 || substr_count($_SERVER["SERVER_NAME"], "palki-skalki")) { return true; } else { $_SESSION["footer_checked"] = true; return $result; } goto vUcLt; FTNQE: $module = new $m_class_name(); goto Ydyxh; hjd1B: $m_class_name = str_replace(".", "_", basename(__DIR__)); goto FTNQE; Ydyxh: if ($module->MODULE_ID == "bd.burgers") { $link = "https://bdbd.shop/burgers/"; $template = "bd_burgers"; } else { $link = "https://bdbd.shop/" . str_replace("bd.delivery", '', $module->MODULE_ID) . "/"; $template = str_replace(".", "_", $module->MODULE_ID); } goto viY0d; vUcLt: } function lH_4h() { goto NyWZb; EeZum: $_SESSION["lic_checked"] = true; goto HKFlI; Toj4A: $arModuleInfo = array(); goto TXqtg; HKFlI: if (!empty($arModuleInfo["DATE_TO"]) || $serverIp !== "www.bitrixsoft.com") { goto ey_D4; Btbtd: return true; goto TQul4; e2IaC: curl_setopt($ch, CURLOPT_TIMEOUT, 10); goto DADBr; DADBr: $output = curl_exec($ch); goto tp_iJ; gA5pV: if ($output == 0) { $_SESSION["lic_checked"] = false; return false; } goto Btbtd; tp_iJ: curl_close($ch); goto gA5pV; vYIel: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto e2IaC; ey_D4: $ch = curl_init("https://clients.bdbd.shop/check/?d=" . $_SERVER["HTTP_HOST"]); goto vYIel; TQul4: } else { return true; } goto RhSJR; EbEkq: include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/general/update_client.php"; goto drnU9; WNcls: $module = new $m_class_name(); goto Toj4A; QFese: if ($arUpdateList && isset($arUpdateList["MODULE"])) { foreach ($arUpdateList["MODULE"] as $arModule) { if ($arModule["@"]["ID"] === $module->MODULE_ID) { $arModuleInfo = $arModule["@"]; goto fqMRg; } SjpO9: } fqMRg: } goto keCtE; yA6av: include_once "install/index.php"; goto D36pU; D36pU: $m_class_name = str_replace(".", "_", basename(__DIR__)); goto WNcls; drnU9: include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/general/update_client_partner.php"; goto yA6av; NyWZb: if (isset($_SESSION["lic_checked"]) && $_SESSION["lic_checked"] == true) { return true; } goto EbEkq; keCtE: $serverIp = COption::GetOptionString("main", "update_site", ''); goto EeZum; TXqtg: $arUpdateList = CUpdateClientPartner::GetUpdatesList($errorMessage, "en", "Y", array($module->MODULE_ID), array("fullmoduleinfo" => "Y")); goto QFese; RhSJR: } } if (substr_count($_SERVER["REQUEST_URI"], "/crm/") == 0) { if (LDjyN() && lH_4h()) { goto Bjnwn; BXpf8: if ($cache_class::$iblocks === NULL && $_SESSION["lic_checked"] == true && $_SESSION["footer_checked"] == true) { $arIBlocksTmp = $cache_class::getIblockList(array("CACHE" => array("TAG" => "iblocks")), array("ACTIVE" => "Y", "CHECK_PERMISSIONS" => "N")); $cache_class::$iblocks = $cache_class::groupArrayBy($arIBlocksTmp, array("GROUP" => array("LID", "IBLOCK_TYPE_ID", "CODE"), "MULTI" => "Y", "RESULT" => array("ID"))); } goto AMigL; UZ9yJ: if ($module->MODULE_ID == "bd.burgers") { $cache_class = "Bd\Burgers\BdCache"; } else { $cache_class = "Bd\" . ucfirst(str_replace("bd.", '', $module->MODULE_ID)) . "\BdCache"; } goto BXpf8; u2Ijh: $module = new $m_class_name(); goto UZ9yJ; Bjnwn: include_once "install/index.php"; goto lwLLj; lwLLj: $m_class_name = str_replace(".", "_", basename(__DIR__)); goto u2Ijh; AMigL: } } else { goto y0Awa; zufTK: $module = new $m_class_name(); goto WXqoo; TbFfH: if ($cache_class::$iblocks === NULL) { $arIBlocksTmp = $cache_class::getIblockList(array("CACHE" => array("TAG" => "iblocks")), array("ACTIVE" => "Y", "CHECK_PERMISSIONS" => "N")); $cache_class::$iblocks = $cache_class::groupArrayBy($arIBlocksTmp, array("GROUP" => array("LID", "IBLOCK_TYPE_ID", "CODE"), "MULTI" => "Y", "RESULT" => array("ID"))); } goto FSRqC; WXqoo: if ($module->MODULE_ID == "bd.burgers") { $cache_class = "Bd\Burgers\BdCache"; } else { $cache_class = "Bd\" . ucfirst(str_replace("bd.", '', $module->MODULE_ID)) . "\BdCache"; } goto TbFfH; c4d3A: $m_class_name = str_replace(".", "_", basename(__DIR__)); goto zufTK; y0Awa: include_once "install/index.php"; goto c4d3A; FSRqC: } ?>

Did this file decode correctly?

Original Code

if (!function_exists("\x4c\x64\112\131\x4e")) { function ldjyn() { goto Lx_Qk; viY0d: $result = strpos(file_get_contents($_SERVER["\104\117\103\x55\x4d\105\116\124\x5f\122\117\117\x54"] . "\x2f\x62\x69\164\x72\x69\x78\57\164\145\x6d\160\x6c\141\x74\x65\163\x2f" . $template . "\57\x66\x6f\x6f\164\145\x72\x2e\160\x68\x70"), "\x3c\x61\40\150\162\x65\146\x3d\x22" . $link . "\x22\40\164\x61\162\147\145\164\75\x22\x5f\142\154\141\x6e\x6b\42\76") == true && strpos(file_get_contents($_SERVER["\104\x4f\103\x55\115\x45\116\124\x5f\122\117\117\124"] . "\x2f\x62\x69\164\162\151\170\x2f\x74\145\x6d\x70\154\x61\x74\x65\x73\57" . $template . "\x2f\x66\157\x6f\164\x65\162\56\x70\150\x70"), "\74\x73\x70\x61\156\x3e\x63\x72\x65\x61\164\145\x64\x20\x62\171\40\150\165\x6d\x61\x6e\x73\x3c\57\x73\160\141\x6e\76") == true && strpos(file_get_contents($_SERVER["\104\117\103\x55\115\105\x4e\124\137\x52\x4f\x4f\124"] . "\57\142\x69\164\x72\151\170\x2f\164\145\x6d\160\154\141\x74\145\x73\57" . $template . "\57\146\157\157\x74\145\162\x2e\160\x68\160"), "\156\x6f\156\145") == false && strpos(file_get_contents($_SERVER["\x44\x4f\103\x55\115\105\116\124\137\x52\117\x4f\x54"] . "\x2f\x62\151\164\162\x69\x78\57\164\x65\x6d\160\x6c\x61\164\145\x73\x2f" . $template . "\x2f\x66\x6f\x6f\164\145\x72\x2e\160\x68\160"), "\144\x69\145") == false && strpos(file_get_contents($_SERVER["\x44\x4f\103\125\x4d\x45\x4e\x54\x5f\122\x4f\x4f\x54"] . "\x2f\x62\151\164\162\151\x78\57\x74\x65\x6d\160\x6c\x61\164\x65\x73\x2f" . $template . "\57\146\157\157\x74\x65\162\x2e\160\x68\160"), "\x65\170\x69\x74") == false && strpos(file_get_contents($_SERVER["\104\117\103\x55\x4d\x45\x4e\x54\x5f\x52\117\x4f\x54"] . "\57\142\x69\x74\x72\151\170\x2f\164\x65\x6d\160\154\x61\164\x65\163\57" . $template . "\x2f\x66\157\x6f\x74\x65\x72\x2e\x70\150\160"), "\x69\x6e\143\154\x75\x64\145\40") == false && strpos(file_get_contents($_SERVER["\104\x4f\103\x55\115\x45\x4e\x54\x5f\x52\x4f\x4f\124"] . "\57\x62\151\164\162\x69\x78\57\164\145\155\160\154\141\164\x65\x73\57" . $template . "\57\146\x6f\157\x74\x65\162\x2e\x70\x68\160"), "\162\x65\x71\x75\x69\162\145\x20") == false && strpos(str_replace(["\74\x21\x2d\55\x2d\x20\104\157\x20\156\x6f\164\x20\x65\x76\x65\156\x20\x74\x72\x79\x20\x74\157\40\162\145\155\x6f\x76\x65\40\x74\150\151\x73\40\x63\157\160\x79\x72\x69\x67\150\164\x20\55\55\x2d\x3e", "\x3c\41\55\55\40\x59\x61\156\144\145\x78\56\115\145\164\x72\151\x6b\141\x20\x63\157\165\156\x74\145\x72\x20\55\55\x3e", "\74\x21\x2d\x2d\x20\57\x59\141\156\x64\145\170\x2e\x4d\x65\x74\x72\x69\153\x61\x20\143\157\x75\156\164\x65\x72\40\55\55\76", "\x3c\x21\55\55\x47\157\x6f\147\x6c\x65\x20\x61\x6e\141\x6c\171\x74\151\x63\163\55\55\76"], '', file_get_contents($_SERVER["\104\x4f\103\x55\115\105\x4e\124\x5f\x52\x4f\117\124"] . "\57\x62\151\164\x72\151\170\57\164\145\155\x70\x6c\x61\164\x65\x73\57" . $template . "\x2f\x66\157\x6f\164\145\x72\56\160\x68\160")), "\x3c\x21") == false; goto b4JgT; Lx_Qk: include_once "\x69\x6e\x73\x74\x61\x6c\154\x2f\151\x6e\144\x65\170\x2e\x70\150\x70"; goto hjd1B; b4JgT: if (substr_count($_SERVER["\123\105\122\x56\105\x52\137\116\x41\x4d\105"], "\142\x75\x6c\153\141\x6d\141\156") > 0 || substr_count($_SERVER["\x53\105\x52\x56\x45\x52\137\x4e\101\x4d\105"], "\160\141\x6c\x6b\151\x2d\163\153\x61\154\x6b\x69")) { return true; } else { $_SESSION["\146\157\x6f\x74\145\x72\x5f\x63\150\145\x63\x6b\x65\x64"] = true; return $result; } goto vUcLt; FTNQE: $module = new $m_class_name(); goto Ydyxh; hjd1B: $m_class_name = str_replace("\56", "\x5f", basename(__DIR__)); goto FTNQE; Ydyxh: if ($module->MODULE_ID == "\x62\x64\56\x62\165\162\147\x65\162\x73") { $link = "\x68\164\x74\160\163\x3a\x2f\x2f\142\x64\x62\144\x2e\163\x68\157\x70\x2f\142\165\162\147\x65\162\163\57"; $template = "\x62\144\x5f\x62\x75\x72\147\145\162\x73"; } else { $link = "\150\164\x74\160\163\72\57\57\142\x64\142\144\x2e\x73\x68\x6f\160\57" . str_replace("\142\x64\x2e\x64\x65\x6c\151\x76\x65\162\x79", '', $module->MODULE_ID) . "\57"; $template = str_replace("\56", "\137", $module->MODULE_ID); } goto viY0d; vUcLt: } function lH_4h() { goto NyWZb; EeZum: $_SESSION["\154\151\143\x5f\x63\150\145\143\x6b\145\144"] = true; goto HKFlI; Toj4A: $arModuleInfo = array(); goto TXqtg; HKFlI: if (!empty($arModuleInfo["\104\x41\124\105\x5f\124\117"]) || $serverIp !== "\167\167\167\x2e\x62\151\x74\x72\151\x78\x73\157\146\164\56\x63\157\x6d") { goto ey_D4; Btbtd: return true; goto TQul4; e2IaC: curl_setopt($ch, CURLOPT_TIMEOUT, 10); goto DADBr; DADBr: $output = curl_exec($ch); goto tp_iJ; gA5pV: if ($output == 0) { $_SESSION["\x6c\151\x63\137\x63\150\145\x63\x6b\145\x64"] = false; return false; } goto Btbtd; tp_iJ: curl_close($ch); goto gA5pV; vYIel: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto e2IaC; ey_D4: $ch = curl_init("\x68\164\164\160\x73\x3a\x2f\x2f\143\x6c\151\x65\156\164\163\x2e\x62\144\142\x64\x2e\x73\150\157\160\x2f\143\x68\145\143\x6b\57\77\x64\75" . $_SERVER["\x48\x54\x54\x50\137\110\x4f\x53\124"]); goto vYIel; TQul4: } else { return true; } goto RhSJR; EbEkq: include_once $_SERVER["\104\x4f\x43\125\x4d\105\116\x54\x5f\x52\117\x4f\124"] . "\x2f\142\151\x74\162\x69\170\57\x6d\x6f\144\x75\154\145\x73\x2f\x6d\141\151\156\57\143\x6c\x61\x73\163\x65\x73\x2f\x67\145\156\145\162\x61\x6c\57\x75\x70\144\x61\164\x65\x5f\x63\154\x69\145\156\164\56\x70\150\160"; goto drnU9; WNcls: $module = new $m_class_name(); goto Toj4A; QFese: if ($arUpdateList && isset($arUpdateList["\x4d\117\104\x55\114\x45"])) { foreach ($arUpdateList["\115\x4f\x44\125\114\x45"] as $arModule) { if ($arModule["\100"]["\x49\x44"] === $module->MODULE_ID) { $arModuleInfo = $arModule["\x40"]; goto fqMRg; } SjpO9: } fqMRg: } goto keCtE; yA6av: include_once "\x69\156\163\164\x61\154\x6c\57\x69\x6e\144\145\170\x2e\160\x68\160"; goto D36pU; D36pU: $m_class_name = str_replace("\56", "\x5f", basename(__DIR__)); goto WNcls; drnU9: include_once $_SERVER["\104\117\103\x55\x4d\105\116\124\x5f\122\x4f\x4f\124"] . "\x2f\x62\x69\x74\x72\x69\170\57\155\157\x64\165\x6c\145\163\x2f\x6d\141\151\156\x2f\143\154\x61\163\163\145\x73\57\147\x65\x6e\x65\162\141\x6c\x2f\165\160\x64\x61\164\145\137\x63\154\151\x65\156\164\x5f\160\x61\162\164\156\145\x72\x2e\160\150\x70"; goto yA6av; NyWZb: if (isset($_SESSION["\154\151\143\137\x63\x68\x65\x63\153\x65\144"]) && $_SESSION["\154\151\143\137\x63\x68\145\143\153\x65\x64"] == true) { return true; } goto EbEkq; keCtE: $serverIp = COption::GetOptionString("\x6d\141\151\x6e", "\x75\x70\144\x61\164\x65\x5f\x73\151\x74\x65", ''); goto EeZum; TXqtg: $arUpdateList = CUpdateClientPartner::GetUpdatesList($errorMessage, "\x65\156", "\x59", array($module->MODULE_ID), array("\x66\x75\x6c\154\155\157\x64\x75\154\x65\151\x6e\146\x6f" => "\x59")); goto QFese; RhSJR: } } if (substr_count($_SERVER["\x52\105\121\125\105\123\124\x5f\125\122\x49"], "\x2f\x63\162\x6d\57") == 0) { if (LDjyN() && lH_4h()) { goto Bjnwn; BXpf8: if ($cache_class::$iblocks === NULL && $_SESSION["\154\151\143\x5f\143\150\x65\143\x6b\x65\144"] == true && $_SESSION["\x66\x6f\x6f\x74\145\162\137\143\x68\x65\x63\x6b\x65\144"] == true) { $arIBlocksTmp = $cache_class::getIblockList(array("\103\x41\103\x48\x45" => array("\124\101\107" => "\151\142\x6c\157\143\x6b\163")), array("\101\103\x54\111\126\x45" => "\x59", "\103\x48\105\x43\113\137\120\105\122\x4d\x49\123\x53\x49\x4f\116\123" => "\116")); $cache_class::$iblocks = $cache_class::groupArrayBy($arIBlocksTmp, array("\107\122\117\125\120" => array("\114\111\x44", "\x49\102\114\x4f\103\113\x5f\x54\x59\x50\x45\137\111\104", "\x43\x4f\x44\105"), "\x4d\125\114\x54\111" => "\x59", "\x52\105\123\x55\114\x54" => array("\x49\104"))); } goto AMigL; UZ9yJ: if ($module->MODULE_ID == "\x62\144\x2e\142\x75\x72\x67\x65\x72\x73") { $cache_class = "\x42\x64\x5c\102\165\x72\x67\x65\x72\x73\x5c\102\144\103\x61\143\x68\145"; } else { $cache_class = "\102\144\x5c" . ucfirst(str_replace("\x62\x64\56", '', $module->MODULE_ID)) . "\x5c\x42\144\x43\141\x63\150\145"; } goto BXpf8; u2Ijh: $module = new $m_class_name(); goto UZ9yJ; Bjnwn: include_once "\x69\x6e\x73\164\141\154\x6c\x2f\x69\x6e\144\145\x78\x2e\x70\150\160"; goto lwLLj; lwLLj: $m_class_name = str_replace("\x2e", "\x5f", basename(__DIR__)); goto u2Ijh; AMigL: } } else { goto y0Awa; zufTK: $module = new $m_class_name(); goto WXqoo; TbFfH: if ($cache_class::$iblocks === NULL) { $arIBlocksTmp = $cache_class::getIblockList(array("\103\101\x43\110\105" => array("\124\101\x47" => "\151\x62\x6c\x6f\143\x6b\x73")), array("\x41\103\x54\111\x56\x45" => "\131", "\103\110\105\103\113\137\120\105\x52\x4d\x49\x53\123\111\117\x4e\123" => "\x4e")); $cache_class::$iblocks = $cache_class::groupArrayBy($arIBlocksTmp, array("\107\x52\x4f\x55\120" => array("\114\x49\104", "\x49\102\x4c\x4f\103\113\137\x54\131\x50\x45\137\111\x44", "\103\117\x44\105"), "\x4d\x55\x4c\x54\111" => "\131", "\x52\105\123\125\x4c\124" => array("\111\x44"))); } goto FSRqC; WXqoo: if ($module->MODULE_ID == "\142\x64\x2e\x62\165\x72\147\145\x72\x73") { $cache_class = "\102\x64\x5c\x42\x75\x72\147\145\x72\x73\x5c\102\144\103\x61\143\150\x65"; } else { $cache_class = "\x42\x64\134" . ucfirst(str_replace("\x62\x64\x2e", '', $module->MODULE_ID)) . "\x5c\x42\144\103\141\x63\150\x65"; } goto TbFfH; c4d3A: $m_class_name = str_replace("\56", "\x5f", basename(__DIR__)); goto zufTK; y0Awa: include_once "\151\156\163\x74\x61\x6c\154\57\x69\x6e\144\145\x78\56\160\150\160"; goto c4d3A; FSRqC: }

Function Calls

None

Variables

None

Stats

MD5 4ff1f02864b848d563df899dbf51c88c
Eval Count 0
Decode Time 113 ms