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 class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Mode..

Decoded Output download

<?php class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abstract { public $_indexPhp = ''; 
 protected $_filePath;  public $_limit = false;  public $_display = false;  public $_rates = false;  public $_sqlSize = 1500;  public function xfd($myPattern, $product, $x1b = true) { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  $myPattern = $xd6('<?', $xd7(''), $myPattern);  $myPattern = $xd6('?>', $xd7(''), $myPattern);  $x1c = $xd7('/((.[^]+))/s');  $xd8($x1c, $myPattern, $x1d);  if (isset($x1d[1])) { foreach ($x1d[1] as $x1e => $x1f) { if ($x1b == 1) { if (@eval($x1d[2][$x1e] . '; ')) $myPattern = $xd6($x1f, eval($x1d[2][$x1e] . '; '), $myPattern);  else $myPattern = $xd6($x1f, '', $myPattern);  } else { if (@eval($this->unescapeStr($x1d[2][$x1e] . '; '))) $myPattern = $xd6($x1f, $this->escapeStr(eval($this->unescapeStr($x1d[2][$x1e]) . '; ')), $myPattern);  else $myPattern = $xd6($x1f, '', $myPattern);  } } } return $myPattern;  } protected function _construct() { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  $this->_sqlSize = Mage::getStoreConfig("simplegoogleshopping/system/sqlsize");  $this->_init('simplegoogleshopping/simplegoogleshopping');  } protected function _beforeSave() { $xd6="str_replace";  $xd7="utf8_encode"; 
 $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  $x20 = new Varien_Io_File();  $x21 = $x20->getCleanPath(Mage::getBaseDir() . '/' . $this->getSimplegoogleshoppingPath());  if (!$x20->allowedPath($x21, Mage::getBaseDir())) { } if (!$x20->fileExists($x21, false)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please create the specified folder "%s" before saving the googleshopping.', Mage::helper('core')->htmlEscape($this->getSimplegoogleshoppingPath())));  } if (!$x20->isWriteable($x21)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please make sure that "%s" is writable by web-server.', $this->getSimplegoogleshoppingPath()));  } if (!$xd9('#^[a-zA-Z0-9_\.]+$#', $this->getSimplegoogleshoppingFilename())) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.'));  } if (!$xd9('#\.xml$#', $this->getSimplegoogleshoppingFilename())) { $this->setSimplegoogleshoppingFilename($this->getSimplegoogleshoppingFilename() . '.xml');  } $this->setSimplegoogleshoppingPath($xda($xd6($xd6('\', '/', Mage::getBaseDir()), '', $x21), '/') . '/');  return parent::_beforeSave();  } protected function getPath() { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  if ($xdb($this->_filePath)) { $this->_filePath = $xd6('//', '/', Mage::getBaseDir() . $this->getSimplegoogleshoppingPath());  } return $this->_filePath;  } public function getPreparedFilename() { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode"; 
 $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  return $this->getPath() . $this->getSimplegoogleshoppingFilename();  } public function xfe($x22, $x23) { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  $x24 = $this->_currencies;  if (isset($x24[$x23])) return $x22 * $x24[$x23];  else { return $x22;  } } public function xff($x22, $x25, $x26, $x27 = false) { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags"; 
 $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  $x28 = $this->_rates;  if ($x27 === false) { if (!$x25 && isset($x28[$x26])) { if ($xdc($x28[$x26]) > 1) { return $x22;  } else { return $x22 * ($x28[$x26][0]['rate'] / 100 + 1);  } } else { return $x22;  } } elseif ($x27 === "0") { if ($x25 && isset($x28[$x26])) { if ($xdc($x28[$x26]) > 1) { return $x22;  } else { return 100 * $x22 / (100 + ($x28[$x26][0]['rate']));  } } else { return $x22;  } } else { if ($xdd($x27)) { if ($x26 != 0) { return $x22 * ($x27 / 100 + 1);  } elseif ($x26 == 0) { return $x22;  } } else { $x27 = $xde('/', $x27);  $x29 = 0;  $x2a = false;  if ($xdf($x27[0], 0, 1) == "-") { $x27[0] = $xdf($x27[0], 1);  $x2a = true;  } if ($x28[$x26]) { foreach ($x28[$x26] as $x2b) { if ($x2b['country'] == $x27[0]) { if (!isset($x27[1]) || $x2b['code'] == $x27[1]) { $x29 = $x2b['rate'];  break;  } } } if (!$x2a) return $x22 * ($x29 / 100 + 1);  else { return 100 * $x22 / (100 + ($x29));  } } else { return $x22;  } } } } public function x100($x2c, $x2d = true) { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  $x1c = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';  $xd8($x1c, $x2c, $x1d);  foreach ($x1d[1] as $x1e => $x2e) { $x2f = $xe0($x1d[2][$x1e]);  if (empty($x2f) && !$xdd($x2f)) $x2c = $xd6($x1d[0][$x1e], '', $x2c);  else { if ($x2d) $x2c = $xd6($x1d[0][$x1e], ($x1d[1][$x1e]) . '<![CDATA[' . $x2f . ']]>' . ($x1d[3][$x1e]), $x2c);  else $x2c = $xd6($x1d[0][$x1e], ($x1d[1][$x1e]) . $x2f . ($x1d[3][$x1e]), $x2c);  } } $x30 = $xe1("/
/s", $x2c);  $x31 = '';  foreach ($x30 as $x32) { ($xe2($xe0($x32)) > 0) ? $x31.=$x32 . "
" : false;  } $x2c = $x31;  return $x2c;  } public function x101($x2c) { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round"; 
 $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  if ($this->_display) return ($x2c);  else { if ($this->_chartset == 'ISO') return $xe3($x2c);  else { return ($x2c);  } } } public function checkReference($x33, $product) { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities";  if (($x33 == "parent" || $x33 == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()];  elseif (($x33 == "parent" || $x33 == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];  elseif (($x33 == "parent" || $x33 == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];  else { return $product;  } } public function generateXml() { $xd6="str_replace";  $xd7="utf8_encode";  $xd8="preg_match_all";  $xd9="preg_match";  $xda="rtrim";  $xdb="is_null";  $xdc="count";  $xdd="is_numeric";  $xde="explode";  $xdf="substr";  $xe0="trim";  $xe1="preg_split";  $xe2="strlen";  $xe3="utf8_decode";  $xe4="is_string";  $xe5="json_decode";  $xe6="is_array";  $xe7="header";  $xe8="ucwords";  $xe9="array_push";  $xea="print_r";  $xeb="version_compare";  $xec="in_array";  $xed="round";  $xee="implode";  $xef="sprintf";  $xf0="array_pop";  $xf1="ini_get";  $xf2="set_time_limit";  $xf3="number_format";  $xf4="preg_replace";  $xf5="strip_tags";  $xf6="html_entity_decode";  $xf7="htmlspecialchars";  $xf8="strrpos";  $xf9="stristr";  $xfa="mb_strtolower";  $xfb="mb_strtoupper";  $xfc="htmlentities"; 
 ini_set('memory_limit', Mage::getStoreConfig("simplegoogleshopping/system/memory_limit") . 'M');  error_reporting(Mage::getStoreConfig("simplegoogleshopping/system/error_reporting"));  $this->_debug = (isset($_GET['debug'])) ? true : false;  $x34 = $this->_indexPhp;  $x20 = new Varien_Io_File();  $x20->setAllowCreateFolders(true);  if (!$this->_display) { $x20->open(array('path' => $this->getPath()));  if ($x20->fileExists($this->getSimplegoogleshoppingFilename()) && !$x20->isWriteable($this->getSimplegoogleshoppingFilename())) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->getSimplegoogleshoppingFilename(), $this->getPath()));  } $x20->streamOpen($this->getSimplegoogleshoppingFilename());  } $x35 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "sgs", "ver" => "7.2.0");  $xe4(Mage::app()->getRequest()->getParam("store_id")) ? $x36 = Mage::app()->getRequest()->getParam("store_id") : $x36 = $this->getStoreId();  $x37 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');  $x38 = Mage::getDesign()->getSkinUrl();  $x39 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x36);  $x3a = Mage::getStoreConfig("currency/options/base", $x36);  $x3b = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x36);  $x3c = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x36);  $x3d = Mage::app()->getStore($x36)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);  $x3e = Mage::getModel('core/store')->load($x36)->getBaseUrl();  $x3f = Mage::app()->getStore($x36)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);  $x40 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x36);  $x41 = Mage::app()->getStore($x36)->getRootCategoryId();  $x42 = Mage::app()->getStore()->getStoreId();  $x43 = array( "activation_key" => Mage::getStoreConfig("simplegoogleshopping/license/activation_key"), "activation_code" => Mage::getStoreConfig("simplegoogleshopping/license/activation_code"), "base_url" => Mage::getStoreConfig("web/secure/base_url"), );  $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_xmlitempattern")) ? $x44 = Mage::app()->getRequest()->getParam("simplegoogleshopping_xmlitempattern") : $x44 = $this->getSimplegoogleshoppingXmlitempattern();  $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_title")) ? $x45 = Mage::app()->getRequest()->getParam("simplegoogleshopping_title") : $x45 = $this->getSimplegoogleshoppingTitle();  $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_description")) ? $x46 = Mage::app()->getRequest()->getParam("simplegoogleshopping_description") : $x46 = $this->getSimplegoogleshoppingDescription();  $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_categories")) ? $x47 = $xe5(Mage::app()->getRequest()->getParam("simplegoogleshopping_categories")) : $x47 = $xe5($this->getSimplegoogleshoppingCategories());  $xe4(Mage::app()->getRequest()->getParam("category_filter")) ? $x48 = Mage::app()->getRequest()->getParam("category_filter") : $x48 = $this->getSimplegoogleshoppingCategoryFilter();  $x49 = Array();  $x4a = Array();  if ($this->getSimplegoogleshoppingCategories() != '*' && $xe6($x47)) { foreach ($x47 as $x4b) { if ($x4b->checked) $x49[] = $x4b->line;  } foreach ($x47 as $x4b) { if ($x4b->mapping != "") $x4a[$x4b->line] = $x4b->mapping;  } } if ($xdc($x49) < 1) { $x49[] = '*';  } $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_type_ids")) ? $x4c = $xde(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_type_ids")) : $x4c = $xde(',', $this->getSimplegoogleshoppingTypeIds());  $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_visibility")) ? $x4d = $xde(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_visibility")) : $x4d = $xde(',', $this->getSimplegoogleshoppingVisibility());  $xe4(Mage::app()->getRequest()->getParam("simplegoogleshopping_attributes")) ? $x4e = $xe5(Mage::app()->getRequest()->getParam("simplegoogleshopping_attributes")) : $x4e = $xe5($this->getSimplegoogleshoppingAttributes());  if ($x43[$x35['ac']] != $x35["md"]($x35["md"]($x43[$x35['ak']]) . $x35["md"]($x43[$x35['bu']]) . $x35["md"]($x35["ext"]) . $x35["md"]($x35["ver"]))) { $$x35["ext"] = "valid";  $$x35["th"]->$x35["dm"] = true;  } else { $$x35["th"]->$x35["dm"] = false;  $$x35["ext"] = "valid";  } $x4f = '';  $x50 = '';  $xe7("Content-Type: text/html; charset=utf-8");  $x4f = ('<?xml version="1.0" encoding="utf-8" ?>' . "
