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 error_reporting(E_ERROR); class Wyomind_Simplegoogleshopping_Model_Simplegooglesho..

Decoded Output download

<?php error_reporting(E_ERROR); 
 class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abstract { public $_indexPhp = '';  public $x18 = 0;  protected $_filePath;  public $_limit = false;  public $_display = false;  public $_rates = false;  public $_sqlSize = 1500;  public function x122($x19, $x1a) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  if ($xf5($x19) == $xf5($x1a)) { return 0;  } return ($xf5($x19) < $xf5($x1a)) ? 1 : -1;  } public function x122Array($x19, $x1a) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  $xf5="strlen"; 
 $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  if ($xf5($xf6('', $x19)) == $xf5($xf6('', $x1a))) { return 0;  } return ($xf5($xf6('', $x19)) < $xf5($xf6('', $x1a))) ? -1 : 1;  } public function x124($myPattern, $product, $x1b = true) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  $myPattern = $xf7('<?', (''), $myPattern);  $myPattern = $xf7('?>', (''), $myPattern);  $x1c = ('/((.[^]+))/s');  $xf8($x1c, $myPattern, $x1d);  if (isset($x1d[1])) { foreach ($x1d[1] as $x1e => $x1f) { if ($x1b == 1) { if (@eval($x1d[2][$x1e] . '; ')) $myPattern = $xf7($x1f, eval($x1d[2][$x1e] . '; '), $myPattern);  else $myPattern = $xf7($x1f, '', $myPattern);  } else { if (@eval($this->unescapeStr($x1d[2][$x1e] . '; 
'))) $myPattern = $xf7($x1f, $this->escapeStr(eval($this->unescapeStr($x1d[2][$x1e]) . '; ')), $myPattern);  else $myPattern = $xf7($x1f, '', $myPattern);  } } } return $myPattern;  } protected function _construct() { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  $this->_sqlSize = Mage::getStoreConfig("simplegoogleshopping/system/sqlsize");  $this->_init('simplegoogleshopping/simplegoogleshopping');  } protected function _beforeSave() { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="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 (!$xf9('#^[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 (!$xf9('#\.xml$#', $this->getSimplegoogleshoppingFilename())) { $this->setSimplegoogleshoppingFilename($this->getSimplegoogleshoppingFilename() . '.xml');  } $this->setSimplegoogleshoppingPath($xfa($xf7($xf7('\', '/', Mage::getBaseDir()), '', $x21), '/') . '/');  return parent::_beforeSave();  } protected function getPath() { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  if ($xfb($this->_filePath)) { $this->_filePath = $xf7('//', '/', Mage::getBaseDir() . $this->getSimplegoogleshoppingPath());  } return $this->_filePath;  } public function getPreparedFilename() { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  return $this->getPath() . $this->getSimplegoogleshoppingFilename();  } public function x125($x22, $x23) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace"; 
 $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  $x24 = $this->_currencies;  if (isset($x24[$x23])) return $x22 * $x24[$x23];  else { return $x22;  } } public function x126($x22, $x25, $x26, $x27 = false) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  $x28 = $this->_rates;  $x22 = $xfc($x22, 2, '.', '');  if ($x27 === false) { if (!$x25 && isset($x28[$x26])) { if ($xfd($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 ($xfd($x28[$x26]) > 1) { return $x22;  } else { return 100 * $x22 / (100 + ($x28[$x26][0]['rate']));  } } else { return $x22;  } } else { if ($xfe($x27)) { if ($x26 != 0) { return $x22 * ($x27 / 100 + 1);  } elseif ($x26 == 0) { return $x22; 
 } } else { $x27 = $xff('/', $x27);  $x29 = 0;  $x2a = false;  if ($x100($x27[0], 0, 1) == "-") { $x27[0] = $x100($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 x127($x2c, $x2d = true) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  $x1c = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';  $xf8($x1c, $x2c, $x1d);  foreach ($x1d[1] as $x1e => $x2e) { $x2f = $x101($x1d[2][$x1e]);  if (empty($x2f) && !$xfe($x2f)) $x2c = $xf7($x1d[0][$x1e], '', $x2c);  else { if ($x2d) $x2c = $xf7($x1d[0][$x1e], ($x1d[1][$x1e]) . '<![CDATA[' . $x2f . ']]>' . ($x1d[3][$x1e]), $x2c);  else $x2c = $xf7($x1d[0][$x1e], ($x1d[1][$x1e]) . $x2f . ($x1d[3][$x1e]), $x2c);  } } $x19 = $x102("/
/s", $x2c);  $x30 = '';  foreach ($x19 as $x31) { ($xf5($x101($x31)) > 0) ? $x30.=$x31 . "
" : false;  } $x2c = $x30;  return $x2c;  } public function x128($x2c) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift"; 
 $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  if ($this->_display) return ($x2c);  else { if ($this->_chartset == 'ISO') return $x103($x2c);  else { return ($x2c);  } } } public function checkReference($x32, $product) { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace";  $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  if (($x32 == "parent" || $x32 == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()];  elseif (($x32 == "parent" || $x32 == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];  elseif (($x32 == "parent" || $x32 == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];  else { return $product;  } } public function generateXml() { $xf5="strlen";  $xf6="implode";  $xf7="str_replace";  $xf8="preg_match_all";  $xf9="preg_match";  $xfa="rtrim";  $xfb="is_null";  $xfc="number_format";  $xfd="count";  $xfe="is_numeric";  $xff="explode";  $x100="substr";  $x101="trim";  $x102="preg_split";  $x103="utf8_decode";  $x104="is_string";  $x105="json_decode";  $x106="is_array";  $x107="ucwords";  $x108="array_push";  $x109="print_r";  $x10a="version_compare";  $x10b="in_array";  $x10c="sprintf";  $x10d="array_pop";  $x10e="ceil";  $x10f="ini_get";  $x110="set_time_limit";  $x111="round";  $x112="str_pad";  $x113="abs";  $x114="floor";  $x115="usort";  $x116="array_shift";  $x117="array_reverse";  $x118="array_values";  $x119="preg_replace"; 
 $x11a="strip_tags";  $x11b="html_entity_decode";  $x11c="htmlspecialchars";  $x11d="strrpos";  $x11e="stristr";  $x11f="mb_strtolower";  $x120="mb_strtoupper";  $x121="htmlentities";  Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . strtoupper($this->getSimplegoogleshoppingFilename(false)) . "-----------------", null, $this->getSimplegoogleshoppingFilename() . '.log');  ini_set('memory_limit', Mage::getStoreConfig("simplegoogleshopping/system/memory_limit") . 'M');  $this->_debug = (isset($_GET['debug'])) ? true : false;  $x33 = $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());  } $x34 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "sgs", "ver" => "8.0.0");  $x104(Mage::app()->getRequest()->getParam("store_id")) ? $x35 = Mage::app()->getRequest()->getParam("store_id") : $x35 = $this->getStoreId();  $x36 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');  $x37 = Mage::getDesign()->getSkinUrl();  $x38 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x35);  $x39 = Mage::getStoreConfig("currency/options/base", $x35);  $x3a = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x35);  $x3b = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x35);  $x3c = Mage::app()->getStore($x35)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);  $x3d = Mage::getModel('core/store')->load($x35)->getBaseUrl();  $x3e = Mage::app()->getStore($x35)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);  $x3f = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x35);  $x40 = Mage::app()->getStore($x35)->getRootCategoryId();  $x41 = Mage::app()->getStore()->getStoreId();  $x42 = 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"), );  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_xmlitempattern")) ? $x43 = Mage::app()->getRequest()->getParam("simplegoogleshopping_xmlitempattern") : $x43 = $this->getSimplegoogleshoppingXmlitempattern();  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_title")) ? $x44 = Mage::app()->getRequest()->getParam("simplegoogleshopping_title") : $x44 = $this->getSimplegoogleshoppingTitle();  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_description")) ? $x45 = Mage::app()->getRequest()->getParam("simplegoogleshopping_description") : $x45 = $this->getSimplegoogleshoppingDescription();  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_categories")) ? $x46 = $x105(Mage::app()->getRequest()->getParam("simplegoogleshopping_categories")) : $x46 = $x105($this->getSimplegoogleshoppingCategories());  $x104(Mage::app()->getRequest()->getParam("category_filter")) ? $x47 = Mage::app()->getRequest()->getParam("category_filter") : $x47 = $this->getSimplegoogleshoppingCategoryFilter();  $x48 = Array();  $x49 = Array();  if ($x106($x46)) { foreach ($x46 as $x4a) { if ($x4a->checked) $x48[] = $x4a->line;  } foreach ($x46 as $x4a) { if ($x4a->mapping != "") $x49[$x4a->line] = $x4a->mapping;  } } if ($xfd($x48) < 1) { $x48[] = '*';  } $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_type_ids")) ? $x4b = $xff(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_type_ids")) : $x4b = $xff(',', $this->getSimplegoogleshoppingTypeIds());  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_visibility")) ? $x4c = $xff(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_visibility")) : $x4c = $xff(',', $this->getSimplegoogleshoppingVisibility());  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_attributes")) ? $x4d = $x105(Mage::app()->getRequest()->getParam("simplegoogleshopping_attributes")) : $x4d = $x105($this->getSimplegoogleshoppingAttributes());  $x104(Mage::app()->getRequest()->getParam("simplegoogleshopping_attribute_sets")) ? $x4e = $xff(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_attribute_sets")) : $x4e = $xff(',', $this->getSimplegoogleshoppingAttributeSets());  if ($x42[$x34['ac']] != $x34["md"]($x34["md"]($x42[$x34['ak']]) . $x34["md"]($x42[$x34['bu']]) . $x34["md"]($x34["ext"]) . $x34["md"]($x34["ver"]))) { $$x34["ext"] = "valid";  $$x34["th"]->$x34["dm"] = true;  } else { $$x34["th"]->$x34["dm"] = false;  $$x34["ext"] = "valid";  } $x4f = '';  $x50 = '';  header("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>' . $x44 . "</title>
");  $x4f.=('<link>' . $x100($x3c, 0, -1) . "</link>
");  $x4f.=('<description>' . $x45 . "</description>
");  if (!isset($$x34["ext"]) || $$x34["th"]->$x34["dm"]) { $$x34["th"]->$x34["dm"] = true;  return $$x34["th"];  } if ($this->_display) $x50 = $this->x128($x4f);  else { $x20->streamWrite($this->x128($x4f));  Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->getSimplegoogleshoppingFilename() . " created and opened", null, $this->getSimplegoogleshoppingFilename() . '.log');  } $x1c = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*)(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?}/';  $xf8($x1c, $x43, $x1d);  foreach ($x1d[6] as $x1e => $x51) { if ($x51 != "") { $x1d[0][] = $x1d[0][$x1e];  $x1d[1][] = $x51;  $x1d[2][] = $x1d[7][$x1e];  $x1d[3][] = $x1d[8][$x1e];  ;  $x1d[4][] = $x1d[9][$x1e];  ;  } } foreach ($x1d[11] as $x1e => $x51) { if ($x51 != "") { $x1d[0][] = $x1d[0][$x1e];  $x1d[1][] = $x51;  $x1d[2][] = $x1d[7][$x1e];  $x1d[3][] = $x1d[8][$x1e];  ;  $x1d[4][] = $x1d[9][$x1e];  ;  } } foreach ($x1d[16] as $x1e => $x51) { if ($x51 != "") { $x1d[0][] = $x1d[0][$x1e];  $x1d[1][] = $x51;  $x1d[2][] = $x1d[7][$x1e];  $x1d[3][] = $x1d[8][$x1e];  ;  $x1d[4][] = $x1d[9][$x1e];  ;  } } $x1d[0][] = "{categories,[1],[1],[1]}";  $x1d[1][] = "categories";  $x1d[2][] = "";  $x1d[3][] = ",[1],[1],[1]";  $x52 = array();  $x53 = array();  foreach ($x1d[1] as $x1e => $x51) { $x52[$x1e]['methodName'] = "get" . $xf7(' ', '', $x107($x101($x51)) . '()');  $x52[$x1e]['pattern'] = "{" . $x101($x51) . "}";  $x52[$x1e]['fullpattern'] = $x1d[0][$x1e];  $x52[$x1e]['name'] = $x101($x51);  $x52[$x1e]['reference'] = $x101($x1d[2][$x1e]);  if (empty($x52[$x1e]['reference'])) $x52[$x1e]['reference'] = 'self'; 
 switch ($x52[$x1e]['name']) { case 'url': $x108($x53, 'url_key');  break;  case 'uri': $x108($x53, 'url_key');  break;  case 'G:IMAGE_LINK': $x108($x53, 'image');  $x108($x53, 'small_image');  $x108($x53, 'thumbnail');  break;  case 'SC:IMAGES': $x108($x53, 'image');  $x108($x53, 'small_image');  $x108($x53, 'thumbnail');  break;  case 'SC:DESCRIPTION': $x108($x53, 'description');  $x108($x53, 'short_description');  $x108($x53, 'manufacturer');  $x108($x53, 'name');  $x108($x53, 'sku');  break;  case 'SC:EAN': $x108($x53, 'ean');  break;  case 'SC:URL': $x108($x53, 'url_key');  $x108($x53, 'url');  break;  default : $x108($x53, $x52[$x1e]['name']);  } $x52[$x1e]["value"] = '$product->get' . $x52[$x1e]['name'] . "()";  $x52[$x1e]["getText"] = 'getAttributeText(\'' . $x101($x51) . '\')';  $x54 = '/\[([^\]]+)\]/';  $xf8($x54, $x1d[3][$x1e], $x55);  $x52[$x1e]["options"] = $x55[1];  } if ($this->_debug) { echo "----------------------------------------------<br>
                ------------ DEBUG MODE ----------------<br> 
                  ----------------------------------------------<br><br>";  echo "<br><br>------------ ATTRIBUTES ----------------<br>";  $x109($x52);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x56 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x35) ->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 ($x10a(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>";  $x109($x57);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Categories collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $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=\'' . $x39 . '\'');  $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>";  $x109($x60);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x61 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x5e) ->addSetInfo() ->getData();  $x62 = array();  $x63 = array();  foreach ($x61 as $x1e => $x51) { if ($x10b($x51['attribute_code'], $x53)) { $x108($x62, $x51['attribute_code']);  $x63[$x51['attribute_code']] = $x51['frontend_input'];  } } if (!$x10b('special_price', $x62)) $x62[] = 'special_price';  if (!$x10b('special_from_date', $x62)) $x62[] = 'special_from_date';  if (!$x10b('special_to_date', $x62)) $x62[] = 'special_to_date';  if (!$x10b('price_type', $x62)) $x62[] = 'price_type';  if (!$x10b('price', $x62)) $x62[] = 'price';  $x62[] = 'tax_class_id';  foreach ($x4d as $x64) { if (!$x10b($x64->code, $x62) && $x64->checked) if (!$x10b($x64->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) $x62[] = $x64->code;  } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>";  $x109($x62);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $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=" . $x35 . ' 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>";  $x109($x68);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x69 = $x59->getTableName('tax_class');  $x6a = $x59->getTableName('tax_calculation');  $x6b = $x59->getTableName('tax_calculation_rate');  $x6c = $x59->getTableName('directory_country_region');  $x6d = $x59->getTableName('customer_group');  $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');  $x5c->joinInner(array('cg' => $x6d), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"');  $x6e = $x5a->fetchAll($x5c);  $x28 = array(); 
 $x6f = '';  foreach ($x6e as $x70) { if ($x6f != $x70['class_id']) $x71 = 0;  else { $x71++;  } $x6f = $x70['class_id'];  $x28[$x70['class_id']][$x71]['rate'] = $x70['rate'];  $x28[$x70['class_id']][$x71]['code'] = $x70['code'];  $x28[$x70['class_id']][$x71]['country'] = $x70['tax_country_id'];  } $this->_rates = $x28;  if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>";  $x109($x28);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x72 = $x59->getTableName('review');  $x73 = $x59->getTableName('review_store');  $x74 = $x59->getTableName('rating_option_vote');  $x75 = $x5a->select()->distinct('review_id');  $x75->from(array("r" => $x72), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value'));  $x75->joinleft(array('rs' => $x73), 'rs.review_id=r.review_id', 'rs.store_id');  $x75->joinleft(array('rov' => $x74), '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', 'rs.store_id'));  $x76 = $x5a->select();  $x76->from(array("r" => $x72), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS  store_id"));  $x76->joinleft(array('rs' => $x73), 'rs.review_id=r.review_id', array());  $x76->joinleft(array('rov' => $x74), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x76->where("status_id=1 and entity_id=1");  $x76->group(array('r.entity_pk_value'));  $x5c = $x5a->select() ->union(array($x75, $x76));  $x5c->order(array('entity_pk_value', 'store_id'));  $x77 = $x5a->fetchAll($x5c);  $x78 = array();  foreach ($x77 as $x79) { $x78[$x79['entity_pk_value']][$x79['store_id']]["count"] = $x79["count"];  $x78[$x79['entity_pk_value']][$x79['store_id']]['score'] = $x79['score'];  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x7a = $x59->getTableName('catalog_product_entity_media_gallery');  $x7b = $x59->getTableName('catalog_product_entity_media_gallery_value');  $x5c = $x5a->select(array("DISTINCT value"));  $x5c->from($x7a);  $x5c->joinleft(array('cpemgv' => $x7b), 'cpemgv.value_id = ' . $x7a . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));  $x5c->where("value<>TRIM('') AND (store_id=" . $x35 . ' OR store_id=0)');  $x5c->order(array('position', 'value_id'));  $x5c->group(array('value_id'));  $x7c = $x5a->fetchAll($x5c);  foreach ($x7c as $x7d) { $x7e[$x7d['entity_id']]['src'][] = $x7d['value'];  $x7e[$x7d['entity_id']]['disabled'][] = $x7d['disabled'];  } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>";  $x109($x7e);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  Mage::app()->setCurrentStore($x35);  $x7f = $x59->getTableName("cataloginventory_stock_item");  $x80 = $x59->getTableName("core_url_rewrite");  $x5f = $x59->getTableName('catalog_category_product');  $x81 = $x59->getTableName('catalog_category_product_index');  $x82 = $x59->getTableName('catalog_product_index_price');  $x83 = $x59->getTableName('catalog_product_super_link');  $x84 = $x59->getTableName('catalog_product_link');  $x85 = $x59->getTableName('catalog_product_bundle_selection');  ($x10a(Mage::getVersion(), '1.6.0', '<')) ? $x55 = "options=''" : $x55 = "ISNULL(options)";  switch (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite")) { case 1 : $x86 = "AND url.target_path NOT LIKE '%category%'";  $x87 = 'MAX';  break;  default : $x86 = "AND url.target_path LIKE '%category%'";  $x87 = 'GROUP_CONCAT';  break;  break;  } $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("in" => "configurable"));  $x88->addAttributeToFilter('visibility', array("nin" => 1));  $x88->addAttributeToSelect($x62, true);  $x88->getSelect()->joinLeft($x83 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));  $x88->getSelect()->joinLeft($x7f . ' 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'));  $x88->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x88->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x88->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x88->getSelect()->group(array('cpsl.parent_id'));  $x89 = array();  foreach ($x88 as $x8a) { foreach ($xff(",", $x8a->getChildIds()) as $x8b) { $x89[$x8b] = $x8a;  $x8c[$x8b]['categories_ids'] = $x8a->getCategories_ids();  $x8c[$x8b]['parent_id'] = $x8a->getId();  $x8c[$x8b]['parent_sku'] = $x8a->getSku();  $x8c[$x8b]['parent_request_path'] = $x8a->getRequestPath();  } } $this->configurable = $x89;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>";  echo $x88->getSelect() . '<br><br>';  $x109($x8c);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with configurable products detected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("in" => "configurable"));  $x88->addAttributeToFilter('visibility', array("nin" => 1));  $x88->getSelect()->joinLeft($x83 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');  $x88->getSelect()->joinLeft($x7f . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)'));  $x88->getSelect()->group(array('cpsl.parent_id'));  $x8d = array();  foreach ($x88 as $x8e) { $x8d[$x8e->getId()] = $x8e->getQty();  } $this->configurableQty = $x8d;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>";  echo $x88->getSelect() . '<br><br>'; 
 $x109($x8d);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Qty for configurable products calculated", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("in" => "grouped"));  $x88->addAttributeToFilter('visibility', array("nin" => 1));  $x88->addAttributeToSelect($x62, true);  $x88->getSelect()->joinLeft($x84 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));  $x88->getSelect()->joinLeft($x7f . ' 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'));  $x88->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x88->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x88->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x88->getSelect()->group(array('cpl.product_id'));  $x8f = array();  foreach ($x88 as $x8a) { foreach ($xff(",", $x8a->getChildIds()) as $x8b) { $x8f[$x8b] = $x8a;  $x90[$x8b]['categories_ids'] = $x8a->getCategories_ids();  $x90[$x8b]['parent_id'] = $x8a->getId();  $x90[$x8b]['parent_sku'] = $x8a->getSku();  $x90[$x8b]['parent_request_path'] = $x8a->getRequestPath();  } } $this->grouped = $x8f;  if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>";  echo $x88->getSelect() . '<br><br>';  $x109($x90);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("in" => "bundle"));  $x88->addAttributeToFilter('visibility', array("nin" => 1));  $x88->addAttributeToSelect($x62, true);  $x88->getSelect()->joinLeft($x85 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));  $x88->getSelect()->joinLeft($x7f . ' 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'));  $x88->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x88->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x88->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x88->getSelect()->group(array('e.entity_id'));  $x91 = array();  foreach ($x88 as $x8a) { foreach ($xff(",", $x8a->getChildIds()) as $x8b) { $x91[$x8b] = $x8a;  $x92[$x8b]['parent_id'] = $x8a->getId();  $x92[$x8b]['parent_sku'] = $x8a->getSku();  $x92[$x8b]['parent_request_path'] = $x8a->getRequestPath();  $x92[$x8b]['categories_ids'] = $x8a->getCategories_ids();  } } $this->bundle = $x91;  if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>";  echo $x88->getSelect() . '<br><br>';  $x109($x92);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x93 = $x59->getTableName("catalog_product_option");  $x94 = $x59->getTableName("catalog_product_option_title");  $x95 = $x59->getTableName("catalog_product_option_type_value");  $x96 = $x59->getTableName("catalog_product_option_type_title");  $x97 = $x59->getTableName("catalog_product_option_type_price");  $x98 = $x5a->select();  $x98->from(array("cpo" => $x93), array("product_id"));  $x98->joinleft(array("cpot" => $x94), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id"));  $x98->joinleft(array("cpotv" => $x95), "cpotv.option_id = cpo.option_id", "sku");  $x98->joinleft(array("cpott" => $x96), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value");  $x98->joinleft(array("cpotp" => $x97), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type"));  $x5c = $x98->order(array("product_id", "cpotv.sort_order ASC"));  $x77 = $x5a->fetchAll($x5c);  $x99 = array();  $x9a = 0;  foreach ($x77 as $x9b) { $x99[$x9b["product_id"]][$x9b["option"]]["options"][] = array( "value" => $x9b["value"], "sku" => $x9b["sku"], "price" => $x9b["price"], "price_type" => $x9b["price_type"] );  $x9a++;  } $this->customOptions = $x99;  if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>";  echo $x98 . '<br><br>';  $x109($x99);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x9c = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  if (Mage::getStoreConfig("simplegoogleshopping/system/disabled")) $x9c->addFieldToFilter("status", array('gteq' => 1));  else $x9c->addFieldToFilter("status", 1);  $x9c->addAttributeToFilter("type_id", array("in" => $x4b));  $x9c->addAttributeToFilter("visibility", array("in" => $x4c));  if ($x4e[0] != '*') $x9c->addAttributeToFilter("attribute_set_id", array("in" => $x4e));  $x9c->addAttributeToSelect($x62, true);  $x9d = 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)", );  $x9e = '';  $x19 = 0;  $x9f = array();  foreach ($x4d as $x64) { if ($x64->checked) { if ($x64->condition == 'in' || $x64->condition == 'nin') { if ($x64->code == 'qty' || $x64->code == 'is_in_stock') { $xa0 = $xff(',', $x64->value);  $x64->value = "'" . $xf6($xa0, "','") . "'";  } else { $x64->value = $xff(',', $x64->value);  } } switch ($x64->code) { case 'qty' : if ($x19 > 0) $x9e.=' ' . $x64->statement . ' ';  $x9e.=" qty " . $x10c($x9d[$x64->condition], $x64->value);  $x19++;  break;  case 'is_in_stock' : if ($x19 > 0) $x9e.=' ' . $x64->statement . ' ';  $x9e.=" (IF(";  $x9e.="(use_config_manage_stock=1 AND $x3a=0)";  $x9e.=" OR ";  $x9e.='(use_config_manage_stock=0 AND manage_stock=0)';  $x9e.=" OR ";  $x9e.="(use_config_manage_stock=1 AND $x3a=1 AND is_in_stock=1 )";  $x9e.=" OR ";  $x9e.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )";  $x9e.=",'1','0')" . $x10c($x9d[$x64->condition], $x64->value) . ")";  $x19++;  break;  default : if ($x64->statement == "AND") { if ($xfd($x9f)) $x9c->addFieldToFilter($x9f);  $x9f = array(); 
 } if ($x64->condition == "in") { $xa1 = true;  $xa2 = array();  foreach ($x64->value as $xa3) { if (!$xfe($xa3)) $xa1 = true;  } if ($xa1) { foreach ($x64->value as $xa3) { $xa2[] = array(array("finset" => $xa3));  } $x9f[] = array("attribute" => $x64->code, $xa2);  } else $x9f[] = array("attribute" => $x64->code, $x64->condition => $x64->value);  } else $x9f[] = array("attribute" => $x64->code, $x64->condition => $x64->value);  break;  } } };  if ($xfd($x9f)) $x9c->addFieldToFilter($x9f);  $x9c->getSelect()->joinLeft($x7f . ' 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'));  $x9c->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x9c->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  if ($x48[0] != '*') { $xa3 = 0;  $xa4 = null;  foreach ($x48 as $x4a) { if ($xa3 > 0) $xa4.=',';  $xa4.=$x10d($xff('/', $x4a));  $xa3++;  } ($x47) ? $xa5 = "IN" : $xa5 = "NOT IN";  $xa4 = "AND categories_index.category_id " . $xa5 . " (" . $xa4 . ")";  $x9c->getSelect()->joinInner($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35 . ' ' . $xa4, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  } else $x9c->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)'));  if ($x10a(Mage::getVersion(), '1.4.0', '>=')) $x9c->getSelect()->joinLeft($x82 . ' 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($x35)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price'));  if (!empty($x9e)) $x9c->getSelect()->where($x9e);  $x9c->getSelect()->group("e.entity_type_id");  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request: 
