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 $x35 = 0; protected $_filePath; public $_limit = false; public $_display = false; public $_rates = false; public $_sqlSize = 1500; public function x14f($x36, $x37) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; if ($x11f($x36) == $x11f($x37)) { return 0; } return ($x11f($x36) < $x11f($x37)) ? 1 : -1; } public function x14fArray($x36, $x37) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars";
$x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; if ($x11f($x120('', $x36)) == $x11f($x120('', $x37))) { return 0; } return ($x11f($x120('', $x36)) < $x11f($x120('', $x37))) ? -1 : 1; } public function x151($myPattern, $product, $x38 = true) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr";
$x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $myPattern = $x121('<?', $x122('__PHP__'), $myPattern); $myPattern = $x121('?>', $x122('/__PHP__'), $myPattern); $x39 = $x122('#(__PHP__)(.*?)/#s'); $x123($x39, $myPattern, $x3a); if (isset($x3a[1])) { foreach ($x3a[0] as $x3b => $x3c) { if ($x38 == 1) { if (@eval($x3a[2][$x3b] . '; ')) $myPattern = $x121($x3c, eval($x3a[2][$x3b] . '; '), $myPattern); else $myPattern = $x121($x3c, '', $myPattern); } else { if (@eval($this->unescapeStr($x3a[2][$x3b] . '; '))) $myPattern = $x121($x3c, $this->escapeStr(eval($this->unescapeStr($x3a[2][$x3b]) . '; ')), $myPattern); else $myPattern = $x121($x3c, '', $myPattern); } } } return $myPattern; } protected function _construct() { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $this->_sqlSize = Mage::getStoreConfig("simplegoogleshopping/system/sqlsize"); $this->_init('simplegoogleshopping/simplegoogleshopping'); } protected function _beforeSave() { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs";
$x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $x3d = new Varien_Io_File(); $x3e = $x3d->getCleanPath(Mage::getBaseDir() . '/' . $this->getSimplegoogleshoppingPath()); if (!$x3d->allowedPath($x3e, Mage::getBaseDir())) { } if (!$x3d->fileExists($x3e, false)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please create the specified folder %s before saving the googleshopping.', Mage::helper('core')->htmlEscape($this->getSimplegoogleshoppingPath()))); } if (!$x3d->isWriteable($x3e)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please make sure that %s is writable by web-server.', $this->getSimplegoogleshoppingPath())); } if (!$x124('#^[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 (!$x124('#\.xml$#', $this->getSimplegoogleshoppingFilename())) { $this->setSimplegoogleshoppingFilename($this->getSimplegoogleshoppingFilename() . '.xml'); } $this->setSimplegoogleshoppingPath($x125($x121($x121('\', '/', Mage::getBaseDir()), '', $x3e), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; if ($x126($this->_filePath)) { $this->_filePath = $x121('//', '/', Mage::getBaseDir() . $this->getSimplegoogleshoppingPath()); } return $this->_filePath; } public function getPreparedFilename() { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get";
$x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; return $this->getPath() . $this->getSimplegoogleshoppingFilename(); } public function x152($x3f, $x40) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $x41 = $this->_currencies; if (isset($x41[$x40])) return $x3f * $x41[$x40]; else { return $x3f; } } public function x153($x3f, $x42, $x43, $x44 = false) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get";
$x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $x45 = $this->_rates; $x3f = $x127($x3f, 2, '.', ''); if ($x44 === false) { if (!$x42 && isset($x45[$x43])) { if ($x128($x45[$x43]) > 1) { return $x3f; } else { return $x3f * ($x45[$x43][0]['rate'] / 100 + 1); } } else { return $x3f; } } elseif ($x44 === "0") { if ($x42 && isset($x45[$x43])) { if ($x128($x45[$x43]) > 1) { return $x3f; } else { return 100 * $x3f / (100 + ($x45[$x43][0]['rate'])); } } else { return $x3f; } } else { if ($x129($x44)) { if ($x43 != 0) { return $x3f * ($x44 / 100 + 1); } elseif ($x43 == 0) { return $x3f; } } else { $x44 = $x12a('/', $x44); $x46 = 0; $x47 = false; if ($x12b($x44[0], 0, 1) == "-") { $x44[0] = $x12b($x44[0], 1); $x47 = true; } if ($x45[$x43]) { foreach ($x45[$x43] as $x48) { if ($x48['country'] == $x44[0]) { if (!isset($x44[1]) || $x48['code'] == $x44[1]) { $x46 = $x48['rate']; break; } } } if (!$x47) return $x3f * ($x46 / 100 + 1); else { return 100 * $x3f / (100 + ($x46)); } } else { return $x3f; } } } } public function x154($x49, $x4a = true) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; $x39 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x123($x39, $x49, $x3a); foreach ($x3a[1] as $x3b => $x4b) { $x4c = $x12c($x3a[2][$x3b]); if (empty($x4c) && !$x129($x4c)) $x49 = $x121($x3a[0][$x3b], '', $x49); else { if ($x4a) $x49 = $x121($x3a[0][$x3b], ($x3a[1][$x3b]) . '<![CDATA[' . $x4c . ']]>' . ($x3a[3][$x3b]), $x49); else $x49 = $x121($x3a[0][$x3b], ($x3a[1][$x3b]) . $x4c . ($x3a[3][$x3b]), $x49); } } $x36 = $x12d("/
/s", $x49); $x4d = ''; foreach ($x36 as $x4e) { ($x11f($x12c($x4e)) > 0) ? $x4d.=$x4e . "
" : false; } $x49 = $x4d; return $x49; } public function x155($x49) { $x11f="strlen";
$x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; if ($this->_display) return ($x49); else { if ($this->_chartset == 'ISO') return $x12e($x49); else { return ($x49); } } } public function checkReference($x4f, $product) { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="htmlentities"; if (($x4f == "parent" || $x4f == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x4f == "parent" || $x4f == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];
elseif (($x4f == "parent" || $x4f == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()]; else { return $product; } } public function generateXml() { $x11f="strlen"; $x120="implode"; $x121="str_replace"; $x122="utf8_encode"; $x123="preg_match_all"; $x124="preg_match"; $x125="rtrim"; $x126="is_null"; $x127="number_format"; $x128="count"; $x129="is_numeric"; $x12a="explode"; $x12b="substr"; $x12c="trim"; $x12d="preg_split"; $x12e="utf8_decode"; $x12f="is_string"; $x130="json_decode"; $x131="is_array"; $x132="ucwords"; $x133="array_push"; $x134="print_r"; $x135="version_compare"; $x136="in_array"; $x137="sprintf"; $x138="array_pop"; $x139="ceil"; $x13a="ini_get"; $x13b="set_time_limit"; $x13c="unserialize"; $x13d="getType"; $x13e="round"; $x13f="str_pad"; $x140="abs"; $x141="floor"; $x142="usort"; $x143="array_shift"; $x144="array_reverse"; $x145="array_values"; $x146="preg_replace"; $x147="strip_tags"; $x148="html_entity_decode"; $x149="htmlspecialchars"; $x14a="strrpos"; $x14b="stristr"; $x14c="mb_strtolower"; $x14d="mb_strtoupper"; $x14e="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; $x50 = $this->_indexPhp; $x3d = new Varien_Io_File(); $x3d->setAllowCreateFolders(true); if (!$this->_display) { $x3d->open(array('path' => $this->getPath())); if ($x3d->fileExists($this->getSimplegoogleshoppingFilename()) && !$x3d->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())); } $x3d->streamOpen($this->getSimplegoogleshoppingFilename()); } $x51 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "sgs", "ver" => "8.1.0"); $x12f(Mage::app()->getRequest()->getParam("store_id")) ? $x52 = Mage::app()->getRequest()->getParam("store_id") : $x52 = $this->getStoreId(); $x53 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x54 = Mage::getDesign()->getSkinUrl(); $x55 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x52); $x56 = Mage::getStoreConfig("currency/options/base", $x52); $x57 = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x52); $x58 = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x52); $x59 = Mage::app()->getStore($x52)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x5a = Mage::getModel('core/store')->load($x52)->getBaseUrl(); $x5b = Mage::app()->getStore($x52)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x5c = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x52); $x5d = Mage::app()->getStore($x52)->getRootCategoryId(); $x5e = Mage::app()->getStore()->getStoreId(); $x5f = 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"), ); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_xmlitempattern")) ? $x60 = Mage::app()->getRequest()->getParam("simplegoogleshopping_xmlitempattern") : $x60 = $this->getSimplegoogleshoppingXmlitempattern(); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_title")) ? $x61 = Mage::app()->getRequest()->getParam("simplegoogleshopping_title") : $x61 = $this->getSimplegoogleshoppingTitle(); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_description")) ? $x62 = Mage::app()->getRequest()->getParam("simplegoogleshopping_description") : $x62 = $this->getSimplegoogleshoppingDescription(); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_categories")) ? $x63 = $x130(Mage::app()->getRequest()->getParam("simplegoogleshopping_categories")) : $x63 = $x130($this->getSimplegoogleshoppingCategories()); $x12f(Mage::app()->getRequest()->getParam("category_filter")) ? $x64 = Mage::app()->getRequest()->getParam("category_filter") : $x64 = $this->getSimplegoogleshoppingCategoryFilter(); $x65 = Array(); $x66 = Array(); if ($x131($x63)) { foreach ($x63 as $x67) { if ($x67->checked) $x65[] = $x67->line; } foreach ($x63 as $x67) { if ($x67->mapping != "") $x66[$x67->line] = $x67->mapping; } } if ($x128($x65) < 1) { $x65[] = '*'; } $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_type_ids")) ? $x68 = $x12a(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_type_ids")) : $x68 = $x12a(',', $this->getSimplegoogleshoppingTypeIds()); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_visibility")) ? $x69 = $x12a(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_visibility")) : $x69 = $x12a(',', $this->getSimplegoogleshoppingVisibility()); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_attributes")) ? $x6a = $x130(Mage::app()->getRequest()->getParam("simplegoogleshopping_attributes")) : $x6a = $x130($this->getSimplegoogleshoppingAttributes()); $x12f(Mage::app()->getRequest()->getParam("simplegoogleshopping_attribute_sets")) ? $x6b = $x12a(',', Mage::app()->getRequest()->getParam("simplegoogleshopping_attribute_sets")) : $x6b = $x12a(',', $this->getSimplegoogleshoppingAttributeSets()); if ($x5f[$x51['ac']] != $x51["md"]($x51["md"]($x5f[$x51['ak']]) . $x51["md"]($x5f[$x51['bu']]) . $x51["md"]($x51["ext"]) . $x51["md"]($x51["ver"]))) { $$x51["ext"] = "valid"; $$x51["th"]->$x51["dm"] = true; } else { $$x51["th"]->$x51["dm"] = false; $$x51["ext"] = "valid"; } $x6c = ''; $x6d = ''; header("Content-Type: text/html; charset=utf-8"); $x6c = ('<?xml version="1.0" encoding="utf-8" ?>' . "
"); $x6c.=('<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">' . "
"); $x6c.=('<channel>' . "
"); $x6c.=('<title>' . $x61 . "</title>
"); $x6c.=('<link>' . $x12b($x59, 0, -1) . "</link>
");
$x6c.=('<description>' . $x62 . "</description>
"); if (!isset($$x51["ext"]) || $$x51["th"]->$x51["dm"]) { $$x51["th"]->$x51["dm"] = true; return $$x51["th"]; } if ($this->_display) $x6d = $this->x155($x6c); else { $x3d->streamWrite($this->x155($x6c)); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->getSimplegoogleshoppingFilename() . " created and opened", null, $this->getSimplegoogleshoppingFilename() . '.log'); } $x39 = '/{([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)?([^}|]*))?}/'; $x123($x39, $x60, $x3a); foreach ($x3a[6] as $x3b => $x6e) { if ($x6e != "") { $x3a[0][] = $x3a[0][$x3b]; $x3a[1][] = $x6e; $x3a[2][] = $x3a[7][$x3b]; $x3a[3][] = $x3a[8][$x3b]; ; $x3a[4][] = $x3a[9][$x3b]; ; } } foreach ($x3a[11] as $x3b => $x6e) { if ($x6e != "") { $x3a[0][] = $x3a[0][$x3b]; $x3a[1][] = $x6e; $x3a[2][] = $x3a[7][$x3b]; $x3a[3][] = $x3a[8][$x3b]; ; $x3a[4][] = $x3a[9][$x3b]; ; } } foreach ($x3a[16] as $x3b => $x6e) { if ($x6e != "") { $x3a[0][] = $x3a[0][$x3b]; $x3a[1][] = $x6e; $x3a[2][] = $x3a[7][$x3b]; $x3a[3][] = $x3a[8][$x3b]; ; $x3a[4][] = $x3a[9][$x3b]; ; } } $x3a[0][] = "{categories,[1],[1],[1]}"; $x3a[1][] = "categories"; $x3a[2][] = ""; $x3a[3][] = ",[1],[1],[1]"; $x6f = array(); $x70 = array(); foreach ($x3a[1] as $x3b => $x6e) { $x6f[$x3b]['methodName'] = "get" . $x121(' ', '', $x132($x12c($x6e)) . '()'); $x6f[$x3b]['pattern'] = "{" . $x12c($x6e) . "}"; $x6f[$x3b]['fullpattern'] = $x3a[0][$x3b]; $x6f[$x3b]['name'] = $x12c($x6e); $x6f[$x3b]['reference'] = $x12c($x3a[2][$x3b]); if (empty($x6f[$x3b]['reference'])) $x6f[$x3b]['reference'] = 'self'; switch ($x6f[$x3b]['name']) { case 'url': $x133($x70, 'url_key'); break; case 'uri': $x133($x70, 'url_key'); break; case 'G:IMAGE_LINK': $x133($x70, 'image'); $x133($x70, 'small_image'); $x133($x70, 'thumbnail'); break; case 'SC:IMAGES': $x133($x70, 'image'); $x133($x70, 'small_image'); $x133($x70, 'thumbnail'); break; case 'SC:DESCRIPTION': $x133($x70, 'description'); $x133($x70, 'short_description'); $x133($x70, 'manufacturer'); $x133($x70, 'name'); $x133($x70, 'sku'); break; case 'SC:EAN': $x133($x70, 'ean'); break; case 'SC:URL': $x133($x70, 'url_key'); $x133($x70, 'url'); break; default : $x133($x70, $x6f[$x3b]['name']); } $x6f[$x3b]["value"] = '$product->get' . $x6f[$x3b]['name'] . "()"; $x6f[$x3b]["getText"] = 'getAttributeText(\'' . $x12c($x6e) . '\')'; $x71 = '/\[([^\]]+)\]/'; $x123($x71, $x3a[3][$x3b], $x72); $x6f[$x3b]["options"] = $x72[1]; } if ($this->_debug) { echo "----------------------------------------------<br>
------------ DEBUG MODE ----------------<br>
----------------------------------------------<br><br>"; echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $x134($x6f); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x73 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x52) ->addAttributeToSelect('name', 'store_id') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x74 = array(); foreach ($x73 as $x75) { $x74[$x75->getId()]['name'] = $x75->getName(); $x74[$x75->getId()]['path'] = $x75->getPath(); $x74[$x75->getId()]['level'] = $x75->getLevel(); if ($x135(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("simplegoogleshopping/system/include_in_menu")) $x74[$x75->getId()]['include_in_menu'] = true; else $x74[$x75->getId()]['include_in_menu'] = $x75->getIncludeInMenu(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $x134($x74); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Categories collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x78 = $x76->getTableName('eav_entity_type'); $x79 = $x77->select()->from($x78)->where('entity_type_code=\'catalog_product\''); $x7a = $x77->fetchAll($x79); $x7b = $x7a[0]['entity_type_id']; $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x7c = $x76->getTableName('directory_currency_rate'); $x79 = $x77->select()->from($x7c)->where('currency_from=\'' . $x56 . '\''); $x41 = $x77->fetchAll($x79); $x7d = array(); foreach ($x41 as $x40) { $x7d[$x40['currency_to']] = $x40['rate']; } $this->_currencies = $x7d; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $x134($x7d);
} Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x7e = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x7b) ->addSetInfo() ->getData(); $x7f = array(); $x80 = array(); foreach ($x7e as $x3b => $x6e) { if ($x136($x6e['attribute_code'], $x70)) { $x133($x7f, $x6e['attribute_code']); $x80[$x6e['attribute_code']] = $x6e['frontend_input']; } } if (!$x136('special_price', $x7f)) $x7f[] = 'special_price'; if (!$x136('special_from_date', $x7f)) $x7f[] = 'special_from_date'; if (!$x136('special_to_date', $x7f)) $x7f[] = 'special_to_date'; if (!$x136('price_type', $x7f)) $x7f[] = 'price_type'; if (!$x136('price', $x7f)) $x7f[] = 'price'; $x7f[] = 'tax_class_id'; foreach ($x6a as $x81) { if (!$x136($x81->code, $x7f) && $x81->checked) if (!$x136($x81->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) $x7f[] = $x81->code; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $x134($x7f); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x82 = $x76->getTableName('eav_attribute_option_value'); $x79 = $x77->select(); $x79->from($x82); $x79->where("store_id=" . $x52 . ' OR store_id=0'); $x79->order(array('option_id', 'store_id')); $x83 = $x77->fetchAll($x79); foreach ($x83 as $x84) { $x85[$x84['option_id']][$x84['store_id']] = $x84['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $x134($x85); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x86 = $x76->getTableName('tax_class'); $x87 = $x76->getTableName('tax_calculation'); $x88 = $x76->getTableName('tax_calculation_rate'); $x89 = $x76->getTableName('directory_country_region'); $x8a = $x76->getTableName('customer_group'); $x79 = $x77->select(); $x79->from($x86)->order(array('class_id', 'tax_calculation_rate_id')); $x79->joinleft(array('tc' => $x87), 'tc.product_tax_class_id = ' . $x86 . '.class_id', 'tc.tax_calculation_rate_id'); $x79->joinleft(array('tcr' => $x88), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x79->joinleft(array('dcr' => $x89), 'dcr.region_id=tcr.tax_region_id', 'code'); $x79->joinInner(array('cg' => $x8a), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $x8b = $x77->fetchAll($x79); $x45 = array(); $x8c = ''; foreach ($x8b as $x8d) { if ($x8c != $x8d['class_id']) $x8e = 0; else { $x8e++; } $x8c = $x8d['class_id']; $x45[$x8d['class_id']][$x8e]['rate'] = $x8d['rate']; $x45[$x8d['class_id']][$x8e]['code'] = $x8d['code']; $x45[$x8d['class_id']][$x8e]['country'] = $x8d['tax_country_id']; } $this->_rates = $x45; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $x134($x45); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x8f = $x76->getTableName('review'); $x90 = $x76->getTableName('review_store'); $x91 = $x76->getTableName('rating_option_vote'); $x92 = $x77->select()->distinct('review_id'); $x92->from(array("r" => $x8f), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); $x92->joinleft(array('rs' => $x90), 'rs.review_id=r.review_id', 'rs.store_id'); $x92->joinleft(array('rov' => $x91), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x92->where("status_id=1 and entity_id=1"); $x92->group(array('r.entity_pk_value', 'rs.store_id')); $x93 = $x77->select(); $x93->from(array("r" => $x8f), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS store_id")); $x93->joinleft(array('rs' => $x90), 'rs.review_id=r.review_id', array()); $x93->joinleft(array('rov' => $x91), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x93->where("status_id=1 and entity_id=1"); $x93->group(array('r.entity_pk_value')); $x79 = $x77->select() ->union(array($x92, $x93)); $x79->order(array('entity_pk_value', 'store_id')); $x94 = $x77->fetchAll($x79); $x95 = array(); foreach ($x94 as $x96) { $x95[$x96['entity_pk_value']][$x96['store_id']]["count"] = $x96["count"]; $x95[$x96['entity_pk_value']][$x96['store_id']]['score'] = $x96['score']; } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x97 = $x76->getTableName('catalog_product_entity_media_gallery'); $x98 = $x76->getTableName('catalog_product_entity_media_gallery_value'); $x79 = $x77->select(array("DISTINCT value")); $x79->from($x97); $x79->joinleft(array('cpemgv' => $x98), 'cpemgv.value_id = ' . $x97 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x79->where("value<>TRIM('') AND (store_id=" . $x52 . ' OR store_id=0)'); $x79->order(array('position', 'value_id')); $x79->group(array('value_id')); $x99 = $x77->fetchAll($x79); foreach ($x99 as $x9a) { $x9b[$x9a['entity_id']]['src'][] = $x9a['value']; $x9b[$x9a['entity_id']]['disabled'][] = $x9a['disabled']; } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $x134($x9b); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); Mage::app()->setCurrentStore($x52); $x9c = $x76->getTableName("cataloginventory_stock_item"); $x9d = $x76->getTableName("core_url_rewrite"); $x7c = $x76->getTableName('catalog_category_product'); $x9e = $x76->getTableName('catalog_category_product_index'); $x9f = $x76->getTableName('catalog_product_index_price'); $xa0 = $x76->getTableName('catalog_product_super_link'); $xa1 = $x76->getTableName('catalog_product_link'); $xa2 = $x76->getTableName('catalog_product_bundle_selection'); ($x135(Mage::getVersion(), '1.6.0', '<')) ? $x72 = "options=''" : $x72 = "ISNULL(options)";
switch (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite")) { case 1 : $xa3 = "AND url.target_path NOT LIKE '%category%'"; $xa4 = 'MAX'; break; default : $xa3 = "AND url.target_path LIKE '%category%'"; $xa4 = 'GROUP_CONCAT'; break; break; } $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("in" => "configurable")); $xa5->addAttributeToFilter('visibility', array("nin" => 1)); $xa5->addAttributeToSelect($x7f, true); $xa5->getSelect()->joinLeft($xa0 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $xa5->getSelect()->joinLeft($x9c . ' 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')); $xa5->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xa5->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); $xa5->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa5->getSelect()->group(array('cpsl.parent_id')); $xa6 = array(); foreach ($xa5 as $xa7) { foreach ($x12a(",", $xa7->getChildIds()) as $xa8) { $xa6[$xa8] = $xa7; $xa9[$xa8]['categories_ids'] = $xa7->getCategories_ids(); $xa9[$xa8]['parent_id'] = $xa7->getId(); $xa9[$xa8]['parent_sku'] = $xa7->getSku(); $xa9[$xa8]['parent_request_path'] = $xa7->getRequestPath(); } } $this->configurable = $xa6; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo $xa5->getSelect() . '<br><br>'; $x134($xa9); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with configurable products detected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("in" => "configurable")); $xa5->addAttributeToFilter('visibility', array("nin" => 1)); $xa5->getSelect()->joinLeft($xa0 . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $xa5->getSelect()->joinLeft($x9c . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xa5->getSelect()->group(array('cpsl.parent_id')); $xaa = array(); foreach ($xa5 as $xab) { $xaa[$xab->getId()] = $xab->getQty(); } $this->configurableQty = $xaa; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo $xa5->getSelect() . '<br><br>'; $x134($xaa); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Qty for configurable products calculated", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("in" => "grouped")); $xa5->addAttributeToFilter('visibility', array("nin" => 1)); $xa5->addAttributeToSelect($x7f, true); $xa5->getSelect()->joinLeft($xa1 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xa5->getSelect()->joinLeft($x9c . ' 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')); $xa5->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xa5->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); $xa5->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa5->getSelect()->group(array('cpl.product_id')); $xac = array(); foreach ($xa5 as $xa7) { foreach ($x12a(",", $xa7->getChildIds()) as $xa8) { $xac[$xa8] = $xa7; $xad[$xa8]['categories_ids'] = $xa7->getCategories_ids(); $xad[$xa8]['parent_id'] = $xa7->getId(); $xad[$xa8]['parent_sku'] = $xa7->getSku(); $xad[$xa8]['parent_request_path'] = $xa7->getRequestPath(); } } $this->grouped = $xac; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo $xa5->getSelect() . '<br><br>'; $x134($xad); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("in" => "bundle")); $xa5->addAttributeToFilter('visibility', array("nin" => 1)); $xa5->addAttributeToSelect($x7f, true); $xa5->getSelect()->joinLeft($xa2 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xa5->getSelect()->joinLeft($x9c . ' 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')); $xa5->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xa5->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); $xa5->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa5->getSelect()->group(array('e.entity_id')); $xae = array(); foreach ($xa5 as $xa7) { foreach ($x12a(",", $xa7->getChildIds()) as $xa8) { $xae[$xa8] = $xa7; $xaf[$xa8]['parent_id'] = $xa7->getId(); $xaf[$xa8]['parent_sku'] = $xa7->getSku(); $xaf[$xa8]['parent_request_path'] = $xa7->getRequestPath(); $xaf[$xa8]['categories_ids'] = $xa7->getCategories_ids(); } } $this->bundle = $xae; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo $xa5->getSelect() . '<br><br>'; $x134($xaf); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xb0 = $x76->getTableName("catalog_product_option"); $xb1 = $x76->getTableName("catalog_product_option_title"); $xb2 = $x76->getTableName("catalog_product_option_type_value"); $xb3 = $x76->getTableName("catalog_product_option_type_title"); $xb4 = $x76->getTableName("catalog_product_option_type_price"); $xb5 = $x77->select(); $xb5->from(array("cpo" => $xb0), array("product_id")); $xb5->joinleft(array("cpot" => $xb1), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id")); $xb5->joinleft(array("cpotv" => $xb2), "cpotv.option_id = cpo.option_id", "sku"); $xb5->joinleft(array("cpott" => $xb3), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); $xb5->joinleft(array("cpotp" => $xb4), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); $x79 = $xb5->order(array("product_id", "cpotv.sort_order ASC")); $x94 = $x77->fetchAll($x79);
$xb6 = array(); $xb7 = 0; foreach ($x94 as $xb8) { $xb6[$xb8["product_id"]][$xb8["option"]]["options"][] = array( "value" => $xb8["value"], "sku" => $xb8["sku"], "price" => $xb8["price"], "price_type" => $xb8["price_type"] ); $xb7++; } $this->customOptions = $xb6; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo $xb5 . '<br><br>'; $x134($xb6); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); if (Mage::helper("core")->isModuleEnabled("Wyomind_Googlemerchantpromotions")) { $xb9 = Mage::getResourceModel('salesrule/rule_collection')->setOrder('sort_order', 'ASC')->addFieldToFilter("transferable_to_google_merchant", 1)->load(); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Promotions rules collected", null, $this->getSimplegoogleshoppingFilename() . '.log'); } $xba = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); if (Mage::getStoreConfig("simplegoogleshopping/system/disabled")) $xba->addFieldToFilter("status", array('gteq' => 1)); else $xba->addFieldToFilter("status", 1); $xba->addAttributeToFilter("type_id", array("in" => $x68)); $xba->addAttributeToFilter("visibility", array("in" => $x69)); if ($x6b[0] != '*') $xba->addAttributeToFilter("attribute_set_id", array("in" => $x6b)); $xba->addAttributeToSelect($x7f, true); $xbb = 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)", ); $xbc = ''; $x36 = 0; $xbd = array(); foreach ($x6a as $x81) { if ($x81->checked) { if ($x81->condition == 'in' || $x81->condition == 'nin') { if ($x81->code == 'qty' || $x81->code == 'is_in_stock') { $xbe = $x12a(',', $x81->value); $x81->value = "'" . $x120($xbe, "','") . "'"; } else { $x81->value = $x12a(',', $x81->value); } } switch ($x81->code) { case 'qty' : if ($x36 > 0) $xbc.=' ' . $x81->statement . ' '; $xbc.=" qty " . $x137($xbb[$x81->condition], $x81->value); $x36++; break; case 'is_in_stock' : if ($x36 > 0) $xbc.=' ' . $x81->statement . ' '; $xbc.=" (IF("; $xbc.="(use_config_manage_stock=1 AND $x57=0)"; $xbc.=" OR "; $xbc.='(use_config_manage_stock=0 AND manage_stock=0)'; $xbc.=" OR "; $xbc.="(use_config_manage_stock=1 AND $x57=1 AND is_in_stock=1 )"; $xbc.=" OR "; $xbc.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )"; $xbc.=",'1','0')" . $x137($xbb[$x81->condition], $x81->value) . ")"; $x36++; break; default : if ($x81->statement == "AND") { if ($x128($xbd)) $xba->addFieldToFilter($xbd); $xbd = array(); } if ($x81->condition == "in") { $xbf = true; $xc0 = array(); foreach ($x81->value as $xc1) { if (!$x129($xc1)) $xbf = true; } if ($xbf) { foreach ($x81->value as $xc1) { $xc0[] = array(array("finset" => $xc1)); } $xbd[] = array("attribute" => $x81->code, $xc0); } else $xbd[] = array("attribute" => $x81->code, $x81->condition => $x81->value); } else $xbd[] = array("attribute" => $x81->code, $x81->condition => $x81->value); break; } } }; if ($x128($xbd)) $xba->addFieldToFilter($xbd); $xba->getSelect()->joinLeft($x9c . ' 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')); $xba->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xba->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); if ($x65[0] != '*') { $xc1 = 0; $xc2 = null; foreach ($x65 as $x67) { if ($xc1 > 0) $xc2.=','; $xc2.=$x138($x12a('/', $x67)); $xc1++; } ($x64) ? $xc3 = "IN" : $xc3 = "NOT IN"; $xc2 = "AND categories_index.category_id " . $xc3 . " (" . $xc2 . ")"; $xba->getSelect()->joinInner($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52 . ' ' . $xc2, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else $xba->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); if ($x135(Mage::getVersion(), '1.4.0', '>=')) $xba->getSelect()->joinLeft($x9f . ' 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($x52)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xbc)) $xba->getSelect()->where($xbc); $xba->getSelect()->group("e.entity_type_id"); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request:
" . $xba->getSelect(), null, $this->getSimplegoogleshoppingFilename() . '.log'); if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>"; echo $xba->getSelect(); } $xc4 = 0; $xc5 = clone $xba; $xc5->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total"); $this->_counter = $xc5->getFirstItem()->getTotal(); $xc6 = $x139($this->_counter / $this->_sqlSize); $x6c = ''; $xc7 = 1; Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xc6 queries )", null, $this->getSimplegoogleshoppingFilename() . '.log'); while ($xc4 < $xc6) { $xa5 = clone $xba; if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>"; print($xa5->getSelect()); } $xa5->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc4)); $xa5->getSelect()->group(array('e.entity_id')); $xc4++; if ($this->_sqlSize * $xc4 > $this->_counter) $xc8 = $this->_counter; else $xc8 = $this->_sqlSize * $xc4; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->_sqlSize * ($xc4 - 1) + 1) . " to " . $xc8, null, $this->getSimplegoogleshoppingFilename() . '.log'); $xb7 = 1; foreach ($xa5 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>"; echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x5d . "<br>"; foreach ($x12a(',', $product->getCategoriesIds()) as $x3b => $x75) { echo $x75 . "=>" . $x74[$x75]["path"] . "<br>"; } } if (!$x13a('safe_mode')) { $x13b(60); } $x49 = $x60; foreach ($x6f as $x3b => $xc9) { $x4b = ""; switch ($xc9['pattern']) { case '{G:PROMOTION_ID}': $x4b = ""; $xca = clone $xb9; foreach ($xca as $xcb) { if ($xcb->getIsActive()) { ; $xcc = $x13c($xcb->getConditions_serialized()); $xcc = $xcc["conditions"];
$xcd = $xcb->getConditions(); $xce = $xcd->getAggregator() === 'all'; $xcf = (bool) $xcd->getValue(); $xd0 = ($xce) ? true : false; $xd0 = (!$x128($xcd->getConditions())) ? true : $xd0; $xd1 = 0; foreach ($xcd->getConditions() as $xd2) { $xd3 = array("salesrule/rule_condition_product_subselect", "salesrule/rule_condition_address"); if (!$x136($xd2->$x13d(), $xd3)) { $xd4 = $xd2->validate($product); if ($xce && $xd4 !== $xcf) { $xd0 = false; } elseif (!$xce && $xd4 === $xcf) { $xd0 = true; break; } } else { if ($xd2->getAttribute() == "base_subtotal") { } } $xd1++; } $xd5 = $x13c($xcb->getActions_serialized()); $xd5 = $xd5["conditions"]; $xd6 = $xcb->getActions(); $xce = $xd6->getAggregator() === 'all'; $xcf = (bool) $xd6->getValue(); $xd7 = ($xce) ? true : false; $xd7 = (!$x128($xd6->getConditions())) ? true : $xd7; $xd1 = 0; foreach ($xd6->getConditions() as $x51) { $xd4 = $x51->validate($product); if ($xce && $xd4 !== $xcf) { $xd7 = false; } elseif (!$xce && $xd4 === $xcf) { $xd7 = true; break; } $xd1++; } if ($xd7 && $xd0) { $x4b = "<g:promotion_id><![CDATA[" . $xcb->getData('rule_id') . "]]></g:promotion_id>"; break; } } } break; case "{load_options}": $x94 = 1; $xd8 = array(); foreach ($xc9['options'] as $x3b => $xd9) { if (isset($xb6[$product->getId()][$xd9])) { $x94 = $x94 * $x128($xb6[$product->getId()][$xd9]["options"]); $xd8[$x3b] = 0; } } $x39 = array(); for ($x8e = 1; $x8e <= $x94; $x8e++) { $xda = $x49; foreach ($xc9['options'] as $x3b => $xd9) { if (isset($xb6[$product->getId()][$xd9])) { $xda = $x121("{" . $xd9 . "_label}", $xb6[$product->getId()][$xd9]["options"][$xd8[$x3b]]['value'], $xda); $xda = $x121("{" . $xd9 . "_sku}", $xb6[$product->getId()][$xd9]["options"][$xd8[$x3b]]['sku'], $xda); $xda = $x121("{" . $xd9 . "_price}", $xb6[$product->getId()][$xd9]["options"][$xd8[$x3b]]['price'], $xda); $xda = $x121("{" . $xd9 . "_type}", $xb6[$product->getId()][$xd9]["options"][$xd8[$x3b]]['price_type'], $xda); if ($x3b > 0 || $x128($xb6[$product->getId()]) == 1 || $x128($xc9['options']) < 2) $xd8[$x3b] ++; if ($xd8[$x3b] >= $x128($xb6[$product->getId()][$xd9]["options"])) { $xd8[$x3b] = 0; $xd8[$x3b - 1] ++; } } } $x39[] = $xda; } if ($x128($x39) > 0) { $x49 = $x120("</item>
<item>", $x39); } break; case "{use_options}": foreach ($xc9['options'] as $x3b => $xd9) { if (isset($xb6[$product->getId()][$xd9])) { $xdb = array(); $xdc = array(); $xdd = array(); foreach ($xb6[$product->getId()][$xd9]["options"] as $x4d) { $xdb[] = $x4d['value']; $xdc[] = $x4d['sku']; $xdd[] = $x4d['price']; } $x49 = $x121("{" . $xd9 . "_label}", $x120(',', $xdb), $x49); $x49 = $x121("{" . $xd9 . "_sku}", $x120(',', $xdc), $x49); $x49 = $x121("{" . $xd9 . "_price}", $x120(',', $xdd), $x49); } } break; case '{inc}' : $x4b = $xc7; break; case '{final_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getFinalePrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{tier_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getTierPrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{min_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getMinPrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{max_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getMaxPrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{normal_price}' : $xde = $this->checkReference($xc9['reference'], $product); if ($xde->type_id == 'bundle') $x3f = $xde->price; else { $x3f = $xde->getPrice(); } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{price}' : $xde = $this->checkReference($xc9['reference'], $product);
if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xde->type_id == "bundle") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else $x3f = $xde->special_price; } else { $x3f = $xde->price; } } else ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xde->getPrice(); } else { if ($xde->type_id == "bundle") $x3f = $xde->price; else { $x3f = $xde->getPrice(); } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xde->getSpecialToDate()) { if ($xde->type_id == "bundle") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xde->getPrice(); } } else { if ($xde->type_id == "bundle") { $x3f = $xde->price; } else { $x3f = $xde->getPrice(); } } } else { if ($xde->type_id == "bundle") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) { $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); } else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xde->getPrice(); } } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9["options"][0])) ? $x40 = $x56 : $x40 = $xc9["options"][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, ".", ""); ; break; case "{is_special_price}" : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9["options"][0])) ? $xcf = 1 : $xcf = $xc9["options"][0]; (!isset($xc9["options"][1])) ? $xdf = 0 : $xdf = $xc9["options"][1]; if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xde->type_id == "bundle") (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0 ) ? $x4b = $xcf : $x4b = $xdf; else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x4b = $xcf : $x4b = $xdf; } } else { if ($xde->type_id == "bundle") { $x4b = $xdf; } else { $x4b = $xdf; } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xde->getSpecialToDate()) { if ($xde->type_id == "bundle") { (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0 ) ? $x4b = $xcf : $x4b = $xdf; } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x4b = $xcf : $x4b = $xdf; } } else { if ($xde->type_id == "bundle") { $x4b = $xdf; } else { $x4b = $xdf; } } } else { if ($xde->type_id == "bundle") { (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0 ) ? $x4b = $xcf : $x4b = $xdf; } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x4b = $xcf : $x4b = $xdf; } } break; case "{special_price}" : $xde = $this->checkReference($xc9['reference'], $product); $x3f = null; if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xde->type_id == 'bundle') { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xde->getSpecialToDate()) { if ($xde->type_id == 'bundle') { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } } } else { if ($xde->type_id == 'bundle') { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; if ($x3f > 0) { $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); ; } else { $x4b = ""; } break; case '{price_rules}' : $xde = $this->checkReference($xc9['reference'], $product); $x52 = $this->getStoreId(); $xe0 = Mage::getResourceModel('catalogrule/rule'); $xe1 = Mage::app()->getLocale()->storeTimeStamp($x52); $xe2 = Mage::app()->getStore($x52); $xe3 = $xe2->getWebsiteId(); $xe4 = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xe5 = $xe0->getRulePrice($xe1, $xe3, $xe4, $xde->getId()); if ($xe5 !== false) $xe6 = $x137('%.2f', $x13e($xe5, 2)); else $xe6 = $xde->getPrice(); if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xde->type_id == "bundle") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xe6; } } else { if ($xde->type_id == "bundle") $x3f = $xde->price; else { $x3f = $xe6; } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xde->getSpecialToDate()) { if ($xde->type_id == "bundle") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xe6; } } else { if ($xde->type_id == "bundle") $x3f = $xde->price; else { $x3f = $xe6; } } } else { if ($xde->type_id == "bundle") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xe6; } } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9["options"][0])) ? $x40 = $x56 : $x40 = $xc9["options"][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, ".", ""); break; case "{G:SALE_PRICE}" : $xde = $this->checkReference($xc9['reference'], $product); $xe7 = Mage::getSingleton('core/date')->getGmtOffset("hours"); if ($xe7 > 0) { $xe8 = "+"; $xe9 = $x13f($x140($x141($xe7)), 2, 0, STR_PAD_LEFT) . ':' . $x13f(($x140($xe7) - $x141($x140($xe7))) * 60, 2, 0, STR_PAD_LEFT); } else { $xe8 = ""; $xe9 = '-' . $x13f($x140($x141($xe7)), 2, 0, STR_PAD_LEFT) . ':' . $x13f(($x140($xe7) - $x141($x140($xe7))) * 60, 2, 0, STR_PAD_LEFT); } $xea = $x12b($x121(' ', 'T', $xde->getSpecialFromDate()), 0, -3); $xeb = $x12b($x121(' ', 'T', $xde->getSpecialToDate()), 0, -3); if ($xde->type_id == 'bundle' && $xde->special_price) { if ($xde->price_type) { $x3f = $x127($xde->price * $xde->special_price / 100, 2, ".", ""); } else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1];
if ($x3f > 0) { $x3f = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x3f = $this->x152($x3f, $x40); $x3f = $x127($x3f, 2, '.', ''); ; } if ($x3f > 0) { $x4b = "<g:sale_price><![CDATA[" . $x3f . " " . $x40 . "]]></g:sale_price>
"; } if ($x3f > 0 && $xeb) { $x4b.="<g:sale_price_effective_date><![CDATA[" . $xea . $xe8 . $xe9 . "/" . $xeb . $xe8 . $xe9 . "]]></g:sale_price_effective_date>
"; } break; case "{image}" : $xde = $this->checkReference($xc9['reference'], $product); $xec = $xde->getImage(); if (!isset($xc9['options'][0]) || $xc9['options'][0] == 0) { if ($xde->getImage() && $xde->getImage() != 'no_selection') { $xed = 'catalog/product/' . $xde->getImage(); $x4b = $x5b . $x121('//', '/', $xed); } else { $x4b = $x5b . '/catalog/product/placeholder/' . $x55; } } elseif (isset($x9b[$xde->getId()]['src'][$xc9['options'][0] - 1]) && $xc9['options'][0] > 0) { if ($x9b[$xde->getId()]['src'][$xc9['options'][0] - 1] != $xec) { $xed = 'catalog/product/' . $x9b[$xde->getId()]['src'][$xc9['options'][0] - 1]; $x4b = $x5b . $x121('//', '/', $xed); } } break; case "{G:IMAGE_LINK}" : $xde = $this->checkReference($xc9['reference'], $product); $xec = $xde->getImage(); $xee = array($xde->getSmall_image(), $xde->getThumbnail()); $xef = ''; $xd8 = 0; if ($xde->getImage() && $xde->getImage() != 'no_selection') { $xed = 'catalog/product/' . $xde->getImage(); $x4b = $x5b . $x121('//', '/', $xed); $xef.="<g:image_link><![CDATA[" . $x4b . "]]></g:image_link>
"; $xd8++; } $xd1 = 0; while (isset($x9b[$xde->getId()]['src'][$xd1]) && $xd8 < 10) { if ($x9b[$xde->getId()]['src'][$xd1] != $xec) { if ($x136($x9b[$xde->getId()]['src'][$xd1], $xee) || $x9b[$xde->getId()]['disabled'][$xd1] != 1) { $xed = 'catalog/product/' . $x9b[$xde->getId()]['src'][$xd1]; $x4b = $x5b . $x121('//', '/', $xed); $xef.="<g:additional_image_link><![CDATA[" . $x4b . "]]></g:additional_image_link>
"; $xd8++; } } $xd1++; } $x4b = $xef; break; case "{url}" : $xde = $this->checkReference($xc9['reference'], $product); if ($xde->getRequest_path()) { if (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 2) { $xf0 = $x12a(",", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x5a . $x138($xf0); } elseif (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 3) { $xf0 = $x12a(",", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x5a . $x143($xf0); } else $x4b = $x5a . $xde->getRequest_path(); } else { $x4b = $xde->getProductUrl(); } break; case "{host}" : $x4b = $x5a; break; case "{uri}" : $xde = $this->checkReference($xc9['reference'], $product); if ($xde->getRequest_path()) { if (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 2) { $xf0 = $x12a(",", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x138($xf0); } elseif (Mage::getStoreConfig("simplegoogleshopping/system/urlrewrite") == 3) { $xf0 = $x12a(",", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x143($xf0); } else $x4b = $xde->getRequest_path(); } else { $x4b = $x121($x5a, '', $xde->getProductUrl()); } break; case '{is_in_stock}' : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0])) ? $xf1 = 'in stock' : $xf1 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf2 = "out of stock" : $xf2 = $xc9['options'][1]; (!isset($xc9['options'][2])) ? $xf3 = "available for order" : $xf3 = $xc9['options'][2]; if (($xde->getManageStock() && !$xde->getUseConfigManageStock() && !$x57) || ($xde->getUseConfigManageStock() && $x57 ) || $xde->getManageStock()) { if ($xde->getIsInStock() > 0) { if ($product->type_id == "configurable") $xf4 = $xaa[$product->getId()]; else $xf4 = $xde->getQty(); if ($xf4 > 0) { $x4b = $xf1; } else { if ($xde->getBackorders() || ($xde->getUseConfigBackorders() && $x58)) { $x4b = $xf3; } else { $x4b = $xf2; } } } else $x4b = $xf2; } else { $x4b = $xf1; } break; case '{stock_status}' : $xde = $this->checkReference($xc9['reference'], $product); ($xde->getIs_in_stock() > 0) ? $x4b = 'in stock' : $x4b = 'out of stock'; break; case '{qty}' : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0])) ? $xf5 = 0 : $xf5 = $xc9['options'][0]; if ($product->type_id == "configurable") { $x4b = $xaa[$product->getId()]; $x4b = $x127($x4b, $xf5, '.', ''); } else if ($xc9['reference'] == "configurable") { $x4b = $x127($xaa[$xde->getId()], $xf5, '.', ''); } else { $x4b = $x127($xde->getQty(), $xf5, '.', ''); } break; case "{categories_v1}" : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $xf8 = INF : $xf8 = $xc9['options'][2]; $xf9 = 0; $x4b = ''; $xfa = ''; foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136($x74[$x75]["path"], $x65) : $xfb = !$x136($x74[$x75]["path"], $x65); if (isset($x74[$x75]) && $xf9 < $xf6 && ($xfb || $x65[0] == "*")) { $xfc = 0; $xfd = $x12a('/', $x74[$x75]["path"]); if ($x136($x5d, $xfd)) { $xfe = ""; if ($xf9 > 0) $xfa = ","; foreach ($xfd as $xff) { if (isset($x74[$xff])) { if ($x74[$xff]['level'] > $xf7 && $xfc < $xf8) { if ($xfc > 0) $xfe.='>'; $xfe.=($x74[$xff]['name']); $xfc++; } } } $x100 = ""; if (!empty($xfe)) { $x4b.=$xfa . $xfe . $x100; $xf9++; } } } }; break; case "{categories}" : $x101 = null; $xf6 = INF; $xf7 = 1;
$x102 = INF; $x103 = ', '; $x104 = " > "; if ($x128($xc9['options']) == 1) { (!isset($xc9['options'][0])) ? $x101 = "last" : $x101 = $xc9['options'][0]; $xf6 = 1; } elseif ($x128($xc9['options']) == 2) { (!isset($xc9['options'][0])) ? $x103 = ', ' : $x103 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $x104 = " > " : $x104 = $xc9['options'][1]; } elseif ($x128($xc9['options']) > 2) { (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $x102 = INF : $x102 = $xc9['options'][2]; (!isset($xc9['options'][3])) ? $x103 = ', ' : $x103 = $xc9['options'][3]; (!isset($xc9['options'][4])) ? $x104 = " > " : $x104 = $xc9['options'][4]; } $xde = $this->checkReference($xc9['reference'], $product); $xed = 0; $x105 = array(); foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136(@$x74[$x75]["path"], $x65) : $xfb = !$x136(@$x74[$x75]["path"], $x65); if (isset($x74[$x75]) && ($xfb || $x65[0] == "*")) { $xed++; $x105[$xed] = array(); $xfd = $x12a('/', $x74[$x75]["path"]); if ($x136($x5d, $xfd)) { foreach ($xfd as $xff) { if (isset($x74[$xff]) && $x74[$xff]['name'] != null) { $x105[$xed][] = ($x74[$xff]['name']); } } } } } $x106 = array(); $x142($x105, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14fArray')); if ($x101 == "last") $x105 = $x144($x105); $xde->setCategoriesArray($x105); $x107 = 0; foreach ($x105 as $x3b => $xfc) { if ($x107 < $xf6) { foreach ($xfc as $x108 => $x109) { if ($x108 >= $xf7 && $x108 <= $x102) { if (!isset($x106[$x107])) $x106[$x107] = array(); $x106[$x107][] .= $x109; } } if ($x128($x106[$x107])) $x107++; } }; $x4b = null; foreach ($x145($x106) as $x3b => $x10a) { if ($x3b > 0) $x4b.=$x103; $x4b.=$x120($x104, $x10a); } break; case "{G:PRODUCT_TYPE_v1}" : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $xf8 = INF : $xf8 = $xc9['options'][2]; $xf9 = 0; $x4b = ''; foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136($x74[$x75]["path"], $x65) : $xfb = !$x136($x74[$x75]["path"], $x65); if (@$x74[$x75]["include_in_menu"] && isset($x74[$x75]) && $xf9 < $xf6 && ($xfb || $x65[0] == "*")) { $xfc = 0; $xfd = $x12a('/', $x74[$x75]["path"]); if ($x136($x5d, $xfd)) { $xfe = ''; $xfa = '<g:product_type><![CDATA['; foreach ($xfd as $xff) { if (isset($x74[$xff])) { if ($x74[$xff]['level'] > $xf7 && $xfc < $xf8) { if ($xfc > 0) $xfe.=' > '; $xfe.=($x74[$xff]['name']); $xfc++; } } } $x100 = "]]></g:product_type>
"; if (!empty($xfe)) { $x4b.=$xfa . $xfe . $x100; $xf9++; } } } }; break; case "{G:PRODUCT_TYPE}" : $x103 = "]]></g:product_type>
<g:product_type><![CDATA["; $x104 = " > "; (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $x102 = INF : $x102 = $xc9['options'][2]; $xde = $this->checkReference($xc9['reference'], $product); $xed = 0; $x105 = array(); foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136(@$x74[$x75]["path"], $x65) : $xfb = !$x136(@$x74[$x75]["path"], $x65); if (isset($x74[$x75]) && ($xfb || $x65[0] == "*")) { $xed++; $x105[$xed] = array(); $xfd = $x12a('/', $x74[$x75]["path"]); if ($x136($x5d, $xfd)) { foreach ($xfd as $xff) { if (isset($x74[$xff]) && $x74[$xff]['name'] != null) { $x105[$xed][] = ($x74[$xff]['name']); } } } } } $x106 = array(); $x142($x105, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14fArray')); foreach ($x105 as $x3b => $xfc) { if ($x3b < $xf6) foreach ($xfc as $x108 => $x109) { if ($x108 >= $xf7 && $x108 <= $x102) { if (!isset($x106[$x3b])) $x106[$x3b] = array(); $x106[$x3b][] .= $x109; } } }; $x4b = null; foreach ($x145($x106) as $x3b => $x10a) { if ($x3b > 0) $x4b.=$x103; $x4b.=$x120($x104, $x10a); } if (($x106)) $x4b = "<g:product_type><![CDATA[" . $x4b . "]]></g:product_type>
"; break; case "{G:GOOGLE_PRODUCT_CATEGORY}" : $x10b = array(); (!isset($xc9['options'][0])) ? $x101 = "longest" : $x101 = $xc9['options'][0]; $xde = $this->checkReference($xc9['reference'], $product); foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { if (isset($x74[$x75]["path"]) && isset($x66[$x74[$x75]["path"]])) { $x10b[] = $x66[$x74[$x75]["path"]]; } } $x142($x10b, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); if ($x101 == "shortest") $x10b = $x144($x10b); $x10c = $x143($x10b); if ($x10c != "") $x4b = "<g:google_product_category><![CDATA[" . $x10c . "]]></g:google_product_category>
"; break; case "{category_mapping}" : (isset($xc9["options"][0])) ? $x10d = $xc9["options"][0] : $x10d = 0; $x4b = ""; $xde = $this->checkReference($xc9['reference'], $product); $x10e = 0; foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { if (isset($x66[$x74[$x75]["path"]])) { if ($x10e == $x10d) { $x4b.=$x66[$x74[$x75]["path"]]; break; } $x10e++; } } break; case "{review_count}": $xde = $this->checkReference($xc9['reference'], $product); $x4b = ""; (isset($xc9["options"][0]) && $xc9["options"][0] == "*" ) ? $x10f = 0 : $x10f = $x52; if (isset($x95[$xde->getId()][$x10f]["count"])) { $x110 = $x95[$xde->getId()][$x10f]["count"]; if (isset($x110)) { $x4b.=$x110; } } break; case "{review_average}": $xde = $this->checkReference($xc9['reference'], $product); $x4b = "";
(isset($xc9["options"][0]) && $xc9["options"][0] == "*" ) ? $x10f = 0 : $x10f = $x52; (!isset($xc9["options"][1]) || !$xc9["options"][1]) ? $x111 = 5 : $x111 = $xc9["options"][1]; if (isset($x95[$xde->getId()][$x10f]["score"])) { $x112 = $x127($x95[$xde->getId()][$x10f]["score"] * $x111 / 100, 2, ".", ""); if (isset($x112)) { $x4b.=$x112; } } break; case "{G:PRODUCT_REVIEW}" : $xde = $this->checkReference($xc9['reference'], $product); (isset($xc9["options"][0]) && $xc9["options"][0] == "*" ) ? $x10f = 0 : $x10f = $x52; (!isset($xc9["options"][1]) || !$xc9["options"][1]) ? $x111 = 5 : $x111 = $xc9["options"][1]; $x4b = ""; if (isset($x95[$xde->getId()][$x10f]["count"])) { $x110 = $x95[$xde->getId()][$x10f]["count"]; $x112 = $x127($x95[$xde->getId()][$x10f]["score"] * $x111 / 100, 2, ".", ""); } if (isset($x112) && $x112 > 0) { $x4b.="<g:product_review_average><![CDATA[" . $x112 . "]]></g:product_review_average>
"; } if (isset($x110) && $x110 > 0) { $x4b.="<g:product_review_count><![CDATA[" . $x110 . "]]></g:product_review_count>
"; } unset($x112); unset($x110); break; case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $xde = $this->checkReference('configurable', $product); $x4b = "<g:item_group_id><![CDATA[" . $xde->getSku() . "]]></g:item_group_id>"; } break; case "{SC:EAN}" : ($x129($xc9['options'][0]) && $xc9['options'][0] > 0) ? $x113 = $xc9['options'][0] : $x113 = 0; $xde = $this->checkReference($xc9['reference'], $product); $x4b = $x12a(',', $xde->getEan()); $x4b = "<g:ean><![CDATA[" . $x4b[$x113] . "]]></g:ean>"; break; case "{SC:IMAGES}" : $xde = $this->checkReference($xc9['reference'], $product); $xec = $xde->getSmall_image(); $xee = array($xde->getImage(), $xde->getThumbnail()); $xef = ''; $xd8 = 0; if ($xde->getSmall_image() && $xde->getSmall_image() != 'no_selection') { $xed = $xde->getSmall_image(); $x4b = $xed; $xef.="<g:image_link><![CDATA[" . $x4b . "]]></g:image_link>
"; $xd8++; } $xd1 = 0; while (isset($x9b[$xde->getId()]['src'][$xd1]) && $xd8 < 10) { if ($x9b[$xde->getId()]['src'][$xd1] != $xec) { if ($x136($x9b[$xde->getId()]['src'][$xd1], $xee) || $x9b[$xde->getId()]['disabled'][$xd1] != 1) { $xed = $x9b[$xde->getId()]['src'][$xd1]; $x4b = $xed; $xef.="<g:additional_image_link><![CDATA[" . $x4b . "]]></g:additional_image_link>
"; $xd8++; } } $xd1++; } $x4b = $xef; break; case "{SC:DESCRIPTION}" : $xde = $this->checkReference($xc9['reference'], $product); $x114 = $xde->getDescription() . $xde->getShortDescription(); $x115 = "|<iframe(.*)</iframe>|U"; $x124($x115, $x114, $x116); if ($x116) { $x114 = $xde->getAttributeText('manufacturer') . " " . $xde->getName() . " - Part number: " . $xde->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x136("strip_tags", $xc9['options'])) { $x114 = $x146('!\<br /\>!isU', " ", $x114); $x114 = $x146('!\<br/\>!isU', " ", $x114); $x114 = $x146('!\<br>!isU', " ", $x114); $x114 = $x147($x114); } if ($x136("html_entity_decode", $xc9['options'])) { $x114 = $x148($x114, ENT_QUOTES, 'UTF-8'); } if ($x136("htmlentities", $xc9['options'])) { $x114 = $x149(($x114)); } if ($x11f($x114) > 900) { $x114 = $x12b($x114, 0, 900 - 3); $x117 = $x14a($x114, " "); $x114 = $x12b($x114, 0, $x117) . '...'; } } if ($x114 == null) $x114 = $xde->getAttributeText('manufacturer') . " " . $xde->getName() . " - Part number: " . $xde->getSku() . " - Category : {categories,[1],[1],[1]}"; $x114 = $x146('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x114); $x114 = $x121(' ', '', $x114); $x4b = "<description><![CDATA[" . $x114 . "]]></description>"; break; case "{SC:URL}" : (isset($xc9['options'][0])) ? $x118 = $xc9['options'][0] : $x118 = ""; (isset($xc9['options'][1])) ? $x119 = $xc9['options'][1] : $x119 = ""; $xde = $this->checkReference($xc9['reference'], $product); if ($xde->getRequest_path()) { $x4b = "<link><![CDATA[" . $x5a . $x119 . $xde->getRequest_path() . $x118 . "]]></link>"; } else { $x4b = "<link><![CDATA[" . $xde->getProductUrl() . "]]></link>"; } break; case "{SC:CONDITION}" : $xde = $this->checkReference($xc9['reference'], $product); ($x14b($xde->getName(), "refurbished")) ? $xbb = 'refurbished' : $xbb = 'new'; $x4b = "<g:condition><![CDATA[" . $xbb . "]]></g:condition>"; break; case "{sc:condition}" : $xde = $this->checkReference($xc9['reference'], $product); ($x14b($xde->getName(), "refurbished")) ? $xbb = 'refurbished' : $xbb = 'new'; $x4b = $xbb; break; default : $xde = $this->checkReference($xc9['reference'], $product); if ($x136($xc9['name'], $x7f)) { if ($x136($x80[$xc9['name']], array('select', 'multiselect'))) { eval('$x11b =($xde->' . $xc9['methodName'] . ");"); $x11a = $x12a(',', $x11b); if ($x128($x11a) > 1) { $x4b = array(); foreach ($x11a as $xc1) { if (isset($x85[$xc1][$x52])) $x4b[] = $x85[$xc1][$x52]; else { if (isset($x85[$xc1][0])) $x4b[] = $x85[$xc1][0]; } } } else { if (isset($x85[$x11a[0]][$x52])) { $x4b = $x85[$x11a[0]][$x52]; } else { if (isset($x85[$x11a[0]][0])) $x4b = $x85[$x11a[0]][0]; } } } else { eval('$x4b =($xde->' . $xc9['methodName'] . ");"); } } if ($x136(@$x7d[$xc9['name']], $x7d)) { $x4b = $x7d[$xc9['name']]; } $x4b = $x146('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x4b); $x4b = $x121(' ', '', $x4b); $x11c = 0; if ($x128($xc9['options']) > 0) { while (isset($xc9['options'][$x11c])) { switch ($xc9['options'][$x11c]) { case "substr" : if (isset($xc9['options'][$x11c + 1]) && $x11f($x4b) > $xc9['options'][$x11c + 1]) { $x4b = $x12b($x4b, 0, $xc9['options'][$x11c + 1] - 3); $x117 = $x14a($x4b, " "); $x4b = $x12b($x4b, 0, $x117) . $xc9['options'][$x11c + 2]; } $x11c++; $x11c++; break; case "htmlentities" : $x4b = $x149(($x4b)); break; case "strip_tags" : $x11d = " "; $x4b = $x146('!\<br /\>!isU', $x11d, $x4b); $x4b = $x146('!\<br/\>!isU', $x11d, $x4b);
$x4b = $x146('!\<br>!isU', $x11d, $x4b); $x4b = $x147($x4b); break; case "$x120" : $x4b = ($x131($x4b)) ? $x120($xc9['options'][$x11c + 1], $x4b) : $x4b; $x11c++; break; case "float" : $x4b = $x127($x4b, $xc9['options'][$x11c + 1], '.', ''); $x11c++; break; case "html_entity_decode" : $x4b = $x148($x4b, ENT_QUOTES, 'UTF-8'); break; case "inline": $x4b = $x146('/(
|
|
|
| )/s', '', $x4b); break; case "strtolower": $x4b = $x14c($x4b, "UTF8"); break; case "strtoupper": $x4b = $x14d($x4b, "UTF8"); break; case "cleaner": $x4b = $x146('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x4b); $x4b = $x121(' ', '', $x4b); break; default : if ($x14b($xc9['options'][$x11c], "%s")) { $xd9 = $x121("%s", '$x4b', $xc9['options'][$x11c]); eval('$x4b=' . $xd9 . '; '); } else eval('$x4b=' . $xc9['options'][$x11c] . '($x4b); '); break; } $x11c++; } } break; } $x4b = $x121(array("<", ">", '"', '\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $x4b); if ($x131($x4b)) $x4b = $x120(",", $x4b); if ($x4b != "") $x49 = $x121($xc9['fullpattern'], $x4b, $x49); } foreach ($x6f as $x11e) { $x49 = $x121($x11e['fullpattern'], "", $x49); } $x49 = $this->x151($x49, $product); $x49 = $this->x155($x49); $x49 = $this->x154($x49); $x49 = $x121(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\'), $x49); if (!empty($x49)) { $x6c.=("<item>"); $x6c.="
" . $x49 . "
"; $x6c.=("</item>" . "
"); $xb7++; $this->_inc = $xc7; $xc7++; } if ($this->_display) { $x6d.=$x6c; $x6c = ''; } else { if ($xb7 % Mage::getStoreConfig("simplegoogleshopping/system/buffer") == 0) { $x3d->streamWrite($x6c); unset($x6c); $x6c = ''; Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . $xc7 . "/" . $this->_counter . " items added", null, $this->getSimplegoogleshoppingFilename() . '.log'); } } if ($this->_limit && $xc7 > $this->_limit) { break 2; } } } $x6c.=('</channel>' . "
"); $x6c.=('</rss>'); if (!$this->_display) { $x3d->streamWrite($x6c); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($xc7 - 1) . "/" . $this->_counter . " items added", null, $this->getSimplegoogleshoppingFilename() . '.log'); unset($xa5); $x6d.=$x6c; if ($this->_display && !$this->_debug) { (!Mage::app()->getRequest()->getParam("real_time_preview")) ? $x114 = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x6d) . "</textarea>" : $x114 = $x6d; if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
<html>
<head>
<title>" . $this->getSimplegoogleshoppingFilename() . "</title>
<link rel='stylesheet' href='" . $x59 . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
<link rel='stylesheet' href='" . $x59 . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>
<script type='text/javascript' src='" . $x59 . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
<script type='text/javascript' src='" . $x59 . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script>
</head>
<body>
" . $x114 . "
<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 $x114; } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>"; $x114 = "<pre>" . $x14e($x6d) . "</pre>"; return $x114; } else { Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> File closed", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x3d->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 $x35 = 0; protected $_filePath; public $_limit = false; public $_display = false; public $_rates = false; public $_sqlSize = 1500; public function x14f($x36, $x37) { $x11f="s\x74r\x6c\145\x6e"; $x120="\151m\160\x6c\x6f\x64\x65"; $x121="\163\164\x72_r\145p\154\x61\x63\145"; $x122="\165tf\70\137\x65\156\143od\145"; $x123="p\x72e\147_\155a\x74\143\x68_\x61\x6c\154"; $x124="p\162\145\147_m\x61\x74\143h"; $x125="rt\162\151m"; $x126="\151s_nu\x6cl"; $x127="\x6e\x75m\142\x65r\137\x66\157\162mat"; $x128="c\157u\x6e\x74"; $x129="is\x5f\156\x75m\x65\x72\151c"; $x12a="ex\160lo\144\145"; $x12b="s\x75\x62\x73\164\162"; $x12c="\x74\162\151m"; $x12d="\x70\162e\x67\137s\x70\x6c\x69\x74"; $x12e="\x75\x74f\70_\x64\145\143\x6f\144\x65"; $x12f="i\163\x5fs\164r\x69n\147"; $x130="j\163\157\x6e\137d\145\143o\144\145"; $x131="\x69s_a\162r\x61\x79"; $x132="\x75c\x77o\x72\144\163"; $x133="a\162r\141y\137\x70\x75s\150"; $x134="p\162\x69n\x74\137\x72"; $x135="v\x65r\163\x69\x6f\156\x5fco\x6dp\x61r\145"; $x136="\151\156\x5f\x61r\x72\141y"; $x137="s\160\x72i\156\x74\x66"; $x138="\141r\162\x61\x79\137\160op"; $x139="\x63\145\x69\x6c"; $x13a="ini\x5f\x67e\164"; $x13b="\x73e\x74_\164\151m\145_\x6c\151\x6dit"; $x13c="\165\x6e\163e\x72\151a\154\151\x7a\x65"; $x13d="\x67e\164\x54y\x70\145"; $x13e="\162\x6f\x75\x6e\144"; $x13f="\x73\164\x72\x5f\x70\141\x64"; $x140="\x61b\x73"; $x141="f\154\x6f\x6f\162"; $x142="u\163\157\x72\164"; $x143="\141\162r\x61\171\x5fs\150\151\x66\x74"; $x144="ar\162ay_\x72e\166\x65r\x73\145"; $x145="a\162\x72\x61\x79\x5fv\141lue\163"; $x146="\x70\162\x65\147_\x72\145\160\154\141\x63\145"; $x147="\163\x74r\151p_\x74a\147\x73"; $x148="\x68\164\155l\x5f\145\156t\x69t\171\x5f\x64\x65\143o\144\x65"; $x149="\x68t\155\154\x73\160\x65\x63\151\x61\x6cc\150\x61\162\x73"; $x14a="s\164\162\162\x70\157\x73"; $x14b="st\162i\x73\164\162"; $x14c="\155\142\137\x73\x74r\164\x6f\x6c\x6f\167\x65r"; $x14d="m\x62\x5f\x73\x74\162\164ou\x70\x70\145\x72"; $x14e="\150\164\x6dlen\164\151t\151\x65\163"; if ($x11f($x36) == $x11f($x37)) { return 0; } return ($x11f($x36) < $x11f($x37)) ? 1 : -1; } public function x14fArray($x36, $x37) { $x11f="\163\164\162\x6c\145\156"; $x120="\x69m\160\x6c\x6f\x64\145"; $x121="s\x74r_\162e\160l\x61\143e"; $x122="\x75t\146\70_\x65n\143o\x64e"; $x123="\x70r\x65\x67_m\x61t\x63h_\x61\154\154"; $x124="p\162\x65g\137\155a\164\143\x68"; $x125="\162tri\155"; $x126="is\137nu\154\154"; $x127="nu\x6db\145r_f\157r\155\141\164"; $x128="c\x6f\x75\156\164"; $x129="\x69\x73\x5fnume\162\151\143"; $x12a="\145\x78p\x6co\x64e"; $x12b="\x73\x75b\x73\164\162"; $x12c="\164\x72i\155"; $x12d="\x70\x72e\147\x5f\x73p\x6c\x69\164"; $x12e="\x75\164f\70\137\x64e\143\157de"; $x12f="\x69s_\x73\x74\x72i\156\x67"; $x130="js\157n_d\x65c\157\x64e"; $x131="\x69\x73\137ar\162a\x79"; $x132="u\143\x77\x6f\162d\163"; $x133="\141r\x72\x61\x79_p\165\163h"; $x134="\160r\151\x6et\137\x72"; $x135="\x76e\x72s\151o\x6e\137\143\x6fm\x70a\x72e"; $x136="i\156_\x61\162ra\x79"; $x137="\163\160r\x69\156\164\146"; $x138="ar\162a\171_po\160"; $x139="\143\x65\151\154"; $x13a="\x69\156\151\x5f\x67\145\x74"; $x13b="\163\x65\x74\137t\151\x6de\x5fl\151m\151t"; $x13c="\165\x6es\145r\151ali\172\x65"; $x13d="\147e\x74\124\171\160\x65"; $x13e="\162\157\165\156\x64"; $x13f="s\164\x72\137pa\x64"; $x140="a\142\x73"; $x141="fl\x6f\x6f\162"; $x142="\x75s\x6f\x72\x74"; $x143="\x61\x72r\141\171_\x73\x68\151\146\x74"; $x144="\x61r\x72ay\x5f\x72e\166\x65\162\x73\x65"; $x145="\141r\162\141y\137v\x61lu\145\163"; $x146="\160\162\145\x67\x5fr\145\x70l\141c\x65"; $x147="\163t\162i\x70_tag\163"; $x148="\150tm\x6c_en\x74\x69\164y_\144e\143\x6fd\145"; $x149="\150t\155l\163\x70\145ci\141\154cha\162s";
$x14a="\x73\x74\162r\160o\163"; $x14b="\163\164\x72\x69\x73\x74\x72"; $x14c="\155\142_s\164\162t\x6f\x6cow\145\162"; $x14d="\155\142\x5f\163\164\x72\x74\157u\x70p\x65\162"; $x14e="\x68\164m\x6c\145\x6et\151\x74\151\x65\x73"; $x11f="s\x74r\x6c\145\x6e"; $x120="\151m\160\x6c\x6f\x64\x65"; $x121="\163\164\x72_r\145p\154\x61\x63\145"; $x122="\165tf\70\137\x65\156\143od\145"; $x123="p\x72e\147_\155a\x74\143\x68_\x61\x6c\154"; $x124="p\162\145\147_m\x61\x74\143h"; $x125="rt\162\151m"; $x126="\151s_nu\x6cl"; $x127="\x6e\x75m\142\x65r\137\x66\157\162mat"; $x128="c\157u\x6e\x74"; $x129="is\x5f\156\x75m\x65\x72\151c"; $x12a="ex\160lo\144\145"; $x12b="s\x75\x62\x73\164\162"; $x12c="\x74\162\151m"; $x12d="\x70\162e\x67\137s\x70\x6c\x69\x74"; $x12e="\x75\x74f\70_\x64\145\143\x6f\144\x65"; $x12f="i\163\x5fs\164r\x69n\147"; $x130="j\163\157\x6e\137d\145\143o\144\145"; $x131="\x69s_a\162r\x61\x79"; $x132="\x75c\x77o\x72\144\163"; $x133="a\162r\141y\137\x70\x75s\150"; $x134="p\162\x69n\x74\137\x72"; $x135="v\x65r\163\x69\x6f\156\x5fco\x6dp\x61r\145"; $x136="\151\156\x5f\x61r\x72\141y"; $x137="s\160\x72i\156\x74\x66"; $x138="\141r\162\x61\x79\137\160op"; $x139="\x63\145\x69\x6c"; $x13a="ini\x5f\x67e\164"; $x13b="\x73e\x74_\164\151m\145_\x6c\151\x6dit"; $x13c="\165\x6e\163e\x72\151a\154\151\x7a\x65"; $x13d="\x67e\164\x54y\x70\145"; $x13e="\162\x6f\x75\x6e\144"; $x13f="\x73\164\x72\x5f\x70\141\x64"; $x140="\x61b\x73"; $x141="f\154\x6f\x6f\162"; $x142="u\163\157\x72\164"; $x143="\141\162r\x61\171\x5fs\150\151\x66\x74"; $x144="ar\162ay_\x72e\166\x65r\x73\145"; $x145="a\162\x72\x61\x79\x5fv\141lue\163"; $x146="\x70\162\x65\147_\x72\145\160\154\141\x63\145"; $x147="\163\x74r\151p_\x74a\147\x73"; $x148="\x68\164\155l\x5f\145\156t\x69t\171\x5f\x64\x65\143o\144\x65"; $x149="\x68t\155\154\x73\160\x65\x63\151\x61\x6cc\150\x61\162\x73"; $x14a="s\164\162\162\x70\157\x73"; $x14b="st\162i\x73\164\162"; $x14c="\155\142\137\x73\x74r\164\x6f\x6c\x6f\167\x65r"; $x14d="m\x62\x5f\x73\x74\162\164ou\x70\x70\145\x72"; $x14e="\150\164\x6dlen\164\151t\151\x65\163"; if ($x11f($x120('', $x36)) == $x11f($x120('', $x37))) { return 0; } return ($x11f($x120('', $x36)) < $x11f($x120('', $x37))) ? -1 : 1; } public function x151($myPattern, $product, $x38 = true) { $x11f="\163\x74\x72\x6ce\156"; $x120="i\x6d\160\154ode"; $x121="\x73tr\x5f\x72\145\x70\154\x61\143e"; $x122="\x75\x74\146\70\137e\156\143\x6fd\145"; $x123="\160\162\x65\147_m\x61\164\143h_\141\154l"; $x124="\160reg_\x6da\x74\143\150"; $x125="\162\x74r\x69\155"; $x126="\151s\x5f\x6eull"; $x127="\156u\155\x62\145\x72_f\x6f\x72mat"; $x128="c\x6funt"; $x129="\x69\163\x5f\x6eume\162ic"; $x12a="\145xp\x6c\157\x64\145"; $x12b="s\165\x62s\164\162"; $x12c="t\162\x69\155"; $x12d="p\x72\145\147\x5f\x73p\x6c\x69\164"; $x12e="\x75t\146\70_\144\x65c\157de"; $x12f="\x69\163\137\163\164\x72i\156\147"; $x130="\x6a\x73\x6f\x6e\137d\145code"; $x131="\x69s_a\162\x72\x61\x79"; $x132="uc\x77o\162d\x73"; $x133="ar\x72\141\x79\x5f\160\165\x73\x68"; $x134="\160\162i\x6e\x74_\162"; $x135="v\145\x72\163i\x6fn\137c\x6f\x6d\160a\162\145"; $x136="i\156_\x61\162\x72ay"; $x137="\x73\x70\x72\x69\x6e\164\x66"; $x138="a\162ray\137\x70op"; $x139="\x63e\x69\154"; $x13a="ini\137\x67et"; $x13b="se\164\137\x74\151m\145_\154\151\155i\x74"; $x13c="\165\156se\162\151a\x6ci\172\x65"; $x13d="\147\145t\124\x79\160\145"; $x13e="\x72\x6f\x75\x6e\144"; $x13f="\x73\164\162\137\x70\x61\x64"; $x140="\141bs"; $x141="\x66\154\x6f\157\162"; $x142="\165\x73ort"; $x143="\141\162\x72\141\x79_s\x68\x69ft"; $x144="\x61\162\162\141y\137r\x65\x76\145\x72\163e"; $x145="a\x72\x72\x61y_v\141\154\x75e\163"; $x146="\x70\162e\x67\137\162\x65\x70la\x63\145"; $x147="\163\x74\162i\160\x5f\164\x61\x67s"; $x148="\150\x74m\154\137\x65\156\164i\164\x79_\144e\143o\x64\145"; $x149="\150\x74ml\x73\160eci\141l\x63\x68\141\162\x73"; $x14a="s\x74\162\162p\157s"; $x14b="s\x74\162i\163\164r";
$x14c="mb_st\x72\164\157l\x6fwe\162"; $x14d="\x6d\x62_\x73\x74\x72\164\157up\160e\x72"; $x14e="h\164\155\x6c\145\156\x74\151\164i\145s"; $myPattern = $x121('<?', $x122('__PHP__'), $myPattern); $myPattern = $x121('?>', $x122('/__PHP__'), $myPattern); $x39 = $x122('#(__PHP__)(.*?)/\1#s'); $x123($x39, $myPattern, $x3a); if (isset($x3a[1])) { foreach ($x3a[0] as $x3b => $x3c) { if ($x38 == 1) { if (@eval($x3a[2][$x3b] . '; ')) $myPattern = $x121($x3c, eval($x3a[2][$x3b] . '; '), $myPattern); else $myPattern = $x121($x3c, '', $myPattern); } else { if (@eval($this->unescapeStr($x3a[2][$x3b] . '; '))) $myPattern = $x121($x3c, $this->escapeStr(eval($this->unescapeStr($x3a[2][$x3b]) . '; ')), $myPattern); else $myPattern = $x121($x3c, '', $myPattern); } } } return $myPattern; } protected function _construct() { $x11f="\163\164\x72\x6c\x65\156"; $x120="\151\155\160\154o\144\x65"; $x121="\x73\164r\137\x72e\160l\141c\145"; $x122="\x75tf\70\137e\156\143\157\x64\145"; $x123="p\162\x65\x67_ma\164\143h_a\154\x6c"; $x124="\x70\162eg\x5f\155\141\x74\143\x68"; $x125="r\x74r\x69m"; $x126="is\137\x6e\x75\154\x6c"; $x127="n\x75m\x62\x65\162\x5ffo\x72\x6d\141\x74"; $x128="\143o\165\156\x74"; $x129="\151\163\137\156\165\155\x65\x72i\x63"; $x12a="\x65\170\160\x6co\x64\x65"; $x12b="su\142\163\164\162"; $x12c="tr\151\x6d"; $x12d="pre\x67\137\x73pl\151\x74"; $x12e="utf\70\x5f\x64\145\143\x6f\x64e"; $x12f="\151s\137s\x74r\151ng"; $x130="j\x73o\156_\x64\x65cod\145"; $x131="\x69s\x5far\162\141\171"; $x132="u\143\167\157\x72d\163"; $x133="\141rr\141y\137\160u\x73\150"; $x134="p\162\x69\156\x74\137\162"; $x135="ve\162s\151o\156\x5f\143o\155\160a\x72\x65"; $x136="in\137\141\162\x72\x61y"; $x137="\163p\x72\151\156\164\x66"; $x138="\x61\162\x72a\171\137pop"; $x139="\x63e\151l"; $x13a="i\156i\137\147\145t"; $x13b="s\145\x74_t\x69\x6d\145\137\154imit"; $x13c="\165\x6e\163\x65\x72\x69\141\x6ci\x7ae"; $x13d="\x67e\164\124\x79\160\145"; $x13e="r\157\x75n\144"; $x13f="\x73\x74\x72_\x70\x61\144"; $x140="\x61bs"; $x141="f\x6c\x6fo\162"; $x142="\165s\157\162t"; $x143="\141r\162a\x79_\163h\x69\146\164"; $x144="\141\162\162\x61y_re\166e\162\163e"; $x145="\141r\162\x61\171_\x76\x61l\165es"; $x146="\160\162eg_\x72\x65\160l\x61\143\145"; $x147="\x73\x74rip\x5ft\141\x67\163"; $x148="ht\x6dl_e\156\164i\x74\x79\137d\x65\143o\144\x65"; $x149="\x68t\155\x6c\x73\160\x65\x63i\x61lc\150\141\162s"; $x14a="\163\164\162rp\157s"; $x14b="\x73t\162\x69\163\164r"; $x14c="\155\142_\x73t\x72t\x6f\x6c\157\x77e\162"; $x14d="m\142\x5f\163t\162to\165\160\160\145\x72"; $x14e="\x68\164\155\154\145\x6e\x74\x69\164i\x65\x73"; $this->_sqlSize = Mage::getStoreConfig("s\x69\x6dple\x67\x6fo\x67le\163\150\157p\x70ing/\163ystem\57sq\x6c\163i\172\145"); $this->_init('simplegoogleshopping/simplegoogleshopping'); } protected function _beforeSave() { $x11f="s\164\162\x6c\145n"; $x120="im\x70\x6c\157\144\x65"; $x121="\x73t\162_\x72e\x70l\x61\143\x65"; $x122="\165\164\146\70_\145nc\x6f\x64\145"; $x123="\160r\145\x67\137\155\x61\x74c\150\137\141l\154"; $x124="p\162\145\147_\x6da\x74c\150"; $x125="r\x74\x72i\155"; $x126="\151\x73_\x6e\165\x6cl"; $x127="n\165\x6d\142er\x5ff\x6fr\155a\164"; $x128="\x63o\x75\156t"; $x129="\151\163\x5fn\x75\155\x65\x72\151\x63"; $x12a="e\170\x70\154o\x64\x65"; $x12b="\163u\x62\x73\x74\x72"; $x12c="tr\151m"; $x12d="pr\x65g\137\163p\x6ci\x74"; $x12e="\165tf\70_d\x65c\x6fde"; $x12f="\151\163_stri\156g"; $x130="\152\163\157\156_\144e\x63\x6f\x64e"; $x131="\x69s_a\162r\x61\x79"; $x132="\x75\x63\x77\157rd\x73"; $x133="\141\162\x72\x61\x79\137\160u\x73\x68"; $x134="\x70\x72\151\x6e\164\137\162"; $x135="\x76\145\162\163\x69on\x5fcom\160\141r\x65"; $x136="i\x6e\137\x61rr\x61y"; $x137="\x73\160ri\156\x74\146"; $x138="\x61\x72ray\x5f\160\157\160"; $x139="\x63\x65\x69l"; $x13a="\151ni\137\x67\x65t"; $x13b="s\x65t\137\164\x69\x6d\145_\154i\x6d\151t"; $x13c="u\x6es\145r\x69al\151\172\145"; $x13d="\147\145\x74\124yp\x65"; $x13e="\x72o\165\156d"; $x13f="s\x74r\x5fpad"; $x140="ab\x73";
$x141="f\x6coor"; $x142="u\163\157\x72t"; $x143="a\162\x72\141\x79\x5fs\x68i\x66\x74"; $x144="a\x72ra\x79_\162e\166\145\162s\145"; $x145="\141r\x72a\x79\137v\x61lue\x73"; $x146="\x70\162\x65\x67_\x72e\x70la\x63e"; $x147="\163\x74\162ip\137\164\x61\x67\163"; $x148="\x68\164ml_en\164it\x79_\x64e\x63od\x65"; $x149="\150\x74ml\163\160e\x63i\141\x6cch\141\162s"; $x14a="\x73\x74r\x72\160\157s"; $x14b="\163\164r\151\163t\162"; $x14c="\155\142\137\163\x74\x72t\x6f\x6c\157\167\145\162"; $x14d="\155b_\163\x74r\x74\x6f\165p\x70\x65\x72"; $x14e="\x68\164mle\156\x74\151t\151\145s"; $x3d = new Varien_Io_File(); $x3e = $x3d->getCleanPath(Mage::getBaseDir() . '/' . $this->getSimplegoogleshoppingPath()); if (!$x3d->allowedPath($x3e, Mage::getBaseDir())) { } if (!$x3d->fileExists($x3e, false)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please create the specified folder %s before saving the googleshopping.', Mage::helper('core')->htmlEscape($this->getSimplegoogleshoppingPath()))); } if (!$x3d->isWriteable($x3e)) { Mage::throwException(Mage::helper('simplegoogleshopping')->__('Please make sure that %s is writable by web-server.', $this->getSimplegoogleshoppingPath())); } if (!$x124('#^[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 (!$x124('#\.xml$#', $this->getSimplegoogleshoppingFilename())) { $this->setSimplegoogleshoppingFilename($this->getSimplegoogleshoppingFilename() . '.xml'); } $this->setSimplegoogleshoppingPath($x125($x121($x121('\\', '/', Mage::getBaseDir()), '', $x3e), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x11f="st\x72\154\x65\156"; $x120="im\160\154o\x64e"; $x121="\x73t\162\x5fr\145\x70\x6c\141\x63\x65"; $x122="u\x74f\70_e\156\143\157\x64e"; $x123="\x70\162\145\x67\x5fm\141\x74\x63\x68\x5fa\154\154"; $x124="\160\x72\145g\137\155\x61\164ch"; $x125="\x72t\162\151\x6d"; $x126="i\x73\137\x6e\165\154\154"; $x127="\156u\155\142\x65r\x5ff\x6frma\164"; $x128="\143\157u\x6e\164"; $x129="\151\x73\x5f\x6eu\155\x65ri\x63"; $x12a="\145\170pl\x6f\x64\x65"; $x12b="\163\x75\142\x73\164\x72"; $x12c="\x74\162im"; $x12d="\x70\162e\147\x5fsp\154i\164"; $x12e="\165\164\146\70_\x64e\143\x6fde"; $x12f="\x69\163\x5fst\162\x69ng"; $x130="j\163\x6f\156\137de\143\157\x64\x65"; $x131="i\163_\x61\162ray"; $x132="\x75c\167\x6f\162\144\x73"; $x133="\x61\x72\x72a\x79\x5f\160\x75s\x68"; $x134="p\162\151\156\164\137\162"; $x135="\x76\145\162\163\151\157\x6e\137\143omp\141re"; $x136="i\x6e_a\162\162\x61\x79"; $x137="\163\x70\162\x69\156tf"; $x138="\x61r\x72a\171\137\x70o\x70"; $x139="c\145il"; $x13a="\x69ni_g\145t"; $x13b="\x73\x65\x74\137\164\151m\145\x5fl\x69\x6di\164"; $x13c="u\x6e\x73\x65r\x69a\154i\172\145"; $x13d="g\x65\164Ty\160e"; $x13e="ro\165\156\x64"; $x13f="\x73\x74\x72_\160\x61\144"; $x140="\x61bs"; $x141="\x66\x6c\157\x6fr"; $x142="u\x73\157\162\x74"; $x143="\141rr\141\171_\163\x68\x69\x66\x74"; $x144="\x61\162\162\x61y\137\162\x65\166\x65\x72\163e"; $x145="\141\162\162ay_v\141l\165e\163"; $x146="\x70\162\145\147\137r\145p\x6c\141ce"; $x147="\x73t\162\151\x70\x5f\164a\147s"; $x148="\150\164m\154_e\x6et\x69\164\x79_de\143\x6fd\145"; $x149="h\164\155\x6c\163peci\x61\154\x63\x68\x61\162\x73"; $x14a="\163\164\x72\162\x70\x6f\x73"; $x14b="\163tr\x69\163\x74r"; $x14c="m\x62\137\x73\x74\x72t\x6flo\167\x65r"; $x14d="m\142\137strt\157u\x70\160\145\x72"; $x14e="\150\164\155\154\145\156\164i\164ie\163"; if ($x126($this->_filePath)) { $this->_filePath = $x121('//', '/', Mage::getBaseDir() . $this->getSimplegoogleshoppingPath()); } return $this->_filePath; } public function getPreparedFilename() { $x11f="\x73t\x72\154\x65\x6e"; $x120="\x69\155\160\x6c\157\144\x65"; $x121="\x73\164\162\137r\145\x70\x6ca\143e"; $x122="\x75t\146\70_e\156\143o\x64e"; $x123="\x70\162e\147_\155a\164c\x68\137\x61\154\x6c"; $x124="\x70r\x65\x67\137\155\x61t\143\150"; $x125="\162\x74\x72\x69m"; $x126="\151s\x5fnull"; $x127="\x6eu\x6d\x62er\137\x66o\162mat"; $x128="\143\157u\x6e\x74"; $x129="\151s\x5fnu\x6d\x65r\151c"; $x12a="\145\170pl\x6fd\x65"; $x12b="s\165bs\164\162"; $x12c="\164\162\151\x6d"; $x12d="p\162\x65\x67\x5f\x73\160l\x69t"; $x12e="u\x74\x66\70_d\145\143\157d\145"; $x12f="i\163\x5fs\x74r\x69n\x67"; $x130="js\x6f\x6e\x5f\x64\x65\143\157d\145"; $x131="\x69s\137\141r\x72\x61\171"; $x132="ucwo\x72\x64\163"; $x133="\141rr\x61\x79\137\x70\x75s\150"; $x134="\160\x72i\x6e\x74\x5f\x72"; $x135="vers\x69o\x6e_\143\x6fmp\x61\x72\145"; $x136="\x69\x6e_\141\162ra\171"; $x137="\x73\x70\162\x69\x6e\164\146"; $x138="\141\162\x72\x61\x79\x5f\x70\x6f\x70"; $x139="c\x65il"; $x13a="\151\x6e\x69_\x67e\164";
$x13b="se\x74\x5f\x74\x69m\x65\137\x6c\151mit"; $x13c="\x75ns\x65\x72\x69\x61\154\x69z\x65"; $x13d="\x67e\x74\x54\171\160\x65"; $x13e="\162\157\x75\156\144"; $x13f="s\164\x72\x5f\x70ad"; $x140="a\x62s"; $x141="\146\x6c\x6fo\162"; $x142="\165s\x6frt"; $x143="\x61r\x72\141\x79\x5f\x73\150\151\146\x74"; $x144="\x61r\162\x61y\x5f\x72e\x76\x65\x72\163\x65"; $x145="\x61\x72ra\x79\137v\x61\154ue\163"; $x146="\x70r\x65\147\x5f\162\145\x70la\x63\x65"; $x147="\x73t\162\x69\x70\x5f\x74\141\x67\x73"; $x148="\x68\164\155l\137\x65n\164\151\x74\171_\144e\143\x6f\x64\145"; $x149="h\x74\155l\x73\x70\x65\143\x69\x61l\143\150\x61rs"; $x14a="\x73\164r\x72\x70\157\x73"; $x14b="\163\164\162\x69\x73\164\x72"; $x14c="\155\142\137\x73\164r\164\157\x6c\157w\x65\x72"; $x14d="\x6d\x62\x5f\x73\x74\162\x74\x6f\165\160\x70\x65\x72"; $x14e="h\x74\x6d\x6c\x65n\164i\x74i\145\163"; return $this->getPath() . $this->getSimplegoogleshoppingFilename(); } public function x152($x3f, $x40) { $x11f="\163t\x72\x6ce\x6e"; $x120="\x69m\x70\x6c\x6fd\x65"; $x121="\163\164r_\162e\160\154\x61ce"; $x122="\x75\164\146\70\x5f\145\x6e\143od\145"; $x123="p\162e\x67\137\x6d\x61tc\150\x5f\x61\x6c\x6c"; $x124="\160\x72\145\x67\137\155a\164c\150"; $x125="\162\x74\162\x69\x6d"; $x126="\151s_n\165\x6c\154"; $x127="\156\x75\x6d\x62\145\162\137f\157rm\x61t"; $x128="\143\157un\164"; $x129="\x69\163\137n\165m\x65\x72i\x63"; $x12a="ex\160\x6cod\145"; $x12b="\163\x75b\x73\164r"; $x12c="\x74\162i\155"; $x12d="p\162\145\x67_spl\x69\164"; $x12e="u\164\x66\70\x5f\x64\x65c\157d\145"; $x12f="i\163\137strin\x67"; $x130="\152\163\x6f\x6e_\x64e\143\x6f\144e"; $x131="i\163\137arra\171"; $x132="\x75cw\x6f\162\x64s"; $x133="\x61\x72\162a\x79\x5f\160\x75\x73\x68"; $x134="\160\x72i\156\164_\162"; $x135="\x76\x65\x72si\x6f\156_\x63\x6fm\160\141re"; $x136="\151\156_\141\162\x72a\171"; $x137="\163\160\162\x69\x6e\x74f"; $x138="\141\162\x72a\171_\x70op"; $x139="\143\x65i\x6c"; $x13a="\151\156i_\x67\145\164"; $x13b="\163e\164\x5f\x74i\155\145\x5fl\x69\155\151\164"; $x13c="\165n\x73\145r\x69ali\x7a\145"; $x13d="\147e\x74\124\171p\x65"; $x13e="\x72\x6f\x75\x6e\x64"; $x13f="s\164\x72_pa\x64"; $x140="\x61\x62s"; $x141="\146loor"; $x142="\165sor\x74"; $x143="\141\x72ra\x79\x5f\x73\x68\x69\x66\164"; $x144="\x61rray\137reve\162s\145"; $x145="\x61\162\x72\x61\x79\x5f\x76a\x6c\x75e\163"; $x146="\x70re\147_\x72\145pl\x61\143\145"; $x147="s\164\162ip\x5f\x74\x61\147\x73"; $x148="\x68t\x6d\154\137\145n\x74it\x79_\144ecode"; $x149="\x68\x74\x6d\x6c\163pe\143ial\143\x68\x61\x72\163"; $x14a="\163\164\x72\162p\x6f\x73"; $x14b="stri\163\164\162"; $x14c="\155b_st\x72\164\157l\x6f\167\145\162"; $x14d="m\142_\x73\x74\162\164\157\x75\160p\x65\162"; $x14e="\150\x74\x6d\x6c\145\156t\151\x74i\145\163"; $x41 = $this->_currencies; if (isset($x41[$x40])) return $x3f * $x41[$x40]; else { return $x3f; } } public function x153($x3f, $x42, $x43, $x44 = false) { $x11f="\x73\164rle\156"; $x120="\151\155\160lod\x65"; $x121="\x73\x74r\x5f\x72\x65p\x6c\x61\x63e"; $x122="\165\x74\x66\70_en\143\x6f\x64\145"; $x123="pr\x65\x67\137\155\x61\x74\x63\x68\137\x61l\154"; $x124="\x70r\145\147_\155\x61\164c\150"; $x125="\x72\164\x72im"; $x126="\x69\x73\137\x6e\x75l\154"; $x127="\156u\155\142\x65r_f\157\x72m\x61\164"; $x128="\143ou\x6e\164"; $x129="\x69\163\x5f\x6e\x75m\145\x72\151\143"; $x12a="\x65\x78\x70l\x6fd\145"; $x12b="\x73u\x62\x73\x74\x72"; $x12c="t\x72i\x6d"; $x12d="\x70\162\145\147\137spl\x69\164"; $x12e="\165\x74f\70\x5f\144\x65\x63\157\144\x65"; $x12f="is_\x73t\x72\x69\156\x67"; $x130="js\157\x6e\x5fde\x63\157d\x65"; $x131="\x69\163\137\x61\162\x72\141y"; $x132="\165cw\157\162d\163"; $x133="\x61r\162\141\x79\137\x70\165s\150"; $x134="\x70r\151n\164_r"; $x135="\x76\x65r\163\x69\x6f\156_\x63\157\x6dp\x61\162e"; $x136="i\x6e\137a\162r\141\x79"; $x137="\x73\160\x72i\156\164\146"; $x138="\x61\162r\x61\x79_\160\157p"; $x139="\143\x65i\x6c"; $x13a="\x69\156\x69\x5fge\x74";
$x13b="\x73\145\164\137t\x69\155\145\137\x6c\x69\155it"; $x13c="u\x6es\x65\162\151al\151ze"; $x13d="\x67\x65\x74Ty\x70\x65"; $x13e="\x72\157u\x6e\144"; $x13f="\163tr_p\141\144"; $x140="a\x62\163"; $x141="f\154\x6f\x6f\x72"; $x142="usor\x74"; $x143="\x61rra\x79\x5f\x73\150\x69\x66\x74"; $x144="\141r\x72\141y_\x72\145v\145\x72\x73e"; $x145="\141\162r\141\171_\166\141l\165\x65s"; $x146="p\x72\145g\x5fr\145\x70lac\145"; $x147="s\164\162\151\160_\x74\x61\x67\x73"; $x148="\150\164\x6dl_e\156\x74i\x74\x79\137d\145\143\x6f\144\145"; $x149="h\164\x6d\154s\160\x65\x63\151\141\x6cc\150a\162s"; $x14a="s\164r\x72\160\157\x73"; $x14b="s\x74\x72\x69\163\164r"; $x14c="\x6d\x62\x5f\x73trt\x6f\x6c\x6f\167\145\x72"; $x14d="\x6d\x62\137str\164\x6f\x75\x70\160e\162"; $x14e="\150\x74\x6dle\x6e\x74\x69\x74\x69es"; $x45 = $this->_rates; $x3f = $x127($x3f, 2, '.', ''); if ($x44 === false) { if (!$x42 && isset($x45[$x43])) { if ($x128($x45[$x43]) > 1) { return $x3f; } else { return $x3f * ($x45[$x43][0]['rate'] / 100 + 1); } } else { return $x3f; } } elseif ($x44 === "0") { if ($x42 && isset($x45[$x43])) { if ($x128($x45[$x43]) > 1) { return $x3f; } else { return 100 * $x3f / (100 + ($x45[$x43][0]['rate'])); } } else { return $x3f; } } else { if ($x129($x44)) { if ($x43 != 0) { return $x3f * ($x44 / 100 + 1); } elseif ($x43 == 0) { return $x3f; } } else { $x44 = $x12a('/', $x44); $x46 = 0; $x47 = false; if ($x12b($x44[0], 0, 1) == "\x2d") { $x44[0] = $x12b($x44[0], 1); $x47 = true; } if ($x45[$x43]) { foreach ($x45[$x43] as $x48) { if ($x48['country'] == $x44[0]) { if (!isset($x44[1]) || $x48['code'] == $x44[1]) { $x46 = $x48['rate']; break; } } } if (!$x47) return $x3f * ($x46 / 100 + 1); else { return 100 * $x3f / (100 + ($x46)); } } else { return $x3f; } } } } public function x154($x49, $x4a = true) { $x11f="\x73\x74\x72\154\145\x6e"; $x120="\151mp\x6co\144e"; $x121="str\x5fr\145pl\141\143e"; $x122="\165tf\70_en\143\x6fde"; $x123="\160\162\x65\x67\x5fm\141t\143\150_\141\x6cl"; $x124="\x70reg\x5f\155a\164\x63\150"; $x125="\x72\x74\x72i\x6d"; $x126="\x69s_\156u\x6cl"; $x127="n\165m\142\x65\162_\146\157r\x6d\x61t"; $x128="\x63\157\165nt"; $x129="\x69s_\156u\x6d\145r\x69c"; $x12a="\145\170p\154\x6f\144\x65"; $x12b="\x73ub\163\x74r"; $x12c="\164\162i\155"; $x12d="\x70\162\x65g\137\x73pl\x69\x74"; $x12e="\x75t\x66\70\x5f\144\145c\x6fd\145"; $x12f="\x69s\x5f\x73\x74\162i\156\x67"; $x130="\152\x73\x6fn\137d\145c\157\x64e"; $x131="\151\163_a\162\x72\141\171"; $x132="\165\x63w\157r\x64\163"; $x133="\x61r\162ay_\x70us\150"; $x134="p\x72\x69\156\x74\x5f\x72"; $x135="\166\x65r\x73\151\157n_\143\157\155\160are"; $x136="\151\x6e\137\141\x72\162\141\x79"; $x137="\x73\x70\x72\151n\164f"; $x138="a\x72ra\171\137\x70\x6f\x70"; $x139="ce\151\154"; $x13a="\151\156\x69\x5fget"; $x13b="\x73\145\x74\x5f\164\151\x6d\x65\x5fli\x6dit"; $x13c="u\x6e\x73e\162\151\141\x6ciz\145"; $x13d="\147\x65t\x54y\160\x65"; $x13e="\x72\157\165n\x64"; $x13f="\163t\x72\137p\141\144"; $x140="a\x62s"; $x141="fl\x6f\157\x72"; $x142="\x75\x73\x6frt"; $x143="\x61\162ray\x5f\x73\150\151\x66\164"; $x144="\x61\x72ra\x79\x5f\x72e\x76erse"; $x145="\x61\x72r\141\171\137\x76\141\x6c\x75\145s"; $x146="\160r\x65\x67_r\x65p\154\x61c\145"; $x147="\x73tri\160_t\141\x67s"; $x148="\x68\164\155\x6c\x5f\145\156t\151t\171_d\x65\143\x6f\x64e"; $x149="\x68\x74\155\x6cs\160\x65\x63\x69\x61l\143har\x73"; $x14a="\x73\x74r\162p\x6f\x73"; $x14b="\x73t\x72\151\x73\x74\162"; $x14c="\x6d\x62\137s\164\x72\x74o\154\157w\x65r"; $x14d="mb_\x73trt\x6f\165\x70\160er"; $x14e="\150\x74\x6dl\145\156\x74\x69\x74i\145\163"; $x39 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x123($x39, $x49, $x3a); foreach ($x3a[1] as $x3b => $x4b) { $x4c = $x12c($x3a[2][$x3b]); if (empty($x4c) && !$x129($x4c)) $x49 = $x121($x3a[0][$x3b], '', $x49); else { if ($x4a) $x49 = $x121($x3a[0][$x3b], ($x3a[1][$x3b]) . '<![CDATA[' . $x4c . ']]>' . ($x3a[3][$x3b]), $x49); else $x49 = $x121($x3a[0][$x3b], ($x3a[1][$x3b]) . $x4c . ($x3a[3][$x3b]), $x49); } } $x36 = $x12d("\57\x0a/s", $x49); $x4d = ''; foreach ($x36 as $x4e) { ($x11f($x12c($x4e)) > 0) ? $x4d.=$x4e . "\x0a" : false; } $x49 = $x4d; return $x49; } public function x155($x49) { $x11f="\163t\x72\154e\x6e";
$x120="\151mplod\145"; $x121="\x73\164r_\x72\145\x70\154a\x63\x65"; $x122="\x75\x74\x66\70\137e\156\x63\157\144\x65"; $x123="\x70\x72\x65g\x5f\x6d\141t\x63\x68\x5fall"; $x124="\x70\162\x65\147\x5f\x6d\141\164\x63h"; $x125="r\x74\162im"; $x126="i\x73_\x6e\165\154\x6c"; $x127="\156\x75\x6db\x65\x72\137f\x6f\162\x6d\x61\x74"; $x128="\143\x6fu\x6e\164"; $x129="\151s\137nu\155er\x69c"; $x12a="\x65x\x70l\x6f\x64e"; $x12b="\x73\165\x62\x73tr"; $x12c="\x74r\x69m"; $x12d="\x70re\147\x5fs\x70\x6ci\164"; $x12e="u\164f\70_decod\x65"; $x12f="\151s_s\x74\162i\x6e\147"; $x130="j\x73\157\156\x5f\x64ec\157\x64\145"; $x131="i\x73\x5far\x72ay"; $x132="\x75\143wo\162\144s"; $x133="\141\x72\162a\171\x5f\x70us\x68"; $x134="\x70ri\156t\137\162"; $x135="v\145\x72sio\156_\143\157mp\x61\162\145"; $x136="\x69n\x5f\141\x72\x72\141\x79"; $x137="\163\160r\x69\x6etf"; $x138="\141r\162\141\171\x5f\160\x6f\x70"; $x139="c\145il"; $x13a="i\x6e\x69_\x67\145\164"; $x13b="\x73e\x74\x5f\x74i\x6d\145_l\151\x6d\151t"; $x13c="\165\x6es\x65\162\x69a\x6cize"; $x13d="\x67e\164\x54\171\x70\x65"; $x13e="\x72\x6f\165\156d"; $x13f="s\x74\162\137\160\141\x64"; $x140="\x61\x62\163"; $x141="\x66\x6co\x6f\x72"; $x142="u\x73o\162\x74"; $x143="a\x72\x72\x61\x79\137\163\150\x69\x66\164"; $x144="a\162r\141y\137\162\x65v\x65\162\x73e"; $x145="\141\x72\162a\x79\x5fva\x6cu\x65\163"; $x146="\160r\x65\147_\162\145\x70\154a\x63\x65"; $x147="\163\x74r\151\160_\164\x61gs"; $x148="h\x74\x6d\154_\145\156\x74i\x74y\x5f\144eco\x64\x65"; $x149="h\x74\x6d\x6c\163\x70e\x63i\x61\154c\x68\x61r\x73"; $x14a="st\162\162p\157\163"; $x14b="s\164\x72\151\163\x74\162"; $x14c="\155b_s\x74\162t\x6f\154\157\x77e\162"; $x14d="\155\x62\137\163t\x72\x74\157\x75p\x70\x65\162"; $x14e="\x68\164m\x6c\x65\x6e\x74it\151\x65s"; if ($this->_display) return ($x49); else { if ($this->_chartset == 'ISO') return $x12e($x49); else { return ($x49); } } } public function checkReference($x4f, $product) { $x11f="\163t\162l\145n"; $x120="\x69m\160lo\144\x65"; $x121="\x73tr\x5fr\x65\160\154ac\145"; $x122="ut\146\70_\x65nc\157d\x65"; $x123="\160\162\x65\147\x5f\155\141t\x63\150\x5f\x61\x6c\x6c"; $x124="p\x72e\147_\155at\x63\150"; $x125="r\164\162\151\x6d"; $x126="\x69s\137\156ul\154"; $x127="\156\165\155be\162_f\157r\x6d\141\x74"; $x128="co\x75nt"; $x129="i\163\x5f\x6e\x75\x6d\145r\151\x63"; $x12a="e\170\160\154\x6f\x64\x65"; $x12b="s\165\x62s\x74r"; $x12c="t\162\x69m"; $x12d="\x70\162\145\x67\137\x73\x70l\151\164"; $x12e="\x75\x74\x66\70\x5f\x64ec\157de"; $x12f="is\137s\164\162i\156g"; $x130="\x6a\x73\x6fn_\x64\x65\x63\157d\145"; $x131="\x69s_\x61\x72r\x61y"; $x132="\165\x63w\157r\x64\163"; $x133="\141r\162\x61\171\137\160u\x73\x68"; $x134="p\162\151\156\x74_\162"; $x135="\x76\145r\x73\151\x6f\x6e_\x63o\155\x70\x61re"; $x136="i\x6e_\141\162\x72\x61y"; $x137="\163\x70\x72in\164f"; $x138="\x61\162\x72\x61\171_\x70\157\160"; $x139="\143\145il"; $x13a="ini\137g\145\x74"; $x13b="\x73e\164\x5f\164i\155\x65\137lim\x69\x74"; $x13c="uns\x65\162\151a\x6c\151ze"; $x13d="\x67\145\164T\x79\160\x65"; $x13e="\x72\x6f\165\156d"; $x13f="st\x72\137p\x61d"; $x140="a\x62\163"; $x141="f\154o\x6f\x72"; $x142="\x75s\x6frt"; $x143="\141\x72ray_sh\x69\146t"; $x144="a\x72\x72\141y\x5f\162\145\166e\x72se"; $x145="\141\x72r\x61\x79_va\x6c\165\145s"; $x146="\160\162e\147_r\145pl\x61c\x65"; $x147="\163\x74\162\151\160\x5f\x74\x61\x67\x73"; $x148="\x68\164m\x6c\x5fenti\164\x79_\x64\x65\143o\x64\145"; $x149="ht\155\x6c\x73\x70ec\x69al\143\x68\x61\x72\x73"; $x14a="\163\x74r\162\x70os"; $x14b="\163\164r\151\x73\164\162"; $x14c="\155\142\137\x73t\162\x74\157\x6c\157\167\x65\x72"; $x14d="\155\x62\x5f\163\164\162\164\x6f\165\x70per"; $x14e="\150\164\x6d\x6c\x65\156\164\151t\x69e\x73"; if (($x4f == "\160a\162\x65\156\x74" || $x4f == "c\157nf\151g\x75\x72a\x62\x6c\145") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x4f == "\160a\162\x65\156\x74" || $x4f == "\x67\162\x6f\165pe\x64") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];
elseif (($x4f == "\160a\162\x65\156\x74" || $x4f == "\142un\x64\x6c\145") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()]; else { return $product; } } public function generateXml() { $x11f="s\x74r\x6c\x65n"; $x120="\151\155\x70\x6c\x6fde"; $x121="\x73\164r_\x72e\160lace"; $x122="\165\x74\x66\70\x5f\145\x6e\143\x6f\x64\x65"; $x123="\x70\162\x65g_\155\x61t\x63h\x5f\141l\x6c"; $x124="p\162\145\147\137\155\x61t\143\x68"; $x125="\x72\x74\x72\151\x6d"; $x126="\151s\137nu\x6cl"; $x127="\x6e\x75m\142\x65r_for\x6d\141\x74"; $x128="\143o\x75\156\164"; $x129="\151s\137n\165m\145\x72\x69\x63"; $x12a="\x65\170p\154o\144e"; $x12b="s\165b\163\x74\162"; $x12c="tri\155"; $x12d="p\x72\x65\x67\137sp\154\x69t"; $x12e="u\x74\x66\70\x5f\144\145co\144\145"; $x12f="i\163_\163\x74\x72\x69ng"; $x130="j\163on\137\x64\145\x63o\x64\x65"; $x131="i\x73\137a\x72r\141\x79"; $x132="\165c\167\157\x72\144s"; $x133="\141\162\x72\x61\171_\160\165s\x68"; $x134="\160\162\x69\156\164\137\x72"; $x135="\166ersi\x6fn\137\x63\157m\160\x61re"; $x136="in_\141r\162a\171"; $x137="s\x70\x72i\156\164\146"; $x138="a\x72\162ay\x5fpo\160"; $x139="\x63\145\151\154"; $x13a="\151\x6e\x69\x5fg\x65\164"; $x13b="se\164\137\164\151\155\145\x5f\x6ci\x6d\x69\x74"; $x13c="u\x6e\x73e\x72ia\154\x69\x7a\x65"; $x13d="\x67\x65\164\x54\x79\x70e"; $x13e="\x72\157\165\156d"; $x13f="st\x72_\160\x61\x64"; $x140="ab\x73"; $x141="f\154\157o\x72"; $x142="\x75s\157\x72\x74"; $x143="a\162\x72\x61\171\x5f\x73\x68\151\146t"; $x144="\141\x72\x72\x61y\x5f\162\145\x76\145\162s\x65"; $x145="\x61\x72\x72\x61\171\137\x76\x61l\165\x65\163"; $x146="p\x72\145\147_\162\x65\x70\154\x61\x63e"; $x147="str\151\x70\137\164\141\147\163"; $x148="h\x74m\x6c\x5fen\164\151\164y\x5f\x64\145c\x6f\144\x65"; $x149="\150\164m\x6c\163p\145\143\151a\x6cc\150ar\163"; $x14a="\x73\x74\x72r\160o\163"; $x14b="\x73t\162i\163t\x72"; $x14c="m\142_s\164\x72t\x6fl\x6f\x77\x65\x72"; $x14d="\155\x62_s\x74\x72\x74o\165\x70\x70er"; $x14e="h\164\155le\156\x74i\x74i\x65\x73"; Mage::log("\x0a\76\76\x3e\76\76>\x3e\76\x3e\x3e>\76\76\x3e>>\x3e>\x3e>\76>\x3e>\76>>\76>\x3e\x3e\76\76\76>\x3e\76\x3e\76>\x3e\76\76>\76\x3e\40--\55-\55\55\x2d\x2d\x2d-\x2d\55-\x2d-\x20S\x54\x41R\124\x20\120\x52\117C\105\x53\123 F\117\122\40" . strtoupper($this->getSimplegoogleshoppingFilename(false)) . "\x2d\x2d-\x2d\55-\x2d\55\55-\55\x2d\x2d\x2d\x2d\x2d\x2d", null, $this->getSimplegoogleshoppingFilename() . '.log'); ini_set('memory_limit', Mage::getStoreConfig("s\151m\x70\x6ceg\x6f\x6f\147\x6ce\x73\150\x6f\x70\x70\151n\x67\57\x73\171\163t\145m\x2fm\x65\155\157r\x79\137li\155i\x74") . 'M'); $this->_debug = (isset($_GET['debug'])) ? true : false; $x50 = $this->_indexPhp; $x3d = new Varien_Io_File(); $x3d->setAllowCreateFolders(true); if (!$this->_display) { $x3d->open(array('path' => $this->getPath())); if ($x3d->fileExists($this->getSimplegoogleshoppingFilename()) && !$x3d->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())); } $x3d->streamOpen($this->getSimplegoogleshoppingFilename()); } $x51 = array("a\x63" => "\x61\x63\164\x69\166at\x69o\156\137\x63o\144e", "a\153" => "\141c\x74\x69\166\x61t\151\x6f\x6e\x5f\153\x65\171", "\142\x75" => "ba\163e\137u\162l", "\x6dd" => "m\144\65", "\x74\150" => "\x74\x68i\x73", "\144\155" => "\137\x64em\157", "\x65\x78\164" => "\163gs", "\x76e\x72" => "\70\x2e\61\56\x30"); $x12f(Mage::app()->getRequest()->getParam("s\x74\x6f\162\x65_\151\x64")) ? $x52 = Mage::app()->getRequest()->getParam("s\x74\x6f\162\x65_\151\x64") : $x52 = $this->getStoreId(); $x53 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x54 = Mage::getDesign()->getSkinUrl(); $x55 = Mage::getStoreConfig("c\x61ta\154\x6f\x67\57p\154\x61\x63\145\150\x6f\x6cd\145r\x2f\151\x6d\x61\147e_\160\x6ca\x63\145h\157\x6c\144\x65\x72", $x52); $x56 = Mage::getStoreConfig("\143\165\x72\x72\145\x6e\143\x79\57o\x70\x74\151\157\156s\57b\141\163\145", $x52); $x57 = Mage::getStoreConfig("c\141\164\x61\x6c\x6f\x67\151\x6e\166\x65n\164\x6f\162y/\151\x74\145m\x5f\x6f\x70ti\157\156\163\x2f\x6d\x61\156\141\x67\145_\163t\x6fc\x6b", $x52); $x58 = Mage::getStoreConfig("c\x61\x74\x61\x6co\147\x69\156\166\145\156\164\x6f\162\x79/i\x74e\x6d\137\157\x70t\x69on\x73\57b\x61c\x6b\x6fr\x64e\x72\163", $x52); $x59 = Mage::app()->getStore($x52)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x5a = Mage::getModel('core/store')->load($x52)->getBaseUrl(); $x5b = Mage::app()->getStore($x52)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x5c = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x52); $x5d = Mage::app()->getStore($x52)->getRootCategoryId(); $x5e = Mage::app()->getStore()->getStoreId(); $x5f = array( "\141c\x74\x69\166\x61t\151\x6f\x6e\x5f\153\x65\171" => Mage::getStoreConfig("si\x6d\160l\145go\157g\x6c\145\163\x68\157\160p\151\x6eg\x2f\x6c\151\143en\x73\x65\57\141\x63\x74\151\x76\141\x74i\157\x6e\137\x6b\x65\x79"), "\x61\x63\164\x69\166at\x69o\156\137\x63o\144e" => Mage::getStoreConfig("si\x6dpl\145\x67\157og\x6ce\163\150\x6f\160\x70\151ng\57l\151\143e\x6e\x73\145\57\141\143\x74\x69\166\x61\x74\x69\x6f\156\x5f\x63o\x64\145"), "ba\163e\137u\162l" => Mage::getStoreConfig("w\145\142\57s\145\x63\165r\145/\x62\x61s\x65\137ur\154"), ); $x12f(Mage::app()->getRequest()->getParam("\x73\151\155\160le\147\157\x6f\147\154\x65\x73\x68\157p\x70\x69\x6e\147_\170\x6d\x6cit\x65\x6dp\x61\164te\x72\156")) ? $x60 = Mage::app()->getRequest()->getParam("\x73\151\155\160le\147\157\x6f\147\154\x65\x73\x68\157p\x70\x69\x6e\147_\170\x6d\x6cit\x65\x6dp\x61\164te\x72\156") : $x60 = $this->getSimplegoogleshoppingXmlitempattern(); $x12f(Mage::app()->getRequest()->getParam("\163implegoogl\145s\x68\x6fp\160i\x6eg\x5fti\164\x6c\x65")) ? $x61 = Mage::app()->getRequest()->getParam("\163implegoogl\145s\x68\x6fp\160i\x6eg\x5fti\164\x6c\x65") : $x61 = $this->getSimplegoogleshoppingTitle(); $x12f(Mage::app()->getRequest()->getParam("\163im\160l\x65goog\154\x65s\x68\x6fp\160\x69n\147\137\144\145\x73\x63\x72\x69\160t\x69o\156")) ? $x62 = Mage::app()->getRequest()->getParam("\163im\160l\x65goog\154\x65s\x68\x6fp\160\x69n\147\137\144\145\x73\x63\x72\x69\160t\x69o\156") : $x62 = $this->getSimplegoogleshoppingDescription(); $x12f(Mage::app()->getRequest()->getParam("s\x69\x6d\x70l\145\x67\157o\x67\x6c\x65\163\150o\x70p\151n\x67\x5fca\x74\x65\x67\x6fr\x69\145\x73")) ? $x63 = $x130(Mage::app()->getRequest()->getParam("s\x69\x6d\x70l\145\x67\157o\x67\x6c\x65\163\150o\x70p\151n\x67\x5fca\x74\x65\x67\x6fr\x69\145\x73")) : $x63 = $x130($this->getSimplegoogleshoppingCategories()); $x12f(Mage::app()->getRequest()->getParam("\143a\164\145\x67\x6fr\171_\x66\151\154\x74\x65\x72")) ? $x64 = Mage::app()->getRequest()->getParam("\143a\164\145\x67\x6fr\171_\x66\151\154\x74\x65\x72") : $x64 = $this->getSimplegoogleshoppingCategoryFilter(); $x65 = Array(); $x66 = Array(); if ($x131($x63)) { foreach ($x63 as $x67) { if ($x67->checked) $x65[] = $x67->line; } foreach ($x63 as $x67) { if ($x67->mapping != "") $x66[$x67->line] = $x67->mapping; } } if ($x128($x65) < 1) { $x65[] = '*'; } $x12f(Mage::app()->getRequest()->getParam("s\x69\155\x70le\147o\x6f\x67\x6c\145\163\x68o\160pi\156\x67_\x74\171\x70\x65_\x69d\163")) ? $x68 = $x12a(',', Mage::app()->getRequest()->getParam("s\x69\155\x70le\147o\x6f\x67\x6c\145\163\x68o\160pi\156\x67_\x74\171\x70\x65_\x69d\163")) : $x68 = $x12a(',', $this->getSimplegoogleshoppingTypeIds()); $x12f(Mage::app()->getRequest()->getParam("s\x69m\160\154\x65\147\x6f\157\147\x6c\145s\x68\157\160pin\x67_\166i\x73ib\151\x6c\151\x74\x79")) ? $x69 = $x12a(',', Mage::app()->getRequest()->getParam("s\x69m\160\154\x65\147\x6f\157\147\x6c\145s\x68\157\160pin\x67_\166i\x73ib\151\x6c\151\x74\x79")) : $x69 = $x12a(',', $this->getSimplegoogleshoppingVisibility()); $x12f(Mage::app()->getRequest()->getParam("\163\x69\155\x70leg\x6f\157\147l\145\x73ho\x70\160\x69\x6e\x67\137\141tt\162\x69\142u\164\145\163")) ? $x6a = $x130(Mage::app()->getRequest()->getParam("\163\x69\155\x70leg\x6f\157\147l\145\x73ho\x70\160\x69\x6e\x67\137\141tt\162\x69\142u\164\145\163")) : $x6a = $x130($this->getSimplegoogleshoppingAttributes()); $x12f(Mage::app()->getRequest()->getParam("si\155\x70l\145\x67\157\x6f\147l\x65\x73hop\x70\x69n\147_\x61ttr\151b\165\164\x65_\x73e\164\163")) ? $x6b = $x12a(',', Mage::app()->getRequest()->getParam("si\155\x70l\145\x67\157\x6f\147l\x65\x73hop\x70\x69n\147_\x61ttr\151b\165\164\x65_\x73e\164\163")) : $x6b = $x12a(',', $this->getSimplegoogleshoppingAttributeSets()); if ($x5f[$x51['ac']] != $x51["\x6dd"]($x51["\x6dd"]($x5f[$x51['ak']]) . $x51["\x6dd"]($x5f[$x51['bu']]) . $x51["\x6dd"]($x51["\x65\x78\164"]) . $x51["\x6dd"]($x51["\x76e\x72"]))) { $$x51["\x65\x78\164"] = "val\151\144"; $$x51["\x74\150"]->$x51["\144\155"] = true; } else { $$x51["\x74\150"]->$x51["\144\155"] = false; $$x51["\x65\x78\164"] = "val\151\144"; } $x6c = ''; $x6d = ''; header("C\157\156t\145\156\164-Typ\145:\x20\x74e\170\x74\x2f\x68\x74\155\154\x3b\x20ch\x61r\x73\145\164\75u\164\x66\55\70"); $x6c = ('<?xml version="1.0" encoding="utf-8" ?>' . "\x0a"); $x6c.=('<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">' . "\x0a"); $x6c.=('<channel>' . "\x0a"); $x6c.=('<title>' . $x61 . "\x3c\x2f\164\x69tle>\x0a"); $x6c.=('<link>' . $x12b($x59, 0, -1) . "\x3c/\154\151n\153\76\x0a");
$x6c.=('<description>' . $x62 . "\74/\144\145s\x63\162\151\160\x74\x69\x6f\x6e>\x0a"); if (!isset($$x51["\x65\x78\164"]) || $$x51["\x74\150"]->$x51["\144\155"]) { $$x51["\x74\150"]->$x51["\144\155"] = true; return $$x51["\x74\150"]; } if ($this->_display) $x6d = $this->x155($x6c); else { $x3d->streamWrite($this->x155($x6c)); Mage::log("\x0a\76\x3e\x3e>\76>\76\x3e>>>\76\x3e>>\x3e>\76\76\76\76>\76\76>\76\76>\76>\76\x3e\x3e\76>>\x3e\76\x3e\x3e\x3e>>\x3e\76\76\40" . $this->getSimplegoogleshoppingFilename() . "\40\x63r\x65ate\x64\40\x61n\144 ope\x6e\x65d", null, $this->getSimplegoogleshoppingFilename() . '.log'); } $x39 = '/{([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)?([^}|]*))?}/'; $x123($x39, $x60, $x3a); foreach ($x3a[6] as $x3b => $x6e) { if ($x6e != "") { $x3a[0][] = $x3a[0][$x3b]; $x3a[1][] = $x6e; $x3a[2][] = $x3a[7][$x3b]; $x3a[3][] = $x3a[8][$x3b]; ; $x3a[4][] = $x3a[9][$x3b]; ; } } foreach ($x3a[11] as $x3b => $x6e) { if ($x6e != "") { $x3a[0][] = $x3a[0][$x3b]; $x3a[1][] = $x6e; $x3a[2][] = $x3a[7][$x3b]; $x3a[3][] = $x3a[8][$x3b]; ; $x3a[4][] = $x3a[9][$x3b]; ; } } foreach ($x3a[16] as $x3b => $x6e) { if ($x6e != "") { $x3a[0][] = $x3a[0][$x3b]; $x3a[1][] = $x6e; $x3a[2][] = $x3a[7][$x3b]; $x3a[3][] = $x3a[8][$x3b]; ; $x3a[4][] = $x3a[9][$x3b]; ; } } $x3a[0][] = "{\143\141\x74e\147o\162i\x65\x73\x2c[\61\x5d\x2c[\61]\x2c\133\61\x5d\175"; $x3a[1][] = "c\x61\x74egori\x65\163"; $x3a[2][] = ""; $x3a[3][] = ",\133\61],\x5b\61\135\54\133\61\x5d"; $x6f = array(); $x70 = array(); foreach ($x3a[1] as $x3b => $x6e) { $x6f[$x3b]['methodName'] = "ge\164" . $x121(' ', '', $x132($x12c($x6e)) . '()'); $x6f[$x3b]['pattern'] = "\x7b" . $x12c($x6e) . "\x7d"; $x6f[$x3b]['fullpattern'] = $x3a[0][$x3b]; $x6f[$x3b]['name'] = $x12c($x6e); $x6f[$x3b]['reference'] = $x12c($x3a[2][$x3b]); if (empty($x6f[$x3b]['reference'])) $x6f[$x3b]['reference'] = 'self'; switch ($x6f[$x3b]['name']) { case 'url': $x133($x70, 'url_key'); break; case 'uri': $x133($x70, 'url_key'); break; case 'G:IMAGE_LINK': $x133($x70, 'image'); $x133($x70, 'small_image'); $x133($x70, 'thumbnail'); break; case 'SC:IMAGES': $x133($x70, 'image'); $x133($x70, 'small_image'); $x133($x70, 'thumbnail'); break; case 'SC:DESCRIPTION': $x133($x70, 'description'); $x133($x70, 'short_description'); $x133($x70, 'manufacturer'); $x133($x70, 'name'); $x133($x70, 'sku'); break; case 'SC:EAN': $x133($x70, 'ean'); break; case 'SC:URL': $x133($x70, 'url_key'); $x133($x70, 'url'); break; default : $x133($x70, $x6f[$x3b]['name']); } $x6f[$x3b]["v\141\x6cu\x65"] = '$product->get' . $x6f[$x3b]['name'] . "\x28\51"; $x6f[$x3b]["\x67\145\164T\x65\170\164"] = 'getAttributeText(\'' . $x12c($x6e) . '\')'; $x71 = '/\[([^\]]+)\]/'; $x123($x71, $x3a[3][$x3b], $x72); $x6f[$x3b]["o\160\x74io\x6e\163"] = $x72[1]; } if ($this->_debug) { echo "\x2d\55\x2d--\x2d\55\55-\55\x2d\55\55\x2d\55-\55\55\x2d\x2d\55\x2d--\x2d\x2d\x2d-\x2d\x2d\55\x2d-\55--\55\55\x2d\x2d\x2d\x2d\55\55\x2d\x2d\74br>\x0d\x0a\x20 \x20\x20 \40\x20\x20 \40\x20\40\x20\x20\x20\40 \x20 -\55\55\55-\55--\55\55--\40\104EB\125\107\x20\115\x4f\104E ---\x2d\55\x2d\x2d\55-\55-\55\x2d\55\55\55\x3c\x62\x72> \x0a\40\x20\40 \40 \40\40\40\x20\x20\x20\40 \40\40\40\x20\x20\x2d-\x2d-\x2d--\55--\x2d\x2d\55\55-\x2d\x2d\55\55\55-\55-\x2d\x2d--\55\x2d\x2d-\x2d\x2d-\x2d\55\55\x2d-\55-\x2d-\x2d\55\55\74\142\x72\x3e<\x62\162\76"; echo "\x3cb\162\x3e\74\142\x72\x3e-\55---\55\x2d\55\x2d-\55-\x20\x41\x54T\122\111B\125\124\105\x53 \x2d\55-\55-\x2d\55-\55\55\55\x2d-\55-\x2d\74\142r>"; $x134($x6f); } Mage::log("\x0a\76\x3e\76>\76\x3e\76>\76\76\76\76>\76\x3e>\76\76\76\x3e>\x3e\76>>\x3e>\x3e>>\x3e\x3e>\76\x3e\x3e\76\76\x3e\x3e\x3e\76>>\x3e> \120\162\x6fd\x75\143\x74\x20\x74\145\x6d\160\x6ca\164\145\40\x61\156al\x79ze\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x73 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x52) ->addAttributeToSelect('name', 'store_id') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x74 = array(); foreach ($x73 as $x75) { $x74[$x75->getId()]['name'] = $x75->getName(); $x74[$x75->getId()]['path'] = $x75->getPath(); $x74[$x75->getId()]['level'] = $x75->getLevel(); if ($x135(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("\x73\151\x6d\160\154ego\x6f\147\x6c\145s\150o\x70\160\x69\x6e\x67/\163ys\x74\145\155\57\x69\156c\154\x75de\137in\137\x6d\145\156u")) $x74[$x75->getId()]['include_in_menu'] = true; else $x74[$x75->getId()]['include_in_menu'] = $x75->getIncludeInMenu(); } if ($this->_debug) { echo "\x3cb\162\x3e\74b\162\76\55\x2d\55\55\x2d----\55\55\55\40\103\x41\x54\x45G\117\122\x49\x45\x53\40-\55\55\55\x2d-\x2d--\55\x2d\x2d\x2d\x2d-\x2d\74\x62\162\x3e"; $x134($x74); } Mage::log("\x0a\76>\x3e>\76\76\x3e>\76\x3e\76\76>>>\x3e>>>>\x3e>>\76\x3e>\76\76\x3e>\76\76\76\76\76\x3e\x3e>\x3e\76\x3e\76>\x3e\76\76\x20\x43\141t\x65gor\x69es\40\143o\154l\145c\164e\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x78 = $x76->getTableName('eav_entity_type'); $x79 = $x77->select()->from($x78)->where('entity_type_code=\'catalog_product\''); $x7a = $x77->fetchAll($x79); $x7b = $x7a[0]['entity_type_id']; $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x7c = $x76->getTableName('directory_currency_rate'); $x79 = $x77->select()->from($x7c)->where('currency_from=\'' . $x56 . '\''); $x41 = $x77->fetchAll($x79); $x7d = array(); foreach ($x41 as $x40) { $x7d[$x40['currency_to']] = $x40['rate']; } $this->_currencies = $x7d; if ($this->_debug) { echo "<b\162\x3e\x3cb\x72\x3e\55-\x2d\55\x2d-\55-\55\55-\x2d\x20\103U\x52RE\116C\x49\105S \x2d\55\x2d\x2d\x2d\x2d\x2d--\x2d\x2d\x2d\x2d---\74br>"; $x134($x7d);
} Mage::log("\x0a\x3e\76>\x3e\76\76>\76>>\76\x3e\x3e>\76\76>\76\x3e>>\76>\x3e\76>>\x3e\76>>>\76>\x3e>\x3e>\x3e\x3e>>\x3e\x3e\76\76\40\103\x75r\x72\x65\156\x63\x69es r\141\164e\x20co\154le\x63\x74\x65\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x7e = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x7b) ->addSetInfo() ->getData(); $x7f = array(); $x80 = array(); foreach ($x7e as $x3b => $x6e) { if ($x136($x6e['attribute_code'], $x70)) { $x133($x7f, $x6e['attribute_code']); $x80[$x6e['attribute_code']] = $x6e['frontend_input']; } } if (!$x136('special_price', $x7f)) $x7f[] = 'special_price'; if (!$x136('special_from_date', $x7f)) $x7f[] = 'special_from_date'; if (!$x136('special_to_date', $x7f)) $x7f[] = 'special_to_date'; if (!$x136('price_type', $x7f)) $x7f[] = 'price_type'; if (!$x136('price', $x7f)) $x7f[] = 'price'; $x7f[] = 'tax_class_id'; foreach ($x6a as $x81) { if (!$x136($x81->code, $x7f) && $x81->checked) if (!$x136($x81->code, array("i\163\x5f\151n_\x73\x74o\143\x6b", "\x71\164\171", "e\x6e\x74i\164y_id", "\143\x72\145\141\164\145\144\137\141t", "u\x70d\141\x74e\x64\137\x61\164"))) $x7f[] = $x81->code; } if ($this->_debug) { echo "\x3cb\162\x3e\74\142\x72\x3e-\55---\55\x2d\55\x2d-\55-\x20\x41\x54T\122\111B\125\124\105\x53 \x2d\55-\55-\x2d\55-\55\55\55\x2d-\55-\x2d\74\142r>"; $x134($x7f); } Mage::log("\x0a\x3e>>>>\76>>\76\x3e\76\x3e>\76\x3e>>\x3e>\76\x3e>>\76\x3e\76\x3e\76\76\x3e\x3e>>>>>\76>\76\x3e\x3e>\x3e\x3e\76\76 \x4c\151\163t \157\146\40\162e\161\x75\151r\x65\x64\40\x61\x74\x74ri\142\x75t\145\163 col\x6c\145\143t\x65d", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x82 = $x76->getTableName('eav_attribute_option_value'); $x79 = $x77->select(); $x79->from($x82); $x79->where("\x73\164\157\x72\x65\137id=" . $x52 . ' OR store_id=0'); $x79->order(array('option_id', 'store_id')); $x83 = $x77->fetchAll($x79); foreach ($x83 as $x84) { $x85[$x84['option_id']][$x84['store_id']] = $x84['value']; } if ($this->_debug) { echo "\x3c\142\x72\x3e\74b\x72\x3e\x2d-\55\55-\55\x2d-\55\55\x2d\55 \x41T\x54\122I\102\x55\124\105S\40L\x41B\x45L \55---\55-\55\55\55-\x2d-\x2d---\x3c\142r\76"; $x134($x85); } Mage::log("\x0a>\76\x3e\76>>\76\76\x3e\76\76\76\76\x3e\x3e>>\76\76\x3e\76\76\x3e>\76\x3e\76>\76\76\x3e\76>\76>>\x3e\76\76\x3e\x3e>\76>>> \114\x69\x73t o\x66\40\x61\x74\x74ri\142\x75\x74\x65\40\x6cabe\x6cs\x20\x63\x6flle\143\164\x65d", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x86 = $x76->getTableName('tax_class'); $x87 = $x76->getTableName('tax_calculation'); $x88 = $x76->getTableName('tax_calculation_rate'); $x89 = $x76->getTableName('directory_country_region'); $x8a = $x76->getTableName('customer_group'); $x79 = $x77->select(); $x79->from($x86)->order(array('class_id', 'tax_calculation_rate_id')); $x79->joinleft(array('tc' => $x87), 'tc.product_tax_class_id = ' . $x86 . '.class_id', 'tc.tax_calculation_rate_id'); $x79->joinleft(array('tcr' => $x88), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x79->joinleft(array('dcr' => $x89), 'dcr.region_id=tcr.tax_region_id', 'code'); $x79->joinInner(array('cg' => $x8a), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $x8b = $x77->fetchAll($x79); $x45 = array(); $x8c = ''; foreach ($x8b as $x8d) { if ($x8c != $x8d['class_id']) $x8e = 0; else { $x8e++; } $x8c = $x8d['class_id']; $x45[$x8d['class_id']][$x8e]['rate'] = $x8d['rate']; $x45[$x8d['class_id']][$x8e]['code'] = $x8d['code']; $x45[$x8d['class_id']][$x8e]['country'] = $x8d['tax_country_id']; } $this->_rates = $x45; if ($this->_debug) { echo "\74b\162\76\x3cbr\x3e-\55-\x2d\55----\55\55\x2d\40\124\x41X\x20\x43\114ASS\40\x2d\55\x2d--\x2d\55\x2d\x2d\x2d-\x2d--\x2d\55<br>"; $x134($x45); } Mage::log("\x0a\x3e\76\x3e>>\76\76>\x3e\x3e\76\76>\76\76>>>\x3e>\x3e>\x3e>>\x3e\x3e\76\x3e\x3e\76\x3e\76>\x3e\76\x3e>\x3e\76>\76>>\x3e\x3e T\x61x\40\x72at\x65 \x63\x6f\x6c\x6c\145c\164\x65\144", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x8f = $x76->getTableName('review'); $x90 = $x76->getTableName('review_store'); $x91 = $x76->getTableName('rating_option_vote'); $x92 = $x77->select()->distinct('review_id'); $x92->from(array("\162" => $x8f), array("\103\117\x55NT\x28\x44I\x53\x54\x49N\x43\x54 r\56r\145\166\151\145w\137\151\x64\51 \x41S\40c\157u\156\164", 'entity_pk_value')); $x92->joinleft(array('rs' => $x90), 'rs.review_id=r.review_id', 'rs.store_id'); $x92->joinleft(array('rov' => $x91), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x92->where("\x73t\x61\164u\x73\137\x69\144\x3d\61 \x61n\x64 \x65n\164i\x74y\137\x69\x64\x3d\61"); $x92->group(array('r.entity_pk_value', 'rs.store_id')); $x93 = $x77->select(); $x93->from(array("\162" => $x8f), array("\103\117\x55NT\x28\x44I\x53\x54\x49N\x43\x54 r\56r\145\166\151\145w\137\151\x64\51 \x41S\40c\157u\156\164", 'entity_pk_value', "\x28SE\114\x45C\x54\x20\x30)\40A\123\40\x20\163to\162\x65_id")); $x93->joinleft(array('rs' => $x90), 'rs.review_id=r.review_id', array()); $x93->joinleft(array('rov' => $x91), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x93->where("\x73t\x61\164u\x73\137\x69\144\x3d\61 \x61n\x64 \x65n\164i\x74y\137\x69\x64\x3d\61"); $x93->group(array('r.entity_pk_value')); $x79 = $x77->select() ->union(array($x92, $x93)); $x79->order(array('entity_pk_value', 'store_id')); $x94 = $x77->fetchAll($x79); $x95 = array(); foreach ($x94 as $x96) { $x95[$x96['entity_pk_value']][$x96['store_id']]["\143o\x75\x6e\164"] = $x96["\143o\x75\x6e\164"]; $x95[$x96['entity_pk_value']][$x96['store_id']]['score'] = $x96['score']; } Mage::log("\x0a\76>>\76\76>\x3e>>>>\76\76\x3e\x3e>>\76\76\76\76>\x3e>>>\76>>>\76\x3e\76\x3e\76>\x3e>\76\x3e>\76\76\x3e>\76\x20\122\x65v\x69\145\167\x73\x20\143\x6fl\x6ce\143te\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x76 = Mage::getSingleton('core/resource'); $x77 = $x76->getConnection('core_read'); $x97 = $x76->getTableName('catalog_product_entity_media_gallery'); $x98 = $x76->getTableName('catalog_product_entity_media_gallery_value'); $x79 = $x77->select(array("\x44\111S\x54\111\116\103\x54\x20\x76\141lu\145")); $x79->from($x97); $x79->joinleft(array('cpemgv' => $x98), 'cpemgv.value_id = ' . $x97 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x79->where("\166a\x6c\165\145<\76T\x52IM\50\47\x27\51\40\x41\116\x44\x20(\163t\x6f\162e\137i\144\x3d" . $x52 . ' OR store_id=0)'); $x79->order(array('position', 'value_id')); $x79->group(array('value_id')); $x99 = $x77->fetchAll($x79); foreach ($x99 as $x9a) { $x9b[$x9a['entity_id']]['src'][] = $x9a['value']; $x9b[$x9a['entity_id']]['disabled'][] = $x9a['disabled']; } if ($this->_debug) { echo "\74br>\74\x62\162\x3e\x2d---\55\x2d\x2d--\55\55-\40\x49\x4d\101\107E\x53 \55--\x2d--\x2d\x2d\x2d-\x2d\x2d\55\x2d\x2d\x2d\x3c\x62\x72\x3e"; $x134($x9b); } Mage::log("\x0a\76\76\x3e\x3e>\x3e\76\x3e\x3e>\x3e>\76\x3e>\76>>\76\x3e\76>\76\x3e>\76\x3e\x3e\76\76\x3e>>\x3e\x3e>\76\76\x3e\76\x3e\x3e\x3e>\76\x3e\x20\111\x6da\147\145\163 c\157\x6c\x6c\145c\164ed", null, $this->getSimplegoogleshoppingFilename() . '.log'); Mage::app()->setCurrentStore($x52); $x9c = $x76->getTableName("\143\x61t\x61\154\x6f\147\x69\156\166\145\x6e\x74o\162\171_\x73\x74\157ck\x5f\x69\x74\145\155"); $x9d = $x76->getTableName("co\x72\145\137\x75\162l_r\x65\x77\x72i\164\145"); $x7c = $x76->getTableName('catalog_category_product'); $x9e = $x76->getTableName('catalog_category_product_index'); $x9f = $x76->getTableName('catalog_product_index_price'); $xa0 = $x76->getTableName('catalog_product_super_link'); $xa1 = $x76->getTableName('catalog_product_link'); $xa2 = $x76->getTableName('catalog_product_bundle_selection'); ($x135(Mage::getVersion(), '1.6.0', '<')) ? $x72 = "o\x70t\151\x6f\x6e\163\75'\47" : $x72 = "ISN\x55\x4c\114\x28\157\x70\164i\157\156\163\x29";
switch (Mage::getStoreConfig("\163\151\155\160\x6c\x65\147\157og\154\x65\163hop\160i\156g\x2f\x73y\163\164\145\155\x2fu\x72\154\162ewrit\x65")) { case 1 : $xa3 = "\x41N\x44\40\x75\162\154\x2e\164ar\x67\145t\137\160\141th \x4eOT\40\x4cI\113\x45\40\47\x25\143\141\x74\x65\147o\162\171\x25\47"; $xa4 = 'MAX'; break; default : $xa3 = "\101\x4e\x44\x20\165rl\56\164\141\162\147\145\x74\137\x70\141th L\111\113\x45\40'\x25\x63\141\164eg\157r\x79\x25\47"; $xa4 = 'GROUP_CONCAT'; break; break; } $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("\151n" => "c\157nf\151g\x75\x72a\x62\x6c\145")); $xa5->addAttributeToFilter('visibility', array("ni\156" => 1)); $xa5->addAttributeToSelect($x7f, true); $xa5->getSelect()->joinLeft($xa0 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $xa5->getSelect()->joinLeft($x9c . ' 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')); $xa5->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xa5->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); $xa5->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa5->getSelect()->group(array('cpsl.parent_id')); $xa6 = array(); foreach ($xa5 as $xa7) { foreach ($x12a("\x2c", $xa7->getChildIds()) as $xa8) { $xa6[$xa8] = $xa7; $xa9[$xa8]['categories_ids'] = $xa7->getCategories_ids(); $xa9[$xa8]['parent_id'] = $xa7->getId(); $xa9[$xa8]['parent_sku'] = $xa7->getSku(); $xa9[$xa8]['parent_request_path'] = $xa7->getRequestPath(); } } $this->configurable = $xa6; if ($this->_debug) { echo "\74\142\x72\76<\142\162>\x2d\55-\55\x2d\55\55\x2d\x2d--\x2d\40\x43\117\116FI\107U\122\x41\x42L\105\123\40\55--\x2d\x2d\x2d--\x2d\55\55\55\55\55\x2d-<\142\162\76"; echo $xa5->getSelect() . '<br><br>'; $x134($xa9); } Mage::log("\x0a\76\76\x3e\x3e>\x3e\x3e>\76\76\x3e>\76\x3e>>\x3e>>\76\76\x3e>\x3e>\x3e>\76\76\76\x3e>>\x3e\x3e>\x3e\76\76>>>\76\76>\76\40\x52\145\154at\151on\163 wi\164\x68\x20\143\x6f\x6e\146i\x67u\162ab\x6c\145\40\x70\x72\x6f\144\165\143\x74\x73\x20d\x65\164e\x63\164\x65\144", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("\151n" => "c\157nf\151g\x75\x72a\x62\x6c\145")); $xa5->addAttributeToFilter('visibility', array("ni\156" => 1)); $xa5->getSelect()->joinLeft($xa0 . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $xa5->getSelect()->joinLeft($x9c . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xa5->getSelect()->group(array('cpsl.parent_id')); $xaa = array(); foreach ($xa5 as $xab) { $xaa[$xab->getId()] = $xab->getQty(); } $this->configurableQty = $xaa; if ($this->_debug) { echo "\74b\162\76\x3c\142\162\x3e-\x2d\x2d\x2d\55\55\55\x2d\x2d\x2d\55\x2d\x20CON\x46I\x47\x55R\101\x42\x4c\105\123 \121T\131\40----\55\55\55-\55-\55--\55-\55\74\142r>"; echo $xa5->getSelect() . '<br><br>'; $x134($xaa); } Mage::log("\x0a\x3e\x3e>\76>\x3e\76\x3e\x3e\x3e>>>\76\76\x3e\x3e\x3e\x3e\76>\76\x3e\76>>\x3e\76\76>\x3e>\x3e>\x3e>>>\x3e\x3e>>>\76\76\x3e \121\164y\x20\x66\157\x72 \x63\x6fn\146\151g\165\x72\x61\x62\154e\x20\x70\x72\x6f\x64u\x63t\x73\x20cal\143u\x6ca\x74e\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("\151n" => "\x67\162\x6f\165pe\x64")); $xa5->addAttributeToFilter('visibility', array("ni\156" => 1)); $xa5->addAttributeToSelect($x7f, true); $xa5->getSelect()->joinLeft($xa1 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xa5->getSelect()->joinLeft($x9c . ' 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')); $xa5->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xa5->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); $xa5->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa5->getSelect()->group(array('cpl.product_id')); $xac = array(); foreach ($xa5 as $xa7) { foreach ($x12a("\x2c", $xa7->getChildIds()) as $xa8) { $xac[$xa8] = $xa7; $xad[$xa8]['categories_ids'] = $xa7->getCategories_ids(); $xad[$xa8]['parent_id'] = $xa7->getId(); $xad[$xa8]['parent_sku'] = $xa7->getSku(); $xad[$xa8]['parent_request_path'] = $xa7->getRequestPath(); } } $this->grouped = $xac; if ($this->_debug) { echo "\74b\x72\76<\x62r\x3e-\55-\55\55-\55\55-\55\x2d\55 \x47\x52O\x55P\x45\x44\40-\x2d\x2d-\55-\55\55\55-\x2d\x2d-\55\55-<\x62\162\x3e"; echo $xa5->getSelect() . '<br><br>'; $x134($xad); } Mage::log("\x0a\x3e\x3e\x3e\x3e\x3e\x3e\76\x3e\x3e\76>\x3e>\x3e>\x3e>\76\76\x3e\x3e\76\x3e>\x3e\76\76>>\x3e\x3e>\x3e\x3e\x3e\76\76\76>>\x3e\76>>\76\76\x20\x52\x65\154\x61\x74\x69\157\x6e\163\x20w\x69t\x68\40g\x72o\x75p\x65\144\40pro\144u\143\x74s \x64\145\x74\145c\164e\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xa5 = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); $xa5->addAttributeToFilter('status', 1); $xa5->addAttributeToFilter('type_id', array("\151n" => "\142un\x64\x6c\145")); $xa5->addAttributeToFilter('visibility', array("ni\156" => 1)); $xa5->addAttributeToSelect($x7f, true); $xa5->getSelect()->joinLeft($xa2 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xa5->getSelect()->joinLeft($x9c . ' 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')); $xa5->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xa5->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); $xa5->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa5->getSelect()->group(array('e.entity_id')); $xae = array(); foreach ($xa5 as $xa7) { foreach ($x12a("\x2c", $xa7->getChildIds()) as $xa8) { $xae[$xa8] = $xa7; $xaf[$xa8]['parent_id'] = $xa7->getId(); $xaf[$xa8]['parent_sku'] = $xa7->getSku(); $xaf[$xa8]['parent_request_path'] = $xa7->getRequestPath(); $xaf[$xa8]['categories_ids'] = $xa7->getCategories_ids(); } } $this->bundle = $xae; if ($this->_debug) { echo "\x3c\x62\x72>\x3cbr>\x2d-\55\55\x2d\55--\x2d-\x2d-\40\102\x55\116\x44L\105 \x2d\55\x2d\x2d-\55\x2d\x2d\55\x2d-\55-\55--<br>"; echo $xa5->getSelect() . '<br><br>'; $x134($xaf); } Mage::log("\x0a\76\x3e\76\x3e\76>>>\76\76>>>\x3e\x3e>\76\x3e>\x3e\76>\76\x3e\x3e\76\x3e\x3e\x3e\x3e\x3e>\x3e>>>\76>\76\x3e\x3e\76\x3e>\76\x3e \x52\145l\x61t\151\157ns\x20wi\x74h\x20\x62\x75ndl\145\40\160roduc\x74s\40\x64\x65\x74\x65cted", null, $this->getSimplegoogleshoppingFilename() . '.log'); $xb0 = $x76->getTableName("\143a\164\141\x6c\157\147\x5f\160\x72\x6f\x64uc\164\137\157\x70\x74\x69\157n"); $xb1 = $x76->getTableName("\143\141\x74alo\147\137pr\157\x64\x75ct_o\160\x74\x69on_\x74\x69\164\154\145"); $xb2 = $x76->getTableName("\143\x61\164\x61\154\157g\137\160\x72\x6f\x64\x75\143\164\137\157\x70\x74\151o\x6e\137\164\x79\x70e\137v\141l\x75\145"); $xb3 = $x76->getTableName("\x63\x61\x74a\x6c\157\x67\x5f\160\162\157\x64uc\164\x5fopt\x69\157\156\x5ft\x79\160\145\137\164\151\x74\154e"); $xb4 = $x76->getTableName("\x63\141ta\154\x6f\147\x5f\160\162o\x64\x75\x63\x74\x5f\x6f\160\164\151\157\x6e\137\x74\171\x70\145\x5f\x70\x72i\143\145"); $xb5 = $x77->select(); $xb5->from(array("\143\160\x6f" => $xb0), array("pr\x6f\x64\165\x63\164\137\151\144")); $xb5->joinleft(array("c\160o\x74" => $xb1), "\x63\160\157t\56op\x74i\x6f\x6e_i\144\75\x63p\x6f\x2e\x6f\x70\164\x69\157\x6e\137\x69d\x20\x41\x4e\x44 \143p\157\164.\163\164\x6f\162\x65_\x69\144\x3d\x30", array("o\x70\x74io\x6e" => "\164itle", "\x6fpt\151o\156\x5f\x69d", "s\x74\x6f\162\x65_\151\x64")); $xb5->joinleft(array("\143\x70\157\x74\166" => $xb2), "\143p\x6ft\166.o\x70\164i\x6f\156\x5fid\40= \143\160\x6f.\157pti\x6f\x6e\137\x69\144", "s\x6b\165"); $xb5->joinleft(array("c\160\x6f\164t" => $xb3), "c\160\x6f\x74t.o\160t\151\x6f\x6e_type_id\x3d\x63\x70\x6f\164\166.\x6fp\164i\157n_\164yp\145\x5f\151\x64\x20A\x4e\x44\40cp\157t\164\56s\164\157\162\x65\x5f\151d=\x63\160\157\x74\x2e\x73t\157\162\145_\151\x64", "tit\154\145\x20\x41S\40\x76\141\x6c\165e"); $xb5->joinleft(array("\143p\157\x74\x70" => $xb4), "\x63p\x6f\x74\x70.\157\160\164\x69\x6f\156\x5ft\171\160\x65\137i\x64\x3dcp\x6f\164\166.\157\x70t\151\x6f\156_\x74\171pe\x5f\x69\x64\x20\101\x4eD c\x70\157\164\160\56\x73\164ore_\x69\x64\75c\x70\x6f\164\56\163\x74\x6f\162\x65\x5fid", array("\160ri\x63\x65", "\x70\162\151ce_t\171p\145")); $x79 = $xb5->order(array("pr\x6f\x64\165\x63\164\137\151\144", "c\x70\157\x74\x76\x2e\163o\x72\164_\x6f\x72\x64\x65r\x20A\123\x43")); $x94 = $x77->fetchAll($x79);
$xb6 = array(); $xb7 = 0; foreach ($x94 as $xb8) { $xb6[$xb8["pr\x6f\x64\165\x63\164\137\151\144"]][$xb8["o\x70\x74io\x6e"]]["o\160\x74io\x6e\163"][] = array( "v\141\x6cu\x65" => $xb8["v\141\x6cu\x65"], "s\x6b\165" => $xb8["s\x6b\165"], "\160ri\x63\x65" => $xb8["\160ri\x63\x65"], "\x70\162\151ce_t\171p\145" => $xb8["\x70\162\151ce_t\171p\145"] ); $xb7++; } $this->customOptions = $xb6; if ($this->_debug) { echo "<b\x72>\x3cb\x72\76-\55\55-\x2d-\55-\55\x2d\x2d\x2d\x20\103\125\123TOM\x20\x4f\x50\x54IO\x4e\123 \x2d-\x2d-\x2d--\x2d\55\x2d\x2d\x2d\x2d\x2d\x2d\55<br\76"; echo $xb5 . '<br><br>'; $x134($xb6); } Mage::log("\x0a\76\76>\76>>\76\76\x3e>\x3e\76>\76\x3e>\76\x3e\x3e\x3e\x3e\76\x3e\76\76\x3e>\x3e\x3e>>\76\x3e\76\x3e>\76\76\76>\76>\x3e\x3e\76\76\x20C\165\163tom\x20\x6f\x70\164\x69\x6f\156s c\x6f\154\x6c\x65\x63\164\145d", null, $this->getSimplegoogleshoppingFilename() . '.log'); if (Mage::helper("\x63\x6fr\x65")->isModuleEnabled("W\171\x6f\155i\156\144\137\x47\157o\147le\155\145r\143\150an\164pr\x6f\155\157\x74\151\157\x6e\x73")) { $xb9 = Mage::getResourceModel('salesrule/rule_collection')->setOrder('sort_order', 'ASC')->addFieldToFilter("t\162ans\x66\145\x72a\142\154e\137\x74\x6f\x5f\147oo\147\x6c\145\x5f\x6der\143\150\141\156t", 1)->load(); Mage::log("\x0a\76>>\76>\x3e>\x3e>\76>>>>>>\76>\76>>\x3e>\x3e\x3e>\76>\x3e\x3e>\76\x3e\76\x3e\x3e\76>\x3e\76\76\x3e\x3e\x3e>\x3e \x50r\157motions\40ru\154\145\163\40c\157l\x6c\145cted", null, $this->getSimplegoogleshoppingFilename() . '.log'); } $xba = Mage::getModel('simplegoogleshopping/product_collection')->getCollection()->addStoreFilter($x52); if (Mage::getStoreConfig("s\x69mp\x6c\x65\147\157\x6f\x67\154\x65\x73\x68o\160pi\x6e\147\57s\x79s\164\145\155\57\x64\151\x73a\142\x6ce\144")) $xba->addFieldToFilter("\163\x74\x61\164\165\163", array('gteq' => 1)); else $xba->addFieldToFilter("\163\x74\x61\164\165\163", 1); $xba->addAttributeToFilter("\x74\171\x70\145\x5f\x69\x64", array("\151n" => $x68)); $xba->addAttributeToFilter("v\x69s\x69\142il\151\164\x79", array("\151n" => $x69)); if ($x6b[0] != '*') $xba->addAttributeToFilter("\141\164\164ri\x62\165\x74\145\137\163\x65\164_\151d", array("\151n" => $x6b)); $xba->addAttributeToSelect($x7f, true); $xbb = array("\145q" => "\x3d\40\x27%\x73'", "\156e\x71" => "\41\75\40'\x25\163'", "\147\x74\x65\x71" => "\76\75\x20'\x25s\47", "\x6ct\x65\x71" => "\x3c\75\x20\x27%\x73\47", "\147\164" => ">\x20'\45\163\47", "\154t" => "\74\40'%s\x27", "\154ik\x65" => "\x6ci\x6b\x65\x20'\45\x73\47", "\156\154\x69k\145" => "\x6eot\40\x6c\x69\153\145 \x27\45\163\x27", "n\165\x6c\x6c" => "\151\x73\x20n\x75l\x6c", "\x6e\157\164n\165\154\x6c" => "i\163\x20\156\157\164 \x6e\x75\x6c\154", "\151n" => "\151\156\40\50%\163)", "ni\156" => "no\x74\40i\156(\x25\x73\x29", ); $xbc = ''; $x36 = 0; $xbd = array(); foreach ($x6a as $x81) { if ($x81->checked) { if ($x81->condition == 'in' || $x81->condition == 'nin') { if ($x81->code == 'qty' || $x81->code == 'is_in_stock') { $xbe = $x12a(',', $x81->value); $x81->value = "\47" . $x120($xbe, "',\x27") . "\47"; } else { $x81->value = $x12a(',', $x81->value); } } switch ($x81->code) { case 'qty' : if ($x36 > 0) $xbc.=' ' . $x81->statement . ' '; $xbc.="\x20\x71\164\171\x20" . $x137($xbb[$x81->condition], $x81->value); $x36++; break; case 'is_in_stock' : if ($x36 > 0) $xbc.=' ' . $x81->statement . ' '; $xbc.=" \x28\111\106\50"; $xbc.="(use_config_manage_stock=1 AND $x57=0)"; $xbc.="\40\x4f\x52\x20"; $xbc.='(use_config_manage_stock=0 AND manage_stock=0)'; $xbc.="\40\x4f\x52\x20"; $xbc.="(use_config_manage_stock=1 AND $x57=1 AND is_in_stock=1 )"; $xbc.="\40\x4f\x52\x20"; $xbc.="\50use\x5f\143\157\x6efi\147\137\x6d\141\156\141\x67e_\163t\x6f\143\153\x3d\60\x20\x41ND\40\155\141\x6e\x61ge\137\x73t\157c\x6b\75\61\40\101N\104\40is\x5f\x69\156_\x73\x74\x6f\x63\x6b\x3d\61\40\51"; $xbc.=",'\61\47\54\47\x30'\x29" . $x137($xbb[$x81->condition], $x81->value) . "\51"; $x36++; break; default : if ($x81->statement == "\101\116\x44") { if ($x128($xbd)) $xba->addFieldToFilter($xbd); $xbd = array(); } if ($x81->condition == "\151n") { $xbf = true; $xc0 = array(); foreach ($x81->value as $xc1) { if (!$x129($xc1)) $xbf = true; } if ($xbf) { foreach ($x81->value as $xc1) { $xc0[] = array(array("\x66\x69\156\x73\x65t" => $xc1)); } $xbd[] = array("\x61t\164\x72\x69b\x75\x74e" => $x81->code, $xc0); } else $xbd[] = array("\x61t\164\x72\x69b\x75\x74e" => $x81->code, $x81->condition => $x81->value); } else $xbd[] = array("\x61t\164\x72\x69b\x75\x74e" => $x81->code, $x81->condition => $x81->value); break; } } }; if ($x128($xbd)) $xba->addFieldToFilter($xbd); $xba->getSelect()->joinLeft($x9c . ' 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')); $xba->getSelect()->joinLeft($x9d . ' AS url', 'url.product_id=e.entity_id ' . $xa3 . ' AND is_system=1 AND ' . $x72 . ' AND url.store_id=' . $x52, array('request_path' => $xa4 . '(DISTINCT request_path)')); $xba->getSelect()->joinLeft($x7c . ' AS categories', 'categories.product_id=e.entity_id'); if ($x65[0] != '*') { $xc1 = 0; $xc2 = null; foreach ($x65 as $x67) { if ($xc1 > 0) $xc2.=','; $xc2.=$x138($x12a('/', $x67)); $xc1++; } ($x64) ? $xc3 = "\111N" : $xc3 = "\116\x4fT\40I\x4e"; $xc2 = "\101N\x44 \143at\x65\147\x6f\x72\151e\x73\x5f\x69\156\x64\145\170\x2e\x63a\164\x65\147o\x72\x79\137\x69\144\x20" . $xc3 . "\x20\50" . $xc2 . "\51"; $xba->getSelect()->joinInner($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52 . ' ' . $xc2, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else $xba->getSelect()->joinLeft($x9e . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x52, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); if ($x135(Mage::getVersion(), '1.4.0', '>=')) $xba->getSelect()->joinLeft($x9f . ' 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($x52)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xbc)) $xba->getSelect()->where($xbc); $xba->getSelect()->group("\x65\x2ee\156\x74\x69\x74\x79\x5f\x74\x79p\x65_\x69\x64"); if ($this->_log) Mage::log("\x0a>\x3e>\x3e>\76\x3e>\x3e\x3e\76\76\76>\x3e\76\x3e\x3e>\x3e\76\x3e\76>\76\76\76\76\x3e>>\x3e\x3e\76\x3e>\x3e\76>\x3e\76\x3e>>>\x3e\x20M\x61\x69\x6e \163\161\154 \x72\x65\161\x75\x65\x73\164\x3a \x0a" . $xba->getSelect(), null, $this->getSimplegoogleshoppingFilename() . '.log'); if ($this->_debug) { echo "\74\x62r><\x62\162>-\x2d--\55-\x2d-\x2d-\x2d-\40MAI\x4e\x20S\121\114\x20\122\x45\121\x55\x45\x53\124\40\x2d\x2d--\x2d\55-\55\x2d-\x2d\55\55-\55\55<b\162>"; echo $xba->getSelect(); } $xc4 = 0; $xc5 = clone $xba; $xc5->getSelect()->columns("\x43OU\116\x54\x28D\x49\123\x54\111\116\103\x54\40e\56\x65\x6eti\164\x79\137\151\144)\x20\101\163 \164\x6ft\x61\154"); $this->_counter = $xc5->getFirstItem()->getTotal(); $xc6 = $x139($this->_counter / $this->_sqlSize); $x6c = ''; $xc7 = 1; Mage::log("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xc6 queries )", null, $this->getSimplegoogleshoppingFilename() . '.log'); while ($xc4 < $xc6) { $xa5 = clone $xba; if ($this->_debug) { echo "\x3c\x62\162>\74b\162\x3e\x2d---\x2d-\55\x2d\55-\55-\40\123\x51L -\x2d\x2d-\55\55\x2d\55--\x2d-\x2d\x2d-\x2d<b\x72>"; print($xa5->getSelect()); } $xa5->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc4)); $xa5->getSelect()->group(array('e.entity_id')); $xc4++; if ($this->_sqlSize * $xc4 > $this->_counter) $xc8 = $this->_counter; else $xc8 = $this->_sqlSize * $xc4; if ($this->_log) Mage::log("\x0a\x3e\x3e\x3e>>\x3e\x3e\x3e\x3e\x3e\x3e\x3e\76\x3e\x3e>>\x3e\76>\x3e\76\76\x3e\76\76\x3e\76\x3e\76\x3e\76\76\76\76\x3e\76>\76>>\76>\x3e>>\x20F\x65\164\143\x68\x69\x6e\147\40p\162o\x64\x75\x63\164\163 \x66r\157m\40" . ($this->_sqlSize * ($xc4 - 1) + 1) . "\x20t\x6f\x20" . $xc8, null, $this->getSimplegoogleshoppingFilename() . '.log'); $xb7 = 1; foreach ($xa5 as $product) { if ($this->_debug) { echo "\x3cb\x72\x3e<\x62\162\76\x2d-\55\55\x2d\55\x2d\x2d\55\x2d\x2d\x2d \x50\x52O\104\x55\x43\124 \133\40\x53\x4b\125\x20\x2d\76 " . $product->getSku() . "\40|\40\x49\104\40\55\76 " . $product->getId() . "\x5d-\x2d\x2d-\x2d\55\55\55\55--\55\x2d\55\55\74\x62r>"; echo "c\141\x74\145g\x6fr\151e\163\x20:\40" . $product->getCategoriesIds() . "\54 \x52\157\157t i\144:\40" . $x5d . "<\x62\x72\76"; foreach ($x12a(',', $product->getCategoriesIds()) as $x3b => $x75) { echo $x75 . "\x3d>" . $x74[$x75]["\x70a\x74\150"] . "<\x62\x72\76"; } } if (!$x13a('safe_mode')) { $x13b(60); } $x49 = $x60; foreach ($x6f as $x3b => $xc9) { $x4b = ""; switch ($xc9['pattern']) { case '{G:PROMOTION_ID}': $x4b = ""; $xca = clone $xb9; foreach ($xca as $xcb) { if ($xcb->getIsActive()) { ; $xcc = $x13c($xcb->getConditions_serialized()); $xcc = $xcc["\143\157nd\x69\x74\x69\x6f\156\163"];
$xcd = $xcb->getConditions(); $xce = $xcd->getAggregator() === 'all'; $xcf = (bool) $xcd->getValue(); $xd0 = ($xce) ? true : false; $xd0 = (!$x128($xcd->getConditions())) ? true : $xd0; $xd1 = 0; foreach ($xcd->getConditions() as $xd2) { $xd3 = array("\163\x61\154\145s\x72\x75\154\145\x2f\x72u\x6c\145\137\x63o\x6e\144\151\164\x69o\156\x5fpr\x6f\x64\x75c\164\x5f\163\x75b\163\x65\154\x65\143t", "s\141\x6c\145sr\165\x6c\x65\x2f\162\x75l\145\x5f\143\157\x6ed\151t\x69on\x5f\141\x64\144\162\145\x73\163"); if (!$x136($xd2->$x13d(), $xd3)) { $xd4 = $xd2->validate($product); if ($xce && $xd4 !== $xcf) { $xd0 = false; } elseif (!$xce && $xd4 === $xcf) { $xd0 = true; break; } } else { if ($xd2->getAttribute() == "b\141se\x5f\163\x75\142\164\157\164\141l") { } } $xd1++; } $xd5 = $x13c($xcb->getActions_serialized()); $xd5 = $xd5["\143\157nd\x69\x74\x69\x6f\156\163"]; $xd6 = $xcb->getActions(); $xce = $xd6->getAggregator() === 'all'; $xcf = (bool) $xd6->getValue(); $xd7 = ($xce) ? true : false; $xd7 = (!$x128($xd6->getConditions())) ? true : $xd7; $xd1 = 0; foreach ($xd6->getConditions() as $x51) { $xd4 = $x51->validate($product); if ($xce && $xd4 !== $xcf) { $xd7 = false; } elseif (!$xce && $xd4 === $xcf) { $xd7 = true; break; } $xd1++; } if ($xd7 && $xd0) { $x4b = "<\147\72\160\x72\x6fm\157\x74\x69\157n\137id>\74\x21\x5bC\x44AT\101\133" . $xcb->getData('rule_id') . "]\135>\74\57\x67\72pro\x6d\x6f\164i\x6fn\x5f\x69\x64\x3e"; break; } } } break; case "\x7blo\x61\x64_\157pti\x6f\156\163\x7d": $x94 = 1; $xd8 = array(); foreach ($xc9['options'] as $x3b => $xd9) { if (isset($xb6[$product->getId()][$xd9])) { $x94 = $x94 * $x128($xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"]); $xd8[$x3b] = 0; } } $x39 = array(); for ($x8e = 1; $x8e <= $x94; $x8e++) { $xda = $x49; foreach ($xc9['options'] as $x3b => $xd9) { if (isset($xb6[$product->getId()][$xd9])) { $xda = $x121("\x7b" . $xd9 . "\137la\142\145\x6c}", $xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"][$xd8[$x3b]]['value'], $xda); $xda = $x121("\x7b" . $xd9 . "\137\163k\165}", $xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"][$xd8[$x3b]]['sku'], $xda); $xda = $x121("\x7b" . $xd9 . "_\x70r\x69ce}", $xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"][$xd8[$x3b]]['price'], $xda); $xda = $x121("\x7b" . $xd9 . "\x5f\x74\x79\160e\x7d", $xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"][$xd8[$x3b]]['price_type'], $xda); if ($x3b > 0 || $x128($xb6[$product->getId()]) == 1 || $x128($xc9['options']) < 2) $xd8[$x3b] ++; if ($xd8[$x3b] >= $x128($xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"])) { $xd8[$x3b] = 0; $xd8[$x3b - 1] ++; } } } $x39[] = $xda; } if ($x128($x39) > 0) { $x49 = $x120("\74/ite\x6d>\x0a\x3c\151\164\x65\155>", $x39); } break; case "\x7b\x75\163\x65_\x6fpti\157\x6es\175": foreach ($xc9['options'] as $x3b => $xd9) { if (isset($xb6[$product->getId()][$xd9])) { $xdb = array(); $xdc = array(); $xdd = array(); foreach ($xb6[$product->getId()][$xd9]["o\160\x74io\x6e\163"] as $x4d) { $xdb[] = $x4d['value']; $xdc[] = $x4d['sku']; $xdd[] = $x4d['price']; } $x49 = $x121("\x7b" . $xd9 . "\137la\142\145\x6c}", $x120(',', $xdb), $x49); $x49 = $x121("\x7b" . $xd9 . "\137\163k\165}", $x120(',', $xdc), $x49); $x49 = $x121("\x7b" . $xd9 . "_\x70r\x69ce}", $x120(',', $xdd), $x49); } } break; case '{inc}' : $x4b = $xc7; break; case '{final_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getFinalePrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{tier_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getTierPrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{min_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getMinPrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{max_price}' : $xde = $this->checkReference($xc9['reference'], $product); $x3f = $xde->getMaxPrice(); (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{normal_price}' : $xde = $this->checkReference($xc9['reference'], $product); if ($xde->type_id == 'bundle') $x3f = $xde->price; else { $x3f = $xde->getPrice(); } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); break; case '{price}' : $xde = $this->checkReference($xc9['reference'], $product);
if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73")) { if ($xde->type_id == "\142un\x64\x6c\145") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else $x3f = $xde->special_price; } else { $x3f = $xde->price; } } else ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xde->getPrice(); } else { if ($xde->type_id == "\142un\x64\x6c\145") $x3f = $xde->price; else { $x3f = $xde->getPrice(); } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73") && date("\x59\55\x6d\55\144\40\x48\72\151:\x73") < $xde->getSpecialToDate()) { if ($xde->type_id == "\142un\x64\x6c\145") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xde->getPrice(); } } else { if ($xde->type_id == "\142un\x64\x6c\145") { $x3f = $xde->price; } else { $x3f = $xde->getPrice(); } } } else { if ($xde->type_id == "\142un\x64\x6c\145") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) { $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); } else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xde->getPrice(); } } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9["o\160\x74io\x6e\163"][0])) ? $x40 = $x56 : $x40 = $xc9["o\160\x74io\x6e\163"][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, "\x2e", ""); ; break; case "\173is\137\163\x70\x65\143i\141\154\137p\x72i\143\145}" : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9["o\160\x74io\x6e\163"][0])) ? $xcf = 1 : $xcf = $xc9["o\160\x74io\x6e\163"][0]; (!isset($xc9["o\160\x74io\x6e\163"][1])) ? $xdf = 0 : $xdf = $xc9["o\160\x74io\x6e\163"][1]; if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73")) { if ($xde->type_id == "\142un\x64\x6c\145") (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0 ) ? $x4b = $xcf : $x4b = $xdf; else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x4b = $xcf : $x4b = $xdf; } } else { if ($xde->type_id == "\142un\x64\x6c\145") { $x4b = $xdf; } else { $x4b = $xdf; } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73") && date("\x59\55\x6d\55\144\40\x48\72\151:\x73") < $xde->getSpecialToDate()) { if ($xde->type_id == "\142un\x64\x6c\145") { (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0 ) ? $x4b = $xcf : $x4b = $xdf; } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x4b = $xcf : $x4b = $xdf; } } else { if ($xde->type_id == "\142un\x64\x6c\145") { $x4b = $xdf; } else { $x4b = $xdf; } } } else { if ($xde->type_id == "\142un\x64\x6c\145") { (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0 ) ? $x4b = $xcf : $x4b = $xdf; } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x4b = $xcf : $x4b = $xdf; } } break; case "\x7b\x73p\x65c\x69\x61\154\137p\x72\x69ce}" : $xde = $this->checkReference($xc9['reference'], $product); $x3f = null; if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73")) { if ($xde->type_id == 'bundle') { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73") && date("\x59\55\x6d\55\144\40\x48\72\151:\x73") < $xde->getSpecialToDate()) { if ($xde->type_id == 'bundle') { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } } } else { if ($xde->type_id == 'bundle') { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; if ($x3f > 0) { $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, '.', ''); ; } else { $x4b = ""; } break; case '{price_rules}' : $xde = $this->checkReference($xc9['reference'], $product); $x52 = $this->getStoreId(); $xe0 = Mage::getResourceModel('catalogrule/rule'); $xe1 = Mage::app()->getLocale()->storeTimeStamp($x52); $xe2 = Mage::app()->getStore($x52); $xe3 = $xe2->getWebsiteId(); $xe4 = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xe5 = $xe0->getRulePrice($xe1, $xe3, $xe4, $xde->getId()); if ($xe5 !== false) $xe6 = $x137('%.2f', $x13e($xe5, 2)); else $xe6 = $xde->getPrice(); if ($xde->getSpecialFromDate() && !$xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73")) { if ($xde->type_id == "\142un\x64\x6c\145") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xe6; } } else { if ($xde->type_id == "\142un\x64\x6c\145") $x3f = $xde->price; else { $x3f = $xe6; } } } elseif ($xde->getSpecialFromDate() && $xde->getSpecialToDate()) { if ($xde->getSpecialFromDate() <= date("\x59\55\x6d\55\144\40\x48\72\151:\x73") && date("\x59\55\x6d\55\144\40\x48\72\151:\x73") < $xde->getSpecialToDate()) { if ($xde->type_id == "\142un\x64\x6c\145") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xe6; } } else { if ($xde->type_id == "\142un\x64\x6c\145") $x3f = $xde->price; else { $x3f = $xe6; } } } else { if ($xde->type_id == "\142un\x64\x6c\145") { if (($xde->price_type || (!$xde->price_type && $xde->special_price < $xde->price)) && $xde->special_price > 0) { if ($xde->price_type) $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); else { $x3f = $xde->special_price; } } else { $x3f = $xde->price; } } else { ($xde->getSpecial_price() && $xde->getSpecial_price() < $xde->getPrice()) ? $x3f = $xde->getSpecialPrice() : $x3f = $xe6; } } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1]; $x4b = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9["o\160\x74io\x6e\163"][0])) ? $x40 = $x56 : $x40 = $xc9["o\160\x74io\x6e\163"][0]; $x4b = $this->x152($x4b, $x40); $x4b = $x127($x4b, 2, "\x2e", ""); break; case "\173\x47\x3a\x53A\x4c\x45_PR\111C\105\x7d" : $xde = $this->checkReference($xc9['reference'], $product); $xe7 = Mage::getSingleton('core/date')->getGmtOffset("h\x6f\165\162\163"); if ($xe7 > 0) { $xe8 = "+"; $xe9 = $x13f($x140($x141($xe7)), 2, 0, STR_PAD_LEFT) . ':' . $x13f(($x140($xe7) - $x141($x140($xe7))) * 60, 2, 0, STR_PAD_LEFT); } else { $xe8 = ""; $xe9 = '-' . $x13f($x140($x141($xe7)), 2, 0, STR_PAD_LEFT) . ':' . $x13f(($x140($xe7) - $x141($x140($xe7))) * 60, 2, 0, STR_PAD_LEFT); } $xea = $x12b($x121(' ', 'T', $xde->getSpecialFromDate()), 0, -3); $xeb = $x12b($x121(' ', 'T', $xde->getSpecialToDate()), 0, -3); if ($xde->type_id == 'bundle' && $xde->special_price) { if ($xde->price_type) { $x3f = $x127($xde->price * $xde->special_price / 100, 2, "\x2e", ""); } else { $x3f = $xde->special_price; } } else { $x3f = $xde->getSpecial_price(); } (!isset($xc9['options'][1])) ? $x44 = false : $x44 = $xc9['options'][1];
if ($x3f > 0) { $x3f = $this->x153($x3f, $x5c, $xde->getTaxClassId(), $x44); (!isset($xc9['options'][0])) ? $x40 = $x56 : $x40 = $xc9['options'][0]; $x3f = $this->x152($x3f, $x40); $x3f = $x127($x3f, 2, '.', ''); ; } if ($x3f > 0) { $x4b = "\74g\x3a\163al\x65\x5fpr\151ce><\x21\x5b\103\x44ATA\x5b" . $x3f . "\x20" . $x40 . "]\135\76\x3c/\147:\x73\x61le\x5fp\x72\151\143e>\x0a"; } if ($x3f > 0 && $xeb) { $x4b.="\74\147:\163ale_price\137\x65\146f\x65c\164\151\x76\x65\137\144\x61\164e\76\x3c!\x5bCD\101\124\101\133" . $xea . $xe8 . $xe9 . "\x2f" . $xeb . $xe8 . $xe9 . "\135\135>\74\x2f\147\72\163\x61l\145\137\160ric\x65_\145\x66\146\145\x63t\x69v\145_\144\x61te\76\x0a"; } break; case "{\x69\155\141g\x65\175" : $xde = $this->checkReference($xc9['reference'], $product); $xec = $xde->getImage(); if (!isset($xc9['options'][0]) || $xc9['options'][0] == 0) { if ($xde->getImage() && $xde->getImage() != 'no_selection') { $xed = 'catalog/product/' . $xde->getImage(); $x4b = $x5b . $x121('//', '/', $xed); } else { $x4b = $x5b . '/catalog/product/placeholder/' . $x55; } } elseif (isset($x9b[$xde->getId()]['src'][$xc9['options'][0] - 1]) && $xc9['options'][0] > 0) { if ($x9b[$xde->getId()]['src'][$xc9['options'][0] - 1] != $xec) { $xed = 'catalog/product/' . $x9b[$xde->getId()]['src'][$xc9['options'][0] - 1]; $x4b = $x5b . $x121('//', '/', $xed); } } break; case "\173G\x3a\x49\115AGE_\x4cI\116K}" : $xde = $this->checkReference($xc9['reference'], $product); $xec = $xde->getImage(); $xee = array($xde->getSmall_image(), $xde->getThumbnail()); $xef = ''; $xd8 = 0; if ($xde->getImage() && $xde->getImage() != 'no_selection') { $xed = 'catalog/product/' . $xde->getImage(); $x4b = $x5b . $x121('//', '/', $xed); $xef.="\x3c\x67\72image_\x6cink\x3e\74!\133\x43\104A\x54\x41[" . $x4b . "\x5d]\76\74\57\x67\x3a\151\155\x61g\x65_l\x69\156\153\x3e\x0a"; $xd8++; } $xd1 = 0; while (isset($x9b[$xde->getId()]['src'][$xd1]) && $xd8 < 10) { if ($x9b[$xde->getId()]['src'][$xd1] != $xec) { if ($x136($x9b[$xde->getId()]['src'][$xd1], $xee) || $x9b[$xde->getId()]['disabled'][$xd1] != 1) { $xed = 'catalog/product/' . $x9b[$xde->getId()]['src'][$xd1]; $x4b = $x5b . $x121('//', '/', $xed); $xef.="\x3c\x67:\141dd\x69t\151o\x6e\141\154\x5f\151\x6d\141g\x65\137\x6c\151n\x6b>\74\x21[\x43\104A\124A[" . $x4b . "]]><\57\147:\141\x64\144\151\164\151\x6f\156\141\154\137\x69\x6dage\x5fl\x69\156\153\76\x0a"; $xd8++; } } $xd1++; } $x4b = $xef; break; case "\173\165\162\x6c\175" : $xde = $this->checkReference($xc9['reference'], $product); if ($xde->getRequest_path()) { if (Mage::getStoreConfig("\163\151\155\160\x6c\x65\147\157og\154\x65\163hop\160i\156g\x2f\x73y\163\164\145\155\x2fu\x72\154\162ewrit\x65") == 2) { $xf0 = $x12a("\x2c", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x5a . $x138($xf0); } elseif (Mage::getStoreConfig("\163\151\155\160\x6c\x65\147\157og\154\x65\163hop\160i\156g\x2f\x73y\163\164\145\155\x2fu\x72\154\162ewrit\x65") == 3) { $xf0 = $x12a("\x2c", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x5a . $x143($xf0); } else $x4b = $x5a . $xde->getRequest_path(); } else { $x4b = $xde->getProductUrl(); } break; case "{\150\x6fst\175" : $x4b = $x5a; break; case "{\x75\x72\x69\x7d" : $xde = $this->checkReference($xc9['reference'], $product); if ($xde->getRequest_path()) { if (Mage::getStoreConfig("\163\151\155\160\x6c\x65\147\157og\154\x65\163hop\160i\156g\x2f\x73y\163\164\145\155\x2fu\x72\154\162ewrit\x65") == 2) { $xf0 = $x12a("\x2c", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x138($xf0); } elseif (Mage::getStoreConfig("\163\151\155\160\x6c\x65\147\157og\154\x65\163hop\160i\156g\x2f\x73y\163\164\145\155\x2fu\x72\154\162ewrit\x65") == 3) { $xf0 = $x12a("\x2c", $xde->getRequest_path()); $x142($xf0, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); $x4b = $x143($xf0); } else $x4b = $xde->getRequest_path(); } else { $x4b = $x121($x5a, '', $xde->getProductUrl()); } break; case '{is_in_stock}' : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0])) ? $xf1 = 'in stock' : $xf1 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf2 = "\x6fu\x74 \157\x66\x20\163\164\157c\153" : $xf2 = $xc9['options'][1]; (!isset($xc9['options'][2])) ? $xf3 = "\141\x76\x61\151la\142\x6c\x65\x20\x66o\x72\40or\144\x65r" : $xf3 = $xc9['options'][2]; if (($xde->getManageStock() && !$xde->getUseConfigManageStock() && !$x57) || ($xde->getUseConfigManageStock() && $x57 ) || $xde->getManageStock()) { if ($xde->getIsInStock() > 0) { if ($product->type_id == "c\157nf\151g\x75\x72a\x62\x6c\145") $xf4 = $xaa[$product->getId()]; else $xf4 = $xde->getQty(); if ($xf4 > 0) { $x4b = $xf1; } else { if ($xde->getBackorders() || ($xde->getUseConfigBackorders() && $x58)) { $x4b = $xf3; } else { $x4b = $xf2; } } } else $x4b = $xf2; } else { $x4b = $xf1; } break; case '{stock_status}' : $xde = $this->checkReference($xc9['reference'], $product); ($xde->getIs_in_stock() > 0) ? $x4b = 'in stock' : $x4b = 'out of stock'; break; case '{qty}' : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0])) ? $xf5 = 0 : $xf5 = $xc9['options'][0]; if ($product->type_id == "c\157nf\151g\x75\x72a\x62\x6c\145") { $x4b = $xaa[$product->getId()]; $x4b = $x127($x4b, $xf5, '.', ''); } else if ($xc9['reference'] == "c\157nf\151g\x75\x72a\x62\x6c\145") { $x4b = $x127($xaa[$xde->getId()], $xf5, '.', ''); } else { $x4b = $x127($xde->getQty(), $xf5, '.', ''); } break; case "\173\143\x61\164\145gori\145s\137v\61\x7d" : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $xf8 = INF : $xf8 = $xc9['options'][2]; $xf9 = 0; $x4b = ''; $xfa = ''; foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136($x74[$x75]["\x70a\x74\150"], $x65) : $xfb = !$x136($x74[$x75]["\x70a\x74\150"], $x65); if (isset($x74[$x75]) && $xf9 < $xf6 && ($xfb || $x65[0] == "\52")) { $xfc = 0; $xfd = $x12a('/', $x74[$x75]["\x70a\x74\150"]); if ($x136($x5d, $xfd)) { $xfe = ""; if ($xf9 > 0) $xfa = "\x2c"; foreach ($xfd as $xff) { if (isset($x74[$xff])) { if ($x74[$xff]['level'] > $xf7 && $xfc < $xf8) { if ($xfc > 0) $xfe.='>'; $xfe.=($x74[$xff]['name']); $xfc++; } } } $x100 = ""; if (!empty($xfe)) { $x4b.=$xfa . $xfe . $x100; $xf9++; } } } }; break; case "\173\x63at\145\x67\157\x72i\x65s}" : $x101 = null; $xf6 = INF; $xf7 = 1;
$x102 = INF; $x103 = ', '; $x104 = " \76\x20"; if ($x128($xc9['options']) == 1) { (!isset($xc9['options'][0])) ? $x101 = "l\141s\x74" : $x101 = $xc9['options'][0]; $xf6 = 1; } elseif ($x128($xc9['options']) == 2) { (!isset($xc9['options'][0])) ? $x103 = ', ' : $x103 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $x104 = " \76\x20" : $x104 = $xc9['options'][1]; } elseif ($x128($xc9['options']) > 2) { (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $x102 = INF : $x102 = $xc9['options'][2]; (!isset($xc9['options'][3])) ? $x103 = ', ' : $x103 = $xc9['options'][3]; (!isset($xc9['options'][4])) ? $x104 = " \76\x20" : $x104 = $xc9['options'][4]; } $xde = $this->checkReference($xc9['reference'], $product); $xed = 0; $x105 = array(); foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136(@$x74[$x75]["\x70a\x74\150"], $x65) : $xfb = !$x136(@$x74[$x75]["\x70a\x74\150"], $x65); if (isset($x74[$x75]) && ($xfb || $x65[0] == "\52")) { $xed++; $x105[$xed] = array(); $xfd = $x12a('/', $x74[$x75]["\x70a\x74\150"]); if ($x136($x5d, $xfd)) { foreach ($xfd as $xff) { if (isset($x74[$xff]) && $x74[$xff]['name'] != null) { $x105[$xed][] = ($x74[$xff]['name']); } } } } } $x106 = array(); $x142($x105, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14fArray')); if ($x101 == "l\141s\x74") $x105 = $x144($x105); $xde->setCategoriesArray($x105); $x107 = 0; foreach ($x105 as $x3b => $xfc) { if ($x107 < $xf6) { foreach ($xfc as $x108 => $x109) { if ($x108 >= $xf7 && $x108 <= $x102) { if (!isset($x106[$x107])) $x106[$x107] = array(); $x106[$x107][] .= $x109; } } if ($x128($x106[$x107])) $x107++; } }; $x4b = null; foreach ($x145($x106) as $x3b => $x10a) { if ($x3b > 0) $x4b.=$x103; $x4b.=$x120($x104, $x10a); } break; case "\x7b\x47:\120R\117\104U\103\x54_T\x59\x50E\137\x76\61}" : $xde = $this->checkReference($xc9['reference'], $product); (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $xf8 = INF : $xf8 = $xc9['options'][2]; $xf9 = 0; $x4b = ''; foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136($x74[$x75]["\x70a\x74\150"], $x65) : $xfb = !$x136($x74[$x75]["\x70a\x74\150"], $x65); if (@$x74[$x75]["in\x63lu\144e_\x69n\x5f\155e\156\165"] && isset($x74[$x75]) && $xf9 < $xf6 && ($xfb || $x65[0] == "\52")) { $xfc = 0; $xfd = $x12a('/', $x74[$x75]["\x70a\x74\150"]); if ($x136($x5d, $xfd)) { $xfe = ''; $xfa = '<g:product_type><![CDATA['; foreach ($xfd as $xff) { if (isset($x74[$xff])) { if ($x74[$xff]['level'] > $xf7 && $xfc < $xf8) { if ($xfc > 0) $xfe.=' > '; $xfe.=($x74[$xff]['name']); $xfc++; } } } $x100 = "\x5d\135>\x3c\x2f\147\x3a\x70\x72\157d\x75\143t\x5f\x74\x79\x70e\76\x0a"; if (!empty($xfe)) { $x4b.=$xfa . $xfe . $x100; $xf9++; } } } }; break; case "{\x47:\120\122\117DUC\124_\x54Y\120\105\x7d" : $x103 = "]\135\x3e\x3c\x2fg\x3apr\157d\x75\143t\137\x74y\160e\76\x0a<\147\x3ap\x72od\x75\143\x74\x5f\164y\x70\145\x3e\x3c![\x43\x44A\124\101\133"; $x104 = " \76\x20"; (!isset($xc9['options'][0]) || !$xc9['options'][0] || $xc9['options'][0] == 'INF') ? $xf6 = INF : $xf6 = $xc9['options'][0]; (!isset($xc9['options'][1])) ? $xf7 = 1 : $xf7 = $xc9['options'][1]; (!isset($xc9['options'][2]) || !$xc9['options'][2] || $xc9['options'][2] == 'INF') ? $x102 = INF : $x102 = $xc9['options'][2]; $xde = $this->checkReference($xc9['reference'], $product); $xed = 0; $x105 = array(); foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { ($x64) ? $xfb = $x136(@$x74[$x75]["\x70a\x74\150"], $x65) : $xfb = !$x136(@$x74[$x75]["\x70a\x74\150"], $x65); if (isset($x74[$x75]) && ($xfb || $x65[0] == "\52")) { $xed++; $x105[$xed] = array(); $xfd = $x12a('/', $x74[$x75]["\x70a\x74\150"]); if ($x136($x5d, $xfd)) { foreach ($xfd as $xff) { if (isset($x74[$xff]) && $x74[$xff]['name'] != null) { $x105[$xed][] = ($x74[$xff]['name']); } } } } } $x106 = array(); $x142($x105, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14fArray')); foreach ($x105 as $x3b => $xfc) { if ($x3b < $xf6) foreach ($xfc as $x108 => $x109) { if ($x108 >= $xf7 && $x108 <= $x102) { if (!isset($x106[$x3b])) $x106[$x3b] = array(); $x106[$x3b][] .= $x109; } } }; $x4b = null; foreach ($x145($x106) as $x3b => $x10a) { if ($x3b > 0) $x4b.=$x103; $x4b.=$x120($x104, $x10a); } if (($x106)) $x4b = "\74g\72p\162\157d\165\143\x74_\x74\171\160e\76\x3c\x21[\103\x44\x41T\x41\x5b" . $x4b . "\x5d\135>\x3c\x2f\147\x3a\x70\x72\157d\x75\143t\x5f\x74\x79\x70e\76\x0a"; break; case "{\107\x3a\x47\117O\107L\105\137P\122\117\104U\x43T\137\x43ATE\107ORY\175" : $x10b = array(); (!isset($xc9['options'][0])) ? $x101 = "\154o\156\147est" : $x101 = $xc9['options'][0]; $xde = $this->checkReference($xc9['reference'], $product); foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { if (isset($x74[$x75]["\x70a\x74\150"]) && isset($x66[$x74[$x75]["\x70a\x74\150"]])) { $x10b[] = $x66[$x74[$x75]["\x70a\x74\150"]]; } } $x142($x10b, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'x14f')); if ($x101 == "\163\150or\x74\145st") $x10b = $x144($x10b); $x10c = $x143($x10b); if ($x10c != "") $x4b = "\74\147:g\x6fo\x67l\145\x5f\160r\157\x64\x75c\164\x5fc\x61\164\x65\147\x6f\162\x79\x3e<\41[CD\101\124A\133" . $x10c . "\x5d]\76</\x67\72\147\x6fo\x67le_p\162\x6f\x64\165\143\x74\137\143a\164\x65gor\171\76\x0a"; break; case "\x7b\143at\x65g\157r\x79\x5f\x6dapp\151\x6e\x67}" : (isset($xc9["o\160\x74io\x6e\163"][0])) ? $x10d = $xc9["o\160\x74io\x6e\163"][0] : $x10d = 0; $x4b = ""; $xde = $this->checkReference($xc9['reference'], $product); $x10e = 0; foreach ($x12a(',', $xde->getCategoriesIds()) as $x3b => $x75) { if (isset($x66[$x74[$x75]["\x70a\x74\150"]])) { if ($x10e == $x10d) { $x4b.=$x66[$x74[$x75]["\x70a\x74\150"]]; break; } $x10e++; } } break; case "{\162\x65\166\151\145w_\143\157\165\156\x74\175": $xde = $this->checkReference($xc9['reference'], $product); $x4b = ""; (isset($xc9["o\160\x74io\x6e\163"][0]) && $xc9["o\160\x74io\x6e\163"][0] == "\52" ) ? $x10f = 0 : $x10f = $x52; if (isset($x95[$xde->getId()][$x10f]["\143o\x75\x6e\164"])) { $x110 = $x95[$xde->getId()][$x10f]["\143o\x75\x6e\164"]; if (isset($x110)) { $x4b.=$x110; } } break; case "\x7b\162\145\166\151\x65\x77\137a\x76\145\x72\141\x67\x65\175": $xde = $this->checkReference($xc9['reference'], $product); $x4b = "";
(isset($xc9["o\160\x74io\x6e\163"][0]) && $xc9["o\160\x74io\x6e\163"][0] == "\52" ) ? $x10f = 0 : $x10f = $x52; (!isset($xc9["o\160\x74io\x6e\163"][1]) || !$xc9["o\160\x74io\x6e\163"][1]) ? $x111 = 5 : $x111 = $xc9["o\160\x74io\x6e\163"][1]; if (isset($x95[$xde->getId()][$x10f]["s\143\157\x72e"])) { $x112 = $x127($x95[$xde->getId()][$x10f]["s\143\157\x72e"] * $x111 / 100, 2, "\x2e", ""); if (isset($x112)) { $x4b.=$x112; } } break; case "\x7b\x47:\120\122ODUC\x54\x5f\122EVIE\127\x7d" : $xde = $this->checkReference($xc9['reference'], $product); (isset($xc9["o\160\x74io\x6e\163"][0]) && $xc9["o\160\x74io\x6e\163"][0] == "\52" ) ? $x10f = 0 : $x10f = $x52; (!isset($xc9["o\160\x74io\x6e\163"][1]) || !$xc9["o\160\x74io\x6e\163"][1]) ? $x111 = 5 : $x111 = $xc9["o\160\x74io\x6e\163"][1]; $x4b = ""; if (isset($x95[$xde->getId()][$x10f]["\143o\x75\x6e\164"])) { $x110 = $x95[$xde->getId()][$x10f]["\143o\x75\x6e\164"]; $x112 = $x127($x95[$xde->getId()][$x10f]["s\143\157\x72e"] * $x111 / 100, 2, "\x2e", ""); } if (isset($x112) && $x112 > 0) { $x4b.="\x3cg\x3a\x70\x72\157\144\165\x63\x74\x5f\x72evi\145w\137avera\x67\145\x3e\x3c\x21\x5b\103D\x41\x54A\x5b" . $x112 . "\135\135>\x3c\57\x67\x3a\160ro\144\165ct\x5fr\145\x76ie\167_ave\x72\141\x67\145\76\x0a"; } if (isset($x110) && $x110 > 0) { $x4b.="\x3c\x67:\x70\x72\x6f\x64\165ct\137\x72\145\x76ie\x77\137co\x75\x6et\x3e<\41\x5b\103\104A\x54A[" . $x110 . "\x5d]\x3e\74/\147\x3apr\x6f\144\x75\x63\x74\x5fre\x76i\x65w\x5f\x63\157\x75\156\x74\x3e\x0a"; } unset($x112); unset($x110); break; case "{G:ITE\x4d_\107\122\117\x55P_\x49D}" : if (isset($this->configurable[$product->getId()])) { $xde = $this->checkReference('configurable', $product); $x4b = "\74g:\151te\155_gr\x6f\165p\x5f\x69\144\x3e\x3c\41[\103\x44\x41T\101\133" . $xde->getSku() . "\135\135\76\74\57\x67\72\x69\164\x65\x6d_grou\x70\137i\144\x3e"; } break; case "{\123\103:E\101\x4e}" : ($x129($xc9['options'][0]) && $xc9['options'][0] > 0) ? $x113 = $xc9['options'][0] : $x113 = 0; $xde = $this->checkReference($xc9['reference'], $product); $x4b = $x12a(',', $xde->getEan()); $x4b = "\x3cg\72e\x61n\x3e\x3c\x21\133C\104\101T\x41\x5b" . $x4b[$x113] . "\135\x5d\76<\x2fg:e\x61\156>"; break; case "\x7bS\x43:\x49M\x41G\x45\x53}" : $xde = $this->checkReference($xc9['reference'], $product); $xec = $xde->getSmall_image(); $xee = array($xde->getImage(), $xde->getThumbnail()); $xef = ''; $xd8 = 0; if ($xde->getSmall_image() && $xde->getSmall_image() != 'no_selection') { $xed = $xde->getSmall_image(); $x4b = $xed; $xef.="\x3c\x67\72image_\x6cink\x3e\74!\133\x43\104A\x54\x41[" . $x4b . "\x5d]\76\74\57\x67\x3a\151\155\x61g\x65_l\x69\156\153\x3e\x0a"; $xd8++; } $xd1 = 0; while (isset($x9b[$xde->getId()]['src'][$xd1]) && $xd8 < 10) { if ($x9b[$xde->getId()]['src'][$xd1] != $xec) { if ($x136($x9b[$xde->getId()]['src'][$xd1], $xee) || $x9b[$xde->getId()]['disabled'][$xd1] != 1) { $xed = $x9b[$xde->getId()]['src'][$xd1]; $x4b = $xed; $xef.="\x3c\x67:\141dd\x69t\151o\x6e\141\154\x5f\151\x6d\141g\x65\137\x6c\151n\x6b>\74\x21[\x43\104A\124A[" . $x4b . "]]><\57\147:\141\x64\144\151\164\151\x6f\156\141\154\137\x69\x6dage\x5fl\x69\156\153\76\x0a"; $xd8++; } } $xd1++; } $x4b = $xef; break; case "\173S\x43\72DE\123\x43RI\120\124\x49\x4fN\175" : $xde = $this->checkReference($xc9['reference'], $product); $x114 = $xde->getDescription() . $xde->getShortDescription(); $x115 = "\x7c<\x69\146r\141\x6d\x65(\x2e*)\74/\151f\162a\x6d\145>\174\125"; $x124($x115, $x114, $x116); if ($x116) { $x114 = $xde->getAttributeText('manufacturer') . "\x20" . $xde->getName() . "\40\x2d\40P\x61\x72\x74\x20n\165\155b\x65\162: " . $xde->getSku() . " -\40\x43\141\x74\x65\x67o\x72\171 : \173\143at\x65go\162\x69es\54\133\61]\x2c\133\61\135,\x5b\61]\x7d"; } else { if ($x136("s\x74\x72ip\137\164a\147\x73", $xc9['options'])) { $x114 = $x146('!\<br /\>!isU', "\x20", $x114); $x114 = $x146('!\<br/\>!isU', "\x20", $x114); $x114 = $x146('!\<br>!isU', "\x20", $x114); $x114 = $x147($x114); } if ($x136("\x68\x74\x6d\x6c\137\x65n\164i\164\x79_dec\x6fde", $xc9['options'])) { $x114 = $x148($x114, ENT_QUOTES, 'UTF-8'); } if ($x136("ht\x6dlen\x74\151\x74\151e\x73", $xc9['options'])) { $x114 = $x149(($x114)); } if ($x11f($x114) > 900) { $x114 = $x12b($x114, 0, 900 - 3); $x117 = $x14a($x114, "\x20"); $x114 = $x12b($x114, 0, $x117) . '...'; } } if ($x114 == null) $x114 = $xde->getAttributeText('manufacturer') . "\x20" . $xde->getName() . "\40\x2d\40P\x61\x72\x74\x20n\165\155b\x65\162: " . $xde->getSku() . " -\40\x43\141\x74\x65\x67o\x72\171 : \173\143at\x65go\162\x69es\54\133\61]\x2c\133\61\135,\x5b\61]\x7d"; $x114 = $x146('/' . '[\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', ' ', $x114); $x114 = $x121(' ', '', $x114); $x4b = "<\x64\145sc\x72\x69\160t\151\x6f\156\x3e\74\x21\x5b\103\x44AT\101\x5b" . $x114 . "\135\x5d\x3e\x3c\57\144\x65\x73\x63r\151p\164\x69on>"; break; case "\173\x53C\x3a\125\x52\x4c\175" : (isset($xc9['options'][0])) ? $x118 = $xc9['options'][0] : $x118 = ""; (isset($xc9['options'][1])) ? $x119 = $xc9['options'][1] : $x119 = ""; $xde = $this->checkReference($xc9['reference'], $product); if ($xde->getRequest_path()) { $x4b = "<\154\x69nk\76\x3c!\133\103\104A\124A\x5b" . $x5a . $x119 . $xde->getRequest_path() . $x118 . "\x5d\x5d><\57\154i\x6e\x6b\x3e"; } else { $x4b = "<\154\x69nk\76\x3c!\133\103\104A\124A\x5b" . $xde->getProductUrl() . "\x5d\x5d><\57\154i\x6e\x6b\x3e"; } break; case "\x7bS\x43\x3a\x43\x4f\x4e\x44I\x54\111ON\x7d" : $xde = $this->checkReference($xc9['reference'], $product); ($x14b($xde->getName(), "\x72\145\146u\x72b\151\x73h\145d")) ? $xbb = 'refurbished' : $xbb = 'new'; $x4b = "\x3cg\72\x63\x6f\x6e\x64\x69\164\151\x6fn\76\74\41\133\x43\104\101\124\101[" . $xbb . "]\135\x3e</\147\72\143\157n\144iti\x6f\x6e>"; break; case "\173\163\x63\72c\157\x6e\144i\164\x69\x6f\x6e}" : $xde = $this->checkReference($xc9['reference'], $product); ($x14b($xde->getName(), "\x72\145\146u\x72b\151\x73h\145d")) ? $xbb = 'refurbished' : $xbb = 'new'; $x4b = $xbb; break; default : $xde = $this->checkReference($xc9['reference'], $product); if ($x136($xc9['name'], $x7f)) { if ($x136($x80[$xc9['name']], array('select', 'multiselect'))) { eval('$x11b =($xde->' . $xc9['methodName'] . ")\x3b"); $x11a = $x12a(',', $x11b); if ($x128($x11a) > 1) { $x4b = array(); foreach ($x11a as $xc1) { if (isset($x85[$xc1][$x52])) $x4b[] = $x85[$xc1][$x52]; else { if (isset($x85[$xc1][0])) $x4b[] = $x85[$xc1][0]; } } } else { if (isset($x85[$x11a[0]][$x52])) { $x4b = $x85[$x11a[0]][$x52]; } else { if (isset($x85[$x11a[0]][0])) $x4b = $x85[$x11a[0]][0]; } } } else { eval('$x4b =($xde->' . $xc9['methodName'] . ")\x3b"); } } if ($x136(@$x7d[$xc9['name']], $x7d)) { $x4b = $x7d[$xc9['name']]; } $x4b = $x146('/' . '[\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', ' ', $x4b); $x4b = $x121(' ', '', $x4b); $x11c = 0; if ($x128($xc9['options']) > 0) { while (isset($xc9['options'][$x11c])) { switch ($xc9['options'][$x11c]) { case "\x73\x75bs\x74\x72" : if (isset($xc9['options'][$x11c + 1]) && $x11f($x4b) > $xc9['options'][$x11c + 1]) { $x4b = $x12b($x4b, 0, $xc9['options'][$x11c + 1] - 3); $x117 = $x14a($x4b, "\x20"); $x4b = $x12b($x4b, 0, $x117) . $xc9['options'][$x11c + 2]; } $x11c++; $x11c++; break; case "ht\x6dlen\x74\151\x74\151e\x73" : $x4b = $x149(($x4b)); break; case "s\x74\x72ip\137\164a\147\x73" : $x11d = "\x20"; $x4b = $x146('!\<br /\>!isU', $x11d, $x4b); $x4b = $x146('!\<br/\>!isU', $x11d, $x4b);
$x4b = $x146('!\<br>!isU', $x11d, $x4b); $x4b = $x147($x4b); break; case "$x120" : $x4b = ($x131($x4b)) ? $x120($xc9['options'][$x11c + 1], $x4b) : $x4b; $x11c++; break; case "\146\154\x6f\141t" : $x4b = $x127($x4b, $xc9['options'][$x11c + 1], '.', ''); $x11c++; break; case "\x68\x74\x6d\x6c\137\x65n\164i\164\x79_dec\x6fde" : $x4b = $x148($x4b, ENT_QUOTES, 'UTF-8'); break; case "i\x6el\151n\145": $x4b = $x146('/(\r\n|\n|\r|\r\n|\t)/s', '', $x4b); break; case "\163t\x72t\x6f\154o\x77\145\x72": $x4b = $x14c($x4b, "\x55\x54F\70"); break; case "s\164r\164ou\x70\x70e\162": $x4b = $x14d($x4b, "\x55\x54F\70"); break; case "\143l\x65\141\156\145\x72": $x4b = $x146('/' . '[\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', ' ', $x4b); $x4b = $x121(' ', '', $x4b); break; default : if ($x14b($xc9['options'][$x11c], "\45\163")) { $xd9 = $x121("\45\163", '$x4b', $xc9['options'][$x11c]); eval('$x4b=' . $xd9 . '; '); } else eval('$x4b=' . $xc9['options'][$x11c] . '($x4b); '); break; } $x11c++; } } break; } $x4b = $x121(array("\74", "\x3e", '"', '\\'), array("\137\137\114O\x57\x45\122TH\x41\116_\137", "\137\137H\111G\110\105RTH\101N\137\x5f", "\x5f\137\121\x55OTE\123\x5f_", "_\x5f\102\x41\103\113S\x4cASH_\x5f"), $x4b); if ($x131($x4b)) $x4b = $x120("\x2c", $x4b); if ($x4b != "") $x49 = $x121($xc9['fullpattern'], $x4b, $x49); } foreach ($x6f as $x11e) { $x49 = $x121($x11e['fullpattern'], "", $x49); } $x49 = $this->x151($x49, $product); $x49 = $this->x155($x49); $x49 = $this->x154($x49); $x49 = $x121(array("\137\137\114O\x57\x45\122TH\x41\116_\137", "\137\137H\111G\110\105RTH\101N\137\x5f", "\x5f\137\121\x55OTE\123\x5f_", "_\x5f\102\x41\103\113S\x4cASH_\x5f"), array("\74", "\x3e", '"', '\\'), $x49); if (!empty($x49)) { $x6c.=("\x3ci\x74em\76"); $x6c.="\x0a" . $x49 . "\x0a"; $x6c.=("\74\57i\164\x65\x6d\x3e" . "\x0a"); $xb7++; $this->_inc = $xc7; $xc7++; } if ($this->_display) { $x6d.=$x6c; $x6c = ''; } else { if ($xb7 % Mage::getStoreConfig("s\x69m\x70\x6cego\x6fgl\145\163\x68\157p\x70\x69\x6e\x67\x2f\x73ys\164\145\155\x2f\142u\146\146\x65\x72") == 0) { $x3d->streamWrite($x6c); unset($x6c); $x6c = ''; Mage::log("\x0a\76\x3e\x3e\76\x3e\x3e\x3e>>>\x3e\x3e\76\76\76>\76\76>\76\76\76>>\76\76>>\x3e>>>\x3e>\x3e\76\x3e\76\76>\x3e\76>>>\x3e" . $xc7 . "\x2f" . $this->_counter . "\40i\164e\x6ds \x61\144\144\x65\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); } } if ($this->_limit && $xc7 > $this->_limit) { break 2; } } } $x6c.=('</channel>' . "\x0a"); $x6c.=('</rss>'); if (!$this->_display) { $x3d->streamWrite($x6c); } Mage::log("\x0a\76\x3e\x3e>\76>\76\x3e>>>\76\x3e>>\x3e>\76\76\76\76>\76\76>\76\76>\76>\76\x3e\x3e\76>>\x3e\76\x3e\x3e\x3e>>\x3e\76\76\40" . ($xc7 - 1) . "\x2f" . $this->_counter . "\40i\164e\x6ds \x61\144\144\x65\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); unset($xa5); $x6d.=$x6c; if ($this->_display && !$this->_debug) { (!Mage::app()->getRequest()->getParam("\x72\145\x61l_\x74\x69\155e_\x70re\166\151\145w")) ? $x114 = "\74t\x65x\x74\141\x72\145\x61\x20i\144\x3d'\103\157\x64\145\115\x69r\x72\x6f\162\x27 \143l\141s\163\x3d'\103od\x65\x4d\151\x72\x72\x6fr\x27\x3e" . ($x6d) . "\74/\x74\x65\170\164a\162\145\x61\76" : $x114 = $x6d; if ((!Mage::app()->getRequest()->getParam("\x72\145\x61l_\x74\x69\155e_\x70re\166\151\145w"))) { return(" \12\40\x20\40\40\11 \x3c\x68\x74\155\154> \x0a\x20\40 \11\x09\74\x68e\x61\x64>\x0d\x0a \x20 \40\11\x09\x3cti\x74l\x65\76" . $this->getSimplegoogleshoppingFilename() . "\x3c/\x74\151tl\x65>\x0d\12\x20\40\x20\40\40\x20 \40\40\x20 \40 \74\154ink\x20\162\x65\154\x3d'st\x79\154\x65\163heet\47 h\162\145\x66=\x27" . $x59 . "\163kin\57\141\144\155i\156\x68t\155l/\144\x65\x66ault\57\144e\146a\x75\154t\x2fC\157\x64\145\x4d\151\x72r\157\162\62/\154\x69\142\x2f\143o\x64\145m\x69\162\162\157\x72.\143\x73\x73\47\76\x0d \40\40 \x20 \40\40\40 \40\x20 \x20 \x20\74\154\x69n\x6b \x72e\154\75\x27st\x79\154\145s\150\145\145\x74' h\162\x65f\75\x27" . $x59 . "s\153i\156/a\144mi\x6e\x68\x74\x6dl\x2f\144\145\146\x61ul\164\x2f\144\145f\x61ul\164\x2f\103\x6fdeMi\x72\162\157\162\62\57th\145\x6d\x65/\144\x65f\141ult\x2ec\x73\x73'\76\x0d\x0a\40 \x20\40 \40\x20\x20 \x0a\40\x20\x20 \x20\40\x20 \40\x20\x20\40\x20\x20\x3c\163\x63\162\x69\x70\164 typ\x65\75\47\164\x65xt/\152\141v\x61sc\162ipt'\x20\x73\162\143\75\47" . $x59 . "\163k\151\156\57\x61d\x6di\156\150\164\x6d\x6c/d\x65\x66\141u\154\x74/\144\x65f\141\165\x6ct\x2fCo\144\145\x4di\x72\162\157r\62/li\x62/c\x6fd\x65\x6d\x69\162\x72o\162\x2e\152\x73\x27\x3e\74\x2f\x73c\162\x69\160t>\x0d\12\40 \40 \40\x20\x20\40\40\x20\40 \40\40\40\40<\163c\x72ip\x74 \164\171\160\145\x3d\47\x74e\x78\164/jav\x61\x73cr\x69\160\164\47 \x73\x72\143\75\x27" . $x59 . "\163\153i\x6e\x2f\141\144\155in\150\x74\x6d\x6c/\x64e\x66\141u\x6c\164\x2f\144\x65\x66\141\165\154\x74\57\x43o\144\x65Mir\162\157\162\62/mod\145/xm\x6c\57xml\x2e\x6as'\76\x3c/s\143\162\x69\160\164\x3e\x0d \40 \40\x20\15\12 \x0a\x20 \40 \40\40\40 \12\x20\40 \40\40 \x20\40\40\x20 \x20 \15 \x20 \x20 \x20\40 \x20\x20\40 \40<\57h\145\141d\76 \x0a \40\40\x20\x20\40\x20\40\40\40 \x20\40\x20\40<b\157dy>\15\x0a \x20\40 \40\40 \40\x20\40 \40\40\x20 " . $x114 . "\15\x0a \40 \x20\40\40 \x20\x20 \40\x20\40 \x3c\163\143\x72ip\164\40\x6c\x61\156g\x75\x61\x67e\x3d'\152\141\x76a\x73\x63rip\x74\47\76\x0d\12 \40\40\x20 \x20 \40\x20 \40 sH\x74m\154\x3ddoc\x75\155en\164\56\147\x65\164\x45l\x65m\145\156t\x42\171\111d\x28\47C\x6fd\145\115i\162\162\157r\x27\x29\73 \12 \x20\x20\40\40 \x20 \x20\40\40\x20 \40\40\151\146(\x74y\160\x65\x6f\x66 \163\x48tm\x6c\x20\x21\x3d\40\x27u\156d\x65f\151\x6ee\144'\x29{\x0d\x0a \x20 \x20\x20\40\x20 \40\40\x20 \40 \40\40\40 \x20 \x76\141\162\40\x6d\171C\x6f\144\145\115\151r\162o\x72\40\75\40C\x6f\x64\145M\151r\162\x6f\x72\50\x66\x75n\143\164i\x6f\x6e\x28\145l\164\x29\40\x7b\x0d\12\40\40\x20\40\40\x20 \40 \40 \40\x20 \40\x20 \x20 \x20\x20\x20\40\40\163\110\x74ml\56\x70\x61\162\x65\156\x74N\157\x64\145\56\x72\x65\x70\154\x61c\x65\103h\151\154d(\x65\x6c\x74\54\x20\x73H\164\x6d\x6c\51}\54\40\x7b\15 \40\40 \x20\x20 \x20\40\40 \x20\40\40\40\40 \40\40\x20 \x20\x20\40\40\x76a\x6cu\145: \163H\164m\154.v\141\x6c\165\x65,\x0d \x20\40\x20\x20\x20\x20\x20\40\40\40\40 \40\x20\40\x20 \40\40\40 \40\x20\40 \40\40\155o\144\145: \40\x27\x78m\154'\54\x0d\12\x20\40\40 \x20\x20\40 \x20 \x20\40\40 \x20\40\x20 \40\x20\40 \x20\x20\40 r\145\x61\x64\x4fnly\x3a\x20\x74r\x75\x65 \12 \12\40\x20\x20 \x20\40\x20\40 \40\40\x20\40 \x20\x20\40\x20\40 }\51\x0d \40\40\x20\40\x20 \40\x20\x20 \x20 \x20\x20\40\40 \x20\40 }\15\12 \40 \40 \x20 \40\40 \40\x20 \12 \40\x20\40 \40\x20 \40 \x20\x20\40\x20</scri\160\164\76\15\12 \40\x20\x20\40\x20\40 \40\x20\40\x20\40\40\40\40<\57bo\144y\76\x0d\12\40 \x20 \x20\40\40 \40 \x20\x20\40\40</\x68\x74\x6d\154>"); } else return $x114; } elseif ($this->_debug) { echo "<\x62r\76<\x62\162\76-\55\55---\55\55-\x2d\x2d-\40\x58\x4dL\x20OU\x54\x50\x55\x54 \55-\x2d\55\x2d--\x2d\55\55\x2d\x2d\55\55-\x2d<br\x3e"; $x114 = "\x3c\x70r\x65>" . $x14e($x6d) . "<\57\x70\x72\145>"; return $x114; } else { Mage::log("\x0a>\76\x3e\x3e>\x3e\x3e\x3e\76>\x3e>\x3e\76\76\76\76\76\76\76\76\76\76>\76\x3e\x3e\76\76>\76\x3e\76\76\76\x3e\76\76\76\x3e\x3e\76>\76\x3e\x3e \106i\x6c\x65\x20c\154\x6f\x73e\x64", null, $this->getSimplegoogleshoppingFilename() . '.log'); $x3d->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 |
Stats
MD5 | b9afdca33af73746860f9c01d01aa50e |
Eval Count | 0 |
Decode Time | 535 ms |