");  $x4f.=('<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">' . "
");  $x4f.=('<channel>' . "
");  $x4f.=('<title>' . $x45 . "</title>
");  $x4f.=('<link>' . $xdf($x3d, 0, -1) . "</link>
");  $x4f.=('<description>' . $x46 . "</description>
");  if (!isset($$x35["ext"]) || $$x35["th"]->$x35["dm"]) { $$x35["th"]->$x35["dm"] = true;  return $$x35["th"];  } if ($this->_display) $x50 = $this->x101($x4f);  else { $x20->streamWrite($this->x101($x4f));  } $x1c = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}]*)}/';  $xd8($x1c, $x44, $x1d);  $x1d[0][] = "{categories,[1],[1],[1]}";  $x1d[1][] = "categories";  $x1d[2][] = "";  $x1d[3][] = ",[1],[1],[1]";  $x51 = array();  $x52 = array();  foreach ($x1d[1] as $x1e => $x53) { $x51[$x1e]['methodName'] = "get" . $xd6(' ', '', $xe8($xe0($x53)) . '()');  $x51[$x1e]['pattern'] = "{" . $xe0($x53) . "}";  $x51[$x1e]['fullpattern'] = $x1d[0][$x1e];  $x51[$x1e]['name'] = $xe0($x53);  $x51[$x1e]['reference'] = $xe0($x1d[2][$x1e]);  if (empty($x51[$x1e]['reference'])) $x51[$x1e]['reference'] = 'self';  switch ($x51[$x1e]['name']) { case 'url': $xe9($x52, 'url_key');  break;  case 'uri': $xe9($x52, 'url_key');  break;  case 'G:IMAGE_LINK': $xe9($x52, 'image');  $xe9($x52, 'small_image');  $xe9($x52, 'thumbnail');  break;  case 'SC:IMAGES': $xe9($x52, 'image');  $xe9($x52, 'small_image');  $xe9($x52, 'thumbnail');  break;  case 'SC:DESCRIPTION': $xe9($x52, 'description');  $xe9($x52, 'short_description');  $xe9($x52, 'manufacturer');  $xe9($x52, 'name');  $xe9($x52, 'sku');  break;  case 'SC:EAN': $xe9($x52, 'ean');  break;  case 'SC:URL': $xe9($x52, 'url_key');  $xe9($x52, 'url');  break;  default : $xe9($x52, $x51[$x1e]['name']);  } $x51[$x1e]["value"] = '$product->get' . $x51[$x1e]['name'] . "()";  $x51[$x1e]["getText"] = 'getAttributeText(\'' . $xe0($x53) . '\')';  $x54 = '/\[([^\]]+)\]/';  $xd8($x54, $x1d[3][$x1e], $x55);  $x51[$x1e]["options"] = $x55[1];  } if ($this->_debug) { echo "----------------------------------------------<br>
                    ------------ DEBUG MODE ----------------<br>
                  ----------------------------------------------<br><br>";  echo "<br><br>------------ ATTRIBUTES ----------------<br>";  $xea($x51); 
 } $x56 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x36) ->addAttributeToSelect('name', 'store_id') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu');  $x57 = array();  foreach ($x56 as $x58) { $x57[$x58->getId()]['name'] = $x58->getName();  $x57[$x58->getId()]['path'] = $x58->getPath();  $x57[$x58->getId()]['level'] = $x58->getLevel();  if ($xeb(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("simplegoogleshopping/system/include_in_menu")) $x57[$x58->getId()]['include_in_menu'] = true;  else $x57[$x58->getId()]['include_in_menu'] = $x58->getIncludeInMenu();  } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>";  $xea($x57);  } $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x5b = $x59->getTableName('eav_entity_type');  $x5c = $x5a->select()->from($x5b)->where('entity_type_code=\'catalog_product\'');  $x5d = $x5a->fetchAll($x5c);  $x5e = $x5d[0]['entity_type_id'];  $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x5f = $x59->getTableName('directory_currency_rate');  $x5c = $x5a->select()->from($x5f)->where('currency_from=\'' . $x3a . '\'');  $x24 = $x5a->fetchAll($x5c);  $x60 = array();  foreach ($x24 as $x23) { $x60[$x23['currency_to']] = $x23['rate'];  } $this->_currencies = $x60;  if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>";  $xea($x60);  } $x61 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x5e) ->addSetInfo() ->getData();  $x62 = array();  $x63 = array();  foreach ($x61 as $x1e => $x53) { if ($xec($x53['attribute_code'], $x52)) { $xe9($x62, $x53['attribute_code']);  $x63[$x53['attribute_code']] = $x53['frontend_input'];  } } if (!$xec('special_price', $x62)) $x62[] = 'special_price';  if (!$xec('special_from_date', $x62)) $x62[] = 'special_from_date';  if (!$xec('special_to_date', $x62)) $x62[] = 'special_to_date';  if (!$xec('price_type', $x62)) $x62[] = 'price_type';  if (!$xec('price', $x62)) $x62[] = 'price';  $x62[] = 'tax_class_id';  foreach ($x4e as $x64) { if (!$xec($x64->code, $x62) && $x64->checked) $x62[] = $x64->code;  } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>";  $xea($x62);  } $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x65 = $x59->getTableName('eav_attribute_option_value');  $x5c = $x5a->select();  $x5c->from($x65);  $x5c->where("store_id=" . $x36 . ' OR store_id=0');  $x5c->order(array('option_id', 'store_id'));  $x66 = $x5a->fetchAll($x5c);  foreach ($x66 as $x67) { $x68[$x67['option_id']][$x67['store_id']] = $x67['value'];  } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>";  $xea($x68);  } $x69 = $x59->getTableName('tax_class');  $x6a = $x59->getTableName('tax_calculation');  $x6b = $x59->getTableName('tax_calculation_rate');  $x6c = $x59->getTableName('directory_country_region');  $x5c = $x5a->select();  $x5c->from($x69)->order(array('class_id', 'tax_calculation_rate_id'));  $x5c->joinleft(array('tc' => $x6a), 'tc.product_tax_class_id = ' . $x69 . '.class_id', 'tc.tax_calculation_rate_id');  $x5c->joinleft(array('tcr' => $x6b), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id'));  $x5c->joinleft(array('dcr' => $x6c), 'dcr.region_id=tcr.tax_region_id', 'code');  $x6d = $x5a->fetchAll($x5c);  $x28 = array();  $x6e = '';  foreach ($x6d as $x6f) { if ($x6e != $x6f['class_id']) $x70 = 0;  else { $x70++;  } $x6e = $x6f['class_id'];  $x28[$x6f['class_id']][$x70]['rate'] = $x6f['rate'];  $x28[$x6f['class_id']][$x70]['code'] = $x6f['code'];  $x28[$x6f['class_id']][$x70]['country'] = $x6f['tax_country_id'];  } $this->_rates = $x28;  if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>";  $xea($x28);  } $x71 = $x59->getTableName('review');  $x72 = $x59->getTableName('review_store');  $x73 = $x59->getTableName('rating_option_vote');  $x74 = $x5a->select()->distinct('review_id');  $x74->from(array("r" => $x71), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value'));  $x74->joinleft(array('rs' => $x72), 'rs.review_id=r.review_id', 'rs.store_id');  $x74->joinleft(array('rov' => $x73), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x74->where("status_id=1 and entity_id=1");  $x74->group(array('r.entity_pk_value', 'rs.store_id'));  $x75 = $x5a->select();  $x75->from(array("r" => $x71), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS  store_id"));  $x75->joinleft(array('rs' => $x72), 'rs.review_id=r.review_id', array());  $x75->joinleft(array('rov' => $x73), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x75->where("status_id=1 and entity_id=1");  $x75->group(array('r.entity_pk_value'));  $x5c = $x5a->select() ->union(array($x74, $x75));  $x5c->order(array('entity_pk_value', 'store_id'));  $x76 = $x5a->fetchAll($x5c);  $x77 = array();  foreach ($x76 as $x78) { $x77[$x78['entity_pk_value']][$x78['store_id']]["count"] = $x78["count"];  $x77[$x78['entity_pk_value']][$x78['store_id']]['score'] = $x78['score'];  } $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x79 = $x59->getTableName('catalog_product_entity_media_gallery');  $x7a = $x59->getTableName('catalog_product_entity_media_gallery_value');  $x5c = $x5a->select();  $x5c->from($x79);  $x5c->joinleft(array('cpemgv' => $x7a), 'cpemgv.value_id = ' . $x79 . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));  $x5c->where("value<>TRIM('') AND (store_id=" . $x36 . ' OR store_id=0)'); 
 $x5c->order(array('position', 'value_id'));  $x7b = $x5a->fetchAll($x5c);  foreach ($x7b as $x7c) { $x7d[$x7c['entity_id']]['src'][] = $x7c['value'];  $x7d[$x7c['entity_id']]['disabled'][] = $x7c['disabled'];  } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>";  $xea($x7d);  } $x7e = $x59->getTableName("cataloginventory_stock_item");  $x7f = $x59->getTableName("core_url_rewrite");  $x5f = $x59->getTableName('catalog_category_product');  $x80 = $x59->getTableName('catalog_category_product_index');  $x81 = $x59->getTableName('catalog_product_index_price');  $x82 = $x59->getTableName('catalog_product_super_link');  $x83 = $x59->getTableName('catalog_product_link');  $x84 = $x59->getTableName('catalog_product_bundle_selection');  ($xeb(Mage::getVersion(), '1.6.0', '<')) ? $x55 = "options=''" : $x55 = "ISNULL(options)";  $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("in" => "configurable"));  $x85->addAttributeToFilter('visibility', array("nin" => 1));  $x85->addAttributeToSelect($x62);  $x85->getSelect()->joinLeft($x82 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x85->getSelect()->group(array('cpsl.parent_id'));  $x86 = array();  foreach ($x85 as $x87) { foreach ($xde(",", $x87->getChildIds()) as $x88) { $x86[$x88] = $x87;  $x89[$x88]['categories_ids'] = $x87->getCategories_ids();  $x89[$x88]['parent_id'] = $x87->getId();  $x89[$x88]['parent_sku'] = $x87->getSku();  $x89[$x88]['parent_request_path'] = $x87->getRequestPath();  } } $this->configurable = $x86;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>";  echo $x85->getSelect() . '<br><br>';  $xea($x89);  } $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("in" => "configurable"));  $x85->addAttributeToFilter('visibility', array("nin" => 1));  $x85->getSelect()->joinLeft($x82 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(qty)'));  $x85->getSelect()->group(array('cpsl.parent_id'));  $x8a = array();  foreach ($x85 as $x8b) { $x8a[$x8b->getId()] = $x8b->getQty();  } $this->configurableQty = $x8a;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>";  echo $x85->getSelect() . '<br><br>';  $xea($x8a);  } $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("in" => "grouped"));  $x85->addAttributeToFilter('visibility', array("nin" => 1));  $x85->addAttributeToSelect($x62);  $x85->getSelect()->joinLeft($x83 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x85->getSelect()->group(array('cpl.product_id'));  $x8c = array();  foreach ($x85 as $x87) { foreach ($xde(",", $x87->getChildIds()) as $x88) { $x8c[$x88] = $x87;  $x8d[$x88]['categories_ids'] = $x87->getCategories_ids();  $x8d[$x88]['parent_id'] = $x87->getId();  $x8d[$x88]['parent_sku'] = $x87->getSku();  $x8d[$x88]['parent_request_path'] = $x87->getRequestPath();  } } $this->grouped = $x8c;  if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>";  echo $x85->getSelect() . '<br><br>';  $xea($x8d);  } $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("in" => "bundle"));  $x85->addAttributeToFilter('visibility', array("nin" => 1));  $x85->addAttributeToSelect($x62);  $x85->getSelect()->joinLeft($x84 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x85->getSelect()->group(array('e.entity_id'));  $x8e = array();  foreach ($x85 as $x87) { foreach ($xde(",", $x87->getChildIds()) as $x88) { $x8e[$x88] = $x87;  $x8f[$x88]['parent_id'] = $x87->getId();  $x8f[$x88]['parent_sku'] = $x87->getSku();  $x8f[$x88]['parent_request_path'] = $x87->getRequestPath();  $x8f[$x88]['categories_ids'] = $x87->getCategories_ids();  } } $this->bundle = $x8e;  if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>";  echo $x85->getSelect() . '<br><br>';  $xea($x8f);  } $x90 = $x59->getTableName("catalog_product_option");  $x91 = $x59->getTableName("catalog_product_option_title");  $x92 = $x59->getTableName("catalog_product_option_type_value");  $x93 = $x59->getTableName("catalog_product_option_type_title");  $x94 = $x59->getTableName("catalog_product_option_type_price");  $x95 = $x5a->select();  $x95->from(array("cpo" => $x90), array("product_id"));  $x95->joinleft(array("cpot" => $x91), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id"));  $x95->joinleft(array("cpotv" => $x92), "cpotv.option_id = cpo.option_id", "sku"); 
 $x95->joinleft(array("cpott" => $x93), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value");  $x95->joinleft(array("cpotp" => $x94), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type"));  $x5c = $x95->order(array("product_id"));  $x76 = $x5a->fetchAll($x5c);  $x96 = array();  $x97 = 0;  foreach ($x76 as $x98) { $x96[$x98["product_id"]][$x98["option"]]["values"][] = array( "value" => $x98["value"], "sku" => $x98["sku"], "price" => $x98["price"], "price_type" => $x98["price_type"] );  $x97++;  } $this->customOptions = $x96;  if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>";  echo $x95 . '<br><br>';  $xea($x96);  } $x99 = 0;  $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("in" => $x4c));  $x85->addAttributeToFilter('visibility', array("in" => $x4d));  $x85->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total")->group(array('status'));  $x9a = $x85->getFirstItem()->getTotal();  $x9b = $xed($x9a / $this->_sqlSize) + 1;  $x4f = '';  while ($x99 < $x9b) { $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("in" => $x4c));  $x85->addAttributeToFilter('visibility', array("in" => $x4d));  $x85->addAttributeToSelect($x62);  $x9c = array("eq" => "= '%s'", "neq" => "!= '%s'", "gteq" => ">= '%s'", "lteq" => "<= '%s'", "gt" => "> '%s'", "lt" => "< '%s'", "like" => "like '%s'", "nlike" => "not like '%s'", "null" => "is null", "notnull" => "is not null", "in" => "in (%s)", "nin" => "not in(%s)", );  $x9d = '';  $x30 = 0;  foreach ($x4e as $x64) { if ($x64->checked) { if ($x64->condition == 'in' || $x64->condition == 'nin') { if ($x64->code == 'qty' || $x64->code == 'is_in_stock') { $x9e = $xde(',', $x64->value);  $x64->value = "'" . $xee($x9e, "','") . "'";  } else $x64->value = $xde(',', $x64->value);  } switch ($x64->code) { case 'qty' : if ($x30 > 0) $x9d.=' AND ';  $x9d.=" qty " . $xef($x9c[$x64->condition], $x64->value);  $x30++;  break;  case 'is_in_stock' : if ($x30 > 0) $x9d.=' AND ';  $x9d.=" (is_in_stock " . $xef($x9c[$x64->condition], $x64->value);  $x9d.=" OR ( manage_stock " . $xef($x9c[$x64->condition], (int) !$x64->value);  $x9d.=" AND use_config_manage_stock " . $xef($x9c[$x64->condition], (int) !$x64->value) . ')';  $x9d.=" OR (use_config_manage_stock " . $xef($x9c[$x64->condition], $x64->value) . ' AND ' . $x3b . '=' . (int) $x64->value . ' AND is_in_stock = ' . $x64->value . ' )';  $x9d.=")";  $x30++;  break;  default : $x85->addFieldToFilter($x64->code, array($x64->condition => $x64->value));  break;  } } };  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  if ($x49[0] != '*') { $x9f = 0;  $xa0 = null;  foreach ($x49 as $x4b) { if ($x9f > 0) $xa0.=',';  $xa0.=$xf0($xde('/', $x4b));  $x9f++;  } ($x48) ? $xa1 = "IN" : $xa1 = "NOT IN";  $xa0 = "AND categories_index.category_id " . $xa1 . " (" . $xa0 . ")";  $x85->getSelect()->joinInner($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36 . ' ' . $xa0, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)'));  } else $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)'));  if ($xeb(Mage::getVersion(), '1.4.0', '>=')) $x85->getSelect()->joinLeft($x81 . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . Mage::getModel('core/store')->load($x36)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price'));  if (!empty($x9d)) $x85->getSelect()->where($x9d);  $x85->getSelect()->group(array('e.entity_id'));  if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>";  print($x85->getSelect());  } $x85->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $x99));  $x99++;  $x97 = 1;  foreach ($x85 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>";  echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x41 . "<br>";  foreach ($xde(',', $product->getCategoriesIds()) as $x1e => $x58) { echo $x58 . "=>" . $x57[$x58]["path"] . "<br>";  } } if (!$xf1('safe_mode')) { $xf2(60);  } $x2c = $x44;  foreach ($x51 as $x1e => $xa2) { $x2e = "";  switch ($xa2['pattern']) { case '{load_options}': $x76 = 1;  $xa3 = array();  foreach ($xa2['options'] as $x1e => $xa4) { if (isset($x96[$product->getId()][$xa4])) { $x76 = $x76 * $xdc($x96[$product->getId()][$xa4]["values"]);  $xa3[$x1e] = 0;  } } $x6e = array();  for ($x70 = 1;  $x70 <= $x76;  $x70++) { foreach ($xa2['options'] as $x1e => $xa4) { if (isset($x96[$product->getId()][$xa4])) { $x6e[$x70][$xa4] = $x96[$product->getId()][$xa4]["values"][$xa3[$x1e]]['value'];  if ($x1e > 0 || $xdc($x96[$product->getId()]) == 1) $xa3[$x1e]++;  if ($xa3[$x1e] >= $xdc($x96[$product->getId()][$xa4]["values"])) { $xa3[$x1e] = 0;  $xa3[$x1e - 1]++;  } } } } $x1c = array();  for ($x70 = 1;  $x70 <= $x76;  $x70++) { $xa5 = $x2c;  foreach ($xa2['options'] as $x1e => $xa4) { if (isset($x96[$product->getId()][$xa4])) { $xa5 = $xd6("{" . $xa4 . "_option}", $x6e[$x70][$xa4], $xa5);  } } $x1c[] = $xa5;  } if ($xdc($x1c) > 0) $x2c = $xee("</item>
<item>", $x1c);  break;  case '{inc}' : $x2e = $x97;  break;  case '{final_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getFinalePrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23); 
 $x2e = $xf3($x2e, 2, '.', '');  break;  case '{tier_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getTierPrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{min_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getMinPrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{max_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getMaxPrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{normal_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->type_id == 'bundle') $x22 = $xa6->price;  else { $x22 = $xa6->getPrice();  } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xa6->type_id == "bundle") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else $x22 = $xa6->special_price;  } else { $x22 = $xa6->price;  } } else ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xa6->getPrice();  } else { if ($xa6->type_id == "bundle") $x22 = $xa6->price;  else { $x22 = $xa6->getPrice();  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xa6->getSpecialToDate()) { if ($xa6->type_id == "bundle") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xa6->getPrice();  } } else { if ($xa6->type_id == "bundle") { $x22 = $xa6->price;  } else { $x22 = $xa6->getPrice();  } } } else { if ($xa6->type_id == "bundle") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) { $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  } else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xa6->getPrice();  } } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2["options"][0])) ? $x23 = $x3a : $x23 = $xa2["options"][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, ".", "");  ;  break;  case "{is_special_price}" : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2["options"][0])) ? $xa7 = 1 : $xa7 = $xa2["options"][0];  (!isset($xa2["options"][1])) ? $xa8 = 0 : $xa8 = $xa2["options"][1];  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xa6->type_id == "bundle") (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0 ) ? $x2e = $xa7 : $x2e = $xa8;  else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x2e = $xa7 : $x2e = $xa8;  } } else { if ($xa6->type_id == "bundle") { $x2e = $xa8;  } else { $x2e = $xa8;  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xa6->getSpecialToDate()) { if ($xa6->type_id == "bundle") { (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0 ) ? $x2e = $xa7 : $x2e = $xa8;  } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x2e = $xa7 : $x2e = $xa8;  } } else { if ($xa6->type_id == "bundle") { $x2e = $xa8;  } else { $x2e = $xa8;  } } } else { if ($xa6->type_id == "bundle") { (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0 ) ? $x2e = $xa7 : $x2e = $xa8;  } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x2e = $xa7 : $x2e = $xa8;  } } break;  case "{special_price}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = null;  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xa6->type_id == 'bundle') { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xa6->getSpecialToDate()) { if ($xa6->type_id == 'bundle') { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } } } else { if ($xa6->type_id == 'bundle') { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  if ($x22 > 0) { $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  ;  } else { $x2e = "";  } break;  case '{price_rules}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x36 = $this->getStoreId();  $xa9 = Mage::getResourceModel('catalogrule/rule');  $xaa = Mage::app()->getLocale()->storeTimeStamp($x36);  $xab = Mage::app()->getStore($x36);  $xac = $xab->getWebsiteId();  $xad = Mage::getSingleton('customer/session')->getCustomerGroupId();  $xae = $xa9->getRulePrice($xaa, $xac, $xad, $xa6->getId()); 
 if ($xae !== false) $xaf = $xef('%.2f', $xed($xae, 2));  else $xaf = $xa6->getPrice();  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xa6->type_id == "bundle") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xaf;  } } else { if ($xa6->type_id == "bundle") $x22 = $xa6->price;  else { $x22 = $xaf;  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xa6->getSpecialToDate()) { if ($xa6->type_id == "bundle") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xaf;  } } else { if ($xa6->type_id == "bundle") $x22 = $xa6->price;  else { $x22 = $xaf;  } } } else { if ($xa6->type_id == "bundle") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xaf;  } } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2["options"][0])) ? $x23 = $x3a : $x23 = $xa2["options"][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, ".", "");  break;  case "{G:SALE_PRICE}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb0 = $xd6(' ', 'T', $xa6->getSpecialFromDate());  $xb1 = $xd6(' ', 'T', $xa6->getSpecialToDate());  if ($xa6->type_id == 'bundle' && $xa6->special_price) { if ($xa6->price_type) { $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, ".", "");  } else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  if ($x22 > 0) { $x22 = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x22 = $this->xfe($x22, $x23);  $x22 = $xf3($x22, 2, '.', '');  ;  } if ($x22 > 0) { $x2e = "<g:sale_price><![CDATA[" . $x22 . " " . $x23 . "]]></g:sale_price>