" . $x9c->getSelect(), null, $this->getSimplegoogleshoppingFilename() . '.log');  if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>";  echo $x9c->getSelect();  } $xa6 = 0;  $xa7 = clone $x9c;  $xa7->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total");  $this->_counter = $xa7->getFirstItem()->getTotal();  $xa8 = $x10e($this->_counter / $this->_sqlSize);  $x4f = '';  $xa9 = 1;  Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xa8 queries )", null, $this->getSimplegoogleshoppingFilename() . '.log');  while ($xa6 < $xa8) { $x88 = clone $x9c;  if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>";  print($x88->getSelect());  } $x88->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa6));  $x88->getSelect()->group(array('e.entity_id'));  $xa6++;  if ($this->_sqlSize * $xa6 > $this->_counter) $xaa = $this->_counter;  else $xaa = $this->_sqlSize * $xa6;  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->_sqlSize * ($xa6 - 1) + 1) . " to " . $xaa, null, $this->getSimplegoogleshoppingFilename() . '.log');  $x9a = 1;  foreach ($x88 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>";  echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x40 . "<br>";  foreach ($xff(',', $product->getCategoriesIds()) as $x1e => $x58) { echo $x58 . "=>" . $x57[$x58]["path"] . "<br>";  } } if (!$x10f('safe_mode')) { $x110(60);  } $x2c = $x43;  foreach ($x52 as $x1e => $xab) { $x2e = "";  switch ($xab['pattern']) { case "{load_options}": $x77 = 1;  $xac = array();  foreach ($xab['options'] as $x1e => $xad) { if (isset($x99[$product->getId()][$xad])) { $x77 = $x77 * $xfd($x99[$product->getId()][$xad]["options"]);  $xac[$x1e] = 0;  } } $x1c = array();  for ($x71 = 1;  $x71 <= $x77;  $x71++) { $xae = $x2c;  foreach ($xab['options'] as $x1e => $xad) { if (isset($x99[$product->getId()][$xad])) { $xae = $xf7("{" . $xad . "_label}", $x99[$product->getId()][$xad]["options"][$xac[$x1e]]['value'], $xae);  $xae = $xf7("{" . $xad . "_sku}", $x99[$product->getId()][$xad]["options"][$xac[$x1e]]['sku'], $xae);  $xae = $xf7("{" . $xad . "_price}", $x99[$product->getId()][$xad]["options"][$xac[$x1e]]['price'], $xae);  $xae = $xf7("{" . $xad . "_type}", $x99[$product->getId()][$xad]["options"][$xac[$x1e]]['price_type'], $xae);  if ($x1e > 0 || $xfd($x99[$product->getId()]) == 1 || $xfd($xab['options']) < 2) $xac[$x1e] ++;  if ($xac[$x1e] >= $xfd($x99[$product->getId()][$xad]["options"])) { $xac[$x1e] = 0;  $xac[$x1e - 1] ++;  } } } $x1c[] = $xae;  } if ($xfd($x1c) > 0) { $x2c = $xf6("</item>
<item>", $x1c);  } break;  case "{use_options}": foreach ($xab['options'] as $x1e => $xad) { if (isset($x99[$product->getId()][$xad])) { $xaf = array();  $xb0 = array();  $xb1 = array();  foreach ($x99[$product->getId()][$xad]["options"] as $x30) { $xaf[] = $x30['value'];  $xb0[] = $x30['sku'];  $xb1[] = $x30['price'];  } $x2c = $xf7("{" . $xad . "_label}", $xf6(',', $xaf), $x2c);  $x2c = $xf7("{" . $xad . "_sku}", $xf6(',', $xb0), $x2c);  $x2c = $xf7("{" . $xad . "_price}", $xf6(',', $xb1), $x2c);  } } break;  case '{inc}' : $x2e = $xa9;  break;  case '{final_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getFinalePrice();  (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{tier_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getTierPrice();  (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{min_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getMinPrice(); 
 (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{max_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getMaxPrice();  (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{normal_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->type_id == 'bundle') $x22 = $xb2->price;  else { $x22 = $xb2->getPrice();  } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{price}' : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb2->type_id == "bundle") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else $x22 = $xb2->special_price;  } else { $x22 = $xb2->price;  } } else ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xb2->getPrice();  } else { if ($xb2->type_id == "bundle") $x22 = $xb2->price;  else { $x22 = $xb2->getPrice();  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == "bundle") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xb2->getPrice();  } } else { if ($xb2->type_id == "bundle") { $x22 = $xb2->price;  } else { $x22 = $xb2->getPrice();  } } } else { if ($xb2->type_id == "bundle") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) { $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  } else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xb2->getPrice();  } } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab["options"][0])) ? $x23 = $x39 : $x23 = $xab["options"][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, ".", "");  ;  break;  case "{is_special_price}" : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab["options"][0])) ? $xb3 = 1 : $xb3 = $xab["options"][0];  (!isset($xab["options"][1])) ? $xb4 = 0 : $xb4 = $xab["options"][1];  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb2->type_id == "bundle") (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0 ) ? $x2e = $xb3 : $x2e = $xb4;  else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x2e = $xb3 : $x2e = $xb4;  } } else { if ($xb2->type_id == "bundle") { $x2e = $xb4;  } else { $x2e = $xb4;  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == "bundle") { (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0 ) ? $x2e = $xb3 : $x2e = $xb4;  } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x2e = $xb3 : $x2e = $xb4;  } } else { if ($xb2->type_id == "bundle") { $x2e = $xb4;  } else { $x2e = $xb4;  } } } else { if ($xb2->type_id == "bundle") { (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0 ) ? $x2e = $xb3 : $x2e = $xb4;  } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x2e = $xb3 : $x2e = $xb4;  } } break;  case "{special_price}" : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = null;  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb2->type_id == 'bundle') { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == 'bundle') { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } } } else { if ($xb2->type_id == 'bundle') { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  if ($x22 > 0) { $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  ;  } else { $x2e = "";  } break;  case '{price_rules}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x35 = $this->getStoreId();  $xb5 = Mage::getResourceModel('catalogrule/rule');  $xb6 = Mage::app()->getLocale()->storeTimeStamp($x35);  $xb7 = Mage::app()->getStore($x35);  $xb8 = $xb7->getWebsiteId();  $xb9 = Mage::getSingleton('customer/session')->getCustomerGroupId();  $xba = $xb5->getRulePrice($xb6, $xb8, $xb9, $xb2->getId());  if ($xba !== false) $xbb = $x10c('%.2f', $x111($xba, 2));  else $xbb = $xb2->getPrice();  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb2->type_id == "bundle") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xbb;  } } else { if ($xb2->type_id == "bundle") $x22 = $xb2->price;  else { $x22 = $xbb;  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == "bundle") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xbb; 
 } } else { if ($xb2->type_id == "bundle") $x22 = $xb2->price;  else { $x22 = $xbb;  } } } else { if ($xb2->type_id == "bundle") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xbb;  } } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab["options"][0])) ? $x23 = $x39 : $x23 = $xab["options"][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, ".", "");  break;  case "{G:SALE_PRICE}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xbc = Mage::getSingleton('core/date')->getGmtOffset("hours");  if ($xbc > 0) { $xbd = "+";  $xbe = $x112($x113($x114($xbc)), 2, 0, STR_PAD_LEFT) . ':' . $x112(($x113($xbc) - $x114($x113($xbc))) * 60, 2, 0, STR_PAD_LEFT);  } else { $xbd = "";  $xbe = '-' . $x112($x113($x114($xbc)), 2, 0, STR_PAD_LEFT) . ':' . $x112(($x113($xbc) - $x114($x113($xbc))) * 60, 2, 0, STR_PAD_LEFT);  } $xbf = $x100($xf7(' ', 'T', $xb2->getSpecialFromDate()), 0, -3);  $xc0 = $x100($xf7(' ', 'T', $xb2->getSpecialToDate()), 0, -3);  if ($xb2->type_id == 'bundle' && $xb2->special_price) { if ($xb2->price_type) { $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, ".", "");  } else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  if ($x22 > 0) { $x22 = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x22 = $this->x125($x22, $x23);  $x22 = $xfc($x22, 2, '.', '');  ;  } if ($x22 > 0) { $x2e = "<g:sale_price><![CDATA[" . $x22 . " " . $x23 . "]]></g:sale_price>
