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 ${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66\x75\x65l\x72\x68\x64o\x65"]="\x63o\x6c\x6cec\x7..
Decoded Output download
<?php ${"GLOBALS"}["fuelrhdoe"]="collection";${"GLOBALS"}["xosghijsb"]="similarproducts";${"GLOBALS"}["fgytvfmu"]="content";${"GLOBALS"}["oryloavyk"]="justtheskus";${"GLOBALS"}["bpkywewd"]="json";${"GLOBALS"}["xbtzdddwgz"]="url";${"GLOBALS"}["oafxnpvqvj"]="response";${"GLOBALS"}["mxihmirs"]="nums";${"GLOBALS"}["wltbqiaqw"]="phpresult";${"GLOBALS"}["xdudrqvqqll"]="result";${"GLOBALS"}["benxdnctjzyj"]="ch";${"GLOBALS"}["fmvfjslce"]="id";${"GLOBALS"}["ikvnxoeumgd"]="catsString";${"GLOBALS"}["qkyjemfvr"]="categoryIds";${"GLOBALS"}["xfdopxvmnk"]="rate";${"GLOBALS"}["kbqbfzr"]="productId";${"GLOBALS"}["yqnmidtyhli"]="customerId";${"GLOBALS"}["eyobitoo"]="_productId";${"GLOBALS"}["esqfbhesa"]="parentIds";${"GLOBALS"}["ribphojhx"]="cats";${"GLOBALS"}["fjtussp"]="product";${"GLOBALS"}["scmyhsilbqks"]="fields_string";require_once dirname(__DIR__)."/../../../../../lib/searchai/vendor/autoload.php";class CloudMachines_SearchAI_Helper_Data extends Mage_Core_Helper_Abstract{const PREDICTION_INDEX_API_ENDPOINT="events.json";const PREDICTION_QUERY_API_ENDPOINT="queries.json";const DATE_TIME_FORMAT=DateTime::ISO8601;private$refactor_model=null;public function __construct(){$this->refactor_model=Mage::getModel("searchai/prediction");}public function _addCustomer($customerId){${"GLOBALS"}["ersgxuhxord"]="customerId";$this->refactor_model->_addCustomer(${${"GLOBALS"}["ersgxuhxord"]});}public function _addItem(Mage_Catalog_Model_Product$product){${"GLOBALS"}["wefllngkwlc"]="cats";${"GLOBALS"}["xnpfzm"]="cats";$gdvrcnxqg="fields_string";$dmafwmgn="fields_string";${"GLOBALS"}["noauinxkiwe"]="product";${${"GLOBALS"}["wefllngkwlc"]}=$this->getCategories(${${"GLOBALS"}["noauinxkiwe"]});${$dmafwmgn}="pio_appkey=".$this->getEngineKey()."&";${${"GLOBALS"}["scmyhsilbqks"]}.="pio_iid=".$product->getId()."&";${$gdvrcnxqg}.="pio_itypes=".${${"GLOBALS"}["xnpfzm"]};$this->sendData($this->getApiHost().":".$this->getApiPort()."/".$this->_itemsUrl,${${"GLOBALS"}["scmyhsilbqks"]});}public function _addItems($productid){$mpafgzhny="_productId";${"GLOBALS"}["bhphcmy"]="productid";${"GLOBALS"}["sgctogkhs"]="product";${"GLOBALS"}["qhyjpew"]="fields_string";${${"GLOBALS"}["fjtussp"]}=Mage::getModel("catalog/product")->load(${${"GLOBALS"}["bhphcmy"]});${${"GLOBALS"}["ribphojhx"]}=$this->getCategories(${${"GLOBALS"}["sgctogkhs"]});if($product->getTypeId()=="simple"){${${"GLOBALS"}["esqfbhesa"]}=Mage::getModel("catalog/product_type_grouped")->getParentIdsByChild($product->getId());if(!${${"GLOBALS"}["esqfbhesa"]})${${"GLOBALS"}["esqfbhesa"]}=Mage::getModel("catalog/product_type_configurable")->getParentIdsByChild($product->getId());if(isset(${${"GLOBALS"}["esqfbhesa"]}[0])){$wxkgfnoa="parentIds";$fkdaygwzpvky="_productId";${$fkdaygwzpvky}=${$wxkgfnoa}[0];}else{${${"GLOBALS"}["eyobitoo"]}=$product->getId();}}${${"GLOBALS"}["scmyhsilbqks"]}="pio_appkey=".$this->getEngineKey()."&";${${"GLOBALS"}["qhyjpew"]}.="pio_iid=".${$mpafgzhny}."&";${${"GLOBALS"}["scmyhsilbqks"]}.="pio_itypes=".${${"GLOBALS"}["ribphojhx"]};$this->sendData($this->getApiHost().":".$this->getApiPort()."/".$this->_itemsUrl,${${"GLOBALS"}["scmyhsilbqks"]});}public function _addAction($productId,$customerId,$action,$rate=null){${"GLOBALS"}["zmkqicocjinp"]="fields_string";$bogdajwkyian="action";${${"GLOBALS"}["scmyhsilbqks"]}="pio_appkey=".$this->getEngineKey()."&";${${"GLOBALS"}["zmkqicocjinp"]}.="pio_uid=".${${"GLOBALS"}["yqnmidtyhli"]}."&";${${"GLOBALS"}["scmyhsilbqks"]}.="pio_iid=".${${"GLOBALS"}["kbqbfzr"]}."&";${"GLOBALS"}["csyoccgjd"]="fields_string";if(${${"GLOBALS"}["xfdopxvmnk"]}!=null){${"GLOBALS"}["ethxskmcbub"]="fields_string";${${"GLOBALS"}["ethxskmcbub"]}.="pio_rate=".${${"GLOBALS"}["xfdopxvmnk"]}."&";}${${"GLOBALS"}["csyoccgjd"]}.="pio_action=".${$bogdajwkyian};$this->sendData($this->getApiHost().":".$this->getApiPort()."/".$this->_actionsUrl,${${"GLOBALS"}["scmyhsilbqks"]});}public function getCategories(Mage_Catalog_Model_Product$product){if($product->getId()){${"GLOBALS"}["olpeov"]="categoryIds";${${"GLOBALS"}["qkyjemfvr"]}=$product->getCategoryIds();if(is_array(${${"GLOBALS"}["qkyjemfvr"]})and count(${${"GLOBALS"}["olpeov"]})>=1){${${"GLOBALS"}["ikvnxoeumgd"]}="";$iknlyutevc="id";foreach(${${"GLOBALS"}["qkyjemfvr"]} as${$iknlyutevc}){${"GLOBALS"}["nioqxqytzcy"]="catsString";$kohxied="cat";${$kohxied}=Mage::getModel("catalog/category")->load(${${"GLOBALS"}["fmvfjslce"]});${${"GLOBALS"}["nioqxqytzcy"]}.=$cat->getName().",";}${${"GLOBALS"}["ribphojhx"]}=rtrim(${${"GLOBALS"}["ikvnxoeumgd"]},",");return${${"GLOBALS"}["ribphojhx"]};}return"";}}protected function postRequestCurl($url,$content){${"GLOBALS"}["vjmhkesd"]="ch";${"GLOBALS"}["ktgvbwycvqi"]="ch";${"GLOBALS"}["vnsunonet"]="url";${"GLOBALS"}["iesuijrrfxl"]="phpresult";$rrqdvpqb="ch";$mcsagtere="ch";$wosldlwods="result";${${"GLOBALS"}["ktgvbwycvqi"]}=curl_init();$vvbqdidb="ch";$yxqnmiom="content";curl_setopt(${$vvbqdidb},CURLOPT_URL,${${"GLOBALS"}["vnsunonet"]}."/".CloudMachines_SearchAI_Helper_Data::PREDICTION_QUERY_API_ENDPOINT);$elypif="ch";${"GLOBALS"}["klrphm"]="content";curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_POST,1);curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_HTTPHEADER,array("Content-Type: application/json","Content-Length: ".strlen(${${"GLOBALS"}["klrphm"]})));curl_setopt(${$rrqdvpqb},CURLOPT_POSTFIELDS,${$yxqnmiom});curl_setopt(${$mcsagtere},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_VERBOSE,1);${${"GLOBALS"}["xdudrqvqqll"]}=trim(curl_exec(${$elypif}));${${"GLOBALS"}["iesuijrrfxl"]}=json_decode(${$wosldlwods},true);curl_close(${${"GLOBALS"}["vjmhkesd"]});return${${"GLOBALS"}["wltbqiaqw"]};}public function getSimilarProducts(Mage_Catalog_Model_Product$product,$num=0){$zgcwbothfbg="json";${"GLOBALS"}["guakpqx"]="nums";$yeybihaztjxc="num";$czgdsillriq="num";$kfvfizej="json";if(${$yeybihaztjxc}==0)${${"GLOBALS"}["mxihmirs"]}=(int)Mage::getStoreConfig("searchai/settings/product_count");else${${"GLOBALS"}["guakpqx"]}=${$czgdsillriq};${$zgcwbothfbg}=json_encode(["items"=>[$product->getMaterialCode()],"num"=>${${"GLOBALS"}["mxihmirs"]}]);$xctbqvruuw="url";${$xctbqvruuw}=$this->getApiHost().":".$this->getApiRecommendationPort();${${"GLOBALS"}["oafxnpvqvj"]}=$this->postRequestCurl(${${"GLOBALS"}["xbtzdddwgz"]},${$kfvfizej});Mage::log("TO PIO\n".Zend_Debug::dump(${${"GLOBALS"}["xbtzdddwgz"]},null,false),null,"cloudmachines.log");return array_column(${${"GLOBALS"}["oafxnpvqvj"]}["rules"][0]["itemScores"],"item");}public function getSimilarProductsTest($id){$pjnlfyqc="nums";${${"GLOBALS"}["mxihmirs"]}=(int)Mage::getStoreConfig("searchai/settings/product_count");$szsumipw="url";$hpscogebjpl="url";${"GLOBALS"}["nzfvpn"]="id";${${"GLOBALS"}["bpkywewd"]}=json_encode(["items"=>[${${"GLOBALS"}["nzfvpn"]}],"num"=>${$pjnlfyqc}]);$rmxqytsb="justtheskus";$cdnrwyvrhqqa="json";${$hpscogebjpl}="localhost:".$this->getApiRecommendationPort();${${"GLOBALS"}["oafxnpvqvj"]}=$this->postRequestCurl(${$szsumipw},${$cdnrwyvrhqqa});${${"GLOBALS"}["oryloavyk"]}=array_column(${${"GLOBALS"}["oafxnpvqvj"]}["rules"][0]["itemScores"],"item");return${$rmxqytsb};}public function getData($url,$query){${"GLOBALS"}["jpiwqj"]="ch";${"GLOBALS"}["uauhurs"]="url";$bxkcropqk="ch";${"GLOBALS"}["nfkcbcfjc"]="query";${$bxkcropqk}=curl_init();$exobpmqs="content";curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_URL,${${"GLOBALS"}["uauhurs"]}.${${"GLOBALS"}["nfkcbcfjc"]});curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GLOBALS"}["jpiwqj"]},CURLOPT_TIMEOUT,"3");${$exobpmqs}=trim(curl_exec(${${"GLOBALS"}["benxdnctjzyj"]}));${"GLOBALS"}["cxkagwcmin"]="ch";curl_close(${${"GLOBALS"}["cxkagwcmin"]});return${${"GLOBALS"}["fgytvfmu"]};}public function sendData($url,$fields_string){${"GLOBALS"}["iormifcqd"]="fields_string";${"GLOBALS"}["wlfobrcrbv"]="ch";${"GLOBALS"}["sxnfzlox"]="ch";${${"GLOBALS"}["wlfobrcrbv"]}=curl_init();curl_setopt(${${"GLOBALS"}["sxnfzlox"]},CURLOPT_URL,${${"GLOBALS"}["xbtzdddwgz"]});curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_POST,1);curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_POSTFIELDS,${${"GLOBALS"}["iormifcqd"]});curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_RETURNTRANSFER,1);$yhbjmsmnglb="ch";curl_setopt(${${"GLOBALS"}["benxdnctjzyj"]},CURLOPT_VERBOSE,1);${${"GLOBALS"}["xdudrqvqqll"]}=curl_exec(${$yhbjmsmnglb});curl_close(${${"GLOBALS"}["benxdnctjzyj"]});}public function getEngineKey(){return Mage::getStoreConfig("searchai/settings/predict_key");}public function getEngineName(){return Mage::getStoreConfig("searchai/settings/engine_name");}public function getApiHost(){return"10.39.138.102";}public function getApiPort(){return"7070";}public function getApiRankingPort(){return Mage::getStoreConfig("searchai/settings/predict_ranking_port");}public function getApiRecommendationPort(){return"8000";}public function isEnabled(){return Mage::getStoreConfig("searchai/settings/enabled");}public function isUpsellEnabled(){return Mage::getStoreConfig("searchai/settings/upsell_enabled");}public function isRelatedEnabled(){return Mage::getStoreConfig("searchai/settings/related_enabled");}public function isCrosssellEnabled(){return Mage::getStoreConfig("searchai/settings/crosssell_enabled");}public function isCategoryResults(){return Mage::getStoreConfig("searchai/settings/category_results");}public function getProductCount(){return Mage::getStoreConfig("searchai/settings/product_count");}public function getRelatedProducts($product){try{if($this->isEnabled()){$dlsivctwwqy="similarproducts";if(${$dlsivctwwqy}=$this->getSimilarProducts(${${"GLOBALS"}["fjtussp"]})){$vfaltin="similarproducts";${"GLOBALS"}["siprcodihits"]="collection";${${"GLOBALS"}["siprcodihits"]}=Mage::getResourceModel("catalog/product_collection");$collection->addAttributeToSelect("*");$collection->addAttributeToFilter("material_code",array("in"=>${$vfaltin}));$collection->addAttributeToFilter("status",array("eq"=>1));$collection->addAttributeToFilter("visibility",array("neq"=>Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE));$xdkkophmlipj="collection";$collection->getSelect()->order(new Zend_Db_Expr("FIELD(material_code,'".implode(",",${${"GLOBALS"}["xosghijsb"]})."')"));$this->_itemCollection=${$xdkkophmlipj};return$this->_itemCollection;}else{return null;}}else{return null;}}catch(Exception$e){Mage::log("EXCEPTION!
CODE:".$e->getCode()."
"."MESSAGE:".$e->getMessage()."
",null,"cloudmachines.log");return null;}Mage::log("
",null,"cloudmachines.log");}public function getRelatedProductsAdmin($product){try{if($this->isEnabled()){${"GLOBALS"}["uljqgl"]="json";$wjnuhvb="nums";$heurqyt="similarproducts";${$wjnuhvb}=6;${${"GLOBALS"}["uljqgl"]}=json_encode(["items"=>[$product->getMaterialCode()],"num"=>${${"GLOBALS"}["mxihmirs"]}]);${"GLOBALS"}["euwcjfww"]="json";${${"GLOBALS"}["xbtzdddwgz"]}=$this->getApiHost().":".$this->getApiRecommendationPort();${${"GLOBALS"}["oafxnpvqvj"]}=$this->postRequestCurl(${${"GLOBALS"}["xbtzdddwgz"]},${${"GLOBALS"}["euwcjfww"]});${${"GLOBALS"}["xosghijsb"]}=array_column(${${"GLOBALS"}["oafxnpvqvj"]}["rules"][0]["itemScores"],"item");if(${$heurqyt}){${"GLOBALS"}["ykotfvtn"]="similarproducts";${"GLOBALS"}["pnzhschpq"]="collection";${${"GLOBALS"}["fuelrhdoe"]}=Mage::getResourceModel("catalog/product_collection");$collection->addAttributeToSelect("*");$collection->addAttributeToFilter("material_code",array("in"=>${${"GLOBALS"}["ykotfvtn"]}));$tmeeelggcq="similarproducts";$collection->addAttributeToFilter("status",array("eq"=>1));$collection->addAttributeToFilter("visibility",array("neq"=>Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE));$collection->getSelect()->order(new Zend_Db_Expr("FIELD(material_code,'".implode(",",${$tmeeelggcq})."')"));$this->_itemCollection=${${"GLOBALS"}["pnzhschpq"]};return$this->_itemCollection;}else{return null;}}else{return null;}}catch(Exception$e){Mage::log("EXCEPTION!
CODE:".$e->getCode()."
"."MESSAGE:".$e->getMessage()."
",null,"cloudmachines.log");return null;}}}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66\x75\x65l\x72\x68\x64o\x65"]="\x63o\x6c\x6cec\x74\x69\x6f\x6e";${"GL\x4f\x42\x41LS"}["\x78\x6f\x73g\x68\x69\x6as\x62"]="\x73i\x6d\x69\x6c\x61\x72\x70r\x6f\x64u\x63t\x73";${"G\x4c\x4fB\x41\x4cS"}["\x66\x67\x79t\x76\x66mu"]="\x63\x6f\x6e\x74ent";${"GL\x4f\x42\x41\x4c\x53"}["\x6f\x72\x79\x6c\x6favy\x6b"]="j\x75s\x74\x74h\x65\x73\x6b\x75\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62p\x6by\x77\x65\x77\x64"]="\x6as\x6f\x6e";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x62\x74zd\x64\x64wg\x7a"]="\x75rl";${"G\x4c\x4f\x42AL\x53"}["\x6f\x61\x66\x78\x6e\x70\x76\x71v\x6a"]="\x72\x65\x73p\x6fnse";${"\x47L\x4f\x42A\x4c\x53"}["m\x78\x69\x68\x6di\x72\x73"]="\x6e\x75\x6d\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["wl\x74\x62\x71\x69a\x71\x77"]="p\x68\x70re\x73u\x6c\x74";${"\x47\x4c\x4fB\x41\x4cS"}["\x78\x64\x75drq\x76q\x71\x6cl"]="re\x73u\x6c\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x65nx\x64n\x63t\x6a\x7a\x79j"]="\x63\x68";${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x6dv\x66\x6a\x73\x6c\x63\x65"]="\x69\x64";${"\x47LO\x42\x41\x4c\x53"}["\x69kv\x6exo\x65\x75m\x67d"]="cat\x73S\x74r\x69\x6e\x67";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["q\x6by\x6aem\x66\x76r"]="\x63a\x74egory\x49\x64\x73";${"GL\x4fBAL\x53"}["\x78\x66\x64op\x78v\x6d\x6e\x6b"]="\x72a\x74\x65";${"\x47L\x4f\x42\x41L\x53"}["\x6bb\x71b\x66\x7a\x72"]="p\x72\x6fd\x75c\x74Id";${"\x47\x4cO\x42A\x4c\x53"}["\x79\x71\x6e\x6d\x69dt\x79\x68li"]="\x63u\x73t\x6f\x6d\x65r\x49\x64";${"\x47\x4c\x4fBA\x4c\x53"}["\x65\x79\x6fb\x69\x74o\x6f"]="\x5f\x70\x72\x6f\x64u\x63\x74\x49d";${"\x47L\x4fB\x41\x4c\x53"}["\x65\x73\x71f\x62\x68\x65\x73a"]="\x70\x61r\x65\x6et\x49\x64\x73";${"\x47\x4c\x4fBALS"}["ri\x62ph\x6f\x6a\x68x"]="c\x61\x74\x73";${"G\x4c\x4f\x42A\x4c\x53"}["fj\x74\x75s\x73\x70"]="pro\x64\x75c\x74";${"\x47L\x4f\x42\x41\x4c\x53"}["\x73cm\x79\x68s\x69l\x62q\x6bs"]="f\x69\x65\x6cd\x73_s\x74\x72\x69\x6e\x67";require_once dirname(__DIR__)."/../.\x2e/\x2e./\x2e./.\x2e/\x6ci\x62/\x73e\x61rchai/\x76en\x64o\x72/\x61\x75\x74o\x6c\x6f\x61\x64.\x70hp";class CloudMachines_SearchAI_Helper_Data extends Mage_Core_Helper_Abstract{const PREDICTION_INDEX_API_ENDPOINT="\x65\x76e\x6e\x74s\x2e\x6aso\x6e";const PREDICTION_QUERY_API_ENDPOINT="\x71\x75\x65ri\x65\x73\x2ej\x73o\x6e";const DATE_TIME_FORMAT=DateTime::ISO8601;private$refactor_model=null;public function __construct(){$this->refactor_model=Mage::getModel("s\x65\x61\x72c\x68ai/\x70\x72\x65\x64ic\x74\x69o\x6e");}public function _addCustomer($customerId){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x72s\x67x\x75h\x78o\x72d"]="c\x75\x73t\x6f\x6d\x65r\x49\x64";$this->refactor_model->_addCustomer(${${"G\x4cO\x42\x41\x4c\x53"}["e\x72\x73\x67\x78uhxo\x72\x64"]});}public function _addItem(Mage_Catalog_Model_Product$product){${"G\x4c\x4fBA\x4c\x53"}["w\x65\x66\x6c\x6cng\x6b\x77lc"]="\x63\x61ts";${"\x47\x4c\x4f\x42\x41\x4cS"}["xn\x70fzm"]="c\x61t\x73";$gdvrcnxqg="\x66\x69e\x6c\x64s\x5f\x73\x74\x72\x69n\x67";$dmafwmgn="f\x69e\x6cd\x73\x5f\x73\x74\x72\x69\x6e\x67";${"\x47LO\x42A\x4c\x53"}["\x6eo\x61\x75\x69\x6e\x78\x6b\x69we"]="p\x72\x6f\x64\x75c\x74";${${"G\x4c\x4fBAL\x53"}["\x77\x65\x66l\x6cn\x67\x6b\x77\x6c\x63"]}=$this->getCategories(${${"GL\x4f\x42\x41\x4cS"}["\x6eoa\x75\x69\x6ex\x6b\x69\x77\x65"]});${$dmafwmgn}="p\x69o_\x61\x70p\x6bey=".$this->getEngineKey()."&";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x63\x6d\x79\x68\x73\x69lbqk\x73"]}.="\x70\x69o_i\x69d=".$product->getId()."&";${$gdvrcnxqg}.="\x70\x69\x6f\x5fitypes\x3d".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x6e\x70\x66\x7am"]};$this->sendData($this->getApiHost().":".$this->getApiPort()."/".$this->_itemsUrl,${${"\x47L\x4f\x42\x41LS"}["s\x63\x6dy\x68s\x69\x6c\x62q\x6b\x73"]});}public function _addItems($productid){$mpafgzhny="\x5f\x70\x72\x6f\x64\x75\x63\x74\x49d";${"\x47\x4c\x4fBA\x4cS"}["b\x68p\x68cmy"]="\x70\x72\x6fd\x75\x63ti\x64";${"\x47L\x4f\x42A\x4cS"}["\x73\x67\x63\x74o\x67kh\x73"]="\x70\x72\x6f\x64u\x63\x74";${"G\x4c\x4fB\x41LS"}["q\x68yjp\x65\x77"]="fi\x65l\x64\x73\x5f\x73\x74\x72\x69\x6eg";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x66j\x74u\x73sp"]}=Mage::getModel("\x63a\x74a\x6c\x6fg/p\x72o\x64uct")->load(${${"GLO\x42A\x4c\x53"}["\x62\x68p\x68\x63\x6dy"]});${${"G\x4c\x4f\x42A\x4c\x53"}["r\x69\x62\x70\x68o\x6a\x68\x78"]}=$this->getCategories(${${"\x47LO\x42A\x4c\x53"}["\x73g\x63to\x67\x6bh\x73"]});if($product->getTypeId()=="\x73imple"){${${"\x47L\x4fBA\x4c\x53"}["e\x73\x71\x66b\x68\x65\x73\x61"]}=Mage::getModel("c\x61\x74a\x6c\x6fg/\x70ro\x64\x75c\x74\x5f\x74y\x70\x65_g\x72o\x75p\x65d")->getParentIdsByChild($product->getId());if(!${${"\x47LO\x42AL\x53"}["\x65\x73\x71f\x62\x68\x65sa"]})${${"\x47L\x4fB\x41\x4c\x53"}["\x65sq\x66bhe\x73\x61"]}=Mage::getModel("catalog/\x70\x72\x6f\x64\x75\x63\x74\x5f\x74yp\x65_\x63\x6fnfigu\x72a\x62l\x65")->getParentIdsByChild($product->getId());if(isset(${${"\x47\x4cO\x42\x41\x4cS"}["e\x73\x71fb\x68\x65\x73a"]}[0])){$wxkgfnoa="p\x61r\x65nt\x49\x64\x73";$fkdaygwzpvky="\x5f\x70\x72\x6f\x64\x75\x63t\x49\x64";${$fkdaygwzpvky}=${$wxkgfnoa}[0];}else{${${"\x47L\x4f\x42A\x4c\x53"}["\x65\x79\x6fb\x69\x74o\x6f"]}=$product->getId();}}${${"\x47L\x4f\x42\x41L\x53"}["\x73\x63\x6dy\x68si\x6c\x62\x71\x6b\x73"]}="p\x69o\x5fa\x70p\x6bey\x3d".$this->getEngineKey()."&";${${"\x47\x4c\x4fB\x41\x4c\x53"}["q\x68y\x6a\x70\x65\x77"]}.="p\x69o\x5f\x69id=".${$mpafgzhny}."\x26";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x73\x63\x6d\x79\x68\x73\x69\x6c\x62\x71k\x73"]}.="p\x69\x6f\x5f\x69ty\x70\x65s\x3d".${${"\x47L\x4fBAL\x53"}["\x72\x69\x62\x70\x68\x6fj\x68\x78"]};$this->sendData($this->getApiHost().":".$this->getApiPort()."/".$this->_itemsUrl,${${"GL\x4f\x42A\x4cS"}["s\x63\x6d\x79\x68\x73i\x6cbq\x6bs"]});}public function _addAction($productId,$customerId,$action,$rate=null){${"G\x4c\x4fBA\x4c\x53"}["\x7a\x6d\x6b\x71ico\x63\x6a\x69\x6e\x70"]="\x66\x69\x65l\x64\x73_\x73t\x72\x69\x6e\x67";$bogdajwkyian="a\x63t\x69\x6fn";${${"\x47L\x4fBALS"}["\x73\x63\x6dy\x68\x73i\x6c\x62qk\x73"]}="p\x69\x6f_\x61ppk\x65y\x3d".$this->getEngineKey()."&";${${"\x47\x4c\x4f\x42A\x4cS"}["\x7a\x6dkqi\x63\x6f\x63\x6a\x69n\x70"]}.="\x70\x69o\x5f\x75i\x64\x3d".${${"\x47\x4c\x4f\x42\x41L\x53"}["y\x71\x6e\x6di\x64\x74\x79h\x6ci"]}."&";${${"\x47LO\x42\x41\x4c\x53"}["s\x63m\x79\x68\x73\x69\x6c\x62\x71\x6bs"]}.="p\x69\x6f_i\x69d\x3d".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x62\x71\x62\x66\x7a\x72"]}."&";${"G\x4c\x4fB\x41\x4c\x53"}["\x63\x73\x79\x6fc\x63\x67j\x64"]="f\x69\x65l\x64\x73\x5fs\x74\x72\x69n\x67";if(${${"G\x4c\x4fBA\x4cS"}["\x78f\x64\x6f\x70\x78vmn\x6b"]}!=null){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65t\x68xsk\x6dcb\x75b"]="fi\x65\x6cd\x73\x5f\x73\x74\x72\x69\x6e\x67";${${"\x47\x4cO\x42A\x4c\x53"}["\x65\x74\x68\x78\x73\x6bm\x63\x62\x75\x62"]}.="\x70\x69o_r\x61\x74\x65\x3d".${${"\x47\x4c\x4fBA\x4c\x53"}["x\x66\x64o\x70\x78v\x6dnk"]}."&";}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["c\x73\x79occ\x67\x6a\x64"]}.="\x70\x69\x6f_\x61c\x74\x69\x6fn\x3d".${$bogdajwkyian};$this->sendData($this->getApiHost().":".$this->getApiPort()."/".$this->_actionsUrl,${${"\x47L\x4f\x42\x41\x4cS"}["\x73cmy\x68\x73\x69l\x62qk\x73"]});}public function getCategories(Mage_Catalog_Model_Product$product){if($product->getId()){${"G\x4cO\x42\x41L\x53"}["o\x6cp\x65\x6fv"]="\x63\x61\x74eg\x6f\x72y\x49\x64s";${${"GLO\x42\x41LS"}["\x71ky\x6a\x65m\x66\x76r"]}=$product->getCategoryIds();if(is_array(${${"\x47L\x4f\x42A\x4c\x53"}["\x71k\x79\x6a\x65\x6d\x66v\x72"]})and count(${${"GL\x4f\x42\x41LS"}["\x6f\x6c\x70\x65o\x76"]})>=1){${${"\x47\x4c\x4fBAL\x53"}["\x69\x6b\x76\x6e\x78\x6f\x65\x75\x6d\x67\x64"]}="";$iknlyutevc="\x69\x64";foreach(${${"\x47\x4c\x4f\x42ALS"}["\x71k\x79\x6ae\x6d\x66\x76\x72"]} as${$iknlyutevc}){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6ei\x6fq\x78qyt\x7a\x63\x79"]="ca\x74\x73\x53\x74\x72\x69n\x67";$kohxied="\x63\x61\x74";${$kohxied}=Mage::getModel("catal\x6fg/\x63\x61\x74\x65g\x6f\x72\x79")->load(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x6d\x76\x66j\x73\x6c\x63e"]});${${"\x47\x4c\x4f\x42A\x4c\x53"}["n\x69o\x71\x78\x71\x79\x74zcy"]}.=$cat->getName().",";}${${"\x47L\x4f\x42A\x4c\x53"}["\x72\x69bp\x68\x6fjhx"]}=rtrim(${${"G\x4cOBA\x4cS"}["\x69k\x76\x6exo\x65u\x6d\x67\x64"]},",");return${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x69\x62\x70\x68ojh\x78"]};}return"";}}protected function postRequestCurl($url,$content){${"\x47L\x4fB\x41L\x53"}["\x76j\x6dh\x6besd"]="\x63h";${"G\x4cO\x42\x41\x4c\x53"}["ktg\x76\x62\x77\x79c\x76q\x69"]="\x63h";${"\x47\x4cOB\x41\x4c\x53"}["\x76\x6e\x73uno\x6e\x65\x74"]="u\x72\x6c";${"\x47\x4cOB\x41LS"}["\x69e\x73\x75\x69\x6ar\x72f\x78\x6c"]="\x70\x68pr\x65\x73u\x6ct";$rrqdvpqb="c\x68";$mcsagtere="c\x68";$wosldlwods="\x72e\x73u\x6ct";${${"GLOB\x41\x4cS"}["\x6b\x74\x67\x76\x62w\x79\x63\x76\x71i"]}=curl_init();$vvbqdidb="\x63h";$yxqnmiom="\x63\x6f\x6e\x74\x65\x6e\x74";curl_setopt(${$vvbqdidb},CURLOPT_URL,${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x6e\x73\x75\x6e\x6fnet"]}."/".CloudMachines_SearchAI_Helper_Data::PREDICTION_QUERY_API_ENDPOINT);$elypif="\x63\x68";${"G\x4c\x4fB\x41\x4cS"}["\x6b\x6cr\x70\x68\x6d"]="\x63on\x74\x65\x6et";curl_setopt(${${"\x47\x4c\x4fB\x41\x4cS"}["be\x6e\x78\x64\x6e\x63\x74j\x7a\x79\x6a"]},CURLOPT_POST,1);curl_setopt(${${"\x47\x4c\x4f\x42A\x4c\x53"}["b\x65\x6exdn\x63t\x6az\x79j"]},CURLOPT_HTTPHEADER,array("\x43o\x6eten\x74-T\x79p\x65:\x20ap\x70\x6cic\x61t\x69\x6fn/\x6as\x6fn","\x43onten\x74-Len\x67th: ".strlen(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x6cr\x70\x68\x6d"]})));curl_setopt(${$rrqdvpqb},CURLOPT_POSTFIELDS,${$yxqnmiom});curl_setopt(${$mcsagtere},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"G\x4cO\x42\x41\x4c\x53"}["\x62\x65\x6ex\x64\x6e\x63\x74\x6azy\x6a"]},CURLOPT_VERBOSE,1);${${"\x47\x4c\x4fB\x41\x4cS"}["\x78dud\x72\x71\x76q\x71ll"]}=trim(curl_exec(${$elypif}));${${"\x47\x4c\x4fBALS"}["i\x65\x73\x75\x69\x6ar\x72\x66xl"]}=json_decode(${$wosldlwods},true);curl_close(${${"G\x4c\x4fB\x41\x4c\x53"}["\x76jm\x68\x6be\x73d"]});return${${"\x47L\x4f\x42\x41\x4cS"}["\x77\x6c\x74bqia\x71w"]};}public function getSimilarProducts(Mage_Catalog_Model_Product$product,$num=0){$zgcwbothfbg="\x6a\x73\x6f\x6e";${"\x47LOB\x41\x4c\x53"}["\x67u\x61\x6b\x70\x71\x78"]="n\x75\x6d\x73";$yeybihaztjxc="nu\x6d";$czgdsillriq="\x6e\x75m";$kfvfizej="\x6a\x73\x6f\x6e";if(${$yeybihaztjxc}==0)${${"\x47\x4c\x4f\x42\x41LS"}["\x6dx\x69\x68\x6di\x72\x73"]}=(int)Mage::getStoreConfig("sear\x63\x68\x61\x69/s\x65tt\x69ngs/pr\x6f\x64u\x63\x74\x5fc\x6f\x75\x6e\x74");else${${"\x47L\x4fB\x41\x4cS"}["\x67\x75\x61\x6b\x70\x71\x78"]}=${$czgdsillriq};${$zgcwbothfbg}=json_encode(["\x69\x74e\x6ds"=>[$product->getMaterialCode()],"\x6e\x75\x6d"=>${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6d\x78\x69\x68\x6d\x69\x72\x73"]}]);$xctbqvruuw="u\x72\x6c";${$xctbqvruuw}=$this->getApiHost().":".$this->getApiRecommendationPort();${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fa\x66\x78\x6e\x70v\x71vj"]}=$this->postRequestCurl(${${"\x47\x4cOB\x41\x4cS"}["x\x62\x74\x7a\x64\x64d\x77\x67\x7a"]},${$kfvfizej});Mage::log("\x54O \x50\x49O\\\x6e".Zend_Debug::dump(${${"\x47LO\x42A\x4cS"}["\x78\x62\x74\x7a\x64d\x64w\x67z"]},null,false),null,"\x63\x6c\x6fudm\x61\x63\x68\x69ne\x73.l\x6fg");return array_column(${${"\x47L\x4f\x42\x41\x4c\x53"}["oafx\x6ep\x76q\x76\x6a"]}["ru\x6ce\x73"][0]["\x69\x74emSc\x6f\x72\x65\x73"],"\x69t\x65\x6d");}public function getSimilarProductsTest($id){$pjnlfyqc="n\x75\x6d\x73";${${"G\x4c\x4f\x42\x41L\x53"}["\x6d\x78\x69h\x6dir\x73"]}=(int)Mage::getStoreConfig("s\x65a\x72c\x68a\x69/\x73e\x74t\x69\x6egs/\x70\x72o\x64uc\x74_\x63o\x75\x6et");$szsumipw="\x75\x72\x6c";$hpscogebjpl="\x75r\x6c";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x7af\x76pn"]="\x69d";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62\x70\x6b\x79\x77\x65wd"]}=json_encode(["i\x74e\x6d\x73"=>[${${"G\x4cO\x42\x41\x4c\x53"}["\x6e\x7af\x76\x70n"]}],"num"=>${$pjnlfyqc}]);$rmxqytsb="ju\x73\x74t\x68\x65\x73\x6bu\x73";$cdnrwyvrhqqa="\x6a\x73\x6f\x6e";${$hpscogebjpl}="\x6c\x6f\x63\x61\x6ch\x6fs\x74:".$this->getApiRecommendationPort();${${"G\x4c\x4f\x42A\x4cS"}["\x6f\x61\x66\x78\x6e\x70\x76qvj"]}=$this->postRequestCurl(${$szsumipw},${$cdnrwyvrhqqa});${${"\x47LO\x42\x41LS"}["\x6fr\x79\x6c\x6f\x61\x76y\x6b"]}=array_column(${${"\x47L\x4f\x42\x41\x4cS"}["\x6fa\x66\x78npvq\x76\x6a"]}["\x72\x75\x6ce\x73"][0]["\x69t\x65mSc\x6fr\x65\x73"],"\x69tem");return${$rmxqytsb};}public function getData($url,$query){${"\x47\x4cO\x42A\x4cS"}["\x6a\x70\x69\x77\x71\x6a"]="c\x68";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x75au\x68u\x72s"]="ur\x6c";$bxkcropqk="\x63\x68";${"\x47\x4cO\x42A\x4c\x53"}["\x6ef\x6b\x63\x62c\x66\x6a\x63"]="q\x75\x65\x72\x79";${$bxkcropqk}=curl_init();$exobpmqs="\x63\x6fnt\x65nt";curl_setopt(${${"GL\x4f\x42A\x4cS"}["\x62\x65\x6e\x78\x64\x6e\x63\x74\x6a\x7a\x79j"]},CURLOPT_URL,${${"\x47LO\x42\x41\x4c\x53"}["u\x61u\x68\x75\x72\x73"]}.${${"\x47\x4c\x4fB\x41\x4cS"}["nf\x6b\x63b\x63\x66j\x63"]});curl_setopt(${${"\x47LO\x42A\x4c\x53"}["\x62\x65\x6exdn\x63\x74\x6a\x7a\x79\x6a"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6api\x77\x71\x6a"]},CURLOPT_TIMEOUT,"\x33");${$exobpmqs}=trim(curl_exec(${${"GL\x4f\x42\x41\x4cS"}["\x62\x65\x6e\x78d\x6ec\x74\x6azy\x6a"]}));${"\x47L\x4f\x42\x41\x4c\x53"}["c\x78\x6b\x61\x67\x77\x63m\x69n"]="\x63\x68";curl_close(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x78k\x61g\x77\x63\x6di\x6e"]});return${${"\x47\x4c\x4f\x42\x41L\x53"}["f\x67y\x74v\x66m\x75"]};}public function sendData($url,$fields_string){${"\x47\x4cO\x42\x41\x4cS"}["io\x72m\x69\x66c\x71\x64"]="\x66iel\x64\x73_\x73\x74\x72i\x6e\x67";${"\x47\x4cO\x42\x41\x4c\x53"}["w\x6cf\x6f\x62\x72\x63rb\x76"]="\x63\x68";${"G\x4cO\x42\x41\x4cS"}["s\x78\x6ef\x7a\x6c\x6f\x78"]="\x63\x68";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x6c\x66\x6f\x62\x72cr\x62v"]}=curl_init();curl_setopt(${${"\x47\x4cO\x42\x41\x4cS"}["\x73xnf\x7a\x6c\x6f\x78"]},CURLOPT_URL,${${"G\x4c\x4f\x42A\x4cS"}["\x78\x62tz\x64d\x64\x77\x67z"]});curl_setopt(${${"G\x4c\x4fB\x41L\x53"}["b\x65\x6e\x78d\x6ec\x74j\x7a\x79j"]},CURLOPT_POST,1);curl_setopt(${${"\x47L\x4fB\x41\x4c\x53"}["\x62en\x78dn\x63\x74\x6az\x79\x6a"]},CURLOPT_POSTFIELDS,${${"\x47L\x4fB\x41\x4c\x53"}["\x69\x6f\x72mif\x63\x71d"]});curl_setopt(${${"\x47\x4cOB\x41\x4c\x53"}["b\x65nx\x64nc\x74\x6a\x7ayj"]},CURLOPT_RETURNTRANSFER,1);$yhbjmsmnglb="\x63h";curl_setopt(${${"G\x4c\x4f\x42\x41L\x53"}["b\x65\x6e\x78\x64n\x63\x74jz\x79j"]},CURLOPT_VERBOSE,1);${${"\x47\x4cO\x42ALS"}["\x78\x64\x75\x64rqv\x71q\x6c\x6c"]}=curl_exec(${$yhbjmsmnglb});curl_close(${${"\x47\x4cO\x42\x41\x4cS"}["\x62\x65\x6e\x78\x64\x6ectj\x7a\x79j"]});}public function getEngineKey(){return Mage::getStoreConfig("searchai/se\x74ti\x6e\x67s/pr\x65d\x69\x63t\x5fk\x65y");}public function getEngineName(){return Mage::getStoreConfig("\x73\x65\x61\x72c\x68a\x69/s\x65\x74\x74\x69n\x67s/\x65\x6e\x67i\x6e\x65\x5fn\x61\x6d\x65");}public function getApiHost(){return"\x31\x30\x2e39\x2e\x3138\x2e\x310\x32";}public function getApiPort(){return"70\x37\x30";}public function getApiRankingPort(){return Mage::getStoreConfig("\x73\x65a\x72chai/\x73e\x74\x74\x69ng\x73/\x70red\x69ct\x5f\x72\x61n\x6bi\x6eg_p\x6frt");}public function getApiRecommendationPort(){return"\x380\x300";}public function isEnabled(){return Mage::getStoreConfig("s\x65a\x72\x63hai/\x73\x65\x74ti\x6e\x67\x73/\x65na\x62l\x65\x64");}public function isUpsellEnabled(){return Mage::getStoreConfig("\x73\x65arch\x61\x69/\x73\x65t\x74\x69n\x67s/\x75psel\x6c_e\x6ea\x62\x6ce\x64");}public function isRelatedEnabled(){return Mage::getStoreConfig("\x73\x65ar\x63h\x61i/\x73et\x74in\x67\x73/\x72e\x6ca\x74\x65\x64_\x65\x6e\x61\x62led");}public function isCrosssellEnabled(){return Mage::getStoreConfig("\x73\x65arc\x68ai/\x73ett\x69\x6e\x67s/c\x72o\x73ss\x65\x6cl_\x65n\x61\x62l\x65d");}public function isCategoryResults(){return Mage::getStoreConfig("search\x61i/setting\x73/\x63\x61\x74\x65\x67\x6f\x72\x79\x5fre\x73ults");}public function getProductCount(){return Mage::getStoreConfig("searchai/\x73e\x74ti\x6e\x67s/\x70r\x6fduct\x5f\x63o\x75\x6et");}public function getRelatedProducts($product){try{if($this->isEnabled()){$dlsivctwwqy="simila\x72\x70\x72\x6fdu\x63t\x73";if(${$dlsivctwwqy}=$this->getSimilarProducts(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x6a\x74\x75s\x73\x70"]})){$vfaltin="\x73imilar\x70\x72\x6fd\x75\x63\x74s";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x73\x69p\x72\x63\x6f\x64ih\x69\x74\x73"]="\x63\x6fl\x6c\x65c\x74io\x6e";${${"G\x4c\x4f\x42A\x4cS"}["\x73\x69\x70\x72\x63od\x69h\x69\x74\x73"]}=Mage::getResourceModel("\x63at\x61\x6c\x6fg/\x70\x72\x6f\x64\x75ct_c\x6flle\x63\x74i\x6fn");$collection->addAttributeToSelect("*");$collection->addAttributeToFilter("\x6d\x61t\x65ri\x61\x6c\x5fc\x6f\x64\x65",array("in"=>${$vfaltin}));$collection->addAttributeToFilter("stat\x75s",array("\x65q"=>1));$collection->addAttributeToFilter("vis\x69\x62\x69\x6c\x69ty",array("neq"=>Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE));$xdkkophmlipj="\x63o\x6c\x6c\x65\x63\x74\x69on";$collection->getSelect()->order(new Zend_Db_Expr("FIELD(\x6d\x61\x74e\x72\x69\x61\x6c\x5f\x63ode,'".implode(",",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x6f\x73\x67\x68ijsb"]})."\x27)"));$this->_itemCollection=${$xdkkophmlipj};return$this->_itemCollection;}else{return null;}}else{return null;}}catch(Exception$e){Mage::log("\x45\x58\x43\x45PTI\x4f\x4e!\n\x43\x4f\x44E:".$e->getCode()."\n"."\x4dES\x53A\x47E:".$e->getMessage()."\n",null,"c\x6c\x6fu\x64mac\x68ine\x73\x2e\x6c\x6f\x67");return null;}Mage::log("\n\n",null,"cl\x6f\x75dm\x61c\x68in\x65s.\x6c\x6fg");}public function getRelatedProductsAdmin($product){try{if($this->isEnabled()){${"\x47\x4c\x4fB\x41\x4c\x53"}["u\x6c\x6aq\x67l"]="\x6as\x6fn";$wjnuhvb="nu\x6d\x73";$heurqyt="\x73\x69m\x69\x6ca\x72\x70\x72od\x75c\x74\x73";${$wjnuhvb}=6;${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75ljq\x67\x6c"]}=json_encode(["\x69\x74e\x6d\x73"=>[$product->getMaterialCode()],"\x6eu\x6d"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["m\x78i\x68\x6dirs"]}]);${"\x47\x4c\x4fBA\x4c\x53"}["\x65uw\x63j\x66w\x77"]="\x6as\x6f\x6e";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x62\x74z\x64\x64d\x77gz"]}=$this->getApiHost().":".$this->getApiRecommendationPort();${${"\x47L\x4f\x42\x41L\x53"}["oaf\x78\x6ep\x76\x71\x76\x6a"]}=$this->postRequestCurl(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78bt\x7ad\x64\x64\x77g\x7a"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["eu\x77c\x6a\x66\x77w"]});${${"\x47L\x4f\x42AL\x53"}["\x78\x6f\x73g\x68\x69\x6as\x62"]}=array_column(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6f\x61f\x78\x6e\x70\x76qv\x6a"]}["\x72ul\x65\x73"][0]["\x69t\x65m\x53co\x72\x65\x73"],"\x69t\x65\x6d");if(${$heurqyt}){${"GL\x4f\x42\x41\x4cS"}["y\x6bo\x74\x66vt\x6e"]="s\x69\x6d\x69l\x61r\x70r\x6fdu\x63\x74\x73";${"\x47\x4cO\x42\x41L\x53"}["p\x6e\x7ah\x73c\x68pq"]="co\x6c\x6ce\x63ti\x6fn";${${"\x47\x4c\x4fB\x41LS"}["fue\x6crh\x64o\x65"]}=Mage::getResourceModel("\x63\x61tal\x6fg/p\x72od\x75ct_\x63\x6fl\x6ce\x63ti\x6f\x6e");$collection->addAttributeToSelect("*");$collection->addAttributeToFilter("\x6date\x72i\x61\x6c\x5fc\x6f\x64e",array("\x69n"=>${${"G\x4c\x4f\x42A\x4c\x53"}["\x79\x6botf\x76\x74\x6e"]}));$tmeeelggcq="\x73\x69\x6d\x69\x6c\x61\x72\x70\x72\x6f\x64\x75c\x74\x73";$collection->addAttributeToFilter("s\x74a\x74\x75\x73",array("\x65q"=>1));$collection->addAttributeToFilter("\x76isib\x69\x6c\x69ty",array("n\x65q"=>Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE));$collection->getSelect()->order(new Zend_Db_Expr("F\x49ELD(ma\x74\x65ria\x6c\x5f\x63ode,'".implode(",",${$tmeeelggcq})."')"));$this->_itemCollection=${${"\x47LOB\x41\x4c\x53"}["\x70nzh\x73\x63\x68\x70q"]};return$this->_itemCollection;}else{return null;}}else{return null;}}catch(Exception$e){Mage::log("E\x58\x43E\x50\x54\x49\x4fN!\n\x43OD\x45:".$e->getCode()."\n"."\x4dE\x53\x53\x41\x47\x45:".$e->getMessage()."\n",null,"\x63l\x6fud\x6d\x61ch\x69\x6ees.\x6c\x6f\x67");return null;}}}
?>
Function Calls
None |
Stats
MD5 | 2627ee99a905a4e1e0a6c94960d505ef |
Eval Count | 0 |
Decode Time | 83 ms |