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_Datafeedmanager_Model_Configurations exten..

Decoded Output download

<?php error_reporting(E_ERROR); 
 class Wyomind_Datafeedmanager_Model_Configurations extends Mage_Core_Model_Abstract { public $_indexPhp = '';  protected $_filePath;  public $_limit = false;  public $_display = false;  public $_rates = false;  public $_chartset = false;  public $_sqlSize = 1500;  static $option = 0;  public $_counter = '0';  public $x42 = 1;  public function cmp($x43, $x44) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if ($x15a($x43) == $x15a($x44)) { return 0;  } return ($x15a($x43) < $x15a($x44)) ? 1 : -1;  } public function cmpArray($x43, $x44) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad"; 
 $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if ($x15a($x15b('', $x43)) == $x15a($x15b('', $x44))) { return 0;  } return ($x15a($x15b('', $x43)) < $x15a($x15b('', $x44))) ? -1 : 1;  } public function x18b($myPattern, $product, $x45 = true, $x46 = false) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad"; 
 $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if ($x46) { $x47 = $x15c("/
/", $myPattern);  $x48 = $x47[0];  $x47[0] = null;  $myPattern = $x15b($x47, "
");  } $myPattern = $x15d('<?', $x15e('__PHP__'), $myPattern);  $myPattern = $x15d('?>', $x15e('/__PHP__'), $myPattern);  $x49 = $x15e('#(__PHP__)(.*?)/#s');  $x15f($x49, $myPattern, $x4a);  if (isset($x4a[1])) { foreach ($x4a[0] as $x4b => $x4c) { if ($x45 == 1) { if (@eval($x4a[2][$x4b] . '; ')) $myPattern = $x15d($x4c, eval($x4a[2][$x4b] . '; '), $myPattern);  else $myPattern = $x15d($x4c, '', $myPattern);  } else { if (@eval($this->unx192($x4a[2][$x4b] . '; '))) $myPattern = $x15d($x4c, $this->x192(eval($this->unx192($x4a[2][$x4b]) . '; ')), $myPattern);  else $myPattern = $x15d($x4c, '', $myPattern);  } } } if ($x46) { if ($x45 == 1) return $x48 . "
" . $myPattern;  else return $x48;  } else return $myPattern;  } protected function _construct() { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $this->_sqlSize = Mage::getStoreConfig("datafeedmanager/system/sqlsize");  $this->_init('datafeedmanager/configurations');  } protected function _beforeSave() { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode"; 
 $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x4d = new Varien_Io_File();  $x4e = $x4d->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath());  $x4f = Mage::getModel('datafeedmanager/configurations')->getCollection();  foreach ($x4f as $x50) { if ($x50->getFeedName() == $this->getFeedName() && $this->getId() != $x50->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.'));  } } if (!$x4d->allowedPath($x4e, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path'));  } if (!$x4d->fileExists($x4e, false)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please create the specified folder "%s" before saving the data feed configuration.', Mage::helper('core')->htmlEscape($this->getFeedPath())));  } if (!$x4d->isWriteable($x4e)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath()));  } if (!$x160('#^[a-zA-Z0-9_\.]+$#', $this->getFeedName())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.'));  } $this->setFeedPath($x161($x15d($x15d('\', '/', Mage::getBaseDir()), '', $x4e), '/') . '/');  return parent::_beforeSave();  } protected function getPath() { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if ($x162($this->_filePath)) { $this->_filePath = $x15d('//', '/', Mage::getBaseDir() . $this->getFeedPath());  } return $this->_filePath;  } protected function getFilename($x51 = '.temp') { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime"; 
 $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x52 = array(1 => 'xml', 2 => 'txt', 3 => 'csv', 4 => 'tsv');  if ($this->_date == false) { $this->_updated = Mage::getSingleton('core/date')->gmtDate("Y-m-d H:i:s", $this->_timestamp);  $this->_date = Mage::getSingleton('core/date')->date($this->getFeedDateformat(), $x163($this->_updated));  } $x53 = $x15d('{f}', $this->getFeedName(), $this->_date);  $x54 = $x53 . "." . $x52[$this->getFeedType()] . $x51;  if (!$x51) $this->_filename = $x54;  return $x54;  } public function getPreparedFilename() { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  return $this->getPath() . $this->getFilename();  } public function x18c($x55, $x56) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace"; 
 $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x57 = $this->_currencies;  if (isset($x57[$x56])) { return $x55 * $x57[$x56];  } else { return $x55;  } } public function x18d($x55, $x58, $x59, $x5a = false) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x5b = $this->_rates;  $x55 = $x164($x55, 2, '.', '');  if ($x5a === false) { if (!$x58 && isset($x5b[$x59])) { if ($x165($x5b[$x59]) > 1) { return $x55; 
 } else { return $x55 * ($x5b[$x59][0]['rate'] / 100 + 1);  } } else { return $x55;  } } elseif ($x5a === "0") { if ($x58 && isset($x5b[$x59])) { if ($x165($x5b[$x59]) > 1) { return $x55;  } else { return 100 * $x55 / (100 + ($x5b[$x59][0]['rate']));  } } else { return $x55;  } } else { if ($x166($x5a)) { if ($x59 != 0) { return $x55 * ($x5a / 100 + 1);  } elseif ($x59 == 0) { return $x55;  } } else { $x5a = $x167('/', $x5a);  $x5c = 0;  $x5d = false;  if ($x168($x5a[0], 0, 1) == "-") { $x5a[0] = $x168($x5a[0], 1);  $x5d = true;  } if ($x5b[$x59]) { foreach ($x5b[$x59] as $x5e) { if ($x5e['country'] == $x5a[0]) { if (!isset($x5a[1]) || $x5e['code'] == $x5a[1]) { $x5c = $x5e['rate'];  break;  } } } if (!$x5d) return $x55 * ($x5c / 100 + 1);  else { return 100 * $x55 / (100 + ($x5c));  } } else { return $x55;  } } } } public function x18e($x5f, $x60 = true, $x61 = true) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x49 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';  $x15f($x49, $x5f, $x4a);  foreach ($x4a[1] as $x4b => $value) { $x62 = $x169($x4a[2][$x4b]);  if (empty($x62) && !$x166($x62) && $x61) $x5f = $x15d($x4a[0][$x4b], '', $x5f);  else { if ($x60) $x5f = $x15d($x4a[0][$x4b], ($x4a[1][$x4b]) . '<![CDATA[' . $x62 . ']]>' . ($x4a[3][$x4b]), $x5f);  else { $x5f = $x15d($x4a[0][$x4b], ($x4a[1][$x4b]) . $x62 . ($x4a[3][$x4b]), $x5f);  } } } $x43 = $x15c("/
/s", $x5f);  $x63 = '';  foreach ($x43 as $x64) { ($x15a($x169($x64)) > 0) ? $x63.=$x64 . "
" : false;  } $x5f = $x63;  return $x5f;  } public function x18f($x65) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr"; 
 $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if ($this->_feed_encoding != 'UTF-8') { $x65 = $x16a($x65, ENT_NOQUOTES, 'UTF-8');  $x65 = $x16b($x65, ENT_NOQUOTES, $this->_feed_encoding);  } return $x65;  } public function x190($x49, $x46 = false) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x49 = $x16c('/(
|
|
|
)/s', '', $x49);  $x66 = 'padding:2px;  border:1px solid grey;  text-align:center; padding:5px;  min-width:10px; min-height:10px; ';  $x67 = $x16d($x49);  if (!$x16e($x67)) $x68[] = $x67;  else $x68 = $x67;  $x69 = null;  foreach ($x68 as $x67) { $x6a = 0;  if (isset($x67->header)) $x67 = $x67->header;  else { $x67 = $x67->product;  } if ($x46) $x69 = "<tr style='background-color:grey; color:white;  font-weight:bold'>";  else { $x69 .= "<tr>";  } foreach ($x67 as $x4b => $value) { $value = (($value));  if ($x6a) $x6a++;  if ($x16f($value, "/breakline/")) { $value = $x15d("/breakline/", "</tr><tr>", $value);  $x6a = 1; 
 } ($value != null) ? $x6b = ($value) : $x6b = "<span style='font-size:10px;color:grey'>(empty)</span>";  $x69.="<td style='" . $x66 . "'>" . $x6b . "</td>";  } $x69.="</tr>";  } return $x69;  } public function x191($x49, $x6c, $x6d, $x6e) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x49 = $x16c('/(
|
|
|
)/s', '', $x49);  $x67 = $x16d($x49);  if (!$x16e($x67)) $x68[] = $x67;  else $x68 = $x67;  $x64 = '';  if ($x6c == '	') $x6c = "	";  foreach ($x68 as $x67) { $x6a = 0;  if (isset($x67->header)) $x67 = $x67->header;  else { if (!$x16d($x49)) return "";  $x67 = $x67->product;  } $x6f = 0;  foreach ($x67 as $x4b => $value) { if ($x6a > 0) $x6a = 2;  if ($x16f($value, "/breakline/")) $x6a++;  if ($x6f > 0 && $x6a < 2) $x64.=$x6c;  if (!$x16f($value, "/breakline/")) $x6a = 0;  if ($x6d != "") { $x64.=$x6d . $this->x192($x15d("/breakline/", '', $value), $x6d, $x6e) . $x6d;  if ($x16f($value, "/breakline/")) { $x64 .= "
";  } } else { $value = $x15d("/breakline/", "
", $value);  $x64.= $this->x192($value, $x6c, $x6e);  } $x6f++;  } if ($x6c == "[|]") $x64.="[:]";  if (!$x6a) $x64 .= "
";  } return $x64;  } public function x192($x49, $x70 = '"', $x6e = "\") { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r"; 
 $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x49 = $x15d($x70, $x6e . $x70, $x49);  return $x49;  } public function unx192($x49, $x70 = '"') { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $x49 = $x15d('\' . $x70, $x70, $x49);  return $x49;  } public function x194($x71) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr"; 
 $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if (!$x170($x71, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8';  if (!$x170($x71, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO';  } public function checkReference($x72, $product) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if (($x72 == "parent" || $x72 == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()];  elseif (($x72 == "parent" || $x72 == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];  elseif (($x72 == "parent" || $x72 == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];  else { return $product;  } } public function skipOptions($x73) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode"; 
 $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  $this->option = $this->option + $x73;  } public function generateFile() { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null";  $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  ini_set('memory_limit', Mage::getStoreConfig("datafeedmanager/system/memory_limit") . 'M');  $this->_debug = (isset($_GET['debug'])) ? true : false;  $this->_log = Mage::getStoreConfig("datafeedmanager/system/log_enabled");  if ($this->_debug) { echo "----------------------------------------------<br>------------ DEBUG MODE ----------------<br>----------------------------------------------<br><br>";  $x171($x74);  } $x75 = $this->_indexPhp;  $x76 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "dfm", "ver" => "7.3.0");  $x172(Mage::app()->getRequest()->getParam("store_id")) ? $x77 = Mage::app()->getRequest()->getParam("store_id") : $x77 = $this->getStoreId();  $x78 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');  $x79 = Mage::getDesign()->getSkinUrl();  $x7a = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x77);  $x7b = Mage::getStoreConfig("currency/options/base", $x77);  $x7c = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x77);  $x7d = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x77);  $x7e = Mage::app()->getStore($x77)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);  $x7f = Mage::getModel('core/store')->load($x77)->getBaseUrl();  $x80 = Mage::app()->getStore($x77)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);  $x81 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x77);  $x82 = Mage::app()->getStore($x77)->getRootCategoryId(); 
 $x83 = array( "activation_key" => Mage::getStoreConfig("datafeedmanager/license/activation_key"), "activation_code" => Mage::getStoreConfig("datafeedmanager/license/activation_code"), "base_url" => Mage::getStoreConfig("web/secure/base_url"), );  $x172(Mage::app()->getRequest()->getParam("feed_product")) ? $x84 = Mage::app()->getRequest()->getParam("feed_product") : $x84 = $this->getFeed_product();  $x172(Mage::app()->getRequest()->getParam("feed_header")) ? $x71 = Mage::app()->getRequest()->getParam("feed_header") : $x71 = $this->getFeed_header();  $x172(Mage::app()->getRequest()->getParam("feed_footer")) ? $x85 = Mage::app()->getRequest()->getParam("feed_footer") : $x85 = $this->getFeed_footer();  $x172(Mage::app()->getRequest()->getParam("feed_type")) ? $x86 = Mage::app()->getRequest()->getParam("feed_type") : $x86 = $this->getFeed_type();  $x172(Mage::app()->getRequest()->getParam("feed_extraheader")) ? $x87 = Mage::app()->getRequest()->getParam("feed_extraheader") : $x87 = $this->getFeed_extraheader();  $x172(Mage::app()->getRequest()->getParam("feed_extrafooter")) ? $x88 = Mage::app()->getRequest()->getParam("feed_extrafooter") : $x88 = $this->getFeed_extrafooter();  $x172(Mage::app()->getRequest()->getParam("feed_include_header")) ? $x89 = Mage::app()->getRequest()->getParam("feed_include_header") : $x89 = $this->getFeed_include_header();  $x172(Mage::app()->getRequest()->getParam("feed_separator")) ? $x6c = Mage::app()->getRequest()->getParam("feed_separator") : $x6c = $this->getFeed_separator();  $x172(Mage::app()->getRequest()->getParam("feed_protector")) ? $x6d = Mage::app()->getRequest()->getParam("feed_protector") : $x6d = $this->getFeed_protector();  $x172(Mage::app()->getRequest()->getParam("feed_escape")) ? $x6e = Mage::app()->getRequest()->getParam("feed_escape") : $x6e = $this->getFeed_escape();  $x172(Mage::app()->getRequest()->getParam("feed_satus")) ? $x8a = Mage::app()->getRequest()->getParam("feed_satus") : $x8a = $this->getFeed_status();  $x172(Mage::app()->getRequest()->getParam("feed_enclose_data")) ? $x8b = Mage::app()->getRequest()->getParam("feed_enclose_data") : $x8b = $this->getFeed_enclose_data();  $x172(Mage::app()->getRequest()->getParam("feed_clean_data")) ? $x8c = Mage::app()->getRequest()->getParam("feed_clean_data") : $x8c = $this->getFeed_clean_data();  $x172(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x8d = $x16d(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) : $x8d = $x16d($this->getDatafeedmanagerCategories());  $x172(Mage::app()->getRequest()->getParam("datafeedmanager_category_filter")) ? $x8e = Mage::app()->getRequest()->getParam("datafeedmanager_category_filter") : $x8e = $this->getDatafeedmanagerCategoryFilter();  $x172(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x74 = Mage::app()->getRequest()->getParam("datafeedmanager_categories") : $x74 = $this->getDatafeedmanagerCategories();  $x172(Mage::app()->getRequest()->getParam("feed_encoding")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("feed_encoding") : $this->_feed_encoding = $this->getFeed_encoding();  $x8f = $this->getFtpEnabled();  $x90 = $this->getUseSftp();  $x91 = $this->getFtpHost();  $x92 = $this->getFtpLogin();  $x93 = $this->getFtpPassword();  $x94 = $this->getFtpDir();  $x95 = $this->getFtpActive();  $x96 = Array();  $x97 = Array();  if ($x74 != '*' && $x16e($x8d)) { foreach ($x8d as $x98) { if ($x98->checked) $x96[] = $x98->line;  } foreach ($x8d as $x98) { if ($x98->mapping != "") $x97[$x98->line] = $x98->mapping;  } } if ($x165($x96) < 1) { $x96[] = '*';  } $x172(Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) ? $x99 = $x167(',', Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) : $x99 = $x167(',', $this->getDatafeedmanagerTypeIds());  $x172(Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) ? $x9a = $x167(',', Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) : $x9a = $x167(',', $this->getDatafeedmanagerVisibility());  $x172(Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) ? $x9b = $x167(',', Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) : $x9b = $x167(',', $this->getDatafeedmanagerAttributeSets());  $x172(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) ? $x9c = $x16d(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) : $x9c = $x16d($this->getDatafeedmanagerAttributes());  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . strtoupper($this->getFilename(false)) . "-----------------", null, $this->getFilename('.log'));  if ($x83[$x76['ac']] != $x76["md"]($x76["md"]($x83[$x76['ak']]) . $x76["md"]($x83[$x76['bu']]) . $x76["md"]($x76["ext"]) . $x76["md"]($x76["ver"]))) { $$x76["ext"] = "valid";  $$x76["th"]->$x76["dm"] = true;  } else { $$x76["th"]->$x76["dm"] = false;  $$x76["ext"] = "valid";  } if (!$x8a && !$this->_display) Mage::throwException(Mage::helper("datafeedmanager")->__("The data feed configuration must be enabled in order to generate a file."));  Mage::dispatchEvent( 'datafeedmanager_before_generate', array('datafeed' => $this) );  $this->_timestamp = $this->_timestamp = Mage::getModel('core/date')->timestamp($x173());  $x4d = new Varien_Io_File();  $x4d->setAllowCreateFolders(true);  if (!$this->_display) { $x4d->open(array('path' => $this->getPath()));  if ($x4d->fileExists($this->getFilename()) && !$x4d->isWriteable($this->getFilename())) { Mage::throwException(Mage::helper('datafeedmanager')->__('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->getFilename(), $this->getPath()));  } $x4d->streamOpen($this->getFilename());  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->getFilename() . " created and opened", null, $this->getFilename('.log'));  } if (!isset($$x76["ext"]) || $$x76["th"]->$x76["dm"]) { $$x76["th"]->$x76["dm"] = true;  return $$x76["th"];  } $x9d = '';  $x9e = '';  header("Content-Type: text/html; charset=utf-8");  $x49 = '/{([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)?([^}|]*))?}/';  $x15f($x49, $x84, $x4a);  foreach ($x4a[6] as $x4b => $x9f) { if ($x9f != "") { $x4a[0][] = $x4a[0][$x4b];  $x4a[1][] = $x9f;  $x4a[2][] = $x4a[7][$x4b];  $x4a[3][] = $x4a[8][$x4b];  ;  $x4a[4][] = $x4a[9][$x4b];  ;  } } foreach ($x4a[11] as $x4b => $x9f) { if ($x9f != "") { $x4a[0][] = $x4a[0][$x4b];  $x4a[1][] = $x9f;  $x4a[2][] = $x4a[7][$x4b];  $x4a[3][] = $x4a[8][$x4b];  ;  $x4a[4][] = $x4a[9][$x4b];  ;  } } foreach ($x4a[16] as $x4b => $x9f) { if ($x9f != "") { $x4a[0][] = $x4a[0][$x4b];  $x4a[1][] = $x9f;  $x4a[2][] = $x4a[7][$x4b];  $x4a[3][] = $x4a[8][$x4b];  ;  $x4a[4][] = $x4a[9][$x4b];  ;  } } $x4a[0][] = "{categories,[1],[1],[1]}";  $x4a[1][] = "categories";  $x4a[2][] = "";  $x4a[3][] = ",[1],[1],[1]";  $xa0 = array();  $attributesRequired = array();  foreach ($x4a[1] as $x4b => $x9f) { $xa0[$x4b]['methodName'] = "get" . $x15d(' ', '', $x174($x169($x9f)) . '()');  $xa0[$x4b]['pattern'] = "{" . $x169($x9f) . "}";  $xa0[$x4b]['fullpattern'] = $x4a[0][$x4b];  $xa0[$x4b]['name'] = $x169($x9f);  $xa0[$x4b]['reference'] = $x169($x4a[2][$x4b]);  if (empty($xa0[$x4b]['reference'])) $xa0[$x4b]['reference'] = 'self';  switch ($xa0[$x4b]['name']) { case 'url': $x175($attributesRequired, 'url_key');  break;  case 'uri': $x175($attributesRequired, 'url_key');  break;  case 'G:IMAGE_LINK': $x175($attributesRequired, 'image');  $x175($attributesRequired, 'small_image');  $x175($attributesRequired, 'thumbnail');  break;  case 'SC:IMAGES': $x175($attributesRequired, 'image');  $x175($attributesRequired, 'small_image');  $x175($attributesRequired, 'thumbnail');  break; 
 case 'SC:DESCRIPTION': $x175($attributesRequired, 'description');  $x175($attributesRequired, 'short_description');  $x175($attributesRequired, 'manufacturer');  $x175($attributesRequired, 'name');  $x175($attributesRequired, 'sku');  break;  case 'SC:EAN': $x175($attributesRequired, 'ean');  break;  case 'SC:URL': $x175($attributesRequired, 'url_key');  $x175($attributesRequired, 'url');  break;  case 'sc:images': $x175($attributesRequired, 'image');  $x175($attributesRequired, 'small_image');  $x175($attributesRequired, 'thumbnail');  break;  case 'sc:description': $x175($attributesRequired, 'description');  $x175($attributesRequired, 'short_description');  $x175($attributesRequired, 'manufacturer');  $x175($attributesRequired, 'name');  $x175($attributesRequired, 'sku');  break;  case 'sc:ean': $x175($attributesRequired, 'ean');  break;  case 'sc:url': $x175($attributesRequired, 'url_key');  $x175($attributesRequired, 'url');  break;  default : $x175($attributesRequired, $xa0[$x4b]['name']);  } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myRequiredAttributes.php");  $xa0[$x4b]["value"] = '$product->get' . $xa0[$x4b]['name'] . "()";  $xa0[$x4b]["getText"] = 'getAttributeText(\'' . $x169($x9f) . '\')';  $xa1 = '/\[([^\]]+)\]/';  $x15f($xa1, $x4a[3][$x4b], $xa2);  $xa0[$x4b]["options"] = $xa2[1];  } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES REQUIRED ----------------<br>";  $x171($xa0);  } $xa3 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x77) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu');  $x74 = array();  foreach ($xa3 as $xa4) { $x74[$xa4->getId()]['name'] = $xa4->getName();  $x74[$xa4->getId()]['path'] = $xa4->getPath();  $x74[$xa4->getId()]['level'] = $xa4->getLevel();  if ($x176(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("datafeedmanager/system/include_in_menu")) $x74[$xa4->getId()]['include_in_menu'] = true;  else $x74[$xa4->getId()]['include_in_menu'] = $xa4->getIncludeInMenu();  } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>";  $x171($x74);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->getFilename('.log'));  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xa7 = $xa5->getTableName('eav_entity_type');  $xa8 = $xa6->select()->from($xa7)->where('entity_type_code=\'catalog_product\'');  $x67 = $xa6->fetchAll($xa8);  $xa9 = $x67[0]['entity_type_id'];  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xaa = $xa5->getTableName('directory_currency_rate');  $xa8 = $xa6->select()->from($xaa)->where('currency_from=\'' . $x7b . '\'');  $x57 = $xa6->fetchAll($xa8);  $xab = array();  foreach ($x57 as $x56) { $xab[$x56['currency_to']] = $x56['rate'];  } $this->_currencies = $xab;  if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>";  $x171($xab);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->getFilename('.log'));  $xac = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($xa9) ->addSetInfo() ->getData();  $xad = array();  $xae = array();  foreach ($xac as $x4b => $x9f) { if ($x177($x9f['attribute_code'], $attributesRequired)) { $x175($xad, $x9f['attribute_code']);  $xae[$x9f['attribute_code']] = $x9f['frontend_input'];  } } if ($x165($xad) > $this->max_attribute) { $xaf = false;  } else { $xaf = true;  } if (!$x177('special_price', $xad)) $xad[] = 'special_price';  if (!$x177('special_from_date', $xad)) $xad[] = 'special_from_date';  if (!$x177('special_to_date', $xad)) $xad[] = 'special_to_date';  if (!$x177('price_type', $xad)) $xad[] = 'price_type';  if (!$x177('price', $xad)) $xad[] = 'price';  $xad[] = 'tax_class_id';  foreach ($x9c as $xb0) { if (!$x177($xb0->code, $xad) && $xb0->checked) if (!$x177($xb0->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) $xad[] = $xb0->code;  } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>";  $x171($xad);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->getFilename('.log'));  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xb1 = $xa5->getTableName('eav_attribute_option_value');  $xa8 = $xa6->select();  $xa8->from($xb1);  $xa8->where("store_id=" . $x77 . ' OR store_id=0');  $xa8->order(array('option_id', 'store_id'));  $xb2 = $xa6->fetchAll($xa8);  foreach ($xb2 as $xb3) { $xb4[$xb3['option_id']][$xb3['store_id']] = $xb3['value'];  } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>";  $x171($xb4);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->getFilename('.log'));  $xb5 = $xa5->getTableName('tax_class');  $xb6 = $xa5->getTableName('tax_calculation');  $xb7 = $xa5->getTableName('tax_calculation_rate');  $xb8 = $xa5->getTableName('directory_country_region');  $xb9 = $xa5->getTableName('customer_group');  $xa8 = $xa6->select();  $xa8->from($xb5)->order(array('class_id', 'tax_calculation_rate_id'));  $xa8->joinleft(array('tc' => $xb6), 'tc.product_tax_class_id = ' . $xb5 . '.class_id', 'tc.tax_calculation_rate_id');  $xa8->joinleft(array('tcr' => $xb7), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); 
 $xa8->joinleft(array('dcr' => $xb8), 'dcr.region_id=tcr.tax_region_id', 'code');  $xa8->joinInner(array('cg' => $xb9), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"');  $xba = $xa6->fetchAll($xa8);  $x5b = array();  $x51 = '';  foreach ($xba as $xbb) { if ($x51 != $xbb['class_id']) $xbc = 0;  else { $xbc++;  } $x51 = $xbb['class_id'];  $x5b[$xbb['class_id']][$xbc]['rate'] = $xbb['rate'];  $x5b[$xbb['class_id']][$xbc]['code'] = $xbb['code'];  $x5b[$xbb['class_id']][$xbc]['country'] = $xbb['tax_country_id'];  } $this->_rates = $x5b;  if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>";  $x171($x5b);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->getFilename('.log'));  $xbd = $xa5->getTableName('review');  $xbe = $xa5->getTableName('review_store');  $xbf = $xa5->getTableName('rating_option_vote');  $xc0 = $xa6->select()->distinct('review_id');  $xc0->from(array("r" => $xbd), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value'));  $xc0->joinleft(array('rs' => $xbe), 'rs.review_id=r.review_id', 'rs.store_id');  $xc0->joinleft(array('rov' => $xbf), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $xc0->where("status_id=1 and entity_id=1");  $xc0->group(array('r.entity_pk_value', 'rs.store_id'));  $xc1 = $xa6->select();  $xc1->from(array("r" => $xbd), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS  store_id"));  $xc1->joinleft(array('rs' => $xbe), 'rs.review_id=r.review_id', array());  $xc1->joinleft(array('rov' => $xbf), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $xc1->where("status_id=1 and entity_id=1");  $xc1->group(array('r.entity_pk_value'));  $xa8 = $xa6->select() ->union(array($xc0, $xc1));  $xa8->order(array('entity_pk_value', 'store_id'));  $xc2 = $xa6->fetchAll($xa8);  $xc3 = array();  foreach ($xc2 as $xc4) { $xc3[$xc4['entity_pk_value']][$xc4['store_id']]["count"] = $xc4["count"];  $xc3[$xc4['entity_pk_value']][$xc4['store_id']]['score'] = $xc4['score'];  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->getFilename('.log'));  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xc5 = $xa5->getTableName('catalog_product_entity_media_gallery');  $xc6 = $xa5->getTableName('catalog_product_entity_media_gallery_value');  $xa8 = $xa6->select(array("DISTINCT value"));  $xa8->from($xc5);  $xa8->joinleft(array('cpemgv' => $xc6), 'cpemgv.value_id = ' . $xc5 . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));  $xa8->where("value<>TRIM('') AND (store_id=" . $x77 . ' OR store_id=0)');  $xa8->order(array('position', 'value_id'));  $xc7 = $xa6->fetchAll($xa8);  foreach ($xc7 as $xc8) { if ($xc8['disabled'] != 1 && $xc8['value'] != '') { $xc9[$xc8['entity_id']]['src'][] = $xc8['value'];  $xc9[$xc8['entity_id']]['disabled'][] = $xc8['disabled'];  } } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>";  $x171($xc9);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->getFilename('.log'));  Mage::app()->setCurrentStore($x77);  $xca = $xa5->getTableName("cataloginventory_stock_item");  $xcb = $xa5->getTableName("core_url_rewrite");  $xaa = $xa5->getTableName('catalog_category_product');  $xcc = $xa5->getTableName('catalog_category_product_index');  $xcd = $xa5->getTableName('catalog_product_index_price');  $xce = $xa5->getTableName('catalog_product_super_link');  $xcf = $xa5->getTableName('catalog_product_link');  $xd0 = $xa5->getTableName('catalog_product_bundle_selection');  ($x176(Mage::getVersion(), '1.6.0', '<')) ? $xa2 = "options=''" : $xa2 = "ISNULL(options)";  switch (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) { case 1 : $xd1 = "AND url.target_path NOT LIKE '%category%'";  $xd2 = 'MAX';  break;  default : $xd1 = "AND url.target_path LIKE '%category%'";  $xd2 = 'GROUP_CONCAT';  break;  break;  } $xd3 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xd3->addFieldToFilter("status", array('gteq' => 1));  else $xd3->addFieldToFilter("status", 1);  $xd3->addAttributeToFilter('type_id', array("in" => "configurable"));  $xd3->addAttributeToFilter('visibility', array("nin" => 1));  $xd3->addAttributeToSelect($xad, $xaf);  $xd3->getSelect()->joinLeft($xce . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));  $xd3->getSelect()->joinLeft($xca . ' 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', "min_qty" => "min_qty", "min_sale_qty" => "min_sale_qty"));  if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $xd3->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  $xd3->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');  $xd3->getSelect()->joinLeft($xcc . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $xd4 = 0;  $xd5 = clone $xd3;  $xd5->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id');  ;  $xd6 = $xd5->getFirstItem()->getTotal();  $xd7 = $x178($xd6 / $this->_sqlSize);  while ($xd4 < $xd7) { $xd8 = clone $xd3;  $xd8->getSelect()->group(array('cpsl.parent_id'));  $xd8->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xd4));  if ($this->_sqlSize * ($xd4 + 1) > $xd6) $xd9 = $xd6;  else $xd9 = $this->_sqlSize * $xd4;  $xd4++;  foreach ($xd8 as $xda) { foreach ($x167(",", $xda->getChildIds()) as $xdb) { $xdc[$xdb] = $xda;  $xdd[$xdb]['categories_ids'] = $xda->getCategories_ids();  $xdd[$xdb]['parent_id'] = $xda->getId();  $xdd[$xdb]['parent_sku'] = $xda->getSku();  $xdd[$xdb]['parent_request_path'] = $xda->getRequestPath();  } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable products from " . ($this->_sqlSize * ($xd4 - 1) + 1) . " to " . $xd9, null, $this->getFilename('.log'));  } $this->configurable = $xdc;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; 
 echo $xd3->getSelect() . '<br><br>';  $x171($xdd);  } $xd3 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xd3->addFieldToFilter("status", array('gteq' => 1));  else $xd3->addFieldToFilter("status", 1);  $xd3->addAttributeToFilter('type_id', array("in" => "configurable"));  $xd3->addAttributeToFilter('visibility', array("nin" => 1));  $xd3->getSelect()->joinLeft($xce . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');  $xd3->getSelect()->joinLeft($xca . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)'));  $xde = array();  $xd4 = 0;  $xd5 = clone $xd3;  $xd5->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id');  ;  $xd6 = $xd5->getFirstItem()->getTotal();  $xd7 = $x178($xd6 / $this->_sqlSize);  while ($xd4 < $xd7) { $xd8 = clone $xd3;  $xd8->getSelect()->group(array('cpsl.parent_id'));  $xd8->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xd4));  if ($this->_sqlSize * ($xd4 + 1) > $xd6) $xd9 = $xd6;  else $xd9 = $this->_sqlSize * $xd4;  $xd4++;  foreach ($xd8 as $xdf) { $xde[$xdf->getId()] = $xdf->getQty();  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable qty from " . ($this->_sqlSize * ($xd4 - 1) + 1) . " to " . $xd9, null, $this->getFilename('.log'));  } $this->configurableQty = $xde;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>";  echo $xd3->getSelect() . '<br><br>';  $x171($xde);  } $xce = $xa5->getTableName("catalog_product_super_link");  $xe0 = $xa5->getTableName("catalog_product_super_attribute");  $xe1 = $xa5->getTableName("catalog_product_entity_int");  $xe2 = $xa5->getTableName("catalog_product_super_attribute_pricing");  $xe3 = $xa6->select();  $xe3->from(array("cpsl" => $xce), array("parent_id", "product_id"));  $xe3->joinleft(array("cpsa" => $xe0), "cpsa.product_id = cpsl.parent_id", array("attribute_id"));  $xe3->joinleft(array("cpei" => $xe1), "cpei.entity_id = cpsl.product_id AND cpei.attribute_id = cpsa.attribute_id", array("value" => "value"));  $xe3->joinleft(array("cpsap" => $xe2), "cpsap.product_super_attribute_id = cpsa.product_super_attribute_id AND cpei.value = cpsap.value_index", array("pricing_value" => "pricing_value", "is_percent" => "is_percent"));  $xe3->order(array("cpsl.parent_id", "cpsl.product_id"));  $xe3->group(array("cpsl.parent_id", "cpsl.product_id", "cpsa.attribute_id"));  $xe4 = $xa6->fetchAll($xe3);  $xe5 = array();  foreach ($xe4 as $xdf) { $xe5[$xdf["parent_id"]][$xdf["product_id"]][$xdf['attribute_id']]['attribute_id'] = $xdf["attribute_id"];  $xe5[$xdf["parent_id"]][$xdf["product_id"]][$xdf['attribute_id']]['value'] = $xdf["value"];  $xe5[$xdf["parent_id"]][$xdf["product_id"]][$xdf['attribute_id']]['pricing_value'] = $xdf["pricing_value"];  $xe5[$xdf["parent_id"]][$xdf["product_id"]][$xdf['attribute_id']]['is_percent'] = $xdf["is_percent"];  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable prices collected", null, $this->getFilename('.log'));  $this->configurablePrices = $xe5;  if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES PRICES ----------------<br>";  echo $xe3 . '<br><br>';  $x171($xe5);  } $xce = $xa5->getTableName("catalog_product_super_link");  $xe0 = $xa5->getTableName("catalog_product_super_attribute");  $xe6 = $xa5->getTableName("catalog_product_super_attribute_label");  $xe7 = $xa6->select();  $xe7->from(array("cpsl" => $xce), array("parent_id", "product_id"));  $xe7->joinleft(array("cpsa" => $xe0), "cpsa.product_id = cpsl.parent_id", array("attribute_id"));  $xe7->joinleft(array("cpsal" => $xe6), "cpsal.product_super_attribute_id = cpsa.product_super_attribute_id", array("relationship" => "GROUP_CONCAT(DISTINCT cpsal.value SEPARATOR '>>>')"));  $xe7->order(array("cpsl.parent_id", "cpsl.product_id"));  $xe7->group(array('cpsl.parent_id', 'cpsl.product_id'));  $xe8 = $xa6->fetchAll($xe7);  foreach ($xe8 as $xe9) { $xea[$xe9['product_id']] = $xe9['relationship'];  $xea[$xe9['parent_id']] = $xe9['relationship'];  } $this->_productRelationShip = $xea;  if ($this->_debug) { echo "<br><br>------------ RELATIONSHIP ----------------<br>";  echo $xe7 . '<br><br>';  $x171($xea);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relationship collected", null, $this->getFilename('.log'));  $xd8 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xd8->addFieldToFilter("status", array('gteq' => 1));  else $xd8->addFieldToFilter("status", 1);  $xd8->addAttributeToFilter('type_id', array("in" => "grouped"));  $xd8->addAttributeToFilter('visibility', array("nin" => 1));  $xd8->addAttributeToSelect($xad, $xaf);  $xd8->getSelect()->joinLeft($xcf . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));  $xd8->getSelect()->joinLeft($xca . ' 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', "min_qty" => "min_qty", "min_sale_qty" => "min_sale_qty"));  if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $xd8->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  $xd8->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');  $xd8->getSelect()->joinLeft($xcc . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $xd8->getSelect()->group(array('cpl.product_id'));  $xeb = array();  foreach ($xd8 as $xda) { foreach ($x167(",", $xda->getChildIds()) as $xdb) { $xeb[$xdb] = $xda;  $xec[$xdb]['categories_ids'] = $xda->getCategories_ids();  $xec[$xdb]['parent_id'] = $xda->getId();  $xec[$xdb]['parent_sku'] = $xda->getSku();  $xec[$xdb]['parent_request_path'] = $xda->getRequestPath();  } } $this->grouped = $xeb;  if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>";  echo $xd8->getSelect() . '<br><br>';  $x171($xec);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->getFilename('.log'));  $xd8 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xd8->addFieldToFilter("status", array('gteq' => 1));  else $xd8->addFieldToFilter("status", 1);  $xd8->addAttributeToFilter('type_id', array("in" => "bundle"));  $xd8->addAttributeToFilter('visibility', array("nin" => 1));  $xd8->addAttributeToSelect($xad, $xaf);  $xd8->getSelect()->joinLeft($xd0 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));  $xd8->getSelect()->joinLeft($xca . ' 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', "min_qty" => "min_qty", "min_sale_qty" => "min_sale_qty"));  if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $xd8->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  $xd8->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id'); 
 $xd8->getSelect()->joinLeft($xcc . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $xd8->getSelect()->group(array('e.entity_id'));  $xed = array();  foreach ($xd8 as $xda) { foreach ($x167(",", $xda->getChildIds()) as $xdb) { $xed[$xdb] = $xda;  $xee[$xdb]['parent_id'] = $xda->getId();  $xee[$xdb]['parent_sku'] = $xda->getSku();  $xee[$xdb]['parent_request_path'] = $xda->getRequestPath();  $xee[$xdb]['categories_ids'] = $xda->getCategories_ids();  } } $this->bundle = $xed;  if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>";  echo $xd8->getSelect() . '<br><br>';  $x171($xee);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->getFilename('.log'));  $xef = Mage::getModel('eav/entity') ->$x179('catalog_product') ->getTypeId();  $xf0 = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xef);  foreach ($xf0 as $xf1) { $xf2[$xf1->getId()] = $xf1->getAttributeSetName();  } $xf3 = $xa5->getTableName("catalog_product_entity_tier_price");  $xf4 = Mage::getModel('core/store')->load($x77)->getWebsiteId();  $xf5 = $xa6->select();  $xf5->from(array("cpetp" => $xf3), array("entity_id", "all_groups", "customer_group_id", "value", "qty"));  $xf5->order(array("cpetp.entity_id", "cpetp.customer_group_id", "cpetp.qty"));  $xf5->where("cpetp.website_id=" . $xf4 . " OR cpetp.website_id=0");  $xc2 = $xa6->fetchAll($xf5);  $xf6 = array();  foreach ($xc2 as $xf7) { if ($xf7['all_groups'] == 1) $xf6[$xf7["entity_id"]][32000][] = array("qty" => $xf7['qty'], "value" => $xf7['value']);  else $xf6[$xf7["entity_id"]][$xf7["customer_group_id"]][] = array("qty" => $xf7['qty'], "value" => $xf7['value']);  } $this->_tierPrices = $xf6;  if ($this->_debug) { echo "<br><br>------------ TIERS PRICES ----------------<br>";  echo $xf5 . '<br><br>';  $x171($xf6);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Teiers Price collected", null, $this->getFilename('.log'));  $xf8 = $xa5->getTableName("catalog_product_option");  $xf9 = $xa5->getTableName("catalog_product_option_title");  $xfa = $xa5->getTableName("catalog_product_option_type_value");  $xfb = $xa5->getTableName("catalog_product_option_type_title");  $xfc = $xa5->getTableName("catalog_product_option_type_price");  $xfd = $xa6->select();  $xfd->from(array("cpo" => $xf8), array("product_id"));  $xfd->joinleft(array("cpot" => $xf9), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id"));  $xfd->joinleft(array("cpotv" => $xfa), "cpotv.option_id = cpo.option_id", "sku");  $xfd->joinleft(array("cpott" => $xfb), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value");  $xfd->joinleft(array("cpotp" => $xfc), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type"));  $xa8 = $xfd->order(array("product_id", "cpotv.sort_order ASC"));  $xc2 = $xa6->fetchAll($xa8);  $xfe = array();  $xff = 0;  foreach ($xc2 as $x100) { $xfe[$x100["product_id"]][$x100["option"]]["options"][] = array( "value" => $x100["value"], "sku" => $x100["sku"], "price" => $x100["price"], "price_type" => $x100["price_type"] );  $xff++;  } $this->customOptions = $xfe;  if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>";  echo $xfd . '<br><br>';  $x171($xfe);  } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->getFilename('.log'));  $x101 = new Wyomind_Datafeedmanager_Model_MyCustomOptions;  $x102 = new Wyomind_Datafeedmanager_Model_MyCustomAttributes;  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom attributes/options scripts loaded", null, $this->getFilename('.log'));  $xd3 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xd3->addFieldToFilter("status", array('gteq' => 1));  else $xd3->addFieldToFilter("status", 1);  $xd3->addAttributeToFilter("type_id", array("in" => $x99));  $xd3->addAttributeToFilter("visibility", array("in" => $x9a));  if ($x9b[0] != '*') $xd3->addAttributeToFilter("attribute_set_id", array("in" => $x9b));  $xd3->addAttributeToSelect($xad, $xaf);  $x103 = 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)", );  $x104 = '';  $x43 = 0;  $x105 = array();  foreach ($x9c as $xb0) { $xb0->value = $this->x18b($xb0->value, null);  if ($xb0->checked) { if ($xb0->condition == 'in' || $xb0->condition == 'nin') { if ($xb0->code == 'qty' || $xb0->code == 'is_in_stock') { $x106 = $x167(',', $xb0->value);  $xb0->value = "'" . $x15b($x106, "','") . "'";  } else { $xb0->value = $x167(',', $xb0->value);  } } switch ($xb0->code) { case 'qty' : if ($x43 > 0) $x104.=' ' . $xb0->statement . ' ';  $x104.=" qty " . $x17a($x103[$xb0->condition], $xb0->value);  $x43++;  break;  case 'is_in_stock' : if ($x43 > 0) $x104.=' ' . $xb0->statement . ' ';  $x104.=" (IF(";  $x104.="(use_config_manage_stock=1 AND $x7c=0)";  $x104.=" OR ";  $x104.='(use_config_manage_stock=0 AND manage_stock=0)';  $x104.=" OR ";  $x104.="(use_config_manage_stock=1 AND $x7c=1 AND is_in_stock=1 )";  $x104.=" OR ";  $x104.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )";  $x104.=",'1','0')" . $x17a($x103[$xb0->condition], $xb0->value) . ")";  $x43++;  break;  default : if ($xb0->statement == "AND") { if ($x165($x105)) $xd3->addFieldToFilter($x105);  $x105 = array();  } if ($xb0->condition == "in") { $x107 = true;  $x108 = array();  foreach ($xb0->value as $x6b) { if (!$x166($x6b)) $x107 = true;  } if ($x107) { foreach ($xb0->value as $x6b) { $x108[] = array(array("finset" => $x6b));  } $x105[] = array("attribute" => $xb0->code, $x108);  } else $x105[] = array("attribute" => $xb0->code, $xb0->condition => $xb0->value);  } else $x105[] = array("attribute" => $xb0->code, $xb0->condition => $xb0->value);  break;  } } };  if ($x165($x105)) $xd3->addFieldToFilter($x105);  $xd3->getSelect()->joinLeft($xca . ' 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', "min_qty" => "min_qty", "min_sale_qty" => "min_sale_qty")); 
 if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $xd3->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xd3->getSelect()->joinLeft($xce . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id'));  $x109 = null;  if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $x109 = "OR (categories_index.category_id=categories_parent.category_id AND  categories_index.product_id=categories_parent.product_id )";  if ($x96[0] != '*') { $x6b = 0;  $x10a = null;  foreach ($x96 as $x98) { if ($x6b > 0) $x10a.=',';  $x10a.=$x17b($x167('/', $x98));  $x6b++;  } ($x8e) ? $x10b = "IN" : $x10b = "NOT IN";  if ($x176(Mage::getVersion(), '1.12.0', '<=')) { $x10a = "AND categories_index.category_id " . $x10b . " (" . $x10a . ")";  $xd3->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id', array());  if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xd3->getSelect()->joinLeft($xaa . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id');  $xd3->getSelect()->joinInner($xcc . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $x109 . ') AND categories_index.store_id=' . $x77 . ' ' . $x10a, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  } else { $x10a = "AND categories.category_id " . $x10b . " (" . $x10a . ")";  $x109 = " OR cpsl.parent_id";  $xd3->getSelect()->joinInner($xaa . ' AS categories', 'categories.product_id=e.entity_id ' . $x109 . $x10a, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)'));  } } else { $xd3->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');  if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xd3->getSelect()->joinLeft($xaa . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id');  $xd3->getSelect()->joinLeft($xcc . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $x109 . ') AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)'));  } if ($x176(Mage::getVersion(), '1.4.0', '>=')) $xd3->getSelect()->joinLeft($xcd . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xf4, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price'));  if (!empty($x104)) $xd3->getSelect()->where($x104);  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request: 
" . $xd3->getSelect(), null, $this->getFilename('.log'));  if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>";  } $xd4 = 0;  $xd5 = clone $xd3;  $xd5->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total")->group('e.entity_type_id');  $this->_counter = $xd5->getFirstItem()->getTotal();  $xd7 = $x178($this->_counter / $this->_sqlSize);  $x9d = '';  $x10c = 1;  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xd7 queries )", null, $this->getFilename('.log'));  $x71 = $this->x18b($x71, null, $x86, true);  if ($x86 == 1) $x71 = $this->x18f($x71);  if ($this->_display) { if ($x86 == 1) { $x9e = $this->x18e($x71, $x8b, $x8c) . "";  } else { $x9e = $this->x18b($x87) . '<br>';  $x9e.= "<table style='border:2px solid grey; font-family:arial;  font-size:12px' cellspacing=0 cellpadding=0 width='1%'>";  if ($x89) { $x9e.=$this->x190($x71, true);  } } } else { if ($x86 == 1) { $x4d->streamWrite($this->x18e($x71, $x8b, $x8c) . "");  } else { if ($x87 != '') $x4d->streamWrite($this->x18f($this->x18b($x87) . "
"));  if ($x89) { $x10d = $this->x191($x71, $x6c, $x6d, $x6e);  $x10d = $this->x18f($x10d);  $x4d->streamWrite($x10d);  } } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Header template parsed and added", null, $this->getFilename('.log'));  while ($xd4 < $xd7) { $xd8 = clone $xd3;  if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>";  print($xd8->getSelect());  } $xd8->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xd4));  $xd8->getSelect()->group(array('e.entity_id'))->order('e.entity_id');  $xd4++;  if ($this->_sqlSize * $xd4 > $this->_counter) $xd9 = $this->_counter;  else $xd9 = $this->_sqlSize * $xd4;  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->_sqlSize * ($xd4 - 1) + 1) . " to " . $xd9, null, $this->getFilename('.log'));  $xff = 1;  foreach ($xd8 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>";  echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x82 . "<br>";  foreach ($x167(',', $product->getCategoriesIds()) as $x4b => $xa4) { echo $xa4 . "=>" . $x74[$xa4]["path"] . "<br>";  } } if (!$x17c('safe_mode')) { $x17d(60);  } $x5f = $x84;  foreach ($xa0 as $x4b => $exp) { $value = "";  $this->option = 0;  switch ($exp['pattern']) { case '{load_options}': $xc2 = 1;  $x10e = array();  foreach ($exp['options'] as $x4b => $option) { if (isset($xfe[$product->getId()][$option])) { $xc2 = $xc2 * $x165($xfe[$product->getId()][$option]["options"]);  $x10e[$x4b] = 0;  } } $x49 = array();  for ($xbc = 1;  $xbc <= $xc2;  $xbc++) { $x10f = $x5f;  foreach ($exp['options'] as $x4b => $option) { if (isset($xfe[$product->getId()][$option])) { $x10f = $x15d("{" . $option . "_label}", $xfe[$product->getId()][$option]["options"][$x10e[$x4b]]['value'], $x10f);  $x10f = $x15d("{" . $option . "_sku}", $xfe[$product->getId()][$option]["options"][$x10e[$x4b]]['sku'], $x10f);  $x10f = $x15d("{" . $option . "_price}", $xfe[$product->getId()][$option]["options"][$x10e[$x4b]]['price'], $x10f);  $x10f = $x15d("{" . $option . "_type}", $xfe[$product->getId()][$option]["options"][$x10e[$x4b]]['price_type'], $x10f);  if ($x4b > 0 || $x165($xfe[$product->getId()]) == 1 || $x165($exp['options']) < 2) $x10e[$x4b] ++;  if ($x10e[$x4b] >= $x165($xfe[$product->getId()][$option]["options"])) { $x10e[$x4b] = 0;  $x10e[$x4b - 1] ++;  } } } $x49[] = $x10f;  } if ($x165($x49) > 0) { if ($x86 == 1) $x5f = $x15b($x49);  else $x5f = "[" . $x15b(',', $x49) . "]";  } $this->skipOptions($x165($exp['options']));  break;  case '{use_options}': foreach ($exp['options'] as $x4b => $option) { if (isset($xfe[$product->getId()][$option])) { $x110 = array();  $x111 = array();  $x112 = array();  foreach ($xfe[$product->getId()][$option]["options"] as $x63) { $x110[] = $x63['value'];  $x111[] = $x63['sku'];  $x112[] = $x63['price'];  } $x5f = $x15d("{" . $option . "_label}", $x15b(',', $x110), $x5f);  $x5f = $x15d("{" . $option . "_sku}", $x15b(',', $x111), $x5f);  $x5f = $x15d("{" . $option . "_price}", $x15b(',', $x112), $x5f);  } } $this->skipOptions($x165($exp['options']));  break;  case '{id}' : $x113 = $this->checkReference($exp['reference'], $product);  $value = $x113->getId();  break;  case '{inc}' : $value = $x10c;  break;  case '{status}': $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x8a = "Enabled" : $x8a = $exp['options'][0]; 
 (!isset($exp['options'][1])) ? $x114 = "Disabled" : $x114 = $exp['options'][1];  if ($x113->getStatus() == 2) $value = $x114;  else $value = $x8a;  $this->skipOptions(2);  break;  case '{attribute_set}': $x113 = $this->checkReference($exp['reference'], $product);  $value = $xf2[$x113->getAttributeSetId()];  break;  case "{relationship}": $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x115 = ', ' : $x115 = $exp['options'][0];  if (isset($xea[$x113->getId()])) { $value = $x15d(">>>", $x115, $xea[$x113->getId()]);  } $this->skipOptions(1);  break;  case '{final_price}' : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = $x113->getFinalePrice();  (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{min_price}' : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = $x113->getMinPrice();  (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{max_price}' : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = $x113->getMaxPrice();  (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{normal_price}' : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->type_id == 'bundle') $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{price}' : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x113->type_id == "bundle") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bundle") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x113->getSpecialToDate()) { if ($x113->type_id == "bundle") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bundle") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } else { if ($x113->type_id == "bundle") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp["options"][0])) ? $x56 = $x7b : $x56 = $exp["options"][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, ".", "");  $this->skipOptions(2);  break;  case "{is_special_price}" : $x113 = $this->checkReference($exp['reference'], $product); 
 (!isset($exp["options"][0])) ? $x118 = 1 : $x118 = $exp["options"][0];  (!isset($exp["options"][1])) ? $x119 = 0 : $x119 = $exp["options"][1];  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x113->type_id == "bundle") (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0 ) ? $value = $x118 : $value = $x119;  else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $value = $x118 : $value = $x119;  } } else { if ($x113->type_id == "bundle") $value = $x119;  else { $value = $x119;  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x113->getSpecialToDate()) { if ($x113->type_id == "bundle") (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0 ) ? $value = $x118 : $value = $x119;  else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $value = $x118 : $value = $x119;  } } else { if ($x113->type_id == "bundle") $value = $x119;  else { $value = $x119;  } } } else { if ($x113->type_id == "bundle") (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0 ) ? $value = $x118 : $value = $x119;  else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $value = $x118 : $value = $x119;  } } $this->skipOptions(2);  break;  case "{special_price}" : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = null;  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x113->type_id == 'bundle') { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x113->getSpecialToDate()) { if ($x113->type_id == 'bundle') { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } } } else { if ($x113->type_id == 'bundle') { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x55 > 0) { if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  ;  } else { $value = "";  } $this->skipOptions(2);  break;  case '{price_rules}' : $x113 = $this->checkReference($exp['reference'], $product);  $x77 = $this->getStoreId();  $x11a = Mage::getResourceModel('catalogrule/rule');  $x11b = Mage::app()->getLocale()->storeTimeStamp($x77);  $x11c = Mage::app()->getStore($x77);  $xf4 = $x11c->getWebsiteId();  $x11d = Mage::getSingleton('customer/session')->getCustomerGroupId();  $x11e = $x11a->getRulePrice($x11b, $xf4, $x11d, $x113->getId());  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x113->type_id == "bundle") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bundle") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x113->getSpecialToDate()) { if ($x113->type_id == "bundle") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bundle") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } else { if ($x113->type_id == "bundle") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } if ($x11e !== FALSE) { if ($x11e < $x55) $value = $x11e;  else $value = $x55;  } else $value = $x55;  if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  $value = $this->x18d($value, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp["options"][0])) ? $x56 = $x7b : $x56 = $exp["options"][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, ".", "");  $this->skipOptions(2);  break;  case '{group_price}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x11f = 0 : $x11f = $exp['options'][0];  $x113->setCustomerGroupId($x11f);  $x120 = $x113->getGroupPrice();  if ($x165($x120) == 1) { $x55 = $x120;  } else { $x55 = $x120[0]['price'];  } if ($x55 > 0) { if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } (!isset($exp['options'][2])) ? $x5a = false : $x5a = $exp['options'][2];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][1])) ? $x56 = $x7b : $x56 = $exp['options'][1];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  } $this->skipOptions(3);  break;  case '{tier_price}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x11f = 32000 : $x11f = $exp['options'][0];  if ($x11f == "*") $x11f = 32000;  (!isset($exp['options'][1])) ? $x121 = 0 : $x121 = $exp['options'][1]; 
 $xf6 = $this->_tierPrices[$x113->getId()];  if ($x121 < 0) { $x121 = $x17e($x121) - 1;  $xf6[$x11f] = $x17f($xf6[$x11f]);  } $x55 = $xf6[$x11f][$x121]['value'];  if ($x55 > 0) { if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } (!isset($exp['options'][3])) ? $x5a = false : $x5a = $exp['options'][3];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][2])) ? $x56 = $x7b : $x56 = $exp['options'][2];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  } $this->skipOptions(3);  break;  case '{tier_price_qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x11f = 0 : $x11f = $exp['options'][0];  if ($x11f == "*") $x11f = 32000;  $xf6 = $this->_tierPrices[$x113->getId()];  (!isset($exp['options'][1])) ? $x121 = 0 : $x121 = $exp['options'][1];  if ($x121 < 0) { $x121 = $x17e($x121) - 1;  $xf6[$x11f] = $x17f($xf6[$x11f]);  } $x122 = $xf6[$x11f][$x121]['qty'];  if ($x122 > 0) $value = $x122;  $this->skipOptions(2);  break;  case "{G:SALE_PRICE}" : $x113 = $this->checkReference($exp['reference'], $product);  $x123 = Mage::getSingleton('core/date')->getGmtOffset("hours");  if ($x123 > 0) { $x124 = "+";  $x125 = $x180($x17e($x181($x123)), 2, 0, STR_PAD_LEFT) . ':' . $x180(($x17e($x123) - $x181($x17e($x123))) * 60, 2, 0, STR_PAD_LEFT);  } else { $x124 = "";  $x125 = '-' . $x180($x17e($x181($x123)), 2, 0, STR_PAD_LEFT) . ':' . $x180(($x17e($x123) - $x181($x17e($x123))) * 60, 2, 0, STR_PAD_LEFT);  } $x126 = $x168($x15d(' ', 'T', $x113->getSpecialFromDate()), 0, -3);  $x127 = $x168($x15d(' ', 'T', $x15d("00:00:00", "23:59:59", $x113->getSpecialToDate())), 0, -3);  if ($x113->type_id == 'bundle' && $x113->special_price) { if ($x113->price_type) { $x55 = $x164($x113->price * $x113->special_price / 100, 2, ".", "");  } else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x55 > 0) { if ($x113->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_percent"]) { $x116+=( $x117["pricing_value"] / 100) * $x55;  } else $x116+=$x117["pricing_value"];  };  $x55+=$x116;  } } $x55 = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $x55 = $this->x18c($x55, $x56);  $x55 = $x164($x55, 2, '.', '');  ;  } if ($x55 > 0) { $value = "<g:sale_price><![CDATA[" . $x55 . " " . $x56 . "]]></g:sale_price>