";  } if ($x22 > 0 && $xc0) { $x2e.="<g:sale_price_effective_date><![CDATA[" . $xbf . $xbd . $xbe . "/" . $xc0 . $xbd . $xbe . "]]></g:sale_price_effective_date>
";  } break;  case "{image}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xc1 = $xb2->getImage();  if (!isset($xab['options'][0]) || $xab['options'][0] == 0) { if ($xb2->getImage() && $xb2->getImage() != 'no_selection') { $xc2 = 'catalog/product/' . $xb2->getImage();  $x2e = $x3e . $xf7('//', '/', $xc2);  } else { $x2e = $x3e . '/catalog/product/placeholder/' . $x38;  } } elseif (isset($x7e[$xb2->getId()]['src'][$xab['options'][0] - 1]) && $xab['options'][0] > 0) { if ($x7e[$xb2->getId()]['src'][$xab['options'][0] - 1] != $xc1) { $xc2 = 'catalog/product/' . $x7e[$xb2->getId()]['src'][$xab['options'][0] - 1];  $x2e = $x3e . $xf7('//', '/', $xc2);  } } break;  case "{G:IMAGE_LINK}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xc1 = $xb2->getImage();  $xc3 = array($xb2->getSmall_image(), $xb2->getThumbnail());  $xc4 = '';  $xac = 0;  if ($xb2->getImage() && $xb2->getImage() != 'no_selection') { $xc2 = 'catalog/product/' . $xb2->getImage();  $x2e = $x3e . $xf7('//', '/', $xc2);  $xc4.="<g:image_link><![CDATA[" . $x2e . "]]></g:image_link>
";  $xac++;  } $xc5 = 0;  while (isset($x7e[$xb2->getId()]['src'][$xc5]) && $xac < 10) { if ($x7e[$xb2->getId()]['src'][$xc5] != $xc1) { if ($x10b($x7e[$xb2->getId()]['src'][$xc5], $xc3) || $x7e[$xb2->getId()]['disabled'][$xc5] != 1) { $xc2 = 'catalog/product/' . $x7e[$xb2->getId()]['src'][$xc5];  $x2e = $x3e . $xf7('//', '/', $xc2);  $xc4.="<g:additional_image_link><![CDATA[" . $x2e . "]]></g:additional_image_link>
";  $xac++;  } } $xc5++;  } $x2e = $xc4;  break;  case "{url}" : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getRequest_path()) { if (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 2) { $xc6 = $xff(",", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x3d . $x10d($xc6);  } elseif (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 3) { $xc6 = $xff(",", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x3d . $x116($xc6);  } else $x2e = $x3d . $xb2->getRequest_path();  } else { $x2e = $xb2->getProductUrl();  } break;  case "{host}" : $x2e = $x3d;  break;  case "{uri}" : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getRequest_path()) { if (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 2) { $xc6 = $xff(",", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x10d($xc6);  } elseif (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 3) { $xc6 = $xff(",", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x116($xc6);  } else $x2e = $xb2->getRequest_path();  } else { $x2e = $xf7($x3d, '', $xb2->getProductUrl());  } break;  case '{is_in_stock}' : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0])) ? $xc7 = 'in stock' : $xc7 = $xab['options'][0];  (!isset($xab['options'][1])) ? $xc8 = "out of stock" : $xc8 = $xab['options'][1];  (!isset($xab['options'][2])) ? $xc9 = "available for order" : $xc9 = $xab['options'][2];  if (($xb2->getManageStock() && !$xb2->getUseConfigManageStock() && !$x3a) || ($xb2->getUseConfigManageStock() && $x3a ) || $xb2->getManageStock()) { if ($xb2->getIsInStock() > 0) { if ($product->type_id == "configurable") $xca = $x8d[$product->getId()];  else $xca = $xb2->getQty();  if ($xca > 0) { $x2e = $xc7;  } else { if ($xb2->getBackorders() || ($xb2->getUseConfigBackorders() && $x3b)) { $x2e = $xc9;  } else { $x2e = $xc8;  } } } else $x2e = $xc8;  } else { $x2e = $xc7;  } break;  case '{stock_status}' : $xb2 = $this->checkReference($xab['reference'], $product);  ($xb2->getIs_in_stock() > 0) ? $x2e = 'in stock' : $x2e = 'out of stock';  break;  case '{qty}' : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0])) ? $xcb = 0 : $xcb = $xab['options'][0];  if ($product->type_id == "configurable") { $x2e = $x8d[$product->getId()];  $x2e = $xfc($x2e, $xcb, '.', '');  } else if ($xab['reference'] == "configurable") { $x2e = $xfc($x8d[$xb2->getId()], $xcb, '.', '');  } else { $x2e = $xfc($xb2->getQty(), $xcb, '.', ''); 
 } break;  case "{categories_v1}" : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xce = INF : $xce = $xab['options'][2];  $xcf = 0;  $x2e = '';  $xd0 = '';  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b($x57[$x58]["path"], $x48) : $xd1 = !$x10b($x57[$x58]["path"], $x48);  if (isset($x57[$x58]) && $xcf < $xcc && ($xd1 || $x48[0] == "*")) { $xd2 = 0;  $xd3 = $xff('/', $x57[$x58]["path"]);  if ($x10b($x40, $xd3)) { $xd4 = "";  if ($xcf > 0) $xd0 = ",";  foreach ($xd3 as $xd5) { if (isset($x57[$xd5])) { if ($x57[$xd5]['level'] > $xcd && $xd2 < $xce) { if ($xd2 > 0) $xd4.='>';  $xd4.=($x57[$xd5]['name']);  $xd2++;  } } } $xd6 = "";  if (!empty($xd4)) { $x2e.=$xd0 . $xd4 . $xd6;  $xcf++;  } } } };  break;  case "{categories}" : $xd7 = null;  $xcc = INF;  $xcd = 1;  $xd8 = INF;  $xd9 = ', ';  $xda = " > ";  if ($xfd($xab['options']) == 1) { (!isset($xab['options'][0])) ? $xd7 = "last" : $xd7 = $xab['options'][0];  $xcc = 1;  } elseif ($xfd($xab['options']) == 2) { (!isset($xab['options'][0])) ? $xd9 = ', ' : $xd9 = $xab['options'][0];  (!isset($xab['options'][1])) ? $xda = " > " : $xda = $xab['options'][1];  } elseif ($xfd($xab['options']) > 2) { (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xd8 = INF : $xd8 = $xab['options'][2];  (!isset($xab['options'][3])) ? $xd9 = ', ' : $xd9 = $xab['options'][3];  (!isset($xab['options'][4])) ? $xda = " > " : $xda = $xab['options'][4];  } $xb2 = $this->checkReference($xab['reference'], $product);  $xc2 = 0;  $xdb = array();  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b(@$x57[$x58]["path"], $x48) : $xd1 = !$x10b(@$x57[$x58]["path"], $x48);  if (isset($x57[$x58]) && ($xd1 || $x48[0] == "*")) { $xc2++;  $xdb[$xc2] = array();  $xd3 = $xff('/', $x57[$x58]["path"]);  if ($x10b($x40, $xd3)) { foreach ($xd3 as $xd5) { if (isset($x57[$xd5]) && $x57[$xd5]['name'] != null) { $xdb[$xc2][] = ($x57[$xd5]['name']);  } } } } } $xdc = array();  $x115($xdb, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122Array'));  if ($xd7 == "last") $xdb = $x117($xdb);  $xb2->setCategoriesArray($xdb);  $xdd = 0;  foreach ($xdb as $x1e => $xd2) { if ($xdd < $xcc) { foreach ($xd2 as $xde => $xdf) { if ($xde >= $xcd && $xde <= $xd8) { if (!isset($xdc[$xdd])) $xdc[$xdd] = array();  $xdc[$xdd][] .= $xdf;  } } if ($xfd($xdc[$xdd])) $xdd++;  } };  $x2e = null;  foreach ($x118($xdc) as $x1e => $xe0) { if ($x1e > 0) $x2e.=$xd9;  $x2e.=$xf6($xda, $xe0);  } break;  case "{G:PRODUCT_TYPE_v1}" : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xce = INF : $xce = $xab['options'][2];  $xcf = 0;  $x2e = '';  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b($x57[$x58]["path"], $x48) : $xd1 = !$x10b($x57[$x58]["path"], $x48);  if (@$x57[$x58]["include_in_menu"] && isset($x57[$x58]) && $xcf < $xcc && ($xd1 || $x48[0] == "*")) { $xd2 = 0;  $xd3 = $xff('/', $x57[$x58]["path"]);  if ($x10b($x40, $xd3)) { $xd4 = '';  $xd0 = '<g:product_type><![CDATA[';  foreach ($xd3 as $xd5) { if (isset($x57[$xd5])) { if ($x57[$xd5]['level'] > $xcd && $xd2 < $xce) { if ($xd2 > 0) $xd4.=' > ';  $xd4.=($x57[$xd5]['name']);  $xd2++;  } } } $xd6 = "]]></g:product_type>
";  if (!empty($xd4)) { $x2e.=$xd0 . $xd4 . $xd6;  $xcf++;  } } } };  break;  case "{G:PRODUCT_TYPE}" : $xd9 = "]]></g:product_type>
<g:product_type><![CDATA[";  $xda = " > ";  (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xd8 = INF : $xd8 = $xab['options'][2];  $xb2 = $this->checkReference($xab['reference'], $product);  $xc2 = 0;  $xdb = array();  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b(@$x57[$x58]["path"], $x48) : $xd1 = !$x10b(@$x57[$x58]["path"], $x48);  if (isset($x57[$x58]) && ($xd1 || $x48[0] == "*")) { $xc2++;  $xdb[$xc2] = array();  $xd3 = $xff('/', $x57[$x58]["path"]);  if ($x10b($x40, $xd3)) { foreach ($xd3 as $xd5) { if (isset($x57[$xd5]) && $x57[$xd5]['name'] != null) { $xdb[$xc2][] = ($x57[$xd5]['name']);  } } } } } $xdc = array();  $x115($xdb, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122Array'));  foreach ($xdb as $x1e => $xd2) { if ($x1e < $xcc) foreach ($xd2 as $xde => $xdf) { if ($xde >= $xcd && $xde <= $xd8) { if (!isset($xdc[$x1e])) $xdc[$x1e] = array();  $xdc[$x1e][] .= $xdf;  } } };  $x2e = null;  foreach ($x118($xdc) as $x1e => $xe0) { if ($x1e > 0) $x2e.=$xd9;  $x2e.=$xf6($xda, $xe0);  } if (($xdc)) $x2e = "<g:product_type><![CDATA[" . $x2e . "]]></g:product_type>
";  break;  case "{G:GOOGLE_PRODUCT_CATEGORY}" : $xe1 = array(); 
 (!isset($xab['options'][0])) ? $xd7 = "longest" : $xd7 = $xab['options'][0];  $xb2 = $this->checkReference($xab['reference'], $product);  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { if (isset($x57[$x58]["path"]) && isset($x49[$x57[$x58]["path"]])) { $xe1[] = $x49[$x57[$x58]["path"]];  } } $x115($xe1, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  if ($xd7 == "shortest") $xe1 = $x117($xe1);  $xe2 = $x116($xe1);  if ($xe2 != "") $x2e = "<g:google_product_category><![CDATA[" . $xe2 . "]]></g:google_product_category>
";  break;  case "{category_mapping}" : (isset($xab["options"][0])) ? $xe3 = $xab["options"][0] : $xe3 = 0;  $x2e = "";  $xb2 = $this->checkReference($xab['reference'], $product);  $xe4 = 0;  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { if (isset($x49[$x57[$x58]["path"]])) { if ($xe4 == $xe3) { $x2e.=$x49[$x57[$x58]["path"]];  break;  } $xe4++;  } } break;  case "{review_count}": $xb2 = $this->checkReference($xab['reference'], $product);  $x2e = "";  (isset($xab["options"][0]) && $xab["options"][0] == "*" ) ? $xe5 = 0 : $xe5 = $x35;  if (isset($x78[$xb2->getId()][$xe5]["count"])) { $xe6 = $x78[$xb2->getId()][$xe5]["count"];  if (isset($xe6)) { $x2e.=$xe6;  } } break;  case "{review_average}": $xb2 = $this->checkReference($xab['reference'], $product);  $x2e = "";  (isset($xab["options"][0]) && $xab["options"][0] == "*" ) ? $xe5 = 0 : $xe5 = $x35;  (!isset($xab["options"][1]) || !$xab["options"][1]) ? $xe7 = 5 : $xe7 = $xab["options"][1];  if (isset($x78[$xb2->getId()][$xe5]["score"])) { $xe8 = $xfc($x78[$xb2->getId()][$xe5]["score"] * $xe7 / 100, 2, ".", "");  if (isset($xe8)) { $x2e.=$xe8;  } } break;  case "{G:PRODUCT_REVIEW}" : $xb2 = $this->checkReference($xab['reference'], $product);  (isset($xab["options"][0]) && $xab["options"][0] == "*" ) ? $xe5 = 0 : $xe5 = $x35;  (!isset($xab["options"][1]) || !$xab["options"][1]) ? $xe7 = 5 : $xe7 = $xab["options"][1];  $x2e = "";  if (isset($x78[$xb2->getId()][$xe5]["count"])) { $xe6 = $x78[$xb2->getId()][$xe5]["count"];  $xe8 = $xfc($x78[$xb2->getId()][$xe5]["score"] * $xe7 / 100, 2, ".", "");  } if (isset($xe8) && $xe8 > 0) { $x2e.="<g:product_review_average><![CDATA[" . $xe8 . "]]></g:product_review_average>
";  } if (isset($xe6) && $xe6 > 0) { $x2e.="<g:product_review_count><![CDATA[" . $xe6 . "]]></g:product_review_count>
";  } unset($xe8);  unset($xe6);  break;  case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $xb2 = $this->checkReference('configurable', $product);  $x2e = "<g:item_group_id><![CDATA[" . $xb2->getSku() . "]]></g:item_group_id>";  } break;  case "{SC:EAN}" : ($xfe($xab['options'][0]) && $xab['options'][0] > 0) ? $xe9 = $xab['options'][0] : $xe9 = 0;  $xb2 = $this->checkReference($xab['reference'], $product);  $x2e = $xff(',', $xb2->getEan());  $x2e = "<g:ean><![CDATA[" . $x2e[$xe9] . "]]></g:ean>";  break;  case "{SC:IMAGES}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xc1 = $xb2->getSmall_image();  $xc3 = array($xb2->getImage(), $xb2->getThumbnail());  $xc4 = '';  $xac = 0;  if ($xb2->getSmall_image() && $xb2->getSmall_image() != 'no_selection') { $xc2 = $xb2->getSmall_image();  $x2e = $xc2;  $xc4.="<g:image_link><![CDATA[" . $x2e . "]]></g:image_link>
";  $xac++;  } $xc5 = 0;  while (isset($x7e[$xb2->getId()]['src'][$xc5]) && $xac < 10) { if ($x7e[$xb2->getId()]['src'][$xc5] != $xc1) { if ($x10b($x7e[$xb2->getId()]['src'][$xc5], $xc3) || $x7e[$xb2->getId()]['disabled'][$xc5] != 1) { $xc2 = $x7e[$xb2->getId()]['src'][$xc5];  $x2e = $xc2;  $xc4.="<g:additional_image_link><![CDATA[" . $x2e . "]]></g:additional_image_link>
";  $xac++;  } } $xc5++;  } $x2e = $xc4;  break;  case "{SC:DESCRIPTION}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xea = $xb2->getDescription() . $xb2->getShortDescription();  $xeb = "|<iframe(.*)</iframe>|U";  $xf9($xeb, $xea, $xec);  if ($xec) { $xea = $xb2->getAttributeText('manufacturer') . " " . $xb2->getName() . " - Part number: " . $xb2->getSku() . " - Category : {categories,[1],[1],[1]}";  } else { if ($x10b("strip_tags", $xab['options'])) { $xea = $x119('!\<br /\>!isU', " ", $xea);  $xea = $x119('!\<br/\>!isU', " ", $xea);  $xea = $x119('!\<br>!isU', " ", $xea);  $xea = $x11a($xea);  } if ($x10b("html_entity_decode", $xab['options'])) { $xea = $x11b($xea, ENT_QUOTES, 'UTF-8');  } if ($x10b("htmlentities", $xab['options'])) { $xea = $x11c(($xea));  } if ($xf5($xea) > 900) { $xea = $x100($xea, 0, 900 - 3);  $xed = $x11d($xea, " ");  $xea = $x100($xea, 0, $xed) . '...';  } } if ($xea == null) $xea = $xb2->getAttributeText('manufacturer') . " " . $xb2->getName() . " - Part number: " . $xb2->getSku() . " - Category : {categories,[1],[1],[1]}";  $xea = $x119('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xea);  $xea = $xf7(' ', '', $xea);  $x2e = "<description><![CDATA[" . $xea . "]]></description>";  break;  case "{SC:URL}" : (isset($xab['options'][0])) ? $xee = $xab['options'][0] : $xee = "";  (isset($xab['options'][1])) ? $xef = $xab['options'][1] : $xef = "";  $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getRequest_path()) { $x2e = "<link><![CDATA[" . $x3d . $xef . $xb2->getRequest_path() . $xee . "]]></link>";  } else { $x2e = "<link><![CDATA[" . $xb2->getProductUrl() . "]]></link>";  } break;  case "{SC:CONDITION}" : $xb2 = $this->checkReference($xab['reference'], $product);  ($x11e($xb2->getName(), "refurbished")) ? $x9d = 'refurbished' : $x9d = 'new';  $x2e = "<g:condition><![CDATA[" . $x9d . "]]></g:condition>";  break;  case "{sc:condition}" : $xb2 = $this->checkReference($xab['reference'], $product);  ($x11e($xb2->getName(), "refurbished")) ? $x9d = 'refurbished' : $x9d = 'new';  $x2e = $x9d;  break;  default : $xb2 = $this->checkReference($xab['reference'], $product); 
 if ($x10b($xab['name'], $x62)) { if ($x10b($x63[$xab['name']], array('select', 'multiselect'))) { eval('$xf1 =($xb2->' . $xab['methodName'] . ");");  $xf0 = $xff(',', $xf1);  if ($xfd($xf0) > 1) { $x2e = array();  foreach ($xf0 as $xa3) { if (isset($x68[$xa3][$x35])) $x2e[] = $x68[$xa3][$x35];  else { if (isset($x68[$xa3][0])) $x2e[] = $x68[$xa3][0];  } } } else { if (isset($x68[$xf0[0]][$x35])) { $x2e = $x68[$xf0[0]][$x35];  } else { if (isset($x68[$xf0[0]][0])) $x2e = $x68[$xf0[0]][0];  } } } else { eval('$x2e =($xb2->' . $xab['methodName'] . ");");  } } if ($x10b(@$x60[$xab['name']], $x60)) { $x2e = $x60[$xab['name']];  } $x2e = $x119('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x2e);  $x2e = $xf7(' ', '', $x2e);  $xf2 = 0;  if ($xfd($xab['options']) > 0) { while (isset($xab['options'][$xf2])) { switch ($xab['options'][$xf2]) { case "substr" : if (isset($xab['options'][$xf2 + 1]) && $xf5($x2e) > $xab['options'][$xf2 + 1]) { $x2e = $x100($x2e, 0, $xab['options'][$xf2 + 1] - 3);  $xed = $x11d($x2e, " ");  $x2e = $x100($x2e, 0, $xed) . $xab['options'][$xf2 + 2];  } $xf2++;  $xf2++;  break;  case "htmlentities" : $x2e = $x11c(($x2e));  break;  case "strip_tags" : $xf3 = " ";  $x2e = $x119('!\<br /\>!isU', $xf3, $x2e);  $x2e = $x119('!\<br/\>!isU', $xf3, $x2e);  $x2e = $x119('!\<br>!isU', $xf3, $x2e);  $x2e = $x11a($x2e);  break;  case "implode" : $x2e = ($x106($x2e)) ? $xf6($xab['options'][$xf2 + 1], $x2e) : $x2e;  $xf2++;  break;  case "float" : $x2e = $xfc($x2e, $xab['options'][$xf2 + 1], '.', '');  $xf2++;  break;  case "html_entity_decode" : $x2e = $x11b($x2e, ENT_QUOTES, 'UTF-8');  break;  case "inline": $x2e = $x119('/(
|
|
|
|	)/s', '', $x2e);  break;  case "strtolower": $x2e = $x11f($x2e, "UTF8");  break;  case "strtoupper": $x2e = $x120($x2e, "UTF8");  break;  case "cleaner": $x2e = $x119('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x2e);  $x2e = $xf7(' ', '', $x2e);  break;  default : if ($x11e($xab['options'][$xf2], "%s")) { $xad = $xf7("%s", '$x2e', $xab['options'][$xf2]);  eval('$x2e=' . $xad . '; ');  } else eval('$x2e=' . $xab['options'][$xf2] . '($x2e); ');  break;  } $xf2++;  } } break;  } $x2e = $xf7(array("<", ">", '"', '\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $x2e);  if ($x106($x2e)) $x2e = $xf6(",", $x2e);  if ($x2e != "") $x2c = $xf7($xab['fullpattern'], $x2e, $x2c);  } foreach ($x52 as $xf4) { $x2c = $xf7($xf4['fullpattern'], "", $x2c);  } $x2c = $this->x124($x2c, $product);  $x2c = $this->x128($x2c);  $x2c = $this->x127($x2c);  $x2c = $xf7(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\'), $x2c);  if (!empty($x2c)) { $x4f.=("<item>");  $x4f.="
" . $x2c . "
";  $x4f.=("</item>" . "
");  $x9a++;  $this->_inc = $xa9;  $xa9++;  } if ($this->_display) { $x50.=$x4f;  $x4f = '';  } else { if ($x9a % Mage::getStoreConfig("simplegoogleshopping/system/buffer") == 0) { $x20->streamWrite($x4f);  unset($x4f);  $x4f = '';  Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . $xa9 . "/" . $this->_counter . " items added", null, $this->getSimplegoogleshoppingFilename() . '.log');  } } if ($this->_limit && $xa9 > $this->_limit) { break 2;  } } } $x4f.=('</channel>' . "
");  $x4f.=('</rss>');  if (!$this->_display) { $x20->streamWrite($x4f);  } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($xa9 - 1) . "/" . $this->_counter . " items added", null, $this->getSimplegoogleshoppingFilename() . '.log');  unset($x88);  $x50.=$x4f;  if ($this->_display && !$this->_debug) { (!Mage::app()->getRequest()->getParam("real_time_preview")) ? $xea = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x50) . "</textarea>" : $xea = $x50;  if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
     	 <html> 
    		<head>
 	 <title>" . $this->getSimplegoogleshoppingFilename() . "</title>
              <link rel='stylesheet' href='" . $x3c . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
                <link rel='stylesheet' href='" . $x3c . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>
        
              <script type='text/javascript' src='" . $x3c . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
              <script type='text/javascript' src='" . $x3c . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script>
     

        
                
               </head>
               <body>
                " . $xea . "
              <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 $xea;  } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>";  $xea = "<pre>" . $x121($x50) . "</pre>";  return $xea;  } else { Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> File closed", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x20->streamClose();  $this->setSimplegoogleshopping_time(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s'));  $this->save();  } Mage::app()->setCurrentStore(0);  return $this;  } } ; 

Did this file decode correctly?

Original Code

<?php error_reporting(E_ERROR);
 class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abstract { public $_indexPhp = '';  public $x18 = 0;  protected $_filePath;  public $_limit = false;  public $_display = false;  public $_rates = false;  public $_sqlSize = 1500;  public function x122($x19, $x1a) { $xf5="\x73t\x72\154\x65\x6e";  $xf6="\x69\x6d\160\x6c\157de";  $xf7="\163tr\x5f\x72e\x70l\141\x63e";  $xf8="p\x72\x65g\x5fm\x61\x74c\150_\x61\154l";  $xf9="\x70r\x65g\137\x6d\141\x74\x63\150";  $xfa="\162tr\151\155";  $xfb="i\163\x5fn\165\x6c\x6c";  $xfc="\x6e\x75\x6d\x62\145\x72\x5f\x66o\162\x6d\x61\x74";  $xfd="\143\157\165n\164";  $xfe="\x69\163\137n\x75m\145\162i\143";  $xff="e\x78\160\x6c\x6fd\x65";  $x100="su\142str";  $x101="\x74\x72im";  $x102="p\162e\x67\137\x73p\x6c\x69\164";  $x103="ut\146\70\137\144\145\x63\157\144\x65";  $x104="i\163\x5f\x73\164\x72\x69\156\x67";  $x105="j\x73o\x6e_\x64e\x63od\145";  $x106="\151s\x5fa\x72\162\x61\171";  $x107="\x75c\167\x6f\x72\144\163";  $x108="a\162\162\x61y\137\160us\150";  $x109="\x70\162\151\x6e\164_\162";  $x10a="\166\x65\162si\157\x6e\x5f\143\157\x6dp\x61\162\145";  $x10b="i\x6e_\141\162\x72\141\171";  $x10c="s\160r\x69n\164\x66";  $x10d="\x61r\162\141\171\x5f\x70\157\x70";  $x10e="\143\x65\x69\x6c";  $x10f="\x69ni\x5f\x67\145t";  $x110="\163e\x74_\164ime\137\x6c\x69m\x69\164";  $x111="\162\157\165\156d";  $x112="\163\x74\x72_\160\x61d";  $x113="\x61\x62s";  $x114="fl\157\157\x72";  $x115="\165\x73\x6f\162t";  $x116="\141\162r\141\171\x5fs\x68i\146t";  $x117="\141\162r\x61y\x5f\x72\x65\166er\163\145";  $x118="\141\162r\141y\x5f\166\x61l\x75e\163";  $x119="\160\162\145\x67_\162\145\160\154a\143\145";  $x11a="\x73\164\x72\x69\160\137\164a\x67\163";  $x11b="\150tml\x5f\145\x6et\x69\164\x79_d\x65\x63\157\144\145";  $x11c="\150t\x6d\154\163\x70\145c\151\x61lc\150\141r\x73";  $x11d="\163tr\162p\x6f\x73";  $x11e="str\x69s\164r";  $x11f="\155b\137\163\x74\x72to\x6c\157we\x72";  $x120="\155\142_\163tr\164\x6f\165\160\x70\145\162";  $x121="\x68\164\155l\x65n\164i\164i\x65\x73";  if ($xf5($x19) == $xf5($x1a)) { return 0;  } return ($xf5($x19) < $xf5($x1a)) ? 1 : -1;  } public function x122Array($x19, $x1a) { $xf5="s\x74r\154e\x6e";  $xf6="\x69\x6dp\154\x6fd\x65";  $xf7="\x73\x74r\137r\x65p\x6c\141\143\145";  $xf8="\160\x72\145\x67\x5f\155\141t\143\x68\137\141\x6c\154";  $xf9="p\x72\x65g\x5f\155\x61\x74\x63h";  $xfa="\x72\164\162\x69\x6d";  $xfb="\x69s_\x6e\165l\x6c";  $xfc="\x6e\x75\x6db\145r\137f\x6f\x72m\141\x74";  $xfd="co\165\x6e\x74";  $xfe="\x69\x73_\156\165m\145\162ic";  $xff="\x65\170\x70\x6co\x64\x65";  $x100="\x73\x75\142s\164r";  $x101="trim";  $x102="p\162e\x67\137\x73plit";  $x103="\165\x74\146\70\x5f\144\x65\143\157de";  $x104="\151\x73_\x73t\x72ing";  $x105="j\163o\x6e\137d\145\143o\144\145";  $x106="\151\x73\137\x61\162r\x61y";  $x107="\165c\167\x6fr\144\163";  $x108="a\162\x72\141\171\x5f\x70\x75\163\150";  $x109="\x70\x72\x69\x6e\164\137r";  $x10a="v\x65r\x73\x69o\x6e_co\x6dp\x61\162e";  $x10b="\151n\137\x61r\162\141\x79";  $x10c="\x73p\x72\151nt\x66";  $x10d="\141r\162\x61y\137\x70o\160";  $x10e="\x63e\151\x6c";  $x10f="i\x6ei\137g\x65\164";  $x110="set_t\151\x6d\x65\137\x6c\151mit";  $x111="\x72o\165\156d";  $x112="s\164\162\137p\x61\144";  $x113="\141\142\163";  $x114="\146\x6c\x6f\x6fr";  $x115="\x75\x73\157\x72\164";  $x116="\x61\162ra\x79\137\x73\x68i\146t";  $x117="a\x72\x72\x61y\x5fr\145v\x65rs\145";  $x118="\x61r\162\141\171_v\141\x6c\165\145\163";  $x119="\x70\162\145\x67\x5f\x72e\160\x6c\x61\x63\145";  $x11a="\x73\164\162\151\160\137ta\x67\x73";  $x11b="\x68tml\x5f\x65\156t\151t\x79_d\145cod\x65";  $x11c="\x68\x74\155\x6cs\x70\145\x63\151\141\x6cch\x61\162s";  $x11d="\x73tr\162p\x6f\163";  $x11e="st\x72\151st\x72";  $x11f="mb\x5f\163\x74r\164o\x6c\x6f\x77\x65r";  $x120="m\x62\137\163\x74\162\x74o\x75\160\x70\x65\x72";  $x121="\150\164\x6d\154\145n\164\151\x74\151\145s";  $xf5="\x73t\x72\154\x65\x6e";
 $xf6="\x69\x6d\160\x6c\157de";  $xf7="\163tr\x5f\x72e\x70l\141\x63e";  $xf8="p\x72\x65g\x5fm\x61\x74c\150_\x61\154l";  $xf9="\x70r\x65g\137\x6d\141\x74\x63\150";  $xfa="\162tr\151\155";  $xfb="i\163\x5fn\165\x6c\x6c";  $xfc="\x6e\x75\x6d\x62\145\x72\x5f\x66o\162\x6d\x61\x74";  $xfd="\143\157\165n\164";  $xfe="\x69\163\137n\x75m\145\162i\143";  $xff="e\x78\160\x6c\x6fd\x65";  $x100="su\142str";  $x101="\x74\x72im";  $x102="p\162e\x67\137\x73p\x6c\x69\164";  $x103="ut\146\70\137\144\145\x63\157\144\x65";  $x104="i\163\x5f\x73\164\x72\x69\156\x67";  $x105="j\x73o\x6e_\x64e\x63od\145";  $x106="\151s\x5fa\x72\162\x61\171";  $x107="\x75c\167\x6f\x72\144\163";  $x108="a\162\162\x61y\137\160us\150";  $x109="\x70\162\151\x6e\164_\162";  $x10a="\166\x65\162si\157\x6e\x5f\143\157\x6dp\x61\162\145";  $x10b="i\x6e_\141\162\x72\141\171";  $x10c="s\160r\x69n\164\x66";  $x10d="\x61r\162\141\171\x5f\x70\157\x70";  $x10e="\143\x65\x69\x6c";  $x10f="\x69ni\x5f\x67\145t";  $x110="\163e\x74_\164ime\137\x6c\x69m\x69\164";  $x111="\162\157\165\156d";  $x112="\163\x74\x72_\160\x61d";  $x113="\x61\x62s";  $x114="fl\157\157\x72";  $x115="\165\x73\x6f\162t";  $x116="\141\162r\141\171\x5fs\x68i\146t";  $x117="\141\162r\x61y\x5f\x72\x65\166er\163\145";  $x118="\141\162r\141y\x5f\166\x61l\x75e\163";  $x119="\160\162\145\x67_\162\145\160\154a\143\145";  $x11a="\x73\164\x72\x69\160\137\164a\x67\163";  $x11b="\150tml\x5f\145\x6et\x69\164\x79_d\x65\x63\157\144\145";  $x11c="\150t\x6d\154\163\x70\145c\151\x61lc\150\141r\x73";  $x11d="\163tr\162p\x6f\x73";  $x11e="str\x69s\164r";  $x11f="\155b\137\163\x74\x72to\x6c\157we\x72";  $x120="\155\142_\163tr\164\x6f\165\160\x70\145\162";  $x121="\x68\164\155l\x65n\164i\164i\x65\x73";  if ($xf5($xf6('', $x19)) == $xf5($xf6('', $x1a))) { return 0;  } return ($xf5($xf6('', $x19)) < $xf5($xf6('', $x1a))) ? -1 : 1;  } public function x124($myPattern, $product, $x1b = true) { $xf5="\x73\164r\154en";  $xf6="\151m\160l\x6fd\x65";  $xf7="\x73tr\137r\x65p\x6c\x61\143\145";  $xf8="pr\x65\x67\137m\x61t\143\x68\x5f\x61\x6c\154";  $xf9="\x70\162\145\x67\x5fm\141t\143h";  $xfa="rtrim";  $xfb="\151\163_\x6eu\x6cl";  $xfc="\156\165\155b\145\162\x5ff\x6f\x72\x6da\164";  $xfd="\143\157u\x6e\x74";  $xfe="i\x73_num\x65\162\151\143";  $xff="\x65x\x70l\x6f\144\145";  $x100="s\x75b\163\164r";  $x101="\164\x72\x69m";  $x102="\160\x72\x65g\x5f\x73pl\x69\164";  $x103="\x75\164\x66\70_\144ec\157d\145";  $x104="\x69\163_st\x72\151\156\x67";  $x105="j\163on_de\x63\157d\x65";  $x106="i\x73_ar\162ay";  $x107="u\143\167o\x72\x64\163";  $x108="\x61\162r\141\171_\x70\165\163h";  $x109="\x70\162\x69\156\164\x5f\162";  $x10a="\166e\162\163\x69\x6f\x6e\x5fc\157mpa\x72e";  $x10b="\x69\x6e\137ar\162\x61\171";  $x10c="\163\160ri\x6e\x74f";  $x10d="\141rr\x61\x79\x5f\x70\x6f\x70";  $x10e="\x63eil";  $x10f="i\x6e\151_\147\x65t";  $x110="\x73e\x74_\x74\151\155\x65\137li\x6d\151t";  $x111="\x72\157u\156d";  $x112="\x73\164\162_\160\141\x64";  $x113="\x61\x62\163";  $x114="\x66\x6coo\x72";  $x115="\165\x73\157\x72\x74";  $x116="\x61\x72\x72\x61\171_\163\x68i\x66t";  $x117="ar\162a\x79_r\x65\x76\145\x72\x73\x65";  $x118="a\x72ray\x5f\x76a\x6c\x75\x65\163";  $x119="p\162\145\147_\162\x65\160lac\145";  $x11a="st\162\x69\x70\137\164\x61g\163";  $x11b="\x68\164\155\x6c\137e\x6e\164\151\x74\x79_\144e\x63o\144e";  $x11c="h\x74\155\154\x73pe\143\151\141\154\x63\x68\141rs";  $x11d="s\x74\162r\160o\x73";  $x11e="st\162i\x73\164\x72";  $x11f="\x6d\x62\137\163tr\164o\x6co\167er";  $x120="\155\142_\x73\x74rt\x6f\165p\x70\x65\162";  $x121="\150tm\x6c\x65n\x74i\164ies";  $myPattern = $xf7('<?', (''), $myPattern);  $myPattern = $xf7('?>', (''), $myPattern);  $x1c = ('/((.[^]+))/s');  $xf8($x1c, $myPattern, $x1d);  if (isset($x1d[1])) { foreach ($x1d[1] as $x1e => $x1f) { if ($x1b == 1) { if (@eval($x1d[2][$x1e] . '; ')) $myPattern = $xf7($x1f, eval($x1d[2][$x1e] . '; '), $myPattern);  else $myPattern = $xf7($x1f, '', $myPattern);  } else { if (@eval($this->unescapeStr($x1d[2][$x1e] . ';
'))) $myPattern = $xf7($x1f, $this->escapeStr(eval($this->unescapeStr($x1d[2][$x1e]) . '; ')), $myPattern);  else $myPattern = $xf7($x1f, '', $myPattern);  } } } return $myPattern;  } protected function _construct() { $xf5="st\162\x6ce\156";  $xf6="\151\x6d\x70l\x6fde";  $xf7="\x73\164\162\137\162\x65p\154a\x63e";  $xf8="\160\x72eg\x5f\155at\143\x68\x5f\x61l\154";  $xf9="\x70\x72\145\147\x5f\x6da\164\143\x68";  $xfa="\x72t\x72i\155";  $xfb="\x69\163\x5f\x6e\165l\154";  $xfc="nu\155\142\x65\162\137f\x6frm\141\x74";  $xfd="cou\156\164";  $xfe="\x69\163\x5f\x6e\x75\155\x65r\151\x63";  $xff="\x65\170p\x6c\x6f\x64e";  $x100="\x73\165\142\x73t\x72";  $x101="\x74\x72\151m";  $x102="p\162\145\x67\137s\x70\154\x69t";  $x103="\165\x74\x66\70_\144ec\157de";  $x104="\x69\x73\137\163\x74\x72i\x6e\147";  $x105="\152\x73\x6fn_\144\145co\x64e";  $x106="\151s_ar\x72\141\171";  $x107="u\143\167\x6f\162ds";  $x108="a\x72r\x61\171\x5f\160u\x73\x68";  $x109="\160\162i\x6et_r";  $x10a="\166e\162\x73\x69on_\143\x6f\x6dpare";  $x10b="\x69\156_ar\162ay";  $x10c="\163\x70\162\151\156\x74\x66";  $x10d="\141r\x72a\x79\x5fpo\x70";  $x10e="\x63e\x69\x6c";  $x10f="i\x6ei_get";  $x110="\163\x65\164\x5ftim\145\137\x6cimit";  $x111="r\x6fund";  $x112="\x73\x74r\x5f\x70\141\144";  $x113="\x61\142\x73";  $x114="\x66\x6c\157\157r";  $x115="u\x73ort";  $x116="\x61r\162\x61y\x5fs\x68\x69ft";  $x117="\x61r\162\141y\x5fr\x65\166\x65\x72se";  $x118="\141rra\171\137\166a\154ue\163";  $x119="\x70r\145\147\137\x72e\160l\x61\143\x65";  $x11a="\x73\164r\x69p_t\x61\147\163";  $x11b="\x68\x74m\154_\145\156tit\171\x5f\x64\x65\143o\144\145";  $x11c="\x68t\155\x6c\163\160\x65\x63\x69a\154\143\150\141r\163";  $x11d="\x73\164r\162\x70\157\163";  $x11e="st\162i\x73\164\x72";  $x11f="m\142\x5f\x73\164\162t\157\154o\167\x65\162";  $x120="\x6d\142\x5f\163\164r\x74\x6fup\160\145\162";  $x121="\x68\x74m\154\145\156tit\x69\x65\163";  $this->_sqlSize = Mage::getStoreConfig("si\155\160\x6c\x65go\157\x67\154e\x73\150\157\160\160\151ng/\163y\163\x74\x65m\x2fs\161\x6c\163\151z\x65");  $this->_init('simplegoogleshopping/simplegoogleshopping');  } protected function _beforeSave() { $xf5="st\162\154e\x6e";  $xf6="\151\155\x70lod\x65";  $xf7="\x73t\x72_\x72e\x70\154\141\143\x65";  $xf8="\x70\162e\x67_\x6datc\x68\x5f\141\x6c\154";  $xf9="p\162\145g\137m\x61\x74c\x68";  $xfa="\162\164\x72\x69\x6d";  $xfb="i\x73\x5f\156u\154\x6c";  $xfc="n\x75mb\145\x72\137fo\x72\x6d\x61\x74";  $xfd="co\165\x6et";  $xfe="\151\163\x5fn\165\155er\151\x63";  $xff="\145\x78\x70\154\x6f\x64\145";  $x100="\163\x75b\x73\x74\x72";  $x101="\164\x72\x69\x6d";  $x102="\x70\162\x65g\x5fs\x70l\x69\164";  $x103="\165t\x66\70\137\144\x65c\x6f\144\x65";  $x104="\151s\137\163\x74\162\151ng";  $x105="\152\x73\x6f\x6e\x5fd\x65\x63\x6f\x64\145";  $x106="i\163\137a\x72\x72\x61\x79";  $x107="\x75c\167or\x64\x73";  $x108="ar\162a\171\x5fp\165\163\x68";  $x109="\160\162\x69nt\137\162";  $x10a="\166e\162\163ion\x5f\143\157\x6d\x70\141\x72\x65";  $x10b="\x69n_a\x72\162\141\171";  $x10c="\163p\x72\151\156t\x66";  $x10d="\x61\x72r\141y_\160op";  $x10e="c\145il";  $x10f="i\x6e\x69\x5f\x67et";  $x110="\163\145\164_t\x69\x6d\145_\x6ci\x6d\x69\164";  $x111="r\x6f\x75\x6e\x64";  $x112="\x73t\162_p\x61\x64";  $x113="a\142\x73";  $x114="f\154o\x6fr";  $x115="\165\x73\x6frt";  $x116="\x61r\162\x61\x79\x5fs\x68\151\x66\x74";  $x117="\141rr\141y_\162e\166ers\145";  $x118="ar\x72\x61y\x5f\x76\x61l\165\x65\x73";  $x119="p\x72\x65\x67\x5f\162\145\x70\x6c\x61\x63\x65";  $x11a="stri\160\137\164\141\147s";  $x11b="h\164ml\137e\156\164i\x74y\x5f\x64\x65co\x64\x65";  $x11c="\x68\164\x6dl\x73pec\151\x61\154ch\141\x72s";  $x11d="\163trr\160\157\x73";  $x11e="\x73t\162\151\163\164\162";  $x11f="\155\142\x5fs\164\x72t\x6f\x6c\x6f\167e\x72";  $x120="\155\142\137\163t\x72\x74o\165\160pe\162";  $x121="\x68\x74mle\156\x74i\x74i\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 (!$xf9('#^[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 (!$xf9('#\.xml$#', $this->getSimplegoogleshoppingFilename())) { $this->setSimplegoogleshoppingFilename($this->getSimplegoogleshoppingFilename() . '.xml');  } $this->setSimplegoogleshoppingPath($xfa($xf7($xf7('\\', '/', Mage::getBaseDir()), '', $x21), '/') . '/');  return parent::_beforeSave();  } protected function getPath() { $xf5="\x73\164\x72\154\145\156";  $xf6="\x69mp\154\157\x64\145";  $xf7="\x73t\x72\x5f\162\145\160l\141\x63\145";  $xf8="p\162\145g\x5f\155a\164\x63\x68_\141\154l";  $xf9="\x70\x72\x65g\137m\x61\x74c\x68";  $xfa="r\x74r\151\155";  $xfb="i\x73\x5f\156\165\x6cl";  $xfc="\x6e\x75\x6d\x62\x65r\137\146orm\x61\164";  $xfd="\x63ou\x6e\164";  $xfe="\x69s_n\x75\x6de\162\151\x63";  $xff="ex\x70\x6co\x64\x65";  $x100="s\x75b\163tr";  $x101="\x74r\x69\x6d";  $x102="p\x72\145\x67\x5f\x73p\x6c\151\x74";  $x103="utf\70\x5fd\145\x63o\x64\x65";  $x104="\x69\x73\x5f\x73\164\x72in\x67";  $x105="\x6a\x73o\x6e\137\x64\x65\143\x6f\x64\x65";  $x106="\x69\x73\x5fa\x72r\141\171";  $x107="u\143w\x6frd\x73";  $x108="\141\x72\x72\x61\x79\x5f\x70u\x73\150";  $x109="\x70\162\x69\x6et\137\162";  $x10a="\x76\145\162\163\151on\x5f\143\157\155\x70\141\162e";  $x10b="\151\156_ar\x72a\x79";  $x10c="sp\162\x69\x6e\164\146";  $x10d="a\162r\x61\x79\137\x70o\160";  $x10e="\143\145\x69l";  $x10f="\x69\156i_\x67e\164";  $x110="se\x74\x5ft\x69\155e\x5f\x6c\151mi\x74";  $x111="\x72ou\156d";  $x112="\163t\x72\137p\x61\x64";  $x113="\141b\163";  $x114="\x66\154\157\x6f\162";  $x115="\165sort";  $x116="a\x72\x72ay\137\x73\150\x69\146\x74";  $x117="\141\162\162a\171_r\x65v\x65\162\x73\145";  $x118="\141r\x72\141\171_\x76\141\x6c\165\145s";  $x119="pr\145g\137r\145p\154\141\143\x65";  $x11a="\x73\164r\151p\x5f\x74\141\x67\x73";  $x11b="\x68t\x6d\154\137\x65nt\x69ty_d\x65\143\x6f\x64e";  $x11c="\150\164\x6dls\x70\145c\151\141\154\143h\141\x72\x73";  $x11d="st\162rp\157\163";  $x11e="\163\164\x72\151s\x74r";  $x11f="mb\x5f\x73\164\x72\x74ol\157\167\x65\x72";  $x120="\155b\137s\164\x72\x74\x6fupp\145\x72";  $x121="ht\x6d\x6c\145\x6eti\x74\x69e\163";  if ($xfb($this->_filePath)) { $this->_filePath = $xf7('//', '/', Mage::getBaseDir() . $this->getSimplegoogleshoppingPath());  } return $this->_filePath;  } public function getPreparedFilename() { $xf5="\x73t\x72l\x65\x6e";  $xf6="\151mp\x6c\157d\x65";  $xf7="str\137\x72\x65\x70\x6c\x61\x63e";  $xf8="\x70\x72\145\147\137\155a\164\x63h\137\x61\x6cl";  $xf9="\x70re\147_m\141\164ch";  $xfa="rt\x72i\x6d";  $xfb="\151\163\x5f\156\x75ll";  $xfc="\156\165\155b\145r_\146o\x72\155\141\164";  $xfd="\x63\157\x75n\164";  $xfe="i\163\137\x6e\165\155e\x72i\143";  $xff="\x65\170\160lod\145";  $x100="\163u\142st\162";  $x101="\x74\x72\x69\155";  $x102="p\x72\145\x67\x5f\x73p\154\151\x74";  $x103="\x75\164f\70\137d\145c\157\144e";  $x104="\x69s_\163t\162\x69ng";  $x105="\x6a\163\157\156\x5fd\145\x63\157de";  $x106="is\137a\162\x72\x61\171";  $x107="u\143\x77\x6f\162ds";  $x108="\x61\162r\x61\x79_\160u\x73h";  $x109="pri\x6e\164\137r";  $x10a="\166ers\x69o\x6e\x5f\143\157\x6dp\141re";  $x10b="i\156\x5f\x61\162ray";  $x10c="\163\160\162\x69n\x74f";  $x10d="a\162r\141\171\x5f\x70o\x70";  $x10e="c\x65\151\154";  $x10f="\151\156\151\137\x67\145\164";  $x110="\163\x65\x74\137t\151\x6de\137\x6ci\x6dit";  $x111="\162\x6fun\x64";  $x112="s\164\x72\137\x70ad";  $x113="a\x62s";  $x114="\146\154\157o\162";  $x115="u\163\x6fr\164";  $x116="\141\x72\x72\141\x79_\x73\150if\164";  $x117="a\162\162\x61y\x5fr\145\166e\x72s\x65";  $x118="a\x72r\x61\171_v\x61\x6cu\145\x73";  $x119="pr\145\147\137r\x65\x70\154\141ce";  $x11a="\x73\164\x72i\160_\x74\x61\x67s";  $x11b="\150tm\x6c_e\x6e\x74ity\137\144\145\x63od\145";  $x11c="\150\164\x6d\154s\160\145\143\x69al\143h\x61\x72\163";  $x11d="\x73t\162\162\x70\157\x73";  $x11e="\x73tri\x73t\162";  $x11f="m\x62\x5f\x73t\x72\164\157\154o\x77\x65\x72";  $x120="m\142\137\163\164\162to\165\160\x70e\x72";  $x121="\x68\164\155\x6c\x65\x6e\x74\x69\x74\x69\x65\163";  return $this->getPath() . $this->getSimplegoogleshoppingFilename();  } public function x125($x22, $x23) { $xf5="\163t\x72le\156";  $xf6="\151\x6dplo\144e";  $xf7="st\x72\x5fr\145\x70\x6ca\143\x65";
 $xf8="p\162\x65g_\155\141\x74\x63h_\x61\x6c\154";  $xf9="\x70\x72\145\x67\137\x6da\164\143h";  $xfa="\x72\x74\x72\x69m";  $xfb="\151\163_\x6eull";  $xfc="\x6e\165\x6d\142\x65\x72\137\x66\157r\155at";  $xfd="c\x6f\165\156t";  $xfe="\151\163_\156um\x65\162i\x63";  $xff="\x65\170\x70\154o\x64e";  $x100="\x73\x75\142\x73t\x72";  $x101="trim";  $x102="\x70\162\x65g_\163\160\x6c\151\164";  $x103="\165t\x66\70\137dec\157de";  $x104="\151s\x5fs\x74r\x69ng";  $x105="\x6a\163o\156\137\144\x65\x63\x6f\144\145";  $x106="\151s\137a\162\162\141\x79";  $x107="u\143\x77\157\x72\144\163";  $x108="\x61\162\162a\x79_\160u\x73h";  $x109="\160\162\x69\156t_\x72";  $x10a="v\x65\x72\163\151on\137\x63\x6fm\x70\141\162\x65";  $x10b="in\x5f\x61r\162\x61y";  $x10c="\163\160\x72\151\x6e\x74\146";  $x10d="\141\x72\162ay\x5f\160\157\160";  $x10e="\143e\151l";  $x10f="\x69n\x69\x5fg\x65\164";  $x110="\163e\164\137\x74\x69me\x5fl\x69m\x69t";  $x111="\162oun\x64";  $x112="\163\164r\x5f\x70\x61\x64";  $x113="\x61\142\x73";  $x114="\146lo\157\x72";  $x115="\x75s\x6frt";  $x116="\141rr\x61y_s\150i\146\164";  $x117="\x61\x72\162\x61\171_\162e\x76\145\x72s\x65";  $x118="a\x72\x72\141\171\x5f\x76al\x75\x65\163";  $x119="pre\147\137\162ep\x6c\x61\x63e";  $x11a="\163tri\x70_\x74ag\x73";  $x11b="\x68\x74\155\154\x5f\x65\156\164i\164\x79_\x64e\x63o\144\145";  $x11c="h\164\x6d\154\x73\x70\x65\x63\x69\x61l\x63\150\x61\162\x73";  $x11d="\163\164\x72\x72p\x6f\163";  $x11e="\x73t\162is\164\x72";  $x11f="\155\142_\163trto\x6co\x77\x65\x72";  $x120="m\x62\137st\x72\x74ou\x70\160\x65r";  $x121="\x68\x74ml\x65\x6e\x74\x69ti\x65\163";  $x24 = $this->_currencies;  if (isset($x24[$x23])) return $x22 * $x24[$x23];  else { return $x22;  } } public function x126($x22, $x25, $x26, $x27 = false) { $xf5="s\x74\162\x6c\145\156";  $xf6="i\155pl\157de";  $xf7="\163tr\x5fre\x70l\141c\x65";  $xf8="\160\x72\145\x67_\155atc\x68_\x61ll";  $xf9="p\162\145\x67\137\155a\164\143h";  $xfa="\x72\x74r\x69m";  $xfb="i\163\x5f\x6eu\154l";  $xfc="\156\x75m\x62\145\162\x5f\x66\157rm\x61\x74";  $xfd="\143\157un\x74";  $xfe="\151\x73\x5f\156\x75m\145r\x69\143";  $xff="e\170\160\x6co\144\x65";  $x100="\x73\x75\142\163\164\x72";  $x101="\x74\162\151\155";  $x102="\x70\x72\x65\x67_\163\160\154\151\164";  $x103="\x75\164\146\70\137\x64\x65\x63\x6fd\145";  $x104="\151\x73\137s\164\x72\x69ng";  $x105="\152\163\x6fn_\x64e\x63o\x64e";  $x106="\x69\x73\x5f\141r\x72a\x79";  $x107="\165\143wor\144s";  $x108="\141\162r\x61\171\137\160\165\x73\150";  $x109="p\x72\151\156\164\x5f\162";  $x10a="v\145\x72\163ion\x5f\143\157\x6d\x70ar\145";  $x10b="\151n_a\x72\162\141\171";  $x10c="s\x70\162\151\156t\146";  $x10d="\x61\162r\141\x79\137\x70op";  $x10e="\143\145il";  $x10f="\151n\151_\147\x65t";  $x110="\163\145\x74_\x74\x69\155\145_\154\x69mi\x74";  $x111="\x72\x6fu\156d";  $x112="s\x74\162\137pa\144";  $x113="\141\142s";  $x114="\146\154\157o\162";  $x115="\165\x73ort";  $x116="\141\x72\x72\141\x79\137s\x68\x69\x66\x74";  $x117="a\x72\162\141\x79\x5f\x72\145ve\x72\x73\145";  $x118="arr\x61\171_\x76al\x75\145\x73";  $x119="\160\x72\x65g\x5f\162e\160l\x61c\x65";  $x11a="\163\164\x72\151\160\x5ft\141\x67s";  $x11b="h\164\155l\137\145nt\151\164y_\144\x65\x63\x6f\144\x65";  $x11c="\150\x74\x6dl\163\x70\x65\x63\151a\154\143\150\x61\x72\x73";  $x11d="s\164\162r\160o\163";  $x11e="\x73\164r\x69str";  $x11f="m\x62_\x73\x74\162\x74\x6f\154o\x77\x65\162";  $x120="m\142\137s\164\x72\x74\x6f\165\x70per";  $x121="\150t\155\154\145\x6et\151\x74i\x65\163";  $x28 = $this->_rates;  $x22 = $xfc($x22, 2, '.', '');  if ($x27 === false) { if (!$x25 && isset($x28[$x26])) { if ($xfd($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 ($xfd($x28[$x26]) > 1) { return $x22;  } else { return 100 * $x22 / (100 + ($x28[$x26][0]['rate']));  } } else { return $x22;  } } else { if ($xfe($x27)) { if ($x26 != 0) { return $x22 * ($x27 / 100 + 1);  } elseif ($x26 == 0) { return $x22;
 } } else { $x27 = $xff('/', $x27);  $x29 = 0;  $x2a = false;  if ($x100($x27[0], 0, 1) == "-") { $x27[0] = $x100($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 x127($x2c, $x2d = true) { $xf5="\x73t\162\x6cen";  $xf6="i\x6d\160\154\157de";  $xf7="s\164r_\x72\145\160\x6c\x61ce";  $xf8="\x70r\x65\147_\155\x61t\x63\150\x5f\x61\154l";  $xf9="\x70\x72\145g_\155a\164\143\150";  $xfa="\162tr\151\x6d";  $xfb="i\x73\x5fn\165l\154";  $xfc="nu\155b\x65\162_f\157\x72ma\x74";  $xfd="c\157\x75\x6et";  $xfe="\151\163_\156\x75m\145\162\x69\x63";  $xff="expl\157\x64e";  $x100="s\165b\163tr";  $x101="\164r\x69\x6d";  $x102="\x70\x72\145g_\x73p\x6c\x69\164";  $x103="u\164\146\70_\144\x65\143\157d\145";  $x104="\x69s\x5fs\164rin\147";  $x105="\x6a\x73o\x6e\137\144e\143\x6f\x64e";  $x106="is\x5f\x61rr\141\171";  $x107="\x75\143\x77\157\x72\x64\163";  $x108="\141r\x72\141\171\x5f\160\x75\163h";  $x109="p\162\151\x6e\164\x5fr";  $x10a="\166\145\x72\163\151on\137\x63\x6f\x6d\160\x61\162e";  $x10b="\x69n\x5f\141r\162\141\171";  $x10c="\163\x70r\x69\x6e\164\x66";  $x10d="\x61\x72\162\x61\171\x5fp\157\160";  $x10e="\x63\145i\154";  $x10f="\151\x6e\x69_g\145\x74";  $x110="s\x65t\137t\x69\x6de\137\154\x69\155\151t";  $x111="r\x6fun\144";  $x112="\163tr\x5f\x70\141\144";  $x113="\141\142\x73";  $x114="\x66\154\x6f\x6f\162";  $x115="\165\x73\157rt";  $x116="a\162\x72\141\x79_\x73\x68\151ft";  $x117="a\162\162\x61y\x5f\162\145\166e\162\x73e";  $x118="a\162\162a\x79\137valu\x65s";  $x119="\160\x72\x65\x67\x5frep\154\x61\143e";  $x11a="\163t\x72\x69\160\137\x74\x61\x67s";  $x11b="h\x74\x6d\154_\x65\x6e\x74it\171_d\145c\157\144\x65";  $x11c="\150tm\x6cs\x70\x65\x63\151\141\x6cc\x68ar\163";  $x11d="\163t\162\162p\157\x73";  $x11e="\163\164r\x69\x73\164\162";  $x11f="\x6d\x62\137\x73\x74\x72\x74\157\x6cow\145\162";  $x120="\x6d\142\137st\x72\x74\157\x75\160p\145\x72";  $x121="ht\x6d\154\x65\156\164\151\164ies";  $x1c = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';  $xf8($x1c, $x2c, $x1d);  foreach ($x1d[1] as $x1e => $x2e) { $x2f = $x101($x1d[2][$x1e]);  if (empty($x2f) && !$xfe($x2f)) $x2c = $xf7($x1d[0][$x1e], '', $x2c);  else { if ($x2d) $x2c = $xf7($x1d[0][$x1e], ($x1d[1][$x1e]) . '<![CDATA[' . $x2f . ']]>' . ($x1d[3][$x1e]), $x2c);  else $x2c = $xf7($x1d[0][$x1e], ($x1d[1][$x1e]) . $x2f . ($x1d[3][$x1e]), $x2c);  } } $x19 = $x102("\x2f\x0a\57\163", $x2c);  $x30 = '';  foreach ($x19 as $x31) { ($xf5($x101($x31)) > 0) ? $x30.=$x31 . "\x0a" : false;  } $x2c = $x30;  return $x2c;  } public function x128($x2c) { $xf5="\x73\x74\162\x6ce\x6e";  $xf6="\151\x6dp\x6c\x6fd\x65";  $xf7="\163\x74r\137\162e\x70\154a\143e";  $xf8="\160\x72\145g_\x6d\141\x74\143\x68\137\x61\154l";  $xf9="\x70\x72e\x67\x5f\x6da\x74c\x68";  $xfa="rt\162\x69m";  $xfb="\x69s\x5f\x6e\x75\x6c\x6c";  $xfc="\156u\155b\x65r_\146\157\x72m\141\164";  $xfd="c\157\x75\x6e\164";  $xfe="\151s\x5f\x6eu\x6d\x65r\x69\143";  $xff="e\x78p\x6c\x6f\x64\x65";  $x100="\x73ubs\164\x72";  $x101="\164r\151\155";  $x102="\160r\145g\137\x73\x70\154\x69\x74";  $x103="ut\146\70\x5fdec\x6fd\x65";  $x104="\x69\x73\x5f\x73t\162\x69\x6e\147";  $x105="js\x6f\156\x5f\x64e\143\x6f\144\145";  $x106="\151\x73\137\x61\x72\x72a\x79";  $x107="\x75c\167\157r\144\163";  $x108="\141\x72ray\137pu\x73\x68";  $x109="p\x72\151n\164\x5f\162";  $x10a="\166e\162si\157\x6e\x5f\x63om\x70\x61\x72e";  $x10b="\151\x6e_\x61r\162a\x79";  $x10c="\163\160\x72\x69\156t\146";  $x10d="\x61\162\x72a\171\x5f\x70o\160";  $x10e="\143\145\x69\154";  $x10f="i\156\151\x5fg\x65\x74";  $x110="\163\145\x74\137\x74\151m\x65\x5f\154i\x6d\x69t";  $x111="\x72\157\x75\x6e\x64";  $x112="s\164\162_\x70\141\144";  $x113="a\142\x73";  $x114="flo\157r";  $x115="\x75\163\157\x72t";  $x116="\141rray_s\x68i\x66\164";
 $x117="\141r\x72\141\x79\137rev\x65\162\163e";  $x118="\x61\162\x72\141y\x5f\166\141l\x75\x65\163";  $x119="p\x72eg\137\x72\145\x70\x6ca\x63e";  $x11a="st\162i\160\x5f\164a\147\163";  $x11b="\150\x74ml\137e\x6et\x69\x74\x79\x5fd\145\143\157d\145";  $x11c="\x68t\x6dlspe\143\x69\141\x6c\143\x68\141rs";  $x11d="\163\164\162\162\160os";  $x11e="\163\x74r\x69\163\x74r";  $x11f="\x6d\x62_\163\x74\162\164\x6f\x6c\157\167\x65r";  $x120="\155b_\163\x74\x72\x74o\165pp\x65\x72";  $x121="\150\164\155\154\x65nti\x74\x69\145\163";  if ($this->_display) return ($x2c);  else { if ($this->_chartset == 'ISO') return $x103($x2c);  else { return ($x2c);  } } } public function checkReference($x32, $product) { $xf5="\x73\164r\154en";  $xf6="\x69mp\154\x6fd\145";  $xf7="\x73\164\162_r\145\x70\x6c\x61c\145";  $xf8="pr\145\x67_ma\x74\143h\137\141\154l";  $xf9="\x70\x72\145\x67\x5fm\x61t\143\x68";  $xfa="\162\x74\162i\155";  $xfb="\x69\x73\137\x6e\165\154l";  $xfc="\156\165m\x62\x65\162\137\146\x6f\162m\141t";  $xfd="\x63\157\x75n\x74";  $xfe="\x69\163\137\156\x75me\162\x69c";  $xff="exp\154\x6f\144\145";  $x100="\x73\x75bs\164\162";  $x101="tr\151m";  $x102="\160\162eg_\x73\x70\x6c\151t";  $x103="\x75t\x66\70_de\143\157\x64\x65";  $x104="i\163\x5fs\x74\162\151\x6e\147";  $x105="j\x73\x6f\156_d\x65\x63o\144\145";  $x106="i\163\137a\162\x72a\x79";  $x107="\165\x63\x77\157\162\144\x73";  $x108="\141rra\171\137p\165sh";  $x109="\160\x72i\156\164\137\x72";  $x10a="ve\x72\163\x69\x6f\156_\x63\157\x6d\160\x61\162\x65";  $x10b="i\x6e_\141r\162\x61y";  $x10c="\x73pr\x69\x6e\x74\146";  $x10d="\141\x72\162\141\171\137\160o\160";  $x10e="c\145i\x6c";  $x10f="\151\156\x69\137\147\x65\x74";  $x110="\163e\x74\x5ft\x69m\x65\x5fli\155\x69\x74";  $x111="\x72\157un\144";  $x112="\x73\164\x72\x5f\160a\144";  $x113="a\142\x73";  $x114="f\154\157\157r";  $x115="\165\163o\x72\164";  $x116="a\x72\x72\141\x79\137\163h\x69\146\164";  $x117="\141r\162\141\x79\137rever\163\x65";  $x118="\x61\x72ra\x79\x5f\x76\x61\x6c\165\145\163";  $x119="p\x72\145\x67\137r\145\x70\154a\143e";  $x11a="s\164r\151\x70\x5ft\x61\x67\163";  $x11b="h\x74\155\x6c\x5fent\x69ty\137d\145\143\x6fde";  $x11c="\x68\x74ml\163\160\x65\143\151alc\150a\x72s";  $x11d="\x73\164\162r\x70o\163";  $x11e="\x73\164\162\151s\164\162";  $x11f="mb\137\163\164r\x74o\154ow\145\162";  $x120="\x6d\x62_\x73\164\x72t\x6f\165\160p\145r";  $x121="\x68\x74ml\145\156\164ities";  if (($x32 == "\160\x61\162\145\156\x74" || $x32 == "\x63\x6fnfig\x75r\x61\142\x6c\x65") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()];  elseif (($x32 == "\160\x61\162\145\156\x74" || $x32 == "\147ro\x75\x70\x65d") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];  elseif (($x32 == "\160\x61\162\145\156\x74" || $x32 == "\x62\x75\156\x64\x6c\x65") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];  else { return $product;  } } public function generateXml() { $xf5="s\164r\154e\x6e";  $xf6="i\x6dpl\157\x64\145";  $xf7="s\164r_\x72e\x70\x6c\141ce";  $xf8="p\x72eg\x5f\155a\x74\x63\150\137al\x6c";  $xf9="\x70re\147_\155\141\164\143\x68";  $xfa="\162\x74\x72\151m";  $xfb="\x69\163_\156\x75\154l";  $xfc="n\165mbe\162\137f\157\162\155\141\x74";  $xfd="\143oun\x74";  $xfe="\x69\x73\137\156u\x6d\145\x72ic";  $xff="\x65\170plo\144e";  $x100="su\x62\163\164r";  $x101="\x74r\x69\155";  $x102="pr\x65\x67_\163p\x6c\x69t";  $x103="u\164f\70_d\145\143o\x64\x65";  $x104="\151\x73_s\164\162\151\156\x67";  $x105="j\x73\x6fn\137\144\145c\x6fd\x65";  $x106="is_a\162\162\x61y";  $x107="\x75\143w\157\162d\x73";  $x108="a\x72r\141\171\137pu\163\x68";  $x109="\x70r\x69\x6et\137r";  $x10a="\166\x65r\x73\151on_\x63o\155par\145";  $x10b="\x69n\x5f\141\162\x72\x61y";  $x10c="\x73\x70r\x69\x6e\164\146";  $x10d="\x61\x72r\x61\x79\137p\x6f\x70";  $x10e="\x63eil";  $x10f="i\156\151_\147e\x74";  $x110="se\164\137\x74i\x6d\145\x5f\154\x69\x6dit";  $x111="\162o\x75\156d";  $x112="\163\164r\x5f\160\141d";  $x113="\x61\142\x73";  $x114="\x66l\x6f\x6f\x72";  $x115="\165\x73\x6f\162\164";  $x116="\x61\x72\162\141y\137sh\151\x66t";  $x117="\x61r\162\x61\171\x5f\x72ev\145r\163\145";  $x118="\x61rr\x61y\137val\165\x65\163";  $x119="p\x72\145\147\x5f\x72\145\x70la\143e";
 $x11a="\x73\x74\162\151\x70\x5f\x74\x61g\x73";  $x11b="\150\164\155\x6c\137\145nt\x69ty\137\x64\x65\143o\x64\145";  $x11c="\150t\155\154\x73\x70\x65\x63\x69\x61\154c\150a\162\x73";  $x11d="\x73\x74\162\x72p\157s";  $x11e="str\x69\163t\162";  $x11f="m\x62\x5f\x73t\x72\x74\x6f\154\157\167e\162";  $x120="mb_s\x74\x72\x74\x6fuppe\162";  $x121="ht\x6d\154\145\x6et\151\164\151es";  Mage::log("\x0a\76>\x3e>>\76\x3e>>\x3e\76\x3e\76\x3e>>\x3e\x3e\76>\76\x3e>\76\76\x3e\76\x3e\76\76\x3e>\76\76\76\76>>\76>>>>\76\x3e>\x20\x2d-\55\x2d\55\55\x2d\x2d\x2d\x2d-\x2d\55\55\55\40S\x54\x41\122\x54 P\x52O\103\x45\x53S \x46\x4fR " . strtoupper($this->getSimplegoogleshoppingFilename(false)) . "\x2d\55\55\x2d\55-\55\x2d\x2d\x2d\55-\55\x2d-\55-", null, $this->getSimplegoogleshoppingFilename() . '.log');  ini_set('memory_limit', Mage::getStoreConfig("\x73\151\155\x70\154\x65\x67oo\x67\x6ces\x68\x6f\x70p\x69\156\147/\163\171\x73\x74\x65\155\57\x6d\x65\x6d\x6fr\171\x5f\154i\155\x69t") . 'M');  $this->_debug = (isset($_GET['debug'])) ? true : false;  $x33 = $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 "\45\163" cannot be saved. Please, make sure the directory "\45\163" is writeable by web server.', $this->getSimplegoogleshoppingFilename(), $this->getPath()));  } $x20->streamOpen($this->getSimplegoogleshoppingFilename());  } $x34 = array("\141\143" => "a\x63\164i\166\x61\x74\x69o\x6e\137\x63\x6fd\145", "\141\x6b" => "ac\x74\x69va\x74\x69on\x5f\153\x65y", "\x62\165" => "\x62\x61\x73\145\137\x75\x72\154", "m\144" => "\155\144\65", "\x74\x68" => "\164his", "d\155" => "\137\x64e\x6d\x6f", "ex\x74" => "s\x67s", "v\x65r" => "\70\56\60.\60");  $x104(Mage::app()->getRequest()->getParam("\x73t\x6f\162\x65\x5f\151d")) ? $x35 = Mage::app()->getRequest()->getParam("\x73t\x6f\162\x65\x5f\151d") : $x35 = $this->getStoreId();  $x36 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');  $x37 = Mage::getDesign()->getSkinUrl();  $x38 = Mage::getStoreConfig("\143\141t\x61l\157\x67/\160\154\141c\x65\150\157\x6c\144\145\162\57i\x6d\x61\x67\145_\x70lac\145\x68\x6f\154\144\x65r", $x35);  $x39 = Mage::getStoreConfig("cu\162\x72\145\x6e\143\x79/\157\160\x74\x69\x6f\x6e\x73\57\x62a\x73\145", $x35);  $x3a = Mage::getStoreConfig("c\x61\164\141\x6cog\151nv\145n\x74\157\162\x79\x2f\151\x74\145\x6d\x5fo\x70\164i\157ns/\155\141nage_s\164\157\143\x6b", $x35);  $x3b = Mage::getStoreConfig("\143\141\164alo\147i\x6e\166\x65n\164\157r\x79\57it\x65\155_o\160ti\x6f\156\163\57\142a\x63\x6bord\x65rs", $x35);  $x3c = Mage::app()->getStore($x35)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);  $x3d = Mage::getModel('core/store')->load($x35)->getBaseUrl();  $x3e = Mage::app()->getStore($x35)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);  $x3f = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x35);  $x40 = Mage::app()->getStore($x35)->getRootCategoryId();  $x41 = Mage::app()->getStore()->getStoreId();  $x42 = array( "ac\x74\x69va\x74\x69on\x5f\153\x65y" => Mage::getStoreConfig("\163\151m\160l\x65\x67\x6fo\x67\154\145\x73\x68\157p\x70\x69\156g\x2f\x6c\151\x63e\x6e\163e\x2f\x61c\164i\166ati\x6f\x6e\137\153\145\x79"), "a\x63\164i\166\x61\x74\x69o\x6e\137\x63\x6fd\145" => Mage::getStoreConfig("s\151\x6dple\147oo\x67les\150\157\x70p\x69n\x67/l\x69\x63e\156\163\x65\57ac\164\x69v\x61tio\156\137\x63\157\144e"), "\x62\x61\x73\145\137\x75\x72\154" => Mage::getStoreConfig("w\145b\57s\x65\143\x75r\145\57\x62\x61se_\165\162\154"), );  $x104(Mage::app()->getRequest()->getParam("\163im\160le\147\157\157\x67\154\x65sh\x6f\160p\151\x6eg\137\170\155\154i\x74\x65mpa\x74\x74\145rn")) ? $x43 = Mage::app()->getRequest()->getParam("\163im\160le\147\157\157\x67\154\x65sh\x6f\160p\151\x6eg\137\170\155\154i\x74\x65mpa\x74\x74\145rn") : $x43 = $this->getSimplegoogleshoppingXmlitempattern();  $x104(Mage::app()->getRequest()->getParam("\163\151\x6d\x70l\145g\157\157g\x6c\145\x73\150\x6f\x70\160\151\156\x67_\164i\164\x6ce")) ? $x44 = Mage::app()->getRequest()->getParam("\163\151\x6d\x70l\145g\157\157g\x6c\145\x73\150\x6f\x70\160\151\156\x67_\164i\164\x6ce") : $x44 = $this->getSimplegoogleshoppingTitle();  $x104(Mage::app()->getRequest()->getParam("simp\154eg\157o\x67\x6c\x65s\x68\157\160\160\151\x6eg\x5f\x64\145\163\x63\162\151pt\x69\x6fn")) ? $x45 = Mage::app()->getRequest()->getParam("simp\154eg\157o\x67\x6c\x65s\x68\157\160\160\151\x6eg\x5f\x64\145\163\x63\162\151pt\x69\x6fn") : $x45 = $this->getSimplegoogleshoppingDescription();  $x104(Mage::app()->getRequest()->getParam("s\151\155pl\145\147o\x6f\147\x6c\145s\150\157pp\151\x6e\x67\x5f\x63at\145\x67o\x72i\x65s")) ? $x46 = $x105(Mage::app()->getRequest()->getParam("s\151\155pl\145\147o\x6f\147\x6c\145s\150\157pp\151\x6e\x67\x5f\x63at\145\x67o\x72i\x65s")) : $x46 = $x105($this->getSimplegoogleshoppingCategories());  $x104(Mage::app()->getRequest()->getParam("cat\x65\147\157ry\x5f\x66\x69\154\164\x65\162")) ? $x47 = Mage::app()->getRequest()->getParam("cat\x65\147\157ry\x5f\x66\x69\154\164\x65\162") : $x47 = $this->getSimplegoogleshoppingCategoryFilter();  $x48 = Array();  $x49 = Array();  if ($x106($x46)) { foreach ($x46 as $x4a) { if ($x4a->checked) $x48[] = $x4a->line;  } foreach ($x46 as $x4a) { if ($x4a->mapping != "") $x49[$x4a->line] = $x4a->mapping;  } } if ($xfd($x48) < 1) { $x48[] = '*';  } $x104(Mage::app()->getRequest()->getParam("s\151\155p\154e\x67\157\157\147le\x73\x68\x6f\160\x70i\x6e\x67\137\x74y\160\145\x5fid\163")) ? $x4b = $xff(',', Mage::app()->getRequest()->getParam("s\151\155p\154e\x67\157\157\147le\x73\x68\x6f\160\x70i\x6e\x67\137\x74y\160\145\x5fid\163")) : $x4b = $xff(',', $this->getSimplegoogleshoppingTypeIds());  $x104(Mage::app()->getRequest()->getParam("\x73i\x6d\160l\x65goo\147\x6c\x65\163\x68\x6fp\x70\151n\147_v\x69\x73i\x62\151\154it\x79")) ? $x4c = $xff(',', Mage::app()->getRequest()->getParam("\x73i\x6d\160l\x65goo\147\x6c\x65\163\x68\x6fp\x70\151n\147_v\x69\x73i\x62\151\154it\x79")) : $x4c = $xff(',', $this->getSimplegoogleshoppingVisibility());  $x104(Mage::app()->getRequest()->getParam("\163i\155p\154\x65\147o\157\x67\154\145s\x68\x6f\x70p\151\x6e\x67_at\x74\162\151bu\x74\145\x73")) ? $x4d = $x105(Mage::app()->getRequest()->getParam("\163i\155p\154\x65\147o\157\x67\154\145s\x68\x6f\x70p\151\x6e\x67_at\x74\162\151bu\x74\145\x73")) : $x4d = $x105($this->getSimplegoogleshoppingAttributes());  $x104(Mage::app()->getRequest()->getParam("s\151\155\160\x6c\x65goo\147lesho\x70\160\151\156\147_a\x74\x74\162ib\x75\164e_\x73\x65\x74s")) ? $x4e = $xff(',', Mage::app()->getRequest()->getParam("s\151\155\160\x6c\x65goo\147lesho\x70\160\151\156\147_a\x74\x74\162ib\x75\164e_\x73\x65\x74s")) : $x4e = $xff(',', $this->getSimplegoogleshoppingAttributeSets());  if ($x42[$x34['ac']] != $x34["m\144"]($x34["m\144"]($x42[$x34['ak']]) . $x34["m\144"]($x42[$x34['bu']]) . $x34["m\144"]($x34["ex\x74"]) . $x34["m\144"]($x34["v\x65r"]))) { $$x34["ex\x74"] = "v\x61\x6c\151\144";  $$x34["\x74\x68"]->$x34["d\155"] = true;  } else { $$x34["\x74\x68"]->$x34["d\155"] = false;  $$x34["ex\x74"] = "v\x61\x6c\151\144";  } $x4f = '';  $x50 = '';  header("\x43\x6f\156\164\x65n\x74-Ty\160\x65:\x20t\x65\170\164/h\164\x6d\154; \40\x63h\x61\162\163\145t\75\x75\164\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>' . $x44 . "\74\x2ft\151tl\145\x3e\x0a");  $x4f.=('<link>' . $x100($x3c, 0, -1) . "\74\57\154\x69\156\x6b>\x0a");  $x4f.=('<description>' . $x45 . "<\57\144\x65s\143\162\151p\x74\x69\x6f\x6e\76\x0a");  if (!isset($$x34["ex\x74"]) || $$x34["\x74\x68"]->$x34["d\155"]) { $$x34["\x74\x68"]->$x34["d\155"] = true;  return $$x34["\x74\x68"];  } if ($this->_display) $x50 = $this->x128($x4f);  else { $x20->streamWrite($this->x128($x4f));  Mage::log("\x0a\76>\76\x3e\76>\76\76>>\x3e\x3e>\x3e\x3e>\76>\76>>\76>\x3e\x3e>\x3e\x3e\x3e\76\x3e\76\x3e>>\76\76\x3e\x3e\76\x3e\x3e\76>\76> " . $this->getSimplegoogleshoppingFilename() . "\x20\143\162\x65\x61te\144\x20\141\156\x64 o\160\x65\x6e\x65d", null, $this->getSimplegoogleshoppingFilename() . '.log');  } $x1c = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*)(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?}/';  $xf8($x1c, $x43, $x1d);  foreach ($x1d[6] as $x1e => $x51) { if ($x51 != "") { $x1d[0][] = $x1d[0][$x1e];  $x1d[1][] = $x51;  $x1d[2][] = $x1d[7][$x1e];  $x1d[3][] = $x1d[8][$x1e];  ;  $x1d[4][] = $x1d[9][$x1e];  ;  } } foreach ($x1d[11] as $x1e => $x51) { if ($x51 != "") { $x1d[0][] = $x1d[0][$x1e];  $x1d[1][] = $x51;  $x1d[2][] = $x1d[7][$x1e];  $x1d[3][] = $x1d[8][$x1e];  ;  $x1d[4][] = $x1d[9][$x1e];  ;  } } foreach ($x1d[16] as $x1e => $x51) { if ($x51 != "") { $x1d[0][] = $x1d[0][$x1e];  $x1d[1][] = $x51;  $x1d[2][] = $x1d[7][$x1e];  $x1d[3][] = $x1d[8][$x1e];  ;  $x1d[4][] = $x1d[9][$x1e];  ;  } } $x1d[0][] = "\173c\x61t\145\147\x6fr\151e\163\54[\61],[\61\x5d,[\61\135}";  $x1d[1][] = "\143a\x74\x65go\162i\x65\x73";  $x1d[2][] = "";  $x1d[3][] = "\54\x5b\61\135\x2c\133\61]\x2c\x5b\61\x5d";  $x52 = array();  $x53 = array();  foreach ($x1d[1] as $x1e => $x51) { $x52[$x1e]['methodName'] = "\x67e\164" . $xf7(' ', '', $x107($x101($x51)) . '()');  $x52[$x1e]['pattern'] = "\173" . $x101($x51) . "\175";  $x52[$x1e]['fullpattern'] = $x1d[0][$x1e];  $x52[$x1e]['name'] = $x101($x51);  $x52[$x1e]['reference'] = $x101($x1d[2][$x1e]);  if (empty($x52[$x1e]['reference'])) $x52[$x1e]['reference'] = 'self';
 switch ($x52[$x1e]['name']) { case 'url': $x108($x53, 'url_key');  break;  case 'uri': $x108($x53, 'url_key');  break;  case 'G:IMAGE_LINK': $x108($x53, 'image');  $x108($x53, 'small_image');  $x108($x53, 'thumbnail');  break;  case 'SC:IMAGES': $x108($x53, 'image');  $x108($x53, 'small_image');  $x108($x53, 'thumbnail');  break;  case 'SC:DESCRIPTION': $x108($x53, 'description');  $x108($x53, 'short_description');  $x108($x53, 'manufacturer');  $x108($x53, 'name');  $x108($x53, 'sku');  break;  case 'SC:EAN': $x108($x53, 'ean');  break;  case 'SC:URL': $x108($x53, 'url_key');  $x108($x53, 'url');  break;  default : $x108($x53, $x52[$x1e]['name']);  } $x52[$x1e]["\166a\154\x75\145"] = '$product->get' . $x52[$x1e]['name'] . "\x28\x29";  $x52[$x1e]["g\x65\164Te\170\x74"] = 'getAttributeText(\'' . $x101($x51) . '\')';  $x54 = '/\[([^\]]+)\]/';  $xf8($x54, $x1d[3][$x1e], $x55);  $x52[$x1e]["o\160\164\151\157\x6e\163"] = $x55[1];  } if ($this->_debug) { echo "---\x2d\x2d----\55\x2d\55\x2d\55-\x2d--\55\x2d-\x2d\55-\x2d\x2d\55\55\55\55\x2d\55\55--\55--\55\55\x2d-\x2d\55\x2d\x2d<\x62r\x3e\x0d\12\40 \40\40\x20\x20 \40\x20 \x20 \40 \x20\x20\x2d\x2d\55\55\x2d\55\55\55\55\55-- \104\105\x42UG\x20\115\117DE\40\55-\55\x2d-\55\55---\55\x2d\x2d-\55\55\x3c\x62\162\x3e \x0a\x20\40 \x20 \x20\x20\40 \40\x20 \x20 \x20\x20\40\x20\55\55\x2d\55---\x2d\x2d--\55\x2d\x2d\x2d\55-\55\55\55\x2d\x2d-\55\x2d\x2d\55\55\55-\55-\55\55\55\55\55\x2d\55-\x2d\x2d\x2d\x2d\x2d\x2d<\x62\162\76\74br\76";  echo "\74br>\74\x62r>\x2d\x2d\55\55---\x2d\55-\55\55\x20AT\x54R\111\102\125\x54\x45\x53 \x2d-\55\55-\x2d\55-\55-\55\x2d-\x2d\55\55\x3c\x62\x72\x3e";  $x109($x52);  } Mage::log("\x0a>>\76>\x3e>\76\76\x3e\76\x3e\x3e\76>>\x3e>\76\x3e\76\x3e\76>\x3e>\76\76>\76>\x3e\76\76\76\76>\76>\76\76\76>>>\76> \120\x72\x6f\x64\165\143t\40\164\x65\x6d\x70l\x61\164\x65\40a\156\141\x6c\171\x7aed", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x56 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x35) ->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 ($x10a(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("s\151\155\160\x6c\145\x67\157\157\147l\x65\x73\150\157\160pi\x6eg\x2f\163\171\x73\x74e\155/\x69\x6e\143\x6c\165\x64\145_\151n\x5f\x6d\x65n\x75")) $x57[$x58->getId()]['include_in_menu'] = true;  else $x57[$x58->getId()]['include_in_menu'] = $x58->getIncludeInMenu();  } if ($this->_debug) { echo "\74\142r\x3e\x3c\142\162>-\x2d\x2d-\x2d\x2d\x2d\x2d\x2d\55\55\x2d\x20CAT\105G\x4f\122\x49\x45S \55\55-\55\x2d\x2d\55-\x2d--\55\x2d\x2d\55\55\74\x62r\76";  $x109($x57);  } Mage::log("\x0a>>\76\x3e\76\76>>\76\76\76\x3e>\x3e>\x3e\76\76>\76\x3e>\x3e\x3e>\76>\76>\76\x3e>\x3e\76\x3e>\x3e>\76>\x3e\x3e\x3e\x3e\76>\x20C\x61\x74\145\147o\162ie\x73\40\143\x6fl\154e\x63\x74ed", null, $this->getSimplegoogleshoppingFilename() . '.log');  $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=\'' . $x39 . '\'');  $x24 = $x5a->fetchAll($x5c);  $x60 = array();  foreach ($x24 as $x23) { $x60[$x23['currency_to']] = $x23['rate'];  } $this->_currencies = $x60;  if ($this->_debug) { echo "\74\142\162\76<\142\162>\x2d\x2d\x2d-\55\x2d\55-\x2d\x2d\55\x2d\x20\x43\125\x52R\x45\x4e\x43\111ES\x20\x2d\55\55-\x2d\x2d-\x2d\55-\x2d-\x2d\55-\x2d\74\x62\x72>";  $x109($x60);  } Mage::log("\x0a\x3e>\x3e\x3e>\x3e\x3e\76>\x3e\76\x3e>\x3e\x3e>\x3e>\x3e\76>\x3e\76>>\x3e\x3e\76\76\x3e\76>>\76\x3e>>\76\76>\76\x3e\x3e\76\x3e\x3e\x20\103\x75\162\x72en\143i\145s \x72\x61\x74\145 \x63\x6f\x6c\x6c\x65\143\164ed", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x61 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x5e) ->addSetInfo() ->getData();  $x62 = array();  $x63 = array();  foreach ($x61 as $x1e => $x51) { if ($x10b($x51['attribute_code'], $x53)) { $x108($x62, $x51['attribute_code']);  $x63[$x51['attribute_code']] = $x51['frontend_input'];  } } if (!$x10b('special_price', $x62)) $x62[] = 'special_price';  if (!$x10b('special_from_date', $x62)) $x62[] = 'special_from_date';  if (!$x10b('special_to_date', $x62)) $x62[] = 'special_to_date';  if (!$x10b('price_type', $x62)) $x62[] = 'price_type';  if (!$x10b('price', $x62)) $x62[] = 'price';  $x62[] = 'tax_class_id';  foreach ($x4d as $x64) { if (!$x10b($x64->code, $x62) && $x64->checked) if (!$x10b($x64->code, array("\151s\137i\x6e\137\163\x74\x6f\143\x6b", "qty", "\145\156t\151ty\x5fid", "\143re\141\x74\x65\144\x5fa\164", "\165\160\144\x61t\145\x64\137a\x74"))) $x62[] = $x64->code;  } if ($this->_debug) { echo "\74br>\74\x62r>\x2d\x2d\55\55---\x2d\55-\55\55\x20AT\x54R\111\102\125\x54\x45\x53 \x2d-\55\55-\x2d\55-\55-\55\x2d-\x2d\55\55\x3c\x62\x72\x3e";  $x109($x62);  } Mage::log("\x0a\76>\76>\x3e\x3e\76>\76\x3e>\x3e>>\x3e\76\76\76>\76\x3e\x3e>\76>>>\x3e\76\76>\x3e\76\x3e>\76\76\76\x3e>>\x3e\x3e\76>\x3e \x4cis\164 o\146\40r\145\x71uir\145d\x20at\164\x72\151bu\x74\x65s c\x6fll\x65\143\164e\x64", null, $this->getSimplegoogleshoppingFilename() . '.log');  $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("\x73\164o\162e_\151\144\x3d" . $x35 . ' 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\76\74\x62r\76\x2d\x2d\55\x2d\x2d\x2d\55--\55\55\55\40\101\124\x54\122\x49\x42\125T\105S\40\114ABE\x4c \x2d\55-\55\55-\55\x2d-\55-\x2d\x2d\55--\74\142r\76";  $x109($x68);  } Mage::log("\x0a>>\x3e\76\x3e\76\x3e>\76\x3e>\76\76\76\x3e\x3e\76>\76\76\76\76>\76>\76\x3e\76>\x3e\x3e>>\76\x3e\x3e>\76\x3e\76>>\x3e\76\76\x3e \x4ci\163\164\x20o\x66 \141ttri\x62\x75\164\x65\40l\x61\142\145\154s\x20\x63oll\x65cte\x64", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x69 = $x59->getTableName('tax_class');  $x6a = $x59->getTableName('tax_calculation');  $x6b = $x59->getTableName('tax_calculation_rate');  $x6c = $x59->getTableName('directory_country_region');  $x6d = $x59->getTableName('customer_group');  $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');  $x5c->joinInner(array('cg' => $x6d), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"');  $x6e = $x5a->fetchAll($x5c);  $x28 = array();
 $x6f = '';  foreach ($x6e as $x70) { if ($x6f != $x70['class_id']) $x71 = 0;  else { $x71++;  } $x6f = $x70['class_id'];  $x28[$x70['class_id']][$x71]['rate'] = $x70['rate'];  $x28[$x70['class_id']][$x71]['code'] = $x70['code'];  $x28[$x70['class_id']][$x71]['country'] = $x70['tax_country_id'];  } $this->_rates = $x28;  if ($this->_debug) { echo "\74\x62r><\142\162>\55\55\x2d\55-\x2d--\55\x2d\x2d\x2d\x20\124\x41X\40\x43L\x41\x53S\x20\55\x2d-\55-\55---\x2d\x2d\x2d\x2d\x2d\x2d-<\x62\x72>";  $x109($x28);  } Mage::log("\x0a\76\76\x3e\76>\x3e\76\x3e\x3e\x3e\x3e>\x3e\x3e\x3e\x3e\76\x3e\x3e\x3e\76\x3e\76>\76\76\76\76>>\x3e\x3e\76\76\76\76\76>\76>\x3e\76>\76\76> \x54\x61x\x20\162\x61t\x65 \x63o\x6c\x6ce\x63\x74\x65d", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x72 = $x59->getTableName('review');  $x73 = $x59->getTableName('review_store');  $x74 = $x59->getTableName('rating_option_vote');  $x75 = $x5a->select()->distinct('review_id');  $x75->from(array("\x72" => $x72), array("\103\117UN\124(\104\x49\123\x54\x49\x4e\x43\x54\x20\162.\162\x65\x76\x69\145\x77\x5f\151d\51\40A\x53\40\143o\x75\156\x74", 'entity_pk_value'));  $x75->joinleft(array('rs' => $x73), 'rs.review_id=r.review_id', 'rs.store_id');  $x75->joinleft(array('rov' => $x74), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x75->where("\x73t\x61\164u\x73_i\144\x3d\61\x20\141\156\144\40\145n\164i\x74\171\137i\144=\61");  $x75->group(array('r.entity_pk_value', 'rs.store_id'));  $x76 = $x5a->select();  $x76->from(array("\x72" => $x72), array("\103\117UN\124(\104\x49\123\x54\x49\x4e\x43\x54\x20\162.\162\x65\x76\x69\145\x77\x5f\151d\51\40A\x53\40\143o\x75\156\x74", 'entity_pk_value', "\x28S\x45\x4c\105\x43\x54 0) A\x53 \40\x73\x74\157r\x65_\x69\144"));  $x76->joinleft(array('rs' => $x73), 'rs.review_id=r.review_id', array());  $x76->joinleft(array('rov' => $x74), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $x76->where("\x73t\x61\164u\x73_i\144\x3d\61\x20\141\156\144\40\145n\164i\x74\171\137i\144=\61");  $x76->group(array('r.entity_pk_value'));  $x5c = $x5a->select() ->union(array($x75, $x76));  $x5c->order(array('entity_pk_value', 'store_id'));  $x77 = $x5a->fetchAll($x5c);  $x78 = array();  foreach ($x77 as $x79) { $x78[$x79['entity_pk_value']][$x79['store_id']]["\143\157\165\x6et"] = $x79["\143\157\165\x6et"];  $x78[$x79['entity_pk_value']][$x79['store_id']]['score'] = $x79['score'];  } Mage::log("\x0a\76\x3e\x3e\x3e\x3e\x3e>\76\76>>>>\x3e\x3e>\76\x3e>\x3e\76\76>>>>>>\x3e\76>>\76\x3e>>\x3e>\x3e>>\x3e\76\76\x3e>\x20\122e\x76i\x65\167s\x20\143\157l\x6ce\x63\x74\145d", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x59 = Mage::getSingleton('core/resource');  $x5a = $x59->getConnection('core_read');  $x7a = $x59->getTableName('catalog_product_entity_media_gallery');  $x7b = $x59->getTableName('catalog_product_entity_media_gallery_value');  $x5c = $x5a->select(array("\x44\111\123\x54\111NC\x54 \166\141\x6c\x75e"));  $x5c->from($x7a);  $x5c->joinleft(array('cpemgv' => $x7b), 'cpemgv.value_id = ' . $x7a . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));  $x5c->where("v\x61\x6c\165\145<\76T\x52I\115\50\47\47\51\x20\101\116D\x20(\x73\x74o\x72\x65\x5fi\x64\75" . $x35 . ' OR store_id=0)');  $x5c->order(array('position', 'value_id'));  $x5c->group(array('value_id'));  $x7c = $x5a->fetchAll($x5c);  foreach ($x7c as $x7d) { $x7e[$x7d['entity_id']]['src'][] = $x7d['value'];  $x7e[$x7d['entity_id']]['disabled'][] = $x7d['disabled'];  } if ($this->_debug) { echo "<br>\74\142\162>\x2d--\55\x2d\55\x2d\55\55--\x2d I\115A\107\105S\40\55\x2d\x2d\x2d\x2d\x2d-\55\55\x2d\55\55-\x2d\x2d\x2d<\142\162\x3e";  $x109($x7e);  } Mage::log("\x0a\x3e\76\76>\x3e\x3e>\76\76>\x3e>>\76\x3e>\76>\76\x3e\x3e\x3e>\x3e\76>\x3e\x3e\x3e\76\76\76\x3e\x3e\x3e\x3e\x3e\x3e\76>>>>>\x3e>\40I\155\x61g\145\x73\40co\154lec\x74\x65\x64", null, $this->getSimplegoogleshoppingFilename() . '.log');  Mage::app()->setCurrentStore($x35);  $x7f = $x59->getTableName("\143\141\164\141\154\157\x67\x69\x6even\x74\157\162y\x5fsto\x63\x6b\137i\164\x65\155");  $x80 = $x59->getTableName("\143\157r\145_\x75r\154_\x72\145w\162\151t\145");  $x5f = $x59->getTableName('catalog_category_product');  $x81 = $x59->getTableName('catalog_category_product_index');  $x82 = $x59->getTableName('catalog_product_index_price');  $x83 = $x59->getTableName('catalog_product_super_link');  $x84 = $x59->getTableName('catalog_product_link');  $x85 = $x59->getTableName('catalog_product_bundle_selection');  ($x10a(Mage::getVersion(), '1.6.0', '<')) ? $x55 = "\157\160t\151\157n\x73\75'\47" : $x55 = "\x49\123\x4e\x55L\114(opt\x69o\x6es)";  switch (Mage::getStoreConfig("si\155\x70\154egoo\147\154\145s\x68\x6f\x70\x70\151\156\x67\57s\x79\x73te\x6d/\x75\x72\154re\x77\x72\x69t\x65")) { case 1 : $x86 = "\x41N\104\40\x75\x72l\x2e\164arg\x65\x74_\x70\141t\x68\40\116\x4fT\x20\x4c\111\x4b\105\40\x27\45ca\x74\145g\157\x72\x79\x25'";  $x87 = 'MAX';  break;  default : $x86 = "AND u\x72\x6c.\x74a\x72\147\145\164_\x70\141\x74\150 L\x49\113\x45\40\47\45\143\141\164\145\147\157\x72\171\45\x27";  $x87 = 'GROUP_CONCAT';  break;  break;  } $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("i\x6e" => "\x63\x6fnfig\x75r\x61\142\x6c\x65"));  $x88->addAttributeToFilter('visibility', array("\x6e\x69n" => 1));  $x88->addAttributeToSelect($x62, true);  $x88->getSelect()->joinLeft($x83 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));  $x88->getSelect()->joinLeft($x7f . ' 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'));  $x88->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x88->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x88->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x88->getSelect()->group(array('cpsl.parent_id'));  $x89 = array();  foreach ($x88 as $x8a) { foreach ($xff("\x2c", $x8a->getChildIds()) as $x8b) { $x89[$x8b] = $x8a;  $x8c[$x8b]['categories_ids'] = $x8a->getCategories_ids();  $x8c[$x8b]['parent_id'] = $x8a->getId();  $x8c[$x8b]['parent_sku'] = $x8a->getSku();  $x8c[$x8b]['parent_request_path'] = $x8a->getRequestPath();  } } $this->configurable = $x89;  if ($this->_debug) { echo "<\x62\162\x3e<\x62r\x3e\55---\x2d\55\x2d-\x2d\55-\55\x20CO\116F\111\107\x55R\x41\x42\114\105S \x2d-\55\55\55\55\x2d\55\55\55\55\55--\x2d\x2d\x3cbr\76";  echo $x88->getSelect() . '<br><br>';  $x109($x8c);  } Mage::log("\x0a>\76>>\x3e\x3e\x3e\76\76>\x3e>>\76\x3e\76>\76>\76\x3e\76>>\76\x3e\x3e\76\x3e>\x3e\x3e\x3e>\x3e\x3e\x3e\x3e\76>\x3e>\76>\76>\x20\x52\x65\x6ca\164io\x6e\x73\x20\167i\x74\x68 \143\157n\146\151g\165\x72\141\142\x6c\x65\40\160ro\144\x75\x63\164\163 \144e\x74\145\x63te\144", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("i\x6e" => "\x63\x6fnfig\x75r\x61\142\x6c\x65"));  $x88->addAttributeToFilter('visibility', array("\x6e\x69n" => 1));  $x88->getSelect()->joinLeft($x83 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');  $x88->getSelect()->joinLeft($x7f . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)'));  $x88->getSelect()->group(array('cpsl.parent_id'));  $x8d = array();  foreach ($x88 as $x8e) { $x8d[$x8e->getId()] = $x8e->getQty();  } $this->configurableQty = $x8d;  if ($this->_debug) { echo "\74\142\x72\x3e\x3c\x62\162\x3e\x2d\x2d\55\x2d--\x2d\x2d---\x2d\40\x43ON\x46\111\x47\125\122\101B\x4c\x45\x53\40\121\124\x59\40\55\x2d--\x2d--\x2d-\55\x2d-\x2d\x2d--\x3c\142\x72>";  echo $x88->getSelect() . '<br><br>';
 $x109($x8d);  } Mage::log("\x0a\x3e>>\76>\x3e>\76\76>>>>>>\x3e>\76\x3e\76\x3e\x3e\76\x3e\76\76\x3e\76>\x3e\76>>\x3e\x3e>\x3e\x3e\x3e\76>\x3e\76>\x3e\x3e \x51t\x79\40f\x6f\x72\x20\143\157\x6e\x66\x69\x67u\x72\x61\x62\x6c\x65\x20\160\162o\x64u\143\x74s\40\x63a\x6c\x63\165\x6c\141\164\x65\x64", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("i\x6e" => "\147ro\x75\x70\x65d"));  $x88->addAttributeToFilter('visibility', array("\x6e\x69n" => 1));  $x88->addAttributeToSelect($x62, true);  $x88->getSelect()->joinLeft($x84 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));  $x88->getSelect()->joinLeft($x7f . ' 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'));  $x88->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x88->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x88->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x88->getSelect()->group(array('cpl.product_id'));  $x8f = array();  foreach ($x88 as $x8a) { foreach ($xff("\x2c", $x8a->getChildIds()) as $x8b) { $x8f[$x8b] = $x8a;  $x90[$x8b]['categories_ids'] = $x8a->getCategories_ids();  $x90[$x8b]['parent_id'] = $x8a->getId();  $x90[$x8b]['parent_sku'] = $x8a->getSku();  $x90[$x8b]['parent_request_path'] = $x8a->getRequestPath();  } } $this->grouped = $x8f;  if ($this->_debug) { echo "\74\142\x72\x3e<\142\x72\76\55---\55-\x2d-\x2d\55-\x2d GR\x4f\x55P\105\104 -\55\x2d\55-\55\x2d\x2d\55-\55\55\55\55-\x2d\74b\x72\x3e";  echo $x88->getSelect() . '<br><br>';  $x109($x90);  } Mage::log("\x0a\76\76\x3e\76\76\x3e>\x3e>\76\x3e>>\x3e\x3e>>\76>\x3e\x3e\76\76\76>\76>\76\x3e\x3e\76>>>\76\76\x3e\x3e>>\76>\76\76\x3e>\x20R\x65la\164\151\157\x6e\x73 \x77\151\x74\x68\x20\x67\x72\x6f\165\160\x65d\x20p\x72o\144u\x63\x74s \144et\x65\x63\x74\x65\144", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x88 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  $x88->addAttributeToFilter('status', 1);  $x88->addAttributeToFilter('type_id', array("i\x6e" => "\x62\x75\156\x64\x6c\x65"));  $x88->addAttributeToFilter('visibility', array("\x6e\x69n" => 1));  $x88->addAttributeToSelect($x62, true);  $x88->getSelect()->joinLeft($x85 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));  $x88->getSelect()->joinLeft($x7f . ' 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'));  $x88->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x88->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  $x88->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $x88->getSelect()->group(array('e.entity_id'));  $x91 = array();  foreach ($x88 as $x8a) { foreach ($xff("\x2c", $x8a->getChildIds()) as $x8b) { $x91[$x8b] = $x8a;  $x92[$x8b]['parent_id'] = $x8a->getId();  $x92[$x8b]['parent_sku'] = $x8a->getSku();  $x92[$x8b]['parent_request_path'] = $x8a->getRequestPath();  $x92[$x8b]['categories_ids'] = $x8a->getCategories_ids();  } } $this->bundle = $x91;  if ($this->_debug) { echo "<\x62\x72\x3e\x3cbr\x3e\x2d\55--\55\55----\x2d-\x20\x42\125\116\104LE --\x2d\55-\55\55-\55\55\x2d\55--\x2d\55\74\x62\x72\x3e";  echo $x88->getSelect() . '<br><br>';  $x109($x92);  } Mage::log("\x0a>\x3e\x3e\x3e\76\76\76>\76\76>\x3e\x3e\x3e>\x3e>\76\x3e\x3e>\x3e>>\x3e>\x3e\76>\76>>>\x3e>\x3e>\76\x3e\x3e>\x3e\76\x3e\x3e\76\40Re\154\x61tio\156s w\x69t\x68\x20bu\x6ed\x6c\x65\x20\160\162\x6f\144\x75\x63t\163 d\145\x74e\x63te\144", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x93 = $x59->getTableName("\143a\164a\154\157\x67\137\160\162\x6fd\165\143\x74\x5f\157\160\x74i\157\156");  $x94 = $x59->getTableName("\143\x61tal\x6fg_p\162\157\x64\165ct\137\157\x70\x74\151\x6f\156\x5f\x74itle");  $x95 = $x59->getTableName("\143\x61\x74\x61\x6c\x6f\x67\x5f\x70rod\x75\x63\x74\137\x6fp\x74\151\x6f\x6e\x5f\x74y\x70\x65\137\x76\x61\x6cu\x65");  $x96 = $x59->getTableName("\143a\164\141\x6c\157g_\x70r\x6f\144uc\164_o\x70t\x69\157n_t\x79\160e\137\164\151t\x6c\145");  $x97 = $x59->getTableName("\x63\141\164a\154\157\x67\137p\162\157\144\x75\x63\164\137\x6fpt\x69o\156\137\x74\171pe_\160r\151c\145");  $x98 = $x5a->select();  $x98->from(array("c\160o" => $x93), array("\160\162\157\x64\x75ct\x5f\x69\144"));  $x98->joinleft(array("\143\x70\x6f\164" => $x94), "\143p\x6ft.\157\160\164\151\x6f\x6e_i\144=\143\160\x6f.\x6f\x70tio\x6e\x5f\x69\144\x20\101\x4eD\x20\x63\160\x6ft\x2e\163\x74\157r\x65\x5f\151d\75\x30", array("o\160\x74\x69\x6fn" => "\x74\x69\x74\154e", "\x6fpt\x69\x6f\x6e\137\x69\x64", "\x73t\x6f\162\x65\x5f\151d"));  $x98->joinleft(array("\x63p\x6ft\x76" => $x95), "\x63\x70\157\x74\x76.\x6f\160\164\151\x6f\156\137\x69d\x20\75 c\x70\x6f.o\160\x74i\157n_\151\x64", "\x73\153\165");  $x98->joinleft(array("\x63\160\x6f\x74\x74" => $x96), "cp\157\164\x74.\x6f\x70\x74i\x6f\x6e\x5fty\160e\137id\75\143p\157t\166\56\157pt\151on_\x74y\160\145\x5fi\x64\40A\116\x44 c\x70\157\164t.\x73t\157r\145_\x69\x64=c\x70\157t\x2e\163\x74\157r\x65_\x69\x64", "\x74\151t\x6c\145\40A\123\x20v\x61l\165\145");  $x98->joinleft(array("cpo\164\160" => $x97), "c\x70\157\x74p.\157\160t\151on_\x74ype\x5f\151\x64\75\x63\x70\x6ftv.o\160\164\151\157n_\164\171\160\x65\x5f\x69d\x20A\116\x44 \143\x70o\x74\x70\x2e\x73\164\157\x72\145\137id=\x63\160\157t.\x73\x74o\x72\145\137\x69\144", array("\x70\162\x69\143e", "\x70\162i\143e\137t\x79p\x65"));  $x5c = $x98->order(array("\160\162\157\x64\x75ct\x5f\x69\144", "cp\157\164\x76.so\x72\x74\137\x6fr\144\145r \x41SC"));  $x77 = $x5a->fetchAll($x5c);  $x99 = array();  $x9a = 0;  foreach ($x77 as $x9b) { $x99[$x9b["\160\162\157\x64\x75ct\x5f\x69\144"]][$x9b["o\160\x74\x69\x6fn"]]["o\160\164\151\157\x6e\163"][] = array( "\166a\154\x75\145" => $x9b["\166a\154\x75\145"], "\x73\153\165" => $x9b["\x73\153\165"], "\x70\162\x69\143e" => $x9b["\x70\162\x69\143e"], "\x70\162i\143e\137t\x79p\x65" => $x9b["\x70\162i\143e\137t\x79p\x65"] );  $x9a++;  } $this->customOptions = $x99;  if ($this->_debug) { echo "\x3cbr\76\74br\x3e\55\55-\55-\x2d--\55-\55\x2d\40C\x55\x53TO\115\x20OP\124IO\x4e\123\40\x2d\x2d\55\55\55\55\x2d\55\55-\55\x2d--\55\x2d<\142\162>";  echo $x98 . '<br><br>';  $x109($x99);  } Mage::log("\x0a\76\x3e>\x3e\x3e\76\x3e>\76>\76>>>\x3e\76\76\x3e\x3e\x3e\x3e\76\76\x3e\76>\76\76\76>\76>>\76\x3e>>\76>\76\x3e\x3e\x3e\x3e\x3e\x3e \103\165st\157\155\x20o\x70t\x69o\x6es\x20\x63ol\x6ce\143t\145\x64", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x9c = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x35);  if (Mage::getStoreConfig("si\x6d\x70l\145g\157og\x6c\145\x73\150\x6f\160\x70\x69\x6e\147\x2f\163y\x73\x74\x65m/d\151sa\x62le\x64")) $x9c->addFieldToFilter("\x73ta\x74\165\x73", array('gteq' => 1));  else $x9c->addFieldToFilter("\x73ta\x74\165\x73", 1);  $x9c->addAttributeToFilter("t\171\160\x65_\x69\x64", array("i\x6e" => $x4b));  $x9c->addAttributeToFilter("\x76\151s\151\x62il\x69\164\x79", array("i\x6e" => $x4c));  if ($x4e[0] != '*') $x9c->addAttributeToFilter("\x61\x74t\x72i\142u\164e_\x73\x65\x74\137\x69\144", array("i\x6e" => $x4e));  $x9c->addAttributeToSelect($x62, true);  $x9d = array("\145q" => "\75\40\47%\x73\47", "\x6ee\161" => "\x21\75 \47\x25s\47", "gteq" => "\76\x3d\x20'\45\x73\x27", "\x6c\x74\145\x71" => "<\x3d '\45\x73'", "\147t" => "\x3e \47%s\47", "\x6ct" => "\x3c \47%s'", "\154\151\x6b\145" => "\154\151\x6be\x20\x27%\x73'", "n\x6c\x69k\x65" => "n\157\x74 l\x69k\x65 \47%s\x27", "\x6e\x75\x6cl" => "i\163 nu\x6c\154", "\x6eo\164\x6e\x75\x6c\154" => "is\40no\164 n\165\x6c\154", "i\x6e" => "i\156\40\50\45\x73\x29", "\x6e\x69n" => "n\x6f\x74\x20\x69\x6e\50%\x73\x29", );  $x9e = '';  $x19 = 0;  $x9f = array();  foreach ($x4d as $x64) { if ($x64->checked) { if ($x64->condition == 'in' || $x64->condition == 'nin') { if ($x64->code == 'qty' || $x64->code == 'is_in_stock') { $xa0 = $xff(',', $x64->value);  $x64->value = "\x27" . $xf6($xa0, "\x27,'") . "\x27";  } else { $x64->value = $xff(',', $x64->value);  } } switch ($x64->code) { case 'qty' : if ($x19 > 0) $x9e.=' ' . $x64->statement . ' ';  $x9e.="\40\x71\x74\x79 " . $x10c($x9d[$x64->condition], $x64->value);  $x19++;  break;  case 'is_in_stock' : if ($x19 > 0) $x9e.=' ' . $x64->statement . ' ';  $x9e.="\40\x28\x49\x46\50";  $x9e.="(use_config_manage_stock=1 AND $x3a=0)";  $x9e.=" \x4fR\x20";  $x9e.='(use_config_manage_stock=0 AND manage_stock=0)';  $x9e.=" \x4fR\x20";  $x9e.="(use_config_manage_stock=1 AND $x3a=1 AND is_in_stock=1 )";  $x9e.=" \x4fR\x20";  $x9e.="\x28\165s\x65\137\x63\x6f\x6e\x66i\147\x5fm\x61\156\x61\147\145_\x73t\157\x63k=\x30\x20\101N\x44\x20\x6d\141\x6e\141g\x65\137\x73\x74\x6fc\x6b\x3d\61 A\x4e\104\40i\163\x5f\151n\x5f\163t\157ck\75\61 )";  $x9e.=",\x27\61\x27,\x27\60'\51" . $x10c($x9d[$x64->condition], $x64->value) . ")";  $x19++;  break;  default : if ($x64->statement == "AND") { if ($xfd($x9f)) $x9c->addFieldToFilter($x9f);  $x9f = array();
 } if ($x64->condition == "i\x6e") { $xa1 = true;  $xa2 = array();  foreach ($x64->value as $xa3) { if (!$xfe($xa3)) $xa1 = true;  } if ($xa1) { foreach ($x64->value as $xa3) { $xa2[] = array(array("\x66i\x6es\145\x74" => $xa3));  } $x9f[] = array("\141\164\x74r\151\142u\x74e" => $x64->code, $xa2);  } else $x9f[] = array("\141\164\x74r\151\142u\x74e" => $x64->code, $x64->condition => $x64->value);  } else $x9f[] = array("\141\164\x74r\151\142u\x74e" => $x64->code, $x64->condition => $x64->value);  break;  } } };  if ($xfd($x9f)) $x9c->addFieldToFilter($x9f);  $x9c->getSelect()->joinLeft($x7f . ' 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'));  $x9c->getSelect()->joinLeft($x80 . ' AS url', 'url.product_id=e.entity_id ' . $x86 . ' AND is_system=1 AND ' . $x55 . ' AND url.store_id=' . $x35, array('request_path' => $x87 . '(DISTINCT request_path)'));  $x9c->getSelect()->joinLeft($x5f . ' AS categories', 'categories.product_id=e.entity_id');  if ($x48[0] != '*') { $xa3 = 0;  $xa4 = null;  foreach ($x48 as $x4a) { if ($xa3 > 0) $xa4.=',';  $xa4.=$x10d($xff('/', $x4a));  $xa3++;  } ($x47) ? $xa5 = "\x49\116" : $xa5 = "\116\x4fT \111N";  $xa4 = "\x41N\104\40c\x61\164\145gori\145\x73\x5f\x69\156\144e\x78\56\x63\x61\164\145\147o\162\x79\x5f\x69\144\x20" . $xa5 . "\40\x28" . $xa4 . ")";  $x9c->getSelect()->joinInner($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35 . ' ' . $xa4, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  } else $x9c->getSelect()->joinLeft($x81 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x35, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)'));  if ($x10a(Mage::getVersion(), '1.4.0', '>=')) $x9c->getSelect()->joinLeft($x82 . ' 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($x35)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price'));  if (!empty($x9e)) $x9c->getSelect()->where($x9e);  $x9c->getSelect()->group("\145.\x65\x6e\164\x69\x74\x79\137\x74\171pe\x5f\x69\144");  if ($this->_log) Mage::log("\x0a\x3e\x3e>>\76>\x3e>>\76\x3e\x3e>\76>\76\x3e\x3e>\76\x3e>>>\x3e\x3e>\x3e\76\x3e\76\76\76\76\76>\x3e>>\x3e\x3e\x3e\x3e\x3e\76> \115\x61\151\x6e\40\163\x71\x6c \x72\x65q\165\x65\x73\x74\72\40\x0a" . $x9c->getSelect(), null, $this->getSimplegoogleshoppingFilename() . '.log');  if ($this->_debug) { echo "<\142\162\76\x3c\142r\76----\55\55-\x2d-\x2d--\40\115\x41\111\x4e S\x51L\x20REQ\x55\x45ST \55\55-\x2d\55\55-\x2d\55\55\55\x2d\55\x2d\55\55\74b\x72\76";  echo $x9c->getSelect();  } $xa6 = 0;  $xa7 = clone $x9c;  $xa7->getSelect()->columns("C\x4f\125NT\50D\x49\x53T\x49\116\103T e\x2ee\x6et\x69\164\x79_\151\144\x29\x20\101\163 \164o\164\x61l");  $this->_counter = $xa7->getFirstItem()->getTotal();  $xa8 = $x10e($this->_counter / $this->_sqlSize);  $x4f = '';  $xa9 = 1;  Mage::log("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xa8 queries )", null, $this->getSimplegoogleshoppingFilename() . '.log');  while ($xa6 < $xa8) { $x88 = clone $x9c;  if ($this->_debug) { echo "<\x62r\x3e<\x62\162\76-\55\x2d\x2d\x2d\x2d-\55-\x2d\55\55\40\123Q\x4c\x20\55\55\x2d-\55-\55\55-\55\55-\x2d---<\x62\x72\x3e";  print($x88->getSelect());  } $x88->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa6));  $x88->getSelect()->group(array('e.entity_id'));  $xa6++;  if ($this->_sqlSize * $xa6 > $this->_counter) $xaa = $this->_counter;  else $xaa = $this->_sqlSize * $xa6;  if ($this->_log) Mage::log("\x0a\x3e>\x3e\x3e\x3e\76>>\76>\x3e>\x3e\x3e>>\x3e\76\x3e>\x3e\76>\76\x3e>\x3e\x3e>\76\76>\x3e\76>\76\x3e\76\76\76\x3e\76\76\76>\x3e\x20Fe\164\143h\x69\156\x67\40\x70\162\157duc\164\x73\40\146r\157m\x20" . ($this->_sqlSize * ($xa6 - 1) + 1) . " \x74o\x20" . $xaa, null, $this->getSimplegoogleshoppingFilename() . '.log');  $x9a = 1;  foreach ($x88 as $product) { if ($this->_debug) { echo "<\142\162\x3e\x3c\x62\162>-\55\x2d\x2d-\x2d\55\55\x2d\55\55\55 PR\117\104UC\x54\x20\133\40\x53KU\x20\x2d> " . $product->getSku() . " |\40ID\40\x2d\76 " . $product->getId() . "\x5d-\55--\55-\55-\55\x2d---\55-\74\x62\x72>";  echo "\x63a\164\x65\x67\157ri\145\163\40\72\40" . $product->getCategoriesIds() . "\x2c\x20\x52\157o\164\x20\151d:\40" . $x40 . "\74\142\162\x3e";  foreach ($xff(',', $product->getCategoriesIds()) as $x1e => $x58) { echo $x58 . "\75\76" . $x57[$x58]["pa\164\x68"] . "\74\142\162\x3e";  } } if (!$x10f('safe_mode')) { $x110(60);  } $x2c = $x43;  foreach ($x52 as $x1e => $xab) { $x2e = "";  switch ($xab['pattern']) { case "\173\x6c\x6f\x61\144_\x6fpt\151o\156\163\175": $x77 = 1;  $xac = array();  foreach ($xab['options'] as $x1e => $xad) { if (isset($x99[$product->getId()][$xad])) { $x77 = $x77 * $xfd($x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"]);  $xac[$x1e] = 0;  } } $x1c = array();  for ($x71 = 1;  $x71 <= $x77;  $x71++) { $xae = $x2c;  foreach ($xab['options'] as $x1e => $xad) { if (isset($x99[$product->getId()][$xad])) { $xae = $xf7("\173" . $xad . "\x5f\x6c\x61b\x65\x6c\175", $x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"][$xac[$x1e]]['value'], $xae);  $xae = $xf7("\173" . $xad . "\x5f\163ku\x7d", $x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"][$xac[$x1e]]['sku'], $xae);  $xae = $xf7("\173" . $xad . "\137\x70\162\151\x63e\175", $x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"][$xac[$x1e]]['price'], $xae);  $xae = $xf7("\173" . $xad . "_t\x79\x70\x65\x7d", $x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"][$xac[$x1e]]['price_type'], $xae);  if ($x1e > 0 || $xfd($x99[$product->getId()]) == 1 || $xfd($xab['options']) < 2) $xac[$x1e] ++;  if ($xac[$x1e] >= $xfd($x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"])) { $xac[$x1e] = 0;  $xac[$x1e - 1] ++;  } } } $x1c[] = $xae;  } if ($xfd($x1c) > 0) { $x2c = $xf6("\74/ite\155\x3e\x0a<\151\164e\x6d\x3e", $x1c);  } break;  case "\x7b\x75\163\x65\x5fo\160\x74\151\x6f\x6e\163\x7d": foreach ($xab['options'] as $x1e => $xad) { if (isset($x99[$product->getId()][$xad])) { $xaf = array();  $xb0 = array();  $xb1 = array();  foreach ($x99[$product->getId()][$xad]["o\160\164\151\157\x6e\163"] as $x30) { $xaf[] = $x30['value'];  $xb0[] = $x30['sku'];  $xb1[] = $x30['price'];  } $x2c = $xf7("\173" . $xad . "\x5f\x6c\x61b\x65\x6c\175", $xf6(',', $xaf), $x2c);  $x2c = $xf7("\173" . $xad . "\x5f\163ku\x7d", $xf6(',', $xb0), $x2c);  $x2c = $xf7("\173" . $xad . "\137\x70\162\151\x63e\175", $xf6(',', $xb1), $x2c);  } } break;  case '{inc}' : $x2e = $xa9;  break;  case '{final_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getFinalePrice();  (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{tier_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getTierPrice();  (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{min_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getMinPrice();
 (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{max_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = $xb2->getMaxPrice();  (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{normal_price}' : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->type_id == 'bundle') $x22 = $xb2->price;  else { $x22 = $xb2->getPrice();  } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  break;  case '{price}' : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s")) { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else $x22 = $xb2->special_price;  } else { $x22 = $xb2->price;  } } else ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xb2->getPrice();  } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") $x22 = $xb2->price;  else { $x22 = $xb2->getPrice();  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s") && date("\131\55\155-\x64\40H\x3a\151\72s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xb2->getPrice();  } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { $x22 = $xb2->price;  } else { $x22 = $xb2->getPrice();  } } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) { $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  } else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xb2->getPrice();  } } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab["o\160\164\151\157\x6e\163"][0])) ? $x23 = $x39 : $x23 = $xab["o\160\164\151\157\x6e\163"][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, "\x2e", "");  ;  break;  case "\x7b\x69\x73_s\160\x65ci\x61l\x5f\x70r\151\x63\145}" : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab["o\160\164\151\157\x6e\163"][0])) ? $xb3 = 1 : $xb3 = $xab["o\160\164\151\157\x6e\163"][0];  (!isset($xab["o\160\164\151\157\x6e\163"][1])) ? $xb4 = 0 : $xb4 = $xab["o\160\164\151\157\x6e\163"][1];  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s")) { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0 ) ? $x2e = $xb3 : $x2e = $xb4;  else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x2e = $xb3 : $x2e = $xb4;  } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { $x2e = $xb4;  } else { $x2e = $xb4;  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s") && date("\131\55\155-\x64\40H\x3a\151\72s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0 ) ? $x2e = $xb3 : $x2e = $xb4;  } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x2e = $xb3 : $x2e = $xb4;  } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { $x2e = $xb4;  } else { $x2e = $xb4;  } } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0 ) ? $x2e = $xb3 : $x2e = $xb4;  } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x2e = $xb3 : $x2e = $xb4;  } } break;  case "{sp\145ci\x61\x6c_pr\x69\x63\145}" : $xb2 = $this->checkReference($xab['reference'], $product);  $x22 = null;  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s")) { if ($xb2->type_id == 'bundle') { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s") && date("\131\55\155-\x64\40H\x3a\151\72s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == 'bundle') { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } } } else { if ($xb2->type_id == 'bundle') { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  if ($x22 > 0) { $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, '.', '');  ;  } else { $x2e = "";  } break;  case '{price_rules}' : $xb2 = $this->checkReference($xab['reference'], $product);  $x35 = $this->getStoreId();  $xb5 = Mage::getResourceModel('catalogrule/rule');  $xb6 = Mage::app()->getLocale()->storeTimeStamp($x35);  $xb7 = Mage::app()->getStore($x35);  $xb8 = $xb7->getWebsiteId();  $xb9 = Mage::getSingleton('customer/session')->getCustomerGroupId();  $xba = $xb5->getRulePrice($xb6, $xb8, $xb9, $xb2->getId());  if ($xba !== false) $xbb = $x10c('%.2f', $x111($xba, 2));  else $xbb = $xb2->getPrice();  if ($xb2->getSpecialFromDate() && !$xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s")) { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xbb;  } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") $x22 = $xb2->price;  else { $x22 = $xbb;  } } } elseif ($xb2->getSpecialFromDate() && $xb2->getSpecialToDate()) { if ($xb2->getSpecialFromDate() <= date("\131\55\155-\x64\40H\x3a\151\72s") && date("\131\55\155-\x64\40H\x3a\151\72s") < $xb2->getSpecialToDate()) { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xbb;
 } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") $x22 = $xb2->price;  else { $x22 = $xbb;  } } } else { if ($xb2->type_id == "\x62\x75\156\x64\x6c\x65") { if (($xb2->price_type || (!$xb2->price_type && $xb2->special_price < $xb2->price)) && $xb2->special_price > 0) { if ($xb2->price_type) $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->price;  } } else { ($xb2->getSpecial_price() && $xb2->getSpecial_price() < $xb2->getPrice()) ? $x22 = $xb2->getSpecialPrice() : $x22 = $xbb;  } } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  $x2e = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab["o\160\164\151\157\x6e\163"][0])) ? $x23 = $x39 : $x23 = $xab["o\160\164\151\157\x6e\163"][0];  $x2e = $this->x125($x2e, $x23);  $x2e = $xfc($x2e, 2, "\x2e", "");  break;  case "{G\72\x53\x41L\x45\x5f\120\x52\111\x43\x45\175" : $xb2 = $this->checkReference($xab['reference'], $product);  $xbc = Mage::getSingleton('core/date')->getGmtOffset("\150ou\162\x73");  if ($xbc > 0) { $xbd = "+";  $xbe = $x112($x113($x114($xbc)), 2, 0, STR_PAD_LEFT) . ':' . $x112(($x113($xbc) - $x114($x113($xbc))) * 60, 2, 0, STR_PAD_LEFT);  } else { $xbd = "";  $xbe = '-' . $x112($x113($x114($xbc)), 2, 0, STR_PAD_LEFT) . ':' . $x112(($x113($xbc) - $x114($x113($xbc))) * 60, 2, 0, STR_PAD_LEFT);  } $xbf = $x100($xf7(' ', 'T', $xb2->getSpecialFromDate()), 0, -3);  $xc0 = $x100($xf7(' ', 'T', $xb2->getSpecialToDate()), 0, -3);  if ($xb2->type_id == 'bundle' && $xb2->special_price) { if ($xb2->price_type) { $x22 = $xfc($xb2->price * $xb2->special_price / 100, 2, "\x2e", "");  } else { $x22 = $xb2->special_price;  } } else { $x22 = $xb2->getSpecial_price();  } (!isset($xab['options'][1])) ? $x27 = false : $x27 = $xab['options'][1];  if ($x22 > 0) { $x22 = $this->x126($x22, $x3f, $xb2->getTaxClassId(), $x27);  (!isset($xab['options'][0])) ? $x23 = $x39 : $x23 = $xab['options'][0];  $x22 = $this->x125($x22, $x23);  $x22 = $xfc($x22, 2, '.', '');  ;  } if ($x22 > 0) { $x2e = "<g\72\163\141\154\145\137\160r\x69\143\x65\76\74\x21\133\103\104A\x54A\x5b" . $x22 . "\40" . $x23 . "\x5d\x5d\76<\x2f\x67\x3a\x73ale\137\160\x72\x69c\x65\x3e\x0a";  } if ($x22 > 0 && $xc0) { $x2e.="\x3c\147:\163\141\x6c\x65\x5f\x70\x72i\x63e\x5f\x65\x66f\145\143\x74\151\166\x65\x5f\x64\141\164\x65\76<\41[\x43\x44\101\124\101\133" . $xbf . $xbd . $xbe . "\x2f" . $xc0 . $xbd . $xbe . "\135]>\74/g\72\x73al\145\x5f\160\x72\x69c\x65_\145\146\x66\x65ct\x69v\x65_\x64at\145>\x0a";  } break;  case "\173\x69\155\x61\147\145\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  $xc1 = $xb2->getImage();  if (!isset($xab['options'][0]) || $xab['options'][0] == 0) { if ($xb2->getImage() && $xb2->getImage() != 'no_selection') { $xc2 = 'catalog/product/' . $xb2->getImage();  $x2e = $x3e . $xf7('//', '/', $xc2);  } else { $x2e = $x3e . '/catalog/product/placeholder/' . $x38;  } } elseif (isset($x7e[$xb2->getId()]['src'][$xab['options'][0] - 1]) && $xab['options'][0] > 0) { if ($x7e[$xb2->getId()]['src'][$xab['options'][0] - 1] != $xc1) { $xc2 = 'catalog/product/' . $x7e[$xb2->getId()]['src'][$xab['options'][0] - 1];  $x2e = $x3e . $xf7('//', '/', $xc2);  } } break;  case "\x7b\x47\x3aI\115\101\107\105\x5fL\x49\116K}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xc1 = $xb2->getImage();  $xc3 = array($xb2->getSmall_image(), $xb2->getThumbnail());  $xc4 = '';  $xac = 0;  if ($xb2->getImage() && $xb2->getImage() != 'no_selection') { $xc2 = 'catalog/product/' . $xb2->getImage();  $x2e = $x3e . $xf7('//', '/', $xc2);  $xc4.="\74g\72imag\145\137\154i\156k\x3e<\41\133\x43DAT\x41\x5b" . $x2e . "\x5d]\76\x3c/g:\151\155a\x67\x65_li\x6e\x6b\76\x0a";  $xac++;  } $xc5 = 0;  while (isset($x7e[$xb2->getId()]['src'][$xc5]) && $xac < 10) { if ($x7e[$xb2->getId()]['src'][$xc5] != $xc1) { if ($x10b($x7e[$xb2->getId()]['src'][$xc5], $xc3) || $x7e[$xb2->getId()]['disabled'][$xc5] != 1) { $xc2 = 'catalog/product/' . $x7e[$xb2->getId()]['src'][$xc5];  $x2e = $x3e . $xf7('//', '/', $xc2);  $xc4.="\x3cg\x3a\141\144dit\151\157n\141\154\x5f\151m\x61\x67e\x5fl\x69\x6ek\76<!\133C\x44A\x54A\x5b" . $x2e . "\135\135>\x3c\x2f\147:\x61\x64\x64\x69\164\x69\x6fn\x61\154\137\151\155\x61g\x65_\x6c\x69\x6e\x6b\x3e\x0a";  $xac++;  } } $xc5++;  } $x2e = $xc4;  break;  case "{\x75r\x6c\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getRequest_path()) { if (Mage::getStoreConfig("si\155\x70\154egoo\147\154\145s\x68\x6f\x70\x70\151\156\x67\57s\x79\x73te\x6d/\x75\x72\154re\x77\x72\x69t\x65") == 2) { $xc6 = $xff("\x2c", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x3d . $x10d($xc6);  } elseif (Mage::getStoreConfig("si\155\x70\154egoo\147\154\145s\x68\x6f\x70\x70\151\156\x67\57s\x79\x73te\x6d/\x75\x72\154re\x77\x72\x69t\x65") == 3) { $xc6 = $xff("\x2c", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x3d . $x116($xc6);  } else $x2e = $x3d . $xb2->getRequest_path();  } else { $x2e = $xb2->getProductUrl();  } break;  case "\x7bh\x6fs\164}" : $x2e = $x3d;  break;  case "\x7b\165\x72i}" : $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getRequest_path()) { if (Mage::getStoreConfig("si\155\x70\154egoo\147\154\145s\x68\x6f\x70\x70\151\156\x67\57s\x79\x73te\x6d/\x75\x72\154re\x77\x72\x69t\x65") == 2) { $xc6 = $xff("\x2c", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x10d($xc6);  } elseif (Mage::getStoreConfig("si\155\x70\154egoo\147\154\145s\x68\x6f\x70\x70\151\156\x67\57s\x79\x73te\x6d/\x75\x72\154re\x77\x72\x69t\x65") == 3) { $xc6 = $xff("\x2c", $xb2->getRequest_path());  $x115($xc6, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  $x2e = $x116($xc6);  } else $x2e = $xb2->getRequest_path();  } else { $x2e = $xf7($x3d, '', $xb2->getProductUrl());  } break;  case '{is_in_stock}' : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0])) ? $xc7 = 'in stock' : $xc7 = $xab['options'][0];  (!isset($xab['options'][1])) ? $xc8 = "\157\x75\164\x20of \x73to\143k" : $xc8 = $xab['options'][1];  (!isset($xab['options'][2])) ? $xc9 = "\x61\x76\141\x69la\142\154\145\x20\x66\157\x72\x20o\x72de\x72" : $xc9 = $xab['options'][2];  if (($xb2->getManageStock() && !$xb2->getUseConfigManageStock() && !$x3a) || ($xb2->getUseConfigManageStock() && $x3a ) || $xb2->getManageStock()) { if ($xb2->getIsInStock() > 0) { if ($product->type_id == "\x63\x6fnfig\x75r\x61\142\x6c\x65") $xca = $x8d[$product->getId()];  else $xca = $xb2->getQty();  if ($xca > 0) { $x2e = $xc7;  } else { if ($xb2->getBackorders() || ($xb2->getUseConfigBackorders() && $x3b)) { $x2e = $xc9;  } else { $x2e = $xc8;  } } } else $x2e = $xc8;  } else { $x2e = $xc7;  } break;  case '{stock_status}' : $xb2 = $this->checkReference($xab['reference'], $product);  ($xb2->getIs_in_stock() > 0) ? $x2e = 'in stock' : $x2e = 'out of stock';  break;  case '{qty}' : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0])) ? $xcb = 0 : $xcb = $xab['options'][0];  if ($product->type_id == "\x63\x6fnfig\x75r\x61\142\x6c\x65") { $x2e = $x8d[$product->getId()];  $x2e = $xfc($x2e, $xcb, '.', '');  } else if ($xab['reference'] == "\x63\x6fnfig\x75r\x61\142\x6c\x65") { $x2e = $xfc($x8d[$xb2->getId()], $xcb, '.', '');  } else { $x2e = $xfc($xb2->getQty(), $xcb, '.', '');
 } break;  case "{c\x61t\x65go\x72\151\x65s\x5f\166\61\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xce = INF : $xce = $xab['options'][2];  $xcf = 0;  $x2e = '';  $xd0 = '';  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b($x57[$x58]["pa\164\x68"], $x48) : $xd1 = !$x10b($x57[$x58]["pa\164\x68"], $x48);  if (isset($x57[$x58]) && $xcf < $xcc && ($xd1 || $x48[0] == "\52")) { $xd2 = 0;  $xd3 = $xff('/', $x57[$x58]["pa\164\x68"]);  if ($x10b($x40, $xd3)) { $xd4 = "";  if ($xcf > 0) $xd0 = "\x2c";  foreach ($xd3 as $xd5) { if (isset($x57[$xd5])) { if ($x57[$xd5]['level'] > $xcd && $xd2 < $xce) { if ($xd2 > 0) $xd4.='>';  $xd4.=($x57[$xd5]['name']);  $xd2++;  } } } $xd6 = "";  if (!empty($xd4)) { $x2e.=$xd0 . $xd4 . $xd6;  $xcf++;  } } } };  break;  case "\173c\141\x74eg\x6frie\x73\x7d" : $xd7 = null;  $xcc = INF;  $xcd = 1;  $xd8 = INF;  $xd9 = ', ';  $xda = "\x20\x3e\40";  if ($xfd($xab['options']) == 1) { (!isset($xab['options'][0])) ? $xd7 = "\154\x61\163t" : $xd7 = $xab['options'][0];  $xcc = 1;  } elseif ($xfd($xab['options']) == 2) { (!isset($xab['options'][0])) ? $xd9 = ', ' : $xd9 = $xab['options'][0];  (!isset($xab['options'][1])) ? $xda = "\x20\x3e\40" : $xda = $xab['options'][1];  } elseif ($xfd($xab['options']) > 2) { (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xd8 = INF : $xd8 = $xab['options'][2];  (!isset($xab['options'][3])) ? $xd9 = ', ' : $xd9 = $xab['options'][3];  (!isset($xab['options'][4])) ? $xda = "\x20\x3e\40" : $xda = $xab['options'][4];  } $xb2 = $this->checkReference($xab['reference'], $product);  $xc2 = 0;  $xdb = array();  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b(@$x57[$x58]["pa\164\x68"], $x48) : $xd1 = !$x10b(@$x57[$x58]["pa\164\x68"], $x48);  if (isset($x57[$x58]) && ($xd1 || $x48[0] == "\52")) { $xc2++;  $xdb[$xc2] = array();  $xd3 = $xff('/', $x57[$x58]["pa\164\x68"]);  if ($x10b($x40, $xd3)) { foreach ($xd3 as $xd5) { if (isset($x57[$xd5]) && $x57[$xd5]['name'] != null) { $xdb[$xc2][] = ($x57[$xd5]['name']);  } } } } } $xdc = array();  $x115($xdb, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122Array'));  if ($xd7 == "\154\x61\163t") $xdb = $x117($xdb);  $xb2->setCategoriesArray($xdb);  $xdd = 0;  foreach ($xdb as $x1e => $xd2) { if ($xdd < $xcc) { foreach ($xd2 as $xde => $xdf) { if ($xde >= $xcd && $xde <= $xd8) { if (!isset($xdc[$xdd])) $xdc[$xdd] = array();  $xdc[$xdd][] .= $xdf;  } } if ($xfd($xdc[$xdd])) $xdd++;  } };  $x2e = null;  foreach ($x118($xdc) as $x1e => $xe0) { if ($x1e > 0) $x2e.=$xd9;  $x2e.=$xf6($xda, $xe0);  } break;  case "\173G\72P\x52\117\x44\x55CT\137\x54\131P\x45_\166\61\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xce = INF : $xce = $xab['options'][2];  $xcf = 0;  $x2e = '';  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b($x57[$x58]["pa\164\x68"], $x48) : $xd1 = !$x10b($x57[$x58]["pa\164\x68"], $x48);  if (@$x57[$x58]["i\x6e\143\154\165\x64\x65_\x69\156\137\155\145\156\x75"] && isset($x57[$x58]) && $xcf < $xcc && ($xd1 || $x48[0] == "\52")) { $xd2 = 0;  $xd3 = $xff('/', $x57[$x58]["pa\164\x68"]);  if ($x10b($x40, $xd3)) { $xd4 = '';  $xd0 = '<g:product_type><![CDATA[';  foreach ($xd3 as $xd5) { if (isset($x57[$xd5])) { if ($x57[$xd5]['level'] > $xcd && $xd2 < $xce) { if ($xd2 > 0) $xd4.=' > ';  $xd4.=($x57[$xd5]['name']);  $xd2++;  } } } $xd6 = "\135\135\x3e<\x2f\x67\x3ap\x72\x6fdu\x63\x74\x5f\164\171\160\145\76\x0a";  if (!empty($xd4)) { $x2e.=$xd0 . $xd4 . $xd6;  $xcf++;  } } } };  break;  case "\x7b\x47:\120\122OD\x55\103\124\x5fT\x59\120E\x7d" : $xd9 = "\135]\x3e\74/g\72\x70\x72\157\144\165\x63\x74_\x74\x79pe>\x0a\74\147:p\x72\x6f\144\165\143\x74_\x74\x79pe\x3e\74\x21\x5bC\104A\x54A\x5b";  $xda = "\x20\x3e\40";  (!isset($xab['options'][0]) || !$xab['options'][0] || $xab['options'][0] == 'INF') ? $xcc = INF : $xcc = $xab['options'][0];  (!isset($xab['options'][1])) ? $xcd = 1 : $xcd = $xab['options'][1];  (!isset($xab['options'][2]) || !$xab['options'][2] || $xab['options'][2] == 'INF') ? $xd8 = INF : $xd8 = $xab['options'][2];  $xb2 = $this->checkReference($xab['reference'], $product);  $xc2 = 0;  $xdb = array();  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { ($x47) ? $xd1 = $x10b(@$x57[$x58]["pa\164\x68"], $x48) : $xd1 = !$x10b(@$x57[$x58]["pa\164\x68"], $x48);  if (isset($x57[$x58]) && ($xd1 || $x48[0] == "\52")) { $xc2++;  $xdb[$xc2] = array();  $xd3 = $xff('/', $x57[$x58]["pa\164\x68"]);  if ($x10b($x40, $xd3)) { foreach ($xd3 as $xd5) { if (isset($x57[$xd5]) && $x57[$xd5]['name'] != null) { $xdb[$xc2][] = ($x57[$xd5]['name']);  } } } } } $xdc = array();  $x115($xdb, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122Array'));  foreach ($xdb as $x1e => $xd2) { if ($x1e < $xcc) foreach ($xd2 as $xde => $xdf) { if ($xde >= $xcd && $xde <= $xd8) { if (!isset($xdc[$x1e])) $xdc[$x1e] = array();  $xdc[$x1e][] .= $xdf;  } } };  $x2e = null;  foreach ($x118($xdc) as $x1e => $xe0) { if ($x1e > 0) $x2e.=$xd9;  $x2e.=$xf6($xda, $xe0);  } if (($xdc)) $x2e = "<\147:p\x72\x6f\x64\165\143t\x5f\x74\x79p\x65\76\x3c\41\133\x43\104\x41T\101\133" . $x2e . "\135\135\x3e<\x2f\x67\x3ap\x72\x6fdu\x63\x74\x5f\164\171\160\145\76\x0a";  break;  case "\x7b\107\x3a\107\x4f\117\x47\x4c\x45\137P\x52\x4f\104\x55\x43T\x5fC\x41\x54E\x47\x4f\x52\131\x7d" : $xe1 = array();
 (!isset($xab['options'][0])) ? $xd7 = "\154\x6f\x6eg\x65s\x74" : $xd7 = $xab['options'][0];  $xb2 = $this->checkReference($xab['reference'], $product);  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { if (isset($x57[$x58]["pa\164\x68"]) && isset($x49[$x57[$x58]["pa\164\x68"]])) { $xe1[] = $x49[$x57[$x58]["pa\164\x68"]];  } } $x115($xe1, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x122'));  if ($xd7 == "\163\150\157\x72\164e\x73t") $xe1 = $x117($xe1);  $xe2 = $x116($xe1);  if ($xe2 != "") $x2e = "<\x67\72go\157\x67le_pro\144uc\164\x5f\x63ate\x67\x6f\162y\76\x3c\41\133C\x44A\x54\x41[" . $xe2 . "]\x5d\76<\x2f\147\72g\x6f\x6fgl\145_\160\x72\157\144\165c\x74_ca\164eg\157r\x79\x3e\x0a";  break;  case "{\x63a\164\x65\x67o\x72\171\x5f\x6d\x61ppin\147\x7d" : (isset($xab["o\160\164\151\157\x6e\163"][0])) ? $xe3 = $xab["o\160\164\151\157\x6e\163"][0] : $xe3 = 0;  $x2e = "";  $xb2 = $this->checkReference($xab['reference'], $product);  $xe4 = 0;  foreach ($xff(',', $xb2->getCategoriesIds()) as $x1e => $x58) { if (isset($x49[$x57[$x58]["pa\164\x68"]])) { if ($xe4 == $xe3) { $x2e.=$x49[$x57[$x58]["pa\164\x68"]];  break;  } $xe4++;  } } break;  case "\173\x72e\x76i\145w\x5fc\x6fu\156\x74\x7d": $xb2 = $this->checkReference($xab['reference'], $product);  $x2e = "";  (isset($xab["o\160\164\151\157\x6e\163"][0]) && $xab["o\160\164\151\157\x6e\163"][0] == "\52" ) ? $xe5 = 0 : $xe5 = $x35;  if (isset($x78[$xb2->getId()][$xe5]["\143\157\165\x6et"])) { $xe6 = $x78[$xb2->getId()][$xe5]["\143\157\165\x6et"];  if (isset($xe6)) { $x2e.=$xe6;  } } break;  case "{r\x65\x76\x69\x65w_\x61\x76\145\162\x61\147\145\175": $xb2 = $this->checkReference($xab['reference'], $product);  $x2e = "";  (isset($xab["o\160\164\151\157\x6e\163"][0]) && $xab["o\160\164\151\157\x6e\163"][0] == "\52" ) ? $xe5 = 0 : $xe5 = $x35;  (!isset($xab["o\160\164\151\157\x6e\163"][1]) || !$xab["o\160\164\151\157\x6e\163"][1]) ? $xe7 = 5 : $xe7 = $xab["o\160\164\151\157\x6e\163"][1];  if (isset($x78[$xb2->getId()][$xe5]["s\x63\x6f\162e"])) { $xe8 = $xfc($x78[$xb2->getId()][$xe5]["s\x63\x6f\162e"] * $xe7 / 100, 2, "\x2e", "");  if (isset($xe8)) { $x2e.=$xe8;  } } break;  case "\x7bG\x3aP\x52\117DU\103T_\122\x45V\x49\105\x57\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  (isset($xab["o\160\164\151\157\x6e\163"][0]) && $xab["o\160\164\151\157\x6e\163"][0] == "\52" ) ? $xe5 = 0 : $xe5 = $x35;  (!isset($xab["o\160\164\151\157\x6e\163"][1]) || !$xab["o\160\164\151\157\x6e\163"][1]) ? $xe7 = 5 : $xe7 = $xab["o\160\164\151\157\x6e\163"][1];  $x2e = "";  if (isset($x78[$xb2->getId()][$xe5]["\143\157\165\x6et"])) { $xe6 = $x78[$xb2->getId()][$xe5]["\143\157\165\x6et"];  $xe8 = $xfc($x78[$xb2->getId()][$xe5]["s\x63\x6f\162e"] * $xe7 / 100, 2, "\x2e", "");  } if (isset($xe8) && $xe8 > 0) { $x2e.="<g\72\x70\162\157\144u\143\x74_\x72e\x76i\x65\167\137\141v\145\162a\x67e>\x3c!\x5b\103\x44A\x54A[" . $xe8 . "]\x5d\76<\57\147\72\160\x72o\144\x75\x63t\137\x72\145vi\145w_ave\x72ag\145\76\x0a";  } if (isset($xe6) && $xe6 > 0) { $x2e.="<\x67\72\x70rod\x75\143t\x5f\x72\x65\x76ie\167\137c\157u\156\x74>\x3c\x21\x5b\x43D\101\124A\133" . $xe6 . "\x5d]\76\x3c\57g:\160rod\x75c\164\137\x72\x65v\x69e\x77_\x63\x6fu\x6e\x74\76\x0a";  } unset($xe8);  unset($xe6);  break;  case "{G\x3aI\124\105\x4d\x5f\x47ROU\120\137I\x44}" : if (isset($this->configurable[$product->getId()])) { $xb2 = $this->checkReference('configurable', $product);  $x2e = "\74\147\x3a\151\164e\155\137gr\x6f\x75p_i\144>\74\x21\133\103\104\101\124\x41\133" . $xb2->getSku() . "]\135\76\x3c\57\x67:\151\164\x65\155_\147\162\157u\160\137\151\x64>";  } break;  case "\173\123\x43:\x45\101\116\175" : ($xfe($xab['options'][0]) && $xab['options'][0] > 0) ? $xe9 = $xab['options'][0] : $xe9 = 0;  $xb2 = $this->checkReference($xab['reference'], $product);  $x2e = $xff(',', $xb2->getEan());  $x2e = "<\x67\72\x65an\76<\41\x5b\x43D\101\x54\101[" . $x2e[$xe9] . "]\x5d\x3e\x3c/\x67\x3a\x65a\156\x3e";  break;  case "\x7b\x53C:IM\x41\x47\105\x53}" : $xb2 = $this->checkReference($xab['reference'], $product);  $xc1 = $xb2->getSmall_image();  $xc3 = array($xb2->getImage(), $xb2->getThumbnail());  $xc4 = '';  $xac = 0;  if ($xb2->getSmall_image() && $xb2->getSmall_image() != 'no_selection') { $xc2 = $xb2->getSmall_image();  $x2e = $xc2;  $xc4.="\74g\72imag\145\137\154i\156k\x3e<\41\133\x43DAT\x41\x5b" . $x2e . "\x5d]\76\x3c/g:\151\155a\x67\x65_li\x6e\x6b\76\x0a";  $xac++;  } $xc5 = 0;  while (isset($x7e[$xb2->getId()]['src'][$xc5]) && $xac < 10) { if ($x7e[$xb2->getId()]['src'][$xc5] != $xc1) { if ($x10b($x7e[$xb2->getId()]['src'][$xc5], $xc3) || $x7e[$xb2->getId()]['disabled'][$xc5] != 1) { $xc2 = $x7e[$xb2->getId()]['src'][$xc5];  $x2e = $xc2;  $xc4.="\x3cg\x3a\141\144dit\151\157n\141\154\x5f\151m\x61\x67e\x5fl\x69\x6ek\76<!\133C\x44A\x54A\x5b" . $x2e . "\135\135>\x3c\x2f\147:\x61\x64\x64\x69\164\x69\x6fn\x61\154\137\151\155\x61g\x65_\x6c\x69\x6e\x6b\x3e\x0a";  $xac++;  } } $xc5++;  } $x2e = $xc4;  break;  case "\173\123\103\72\x44\x45\x53\103R\x49\x50\x54I\117\x4e\175" : $xb2 = $this->checkReference($xab['reference'], $product);  $xea = $xb2->getDescription() . $xb2->getShortDescription();  $xeb = "|\x3c\x69f\x72am\145(\x2e\52)\74/i\x66\x72\x61\155\x65\76|U";  $xf9($xeb, $xea, $xec);  if ($xec) { $xea = $xb2->getAttributeText('manufacturer') . "\40" . $xb2->getName() . "\x20\x2d\40P\141\162\164\x20\156\165mb\x65r\72 " . $xb2->getSku() . "\x20-\40C\141\x74e\147\157\162y \x3a \x7b\143a\164\145\147or\151\145\x73\54\x5b\61\x5d\54[\61\x5d\54\133\61]\175";  } else { if ($x10b("s\x74\x72\x69\160\137\x74\x61gs", $xab['options'])) { $xea = $x119('!\<br /\>!isU', "\40", $xea);  $xea = $x119('!\<br/\>!isU', "\40", $xea);  $xea = $x119('!\<br>!isU', "\40", $xea);  $xea = $x11a($xea);  } if ($x10b("\150tm\154\137\145\x6e\164\x69\164y\137\x64e\x63\157d\145", $xab['options'])) { $xea = $x11b($xea, ENT_QUOTES, 'UTF-8');  } if ($x10b("\150tml\x65\156t\151\x74\151\145\163", $xab['options'])) { $xea = $x11c(($xea));  } if ($xf5($xea) > 900) { $xea = $x100($xea, 0, 900 - 3);  $xed = $x11d($xea, "\40");  $xea = $x100($xea, 0, $xed) . '...';  } } if ($xea == null) $xea = $xb2->getAttributeText('manufacturer') . "\40" . $xb2->getName() . "\x20\x2d\40P\141\162\164\x20\156\165mb\x65r\72 " . $xb2->getSku() . "\x20-\40C\141\x74e\147\157\162y \x3a \x7b\143a\164\145\147or\151\145\x73\54\x5b\61\x5d\54[\61\x5d\54\133\61]\175";  $xea = $x119('/' . '[\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', ' ', $xea);  $xea = $xf7(' ', '', $xea);  $x2e = "\x3cd\145\163\x63\x72\151p\x74\151\x6fn\76<\x21[\x43DA\124\101\133" . $xea . "\x5d\135><\x2f\144e\x73\143r\x69p\164\151o\x6e\76";  break;  case "\x7bS\103\x3a\x55\122\x4c\x7d" : (isset($xab['options'][0])) ? $xee = $xab['options'][0] : $xee = "";  (isset($xab['options'][1])) ? $xef = $xab['options'][1] : $xef = "";  $xb2 = $this->checkReference($xab['reference'], $product);  if ($xb2->getRequest_path()) { $x2e = "\74\x6ci\x6ek\76\x3c\x21\133\x43\x44AT\101\133" . $x3d . $xef . $xb2->getRequest_path() . $xee . "]]\x3e\x3c\x2f\x6c\151\156\153\x3e";  } else { $x2e = "\74\x6ci\x6ek\76\x3c\x21\133\x43\x44AT\101\133" . $xb2->getProductUrl() . "]]\x3e\x3c\x2f\x6c\151\156\153\x3e";  } break;  case "{S\x43\72\103\x4f\116\x44\111T\x49O\116\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  ($x11e($xb2->getName(), "\x72\145\x66u\162bi\163\x68e\x64")) ? $x9d = 'refurbished' : $x9d = 'new';  $x2e = "<\x67:\143on\x64it\151\x6f\x6e>\74\41\133C\x44\x41T\x41\133" . $x9d . "]]></\147\x3a\143\157\x6ed\151\164\151\x6f\156\76";  break;  case "\x7bs\143\x3ac\x6f\156\144itio\x6e\x7d" : $xb2 = $this->checkReference($xab['reference'], $product);  ($x11e($xb2->getName(), "\x72\145\x66u\162bi\163\x68e\x64")) ? $x9d = 'refurbished' : $x9d = 'new';  $x2e = $x9d;  break;  default : $xb2 = $this->checkReference($xab['reference'], $product);
 if ($x10b($xab['name'], $x62)) { if ($x10b($x63[$xab['name']], array('select', 'multiselect'))) { eval('$xf1 =($xb2->' . $xab['methodName'] . ")\x3b");  $xf0 = $xff(',', $xf1);  if ($xfd($xf0) > 1) { $x2e = array();  foreach ($xf0 as $xa3) { if (isset($x68[$xa3][$x35])) $x2e[] = $x68[$xa3][$x35];  else { if (isset($x68[$xa3][0])) $x2e[] = $x68[$xa3][0];  } } } else { if (isset($x68[$xf0[0]][$x35])) { $x2e = $x68[$xf0[0]][$x35];  } else { if (isset($x68[$xf0[0]][0])) $x2e = $x68[$xf0[0]][0];  } } } else { eval('$x2e =($xb2->' . $xab['methodName'] . ")\x3b");  } } if ($x10b(@$x60[$xab['name']], $x60)) { $x2e = $x60[$xab['name']];  } $x2e = $x119('/' . '[\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 = $xf7(' ', '', $x2e);  $xf2 = 0;  if ($xfd($xab['options']) > 0) { while (isset($xab['options'][$xf2])) { switch ($xab['options'][$xf2]) { case "\163\x75\x62\163t\x72" : if (isset($xab['options'][$xf2 + 1]) && $xf5($x2e) > $xab['options'][$xf2 + 1]) { $x2e = $x100($x2e, 0, $xab['options'][$xf2 + 1] - 3);  $xed = $x11d($x2e, "\40");  $x2e = $x100($x2e, 0, $xed) . $xab['options'][$xf2 + 2];  } $xf2++;  $xf2++;  break;  case "\150tml\x65\156t\151\x74\151\145\163" : $x2e = $x11c(($x2e));  break;  case "s\x74\x72\x69\160\137\x74\x61gs" : $xf3 = "\40";  $x2e = $x119('!\<br /\>!isU', $xf3, $x2e);  $x2e = $x119('!\<br/\>!isU', $xf3, $x2e);  $x2e = $x119('!\<br>!isU', $xf3, $x2e);  $x2e = $x11a($x2e);  break;  case "\x69\x6dp\x6cod\x65" : $x2e = ($x106($x2e)) ? $xf6($xab['options'][$xf2 + 1], $x2e) : $x2e;  $xf2++;  break;  case "\x66\154o\x61\x74" : $x2e = $xfc($x2e, $xab['options'][$xf2 + 1], '.', '');  $xf2++;  break;  case "\150tm\154\137\145\x6e\164\x69\164y\137\x64e\x63\157d\145" : $x2e = $x11b($x2e, ENT_QUOTES, 'UTF-8');  break;  case "\x69\x6e\x6c\x69\x6ee": $x2e = $x119('/(\r\n|\n|\r|\r\n|\t)/s', '', $x2e);  break;  case "s\164\x72\164\157\154\157\167e\x72": $x2e = $x11f($x2e, "\x55T\x46\70");  break;  case "\x73\x74\162\x74oup\160\x65\x72": $x2e = $x120($x2e, "\x55T\x46\70");  break;  case "\143\x6c\145\141\x6e\x65\x72": $x2e = $x119('/' . '[\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 = $xf7(' ', '', $x2e);  break;  default : if ($x11e($xab['options'][$xf2], "\45\163")) { $xad = $xf7("\45\163", '$x2e', $xab['options'][$xf2]);  eval('$x2e=' . $xad . '; ');  } else eval('$x2e=' . $xab['options'][$xf2] . '($x2e); ');  break;  } $xf2++;  } } break;  } $x2e = $xf7(array("\x3c", "\76", '"', '\\'), array("_\137\x4c\117W\x45R\x54\x48A\x4e_\x5f", "\x5f\x5fH\x49\107\x48\105\x52T\110\101N\x5f\x5f", "\x5f\x5f\x51\x55OT\105\123\137\137", "\137_B\x41CK\123\x4cA\x53\x48\137\137"), $x2e);  if ($x106($x2e)) $x2e = $xf6("\x2c", $x2e);  if ($x2e != "") $x2c = $xf7($xab['fullpattern'], $x2e, $x2c);  } foreach ($x52 as $xf4) { $x2c = $xf7($xf4['fullpattern'], "", $x2c);  } $x2c = $this->x124($x2c, $product);  $x2c = $this->x128($x2c);  $x2c = $this->x127($x2c);  $x2c = $xf7(array("_\137\x4c\117W\x45R\x54\x48A\x4e_\x5f", "\x5f\x5fH\x49\107\x48\105\x52T\110\101N\x5f\x5f", "\x5f\x5f\x51\x55OT\105\123\137\137", "\137_B\x41CK\123\x4cA\x53\x48\137\137"), array("\x3c", "\76", '"', '\\'), $x2c);  if (!empty($x2c)) { $x4f.=("<\151\164\145\x6d\76");  $x4f.="\x0a" . $x2c . "\x0a";  $x4f.=("\x3c\x2f\x69tem\76" . "\x0a");  $x9a++;  $this->_inc = $xa9;  $xa9++;  } if ($this->_display) { $x50.=$x4f;  $x4f = '';  } else { if ($x9a % Mage::getStoreConfig("s\151\155\160\154eg\x6f\157\x67\154e\163\x68o\160p\x69\156\147\57s\171\x73\x74e\155/b\165\146\146\x65r") == 0) { $x20->streamWrite($x4f);  unset($x4f);  $x4f = '';  Mage::log("\x0a\x3e\76\76>>>\x3e\x3e>>\76>\76\76>>>\76\76\76>\76\76\76\76\x3e>>>>\76\x3e\76\x3e>\x3e\x3e\x3e\76>\x3e>\76\76\x3e\76" . $xa9 . "\x2f" . $this->_counter . " \x69t\145m\x73 \141d\x64\x65\144", null, $this->getSimplegoogleshoppingFilename() . '.log');  } } if ($this->_limit && $xa9 > $this->_limit) { break 2;  } } } $x4f.=('</channel>' . "\x0a");  $x4f.=('</rss>');  if (!$this->_display) { $x20->streamWrite($x4f);  } Mage::log("\x0a\76>\76\x3e\76>\76\76>>\x3e\x3e>\x3e\x3e>\76>\76>>\76>\x3e\x3e>\x3e\x3e\x3e\76\x3e\76\x3e>>\76\76\x3e\x3e\76\x3e\x3e\76>\76> " . ($xa9 - 1) . "\x2f" . $this->_counter . " \x69t\145m\x73 \141d\x64\x65\144", null, $this->getSimplegoogleshoppingFilename() . '.log');  unset($x88);  $x50.=$x4f;  if ($this->_display && !$this->_debug) { (!Mage::app()->getRequest()->getParam("r\145\141\154\137\164\151\155e\137\x70\x72\145v\x69\145\x77")) ? $xea = "\74\x74\x65\x78t\x61\162\145\x61 \x69\144\x3d\47\103\157deM\151\162\162\x6f\x72\47\40c\154\141\x73\163\x3d\47\103\157\x64\145M\151\162ro\x72'\x3e" . ($x50) . "\74\57t\145\170\x74ar\145\x61\76" : $xea = $x50;  if ((!Mage::app()->getRequest()->getParam("r\145\141\154\137\164\151\155e\137\x70\x72\145v\x69\145\x77"))) { return("\x0d \x20 \x20\x20\x09 \x3c\x68\164m\x6c> \x0a \40\x20\x20\x09\11\x3c\x68e\141\x64>\15 \11 <\164\151\x74\154\x65>" . $this->getSimplegoogleshoppingFilename() . "<\x2ftit\x6ce\x3e\15\x0a\x20\40\x20\40 \x20\x20 \40 \x20\40\40 \x3cl\151\156k\x20\162\145\x6c\75's\164\x79\x6ces\150\145\145t\47\40h\x72\x65\146\75\47" . $x3c . "\x73\x6bin\57\x61\144m\151nh\x74ml/d\x65\146\141\165l\x74\57\x64\145\x66\141u\154t\x2f\103o\x64\145\115\x69r\x72or\62\x2fl\151b\57\x63o\x64e\155\x69rr\x6f\162.c\x73\163\47\76\x0d\12\40\40\x20 \x20\x20\40\x20\40\40\40\x20\x20 \x20\x20\74l\x69\156\153\40r\145\x6c\x3d\x27st\x79\154\145\163\150\x65et' \x68\x72\145\x66\x3d\x27" . $x3c . "\163\153i\x6e/\x61d\x6d\x69\156\150\164\155\154\x2fde\146\x61\x75l\x74/\144\x65fa\165\x6c\x74/\103\157\144\145\x4di\x72\162or\62/\164\x68\x65\155e\x2f\x64\x65\x66a\x75\x6c\164\56c\163s'\76\15\12\x20\x20\x20\x20 \x20 \x20\15\x0a\x20 \40\x20 \x20\x20 \40\x20\40 \x20 \x3c\x73\143\162\151\160\164\40\164y\160\x65=\x27\x74\x65xt\x2fja\166\x61\163c\x72ip\164' \163\x72\x63\x3d\47" . $x3c . "\163k\x69\x6e/\141\x64m\151\156h\164\155\x6c\x2f\x64\145\146\141\165\154\164\57\x64\x65\x66a\x75\154t/\x43od\x65\115\x69\x72\x72\157\162\62\x2f\x6ci\x62\x2f\x63o\144e\x6d\x69\x72r\157\162.\x6as\47\x3e\74\57s\x63\162\151\160\164>\x0d\x0a \x20\x20\x20\40\x20 \x20\x20\x20\x20 \40\x20<\163\143ript\x20\x74\x79\160e=\47t\145\170t/j\x61va\x73\x63\x72\x69\x70t'\x20s\x72c\75'" . $x3c . "\163\x6bin\57\141\144\x6d\x69\x6eht\x6d\154/\144\145f\141\165l\164\57d\x65fa\x75\154\x74\x2f\x43\157\x64e\x4d\151\x72\x72o\162\62\x2f\155o\144\x65\x2f\x78\x6dl\57\x78\155\x6c.\152\x73\47></\x73c\162\x69pt>\x0d \40\40 \x20\15\12\15 \40\40\40\x20\40 \40\15\12\40\x20\40\x20\x20\40\x20 \40\x20\40\40\x20\40\x20 \x0a\x20\40 \40\x20\40\x20 \40 \x20\x20\x20\40\x20</\x68\x65\x61\x64>\15\12\40\40 \40\40\x20\40 \x20 \40\x20 \x20 \74\142od\x79>\15\x0a\x20 \x20\x20\40\40 \x20\x20\40\40\40\40\x20\40\40" . $xea . "\x0d\x0a\x20\x20 \40\x20\40 \x20 \40\40 \40\x20\x3c\x73cr\x69\x70\x74\40\154a\156g\165\141\x67\145=\x27javasc\162\151\160\164\x27> \x0a \40 \40\x20\40\x20 \x20\40\40\40 \40 \40\40\163\x48\x74\x6d\154=\144o\143\x75\x6d\145n\x74\56\147\x65\x74\105\x6c\x65m\145\156\x74\102\x79I\x64\50\x27Co\144e\115\x69\x72\x72o\162\47\51\x3b\15 \40\40\x20\x20 \x20 \x20\40\x20 \40\x20\40\x20\40\x20i\146\50\x74\171\x70\145o\146 s\x48\164m\x6c\40!\x3d \47\x75\156\x64\x65\x66i\x6ee\x64\47\x29{\x0d \x20\40 \40\40\x20\40\x20\40\x20\x20\40\40 \x20\40 \40 \x20 \40\x20v\141r \155y\103\157\144\145M\x69r\162\x6f\x72\40\75 \x43\x6f\144\x65\115\151r\162\157\162(\146\x75\x6e\143\x74i\157\156\x28e\x6c\x74\x29 \173\15 \x20 \40\x20\x20 \40\40\x20\x20 \40\x20\x20 \x20 \x20 \x20\x20 \x20\x20\40s\110\164m\154.\x70\141ren\x74\x4eode.\x72\x65pl\x61ce\x43h\x69ld\x28\145\154t,\40\x73Ht\155\154)\175, \x7b\15 \x20 \x20 \x20\40 \x20\x20 \40 \40\40\40\40\40\40 \x20\x20\40 \166\x61\154ue\72\40s\110\164\155l.\x76a\x6cu\145\x2c\15\x0a\40\x20\40 \x20\40\x20\40\x20 \x20\x20\40 \x20 \40 \40 \40\x20\40\40 \40\40m\x6f\144\145\x3a\x20\40\x27\170\155\154\47\x2c \40\x20\40 \x20\x20\40\40\x20\x20\x20\x20 \40\40 \x20\x20 \40\40\x20 \x20 \40\162\145\141\x64O\156ly: \x74\162\x75\145\15\x0a\15\x0a \x20 \x20\40 \40\x20 \40\x20\40\x20\40\x20\40 \x20\40\40\x20\40 \175\51\15\x0a \x20\40\x20\x20 \x20\x20 \40 \40\40\x20\x20\40\40 \x7d\15\x0a\x20\x20\40\40\x20\x20\40\40 \40 \40\x20 \x20\15\12 \x20\x20\40 \40\40\x20\x20\40\40 \40\40 \x20</\x73\x63\162\x69p\x74\76\x0d \40\x20\40 \x20\40\x20\40\40 \x20 \40\x20\40</\142\x6f\144\x79\x3e \12\40\40\40\x20 \40\40 \40 \40\40\40 \x20\74/\x68\x74ml\x3e");  } else return $xea;  } elseif ($this->_debug) { echo "\74\x62\x72\x3e\74\142r\x3e-\55--\55\x2d\55\x2d--\x2d\55\x20\130\x4d\114\x20OU\x54P\125\124\40-\55-\x2d-\55\x2d\55\x2d-\55\55----\74b\x72>";  $xea = "\74\160\162\145\76" . $x121($x50) . "\x3c/\160\162\x65>";  return $xea;  } else { Mage::log("\x0a\x3e\76\76\76\76\x3e\76\x3e\76\76\76\x3e\76\76\x3e\76\x3e>>\x3e\76\x3e\76\x3e>\76>\x3e\x3e\x3e\x3e\76>>>\x3e\x3e\76\76\76\x3e>>\76\76>\x20File\x20\x63\x6c\x6fse\x64", null, $this->getSimplegoogleshoppingFilename() . '.log');  $x20->streamClose();  $this->setSimplegoogleshopping_time(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s'));  $this->save();  } Mage::app()->setCurrentStore(0);  return $this;  } } ; 

Function Calls

None

Variables

None

Stats

MD5 9435f2032cbe2d71ce433c3d1081c7f8
Eval Count 0
Decode Time 608 ms