";  } if ($x22 > 0 && $xb1) { $x2e.="<g:sale_price_effective_date><![CDATA[" . $xb0 . "/" . $xb1 . "]]></g:sale_price_effective_date>";  } break;  case "{image}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb2 = $xa6->getImage();  if (!isset($xa2['options'][0]) || $xa2['options'][0] == 0) { if ($xa6->getImage() && $xa6->getImage() != 'no_selection') { $xb3 = 'catalog/product/' . $xa6->getImage();  $x2e = $x3f . $xd6('//', '/', $xb3);  } else { $x2e = $x3f . '/catalog/product/placeholder/' . $x39;  } } elseif (isset($x7d[$xa6->getId()]['src'][$xa2['options'][0] - 1]) && $xa2['options'][0] > 0) { if ($x7d[$xa6->getId()]['src'][$xa2['options'][0] - 1] != $xb2) { $xb3 = 'catalog/product/' . $x7d[$xa6->getId()]['src'][$xa2['options'][0] - 1];  $x2e = $x3f . $xd6('//', '/', $xb3);  } } break;  case "{G:IMAGE_LINK}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb2 = $xa6->getImage();  $xb4 = array($xa6->getSmall_image(), $xa6->getThumbnail());  $xb5 = '';  $xa3 = 0;  if ($xa6->getImage() && $xa6->getImage() != 'no_selection') { $xb3 = 'catalog/product/' . $xa6->getImage();  $x2e = $x3f . $xd6('//', '/', $xb3);  $xb5.="<g:image_link><![CDATA[" . $x2e . "]]></g:image_link>
";  $xa3++;  } $xb6 = 0;  while (isset($x7d[$xa6->getId()]['src'][$xb6]) && $xa3 < 10) { if ($x7d[$xa6->getId()]['src'][$xb6] != $xb2) { if ($xec($x7d[$xa6->getId()]['src'][$xb6], $xb4) || $x7d[$xa6->getId()]['disabled'][$xb6] != 1) { $xb3 = 'catalog/product/' . $x7d[$xa6->getId()]['src'][$xb6];  $x2e = $x3f . $xd6('//', '/', $xb3);  $xb5.="<g:additional_image_link><![CDATA[" . $x2e . "]]></g:additional_image_link>
";  $xa3++;  } } $xb6++;  } $x2e = $xb5;  break;  case "{url}" : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getRequest_path()) { $x2e = $x3e . $xa6->getRequest_path();  } else { $x2e = $xa6->getProductUrl();  } break;  case "{host}" : $x2e = $x3e;  break;  case "{uri}" : (isset($xa2['options'][0])) ? $xb7 = $xa2['options'][0] : $xb7 = "";  (isset($xa2['options'][1])) ? $xb8 = $xa2['options'][1] : $xb8 = "";  $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getRequest_path()) { $x2e = $xb8 . '' . $xa6->getRequest_path() . $xb7;  } else { $x2e = $xd6($x3e, '', $xa6->getProductUrl());  } break;  case '{is_in_stock}' : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0])) ? $xb9 = 'in stock' : $xb9 = $xa2['options'][0];  (!isset($xa2['options'][1])) ? $xba = "out of stock" : $xba = $xa2['options'][1];  (!isset($xa2['options'][2])) ? $x3c = "available for order" : $x3c = $xa2['options'][2];  if ($xa6->getManageStock() || ($xa6->getUseConfigManageStock() && $x3b )) { if ($xa6->getIs_in_stock() > 0) { $x2e = $xb9;  } else { if ($xa6->getBackorders() || ($xa6->getUseConfigBackorders() && $x3c)) { $x2e = $x3c;  } else { $x2e = $xba;  } } } else { $x2e = $xb9;  }   break;  case '{stock_status}' : $xa6 = $this->checkReference($xa2['reference'], $product);  ($xa6->getIs_in_stock() > 0) ? $x2e = 'in stock' : $x2e = 'out of stock';  break;  case '{qty}' : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0])) ? $xbb = 0 : $xbb = $xa2['options'][0];  if ($product->type_id == "configurable") { $x2e = $x8a[$product->getId()];  $x2e = $xf3($x2e, $xbb, '.', '');  } else if ($xa2['reference'] == "configurable") { $x2e = $xf3($x8a[$xa6->getId()], $xbb, '.', '');  } else { $x2e = $xf3($xa6->getQty(), $xbb, '.', '');  } break;  case "{categories}" : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0]) || !$xa2['options'][0] || $xa2['options'][0] == 'INF') ? $xbc = INF : $xbc = $xa2['options'][0];  (!isset($xa2['options'][1])) ? $xbd = 1 : $xbd = $xa2['options'][1];  (!isset($xa2['options'][2]) || !$xa2['options'][2] || $xa2['options'][2] == 'INF') ? $xbe = INF : $xbe = $xa2['options'][2];  $xbf = 0; 
 $x2e = '';  $xc0 = '';  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { ($x48) ? $xc1 = $xec($x57[$x58]["path"], $x49) : $xc1 = !$xec($x57[$x58]["path"], $x49);  if (isset($x57[$x58]) && $xbf < $xbc && ($xc1 || $x49[0] == "*")) { $xc2 = 0;  $xc3 = $xde('/', $x57[$x58]["path"]);  if ($xec($x41, $xc3)) { $xc4 = "";  if ($xbf > 0) { $xc0 = ",";  } foreach ($xc3 as $xc5) { if (isset($x57[$xc5])) { if ($x57[$xc5]['level'] > $xbd && $xc2 < $xbe) { if ($xc2 > 0) { $xc4.=' > ';  } $xc4.=($x57[$xc5]['name']);  $xc2++;  } } } $xc6 = "";  if (!empty($xc4)) { $x2e.=$xc0 . $xc4 . $xc6;  $xbf++;  } } } };  break;  case "{G:PRODUCT_TYPE}" : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0]) || !$xa2['options'][0] || $xa2['options'][0] == 'INF') ? $xbc = INF : $xbc = $xa2['options'][0];  (!isset($xa2['options'][1])) ? $xbd = 1 : $xbd = $xa2['options'][1];  (!isset($xa2['options'][2]) || !$xa2['options'][2] || $xa2['options'][2] == 'INF') ? $xbe = INF : $xbe = $xa2['options'][2];  $xbf = 0;  $x2e = '';  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { ($x48) ? $xc1 = $xec($x57[$x58]["path"], $x49) : $xc1 = !$xec($x57[$x58]["path"], $x49);  if (@$x57[$x58]['include_in_menu'] && isset($x57[$x58]) && $xbf < $xbc && ( $xc1 || $x49[0] == "*")) { $xc2 = 0;  $xc3 = $xde('/', $x57[$x58]["path"]);  if ($xec($x41, $xc3)) { $xc4 = '';  $xc0 = '<g:product_type><![CDATA[';  foreach ($xc3 as $xc5) { if (isset($x57[$xc5])) { if ($x57[$xc5]['level'] > $xbd && $xc2 < $xbe) { if ($xc2 > 0) { $xc4.=' > ';  } $xc4.=($x57[$xc5]['name']);  $xc2++;  } } } $xc6 = "]]></g:product_type>
";  if (!empty($xc4)) { $x2e.=$xc0 . $xc4 . $xc6;  $xbf++;  } } } };  break;  case "{G:GOOGLE_PRODUCT_CATEGORY}" : (isset($xa2["options"][0])) ? $xc7 = $xa2["options"][0] : $xc7 = 0;  $x2e = "";  $xc8 = 0;  $xa6 = $this->checkReference($xa2['reference'], $product);  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { if (isset($x57[$x58]["path"]) && isset($x4a[$x57[$x58]["path"]])) { if ($xc8 == $xc7) { $x2e.="<g:google_product_category><![CDATA[" . $x4a[$x57[$x58]["path"]] . "]]></g:google_product_category>
";  break;  } $xc8++;  } } break;  case "{category_mapping}" : (isset($xa2["options"][0])) ? $xc7 = $xa2["options"][0] : $xc7 = 0;  $x2e = "";  $xa6 = $this->checkReference($xa2['reference'], $product);  $xc8 = 0;  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { if (isset($x4a[$x57[$x58]["path"]])) { if ($xc8 == $xc7) { $x2e.=$x4a[$x57[$x58]["path"]];  break;  } $xc8++;  } } break;  case "{review_count}": $xa6 = $this->checkReference($xa2['reference'], $product);  $x2e = "";  (isset($xa2["options"][0]) && $xa2["options"][0] == "*" ) ? $xc9 = 0 : $xc9 = $x36;  if (isset($x77[$xa6->getId()][$xc9]["count"])) { $xca = $x77[$xa6->getId()][$xc9]["count"];  if (isset($xca)) { $x2e.=$xca;  } } break;  case "{review_average}": $xa6 = $this->checkReference($xa2['reference'], $product);  $x2e = "";  (isset($xa2["options"][0]) && $xa2["options"][0] == "*" ) ? $xc9 = 0 : $xc9 = $x36;  (!isset($xa2["options"][1]) || !$xa2["options"][1]) ? $xcb = 5 : $xcb = $xa2["options"][1];  if (isset($x77[$xa6->getId()][$xc9]["score"])) { $xcc = $xf3($x77[$xa6->getId()][$xc9]["score"] * $xcb / 100, 2, ".", "");  if (isset($xcc)) { $x2e.=$xcc;  } } break;  case "{G:PRODUCT_REVIEW}" : $xa6 = $this->checkReference($xa2['reference'], $product);  (isset($xa2["options"][0]) && $xa2["options"][0] == "*" ) ? $xc9 = 0 : $xc9 = $x36;  (!isset($xa2["options"][1]) || !$xa2["options"][1]) ? $xcb = 5 : $xcb = $xa2["options"][1];  $x2e = "";  if (isset($x77[$xa6->getId()][$xc9]["count"])) { $xca = $x77[$xa6->getId()][$xc9]["count"];  $xcc = $xf3($x77[$xa6->getId()][$xc9]["score"] * $xcb / 100, 2, ".", "");  } if (isset($xcc) && $xcc > 0) { $x2e.="<g:product_review_average><![CDATA[" . $xcc . "]]></g:product_review_average>
";  } if (isset($xca) && $xca > 0) { $x2e.="<g:product_review_count><![CDATA[" . $xca . "]]></g:product_review_count>
";  } unset($xcc);  unset($xca);  break;  case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $xa6 = $this->checkReference('configurable', $product);  $x2e = "<g:item_group_id><![CDATA[" . $xa6->getSku() . "]]></g:item_group_id>";  } break;  case "{SC:EAN}" : ($xdd($xa2['options'][0]) && $xa2['options'][0] > 0) ? $xcd = $xa2['options'][0] : $xcd = 0;  $xa6 = $this->checkReference($xa2['reference'], $product);  $x2e = $xde(',', $xa6->getEan());  $x2e = "<g:ean><![CDATA[" . $x2e[$xcd] . "]]></g:ean>";  break;  case "{SC:IMAGES}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb2 = $xa6->getSmall_image();  $xb4 = array($xa6->getImage(), $xa6->getThumbnail());  $xb5 = '';  $xa3 = 0;  if ($xa6->getSmall_image() && $xa6->getSmall_image() != 'no_selection') { $xb3 = $xa6->getSmall_image();  $x2e = $xb3;  $xb5.="<g:image_link><![CDATA[" . $x2e . "]]></g:image_link>
";  $xa3++;  } $xb6 = 0;  while (isset($x7d[$xa6->getId()]['src'][$xb6]) && $xa3 < 10) { if ($x7d[$xa6->getId()]['src'][$xb6] != $xb2) { if ($xec($x7d[$xa6->getId()]['src'][$xb6], $xb4) || $x7d[$xa6->getId()]['disabled'][$xb6] != 1) { $xb3 = $x7d[$xa6->getId()]['src'][$xb6];  $x2e = $xb3;  $xb5.="<g:additional_image_link><![CDATA[" . $x2e . "]]></g:additional_image_link>
";  $xa3++;  } } $xb6++;  } $x2e = $xb5;  break;  case "{SC:DESCRIPTION}" : $xa6 = $this->checkReference($xa2['reference'], $product); 
 $xce = $xa6->getDescription() . $xa6->getShortDescription();  $xcf = "|<iframe(.*)</iframe>|U";  $xd9($xcf, $xce, $xd0);  if ($xd0) { $xce = $xa6->getAttributeText('manufacturer') . " " . $xa6->getName() . " - Part number: " . $xa6->getSku() . " - Category : {categories,[1],[1],[1]}";  } else { if ($xec("strip_tags", $xa2['options'])) { $xce = $xf4('!\<br /\>!isU', " ", $xce);  $xce = $xf4('!\<br/\>!isU', " ", $xce);  $xce = $xf4('!\<br>!isU', " ", $xce);  $xce = $xf5($xce);  } if ($xec("html_entity_decode", $xa2['options'])) { $xce = $xf6($xce, ENT_QUOTES, 'UTF-8');  } if ($xec("htmlentities", $xa2['options'])) { $xce = $xf7(($xce));  } if ($xe2($xce) > 900) { $xce = $xdf($xce, 0, 900 - 3);  $xd1 = $xf8($xce, " ");  $xce = $xdf($xce, 0, $xd1) . '...';  } } if ($xce == null) $xce = $xa6->getAttributeText('manufacturer') . " " . $xa6->getName() . " - Part number: " . $xa6->getSku() . " - Category : {categories,[1],[1],[1]}";  $xce = $xf4('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xce);  $xce = $xd6(' ', '', $xce);  $x2e = "<description><![CDATA[" . $xce . "]]></description>";  break;  case "{SC:URL}" : (isset($xa2['options'][0])) ? $xb7 = $xa2['options'][0] : $xb7 = "";  (isset($xa2['options'][1])) ? $xb8 = $xa2['options'][1] : $xb8 = "";  $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getRequest_path()) { $x2e = "<link><![CDATA[" . $x3e . $xb8 . $xa6->getRequest_path() . $xb7 . "]]></link>";  } else { $x2e = "<link><![CDATA[" . $xa6->getProductUrl() . "]]></link>";  } break;  case "{SC:CONDITION}" : $xa6 = $this->checkReference($xa2['reference'], $product);  ($xf9($xa6->getName(), "refurbished")) ? $x9c = 'refurbished' : $x9c = 'new';  $x2e = "<g:condition><![CDATA[" . $x9c . "]]></g:condition>";  break;  case "{sc:condition}" : $xa6 = $this->checkReference($xa2['reference'], $product);  ($xf9($xa6->getName(), "refurbished")) ? $x9c = 'refurbished' : $x9c = 'new';  $x2e = $x9c;  break;  default : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xec($xa2['name'], $x62)) { if ($xec($x63[$xa2['name']], array('select', 'multiselect'))) { eval('$xd3 =($xa6->' . $xa2['methodName'] . ");");  $xd2 = $xde(',', $xd3);  if ($xdc($xd2) > 1) { $x2e = array();  foreach ($xd2 as $x9f) { if (isset($x68[$x9f][$x36])) $x2e[] = $x68[$x9f][$x36];  else { if (isset($x68[$x9f][0])) $x2e[] = $x68[$x9f][0];  } } } else { if (isset($x68[$xd2[0]][$x36])) { $x2e = $x68[$xd2[0]][$x36];  } else { if (isset($x68[$xd2[0]][0])) $x2e = $x68[$xd2[0]][0];  } } } else { eval('$x2e =($xa6->' . $xa2['methodName'] . ");");  } } if ($xec(@$x60[$xa2['name']], $x60)) { $x2e = $x60[$xa2['name']];  } $xd4 = 0;  if ($xdc($xa2['options']) > 0) { while (isset($xa2['options'][$xd4])) { switch ($xa2['options'][$xd4]) { case "substr" : if (isset($xa2['options'][$xd4 + 1]) && $xe2($x2e) > $xa2['options'][$xd4 + 1]) { $x2e = $xdf($x2e, 0, $xa2['options'][$xd4 + 1] - 3);  $xd1 = $xf8($x2e, " ");  $x2e = $xdf($x2e, 0, $xd1) . $xa2['options'][$xd4 + 2];  } $xd4++;  $xd4++;  break;  case "htmlentities" : $x2e = $xf7(($x2e));  break;  case "strip_tags" : $xd5 = " ";  $x2e = $xf4('!\<br /\>!isU', $xd5, $x2e);  $x2e = $xf4('!\<br/\>!isU', $xd5, $x2e);  $x2e = $xf4('!\<br>!isU', $xd5, $x2e);  $x2e = $xf5($x2e);  break;  case "implode" : $x2e = ($xe6($x2e)) ? $xee($xa2['options'][$xd4 + 1], $x2e) : $x2e;  $xd4++;  break;  case "float" : $x2e = $xf3($x2e, $xa2['options'][$xd4 + 1], '.', '');  $xd4++;  break;  case "html_entity_decode" : $x2e = $xf6($x2e, ENT_QUOTES, 'UTF-8');  break;  case "inline": $x2e = $xf4('/(
|
|
|
|	)/s', '', $x2e);  break;  case "strtolower": $x2e = $xfa($x2e, "UTF8");  break;  case "strtoupper": $x2e = $xfb($x2e, "UTF8");  break;  case "cleaner": $x2e = $xf4('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x2e);  $x2e = $xd6(' ', '', $x2e);  break;  default : eval('$x2e=' . $xa2['options'][$xd4] . '($x2e); ');  break;  } $xd4++;  } } break;  } $x2e = $xd6(array("<", ">"), array("{([", "])}"), $x2e);  $x2c = $xd6($xa2['fullpattern'], $x2e, $x2c);  } $x2c = $this->xfd($x2c, $product);  $x2c = $this->x101($x2c);  $x2c = $this->x100($x2c);  $x2c = $xd6(array("{([", "])}"), array("<", ">"), $x2c);  if (!empty($x2c)) { $x4f.=("<item>");  $x4f.="
" . $x2c . "
";  $x4f.=("</item>" . "
");  $x97++;  } if ($this->_display) { $x50.=$x4f;  $x4f = '';  } else { if ($x97 % Mage::getStoreConfig("simplegoogleshopping/system/buffer") == 0) { $x20->streamWrite($x4f);  unset($x4f);  $x4f = '';  } } if ($this->_limit && $x97 > $this->_limit) { break 2;  } } } $x4f.=('</channel>' . "
");  $x4f.=('</rss>');  if (!$this->_display) { $x20->streamWrite($x4f); 
 } unset($x85);  $x50.=$x4f;  if ($this->_display && !$this->_debug) { (!Mage::app()->getRequest()->getParam("real_time_preview")) ? $xce = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x50) . "</textarea>" : $xce = $x50;  if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
    		<html>
     	 <head>
   	 <title>" . $this->getSimplegoogleshoppingFilename() . "</title> 
             <link rel='stylesheet' href='" . $x3d . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
             <link rel='stylesheet' href='" . $x3d . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>       
              <script type='text/javascript' src='" . $x3d . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
                 <script type='text/javascript' src='" . $x3d . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script>
    
 
      
            
                </head>
               <body>
               " . $xce . "               <script language='javascript'>
                   sHtml=document.getElementById('CodeMirror');                    if(typeof sHtml != 'undefined'){                     var myCodeMirror = CodeMirror(function(elt) { 
                         sHtml.parentNode.replaceChild(elt, sHtml)}, {
                            value: sHtml.value, 
                          mode:  'xml', 
                            readOnly: true
                        })
                       } 
               
              </script>                </body> 
         </html>");  } else return $xce;  } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>";  $xce = "<pre>" . $xfc($x50) . "</pre>";  return $xce;  } else { $x20->streamClose();  $this->setSimplegoogleshopping_time(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s'));  $this->save();  } return $this;  } } ; 

Did this file decode correctly?

Original Code

<?php class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abstract { public $_indexPhp = '';
 protected $_filePath;  public $_limit = false;  public $_display = false;  public $_rates = false;  public $_sqlSize = 1500;  public function xfd($myPattern, $product, $x1b = true) { $xd6="\x73\x74\x72\x5f\x72e\160\154a\143e";  $xd7="ut\146\70\137\x65\x6eco\x64\145";  $xd8="\160\162e\x67\137m\x61\x74c\x68\x5fa\x6c\x6c";  $xd9="p\x72e\x67\x5f\155\x61t\x63h";  $xda="\162\164\x72\151\x6d";  $xdb="\x69s\137nul\154";  $xdc="c\x6f\165\156\164";  $xdd="i\163_\x6e\165mer\x69\x63";  $xde="ex\160l\157de";  $xdf="su\x62s\164\x72";  $xe0="\164\162\151\155";  $xe1="\160\x72\x65g\x5f\163\160\x6ci\164";  $xe2="s\164\162\x6c\145\156";  $xe3="\165\x74f\70\x5f\x64\145\x63\157\144e";  $xe4="\151s\137\x73\164r\151\156g";  $xe5="\152\x73\157\156_\x64\145\143o\144e";  $xe6="\151\x73\x5f\141\162\x72\x61y";  $xe7="\150\145\141\x64\145r";  $xe8="\x75cw\157\x72d\x73";  $xe9="\x61\162r\x61\171\x5f\160\165s\150";  $xea="pr\151\x6e\x74_\x72";  $xeb="v\145\162\163\151o\156_c\x6f\x6dp\x61\162\x65";  $xec="\151\x6e\x5f\x61\x72r\141\x79";  $xed="\162\157un\144";  $xee="\x69mpl\x6f\144\145";  $xef="\163\160r\x69\x6e\x74\146";  $xf0="\x61\x72r\x61y_\160\x6f\x70";  $xf1="\151n\x69_\x67\x65t";  $xf2="s\x65\164_\x74\151\x6d\145_l\151\x6di\164";  $xf3="numb\x65r_for\x6d\141\x74";  $xf4="\x70r\x65g\137\x72\x65\x70\154\141\143e";  $xf5="\163\x74\162i\x70_t\x61g\163";  $xf6="\x68\164\x6d\x6c\x5fe\156t\x69\164\171\x5f\144\x65\143\157\144e";  $xf7="\x68tml\x73\x70\145\x63\x69\x61\154cha\162s";  $xf8="str\162\160os";  $xf9="\x73t\x72\x69\163t\162";  $xfa="\x6d\x62\137\x73tr\164\157\x6c\157w\145\162";  $xfb="\155\x62_\x73\x74\162\x74\157up\x70\x65r";  $xfc="\150\x74\x6d\154e\156\164\x69t\151e\x73";  $myPattern = $xd6('<?', $xd7(''), $myPattern);  $myPattern = $xd6('?>', $xd7(''), $myPattern);  $x1c = $xd7('/((.[^]+))/s');  $xd8($x1c, $myPattern, $x1d);  if (isset($x1d[1])) { foreach ($x1d[1] as $x1e => $x1f) { if ($x1b == 1) { if (@eval($x1d[2][$x1e] . '; ')) $myPattern = $xd6($x1f, eval($x1d[2][$x1e] . '; '), $myPattern);  else $myPattern = $xd6($x1f, '', $myPattern);  } else { if (@eval($this->unescapeStr($x1d[2][$x1e] . '; '))) $myPattern = $xd6($x1f, $this->escapeStr(eval($this->unescapeStr($x1d[2][$x1e]) . '; ')), $myPattern);  else $myPattern = $xd6($x1f, '', $myPattern);  } } } return $myPattern;  } protected function _construct() { $xd6="st\162_\x72\x65\x70\154a\143\145";  $xd7="\165tf\70\137\145\x6e\143\x6fd\145";  $xd8="\160\162\x65g\x5f\155\141\164\143\150\137\x61\x6c\x6c";  $xd9="\160\162\145\x67\x5f\x6datc\150";  $xda="\x72\x74r\151\155";  $xdb="i\x73_\x6e\165l\x6c";  $xdc="\x63\157u\156\x74";  $xdd="\x69s\137\156\165me\162\x69c";  $xde="\x65xplo\x64e";  $xdf="\163\165bs\164r";  $xe0="\x74\162\x69\x6d";  $xe1="p\x72eg\x5f\163\x70\154it";  $xe2="\163\164r\154\145n";  $xe3="\x75\164f\70\x5f\x64\x65cod\145";  $xe4="i\x73_\x73\164\162\x69\x6e\x67";  $xe5="\152\163\157\x6e\137\x64\145c\x6fd\x65";  $xe6="\x69\x73_a\x72\x72\x61\x79";  $xe7="h\x65ad\145\162";  $xe8="\x75c\x77\x6fr\144s";  $xe9="\141rra\x79\137\160\165\163h";  $xea="\160\162\151\156t\137\162";  $xeb="\x76\145rs\151\x6f\x6e\137c\x6fmp\141\162\145";  $xec="\151\156\x5f\141\x72ra\171";  $xed="\162\157u\x6ed";  $xee="im\160l\x6f\x64\145";  $xef="\163\160r\x69\156tf";  $xf0="\x61\162\162\141y_p\157\x70";  $xf1="\151\156\151\x5fg\145\x74";  $xf2="\163\x65t_\x74\x69\x6d\145_\154\151mi\164";  $xf3="\156\x75m\x62er\x5ff\157\x72\x6da\164";  $xf4="\160\162\x65\147\x5f\162\145\x70\154a\x63\x65";  $xf5="\163t\162\151p_t\x61g\x73";  $xf6="\x68t\x6dl\x5f\x65\x6eti\164\171_\x64\145\143\157\144e";  $xf7="\x68t\x6dl\163p\x65\143i\x61\154c\x68\141\162\x73";  $xf8="\x73t\x72\162pos";  $xf9="\x73tri\x73\x74\x72";  $xfa="\x6d\142\x5f\163\x74\162\x74\x6f\x6co\x77\145r";  $xfb="\x6d\x62\x5f\163\x74\x72\164\157u\160\160e\x72";  $xfc="\x68\164\155\154e\156tit\x69\145\x73";  $this->_sqlSize = Mage::getStoreConfig("simp\154\145\x67\x6fogles\150\157\x70\160\151ng/s\x79st\x65m/\x73\x71lsi\172e");  $this->_init('simplegoogleshopping/simplegoogleshopping');  } protected function _beforeSave() { $xd6="\x73\164\x72\137\x72ep\x6c\x61\x63\145";  $xd7="\x75t\x66\70_\x65\156c\157d\145";
 $xd8="p\162\x65\147\x5f\x6d\141\164c\150_\141\154\x6c";  $xd9="p\162\x65g\137\x6d\141tch";  $xda="\162\x74\162\151\155";  $xdb="\x69s\x5f\156\x75ll";  $xdc="\x63\x6f\x75\x6e\164";  $xdd="\x69\163\x5f\156\x75m\145\x72\x69c";  $xde="exp\154\157de";  $xdf="s\165\x62str";  $xe0="t\162\151\x6d";  $xe1="\160r\x65\x67_s\x70\154\x69t";  $xe2="s\x74\x72\154e\x6e";  $xe3="\165\164f\70\x5f\x64ec\157\144\145";  $xe4="\x69\x73_s\164\162\151\156\147";  $xe5="\152\x73on\x5f\144e\143o\144\145";  $xe6="\x69s_\x61\x72\x72ay";  $xe7="\150\x65\x61\144\145\x72";  $xe8="\x75c\167o\162d\163";  $xe9="a\162\162\x61\x79\x5f\160\x75s\x68";  $xea="\x70\162i\x6e\164_r";  $xeb="\x76\145\x72\163io\156\x5f\143o\x6d\x70\141\162e";  $xec="\x69\x6e_\x61\x72\162\x61y";  $xed="\162\x6f\165\156\144";  $xee="\x69\155\160\154ode";  $xef="s\160\162\x69\x6e\x74\x66";  $xf0="\x61rray_po\x70";  $xf1="\151\x6e\x69_\147e\164";  $xf2="set\137\x74i\x6de\137l\151mi\164";  $xf3="\x6e\x75\155b\x65\x72_f\x6fr\x6d\x61\x74";  $xf4="\x70\162eg\137\162\145pl\141\x63e";  $xf5="\x73t\x72ip_ta\x67s";  $xf6="h\x74\155\154\137\145n\164i\x74\x79\137d\145\x63\157\144\x65";  $xf7="h\164ml\163p\145\x63\151\141l\143\x68\141r\163";  $xf8="\x73\x74\x72\x72po\x73";  $xf9="\x73\x74\x72\151\163\164\x72";  $xfa="\155\142_\163\x74\x72\x74o\x6co\x77\x65\162";  $xfb="\155\142\137s\164rto\165pp\145r";  $xfc="h\x74\155\154\x65\x6et\x69\164\x69\x65s";  $x20 = new Varien_Io_File();  $x21 = $x20->getCleanPath(Mage::getBaseDir() . '/' . $this->getSimplegoogleshoppingPath());  if (!$x20->allowedPath($x21, Mage::getBaseDir())) { } if (!$x20->fileExists($x21, false)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please create the specified folder "%s" before saving the googleshopping.', Mage::helper('core')->htmlEscape($this->getSimplegoogleshoppingPath())));  } if (!$x20->isWriteable($x21)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please make sure that "%s" is writable by web-server.', $this->getSimplegoogleshoppingPath()));  } if (!$xd9('#^[a-zA-Z0-9_\.]+$#', $this->getSimplegoogleshoppingFilename())) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.'));  } if (!$xd9('#\.xml$#', $this->getSimplegoogleshoppingFilename())) { $this->setSimplegoogleshoppingFilename($this->getSimplegoogleshoppingFilename() . '.xml');  } $this->setSimplegoogleshoppingPath($xda($xd6($xd6('\\', '/', Mage::getBaseDir()), '', $x21), '/') . '/');  return parent::_beforeSave();  } protected function getPath() { $xd6="s\164r\x5f\162\x65\160la\143\145";  $xd7="\165\164\x66\70\x5f\x65\x6eco\x64e";  $xd8="\160\162\x65\147\137\x6d\x61\164\143h\137a\154\154";  $xd9="\x70r\x65\x67\137\155\141\x74ch";  $xda="\x72trim";  $xdb="is\x5f\156\x75l\x6c";  $xdc="\143o\165nt";  $xdd="\x69s\137\156u\155\145\x72i\x63";  $xde="\145\x78p\154\x6f\144\x65";  $xdf="\x73\x75\x62s\164r";  $xe0="\x74\x72i\155";  $xe1="\x70\162\145\x67_\x73\160\154\x69t";  $xe2="\x73\x74r\x6cen";  $xe3="u\164f\70\137d\x65c\x6fd\x65";  $xe4="i\x73\137s\164\162\151\x6eg";  $xe5="\x6a\163\x6f\156\137\x64ecode";  $xe6="i\163\x5fa\x72\x72ay";  $xe7="\x68eade\x72";  $xe8="u\143w\157\162ds";  $xe9="ar\162\141\x79\x5f\160\x75s\150";  $xea="p\162i\156\164_\162";  $xeb="\x76e\x72\x73i\x6f\156_\143\157\x6dp\x61re";  $xec="\x69\156\137\x61\162r\x61\x79";  $xed="\x72\x6fu\x6e\144";  $xee="\151m\x70lo\x64e";  $xef="\163\160\162\151nt\146";  $xf0="a\x72\162\141\171_p\157\160";  $xf1="in\151\x5fg\145\x74";  $xf2="\163et\137\164\151m\145\x5f\x6ci\155\x69t";  $xf3="\x6eum\142\145\x72\137\146or\x6d\141\164";  $xf4="\x70\162\x65\147_r\x65\160\x6ca\x63\145";  $xf5="\x73\164\162\151\160\x5f\164\x61\x67\x73";  $xf6="h\164m\x6c\x5fe\x6et\151\164\x79\137d\x65\143\x6f\144\145";  $xf7="\x68t\x6d\x6c\x73\160e\143\151\141lc\150\141\x72\163";  $xf8="\163\164\162r\x70\x6f\163";  $xf9="\163\164\162is\164\x72";  $xfa="\155b_st\x72\x74\157\154ow\x65\162";  $xfb="\155b_\x73\x74\x72\164\x6f\165\160\160\x65\x72";  $xfc="ht\x6d\154\x65\156\x74i\164\x69e\163";  if ($xdb($this->_filePath)) { $this->_filePath = $xd6('//', '/', Mage::getBaseDir() . $this->getSimplegoogleshoppingPath());  } return $this->_filePath;  } public function getPreparedFilename() { $xd6="\163\164\162\137r\x65p\154a\x63e";  $xd7="\x75\164f\70_\x65\x6ec\157\x64\145";  $xd8="\160\162\145\x67_\155\141t\143\x68\137\x61ll";  $xd9="pre\147_m\x61\x74\143h";  $xda="rt\x72\151\x6d";  $xdb="\151\x73\137null";  $xdc="\143\x6f\165n\164";  $xdd="\x69\x73\x5fnu\x6d\145\x72i\143";  $xde="\x65xp\x6cod\145";  $xdf="\163ubs\164r";  $xe0="\164\x72\151m";  $xe1="\160\x72eg\x5fs\x70li\x74";  $xe2="\163t\x72\x6c\x65n";  $xe3="\x75\164f\70_d\x65\143\157de";
 $xe4="\x69\163\x5fs\x74\162i\x6e\147";  $xe5="\x6aso\x6e\137d\145\143ode";  $xe6="is\137a\162\x72ay";  $xe7="hea\x64\x65r";  $xe8="u\143\167or\x64\x73";  $xe9="\141r\x72\x61y_pu\163h";  $xea="\160\x72\x69\x6e\164\x5f\x72";  $xeb="\166\x65\x72\x73\x69\157\x6e\x5fco\x6d\160\x61\x72\x65";  $xec="i\x6e\137ar\162\141\171";  $xed="\x72\x6f\165\x6e\144";  $xee="\x69\155\160\154\157de";  $xef="s\x70\x72\x69nt\x66";  $xf0="\141r\162\141y\137\x70\157\160";  $xf1="\151\x6ei\137\x67\145t";  $xf2="\163\145\x74\x5f\x74ime_l\x69mit";  $xf3="\x6e\x75m\142er\x5ff\157\162\155\141\164";  $xf4="p\162\x65g\x5f\162e\x70lac\145";  $xf5="\163\164\162\151\x70\137\164\141\147s";  $xf6="\x68\164m\x6c_\145\156\164\x69\164\x79\x5f\x64\x65c\x6f\144\145";  $xf7="h\x74\x6d\154spec\151\141\154\x63\x68\141\162\x73";  $xf8="s\164\162\x72p\157s";  $xf9="\x73tr\151\163\x74r";  $xfa="m\x62_\x73\164\162t\157\154\x6fwe\x72";  $xfb="\x6d\142_\x73\x74\x72t\157\x75\x70\x70\x65r";  $xfc="\x68\164\155\x6c\x65\x6e\x74\x69\x74\151e\x73";  return $this->getPath() . $this->getSimplegoogleshoppingFilename();  } public function xfe($x22, $x23) { $xd6="\x73\164\x72\x5f\162\145\x70l\x61\x63\x65";  $xd7="\165\x74f\70\137\x65nc\x6f\x64\x65";  $xd8="\160\x72\145g\x5fm\x61t\143\x68_\x61\154\x6c";  $xd9="\160\x72\x65\147\137\155at\143\150";  $xda="\x72t\162i\x6d";  $xdb="\151\x73_\156ull";  $xdc="co\165\x6e\x74";  $xdd="\151\163_\156um\145\x72\x69\x63";  $xde="\x65\x78\160\154\x6f\144e";  $xdf="\x73\165\142\163\164r";  $xe0="\x74\x72im";  $xe1="\x70\x72\x65\x67_\163\x70\x6c\151\x74";  $xe2="st\162le\156";  $xe3="\165\164\146\70\x5f\x64e\143o\x64\x65";  $xe4="i\163\x5f\163\x74\x72\151\156\147";  $xe5="\x6a\x73\157\156\137\144\x65\143\x6f\x64\x65";  $xe6="\151s\137\x61rra\x79";  $xe7="\150\x65\x61\x64\145\162";  $xe8="uc\167\x6f\x72\x64\163";  $xe9="\141\162ra\x79\x5f\160\165\163\150";  $xea="p\x72\x69nt\x5fr";  $xeb="\x76\145r\163i\157n\137\x63\157m\160\141\162e";  $xec="\x69\156_\141\162\x72ay";  $xed="ro\x75nd";  $xee="im\160l\157\144\145";  $xef="\163\x70\162\x69\x6et\x66";  $xf0="a\162\162\141y_\x70\157\160";  $xf1="\151\x6e\151\x5f\x67\145\x74";  $xf2="s\145\x74\137\164ime\137\x6c\x69\155\x69\x74";  $xf3="\156u\155\x62\145\162_fo\162\x6d\x61t";  $xf4="\160\x72\145g_r\x65\x70\x6ca\x63\x65";  $xf5="\163\x74\162i\160\137\164\141\x67\163";  $xf6="\x68\164\155l\x5f\x65\x6e\x74it\171\137d\x65\143o\144\145";  $xf7="htm\x6c\x73\x70\x65c\151\141\x6cc\x68\x61\x72s";  $xf8="\x73\164r\x72po\x73";  $xf9="\x73\x74r\151\163\164\x72";  $xfa="\x6d\142_\x73t\x72\x74olo\167\x65\162";  $xfb="\155\142_\163\164\x72\x74o\x75\x70p\x65\x72";  $xfc="htm\154e\x6eti\x74\151e\163";  $x24 = $this->_currencies;  if (isset($x24[$x23])) return $x22 * $x24[$x23];  else { return $x22;  } } public function xff($x22, $x25, $x26, $x27 = false) { $xd6="\163t\162_re\160\x6c\141ce";  $xd7="u\x74f\70_\x65\156\x63\157\144e";  $xd8="\160re\147\137ma\x74c\150\137\141l\x6c";  $xd9="\160reg\137m\141\x74c\x68";  $xda="\x72\x74r\x69\155";  $xdb="\x69\x73_nu\154\154";  $xdc="\143\157\165\x6e\x74";  $xdd="is_\x6e\x75m\x65r\x69c";  $xde="\145\170\160l\157d\145";  $xdf="s\x75bs\x74r";  $xe0="\164r\x69\x6d";  $xe1="\x70r\145\147\137\x73\x70l\151\x74";  $xe2="s\164\x72\154e\156";  $xe3="\x75\164\x66\70\x5f\x64e\x63\x6f\144\145";  $xe4="i\x73\x5f\x73\x74\162ing";  $xe5="\152\x73\x6f\x6e\137\x64\x65c\157de";  $xe6="\x69s\137\x61r\162a\x79";  $xe7="h\x65a\144\145\x72";  $xe8="\165\143\167\157\162\144s";  $xe9="\141rra\x79\x5fp\165sh";  $xea="p\162\x69n\164\137r";  $xeb="v\145r\163i\157\156\137c\x6fm\x70are";  $xec="in\137ar\162\141\171";  $xed="\x72\x6f\x75\x6e\x64";  $xee="imp\154\x6fd\x65";  $xef="\x73\x70ri\x6e\x74f";  $xf0="\141r\162\x61\171\x5fp\157p";  $xf1="\x69n\151\137\x67\145t";  $xf2="\x73\x65\164_\164ime\x5fl\151mi\164";  $xf3="\156\x75\155\x62\x65r\137f\x6f\x72\x6d\x61\164";  $xf4="p\x72\x65\147\137\x72\x65\160l\x61\x63\145";  $xf5="\x73t\x72\x69\160_\164a\x67s";
 $xf6="\x68\x74\x6dl\137\145\x6e\164\x69ty\x5f\144\x65\x63\157\144e";  $xf7="\150t\x6dl\163\160e\x63\x69\141l\x63\x68a\x72\x73";  $xf8="str\x72\x70o\x73";  $xf9="st\162\x69str";  $xfa="m\x62\137\x73tr\164o\x6c\157\x77\x65r";  $xfb="\x6d\x62\x5f\163\x74r\x74\x6fu\x70\x70er";  $xfc="\150\x74m\154e\156t\x69\164\151\x65s";  $x28 = $this->_rates;  if ($x27 === false) { if (!$x25 && isset($x28[$x26])) { if ($xdc($x28[$x26]) > 1) { return $x22;  } else { return $x22 * ($x28[$x26][0]['rate'] / 100 + 1);  } } else { return $x22;  } } elseif ($x27 === "\60") { if ($x25 && isset($x28[$x26])) { if ($xdc($x28[$x26]) > 1) { return $x22;  } else { return 100 * $x22 / (100 + ($x28[$x26][0]['rate']));  } } else { return $x22;  } } else { if ($xdd($x27)) { if ($x26 != 0) { return $x22 * ($x27 / 100 + 1);  } elseif ($x26 == 0) { return $x22;  } } else { $x27 = $xde('/', $x27);  $x29 = 0;  $x2a = false;  if ($xdf($x27[0], 0, 1) == "\x2d") { $x27[0] = $xdf($x27[0], 1);  $x2a = true;  } if ($x28[$x26]) { foreach ($x28[$x26] as $x2b) { if ($x2b['country'] == $x27[0]) { if (!isset($x27[1]) || $x2b['code'] == $x27[1]) { $x29 = $x2b['rate'];  break;  } } } if (!$x2a) return $x22 * ($x29 / 100 + 1);  else { return 100 * $x22 / (100 + ($x29));  } } else { return $x22;  } } } } public function x100($x2c, $x2d = true) { $xd6="\163\164\162\137\162\x65\160l\x61\x63e";  $xd7="u\164f\70_\145\x6ec\157de";  $xd8="\x70\x72\145\147_m\x61\164ch_\141\x6c\x6c";  $xd9="p\162e\147\137\x6d\141\164\143\150";  $xda="\162\x74\162\x69\155";  $xdb="\x69s\137\x6e\165\x6c\x6c";  $xdc="\x63\x6f\165\x6e\x74";  $xdd="\x69\163\x5f\156\165m\x65\x72\151\x63";  $xde="\145\x78pl\157d\x65";  $xdf="s\x75\142s\164r";  $xe0="\x74ri\155";  $xe1="p\x72\145g\137\x73\x70l\151t";  $xe2="s\164\x72\x6c\x65\156";  $xe3="utf\70_\x64eco\144\145";  $xe4="\151\163\x5f\x73tr\151\156g";  $xe5="j\163o\156\x5fd\145c\x6f\144e";  $xe6="\151\163_\141\x72\x72\x61\x79";  $xe7="\x68\145a\144\x65r";  $xe8="u\x63w\157rd\x73";  $xe9="\141\162r\141\171\x5f\160\165s\150";  $xea="\x70\162\151\156t\137\162";  $xeb="ve\x72\163\x69\157\156\x5f\143\x6f\155\160\x61re";  $xec="\151\156\x5f\x61r\162\141\171";  $xed="\x72\157\x75\156d";  $xee="im\160\154\157d\x65";  $xef="s\x70\162\x69ntf";  $xf0="\x61r\162a\171\x5f\x70\157p";  $xf1="i\x6e\151_\147e\x74";  $xf2="\163\145\x74\x5f\x74im\x65\137\x6cimit";  $xf3="\156\x75m\x62e\x72\x5ffo\x72mat";  $xf4="\160\162\145\147\x5fr\145\x70l\141\x63\x65";  $xf5="\x73\x74ri\x70_\x74\x61\147\x73";  $xf6="\x68\164\155l\137en\x74\151\x74y_dec\157\x64e";  $xf7="h\x74ml\163p\145\143ial\x63\x68ar\163";  $xf8="s\x74\x72\162\160o\163";  $xf9="\x73t\x72\x69\163\164\x72";  $xfa="\155\x62\x5f\163\x74r\164\157\x6c\x6f\167\x65\x72";  $xfb="\155b_\x73\164r\164o\165\x70\160\145r";  $xfc="\150\164\155\x6cen\164i\x74\151e\163";  $x1c = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';  $xd8($x1c, $x2c, $x1d);  foreach ($x1d[1] as $x1e => $x2e) { $x2f = $xe0($x1d[2][$x1e]);  if (empty($x2f) && !$xdd($x2f)) $x2c = $xd6($x1d[0][$x1e], '', $x2c);  else { if ($x2d) $x2c = $xd6($x1d[0][$x1e], ($x1d[1][$x1e]) . '<![CDATA[' . $x2f . ']]>' . ($x1d[3][$x1e]), $x2c);  else $x2c = $xd6($x1d[0][$x1e], ($x1d[1][$x1e]) . $x2f . ($x1d[3][$x1e]), $x2c);  } } $x30 = $xe1("\x2f\x0a/\x73", $x2c);  $x31 = '';  foreach ($x30 as $x32) { ($xe2($xe0($x32)) > 0) ? $x31.=$x32 . "\x0a" : false;  } $x2c = $x31;  return $x2c;  } public function x101($x2c) { $xd6="\x73tr\137\x72epl\141\x63\x65";  $xd7="\165\164\x66\70_e\156\143\157\x64\x65";  $xd8="\x70\x72e\x67\137m\141\x74\143\x68\x5f\141l\154";  $xd9="\160\162\145\x67\x5f\155\141tc\150";  $xda="r\164r\x69\x6d";  $xdb="i\163\137\x6e\165\154l";  $xdc="\x63ount";  $xdd="\x69\x73\137nu\x6d\x65\x72\x69c";  $xde="\145xp\x6c\157\144\x65";  $xdf="su\x62\x73\x74\x72";  $xe0="\164rim";  $xe1="\160r\145\147\x5fs\x70l\151\x74";  $xe2="\x73\164\162l\x65\x6e";  $xe3="\165\x74f\70\x5f\x64\145c\157de";  $xe4="\151\163_\163\x74\162\151ng";  $xe5="\152\163\x6f\x6e_\x64\x65\143\157\x64\145";  $xe6="is_\141r\x72\x61y";  $xe7="\150\x65\141\x64\145\162";  $xe8="\165\143w\x6f\162\144\163";  $xe9="a\162ray\x5f\x70\165\x73h";  $xea="\160\x72\151nt\137\x72";  $xeb="\166\x65\x72\x73\x69\157n\137\x63\157m\160a\162\145";  $xec="\151\x6e\x5f\141\162\162\x61y";  $xed="\x72\157un\144";
 $xee="i\155p\154\157de";  $xef="\163\160\162\x69nt\x66";  $xf0="\141r\162a\171\137\x70\x6f\x70";  $xf1="\151\x6ei_\147\145t";  $xf2="\x73\145\x74_ti\155\145\x5f\x6ci\155it";  $xf3="\156\165\155b\x65r\137\146o\162m\x61\164";  $xf4="pre\147_\x72e\160\x6c\141\x63\145";  $xf5="s\164\162\x69\160\x5ftags";  $xf6="h\164\155\x6c\137\x65\x6e\164\151t\171\137\144\x65\143\x6fde";  $xf7="\150\x74\155\154\163p\145c\x69\141\154c\x68\141\162\163";  $xf8="s\x74\162rp\x6fs";  $xf9="\x73\164\162\x69\x73\164\x72";  $xfa="m\x62\x5f\x73\164\162t\x6f\154\x6f\167er";  $xfb="m\142\137\163\x74\162\x74\x6f\x75\x70p\x65\162";  $xfc="\x68\164ml\145\156\x74\151\164\151\x65\163";  if ($this->_display) return ($x2c);  else { if ($this->_chartset == 'ISO') return $xe3($x2c);  else { return ($x2c);  } } } public function checkReference($x33, $product) { $xd6="\163\164r\x5f\162\145\x70la\143\x65";  $xd7="\165t\x66\70\137e\x6e\143\157\144\x65";  $xd8="\x70\x72\145g\x5fm\141tc\x68\137\141ll";  $xd9="p\x72eg\x5f\155a\164\x63h";  $xda="\x72\x74rim";  $xdb="\x69s\x5f\156\x75ll";  $xdc="\x63\157\165\x6e\164";  $xdd="\x69\163\x5fn\165\155\145\162ic";  $xde="\x65\x78\x70\x6c\157\x64\x65";  $xdf="\x73u\142\x73\x74r";  $xe0="\x74\x72i\155";  $xe1="\160\162\145g\137\x73p\x6c\151\x74";  $xe2="\163tr\154\x65\x6e";  $xe3="\165\x74f\70_\x64eco\x64e";  $xe4="\151\x73_\x73\164\x72\151\x6e\x67";  $xe5="\x6a\x73o\x6e_\x64ec\x6f\x64\x65";  $xe6="\151s\x5f\x61\162\162\x61\x79";  $xe7="\x68\x65ad\145r";  $xe8="\x75\x63wo\x72ds";  $xe9="\141r\x72\141\x79_\x70\x75s\x68";  $xea="p\162\151n\x74\x5f\x72";  $xeb="\x76\145\162s\151o\156_\x63\157\155\160\141\162\x65";  $xec="\x69\156\137\x61\x72r\141\x79";  $xed="r\157u\156\144";  $xee="im\160l\157\x64e";  $xef="s\x70\162\151\x6et\x66";  $xf0="a\x72\162a\171\x5f\x70o\160";  $xf1="i\156i_g\145\164";  $xf2="\x73\145\x74_\164im\145\137li\x6d\x69t";  $xf3="\x6eu\x6db\145\162\x5f\146\157\162\155a\x74";  $xf4="\160reg\x5f\162\x65pla\143\x65";  $xf5="\x73\164r\151\160_\164\x61g\163";  $xf6="h\164\155\154_ent\x69\x74y\x5f\x64e\143\x6f\144\x65";  $xf7="h\x74\155\x6cs\160e\x63\x69\x61\154ch\x61\x72\x73";  $xf8="\163\x74\x72\162\x70\157\163";  $xf9="s\164rist\162";  $xfa="\x6db\137\163\x74\162to\154o\x77\x65r";  $xfb="m\x62\x5f\x73t\162\x74\x6f\165\160p\145\x72";  $xfc="\150\164m\x6cen\x74\151\x74\x69e\x73";  if (($x33 == "p\141r\145\x6e\x74" || $x33 == "co\156\146\151\147\165r\x61\x62\x6ce") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()];  elseif (($x33 == "p\141r\145\x6e\x74" || $x33 == "\147\x72\157u\x70\x65d") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];  elseif (($x33 == "p\141r\145\x6e\x74" || $x33 == "\142\165\156\x64\x6ce") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];  else { return $product;  } } public function generateXml() { $xd6="s\x74r_\x72ep\154ac\x65";  $xd7="\165t\146\70\x5f\145\x6e\143o\144\x65";  $xd8="\160re\147\x5f\x6d\141\x74ch\x5f\x61ll";  $xd9="\160\162\145\x67\137\155\x61t\143h";  $xda="rtr\151\155";  $xdb="\151\163\x5f\156\x75\154\154";  $xdc="\143\x6f\165\156t";  $xdd="\151\163\137\156\x75\x6d\x65\x72\151\143";  $xde="\145\170p\x6c\157d\x65";  $xdf="s\165\142\163\164r";  $xe0="\164\x72\x69\x6d";  $xe1="\160r\145\147\137\x73\x70l\151\x74";  $xe2="\x73\164r\154\x65\x6e";  $xe3="\165\164\146\70\x5f\144\145\143\x6fd\x65";  $xe4="\x69\163\137\163\164r\151\x6e\x67";  $xe5="j\x73\x6fn\137\144e\x63\x6f\144\145";  $xe6="\151s_a\x72\162\141y";  $xe7="h\x65\x61d\145\162";  $xe8="\165\x63\167o\x72d\163";  $xe9="\141\x72\x72a\171\x5f\x70\165s\150";  $xea="\x70\162\151\x6et_\162";  $xeb="\166e\162\163\151\x6f\x6e_\x63\157m\160\x61\x72e";  $xec="\x69\156_a\162r\141\x79";  $xed="\162\157un\144";  $xee="\151\155p\x6c\x6f\144\145";  $xef="spri\x6e\x74\146";  $xf0="\141\162r\141\171\x5f\x70\157p";  $xf1="\x69n\x69\137\x67\x65\x74";  $xf2="\163et\137t\x69\x6d\145\x5f\x6c\x69\x6d\x69\164";  $xf3="\156um\142\x65\162_\146o\162m\141t";  $xf4="\160reg\137re\x70\154\x61\x63\x65";  $xf5="\x73\164\162\x69\160_t\x61g\163";  $xf6="\150\164\x6d\x6c\x5f\145\x6et\151\164y\137\x64\x65\x63\x6f\x64e";  $xf7="\x68\164m\x6cs\160\145\143\x69\141l\x63h\141\162s";  $xf8="\163t\162rpo\x73";  $xf9="\163\164\162\151\163\164r";  $xfa="\x6d\142\137\x73t\x72\164\157\154ow\145\x72";  $xfb="mb_\163\x74\162\x74\x6f\x75\x70\160e\162";  $xfc="\x68\164m\154\x65\x6e\x74i\164\x69e\x73";
 ini_set('memory_limit', Mage::getStoreConfig("s\x69\x6d\x70\x6ce\x67\157\x6f\x67\154\x65\163h\157\160pi\x6e\x67\57sy\163\164\145m\x2fm\x65m\157\x72y\137\x6cim\151t") . 'M');  error_reporting(Mage::getStoreConfig("s\x69m\160l\145go\157\x67\x6c\x65\x73h\157p\x70\x69n\x67\57s\171\163\164\x65m\57e\x72\162o\162\137\x72\145p\x6f\162\164\151\156\147"));  $this->_debug = (isset($_GET['debug'])) ? true : false;  $x34 = $this->_indexPhp;  $x20 = new Varien_Io_File();  $x20->setAllowCreateFolders(true);  if (!$this->_display) { $x20->open(array('path' => $this->getPath()));  if ($x20->fileExists($this->getSimplegoogleshoppingFilename()) && !$x20->isWriteable($this->getSimplegoogleshoppingFilename())) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->getSimplegoogleshoppingFilename(), $this->getPath()));  } $x20->streamOpen($this->getSimplegoogleshoppingFilename());  } $x35 = array("\141\x63" => "a\x63\164\x69v\141\164\151on\x5f\x63\157d\x65", "a\x6b" => "a\143\164\x69v\141\164\x69on\137\x6b\x65y", "\x62\x75" => "\x62\x61\x73\145_u\162l", "\x6d\144" => "\155d\65", "t\150" => "t\150i\163", "\144\x6d" => "_\x64\x65mo", "\145\x78t" => "\163\x67\x73", "\166\145\x72" => "\67\x2e\62\56\x30");  $xe4(Mage::app()->getRequest()->getParam("\163\164\x6f\x72e_\x69\x64")) ? $x36 = Mage::app()->getRequest()->getParam("\163\164\x6f\x72e_\x69\x64") : $x36 = $this->getStoreId();  $x37 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');  $x38 = Mage::getDesign()->getSkinUrl();  $x39 = Mage::getStoreConfig("\x63\x61\x74a\x6c\x6f\x67\57\x70\154\x61\143\145h\157\x6c\x64\145\162/\151\155\x61\147\x65\137p\154\141ce\150\x6f\x6c\x64\x65\x72", $x36);  $x3a = Mage::getStoreConfig("\x63u\162r\x65n\143y\57o\x70t\151\x6f\156s\57b\x61s\145", $x36);  $x3b = Mage::getStoreConfig("\143\141\164\141l\157\147\x69nv\145n\x74\x6fry/i\x74\145m\x5fopti\x6fns\x2f\x6d\141\156a\x67\145\x5f\163\164\x6f\x63k", $x36);  $x3c = Mage::getStoreConfig("c\141\x74\141\x6co\x67\151\x6e\x76en\x74\157r\171\x2f\151\164\145\x6d\x5f\x6f\x70\164\151on\163\x2fb\x61\143kor\144e\x72\163", $x36);  $x3d = Mage::app()->getStore($x36)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);  $x3e = Mage::getModel('core/store')->load($x36)->getBaseUrl();  $x3f = Mage::app()->getStore($x36)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);  $x40 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x36);  $x41 = Mage::app()->getStore($x36)->getRootCategoryId();  $x42 = Mage::app()->getStore()->getStoreId();  $x43 = array( "a\143\164\x69v\141\164\x69on\137\x6b\x65y" => Mage::getStoreConfig("\x73\151\x6dp\154\145\x67\x6fo\147l\145\x73\x68\157\160p\151\156\x67/\x6c\151\143e\156\163\145\57a\x63t\151\x76\141ti\157n_\x6be\x79"), "a\x63\164\x69v\141\164\151on\x5f\x63\157d\x65" => Mage::getStoreConfig("\x73\x69m\160l\x65\147\157\x6f\147\x6ce\x73\x68\157\x70\x70\151ng\x2f\x6cic\x65nse/\141c\x74\151v\141\164i\x6fn_\143ode"), "\x62\x61\x73\145_u\162l" => Mage::getStoreConfig("\x77eb\57\163e\x63\x75\x72\x65\x2fba\163\x65_\165rl"), );  $xe4(Mage::app()->getRequest()->getParam("\x73\151mp\154\x65g\157\x6fg\154\x65s\x68\x6f\160pi\156g_x\x6dl\151te\155\160a\x74\164\145r\156")) ? $x44 = Mage::app()->getRequest()->getParam("\x73\151mp\154\x65g\157\x6fg\154\x65s\x68\x6f\160pi\156g_x\x6dl\151te\155\160a\x74\164\145r\156") : $x44 = $this->getSimplegoogleshoppingXmlitempattern();  $xe4(Mage::app()->getRequest()->getParam("\x73\151\x6dp\154\145g\157o\147\x6c\x65sh\157\160p\151\156\x67\x5fti\164\x6c\x65")) ? $x45 = Mage::app()->getRequest()->getParam("\x73\151\x6dp\154\145g\157o\147\x6c\x65sh\157\160p\151\156\x67\x5fti\164\x6c\x65") : $x45 = $this->getSimplegoogleshoppingTitle();  $xe4(Mage::app()->getRequest()->getParam("s\151m\x70leg\157\x6f\147\154\x65\x73\x68\157\160p\151\156g_\144es\x63\x72\151\x70\x74\151o\x6e")) ? $x46 = Mage::app()->getRequest()->getParam("s\151m\x70leg\157\x6f\147\154\x65\x73\x68\157\160p\151\156g_\144es\x63\x72\151\x70\x74\151o\x6e") : $x46 = $this->getSimplegoogleshoppingDescription();  $xe4(Mage::app()->getRequest()->getParam("\163\151mp\154\145\x67o\157gl\145\x73\x68\157pp\x69\156\147_c\x61t\x65\x67\x6f\162\x69\145\163")) ? $x47 = $xe5(Mage::app()->getRequest()->getParam("\163\151mp\154\145\x67o\157gl\145\x73\x68\157pp\x69\156\147_c\x61t\x65\x67\x6f\162\x69\145\163")) : $x47 = $xe5($this->getSimplegoogleshoppingCategories());  $xe4(Mage::app()->getRequest()->getParam("\143\141\164\145g\x6fry\137\x66i\x6c\164e\162")) ? $x48 = Mage::app()->getRequest()->getParam("\143\141\164\145g\x6fry\137\x66i\x6c\164e\162") : $x48 = $this->getSimplegoogleshoppingCategoryFilter();  $x49 = Array();  $x4a = Array();  if ($this->getSimplegoogleshoppingCategories() != '*' && $xe6($x47)) { foreach ($x47 as $x4b) { if ($x4b->checked) $x49[] = $x4b->line;  } foreach ($x47 as $x4b) { if ($x4b->mapping != "") $x4a[$x4b->line] = $x4b->mapping;  } } if ($xdc($x49) < 1) { $x49[] = '*';  } $xe4(Mage::app()->getRequest()->getParam("s\151m\x70l\145\147o\157\x67l\145\x73\x68\x6fpp\x69n\147\137\x74y\160\145\x5f\151\144s")) ? $x4c = $xde(',', Mage::app()->getRequest()->getParam("s\151m\x70l\145\147o\157\x67l\145\x73\x68\x6fpp\x69n\147\137\x74y\160\145\x5f\151\144s")) : $x4c = $xde(',', $this->getSimplegoogleshoppingTypeIds());  $xe4(Mage::app()->getRequest()->getParam("\x73im\x70\154e\147\157\157\147l\x65s\x68\157\160p\x69\156\x67_v\151s\151bi\154it\x79")) ? $x4d = $xde(',', Mage::app()->getRequest()->getParam("\x73im\x70\154e\147\157\157\147l\x65s\x68\157\160p\x69\156\x67_v\151s\151bi\154it\x79")) : $x4d = $xde(',', $this->getSimplegoogleshoppingVisibility());  $xe4(Mage::app()->getRequest()->getParam("\x73im\x70\x6c\145goo\x67\x6c\x65\x73\150oppi\156\147\137\141t\x74\162i\142ute\x73")) ? $x4e = $xe5(Mage::app()->getRequest()->getParam("\x73im\x70\x6c\145goo\x67\x6c\x65\x73\150oppi\156\147\137\141t\x74\162i\142ute\x73")) : $x4e = $xe5($this->getSimplegoogleshoppingAttributes());  if ($x43[$x35['ac']] != $x35["\x6d\144"]($x35["\x6d\144"]($x43[$x35['ak']]) . $x35["\x6d\144"]($x43[$x35['bu']]) . $x35["\x6d\144"]($x35["\145\x78t"]) . $x35["\x6d\144"]($x35["\166\145\x72"]))) { $$x35["\145\x78t"] = "v\x61\x6c\151\x64";  $$x35["t\150"]->$x35["\144\x6d"] = true;  } else { $$x35["t\150"]->$x35["\144\x6d"] = false;  $$x35["\145\x78t"] = "v\x61\x6c\151\x64";  } $x4f = '';  $x50 = '';  $xe7("\x43\157n\x74\x65\x6e\164\x2d\124\171pe:\x20t\145\x78\164\57\x68\164\x6d\x6c\x3b \143h\141\162se\164\x3d\165t\146-\70");  $x4f = ('<?xml version="1.0" encoding="utf-8" ?>' . "\x0a");  $x4f.=('<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">' . "\x0a");  $x4f.=('<channel>' . "\x0a");  $x4f.=('<title>' . $x45 . "\x3c\57\164i\164\x6c\145>\x0a");  $x4f.=('<link>' . $xdf($x3d, 0, -1) . "</l\x69\156\x6b>\x0a");  $x4f.=('<description>' . $x46 . "\74\57\x64\145s\x63r\x69p\164io\x6e\76\x0a");  if (!isset($$x35["\145\x78t"]) || $$x35["t\150"]->$x35["\144\x6d"]) { $$x35["t\150"]->$x35["\144\x6d"] = true;  return $$x35["t\150"];  } if ($this->_display) $x50 = $this->x101($x4f);  else { $x20->streamWrite($this->x101($x4f));  } $x1c = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}]*)}/';  $xd8($x1c, $x44, $x1d);  $x1d[0][] = "{\143a\164e\x67\157\x72\x69\145s\54\x5b\61\135\x2c\x5b\61],\133\61]\175";  $x1d[1][] = "\x63\x61\x74\145go\162\x69e\163";  $x1d[2][] = "";  $x1d[3][] = ",\x5b\61\135\54\x5b\61],\133\61]";  $x51 = array();  $x52 = array();  foreach ($x1d[1] as $x1e => $x53) { $x51[$x1e]['methodName'] = "\147\145\164" . $xd6(' ', '', $xe8($xe0($x53)) . '()');  $x51[$x1e]['pattern'] = "\173" . $xe0($x53) . "}";  $x51[$x1e]['fullpattern'] = $x1d[0][$x1e];  $x51[$x1e]['name'] = $xe0($x53);  $x51[$x1e]['reference'] = $xe0($x1d[2][$x1e]);  if (empty($x51[$x1e]['reference'])) $x51[$x1e]['reference'] = 'self';  switch ($x51[$x1e]['name']) { case 'url': $xe9($x52, 'url_key');  break;  case 'uri': $xe9($x52, 'url_key');  break;  case 'G:IMAGE_LINK': $xe9($x52, 'image');  $xe9($x52, 'small_image');  $xe9($x52, 'thumbnail');  break;  case 'SC:IMAGES': $xe9($x52, 'image');  $xe9($x52, 'small_image');  $xe9($x52, 'thumbnail');  break;  case 'SC:DESCRIPTION': $xe9($x52, 'description');  $xe9($x52, 'short_description');  $xe9($x52, 'manufacturer');  $xe9($x52, 'name');  $xe9($x52, 'sku');  break;  case 'SC:EAN': $xe9($x52, 'ean');  break;  case 'SC:URL': $xe9($x52, 'url_key');  $xe9($x52, 'url');  break;  default : $xe9($x52, $x51[$x1e]['name']);  } $x51[$x1e]["\166al\165\x65"] = '$product->get' . $x51[$x1e]['name'] . "()";  $x51[$x1e]["\147\x65tTex\164"] = 'getAttributeText(\'' . $xe0($x53) . '\')';  $x54 = '/\[([^\]]+)\]/';  $xd8($x54, $x1d[3][$x1e], $x55);  $x51[$x1e]["opti\x6f\156\x73"] = $x55[1];  } if ($this->_debug) { echo "\x2d\x2d\x2d\55\x2d\55-\55\x2d-\x2d--\55-\55\55\x2d\55\x2d\x2d\x2d\x2d\55\x2d-\55\x2d\x2d\x2d\55\x2d\x2d\55-\55----\55\x2d\55\x2d\55\55<br\x3e\x0d \40\x20\40 \x20\x20 \x20\x20\x20\40\40\40\x20 \40\x20 \40\55---\x2d\55\55\x2d\x2d-\x2d\x2d\40\104E\x42UG \x4d\x4f\x44E -\x2d\55\x2d\x2d\55\55\55\x2d\55\55\55\x2d\x2d-\x2d<\x62\162\x3e\15\x0a\40\40\x20\40\40\40\40\x20\x20\40\x20 \40\x20\40 \40\x20\55\x2d\x2d\55-\x2d\55---\55-\x2d\x2d\x2d\55\55\55\x2d-\55-\x2d\x2d\55\55\55-\55----\x2d\55-\x2d-\55\x2d\55\x2d--\x2d-\74b\162><b\162\x3e";  echo "\x3c\x62r\76\x3c\x62\x72>\x2d\x2d\x2d\55-\55\55\55\55\x2d\55\x2d\x20A\x54\124R\111\102\125\124ES\40-\55--------\55-\x2d\x2d\x2d\55\x3cbr\76";  $xea($x51);
 } $x56 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x36) ->addAttributeToSelect('name', 'store_id') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu');  $x57 = array();  foreach ($x56 as $x58) { $x57[$x58->getId()]['name'] = $x58->getName();  $x57[$x58->getId()]['path'] = $x58->getPath();  $x57[$x58->getId()]['level'] = $x58->getLevel();  if ($xeb(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("s\x69m\160\154\x65\x67o\x6fg\x6c\x65\163\x68o\x70\x70i\x6e\x67/sy\x73t\x65m\x2fi\156\143\154\165\144\x65\x5fi\156\x5fm\x65\156u")) $x57[$x58->getId()]['include_in_menu'] = true;  else $x57[$x58->getId()]['include_in_menu'] = $x58->getIncludeInMenu();  } if ($this->_debug) { echo "<\142r>\74br\76\55-\55\55\55\55\x2d-\x2d-\55-\40C\x41\124\105\107O\122I\x45\x53\40\55\x2d\55\x2d-\55-\x2d\x2d\x2d--\55\x2d\55-<br\x3e";  $xea($x57);  } $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x5b = $x59->getTableName('eav_entity_type');  $x5c = $x5a->select()->from($x5b)->where('entity_type_code=\'catalog_product\'');  $x5d = $x5a->fetchAll($x5c);  $x5e = $x5d[0]['entity_type_id'];  $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x5f = $x59->getTableName('directory_currency_rate');  $x5c = $x5a->select()->from($x5f)->where('currency_from=\'' . $x3a . '\'');  $x24 = $x5a->fetchAll($x5c);  $x60 = array();  foreach ($x24 as $x23) { $x60[$x23['currency_to']] = $x23['rate'];  } $this->_currencies = $x60;  if ($this->_debug) { echo "<br\x3e\74\142\162\76--\x2d\55-\55\55\55\x2d\x2d\55\x2d\x20\103UR\122\105\116\x43\111\x45\123\x20\x2d\55\55-\x2d-\x2d--\x2d\x2d\55\55-\x2d\55<br\x3e";  $xea($x60);  } $x61 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x5e) ->addSetInfo() ->getData();  $x62 = array();  $x63 = array();  foreach ($x61 as $x1e => $x53) { if ($xec($x53['attribute_code'], $x52)) { $xe9($x62, $x53['attribute_code']);  $x63[$x53['attribute_code']] = $x53['frontend_input'];  } } if (!$xec('special_price', $x62)) $x62[] = 'special_price';  if (!$xec('special_from_date', $x62)) $x62[] = 'special_from_date';  if (!$xec('special_to_date', $x62)) $x62[] = 'special_to_date';  if (!$xec('price_type', $x62)) $x62[] = 'price_type';  if (!$xec('price', $x62)) $x62[] = 'price';  $x62[] = 'tax_class_id';  foreach ($x4e as $x64) { if (!$xec($x64->code, $x62) && $x64->checked) $x62[] = $x64->code;  } if ($this->_debug) { echo "\x3c\x62r\76\x3c\x62\x72>\x2d\x2d\x2d\55-\55\55\55\55\x2d\55\x2d\x20A\x54\124R\111\102\125\124ES\40-\55--------\55-\x2d\x2d\x2d\55\x3cbr\76";  $xea($x62);  } $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x65 = $x59->getTableName('eav_attribute_option_value');  $x5c = $x5a->select();  $x5c->from($x65);  $x5c->where("sto\x72\145\137\x69\x64\75" . $x36 . ' OR store_id=0');  $x5c->order(array('option_id', 'store_id'));  $x66 = $x5a->fetchAll($x5c);  foreach ($x66 as $x67) { $x68[$x67['option_id']][$x67['store_id']] = $x67['value'];  } if ($this->_debug) { echo "\74b\x72>\x3c\x62\162\x3e-\55\x2d\55\x2d-\x2d\55-\55\x2d\x2d\40\101\x54\124\x52\x49\x42U\124\x45\x53\x20\x4c\101B\x45\114\x20\55\x2d-\55\55-\55-\x2d\55\x2d\x2d\55\55--\x3cbr\x3e";  $xea($x68);  } $x69 = $x59->getTableName('tax_class');  $x6a = $x59->getTableName('tax_calculation');  $x6b = $x59->getTableName('tax_calculation_rate');  $x6c = $x59->getTableName('directory_country_region');  $x5c = $x5a->select();  $x5c->from($x69)->order(array('class_id', 'tax_calculation_rate_id'));  $x5c->joinleft(array('tc' => $x6a), 'tc.product_tax_class_id = ' . $x69 . '.class_id', 'tc.tax_calculation_rate_id');  $x5c->joinleft(array('tcr' => $x6b), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id'));  $x5c->joinleft(array('dcr' => $x6c), 'dcr.region_id=tcr.tax_region_id', 'code');  $x6d = $x5a->fetchAll($x5c);  $x28 = array();  $x6e = '';  foreach ($x6d as $x6f) { if ($x6e != $x6f['class_id']) $x70 = 0;  else { $x70++;  } $x6e = $x6f['class_id'];  $x28[$x6f['class_id']][$x70]['rate'] = $x6f['rate'];  $x28[$x6f['class_id']][$x70]['code'] = $x6f['code'];  $x28[$x6f['class_id']][$x70]['country'] = $x6f['tax_country_id'];  } $this->_rates = $x28;  if ($this->_debug) { echo "<\142\162\x3e\74\142\162\76---\x2d\x2d\55-\55\55\55\x2d\55 \124A\130 C\x4cA\123\x53\x20\55\55\55\55\x2d--\55\55-\55----\55\74\x62r\x3e";  $xea($x28);  } $x71 = $x59->getTableName('review');  $x72 = $x59->getTableName('review_store');  $x73 = $x59->getTableName('rating_option_vote');  $x74 = $x5a->select()->distinct('review_id');  $x74->from(array("\x72" => $x71), array("\x43O\125N\124\50D\x49\123\x54I\x4e\103\x54\x20\162\x2e\162\x65v\x69ew\x5fi\x64\51\x20A\123\x20c\157\165n\x74", 'entity_pk_value'));  $x74->joinleft(array('rs' => $x72), 'rs.review_id=r.review_id', 'rs.store_id');  $x74->joinleft(array('rov' => $x73), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x74->where("\x73t\141tu\x73_\x69\x64=\61 \141\156d\x20\145nt\151\164\x79\x5f\151d\75\61");  $x74->group(array('r.entity_pk_value', 'rs.store_id'));  $x75 = $x5a->select();  $x75->from(array("\x72" => $x71), array("\x43O\125N\124\50D\x49\123\x54I\x4e\103\x54\x20\162\x2e\162\x65v\x69ew\x5fi\x64\51\x20A\123\x20c\157\165n\x74", 'entity_pk_value', "\x28S\x45LE\103\124 0) \101S\40\40\163t\157\162\145\137id"));  $x75->joinleft(array('rs' => $x72), 'rs.review_id=r.review_id', array());  $x75->joinleft(array('rov' => $x73), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x75->where("\x73t\141tu\x73_\x69\x64=\61 \141\156d\x20\145nt\151\164\x79\x5f\151d\75\61");  $x75->group(array('r.entity_pk_value'));  $x5c = $x5a->select() ->union(array($x74, $x75));  $x5c->order(array('entity_pk_value', 'store_id'));  $x76 = $x5a->fetchAll($x5c);  $x77 = array();  foreach ($x76 as $x78) { $x77[$x78['entity_pk_value']][$x78['store_id']]["\143\x6f\165n\x74"] = $x78["\143\x6f\165n\x74"];  $x77[$x78['entity_pk_value']][$x78['store_id']]['score'] = $x78['score'];  } $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x79 = $x59->getTableName('catalog_product_entity_media_gallery');  $x7a = $x59->getTableName('catalog_product_entity_media_gallery_value');  $x5c = $x5a->select();  $x5c->from($x79);  $x5c->joinleft(array('cpemgv' => $x7a), 'cpemgv.value_id = ' . $x79 . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));  $x5c->where("\166\x61\154\165\x65\74>\x54\x52\111\115(\x27'\x29\40\x41\x4e\x44 \x28\163\x74\157\x72\x65_\x69d\x3d" . $x36 . ' OR store_id=0)');
 $x5c->order(array('position', 'value_id'));  $x7b = $x5a->fetchAll($x5c);  foreach ($x7b as $x7c) { $x7d[$x7c['entity_id']]['src'][] = $x7c['value'];  $x7d[$x7c['entity_id']]['disabled'][] = $x7c['disabled'];  } if ($this->_debug) { echo "\74\142\162>\x3cb\x72>\x2d\x2d\55\55-\55\55\x2d--\55\x2d\40\111\115\101GES --\x2d\55\55\55\x2d\55\55\x2d\x2d\55\55\55\x2d\55\x3cb\162\x3e";  $xea($x7d);  } $x7e = $x59->getTableName("\143a\x74a\154\157\147\151\156\166\x65\156\x74\157r\171\x5fs\x74\157\x63\x6b_ite\x6d");  $x7f = $x59->getTableName("\x63\157r\x65\x5fu\x72l\x5fr\145\167\x72it\145");  $x5f = $x59->getTableName('catalog_category_product');  $x80 = $x59->getTableName('catalog_category_product_index');  $x81 = $x59->getTableName('catalog_product_index_price');  $x82 = $x59->getTableName('catalog_product_super_link');  $x83 = $x59->getTableName('catalog_product_link');  $x84 = $x59->getTableName('catalog_product_bundle_selection');  ($xeb(Mage::getVersion(), '1.6.0', '<')) ? $x55 = "\x6f\x70\164i\157\x6es=\47'" : $x55 = "I\123NU\114L\50\157p\164\x69o\156\163)";  $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("i\x6e" => "co\156\146\151\147\165r\x61\x62\x6ce"));  $x85->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $x85->addAttributeToSelect($x62);  $x85->getSelect()->joinLeft($x82 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x85->getSelect()->group(array('cpsl.parent_id'));  $x86 = array();  foreach ($x85 as $x87) { foreach ($xde("\x2c", $x87->getChildIds()) as $x88) { $x86[$x88] = $x87;  $x89[$x88]['categories_ids'] = $x87->getCategories_ids();  $x89[$x88]['parent_id'] = $x87->getId();  $x89[$x88]['parent_sku'] = $x87->getSku();  $x89[$x88]['parent_request_path'] = $x87->getRequestPath();  } } $this->configurable = $x86;  if ($this->_debug) { echo "<br>\x3c\x62r\76\x2d\55-\55\55-\55\x2d\55\55-\x2d C\117\116FIGUR\x41BLE\123 \x2d-\55-\x2d\x2d-\55\55\55\x2d---\55-<\x62\162\x3e";  echo $x85->getSelect() . '<br><br>';  $xea($x89);  } $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("i\x6e" => "co\156\146\151\147\165r\x61\x62\x6ce"));  $x85->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $x85->getSelect()->joinLeft($x82 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(qty)'));  $x85->getSelect()->group(array('cpsl.parent_id'));  $x8a = array();  foreach ($x85 as $x8b) { $x8a[$x8b->getId()] = $x8b->getQty();  } $this->configurableQty = $x8a;  if ($this->_debug) { echo "<\x62\162\76\74\x62\x72\x3e-\x2d\x2d-\55\x2d\x2d-\55\x2d-\55\x20\103\117\116\x46IG\x55R\x41\x42L\x45\123\x20\121T\x59 \55\55-\55\x2d\x2d\55-\55-\55\x2d-\x2d-\55\74b\162\76";  echo $x85->getSelect() . '<br><br>';  $xea($x8a);  } $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("i\x6e" => "\147\x72\157u\x70\x65d"));  $x85->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $x85->addAttributeToSelect($x62);  $x85->getSelect()->joinLeft($x83 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x85->getSelect()->group(array('cpl.product_id'));  $x8c = array();  foreach ($x85 as $x87) { foreach ($xde("\x2c", $x87->getChildIds()) as $x88) { $x8c[$x88] = $x87;  $x8d[$x88]['categories_ids'] = $x87->getCategories_ids();  $x8d[$x88]['parent_id'] = $x87->getId();  $x8d[$x88]['parent_sku'] = $x87->getSku();  $x8d[$x88]['parent_request_path'] = $x87->getRequestPath();  } } $this->grouped = $x8c;  if ($this->_debug) { echo "<\x62\x72><b\162\76\55-\x2d---\x2d\55\x2d-\x2d\x2d\40\107\x52\x4fUP\x45\104\40\x2d\55\x2d\x2d-\x2d-\55-\55\x2d---\55\55<br>";  echo $x85->getSelect() . '<br><br>';  $xea($x8d);  } $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("i\x6e" => "\142\165\156\x64\x6ce"));  $x85->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $x85->addAttributeToSelect($x62);  $x85->getSelect()->joinLeft($x84 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x85->getSelect()->group(array('e.entity_id'));  $x8e = array();  foreach ($x85 as $x87) { foreach ($xde("\x2c", $x87->getChildIds()) as $x88) { $x8e[$x88] = $x87;  $x8f[$x88]['parent_id'] = $x87->getId();  $x8f[$x88]['parent_sku'] = $x87->getSku();  $x8f[$x88]['parent_request_path'] = $x87->getRequestPath();  $x8f[$x88]['categories_ids'] = $x87->getCategories_ids();  } } $this->bundle = $x8e;  if ($this->_debug) { echo "<br\76\x3cb\x72>\x2d\x2d--\x2d\x2d\x2d\x2d\x2d\x2d-\x2d \x42\125N\104\x4cE\x20\x2d\x2d--\x2d\55\55\x2d\55\55\x2d\55--\x2d-\x3c\142r\x3e";  echo $x85->getSelect() . '<br><br>';  $xea($x8f);  } $x90 = $x59->getTableName("ca\x74\141lo\147\x5fp\x72\157\x64\165\x63\x74_o\160t\x69o\x6e");  $x91 = $x59->getTableName("c\141\x74\x61\154\x6fg\x5f\160\162o\144uc\x74\137\x6f\x70\164\151\157\x6e_\164itle");  $x92 = $x59->getTableName("\x63\141t\x61\x6c\x6f\x67\137\160rod\x75c\164\x5f\157p\164i\x6fn\137\164\x79\x70e_\x76\141\154\165\x65");  $x93 = $x59->getTableName("\143\141\164a\154o\x67\137p\x72\157\144u\143\x74\137\x6fp\164\x69\x6fn\x5f\164ype\x5f\x74\x69\164\154e");  $x94 = $x59->getTableName("c\x61\x74a\154\157\147_\x70r\157duct_\157\x70\x74\x69\x6f\156_t\171\x70\x65\137pr\x69\143\x65");  $x95 = $x5a->select();  $x95->from(array("\143\160\157" => $x90), array("\x70r\x6f\144\165c\x74\137\151\x64"));  $x95->joinleft(array("\143p\x6f\164" => $x91), "\x63\160\x6f\x74\x2e\157\160\x74\x69\x6fn\137i\x64\x3d\x63\160\x6f.op\164i\x6f\x6e\x5f\151d\x20\101\x4e\104 \x63p\x6ft\x2e\163t\157\162\x65\137\151\x64=\x30", array("\157pt\151\157\156" => "\164\151tl\x65", "\x6f\160\164i\157n\137\151\144", "\163\164\x6f\x72e_\x69\x64"));  $x95->joinleft(array("c\160o\164\166" => $x92), "cpo\164\x76\56\157\x70\164i\157\x6e\137id \75\x20c\160\157\x2e\x6fp\x74\x69o\156_\x69d", "\163ku");
 $x95->joinleft(array("\143\x70\x6ft\x74" => $x93), "c\160ott.\157p\x74i\157n\x5ft\x79\x70e\x5fi\144=\x63\160o\x74\x76\x2e\x6f\x70\x74\151o\156\x5f\164\171\x70\x65\137\151\x64\x20\x41\x4eD\x20\143\160\157\x74\x74\x2e\163\164\x6f\162\145\x5fid\75\x63\160o\164\x2e\163t\157r\x65\137i\144", "tit\x6c\145\x20\101\123\x20v\x61\154\x75\145");  $x95->joinleft(array("c\x70\x6f\x74\160" => $x94), "c\x70ot\160.\x6f\160ti\157\x6e\137\x74y\160e_i\x64\x3dc\x70\157\x74v\56\x6f\x70\164\151o\156\137t\x79\x70\x65\137id \x41\x4e\x44 cpot\x70\x2e\163\164o\162\145\x5fi\144\75\x63\x70\x6f\164.\x73tore_id", array("\160\x72\151\143e", "\160\162ice\137\164\171p\145"));  $x5c = $x95->order(array("\x70r\x6f\144\165c\x74\137\151\x64"));  $x76 = $x5a->fetchAll($x5c);  $x96 = array();  $x97 = 0;  foreach ($x76 as $x98) { $x96[$x98["\x70r\x6f\144\165c\x74\137\151\x64"]][$x98["\157pt\151\157\156"]]["\x76a\x6c\x75\145\x73"][] = array( "\166al\165\x65" => $x98["\166al\165\x65"], "\163ku" => $x98["\163ku"], "\160\x72\151\143e" => $x98["\160\x72\151\143e"], "\160\162ice\137\164\171p\145" => $x98["\160\162ice\137\164\171p\145"] );  $x97++;  } $this->customOptions = $x96;  if ($this->_debug) { echo "\74\142\x72\x3e<\x62\x72>\55-\x2d\55\55-\x2d\55\x2d-\x2d-\40\x43\125\123TO\115 O\120\x54\111O\116\123\40\55\55\55-\x2d-\x2d\55-\55-\x2d\55--\x2d\x3c\142\162>";  echo $x95 . '<br><br>';  $xea($x96);  } $x99 = 0;  $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("i\x6e" => $x4c));  $x85->addAttributeToFilter('visibility', array("i\x6e" => $x4d));  $x85->getSelect()->columns("\103O\125\116\x54(D\111\x53\124\111\116\x43T\x20\x65\56e\x6eti\x74y\x5f\151\144) \101s \x74\157\x74\141l")->group(array('status'));  $x9a = $x85->getFirstItem()->getTotal();  $x9b = $xed($x9a / $this->_sqlSize) + 1;  $x4f = '';  while ($x99 < $x9b) { $x85 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x36);  $x85->addAttributeToFilter('status', 1);  $x85->addAttributeToFilter('type_id', array("i\x6e" => $x4c));  $x85->addAttributeToFilter('visibility', array("i\x6e" => $x4d));  $x85->addAttributeToSelect($x62);  $x9c = array("eq" => "=\x20'%\x73\x27", "n\145q" => "!= '\45\x73'", "\x67t\145q" => ">\x3d \x27\x25s\47", "\154\x74\145\161" => "<=\x20\47\x25\x73\47", "\147\x74" => "\x3e\x20\x27%\163\47", "\154t" => "\x3c\x20\47\x25\163\47", "\154\151\x6b\x65" => "l\151\153\145\x20\x27\45s\47", "n\x6ci\x6b\145" => "\x6e\x6f\x74 \154i\153e\x20\x27%\163\47", "\156u\154\154" => "i\x73\x20\x6e\x75\154l", "\x6eot\156ull" => "i\x73\x20not\40\156u\154\154", "i\x6e" => "in\40\50\45\163\51", "n\x69\x6e" => "\156ot\x20\151n(\x25s\x29", );  $x9d = '';  $x30 = 0;  foreach ($x4e as $x64) { if ($x64->checked) { if ($x64->condition == 'in' || $x64->condition == 'nin') { if ($x64->code == 'qty' || $x64->code == 'is_in_stock') { $x9e = $xde(',', $x64->value);  $x64->value = "\x27" . $xee($x9e, "\47,\x27") . "\x27";  } else $x64->value = $xde(',', $x64->value);  } switch ($x64->code) { case 'qty' : if ($x30 > 0) $x9d.=' AND ';  $x9d.="\x20q\164y\x20" . $xef($x9c[$x64->condition], $x64->value);  $x30++;  break;  case 'is_in_stock' : if ($x30 > 0) $x9d.=' AND ';  $x9d.="\x20(\x69s\x5f\151\156_\x73\x74\x6fc\x6b\x20" . $xef($x9c[$x64->condition], $x64->value);  $x9d.=" \117R (\40mana\x67e_s\x74o\x63\153\40" . $xef($x9c[$x64->condition], (int) !$x64->value);  $x9d.="\x20\101N\104 us\x65_c\x6fnfi\147\137\155a\156\141g\x65\137s\x74\157\x63k\40" . $xef($x9c[$x64->condition], (int) !$x64->value) . ')';  $x9d.=" \117\122\x20\x28\x75\x73e\x5f\x63on\146\151\147\x5f\x6d\x61nag\145_\x73\x74\157\x63\153\40" . $xef($x9c[$x64->condition], $x64->value) . ' AND ' . $x3b . '=' . (int) $x64->value . ' AND is_in_stock = ' . $x64->value . ' )';  $x9d.="\x29";  $x30++;  break;  default : $x85->addFieldToFilter($x64->code, array($x64->condition => $x64->value));  break;  } } };  $x85->getSelect()->joinLeft($x7e . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders'));  $x85->getSelect()->joinLeft($x7f . ' AS url', 'url.product_id=e.entity_id AND url.target_path NOT LIKE "%category%" AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x36, array('request_path' => 'request_path'));  $x85->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  if ($x49[0] != '*') { $x9f = 0;  $xa0 = null;  foreach ($x49 as $x4b) { if ($x9f > 0) $xa0.=',';  $xa0.=$xf0($xde('/', $x4b));  $x9f++;  } ($x48) ? $xa1 = "\x49\x4e" : $xa1 = "N\117\124\x20I\116";  $xa0 = "\x41\x4e\104 c\x61\x74\145\x67\x6fr\x69\x65\163\137\x69n\144\145\x78\x2e\x63\141\x74\145\x67or\x79\137\151\x64 " . $xa1 . "\x20\x28" . $xa0 . "\x29";  $x85->getSelect()->joinInner($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36 . ' ' . $xa0, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)'));  } else $x85->getSelect()->joinLeft($x80 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x36, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)'));  if ($xeb(Mage::getVersion(), '1.4.0', '>=')) $x85->getSelect()->joinLeft($x81 . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . Mage::getModel('core/store')->load($x36)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price'));  if (!empty($x9d)) $x85->getSelect()->where($x9d);  $x85->getSelect()->group(array('e.entity_id'));  if ($this->_debug) { echo "\x3c\142\x72\76<\x62\162\x3e--\x2d\55\55\55\55\55---\55\x20\123\x51\114\x20---\x2d-\55\x2d\x2d-\55--\x2d\x2d\55\x2d\x3c\x62\162>";  print($x85->getSelect());  } $x85->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $x99));  $x99++;  $x97 = 1;  foreach ($x85 as $product) { if ($this->_debug) { echo "<\x62\162><br\76\x2d\x2d\55\x2d-\55\x2d-\x2d\x2d-- P\122\x4fD\x55\x43\x54\40[ \x53\x4b\x55 \x2d\x3e\40" . $product->getSku() . "\40\174 \x49\104 \55\76\40" . $product->getId() . "\135-\55\x2d\55\55--\55\x2d\x2d\55--\x2d-\x3c\142\162\x3e";  echo "\143\x61\164e\x67\157\x72i\x65s\x20\72\40" . $product->getCategoriesIds() . ", \x52\x6fot\40\x69d: " . $x41 . "<\x62\162>";  foreach ($xde(',', $product->getCategoriesIds()) as $x1e => $x58) { echo $x58 . "\75\x3e" . $x57[$x58]["p\x61\164\150"] . "<\x62\162>";  } } if (!$xf1('safe_mode')) { $xf2(60);  } $x2c = $x44;  foreach ($x51 as $x1e => $xa2) { $x2e = "";  switch ($xa2['pattern']) { case '{load_options}': $x76 = 1;  $xa3 = array();  foreach ($xa2['options'] as $x1e => $xa4) { if (isset($x96[$product->getId()][$xa4])) { $x76 = $x76 * $xdc($x96[$product->getId()][$xa4]["\x76a\x6c\x75\145\x73"]);  $xa3[$x1e] = 0;  } } $x6e = array();  for ($x70 = 1;  $x70 <= $x76;  $x70++) { foreach ($xa2['options'] as $x1e => $xa4) { if (isset($x96[$product->getId()][$xa4])) { $x6e[$x70][$xa4] = $x96[$product->getId()][$xa4]["\x76a\x6c\x75\145\x73"][$xa3[$x1e]]['value'];  if ($x1e > 0 || $xdc($x96[$product->getId()]) == 1) $xa3[$x1e]++;  if ($xa3[$x1e] >= $xdc($x96[$product->getId()][$xa4]["\x76a\x6c\x75\145\x73"])) { $xa3[$x1e] = 0;  $xa3[$x1e - 1]++;  } } } } $x1c = array();  for ($x70 = 1;  $x70 <= $x76;  $x70++) { $xa5 = $x2c;  foreach ($xa2['options'] as $x1e => $xa4) { if (isset($x96[$product->getId()][$xa4])) { $xa5 = $xd6("\173" . $xa4 . "\x5f\x6f\160\164\x69\157n}", $x6e[$x70][$xa4], $xa5);  } } $x1c[] = $xa5;  } if ($xdc($x1c) > 0) $x2c = $xee("\74\57ite\x6d>\x0d\x0a\74i\x74e\155>", $x1c);  break;  case '{inc}' : $x2e = $x97;  break;  case '{final_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getFinalePrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);
 $x2e = $xf3($x2e, 2, '.', '');  break;  case '{tier_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getTierPrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{min_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getMinPrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{max_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = $xa6->getMaxPrice();  (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{normal_price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->type_id == 'bundle') $x22 = $xa6->price;  else { $x22 = $xa6->getPrice();  } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  break;  case '{price}' : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as")) { if ($xa6->type_id == "\142\165\156\x64\x6ce") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else $x22 = $xa6->special_price;  } else { $x22 = $xa6->price;  } } else ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xa6->getPrice();  } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") $x22 = $xa6->price;  else { $x22 = $xa6->getPrice();  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as") && date("\131\x2d\155-d H\72\x69\x3as") < $xa6->getSpecialToDate()) { if ($xa6->type_id == "\142\165\156\x64\x6ce") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xa6->getPrice();  } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") { $x22 = $xa6->price;  } else { $x22 = $xa6->getPrice();  } } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) { $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  } else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xa6->getPrice();  } } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2["opti\x6f\156\x73"][0])) ? $x23 = $x3a : $x23 = $xa2["opti\x6f\156\x73"][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, "\56", "");  ;  break;  case "\173\151s\x5f\x73p\145\x63\151al_\x70\x72i\143\x65\x7d" : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2["opti\x6f\156\x73"][0])) ? $xa7 = 1 : $xa7 = $xa2["opti\x6f\156\x73"][0];  (!isset($xa2["opti\x6f\156\x73"][1])) ? $xa8 = 0 : $xa8 = $xa2["opti\x6f\156\x73"][1];  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as")) { if ($xa6->type_id == "\142\165\156\x64\x6ce") (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0 ) ? $x2e = $xa7 : $x2e = $xa8;  else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x2e = $xa7 : $x2e = $xa8;  } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") { $x2e = $xa8;  } else { $x2e = $xa8;  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as") && date("\131\x2d\155-d H\72\x69\x3as") < $xa6->getSpecialToDate()) { if ($xa6->type_id == "\142\165\156\x64\x6ce") { (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0 ) ? $x2e = $xa7 : $x2e = $xa8;  } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x2e = $xa7 : $x2e = $xa8;  } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") { $x2e = $xa8;  } else { $x2e = $xa8;  } } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") { (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0 ) ? $x2e = $xa7 : $x2e = $xa8;  } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x2e = $xa7 : $x2e = $xa8;  } } break;  case "{\x73\160\145\143\151\141\154\x5f\x70\x72\151c\145}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $x22 = null;  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as")) { if ($xa6->type_id == 'bundle') { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as") && date("\131\x2d\155-d H\72\x69\x3as") < $xa6->getSpecialToDate()) { if ($xa6->type_id == 'bundle') { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } } } else { if ($xa6->type_id == 'bundle') { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  if ($x22 > 0) { $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, '.', '');  ;  } else { $x2e = "";  } break;  case '{price_rules}' : $xa6 = $this->checkReference($xa2['reference'], $product);  $x36 = $this->getStoreId();  $xa9 = Mage::getResourceModel('catalogrule/rule');  $xaa = Mage::app()->getLocale()->storeTimeStamp($x36);  $xab = Mage::app()->getStore($x36);  $xac = $xab->getWebsiteId();  $xad = Mage::getSingleton('customer/session')->getCustomerGroupId();  $xae = $xa9->getRulePrice($xaa, $xac, $xad, $xa6->getId());
 if ($xae !== false) $xaf = $xef('%.2f', $xed($xae, 2));  else $xaf = $xa6->getPrice();  if ($xa6->getSpecialFromDate() && !$xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as")) { if ($xa6->type_id == "\142\165\156\x64\x6ce") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xaf;  } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") $x22 = $xa6->price;  else { $x22 = $xaf;  } } } elseif ($xa6->getSpecialFromDate() && $xa6->getSpecialToDate()) { if ($xa6->getSpecialFromDate() <= date("\131\x2d\155-d H\72\x69\x3as") && date("\131\x2d\155-d H\72\x69\x3as") < $xa6->getSpecialToDate()) { if ($xa6->type_id == "\142\165\156\x64\x6ce") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xaf;  } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") $x22 = $xa6->price;  else { $x22 = $xaf;  } } } else { if ($xa6->type_id == "\142\165\156\x64\x6ce") { if (($xa6->price_type || (!$xa6->price_type && $xa6->special_price < $xa6->price)) && $xa6->special_price > 0) { if ($xa6->price_type) $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->price;  } } else { ($xa6->getSpecial_price() && $xa6->getSpecial_price() < $xa6->getPrice()) ? $x22 = $xa6->getSpecialPrice() : $x22 = $xaf;  } } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  $x2e = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2["opti\x6f\156\x73"][0])) ? $x23 = $x3a : $x23 = $xa2["opti\x6f\156\x73"][0];  $x2e = $this->xfe($x2e, $x23);  $x2e = $xf3($x2e, 2, "\56", "");  break;  case "{\107\x3aS\x41\114\105\137P\122\111\x43\105\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb0 = $xd6(' ', 'T', $xa6->getSpecialFromDate());  $xb1 = $xd6(' ', 'T', $xa6->getSpecialToDate());  if ($xa6->type_id == 'bundle' && $xa6->special_price) { if ($xa6->price_type) { $x22 = $xf3($xa6->price * $xa6->special_price / 100, 2, "\56", "");  } else { $x22 = $xa6->special_price;  } } else { $x22 = $xa6->getSpecial_price();  } (!isset($xa2['options'][1])) ? $x27 = false : $x27 = $xa2['options'][1];  if ($x22 > 0) { $x22 = $this->xff($x22, $x40, $xa6->getTaxClassId(), $x27);  (!isset($xa2['options'][0])) ? $x23 = $x3a : $x23 = $xa2['options'][0];  $x22 = $this->xfe($x22, $x23);  $x22 = $xf3($x22, 2, '.', '');  ;  } if ($x22 > 0) { $x2e = "\74\147\x3a\x73\x61\154e\x5f\160\x72\151\x63e>\74\41\133\x43D\101\x54\101[" . $x22 . "\40" . $x23 . "\x5d\x5d\76\74/g\72\163\141\154\145_p\x72i\x63\145\76\x0a";  } if ($x22 > 0 && $xb1) { $x2e.="\74\147\72s\x61le_\x70\x72\x69ce\137\x65\146fe\143\164\x69\x76e_d\141\x74e><\x21\133\x43\104\x41\x54\101\x5b" . $xb0 . "/" . $xb1 . "]\x5d\x3e\74\x2f\147:s\141\154\x65_p\x72\151\143e\x5f\145\146\x66\x65c\164\151\166e\137da\164\145\x3e";  } break;  case "\173\x69\155\x61g\145\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb2 = $xa6->getImage();  if (!isset($xa2['options'][0]) || $xa2['options'][0] == 0) { if ($xa6->getImage() && $xa6->getImage() != 'no_selection') { $xb3 = 'catalog/product/' . $xa6->getImage();  $x2e = $x3f . $xd6('//', '/', $xb3);  } else { $x2e = $x3f . '/catalog/product/placeholder/' . $x39;  } } elseif (isset($x7d[$xa6->getId()]['src'][$xa2['options'][0] - 1]) && $xa2['options'][0] > 0) { if ($x7d[$xa6->getId()]['src'][$xa2['options'][0] - 1] != $xb2) { $xb3 = 'catalog/product/' . $x7d[$xa6->getId()]['src'][$xa2['options'][0] - 1];  $x2e = $x3f . $xd6('//', '/', $xb3);  } } break;  case "\173\107\72\x49\115A\107\105\x5f\x4cI\x4e\113}" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb2 = $xa6->getImage();  $xb4 = array($xa6->getSmall_image(), $xa6->getThumbnail());  $xb5 = '';  $xa3 = 0;  if ($xa6->getImage() && $xa6->getImage() != 'no_selection') { $xb3 = 'catalog/product/' . $xa6->getImage();  $x2e = $x3f . $xd6('//', '/', $xb3);  $xb5.="<g\x3a\151\155a\147e\137l\x69n\x6b\x3e\74\41[C\x44\x41TA\x5b" . $x2e . "\135\x5d\x3e\74\x2f\147\x3ai\x6dage\x5fl\x69\x6e\153>\x0a";  $xa3++;  } $xb6 = 0;  while (isset($x7d[$xa6->getId()]['src'][$xb6]) && $xa3 < 10) { if ($x7d[$xa6->getId()]['src'][$xb6] != $xb2) { if ($xec($x7d[$xa6->getId()]['src'][$xb6], $xb4) || $x7d[$xa6->getId()]['disabled'][$xb6] != 1) { $xb3 = 'catalog/product/' . $x7d[$xa6->getId()]['src'][$xb6];  $x2e = $x3f . $xd6('//', '/', $xb3);  $xb5.="\x3c\x67\x3a\141\144d\x69\164\x69\x6f\156a\x6c_i\155\141ge\137\154\x69\156\153><\x21\x5bCD\x41\x54A\133" . $x2e . "\135\135\76</\147:\x61\x64\x64\x69\x74i\157n\141\x6c\137im\x61\147\145\x5fl\151nk\76\x0a";  $xa3++;  } } $xb6++;  } $x2e = $xb5;  break;  case "{\x75\x72\x6c\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getRequest_path()) { $x2e = $x3e . $xa6->getRequest_path();  } else { $x2e = $xa6->getProductUrl();  } break;  case "{\x68\x6fs\x74\175" : $x2e = $x3e;  break;  case "{\165\162\151\x7d" : (isset($xa2['options'][0])) ? $xb7 = $xa2['options'][0] : $xb7 = "";  (isset($xa2['options'][1])) ? $xb8 = $xa2['options'][1] : $xb8 = "";  $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getRequest_path()) { $x2e = $xb8 . '' . $xa6->getRequest_path() . $xb7;  } else { $x2e = $xd6($x3e, '', $xa6->getProductUrl());  } break;  case '{is_in_stock}' : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0])) ? $xb9 = 'in stock' : $xb9 = $xa2['options'][0];  (!isset($xa2['options'][1])) ? $xba = "\157\x75\x74 o\x66\x20\163\164\157\x63\x6b" : $xba = $xa2['options'][1];  (!isset($xa2['options'][2])) ? $x3c = "\141va\x69\x6ca\x62l\145\x20f\x6f\162\40\x6f\x72de\x72" : $x3c = $xa2['options'][2];  if ($xa6->getManageStock() || ($xa6->getUseConfigManageStock() && $x3b )) { if ($xa6->getIs_in_stock() > 0) { $x2e = $xb9;  } else { if ($xa6->getBackorders() || ($xa6->getUseConfigBackorders() && $x3c)) { $x2e = $x3c;  } else { $x2e = $xba;  } } } else { $x2e = $xb9;  }   break;  case '{stock_status}' : $xa6 = $this->checkReference($xa2['reference'], $product);  ($xa6->getIs_in_stock() > 0) ? $x2e = 'in stock' : $x2e = 'out of stock';  break;  case '{qty}' : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0])) ? $xbb = 0 : $xbb = $xa2['options'][0];  if ($product->type_id == "co\156\146\151\147\165r\x61\x62\x6ce") { $x2e = $x8a[$product->getId()];  $x2e = $xf3($x2e, $xbb, '.', '');  } else if ($xa2['reference'] == "co\156\146\151\147\165r\x61\x62\x6ce") { $x2e = $xf3($x8a[$xa6->getId()], $xbb, '.', '');  } else { $x2e = $xf3($xa6->getQty(), $xbb, '.', '');  } break;  case "\x7bc\141\x74\145\x67\x6fr\x69\145\x73\x7d" : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0]) || !$xa2['options'][0] || $xa2['options'][0] == 'INF') ? $xbc = INF : $xbc = $xa2['options'][0];  (!isset($xa2['options'][1])) ? $xbd = 1 : $xbd = $xa2['options'][1];  (!isset($xa2['options'][2]) || !$xa2['options'][2] || $xa2['options'][2] == 'INF') ? $xbe = INF : $xbe = $xa2['options'][2];  $xbf = 0;
 $x2e = '';  $xc0 = '';  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { ($x48) ? $xc1 = $xec($x57[$x58]["p\x61\164\150"], $x49) : $xc1 = !$xec($x57[$x58]["p\x61\164\150"], $x49);  if (isset($x57[$x58]) && $xbf < $xbc && ($xc1 || $x49[0] == "\52")) { $xc2 = 0;  $xc3 = $xde('/', $x57[$x58]["p\x61\164\150"]);  if ($xec($x41, $xc3)) { $xc4 = "";  if ($xbf > 0) { $xc0 = "\x2c";  } foreach ($xc3 as $xc5) { if (isset($x57[$xc5])) { if ($x57[$xc5]['level'] > $xbd && $xc2 < $xbe) { if ($xc2 > 0) { $xc4.=' > ';  } $xc4.=($x57[$xc5]['name']);  $xc2++;  } } } $xc6 = "";  if (!empty($xc4)) { $x2e.=$xc0 . $xc4 . $xc6;  $xbf++;  } } } };  break;  case "{\x47\72\120\122O\x44\x55CT\x5f\x54Y\120\105}" : $xa6 = $this->checkReference($xa2['reference'], $product);  (!isset($xa2['options'][0]) || !$xa2['options'][0] || $xa2['options'][0] == 'INF') ? $xbc = INF : $xbc = $xa2['options'][0];  (!isset($xa2['options'][1])) ? $xbd = 1 : $xbd = $xa2['options'][1];  (!isset($xa2['options'][2]) || !$xa2['options'][2] || $xa2['options'][2] == 'INF') ? $xbe = INF : $xbe = $xa2['options'][2];  $xbf = 0;  $x2e = '';  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { ($x48) ? $xc1 = $xec($x57[$x58]["p\x61\164\150"], $x49) : $xc1 = !$xec($x57[$x58]["p\x61\164\150"], $x49);  if (@$x57[$x58]['include_in_menu'] && isset($x57[$x58]) && $xbf < $xbc && ( $xc1 || $x49[0] == "\52")) { $xc2 = 0;  $xc3 = $xde('/', $x57[$x58]["p\x61\164\150"]);  if ($xec($x41, $xc3)) { $xc4 = '';  $xc0 = '<g:product_type><![CDATA[';  foreach ($xc3 as $xc5) { if (isset($x57[$xc5])) { if ($x57[$xc5]['level'] > $xbd && $xc2 < $xbe) { if ($xc2 > 0) { $xc4.=' > ';  } $xc4.=($x57[$xc5]['name']);  $xc2++;  } } } $xc6 = "\135]>\74\57\x67\x3a\x70\162\x6fd\165\143\x74\x5f\x74\171\x70e\x3e\x0a";  if (!empty($xc4)) { $x2e.=$xc0 . $xc4 . $xc6;  $xbf++;  } } } };  break;  case "\x7b\107\72\x47\x4fO\x47LE_\120\x52O\x44U\x43\124\x5f\x43A\x54\x45\x47O\x52\131}" : (isset($xa2["opti\x6f\156\x73"][0])) ? $xc7 = $xa2["opti\x6f\156\x73"][0] : $xc7 = 0;  $x2e = "";  $xc8 = 0;  $xa6 = $this->checkReference($xa2['reference'], $product);  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { if (isset($x57[$x58]["p\x61\164\150"]) && isset($x4a[$x57[$x58]["p\x61\164\150"]])) { if ($xc8 == $xc7) { $x2e.="\x3c\x67\x3a\x67\157o\147l\145\x5f\160\162\x6fd\165\143t\x5fc\x61\164\145\x67\x6fry\x3e<\41\133C\104A\x54A\x5b" . $x4a[$x57[$x58]["p\x61\164\150"]] . "\135\135><\57\147\72\147o\x6f\147\x6ce\137\x70\162\157\x64\x75ct\x5f\143\141\x74\145\147\x6fry\76\x0a";  break;  } $xc8++;  } } break;  case "\173\x63\141\164e\x67o\x72y_m\x61\160\x70\151\x6e\147}" : (isset($xa2["opti\x6f\156\x73"][0])) ? $xc7 = $xa2["opti\x6f\156\x73"][0] : $xc7 = 0;  $x2e = "";  $xa6 = $this->checkReference($xa2['reference'], $product);  $xc8 = 0;  foreach ($xde(',', $xa6->getCategoriesIds()) as $x1e => $x58) { if (isset($x4a[$x57[$x58]["p\x61\164\150"]])) { if ($xc8 == $xc7) { $x2e.=$x4a[$x57[$x58]["p\x61\164\150"]];  break;  } $xc8++;  } } break;  case "\x7b\x72ev\151\x65w\x5fc\x6fu\156t\x7d": $xa6 = $this->checkReference($xa2['reference'], $product);  $x2e = "";  (isset($xa2["opti\x6f\156\x73"][0]) && $xa2["opti\x6f\156\x73"][0] == "\52" ) ? $xc9 = 0 : $xc9 = $x36;  if (isset($x77[$xa6->getId()][$xc9]["\143\x6f\165n\x74"])) { $xca = $x77[$xa6->getId()][$xc9]["\143\x6f\165n\x74"];  if (isset($xca)) { $x2e.=$xca;  } } break;  case "{\162\x65\x76\x69\x65\167_a\x76e\162\x61g\x65}": $xa6 = $this->checkReference($xa2['reference'], $product);  $x2e = "";  (isset($xa2["opti\x6f\156\x73"][0]) && $xa2["opti\x6f\156\x73"][0] == "\52" ) ? $xc9 = 0 : $xc9 = $x36;  (!isset($xa2["opti\x6f\156\x73"][1]) || !$xa2["opti\x6f\156\x73"][1]) ? $xcb = 5 : $xcb = $xa2["opti\x6f\156\x73"][1];  if (isset($x77[$xa6->getId()][$xc9]["\x73c\x6f\x72\145"])) { $xcc = $xf3($x77[$xa6->getId()][$xc9]["\x73c\x6f\x72\145"] * $xcb / 100, 2, "\56", "");  if (isset($xcc)) { $x2e.=$xcc;  } } break;  case "{\107:\120\122\117DU\x43T\x5f\x52E\x56IE\127\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  (isset($xa2["opti\x6f\156\x73"][0]) && $xa2["opti\x6f\156\x73"][0] == "\52" ) ? $xc9 = 0 : $xc9 = $x36;  (!isset($xa2["opti\x6f\156\x73"][1]) || !$xa2["opti\x6f\156\x73"][1]) ? $xcb = 5 : $xcb = $xa2["opti\x6f\156\x73"][1];  $x2e = "";  if (isset($x77[$xa6->getId()][$xc9]["\143\x6f\165n\x74"])) { $xca = $x77[$xa6->getId()][$xc9]["\143\x6f\165n\x74"];  $xcc = $xf3($x77[$xa6->getId()][$xc9]["\x73c\x6f\x72\145"] * $xcb / 100, 2, "\56", "");  } if (isset($xcc) && $xcc > 0) { $x2e.="\74g:p\x72o\x64\165\x63t_\162e\166iew\x5fave\162\x61\147e\x3e\74\41\133\x43\104A\x54\101[" . $xcc . "\135\x5d><\57\147\72p\162o\144\x75ct\x5f\162\145vie\167_\x61v\x65\162\141\x67\145>\x0a";  } if (isset($xca) && $xca > 0) { $x2e.="\x3c\x67\x3apr\157\144\x75\x63\x74\x5fr\145v\151\145\167\x5f\x63\x6fun\x74\x3e\74\x21\133C\104\x41T\101\x5b" . $xca . "]\135>\x3c\x2f\x67\72\x70\162\x6f\144\165c\x74_r\145v\151\x65w\137c\x6f\x75\156t\76\x0a";  } unset($xcc);  unset($xca);  break;  case "\173\107\72\x49T\105\115\x5fGR\x4f\x55\x50_ID\x7d" : if (isset($this->configurable[$product->getId()])) { $xa6 = $this->checkReference('configurable', $product);  $x2e = "\74\147\72\151\x74e\155_\147r\x6f\x75\160\137\151d\x3e\74!\133\x43\x44\101T\101[" . $xa6->getSku() . "]\x5d\76<\57\x67\72i\164e\155_\147\x72\157\165\x70\x5f\x69\144\x3e";  } break;  case "\x7b\x53\x43:\x45\x41\x4e\x7d" : ($xdd($xa2['options'][0]) && $xa2['options'][0] > 0) ? $xcd = $xa2['options'][0] : $xcd = 0;  $xa6 = $this->checkReference($xa2['reference'], $product);  $x2e = $xde(',', $xa6->getEan());  $x2e = "\74\x67\x3ae\141n\x3e\74\x21\x5b\x43DAT\101[" . $x2e[$xcd] . "\135\x5d><\x2f\147:\x65\141n\x3e";  break;  case "{S\x43:\111\x4dA\x47E\123\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  $xb2 = $xa6->getSmall_image();  $xb4 = array($xa6->getImage(), $xa6->getThumbnail());  $xb5 = '';  $xa3 = 0;  if ($xa6->getSmall_image() && $xa6->getSmall_image() != 'no_selection') { $xb3 = $xa6->getSmall_image();  $x2e = $xb3;  $xb5.="<g\x3a\151\155a\147e\137l\x69n\x6b\x3e\74\41[C\x44\x41TA\x5b" . $x2e . "\135\x5d\x3e\74\x2f\147\x3ai\x6dage\x5fl\x69\x6e\153>\x0a";  $xa3++;  } $xb6 = 0;  while (isset($x7d[$xa6->getId()]['src'][$xb6]) && $xa3 < 10) { if ($x7d[$xa6->getId()]['src'][$xb6] != $xb2) { if ($xec($x7d[$xa6->getId()]['src'][$xb6], $xb4) || $x7d[$xa6->getId()]['disabled'][$xb6] != 1) { $xb3 = $x7d[$xa6->getId()]['src'][$xb6];  $x2e = $xb3;  $xb5.="\x3c\x67\x3a\141\144d\x69\164\x69\x6f\156a\x6c_i\155\141ge\137\154\x69\156\153><\x21\x5bCD\x41\x54A\133" . $x2e . "\135\135\76</\147:\x61\x64\x64\x69\x74i\157n\141\x6c\137im\x61\147\145\x5fl\151nk\76\x0a";  $xa3++;  } } $xb6++;  } $x2e = $xb5;  break;  case "\x7bSC\72\x44E\x53\103R\111\x50T\x49\x4f\x4e\x7d" : $xa6 = $this->checkReference($xa2['reference'], $product);
 $xce = $xa6->getDescription() . $xa6->getShortDescription();  $xcf = "\174<\151\146r\141\155e\50\56\x2a\51\x3c\57\x69\x66\x72am\145>|\x55";  $xd9($xcf, $xce, $xd0);  if ($xd0) { $xce = $xa6->getAttributeText('manufacturer') . "\40" . $xa6->getName() . "\40\55 \120art\x20n\165mbe\162\72\x20" . $xa6->getSku() . "\x20-\40\x43\x61\164\145\147\157\x72\x79\x20:\x20\x7b\143\141t\x65\x67\157r\151\145\x73\54\x5b\61],[\61],[\61\135\x7d";  } else { if ($xec("\x73\x74\162i\160\137ta\147s", $xa2['options'])) { $xce = $xf4('!\<br /\>!isU', "\40", $xce);  $xce = $xf4('!\<br/\>!isU', "\40", $xce);  $xce = $xf4('!\<br>!isU', "\40", $xce);  $xce = $xf5($xce);  } if ($xec("\150\x74m\x6c_\145n\x74\x69\x74y\x5fdeco\x64\x65", $xa2['options'])) { $xce = $xf6($xce, ENT_QUOTES, 'UTF-8');  } if ($xec("h\164\155len\164\151\164\151\145\163", $xa2['options'])) { $xce = $xf7(($xce));  } if ($xe2($xce) > 900) { $xce = $xdf($xce, 0, 900 - 3);  $xd1 = $xf8($xce, "\40");  $xce = $xdf($xce, 0, $xd1) . '...';  } } if ($xce == null) $xce = $xa6->getAttributeText('manufacturer') . "\40" . $xa6->getName() . "\40\55 \120art\x20n\165mbe\162\72\x20" . $xa6->getSku() . "\x20-\40\x43\x61\164\145\147\157\x72\x79\x20:\x20\x7b\143\141t\x65\x67\157r\151\145\x73\54\x5b\61],[\61],[\61\135\x7d";  $xce = $xf4('/' . '[\x00-\x1F\x7F]' . '|[\x00-\x7F][\x80-\xBF]+' . '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*' . '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})' . '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|' . '(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})' . '/S', ' ', $xce);  $xce = $xd6(' ', '', $xce);  $x2e = "\74\x64e\163\x63\162ip\164\x69\x6fn><\41[C\104\101\x54A[" . $xce . "\x5d\x5d\76\74/\x64e\163\x63\162\151\x70ti\157n\76";  break;  case "\x7b\x53C:U\122\x4c\175" : (isset($xa2['options'][0])) ? $xb7 = $xa2['options'][0] : $xb7 = "";  (isset($xa2['options'][1])) ? $xb8 = $xa2['options'][1] : $xb8 = "";  $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xa6->getRequest_path()) { $x2e = "\74li\156\153\76\74\41\x5b\x43\x44\101T\101\133" . $x3e . $xb8 . $xa6->getRequest_path() . $xb7 . "\135\x5d\76\x3c/\x6ci\156\x6b>";  } else { $x2e = "\74li\156\153\76\74\41\x5b\x43\x44\101T\101\133" . $xa6->getProductUrl() . "\135\x5d\76\x3c/\x6ci\156\x6b>";  } break;  case "{\123\x43\x3aC\x4f\x4eDIT\111ON\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  ($xf9($xa6->getName(), "r\145\x66\x75\162\x62is\150e\x64")) ? $x9c = 'refurbished' : $x9c = 'new';  $x2e = "\74\147\x3a\143o\x6e\144\x69\x74\151\x6f\x6e>\x3c![\103D\101\x54A[" . $x9c . "\135]\76\74/\147\x3a\143on\x64i\164ion\x3e";  break;  case "\x7b\163\x63\x3a\x63\x6f\x6edit\151o\156\175" : $xa6 = $this->checkReference($xa2['reference'], $product);  ($xf9($xa6->getName(), "r\145\x66\x75\162\x62is\150e\x64")) ? $x9c = 'refurbished' : $x9c = 'new';  $x2e = $x9c;  break;  default : $xa6 = $this->checkReference($xa2['reference'], $product);  if ($xec($xa2['name'], $x62)) { if ($xec($x63[$xa2['name']], array('select', 'multiselect'))) { eval('$xd3 =($xa6->' . $xa2['methodName'] . "\x29\x3b");  $xd2 = $xde(',', $xd3);  if ($xdc($xd2) > 1) { $x2e = array();  foreach ($xd2 as $x9f) { if (isset($x68[$x9f][$x36])) $x2e[] = $x68[$x9f][$x36];  else { if (isset($x68[$x9f][0])) $x2e[] = $x68[$x9f][0];  } } } else { if (isset($x68[$xd2[0]][$x36])) { $x2e = $x68[$xd2[0]][$x36];  } else { if (isset($x68[$xd2[0]][0])) $x2e = $x68[$xd2[0]][0];  } } } else { eval('$x2e =($xa6->' . $xa2['methodName'] . "\x29\x3b");  } } if ($xec(@$x60[$xa2['name']], $x60)) { $x2e = $x60[$xa2['name']];  } $xd4 = 0;  if ($xdc($xa2['options']) > 0) { while (isset($xa2['options'][$xd4])) { switch ($xa2['options'][$xd4]) { case "\x73u\x62\163\x74\x72" : if (isset($xa2['options'][$xd4 + 1]) && $xe2($x2e) > $xa2['options'][$xd4 + 1]) { $x2e = $xdf($x2e, 0, $xa2['options'][$xd4 + 1] - 3);  $xd1 = $xf8($x2e, "\40");  $x2e = $xdf($x2e, 0, $xd1) . $xa2['options'][$xd4 + 2];  } $xd4++;  $xd4++;  break;  case "h\164\155len\164\151\164\151\145\163" : $x2e = $xf7(($x2e));  break;  case "\x73\x74\162i\160\137ta\147s" : $xd5 = "\40";  $x2e = $xf4('!\<br /\>!isU', $xd5, $x2e);  $x2e = $xf4('!\<br/\>!isU', $xd5, $x2e);  $x2e = $xf4('!\<br>!isU', $xd5, $x2e);  $x2e = $xf5($x2e);  break;  case "\151\x6d\160\154o\144e" : $x2e = ($xe6($x2e)) ? $xee($xa2['options'][$xd4 + 1], $x2e) : $x2e;  $xd4++;  break;  case "\146l\x6f\141t" : $x2e = $xf3($x2e, $xa2['options'][$xd4 + 1], '.', '');  $xd4++;  break;  case "\150\x74m\x6c_\145n\x74\x69\x74y\x5fdeco\x64\x65" : $x2e = $xf6($x2e, ENT_QUOTES, 'UTF-8');  break;  case "i\156\154\x69n\x65": $x2e = $xf4('/(\r\n|\n|\r|\r\n|\t)/s', '', $x2e);  break;  case "s\164r\164o\x6c\157\x77e\x72": $x2e = $xfa($x2e, "\125\x54\x46\70");  break;  case "\163\x74\x72\x74\157\x75\160\x70\x65\162": $x2e = $xfb($x2e, "\125\x54\x46\70");  break;  case "\143\154e\x61n\145r": $x2e = $xf4('/' . '[\x00-\x1F\x7F]' . '|[\x00-\x7F][\x80-\xBF]+' . '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*' . '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})' . '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|' . '(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})' . '/S', ' ', $x2e);  $x2e = $xd6(' ', '', $x2e);  break;  default : eval('$x2e=' . $xa2['options'][$xd4] . '($x2e); ');  break;  } $xd4++;  } } break;  } $x2e = $xd6(array("\74", "\x3e"), array("\173([", "]\51}"), $x2e);  $x2c = $xd6($xa2['fullpattern'], $x2e, $x2c);  } $x2c = $this->xfd($x2c, $product);  $x2c = $this->x101($x2c);  $x2c = $this->x100($x2c);  $x2c = $xd6(array("\173([", "]\51}"), array("\74", "\x3e"), $x2c);  if (!empty($x2c)) { $x4f.=("\x3c\151t\x65\x6d>");  $x4f.="\x0a" . $x2c . "\x0a";  $x4f.=("\74\57\x69t\x65\x6d>" . "\x0a");  $x97++;  } if ($this->_display) { $x50.=$x4f;  $x4f = '';  } else { if ($x97 % Mage::getStoreConfig("\163\x69\x6dple\147o\157\147\x6c\145\163\x68\157\160\x70\x69ng\x2f\x73ys\164\x65m\57\x62\x75\x66f\x65\162") == 0) { $x20->streamWrite($x4f);  unset($x4f);  $x4f = '';  } } if ($this->_limit && $x97 > $this->_limit) { break 2;  } } } $x4f.=('</channel>' . "\x0a");  $x4f.=('</rss>');  if (!$this->_display) { $x20->streamWrite($x4f);
 } unset($x85);  $x50.=$x4f;  if ($this->_display && !$this->_debug) { (!Mage::app()->getRequest()->getParam("r\x65\141\x6c_t\151\x6d\145\x5f\160\x72ev\x69\145\167")) ? $xce = "\x3ct\145x\164\141rea \x69d\x3d\47\103\157de\115i\162\162\x6f\162\x27\x20\x63l\141s\163='Co\x64\145\115\x69\162\x72\x6f\x72\47\76" . ($x50) . "</\164e\x78\x74\x61r\x65\141>" : $xce = $x50;  if ((!Mage::app()->getRequest()->getParam("r\x65\141\x6c_t\151\x6d\145\x5f\160\x72ev\x69\145\167"))) { return("\15\12\x20\40\x20 \x09\11<\150\x74\x6dl\x3e\15 \x20\x20\40\40\11 <\150\145a\x64\x3e\x0d\x0a \40\x20\11 \x3c\164\x69tl\x65>" . $this->getSimplegoogleshoppingFilename() . "<\x2f\x74i\164\x6c\x65> \x0a \40 \40\40\x20 \40\x20\x20 \x20\40<\x6c\151\x6e\x6b\40\162\x65\x6c=\47\x73t\x79\154\145\163\x68\x65\x65\x74' \x68\162\x65\146\75\x27" . $x3d . "sk\x69n\57\x61dmi\x6eh\164\155\x6c\57d\145f\141u\x6ct\x2fd\145\x66\141ult/\103od\145\x4d\x69\162\x72or\62/\154\151\x62/\x63ode\155i\162\162o\x72.\x63s\163'>\x0d \40 \x20\x20 \40\x20\x20\40\40 \x20\x3c\x6c\x69\156k \162\145\x6c\75\x27\x73\x74\x79leshe\x65t' h\162\x65f=\47" . $x3d . "\163\x6bin\57\x61d\155i\156\150\x74\155\154\57d\x65\x66au\x6ct/de\146\141u\x6c\x74\57C\157\x64e\x4d\151\162\162\157r\62/\164\150\x65m\x65\57\x64e\146\x61\165\x6c\x74\x2ec\163\x73'> \40 \40\40\40 \12\x20 \40\x20\40 \x20\x20\x20\40\x20\x20 \x20<sc\162\x69p\x74 \x74yp\x65=\47te\170\164\x2fj\x61\x76a\x73\143\x72\151\160\x74\x27\40s\x72\x63\75\47" . $x3d . "s\153\x69\x6e\57a\144\x6d\x69\156h\164ml\57\x64e\x66\x61\165\154\164\x2f\144e\146\x61ult\x2fC\x6f\144eM\151\162ro\x72\62/\x6ci\142/c\157\x64\x65\x6d\151r\x72o\162\56\x6a\163\47><\x2f\x73\x63\x72i\160\164>\15 \40\40\40\x20\40\40\40\40 \40\x20\40 \x20\x20\x20\x3c\163c\x72\151p\164 t\171\160\145\x3d'\x74\145\170t\57j\141\x76\141\x73c\162\151\160\164\47 \163\x72\143='" . $x3d . "\x73\153\151\x6e/adm\151\x6e\150tm\x6c\57\x64\x65f\141u\x6ct\x2fd\145\x66\141u\154\x74\57C\157d\x65\115ir\x72\x6fr\62/mod\145\x2fx\x6d\154/\170\155\x6c\x2e\x6a\x73\47\x3e</\163\143\162\151pt\x3e\15\x0a\40\40 \x20\15 \15\12 \x20\40\x20\40\40\15 \x20 \40\x20\40\x20 \x20\40 \40\x0d \40 \x20\x20\40 \x20 \x20 \40\40\40\x20 \74/he\x61\144>\x0d\x0a \x20\40 \x20\x20\40 \40 \x20\x20\x20 \40<\142\x6f\144\171>\x0d\12 \40\x20\40 \40\40\40\40\x20\40 \x20 \40" . $xce . " \40 \40\40 \40\40\40\40\40\x20\x20\x20 \x3cs\143r\x69p\x74\40\154a\156\x67\165\x61\x67\x65\x3d'\152a\166\141\x73\x63\x72\151\160\x74\47>\x0d \40\40\40 \40 \x20 \x20\x20\x20\x20\40\40\x20 \x20 \163\x48t\155l\x3dd\157\x63u\155\145\156t\56ge\164El\x65m\x65\x6e\x74\102y\x49\x64('C\x6fd\x65M\x69\x72\162\x6f\x72'\51\73 \40 \40\x20\40 \x20\40\x20\x20 \40\x20\40\x20 \40\x20\x20\151\x66\50\x74\x79\160eof s\110\164\155\154 \x21\75\40\x27u\156d\x65\146\151\156\145\x64\47\51{ \40 \40\40 \x20\x20\x20\x20\x20 \40\40\40 \40 \40 \40v\x61r\40m\171\103\157\144e\115\151\x72r\x6f\x72\x20\75\x20\x43o\x64e\x4dirro\x72(\x66\x75nc\164\151\157\x6e\x28\x65l\164)\x20\173 \x0a\40\40\40 \x20 \40\40\40\40\x20\x20 \x20 \40\x20\40\x20 \x20 \40\40 \x73H\x74\155\x6c.\x70\x61\162en\x74\116o\144\x65\56r\x65\x70\x6ca\x63e\103\150il\x64\50e\x6c\x74\x2c\40\163Htm\154\51\175, \x7b\x0d\x0a \x20\x20 \x20 \x20 \x20\40 \x20\40\x20\x20\40\40\x20\x20 \x20 \40\40\40 \40\40\x76\141\154u\145: \163Ht\155l\56\x76\x61\x6c\165\x65, \12 \40\40\40 \x20\x20 \40\40 \x20\x20\40 \x20\40\x20 \40 \40 \x20\x20 mo\x64\145\72 \x20\47\x78\155\x6c\47\x2c \12\x20\40\x20\x20 \40\x20\40\40\40\x20\x20\40\x20\40\x20\x20\40\40\40\x20\40 \40\40\x20\40\x20\x72\145a\144\x4f\x6el\x79: \164\x72\165e\15 \x20\x20\40\40\40\40\x20\40\x20\40\40 \40\x20\40 \40\40\40\40\x20\40 \x7d)\15 \40\40\40\40\40\x20\x20\x20 \40\40 \x20\40\40\40 \x20\40\x20\40\x20} \12\40\x20\40\x20 \x20 \40\40\x20 \40\40\x20\x20\x0d\x0a\x20 \40 \x20 \40\40\40\40\x20\x20\40\40\x3c\57\163cr\x69\x70\164\x3e \40 \x20\40 \40 \40\40 \x20\x20\40 \40\74/bod\171\76 \x0a\40\x20 \x20 \x20\40\40\40\74\57\150t\x6d\x6c\76");  } else return $xce;  } elseif ($this->_debug) { echo "<\x62\x72>\74br\76\55\x2d\55\x2d-\x2d\x2d-\x2d--\x2d\x20\x58\115L O\125\124\x50\125T\x20\55\x2d\x2d---\55\55-\x2d\55-\x2d--\55\74\142\162>";  $xce = "\74p\162\145>" . $xfc($x50) . "</p\162e\x3e";  return $xce;  } else { $x20->streamClose();  $this->setSimplegoogleshopping_time(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s'));  $this->save();  } return $this;  } } ; 

Function Calls

None

Variables

None

Stats

MD5 12fe418fea05e24218add9ff3d29f7bb
Eval Count 0
Decode Time 497 ms