";  } if ($x55 > 0 && $x127) { $value.="<g:sale_price_effective_date><![CDATA[" . $x126 . $x124 . $x125 . "/" . $x127 . $x124 . $x125 . "]]></g:sale_price_effective_date>
";  } $this->skipOptions(2);  break;  case "{image}" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getImage();  if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($x113->getImage() && $x113->getImage() != 'no_selection') { $x129 = 'catalog/product/' . $x113->getImage();  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  } else { $value = $x80 . '/catalog/product/placeholder/' . $x7a;  } } elseif (isset($xc9[$x113->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xc9[$x113->getId()]['src'][$exp['options'][0] - 1] != $x128) { $x129 = 'catalog/product/' . $xc9[$x113->getId()]['src'][$exp['options'][0] - 1];  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  } } $this->skipOptions(1);  break;  case "{G:IMAGE_LINK}" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getImage();  $x12a = array($x113->getSmall_image(), $x113->getThumbnail());  $x12b = '';  $x10e = 0;  if ($x113->getImage() && $x113->getImage() != 'no_selection') { $x129 = 'catalog/product/' . $x113->getImage();  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  $x12b.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
";  $x10e++;  } $x12c = 0;  while (isset($xc9[$x113->getId()]['src'][$x12c]) && $x10e < 10) { if ($xc9[$x113->getId()]['src'][$x12c] != $x128) { if ($x177($xc9[$x113->getId()]['src'][$x12c], $x12a) || $xc9[$x113->getId()]['disabled'][$x12c] != 1) { $x129 = 'catalog/product/' . $xc9[$x113->getId()]['src'][$x12c];  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  $x12b.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
";  $x10e++;  } } $x12c++;  } $value = $x12b;  break;  case "{url}" : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $x12d = $x167(",", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x7f . $x17b($x12d);  } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $x12d = $x167(",", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x7f . $x183($x12d);  } else $value = $x7f . $x113->getRequest_path();  } else { $value = $x113->getProductUrl();  } $value = $x15d('https', 'http', $value);  break;  case "{host}" : $value = $x7f;  break;  case "{uri}" : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $x12d = $x167(",", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x17b($x12d);  } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $x12d = $x167(",", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x183($x12d);  } else $value = $x113->getRequest_path(); 
 } else { $value = $x15d($x7f, '', $x113->getProductUrl());  } $value = $x15d('https', 'http', $value);  break;  case '{is_in_stock}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x12e = 'in stock' : $x12e = $exp['options'][0];  (!isset($exp['options'][1])) ? $x12f = "out of stock" : $x12f = $exp['options'][1];  (!isset($exp['options'][2])) ? $x130 = "available for order" : $x130 = $exp['options'][2];  if (($x113->getManageStock() && !$x113->getUseConfigManageStock() && !$x7c) || ($x113->getUseConfigManageStock() && $x7c ) || ($x113->getManageStock() && !$x113->getUseConfigManageStock())) { if ($x113->getIsInStock() > 0) { if ($product->type_id == "configurable") $x122 = $xde[$product->getId()];  else $x122 = $x113->getQty();  if ($x122 > 0) { $value = $x12e;  } else { if ($x113->getBackorders() || ($x113->getUseConfigBackorders() && $x7d)) { $value = $x130;  } else { $value = $x12f;  } } } else $value = $x12f;  } else { $value = $x12e;  } $this->skipOptions(3);  break;  case '{stock_status}' : $x113 = $this->checkReference($exp['reference'], $product);  ($x113->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock');  break;  case '{min_qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x131 = 0 : $x131 = $exp['options'][0];  $value = $x164($x113->getMinQty(), $x131, '.', '');  $this->skipOptions(1);  break;  case '{min_sale_qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x131 = 0 : $x131 = $exp['options'][0];  $value = $x164($x113->getMinSaleQty(), $x131, '.', '');  $this->skipOptions(1);  break;  case '{qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x131 = 0 : $x131 = $exp['options'][0];  if ($product->type_id == "configurable") { $value = $xde[$product->getId()];  $value = $x164($value, $x131, '.', '');  } else if ($exp['reference'] == "configurable") { $value = $x164($xde[$x113->getId()], $x131, '.', '');  } else { $value = $x164($x113->getQty(), $x131, '.', '');  } $this->skipOptions(1);  break;  case "{categories_v1}" : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x134 = INF : $x134 = $exp['options'][2];  $x135 = 0;  $value = '';  $x136 = '';  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177($x74[$xa4]["path"], $x96) : $x137 = !$x177($x74[$xa4]["path"], $x96);  if (isset($x74[$xa4]) && $x135 < $x132 && ($x137 || $x96[0] == "*")) { $x138 = 0;  $x139 = $x167('/', $x74[$xa4]["path"]);  if ($x177($x82, $x139)) { $x13a = "";  if ($x135 > 0) $x136 = ",";  foreach ($x139 as $x13b) { if (isset($x74[$x13b])) { if ($x74[$x13b]['level'] > $x133 && $x138 < $x134) { if ($x138 > 0) $x13a.='>';  $x13a.=($x74[$x13b]['name']);  $x138++;  } } } $x13c = "";  if (!empty($x13a)) { $value.=$x136 . $x13a . $x13c;  $x135++;  } } } };  $this->skipOptions(3);  break;  case "{categories}" : $x13d = null;  $x132 = INF;  $x133 = 1;  $x13e = INF;  $x115 = ', ';  $x13f = " > ";  if ($x165($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x13d = "last" : $x13d = $exp['options'][0];  $x132 = 1;  } elseif ($x165($exp['options']) == 2) { (!isset($exp['options'][0])) ? $x115 = ', ' : $x115 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x13f = " > " : $x13f = $exp['options'][1];  } elseif ($x165($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x13e = INF : $x13e = $exp['options'][2];  (!isset($exp['options'][3])) ? $x115 = ', ' : $x115 = $exp['options'][3];  (!isset($exp['options'][4])) ? $x13f = " > " : $x13f = $exp['options'][4];  } $x113 = $this->checkReference($exp['reference'], $product);  $x129 = 0;  $x140 = array();  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177(@$x74[$xa4]["path"], $x96) : $x137 = !$x177(@$x74[$xa4]["path"], $x96);  if (isset($x74[$xa4]) && ($x137 || $x96[0] == "*")) { $x129++;  $x140[$x129] = array();  $x139 = $x167('/', $x74[$xa4]["path"]);  if ($x177($x82, $x139)) { foreach ($x139 as $x13b) { if (isset($x74[$x13b]) && $x74[$x13b]['name'] != null) { $x140[$x129][] = ($x74[$x13b]['name']);  } } } } } $x141 = array();  $x182($x140, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray'));  if ($x13d == "last") $x140 = $x17f($x140);  $x113->setCategoriesArray($x140);  $x142 = 0;  foreach ($x140 as $x4b => $x138) { if ($x142 < $x132) { foreach ($x138 as $x143 => $x144) { if ($x143 >= $x133 && $x143 <= $x13e) { if (!isset($x141[$x142])) $x141[$x142] = array();  $x141[$x142][] .= $x144;  } } if ($x165($x141[$x142])) $x142++;  } };  $value = null;  foreach ($x184($x141) as $x4b => $x145) { if ($x4b > 0) $value.=$x115;  $value.=$x15b($x13f, $x145);  } $this->skipOptions($x165($exp['options']));  break;  case "{G:PRODUCT_TYPE_v1}" : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x134 = INF : $x134 = $exp['options'][2];  $x135 = 0; 
 $value = '';  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177($x74[$xa4]["path"], $x96) : $x137 = !$x177($x74[$xa4]["path"], $x96);  if (@$x74[$xa4]["include_in_menu"] && isset($x74[$xa4]) && $x135 < $x132 && ($x137 || $x96[0] == "*")) { $x138 = 0;  $x139 = $x167('/', $x74[$xa4]["path"]);  if ($x177($x82, $x139)) { $x13a = '';  $x136 = '<g:product_type><![CDATA[';  foreach ($x139 as $x13b) { if (isset($x74[$x13b])) { if ($x74[$x13b]['level'] > $x133 && $x138 < $x134) { if ($x138 > 0) $x13a.=' > ';  $x13a.=($x74[$x13b]['name']);  $x138++;  } } } $x13c = "]]></g:product_type>
";  if (!empty($x13a)) { $value.=$x136 . $x13a . $x13c;  $x135++;  } } } };  $this->skipOptions(3);  break;  case "{G:PRODUCT_TYPE}" : $x115 = "]]></g:product_type>
<g:product_type><![CDATA[";  $x13f = " > ";  (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x13e = INF : $x13e = $exp['options'][2];  $x113 = $this->checkReference($exp['reference'], $product);  $x129 = 0;  $x140 = array();  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177(@$x74[$xa4]["path"], $x96) : $x137 = !$x177(@$x74[$xa4]["path"], $x96);  if (isset($x74[$xa4]) && ($x137 || $x96[0] == "*")) { $x129++;  $x140[$x129] = array();  $x139 = $x167('/', $x74[$xa4]["path"]);  if ($x177($x82, $x139)) { foreach ($x139 as $x13b) { if (isset($x74[$x13b]) && $x74[$x13b]['name'] != null) { $x140[$x129][] = ($x74[$x13b]['name']);  } } } } } $x141 = array();  $x182($x140, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray'));  foreach ($x140 as $x4b => $x138) { if ($x4b < $x132) foreach ($x138 as $x143 => $x144) { if ($x143 >= $x133 && $x143 <= $x13e) { if (!isset($x141[$x4b])) $x141[$x4b] = array();  $x141[$x4b][] .= $x144;  } } };  $value = null;  foreach ($x184($x141) as $x4b => $x145) { if ($x4b > 0) $value.=$x115;  $value.=$x15b($x13f, $x145);  } if (($x141)) $value = "<g:product_type><![CDATA[" . $value . "]]></g:product_type>
";  $this->skipOptions($x165($exp['options']));  break;  case "{G:GOOGLE_PRODUCT_CATEGORY}" : $x146 = array();  (!isset($exp['options'][0])) ? $x13d = "longest" : $x13d = $exp['options'][0];  $x113 = $this->checkReference($exp['reference'], $product);  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { if (isset($x74[$xa4]["path"]) && isset($x97[$x74[$xa4]["path"]])) { $x146[] = $x97[$x74[$xa4]["path"]];  } } $x182($x146, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  if ($x13d == "shortest") $x146 = $x17f($x146);  $x147 = $x183($x146);  if ($x147 != "") $value = "<g:google_product_category><![CDATA[" . $x147 . "]]></g:google_product_category>
";  $this->skipOptions(1);  break;  case "{category_mapping}" : (isset($exp["options"][0])) ? $x148 = $exp["options"][0] : $x148 = 0;  $value = "";  $x113 = $this->checkReference($exp['reference'], $product);  $x149 = 0;  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { if (isset($x97[$x74[$xa4]["path"]])) { if ($x149 == $x148) { $value.=$x97[$x74[$xa4]["path"]];  break;  } $x149++;  } } $this->skipOptions(1);  break;  case "{review_count}": $x113 = $this->checkReference($exp['reference'], $product);  $value = "";  (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x14a = 0 : $x14a = $x77;  if (isset($xc3[$x113->getId()][$x14a]["count"])) { $x14b = $xc3[$x113->getId()][$x14a]["count"];  if (isset($x14b)) $value.=$x14b;  } $this->skipOptions(1);  break;  case "{review_average}": $x113 = $this->checkReference($exp['reference'], $product);  $value = "";  (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x14a = 0 : $x14a = $x77;  (!isset($exp["options"][1]) || !$exp["options"][1]) ? $x14c = 5 : $x14c = $exp["options"][1];  if (isset($xc3[$x113->getId()][$x14a]["score"])) { $x14d = $x164($xc3[$x113->getId()][$x14a]["score"] * $x14c / 100, 2, ".", "");  if (isset($x14d)) $value.=$x14d;  } $this->skipOptions(2);  break;  case "{G:PRODUCT_REVIEW}" : $x113 = $this->checkReference($exp['reference'], $product);  (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x14a = 0 : $x14a = $x77;  (!isset($exp["options"][1]) || !$exp["options"][1]) ? $x14c = 5 : $x14c = $exp["options"][1];  $value = "";  if (isset($xc3[$x113->getId()][$x14a]["count"])) { $x14b = $xc3[$x113->getId()][$x14a]["count"];  $x14d = $x164($xc3[$x113->getId()][$x14a]["score"] * $x14c / 100, 2, ".", "");  } if (isset($x14d) && $x14d > 0) { $value.="<g:product_review_average><![CDATA[" . $x14d . "]]></g:product_review_average>
";  } if (isset($x14b) && $x14b > 0) { $value.="<g:product_review_count><![CDATA[" . $x14b . "]]></g:product_review_count>
";  } unset($x14d);  unset($x14b);  break;  case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $x113 = $this->checkReference('configurable', $product);  $value = "<g:item_group_id><![CDATA[" . $x113->getSku() . "]]></g:item_group_id>";  } break;  case "{SC:EAN}" : ($x166($exp['options'][0]) && $exp['options'][0] > 0) ? $x14e = $exp['options'][0] : $x14e = 0;  $x113 = $this->checkReference($exp['reference'], $product);  $value = $x167(',', $x113->getEan());  $value = "<g:ean><![CDATA[" . $value[$x14e] . "]]></g:ean>";  break;  case "{sc:ean}" : ($x166($exp['options'][0]) && $exp['options'][0] > 0) ? $x14e = $exp['options'][0] : $x14e = 0;  $x113 = $this->checkReference($exp['reference'], $product);  $value = $x167(',', $x113->getEan());  $value = $value[$x14e];  break;  case "{SC:IMAGES}" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getSmall_image();  $x12a = array($x113->getImage(), $x113->getThumbnail()); 
 $x12b = '';  $x10e = 0;  if ($x113->getSmall_image() && $x113->getSmall_image() != 'no_selection') { $x129 = $x113->getSmall_image();  $value = $x129;  $x12b.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
";  $x10e++;  } $x12c = 0;  while (isset($xc9[$x113->getId()]['src'][$x12c]) && $x10e < 10) { if ($xc9[$x113->getId()]['src'][$x12c] != $x128) { if ($x177($xc9[$x113->getId()]['src'][$x12c], $x12a) || $xc9[$x113->getId()]['disabled'][$x12c] != 1) { $x129 = $xc9[$x113->getId()]['src'][$x12c];  $value = $x129;  $x12b.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
";  $x10e++;  } } $x12c++;  } $value = $x12b;  break;  case "{sc:images}" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getSmall_image();  if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($x113->getSmall_image() && $x113->getSmall_image() != 'no_selection') { $x129 = $x113->getSmall_image();  $value = $x129;  } else { $value = $x80 . '/catalog/product/placeholder/' . $x7a;  } } elseif (isset($xc9[$x113->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xc9[$x113->getId()]['src'][$exp['options'][0] - 1] != $x128) { $x129 = 'catalog/product/' . $xc9[$x113->getId()]['src'][$exp['options'][0] - 1];  $value = $x80 . $x15d('//', '/', $x129);  } } $this->skipOptions(1);  break;  case "{SC:DESCRIPTION}" : $x113 = $this->checkReference($exp['reference'], $product);  $x10d = $x113->getDescription() . $x113->getShortDescription();  $x14f = "|<iframe(.*)</iframe>|U";  $x160($x14f, $x10d, $x150);  if ($x150) { $x10d = $x113->getAttributeText('manufacturer') . " " . $x113->getName() . " - Part number: " . $x113->getSku() . " - Category : {categories,[1],[1],[1]}";  } else { if ($x177("strip_tags", $exp['options'])) { $x10d = $x16c('!\<br /\>!isU', " ", $x10d);  $x10d = $x16c('!\<br/\>!isU', " ", $x10d);  $x10d = $x16c('!\<br>!isU', " ", $x10d);  $x10d = $x185($x10d);  } if ($x177("html_entity_decode", $exp['options'])) { $x10d = $x16b($x10d, ENT_QUOTES, 'UTF-8');  } if ($x177("htmlentities", $exp['options'])) { $x10d = $x186(($x10d));  } if ($x15a($x10d) > 900) { $x10d = $x168($x10d, 0, 900 - 3);  $x151 = $x187($x10d, " ");  $x10d = $x168($x10d, 0, $x151) . '...';  } } if ($x10d == null) $x10d = $x113->getAttributeText('manufacturer') . " " . $x113->getName() . " - Part number: " . $x113->getSku() . " - Category : {categories,[1],[1],[1]}";  $x10d = $x16c('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x10d);  $x10d = $x15d('', '', $x10d);  $value = "<description><![CDATA[" . $x10d . "]]></description>";  $exp['options'] = array();  break;  case "{sc:description}" : $x113 = $this->checkReference($exp['reference'], $product);  $x10d = $x113->getDescription() . $x113->getShortDescription();  $x14f = "|<iframe(.*)</iframe>|U";  $x160($x14f, $x10d, $x150);  if ($x150) { $x10d = $x113->getAttributeText('manufacturer') . " " . $x113->getName() . " - Part number: " . $x113->getSku() . " - Category : {categories,[1],[1],[1]}";  } else { if ($x177("strip_tags", $exp['options'])) { $x10d = $x16c('!\<br /\>!isU', " ", $x10d);  $x10d = $x16c('!\<br/\>!isU', " ", $x10d);  $x10d = $x16c('!\<br>!isU', " ", $x10d);  $x10d = $x185($x10d);  } if ($x177("html_entity_decode", $exp['options'])) { $x10d = $x16b($x10d, ENT_QUOTES, 'UTF-8');  } if ($x177("htmlentities", $exp['options'])) { $x10d = $x186(($x10d));  } if ($x15a($x10d) > 900) { $x10d = $x168($x10d, 0, 900 - 3);  $x151 = $x187($x10d, " ");  $x10d = $x168($x10d, 0, $x151) . '...';  } } if ($x10d == null) $x10d = $x113->getAttributeText('manufacturer') . " " . $x113->getName() . " - Part number: " . $x113->getSku() . " - Category : {categories,[1],[1],[1]}";  $x10d = $x16c('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $x10d);  $x10d = $x15d('', '', $x10d);  $value = $x10d;  $exp['options'] = array();  break;  case "{SC:URL}" : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getRequest_path()) { $value = "<link><![CDATA[" . $x7f . $x113->getRequest_path() . "]]></link>";  } else { $value = "<link><![CDATA[" . $x113->getProductUrl() . "]]></link>";  } break;  case "{sc:url}" : (isset($exp['options'][0])) ? $x152 = $exp['options'][0] : $x152 = "";  (isset($exp['options'][1])) ? $x121 = $exp['options'][1] : $x121 = "";  $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getUrlKey()) { $value = $x7f . $x121 . $x113->getRequest_path() . $x152;  } else { $value = $x113->getProductUrl();  } break;  case "{SC:CONDITION}" : $x113 = $this->checkReference($exp['reference'], $product);  ($x170($x113->getName(), "refurbished")) ? $x103 = 'refurbished' : $x103 = 'new';  $value = "<g:condition><![CDATA[" . $x103 . "]]></g:condition>";  break;  case "{sc:condition}" : $x113 = $this->checkReference($exp['reference'], $product);  ($x170($x113->getName(), "refurbished")) ? $x103 = 'refurbished' : $x103 = 'new';  $value = $x103;  break;  default : $x113 = $this->checkReference($exp['reference'], $product);  if ($x177($exp['name'], $xad)) { if ($x177($xae[$exp['name']], array('select', 'multiselect'))) { eval('$x154 =($x113->' . $exp['methodName'] . ");");  $x153 = $x167(',', $x154);  if ($x165($x153) > 1) { $value = array();  foreach ($x153 as $x6b) { if (isset($xb4[$x6b][$x77])) $value[] = $xb4[$x6b][$x77];  else { if (isset($xb4[$x6b][0])) $value[] = $xb4[$x6b][0];  } } } else { if (isset($xb4[$x153[0]][$x77])) { $value = $xb4[$x153[0]][$x77];  } else { if (isset($xb4[$x153[0]][0])) $value = $xb4[$x153[0]][0];  } } } else { eval('$value =($x113->' . $exp['methodName'] . ");");  } } if ($x177(@$xab[$exp['name']], $xab)) { $value = $xab[$exp['name']];  } $value = $x102->_eval($product, $exp, $value);  if ($x188($value) && !$value) continue 3;  break;  } if ($x165($exp['options']) > 0) { foreach ($exp['options'] as $x4b => $option) { if ($x4b >= $this->option) { switch ($exp['options'][$this->option]) { case "substr" : if (isset($exp['options'][$this->option + 1]) && $x15a($value) > $exp['options'][$this->option + 1]) { $value = $x168($value, 0, $exp['options'][$this->option + 1] - 3);  $x151 = $x187($value, " ");  $value = $x168($value, 0, $x151) . $exp['options'][$this->option + 2];  } $this->skipOptions(3);  break;  case "strip_tags" : $x155 = " "; 
 $value = $x16c('!\<br /\>!isU', $x155, $value);  $value = $x16c('!\<br/\>!isU', $x155, $value);  $value = $x16c('!\<br>!isU', $x155, $value);  $value = $x185($value);  $this->skipOptions(1);  break;  case "htmlentities" : $value = $x186(($value));  $this->skipOptions(1);  break;  case "implode" : $value = ($x16e($value)) ? $x15b($exp['options'][$this->option + 1], $value) : $value;  $this->skipOptions(2);  break;  case "float" : $value = $x164($value, $exp['options'][$this->option + 1], '.', '');  $this->skipOptions(2);  break;  case "html_entity_decode" : $value = $x16b($value, ENT_QUOTES, 'UTF-8');  $this->skipOptions(1);  break;  case "inline": $value = $x16c('/(
|
|
|
	)/s', ' ', $value);  $this->skipOptions(1);  break;  case "strtolower": $value = $x189($value, "UTF8");  $this->skipOptions(1);  break;  case "strtoupper": $value = $x18a($value, "UTF8");  $this->skipOptions(1);  break;  case "cleaner": $value = $x16c('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $value);  $value = $x15d('', '', $value);  $this->skipOptions(1);  break;  default : $x101->option = $this->option;  $value = $x101->_eval($product, $exp, $value);  $this->option = $x101->option;  if ($x188($value) && !$value) continue 3;  break;  } } } } if ($x86 > 1 && !$this->_display) $value = $this->x192($value, $x6d, $x6e);  $value = $x15d(array("<", ">", '"', '\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $value);  if ($x16e($value)) $value = $x15b(",", $value);  if ($value != "") $x5f = $x15d($exp['fullpattern'], $value, $x5f);  } foreach ($xa0 as $x156) { $x5f = $x15d($x156['fullpattern'], "", $x5f);  } $x5f = $this->x18b($x5f, $product, $x86);  if ($x86 == 1) { if (!$this->_display) { $x5f = $this->x18f($x5f);  $x5f = $this->x18e($x5f, $x8b, $x8c);  } else { $x5f = $this->x18e($x5f, $x8b, $x8c);  } } elseif ($x86 != 1) { if (!$this->_display) { $x5f = $this->x191($x5f, $x6c, $x6d, $x6e);  $x5f = $this->x18f($x5f);  } else { $x5f = $this->x190(($x5f), false);  } } $x5f = $x15d(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\'), $x5f);  if (!empty($x5f)) { if ($x86 == 1) $x9d.=$x5f . "";  else $x9d.=$x5f . "";  if ($this->_display) { $x9e.=$x9d;  $x9d = '';  } else { if ($xff % Mage::getStoreConfig("datafeedmanager/system/buffer") == 0) { $x4d->streamWrite($x9d);  unset($x9d);  $x9d = '';  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . $x10c . "/" . $this->_counter . " items added", null, $this->getFilename('.log'));  } } if ($this->_limit && $xff >= $this->_limit) break 2;  $xff++;  $this->_inc = $x10c;  $x10c++;  } } } if (!$this->_display) { $x4d->streamWrite($x9d);  if ($x15a($x169($x85)) > 1) $x4d->streamWrite($x85 . "
");  if ($x88 != '') $x4d->streamWrite($this->x18b($x88, null));  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($x10c - 1) . "/" . $this->_counter . " items added", null, $this->getFilename('.log'));  } else { $x9e.=$x9d;  $x9e.=$x85 . "
";  if ($x86 > 1) $x9e.="</table>";  $x9e.= $this->x18b($x88, null) . '<br>';  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($x10c ) . "/" . $this->_counter . " items added", null, $this->getFilename('.log'));  } unset($xd8);  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Footer template added", null, $this->getFilename('.log'));  if ($this->_display && !$this->_debug) { ($x86 == 1 && !Mage::app()->getRequest()->getParam("real_time_preview")) ? $x10d = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x9e) . "</textarea>" : $x10d = ($x9e);  if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
    		<html>
  <head>
     		<title>" . $this->getFeedName() . "</title>
                <link rel='stylesheet' href='" . $x7e . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
               <link rel='stylesheet' href='" . $x7e . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>
         
              <script type='text/javascript' src='" . $x7e . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
                <script type='text/javascript' src='" . $x7e . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script> 
      
              
                </head>
               <body> 
             " . $x10d . "                 <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 $x10d;  } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>";  $x10d = "<pre>" . $x16a($x9e) . "</pre>";  return $x10d;  } else { $x4d->streamClose();  $x4d->mv($this->getFilename(), $this->getFilename(false));  $x4d->rm($this->getFilename());  $this->setFeedUpdatedAt($this->_updated);  $this->save();  if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Temp file closed and moved to " . $this->getFilename(false), null, $this->getFilename('.log'));  Mage::dispatchEvent( 'datafeedmanager_after_generate', array('datafeed' => $this) );  if ($x8f) { try { $this->x195($x90, $x95, $x91, $x92, $x93, $x94, $this->getFilename(false));  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("datafeedmanager")->__("File successfully uploaded on $x91."));  } catch (Exception $x157) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Ftp error : ") . $x157->getMessage());  } } Mage::dispatchEvent( 'datafeedmanager_after_upload', array('datafeed' => $this) );  } Mage::app()->setCurrentStore(0);  return $this;  } public function x195($x90, $x95, $x91, $x92, $x93, $x94, $x158) { $x15a="strlen";  $x15b="implode";  $x15c="preg_split";  $x15d="str_replace";  $x15e="utf8_encode";  $x15f="preg_match_all";  $x160="preg_match";  $x161="rtrim";  $x162="is_null"; 
 $x163="strtotime";  $x164="number_format";  $x165="count";  $x166="is_numeric";  $x167="explode";  $x168="substr";  $x169="trim";  $x16a="htmlentities";  $x16b="html_entity_decode";  $x16c="preg_replace";  $x16d="json_decode";  $x16e="is_array";  $x16f="strstr";  $x170="stristr";  $x171="print_r";  $x172="is_string";  $x173="time";  $x174="ucwords";  $x175="array_push";  $x176="version_compare";  $x177="in_array";  $x178="ceil";  $x179="setType";  $x17a="sprintf";  $x17b="array_pop";  $x17c="ini_get";  $x17d="set_time_limit";  $x17e="abs";  $x17f="array_reverse";  $x180="str_pad";  $x181="floor";  $x182="usort";  $x183="array_shift";  $x184="array_values";  $x185="strip_tags";  $x186="htmlspecialchars";  $x187="strrpos";  $x188="is_bool";  $x189="mb_strtolower";  $x18a="mb_strtoupper";  if ($x90) $x159 = new Varien_Io_Sftp();  else $x159 = new Varien_Io_Ftp();  try { $x159->open( array( 'host' => $x91, 'user' => $x92, 'username' => $x92, 'password' => $x93, 'timeout' => '120', 'path' => $x94, 'passive' => !($x95) ) );  $x4d = new Varien_Io_File();  $x4d->open(array('path' => $this->getPath()));  if (!$x90 && $x159->write($x158, $this->getPath() . $x158)) return true;  elseif ($x90 && $x159->write($x94 . $x158, $x4d->read($x158))) return true;  else return false;  $x159->close();  } catch (Exception $x157) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Ftp upload error : ") . $x157->getMessage());  } } } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myCustomAttributes.php");  include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myCustomOptions.php");  ; 

