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

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Cart2Quote\License\Files; final class Alterations { public static $HMkS0..

Decoded Output download

<?php 
 namespace Cart2Quote\License\Files; final class Alterations { public static $HMkS0 = true; private $ODKRx; private $AXaJC = array("\Magento\Framework\Interception\PluginList\PluginList" => array("locations" => array("/vendor/magento/framework/Interception/PluginList/PluginList.php", "/lib/internal/Magento/Framework/Interception/PluginList/PluginList.php", "/app/code/Magento/Framework/Interception/PluginList/PluginList.php"), "regex" => "/(.*)(\}[^\}]*$)/s", "replace" => "$1" . "
" . "/**
                * @param $type
                * @return bool
                */
                public function isPluginLoaded($type, $instance){   
                    if (isset($this->_data[$type])) {\xa                        foreach ($this->_data[$type] as $key => $plugins) {
                            if (isset($plugins['instance']) && $instance == $plugins['instance']) {
                                return true;
                            }\xa                        }\xa                    }\xa        
                    return false;
                }" . "\xa" . "$2"), "\Magento\Framework\ObjectManager\Config\Reader\Dom" => array("locations" => array("/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php", "/lib/internal/Magento/Framework/ObjectManager/Config/Reader/Dom.php", "/app/code/Magento/Framework/ObjectManager/Config/Reader/Dom.php"), "regex" => "/(.*)(\}[^\}]*$)/s", "replace" => "$1" . "	" . "/**
                 * @param array $fileList
                 *
                 * @return array\xa                 * @throws \Magento\Framework\Exception\LocalizedException\xa                 */\xa                public function read($scope = null)\xa                {\xa                    $output = parent::read($scope);\xa            
                    $output = $this->addDefaultPlugins($scope, $output);\xa                    $output = $this->addDefaultTypes($scope, $output);\xa            \xa                    return $output;\xa                }\xa            
                /**\xa                 * @param $scope
                 * @param $output
                 *
                 * @return array
                 */\xa                final private function addDefaultTypes($scope, $output)\xa                {
                    $output['preferences'][\Cart2Quote\Quotation\Helper\Data\License::class] = \Cart2Quote\License\Helper\Data\License::class;
            \xa                    return $output;
                }\xa            \xa                /**\xa                 * @param $scope
                 * @param $output
                 *\xa                 * @return array
                 */
                final private function addDefaultPlugins($scope, $output)\xa                {\xa                    if (!defined("TESTS_TEMP_DIR") && !defined("INTEGRATION_TESTS_DIR")) {
                        $output = array_merge_recursive(\xa                            $output,
                            \Cart2Quote\Features\Feature\FeatureList::getInstance($this)->getAllPlugins()
                        );
                    }\xa            
                    return $output;
                }" . "
" . "$2")); public final function getMagentoRoot() { goto Lh6a2; UbHL8: Udb1r: goto SZXLX; SZXLX: if (!defined("BP")) { goto inDPA; } goto TD5Db; QW4r_: $hbviE = realpath(__DIR__ . "/../../../../../index.php"); goto o9Dtm; Z2cNq: Q1zTD: goto h7qeB; IS7oa: $x936p = realpath(__DIR__ . "/../../../../index.php"); goto MM_pe; MM_pe: if (!file_exists($x936p)) { goto Q1zTD; } goto I2XeX; qOVUv: inDPA: goto BtZFU; w7RHk: return realpath($GLOBALS["magentoRoot"]); goto UbHL8; o9Dtm: if (!file_exists($hbviE)) { goto TP8T_; } goto ZC42u; BtZFU: if (!defined("ECE_BP")) { goto mzZCI; } goto sRKcu; a3FKU: mzZCI: goto QW4r_; TD5Db: return realpath(BP); goto qOVUv; h7qeB: throw new \Exception(sprintf("Magento root directory could not be resolved")); goto soyQf; sRKcu: return realpath(ECE_BP . "/../../../"); goto a3FKU; Lh6a2: if (!isset($GLOBALS["magentoRoot"])) { goto Udb1r; } goto w7RHk; ZC42u: return dirname($hbviE); goto DMtvR; I2XeX: return dirname($x936p); goto Z2cNq; DMtvR: TP8T_: goto IS7oa; soyQf: } public final function __construct() { $this->ODKRx = new \Magento\Framework\Math\Random(); } public static final function register() { $WluN5 = self::getInstance(); $WluN5->addAlterations(); } public static final function getInstance() { goto Dlh16; WzHhj: aKNUT: goto MUfyz; MUfyz: return $WluN5; goto VafDD; f3bnX: $WluN5 = new self(); goto WzHhj; aTtMl: if (!($WluN5 === null)) { goto aKNUT; } goto f3bnX; Dlh16: static $WluN5 = null; goto aTtMl; VafDD: } public final function addAlterations() { foreach ($this->AXaJC as $jZ0O6 => $Bfk15) { goto E73cA; WPzay: $prfHu = $this->getTempPath($this->getRandomTempFileName()); goto pNCI0; nauJ2: if (!$this->writeToFile($prfHu, $iVY54, $mS7wa)) { goto XWKVp; } goto RwDNN; uqn7X: if (isset($prfHu)) { goto c1hII; } goto F38mT; cvMwJ: smlqn: goto uqn7X; FzkO_: list($mS7wa, $iVY54) = $this->alterContentByRegex($prfHu, $Bfk15["regex"], $Bfk15["replace"]); goto VNU_y; yDKmH: OEMPR: goto K7RcD; F38mT: throw new \Exception(sprintf("File could not be found for %s", $jZ0O6)); goto CpI55; E73cA: foreach ($Bfk15["locations"] as $bqAXc) { goto V1xSG; eFLNM: $prfHu = $Q6WmI; goto XJOQm; XJOQm: goto smlqn; goto EpNtu; V1xSG: $Q6WmI = $this->getMagentoRoot() . $bqAXc; goto Cveot; KdLDh: JF90h: goto lopz2; Cveot: if (!\file_exists($Q6WmI)) { goto F0Lzv; } goto eFLNM; EpNtu: F0Lzv: goto KdLDh; lopz2: } goto cvMwJ; CpI55: c1hII: goto FzkO_; RwDNN: $this->includeFile($prfHu); goto uKIYp; VNU_y: if (!self::$HMkS0) { goto B4VBP; } goto WPzay; uKIYp: XWKVp: goto yDKmH; pNCI0: B4VBP: goto nauJ2; K7RcD: } ctW4A: } public final function alterContentByRegex($prfHu, $Dzt_i, $sr4Dt) { goto c2W_9; c2W_9: $mS7wa = \file_get_contents($prfHu, FILE_USE_INCLUDE_PATH); goto fJZQM; soWRQ: return [$mS7wa, $iVY54]; goto yAYXu; fJZQM: $iVY54 = \preg_replace($Dzt_i, $sr4Dt, $mS7wa); goto soWRQ; yAYXu: } public final function getTempPath($jZ0O6) { return sprintf("%s" . DIRECTORY_SEPARATOR . "%s", rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR), ltrim($jZ0O6, DIRECTORY_SEPARATOR)); } public final function getRandomTempFileName() { return sprintf("c2q_%s.php", $this->ODKRx->getRandomString(10, \Magento\Framework\Math\Random::CHARS_LOWERS)); } public final function writeToFile($Q6WmI, $npaQw, $hg5rh) { goto jlQoU; ZLrWQ: if (!(file_put_contents($Q6WmI, $npaQw) > 0)) { goto vQdUI; } goto PEhmE; PEhmE: return true; goto sMJqr; v_j0r: DmB_r: goto y5TES; ibizq: aaYF9: goto yx3GQ; y5TES: register_shutdown_function(function () use($Q6WmI) { goto Glh3o; AUBSC: unlink($Q6WmI); goto SR6bp; SR6bp: q1lrz: goto H9g7y; Glh3o: if (!file_exists($Q6WmI)) { goto q1lrz; } goto AUBSC; H9g7y: }); goto xaq6M; lKgZC: if (!($npaQw !== $hg5rh && !empty($npaQw))) { goto aaYF9; } goto ZLrWQ; yx3GQ: return false; goto A2lUu; sMJqr: vQdUI: goto ibizq; jlQoU: if (self::$HMkS0) { goto DmB_r; } goto fXQwr; fXQwr: register_shutdown_function(function () use($Q6WmI, $hg5rh) { goto xtzES; xtzES: if (!file_exists($Q6WmI)) { goto KtgY0; } goto YU_yN; YU_yN: file_put_contents($Q6WmI, $hg5rh); goto Oi_m7; Oi_m7: KtgY0: goto HxhZZ; HxhZZ: }); goto ygyle; ygyle: goto zwHmk; goto v_j0r; xaq6M: zwHmk: goto lKgZC; A2lUu: } public final function includeFile($prfHu) { goto VMoGL; VMoGL: if ($prfHu !== false && \file_exists($prfHu)) { goto RE24M; } goto ws8Bl; Hn3wl: include_once $prfHu; goto Cdddk; ws8Bl: throw new \Exception(sprintf("File %s not found", $prfHu)); goto yTVMY; yTVMY: goto JJt0F; goto rMRbF; rMRbF: RE24M: goto Hn3wl; Cdddk: JJt0F: goto cu8qb; cu8qb: } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace Cart2Quote\License\Files; final class Alterations { public static $HMkS0 = true; private $ODKRx; private $AXaJC = array("\134\x4d\x61\147\x65\156\x74\x6f\134\106\162\x61\x6d\x65\x77\157\162\x6b\134\111\x6e\x74\x65\x72\x63\x65\160\164\151\157\x6e\134\120\x6c\165\147\x69\156\114\151\x73\x74\134\x50\x6c\165\x67\x69\x6e\x4c\151\x73\164" => array("\154\157\x63\x61\x74\151\x6f\156\163" => array("\x2f\166\x65\156\x64\157\x72\x2f\155\x61\147\145\x6e\x74\x6f\x2f\x66\162\141\155\145\x77\x6f\x72\153\x2f\111\156\164\x65\x72\x63\x65\160\164\151\157\156\x2f\x50\x6c\165\x67\x69\x6e\114\x69\x73\x74\x2f\x50\x6c\x75\147\151\156\114\x69\x73\x74\x2e\160\150\160", "\57\154\x69\142\x2f\x69\156\164\x65\x72\x6e\141\154\x2f\115\141\147\145\156\164\157\x2f\x46\162\141\x6d\145\167\157\x72\153\x2f\111\156\164\x65\162\143\145\x70\x74\x69\157\156\x2f\120\x6c\165\x67\151\156\x4c\151\x73\x74\57\120\154\165\x67\x69\156\x4c\x69\x73\x74\x2e\160\x68\160", "\57\x61\160\x70\57\143\157\144\145\x2f\115\141\147\145\x6e\164\x6f\57\x46\162\x61\x6d\x65\x77\157\162\x6b\x2f\x49\156\x74\145\162\143\145\x70\164\151\x6f\156\x2f\120\x6c\165\147\x69\x6e\114\151\163\164\57\x50\x6c\x75\147\151\x6e\x4c\x69\163\164\x2e\x70\150\160"), "\x72\145\147\145\x78" => "\57\50\x2e\52\51\x28\134\x7d\133\x5e\134\175\x5d\52\x24\51\x2f\163", "\162\145\160\x6c\141\143\x65" => "\44\61" . "\12" . "\x2f\x2a\52\12\x20\40\40\x20\40\x20\x20\x20\40\40\40\40\40\40\40\40\x2a\40\100\160\141\162\x61\x6d\40\x24\x74\x79\x70\145\12\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\x2a\40\x40\x72\x65\164\165\x72\x6e\40\142\157\x6f\x6c\12\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\40\40\40\x2a\x2f\12\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\40\x70\x75\x62\x6c\151\x63\40\146\165\156\x63\164\x69\x6f\x6e\x20\151\163\x50\x6c\x75\147\151\156\x4c\157\141\x64\x65\x64\50\x24\164\171\160\145\x2c\x20\x24\x69\x6e\x73\164\141\x6e\x63\145\x29\x7b\x20\40\40\12\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\40\40\40\151\x66\x20\x28\151\163\163\145\164\x28\x24\164\150\151\163\55\x3e\137\x64\141\164\141\133\x24\164\x79\160\145\135\x29\51\x20\x7b\xa\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\40\x20\40\x20\x20\146\157\162\145\141\143\x68\40\x28\x24\164\150\x69\163\55\x3e\137\x64\141\164\x61\133\44\164\x79\160\x65\135\x20\141\163\40\x24\x6b\x65\171\40\x3d\76\x20\x24\160\154\165\147\151\156\163\x29\40\173\12\40\40\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x69\146\x20\x28\151\163\163\x65\164\50\44\x70\x6c\x75\147\151\x6e\163\133\47\151\x6e\x73\164\141\156\x63\x65\47\x5d\51\x20\46\46\x20\44\x69\156\x73\x74\x61\x6e\x63\145\40\75\x3d\40\x24\x70\154\x75\x67\x69\156\163\x5b\47\151\x6e\x73\164\x61\x6e\x63\145\x27\x5d\x29\40\x7b\12\40\x20\40\x20\40\40\40\40\x20\40\40\40\40\40\40\40\40\x20\40\x20\40\40\x20\40\40\x20\x20\40\40\x20\40\40\162\x65\164\165\162\x6e\40\164\162\x75\x65\x3b\12\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\175\xa\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\175\xa\x20\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\40\40\x20\40\x20\175\xa\40\x20\x20\40\40\x20\x20\x20\12\x20\40\40\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x72\145\x74\165\162\x6e\x20\x66\x61\154\x73\x65\73\12\x20\40\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\x20\x7d" . "\xa" . "\x24\62"), "\x5c\x4d\141\x67\x65\x6e\164\x6f\x5c\106\x72\x61\155\145\167\157\x72\153\x5c\117\142\x6a\x65\x63\164\115\141\156\141\147\x65\162\134\103\157\x6e\x66\151\147\x5c\122\x65\x61\x64\145\162\x5c\104\x6f\x6d" => array("\x6c\157\143\141\x74\151\x6f\156\163" => array("\x2f\x76\x65\156\144\x6f\162\x2f\155\x61\x67\145\156\164\157\57\x66\x72\141\155\145\x77\157\x72\x6b\57\x4f\142\x6a\145\143\164\x4d\x61\156\x61\x67\x65\162\57\x43\x6f\x6e\146\x69\x67\57\x52\145\x61\x64\145\x72\57\x44\x6f\x6d\56\x70\x68\x70", "\x2f\x6c\151\142\x2f\151\x6e\164\145\x72\x6e\x61\154\57\115\141\x67\x65\156\x74\x6f\57\x46\162\141\155\145\167\x6f\x72\x6b\57\x4f\142\152\145\143\x74\115\x61\156\x61\x67\145\162\57\x43\x6f\156\146\151\x67\x2f\122\145\141\144\x65\162\x2f\x44\157\x6d\56\x70\150\x70", "\x2f\x61\160\x70\57\143\157\144\x65\x2f\x4d\141\x67\x65\x6e\x74\157\57\x46\162\x61\155\x65\x77\x6f\x72\153\x2f\117\142\152\145\143\x74\x4d\141\156\141\x67\x65\x72\x2f\103\x6f\x6e\146\x69\x67\57\x52\145\141\x64\145\162\x2f\x44\157\155\x2e\160\150\x70"), "\x72\x65\x67\145\170" => "\x2f\50\x2e\52\51\50\x5c\x7d\133\136\134\175\135\52\x24\51\x2f\x73", "\162\x65\160\154\x61\x63\145" => "\44\x31" . "\11" . "\57\52\x2a\12\40\40\40\40\40\40\x20\x20\40\40\x20\40\40\40\x20\x20\40\52\x20\x40\x70\141\x72\x61\155\x20\x61\x72\162\141\171\x20\x24\146\x69\x6c\x65\114\151\x73\164\12\40\40\x20\40\40\x20\40\40\40\40\x20\40\x20\40\x20\x20\40\x2a\12\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\x20\x2a\40\100\162\x65\x74\165\162\156\40\141\162\162\x61\x79\xa\40\x20\40\40\x20\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\x2a\40\x40\x74\150\162\157\x77\163\x20\x5c\115\141\x67\145\x6e\164\157\x5c\106\162\x61\155\145\x77\157\162\x6b\134\105\170\143\x65\x70\x74\151\x6f\156\x5c\114\x6f\143\141\x6c\151\172\x65\144\x45\x78\x63\x65\x70\x74\151\157\x6e\xa\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\40\40\x2a\57\xa\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x70\x75\x62\x6c\x69\x63\40\146\x75\156\x63\164\151\157\x6e\40\162\x65\x61\144\x28\44\163\143\x6f\x70\x65\40\75\x20\156\165\154\154\x29\xa\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\40\x7b\xa\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\40\40\40\x20\x24\157\x75\164\160\x75\164\x20\x3d\x20\x70\141\162\145\156\x74\x3a\x3a\x72\145\x61\x64\x28\x24\163\x63\157\160\145\x29\73\xa\40\40\x20\x20\40\x20\x20\x20\40\40\40\40\12\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\40\x20\x20\x24\x6f\165\164\x70\x75\164\x20\75\40\x24\164\x68\x69\163\x2d\76\x61\x64\x64\104\x65\146\x61\x75\x6c\x74\120\154\x75\147\151\x6e\163\50\44\163\x63\157\x70\x65\54\x20\44\x6f\x75\164\160\x75\x74\x29\73\xa\40\x20\x20\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\44\x6f\x75\164\x70\x75\164\x20\x3d\x20\44\164\150\x69\163\x2d\x3e\x61\x64\x64\104\145\146\141\x75\x6c\164\124\x79\x70\x65\163\x28\x24\163\x63\x6f\x70\145\54\40\x24\157\165\164\x70\165\x74\51\x3b\xa\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\xa\40\40\x20\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\162\x65\x74\165\x72\x6e\40\x24\157\x75\164\160\165\164\73\xa\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\40\40\x20\x7d\xa\40\x20\40\40\x20\40\40\x20\x20\40\40\40\12\x20\40\40\40\x20\x20\40\40\40\40\40\x20\x20\x20\40\40\x2f\52\x2a\xa\40\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\x20\52\40\x40\160\x61\x72\141\x6d\x20\44\163\143\x6f\x70\145\12\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\52\40\100\x70\141\162\x61\155\40\x24\157\x75\164\160\165\x74\12\x20\40\40\x20\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\40\52\12\x20\x20\40\x20\40\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\x2a\40\x40\x72\x65\x74\165\x72\x6e\x20\141\162\x72\x61\x79\12\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\40\x2a\x2f\xa\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\x66\151\x6e\141\x6c\x20\160\162\151\x76\x61\x74\x65\40\x66\x75\x6e\143\x74\x69\157\x6e\40\141\144\x64\x44\x65\x66\x61\x75\x6c\164\124\171\x70\x65\x73\50\x24\163\x63\x6f\x70\x65\54\40\x24\157\165\x74\x70\x75\164\51\xa\40\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\173\12\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\x24\x6f\x75\164\x70\x75\x74\x5b\x27\160\x72\x65\x66\x65\162\145\x6e\x63\145\x73\47\135\133\134\x43\141\162\164\62\x51\x75\157\164\x65\x5c\x51\165\x6f\164\141\x74\151\157\156\134\x48\145\x6c\x70\x65\x72\134\104\141\x74\141\134\x4c\x69\x63\145\156\x73\x65\x3a\x3a\143\154\x61\x73\x73\135\x20\x3d\x20\x5c\103\141\x72\x74\x32\x51\x75\157\x74\145\x5c\x4c\x69\143\x65\x6e\163\145\x5c\x48\145\x6c\x70\x65\162\x5c\104\x61\164\x61\134\114\151\143\145\156\163\x65\x3a\72\x63\154\x61\163\x73\x3b\12\40\40\x20\40\x20\x20\x20\x20\x20\40\40\40\xa\40\40\x20\x20\x20\40\x20\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\40\x72\145\164\x75\162\156\x20\x24\x6f\x75\x74\160\165\164\73\12\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\175\xa\40\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\xa\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\57\x2a\52\xa\x20\40\40\x20\40\40\40\40\40\x20\x20\x20\x20\x20\x20\40\40\52\x20\x40\x70\141\x72\x61\x6d\x20\x24\x73\143\x6f\160\x65\12\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\52\x20\x40\x70\141\162\141\x6d\x20\44\157\x75\164\160\165\x74\12\40\40\40\x20\40\x20\40\40\40\40\40\40\x20\x20\40\40\40\x2a\xa\40\40\40\40\x20\x20\x20\40\40\40\40\40\x20\40\40\40\40\52\40\100\x72\x65\164\x75\x72\156\x20\x61\162\162\141\x79\12\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\x2a\57\12\40\40\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x66\x69\x6e\141\x6c\40\x70\162\151\x76\x61\164\145\x20\x66\165\x6e\143\x74\x69\x6f\156\x20\141\x64\x64\x44\145\x66\x61\165\x6c\x74\120\x6c\165\147\x69\156\x73\x28\x24\x73\143\157\x70\x65\54\x20\44\x6f\165\x74\x70\165\164\x29\xa\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\x7b\xa\x20\40\x20\40\40\40\40\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\151\146\x20\50\41\x64\x65\146\x69\x6e\145\x64\50\42\x54\105\x53\124\x53\x5f\x54\105\x4d\120\137\x44\111\122\x22\51\x20\46\46\40\41\144\145\146\x69\156\145\x64\x28\x22\111\116\124\x45\107\x52\x41\x54\x49\x4f\x4e\x5f\x54\x45\123\124\x53\137\104\x49\122\x22\51\51\40\x7b\12\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\40\40\x24\x6f\165\164\x70\x75\x74\x20\x3d\40\141\x72\162\x61\171\137\x6d\x65\162\x67\x65\x5f\x72\x65\x63\x75\162\163\151\x76\x65\50\xa\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\44\x6f\x75\164\x70\x75\164\x2c\12\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x5c\103\x61\x72\x74\x32\121\165\x6f\x74\x65\134\x46\145\x61\164\165\x72\x65\163\x5c\106\x65\x61\x74\165\162\x65\134\x46\145\141\164\x75\162\145\114\151\x73\164\x3a\x3a\147\145\x74\x49\156\x73\164\x61\x6e\143\145\x28\44\x74\150\151\x73\51\x2d\x3e\x67\145\x74\x41\154\x6c\x50\154\x75\x67\151\156\x73\50\x29\12\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\40\40\x20\40\40\40\40\40\x20\51\x3b\12\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\175\xa\40\x20\40\40\x20\40\40\40\40\40\40\x20\12\40\x20\x20\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x72\x65\164\x75\x72\156\x20\44\x6f\x75\x74\160\x75\x74\73\12\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\175" . "\12" . "\44\x32")); public final function getMagentoRoot() { goto Lh6a2; UbHL8: Udb1r: goto SZXLX; SZXLX: if (!defined("\x42\x50")) { goto inDPA; } goto TD5Db; QW4r_: $hbviE = realpath(__DIR__ . "\57\56\x2e\57\x2e\56\57\x2e\x2e\57\x2e\x2e\x2f\56\x2e\x2f\x69\x6e\144\x65\x78\x2e\x70\150\160"); goto o9Dtm; Z2cNq: Q1zTD: goto h7qeB; IS7oa: $x936p = realpath(__DIR__ . "\57\56\x2e\57\56\56\x2f\x2e\x2e\57\x2e\x2e\x2f\x69\156\x64\x65\x78\56\x70\150\x70"); goto MM_pe; MM_pe: if (!file_exists($x936p)) { goto Q1zTD; } goto I2XeX; qOVUv: inDPA: goto BtZFU; w7RHk: return realpath($GLOBALS["\x6d\x61\x67\x65\x6e\164\x6f\x52\157\x6f\x74"]); goto UbHL8; o9Dtm: if (!file_exists($hbviE)) { goto TP8T_; } goto ZC42u; BtZFU: if (!defined("\105\x43\x45\137\x42\120")) { goto mzZCI; } goto sRKcu; a3FKU: mzZCI: goto QW4r_; TD5Db: return realpath(BP); goto qOVUv; h7qeB: throw new \Exception(sprintf("\115\x61\x67\145\x6e\x74\157\x20\x72\x6f\157\164\40\144\x69\162\x65\x63\164\x6f\162\171\x20\143\x6f\x75\154\x64\x20\156\157\x74\x20\x62\x65\x20\x72\145\163\x6f\x6c\166\x65\x64")); goto soyQf; sRKcu: return realpath(ECE_BP . "\x2f\56\x2e\x2f\56\56\57\x2e\56\57"); goto a3FKU; Lh6a2: if (!isset($GLOBALS["\155\x61\147\145\x6e\164\x6f\x52\x6f\157\x74"])) { goto Udb1r; } goto w7RHk; ZC42u: return dirname($hbviE); goto DMtvR; I2XeX: return dirname($x936p); goto Z2cNq; DMtvR: TP8T_: goto IS7oa; soyQf: } public final function __construct() { $this->ODKRx = new \Magento\Framework\Math\Random(); } public static final function register() { $WluN5 = self::getInstance(); $WluN5->addAlterations(); } public static final function getInstance() { goto Dlh16; WzHhj: aKNUT: goto MUfyz; MUfyz: return $WluN5; goto VafDD; f3bnX: $WluN5 = new self(); goto WzHhj; aTtMl: if (!($WluN5 === null)) { goto aKNUT; } goto f3bnX; Dlh16: static $WluN5 = null; goto aTtMl; VafDD: } public final function addAlterations() { foreach ($this->AXaJC as $jZ0O6 => $Bfk15) { goto E73cA; WPzay: $prfHu = $this->getTempPath($this->getRandomTempFileName()); goto pNCI0; nauJ2: if (!$this->writeToFile($prfHu, $iVY54, $mS7wa)) { goto XWKVp; } goto RwDNN; uqn7X: if (isset($prfHu)) { goto c1hII; } goto F38mT; cvMwJ: smlqn: goto uqn7X; FzkO_: list($mS7wa, $iVY54) = $this->alterContentByRegex($prfHu, $Bfk15["\162\x65\x67\x65\170"], $Bfk15["\x72\x65\x70\x6c\141\x63\145"]); goto VNU_y; yDKmH: OEMPR: goto K7RcD; F38mT: throw new \Exception(sprintf("\x46\x69\154\145\40\143\157\165\x6c\x64\x20\x6e\157\x74\x20\x62\x65\40\146\x6f\165\x6e\144\x20\146\x6f\162\x20\x25\x73", $jZ0O6)); goto CpI55; E73cA: foreach ($Bfk15["\154\x6f\143\x61\164\151\157\156\163"] as $bqAXc) { goto V1xSG; eFLNM: $prfHu = $Q6WmI; goto XJOQm; XJOQm: goto smlqn; goto EpNtu; V1xSG: $Q6WmI = $this->getMagentoRoot() . $bqAXc; goto Cveot; KdLDh: JF90h: goto lopz2; Cveot: if (!\file_exists($Q6WmI)) { goto F0Lzv; } goto eFLNM; EpNtu: F0Lzv: goto KdLDh; lopz2: } goto cvMwJ; CpI55: c1hII: goto FzkO_; RwDNN: $this->includeFile($prfHu); goto uKIYp; VNU_y: if (!self::$HMkS0) { goto B4VBP; } goto WPzay; uKIYp: XWKVp: goto yDKmH; pNCI0: B4VBP: goto nauJ2; K7RcD: } ctW4A: } public final function alterContentByRegex($prfHu, $Dzt_i, $sr4Dt) { goto c2W_9; c2W_9: $mS7wa = \file_get_contents($prfHu, FILE_USE_INCLUDE_PATH); goto fJZQM; soWRQ: return [$mS7wa, $iVY54]; goto yAYXu; fJZQM: $iVY54 = \preg_replace($Dzt_i, $sr4Dt, $mS7wa); goto soWRQ; yAYXu: } public final function getTempPath($jZ0O6) { return sprintf("\x25\x73" . DIRECTORY_SEPARATOR . "\45\163", rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR), ltrim($jZ0O6, DIRECTORY_SEPARATOR)); } public final function getRandomTempFileName() { return sprintf("\x63\62\x71\137\45\163\x2e\160\x68\x70", $this->ODKRx->getRandomString(10, \Magento\Framework\Math\Random::CHARS_LOWERS)); } public final function writeToFile($Q6WmI, $npaQw, $hg5rh) { goto jlQoU; ZLrWQ: if (!(file_put_contents($Q6WmI, $npaQw) > 0)) { goto vQdUI; } goto PEhmE; PEhmE: return true; goto sMJqr; v_j0r: DmB_r: goto y5TES; ibizq: aaYF9: goto yx3GQ; y5TES: register_shutdown_function(function () use($Q6WmI) { goto Glh3o; AUBSC: unlink($Q6WmI); goto SR6bp; SR6bp: q1lrz: goto H9g7y; Glh3o: if (!file_exists($Q6WmI)) { goto q1lrz; } goto AUBSC; H9g7y: }); goto xaq6M; lKgZC: if (!($npaQw !== $hg5rh && !empty($npaQw))) { goto aaYF9; } goto ZLrWQ; yx3GQ: return false; goto A2lUu; sMJqr: vQdUI: goto ibizq; jlQoU: if (self::$HMkS0) { goto DmB_r; } goto fXQwr; fXQwr: register_shutdown_function(function () use($Q6WmI, $hg5rh) { goto xtzES; xtzES: if (!file_exists($Q6WmI)) { goto KtgY0; } goto YU_yN; YU_yN: file_put_contents($Q6WmI, $hg5rh); goto Oi_m7; Oi_m7: KtgY0: goto HxhZZ; HxhZZ: }); goto ygyle; ygyle: goto zwHmk; goto v_j0r; xaq6M: zwHmk: goto lKgZC; A2lUu: } public final function includeFile($prfHu) { goto VMoGL; VMoGL: if ($prfHu !== false && \file_exists($prfHu)) { goto RE24M; } goto ws8Bl; Hn3wl: include_once $prfHu; goto Cdddk; ws8Bl: throw new \Exception(sprintf("\106\151\154\145\40\45\163\x20\x6e\157\164\40\146\x6f\x75\x6e\144", $prfHu)); goto yTVMY; yTVMY: goto JJt0F; goto rMRbF; rMRbF: RE24M: goto Hn3wl; Cdddk: JJt0F: goto cu8qb; cu8qb: } }

Function Calls

None

Variables

None

Stats

MD5 ae5a788eeb89c2c247aa324670129a17
Eval Count 0
Decode Time 70 ms