Did this file decode correctly?

Original Code

<?php error_reporting(E_ERROR);
 class Wyomind_Datafeedmanager_Model_Configurations extends Mage_Core_Model_Abstract { public $_indexPhp = '';  protected $_filePath;  public $_limit = false;  public $_display = false;  public $_rates = false;  public $_chartset = false;  public $_sqlSize = 1500;  static $option = 0;  public $_counter = '0';  public $x42 = 1;  public function cmp($x43, $x44) { $x15a="\x73trl\145\156";  $x15b="i\x6dpl\157\x64\145";  $x15c="\x70\162e\147_\163\160\x6c\151\164";  $x15d="\163t\x72\137\162e\x70\154\x61\x63\x65";  $x15e="\x75\164\146\70_e\x6e\143\x6f\144\x65";  $x15f="\160\x72e\x67_\155\141t\x63h\137al\x6c";  $x160="\160r\x65g_\x6datc\150";  $x161="r\164r\151m";  $x162="\151\163\x5f\156\x75\x6c\154";  $x163="\163\164\x72\164\157t\151\155e";  $x164="n\x75m\142\x65\x72\137\x66\x6f\x72m\141t";  $x165="\x63\157\x75\156\164";  $x166="is_\x6e\165\155\x65\x72ic";  $x167="\145\170p\154\157d\x65";  $x168="su\142str";  $x169="t\162\151m";  $x16a="ht\155\154\145\156\x74\151ties";  $x16b="ht\155\x6c\137en\x74\x69\164\x79_\144\x65\143\x6f\144\x65";  $x16c="\x70\162e\147_\x72\x65\x70lac\145";  $x16d="js\157\156_d\145c\x6f\144\145";  $x16e="\x69\x73_\x61\162ra\171";  $x16f="s\x74\162\163t\162";  $x170="\163t\162\151st\162";  $x171="\160\x72\x69\156\x74\137\x72";  $x172="\x69\x73\137\x73\x74\x72\151n\x67";  $x173="\x74\151m\x65";  $x174="u\143\x77\157\x72ds";  $x175="\141rr\x61\x79\x5f\x70\165\x73h";  $x176="v\145r\x73io\156\x5fc\157\155\x70\141\162e";  $x177="in\137a\162\x72\141\171";  $x178="\x63e\151\x6c";  $x179="s\x65\164\124yp\145";  $x17a="s\160\x72\x69\156\x74f";  $x17b="a\x72\x72\141\x79\x5f\x70\157\x70";  $x17c="ini\x5f\x67\145t";  $x17d="\x73\145t\137\x74\151\155\145\137lim\151t";  $x17e="\141\x62s";  $x17f="ar\x72\x61\x79_\162\x65v\x65\x72se";  $x180="\x73\x74\x72_p\x61\144";  $x181="\x66loo\162";  $x182="u\x73\x6f\162\164";  $x183="a\162\162\x61\171\137s\x68\151\146\164";  $x184="a\x72\x72a\171\137v\x61l\x75\x65\163";  $x185="\x73tr\x69\x70_\164\141gs";  $x186="ht\155\154\163p\x65\x63\x69a\154\x63har\163";  $x187="s\164r\x72p\x6fs";  $x188="\151\x73\x5f\142\157\157\x6c";  $x189="\155\142\x5f\x73\x74\162t\x6flo\x77\x65\x72";  $x18a="mb_\163t\162\x74o\x75\x70pe\162";  if ($x15a($x43) == $x15a($x44)) { return 0;  } return ($x15a($x43) < $x15a($x44)) ? 1 : -1;  } public function cmpArray($x43, $x44) { $x15a="s\x74\x72\154\145\156";  $x15b="\x69\155p\x6co\144\145";  $x15c="p\162\145g_\x73pl\151t";  $x15d="\x73t\162\x5f\x72\145\x70\154\141\x63\145";  $x15e="u\164\x66\70\x5fen\143o\144e";  $x15f="\160\x72\x65\147\x5f\x6d\141tc\x68_al\x6c";  $x160="p\x72\145\147\137\155\x61\164\x63\x68";  $x161="\162\x74\x72\x69\x6d";  $x162="is\137\x6eu\x6c\x6c";  $x163="\x73\164rt\157t\151\155\x65";  $x164="\156\165\155b\x65\x72_\146\157\x72\x6d\141\164";  $x165="\x63\157\x75n\x74";  $x166="\151s\137\156um\145r\151\143";  $x167="\145x\160l\157\x64e";  $x168="\163\165b\x73tr";  $x169="\x74\162\151\155";  $x16a="h\164\x6d\x6ce\x6e\164\151t\151e\163";  $x16b="\x68\164ml\x5fe\156\x74\151ty\x5fd\145\x63\x6fd\145";  $x16c="\160r\x65g_\x72e\160\154\141c\145";  $x16d="\x6a\x73on\x5fd\145\143\x6f\x64\x65";  $x16e="i\x73\x5f\141\x72\x72\x61y";  $x16f="\163\x74r\163\x74r";  $x170="\x73\164\162i\163tr";  $x171="\160\162i\156\164\x5f\x72";  $x172="\151\163\x5f\163\164\x72in\147";  $x173="\x74\151\x6d\145";  $x174="\165\143\167\x6f\162\x64\163";  $x175="\x61r\162a\171_\160\x75\163h";  $x176="\x76\x65\x72\163\151on\137\143\x6fm\x70\x61\x72\145";  $x177="\151n_\x61r\x72\x61\171";  $x178="\143\x65i\154";  $x179="s\x65\x74T\x79\x70e";  $x17a="\163pr\x69\x6e\164\x66";  $x17b="\x61\162\162\141\x79_\x70op";  $x17c="in\x69\137\147\x65\164";  $x17d="\x73\x65\164\x5fti\x6d\145\x5fl\151\155\x69t";  $x17e="\141\x62\x73";  $x17f="\x61\162\x72\x61y_\x72\145v\x65\x72\x73\145";  $x180="\163\x74\162\x5f\x70\x61d";
 $x181="\146l\x6f\157\x72";  $x182="\165\163ort";  $x183="\x61\x72\162\141\x79\x5f\x73\x68i\x66\x74";  $x184="a\162r\141y\137v\x61\154\165\145\163";  $x185="\163tri\160_t\x61gs";  $x186="\150\x74ml\163\x70\145\143\151\141\x6c\x63ha\162\163";  $x187="s\x74\x72\x72\160\157\x73";  $x188="\151\163\137\x62\157ol";  $x189="\x6d\x62\x5f\x73\x74r\164\157\154o\x77\145r";  $x18a="m\x62\137\163trt\x6f\x75\160\160\145r";  $x15a="\x73trl\145\156";  $x15b="i\x6dpl\157\x64\145";  $x15c="\x70\162e\147_\163\160\x6c\151\164";  $x15d="\163t\x72\137\162e\x70\154\x61\x63\x65";  $x15e="\x75\164\146\70_e\x6e\143\x6f\144\x65";  $x15f="\160\x72e\x67_\155\141t\x63h\137al\x6c";  $x160="\160r\x65g_\x6datc\150";  $x161="r\164r\151m";  $x162="\151\163\x5f\156\x75\x6c\154";  $x163="\163\164\x72\164\157t\151\155e";  $x164="n\x75m\142\x65\x72\137\x66\x6f\x72m\141t";  $x165="\x63\157\x75\156\164";  $x166="is_\x6e\165\155\x65\x72ic";  $x167="\145\170p\154\157d\x65";  $x168="su\142str";  $x169="t\162\151m";  $x16a="ht\155\154\145\156\x74\151ties";  $x16b="ht\155\x6c\137en\x74\x69\164\x79_\144\x65\143\x6f\144\x65";  $x16c="\x70\162e\147_\x72\x65\x70lac\145";  $x16d="js\157\156_d\145c\x6f\144\145";  $x16e="\x69\x73_\x61\162ra\171";  $x16f="s\x74\162\163t\162";  $x170="\163t\162\151st\162";  $x171="\160\x72\x69\156\x74\137\x72";  $x172="\x69\x73\137\x73\x74\x72\151n\x67";  $x173="\x74\151m\x65";  $x174="u\143\x77\157\x72ds";  $x175="\141rr\x61\x79\x5f\x70\165\x73h";  $x176="v\145r\x73io\156\x5fc\157\155\x70\141\162e";  $x177="in\137a\162\x72\141\171";  $x178="\x63e\151\x6c";  $x179="s\x65\164\124yp\145";  $x17a="s\160\x72\x69\156\x74f";  $x17b="a\x72\x72\141\x79\x5f\x70\157\x70";  $x17c="ini\x5f\x67\145t";  $x17d="\x73\145t\137\x74\151\155\145\137lim\151t";  $x17e="\141\x62s";  $x17f="ar\x72\x61\x79_\162\x65v\x65\x72se";  $x180="\x73\x74\x72_p\x61\144";  $x181="\x66loo\162";  $x182="u\x73\x6f\162\164";  $x183="a\162\162\x61\171\137s\x68\151\146\164";  $x184="a\x72\x72a\171\137v\x61l\x75\x65\163";  $x185="\x73tr\x69\x70_\164\141gs";  $x186="ht\155\154\163p\x65\x63\x69a\154\x63har\163";  $x187="s\164r\x72p\x6fs";  $x188="\151\x73\x5f\142\157\157\x6c";  $x189="\155\142\x5f\x73\x74\162t\x6flo\x77\x65\x72";  $x18a="mb_\163t\162\x74o\x75\x70pe\162";  if ($x15a($x15b('', $x43)) == $x15a($x15b('', $x44))) { return 0;  } return ($x15a($x15b('', $x43)) < $x15a($x15b('', $x44))) ? -1 : 1;  } public function x18b($myPattern, $product, $x45 = true, $x46 = false) { $x15a="st\x72\154\145\156";  $x15b="impl\157\x64\145";  $x15c="pr\145\x67_\163\160\154\x69\x74";  $x15d="\x73t\162\137\x72e\x70\x6cac\145";  $x15e="\165\164f\70\x5f\x65n\x63\157de";  $x15f="\160r\x65\147_ma\x74c\x68\x5f\141ll";  $x160="preg_\155\x61\x74c\x68";  $x161="\162\x74ri\155";  $x162="i\163\x5fnu\154l";  $x163="\163\164r\164o\x74\x69me";  $x164="num\142\145\x72_\146\x6fr\x6d\x61t";  $x165="cou\156t";  $x166="\151\x73\137\x6eu\x6d\x65\162\x69\143";  $x167="\145\x78\160\154o\x64\x65";  $x168="\x73\165bs\164r";  $x169="\x74r\151m";  $x16a="h\x74\155\154en\x74\x69\164\151\x65\x73";  $x16b="\150t\155\154\x5fe\156\x74i\164y_\144\145\143\157\x64\x65";  $x16c="\160r\145g\137\x72\145p\154\x61\x63e";  $x16d="\x6as\157\156\137\144\145co\x64\145";  $x16e="\151s_a\162\x72\x61\171";  $x16f="s\x74r\163\164\x72";  $x170="\x73\164\162\x69\163\x74\162";  $x171="\160rin\x74\137\162";  $x172="\x69s\x5f\163tr\151\x6e\x67";  $x173="\164\151\x6de";  $x174="\165\143\167\157\162ds";  $x175="a\162\x72\x61y_\x70\165\x73\150";  $x176="\x76\x65\162\163i\x6f\x6e\137\x63\157\x6dp\141r\145";  $x177="\x69\x6e_a\x72r\141\171";  $x178="ce\x69l";  $x179="set\124\x79\x70\x65";  $x17a="\163\x70\x72i\156\164\146";  $x17b="\141\162r\141y\x5fp\157p";  $x17c="i\x6e\151\x5f\x67\x65\164";  $x17d="s\x65\x74_t\151me_l\x69m\151\164";  $x17e="\x61\x62s";  $x17f="\x61\162\162\x61\x79\x5f\x72e\166\145rse";  $x180="\163t\x72\137\160ad";
 $x181="\146lo\157r";  $x182="\165s\157\162t";  $x183="\x61\162\162ay\137\x73h\151f\164";  $x184="\141\162\162a\x79\137\166a\154\x75\x65\163";  $x185="\x73t\x72\151p\137\x74\141gs";  $x186="\x68tmlsp\x65\143\x69al\143\150\x61\x72s";  $x187="s\164\x72\x72p\x6fs";  $x188="\x69s\137b\x6f\x6f\154";  $x189="\x6d\142\137s\x74\x72\164\157lo\x77e\162";  $x18a="\155b\137\163t\x72t\x6f\x75pp\145r";  if ($x46) { $x47 = $x15c("/\x0a\x2f", $myPattern);  $x48 = $x47[0];  $x47[0] = null;  $myPattern = $x15b($x47, "\x0a");  } $myPattern = $x15d('<?', $x15e('__PHP__'), $myPattern);  $myPattern = $x15d('?>', $x15e('/__PHP__'), $myPattern);  $x49 = $x15e('#(__PHP__)(.*?)/\1#s');  $x15f($x49, $myPattern, $x4a);  if (isset($x4a[1])) { foreach ($x4a[0] as $x4b => $x4c) { if ($x45 == 1) { if (@eval($x4a[2][$x4b] . '; ')) $myPattern = $x15d($x4c, eval($x4a[2][$x4b] . '; '), $myPattern);  else $myPattern = $x15d($x4c, '', $myPattern);  } else { if (@eval($this->unx192($x4a[2][$x4b] . '; '))) $myPattern = $x15d($x4c, $this->x192(eval($this->unx192($x4a[2][$x4b]) . '; ')), $myPattern);  else $myPattern = $x15d($x4c, '', $myPattern);  } } } if ($x46) { if ($x45 == 1) return $x48 . "\x0a" . $myPattern;  else return $x48;  } else return $myPattern;  } protected function _construct() { $x15a="\163\x74\x72le\x6e";  $x15b="\x69\x6dp\154\157\144e";  $x15c="\x70\x72eg\137\163pli\164";  $x15d="\x73\164\162\x5f\162\145\160\154\x61c\145";  $x15e="u\164\146\70\x5fe\156\143\x6fd\x65";  $x15f="\x70\x72e\x67\137\x6da\164\x63\x68\137all";  $x160="\x70\162\x65g\137\x6d\x61\x74\143h";  $x161="\162\x74\162i\x6d";  $x162="\x69s\137\x6eu\154l";  $x163="\x73\x74\x72\164\157t\x69\155\145";  $x164="\x6eum\x62\x65r\x5f\146\157\x72ma\164";  $x165="\143ou\156\164";  $x166="\x69\163_nu\x6de\x72i\143";  $x167="\x65\x78\x70\154od\145";  $x168="\x73\165b\163\x74r";  $x169="\x74r\x69m";  $x16a="ht\155\x6cen\x74i\164\151es";  $x16b="\x68\x74m\154\137\x65\x6e\x74i\x74y\137de\x63\x6f\144\145";  $x16c="p\x72\x65\147\x5f\x72\145\160l\x61c\145";  $x16d="jso\156\x5f\x64e\143\157\144e";  $x16e="\x69s\137\x61\x72r\141\171";  $x16f="\163\164r\x73tr";  $x170="\163\164r\151\x73\164\162";  $x171="\x70\x72i\156\164_\x72";  $x172="\x69\163_\x73\164\162\x69\156\x67";  $x173="t\x69m\145";  $x174="uc\167\157\162d\163";  $x175="arr\141y\x5f\x70\165s\x68";  $x176="\166e\162\x73ion\x5f\143\x6f\x6d\160\x61\162\x65";  $x177="\x69n_\141\162\x72\141\171";  $x178="\x63e\x69\x6c";  $x179="\x73et\x54\x79\160e";  $x17a="\163\160r\x69n\x74\146";  $x17b="a\162\162\x61y\137\x70op";  $x17c="\151\x6e\151_\x67\x65\x74";  $x17d="\163\x65t\137\164\x69m\x65\137\154im\151\x74";  $x17e="\x61\x62s";  $x17f="a\162\162\x61\171\137\x72\x65\166\145r\163e";  $x180="\x73\x74\x72\x5f\160\141\x64";  $x181="\146l\157or";  $x182="\165\x73o\162\164";  $x183="\141\162\x72\x61y\137\163h\151f\164";  $x184="\141\162\162a\171\137va\x6cu\x65s";  $x185="\163\x74\162i\160\137\164\x61gs";  $x186="\x68\x74\155ls\160\145c\x69a\x6c\143har\163";  $x187="st\162rpo\x73";  $x188="\x69s_b\x6fol";  $x189="\x6d\x62_st\162\x74\x6f\x6c\x6f\x77\145\162";  $x18a="m\x62\137\163\x74\162t\x6f\x75p\x70\145\162";  $this->_sqlSize = Mage::getStoreConfig("d\x61\164\x61f\145e\144\x6d\141\156a\x67er/syst\x65\x6d/sq\154\x73i\172\x65");  $this->_init('datafeedmanager/configurations');  } protected function _beforeSave() { $x15a="\x73\x74r\x6cen";  $x15b="\x69\155\160\x6c\x6fd\x65";  $x15c="\160r\145\x67\137\x73\160\x6ci\164";  $x15d="\163\164\162\137\x72epla\x63\145";  $x15e="\x75t\146\70\x5f\145\x6e\143o\x64e";  $x15f="\160r\x65\147\137\155\x61\164\x63\150\x5fa\x6c\154";  $x160="p\x72\145g_m\141\x74\143\x68";  $x161="\162\x74\x72im";  $x162="\x69\163\x5f\x6eull";  $x163="\x73t\162\164\157\164\x69\155\x65";  $x164="\x6eumb\145\162\x5ff\x6f\162\x6d\x61t";  $x165="cou\156\x74";  $x166="\x69\x73_\x6e\x75m\145\162\x69\x63";  $x167="\145x\160\154\157\x64\145";  $x168="\x73\165b\x73\164\x72";  $x169="\x74\162im";  $x16a="\150t\155\154\x65\156\164\x69\164\151e\x73";  $x16b="html\x5f\145\156\164it\x79\137d\145co\x64\145";  $x16c="pr\145\x67\137\162\145\x70l\x61\143\145";  $x16d="\152\x73\157\x6e_d\145\143\x6f\144\x65";
 $x16e="\151s_arr\x61\x79";  $x16f="\163\x74\162s\164\x72";  $x170="\163\164ri\x73\164\x72";  $x171="\x70\x72\151\x6et_\162";  $x172="\x69\163_\163\164\162\151\x6e\x67";  $x173="t\151me";  $x174="\x75\143\167\x6f\x72d\x73";  $x175="a\x72\162a\x79\137\x70\165\163\x68";  $x176="\x76ers\x69\x6f\156_\x63\157\155\160\141\162\145";  $x177="in_\x61rray";  $x178="\x63e\x69l";  $x179="se\164\x54y\x70e";  $x17a="\163\160\x72i\x6e\x74\146";  $x17b="arr\141\x79_\x70op";  $x17c="\x69ni\x5fg\145\x74";  $x17d="s\145t\x5f\164\151\155\145\x5fli\x6dit";  $x17e="ab\163";  $x17f="\141\x72r\141\171_\162\145\166\x65\162\163\145";  $x180="s\164r\137\160\141\x64";  $x181="f\x6c\157or";  $x182="uso\162\164";  $x183="\x61\x72r\x61y\x5f\x73\x68i\146\164";  $x184="\141rr\141\x79_\x76a\x6c\x75e\x73";  $x185="s\164\x72i\x70_\x74a\x67\163";  $x186="\150\x74\x6dl\x73\160eci\x61lc\150\x61\162\163";  $x187="\x73trr\x70o\163";  $x188="\x69\163_bo\157l";  $x189="\x6d\x62\x5f\163t\162t\157\x6cow\x65\162";  $x18a="\155\x62\x5fs\x74rt\x6fuppe\x72";  $x4d = new Varien_Io_File();  $x4e = $x4d->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath());  $x4f = Mage::getModel('datafeedmanager/configurations')->getCollection();  foreach ($x4f as $x50) { if ($x50->getFeedName() == $this->getFeedName() && $this->getId() != $x50->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.'));  } } if (!$x4d->allowedPath($x4e, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path'));  } if (!$x4d->fileExists($x4e, false)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please create the specified folder "%s" before saving the data feed configuration.', Mage::helper('core')->htmlEscape($this->getFeedPath())));  } if (!$x4d->isWriteable($x4e)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath()));  } if (!$x160('#^[a-zA-Z0-9_\.]+$#', $this->getFeedName())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.'));  } $this->setFeedPath($x161($x15d($x15d('\\', '/', Mage::getBaseDir()), '', $x4e), '/') . '/');  return parent::_beforeSave();  } protected function getPath() { $x15a="\163t\x72\x6ce\x6e";  $x15b="\151mp\x6c\x6f\144e";  $x15c="\160\162eg\x5f\x73p\x6c\x69\x74";  $x15d="s\x74\162_r\x65p\x6ca\143\x65";  $x15e="u\x74\146\70\137e\x6e\143\x6fd\145";  $x15f="p\x72\145g\x5f\155\141\x74ch\x5fa\x6c\x6c";  $x160="p\162eg\137\x6da\x74\x63\x68";  $x161="r\x74\162\x69\155";  $x162="\x69s\137\156\x75\x6c\154";  $x163="strto\x74\151\x6d\x65";  $x164="\156\165m\x62\x65\x72\x5f\146\157\162\x6dat";  $x165="\143\x6f\x75\x6et";  $x166="\151\163\x5fn\165\x6de\x72i\x63";  $x167="ex\x70\154\157\x64\145";  $x168="\163\x75bs\164\x72";  $x169="t\x72\x69\x6d";  $x16a="\150\x74\155\154\145\x6e\164\151t\151\145\x73";  $x16b="\150\164m\154\137\x65nti\164y\137\144\x65c\157\144e";  $x16c="pre\147\x5f\162\145pl\x61\143\x65";  $x16d="\x6as\157\x6e\x5f\x64\145\x63o\144e";  $x16e="i\x73\x5f\x61rr\141y";  $x16f="\163\164\162st\x72";  $x170="\163\164ri\x73\x74\x72";  $x171="pr\x69\x6e\x74_\x72";  $x172="\x69\x73\x5fs\x74\x72i\x6e\x67";  $x173="\164im\x65";  $x174="\165\143w\157\x72\144\163";  $x175="a\162\162a\171\x5f\x70\165\163h";  $x176="v\145\x72s\151\157\x6e\137c\x6fm\160are";  $x177="\151n\137a\x72r\141y";  $x178="\x63\145\x69\154";  $x179="\163\145\x74\124\171\160e";  $x17a="\x73p\x72\151\x6etf";  $x17b="\x61\162\162\x61\171\x5fpop";  $x17c="in\151\137\x67et";  $x17d="s\145\164_ti\155\145\x5f\x6ci\155\151\164";  $x17e="\x61b\x73";  $x17f="ar\162\x61\171\137r\145\x76\145\x72\x73\x65";  $x180="s\x74\162\137p\141\x64";  $x181="\x66l\x6f\157\162";  $x182="u\x73\x6f\x72t";  $x183="\141r\162ay_\163h\151f\x74";  $x184="\141\x72\162\141\x79_va\x6cu\x65\x73";  $x185="\x73\164r\x69\160\x5f\x74\x61\147s";  $x186="h\164mls\160\x65\143ia\154\x63\x68ars";  $x187="\163\x74rr\160\x6f\x73";  $x188="\x69\x73_\142\157\x6fl";  $x189="\x6db\x5f\x73\164\x72\164ol\x6f\167\145\x72";  $x18a="\155\x62\x5f\163t\162\x74\157u\160p\x65r";  if ($x162($this->_filePath)) { $this->_filePath = $x15d('//', '/', Mage::getBaseDir() . $this->getFeedPath());  } return $this->_filePath;  } protected function getFilename($x51 = '.temp') { $x15a="\163t\x72l\145\156";  $x15b="\151m\160\x6c\x6f\x64\x65";  $x15c="p\162\145\147_\x73\160l\151\164";  $x15d="\163tr\137\x72epl\141\143e";  $x15e="\x75t\x66\70_en\x63od\x65";  $x15f="p\x72\145\x67\x5f\155\141t\x63\x68\137a\x6cl";  $x160="preg\x5f\x6da\164\x63\x68";  $x161="\x72tr\x69\155";  $x162="i\x73\137\x6eu\154\x6c";  $x163="\x73t\x72\x74\x6f\164\x69\x6d\145";
 $x164="\x6eu\x6db\x65\x72_\146\x6fr\155\x61t";  $x165="\143o\165n\x74";  $x166="\151\163\137\156\165\155\145r\151\x63";  $x167="\x65\170\160\x6c\157d\x65";  $x168="\163ubs\x74r";  $x169="\x74\x72\151m";  $x16a="ht\155\x6c\145n\164\x69\164ie\163";  $x16b="\150t\155l\137e\x6e\x74\x69t\x79\x5f\144\x65co\144\x65";  $x16c="p\162\x65\x67\137r\x65\x70la\x63\145";  $x16d="\152\163\157n\137dec\x6fd\145";  $x16e="\x69s\x5f\141rr\x61\x79";  $x16f="\163\164\162s\x74\x72";  $x170="s\x74ri\x73\164\x72";  $x171="pr\x69\x6e\164_r";  $x172="is\x5fst\x72\151\156\x67";  $x173="\164i\155\x65";  $x174="\x75\143\x77\x6f\x72\144\x73";  $x175="ar\162\x61\171\x5f\x70\165sh";  $x176="\166\145rs\151\157\x6e_\x63\x6f\155\x70a\162\x65";  $x177="\x69n\137\141\162r\141\171";  $x178="\x63\145i\154";  $x179="\163\145\164\x54\x79\x70\x65";  $x17a="sp\162int\x66";  $x17b="\x61rra\x79_p\157\x70";  $x17c="\151\x6ei_\147\x65t";  $x17d="\x73\145\164_t\151me\x5f\154\x69\x6d\x69\x74";  $x17e="\x61\142s";  $x17f="a\x72ra\x79\137\x72\145ve\x72\163e";  $x180="\x73t\x72\137\160ad";  $x181="\146l\x6f\x6f\x72";  $x182="\x75\x73\x6f\162t";  $x183="a\x72\x72a\x79\x5f\163\x68i\x66\x74";  $x184="\x61rr\x61\171\x5f\166a\x6c\x75\x65s";  $x185="\163\x74r\151\160_t\141g\x73";  $x186="\150t\155\154\x73\160\145\143\151\141\x6c\143\150\141\162s";  $x187="\x73\164\x72\162\160\157s";  $x188="\x69s\137\x62ool";  $x189="\x6d\x62\137\163tr\x74\x6f\x6co\167\x65\x72";  $x18a="\x6d\142_st\162t\157u\x70\160\x65\x72";  $x52 = array(1 => 'xml', 2 => 'txt', 3 => 'csv', 4 => 'tsv');  if ($this->_date == false) { $this->_updated = Mage::getSingleton('core/date')->gmtDate("Y\55\x6d\x2d\144 H\x3a\151\x3a\163", $this->_timestamp);  $this->_date = Mage::getSingleton('core/date')->date($this->getFeedDateformat(), $x163($this->_updated));  } $x53 = $x15d('{f}', $this->getFeedName(), $this->_date);  $x54 = $x53 . "\x2e" . $x52[$this->getFeedType()] . $x51;  if (!$x51) $this->_filename = $x54;  return $x54;  } public function getPreparedFilename() { $x15a="s\x74\x72l\x65\x6e";  $x15b="\x69mpl\157d\x65";  $x15c="\160reg_s\x70li\x74";  $x15d="\x73tr\x5fr\x65\x70\x6c\x61\143\x65";  $x15e="u\164\x66\70_\145\x6ecod\x65";  $x15f="\160r\x65\147\137\x6da\164\x63h\137a\154l";  $x160="\160r\x65\147_\155at\x63\x68";  $x161="r\164\x72i\155";  $x162="\x69\x73_n\165\x6c\154";  $x163="\163tr\164o\164\x69\155\x65";  $x164="n\165\x6d\142\145\162\x5f\x66o\x72\x6d\x61\164";  $x165="\x63\157\165\x6e\164";  $x166="\x69\163_\156\x75m\145ric";  $x167="\x65\x78pl\157\x64\145";  $x168="\x73ub\163\164r";  $x169="\164\162\x69m";  $x16a="\x68t\x6d\154en\164\151t\x69e\163";  $x16b="htm\x6c_\145nt\x69ty_\x64\x65code";  $x16c="\160re\147\137\162\x65p\x6c\x61\x63\x65";  $x16d="jso\156_\144\x65c\157\x64\145";  $x16e="\x69s_\x61\162\162a\171";  $x16f="\x73t\x72s\164r";  $x170="\x73\x74r\151\x73t\x72";  $x171="\x70r\151\x6e\x74_r";  $x172="is\x5fstr\x69\156\147";  $x173="\x74i\155e";  $x174="\x75\143\x77o\162\144s";  $x175="a\162r\x61y\137pus\150";  $x176="\166\145\162\163\151\x6f\156\137\143o\155\160\141\x72\145";  $x177="\x69\156\137ar\x72a\171";  $x178="\x63e\x69\154";  $x179="\163e\164\x54\x79\x70\145";  $x17a="s\160\162\x69n\x74\x66";  $x17b="\x61\162r\141\x79_\x70\157\160";  $x17c="in\151\137g\x65\164";  $x17d="\163e\164\x5ft\151\x6d\145\137\154\x69\155\151\x74";  $x17e="abs";  $x17f="\141\162\x72\x61\171_r\145\166\x65r\163\145";  $x180="\163\x74\x72_\x70\x61\144";  $x181="\x66\154oo\162";  $x182="\x75\163o\x72\x74";  $x183="a\162\162ay\x5f\163h\151\x66t";  $x184="\141r\x72ay\137\166al\x75\x65\x73";  $x185="s\x74r\x69\160\137\x74a\x67\163";  $x186="\x68\x74\155\154\163\x70eci\x61\154\x63\x68\x61r\163";  $x187="\x73\164\162\162p\157s";  $x188="\151\163\x5f\x62\157o\154";  $x189="\x6d\x62\137\163\164r\164\157\154\157w\x65r";  $x18a="m\142\137\x73t\x72t\x6fu\x70p\145r";  return $this->getPath() . $this->getFilename();  } public function x18c($x55, $x56) { $x15a="\x73\164\162\x6ce\156";  $x15b="\x69\x6d\x70l\x6f\144\145";  $x15c="p\x72\x65g_s\x70\x6c\x69t";  $x15d="\163\x74\x72\x5f\x72\x65\160\x6c\141\x63\145";
 $x15e="\165tf\70_\x65nc\x6f\144\x65";  $x15f="p\162\x65g\x5fm\x61\164\x63h\x5f\x61\x6c\x6c";  $x160="\160\x72e\147\137\x6da\x74\x63h";  $x161="r\x74r\151\155";  $x162="\151s\137nu\x6c\x6c";  $x163="s\x74rt\x6ft\x69\155\x65";  $x164="\156\165\x6db\x65\x72_\146\x6fr\x6d\141t";  $x165="co\x75\156\164";  $x166="i\163\137\x6e\x75me\x72\x69c";  $x167="\x65\170p\154\x6fd\145";  $x168="\163\x75\142s\x74\162";  $x169="\x74\162\x69\x6d";  $x16a="\150\x74ml\x65\x6e\164\151\164\151\145\163";  $x16b="\150\x74m\x6c\x5f\145\156\x74\x69t\x79_d\x65\x63od\145";  $x16c="\x70\x72eg_\x72e\160\154\141c\x65";  $x16d="\x6a\163\x6fn\137\144\145c\157\144e";  $x16e="\151\163\137ar\162a\x79";  $x16f="\163t\x72\x73t\x72";  $x170="\x73\x74r\151\x73t\162";  $x171="\160\x72\151n\164_r";  $x172="\x69\163\137str\151\156\x67";  $x173="\x74i\155\x65";  $x174="uc\x77\x6fr\144\x73";  $x175="\x61\162\x72\141y\x5f\x70ush";  $x176="\166e\x72\x73i\x6fn\x5f\143\x6f\155\160ar\x65";  $x177="\151n\137\x61\x72\162\x61y";  $x178="\143e\151l";  $x179="s\145tType";  $x17a="\x73\160\x72in\164\x66";  $x17b="\x61\x72r\x61\x79\x5fpo\x70";  $x17c="\x69\156\151_\x67\145\x74";  $x17d="s\145t_\x74\151\155\x65_l\x69\155it";  $x17e="abs";  $x17f="\141\x72\x72ay\x5fre\166\145\162\163\x65";  $x180="s\164\162\137\x70\141\x64";  $x181="floor";  $x182="\165\163o\x72\164";  $x183="\141r\162\141\171\x5f\163\150\x69\x66t";  $x184="\141\162r\141\x79\137\x76\141l\x75\x65\163";  $x185="\x73t\162i\x70\x5f\x74\141gs";  $x186="h\164\155\x6csp\x65\x63ialc\150a\x72\163";  $x187="\163\x74r\162p\x6f\163";  $x188="\x69s_\142o\x6f\x6c";  $x189="m\x62\137\x73\164\162t\157\154o\167\145\162";  $x18a="m\x62_\x73tr\x74\x6fu\x70p\x65r";  $x57 = $this->_currencies;  if (isset($x57[$x56])) { return $x55 * $x57[$x56];  } else { return $x55;  } } public function x18d($x55, $x58, $x59, $x5a = false) { $x15a="\163\164r\154e\156";  $x15b="i\155p\x6code";  $x15c="\160\162\x65g\x5fs\x70l\x69t";  $x15d="s\x74\x72\137\x72e\160\x6c\x61\x63e";  $x15e="ut\146\70_\x65\x6ec\x6fd\145";  $x15f="p\162\145\147\137\155a\164\143\150\x5f\141\154\154";  $x160="p\162\x65g\137\155a\164\x63\x68";  $x161="\x72\164\162im";  $x162="\151\163\137\x6e\x75l\154";  $x163="\163tr\x74\x6f\x74ime";  $x164="n\x75m\142e\162\137\x66\157\162\x6d\x61\x74";  $x165="\x63\x6fun\164";  $x166="is\137\x6e\165\x6d\x65r\151\143";  $x167="\145\x78\x70\x6c\157\x64e";  $x168="\x73\165\x62\163\x74r";  $x169="\164\162\x69m";  $x16a="\150t\155l\145\156\164it\151\x65\163";  $x16b="h\164\x6d\x6c\137\145\156\164\151t\x79\137\x64\x65\143o\144\145";  $x16c="\160r\145\x67_r\145\x70l\141ce";  $x16d="\x6as\x6f\156_\144e\143\x6f\144\x65";  $x16e="\151s\x5f\141\162r\x61y";  $x16f="\163\x74\x72st\x72";  $x170="\163\x74ris\164\x72";  $x171="pr\151\156\164\137r";  $x172="is\x5f\x73t\x72i\x6e\x67";  $x173="t\x69me";  $x174="\165\143wo\x72\x64\163";  $x175="\x61\x72\x72\x61y\x5fp\165\163\150";  $x176="\166\x65\162\163\x69\x6f\156_\143ompar\x65";  $x177="\151n_\141r\162\141\x79";  $x178="c\145il";  $x179="\163\x65\164T\171\160\x65";  $x17a="sp\x72\151nt\146";  $x17b="a\162\x72\141\171\137\x70\157p";  $x17c="\x69\x6e\x69\x5fget";  $x17d="s\x65\x74\x5f\x74im\x65_l\151\155i\x74";  $x17e="a\142s";  $x17f="a\x72\x72\141\171_\162\145ve\162s\145";  $x180="\163tr_pad";  $x181="fl\157o\162";  $x182="u\163\157r\x74";  $x183="\x61r\x72\141\x79\137\163hi\146\164";  $x184="\141\162r\x61\x79_v\x61\154\165\x65\163";  $x185="\x73tr\x69\x70\137t\x61gs";  $x186="\x68\164\x6dl\x73pec\x69\x61\x6c\x63\x68\141r\x73";  $x187="\163\164r\162po\x73";  $x188="i\x73\137\142\x6f\157\154";  $x189="mb\x5fs\164\162\164\x6f\x6co\167\145r";  $x18a="mb_s\x74\x72to\x75p\x70\x65r";  $x5b = $this->_rates;  $x55 = $x164($x55, 2, '.', '');  if ($x5a === false) { if (!$x58 && isset($x5b[$x59])) { if ($x165($x5b[$x59]) > 1) { return $x55;
 } else { return $x55 * ($x5b[$x59][0]['rate'] / 100 + 1);  } } else { return $x55;  } } elseif ($x5a === "0") { if ($x58 && isset($x5b[$x59])) { if ($x165($x5b[$x59]) > 1) { return $x55;  } else { return 100 * $x55 / (100 + ($x5b[$x59][0]['rate']));  } } else { return $x55;  } } else { if ($x166($x5a)) { if ($x59 != 0) { return $x55 * ($x5a / 100 + 1);  } elseif ($x59 == 0) { return $x55;  } } else { $x5a = $x167('/', $x5a);  $x5c = 0;  $x5d = false;  if ($x168($x5a[0], 0, 1) == "-") { $x5a[0] = $x168($x5a[0], 1);  $x5d = true;  } if ($x5b[$x59]) { foreach ($x5b[$x59] as $x5e) { if ($x5e['country'] == $x5a[0]) { if (!isset($x5a[1]) || $x5e['code'] == $x5a[1]) { $x5c = $x5e['rate'];  break;  } } } if (!$x5d) return $x55 * ($x5c / 100 + 1);  else { return 100 * $x55 / (100 + ($x5c));  } } else { return $x55;  } } } } public function x18e($x5f, $x60 = true, $x61 = true) { $x15a="\163trl\x65\156";  $x15b="i\155\160\x6co\x64\x65";  $x15c="\x70re\147_\163\x70\154\x69\164";  $x15d="\163t\x72\137r\x65p\154a\143\145";  $x15e="\165\164f\70\x5f\x65\156\143\x6f\144e";  $x15f="\x70\162\145g\x5fmat\x63\150\137\x61ll";  $x160="p\x72\145\147_\x6da\164\143\150";  $x161="\162t\x72\x69m";  $x162="is\x5f\x6e\165\x6c\154";  $x163="\x73\x74\162\164\157t\151\x6de";  $x164="\156\x75\155be\162\137\146o\x72\x6da\x74";  $x165="\x63ou\x6e\x74";  $x166="\x69\163\x5fnu\x6d\x65\x72ic";  $x167="ex\160\154\x6fd\x65";  $x168="\x73\x75\142\163\x74r";  $x169="\164\x72\x69\155";  $x16a="ht\155l\x65\x6e\x74\x69\x74\x69\x65\163";  $x16b="h\x74\x6dl\137\145n\164i\x74y\137\144\x65\x63o\x64\x65";  $x16c="\160\x72\x65\x67_\162\x65p\154\141\x63\145";  $x16d="j\x73\157\x6e_\x64eco\144e";  $x16e="is\x5fa\x72\x72a\x79";  $x16f="\163\x74\162str";  $x170="st\x72\151\x73t\x72";  $x171="\x70\162\x69\x6et_r";  $x172="\151\x73_\x73\x74r\x69\x6e\x67";  $x173="\x74\151m\x65";  $x174="\x75\143wo\162d\x73";  $x175="a\x72ra\x79\x5fp\165s\150";  $x176="\166\145r\x73i\x6f\x6e_\143\x6fmpare";  $x177="\x69n_\141rr\x61y";  $x178="\143\x65\x69l";  $x179="s\145t\124y\x70\145";  $x17a="\x73\x70\162\x69n\x74\x66";  $x17b="\141r\x72\141y\137\x70o\x70";  $x17c="\x69\156\151_\x67\145\x74";  $x17d="\x73\145t_ti\x6d\145_\x6c\x69mi\x74";  $x17e="\x61\142\x73";  $x17f="\141r\x72a\x79_r\145\166\x65\162\163\145";  $x180="\163\164r\x5f\160a\x64";  $x181="\146\154o\157\162";  $x182="u\163ort";  $x183="a\x72ra\x79\x5fsh\151\x66\x74";  $x184="a\162\162\141\x79\137v\141\154u\x65\x73";  $x185="\163\164r\x69p\137\x74a\147\163";  $x186="h\164\155l\x73\160\145\x63\151\x61l\x63\150\x61r\x73";  $x187="s\x74rr\x70\157\x73";  $x188="i\163\x5f\142o\x6fl";  $x189="\x6db\x5f\163\164\162\x74o\154\157\x77\145\162";  $x18a="mb\x5f\x73\164\162\x74\x6fu\160\160e\x72";  $x49 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';  $x15f($x49, $x5f, $x4a);  foreach ($x4a[1] as $x4b => $value) { $x62 = $x169($x4a[2][$x4b]);  if (empty($x62) && !$x166($x62) && $x61) $x5f = $x15d($x4a[0][$x4b], '', $x5f);  else { if ($x60) $x5f = $x15d($x4a[0][$x4b], ($x4a[1][$x4b]) . '<![CDATA[' . $x62 . ']]>' . ($x4a[3][$x4b]), $x5f);  else { $x5f = $x15d($x4a[0][$x4b], ($x4a[1][$x4b]) . $x62 . ($x4a[3][$x4b]), $x5f);  } } } $x43 = $x15c("/\x0a/s", $x5f);  $x63 = '';  foreach ($x43 as $x64) { ($x15a($x169($x64)) > 0) ? $x63.=$x64 . "\x0a" : false;  } $x5f = $x63;  return $x5f;  } public function x18f($x65) { $x15a="s\x74rle\x6e";  $x15b="\151\x6dp\x6c\157d\x65";  $x15c="\x70\x72\x65\147_\x73\160\x6c\x69t";  $x15d="\163\x74\x72\137re\x70l\141\x63e";  $x15e="\165tf\70\x5fe\156\x63\x6f\x64\145";  $x15f="\x70\162eg\x5fm\x61\164\x63\x68\x5f\x61\154\154";  $x160="p\x72\145g\137\155\141\x74\143\x68";  $x161="\x72\164\162\151m";  $x162="i\x73\x5f\x6eul\154";  $x163="s\x74\x72t\157\x74im\145";  $x164="nu\x6d\142\145\162\x5ff\x6f\x72m\141t";  $x165="\143\x6f\165\156\x74";  $x166="i\x73\x5f\156u\155\145ri\143";  $x167="\145x\x70\154o\x64\x65";  $x168="\163u\x62\x73t\162";  $x169="t\x72\x69\155";  $x16a="\150tm\154\145\x6et\x69t\x69\145\163";  $x16b="h\x74\x6d\154\x5fe\x6e\164i\164\x79\x5fd\x65\143o\144\145";  $x16c="\x70r\145g\137re\x70la\x63\145";  $x16d="\152\x73\157n_d\145c\157\144\145";  $x16e="i\163\137ar\x72\x61\171";  $x16f="\x73\x74r\x73\164r";  $x170="\x73tris\x74\162";
 $x171="\x70r\x69nt_r";  $x172="\x69\x73\137\x73\164ri\156g";  $x173="\x74i\x6d\145";  $x174="u\x63\x77\157\x72d\x73";  $x175="\x61r\162\141y\x5fp\165\x73\150";  $x176="\x76\145\162s\151\x6f\156\137\143\x6f\155\160\x61\x72\x65";  $x177="\151\x6e\137ar\162ay";  $x178="\x63\145\151\x6c";  $x179="\x73\x65\164\124\171pe";  $x17a="\x73\x70r\151\156\164f";  $x17b="\x61r\x72\x61y\137\x70\x6f\160";  $x17c="\x69n\x69_\x67\145\164";  $x17d="\x73et\137\x74\151\x6d\x65\137\154\x69\x6di\164";  $x17e="\x61b\163";  $x17f="\x61r\x72a\x79\137\x72\145\166\145\162\163\x65";  $x180="str_\160\x61\x64";  $x181="f\x6co\x6f\162";  $x182="u\x73\x6frt";  $x183="\141\x72ra\x79\x5f\x73\150\151ft";  $x184="a\162ra\x79_\166alu\145\x73";  $x185="\163t\162\x69p\137\x74a\x67\163";  $x186="\150t\155\154\x73\x70\x65\x63ia\154c\150\141\162\x73";  $x187="\x73\164rr\160\x6f\163";  $x188="i\163\137\142o\x6f\154";  $x189="\x6d\142\137s\x74\162t\x6f\154o\x77\x65r";  $x18a="m\142\137str\164o\x75p\160\x65\162";  if ($this->_feed_encoding != 'UTF-8') { $x65 = $x16a($x65, ENT_NOQUOTES, 'UTF-8');  $x65 = $x16b($x65, ENT_NOQUOTES, $this->_feed_encoding);  } return $x65;  } public function x190($x49, $x46 = false) { $x15a="s\164\x72l\x65\156";  $x15b="\x69\155\160\154\x6f\144e";  $x15c="p\x72eg\x5f\163\160\154\151\164";  $x15d="\x73\x74\x72\x5fr\145\x70\x6c\x61c\145";  $x15e="utf\70\x5f\x65\x6ec\157d\145";  $x15f="\x70r\145g_m\141\164\x63h\137\141\x6cl";  $x160="\x70\162e\147_m\x61t\143h";  $x161="\x72t\x72i\x6d";  $x162="i\163\137nu\154l";  $x163="st\x72tot\151m\145";  $x164="n\165\155\x62\x65\x72\x5f\x66o\x72\x6d\141\164";  $x165="\x63o\165\156\164";  $x166="\x69\163_\x6e\x75m\x65\x72\151c";  $x167="\145\x78\x70\x6cod\145";  $x168="sub\x73\164r";  $x169="\164\x72\151\155";  $x16a="ht\x6d\x6ce\156\x74\x69\164i\x65\163";  $x16b="\150\x74ml\137e\156\x74\x69\164\x79_\144\145co\144\x65";  $x16c="\160\162\x65\147_\x72\x65\x70\x6c\141\x63\145";  $x16d="\x6a\163\157n\137\x64ec\x6f\x64\145";  $x16e="\151\x73\x5fa\x72r\141\171";  $x16f="\163\x74\162\x73t\162";  $x170="\x73\x74\162\151\x73t\162";  $x171="\160\162\151\x6e\164\137\x72";  $x172="i\163\137\x73t\162\x69n\147";  $x173="t\x69\x6de";  $x174="\165\x63w\x6f\x72ds";  $x175="a\x72r\141y\x5f\x70us\150";  $x176="ver\163\x69\157n\x5f\143\157\x6d\160\141\x72\x65";  $x177="\151n\137ar\x72\141\x79";  $x178="\x63\x65i\154";  $x179="\x73\145\x74\124\171p\145";  $x17a="sp\x72i\x6e\164\x66";  $x17b="\x61\x72r\x61\171\137\x70o\x70";  $x17c="\x69\x6ei\x5f\x67e\x74";  $x17d="\163et_\164\x69me_l\x69m\x69\164";  $x17e="a\142s";  $x17f="ar\x72\x61y\x5f\x72\x65\x76e\162\163e";  $x180="\163\x74\162\x5fp\x61\144";  $x181="fl\157\157\x72";  $x182="\x75\163\157rt";  $x183="\141\162\162\141\171\137\163hift";  $x184="\141\x72\162a\x79\x5f\x76\x61\x6c\165e\x73";  $x185="s\164\x72ip_ta\x67\163";  $x186="\150t\x6d\x6c\163\x70e\x63i\x61\154\x63\x68a\162\163";  $x187="s\164\x72rp\x6f\x73";  $x188="\x69\x73\x5fbo\x6f\x6c";  $x189="\155\142_s\164\x72t\157\x6c\157wer";  $x18a="\x6d\142\x5f\163\x74rtoup\x70er";  $x49 = $x16c('/(\r\n|\n|\r|\r\n)/s', '', $x49);  $x66 = 'padding:2px;  border:1px solid grey;  text-align:center; padding:5px;  min-width:10px; min-height:10px; ';  $x67 = $x16d($x49);  if (!$x16e($x67)) $x68[] = $x67;  else $x68 = $x67;  $x69 = null;  foreach ($x68 as $x67) { $x6a = 0;  if (isset($x67->header)) $x67 = $x67->header;  else { $x67 = $x67->product;  } if ($x46) $x69 = "<\164\162\40s\164\x79\154\145='\x62\x61c\x6bg\x72\157\x75\x6e\x64\55\143\x6fl\157r:\x67\162ey\x3b\x20\x63ol\157\162\72\167\x68\151t\x65; \40\x66\x6f\156\x74\x2dw\145\151g\x68\x74:\x62o\154\x64'>";  else { $x69 .= "\74t\162>";  } foreach ($x67 as $x4b => $value) { $value = (($value));  if ($x6a) $x6a++;  if ($x16f($value, "\x2fb\162\145\141\x6b\154\151\156e\57")) { $value = $x15d("\x2fb\162\145\141\x6b\154\151\156e\57", "\x3c\57t\x72\x3e\x3c\x74\162\x3e", $value);  $x6a = 1;
 } ($value != null) ? $x6b = ($value) : $x6b = "\74\163\160a\x6e \163\164\171\x6c\x65\75\x27fo\x6et-s\151z\145\72\61\x30\160x\x3bcol\x6f\162\72g\x72\145\171'\x3e(\x65\x6d\160\164y\51\74/\x73\x70\x61\x6e>";  $x69.="<\x74\x64 \163\x74y\154\x65\x3d'" . $x66 . "'\76" . $x6b . "\74\57\x74\144\x3e";  } $x69.="\x3c/t\162>";  } return $x69;  } public function x191($x49, $x6c, $x6d, $x6e) { $x15a="\x73\164r\x6c\145\x6e";  $x15b="i\155\x70\154\157d\x65";  $x15c="p\162e\147\x5f\x73p\154i\x74";  $x15d="\163\164\x72\x5f\x72\x65p\x6c\141\143e";  $x15e="u\x74\x66\70_\145\x6e\x63\x6fd\x65";  $x15f="\x70\162\x65g\137\x6da\x74ch\137\141\x6cl";  $x160="p\162\145g_match";  $x161="\162\164\x72\151\155";  $x162="\x69s\137\156u\154\x6c";  $x163="\x73\x74\x72\x74ot\151\x6d\145";  $x164="\x6e\165m\x62\x65r_\x66o\162\155\x61t";  $x165="\x63oun\164";  $x166="\x69s_\x6eum\x65\x72ic";  $x167="ex\160l\x6f\144\x65";  $x168="\163\x75b\163\x74\162";  $x169="\x74\162\x69\155";  $x16a="\x68t\x6dl\x65\x6e\164\x69\x74\151\145\x73";  $x16b="\x68\164m\x6c_e\x6e\x74it\171_\144\145\x63\157d\145";  $x16c="p\x72\145\x67_\162\145\160\154\141c\x65";  $x16d="\152s\157\156\x5f\x64\x65\x63\x6f\x64e";  $x16e="\151s\x5f\x61\x72r\x61y";  $x16f="s\x74\x72\x73\x74r";  $x170="\163\164\162i\x73\164\162";  $x171="\x70ri\x6et\x5f\162";  $x172="\x69\x73\137s\x74ri\156\147";  $x173="t\x69\155\x65";  $x174="\165\143\x77\x6frds";  $x175="ar\x72\x61\x79_p\165s\x68";  $x176="ve\x72\163i\157\x6e\137co\155\x70\141r\145";  $x177="in_ar\162\141\171";  $x178="ceil";  $x179="s\145\164T\x79\160e";  $x17a="s\x70\162in\x74f";  $x17b="\141\x72\x72\x61y\x5f\x70\157p";  $x17c="\x69\x6e\151\137g\x65\164";  $x17d="\163et\x5f\164\x69m\145_\x6cimi\x74";  $x17e="a\142\x73";  $x17f="ar\x72a\x79_r\x65v\x65rs\x65";  $x180="\x73\164\x72\x5fp\141\144";  $x181="\146\x6c\157\157r";  $x182="\165\163\x6f\x72t";  $x183="\141rr\141y_\x73\150i\x66t";  $x184="ar\x72\x61\171\x5f\x76\x61lues";  $x185="\x73\x74r\151\160_t\141\x67\163";  $x186="\150\164\155\x6cs\x70\x65ci\x61lc\x68\141\x72\163";  $x187="\163t\x72\x72\160\157\163";  $x188="\151\x73\x5f\x62oo\154";  $x189="\x6d\x62\x5fs\164rt\157lo\167\145r";  $x18a="mb_\x73\164\162\x74o\x75p\160\145r";  $x49 = $x16c('/(\r\n|\n|\r|\r\n)/s', '', $x49);  $x67 = $x16d($x49);  if (!$x16e($x67)) $x68[] = $x67;  else $x68 = $x67;  $x64 = '';  if ($x6c == '\t') $x6c = "\t";  foreach ($x68 as $x67) { $x6a = 0;  if (isset($x67->header)) $x67 = $x67->header;  else { if (!$x16d($x49)) return "";  $x67 = $x67->product;  } $x6f = 0;  foreach ($x67 as $x4b => $value) { if ($x6a > 0) $x6a = 2;  if ($x16f($value, "\x2fb\162\145\141\x6b\154\151\156e\57")) $x6a++;  if ($x6f > 0 && $x6a < 2) $x64.=$x6c;  if (!$x16f($value, "\x2fb\162\145\141\x6b\154\151\156e\57")) $x6a = 0;  if ($x6d != "") { $x64.=$x6d . $this->x192($x15d("\x2fb\162\145\141\x6b\154\151\156e\57", '', $value), $x6d, $x6e) . $x6d;  if ($x16f($value, "\x2fb\162\145\141\x6b\154\151\156e\57")) { $x64 .= "\x0d\x0a";  } } else { $value = $x15d("\x2fb\162\145\141\x6b\154\151\156e\57", "\x0d\x0a", $value);  $x64.= $this->x192($value, $x6c, $x6e);  } $x6f++;  } if ($x6c == "\x5b\174]") $x64.="\x5b\72\x5d";  if (!$x6a) $x64 .= "\x0d\x0a";  } return $x64;  } public function x192($x49, $x70 = '"', $x6e = "\x5c\x5c") { $x15a="\163t\162\x6c\x65n";  $x15b="\151\155\160l\x6f\144\x65";  $x15c="p\162e\147\x5f\163\160l\151t";  $x15d="\163tr_\162\x65\160\154a\143e";  $x15e="\x75t\146\70\137\x65\x6e\x63\x6f\144\145";  $x15f="\x70\x72\x65\147\x5fm\x61\x74\143h_\141l\154";  $x160="\x70\x72\x65\147_\155\x61t\x63h";  $x161="\x72\x74r\151\155";  $x162="\151s\137\156\x75\x6c\154";  $x163="s\x74r\x74\x6f\164im\x65";  $x164="nu\x6d\x62e\162\x5ffor\x6dat";  $x165="\143\x6f\x75\x6e\164";  $x166="\151\163\137\x6e\x75me\162i\143";  $x167="\x65x\160l\157de";  $x168="\163\x75\x62\x73t\x72";  $x169="\x74ri\155";  $x16a="htm\154\145\x6e\x74\151\164i\145\x73";  $x16b="\150\x74\x6d\154\137\x65\x6e\164\x69\164y\x5fd\145\143o\144\x65";  $x16c="\160\162\x65\147_\162e\x70\x6c\x61ce";  $x16d="\152\163on_\144eco\x64\145";  $x16e="\151\163\x5f\x61r\x72\141y";  $x16f="\163\x74r\x73t\162";  $x170="st\162\x69s\164\162";  $x171="\160\x72\x69\156t\x5f\162";
 $x172="\151\x73_\x73\164\x72\x69\x6e\x67";  $x173="t\x69me";  $x174="\x75cw\157rd\x73";  $x175="\x61rr\141\x79_push";  $x176="\x76\x65r\x73\151\157\x6e_c\x6fmpa\162\x65";  $x177="i\156\137a\x72ray";  $x178="\143\x65\x69\154";  $x179="\x73e\x74T\x79\160e";  $x17a="\x73p\162\x69n\x74\x66";  $x17b="\141r\x72\x61\x79\x5f\160\157p";  $x17c="i\156\151_\x67et";  $x17d="\163et_ti\155e_\154\x69\x6d\x69\x74";  $x17e="\x61\142\x73";  $x17f="\141\162\x72a\x79_re\x76\x65\162\163\x65";  $x180="\163\x74\x72\x5fpa\x64";  $x181="\x66\154o\157r";  $x182="uso\x72\x74";  $x183="\x61rr\x61\171_\x73\150\151\146\164";  $x184="\x61rr\141y_\166\141l\165e\163";  $x185="\163\164\x72\151\x70_t\141\x67\163";  $x186="\x68\x74\x6d\x6c\x73\160\145\143\x69\141\154\x63\x68\x61rs";  $x187="st\x72r\x70o\x73";  $x188="\x69\x73\137\x62oo\x6c";  $x189="\155\x62\137\163\x74r\x74o\154\157\167e\162";  $x18a="\155\x62\137\x73t\x72\164o\x75\x70\x70\x65\162";  $x49 = $x15d($x70, $x6e . $x70, $x49);  return $x49;  } public function unx192($x49, $x70 = '"') { $x15a="\163\x74\162\154\145n";  $x15b="im\160l\157de";  $x15c="p\x72\x65\147\137\163pli\164";  $x15d="s\x74\162_\162\145\x70l\x61\143\x65";  $x15e="utf\70\137e\156\143\157\x64\x65";  $x15f="\x70\x72\x65g_m\141t\143\x68\137\141\154\154";  $x160="p\x72eg\x5f\155at\x63h";  $x161="\x72\x74\x72\151\155";  $x162="\151s_\156ul\154";  $x163="\163\164\x72\x74ot\151\x6d\x65";  $x164="\156\165\x6d\142\145\162\137\146o\x72ma\164";  $x165="\143\157u\x6e\164";  $x166="\151s\x5fn\165\155e\162\x69\143";  $x167="\x65\170pl\x6fd\x65";  $x168="\163\165\142\x73\x74r";  $x169="t\x72\x69\x6d";  $x16a="\150\x74\x6d\x6c\145\x6e\x74\151\164i\x65\x73";  $x16b="\x68t\x6dl_\x65nt\x69\164\x79_\144\x65\143\x6f\144\145";  $x16c="\x70\x72e\147\x5f\x72\145\x70\154\x61\x63e";  $x16d="\x6a\x73o\156_\144\145\143\x6f\144e";  $x16e="\x69\163\137\141r\162a\171";  $x16f="st\x72\163t\162";  $x170="s\x74\x72\x69\x73t\x72";  $x171="\x70ri\x6e\x74\x5f\162";  $x172="\151s\137\163\x74r\x69n\147";  $x173="t\x69\x6de";  $x174="\165\143\167o\162\144s";  $x175="\141rra\x79\137\160\x75sh";  $x176="\166\x65\162\x73i\157n_\143\157\155pa\162\x65";  $x177="\151n_a\162r\141\171";  $x178="\143\145\151l";  $x179="s\145\164\124\x79p\x65";  $x17a="\x73\160r\x69\x6e\x74\146";  $x17b="a\x72\x72\x61\x79\137\x70\x6f\160";  $x17c="in\x69\x5f\x67\145\164";  $x17d="\x73\145t_\x74\x69\155\x65\x5f\x6ci\155\x69\x74";  $x17e="a\x62\x73";  $x17f="\x61\x72\162a\171_\x72\x65v\x65\x72\x73e";  $x180="s\x74\x72_\x70\x61d";  $x181="f\x6coo\x72";  $x182="\x75\x73\157\x72\x74";  $x183="\141\162\162\x61\x79_\x73\x68\x69f\164";  $x184="\141r\x72\x61\x79\137v\x61\154ues";  $x185="\163trip\x5f\x74ag\163";  $x186="\x68\x74m\x6c\x73\x70\x65c\151alc\x68a\x72s";  $x187="s\164rr\x70\x6f\163";  $x188="\x69\x73\x5f\x62\157\x6f\x6c";  $x189="m\142\x5fs\164\162to\x6c\x6f\167\x65\x72";  $x18a="mb\137\163t\x72\x74\157\165\160\x70\145r";  $x49 = $x15d('\\' . $x70, $x70, $x49);  return $x49;  } public function x194($x71) { $x15a="\163t\x72\154e\x6e";  $x15b="i\x6dp\154\157\144\x65";  $x15c="preg\x5f\163p\154\x69\164";  $x15d="s\164r\x5f\x72\x65\160\x6c\141\143\145";  $x15e="u\164\146\70_e\156\x63\x6f\x64\145";  $x15f="\x70\x72\145\x67\137\x6dat\143\x68\137\x61\x6cl";  $x160="\x70\x72\x65\147\137ma\164\x63\150";  $x161="\x72tr\151\x6d";  $x162="\x69\x73\137\156\165\154l";  $x163="s\164r\x74o\164\x69m\x65";  $x164="\156u\155\x62\145\x72_\x66\157\x72\155\141\x74";  $x165="co\165\x6e\x74";  $x166="i\163_\156\165\155\145\162\x69c";  $x167="exp\154o\144\145";  $x168="\163u\x62\163\x74\162";  $x169="\x74\162\151\x6d";  $x16a="\x68\x74\x6d\154en\164\151\x74i\x65\163";  $x16b="ht\155l_e\156\164\x69\x74\x79\x5fd\x65cod\145";  $x16c="p\x72\145\x67_\162e\x70lac\x65";  $x16d="\152\163o\x6e\137dec\x6fde";  $x16e="\x69\x73\137\141\x72\162\x61\171";  $x16f="\163\164r\163\x74\x72";
 $x170="\x73\x74\x72\x69\x73\x74r";  $x171="\160\x72i\x6et_r";  $x172="i\163_\x73t\162\151n\x67";  $x173="t\x69\155\x65";  $x174="\x75c\x77\x6f\x72\x64\163";  $x175="\141\x72\162\141y_\x70u\163h";  $x176="v\145\162s\151\157\x6e\x5f\143\157m\160are";  $x177="in\x5fa\x72\162\141\171";  $x178="\x63e\151l";  $x179="\x73\x65\164\x54\x79\x70\145";  $x17a="s\160\x72\x69n\164\146";  $x17b="\141r\162\141y\x5f\160o\x70";  $x17c="\151\x6e\151\x5f\147\x65\164";  $x17d="\x73\x65t_\164ime_\154i\x6d\x69\164";  $x17e="ab\163";  $x17f="\x61\x72\x72\x61\171_\x72\x65v\145\x72\163e";  $x180="s\164\x72\137\160\141\144";  $x181="\x66\154\x6f\157\162";  $x182="\x75sor\164";  $x183="\x61\x72r\x61\x79\137s\150ift";  $x184="a\x72ray_\x76\x61\154\165\145\x73";  $x185="st\162i\160\137t\x61\147s";  $x186="ht\x6d\x6cs\160ec\151a\x6c\x63\150\x61\x72s";  $x187="\163t\x72rpos";  $x188="\x69s\x5fbo\x6f\154";  $x189="\155\x62\x5f\163\164\x72\x74\x6fl\157\x77e\162";  $x18a="mb_\163\164\162t\x6f\x75pp\145\162";  if (!$x170($x71, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8';  if (!$x170($x71, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO';  } public function checkReference($x72, $product) { $x15a="\x73\x74\x72\154\145n";  $x15b="\151m\160lo\144\x65";  $x15c="\160r\145\147\137\x73\160\x6cit";  $x15d="\163\164\x72_\x72e\160l\x61c\x65";  $x15e="\165\164\x66\70\x5f\x65\156\x63o\x64\x65";  $x15f="\160re\x67\137m\141\164\143\150\x5f\x61\154\x6c";  $x160="\x70\162\145\x67\137\x6d\141t\143\150";  $x161="\x72t\x72\x69m";  $x162="\x69\163\137\x6e\x75\154\154";  $x163="s\x74\x72\164\157\164\151\x6d\145";  $x164="n\165\x6db\x65\162\137\x66or\x6dat";  $x165="\x63\157\x75\156t";  $x166="\x69\163\137n\x75\155\x65r\x69\143";  $x167="\x65\x78\x70\x6co\x64\x65";  $x168="su\142s\164\x72";  $x169="t\x72\x69m";  $x16a="h\x74\155\154\145nt\151\x74\151es";  $x16b="\150\164\x6dl\137\x65\156t\x69\x74\171\137\x64\x65c\x6f\144\x65";  $x16c="p\x72\145\147_\x72\x65p\154\141\143\145";  $x16d="\152so\156\137\x64e\x63\x6fd\145";  $x16e="i\163\137a\162\162\141\171";  $x16f="\163trst\x72";  $x170="\x73\164r\151s\x74r";  $x171="pr\151\156\x74\x5f\162";  $x172="\x69\x73_\x73t\162i\x6eg";  $x173="\164i\155\x65";  $x174="u\143wo\162\144\163";  $x175="\x61\x72\162\x61\x79\137p\165\163h";  $x176="\x76e\x72\x73io\156_c\157\x6d\160a\x72\x65";  $x177="\151n\x5fa\x72\162\x61\171";  $x178="\x63\145i\154";  $x179="\x73\145t\x54\171p\x65";  $x17a="\163\160r\x69\x6et\146";  $x17b="\x61\162\162\141y_\x70op";  $x17c="\151\156i\x5f\147\x65t";  $x17d="\x73\145\x74\x5f\164im\145\137\154\151\155\151\x74";  $x17e="\x61bs";  $x17f="\141\x72\162\141\171\137\x72ev\x65\x72\163\145";  $x180="str_p\x61\144";  $x181="\146l\x6f\x6f\x72";  $x182="\165\163\157r\164";  $x183="\x61\x72\162ay\x5f\x73\x68\x69\x66\164";  $x184="\x61rra\171_v\x61\x6c\165e\x73";  $x185="\163t\x72\x69\160_ta\x67\x73";  $x186="\150tm\154\x73\x70e\143\151a\x6c\143h\141\162s";  $x187="s\164\x72\162\160o\163";  $x188="i\x73_bool";  $x189="m\x62_st\x72\x74o\154\157w\145\x72";  $x18a="\155\x62\137\163trt\157\165\160p\145\162";  if (($x72 == "p\x61\162\x65n\164" || $x72 == "\143o\x6ef\151\x67\x75r\141\x62l\145") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()];  elseif (($x72 == "p\x61\162\x65n\164" || $x72 == "\147\x72\157u\x70e\x64") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()];  elseif (($x72 == "p\x61\162\x65n\164" || $x72 == "bu\x6e\144\154\x65") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];  else { return $product;  } } public function skipOptions($x73) { $x15a="s\x74\162\154e\156";  $x15b="\151m\160\154o\144\x65";  $x15c="\160\x72eg\x5f\163\x70\154it";  $x15d="\163\164\162\x5f\x72\x65\160la\143\x65";  $x15e="\165\164\146\70\x5f\x65n\143\x6f\144e";  $x15f="\160\162e\x67\137\x6d\141\x74\x63\150_\141ll";  $x160="pr\x65\147_ma\164\x63\x68";  $x161="\162\x74\x72i\x6d";  $x162="is\137\x6e\165ll";  $x163="s\x74\x72tot\151\155e";  $x164="\x6e\165\x6db\145r\137for\x6d\x61t";  $x165="\x63\157un\x74";  $x166="i\163_n\x75\x6deric";  $x167="\x65\170\160\154o\144\x65";  $x168="\x73\x75\142s\x74\x72";  $x169="\x74\x72\x69\x6d";  $x16a="\150t\x6d\154\145\156\164\x69\164i\x65\x73";  $x16b="ht\155\x6c\x5fenti\x74\x79\x5f\x64\x65\143\x6f\144\145";
 $x16c="\160r\x65\147\137r\x65\x70l\141c\x65";  $x16d="j\163o\156_\x64\x65c\x6f\x64e";  $x16e="\x69\163\x5f\x61r\162\141\x79";  $x16f="s\164\x72\163\x74r";  $x170="\163\x74r\x69\x73\x74r";  $x171="pr\151\156\x74\137\x72";  $x172="\x69s\x5f\x73\x74\x72\151\x6e\147";  $x173="\x74\x69\x6de";  $x174="\165c\x77\157\x72\x64\163";  $x175="\141\162\162\x61\x79\x5fp\165\163\150";  $x176="v\145\x72si\157n\137\143\x6f\155\160\141\162\x65";  $x177="\x69\156\137\141rra\x79";  $x178="\143\x65\x69l";  $x179="se\x74\x54\171\160\145";  $x17a="\163\160r\x69n\164\146";  $x17b="\141\x72\x72a\x79\137\x70op";  $x17c="ini_\x67\x65\x74";  $x17d="s\x65\x74_\164i\155e\x5f\x6ci\x6di\x74";  $x17e="a\x62\x73";  $x17f="a\x72\162\x61\x79\x5f\x72\x65v\x65\x72\x73\145";  $x180="\x73t\162\137pa\x64";  $x181="\146l\x6f\157\162";  $x182="\165\x73o\x72\164";  $x183="\x61r\162a\x79_s\150\x69ft";  $x184="\x61\x72\x72\141y\137va\154u\x65\x73";  $x185="s\164r\x69p\137\164\141g\163";  $x186="\x68\164\155\x6c\163\x70\x65\143i\x61\154ch\141\162\163";  $x187="\x73t\162\162p\157\x73";  $x188="i\163_\x62\x6f\157\x6c";  $x189="\155\142_\x73t\x72\164o\154\x6f\x77e\x72";  $x18a="m\x62_\163\164\162to\165\x70p\x65r";  $this->option = $this->option + $x73;  } public function generateFile() { $x15a="s\164r\x6c\145\156";  $x15b="i\x6d\160l\157d\145";  $x15c="p\x72eg\x5f\163\x70\x6ci\164";  $x15d="\163t\162_r\145\x70l\x61\143\145";  $x15e="\165\x74f\70\137\x65\156\x63o\x64\145";  $x15f="\160\162\x65\147_m\141tc\x68\x5f\141l\x6c";  $x160="\160\x72\x65\x67\x5fmatch";  $x161="\x72t\x72\x69\155";  $x162="\151s\x5f\x6e\x75\154l";  $x163="\x73\x74\162t\157t\151\x6d\x65";  $x164="\x6e\x75\155\142\145\x72\x5f\146o\x72\155a\164";  $x165="c\157\x75\156\164";  $x166="\x69s\x5fnu\155\145r\x69\143";  $x167="\x65\x78\160\154\157de";  $x168="\x73u\x62\163t\x72";  $x169="\x74\162\151m";  $x16a="ht\155\154e\156ti\x74\151\x65\x73";  $x16b="\150t\155l\x5fe\x6e\x74\151\164\x79\137deco\144\145";  $x16c="p\162\x65\147_rep\154\x61\x63e";  $x16d="\x6aso\156\137\x64\145c\x6f\x64\x65";  $x16e="\151\163\x5f\x61\162ray";  $x16f="s\x74r\x73\x74r";  $x170="\x73t\162\x69\x73\x74\x72";  $x171="\x70\x72i\156\x74\x5f\x72";  $x172="\x69\x73\x5fst\x72\x69\156\x67";  $x173="t\x69\x6de";  $x174="u\143\x77\157\162\x64s";  $x175="\141\162\x72a\171\x5fpu\163\x68";  $x176="\x76e\162\163\151\x6fn\137\143\x6f\x6dp\x61\x72e";  $x177="i\x6e\x5f\x61\162\x72ay";  $x178="\143e\x69l";  $x179="\163\x65\x74T\x79p\x65";  $x17a="\163\160\162\151n\x74\146";  $x17b="arr\x61\171\137\160op";  $x17c="i\x6e\151\137\147\145t";  $x17d="\163et\137\164i\155e\137l\x69m\151\x74";  $x17e="\141\142s";  $x17f="\x61r\162a\x79\x5f\162\x65\x76\x65\162s\145";  $x180="\163\x74\162\x5fp\x61d";  $x181="\146l\157\x6fr";  $x182="\x75so\162\164";  $x183="ar\x72\141\171\137\163h\151ft";  $x184="\x61r\x72\141\x79\137\166a\154\165\x65\163";  $x185="s\164\x72\x69\x70\x5f\164a\x67\163";  $x186="h\164m\154\x73\160\x65c\151\x61lcha\x72\163";  $x187="st\x72r\x70o\x73";  $x188="\151s\137\142\157\x6f\154";  $x189="m\x62_s\164r\x74\157lowe\162";  $x18a="m\142_\x73\x74r\x74\x6fu\x70\160\x65r";  ini_set('memory_limit', Mage::getStoreConfig("d\x61ta\x66\145\x65\x64\155a\156a\x67\145\162/s\171st\145\155\x2f\155\145m\157r\171_\x6c\151m\x69\164") . 'M');  $this->_debug = (isset($_GET['debug'])) ? true : false;  $this->_log = Mage::getStoreConfig("d\141\164\x61f\x65ed\155\x61\x6e\141\x67\145\162/\x73\x79\x73\164\145\x6d/\154\157g\137\x65\156a\142\154\x65\x64");  if ($this->_debug) { echo "-\x2d\55\55---\x2d\x2d-\55-----\x2d\55-\x2d-\55-\55\55\55\x2d\x2d\x2d\55\x2d-\55\55\55\55\55\x2d\55-\x2d\x2d\55--\55\74\x62r\x3e\x2d-\55\x2d\55\x2d\55-\55\55\x2d-\40D\105B\x55G\x20\115O\x44E\x20-\55-\55\55\55\55-\55\x2d--\55\55--\x3c\x62\162\76--\55---\55\55-\x2d---\55\x2d\55\x2d-\55--\x2d\55\55\55\55\x2d\55\55-\x2d\x2d\55-\x2d\55\55\55-\55--\55-\55\55\74\142\x72>\74\x62r\x3e";  $x171($x74);  } $x75 = $this->_indexPhp;  $x76 = array("\141\143" => "\141c\x74i\166\141\x74\x69\x6f\x6e\137co\144\x65", "a\153" => "\141\143t\x69v\141\164ion_k\145\171", "\142\x75" => "\142\x61s\x65\137\x75\x72\154", "\155\x64" => "\155\x64\65", "\x74\x68" => "thi\163", "\144m" => "\x5f\144\145\x6d\x6f", "\x65\x78\164" => "d\146m", "\x76\145r" => "\67\56\63.0");  $x172(Mage::app()->getRequest()->getParam("\163\164\157\162e_i\x64")) ? $x77 = Mage::app()->getRequest()->getParam("\163\164\157\162e_i\x64") : $x77 = $this->getStoreId();  $x78 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');  $x79 = Mage::getDesign()->getSkinUrl();  $x7a = Mage::getStoreConfig("\x63\141\164\141\154o\x67/p\154\141\143e\x68\157\154de\x72/\151\x6da\x67e_\x70\154\141\143eho\x6c\144\x65r", $x77);  $x7b = Mage::getStoreConfig("cur\162\145\156\143\171/\x6f\160t\x69\x6f\156\163\x2f\142\x61\x73\145", $x77);  $x7c = Mage::getStoreConfig("c\141t\141\154o\147i\x6e\166e\x6e\164\x6f\162y\57\x69t\145\155_op\x74\x69\x6f\156\163\x2f\x6d\x61n\x61g\x65_\x73\x74ock", $x77);  $x7d = Mage::getStoreConfig("c\x61t\x61\x6c\x6f\147\x69nve\156t\x6f\162y/\x69te\x6d\137o\x70ti\157ns\x2f\142\141\143\153ord\x65\x72\163", $x77);  $x7e = Mage::app()->getStore($x77)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);  $x7f = Mage::getModel('core/store')->load($x77)->getBaseUrl();  $x80 = Mage::app()->getStore($x77)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);  $x81 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x77);  $x82 = Mage::app()->getStore($x77)->getRootCategoryId();
 $x83 = array( "\141\143t\x69v\141\164ion_k\145\171" => Mage::getStoreConfig("\x64a\164\141\146\x65edm\141\x6ea\x67e\x72\57\154\x69\143\145\x6e\163\x65/\141c\164\151v\141\x74\x69\x6f\156\137\153e\171"), "\141c\x74i\166\141\x74\x69\x6f\x6e\137co\144\x65" => Mage::getStoreConfig("d\x61\x74\141\146\145\145d\155\141n\x61\x67\x65r/l\151c\145\x6es\x65/\141\143t\151\x76atio\x6e\137\x63\157\x64e"), "\142\x61s\x65\137\x75\x72\154" => Mage::getStoreConfig("w\145\142\x2f\163\145\143\165re\x2f\142\x61s\145\x5f\165\162\154"), );  $x172(Mage::app()->getRequest()->getParam("fe\145d_\x70\162o\x64\x75ct")) ? $x84 = Mage::app()->getRequest()->getParam("fe\145d_\x70\162o\x64\x75ct") : $x84 = $this->getFeed_product();  $x172(Mage::app()->getRequest()->getParam("\146\x65\x65\144_h\x65a\144e\162")) ? $x71 = Mage::app()->getRequest()->getParam("\146\x65\x65\144_h\x65a\144e\162") : $x71 = $this->getFeed_header();  $x172(Mage::app()->getRequest()->getParam("\x66\145\145d_\x66\x6f\x6f\x74e\162")) ? $x85 = Mage::app()->getRequest()->getParam("\x66\145\145d_\x66\x6f\x6f\x74e\162") : $x85 = $this->getFeed_footer();  $x172(Mage::app()->getRequest()->getParam("\146\145\x65d_\164y\x70\x65")) ? $x86 = Mage::app()->getRequest()->getParam("\146\145\x65d_\164y\x70\x65") : $x86 = $this->getFeed_type();  $x172(Mage::app()->getRequest()->getParam("\x66\145\145\144_\145\x78\x74\x72ah\145\141\144\x65\162")) ? $x87 = Mage::app()->getRequest()->getParam("\x66\145\145\144_\145\x78\x74\x72ah\145\141\144\x65\162") : $x87 = $this->getFeed_extraheader();  $x172(Mage::app()->getRequest()->getParam("\x66\x65\x65\x64_\x65\x78\x74\x72\x61f\157ote\x72")) ? $x88 = Mage::app()->getRequest()->getParam("\x66\x65\x65\x64_\x65\x78\x74\x72\x61f\157ote\x72") : $x88 = $this->getFeed_extrafooter();  $x172(Mage::app()->getRequest()->getParam("\x66e\145d\x5f\151\x6e\x63lude\137he\x61\144\x65\162")) ? $x89 = Mage::app()->getRequest()->getParam("\x66e\145d\x5f\151\x6e\x63lude\137he\x61\144\x65\162") : $x89 = $this->getFeed_include_header();  $x172(Mage::app()->getRequest()->getParam("\x66\x65\145d_\x73\145p\x61\x72\x61\164or")) ? $x6c = Mage::app()->getRequest()->getParam("\x66\x65\145d_\x73\145p\x61\x72\x61\164or") : $x6c = $this->getFeed_separator();  $x172(Mage::app()->getRequest()->getParam("\146\x65\x65d\x5f\160\162\x6f\164\x65c\164\x6fr")) ? $x6d = Mage::app()->getRequest()->getParam("\146\x65\x65d\x5f\160\162\x6f\164\x65c\164\x6fr") : $x6d = $this->getFeed_protector();  $x172(Mage::app()->getRequest()->getParam("f\145\145\144\137\145\x73c\x61\160e")) ? $x6e = Mage::app()->getRequest()->getParam("f\145\145\144\137\145\x73c\x61\160e") : $x6e = $this->getFeed_escape();  $x172(Mage::app()->getRequest()->getParam("\x66\x65\x65d_s\x61\164\x75\x73")) ? $x8a = Mage::app()->getRequest()->getParam("\x66\x65\x65d_s\x61\164\x75\x73") : $x8a = $this->getFeed_status();  $x172(Mage::app()->getRequest()->getParam("\x66e\x65\144_enc\154ose\x5fd\141ta")) ? $x8b = Mage::app()->getRequest()->getParam("\x66e\x65\144_enc\154ose\x5fd\141ta") : $x8b = $this->getFeed_enclose_data();  $x172(Mage::app()->getRequest()->getParam("f\145\145\144\x5fc\154ea\156_\x64\x61ta")) ? $x8c = Mage::app()->getRequest()->getParam("f\145\145\144\x5fc\154ea\156_\x64\x61ta") : $x8c = $this->getFeed_clean_data();  $x172(Mage::app()->getRequest()->getParam("\x64\x61\x74af\145e\x64\155\141n\141\147e\x72\x5f\143\141\164\x65\147o\x72ies")) ? $x8d = $x16d(Mage::app()->getRequest()->getParam("\x64\x61\x74af\145e\x64\155\141n\141\147e\x72\x5f\143\141\164\x65\147o\x72ies")) : $x8d = $x16d($this->getDatafeedmanagerCategories());  $x172(Mage::app()->getRequest()->getParam("\x64a\164\x61\146eedm\x61nag\x65r_\143a\164\145g\x6f\x72y\x5ff\x69\154\x74e\x72")) ? $x8e = Mage::app()->getRequest()->getParam("\x64a\164\x61\146eedm\x61nag\x65r_\143a\164\145g\x6f\x72y\x5ff\x69\154\x74e\x72") : $x8e = $this->getDatafeedmanagerCategoryFilter();  $x172(Mage::app()->getRequest()->getParam("\x64\x61\x74af\145e\x64\155\141n\141\147e\x72\x5f\143\141\164\x65\147o\x72ies")) ? $x74 = Mage::app()->getRequest()->getParam("\x64\x61\x74af\145e\x64\155\141n\141\147e\x72\x5f\143\141\164\x65\147o\x72ies") : $x74 = $this->getDatafeedmanagerCategories();  $x172(Mage::app()->getRequest()->getParam("\146e\145d_\145\x6ec\x6f\144\x69n\x67")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("\146e\145d_\145\x6ec\x6f\144\x69n\x67") : $this->_feed_encoding = $this->getFeed_encoding();  $x8f = $this->getFtpEnabled();  $x90 = $this->getUseSftp();  $x91 = $this->getFtpHost();  $x92 = $this->getFtpLogin();  $x93 = $this->getFtpPassword();  $x94 = $this->getFtpDir();  $x95 = $this->getFtpActive();  $x96 = Array();  $x97 = Array();  if ($x74 != '*' && $x16e($x8d)) { foreach ($x8d as $x98) { if ($x98->checked) $x96[] = $x98->line;  } foreach ($x8d as $x98) { if ($x98->mapping != "") $x97[$x98->line] = $x98->mapping;  } } if ($x165($x96) < 1) { $x96[] = '*';  } $x172(Mage::app()->getRequest()->getParam("d\x61\x74\141\x66\145\145\144\155\141\x6e\141\x67\x65\x72\137\x74\x79\160\145\137\x69\x64\163")) ? $x99 = $x167(',', Mage::app()->getRequest()->getParam("d\x61\x74\141\x66\145\145\144\155\141\x6e\141\x67\x65\x72\137\x74\x79\160\145\137\x69\x64\163")) : $x99 = $x167(',', $this->getDatafeedmanagerTypeIds());  $x172(Mage::app()->getRequest()->getParam("\x64a\164\141\x66\145ed\x6d\x61\156\141\x67\145r\x5fv\151\x73ib\x69l\151ty")) ? $x9a = $x167(',', Mage::app()->getRequest()->getParam("\x64a\164\141\x66\145ed\x6d\x61\156\141\x67\145r\x5fv\151\x73ib\x69l\151ty")) : $x9a = $x167(',', $this->getDatafeedmanagerVisibility());  $x172(Mage::app()->getRequest()->getParam("\x64\141\x74\x61\x66\145\x65d\155an\x61\x67\x65r\x5f\x61\164\164ri\x62\x75\164\145_\x73\145t\163")) ? $x9b = $x167(',', Mage::app()->getRequest()->getParam("\x64\141\x74\x61\x66\145\x65d\155an\x61\x67\x65r\x5f\x61\164\164ri\x62\x75\164\145_\x73\145t\163")) : $x9b = $x167(',', $this->getDatafeedmanagerAttributeSets());  $x172(Mage::app()->getRequest()->getParam("\144a\x74\141\x66\x65\145d\155\141n\141\x67er_a\164t\162\x69bu\x74e\163")) ? $x9c = $x16d(Mage::app()->getRequest()->getParam("\144a\x74\141\x66\x65\145d\155\141n\141\x67er_a\164t\162\x69bu\x74e\163")) : $x9c = $x16d($this->getDatafeedmanagerAttributes());  if ($this->_log) Mage::log("\x0a\76>>\76\76>\76>\76\76\76\x3e>>>\x3e>\x3e\x3e>\76\x3e\x3e\76\x3e\x3e\x3e\76>\x3e\x3e\76\x3e\x3e>\76\x3e\76\x3e\76\x3e>\76\x3e>\76\40\55\55\55\x2d\x2d-\x2d\55\x2d\55\55-\x2d-\x2d S\x54A\122\x54\x20\120R\117\103\105\123\x53 FO\122\40" . strtoupper($this->getFilename(false)) . "\x2d\55\x2d\55-\55-\55\x2d\x2d\55\x2d-\55\55\55-", null, $this->getFilename('.log'));  if ($x83[$x76['ac']] != $x76["\155\x64"]($x76["\155\x64"]($x83[$x76['ak']]) . $x76["\155\x64"]($x83[$x76['bu']]) . $x76["\155\x64"]($x76["\x65\x78\164"]) . $x76["\155\x64"]($x76["\x76\145r"]))) { $$x76["\x65\x78\164"] = "v\141\x6ci\144";  $$x76["\x74\x68"]->$x76["\144m"] = true;  } else { $$x76["\x74\x68"]->$x76["\144m"] = false;  $$x76["\x65\x78\164"] = "v\141\x6ci\144";  } if (!$x8a && !$this->_display) Mage::throwException(Mage::helper("da\x74af\145\x65\x64\x6danage\162")->__("\x54he\x20\x64ata\x20feed \x63\x6f\156f\x69\x67ur\141t\x69\x6fn\x20\x6d\165\163\164\x20\142\145\40\x65\x6e\x61\142\x6ce\x64 i\x6e \x6f\x72\x64\x65r\x20to\40ge\156\x65\162\x61\164\145\40a\x20f\x69\154\x65\56"));  Mage::dispatchEvent( 'datafeedmanager_before_generate', array('datafeed' => $this) );  $this->_timestamp = $this->_timestamp = Mage::getModel('core/date')->timestamp($x173());  $x4d = new Varien_Io_File();  $x4d->setAllowCreateFolders(true);  if (!$this->_display) { $x4d->open(array('path' => $this->getPath()));  if ($x4d->fileExists($this->getFilename()) && !$x4d->isWriteable($this->getFilename())) { Mage::throwException(Mage::helper('datafeedmanager')->__('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->getFilename(), $this->getPath()));  } $x4d->streamOpen($this->getFilename());  if ($this->_log) Mage::log("\x0a\76\76\76\x3e>\x3e\x3e>\76\76>\76\x3e>\x3e\x3e\76\76\x3e>\76>\76\x3e>>>\x3e\x3e\x3e\76>\76>>\x3e\x3e\x3e\x3e\76>>\x3e\x3e>\x3e\x20" . $this->getFilename() . "\x20c\162\x65\x61\164\145\144\x20\141\x6e\x64 \157p\145n\145\144", null, $this->getFilename('.log'));  } if (!isset($$x76["\x65\x78\164"]) || $$x76["\x74\x68"]->$x76["\144m"]) { $$x76["\x74\x68"]->$x76["\144m"] = true;  return $$x76["\x74\x68"];  } $x9d = '';  $x9e = '';  header("\103\157\x6et\x65n\x74\x2d\124\171\160\x65:\x20tex\x74\x2f\150t\x6dl\73\40\143\x68\141\x72\x73\145t=ut\x66-\70");  $x49 = '/{([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)?([^}|]*))?}/';  $x15f($x49, $x84, $x4a);  foreach ($x4a[6] as $x4b => $x9f) { if ($x9f != "") { $x4a[0][] = $x4a[0][$x4b];  $x4a[1][] = $x9f;  $x4a[2][] = $x4a[7][$x4b];  $x4a[3][] = $x4a[8][$x4b];  ;  $x4a[4][] = $x4a[9][$x4b];  ;  } } foreach ($x4a[11] as $x4b => $x9f) { if ($x9f != "") { $x4a[0][] = $x4a[0][$x4b];  $x4a[1][] = $x9f;  $x4a[2][] = $x4a[7][$x4b];  $x4a[3][] = $x4a[8][$x4b];  ;  $x4a[4][] = $x4a[9][$x4b];  ;  } } foreach ($x4a[16] as $x4b => $x9f) { if ($x9f != "") { $x4a[0][] = $x4a[0][$x4b];  $x4a[1][] = $x9f;  $x4a[2][] = $x4a[7][$x4b];  $x4a[3][] = $x4a[8][$x4b];  ;  $x4a[4][] = $x4a[9][$x4b];  ;  } } $x4a[0][] = "\x7b\x63\x61te\147\157\x72\x69\145s\x2c\133\61\x5d\x2c[\61\x5d,\x5b\61\135\x7d";  $x4a[1][] = "ca\x74\145\147\x6f\x72\151\x65\x73";  $x4a[2][] = "";  $x4a[3][] = "\54\133\61\135\x2c\x5b\61],\x5b\61]";  $xa0 = array();  $attributesRequired = array();  foreach ($x4a[1] as $x4b => $x9f) { $xa0[$x4b]['methodName'] = "\x67\x65\x74" . $x15d(' ', '', $x174($x169($x9f)) . '()');  $xa0[$x4b]['pattern'] = "\173" . $x169($x9f) . "\175";  $xa0[$x4b]['fullpattern'] = $x4a[0][$x4b];  $xa0[$x4b]['name'] = $x169($x9f);  $xa0[$x4b]['reference'] = $x169($x4a[2][$x4b]);  if (empty($xa0[$x4b]['reference'])) $xa0[$x4b]['reference'] = 'self';  switch ($xa0[$x4b]['name']) { case 'url': $x175($attributesRequired, 'url_key');  break;  case 'uri': $x175($attributesRequired, 'url_key');  break;  case 'G:IMAGE_LINK': $x175($attributesRequired, 'image');  $x175($attributesRequired, 'small_image');  $x175($attributesRequired, 'thumbnail');  break;  case 'SC:IMAGES': $x175($attributesRequired, 'image');  $x175($attributesRequired, 'small_image');  $x175($attributesRequired, 'thumbnail');  break;
 case 'SC:DESCRIPTION': $x175($attributesRequired, 'description');  $x175($attributesRequired, 'short_description');  $x175($attributesRequired, 'manufacturer');  $x175($attributesRequired, 'name');  $x175($attributesRequired, 'sku');  break;  case 'SC:EAN': $x175($attributesRequired, 'ean');  break;  case 'SC:URL': $x175($attributesRequired, 'url_key');  $x175($attributesRequired, 'url');  break;  case 'sc:images': $x175($attributesRequired, 'image');  $x175($attributesRequired, 'small_image');  $x175($attributesRequired, 'thumbnail');  break;  case 'sc:description': $x175($attributesRequired, 'description');  $x175($attributesRequired, 'short_description');  $x175($attributesRequired, 'manufacturer');  $x175($attributesRequired, 'name');  $x175($attributesRequired, 'sku');  break;  case 'sc:ean': $x175($attributesRequired, 'ean');  break;  case 'sc:url': $x175($attributesRequired, 'url_key');  $x175($attributesRequired, 'url');  break;  default : $x175($attributesRequired, $xa0[$x4b]['name']);  } include(Mage::getBaseDir() . "\x2f\141\160p/co\144\145\x2fl\x6f\143\x61l/\127\171\x6fm\151\156\144\57\104\141ta\146\145\x65\144m\141\156a\147\145\x72\x2fm\x79\122\x65\x71\x75\x69\162\145\x64\101\x74\164r\151\x62\x75\164e\163.\x70\x68p");  $xa0[$x4b]["\166a\154\x75\145"] = '$product->get' . $xa0[$x4b]['name'] . "\50\x29";  $xa0[$x4b]["\x67e\164\124e\170\164"] = 'getAttributeText(\'' . $x169($x9f) . '\')';  $xa1 = '/\[([^\]]+)\]/';  $x15f($xa1, $x4a[3][$x4b], $xa2);  $xa0[$x4b]["\157\x70ti\x6f\x6es"] = $xa2[1];  } if ($this->_debug) { echo "<\142\x72\x3e\74br\76-\55\x2d\55\x2d\x2d--\55\x2d\55- \101\124\x54R\111BUT\x45S\40RE\121\x55\111\x52E\104 -\x2d\x2d\x2d\x2d-\55\x2d\x2d\55\x2d--\x2d-\55\x3c\142\x72\76";  $x171($xa0);  } $xa3 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x77) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu');  $x74 = array();  foreach ($xa3 as $xa4) { $x74[$xa4->getId()]['name'] = $xa4->getName();  $x74[$xa4->getId()]['path'] = $xa4->getPath();  $x74[$xa4->getId()]['level'] = $xa4->getLevel();  if ($x176(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("\144\141\x74\x61f\x65e\x64\x6d\x61\x6ea\147\x65\x72\57s\171s\x74em/i\x6e\143\154\x75\x64e_i\156_m\145\x6eu")) $x74[$xa4->getId()]['include_in_menu'] = true;  else $x74[$xa4->getId()]['include_in_menu'] = $xa4->getIncludeInMenu();  } if ($this->_debug) { echo "\74\x62\x72><\142r>\x2d\55\55\x2d-\55--\55\x2d\x2d-\x20\103AT\x45\x47O\x52\111E\x53\x20-\x2d---\55--\x2d\55\x2d\x2d---\55<\x62\162\x3e";  $x171($x74);  } if ($this->_log) Mage::log("\x0a\76\x3e\x3e>\x3e\x3e>>>>>>\x3e>>>\76\76>\76\x3e>\76>>\76\76>\76>\x3e\x3e>\x3e>\x3e\x3e>\x3e\x3e>\x3e>>>\76 \x50\x72od\x75\143\164\x20\164e\155\x70\154\141\x74\145\40\141\x6e\141l\x79z\x65d", null, $this->getFilename('.log'));  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xa7 = $xa5->getTableName('eav_entity_type');  $xa8 = $xa6->select()->from($xa7)->where('entity_type_code=\'catalog_product\'');  $x67 = $xa6->fetchAll($xa8);  $xa9 = $x67[0]['entity_type_id'];  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xaa = $xa5->getTableName('directory_currency_rate');  $xa8 = $xa6->select()->from($xaa)->where('currency_from=\'' . $x7b . '\'');  $x57 = $xa6->fetchAll($xa8);  $xab = array();  foreach ($x57 as $x56) { $xab[$x56['currency_to']] = $x56['rate'];  } $this->_currencies = $xab;  if ($this->_debug) { echo "<\x62r><\142\x72>\55-\x2d\x2d\55\55\55\55\x2d--\55\x20\x43UR\122\105N\103\x49E\x53\x20---\55\55-\55\x2d-\55\x2d\x2d\x2d\55\55\x2d\74\142\162\76";  $x171($xab);  } if ($this->_log) Mage::log("\x0a\76\x3e\x3e>>>\x3e>>\76\x3e\76\x3e\x3e\x3e>>\76>>\x3e\x3e\x3e\x3e\76>\x3e\x3e\x3e>\76\76\x3e>\x3e>>\76>\76>>\x3e\x3e>\76 Curr\x65nc\151\145\163 \162\141\164\x65\x20c\x6f\x6c\154ec\164\145\144", null, $this->getFilename('.log'));  $xac = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($xa9) ->addSetInfo() ->getData();  $xad = array();  $xae = array();  foreach ($xac as $x4b => $x9f) { if ($x177($x9f['attribute_code'], $attributesRequired)) { $x175($xad, $x9f['attribute_code']);  $xae[$x9f['attribute_code']] = $x9f['frontend_input'];  } } if ($x165($xad) > $this->max_attribute) { $xaf = false;  } else { $xaf = true;  } if (!$x177('special_price', $xad)) $xad[] = 'special_price';  if (!$x177('special_from_date', $xad)) $xad[] = 'special_from_date';  if (!$x177('special_to_date', $xad)) $xad[] = 'special_to_date';  if (!$x177('price_type', $xad)) $xad[] = 'price_type';  if (!$x177('price', $xad)) $xad[] = 'price';  $xad[] = 'tax_class_id';  foreach ($x9c as $xb0) { if (!$x177($xb0->code, $xad) && $xb0->checked) if (!$x177($xb0->code, array("\151\163\137\x69n\137\x73t\x6fc\x6b", "\x71ty", "e\x6e\164\x69t\x79\137id", "\143r\145\x61\164e\144\x5f\141\x74", "\165p\x64at\x65\x64_\x61\x74"))) $xad[] = $xb0->code;  } if ($this->_debug) { echo "\74b\x72>\74\x62\162>-\x2d-\x2d\x2d\x2d\55-\x2d\x2d-\55\x20\101\x54\124\x52\x49\102\125T\105S\40\55-\x2d\x2d\x2d\55--\55\55---\x2d\55-\74\142\162\76";  $x171($xad);  } if ($this->_log) Mage::log("\x0a>>>>\x3e\76\76\x3e\x3e\x3e\76\76>>>>\x3e\76>>\x3e\76>>>\x3e>\x3e\76\76>\76\x3e>\76\76\x3e>\76\76>>>>\76>\40L\151\x73t\40o\146\40r\145\x71\x75\x69r\x65\144\x20at\164\x72ib\165\164\145\163\x20\x63\x6fl\x6c\145\x63t\x65\x64", null, $this->getFilename('.log'));  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xb1 = $xa5->getTableName('eav_attribute_option_value');  $xa8 = $xa6->select();  $xa8->from($xb1);  $xa8->where("\x73\164ore\x5fi\144\x3d" . $x77 . ' OR store_id=0');  $xa8->order(array('option_id', 'store_id'));  $xb2 = $xa6->fetchAll($xa8);  foreach ($xb2 as $xb3) { $xb4[$xb3['option_id']][$xb3['store_id']] = $xb3['value'];  } if ($this->_debug) { echo "\74\142r\76<\x62\x72\76\55-\x2d\x2d-\x2d\x2d-\55-\x2d\x2d\x20\x41\x54\124\x52I\x42\125T\105\123\40\x4c\101BE\114\x20\x2d\x2d-\55\x2d--\55-\x2d\55-\x2d\55\x2d\x2d\x3c\142\x72\x3e";  $x171($xb4);  } if ($this->_log) Mage::log("\x0a>\x3e>\x3e\76>\76\76>\x3e>>\x3e\76\76\76\76\x3e\x3e\x3e\x3e\76\x3e\x3e\x3e\x3e\76\x3e\76>\76\x3e>\x3e\76\76\x3e>>>\x3e>>\76\x3e\x3e L\x69\x73\x74\x20o\x66\40a\x74\x74rib\165\x74\145 \154\x61b\x65\x6cs\40c\157l\x6ce\143ted", null, $this->getFilename('.log'));  $xb5 = $xa5->getTableName('tax_class');  $xb6 = $xa5->getTableName('tax_calculation');  $xb7 = $xa5->getTableName('tax_calculation_rate');  $xb8 = $xa5->getTableName('directory_country_region');  $xb9 = $xa5->getTableName('customer_group');  $xa8 = $xa6->select();  $xa8->from($xb5)->order(array('class_id', 'tax_calculation_rate_id'));  $xa8->joinleft(array('tc' => $xb6), 'tc.product_tax_class_id = ' . $xb5 . '.class_id', 'tc.tax_calculation_rate_id');  $xa8->joinleft(array('tcr' => $xb7), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id'));
 $xa8->joinleft(array('dcr' => $xb8), 'dcr.region_id=tcr.tax_region_id', 'code');  $xa8->joinInner(array('cg' => $xb9), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"');  $xba = $xa6->fetchAll($xa8);  $x5b = array();  $x51 = '';  foreach ($xba as $xbb) { if ($x51 != $xbb['class_id']) $xbc = 0;  else { $xbc++;  } $x51 = $xbb['class_id'];  $x5b[$xbb['class_id']][$xbc]['rate'] = $xbb['rate'];  $x5b[$xbb['class_id']][$xbc]['code'] = $xbb['code'];  $x5b[$xbb['class_id']][$xbc]['country'] = $xbb['tax_country_id'];  } $this->_rates = $x5b;  if ($this->_debug) { echo "<\x62\162\x3e<\x62\162>\x2d\x2d\55\55\x2d\x2d\x2d\55\x2d\x2d-\x2d \x54A\130 C\x4c\101S\x53\x20-\x2d\55---\x2d-\x2d\55\x2d\55\55\x2d-\x2d\74br\76";  $x171($x5b);  } if ($this->_log) Mage::log("\x0a>\x3e\76\x3e>\76\76\76\76\76>\x3e>\76\x3e>\x3e\x3e\76\x3e\76\76>\x3e>\76\x3e\x3e\76\x3e>\76\x3e\76>\x3e\x3e\x3e\76\76\76\x3e>\x3e\76> Ta\170\x20\162at\145 \143o\x6c\x6ce\x63\164e\144", null, $this->getFilename('.log'));  $xbd = $xa5->getTableName('review');  $xbe = $xa5->getTableName('review_store');  $xbf = $xa5->getTableName('rating_option_vote');  $xc0 = $xa6->select()->distinct('review_id');  $xc0->from(array("\x72" => $xbd), array("C\117\x55\116\x54(\104I\x53\x54\111\x4e\x43\124\40\x72\x2e\162e\166\x69\x65\x77\x5f\x69\x64\x29 AS c\157\x75\x6e\164", 'entity_pk_value'));  $xc0->joinleft(array('rs' => $xbe), 'rs.review_id=r.review_id', 'rs.store_id');  $xc0->joinleft(array('rov' => $xbf), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $xc0->where("st\141\x74us\x5fi\144=\61\x20\141\x6ed\x20\145\x6e\x74i\164\x79\x5f\x69\x64=\61");  $xc0->group(array('r.entity_pk_value', 'rs.store_id'));  $xc1 = $xa6->select();  $xc1->from(array("\x72" => $xbd), array("C\117\x55\116\x54(\104I\x53\x54\111\x4e\x43\124\40\x72\x2e\162e\166\x69\x65\x77\x5f\x69\x64\x29 AS c\157\x75\x6e\164", 'entity_pk_value', "\x28\x53ELEC\124\40\x30)\x20\x41\x53 \40\x73\164\157\162e\x5f\x69\x64"));  $xc1->joinleft(array('rs' => $xbe), 'rs.review_id=r.review_id', array());  $xc1->joinleft(array('rov' => $xbf), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');  $xc1->where("st\141\x74us\x5fi\144=\61\x20\141\x6ed\x20\145\x6e\x74i\164\x79\x5f\x69\x64=\61");  $xc1->group(array('r.entity_pk_value'));  $xa8 = $xa6->select() ->union(array($xc0, $xc1));  $xa8->order(array('entity_pk_value', 'store_id'));  $xc2 = $xa6->fetchAll($xa8);  $xc3 = array();  foreach ($xc2 as $xc4) { $xc3[$xc4['entity_pk_value']][$xc4['store_id']]["cou\x6e\x74"] = $xc4["cou\x6e\x74"];  $xc3[$xc4['entity_pk_value']][$xc4['store_id']]['score'] = $xc4['score'];  } if ($this->_log) Mage::log("\x0a>\x3e\x3e\76>\76>>\x3e>\x3e\x3e\x3e\76\x3e\x3e>>\x3e\x3e\x3e>\x3e\x3e\x3e\x3e\x3e\x3e>\76>\76>>>\76\76\76\76\76\x3e\76\76\76\x3e> R\145v\x69ew\x73 c\157\x6c\x6c\x65ct\145\144", null, $this->getFilename('.log'));  $xa5 = Mage::getSingleton('core/resource');  $xa6 = $xa5->getConnection('core_read');  $xc5 = $xa5->getTableName('catalog_product_entity_media_gallery');  $xc6 = $xa5->getTableName('catalog_product_entity_media_gallery_value');  $xa8 = $xa6->select(array("D\111\x53\x54I\116C\x54\x20\166a\x6c\x75\145"));  $xa8->from($xc5);  $xa8->joinleft(array('cpemgv' => $xc6), 'cpemgv.value_id = ' . $xc5 . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));  $xa8->where("va\154u\145\74\x3e\124\x52\111\115\50'\x27\x29\40A\x4eD \50s\x74\x6fr\x65\137i\x64=" . $x77 . ' OR store_id=0)');  $xa8->order(array('position', 'value_id'));  $xc7 = $xa6->fetchAll($xa8);  foreach ($xc7 as $xc8) { if ($xc8['disabled'] != 1 && $xc8['value'] != '') { $xc9[$xc8['entity_id']]['src'][] = $xc8['value'];  $xc9[$xc8['entity_id']]['disabled'][] = $xc8['disabled'];  } } if ($this->_debug) { echo "\x3c\x62\162>\x3c\x62\x72\76\55\55-\x2d--\x2d-\x2d-\x2d\x2d\40\111MA\107E\x53\x20-\x2d-\x2d\55\55-\55\55--\x2d\x2d-\x2d\x2d<\x62\x72\x3e";  $x171($xc9);  } if ($this->_log) Mage::log("\x0a\x3e\x3e\x3e>\76\x3e>\x3e\x3e>\x3e>\x3e\x3e>\76>>\x3e\76\76\x3e\76>\x3e\76>>>>>\x3e\x3e\x3e\x3e\76\x3e>\76\x3e\76>\x3e\76\x3e\x3e Im\x61\x67\145\x73\40\143\x6f\x6c\154\x65\x63\164e\x64", null, $this->getFilename('.log'));  Mage::app()->setCurrentStore($x77);  $xca = $xa5->getTableName("\143a\x74\x61\x6c\x6f\147\x69\156\166\145n\164\157r\x79\137\x73\164o\x63k\137\151\x74e\155");  $xcb = $xa5->getTableName("\143\x6f\162e_\x75\x72l\x5f\x72\x65\167\162\151\x74\145");  $xaa = $xa5->getTableName('catalog_category_product');  $xcc = $xa5->getTableName('catalog_category_product_index');  $xcd = $xa5->getTableName('catalog_product_index_price');  $xce = $xa5->getTableName('catalog_product_super_link');  $xcf = $xa5->getTableName('catalog_product_link');  $xd0 = $xa5->getTableName('catalog_product_bundle_selection');  ($x176(Mage::getVersion(), '1.6.0', '<')) ? $xa2 = "\x6f\160\164\x69\x6f\156\163='\47" : $xa2 = "\x49\123N\x55\x4c\x4c\x28\157ptio\156\x73\x29";  switch (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145")) { case 1 : $xd1 = "A\116\x44\x20\x75\162l\x2e\x74a\162\x67\x65\164_\160\141\164\x68 \x4e\117\x54 \x4c\x49\x4b\x45\40\47%\143a\x74\145\x67o\x72\x79%\x27";  $xd2 = 'MAX';  break;  default : $xd1 = "A\x4e\x44\40ur\x6c\x2eta\162\147e\x74\137\x70\141th \114\x49KE \x27\45c\x61\x74e\x67\x6fr\171\x25'";  $xd2 = 'GROUP_CONCAT';  break;  break;  } $xd3 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("\144\141t\141f\x65\145\x64ma\156\141\147\145\x72/\163\x79\163\164\145\x6d/d\x69s\x61\x62\154\145d")) $xd3->addFieldToFilter("\x73t\141\164\165\163", array('gteq' => 1));  else $xd3->addFieldToFilter("\x73t\141\164\165\163", 1);  $xd3->addAttributeToFilter('type_id', array("\151n" => "\143o\x6ef\151\x67\x75r\141\x62l\145"));  $xd3->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $xd3->addAttributeToSelect($xad, $xaf);  $xd3->getSelect()->joinLeft($xce . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));  $xd3->getSelect()->joinLeft($xca . ' 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', "\x6d\x69\x6e_\161t\x79" => "\x6d\x69\x6e_\161t\x79", "\x6din\x5f\x73ale\137q\164\x79" => "\x6din\x5f\x73ale\137q\164\x79"));  if (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145")) $xd3->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  $xd3->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');  $xd3->getSelect()->joinLeft($xcc . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $xd4 = 0;  $xd5 = clone $xd3;  $xd5->getSelect()->columns("C\x4fUNT\50D\111\123TI\116CT\x20\x63\x70\163l\x2epa\x72\x65\x6e\x74\x5fi\x64) As\40tota\x6c")->group('e.entity_type_id');  ;  $xd6 = $xd5->getFirstItem()->getTotal();  $xd7 = $x178($xd6 / $this->_sqlSize);  while ($xd4 < $xd7) { $xd8 = clone $xd3;  $xd8->getSelect()->group(array('cpsl.parent_id'));  $xd8->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xd4));  if ($this->_sqlSize * ($xd4 + 1) > $xd6) $xd9 = $xd6;  else $xd9 = $this->_sqlSize * $xd4;  $xd4++;  foreach ($xd8 as $xda) { foreach ($x167("\54", $xda->getChildIds()) as $xdb) { $xdc[$xdb] = $xda;  $xdd[$xdb]['categories_ids'] = $xda->getCategories_ids();  $xdd[$xdb]['parent_id'] = $xda->getId();  $xdd[$xdb]['parent_sku'] = $xda->getSku();  $xdd[$xdb]['parent_request_path'] = $xda->getRequestPath();  } } if ($this->_log) Mage::log("\x0a\76>\x3e\x3e>\x3e\76>\76\x3e\x3e\76>\76>\x3e\76>>>>>>>\x3e\76\76\x3e\x3e\76>>\76>>\76>\76\x3e\76\76\76>\76>\76\40\106\145\164\x63\150\x69n\x67\40\143\157nf\x69\147\165\162\x61\142le \x70\162\157d\x75c\164s\40f\162\x6f\x6d " . ($this->_sqlSize * ($xd4 - 1) + 1) . "\40to " . $xd9, null, $this->getFilename('.log'));  } $this->configurable = $xdc;  if ($this->_debug) { echo "\74\142\162\x3e\74\x62\162>\x2d--\x2d-\x2d\55\x2d--\x2d\55 C\117\x4eF\111\x47\x55\122\x41\x42\x4c\105S\x20--\55-\x2d\55-\x2d\55-\55\55-\55-\55\x3c\142r\76";
 echo $xd3->getSelect() . '<br><br>';  $x171($xdd);  } $xd3 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("\144\141t\141f\x65\145\x64ma\156\141\147\145\x72/\163\x79\163\164\145\x6d/d\x69s\x61\x62\154\145d")) $xd3->addFieldToFilter("\x73t\141\164\165\163", array('gteq' => 1));  else $xd3->addFieldToFilter("\x73t\141\164\165\163", 1);  $xd3->addAttributeToFilter('type_id', array("\151n" => "\143o\x6ef\151\x67\x75r\141\x62l\145"));  $xd3->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $xd3->getSelect()->joinLeft($xce . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');  $xd3->getSelect()->joinLeft($xca . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)'));  $xde = array();  $xd4 = 0;  $xd5 = clone $xd3;  $xd5->getSelect()->columns("C\x4fUNT\50D\111\123TI\116CT\x20\x63\x70\163l\x2epa\x72\x65\x6e\x74\x5fi\x64) As\40tota\x6c")->group('e.entity_type_id');  ;  $xd6 = $xd5->getFirstItem()->getTotal();  $xd7 = $x178($xd6 / $this->_sqlSize);  while ($xd4 < $xd7) { $xd8 = clone $xd3;  $xd8->getSelect()->group(array('cpsl.parent_id'));  $xd8->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xd4));  if ($this->_sqlSize * ($xd4 + 1) > $xd6) $xd9 = $xd6;  else $xd9 = $this->_sqlSize * $xd4;  $xd4++;  foreach ($xd8 as $xdf) { $xde[$xdf->getId()] = $xdf->getQty();  } if ($this->_log) Mage::log("\x0a\x3e\x3e>\x3e>>\x3e>\x3e\76\x3e>>\x3e\76\76>>\x3e\x3e\x3e>>>\x3e>\x3e\76\x3e\x3e>\76\x3e>\76>>>>>\76\x3e>\x3e\x3e\x3e\40F\x65t\x63\150\151n\x67 c\157\156\x66\151\x67\165r\x61\x62le \161t\x79 \146\162\x6fm\x20" . ($this->_sqlSize * ($xd4 - 1) + 1) . "\40to " . $xd9, null, $this->getFilename('.log'));  } $this->configurableQty = $xde;  if ($this->_debug) { echo "\74\142r>\x3cb\162\76\x2d\x2d-\55-\x2d\55\55-\55\x2d\55 \x43\x4f\x4e\x46\x49\107\x55\x52\x41\x42LE\x53 \x51T\x59\40\x2d\x2d\55\55-\55\x2d\55\55--\x2d\55-\x2d-<\x62\x72>";  echo $xd3->getSelect() . '<br><br>';  $x171($xde);  } $xce = $xa5->getTableName("\143\141t\141\x6co\x67\x5fp\x72o\x64\165\143\164\137\x73up\145\162_\154\x69\156k");  $xe0 = $xa5->getTableName("\x63\x61\x74\x61\x6cog\x5f\x70\x72\x6f\x64\165\x63\164\137\x73up\145\x72\x5f\141\x74t\x72i\142\165\x74\x65");  $xe1 = $xa5->getTableName("\143\141\164al\x6fg_\x70ro\x64\x75ct\137e\156\164\151t\171\x5fi\x6e\164");  $xe2 = $xa5->getTableName("\143atal\157\147\x5f\x70\x72\x6f\x64u\143t_s\x75\160\145r\137\x61\164\x74ri\x62\165\x74\145\x5fp\162\x69ci\156\x67");  $xe3 = $xa6->select();  $xe3->from(array("\x63\160\163\x6c" => $xce), array("\x70a\x72\x65\156\x74_\x69\x64", "\x70\x72\157\144u\143\164\137i\x64"));  $xe3->joinleft(array("c\160sa" => $xe0), "\143\160\x73\141.\160r\x6fdu\x63t\137\151\144\40\75 cp\x73l\x2ep\141r\x65\x6e\164_i\x64", array("\141\x74\164\x72i\142\x75t\145\137\151d"));  $xe3->joinleft(array("c\x70\145\151" => $xe1), "\x63\x70\x65\151\x2e\145\x6e\164\151\164y\x5f\x69d\x20= cps\154\x2e\160ro\x64\165c\x74_\x69\144\x20\101N\x44\x20cp\145\x69\56a\164\x74\x72\x69\x62u\x74e\x5f\151\x64 \x3d\x20\143p\163\141.a\164\164ri\142ute\x5f\x69d", array("\166a\154\x75\145" => "\166a\154\x75\145"));  $xe3->joinleft(array("cp\163\x61\x70" => $xe2), "\x63ps\x61\160\x2e\160\x72\x6fduct_\x73u\160e\162\x5fa\x74\x74\162\x69\142\x75te\137\x69\x64\x20=\40c\x70\x73a\x2e\x70r\x6fdu\143t\137\163\x75p\x65\162_\141\164\x74r\x69\x62\x75\164\x65\x5f\x69d \x41ND\40cp\145i.\x76\141\154\165e\x20\75\x20cp\163\x61\160.\x76a\x6c\165\x65\x5f\x69\x6e\144ex", array("pri\143\151n\147_\x76al\x75\145" => "pri\143\151n\147_\x76al\x75\145", "is_per\143e\x6e\x74" => "is_per\143e\x6e\x74"));  $xe3->order(array("\x63ps\x6c\x2e\x70\x61\162ent_id", "\143\160\163\x6c\x2ep\162o\x64\165\143\164\137\151\144"));  $xe3->group(array("\x63ps\x6c\x2e\x70\x61\162ent_id", "\143\160\163\x6c\x2ep\162o\x64\165\143\164\137\151\144", "\x63p\x73\141\56\x61t\164\x72\151\x62\165t\x65_i\144"));  $xe4 = $xa6->fetchAll($xe3);  $xe5 = array();  foreach ($xe4 as $xdf) { $xe5[$xdf["\x70a\x72\x65\156\x74_\x69\x64"]][$xdf["\x70\x72\157\144u\143\164\137i\x64"]][$xdf['attribute_id']]['attribute_id'] = $xdf["\141\x74\164\x72i\142\x75t\145\137\151d"];  $xe5[$xdf["\x70a\x72\x65\156\x74_\x69\x64"]][$xdf["\x70\x72\157\144u\143\164\137i\x64"]][$xdf['attribute_id']]['value'] = $xdf["\166a\154\x75\145"];  $xe5[$xdf["\x70a\x72\x65\156\x74_\x69\x64"]][$xdf["\x70\x72\157\144u\143\164\137i\x64"]][$xdf['attribute_id']]['pricing_value'] = $xdf["pri\143\151n\147_\x76al\x75\145"];  $xe5[$xdf["\x70a\x72\x65\156\x74_\x69\x64"]][$xdf["\x70\x72\157\144u\143\164\137i\x64"]][$xdf['attribute_id']]['is_percent'] = $xdf["is_per\143e\x6e\x74"];  } if ($this->_log) Mage::log("\x0a>\x3e\x3e>\76\x3e\x3e\76>\76>>\76\76>\x3e\76\76\x3e\x3e>\x3e\x3e\76\x3e\76\76\x3e\76\76\76\x3e>>>\x3e\x3e\x3e>>>>\76\x3e\x3e\76\40F\x65\164c\x68i\x6e\147\x20\143\x6f\x6e\x66ig\x75\162\141\x62l\145\40p\162\x69ce\163 \143o\154\154\145\143\164\145d", null, $this->getFilename('.log'));  $this->configurablePrices = $xe5;  if ($this->_debug) { echo "\x3c\142\162\x3e<\142r\76-\55\x2d\x2d\55-\55\55\x2d-\x2d-\x20C\x4f\x4e\106\111\107\x55\x52AB\x4c\105\x53\x20\x50\122\x49\103\105S \55\x2d\55\x2d\55\55-\55\55\x2d\55\55\x2d-\x2d-\x3c\x62r>";  echo $xe3 . '<br><br>';  $x171($xe5);  } $xce = $xa5->getTableName("\143\141t\141\x6co\x67\x5fp\x72o\x64\165\143\164\137\x73up\145\162_\154\x69\156k");  $xe0 = $xa5->getTableName("\x63\x61\x74\x61\x6cog\x5f\x70\x72\x6f\x64\165\x63\164\137\x73up\145\x72\x5f\141\x74t\x72i\142\165\x74\x65");  $xe6 = $xa5->getTableName("\143a\x74\x61\x6c\157\x67_\x70ro\144\x75\x63\164\137\x73\x75pe\x72_\x61t\164rib\x75\x74e_\x6cab\145\x6c");  $xe7 = $xa6->select();  $xe7->from(array("\x63\160\163\x6c" => $xce), array("\x70a\x72\x65\156\x74_\x69\x64", "\x70\x72\157\144u\143\164\137i\x64"));  $xe7->joinleft(array("c\160sa" => $xe0), "\143\160\x73\141.\160r\x6fdu\x63t\137\151\144\40\75 cp\x73l\x2ep\141r\x65\x6e\164_i\x64", array("\141\x74\164\x72i\142\x75t\145\137\151d"));  $xe7->joinleft(array("c\160\x73\x61\x6c" => $xe6), "\143p\163a\x6c.\160\x72\157d\x75\143\x74\137\163u\160\x65\x72\137\141\164\164\162i\x62\x75\164\x65\137id\40\x3d \143p\x73\141\x2eprod\165\143t\x5f\163u\160\x65\162\x5f\141\x74\x74ri\142\165\164\145_\151\x64", array("\162\145\x6c\x61\164\x69\x6f\156s\150ip" => "\107\x52\117\x55\120_\x43O\x4e\x43A\x54(\x44\111\x53T\x49\x4e\103\124\40\143\x70\163\141\154\56\x76\141\x6c\165e \123\x45P\101\x52ATOR\40'\76\76>')"));  $xe7->order(array("\x63ps\x6c\x2e\x70\x61\162ent_id", "\143\160\163\x6c\x2ep\162o\x64\165\143\164\137\151\144"));  $xe7->group(array('cpsl.parent_id', 'cpsl.product_id'));  $xe8 = $xa6->fetchAll($xe7);  foreach ($xe8 as $xe9) { $xea[$xe9['product_id']] = $xe9['relationship'];  $xea[$xe9['parent_id']] = $xe9['relationship'];  } $this->_productRelationShip = $xea;  if ($this->_debug) { echo "\74\142r><b\x72\76\55\55\x2d\x2d\x2d\55\55-\x2d\x2d\55\x2d\40\122\105L\x41\124\111\x4f\x4eS\110\111\x50\40\x2d\x2d\55\55\55\x2d-\55\55\x2d\x2d--\55\x2d\55<\142r\x3e";  echo $xe7 . '<br><br>';  $x171($xea);  } if ($this->_log) Mage::log("\x0a\76\x3e\76>\x3e\76>>\x3e\x3e\76\76\x3e\x3e>>\x3e>\76\76\x3e>\76\x3e\76\76\76\x3e\x3e\76\x3e\76>\76\76\x3e\x3e\76\x3e\76>\76>\x3e\76>\x20Re\154\141t\151\x6fns\150\151p \x63\x6f\154l\145cte\144", null, $this->getFilename('.log'));  $xd8 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("\144\141t\141f\x65\145\x64ma\156\141\147\145\x72/\163\x79\163\164\145\x6d/d\x69s\x61\x62\154\145d")) $xd8->addFieldToFilter("\x73t\141\164\165\163", array('gteq' => 1));  else $xd8->addFieldToFilter("\x73t\141\164\165\163", 1);  $xd8->addAttributeToFilter('type_id', array("\151n" => "\147\x72\157u\x70e\x64"));  $xd8->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $xd8->addAttributeToSelect($xad, $xaf);  $xd8->getSelect()->joinLeft($xcf . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));  $xd8->getSelect()->joinLeft($xca . ' 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', "\x6d\x69\x6e_\161t\x79" => "\x6d\x69\x6e_\161t\x79", "\x6din\x5f\x73ale\137q\164\x79" => "\x6din\x5f\x73ale\137q\164\x79"));  if (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145")) $xd8->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  $xd8->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');  $xd8->getSelect()->joinLeft($xcc . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $xd8->getSelect()->group(array('cpl.product_id'));  $xeb = array();  foreach ($xd8 as $xda) { foreach ($x167("\54", $xda->getChildIds()) as $xdb) { $xeb[$xdb] = $xda;  $xec[$xdb]['categories_ids'] = $xda->getCategories_ids();  $xec[$xdb]['parent_id'] = $xda->getId();  $xec[$xdb]['parent_sku'] = $xda->getSku();  $xec[$xdb]['parent_request_path'] = $xda->getRequestPath();  } } $this->grouped = $xeb;  if ($this->_debug) { echo "\x3c\x62r\76\x3cbr\76\x2d\55\x2d\55\55\55-\x2d\55\55--\40\107R\x4f\x55P\x45\104 -\55-\x2d\x2d\x2d\55-\x2d-\x2d\55\x2d\55\x2d\55\x3c\x62r\76";  echo $xd8->getSelect() . '<br><br>';  $x171($xec);  } if ($this->_log) Mage::log("\x0a\x3e>\x3e\76\76\x3e>\76\76\x3e\x3e\76>\x3e>>\x3e\x3e>\76>>\x3e>\x3e\x3e\x3e\76\76\x3e\x3e>\x3e\x3e\76>\76\x3e\76>\76>\76\x3e>\x3e R\x65l\x61\x74\151\x6fns\40\x77\151\x74\150\40gro\x75\160\x65\x64\x20\x70rodu\143ts\x20\x64\145\164\x65\x63t\x65d", null, $this->getFilename('.log'));  $xd8 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("\144\141t\141f\x65\145\x64ma\156\141\147\145\x72/\163\x79\163\164\145\x6d/d\x69s\x61\x62\154\145d")) $xd8->addFieldToFilter("\x73t\141\164\165\163", array('gteq' => 1));  else $xd8->addFieldToFilter("\x73t\141\164\165\163", 1);  $xd8->addAttributeToFilter('type_id', array("\151n" => "bu\x6e\144\154\x65"));  $xd8->addAttributeToFilter('visibility', array("n\x69\x6e" => 1));  $xd8->addAttributeToSelect($xad, $xaf);  $xd8->getSelect()->joinLeft($xd0 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));  $xd8->getSelect()->joinLeft($xca . ' 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', "\x6d\x69\x6e_\161t\x79" => "\x6d\x69\x6e_\161t\x79", "\x6din\x5f\x73ale\137q\164\x79" => "\x6din\x5f\x73ale\137q\164\x79"));  if (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145")) $xd8->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  $xd8->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');
 $xd8->getSelect()->joinLeft($xcc . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  $xd8->getSelect()->group(array('e.entity_id'));  $xed = array();  foreach ($xd8 as $xda) { foreach ($x167("\54", $xda->getChildIds()) as $xdb) { $xed[$xdb] = $xda;  $xee[$xdb]['parent_id'] = $xda->getId();  $xee[$xdb]['parent_sku'] = $xda->getSku();  $xee[$xdb]['parent_request_path'] = $xda->getRequestPath();  $xee[$xdb]['categories_ids'] = $xda->getCategories_ids();  } } $this->bundle = $xed;  if ($this->_debug) { echo "<\142\x72\x3e\74\x62\x72\76\x2d\55-----\55-\x2d-\55\x20B\125\x4e\104\x4cE\40\55\55\x2d\55\x2d\x2d\55\55\x2d\55\x2d\55--\x2d-<\x62\x72>";  echo $xd8->getSelect() . '<br><br>';  $x171($xee);  } if ($this->_log) Mage::log("\x0a\76\x3e\x3e\76>>>\76>\76\x3e\76\x3e\x3e>\x3e\x3e\x3e>\76>>>>>\x3e>>\x3e>\76\76\x3e>>>>\76\76\76\x3e\76>\x3e\76>\40\122\x65\x6c\x61t\x69\x6fns\x20\167i\x74\x68\x20\142\165\x6e\144\154e\x20p\x72\x6f\x64\x75\x63\164s \x64\x65t\x65ct\x65\144", null, $this->getFilename('.log'));  $xef = Mage::getModel('eav/entity') ->$x179('catalog_product') ->getTypeId();  $xf0 = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xef);  foreach ($xf0 as $xf1) { $xf2[$xf1->getId()] = $xf1->getAttributeSetName();  } $xf3 = $xa5->getTableName("c\x61t\141\x6c\x6fg_pr\157\x64\165\143t\137\145nti\x74y\137\x74i\145\162_\160\162\x69\x63e");  $xf4 = Mage::getModel('core/store')->load($x77)->getWebsiteId();  $xf5 = $xa6->select();  $xf5->from(array("\x63p\x65\164\160" => $xf3), array("e\x6e\164\x69t\x79\137id", "\x61l\x6c_\x67r\157\x75\160s", "\143\165\x73\x74o\155er\x5fg\162\157u\160_\x69d", "\166a\154\x75\145", "\x71ty"));  $xf5->order(array("c\x70\x65tp\x2e\145\156\164i\x74\x79\137\x69\x64", "\143\160e\x74\x70\56\x63usto\x6d\145\162_\147\x72\x6fu\x70\x5fi\144", "\143\160\145\164\160.\161t\x79"));  $xf5->where("\x63p\145\x74\x70\56\x77\x65\142s\151\x74\145\x5f\151\144\x3d" . $xf4 . "\x20\117\122\x20\x63pe\164\x70\56\167e\x62sit\145\x5f\x69d\x3d\x30");  $xc2 = $xa6->fetchAll($xf5);  $xf6 = array();  foreach ($xc2 as $xf7) { if ($xf7['all_groups'] == 1) $xf6[$xf7["e\x6e\164\x69t\x79\137id"]][32000][] = array("\x71ty" => $xf7['qty'], "\166a\154\x75\145" => $xf7['value']);  else $xf6[$xf7["e\x6e\164\x69t\x79\137id"]][$xf7["\143\165\x73\x74o\155er\x5fg\162\157u\160_\x69d"]][] = array("\x71ty" => $xf7['qty'], "\166a\154\x75\145" => $xf7['value']);  } $this->_tierPrices = $xf6;  if ($this->_debug) { echo "\74\x62\x72><\142\x72\76-\55\55\55\x2d\x2d\55\x2d--\x2d\55\x20TIE\122\x53 \120\x52\x49\103E\x53\40\55---\55\55\55\x2d\x2d-\x2d\55-\x2d\55\x2d<\142r\76";  echo $xf5 . '<br><br>';  $x171($xf6);  } if ($this->_log) Mage::log("\x0a\76\x3e\76\x3e\76>\76\x3e\76>\76\x3e>\76>\x3e\x3e\76\x3e\x3e\x3e\76>\x3e>\x3e\x3e\76>\x3e>\x3e\x3e\x3e\76>\x3e>\x3e\76>\76>\76\x3e> \124\x65i\145\162\163\40\120\x72\151\143\145\x20c\157\154lected", null, $this->getFilename('.log'));  $xf8 = $xa5->getTableName("c\x61t\141\x6c\x6fg_p\x72\x6fd\165\143\x74_o\160\164\151\x6fn");  $xf9 = $xa5->getTableName("\x63\141\x74\x61\154\x6f\x67\x5f\x70\x72\157du\143t\137\157p\164\151\157\x6e_t\x69t\154e");  $xfa = $xa5->getTableName("\143a\164\141\154og_p\x72o\x64\x75\x63\x74_o\x70\x74\x69on\137\164\x79\160\145\x5f\x76al\165\145");  $xfb = $xa5->getTableName("\143\x61\x74\x61\x6co\x67\x5f\160\162\157d\165\143t\137op\x74\151\157n\137t\x79p\x65_t\151\164\x6ce");  $xfc = $xa5->getTableName("\143\141\x74\141\154\157\x67_pr\x6f\x64\165\143t\137o\160t\151\x6fn\137ty\160e\x5f\x70r\x69c\145");  $xfd = $xa6->select();  $xfd->from(array("\x63\x70o" => $xf8), array("\x70\x72\157\144u\143\164\137i\x64"));  $xfd->joinleft(array("\143\160\x6f\x74" => $xf9), "\x63\x70ot\x2e\157\x70ti\157n\x5f\x69\x64\x3d\143\x70o.o\160t\x69\x6fn_i\x64\40A\x4e\104\x20\x63\160\x6ft\56\x73t\x6fre\x5f\x69\x64=\x30", array("o\160t\x69\x6fn" => "\164\x69t\x6c\x65", "\x6fp\164i\x6fn\x5f\151\144", "\163\164\157\162e_i\x64"));  $xfd->joinleft(array("\x63\x70\157\x74\166" => $xfa), "\143\160o\164v.\x6fpt\151o\156\137\x69\x64 \75\40\143\x70o\56\157pti\x6fn\137\x69\144", "s\153\x75");  $xfd->joinleft(array("\143\160o\164\x74" => $xfb), "c\x70\x6f\164\164\x2e\157\160\164\x69\x6f\156\x5f\164\x79p\145\x5fi\144=\x63p\157tv\x2e\x6fpt\x69on\137\x74\171\160\145_\x69d AN\104\x20c\x70\x6ft\164.s\x74\157\162\x65\137\151d\75cp\x6f\x74.st\157r\x65\x5f\151d", "\x74\x69\x74l\x65\x20\101\123\x20\166alue");  $xfd->joinleft(array("\143\160ot\x70" => $xfc), "\143\x70\157\164p\x2e\x6fp\x74\151\x6f\x6e\137\164\x79\160e\137i\144=\x63\x70\157\x74\x76.\157pti\157n\137\x74y\160\x65\137i\144 \x41\x4e\x44\40\143\x70o\164\160\56st\x6fre\x5f\151d=\143\160\157t\56\163\164\157r\x65\x5f\151\144", array("\160ric\x65", "p\x72\151\143e\x5ftype"));  $xa8 = $xfd->order(array("\x70\x72\157\144u\143\164\137i\x64", "\x63\160\x6f\164\x76\56s\x6f\162\164\x5f\157r\144er \101\123\103"));  $xc2 = $xa6->fetchAll($xa8);  $xfe = array();  $xff = 0;  foreach ($xc2 as $x100) { $xfe[$x100["\x70\x72\157\144u\143\164\137i\x64"]][$x100["o\160t\x69\x6fn"]]["\157\x70ti\x6f\x6es"][] = array( "\166a\154\x75\145" => $x100["\166a\154\x75\145"], "s\153\x75" => $x100["s\153\x75"], "\160ric\x65" => $x100["\160ric\x65"], "p\x72\151\143e\x5ftype" => $x100["p\x72\151\143e\x5ftype"] );  $xff++;  } $this->customOptions = $xfe;  if ($this->_debug) { echo "\74\142\x72\76<b\x72\x3e\x2d--\55\x2d\55\55\x2d\55\55\x2d\x2d\40\x43\x55\123\124\117\115\40OPT\111\x4fNS\x20-\x2d\55--\x2d\55\x2d-\x2d\55\x2d-\55\x2d\x2d<\142r\x3e";  echo $xfd . '<br><br>';  $x171($xfe);  } if ($this->_log) Mage::log("\x0a\x3e\76>\x3e\x3e>\76\76>\x3e>\76\76\x3e\76\76\76>\76\x3e\x3e>\76>\76>>\76\x3e\76\76\x3e\x3e\76\x3e\x3e\x3e>>>>>\76\76>\x3e \103u\163t\x6f\155\x20op\x74\151\157\x6e\x73 \143\x6f\154l\145\143\164\145\144", null, $this->getFilename('.log'));  $x101 = new Wyomind_Datafeedmanager_Model_MyCustomOptions;  $x102 = new Wyomind_Datafeedmanager_Model_MyCustomAttributes;  if ($this->_log) Mage::log("\x0a\76\x3e\x3e>\x3e\x3e\76\76\x3e\x3e\76\x3e\76>>\76>\76>\x3e>>\76>\x3e\x3e\76>\76>\76>\x3e\76\76\x3e>\x3e>>\x3e\x3e\x3e>>>\x20C\165\x73t\x6fm\x20\x61t\164\162ib\165\x74e\163/\157p\164\151o\x6es \x73\143r\x69p\164\163 \154o\141\144e\144", null, $this->getFilename('.log'));  $xd3 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x77);  if (Mage::getStoreConfig("\144\141t\141f\x65\145\x64ma\156\141\147\145\x72/\163\x79\163\164\145\x6d/d\x69s\x61\x62\154\145d")) $xd3->addFieldToFilter("\x73t\141\164\165\163", array('gteq' => 1));  else $xd3->addFieldToFilter("\x73t\141\164\165\163", 1);  $xd3->addAttributeToFilter("\x74\x79pe\137\x69d", array("\151n" => $x99));  $xd3->addAttributeToFilter("vi\x73\151b\x69l\x69\x74y", array("\151n" => $x9a));  if ($x9b[0] != '*') $xd3->addAttributeToFilter("\141t\164\162\151\142\x75\164\145\137\163e\x74\137\x69\144", array("\151n" => $x9b));  $xd3->addAttributeToSelect($xad, $xaf);  $x103 = array("\x65q" => "\75\40\47\x25s\x27", "\156e\x71" => "\x21\x3d\40'%s\47", "\x67teq" => "\76\75\40'%s\x27", "\x6c\164\145q" => "<=\40\x27\45\163\47", "\147t" => "\76 \x27\45\163\x27", "\x6c\164" => "\x3c\x20\x27\45s'", "\x6cik\145" => "l\x69ke '\x25s\47", "n\154i\153\x65" => "n\157t\x20\154\x69k\145\x20'\x25\x73'", "\156u\154l" => "\151\163 \156\165l\154", "\156\x6f\164\x6e\x75l\x6c" => "i\163 \x6e\x6ft \156\x75ll", "\151n" => "\x69\x6e\x20\x28%s\x29", "n\x69\x6e" => "no\x74\x20\x69\156\x28\x25\x73\51", );  $x104 = '';  $x43 = 0;  $x105 = array();  foreach ($x9c as $xb0) { $xb0->value = $this->x18b($xb0->value, null);  if ($xb0->checked) { if ($xb0->condition == 'in' || $xb0->condition == 'nin') { if ($xb0->code == 'qty' || $xb0->code == 'is_in_stock') { $x106 = $x167(',', $xb0->value);  $xb0->value = "\x27" . $x15b($x106, "\x27\54\x27") . "\x27";  } else { $xb0->value = $x167(',', $xb0->value);  } } switch ($xb0->code) { case 'qty' : if ($x43 > 0) $x104.=' ' . $xb0->statement . ' ';  $x104.="\x20\x71t\x79\40" . $x17a($x103[$xb0->condition], $xb0->value);  $x43++;  break;  case 'is_in_stock' : if ($x43 > 0) $x104.=' ' . $xb0->statement . ' ';  $x104.="\x20\50\111\106\50";  $x104.="(use_config_manage_stock=1 AND $x7c=0)";  $x104.="\x20\x4fR\40";  $x104.='(use_config_manage_stock=0 AND manage_stock=0)';  $x104.="\x20\x4fR\40";  $x104.="(use_config_manage_stock=1 AND $x7c=1 AND is_in_stock=1 )";  $x104.="\x20\x4fR\40";  $x104.="(u\x73\145_\143on\146\x69\x67\x5f\155\141\156a\x67\x65\x5f\163\x74ock\75\x30\40\x41N\x44\x20\155a\156ag\x65_s\164\x6fck\75\61\40\101\x4e\104\40\151s_\151n_s\x74\x6f\x63k\75\61\40\x29";  $x104.="\54'\61\x27\x2c\x270')" . $x17a($x103[$xb0->condition], $xb0->value) . "\x29";  $x43++;  break;  default : if ($xb0->statement == "\101\116\104") { if ($x165($x105)) $xd3->addFieldToFilter($x105);  $x105 = array();  } if ($xb0->condition == "\151n") { $x107 = true;  $x108 = array();  foreach ($xb0->value as $x6b) { if (!$x166($x6b)) $x107 = true;  } if ($x107) { foreach ($xb0->value as $x6b) { $x108[] = array(array("f\151\156\x73\145\164" => $x6b));  } $x105[] = array("\141\x74\x74\162\x69\142u\x74e" => $xb0->code, $x108);  } else $x105[] = array("\141\x74\x74\162\x69\142u\x74e" => $xb0->code, $xb0->condition => $xb0->value);  } else $x105[] = array("\141\x74\x74\162\x69\142u\x74e" => $xb0->code, $xb0->condition => $xb0->value);  break;  } } };  if ($x165($x105)) $xd3->addFieldToFilter($x105);  $xd3->getSelect()->joinLeft($xca . ' 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', "\x6d\x69\x6e_\161t\x79" => "\x6d\x69\x6e_\161t\x79", "\x6din\x5f\x73ale\137q\164\x79" => "\x6din\x5f\x73ale\137q\164\x79"));
 if (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145")) $xd3->getSelect()->joinLeft($xcb . ' AS url', 'url.product_id=e.entity_id ' . $xd1 . ' AND is_system=1 AND ' . $xa2 . ' AND url.store_id=' . $x77, array('request_path' => $xd2 . '(DISTINCT request_path)'));  if (Mage::getStoreConfig("d\141ta\146\x65\145d\x6d\x61\156\x61\147e\x72\x2f\x73ys\164em\57\165\x73\x65\137p\141\x72e\156\164\137\x63at\145gor\x69\x65\x73")) $xd3->getSelect()->joinLeft($xce . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id'));  $x109 = null;  if (Mage::getStoreConfig("d\141ta\146\x65\145d\x6d\x61\156\x61\147e\x72\x2f\x73ys\164em\57\165\x73\x65\137p\141\x72e\156\164\137\x63at\145gor\x69\x65\x73")) $x109 = "O\x52\40\50\143\x61\164\x65\x67\157r\151\x65\163\137\x69\156d\145x\x2e\143at\x65\x67\157r\171\137i\144=\143\x61\x74eg\x6fr\x69\x65\163\137\160aren\164.cat\145\x67\x6f\x72y_id\x20\101\116\104 \x20\x63a\x74\145\x67\157r\151\145s\137\x69\x6e\144e\x78\x2e\160\x72\x6fduc\164\137\x69\x64=\143a\x74e\147\x6f\x72ie\x73\x5f\x70ar\145\x6e\x74\56\x70\162o\x64uct\137\x69\144 \x29";  if ($x96[0] != '*') { $x6b = 0;  $x10a = null;  foreach ($x96 as $x98) { if ($x6b > 0) $x10a.=',';  $x10a.=$x17b($x167('/', $x98));  $x6b++;  } ($x8e) ? $x10b = "\111\x4e" : $x10b = "NOT\40\x49\x4e";  if ($x176(Mage::getVersion(), '1.12.0', '<=')) { $x10a = "\x41N\x44\40\x63a\164\145g\157\x72i\x65\x73\x5fin\x64\145x\56\x63\x61\x74\145go\162\171\x5f\151d " . $x10b . "\40\x28" . $x10a . "\x29";  $xd3->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id', array());  if (Mage::getStoreConfig("d\141ta\146\x65\145d\x6d\x61\156\x61\147e\x72\x2f\x73ys\164em\57\165\x73\x65\137p\141\x72e\156\164\137\x63at\145gor\x69\x65\x73")) $xd3->getSelect()->joinLeft($xaa . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id');  $xd3->getSelect()->joinInner($xcc . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $x109 . ') AND categories_index.store_id=' . $x77 . ' ' . $x10a, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));  } else { $x10a = "A\x4e\x44\40\143\x61\164\x65\x67\x6f\x72\151\x65s\x2eca\x74e\147o\162\x79\x5f\x69\x64\x20" . $x10b . "\40\x28" . $x10a . "\x29";  $x109 = "\40\x4fR\40\143\160sl\56\x70\x61\162\145\x6e\164_\x69\144";  $xd3->getSelect()->joinInner($xaa . ' AS categories', 'categories.product_id=e.entity_id ' . $x109 . $x10a, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)'));  } } else { $xd3->getSelect()->joinLeft($xaa . ' AS categories', 'categories.product_id=e.entity_id');  if (Mage::getStoreConfig("d\141ta\146\x65\145d\x6d\x61\156\x61\147e\x72\x2f\x73ys\164em\57\165\x73\x65\137p\141\x72e\156\164\137\x63at\145gor\x69\x65\x73")) $xd3->getSelect()->joinLeft($xaa . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id');  $xd3->getSelect()->joinLeft($xcc . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $x109 . ') AND categories_index.store_id=' . $x77, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)'));  } if ($x176(Mage::getVersion(), '1.4.0', '>=')) $xd3->getSelect()->joinLeft($xcd . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xf4, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price'));  if (!empty($x104)) $xd3->getSelect()->where($x104);  if ($this->_log) Mage::log("\x0a\x3e\76\x3e>\x3e>\76>\x3e\x3e\76>\x3e\x3e\x3e>\x3e\x3e\76>>>\x3e>>\x3e\x3e>\x3e\76\76\x3e\x3e\76\x3e\76\76\76\x3e\76>>\76>\x3e>\40\x4dai\x6e s\x71\154\40\162e\161u\x65st\72\40\x0a" . $xd3->getSelect(), null, $this->getFilename('.log'));  if ($this->_debug) { echo "\x3cbr\76\x3c\142\x72>\x2d\x2d-\x2d\55-\x2d\55--\55\x2d\40MA\x49\x4e\40\123\x51\114 \122\105Q\125\x45S\x54\x20\55\55\x2d\55--\55-\55\x2d--\55\x2d-\55\74\x62r>";  } $xd4 = 0;  $xd5 = clone $xd3;  $xd5->getSelect()->columns("\x43\x4f\125NT\x28\104I\x53T\x49\116\x43\x54\x20e\x2e\145nti\164y\137i\144)\x20\101\163 to\164\141\154")->group('e.entity_type_id');  $this->_counter = $xd5->getFirstItem()->getTotal();  $xd7 = $x178($this->_counter / $this->_sqlSize);  $x9d = '';  $x10c = 1;  if ($this->_log) Mage::log("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xd7 queries )", null, $this->getFilename('.log'));  $x71 = $this->x18b($x71, null, $x86, true);  if ($x86 == 1) $x71 = $this->x18f($x71);  if ($this->_display) { if ($x86 == 1) { $x9e = $this->x18e($x71, $x8b, $x8c) . "";  } else { $x9e = $this->x18b($x87) . '<br>';  $x9e.= "\74\x74\141\142l\145\x20st\171l\x65=\47b\157\x72\144er\x3a\62px\40\x73\157\154\x69d g\162\x65\x79\x3b f\157n\164-f\141m\x69\x6c\x79\72a\x72\x69al; \40\x66\157n\164\55s\151ze:\61\62\x70x\47\40\143e\154\x6c\163\x70\141c\151n\147\75\x30\40\143\x65ll\160a\x64d\151ng\75\60 \x77i\x64\164h='\61\600\45\x27\x3e";  if ($x89) { $x9e.=$this->x190($x71, true);  } } } else { if ($x86 == 1) { $x4d->streamWrite($this->x18e($x71, $x8b, $x8c) . "");  } else { if ($x87 != '') $x4d->streamWrite($this->x18f($this->x18b($x87) . "\x0d\x0a"));  if ($x89) { $x10d = $this->x191($x71, $x6c, $x6d, $x6e);  $x10d = $this->x18f($x10d);  $x4d->streamWrite($x10d);  } } } if ($this->_log) Mage::log("\x0a\76>\76\76\x3e\x3e\76\x3e>\x3e>\x3e\x3e\x3e>>\76\x3e>>\x3e\x3e\x3e\x3e>\x3e\76\76\76>\76>\76\x3e\76\76\76>\76\x3e\x3e\76\76\x3e\76\x3e\x20\x48\145ad\145r\x20te\155\160\x6ca\x74e \160a\x72\x73\x65\x64 \141\x6e\x64 \141d\x64\145\x64", null, $this->getFilename('.log'));  while ($xd4 < $xd7) { $xd8 = clone $xd3;  if ($this->_debug) { echo "\74\x62\x72\x3e\x3c\x62\x72>-\55\x2d-\55-\55\x2d--\x2d\x2d\x20SQ\x4c\x20-\55--\x2d-\55\55-\55-\x2d---\x2d<\142\162>";  print($xd8->getSelect());  } $xd8->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xd4));  $xd8->getSelect()->group(array('e.entity_id'))->order('e.entity_id');  $xd4++;  if ($this->_sqlSize * $xd4 > $this->_counter) $xd9 = $this->_counter;  else $xd9 = $this->_sqlSize * $xd4;  if ($this->_log) Mage::log("\x0a\x3e>>\x3e>\x3e\x3e>>\76>\76\x3e\76\76\x3e\x3e>>\x3e\76\76\x3e\x3e\x3e>\x3e>\76>>>\76\76\x3e\76\76\x3e\x3e\76\76>>>\76\x3e F\x65\164c\150\x69ng\x20pr\x6f\144uc\164\163\40\146r\x6fm\x20" . ($this->_sqlSize * ($xd4 - 1) + 1) . "\40to " . $xd9, null, $this->getFilename('.log'));  $xff = 1;  foreach ($xd8 as $product) { if ($this->_debug) { echo "\x3c\142r\x3e\x3c\x62r\x3e\55--\x2d--\x2d-\55\x2d-- \120\122\117D\x55C\124\40[ \123\x4bU\40\55>\x20" . $product->getSku() . "\40\174 \111D \55\x3e\40" . $product->getId() . "]\55\55-\x2d\x2d\55--\55\55\x2d-\55\x2d\x2d\74\x62r\x3e";  echo "\x63\x61t\145g\x6f\162\151es\x20\72\x20" . $product->getCategoriesIds() . ",\40\x52oo\x74 \151d:\x20" . $x82 . "\x3c\x62\162>";  foreach ($x167(',', $product->getCategoriesIds()) as $x4b => $xa4) { echo $xa4 . "\x3d\76" . $x74[$xa4]["p\141\164\150"] . "\x3c\x62\162>";  } } if (!$x17c('safe_mode')) { $x17d(60);  } $x5f = $x84;  foreach ($xa0 as $x4b => $exp) { $value = "";  $this->option = 0;  switch ($exp['pattern']) { case '{load_options}': $xc2 = 1;  $x10e = array();  foreach ($exp['options'] as $x4b => $option) { if (isset($xfe[$product->getId()][$option])) { $xc2 = $xc2 * $x165($xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"]);  $x10e[$x4b] = 0;  } } $x49 = array();  for ($xbc = 1;  $xbc <= $xc2;  $xbc++) { $x10f = $x5f;  foreach ($exp['options'] as $x4b => $option) { if (isset($xfe[$product->getId()][$option])) { $x10f = $x15d("\173" . $option . "_l\141b\145l\175", $xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"][$x10e[$x4b]]['value'], $x10f);  $x10f = $x15d("\173" . $option . "\x5f\163\153u\175", $xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"][$x10e[$x4b]]['sku'], $x10f);  $x10f = $x15d("\173" . $option . "\137\160\162\x69\x63\x65}", $xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"][$x10e[$x4b]]['price'], $x10f);  $x10f = $x15d("\173" . $option . "\137t\x79\160\x65\175", $xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"][$x10e[$x4b]]['price_type'], $x10f);  if ($x4b > 0 || $x165($xfe[$product->getId()]) == 1 || $x165($exp['options']) < 2) $x10e[$x4b] ++;  if ($x10e[$x4b] >= $x165($xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"])) { $x10e[$x4b] = 0;  $x10e[$x4b - 1] ++;  } } } $x49[] = $x10f;  } if ($x165($x49) > 0) { if ($x86 == 1) $x5f = $x15b($x49);  else $x5f = "\x5b" . $x15b(',', $x49) . "\135";  } $this->skipOptions($x165($exp['options']));  break;  case '{use_options}': foreach ($exp['options'] as $x4b => $option) { if (isset($xfe[$product->getId()][$option])) { $x110 = array();  $x111 = array();  $x112 = array();  foreach ($xfe[$product->getId()][$option]["\157\x70ti\x6f\x6es"] as $x63) { $x110[] = $x63['value'];  $x111[] = $x63['sku'];  $x112[] = $x63['price'];  } $x5f = $x15d("\173" . $option . "_l\141b\145l\175", $x15b(',', $x110), $x5f);  $x5f = $x15d("\173" . $option . "\x5f\163\153u\175", $x15b(',', $x111), $x5f);  $x5f = $x15d("\173" . $option . "\137\160\162\x69\x63\x65}", $x15b(',', $x112), $x5f);  } } $this->skipOptions($x165($exp['options']));  break;  case '{id}' : $x113 = $this->checkReference($exp['reference'], $product);  $value = $x113->getId();  break;  case '{inc}' : $value = $x10c;  break;  case '{status}': $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x8a = "Enab\154\x65\144" : $x8a = $exp['options'][0];
 (!isset($exp['options'][1])) ? $x114 = "\104i\x73\x61\142\154e\x64" : $x114 = $exp['options'][1];  if ($x113->getStatus() == 2) $value = $x114;  else $value = $x8a;  $this->skipOptions(2);  break;  case '{attribute_set}': $x113 = $this->checkReference($exp['reference'], $product);  $value = $xf2[$x113->getAttributeSetId()];  break;  case "\x7b\x72\x65\x6ca\x74\151\157n\x73\150\x69p\x7d": $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x115 = ', ' : $x115 = $exp['options'][0];  if (isset($xea[$x113->getId()])) { $value = $x15d("\76\76\x3e", $x115, $xea[$x113->getId()]);  } $this->skipOptions(1);  break;  case '{final_price}' : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = $x113->getFinalePrice();  (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{min_price}' : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = $x113->getMinPrice();  (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{max_price}' : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = $x113->getMaxPrice();  (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{normal_price}' : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->type_id == 'bundle') $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  $this->skipOptions(2);  break;  case '{price}' : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163")) { if ($x113->type_id == "bu\x6e\144\154\x65") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bu\x6e\144\154\x65") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") && date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") < $x113->getSpecialToDate()) { if ($x113->type_id == "bu\x6e\144\154\x65") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bu\x6e\144\154\x65") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } else { if ($x113->type_id == "bu\x6e\144\154\x65") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp["\157\x70ti\x6f\x6es"][0])) ? $x56 = $x7b : $x56 = $exp["\157\x70ti\x6f\x6es"][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, "\x2e", "");  $this->skipOptions(2);  break;  case "{\x69\163_s\160\x65\x63\151\x61l_p\162\151\x63e}" : $x113 = $this->checkReference($exp['reference'], $product);
 (!isset($exp["\157\x70ti\x6f\x6es"][0])) ? $x118 = 1 : $x118 = $exp["\157\x70ti\x6f\x6es"][0];  (!isset($exp["\157\x70ti\x6f\x6es"][1])) ? $x119 = 0 : $x119 = $exp["\157\x70ti\x6f\x6es"][1];  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163")) { if ($x113->type_id == "bu\x6e\144\154\x65") (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0 ) ? $value = $x118 : $value = $x119;  else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $value = $x118 : $value = $x119;  } } else { if ($x113->type_id == "bu\x6e\144\154\x65") $value = $x119;  else { $value = $x119;  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") && date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") < $x113->getSpecialToDate()) { if ($x113->type_id == "bu\x6e\144\154\x65") (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0 ) ? $value = $x118 : $value = $x119;  else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $value = $x118 : $value = $x119;  } } else { if ($x113->type_id == "bu\x6e\144\154\x65") $value = $x119;  else { $value = $x119;  } } } else { if ($x113->type_id == "bu\x6e\144\154\x65") (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0 ) ? $value = $x118 : $value = $x119;  else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $value = $x118 : $value = $x119;  } } $this->skipOptions(2);  break;  case "\x7b\163\x70e\143\x69\141\x6c\x5f\160\162\x69\143\145}" : $x113 = $this->checkReference($exp['reference'], $product);  $x55 = null;  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163")) { if ($x113->type_id == 'bundle') { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") && date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") < $x113->getSpecialToDate()) { if ($x113->type_id == 'bundle') { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } } } else { if ($x113->type_id == 'bundle') { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x55 > 0) { if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  ;  } else { $value = "";  } $this->skipOptions(2);  break;  case '{price_rules}' : $x113 = $this->checkReference($exp['reference'], $product);  $x77 = $this->getStoreId();  $x11a = Mage::getResourceModel('catalogrule/rule');  $x11b = Mage::app()->getLocale()->storeTimeStamp($x77);  $x11c = Mage::app()->getStore($x77);  $xf4 = $x11c->getWebsiteId();  $x11d = Mage::getSingleton('customer/session')->getCustomerGroupId();  $x11e = $x11a->getRulePrice($x11b, $xf4, $x11d, $x113->getId());  if ($x113->getSpecialFromDate() && !$x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163")) { if ($x113->type_id == "bu\x6e\144\154\x65") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bu\x6e\144\154\x65") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } elseif ($x113->getSpecialFromDate() && $x113->getSpecialToDate()) { if ($x113->getSpecialFromDate() <= date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") && date("Y\55\x6d\x2d\144 H\x3a\151\x3a\163") < $x113->getSpecialToDate()) { if ($x113->type_id == "bu\x6e\144\154\x65") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } else { if ($x113->type_id == "bu\x6e\144\154\x65") $x55 = $x113->price;  else { $x55 = $x113->getPrice();  } } } else { if ($x113->type_id == "bu\x6e\144\154\x65") { if (($x113->price_type || (!$x113->price_type && $x113->special_price < $x113->price)) && $x113->special_price > 0) { if ($x113->price_type) $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  else { $x55 = $x113->special_price;  } } else { $x55 = $x113->price;  } } else { ($x113->getSpecial_price() && $x113->getSpecial_price() < $x113->getPrice()) ? $x55 = $x113->getSpecialPrice() : $x55 = $x113->getPrice();  } } if ($x11e !== FALSE) { if ($x11e < $x55) $value = $x11e;  else $value = $x55;  } else $value = $x55;  if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  $value = $this->x18d($value, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp["\157\x70ti\x6f\x6es"][0])) ? $x56 = $x7b : $x56 = $exp["\157\x70ti\x6f\x6es"][0];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, "\x2e", "");  $this->skipOptions(2);  break;  case '{group_price}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x11f = 0 : $x11f = $exp['options'][0];  $x113->setCustomerGroupId($x11f);  $x120 = $x113->getGroupPrice();  if ($x165($x120) == 1) { $x55 = $x120;  } else { $x55 = $x120[0]['price'];  } if ($x55 > 0) { if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } (!isset($exp['options'][2])) ? $x5a = false : $x5a = $exp['options'][2];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][1])) ? $x56 = $x7b : $x56 = $exp['options'][1];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  } $this->skipOptions(3);  break;  case '{tier_price}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x11f = 32000 : $x11f = $exp['options'][0];  if ($x11f == "\52") $x11f = 32000;  (!isset($exp['options'][1])) ? $x121 = 0 : $x121 = $exp['options'][1];
 $xf6 = $this->_tierPrices[$x113->getId()];  if ($x121 < 0) { $x121 = $x17e($x121) - 1;  $xf6[$x11f] = $x17f($xf6[$x11f]);  } $x55 = $xf6[$x11f][$x121]['value'];  if ($x55 > 0) { if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } (!isset($exp['options'][3])) ? $x5a = false : $x5a = $exp['options'][3];  $value = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][2])) ? $x56 = $x7b : $x56 = $exp['options'][2];  $value = $this->x18c($value, $x56);  $value = $x164($value, 2, '.', '');  } $this->skipOptions(3);  break;  case '{tier_price_qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x11f = 0 : $x11f = $exp['options'][0];  if ($x11f == "\52") $x11f = 32000;  $xf6 = $this->_tierPrices[$x113->getId()];  (!isset($exp['options'][1])) ? $x121 = 0 : $x121 = $exp['options'][1];  if ($x121 < 0) { $x121 = $x17e($x121) - 1;  $xf6[$x11f] = $x17f($xf6[$x11f]);  } $x122 = $xf6[$x11f][$x121]['qty'];  if ($x122 > 0) $value = $x122;  $this->skipOptions(2);  break;  case "\x7b\107:\123\101LE\x5f\x50R\x49\x43\105}" : $x113 = $this->checkReference($exp['reference'], $product);  $x123 = Mage::getSingleton('core/date')->getGmtOffset("\150o\x75\162\163");  if ($x123 > 0) { $x124 = "\x2b";  $x125 = $x180($x17e($x181($x123)), 2, 0, STR_PAD_LEFT) . ':' . $x180(($x17e($x123) - $x181($x17e($x123))) * 60, 2, 0, STR_PAD_LEFT);  } else { $x124 = "";  $x125 = '-' . $x180($x17e($x181($x123)), 2, 0, STR_PAD_LEFT) . ':' . $x180(($x17e($x123) - $x181($x17e($x123))) * 60, 2, 0, STR_PAD_LEFT);  } $x126 = $x168($x15d(' ', 'T', $x113->getSpecialFromDate()), 0, -3);  $x127 = $x168($x15d(' ', 'T', $x15d("00\72\60\60\x3a0\60", "\62\63\x3a\65\71\72\65\71", $x113->getSpecialToDate())), 0, -3);  if ($x113->type_id == 'bundle' && $x113->special_price) { if ($x113->price_type) { $x55 = $x164($x113->price * $x113->special_price / 100, 2, "\x2e", "");  } else { $x55 = $x113->special_price;  } } else { $x55 = $x113->getSpecial_price();  } (!isset($exp['options'][1])) ? $x5a = false : $x5a = $exp['options'][1];  if ($x55 > 0) { if ($x113->getTypeId() == "\143o\x6ef\151\x67\x75r\141\x62l\145") { if (isset($this->configurablePrices[$x113->getId()][$product->getId()])) { $x116 = 0;  foreach ($this->configurablePrices[$x113->getId()][$product->getId()] as $x117) { if ($x117["is_per\143e\x6e\x74"]) { $x116+=( $x117["pri\143\151n\147_\x76al\x75\145"] / 100) * $x55;  } else $x116+=$x117["pri\143\151n\147_\x76al\x75\145"];  };  $x55+=$x116;  } } $x55 = $this->x18d($x55, $x81, $x113->getTaxClassId(), $x5a);  (!isset($exp['options'][0])) ? $x56 = $x7b : $x56 = $exp['options'][0];  $x55 = $this->x18c($x55, $x56);  $x55 = $x164($x55, 2, '.', '');  ;  } if ($x55 > 0) { $value = "\x3c\x67:\163a\154\x65_\x70\162\151\x63e\x3e\74!\x5b\103D\x41\124\101\133" . $x55 . "\40" . $x56 . "\x5d\x5d\76</g\72\x73a\x6c\145\137p\162\151c\x65>\x0a";  } if ($x55 > 0 && $x127) { $value.="\x3cg\x3asa\154\x65_pr\x69\x63\145\x5f\145\x66\x66\145\x63\164\151ve_\144\141\164\x65\76\74\x21[\103\x44\101\x54A\133" . $x126 . $x124 . $x125 . "\57" . $x127 . $x124 . $x125 . "\135\x5d\x3e\74\57\147\x3as\141\154e\x5f\x70\162ic\x65\137\x65\x66\x66e\143t\x69v\x65\137\144\141\164e>\x0a";  } $this->skipOptions(2);  break;  case "\173\151\155a\147\x65\175" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getImage();  if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($x113->getImage() && $x113->getImage() != 'no_selection') { $x129 = 'catalog/product/' . $x113->getImage();  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  } else { $value = $x80 . '/catalog/product/placeholder/' . $x7a;  } } elseif (isset($xc9[$x113->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xc9[$x113->getId()]['src'][$exp['options'][0] - 1] != $x128) { $x129 = 'catalog/product/' . $xc9[$x113->getId()]['src'][$exp['options'][0] - 1];  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  } } $this->skipOptions(1);  break;  case "\x7bG:\x49\115A\x47E\x5f\x4c\x49\x4e\x4b\175" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getImage();  $x12a = array($x113->getSmall_image(), $x113->getThumbnail());  $x12b = '';  $x10e = 0;  if ($x113->getImage() && $x113->getImage() != 'no_selection') { $x129 = 'catalog/product/' . $x113->getImage();  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  $x12b.="\x3c\x67\x3a\x69\155\141ge\137\154\151nk\76\74\x21\x5bCDA\x54\101\133" . $value . "\x5d\x5d>\74\57\x67\72i\x6d\141g\x65\x5f\154i\x6ek\76\x0a";  $x10e++;  } $x12c = 0;  while (isset($xc9[$x113->getId()]['src'][$x12c]) && $x10e < 10) { if ($xc9[$x113->getId()]['src'][$x12c] != $x128) { if ($x177($xc9[$x113->getId()]['src'][$x12c], $x12a) || $xc9[$x113->getId()]['disabled'][$x12c] != 1) { $x129 = 'catalog/product/' . $xc9[$x113->getId()]['src'][$x12c];  $value = $x80 . $x15d(array('//', 'https'), array('/', 'http'), $x129);  $x12b.="\74g\72\x61\x64\144\x69t\151\x6fna\154\x5f\x69\155\141\147\145_\154\151\156\x6b\76\74!\133C\104A\x54\x41\133" . $value . "\135\135><\57\x67:\x61\x64\144\x69\x74ion\x61\154\x5f\151m\141\x67\145\137l\x69\x6ek\76\x0a";  $x10e++;  } } $x12c++;  } $value = $x12b;  break;  case "\x7b\x75rl}" : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getRequest_path()) { if (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145") == 2) { $x12d = $x167("\54", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x7f . $x17b($x12d);  } elseif (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145") == 3) { $x12d = $x167("\54", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x7f . $x183($x12d);  } else $value = $x7f . $x113->getRequest_path();  } else { $value = $x113->getProductUrl();  } $value = $x15d('https', 'http', $value);  break;  case "\173\x68\157s\x74}" : $value = $x7f;  break;  case "{uri\175" : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getRequest_path()) { if (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145") == 2) { $x12d = $x167("\54", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x17b($x12d);  } elseif (Mage::getStoreConfig("d\141\164\141f\x65\145\144\155a\156\x61\147\x65\x72\x2f\163\171s\164\145\x6d/\x75\x72lr\x65\x77r\x69\x74\145") == 3) { $x12d = $x167("\54", $x113->getRequest_path());  $x182($x12d, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  $value = $x183($x12d);  } else $value = $x113->getRequest_path();
 } else { $value = $x15d($x7f, '', $x113->getProductUrl());  } $value = $x15d('https', 'http', $value);  break;  case '{is_in_stock}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x12e = 'in stock' : $x12e = $exp['options'][0];  (!isset($exp['options'][1])) ? $x12f = "o\x75\164\40o\146\40\x73tock" : $x12f = $exp['options'][1];  (!isset($exp['options'][2])) ? $x130 = "\141\166a\151lab\154\x65\x20fo\x72\40\157\x72\144\145\x72" : $x130 = $exp['options'][2];  if (($x113->getManageStock() && !$x113->getUseConfigManageStock() && !$x7c) || ($x113->getUseConfigManageStock() && $x7c ) || ($x113->getManageStock() && !$x113->getUseConfigManageStock())) { if ($x113->getIsInStock() > 0) { if ($product->type_id == "\143o\x6ef\151\x67\x75r\141\x62l\145") $x122 = $xde[$product->getId()];  else $x122 = $x113->getQty();  if ($x122 > 0) { $value = $x12e;  } else { if ($x113->getBackorders() || ($x113->getUseConfigBackorders() && $x7d)) { $value = $x130;  } else { $value = $x12f;  } } } else $value = $x12f;  } else { $value = $x12e;  } $this->skipOptions(3);  break;  case '{stock_status}' : $x113 = $this->checkReference($exp['reference'], $product);  ($x113->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock');  break;  case '{min_qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x131 = 0 : $x131 = $exp['options'][0];  $value = $x164($x113->getMinQty(), $x131, '.', '');  $this->skipOptions(1);  break;  case '{min_sale_qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x131 = 0 : $x131 = $exp['options'][0];  $value = $x164($x113->getMinSaleQty(), $x131, '.', '');  $this->skipOptions(1);  break;  case '{qty}' : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0])) ? $x131 = 0 : $x131 = $exp['options'][0];  if ($product->type_id == "\143o\x6ef\151\x67\x75r\141\x62l\145") { $value = $xde[$product->getId()];  $value = $x164($value, $x131, '.', '');  } else if ($exp['reference'] == "\143o\x6ef\151\x67\x75r\141\x62l\145") { $value = $x164($xde[$x113->getId()], $x131, '.', '');  } else { $value = $x164($x113->getQty(), $x131, '.', '');  } $this->skipOptions(1);  break;  case "\x7bcat\x65\x67\157ries\137\x76\61}" : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x134 = INF : $x134 = $exp['options'][2];  $x135 = 0;  $value = '';  $x136 = '';  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177($x74[$xa4]["p\141\164\150"], $x96) : $x137 = !$x177($x74[$xa4]["p\141\164\150"], $x96);  if (isset($x74[$xa4]) && $x135 < $x132 && ($x137 || $x96[0] == "\52")) { $x138 = 0;  $x139 = $x167('/', $x74[$xa4]["p\141\164\150"]);  if ($x177($x82, $x139)) { $x13a = "";  if ($x135 > 0) $x136 = "\54";  foreach ($x139 as $x13b) { if (isset($x74[$x13b])) { if ($x74[$x13b]['level'] > $x133 && $x138 < $x134) { if ($x138 > 0) $x13a.='>';  $x13a.=($x74[$x13b]['name']);  $x138++;  } } } $x13c = "";  if (!empty($x13a)) { $value.=$x136 . $x13a . $x13c;  $x135++;  } } } };  $this->skipOptions(3);  break;  case "\x7b\x63\x61\x74ego\x72\x69\145s\x7d" : $x13d = null;  $x132 = INF;  $x133 = 1;  $x13e = INF;  $x115 = ', ';  $x13f = "\40>\40";  if ($x165($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x13d = "\154\141\163t" : $x13d = $exp['options'][0];  $x132 = 1;  } elseif ($x165($exp['options']) == 2) { (!isset($exp['options'][0])) ? $x115 = ', ' : $x115 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x13f = "\40>\40" : $x13f = $exp['options'][1];  } elseif ($x165($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x13e = INF : $x13e = $exp['options'][2];  (!isset($exp['options'][3])) ? $x115 = ', ' : $x115 = $exp['options'][3];  (!isset($exp['options'][4])) ? $x13f = "\40>\40" : $x13f = $exp['options'][4];  } $x113 = $this->checkReference($exp['reference'], $product);  $x129 = 0;  $x140 = array();  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177(@$x74[$xa4]["p\141\164\150"], $x96) : $x137 = !$x177(@$x74[$xa4]["p\141\164\150"], $x96);  if (isset($x74[$xa4]) && ($x137 || $x96[0] == "\52")) { $x129++;  $x140[$x129] = array();  $x139 = $x167('/', $x74[$xa4]["p\141\164\150"]);  if ($x177($x82, $x139)) { foreach ($x139 as $x13b) { if (isset($x74[$x13b]) && $x74[$x13b]['name'] != null) { $x140[$x129][] = ($x74[$x13b]['name']);  } } } } } $x141 = array();  $x182($x140, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray'));  if ($x13d == "\154\141\163t") $x140 = $x17f($x140);  $x113->setCategoriesArray($x140);  $x142 = 0;  foreach ($x140 as $x4b => $x138) { if ($x142 < $x132) { foreach ($x138 as $x143 => $x144) { if ($x143 >= $x133 && $x143 <= $x13e) { if (!isset($x141[$x142])) $x141[$x142] = array();  $x141[$x142][] .= $x144;  } } if ($x165($x141[$x142])) $x142++;  } };  $value = null;  foreach ($x184($x141) as $x4b => $x145) { if ($x4b > 0) $value.=$x115;  $value.=$x15b($x13f, $x145);  } $this->skipOptions($x165($exp['options']));  break;  case "\x7b\x47\x3aPRO\x44U\x43\124\x5fT\131\120\x45\137\x76\61\175" : $x113 = $this->checkReference($exp['reference'], $product);  (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x134 = INF : $x134 = $exp['options'][2];  $x135 = 0;
 $value = '';  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177($x74[$xa4]["p\141\164\150"], $x96) : $x137 = !$x177($x74[$xa4]["p\141\164\150"], $x96);  if (@$x74[$xa4]["\151\156c\154\x75\x64e\137\x69\156\x5f\155\x65\156u"] && isset($x74[$xa4]) && $x135 < $x132 && ($x137 || $x96[0] == "\52")) { $x138 = 0;  $x139 = $x167('/', $x74[$xa4]["p\141\164\150"]);  if ($x177($x82, $x139)) { $x13a = '';  $x136 = '<g:product_type><![CDATA[';  foreach ($x139 as $x13b) { if (isset($x74[$x13b])) { if ($x74[$x13b]['level'] > $x133 && $x138 < $x134) { if ($x138 > 0) $x13a.=' > ';  $x13a.=($x74[$x13b]['name']);  $x138++;  } } } $x13c = "]\x5d>\x3c\57\147\72pr\x6f\144\165c\164\x5ftyp\145\x3e\x0a";  if (!empty($x13a)) { $value.=$x136 . $x13a . $x13c;  $x135++;  } } } };  $this->skipOptions(3);  break;  case "\x7b\107\72\120R\117D\x55C\124\137TY\120\x45\x7d" : $x115 = "\x5d\135>\x3c/\147\72\160\x72\157\144u\143t\x5f\164\171pe\76\x0a\74g:\x70\162\157\x64\x75c\164\x5f\x74\x79\x70\x65><\41\133C\x44AT\101[";  $x13f = "\40>\40";  (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x132 = INF : $x132 = $exp['options'][0];  (!isset($exp['options'][1])) ? $x133 = 1 : $x133 = $exp['options'][1];  (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x13e = INF : $x13e = $exp['options'][2];  $x113 = $this->checkReference($exp['reference'], $product);  $x129 = 0;  $x140 = array();  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { ($x8e) ? $x137 = $x177(@$x74[$xa4]["p\141\164\150"], $x96) : $x137 = !$x177(@$x74[$xa4]["p\141\164\150"], $x96);  if (isset($x74[$xa4]) && ($x137 || $x96[0] == "\52")) { $x129++;  $x140[$x129] = array();  $x139 = $x167('/', $x74[$xa4]["p\141\164\150"]);  if ($x177($x82, $x139)) { foreach ($x139 as $x13b) { if (isset($x74[$x13b]) && $x74[$x13b]['name'] != null) { $x140[$x129][] = ($x74[$x13b]['name']);  } } } } } $x141 = array();  $x182($x140, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray'));  foreach ($x140 as $x4b => $x138) { if ($x4b < $x132) foreach ($x138 as $x143 => $x144) { if ($x143 >= $x133 && $x143 <= $x13e) { if (!isset($x141[$x4b])) $x141[$x4b] = array();  $x141[$x4b][] .= $x144;  } } };  $value = null;  foreach ($x184($x141) as $x4b => $x145) { if ($x4b > 0) $value.=$x115;  $value.=$x15b($x13f, $x145);  } if (($x141)) $value = "\x3c\x67\x3a\160\x72\x6f\x64u\143\x74\x5f\164y\160\145>\74!\133\103\x44\101\x54A[" . $value . "]\x5d>\x3c\57\147\72pr\x6f\144\165c\164\x5ftyp\145\x3e\x0a";  $this->skipOptions($x165($exp['options']));  break;  case "\173G:\107\117\117\107\x4c\105\x5f\x50R\117D\x55C\x54_\x43\x41T\x45GO\122\x59\x7d" : $x146 = array();  (!isset($exp['options'][0])) ? $x13d = "\x6c\x6f\x6e\147\145\x73\x74" : $x13d = $exp['options'][0];  $x113 = $this->checkReference($exp['reference'], $product);  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { if (isset($x74[$xa4]["p\141\164\150"]) && isset($x97[$x74[$xa4]["p\141\164\150"]])) { $x146[] = $x97[$x74[$xa4]["p\141\164\150"]];  } } $x182($x146, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp'));  if ($x13d == "\163\x68or\x74\145s\x74") $x146 = $x17f($x146);  $x147 = $x183($x146);  if ($x147 != "") $value = "\74\147\72goog\x6c\145\x5f\160\x72od\165c\x74\x5f\x63\x61\x74e\x67\157\x72y\76\74\41\133\103DA\x54\101\133" . $x147 . "]\135>\x3c/\x67\72g\x6f\x6fg\x6c\145_\160\162o\144\x75c\164\137\x63ategor\171\76\x0a";  $this->skipOptions(1);  break;  case "{\x63\x61\x74e\147\157\162y_\x6da\x70\x70\151ng}" : (isset($exp["\157\x70ti\x6f\x6es"][0])) ? $x148 = $exp["\157\x70ti\x6f\x6es"][0] : $x148 = 0;  $value = "";  $x113 = $this->checkReference($exp['reference'], $product);  $x149 = 0;  foreach ($x167(',', $x113->getCategoriesIds()) as $x4b => $xa4) { if (isset($x97[$x74[$xa4]["p\141\164\150"]])) { if ($x149 == $x148) { $value.=$x97[$x74[$xa4]["p\141\164\150"]];  break;  } $x149++;  } } $this->skipOptions(1);  break;  case "\173\x72\x65\166\x69\145\x77_\143\x6f\165n\164\x7d": $x113 = $this->checkReference($exp['reference'], $product);  $value = "";  (isset($exp["\157\x70ti\x6f\x6es"][0]) && $exp["\157\x70ti\x6f\x6es"][0] == "\52" ) ? $x14a = 0 : $x14a = $x77;  if (isset($xc3[$x113->getId()][$x14a]["cou\x6e\x74"])) { $x14b = $xc3[$x113->getId()][$x14a]["cou\x6e\x74"];  if (isset($x14b)) $value.=$x14b;  } $this->skipOptions(1);  break;  case "\173\162\145\166i\145\x77\137a\x76\145\162a\x67e}": $x113 = $this->checkReference($exp['reference'], $product);  $value = "";  (isset($exp["\157\x70ti\x6f\x6es"][0]) && $exp["\157\x70ti\x6f\x6es"][0] == "\52" ) ? $x14a = 0 : $x14a = $x77;  (!isset($exp["\157\x70ti\x6f\x6es"][1]) || !$exp["\157\x70ti\x6f\x6es"][1]) ? $x14c = 5 : $x14c = $exp["\157\x70ti\x6f\x6es"][1];  if (isset($xc3[$x113->getId()][$x14a]["\163\143\x6f\162e"])) { $x14d = $x164($xc3[$x113->getId()][$x14a]["\163\143\x6f\162e"] * $x14c / 100, 2, "\x2e", "");  if (isset($x14d)) $value.=$x14d;  } $this->skipOptions(2);  break;  case "\173G\72\120\122\117\x44U\103\124_\122\105\126\x49\x45W}" : $x113 = $this->checkReference($exp['reference'], $product);  (isset($exp["\157\x70ti\x6f\x6es"][0]) && $exp["\157\x70ti\x6f\x6es"][0] == "\52" ) ? $x14a = 0 : $x14a = $x77;  (!isset($exp["\157\x70ti\x6f\x6es"][1]) || !$exp["\157\x70ti\x6f\x6es"][1]) ? $x14c = 5 : $x14c = $exp["\157\x70ti\x6f\x6es"][1];  $value = "";  if (isset($xc3[$x113->getId()][$x14a]["cou\x6e\x74"])) { $x14b = $xc3[$x113->getId()][$x14a]["cou\x6e\x74"];  $x14d = $x164($xc3[$x113->getId()][$x14a]["\163\143\x6f\162e"] * $x14c / 100, 2, "\x2e", "");  } if (isset($x14d) && $x14d > 0) { $value.="\x3c\147\x3a\x70\162\x6f\144u\x63\164\137\x72e\166\x69\x65\x77\137\141\166\145rag\x65\76<\41[C\x44\x41\124\101\133" . $x14d . "]]\x3e</\147\x3a\x70\162\157\x64uct\x5f\x72\145v\x69\145\x77\137\x61\166\145ra\147\x65\x3e\x0a";  } if (isset($x14b) && $x14b > 0) { $value.="\x3c\x67:\x70rod\x75c\164_\x72\x65\166i\145w\137\143ou\156\x74\x3e<![C\104\x41T\101\133" . $x14b . "]]\76\74\57\147\x3a\x70\162\157\x64\x75\143\164_re\166i\145w_\143\157u\x6et\x3e\x0a";  } unset($x14d);  unset($x14b);  break;  case "\x7b\x47\72I\x54\x45\x4d_G\122O\x55\x50_\x49\104\175" : if (isset($this->configurable[$product->getId()])) { $x113 = $this->checkReference('configurable', $product);  $value = "<\147\72\151\x74\x65\x6d_\147ro\165\160_\151d\76\74\x21\133CD\101\124\101\133" . $x113->getSku() . "\135\135>\x3c/g\72\151\164e\155_g\x72\157\165\160\x5f\151\x64>";  } break;  case "{SC\72\105AN}" : ($x166($exp['options'][0]) && $exp['options'][0] > 0) ? $x14e = $exp['options'][0] : $x14e = 0;  $x113 = $this->checkReference($exp['reference'], $product);  $value = $x167(',', $x113->getEan());  $value = "\x3c\147\72\145\141\156\76\x3c\x21\x5b\103DA\x54\101[" . $value[$x14e] . "]\x5d\76<\57\147:\145\141n\x3e";  break;  case "{\163c:e\141\156\x7d" : ($x166($exp['options'][0]) && $exp['options'][0] > 0) ? $x14e = $exp['options'][0] : $x14e = 0;  $x113 = $this->checkReference($exp['reference'], $product);  $value = $x167(',', $x113->getEan());  $value = $value[$x14e];  break;  case "{\x53C\x3a\x49MA\x47\105\x53}" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getSmall_image();  $x12a = array($x113->getImage(), $x113->getThumbnail());
 $x12b = '';  $x10e = 0;  if ($x113->getSmall_image() && $x113->getSmall_image() != 'no_selection') { $x129 = $x113->getSmall_image();  $value = $x129;  $x12b.="\x3c\x67\x3a\x69\155\141ge\137\154\151nk\76\74\x21\x5bCDA\x54\101\133" . $value . "\x5d\x5d>\74\57\x67\72i\x6d\141g\x65\x5f\154i\x6ek\76\x0a";  $x10e++;  } $x12c = 0;  while (isset($xc9[$x113->getId()]['src'][$x12c]) && $x10e < 10) { if ($xc9[$x113->getId()]['src'][$x12c] != $x128) { if ($x177($xc9[$x113->getId()]['src'][$x12c], $x12a) || $xc9[$x113->getId()]['disabled'][$x12c] != 1) { $x129 = $xc9[$x113->getId()]['src'][$x12c];  $value = $x129;  $x12b.="\74g\72\x61\x64\144\x69t\151\x6fna\154\x5f\x69\155\141\147\145_\154\151\156\x6b\76\74!\133C\104A\x54\x41\133" . $value . "\135\135><\57\x67:\x61\x64\144\x69\x74ion\x61\154\x5f\151m\141\x67\145\137l\x69\x6ek\76\x0a";  $x10e++;  } } $x12c++;  } $value = $x12b;  break;  case "\x7bs\x63\72i\155\141\147\x65\x73\175" : $x113 = $this->checkReference($exp['reference'], $product);  $x128 = $x113->getSmall_image();  if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($x113->getSmall_image() && $x113->getSmall_image() != 'no_selection') { $x129 = $x113->getSmall_image();  $value = $x129;  } else { $value = $x80 . '/catalog/product/placeholder/' . $x7a;  } } elseif (isset($xc9[$x113->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xc9[$x113->getId()]['src'][$exp['options'][0] - 1] != $x128) { $x129 = 'catalog/product/' . $xc9[$x113->getId()]['src'][$exp['options'][0] - 1];  $value = $x80 . $x15d('//', '/', $x129);  } } $this->skipOptions(1);  break;  case "{\123\x43:\104\x45SCRI\120\124\x49\x4fN\x7d" : $x113 = $this->checkReference($exp['reference'], $product);  $x10d = $x113->getDescription() . $x113->getShortDescription();  $x14f = "|\x3c\x69f\162am\x65(\x2e\52\x29\74\57\151\146\x72\141\155\145>\x7c\125";  $x160($x14f, $x10d, $x150);  if ($x150) { $x10d = $x113->getAttributeText('manufacturer') . "\40" . $x113->getName() . "\x20-\x20\x50\x61\x72\x74 \x6e\165\155\142\145\162\72\x20" . $x113->getSku() . " \x2d\x20\x43\141\164eg\x6f\x72\171 \x3a \173\x63a\164\145go\162ies\54\133\61\x5d,[\61\135,\x5b\61\135}";  } else { if ($x177("\163\x74\162\151\x70_t\x61g\163", $exp['options'])) { $x10d = $x16c('!\<br /\>!isU', "\40", $x10d);  $x10d = $x16c('!\<br/\>!isU', "\40", $x10d);  $x10d = $x16c('!\<br>!isU', "\40", $x10d);  $x10d = $x185($x10d);  } if ($x177("\150\164\x6d\x6c\x5fent\151\164\x79\137\x64\145\x63\157\x64\x65", $exp['options'])) { $x10d = $x16b($x10d, ENT_QUOTES, 'UTF-8');  } if ($x177("\x68\x74\155\154\145\156\x74i\164i\145\163", $exp['options'])) { $x10d = $x186(($x10d));  } if ($x15a($x10d) > 900) { $x10d = $x168($x10d, 0, 900 - 3);  $x151 = $x187($x10d, "\40");  $x10d = $x168($x10d, 0, $x151) . '...';  } } if ($x10d == null) $x10d = $x113->getAttributeText('manufacturer') . "\40" . $x113->getName() . "\x20-\x20\x50\x61\x72\x74 \x6e\165\155\142\145\162\72\x20" . $x113->getSku() . " \x2d\x20\x43\141\164eg\x6f\x72\171 \x3a \173\x63a\164\145go\162ies\54\133\61\x5d,[\61\135,\x5b\61\135}";  $x10d = $x16c('/' . '[\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', ' ', $x10d);  $x10d = $x15d('', '', $x10d);  $value = "\74\144e\163\x63\162\151\160ti\x6f\x6e\x3e<\41\x5b\103\104A\x54\101\133" . $x10d . "\135]><\x2f\144esc\x72\x69pt\151\x6f\156\x3e";  $exp['options'] = array();  break;  case "{\x73\x63:\144e\163\143\162i\x70\164\x69on\x7d" : $x113 = $this->checkReference($exp['reference'], $product);  $x10d = $x113->getDescription() . $x113->getShortDescription();  $x14f = "|\x3c\x69f\162am\x65(\x2e\52\x29\74\57\151\146\x72\141\155\145>\x7c\125";  $x160($x14f, $x10d, $x150);  if ($x150) { $x10d = $x113->getAttributeText('manufacturer') . "\40" . $x113->getName() . "\x20-\x20\x50\x61\x72\x74 \x6e\165\155\142\145\162\72\x20" . $x113->getSku() . " \x2d\x20\x43\141\164eg\x6f\x72\171 \x3a \173\x63a\164\145go\162ies\54\133\61\x5d,[\61\135,\x5b\61\135}";  } else { if ($x177("\163\x74\162\151\x70_t\x61g\163", $exp['options'])) { $x10d = $x16c('!\<br /\>!isU', "\40", $x10d);  $x10d = $x16c('!\<br/\>!isU', "\40", $x10d);  $x10d = $x16c('!\<br>!isU', "\40", $x10d);  $x10d = $x185($x10d);  } if ($x177("\150\164\x6d\x6c\x5fent\151\164\x79\137\x64\145\x63\157\x64\x65", $exp['options'])) { $x10d = $x16b($x10d, ENT_QUOTES, 'UTF-8');  } if ($x177("\x68\x74\155\154\145\156\x74i\164i\145\163", $exp['options'])) { $x10d = $x186(($x10d));  } if ($x15a($x10d) > 900) { $x10d = $x168($x10d, 0, 900 - 3);  $x151 = $x187($x10d, "\40");  $x10d = $x168($x10d, 0, $x151) . '...';  } } if ($x10d == null) $x10d = $x113->getAttributeText('manufacturer') . "\40" . $x113->getName() . "\x20-\x20\x50\x61\x72\x74 \x6e\165\155\142\145\162\72\x20" . $x113->getSku() . " \x2d\x20\x43\141\164eg\x6f\x72\171 \x3a \173\x63a\164\145go\162ies\54\133\61\x5d,[\61\135,\x5b\61\135}";  $x10d = $x16c('/' . '[\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', ' ', $x10d);  $x10d = $x15d('', '', $x10d);  $value = $x10d;  $exp['options'] = array();  break;  case "{\123C\x3a\125R\114\x7d" : $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getRequest_path()) { $value = "\x3clin\153\76\x3c\41\133C\x44ATA[" . $x7f . $x113->getRequest_path() . "\x5d\135\x3e<\x2f\x6c\151nk\x3e";  } else { $value = "\x3clin\153\76\x3c\41\133C\x44ATA[" . $x113->getProductUrl() . "\x5d\135\x3e<\x2f\x6c\151nk\x3e";  } break;  case "{\x73\x63\72\x75\x72\x6c\x7d" : (isset($exp['options'][0])) ? $x152 = $exp['options'][0] : $x152 = "";  (isset($exp['options'][1])) ? $x121 = $exp['options'][1] : $x121 = "";  $x113 = $this->checkReference($exp['reference'], $product);  if ($x113->getUrlKey()) { $value = $x7f . $x121 . $x113->getRequest_path() . $x152;  } else { $value = $x113->getProductUrl();  } break;  case "\x7bS\103:\103O\116\x44\x49\124I\117N}" : $x113 = $this->checkReference($exp['reference'], $product);  ($x170($x113->getName(), "r\x65\x66u\x72b\151\x73\150\145\144")) ? $x103 = 'refurbished' : $x103 = 'new';  $value = "<\x67\72\x63\x6f\156\x64\x69\x74i\157n\76<\x21\x5b\103\104\x41\124\101\x5b" . $x103 . "\135\135\76\74\x2f\147\x3a\143\x6fnd\151ti\x6fn\x3e";  break;  case "\x7bs\143\x3a\143\x6f\x6e\144it\151\x6f\x6e}" : $x113 = $this->checkReference($exp['reference'], $product);  ($x170($x113->getName(), "r\x65\x66u\x72b\151\x73\150\145\144")) ? $x103 = 'refurbished' : $x103 = 'new';  $value = $x103;  break;  default : $x113 = $this->checkReference($exp['reference'], $product);  if ($x177($exp['name'], $xad)) { if ($x177($xae[$exp['name']], array('select', 'multiselect'))) { eval('$x154 =($x113->' . $exp['methodName'] . "\51\x3b");  $x153 = $x167(',', $x154);  if ($x165($x153) > 1) { $value = array();  foreach ($x153 as $x6b) { if (isset($xb4[$x6b][$x77])) $value[] = $xb4[$x6b][$x77];  else { if (isset($xb4[$x6b][0])) $value[] = $xb4[$x6b][0];  } } } else { if (isset($xb4[$x153[0]][$x77])) { $value = $xb4[$x153[0]][$x77];  } else { if (isset($xb4[$x153[0]][0])) $value = $xb4[$x153[0]][0];  } } } else { eval('$value =($x113->' . $exp['methodName'] . "\51\x3b");  } } if ($x177(@$xab[$exp['name']], $xab)) { $value = $xab[$exp['name']];  } $value = $x102->_eval($product, $exp, $value);  if ($x188($value) && !$value) continue 3;  break;  } if ($x165($exp['options']) > 0) { foreach ($exp['options'] as $x4b => $option) { if ($x4b >= $this->option) { switch ($exp['options'][$this->option]) { case "\x73\x75b\x73t\x72" : if (isset($exp['options'][$this->option + 1]) && $x15a($value) > $exp['options'][$this->option + 1]) { $value = $x168($value, 0, $exp['options'][$this->option + 1] - 3);  $x151 = $x187($value, "\40");  $value = $x168($value, 0, $x151) . $exp['options'][$this->option + 2];  } $this->skipOptions(3);  break;  case "\163\x74\162\151\x70_t\x61g\163" : $x155 = "\40";
 $value = $x16c('!\<br /\>!isU', $x155, $value);  $value = $x16c('!\<br/\>!isU', $x155, $value);  $value = $x16c('!\<br>!isU', $x155, $value);  $value = $x185($value);  $this->skipOptions(1);  break;  case "\x68\x74\155\154\145\156\x74i\164i\145\163" : $value = $x186(($value));  $this->skipOptions(1);  break;  case "\x69\155p\x6c\157\144\x65" : $value = ($x16e($value)) ? $x15b($exp['options'][$this->option + 1], $value) : $value;  $this->skipOptions(2);  break;  case "f\154\x6fa\x74" : $value = $x164($value, $exp['options'][$this->option + 1], '.', '');  $this->skipOptions(2);  break;  case "\150\164\x6d\x6c\x5fent\151\164\x79\137\x64\145\x63\157\x64\x65" : $value = $x16b($value, ENT_QUOTES, 'UTF-8');  $this->skipOptions(1);  break;  case "\x69\156\x6c\x69\156\145": $value = $x16c('/(\r\n|\n|\r|\r\n\t)/s', ' ', $value);  $this->skipOptions(1);  break;  case "\163t\162\x74o\154\x6f\x77\x65\162": $value = $x189($value, "U\x54\106\70");  $this->skipOptions(1);  break;  case "\x73\164\162\164\x6fu\160\x70er": $value = $x18a($value, "U\x54\106\70");  $this->skipOptions(1);  break;  case "c\154\x65\141\x6ee\x72": $value = $x16c('/' . '[\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', ' ', $value);  $value = $x15d('', '', $value);  $this->skipOptions(1);  break;  default : $x101->option = $this->option;  $value = $x101->_eval($product, $exp, $value);  $this->option = $x101->option;  if ($x188($value) && !$value) continue 3;  break;  } } } } if ($x86 > 1 && !$this->_display) $value = $this->x192($value, $x6d, $x6e);  $value = $x15d(array("\74", "\x3e", '"', '\\'), array("\x5f\137\x4c\x4f\127ERT\x48\x41\x4e__", "\137\137\x48\111\107\x48ER\x54H\101\116\x5f\137", "\137\x5f\121\x55\x4fT\105\123\137\137", "\137\x5f\102\101\103\113\x53LA\123\110\x5f_"), $value);  if ($x16e($value)) $value = $x15b("\54", $value);  if ($value != "") $x5f = $x15d($exp['fullpattern'], $value, $x5f);  } foreach ($xa0 as $x156) { $x5f = $x15d($x156['fullpattern'], "", $x5f);  } $x5f = $this->x18b($x5f, $product, $x86);  if ($x86 == 1) { if (!$this->_display) { $x5f = $this->x18f($x5f);  $x5f = $this->x18e($x5f, $x8b, $x8c);  } else { $x5f = $this->x18e($x5f, $x8b, $x8c);  } } elseif ($x86 != 1) { if (!$this->_display) { $x5f = $this->x191($x5f, $x6c, $x6d, $x6e);  $x5f = $this->x18f($x5f);  } else { $x5f = $this->x190(($x5f), false);  } } $x5f = $x15d(array("\x5f\137\x4c\x4f\127ERT\x48\x41\x4e__", "\137\137\x48\111\107\x48ER\x54H\101\116\x5f\137", "\137\x5f\121\x55\x4fT\105\123\137\137", "\137\x5f\102\101\103\113\x53LA\123\110\x5f_"), array("\74", "\x3e", '"', '\\'), $x5f);  if (!empty($x5f)) { if ($x86 == 1) $x9d.=$x5f . "";  else $x9d.=$x5f . "";  if ($this->_display) { $x9e.=$x9d;  $x9d = '';  } else { if ($xff % Mage::getStoreConfig("\144\141t\x61\146\x65\145d\x6d\141\156\x61\147\145\162/\163\x79\x73\164e\155\57\x62\x75ffe\x72") == 0) { $x4d->streamWrite($x9d);  unset($x9d);  $x9d = '';  if ($this->_log) Mage::log("\x0a\76\x3e\76>\x3e>\76\x3e\x3e\76\x3e\76>\x3e\x3e\76>>\x3e>\x3e\76>\76>\x3e>>\x3e>>\76>\76\76\x3e\x3e>\x3e\76\76\76\x3e\x3e\76\x3e" . $x10c . "\57" . $this->_counter . "\40\x69t\145\x6d\163\x20a\144\x64e\x64", null, $this->getFilename('.log'));  } } if ($this->_limit && $xff >= $this->_limit) break 2;  $xff++;  $this->_inc = $x10c;  $x10c++;  } } } if (!$this->_display) { $x4d->streamWrite($x9d);  if ($x15a($x169($x85)) > 1) $x4d->streamWrite($x85 . "\x0a");  if ($x88 != '') $x4d->streamWrite($this->x18b($x88, null));  if ($this->_log) Mage::log("\x0a\76\76\76\x3e>\x3e\x3e>\76\76>\76\x3e>\x3e\x3e\76\76\x3e>\76>\76\x3e>>>\x3e\x3e\x3e\76>\76>>\x3e\x3e\x3e\x3e\76>>\x3e\x3e>\x3e\x20" . ($x10c - 1) . "\57" . $this->_counter . "\40\x69t\145\x6d\163\x20a\144\x64e\x64", null, $this->getFilename('.log'));  } else { $x9e.=$x9d;  $x9e.=$x85 . "\x0a";  if ($x86 > 1) $x9e.="\x3c\57\x74\141\x62\x6c\145\x3e";  $x9e.= $this->x18b($x88, null) . '<br>';  if ($this->_log) Mage::log("\x0a\76\76\76\x3e>\x3e\x3e>\76\76>\76\x3e>\x3e\x3e\76\76\x3e>\76>\76\x3e>>>\x3e\x3e\x3e\76>\76>>\x3e\x3e\x3e\x3e\76>>\x3e\x3e>\x3e\x20" . ($x10c ) . "\57" . $this->_counter . "\40\x69t\145\x6d\163\x20a\144\x64e\x64", null, $this->getFilename('.log'));  } unset($xd8);  if ($this->_log) Mage::log("\x0a>>\x3e\x3e>\x3e\x3e\x3e\76\76\76>>>>\x3e\76\x3e\76\x3e>\76\76\76\x3e>\76\76\76\x3e>\76>>>>\x3e>\x3e\76\76>\76\76\76\76\40F\157o\x74\145\162\40te\155\x70\x6ca\164\x65\40\141\x64\x64\145\x64", null, $this->getFilename('.log'));  if ($this->_display && !$this->_debug) { ($x86 == 1 && !Mage::app()->getRequest()->getParam("r\145a\x6c\x5f\x74\151\155\145\x5f\160\x72e\166\151\145\x77")) ? $x10d = "\74\x74\145x\164\x61\162\145\141 \151d\x3d'\103o\144eMi\162\x72\x6f\162\47\40\143\x6c\x61s\x73\75\x27\103\x6f\144eM\x69\x72\162o\x72'\76" . ($x9e) . "\74\57\x74\145\170tare\141\76" : $x10d = ($x9e);  if ((!Mage::app()->getRequest()->getParam("r\145a\x6c\x5f\x74\151\155\145\x5f\160\x72e\166\151\145\x77"))) { return("\x0d\12\x20 \x20\x20\x09\11<h\164m\x6c>\x0d\x0a\x20 <\x68\x65\141\x64\x3e\15 \40 \x20 \11\11<\164\x69t\154\145>" . $this->getFeedName() . "<\x2fti\164le\x3e\15\12 \40 \40\40 \x20\x20\40 \40\x20\x20 \x20 <l\x69\156\153 r\145l\x3d\x27\163\164\171l\145\x73\150e\145\164\x27\40hr\x65\x66\x3d'" . $x7e . "\x73kin/\141\144m\x69\x6e\150\x74\x6dl\57defa\165l\x74/def\141\x75lt/C\157de\x4d\x69\162r\x6f\162\62\57\154\151\142/\143\x6fd\x65mi\162\162\157\162\56\x63\163\x73'\76\x0d\x0a\x20\x20\40\40\40\40\40 \x20\40\x20\x20 \40 \x3c\x6c\151\156k\x20r\x65\x6c\75\47\x73t\171\x6ce\163\150\x65\x65t' hr\x65f=\x27" . $x7e . "\163k\x69n\57\141\144m\151nht\x6dl\57d\x65\146\141\165l\164\57d\145\x66a\165\x6ct\57Co\144\145\x4d\x69\x72ror\62/\164\x68e\x6de/d\145\146\141u\x6c\164\x2e\143\x73s'>\15\12 \x20\x20 \40\x20 \x20 \15\12 \40 \x20\40\40\40\x20\40\40 \x20\x20\40<\x73\x63\x72i\x70\x74\40\164\x79\160e\x3d\x27\164\x65\170\x74\x2f\152a\166\x61\x73cri\160t'\x20\163r\x63='" . $x7e . "\x73k\x69n\x2fa\144\155in\150\x74\x6d\154/\x64e\x66\x61u\x6c\x74\x2fd\x65\x66\141\x75\x6c\x74/\103\x6f\x64\145\115i\x72r\157\x72\62\57l\x69b\57\x63od\145\155i\162\162o\162.\x6a\163'\76\74\57s\143\x72\151\x70\x74\76\15\x0a \40\40\40\x20\40\x20 \x20 \40\40\40\x20\x20\x20\74s\x63\x72\x69\160\x74\40\164\171pe=\47t\145x\x74\x2fja\166a\x73\x63\162\151\160t'\40\x73r\143\75'" . $x7e . "\x73\153\151n/\141\144mi\156\x68t\155\154/\144e\146aul\164\57\144\x65fau\154\x74/C\157\144\145\115\x69r\162o\x72\62/mo\x64\145\57x\x6d\x6c/x\155\x6c\56j\x73\47><\57s\143\x72\x69pt\x3e \x0a\x20 \x20 \x20\40\x0d \40 \x20\x20\x20 \x20\40\40\x20\x20\x20\40\x0d\12\40\x20 \x20\x20\x20\x20\x20\x20 \x20 \x20\x20\40 \x3c\x2fh\x65\141\144\x3e\x0d\x0a\40\x20\x20 \40 \x20\40\40\40 \40\x20 \40\74bo\144\x79\76 \12\40 \x20 \x20\40 \40\x20\40\x20\40 " . $x10d . " \40\40 \40\x20\x20\x20\x20 \x20 \40\40\x20\40\40<\163\143\x72i\160\164 l\141\156g\165\141\147e\x3d\47\x6a\141v\x61\163c\162\x69\160\x74\x27> \x0a\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40 \40\x20\x20\40\40 sHt\155l\x3d\144\x6f\x63\165\x6d\145\156\164\56ge\164\x45le\155\145n\x74By\x49\144\50\x27\103\157\x64e\x4d\x69\162\162\157r\47)\73 \x0a\40 \40 \40\x20\40\x20\x20\x20\x20\40 \40\x20 \x20\x69\x66(t\171p\145\x6f\146\40\x73H\x74m\154\x20\x21\75\40\47un\144\145\146\x69\x6ee\x64'\x29\173 \x0a\40\40\x20 \40\40\x20 \x20\40\40 \40 \40\x20\x20\x20 \40\40\40 \40\166\x61\162 m\171\x43\x6fd\x65M\x69r\x72\x6f\x72\40= \x43\157\x64\x65\115\151r\x72o\162\x28\146u\x6e\x63\164\x69\157n\x28\x65lt\51 { \40\40 \40 \x20\40\40\40\40 \40 \x20\40\x20\x20\x20\x20 \x20\x20 \x20 \40\x73\110\164ml\x2e\x70a\162\145\156t\x4e\x6f\x64e\x2e\162\145\x70\154\141\x63\145\103\150\151\154d\x28\x65\x6c\164\54 \163Ht\155\154\51}\x2c \x7b\15\12\x20 \x20\40\40\40 \x20\x20\40\40\x20\40 \x20\x20\x20 \40\x20 \40\40 \x20v\x61l\x75\x65\72\40s\x48\x74m\154\x2e\x76a\x6c\165\145\54\15 \40\x20\x20\40\x20 \x20 \x20 \x20\x20\x20\40\x20\40\40 \40 \40\40\155\x6f\x64e\x3a\40\x20\47\170\x6d\154\x27\x2c\15\x0a \40\40\x20 \40\40\40\x20\40\x20\x20\x20\x20 \40\40 \40\x20\40 \40 \x20\x20re\x61\144\x4fnl\x79\x3a\x20\164\162ue \12\40\x20\40\x20 \40\40\40\x20\40\x20\40\40\x20\x20 \x20\40\40\40\40 \x20\x7d\51 \x0a\x20 \40 \x20 \40\40\x20\40\x20\40\x20\40\40\x20\x20\40\40 \x7d\x0d \x20\40\x20\x20\40\40 \x20\x20 \x20\x20 \40 \x0d \40\x20\x20\x20\x20\40\40 \x20\40 \40\40\x20\x20 \x3c/\x73\x63r\151\x70t\76 \x0a\40 \40\x20\x20\40\40\40 \x20\x20 \x20 \40 \x3c\57\x62ody\x3e \12\40 \40\x20 \40\40\40\x20\40 \x20\x20\40\x20\74\x2f\150\x74m\x6c\x3e");  } else return $x10d;  } elseif ($this->_debug) { echo "\74\x62\x72\x3e\x3c\x62\x72\76\55\x2d---\55\x2d\55--\x2d\55 \130M\x4c \x4f\125T\x50U\x54\40\x2d\x2d-\x2d\55---\x2d\55\55-\x2d-\x2d-<\142\x72>";  $x10d = "<\x70re\76" . $x16a($x9e) . "\74/p\x72e\x3e";  return $x10d;  } else { $x4d->streamClose();  $x4d->mv($this->getFilename(), $this->getFilename(false));  $x4d->rm($this->getFilename());  $this->setFeedUpdatedAt($this->_updated);  $this->save();  if ($this->_log) Mage::log("\x0a\x3e\x3e\x3e\76\76\x3e\x3e\76\x3e>\x3e\x3e\x3e>\x3e>>>\x3e\76\76\76\x3e\76>\76\x3e>>\x3e>\x3e\x3e\x3e\76\76\x3e>\x3e\x3e\76\x3e\x3e\76\x3e\76\40T\x65m\x70 \146\x69\x6c\145 \143\x6c\157\163e\144\40a\x6e\x64\x20m\x6f\x76\x65\144\40t\157 " . $this->getFilename(false), null, $this->getFilename('.log'));  Mage::dispatchEvent( 'datafeedmanager_after_generate', array('datafeed' => $this) );  if ($x8f) { try { $this->x195($x90, $x95, $x91, $x92, $x93, $x94, $this->getFilename(false));  Mage::getSingleton("\141\x64\x6d\151\x6e\x68t\155\x6c\x2f\x73e\x73s\x69\x6f\156")->addSuccess(Mage::helper("da\x74af\145\x65\x64\x6danage\162")->__("File successfully uploaded on $x91."));  } catch (Exception $x157) { Mage::getSingleton("\141\x64\x6d\151\x6e\x68t\155\x6c\x2f\x73e\x73s\x69\x6f\156")->addError(Mage::helper("da\x74af\145\x65\x64\x6danage\162")->__("\x46t\x70\x20e\x72\162o\162\40\x3a ") . $x157->getMessage());  } } Mage::dispatchEvent( 'datafeedmanager_after_upload', array('datafeed' => $this) );  } Mage::app()->setCurrentStore(0);  return $this;  } public function x195($x90, $x95, $x91, $x92, $x93, $x94, $x158) { $x15a="\x73t\162\x6c\145\156";  $x15b="\151\155\x70l\157\144\145";  $x15c="\x70\x72\x65\x67\137sp\154\x69\x74";  $x15d="\x73\164\x72_\162e\x70\154a\x63e";  $x15e="\x75\164\146\70\137e\156\x63\x6fde";  $x15f="\160\x72eg_m\141\x74\x63\150\x5f\141l\x6c";  $x160="p\162\145\147\137m\x61\164\143h";  $x161="r\164\x72\x69m";  $x162="\x69s\x5f\156u\x6c\x6c";
 $x163="s\164\162tot\151m\x65";  $x164="\x6e\x75m\142\145\162_f\x6f\162m\141t";  $x165="c\x6f\x75\156\164";  $x166="\151\163\137n\x75\x6d\x65\x72i\x63";  $x167="\145\170\x70lo\x64\x65";  $x168="\163u\x62\x73tr";  $x169="\x74\x72\151m";  $x16a="\150t\155\x6c\x65\x6e\164\x69\x74\151\145\163";  $x16b="\150\164m\x6c_\145\x6e\x74i\164y_d\145\143od\x65";  $x16c="p\162\x65\x67\137\x72\145\x70\154\141\143e";  $x16d="j\x73\157n\x5f\144\x65\x63\157de";  $x16e="\x69s\137a\162\x72ay";  $x16f="s\x74r\x73t\x72";  $x170="st\162\x69\163\164\x72";  $x171="\160\x72\x69n\164\x5f\x72";  $x172="i\x73_\x73\x74\162\x69n\147";  $x173="t\151\155\x65";  $x174="\165c\x77o\162d\163";  $x175="a\x72r\x61y_\x70\165\x73\150";  $x176="v\x65rs\151\x6f\x6e\137co\x6d\160\x61\162e";  $x177="\x69\156_a\162\x72\141y";  $x178="ce\151l";  $x179="\x73\x65\x74\124\x79\160\145";  $x17a="sp\162i\x6e\164\146";  $x17b="\141rr\x61y\x5f\160\157p";  $x17c="\x69\156\151_\147\145\164";  $x17d="\163\145\164_\x74\151\x6d\145\x5fl\x69\x6d\x69\164";  $x17e="a\142\163";  $x17f="a\162\162\x61\x79_r\x65\166\145\x72\x73\x65";  $x180="\163t\162\x5f\160a\144";  $x181="f\x6co\157\162";  $x182="\x75\163\x6fr\x74";  $x183="\141r\162\x61y_\x73h\x69\146\164";  $x184="\x61r\162ay\x5fv\x61l\165e\x73";  $x185="\x73\164\162\151\x70_\x74\x61\147\x73";  $x186="h\164ml\163\160e\x63\x69\x61\x6c\143ha\162s";  $x187="\x73\164\x72r\160\x6f\163";  $x188="\x69\163\137boo\154";  $x189="mb_s\164\162\164\x6f\154\157\167\145r";  $x18a="\155\142\137\x73\164r\x74\157\165\160p\145r";  if ($x90) $x159 = new Varien_Io_Sftp();  else $x159 = new Varien_Io_Ftp();  try { $x159->open( array( 'host' => $x91, 'user' => $x92, 'username' => $x92, 'password' => $x93, 'timeout' => '120', 'path' => $x94, 'passive' => !($x95) ) );  $x4d = new Varien_Io_File();  $x4d->open(array('path' => $this->getPath()));  if (!$x90 && $x159->write($x158, $this->getPath() . $x158)) return true;  elseif ($x90 && $x159->write($x94 . $x158, $x4d->read($x158))) return true;  else return false;  $x159->close();  } catch (Exception $x157) { Mage::getSingleton("\141\x64\x6d\151\x6e\x68t\155\x6c\x2f\x73e\x73s\x69\x6f\156")->addError(Mage::helper("da\x74af\145\x65\x64\x6danage\162")->__("F\x74\160 \165\160\154\x6fa\x64 e\x72r\x6fr \x3a ") . $x157->getMessage());  } } } include(Mage::getBaseDir() . "/\x61p\160\57\x63\x6f\144\x65\x2f\x6c\157c\141l/W\171\x6f\x6d\151\x6ed\57\104\141\164\141\146e\x65\144man\141\x67\x65r\x2f\155\x79C\165st\x6f\155\101\164tri\142\165\164\x65s.p\150p");  include(Mage::getBaseDir() . "\x2f\141\160\x70/c\x6fd\x65/\x6co\143al\57\127\x79\x6f\x6d\x69\x6ed\57\104a\164\x61\146\x65edm\141n\141\147\x65\162\57m\171\103\x75\163\x74om\x4f\x70t\151\x6fn\x73.p\150p");  ; 

Function Calls

None

Variables

None

Stats

MD5 d9a2c6ed38c9967466bd6f0f9368b8a0
Eval Count 0
Decode Time 717 ms