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 $xe = 1; public function cmp($xf, $x10) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if ($x126($xf) == $x126($x10)) { return 0; } return ($x126($xf) < $x126($x10)) ? 1 : -1; } public function cmpArray($xf, $x10) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad";
$x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if ($x126($x127('', $xf)) == $x126($x127('', $x10))) { return 0; } return ($x126($x127('', $xf)) < $x126($x127('', $x10))) ? -1 : 1; } public function x157($myPattern, $product, $x11 = true, $x12 = false) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad";
$x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if ($x12) { $x13 = $x128("/
/", $myPattern); $x14 = $x13[0]; $x13[0] = null; $myPattern = $x127($x13, "
"); } $myPattern = $x129('<?', $x12a('__PHP__'), $myPattern); $myPattern = $x129('?>', $x12a('/__PHP__'), $myPattern); $x15 = $x12a('#(__PHP__)(.*?)/#s'); $x12b($x15, $myPattern, $x16); if (isset($x16[1])) { foreach ($x16[0] as $x17 => $x18) { if ($x11 == 1) { if (@eval($x16[2][$x17] . '; ')) $myPattern = $x129($x18, eval($x16[2][$x17] . '; '), $myPattern); else $myPattern = $x129($x18, '', $myPattern); } else { if (@eval($this->unx15e($x16[2][$x17] . '; '))) $myPattern = $x129($x18, $this->x15e(eval($this->unx15e($x16[2][$x17]) . '; ')), $myPattern); else $myPattern = $x129($x18, '', $myPattern); } } } if ($x12) { if ($x11 == 1) return $x14 . "
" . $myPattern; else return $x14; } else return $myPattern; } protected function _construct() { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $this->_sqlSize = Mage::getStoreConfig("datafeedmanager/system/sqlsize"); $this->_init('datafeedmanager/configurations'); } protected function _beforeSave() { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode";
$x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x19 = new Varien_Io_File(); $x1a = $x19->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); $x1b = Mage::getModel('datafeedmanager/configurations')->getCollection(); foreach ($x1b as $x1c) { if ($x1c->getFeedName() == $this->getFeedName() && $this->getId() != $x1c->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.')); } } if (!$x19->allowedPath($x1a, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x19->fileExists($x1a, 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 (!$x19->isWriteable($x1a)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$x12c('#^[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($x12d($x129($x129('\', '/', Mage::getBaseDir()), '', $x1a), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if ($x12e($this->_filePath)) { $this->_filePath = $x129('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x1d = '.temp') { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime";
$x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x1e = 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(), $x12f($this->_updated)); } $x1f = $x129('{f}', $this->getFeedName(), $this->_date); $x20 = $x1f . "." . $x1e[$this->getFeedType()] . $x1d; if (!$x1d) $this->_filename = $x20; return $x20; } public function getPreparedFilename() { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; return $this->getPath() . $this->getFilename(); } public function x158($x21, $x22) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace";
$x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x23 = $this->_currencies; if (isset($x23[$x22])) { return $x21 * $x23[$x22]; } else { return $x21; } } public function x159($x21, $x24, $x25, $x26 = false) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x27 = $this->_rates; $x21 = $x130($x21, 2, '.', ''); if ($x26 === false) { if (!$x24 && isset($x27[$x25])) { if ($x131($x27[$x25]) > 1) { return $x21;
} else { return $x21 * ($x27[$x25][0]['rate'] / 100 + 1); } } else { return $x21; } } elseif ($x26 === "0") { if ($x24 && isset($x27[$x25])) { if ($x131($x27[$x25]) > 1) { return $x21; } else { return 100 * $x21 / (100 + ($x27[$x25][0]['rate'])); } } else { return $x21; } } else { if ($x132($x26)) { if ($x25 != 0) { return $x21 * ($x26 / 100 + 1); } elseif ($x25 == 0) { return $x21; } } else { $x26 = $x133('/', $x26); $x28 = 0; $x29 = false; if ($x134($x26[0], 0, 1) == "-") { $x26[0] = $x134($x26[0], 1); $x29 = true; } if ($x27[$x25]) { foreach ($x27[$x25] as $x2a) { if ($x2a['country'] == $x26[0]) { if (!isset($x26[1]) || $x2a['code'] == $x26[1]) { $x28 = $x2a['rate']; break; } } } if (!$x29) return $x21 * ($x28 / 100 + 1); else { return 100 * $x21 / (100 + ($x28)); } } else { return $x21; } } } } public function x15a($x2b, $x2c = true, $x2d = true) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x15 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x12b($x15, $x2b, $x16); foreach ($x16[1] as $x17 => $value) { $x2e = $x135($x16[2][$x17]); if (empty($x2e) && !$x132($x2e) && $x2d) $x2b = $x129($x16[0][$x17], '', $x2b); else { if ($x2c) $x2b = $x129($x16[0][$x17], ($x16[1][$x17]) . '<![CDATA[' . $x2e . ']]>' . ($x16[3][$x17]), $x2b); else { $x2b = $x129($x16[0][$x17], ($x16[1][$x17]) . $x2e . ($x16[3][$x17]), $x2b); } } } $xf = $x128("/
/s", $x2b); $x2f = ''; foreach ($xf as $x30) { ($x126($x135($x30)) > 0) ? $x2f.=$x30 . "
" : false; } $x2b = $x2f; return $x2b; } public function x15b($x31) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr";
$x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if ($this->_feed_encoding != 'UTF-8') { $x31 = $x136($x31, ENT_NOQUOTES, 'UTF-8'); $x31 = $x137($x31, ENT_NOQUOTES, $this->_feed_encoding); } return $x31; } public function x15c($x15, $x12 = false) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x15 = $x138('/(
|
|
|
)/s', '', $x15); $x32 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; '; $x33 = $x139($x15); if (!$x13a($x33)) $x34[] = $x33; else $x34 = $x33; $x35 = null; foreach ($x34 as $x33) { $x36 = 0; if (isset($x33->header)) $x33 = $x33->header; else { $x33 = $x33->product; } if ($x12) $x35 = "<tr style='background-color:grey; color:white; font-weight:bold'>"; else { $x35 .= "<tr>"; } foreach ($x33 as $x17 => $value) { $value = (($value)); if ($x36) $x36++; if ($x13b($value, "/breakline/")) { $value = $x129("/breakline/", "</tr><tr>", $value); $x36 = 1; } ($value != null) ? $x37 = ($value) : $x37 = "<span style='font-size:px;
color:grey'>(empty)</span>"; $x35.="<td style='" . $x32 . "'>" . $x37 . "</td>"; } $x35.="</tr>"; } return $x35; } public function x15d($x15, $x38, $x39, $x3a) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x15 = $x138('/(
|
|
|
)/s', '', $x15); $x33 = $x139($x15); if (!$x13a($x33)) $x34[] = $x33; else $x34 = $x33; $x30 = ''; if ($x38 == ' ') $x38 = " "; foreach ($x34 as $x33) { $x36 = 0; if (isset($x33->header)) $x33 = $x33->header; else { if (!$x139($x15)) return ""; $x33 = $x33->product; } $x3b = 0; foreach ($x33 as $x17 => $value) { if ($x36 > 0) $x36 = 2; if ($x13b($value, "/breakline/")) $x36++; if ($x3b > 0 && $x36 < 2) $x30.=$x38; if (!$x13b($value, "/breakline/")) $x36 = 0; if ($x39 != "") { $x30.=$x39 . $this->x15e($x129("/breakline/", '', $value), $x39, $x3a) . $x39; if ($x13b($value, "/breakline/")) { $x30 .= "
"; } } else { $value = $x129("/breakline/", "
", $value); $x30.= $this->x15e($value, $x38, $x3a); } $x3b++; } if ($x38 == "[|]") $x30.="[:]"; if (!$x36) $x30 .= "
"; } return $x30; } public function x15e($x15, $x3c = '"', $x3a = "\") { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r";
$x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x15 = $x129($x3c, $x3a . $x3c, $x15); return $x15; } public function unx15e($x15, $x3c = '"') { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $x15 = $x129('\' . $x3c, $x3c, $x15); return $x15; } public function x160($x3d) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr";
$x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if (!$x13c($x3d, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$x13c($x3d, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x3e, $product) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if (($x3e == "parent" || $x3e == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x3e == "parent" || $x3e == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x3e == "parent" || $x3e == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()]; else { return $product; } } public function skipOptions($x3f) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode";
$x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; $this->option = $this->option + $x3f; } public function generateFile() { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="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>"; $x13d($x40); } $x41 = $this->_indexPhp; $x42 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "dfm", "ver" => "7.3.0"); $x13e(Mage::app()->getRequest()->getParam("store_id")) ? $x43 = Mage::app()->getRequest()->getParam("store_id") : $x43 = $this->getStoreId(); $x44 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x45 = Mage::getDesign()->getSkinUrl(); $x46 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x43); $x47 = Mage::getStoreConfig("currency/options/base", $x43); $x48 = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x43); $x49 = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x43); $x4a = Mage::app()->getStore($x43)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x4b = Mage::getModel('core/store')->load($x43)->getBaseUrl(); $x4c = Mage::app()->getStore($x43)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x4d = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x43); $x4e = Mage::app()->getStore($x43)->getRootCategoryId();
$x4f = 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"), ); $x13e(Mage::app()->getRequest()->getParam("feed_product")) ? $x50 = Mage::app()->getRequest()->getParam("feed_product") : $x50 = $this->getFeed_product(); $x13e(Mage::app()->getRequest()->getParam("feed_header")) ? $x3d = Mage::app()->getRequest()->getParam("feed_header") : $x3d = $this->getFeed_header(); $x13e(Mage::app()->getRequest()->getParam("feed_footer")) ? $x51 = Mage::app()->getRequest()->getParam("feed_footer") : $x51 = $this->getFeed_footer(); $x13e(Mage::app()->getRequest()->getParam("feed_type")) ? $x52 = Mage::app()->getRequest()->getParam("feed_type") : $x52 = $this->getFeed_type(); $x13e(Mage::app()->getRequest()->getParam("feed_extraheader")) ? $x53 = Mage::app()->getRequest()->getParam("feed_extraheader") : $x53 = $this->getFeed_extraheader(); $x13e(Mage::app()->getRequest()->getParam("feed_extrafooter")) ? $x54 = Mage::app()->getRequest()->getParam("feed_extrafooter") : $x54 = $this->getFeed_extrafooter(); $x13e(Mage::app()->getRequest()->getParam("feed_include_header")) ? $x55 = Mage::app()->getRequest()->getParam("feed_include_header") : $x55 = $this->getFeed_include_header(); $x13e(Mage::app()->getRequest()->getParam("feed_separator")) ? $x38 = Mage::app()->getRequest()->getParam("feed_separator") : $x38 = $this->getFeed_separator(); $x13e(Mage::app()->getRequest()->getParam("feed_protector")) ? $x39 = Mage::app()->getRequest()->getParam("feed_protector") : $x39 = $this->getFeed_protector(); $x13e(Mage::app()->getRequest()->getParam("feed_escape")) ? $x3a = Mage::app()->getRequest()->getParam("feed_escape") : $x3a = $this->getFeed_escape(); $x13e(Mage::app()->getRequest()->getParam("feed_satus")) ? $x56 = Mage::app()->getRequest()->getParam("feed_satus") : $x56 = $this->getFeed_status(); $x13e(Mage::app()->getRequest()->getParam("feed_enclose_data")) ? $x57 = Mage::app()->getRequest()->getParam("feed_enclose_data") : $x57 = $this->getFeed_enclose_data(); $x13e(Mage::app()->getRequest()->getParam("feed_clean_data")) ? $x58 = Mage::app()->getRequest()->getParam("feed_clean_data") : $x58 = $this->getFeed_clean_data(); $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x59 = $x139(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) : $x59 = $x139($this->getDatafeedmanagerCategories()); $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_category_filter")) ? $x5a = Mage::app()->getRequest()->getParam("datafeedmanager_category_filter") : $x5a = $this->getDatafeedmanagerCategoryFilter(); $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x40 = Mage::app()->getRequest()->getParam("datafeedmanager_categories") : $x40 = $this->getDatafeedmanagerCategories(); $x13e(Mage::app()->getRequest()->getParam("feed_encoding")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("feed_encoding") : $this->_feed_encoding = $this->getFeed_encoding(); $x5b = $this->getFtpEnabled(); $x5c = $this->getUseSftp(); $x5d = $this->getFtpHost(); $x5e = $this->getFtpLogin(); $x5f = $this->getFtpPassword(); $x60 = $this->getFtpDir(); $x61 = $this->getFtpActive(); $x62 = Array(); $x63 = Array(); if ($x40 != '*' && $x13a($x59)) { foreach ($x59 as $x64) { if ($x64->checked) $x62[] = $x64->line; } foreach ($x59 as $x64) { if ($x64->mapping != "") $x63[$x64->line] = $x64->mapping; } } if ($x131($x62) < 1) { $x62[] = '*'; } $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) ? $x65 = $x133(',', Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) : $x65 = $x133(',', $this->getDatafeedmanagerTypeIds()); $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) ? $x66 = $x133(',', Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) : $x66 = $x133(',', $this->getDatafeedmanagerVisibility()); $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) ? $x67 = $x133(',', Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) : $x67 = $x133(',', $this->getDatafeedmanagerAttributeSets()); $x13e(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) ? $x68 = $x139(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) : $x68 = $x139($this->getDatafeedmanagerAttributes()); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . strtoupper($this->getFilename(false)) . "-----------------", null, $this->getFilename('.log')); if ($x4f[$x42['ac']] != $x42["md"]($x42["md"]($x4f[$x42['ak']]) . $x42["md"]($x4f[$x42['bu']]) . $x42["md"]($x42["ext"]) . $x42["md"]($x42["ver"]))) { $$x42["ext"] = "valid"; $$x42["th"]->$x42["dm"] = true; } else { $$x42["th"]->$x42["dm"] = false; $$x42["ext"] = "valid"; } if (!$x56 && !$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($x13f()); $x19 = new Varien_Io_File(); $x19->setAllowCreateFolders(true); if (!$this->_display) { $x19->open(array('path' => $this->getPath())); if ($x19->fileExists($this->getFilename()) && !$x19->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())); } $x19->streamOpen($this->getFilename()); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->getFilename() . " created and opened", null, $this->getFilename('.log')); } if (!isset($$x42["ext"]) || $$x42["th"]->$x42["dm"]) { $$x42["th"]->$x42["dm"] = true; return $$x42["th"]; } $x69 = ''; $x6a = ''; header("Content-Type: text/html; charset=utf-8"); $x15 = '/{([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)?([^}|]*))?}/'; $x12b($x15, $x50, $x16); foreach ($x16[6] as $x17 => $x6b) { if ($x6b != "") { $x16[0][] = $x16[0][$x17]; $x16[1][] = $x6b; $x16[2][] = $x16[7][$x17]; $x16[3][] = $x16[8][$x17]; ; $x16[4][] = $x16[9][$x17]; ; } } foreach ($x16[11] as $x17 => $x6b) { if ($x6b != "") { $x16[0][] = $x16[0][$x17]; $x16[1][] = $x6b; $x16[2][] = $x16[7][$x17]; $x16[3][] = $x16[8][$x17]; ; $x16[4][] = $x16[9][$x17]; ; } } foreach ($x16[16] as $x17 => $x6b) { if ($x6b != "") { $x16[0][] = $x16[0][$x17]; $x16[1][] = $x6b; $x16[2][] = $x16[7][$x17]; $x16[3][] = $x16[8][$x17]; ; $x16[4][] = $x16[9][$x17]; ; } } $x16[0][] = "{categories,[1],[1],[1]}"; $x16[1][] = "categories"; $x16[2][] = ""; $x16[3][] = ",[1],[1],[1]"; $x6c = array(); $attributesRequired = array(); foreach ($x16[1] as $x17 => $x6b) { $x6c[$x17]['methodName'] = "get" . $x129(' ', '', $x140($x135($x6b)) . '()'); $x6c[$x17]['pattern'] = "{" . $x135($x6b) . "}"; $x6c[$x17]['fullpattern'] = $x16[0][$x17]; $x6c[$x17]['name'] = $x135($x6b); $x6c[$x17]['reference'] = $x135($x16[2][$x17]); if (empty($x6c[$x17]['reference'])) $x6c[$x17]['reference'] = 'self'; switch ($x6c[$x17]['name']) { case 'url': $x141($attributesRequired, 'url_key'); break; case 'uri': $x141($attributesRequired, 'url_key'); break; case 'G:IMAGE_LINK': $x141($attributesRequired, 'image'); $x141($attributesRequired, 'small_image'); $x141($attributesRequired, 'thumbnail'); break; case 'SC:IMAGES': $x141($attributesRequired, 'image'); $x141($attributesRequired, 'small_image'); $x141($attributesRequired, 'thumbnail');
break; case 'SC:DESCRIPTION': $x141($attributesRequired, 'description'); $x141($attributesRequired, 'short_description'); $x141($attributesRequired, 'manufacturer'); $x141($attributesRequired, 'name'); $x141($attributesRequired, 'sku'); break; case 'SC:EAN': $x141($attributesRequired, 'ean'); break; case 'SC:URL': $x141($attributesRequired, 'url_key'); $x141($attributesRequired, 'url'); break; case 'sc:images': $x141($attributesRequired, 'image'); $x141($attributesRequired, 'small_image'); $x141($attributesRequired, 'thumbnail'); break; case 'sc:description': $x141($attributesRequired, 'description'); $x141($attributesRequired, 'short_description'); $x141($attributesRequired, 'manufacturer'); $x141($attributesRequired, 'name'); $x141($attributesRequired, 'sku'); break; case 'sc:ean': $x141($attributesRequired, 'ean'); break; case 'sc:url': $x141($attributesRequired, 'url_key'); $x141($attributesRequired, 'url'); break; default : $x141($attributesRequired, $x6c[$x17]['name']); } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myRequiredAttributes.php"); $x6c[$x17]["value"] = '$product->get' . $x6c[$x17]['name'] . "()"; $x6c[$x17]["getText"] = 'getAttributeText(\'' . $x135($x6b) . '\')'; $x6d = '/\[([^\]]+)\]/'; $x12b($x6d, $x16[3][$x17], $x6e); $x6c[$x17]["options"] = $x6e[1]; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES REQUIRED ----------------<br>"; $x13d($x6c); } $x6f = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x43) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x40 = array(); foreach ($x6f as $x70) { $x40[$x70->getId()]['name'] = $x70->getName(); $x40[$x70->getId()]['path'] = $x70->getPath(); $x40[$x70->getId()]['level'] = $x70->getLevel(); $x40[$x70->getId()]['url'] = $x70->getUrl(); if ($x142(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("datafeedmanager/system/include_in_menu")) $x40[$x70->getId()]['include_in_menu'] = true; else $x40[$x70->getId()]['include_in_menu'] = $x70->getIncludeInMenu(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $x13d($x40); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->getFilename('.log')); $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x73 = $x71->getTableName('eav_entity_type'); $x74 = $x72->select()->from($x73)->where('entity_type_code=\'catalog_product\''); $x33 = $x72->fetchAll($x74); $x75 = $x33[0]['entity_type_id']; $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x76 = $x71->getTableName('directory_currency_rate'); $x74 = $x72->select()->from($x76)->where('currency_from=\'' . $x47 . '\''); $x23 = $x72->fetchAll($x74); $x77 = array(); foreach ($x23 as $x22) { $x77[$x22['currency_to']] = $x22['rate']; } $this->_currencies = $x77; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $x13d($x77); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->getFilename('.log')); $x78 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x75) ->addSetInfo() ->getData(); $x79 = array(); $x7a = array(); foreach ($x78 as $x17 => $x6b) { if ($x143($x6b['attribute_code'], $attributesRequired)) { $x141($x79, $x6b['attribute_code']); $x7a[$x6b['attribute_code']] = $x6b['frontend_input']; } } if ($x131($x79) > $this->max_attribute) { $x7b = false; } else { $x7b = true; } if (!$x143('special_price', $x79)) $x79[] = 'special_price'; if (!$x143('special_from_date', $x79)) $x79[] = 'special_from_date'; if (!$x143('special_to_date', $x79)) $x79[] = 'special_to_date'; if (!$x143('price_type', $x79)) $x79[] = 'price_type'; if (!$x143('price', $x79)) $x79[] = 'price'; $x79[] = 'tax_class_id'; foreach ($x68 as $x7c) { if (!$x143($x7c->code, $x79) && $x7c->checked) if (!$x143($x7c->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) $x79[] = $x7c->code; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $x13d($x79); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->getFilename('.log')); $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x7d = $x71->getTableName('eav_attribute_option_value'); $x74 = $x72->select(); $x74->from($x7d); $x74->where("store_id=" . $x43 . ' OR store_id=0'); $x74->order(array('option_id', 'store_id')); $x7e = $x72->fetchAll($x74); foreach ($x7e as $x7f) { $x80[$x7f['option_id']][$x7f['store_id']] = $x7f['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $x13d($x80); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->getFilename('.log')); $x81 = $x71->getTableName('tax_class'); $x82 = $x71->getTableName('tax_calculation'); $x83 = $x71->getTableName('tax_calculation_rate'); $x84 = $x71->getTableName('directory_country_region'); $x85 = $x71->getTableName('customer_group'); $x74 = $x72->select(); $x74->from($x81)->order(array('class_id', 'tax_calculation_rate_id'));
$x74->joinleft(array('tc' => $x82), 'tc.product_tax_class_id = ' . $x81 . '.class_id', 'tc.tax_calculation_rate_id'); $x74->joinleft(array('tcr' => $x83), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x74->joinleft(array('dcr' => $x84), 'dcr.region_id=tcr.tax_region_id', 'code'); $x74->joinInner(array('cg' => $x85), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $x86 = $x72->fetchAll($x74); $x27 = array(); $x1d = ''; foreach ($x86 as $x87) { if ($x1d != $x87['class_id']) $x88 = 0; else { $x88++; } $x1d = $x87['class_id']; $x27[$x87['class_id']][$x88]['rate'] = $x87['rate']; $x27[$x87['class_id']][$x88]['code'] = $x87['code']; $x27[$x87['class_id']][$x88]['country'] = $x87['tax_country_id']; } $this->_rates = $x27; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $x13d($x27); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->getFilename('.log')); $x89 = $x71->getTableName('review'); $x8a = $x71->getTableName('review_store'); $x8b = $x71->getTableName('rating_option_vote'); $x8c = $x72->select()->distinct('review_id'); $x8c->from(array("r" => $x89), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); $x8c->joinleft(array('rs' => $x8a), 'rs.review_id=r.review_id', 'rs.store_id'); $x8c->joinleft(array('rov' => $x8b), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x8c->where("status_id=1 and entity_id=1"); $x8c->group(array('r.entity_pk_value', 'rs.store_id')); $x8d = $x72->select(); $x8d->from(array("r" => $x89), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS store_id")); $x8d->joinleft(array('rs' => $x8a), 'rs.review_id=r.review_id', array()); $x8d->joinleft(array('rov' => $x8b), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x8d->where("status_id=1 and entity_id=1"); $x8d->group(array('r.entity_pk_value')); $x74 = $x72->select() ->union(array($x8c, $x8d)); $x74->order(array('entity_pk_value', 'store_id')); $x8e = $x72->fetchAll($x74); $x8f = array(); foreach ($x8e as $x90) { $x8f[$x90['entity_pk_value']][$x90['store_id']]["count"] = $x90["count"]; $x8f[$x90['entity_pk_value']][$x90['store_id']]['score'] = $x90['score']; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->getFilename('.log')); $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x91 = $x71->getTableName('catalog_product_entity_media_gallery'); $x92 = $x71->getTableName('catalog_product_entity_media_gallery_value'); $x74 = $x72->select(array("DISTINCT value")); $x74->from($x91); $x74->joinleft(array('cpemgv' => $x92), 'cpemgv.value_id = ' . $x91 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x74->where("value<>TRIM('') AND (store_id=" . $x43 . ' OR store_id=0)'); $x74->order(array('position', 'value_id')); $x93 = $x72->fetchAll($x74); foreach ($x93 as $x94) { if ($x94['disabled'] != 1 && $x94['value'] != '') { $x95[$x94['entity_id']]['src'][] = $x94['value']; $x95[$x94['entity_id']]['disabled'][] = $x94['disabled']; } } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $x13d($x95); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->getFilename('.log')); Mage::app()->setCurrentStore($x43); $x96 = $x71->getTableName("cataloginventory_stock_item"); $x97 = $x71->getTableName("core_url_rewrite"); $x76 = $x71->getTableName('catalog_category_product'); $x98 = $x71->getTableName('catalog_category_product_index'); $x99 = $x71->getTableName('catalog_product_index_price'); $x9a = $x71->getTableName('catalog_product_super_link'); $x9b = $x71->getTableName('catalog_product_link'); $x9c = $x71->getTableName('catalog_product_bundle_selection'); ($x142(Mage::getVersion(), '1.6.0', '<')) ? $x6e = "options=''" : $x6e = "ISNULL(options)"; switch (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) { case 1 : $x9d = "AND url.target_path NOT LIKE '%category%'"; $x9e = 'MAX'; break; default : $x9d = "AND url.target_path LIKE '%category%'"; $x9e = 'GROUP_CONCAT'; break; break; } $x9f = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x9f->addFieldToFilter("status", array('gteq' => 1)); else $x9f->addFieldToFilter("status", 1); $x9f->addAttributeToFilter('type_id', array("in" => "configurable")); $x9f->addAttributeToFilter('visibility', array("nin" => 1)); $x9f->addAttributeToSelect($x79, $x7b); $x9f->getSelect()->joinLeft($x9a . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $x9f->getSelect()->joinLeft($x96 . ' 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")) $x9f->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); $x9f->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); $x9f->getSelect()->joinLeft($x98 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa0 = 0; $xa1 = clone $x9f; $xa1->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id'); ; $xa2 = $xa1->getFirstItem()->getTotal(); $xa3 = $x144($xa2 / $this->_sqlSize); while ($xa0 < $xa3) { $xa4 = clone $x9f; $xa4->getSelect()->group(array('cpsl.parent_id')); $xa4->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa0)); if ($this->_sqlSize * ($xa0 + 1) > $xa2) $xa5 = $xa2; else $xa5 = $this->_sqlSize * $xa0; $xa0++; foreach ($xa4 as $xa6) { foreach ($x133(",", $xa6->getChildIds()) as $xa7) { $xa8[$xa7] = $xa6; $xa9[$xa7]['categories_ids'] = $xa6->getCategories_ids(); $xa9[$xa7]['parent_id'] = $xa6->getId(); $xa9[$xa7]['parent_sku'] = $xa6->getSku(); $xa9[$xa7]['parent_request_path'] = $xa6->getRequestPath(); } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable products from " . ($this->_sqlSize * ($xa0 - 1) + 1) . " to " . $xa5, null, $this->getFilename('.log'));
} $this->configurable = $xa8; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo $x9f->getSelect() . '<br><br>'; $x13d($xa9); } $x9f = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x9f->addFieldToFilter("status", array('gteq' => 1)); else $x9f->addFieldToFilter("status", 1); $x9f->addAttributeToFilter('type_id', array("in" => "configurable")); $x9f->addAttributeToFilter('visibility', array("nin" => 1)); $x9f->getSelect()->joinLeft($x9a . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $x9f->getSelect()->joinLeft($x96 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xaa = array(); $xa0 = 0; $xa1 = clone $x9f; $xa1->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id'); ; $xa2 = $xa1->getFirstItem()->getTotal(); $xa3 = $x144($xa2 / $this->_sqlSize); while ($xa0 < $xa3) { $xa4 = clone $x9f; $xa4->getSelect()->group(array('cpsl.parent_id')); $xa4->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa0)); if ($this->_sqlSize * ($xa0 + 1) > $xa2) $xa5 = $xa2; else $xa5 = $this->_sqlSize * $xa0; $xa0++; foreach ($xa4 as $xab) { $xaa[$xab->getId()] = $xab->getQty(); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable qty from " . ($this->_sqlSize * ($xa0 - 1) + 1) . " to " . $xa5, null, $this->getFilename('.log')); } $this->configurableQty = $xaa; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo $x9f->getSelect() . '<br><br>'; $x13d($xaa); } $x9a = $x71->getTableName("catalog_product_super_link"); $xac = $x71->getTableName("catalog_product_super_attribute"); $xad = $x71->getTableName("catalog_product_entity_int"); $xae = $x71->getTableName("catalog_product_super_attribute_pricing"); $xaf = $x72->select(); $xaf->from(array("cpsl" => $x9a), array("parent_id", "product_id")); $xaf->joinleft(array("cpsa" => $xac), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); $xaf->joinleft(array("cpei" => $xad), "cpei.entity_id = cpsl.product_id AND cpei.attribute_id = cpsa.attribute_id", array("value" => "value")); $xaf->joinleft(array("cpsap" => $xae), "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")); $xaf->order(array("cpsl.parent_id", "cpsl.product_id")); $xaf->group(array("cpsl.parent_id", "cpsl.product_id", "cpsa.attribute_id")); $xb0 = $x72->fetchAll($xaf); $xb1 = array(); foreach ($xb0 as $xab) { $xb1[$xab["parent_id"]][$xab["product_id"]][$xab['attribute_id']]['attribute_id'] = $xab["attribute_id"]; $xb1[$xab["parent_id"]][$xab["product_id"]][$xab['attribute_id']]['value'] = $xab["value"]; $xb1[$xab["parent_id"]][$xab["product_id"]][$xab['attribute_id']]['pricing_value'] = $xab["pricing_value"]; $xb1[$xab["parent_id"]][$xab["product_id"]][$xab['attribute_id']]['is_percent'] = $xab["is_percent"]; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable prices collected", null, $this->getFilename('.log')); $this->configurablePrices = $xb1; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES PRICES ----------------<br>"; echo $xaf . '<br><br>'; $x13d($xb1); } $x9a = $x71->getTableName("catalog_product_super_link"); $xac = $x71->getTableName("catalog_product_super_attribute"); $xb2 = $x71->getTableName("catalog_product_super_attribute_label"); $xb3 = $x72->select(); $xb3->from(array("cpsl" => $x9a), array("parent_id", "product_id")); $xb3->joinleft(array("cpsa" => $xac), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); $xb3->joinleft(array("cpsal" => $xb2), "cpsal.product_super_attribute_id = cpsa.product_super_attribute_id", array("relationship" => "GROUP_CONCAT(DISTINCT cpsal.value SEPARATOR '>>>')")); $xb3->order(array("cpsl.parent_id", "cpsl.product_id")); $xb3->group(array('cpsl.parent_id', 'cpsl.product_id')); $xb4 = $x72->fetchAll($xb3); foreach ($xb4 as $xb5) { $xb6[$xb5['product_id']] = $xb5['relationship']; $xb6[$xb5['parent_id']] = $xb5['relationship']; } $this->_productRelationShip = $xb6; if ($this->_debug) { echo "<br><br>------------ RELATIONSHIP ----------------<br>"; echo $xb3 . '<br><br>'; $x13d($xb6); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relationship collected", null, $this->getFilename('.log')); $xa4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xa4->addFieldToFilter("status", array('gteq' => 1)); else $xa4->addFieldToFilter("status", 1); $xa4->addAttributeToFilter('type_id', array("in" => "grouped")); $xa4->addAttributeToFilter('visibility', array("nin" => 1)); $xa4->addAttributeToSelect($x79, $x7b); $xa4->getSelect()->joinLeft($x9b . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xa4->getSelect()->joinLeft($x96 . ' 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")) $xa4->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); $xa4->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); $xa4->getSelect()->joinLeft($x98 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa4->getSelect()->group(array('cpl.product_id')); $xb7 = array(); foreach ($xa4 as $xa6) { foreach ($x133(",", $xa6->getChildIds()) as $xa7) { $xb7[$xa7] = $xa6; $xb8[$xa7]['categories_ids'] = $xa6->getCategories_ids(); $xb8[$xa7]['parent_id'] = $xa6->getId(); $xb8[$xa7]['parent_sku'] = $xa6->getSku(); $xb8[$xa7]['parent_request_path'] = $xa6->getRequestPath(); } } $this->grouped = $xb7; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo $xa4->getSelect() . '<br><br>'; $x13d($xb8); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->getFilename('.log')); $xa4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xa4->addFieldToFilter("status", array('gteq' => 1)); else $xa4->addFieldToFilter("status", 1); $xa4->addAttributeToFilter('type_id', array("in" => "bundle")); $xa4->addAttributeToFilter('visibility', array("nin" => 1)); $xa4->addAttributeToSelect($x79, $x7b); $xa4->getSelect()->joinLeft($x9c . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xa4->getSelect()->joinLeft($x96 . ' 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")) $xa4->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); $xa4->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); $xa4->getSelect()->joinLeft($x98 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa4->getSelect()->group(array('e.entity_id')); $xb9 = array(); foreach ($xa4 as $xa6) { foreach ($x133(",", $xa6->getChildIds()) as $xa7) { $xb9[$xa7] = $xa6; $xba[$xa7]['parent_id'] = $xa6->getId(); $xba[$xa7]['parent_sku'] = $xa6->getSku(); $xba[$xa7]['parent_request_path'] = $xa6->getRequestPath(); $xba[$xa7]['categories_ids'] = $xa6->getCategories_ids(); } } $this->bundle = $xb9; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo $xa4->getSelect() . '<br><br>'; $x13d($xba); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->getFilename('.log')); $xbb = Mage::getModel('eav/entity') ->$x145('catalog_product') ->getTypeId(); $xbc = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xbb); foreach ($xbc as $xbd) { $xbe[$xbd->getId()] = $xbd->getAttributeSetName(); } $xbf = $x71->getTableName("catalog_product_entity_tier_price"); $xc0 = Mage::getModel('core/store')->load($x43)->getWebsiteId(); $xc1 = $x72->select(); $xc1->from(array("cpetp" => $xbf), array("entity_id", "all_groups", "customer_group_id", "value", "qty")); $xc1->order(array("cpetp.entity_id", "cpetp.customer_group_id", "cpetp.qty")); $xc1->where("cpetp.website_id=" . $xc0 . " OR cpetp.website_id=0"); $x8e = $x72->fetchAll($xc1); $xc2 = array(); foreach ($x8e as $xc3) { if ($xc3['all_groups'] == 1) $xc2[$xc3["entity_id"]][32000][] = array("qty" => $xc3['qty'], "value" => $xc3['value']); else $xc2[$xc3["entity_id"]][$xc3["customer_group_id"]][] = array("qty" => $xc3['qty'], "value" => $xc3['value']); } $this->_tierPrices = $xc2; if ($this->_debug) { echo "<br><br>------------ TIERS PRICES ----------------<br>"; echo $xc1 . '<br><br>'; $x13d($xc2); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Teiers Price collected", null, $this->getFilename('.log')); $xc4 = $x71->getTableName("catalog_product_option"); $xc5 = $x71->getTableName("catalog_product_option_title"); $xc6 = $x71->getTableName("catalog_product_option_type_value"); $xc7 = $x71->getTableName("catalog_product_option_type_title"); $xc8 = $x71->getTableName("catalog_product_option_type_price"); $xc9 = $x72->select(); $xc9->from(array("cpo" => $xc4), array("product_id")); $xc9->joinleft(array("cpot" => $xc5), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id")); $xc9->joinleft(array("cpotv" => $xc6), "cpotv.option_id = cpo.option_id", "sku"); $xc9->joinleft(array("cpott" => $xc7), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); $xc9->joinleft(array("cpotp" => $xc8), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); $x74 = $xc9->order(array("product_id", "cpotv.sort_order ASC")); $x8e = $x72->fetchAll($x74); $xca = array(); $xcb = 0; foreach ($x8e as $xcc) { $xca[$xcc["product_id"]][$xcc["option"]]["options"][] = array( "value" => $xcc["value"], "sku" => $xcc["sku"], "price" => $xcc["price"], "price_type" => $xcc["price_type"] ); $xcb++; } $this->customOptions = $xca; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo $xc9 . '<br><br>'; $x13d($xca); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->getFilename('.log')); $xcd = new Wyomind_Datafeedmanager_Model_MyCustomOptions; $xce = new Wyomind_Datafeedmanager_Model_MyCustomAttributes; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom attributes/options scripts loaded", null, $this->getFilename('.log')); $x9f = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x9f->addFieldToFilter("status", array('gteq' => 1)); else $x9f->addFieldToFilter("status", 1); $x9f->addAttributeToFilter("type_id", array("in" => $x65)); $x9f->addAttributeToFilter("visibility", array("in" => $x66)); if ($x67[0] != '*') $x9f->addAttributeToFilter("attribute_set_id", array("in" => $x67)); $x9f->addAttributeToSelect($x79, $x7b); $xcf = 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)", ); $xd0 = ''; $xf = 0; $xd1 = array(); foreach ($x68 as $x7c) { $x7c->value = $this->x157($x7c->value, null); if ($x7c->checked) { if ($x7c->condition == 'in' || $x7c->condition == 'nin') { if ($x7c->code == 'qty' || $x7c->code == 'is_in_stock') { $xd2 = $x133(',', $x7c->value); $x7c->value = "'" . $x127($xd2, "','") . "'"; } else { $x7c->value = $x133(',', $x7c->value); } } switch ($x7c->code) { case 'qty' : if ($xf > 0) $xd0.=' ' . $x7c->statement . ' '; $xd0.=" qty " . $x146($xcf[$x7c->condition], $x7c->value); $xf++; break; case 'is_in_stock' : if ($xf > 0) $xd0.=' ' . $x7c->statement . ' '; $xd0.=" (IF("; $xd0.="(use_config_manage_stock=1 AND $x48=0)"; $xd0.=" OR "; $xd0.='(use_config_manage_stock=0 AND manage_stock=0)'; $xd0.=" OR "; $xd0.="(use_config_manage_stock=1 AND $x48=1 AND is_in_stock=1 )"; $xd0.=" OR "; $xd0.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )"; $xd0.=",'1','0')" . $x146($xcf[$x7c->condition], $x7c->value) . ")"; $xf++; break; default : if ($x7c->statement == "AND") { if ($x131($xd1)) $x9f->addFieldToFilter($xd1); $xd1 = array(); } if ($x7c->condition == "in") { $xd3 = true; $xd4 = array(); foreach ($x7c->value as $x37) { if (!$x132($x37)) $xd3 = true; } if ($xd3) { foreach ($x7c->value as $x37) { $xd4[] = array(array("finset" => $x37)); } $xd1[] = array("attribute" => $x7c->code, $xd4); } else $xd1[] = array("attribute" => $x7c->code, $x7c->condition => $x7c->value); } else $xd1[] = array("attribute" => $x7c->code, $x7c->condition => $x7c->value); break; } } };
if ($x131($xd1)) $x9f->addFieldToFilter($xd1); $x9f->getSelect()->joinLeft($x96 . ' 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")) $x9f->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $x9f->getSelect()->joinLeft($x9a . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); $xd5 = null; if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xd5 = "OR (categories_index.category_id=categories_parent.category_id AND categories_index.product_id=categories_parent.product_id )"; if ($x62[0] != '*') { $x37 = 0; $xd6 = null; foreach ($x62 as $x64) { if ($x37 > 0) $xd6.=','; $xd6.=$x147($x133('/', $x64)); $x37++; } ($x5a) ? $xd7 = "IN" : $xd7 = "NOT IN"; if ($x142(Mage::getVersion(), '1.12.0', '<=')) { $xd6 = "AND categories_index.category_id " . $xd7 . " (" . $xd6 . ")"; $x9f->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id', array()); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $x9f->getSelect()->joinLeft($x76 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $x9f->getSelect()->joinInner($x98 . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xd5 . ') AND categories_index.store_id=' . $x43 . ' ' . $xd6, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { $xd6 = "AND categories.category_id " . $xd7 . " (" . $xd6 . ")"; $x9f->getSelect()->joinInner($x76 . ' AS categories', 'categories.product_id=e.entity_id ' . $xd6, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { $x9f->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $x9f->getSelect()->joinLeft($x76 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $x9f->getSelect()->joinLeft($x98 . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xd5 . ') AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($x142(Mage::getVersion(), '1.4.0', '>=')) $x9f->getSelect()->joinLeft($x99 . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xc0, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xd0)) $x9f->getSelect()->where($xd0); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request:
" . $x9f->getSelect(), null, $this->getFilename('.log')); if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>"; } $xa0 = 0; $xa1 = clone $x9f; $xa1->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total")->group('e.entity_type_id'); $this->_counter = $xa1->getFirstItem()->getTotal(); $xa3 = $x144($this->_counter / $this->_sqlSize); $x69 = ''; $xd8 = 1; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xa3 queries )", null, $this->getFilename('.log')); $x3d = $this->x157($x3d, null, $x52, true); if ($x52 == 1) $x3d = $this->x15b($x3d); if ($this->_display) { if ($x52 == 1) { $x6a = $this->x15a($x3d, $x57, $x58) . ""; } else { $x6a = $this->x157($x53) . '<br>'; $x6a.= "<table style='border:2px solid grey; font-family:arial; font-size:12px' cellspacing=0 cellpadding=0 width='100%'>"; if ($x55) { $x6a.=$this->x15c($x3d, true); } } } else { if ($x52 == 1) { $x19->streamWrite($this->x15a($x3d, $x57, $x58) . ""); } else { if ($x53 != '') $x19->streamWrite($this->x15b($this->x157($x53) . "
")); if ($x55) { $xd9 = $this->x15d($x3d, $x38, $x39, $x3a); $xd9 = $this->x15b($xd9); $x19->streamWrite($xd9); } } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Header template parsed and added", null, $this->getFilename('.log')); while ($xa0 < $xa3) { $xa4 = clone $x9f; if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>"; print($xa4->getSelect()); } $xa4->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa0)); $xa4->getSelect()->group(array('e.entity_id'))->order('e.entity_id'); $xa0++; if ($this->_sqlSize * $xa0 > $this->_counter) $xa5 = $this->_counter; else $xa5 = $this->_sqlSize * $xa0; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->_sqlSize * ($xa0 - 1) + 1) . " to " . $xa5, null, $this->getFilename('.log')); $xcb = 1; foreach ($xa4 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>"; echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x4e . "<br>"; foreach ($x133(',', $product->getCategoriesIds()) as $x17 => $x70) { echo $x70 . "=>" . $x40[$x70]["path"] . "<br>"; } } if (!$x148('safe_mode')) { $x149(60); } $x2b = $x50; foreach ($x6c as $x17 => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $x8e = 1; $xda = array(); foreach ($exp['options'] as $x17 => $option) { if (isset($xca[$product->getId()][$option])) { $x8e = $x8e * $x131($xca[$product->getId()][$option]["options"]); $xda[$x17] = 0; } } $x15 = array(); for ($x88 = 1; $x88 <= $x8e; $x88++) { $xdb = $x2b; foreach ($exp['options'] as $x17 => $option) { if (isset($xca[$product->getId()][$option])) { $xdb = $x129("{" . $option . "_label}", $xca[$product->getId()][$option]["options"][$xda[$x17]]['value'], $xdb); $xdb = $x129("{" . $option . "_sku}", $xca[$product->getId()][$option]["options"][$xda[$x17]]['sku'], $xdb); $xdb = $x129("{" . $option . "_price}", $xca[$product->getId()][$option]["options"][$xda[$x17]]['price'], $xdb); $xdb = $x129("{" . $option . "_type}", $xca[$product->getId()][$option]["options"][$xda[$x17]]['price_type'], $xdb); if ($x17 > 0 || $x131($xca[$product->getId()]) == 1 || $x131($exp['options']) < 2) $xda[$x17] ++; if ($xda[$x17] >= $x131($xca[$product->getId()][$option]["options"])) { $xda[$x17] = 0; $xda[$x17 - 1] ++; } } } $x15[] = $xdb; } if ($x131($x15) > 0) { if ($x52 == 1) $x2b = $x127($x15); else $x2b = "[" . $x127(',', $x15) . "]"; } $this->skipOptions($x131($exp['options'])); break; case '{use_options}': foreach ($exp['options'] as $x17 => $option) { if (isset($xca[$product->getId()][$option])) { $xdc = array(); $xdd = array(); $xde = array(); foreach ($xca[$product->getId()][$option]["options"] as $x2f) { $xdc[] = $x2f['value']; $xdd[] = $x2f['sku']; $xde[] = $x2f['price']; } $x2b = $x129("{" . $option . "_label}", $x127(',', $xdc), $x2b); $x2b = $x129("{" . $option . "_sku}", $x127(',', $xdd), $x2b); $x2b = $x129("{" . $option . "_price}", $x127(',', $xde), $x2b); } } $this->skipOptions($x131($exp['options'])); break; case '{id}' : $xdf = $this->checkReference($exp['reference'], $product); $value = $xdf->getId(); break; case '{inc}' : $value = $xd8; break; case '{status}': $xdf = $this->checkReference($exp['reference'], $product);
(!isset($exp['options'][0])) ? $x56 = "Enabled" : $x56 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xe0 = "Disabled" : $xe0 = $exp['options'][1]; if ($xdf->getStatus() == 2) $value = $xe0; else $value = $x56; $this->skipOptions(2); break; case '{attribute_set}': $xdf = $this->checkReference($exp['reference'], $product); $value = $xbe[$xdf->getAttributeSetId()]; break; case "{relationship}": $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xe1 = ', ' : $xe1 = $exp['options'][0]; if (isset($xb6[$xdf->getId()])) { $value = $x129(">>>", $xe1, $xb6[$xdf->getId()]); } $this->skipOptions(1); break; case '{final_price}' : $xdf = $this->checkReference($exp['reference'], $product); $x21 = $xdf->getFinalePrice(); (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $xdf = $this->checkReference($exp['reference'], $product); $x21 = $xdf->getMinPrice(); (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $xdf = $this->checkReference($exp['reference'], $product); $x21 = $xdf->getMaxPrice(); (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->type_id == 'bundle') $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{price}' : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xdf->type_id == "bundle") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "bundle") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xdf->getSpecialToDate()) { if ($xdf->type_id == "bundle") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "bundle") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } else { if ($xdf->type_id == "bundle") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp["options"][0])) ? $x22 = $x47 : $x22 = $exp["options"][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, ".", ""); $this->skipOptions(2); break;
case "{is_special_price}" : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp["options"][0])) ? $xe4 = 1 : $xe4 = $exp["options"][0]; (!isset($exp["options"][1])) ? $xe5 = 0 : $xe5 = $exp["options"][1]; if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xdf->type_id == "bundle") (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0 ) ? $value = $xe4 : $value = $xe5; else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $value = $xe4 : $value = $xe5; } } else { if ($xdf->type_id == "bundle") $value = $xe5; else { $value = $xe5; } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xdf->getSpecialToDate()) { if ($xdf->type_id == "bundle") (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0 ) ? $value = $xe4 : $value = $xe5; else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $value = $xe4 : $value = $xe5; } } else { if ($xdf->type_id == "bundle") $value = $xe5; else { $value = $xe5; } } } else { if ($xdf->type_id == "bundle") (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0 ) ? $value = $xe4 : $value = $xe5; else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $value = $xe4 : $value = $xe5; } } $this->skipOptions(2); break; case "{special_price}" : $xdf = $this->checkReference($exp['reference'], $product); $x21 = null; if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xdf->type_id == 'bundle') { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xdf->getSpecialToDate()) { if ($xdf->type_id == 'bundle') { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } } } else { if ($xdf->type_id == 'bundle') { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($x21 > 0) { if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $xdf = $this->checkReference($exp['reference'], $product); $x43 = $this->getStoreId(); $xe6 = Mage::getResourceModel('catalogrule/rule'); $xe7 = Mage::app()->getLocale()->storeTimeStamp($x43); $xe8 = Mage::app()->getStore($x43); $xc0 = $xe8->getWebsiteId(); $xe9 = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xea = $xe6->getRulePrice($xe7, $xc0, $xe9, $xdf->getId()); if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xdf->type_id == "bundle") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "bundle") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xdf->getSpecialToDate()) { if ($xdf->type_id == "bundle") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "bundle") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } else { if ($xdf->type_id == "bundle") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } if ($xea !== FALSE) { if ($xea < $x21) $value = $xea; else $value = $x21; } else $value = $x21; if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; $value = $this->x159($value, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp["options"][0])) ? $x22 = $x47 : $x22 = $exp["options"][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, ".", ""); $this->skipOptions(2); break; case '{group_price}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xeb = 0 : $xeb = $exp['options'][0]; $xdf->setCustomerGroupId($xeb); $xec = $xdf->getGroupPrice(); if ($x131($xec) == 1) { $x21 = $xec; } else { $x21 = $xec[0]['price']; } if ($x21 > 0) { if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } (!isset($exp['options'][2])) ? $x26 = false : $x26 = $exp['options'][2]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][1])) ? $x22 = $x47 : $x22 = $exp['options'][1]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xeb = 32000 : $xeb = $exp['options'][0]; if ($xeb == "*") $xeb = 32000;
(!isset($exp['options'][1])) ? $xed = 0 : $xed = $exp['options'][1]; $xc2 = $this->_tierPrices[$xdf->getId()]; if ($xed < 0) { $xed = $x14a($xed) - 1; $xc2[$xeb] = $x14b($xc2[$xeb]); } $x21 = $xc2[$xeb][$xed]['value']; if ($x21 > 0) { if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } (!isset($exp['options'][3])) ? $x26 = false : $x26 = $exp['options'][3]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][2])) ? $x22 = $x47 : $x22 = $exp['options'][2]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price_qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xeb = 0 : $xeb = $exp['options'][0]; if ($xeb == "*") $xeb = 32000; $xc2 = $this->_tierPrices[$xdf->getId()]; (!isset($exp['options'][1])) ? $xed = 0 : $xed = $exp['options'][1]; if ($xed < 0) { $xed = $x14a($xed) - 1; $xc2[$xeb] = $x14b($xc2[$xeb]); } $xee = $xc2[$xeb][$xed]['qty']; if ($xee > 0) $value = $xee; $this->skipOptions(2); break; case "{G:SALE_PRICE}" : $xdf = $this->checkReference($exp['reference'], $product); $xef = Mage::getSingleton('core/date')->getGmtOffset("hours"); if ($xef > 0) { $xf0 = "+"; $xf1 = $x14c($x14a($x14d($xef)), 2, 0, STR_PAD_LEFT) . ':' . $x14c(($x14a($xef) - $x14d($x14a($xef))) * 60, 2, 0, STR_PAD_LEFT); } else { $xf0 = ""; $xf1 = '-' . $x14c($x14a($x14d($xef)), 2, 0, STR_PAD_LEFT) . ':' . $x14c(($x14a($xef) - $x14d($x14a($xef))) * 60, 2, 0, STR_PAD_LEFT); } $xf2 = $x134($x129(' ', 'T', $xdf->getSpecialFromDate()), 0, -3); $xf3 = $x134($x129(' ', 'T', $x129(":00:00", "23:59:59", $xdf->getSpecialToDate())), 0, -3); if ($xdf->type_id == 'bundle' && $xdf->special_price) { if ($xdf->price_type) { $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, ".", ""); } else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($x21 > 0) { if ($xdf->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_percent"]) { $xe2+=( $xe3["pricing_value"] / 100) * $x21; } else $xe2+=$xe3["pricing_value"]; }; $x21+=$xe2; } } $x21 = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $x21 = $this->x158($x21, $x22); $x21 = $x130($x21, 2, '.', ''); ; } if ($x21 > 0) { $value = "<g:sale_price><![CDATA[" . $x21 . " " . $x22 . "]]></g:sale_price>
"; } if ($x21 > 0 && $xf3) { $value.="<g:sale_price_effective_date><![CDATA[" . $xf2 . $xf0 . $xf1 . "/" . $xf3 . $xf0 . $xf1 . "]]></g:sale_price_effective_date>
"; } $this->skipOptions(2); break; case "{image}" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xdf->getImage() && $xdf->getImage() != 'no_selection') { $xf5 = 'catalog/product/' . $xdf->getImage(); $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); } else { $value = $x4c . '/catalog/product/placeholder/' . $x46; } } elseif (isset($x95[$xdf->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x95[$xdf->getId()]['src'][$exp['options'][0] - 1] != $xf4) { $xf5 = 'catalog/product/' . $x95[$xdf->getId()]['src'][$exp['options'][0] - 1]; $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); } } $this->skipOptions(1); break; case "{G:IMAGE_LINK}" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getImage(); $xf6 = array($xdf->getSmall_image(), $xdf->getThumbnail()); $xf7 = ''; $xda = 0; if ($xdf->getImage() && $xdf->getImage() != 'no_selection') { $xf5 = 'catalog/product/' . $xdf->getImage(); $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); $xf7.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xda++; } $xf8 = 0; while (isset($x95[$xdf->getId()]['src'][$xf8]) && $xda < 10) { if ($x95[$xdf->getId()]['src'][$xf8] != $xf4) { if ($x143($x95[$xdf->getId()]['src'][$xf8], $xf6) || $x95[$xdf->getId()]['disabled'][$xf8] != 1) { $xf5 = 'catalog/product/' . $x95[$xdf->getId()]['src'][$xf8]; $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); $xf7.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xda++; } } $xf8++; } $value = $xf7; break; case "{url}" : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $xf9 = $x133(",", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x4b . $x147($xf9); } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $xf9 = $x133(",", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x4b . $x14f($xf9); } else $value = $x4b . $xdf->getRequest_path(); } else { $value = $xdf->getProductUrl(); } $value = $x129('https', 'http', $value); break; case "{host}" : $value = $x4b; break; case "{uri}" : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $xf9 = $x133(",", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x147($xf9); } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $xf9 = $x133(",", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x14f($xf9);
} else $value = $xdf->getRequest_path(); } else { $value = $x129($x4b, '', $xdf->getProductUrl()); } $value = $x129('https', 'http', $value); break; case '{is_in_stock}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfa = 'in stock' : $xfa = $exp['options'][0]; (!isset($exp['options'][1])) ? $xfb = "out of stock" : $xfb = $exp['options'][1]; (!isset($exp['options'][2])) ? $xfc = "available for order" : $xfc = $exp['options'][2]; if (($xdf->getManageStock() && !$xdf->getUseConfigManageStock() && !$x48) || ($xdf->getUseConfigManageStock() && $x48 ) || ($xdf->getManageStock() && !$xdf->getUseConfigManageStock())) { if ($xdf->getIsInStock() > 0) { if ($product->type_id == "configurable") $xee = $xaa[$product->getId()]; else $xee = $xdf->getQty(); if ($xee > 0) { $value = $xfa; } else { if ($xdf->getBackorders() || ($xdf->getUseConfigBackorders() && $x49)) { $value = $xfc; } else { $value = $xfb; } } } else $value = $xfb; } else { $value = $xfa; } $this->skipOptions(3); break; case '{stock_status}' : $xdf = $this->checkReference($exp['reference'], $product); ($xdf->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{min_qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfd = 0 : $xfd = $exp['options'][0]; $value = $x130($xdf->getMinQty(), $xfd, '.', ''); $this->skipOptions(1); break; case '{min_sale_qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfd = 0 : $xfd = $exp['options'][0]; $value = $x130($xdf->getMinSaleQty(), $xfd, '.', ''); $this->skipOptions(1); break; case '{qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfd = 0 : $xfd = $exp['options'][0]; if ($product->type_id == "configurable") { $value = $xaa[$product->getId()]; $value = $x130($value, $xfd, '.', ''); } else if ($exp['reference'] == "configurable") { $value = $x130($xaa[$xdf->getId()], $xfd, '.', ''); } else { $value = $x130($xdf->getQty(), $xfd, '.', ''); } $this->skipOptions(1); break; case "{categories_v1}" : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x100 = INF : $x100 = $exp['options'][2]; $x101 = 0; $value = ''; $x102 = ''; foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143($x40[$x70]["path"], $x62) : $x103 = !$x143($x40[$x70]["path"], $x62); if (isset($x40[$x70]) && $x101 < $xfe && ($x103 || $x62[0] == "*")) { $x104 = 0; $x105 = $x133('/', $x40[$x70]["path"]); if ($x143($x4e, $x105)) { $x106 = ""; if ($x101 > 0) $x102 = ","; foreach ($x105 as $x107) { if (isset($x40[$x107])) { if ($x40[$x107]['level'] > $xff && $x104 < $x100) { if ($x104 > 0) $x106.='>'; $x106.=($x40[$x107]['name']); $x104++; } } } $x108 = ""; if (!empty($x106)) { $value.=$x102 . $x106 . $x108; $x101++; } } } }; $this->skipOptions(3); break; case "{categories}" : $x109 = null; $xfe = INF; $xff = 1; $x10a = INF; $xe1 = ', '; $x10b = " > "; if ($x131($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x109 = "last" : $x109 = $exp['options'][0]; $xfe = 1; } elseif ($x131($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xe1 = ', ' : $xe1 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x10b = " > " : $x10b = $exp['options'][1]; } elseif ($x131($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x10a = INF : $x10a = $exp['options'][2]; (!isset($exp['options'][3])) ? $xe1 = ', ' : $xe1 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x10b = " > " : $x10b = $exp['options'][4]; } $xdf = $this->checkReference($exp['reference'], $product); $xf5 = 0; $x10c = array(); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143(@$x40[$x70]["path"], $x62) : $x103 = !$x143(@$x40[$x70]["path"], $x62); if (isset($x40[$x70]) && ($x103 || $x62[0] == "*")) { $xf5++; $x10c[$xf5] = array(); $x105 = $x133('/', $x40[$x70]["path"]); if ($x143($x4e, $x105)) { foreach ($x105 as $x107) { if (isset($x40[$x107]) && $x40[$x107]['name'] != null) { $x10c[$xf5][] = ($x40[$x107]['name']); } } } } } $x10d = array(); $x14e($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x109 == "last") $x10c = $x14b($x10c); $xdf->setCategoriesArray($x10c); $x10e = 0; foreach ($x10c as $x17 => $x104) { if ($x10e < $xfe) { foreach ($x104 as $x10f => $x110) { if ($x10f >= $xff && $x10f <= $x10a) { if (!isset($x10d[$x10e])) $x10d[$x10e] = array(); $x10d[$x10e][] .= $x110; } } if ($x131($x10d[$x10e])) $x10e++; } }; $value = null; foreach ($x150($x10d) as $x17 => $x111) { if ($x17 > 0) $value.=$xe1; $value.=$x127($x10b, $x111); } $this->skipOptions($x131($exp['options'])); break; case "{categories_url}" : $x109 = null; $xfe = INF; $xff = 1; $x10a = INF;
$xe1 = ', '; $x10b = " > "; if ($x131($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x109 = "last" : $x109 = $exp['options'][0]; $xfe = 1; } elseif ($x131($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xe1 = ', ' : $xe1 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x10b = " > " : $x10b = $exp['options'][1]; } elseif ($x131($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x10a = INF : $x10a = $exp['options'][2]; (!isset($exp['options'][3])) ? $xe1 = ', ' : $xe1 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x10b = " > " : $x10b = $exp['options'][4]; } $xdf = $this->checkReference($exp['reference'], $product); $xf5 = 0; $x10c = array(); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143(@$x40[$x70]["path"], $x62) : $x103 = !$x143(@$x40[$x70]["path"], $x62); if (isset($x40[$x70]) && ($x103 || $x62[0] == "*")) { $xf5++; $x10c[$xf5] = array(); $x105 = $x133('/', $x40[$x70]["path"]); if ($x143($x4e, $x105)) { foreach ($x105 as $x107) { if (isset($x40[$x107]) && $x40[$x107]['url'] != null) { $x10c[$xf5][] = ($x40[$x107]['url']); } } } } } $x10d = array(); $x14e($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x109 == "last") $x10c = $x14b($x10c); $xdf->setCategoriesArray($x10c); $x10e = 0; foreach ($x10c as $x17 => $x104) { if ($x10e < $xfe) { foreach ($x104 as $x10f => $x110) { if ($x10f >= $xff && $x10f <= $x10a) { if (!isset($x10d[$x10e])) $x10d[$x10e] = array(); $x10d[$x10e][] .= $x110; } } if ($x131($x10d[$x10e])) $x10e++; } }; $value = null; foreach ($x150($x10d) as $x17 => $x111) { if ($x17 > 0) $value.=$xe1; $value.=$x127($x10b, $x111); } $this->skipOptions($x131($exp['options'])); break; case "{G:PRODUCT_TYPE_v1}" : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x100 = INF : $x100 = $exp['options'][2]; $x101 = 0; $value = ''; foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143($x40[$x70]["path"], $x62) : $x103 = !$x143($x40[$x70]["path"], $x62); if (@$x40[$x70]["include_in_menu"] && isset($x40[$x70]) && $x101 < $xfe && ($x103 || $x62[0] == "*")) { $x104 = 0; $x105 = $x133('/', $x40[$x70]["path"]); if ($x143($x4e, $x105)) { $x106 = ''; $x102 = '<g:product_type><![CDATA['; foreach ($x105 as $x107) { if (isset($x40[$x107])) { if ($x40[$x107]['level'] > $xff && $x104 < $x100) { if ($x104 > 0) $x106.=' > '; $x106.=($x40[$x107]['name']); $x104++; } } } $x108 = "]]></g:product_type>
"; if (!empty($x106)) { $value.=$x102 . $x106 . $x108; $x101++; } } } }; $this->skipOptions(3); break; case "{G:PRODUCT_TYPE}" : $xe1 = "]]></g:product_type>
<g:product_type><![CDATA["; $x10b = " > "; (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x10a = INF : $x10a = $exp['options'][2]; $xdf = $this->checkReference($exp['reference'], $product); $xf5 = 0; $x10c = array(); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143(@$x40[$x70]["path"], $x62) : $x103 = !$x143(@$x40[$x70]["path"], $x62); if (isset($x40[$x70]) && ($x103 || $x62[0] == "*")) { $xf5++; $x10c[$xf5] = array(); $x105 = $x133('/', $x40[$x70]["path"]); if ($x143($x4e, $x105)) { foreach ($x105 as $x107) { if (isset($x40[$x107]) && $x40[$x107]['name'] != null) { $x10c[$xf5][] = ($x40[$x107]['name']); } } } } } $x10d = array(); $x14e($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); foreach ($x10c as $x17 => $x104) { if ($x17 < $xfe) foreach ($x104 as $x10f => $x110) { if ($x10f >= $xff && $x10f <= $x10a) { if (!isset($x10d[$x17])) $x10d[$x17] = array(); $x10d[$x17][] .= $x110; } } }; $value = null; foreach ($x150($x10d) as $x17 => $x111) { if ($x17 > 0) $value.=$xe1; $value.=$x127($x10b, $x111); } if (($x10d)) $value = "<g:product_type><![CDATA[" . $value . "]]></g:product_type>
"; $this->skipOptions($x131($exp['options'])); break; case "{G:GOOGLE_PRODUCT_CATEGORY}" : $x112 = array(); (!isset($exp['options'][0])) ? $x109 = "longest" : $x109 = $exp['options'][0]; $xdf = $this->checkReference($exp['reference'], $product); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { if (isset($x40[$x70]["path"]) && isset($x63[$x40[$x70]["path"]])) { $x112[] = $x63[$x40[$x70]["path"]]; } } $x14e($x112, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); if ($x109 == "shortest") $x112 = $x14b($x112); $x113 = $x14f($x112); if ($x113 != "") $value = "<g:google_product_category><![CDATA[" . $x113 . "]]></g:google_product_category>
"; $this->skipOptions(1); break; case "{category_mapping}" : (isset($exp["options"][0])) ? $x114 = $exp["options"][0] : $x114 = 0; $value = ""; $xdf = $this->checkReference($exp['reference'], $product); $x115 = 0; foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { if (isset($x63[$x40[$x70]["path"]])) { if ($x115 == $x114) { $value.=$x63[$x40[$x70]["path"]]; break; } $x115++; } } $this->skipOptions(1); break; case "{review_count}": $xdf = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x116 = 0 : $x116 = $x43; if (isset($x8f[$xdf->getId()][$x116]["count"])) { $x117 = $x8f[$xdf->getId()][$x116]["count"];
if (isset($x117)) $value.=$x117; } $this->skipOptions(1); break; case "{review_average}": $xdf = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x116 = 0 : $x116 = $x43; (!isset($exp["options"][1]) || !$exp["options"][1]) ? $x118 = 5 : $x118 = $exp["options"][1]; if (isset($x8f[$xdf->getId()][$x116]["score"])) { $x119 = $x130($x8f[$xdf->getId()][$x116]["score"] * $x118 / 100, 2, ".", ""); if (isset($x119)) $value.=$x119; } $this->skipOptions(2); break; case "{G:PRODUCT_REVIEW}" : $xdf = $this->checkReference($exp['reference'], $product); (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x116 = 0 : $x116 = $x43; (!isset($exp["options"][1]) || !$exp["options"][1]) ? $x118 = 5 : $x118 = $exp["options"][1]; $value = ""; if (isset($x8f[$xdf->getId()][$x116]["count"])) { $x117 = $x8f[$xdf->getId()][$x116]["count"]; $x119 = $x130($x8f[$xdf->getId()][$x116]["score"] * $x118 / 100, 2, ".", ""); } if (isset($x119) && $x119 > 0) { $value.="<g:product_review_average><![CDATA[" . $x119 . "]]></g:product_review_average>
"; } if (isset($x117) && $x117 > 0) { $value.="<g:product_review_count><![CDATA[" . $x117 . "]]></g:product_review_count>
"; } unset($x119); unset($x117); break; case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $xdf = $this->checkReference('configurable', $product); $value = "<g:item_group_id><![CDATA[" . $xdf->getSku() . "]]></g:item_group_id>"; } break; case "{SC:EAN}" : ($x132($exp['options'][0]) && $exp['options'][0] > 0) ? $x11a = $exp['options'][0] : $x11a = 0; $xdf = $this->checkReference($exp['reference'], $product); $value = $x133(',', $xdf->getEan()); $value = "<g:ean><![CDATA[" . $value[$x11a] . "]]></g:ean>"; break; case "{sc:ean}" : ($x132($exp['options'][0]) && $exp['options'][0] > 0) ? $x11a = $exp['options'][0] : $x11a = 0; $xdf = $this->checkReference($exp['reference'], $product); $value = $x133(',', $xdf->getEan()); $value = $value[$x11a]; break; case "{SC:IMAGES}" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getSmall_image(); $xf6 = array($xdf->getImage(), $xdf->getThumbnail()); $xf7 = ''; $xda = 0; if ($xdf->getSmall_image() && $xdf->getSmall_image() != 'no_selection') { $xf5 = $xdf->getSmall_image(); $value = $xf5; $xf7.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xda++; } $xf8 = 0; while (isset($x95[$xdf->getId()]['src'][$xf8]) && $xda < 10) { if ($x95[$xdf->getId()]['src'][$xf8] != $xf4) { if ($x143($x95[$xdf->getId()]['src'][$xf8], $xf6) || $x95[$xdf->getId()]['disabled'][$xf8] != 1) { $xf5 = $x95[$xdf->getId()]['src'][$xf8]; $value = $xf5; $xf7.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xda++; } } $xf8++; } $value = $xf7; break; case "{sc:images}" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getSmall_image(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xdf->getSmall_image() && $xdf->getSmall_image() != 'no_selection') { $xf5 = $xdf->getSmall_image(); $value = $xf5; } else { $value = $x4c . '/catalog/product/placeholder/' . $x46; } } elseif (isset($x95[$xdf->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x95[$xdf->getId()]['src'][$exp['options'][0] - 1] != $xf4) { $xf5 = 'catalog/product/' . $x95[$xdf->getId()]['src'][$exp['options'][0] - 1]; $value = $x4c . $x129('//', '/', $xf5); } } $this->skipOptions(1); break; case "{SC:DESCRIPTION}" : $xdf = $this->checkReference($exp['reference'], $product); $xd9 = $xdf->getDescription() . $xdf->getShortDescription(); $x11b = "|<iframe(.*)</iframe>|U"; $x12c($x11b, $xd9, $x11c); if ($x11c) { $xd9 = $xdf->getAttributeText('manufacturer') . " " . $xdf->getName() . " - Part number: " . $xdf->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x143("strip_tags", $exp['options'])) { $xd9 = $x138('!\<br /\>!isU', " ", $xd9); $xd9 = $x138('!\<br/\>!isU', " ", $xd9); $xd9 = $x138('!\<br>!isU', " ", $xd9); $xd9 = $x151($xd9); } if ($x143("html_entity_decode", $exp['options'])) { $xd9 = $x137($xd9, ENT_QUOTES, 'UTF-8'); } if ($x143("htmlentities", $exp['options'])) { $xd9 = $x152(($xd9)); } if ($x126($xd9) > 900) { $xd9 = $x134($xd9, 0, 900 - 3); $x11d = $x153($xd9, " "); $xd9 = $x134($xd9, 0, $x11d) . '...'; } } if ($xd9 == null) $xd9 = $xdf->getAttributeText('manufacturer') . " " . $xdf->getName() . " - Part number: " . $xdf->getSku() . " - Category : {categories,[1],[1],[1]}"; $xd9 = $x138('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xd9); $xd9 = $x129('', '', $xd9); $value = "<description><![CDATA[" . $xd9 . "]]></description>"; $exp['options'] = array(); break; case "{sc:description}" : $xdf = $this->checkReference($exp['reference'], $product); $xd9 = $xdf->getDescription() . $xdf->getShortDescription(); $x11b = "|<iframe(.*)</iframe>|U"; $x12c($x11b, $xd9, $x11c); if ($x11c) { $xd9 = $xdf->getAttributeText('manufacturer') . " " . $xdf->getName() . " - Part number: " . $xdf->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x143("strip_tags", $exp['options'])) { $xd9 = $x138('!\<br /\>!isU', " ", $xd9); $xd9 = $x138('!\<br/\>!isU', " ", $xd9); $xd9 = $x138('!\<br>!isU', " ", $xd9); $xd9 = $x151($xd9); } if ($x143("html_entity_decode", $exp['options'])) { $xd9 = $x137($xd9, ENT_QUOTES, 'UTF-8'); } if ($x143("htmlentities", $exp['options'])) { $xd9 = $x152(($xd9)); } if ($x126($xd9) > 900) { $xd9 = $x134($xd9, 0, 900 - 3); $x11d = $x153($xd9, " "); $xd9 = $x134($xd9, 0, $x11d) . '...'; } } if ($xd9 == null) $xd9 = $xdf->getAttributeText('manufacturer') . " " . $xdf->getName() . " - Part number: " . $xdf->getSku() . " - Category : {categories,[1],[1],[1]}"; $xd9 = $x138('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xd9); $xd9 = $x129('', '', $xd9); $value = $xd9; $exp['options'] = array();
break; case "{SC:URL}" : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getRequest_path()) { $value = "<link><![CDATA[" . $x4b . $xdf->getRequest_path() . "]]></link>"; } else { $value = "<link><![CDATA[" . $xdf->getProductUrl() . "]]></link>"; } break; case "{sc:url}" : (isset($exp['options'][0])) ? $x11e = $exp['options'][0] : $x11e = ""; (isset($exp['options'][1])) ? $xed = $exp['options'][1] : $xed = ""; $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getUrlKey()) { $value = $x4b . $xed . $xdf->getRequest_path() . $x11e; } else { $value = $xdf->getProductUrl(); } break; case "{SC:CONDITION}" : $xdf = $this->checkReference($exp['reference'], $product); ($x13c($xdf->getName(), "refurbished")) ? $xcf = 'refurbished' : $xcf = 'new'; $value = "<g:condition><![CDATA[" . $xcf . "]]></g:condition>"; break; case "{sc:condition}" : $xdf = $this->checkReference($exp['reference'], $product); ($x13c($xdf->getName(), "refurbished")) ? $xcf = 'refurbished' : $xcf = 'new'; $value = $xcf; break; default : $xdf = $this->checkReference($exp['reference'], $product); if ($x143($exp['name'], $x79)) { if ($x143($x7a[$exp['name']], array('select', 'multiselect'))) { eval('$x120 =($xdf->' . $exp['methodName'] . ");"); $x11f = $x133(',', $x120); if ($x131($x11f) > 1) { $value = array(); foreach ($x11f as $x37) { if (isset($x80[$x37][$x43])) $value[] = $x80[$x37][$x43]; else { if (isset($x80[$x37][0])) $value[] = $x80[$x37][0]; } } } else { if (isset($x80[$x11f[0]][$x43])) { $value = $x80[$x11f[0]][$x43]; } else { if (isset($x80[$x11f[0]][0])) $value = $x80[$x11f[0]][0]; } } } else { eval('$value =($xdf->' . $exp['methodName'] . ");"); } } if ($x143(@$x77[$exp['name']], $x77)) { $value = $x77[$exp['name']]; } $value = $xce->_eval($product, $exp, $value); if ($x154($value) && !$value) continue 3; break; } if ($x131($exp['options']) > 0) { foreach ($exp['options'] as $x17 => $option) { if ($x17 >= $this->option) { switch ($exp['options'][$this->option]) { case "substr" : if (isset($exp['options'][$this->option + 1]) && $x126($value) > $exp['options'][$this->option + 1]) { $value = $x134($value, 0, $exp['options'][$this->option + 1] - 3); $x11d = $x153($value, " "); $value = $x134($value, 0, $x11d) . $exp['options'][$this->option + 2]; } $this->skipOptions(3); break; case "strip_tags" : $x121 = " "; $value = $x138('!\<br /\>!isU', $x121, $value); $value = $x138('!\<br/\>!isU', $x121, $value); $value = $x138('!\<br>!isU', $x121, $value); $value = $x151($value); $this->skipOptions(1); break; case "htmlentities" : $value = $x152(($value)); $this->skipOptions(1); break; case "implode" : $value = ($x13a($value)) ? $x127($exp['options'][$this->option + 1], $value) : $value; $this->skipOptions(2); break; case "float" : $value = $x130($value, $exp['options'][$this->option + 1], '.', ''); $this->skipOptions(2); break; case "html_entity_decode" : $value = $x137($value, ENT_QUOTES, 'UTF-8'); $this->skipOptions(1); break; case "inline": $value = $x138('/(
|
|
|
)/s', ' ', $value); $this->skipOptions(1); break; case "strtolower": $value = $x155($value, "UTF8"); $this->skipOptions(1); break; case "strtoupper": $value = $x156($value, "UTF8"); $this->skipOptions(1); break; case "cleaner": $value = $x138('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $value); $value = $x129('', '', $value); $this->skipOptions(1); break; default : $xcd->option = $this->option; $value = $xcd->_eval($product, $exp, $value); $this->option = $xcd->option; if ($x154($value) && !$value) continue 3; break; } } } } if ($x52 > 1 && !$this->_display) $value = $this->x15e($value, $x39, $x3a); $value = $x129(array("<", ">", '"', '\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $value); if ($x13a($value)) $value = $x127(",", $value); if ($value != "") $x2b = $x129($exp['fullpattern'], $value, $x2b); } foreach ($x6c as $x122) { $x2b = $x129($x122['fullpattern'], "", $x2b); } $x2b = $this->x157($x2b, $product, $x52); if ($x52 == 1) { if (!$this->_display) { $x2b = $this->x15b($x2b); $x2b = $this->x15a($x2b, $x57, $x58); } else { $x2b = $this->x15a($x2b, $x57, $x58); } } elseif ($x52 != 1) { if (!$this->_display) { $x2b = $this->x15d($x2b, $x38, $x39, $x3a); $x2b = $this->x15b($x2b); } else { $x2b = $this->x15c(($x2b), false); } } $x2b = $x129(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\'), $x2b); if (!empty($x2b)) { if ($x52 == 1) $x69.=$x2b . ""; else $x69.=$x2b . ""; if ($this->_display) { $x6a.=$x69; $x69 = ''; } else { if ($xcb % Mage::getStoreConfig("datafeedmanager/system/buffer") == 0) { $x19->streamWrite($x69); unset($x69); $x69 = ''; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . $xd8 . "/" . $this->_counter . " items added", null, $this->getFilename('.log')); } } if ($this->_limit && $xcb >= $this->_limit) break 2; $xcb++; $this->_inc = $xd8; $xd8++; } } } if (!$this->_display) { $x19->streamWrite($x69);
if ($x126($x135($x51)) > 1) $x19->streamWrite($x51 . "
"); if ($x54 != '') $x19->streamWrite($this->x157($x54, null)); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($xd8 - 1) . "/" . $this->_counter . " items added", null, $this->getFilename('.log')); } else { $x6a.=$x69; $x6a.=$x51 . "
"; if ($x52 > 1) $x6a.="</table>"; $x6a.= $this->x157($x54, null) . '<br>'; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($xd8 ) . "/" . $this->_counter . " items added", null, $this->getFilename('.log')); } unset($xa4); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Footer template added", null, $this->getFilename('.log')); if ($this->_display && !$this->_debug) { ($x52 == 1 && !Mage::app()->getRequest()->getParam("real_time_preview")) ? $xd9 = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x6a) . "</textarea>" : $xd9 = ($x6a); if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
<html>
<head>
<title>" . $this->getFeedName() . "</title>
<link rel='stylesheet' href='" . $x4a . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
<link rel='stylesheet' href='" . $x4a . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>
<script type='text/javascript' src='" . $x4a . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
<script type='text/javascript' src='" . $x4a . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script>
</head> <body>
" . $xd9 . "
<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 $xd9; } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>"; $xd9 = "<pre>" . $x136($x6a) . "</pre>"; return $xd9; } else { $x19->streamClose(); $x19->mv($this->getFilename(), $this->getFilename(false)); $x19->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 ($x5b) { try { $this->x161($x5c, $x61, $x5d, $x5e, $x5f, $x60, $this->getFilename(false)); Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("datafeedmanager")->__("File successfully uploaded on $x5d.")); } catch (Exception $x123) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Ftp error : ") . $x123->getMessage()); } } Mage::dispatchEvent( 'datafeedmanager_after_upload', array('datafeed' => $this) ); } Mage::app()->setCurrentStore(0); return $this; } public function x161($x5c, $x61, $x5d, $x5e, $x5f, $x60, $x124) { $x126="strlen"; $x127="implode"; $x128="preg_split"; $x129="str_replace"; $x12a="utf8_encode"; $x12b="preg_match_all"; $x12c="preg_match"; $x12d="rtrim"; $x12e="is_null"; $x12f="strtotime"; $x130="number_format"; $x131="count"; $x132="is_numeric"; $x133="explode"; $x134="substr"; $x135="trim"; $x136="htmlentities"; $x137="html_entity_decode"; $x138="preg_replace"; $x139="json_decode"; $x13a="is_array"; $x13b="strstr"; $x13c="stristr"; $x13d="print_r"; $x13e="is_string"; $x13f="time"; $x140="ucwords"; $x141="array_push"; $x142="version_compare"; $x143="in_array"; $x144="ceil"; $x145="setType"; $x146="sprintf"; $x147="array_pop"; $x148="ini_get"; $x149="set_time_limit"; $x14a="abs"; $x14b="array_reverse"; $x14c="str_pad"; $x14d="floor"; $x14e="usort"; $x14f="array_shift"; $x150="array_values"; $x151="strip_tags"; $x152="htmlspecialchars"; $x153="strrpos"; $x154="is_bool"; $x155="mb_strtolower"; $x156="mb_strtoupper"; if ($x5c) $x125 = new Varien_Io_Sftp(); else $x125 = new Varien_Io_Ftp(); try { $x125->open( array( 'host' => $x5d, 'user' => $x5e, 'username' => $x5e, 'password' => $x5f, 'timeout' => '120', 'path' => $x60, 'passive' => !($x61) ) ); $x19 = new Varien_Io_File(); $x19->open(array('path' => $this->getPath())); if (!$x5c && $x125->write($x124, $this->getPath() . $x124)) return true; elseif ($x5c && $x125->write($x60 . $x124, $x19->read($x124))) return true; else return false; $x125->close(); } catch (Exception $x123) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Ftp upload error : ") . $x123->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 $xe = 1; public function cmp($xf, $x10) { $x126="\x73\164\x72len"; $x127="i\155plo\144\145"; $x128="\x70r\145g\137\x73\x70\154it"; $x129="s\x74\162\137r\x65\160l\x61\x63\x65"; $x12a="\x75tf\70\x5f\145\156c\x6f\x64\145"; $x12b="\x70re\x67\137\x6d\x61tch\137\x61\x6c\x6c"; $x12c="p\162e\147_mat\143\150"; $x12d="r\x74\x72i\x6d"; $x12e="\x69\x73\137\x6e\x75\154\154"; $x12f="\163\164\162\x74\x6f\x74\151\155\145"; $x130="\x6e\x75\x6dbe\x72\137fo\x72ma\x74"; $x131="\143o\x75n\x74"; $x132="\151s_n\x75\155\145\162\151c"; $x133="\x65\x78\x70\x6c\157\144\x65"; $x134="\163\165b\x73\x74r"; $x135="tr\x69\155"; $x136="h\x74\155\x6ce\156tit\x69\x65\163"; $x137="ht\155\x6c\x5f\145\156\164it\x79\137\x64\145\143\x6f\x64\145"; $x138="p\x72e\x67\x5f\162\145\x70\x6c\x61\x63\145"; $x139="\152\x73\157n\137d\145c\157\144e"; $x13a="\151\x73\x5fa\162\x72\x61\x79"; $x13b="s\x74\x72\x73\x74r"; $x13c="\163\164ri\163\164\162"; $x13d="pr\151\x6e\164_\x72"; $x13e="i\163_\163\164\x72\151\x6e\x67"; $x13f="\164\151\x6de"; $x140="\165\x63\x77\x6fr\144\x73"; $x141="\141\x72\162ay\137\x70u\x73\x68"; $x142="\x76\x65rs\151\x6f\x6e\x5f\143\x6f\155p\x61\x72\x65"; $x143="\151\156\137\x61r\162ay"; $x144="\x63eil"; $x145="s\145t\x54\171\x70\x65"; $x146="\163p\162\151ntf"; $x147="\x61\162\x72\141y\137\x70\x6fp"; $x148="in\151_g\x65\164"; $x149="s\x65\x74\137\164\151m\145\x5f\154im\x69\164"; $x14a="a\142\x73"; $x14b="ar\x72\141y\x5f\162e\x76e\162s\x65"; $x14c="s\164\162\x5f\x70a\144"; $x14d="f\154o\157\x72"; $x14e="u\163o\162t"; $x14f="\x61\162r\x61\x79_\163\150\151\146\164"; $x150="\x61\162r\x61\x79\x5f\x76\141\x6cu\145\163"; $x151="str\151\x70_\x74\x61\x67s"; $x152="h\164mls\160\145\143\x69a\x6cch\141\x72\x73"; $x153="s\x74r\162po\x73"; $x154="i\163\137b\157\157l"; $x155="\155\142\x5f\163\x74\x72tolo\167er"; $x156="\x6d\x62_\163\x74\x72\x74\157\x75\x70\160e\162"; if ($x126($xf) == $x126($x10)) { return 0; } return ($x126($xf) < $x126($x10)) ? 1 : -1; } public function cmpArray($xf, $x10) { $x126="\x73\164\x72\154\x65\156"; $x127="\x69\155p\x6co\144e"; $x128="\160\162\x65\147\137\163\160\x6cit"; $x129="\163\x74\162\137\x72e\x70\154\x61c\145"; $x12a="\165\x74\x66\70\137\145nc\157\144e"; $x12b="pr\x65\x67\x5f\155a\164\143h\x5f\141\x6cl"; $x12c="p\x72\x65\147\x5fm\x61tc\x68"; $x12d="\x72\164r\x69m"; $x12e="\x69s_\x6eu\x6c\154"; $x12f="\163\x74\x72to\x74\151me"; $x130="\x6eum\142\x65r\137for\x6d\x61\164"; $x131="\143\x6fu\x6e\x74"; $x132="i\x73\x5f\x6eu\x6d\x65r\x69\143"; $x133="\x65x\160\154o\x64\x65"; $x134="\x73\x75bst\162"; $x135="\x74\x72\x69\155"; $x136="\x68tm\154\145\x6e\164itie\163"; $x137="\x68\164ml_\145n\x74i\x74\x79\137de\x63\x6fd\x65"; $x138="\160\x72e\x67\137\x72\x65\x70l\x61\x63e"; $x139="j\x73\157n\x5f\x64\x65\x63\157d\x65"; $x13a="i\163\x5fa\162\x72a\171"; $x13b="st\162\x73\164r"; $x13c="\163tr\151\x73\164\162"; $x13d="\160\x72\x69\156\164\137r"; $x13e="i\163_\163t\x72\151\156\147"; $x13f="\x74\x69\x6d\x65"; $x140="\165\143w\x6fr\144s"; $x141="\141r\162a\x79_\x70u\x73h"; $x142="\166e\x72\x73\151\x6f\x6e_\143\157\x6dpa\x72\x65"; $x143="\x69n\137\x61\162\162\141\x79"; $x144="\x63\145\151l"; $x145="\163\x65t\124\171p\145"; $x146="s\160\162\x69\156\x74f"; $x147="\141r\162\141\x79_\160op"; $x148="i\x6e\151\x5f\147e\164"; $x149="\x73\145\164\x5ft\x69m\145_\154i\x6di\x74"; $x14a="a\142\x73"; $x14b="\141r\162\x61\x79\x5f\x72\x65\166\145\x72s\x65"; $x14c="str\137\x70a\144";
$x14d="\x66\x6c\157\157\x72"; $x14e="\165\163\x6f\x72t"; $x14f="\x61r\162\141y_s\x68\x69\x66\164"; $x150="\141rr\x61y\137\166a\x6c\x75e\163"; $x151="s\164\162\x69p\137\164\141g\x73"; $x152="\x68\164\x6d\x6c\x73\x70\x65\143\151\141\x6c\143h\x61\x72\163"; $x153="s\164\162rp\x6f\x73"; $x154="\x69\163\x5fb\x6f\157\154"; $x155="\155b\x5f\163t\162t\x6fl\157wer"; $x156="\155b_st\162\164o\x75pp\x65\x72"; $x126="\x73\164\x72len"; $x127="i\155plo\144\145"; $x128="\x70r\145g\137\x73\x70\154it"; $x129="s\x74\162\137r\x65\160l\x61\x63\x65"; $x12a="\x75tf\70\x5f\145\156c\x6f\x64\145"; $x12b="\x70re\x67\137\x6d\x61tch\137\x61\x6c\x6c"; $x12c="p\162e\147_mat\143\150"; $x12d="r\x74\x72i\x6d"; $x12e="\x69\x73\137\x6e\x75\154\154"; $x12f="\163\164\162\x74\x6f\x74\151\155\145"; $x130="\x6e\x75\x6dbe\x72\137fo\x72ma\x74"; $x131="\143o\x75n\x74"; $x132="\151s_n\x75\155\145\162\151c"; $x133="\x65\x78\x70\x6c\157\144\x65"; $x134="\163\165b\x73\x74r"; $x135="tr\x69\155"; $x136="h\x74\155\x6ce\156tit\x69\x65\163"; $x137="ht\155\x6c\x5f\145\156\164it\x79\137\x64\145\143\x6f\x64\145"; $x138="p\x72e\x67\x5f\162\145\x70\x6c\x61\x63\145"; $x139="\152\x73\157n\137d\145c\157\144e"; $x13a="\151\x73\x5fa\162\x72\x61\x79"; $x13b="s\x74\x72\x73\x74r"; $x13c="\163\164ri\163\164\162"; $x13d="pr\151\x6e\164_\x72"; $x13e="i\163_\163\164\x72\151\x6e\x67"; $x13f="\164\151\x6de"; $x140="\165\x63\x77\x6fr\144\x73"; $x141="\141\x72\162ay\137\x70u\x73\x68"; $x142="\x76\x65rs\151\x6f\x6e\x5f\143\x6f\155p\x61\x72\x65"; $x143="\151\156\137\x61r\162ay"; $x144="\x63eil"; $x145="s\145t\x54\171\x70\x65"; $x146="\163p\162\151ntf"; $x147="\x61\162\x72\141y\137\x70\x6fp"; $x148="in\151_g\x65\164"; $x149="s\x65\x74\137\164\151m\145\x5f\154im\x69\164"; $x14a="a\142\x73"; $x14b="ar\x72\141y\x5f\162e\x76e\162s\x65"; $x14c="s\164\162\x5f\x70a\144"; $x14d="f\154o\157\x72"; $x14e="u\163o\162t"; $x14f="\x61\162r\x61\x79_\163\150\151\146\164"; $x150="\x61\162r\x61\x79\x5f\x76\141\x6cu\145\163"; $x151="str\151\x70_\x74\x61\x67s"; $x152="h\164mls\160\145\143\x69a\x6cch\141\x72\x73"; $x153="s\x74r\162po\x73"; $x154="i\163\137b\157\157l"; $x155="\155\142\x5f\163\x74\x72tolo\167er"; $x156="\x6d\x62_\163\x74\x72\x74\157\x75\x70\160e\162"; if ($x126($x127('', $xf)) == $x126($x127('', $x10))) { return 0; } return ($x126($x127('', $xf)) < $x126($x127('', $x10))) ? -1 : 1; } public function x157($myPattern, $product, $x11 = true, $x12 = false) { $x126="s\x74\162\154en"; $x127="\x69m\160\x6c\x6f\x64\x65"; $x128="preg\137\x73p\154\x69t"; $x129="s\164\162\x5f\x72\145\160\154\x61\143\x65"; $x12a="\165\x74f\70_\x65\156c\x6fde"; $x12b="\x70\162e\x67_\x6d\x61\164\x63h\137a\154\154"; $x12c="\x70re\147_\x6da\164\143h"; $x12d="\162\164\x72\x69\155"; $x12e="i\x73_\x6eu\x6c\x6c"; $x12f="s\x74\162\x74oti\x6d\145"; $x130="n\x75\x6d\142e\162\x5f\146or\x6d\x61\x74"; $x131="\x63ou\156\164"; $x132="\x69\163\137\x6e\165me\162ic"; $x133="\145x\x70\x6c\x6f\x64e"; $x134="sub\163\164r"; $x135="\164\162\x69m"; $x136="\150\x74\155\x6c\x65nt\151\x74\151\145s"; $x137="\x68\x74\x6d\x6c\137\145\x6et\x69\x74\171\x5fde\x63\x6f\144\x65"; $x138="\x70r\x65\147_\x72\145\160la\x63\x65"; $x139="\152\x73\157\156\137de\143\157\x64\145"; $x13a="\x69\x73\137a\x72r\141\x79"; $x13b="s\x74\162\163\x74r"; $x13c="st\162\151s\164\x72"; $x13d="\x70\x72i\156t_r"; $x13e="\151s\137\163tr\151\x6e\147"; $x13f="t\151\155\x65"; $x140="u\x63\x77\157\x72d\x73"; $x141="array_\160\x75\163\x68"; $x142="\x76e\x72\163\151\x6f\156_\x63\x6f\155\160\141\162\145"; $x143="in\x5far\x72\141\171"; $x144="c\145\151\154"; $x145="s\145\x74\x54\171p\x65"; $x146="\x73\160\162i\x6e\164f"; $x147="a\x72\162\141y\x5f\x70op"; $x148="\x69n\151\137ge\x74"; $x149="\x73e\164\x5f\x74\x69\x6d\145\137\154i\x6di\x74"; $x14a="ab\163"; $x14b="\141\x72\x72\141\171\x5f\162\145\x76e\x72se"; $x14c="\x73t\162_\x70\141d";
$x14d="\146l\157\x6fr"; $x14e="\165so\x72\164"; $x14f="\141\162ra\x79\x5fs\150if\164"; $x150="\x61\162\162\141\171\x5f\x76al\x75\x65s"; $x151="\163\164\162i\160\137\x74\x61gs"; $x152="htm\x6c\163\160e\143\x69\x61lc\150\141r\163"; $x153="\163tr\162\160\x6f\x73"; $x154="\x69\x73\137\142\157\157\154"; $x155="\x6d\142\x5f\x73\164rt\157\x6c\x6f\167\x65\x72"; $x156="\x6d\142_str\164\157\x75p\160\x65\x72"; if ($x12) { $x13 = $x128("\57\x0a\57", $myPattern); $x14 = $x13[0]; $x13[0] = null; $myPattern = $x127($x13, "\x0a"); } $myPattern = $x129('<?', $x12a('__PHP__'), $myPattern); $myPattern = $x129('?>', $x12a('/__PHP__'), $myPattern); $x15 = $x12a('#(__PHP__)(.*?)/\1#s'); $x12b($x15, $myPattern, $x16); if (isset($x16[1])) { foreach ($x16[0] as $x17 => $x18) { if ($x11 == 1) { if (@eval($x16[2][$x17] . '; ')) $myPattern = $x129($x18, eval($x16[2][$x17] . '; '), $myPattern); else $myPattern = $x129($x18, '', $myPattern); } else { if (@eval($this->unx15e($x16[2][$x17] . '; '))) $myPattern = $x129($x18, $this->x15e(eval($this->unx15e($x16[2][$x17]) . '; ')), $myPattern); else $myPattern = $x129($x18, '', $myPattern); } } } if ($x12) { if ($x11 == 1) return $x14 . "\x0a" . $myPattern; else return $x14; } else return $myPattern; } protected function _construct() { $x126="\x73t\162\154\x65n"; $x127="i\155\x70\154\x6f\x64\x65"; $x128="\160\x72\145\147\x5f\163\x70\x6c\x69t"; $x129="st\162\x5f\162\x65\160l\x61\143\x65"; $x12a="ut\x66\70_\x65\x6e\143\157\x64\145"; $x12b="p\162e\147_\155\141\x74c\150\x5fa\x6c\154"; $x12c="\x70\x72eg\137\x6d\x61\164c\x68"; $x12d="\x72\x74\162\151m"; $x12e="is_\156u\x6c\x6c"; $x12f="\163t\162\x74\x6f\164i\155e"; $x130="\x6e\165m\x62\x65\x72\137\146orm\x61\x74"; $x131="\x63o\x75\x6e\164"; $x132="\151s\137n\x75\x6d\x65\162\151c"; $x133="\145xpl\157\144e"; $x134="s\165\x62\x73\164r"; $x135="t\162\x69\x6d"; $x136="\150\x74\x6dle\x6e\164\151\164i\145\x73"; $x137="\150\x74\155\154_\x65n\164i\164\x79\x5fd\145\x63o\x64\145"; $x138="pr\145\x67\137\162\x65\x70lac\x65"; $x139="j\x73\157\x6e_\144\x65\143\x6f\x64\x65"; $x13a="\x69\163\x5farr\x61\x79"; $x13b="strs\x74\x72"; $x13c="\x73\164ri\x73\x74\162"; $x13d="\160ri\x6e\164\x5fr"; $x13e="\151\163\x5fst\162\151n\147"; $x13f="\164i\x6d\145"; $x140="u\x63wo\x72\x64s"; $x141="\x61\162\x72\141y\x5f\160\x75\163\150"; $x142="\x76\x65r\163io\x6e\137\143\157m\160\141\162\x65"; $x143="\151\x6e\x5fa\x72\x72a\171"; $x144="\x63\145\151\x6c"; $x145="set\x54\x79p\x65"; $x146="\163\160r\151n\x74\x66"; $x147="a\162\162\x61y\x5f\x70op"; $x148="\151ni_\x67\x65\164"; $x149="\x73e\x74\x5f\x74\x69m\x65_\x6c\x69\155\x69\x74"; $x14a="\141\x62s"; $x14b="\x61\x72\162\x61\171\137re\x76er\163e"; $x14c="\x73tr\x5fp\x61\144"; $x14d="\146\x6c\157o\x72"; $x14e="us\157\162t"; $x14f="\141\162\x72a\171\137\163\150\151f\x74"; $x150="\141\x72\x72\141y_v\141l\x75e\x73"; $x151="s\164\162\151\160_t\x61\147\163"; $x152="\150\164m\x6cs\160\145\143\151a\154\143\150\x61\162\x73"; $x153="\163\x74\162\162\x70\x6fs"; $x154="\151s\x5f\142o\157l"; $x155="\x6db\x5f\x73t\x72\164\157\154\x6f\167er"; $x156="\x6d\x62\x5f\x73\164\162to\165\x70p\x65\x72"; $this->_sqlSize = Mage::getStoreConfig("\x64\141t\141f\x65\145\144m\141\156\x61\147\145\x72\x2f\x73\171st\x65m/sq\x6cs\x69\x7a\x65"); $this->_init('datafeedmanager/configurations'); } protected function _beforeSave() { $x126="\x73tr\154e\x6e"; $x127="\151\x6d\x70\154\x6fd\x65"; $x128="pr\145\147\137s\160li\x74"; $x129="\x73t\x72_\x72e\x70\x6c\x61c\x65"; $x12a="\165t\x66\70\x5f\x65\156\143\x6f\x64\145"; $x12b="\x70\x72\x65\147_m\x61\164c\150\137al\154"; $x12c="p\162\145\x67\137\155\x61\x74\x63\x68"; $x12d="\x72\164rim"; $x12e="i\x73_\x6e\165\154l"; $x12f="\163\164\x72\x74\x6ft\x69m\x65"; $x130="n\165mb\x65\x72_\x66\157\x72\155a\x74"; $x131="\x63\157\x75\156\x74"; $x132="\x69\x73_n\165\x6d\x65r\151\x63"; $x133="e\x78\x70\154o\x64\145"; $x134="s\x75\142\x73\164r"; $x135="\164\162im"; $x136="\x68t\155\154e\156\x74i\x74\151\x65s"; $x137="h\x74m\x6c\137\145n\164it\171\137d\x65\x63\157de"; $x138="\160r\145g\x5f\162\145\160\x6c\141c\x65"; $x139="\152s\157\x6e\x5fd\145\x63\x6f\x64e";
$x13a="is\137\x61r\x72a\171"; $x13b="\163\164\x72\x73t\162"; $x13c="\163\164r\x69\163\x74\162"; $x13d="\x70\162\151\x6e\164\x5f\x72"; $x13e="\151\163\x5f\x73\x74r\x69ng"; $x13f="\x74\151\x6de"; $x140="\165\143w\x6f\x72\x64\x73"; $x141="\x61\162\x72a\171_\x70u\x73\150"; $x142="\x76\145r\x73ion\x5f\143o\155pa\x72\145"; $x143="\151n\137\141r\162a\x79"; $x144="c\145i\154"; $x145="se\164\x54\x79\x70e"; $x146="\x73\x70\162\x69\156\x74f"; $x147="a\x72\162a\171\x5f\160o\160"; $x148="\151\156\x69_\x67\145t"; $x149="\163\x65\164\x5f\164\151\x6d\x65_\154imit"; $x14a="\141\142s"; $x14b="\x61\x72\162\x61y\137r\x65ver\x73\145"; $x14c="\163tr\x5fp\x61\144"; $x14d="\x66\154\157o\x72"; $x14e="\x75\163\x6frt"; $x14f="\x61\x72\x72a\171_\x73\150\x69\x66\164"; $x150="a\x72r\141\x79_\166\x61\x6c\x75\x65\163"; $x151="s\x74ri\160\x5ft\141\147\x73"; $x152="\150\x74m\154\163\x70\145\143\151\141l\143\x68a\x72s"; $x153="s\164r\x72\x70\157\x73"; $x154="\x69\163_\x62\157\x6fl"; $x155="mb\x5f\163\164\162\164\x6flowe\162"; $x156="m\142\137\163\x74r\164\157\x75\x70\160\x65r"; $x19 = new Varien_Io_File(); $x1a = $x19->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); $x1b = Mage::getModel('datafeedmanager/configurations')->getCollection(); foreach ($x1b as $x1c) { if ($x1c->getFeedName() == $this->getFeedName() && $this->getId() != $x1c->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.')); } } if (!$x19->allowedPath($x1a, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x19->fileExists($x1a, 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 (!$x19->isWriteable($x1a)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$x12c('#^[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($x12d($x129($x129('\\', '/', Mage::getBaseDir()), '', $x1a), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x126="\x73\x74\x72\154\x65n"; $x127="\x69\x6d\160l\157de"; $x128="\160r\145\x67\x5f\x73\160lit"; $x129="s\x74\x72_\x72ep\x6c\x61\x63\x65"; $x12a="\165\x74\x66\70_\x65\156\143o\144\x65"; $x12b="\x70\162e\147_\x6d\x61\164ch\137\x61\x6c\154"; $x12c="\160r\145\147_\155\141\x74ch"; $x12d="\x72\x74\162\151m"; $x12e="\x69s\x5f\156ul\x6c"; $x12f="strto\164ime"; $x130="\x6e\165\x6d\142\145r\x5ff\157\x72ma\164"; $x131="\143o\165\156\x74"; $x132="\x69\x73_\x6e\x75\155\x65r\x69\143"; $x133="\145\x78\160\154o\144\x65"; $x134="\x73\165\x62\x73\x74\x72"; $x135="tri\155"; $x136="\150\164m\154\145\x6e\164i\x74ie\x73"; $x137="\x68\164\155\154_\x65\x6e\164\x69\x74y\137\144e\143\x6fd\145"; $x138="p\x72eg_\x72e\x70l\x61\x63e"; $x139="\x6a\163\x6fn_dec\x6fd\x65"; $x13a="\x69\x73\137\x61rra\171"; $x13b="\163\x74\x72\x73t\162"; $x13c="\x73t\162\151\x73\x74\162"; $x13d="\160\x72\x69\x6e\x74\x5f\x72"; $x13e="\151\x73\x5f\163\164ri\156g"; $x13f="\164i\x6d\145"; $x140="u\143\167\x6fr\144\163"; $x141="\x61\162r\141y\x5fp\x75\x73\x68"; $x142="\x76e\x72\163\151\157\156\x5fc\x6f\155p\x61\x72\145"; $x143="i\156_\141r\162\141\x79"; $x144="\143\x65\x69\154"; $x145="\x73\x65t\x54\x79\160\145"; $x146="spr\x69nt\x66"; $x147="\141\162\162a\x79\x5f\x70\x6fp"; $x148="\x69\156\151\x5fg\145\164"; $x149="\163e\164\x5fti\155\145\137\x6c\x69m\x69\x74"; $x14a="abs"; $x14b="\x61\162r\141\171_\162\145\166er\163\x65"; $x14c="\x73tr_pad"; $x14d="\x66\x6c\x6f\157\162"; $x14e="usor\164"; $x14f="\141\x72r\141y\x5f\x73\x68ift"; $x150="a\x72ra\x79_val\165\x65\x73"; $x151="s\164\162i\x70\x5f\164\141gs"; $x152="\x68\x74\155\154\163\160\145\x63\x69\x61\154\x63\x68\141\x72s"; $x153="\163\x74\162\162\x70\x6fs"; $x154="i\x73\x5fbool"; $x155="\155\x62_\x73\164\162\164o\154o\x77\x65\x72"; $x156="\x6db\137\x73\x74\162\164\157\165p\160\x65r"; if ($x12e($this->_filePath)) { $this->_filePath = $x129('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x1d = '.temp') { $x126="s\x74\162\154e\x6e"; $x127="\151m\x70\x6c\x6fd\x65"; $x128="p\162\x65\x67_\x73p\x6c\151\x74"; $x129="st\162\137r\x65p\154a\x63\x65"; $x12a="\x75\x74\x66\70_e\156c\x6f\x64e"; $x12b="\x70\162e\x67\137\x6d\x61t\143\x68\137\141l\x6c"; $x12c="\160reg\137m\x61t\x63\150"; $x12d="\162tr\x69\x6d"; $x12e="i\x73\x5f\156\x75\154l"; $x12f="\x73\164rto\x74\151\155\145";
$x130="n\x75\x6dbe\x72\x5f\146\x6f\162\x6d\x61\x74"; $x131="\143\157\x75\156t"; $x132="\151\163\x5f\156um\x65r\151\143"; $x133="\145\x78p\154\x6f\x64\145"; $x134="\x73\x75\142s\164r"; $x135="tr\x69\x6d"; $x136="\x68\164mle\156\x74\151\164\x69\145\163"; $x137="\150tm\154_\x65nti\x74\x79\x5fd\145\x63o\144\145"; $x138="\x70\162eg\137r\145p\x6cace"; $x139="\x6a\163o\x6e\x5f\144\145\x63\x6f\x64\x65"; $x13a="\x69\x73_a\162\162\x61y"; $x13b="\163tr\163\164\162"; $x13c="s\x74ri\x73\164r"; $x13d="\160\x72\x69n\164\137r"; $x13e="i\163_\x73tri\156\x67"; $x13f="\x74\x69m\x65"; $x140="\x75\143\167\157\162d\x73"; $x141="\x61r\162\x61\171_\x70\x75\x73h"; $x142="v\x65\162s\x69\x6f\156_\143o\x6dpa\x72e"; $x143="\x69n\137\141\162r\141\171"; $x144="\143ei\x6c"; $x145="s\x65\164\124\x79\160e"; $x146="s\160\x72\x69\156t\x66"; $x147="\141rra\171_\160\x6f\160"; $x148="\x69ni\137\x67\145\164"; $x149="\163\145\164_\x74i\x6de\137\154\x69m\x69t"; $x14a="ab\163"; $x14b="a\162\x72\141\x79\x5f\x72\x65\x76er\163\145"; $x14c="\163t\x72_\160\x61d"; $x14d="\146\x6c\x6f\x6f\x72"; $x14e="u\163\x6fr\x74"; $x14f="a\162\162a\x79_\x73\x68i\146\x74"; $x150="arr\x61\171\x5f\x76a\x6cu\145\x73"; $x151="st\162i\x70_t\141\147\163"; $x152="\x68\164ml\163\x70\145\x63\151\141l\x63\150\x61\162\163"; $x153="\x73\164\162rp\x6fs"; $x154="\x69\x73\x5fb\x6f\157\154"; $x155="\155\142_\163\x74\162\164o\154o\167\x65\x72"; $x156="m\142\137\163t\x72tou\x70p\x65\162"; $x1e = array(1 => 'xml', 2 => 'txt', 3 => 'csv', 4 => 'tsv'); if ($this->_date == false) { $this->_updated = Mage::getSingleton('core/date')->gmtDate("\131\55m\55d H\72\151\72\x73", $this->_timestamp); $this->_date = Mage::getSingleton('core/date')->date($this->getFeedDateformat(), $x12f($this->_updated)); } $x1f = $x129('{f}', $this->getFeedName(), $this->_date); $x20 = $x1f . "\56" . $x1e[$this->getFeedType()] . $x1d; if (!$x1d) $this->_filename = $x20; return $x20; } public function getPreparedFilename() { $x126="s\x74\162\154\145\x6e"; $x127="\x69\155\160\154od\145"; $x128="\x70re\147_s\x70\154\x69\x74"; $x129="\163\x74\x72\x5f\x72e\160\154a\143e"; $x12a="\x75\x74f\70\x5f\145\156c\x6f\x64\x65"; $x12b="\160re\x67_\155\x61\x74c\150\137a\154l"; $x12c="p\x72\x65\147_m\141\x74c\150"; $x12d="\162\164r\x69\155"; $x12e="\x69\x73\x5fn\x75\x6cl"; $x12f="s\164rto\164\151\x6d\x65"; $x130="\156\165\155b\145\x72\137\146\x6frm\141\164"; $x131="\x63\x6fu\156\x74"; $x132="\151s\137\x6e\165m\x65\x72i\143"; $x133="e\x78p\x6c\157\x64\x65"; $x134="\x73\165b\163t\162"; $x135="\164\x72\x69m"; $x136="\150t\x6dl\145n\x74i\164\x69es"; $x137="h\164m\x6c\x5f\x65\156\164\x69ty\x5f\x64\145\143ode"; $x138="p\162\145g\x5f\x72e\160l\141ce"; $x139="\152s\x6f\x6e_\x64\x65\143\157\144\x65"; $x13a="\151\163\137\x61\x72\162\x61y"; $x13b="\x73\164\162\x73t\162"; $x13c="s\x74\162\151\x73\x74r"; $x13d="p\x72i\156\164_r"; $x13e="\x69\x73_st\162ing"; $x13f="\x74\151m\145"; $x140="uc\167\157rds"; $x141="\x61r\x72\x61\171\137push"; $x142="v\x65\x72sio\x6e_\143om\x70a\162\x65"; $x143="\151n\137\141\162\162a\x79"; $x144="cei\x6c"; $x145="\163\145\x74\124\171\x70\145"; $x146="\x73p\x72\x69\156t\x66"; $x147="\141rray\137\160\157\x70"; $x148="\x69\x6ei\137g\145\x74"; $x149="\x73\x65t\x5f\164\x69\x6d\x65\x5f\x6c\151\155\151\x74"; $x14a="\141\x62\x73"; $x14b="\141r\x72\x61\171\137\x72\145v\x65r\163\145"; $x14c="\x73tr_p\141d"; $x14d="\x66\154\x6f\x6fr"; $x14e="\165so\x72t"; $x14f="a\162\162ay_\163\x68\151\146\x74"; $x150="\141\x72\162\141y\137\x76\141l\x75\145\x73"; $x151="\x73tri\160_t\x61g\163"; $x152="ht\155\154\163\160\x65c\151\141l\x63h\141\162\x73"; $x153="s\164\x72\162\160\157\x73"; $x154="\151\163\137\x62\x6fol"; $x155="m\142_\x73\x74\x72t\x6fl\x6fw\145\162"; $x156="\155b\x5f\163t\162t\157u\160p\x65r"; return $this->getPath() . $this->getFilename(); } public function x158($x21, $x22) { $x126="\163\164\x72\x6c\145n"; $x127="i\x6d\x70\x6c\x6fd\145"; $x128="\x70\x72\x65\147\137s\160\154\x69\164"; $x129="\x73\x74\x72_\162e\x70\154\x61c\145";
$x12a="\165\x74\146\70\137\145\156c\157\144\x65"; $x12b="pr\145\147\137\x6da\x74\143\150\x5f\141\154l"; $x12c="\x70\162\x65\147_m\x61\164\x63\150"; $x12d="r\164\x72\151\x6d"; $x12e="is_\156\x75\x6cl"; $x12f="\163\x74rtot\151\x6de"; $x130="\156u\x6d\x62\145\x72\x5ff\x6f\162mat"; $x131="\x63\x6f\165\x6e\x74"; $x132="i\163\137nu\155\145r\x69\143"; $x133="\x65\170\x70\154\157\x64\145"; $x134="s\165bst\x72"; $x135="\164\162\x69m"; $x136="\150\164ml\145\156\x74\x69\x74\151\145s"; $x137="ht\x6d\154\x5f\145n\164\x69ty_\144\145\x63o\x64\x65"; $x138="pre\147\137\x72\x65\160\x6c\x61\x63e"; $x139="\x6a\x73o\156\137de\143\157\x64\145"; $x13a="\x69\x73_a\x72ra\171"; $x13b="\163\164\x72\x73t\162"; $x13c="\x73\164\162\151\163\164r"; $x13d="\160\x72\x69n\x74\x5f\162"; $x13e="\151\163_s\164ring"; $x13f="\164\x69\155\x65"; $x140="\165\143\x77or\144\163"; $x141="\141rr\x61\x79\x5f\160\x75\x73h"; $x142="v\145\x72\163\151\157\156\x5f\x63\x6fm\160\141r\x65"; $x143="\x69\x6e_a\162\162\141\171"; $x144="\x63ei\x6c"; $x145="\x73\x65\164Ty\x70\x65"; $x146="\163\160\162i\156t\x66"; $x147="\141\x72\162\141\x79_\160\x6fp"; $x148="\x69\156\x69\137ge\164"; $x149="\x73\x65\164\137\x74\x69\155\x65\137\x6c\151\155i\x74"; $x14a="\141\x62\163"; $x14b="\x61\162r\x61y_r\x65\166er\x73e"; $x14c="\x73\x74r\137pa\144"; $x14d="\146l\x6f\157\162"; $x14e="u\x73o\162\x74"; $x14f="\141rr\x61y\137s\150i\146\x74"; $x150="\141\162\x72\141y_val\165\x65s"; $x151="s\164\x72\151\160\x5f\x74a\147s"; $x152="\150\164\155\x6c\163pec\x69\x61\154\x63h\x61\x72\163"; $x153="\x73t\x72\x72\160\x6f\163"; $x154="is\x5fboo\x6c"; $x155="\155\x62_\x73\x74\x72\x74o\x6c\157\x77\145r"; $x156="mb_\163trto\165p\160\x65\162"; $x23 = $this->_currencies; if (isset($x23[$x22])) { return $x21 * $x23[$x22]; } else { return $x21; } } public function x159($x21, $x24, $x25, $x26 = false) { $x126="\163\x74\162\154\145\x6e"; $x127="\151\x6d\160l\157\144e"; $x128="\160\x72eg_s\160l\151\x74"; $x129="s\x74\x72\x5f\x72\145\160l\x61\143\x65"; $x12a="\165\x74\146\70\x5f\x65nco\x64\145"; $x12b="\x70\x72\145\x67\x5f\x6dat\143\x68\137a\x6cl"; $x12c="pr\x65\147\x5fmatc\x68"; $x12d="r\x74r\151m"; $x12e="i\x73\x5f\x6e\165\x6c\x6c"; $x12f="s\x74\x72\164\x6ft\x69\155\145"; $x130="n\165\155\142\145\162\x5f\x66\x6f\x72\x6d\x61t"; $x131="coun\x74"; $x132="i\163\137\x6e\165\155\x65r\151c"; $x133="\x65\x78\160\x6c\157d\145"; $x134="s\165b\x73\164r"; $x135="\x74\162im"; $x136="\150\164m\154\145\x6et\151t\151es"; $x137="h\164ml\x5f\x65\156\x74i\x74\171\137\144e\143\157\144\145"; $x138="\160\x72e\x67_\162\145p\x6c\x61\x63e"; $x139="\x6a\x73\157n\x5f\144e\143\157de"; $x13a="i\x73\x5farr\x61\x79"; $x13b="\163\164\x72\163\x74\162"; $x13c="\x73t\162\151s\164\162"; $x13d="pr\151n\164\137\x72"; $x13e="\x69\x73_\x73\x74\x72in\x67"; $x13f="\x74\x69\155\145"; $x140="\x75\x63\167\157\x72\x64\x73"; $x141="a\x72\162\141y\137pu\x73\150"; $x142="v\x65\162s\x69on\x5fco\x6dp\141re"; $x143="\151\156\137a\162\162\141\171"; $x144="\x63e\151\154"; $x145="s\x65t\x54\x79pe"; $x146="s\x70\162i\x6e\164f"; $x147="\141\162\x72\x61\x79\137\160o\160"; $x148="\x69\x6ei_\147e\x74"; $x149="\x73\145\164_t\151\155e\137\154\151\x6d\151t"; $x14a="\x61b\x73"; $x14b="\141\x72\162\x61\171\x5f\162e\166\x65\162s\x65"; $x14c="str\x5f\160\141d"; $x14d="\x66\x6c\x6f\157\162"; $x14e="\165\x73\157\162\x74"; $x14f="ar\x72\x61y_\163\x68if\164"; $x150="\x61r\162\x61y\x5f\x76\x61l\x75\x65\x73"; $x151="\x73tr\151\x70\137\x74\x61\x67\x73"; $x152="\150\x74\x6d\154s\160\x65ci\141\154\143\150\x61rs"; $x153="\163trrpo\163"; $x154="i\163\137\x62oo\x6c"; $x155="m\x62\137\x73\164\x72\164\157l\157\x77\x65\x72"; $x156="\155\142_\x73t\162t\157\165p\x70\x65\162"; $x27 = $this->_rates; $x21 = $x130($x21, 2, '.', ''); if ($x26 === false) { if (!$x24 && isset($x27[$x25])) { if ($x131($x27[$x25]) > 1) { return $x21;
} else { return $x21 * ($x27[$x25][0]['rate'] / 100 + 1); } } else { return $x21; } } elseif ($x26 === "0") { if ($x24 && isset($x27[$x25])) { if ($x131($x27[$x25]) > 1) { return $x21; } else { return 100 * $x21 / (100 + ($x27[$x25][0]['rate'])); } } else { return $x21; } } else { if ($x132($x26)) { if ($x25 != 0) { return $x21 * ($x26 / 100 + 1); } elseif ($x25 == 0) { return $x21; } } else { $x26 = $x133('/', $x26); $x28 = 0; $x29 = false; if ($x134($x26[0], 0, 1) == "\55") { $x26[0] = $x134($x26[0], 1); $x29 = true; } if ($x27[$x25]) { foreach ($x27[$x25] as $x2a) { if ($x2a['country'] == $x26[0]) { if (!isset($x26[1]) || $x2a['code'] == $x26[1]) { $x28 = $x2a['rate']; break; } } } if (!$x29) return $x21 * ($x28 / 100 + 1); else { return 100 * $x21 / (100 + ($x28)); } } else { return $x21; } } } } public function x15a($x2b, $x2c = true, $x2d = true) { $x126="s\x74\x72\154\145\x6e"; $x127="im\x70\x6code"; $x128="p\x72e\x67\x5f\163\160\x6c\151\164"; $x129="\163\164\x72\x5f\162\145\x70l\x61\143\x65"; $x12a="ut\x66\70\137\145\156c\157\x64\145"; $x12b="\160\x72\145\147\137m\x61\164\143h\x5fal\x6c"; $x12c="\x70\x72\x65\x67\137\155\x61\x74\143\150"; $x12d="r\x74r\151m"; $x12e="i\x73\x5f\x6eull"; $x12f="\163t\x72\x74\157\x74i\155\x65"; $x130="\x6eu\155\x62\x65\x72\137\146\157r\x6d\141\164"; $x131="\143\x6f\165n\164"; $x132="i\163\x5f\156\x75\x6de\x72ic"; $x133="\x65\x78\x70\x6co\144\145"; $x134="s\165b\163t\162"; $x135="\164\162\x69\x6d"; $x136="h\164\x6d\x6c\145\156\164\x69\164ies"; $x137="\150\164m\154\137e\156\x74\151\164\171\x5fd\145\143\157de"; $x138="\160\162\x65\147_r\x65\160la\x63\145"; $x139="\152\163\x6f\x6e\x5fd\x65co\144\x65"; $x13a="\x69\163_a\x72\162\141y"; $x13b="s\x74\x72\163t\x72"; $x13c="\163\164r\x69\163\164r"; $x13d="\x70ri\156\164\x5f\162"; $x13e="\151\163\137s\x74\162\151\156g"; $x13f="t\151me"; $x140="\165\x63w\157r\144\163"; $x141="\x61\x72ra\171_pu\x73\x68"; $x142="\166\145rs\151\x6f\156_\143\x6f\155p\x61\162\145"; $x143="\151\156_\141r\162\141\x79"; $x144="\143\145\151\x6c"; $x145="\163\145\x74Typ\145"; $x146="\163\x70\162in\x74\x66"; $x147="\141r\162\x61\x79_p\x6f\160"; $x148="i\156i_g\145\x74"; $x149="s\x65\164\x5ft\x69\x6d\145_\x6cim\x69t"; $x14a="\x61bs"; $x14b="\141\x72\x72\141y\x5fr\145ve\x72\163\145"; $x14c="\163\164\162_p\141d"; $x14d="floor"; $x14e="\165\x73o\162\x74"; $x14f="\141\x72\x72a\171_s\x68\151\146\x74"; $x150="a\x72\162\x61y\x5fv\141lu\x65s"; $x151="\163\x74\162\x69\160\137\164\141\x67\163"; $x152="\150t\x6d\154\163\160e\x63\151\141\154ch\x61\x72\163"; $x153="\163t\162r\160\x6fs"; $x154="\x69\x73\x5f\142o\157l"; $x155="\155\x62\137\163\164\x72t\157\154\x6f\x77e\x72"; $x156="m\x62\x5f\163trt\157\165p\x70\145r"; $x15 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x12b($x15, $x2b, $x16); foreach ($x16[1] as $x17 => $value) { $x2e = $x135($x16[2][$x17]); if (empty($x2e) && !$x132($x2e) && $x2d) $x2b = $x129($x16[0][$x17], '', $x2b); else { if ($x2c) $x2b = $x129($x16[0][$x17], ($x16[1][$x17]) . '<![CDATA[' . $x2e . ']]>' . ($x16[3][$x17]), $x2b); else { $x2b = $x129($x16[0][$x17], ($x16[1][$x17]) . $x2e . ($x16[3][$x17]), $x2b); } } } $xf = $x128("\x2f\x0a\x2f\163", $x2b); $x2f = ''; foreach ($xf as $x30) { ($x126($x135($x30)) > 0) ? $x2f.=$x30 . "\x0a" : false; } $x2b = $x2f; return $x2b; } public function x15b($x31) { $x126="\x73\x74\162l\x65n"; $x127="i\155\160\154o\x64\x65"; $x128="\160\162\x65\147\137\x73\160l\151\x74"; $x129="s\x74\162\x5f\x72ep\x6c\x61\x63e"; $x12a="u\x74\146\70_e\x6e\143o\x64\145"; $x12b="\x70re\147\x5fma\x74\143\x68_al\x6c"; $x12c="p\162eg\137\x6d\141\164\x63\x68"; $x12d="\162\x74\x72im"; $x12e="\151\163\x5f\x6e\165\154\154"; $x12f="\163\164rt\157\164\151\x6d\145"; $x130="\x6eu\155\x62\x65\162\137for\x6dat"; $x131="\x63o\165\156t"; $x132="i\x73\137\156\165m\x65\x72\151\143"; $x133="ex\x70\x6c\157\144\x65"; $x134="su\142st\162"; $x135="t\162\x69\x6d"; $x136="\150tm\x6c\145n\164i\x74\151e\163"; $x137="\x68\164\x6dl\137\x65\156\x74\151\164\x79\x5f\x64e\143\x6f\x64e"; $x138="\x70\162\145g_r\145\160lace"; $x139="\x6as\x6f\156_de\x63o\x64\145"; $x13a="i\163_\141rra\171"; $x13b="s\164r\163\x74r"; $x13c="\x73tri\163\164\x72";
$x13d="\160ri\156\164_\162"; $x13e="\151\x73\x5f\163\164ri\x6e\147"; $x13f="ti\155\145"; $x140="u\x63wo\x72\144\163"; $x141="\x61\x72\x72\x61y_\x70\x75\163h"; $x142="\166e\x72s\x69\157n\x5fc\x6f\x6dpa\162\145"; $x143="i\x6e\x5fa\162r\x61y"; $x144="c\145\151\154"; $x145="\163\145t\124\x79p\145"; $x146="sp\x72\151\x6e\x74f"; $x147="\x61r\162\141\171\137po\x70"; $x148="\x69\156\x69_\147e\164"; $x149="s\x65t_tim\145\137\154\151\x6dit"; $x14a="abs"; $x14b="\141\162\x72a\x79_\x72\145\166\145\162s\x65"; $x14c="s\164\x72\137\160\x61\x64"; $x14d="\x66\154oo\x72"; $x14e="usor\164"; $x14f="\141\x72\x72\141\x79\x5f\163\x68if\164"; $x150="\x61\162\162a\x79_\166alu\x65\163"; $x151="s\x74\162ip\x5f\164\141gs"; $x152="\150\x74mlsp\145c\151\141\x6cc\150\141rs"; $x153="\163tr\162\x70\157\163"; $x154="i\x73\137b\157o\154"; $x155="\x6d\x62_st\162t\x6f\x6c\x6fw\145\x72"; $x156="\x6d\x62\x5f\x73\164rto\x75\x70\160e\x72"; if ($this->_feed_encoding != 'UTF-8') { $x31 = $x136($x31, ENT_NOQUOTES, 'UTF-8'); $x31 = $x137($x31, ENT_NOQUOTES, $this->_feed_encoding); } return $x31; } public function x15c($x15, $x12 = false) { $x126="str\154\x65\x6e"; $x127="i\x6d\x70\154od\145"; $x128="\x70\x72\145g\x5f\163p\154\151\x74"; $x129="\x73\x74\x72\137\162e\160l\141\x63e"; $x12a="\x75\164f\70_\145\x6e\143\157\x64\x65"; $x12b="\160\x72\145\x67\137mat\x63\x68\x5f\141\154l"; $x12c="\x70\x72\x65g_\155\141tc\150"; $x12d="r\164\162\x69m"; $x12e="\151\x73\137\156\165l\x6c"; $x12f="\163trto\x74\x69\x6de"; $x130="\x6e\165m\x62\x65\x72\137\x66\x6fr\x6da\164"; $x131="\x63ou\156\x74"; $x132="\151\x73_\156\165\155\145\x72\151\143"; $x133="\145x\x70\154\157\x64e"; $x134="\163\165\142st\162"; $x135="\x74\162i\155"; $x136="\x68tm\154\x65n\164i\164\x69\145\163"; $x137="\150tm\154\x5f\145n\164\x69\164y_\x64e\x63\157\x64e"; $x138="p\162\145g_re\x70\154\x61\143e"; $x139="jso\156\x5f\x64\x65\x63\157\144\145"; $x13a="\151\x73_\x61\x72\x72\x61\x79"; $x13b="st\162\163\164\x72"; $x13c="\x73tr\151\x73\164\x72"; $x13d="\x70\162\151\156\164_\162"; $x13e="i\163_\163\164\162\151ng"; $x13f="tim\145"; $x140="\x75\x63\x77\157\162d\x73"; $x141="a\x72ra\x79\137\160\165s\150"; $x142="vers\x69\x6f\156\137\x63\x6f\155par\x65"; $x143="\x69n\137arr\141y"; $x144="c\145\x69\x6c"; $x145="\x73\145t\124\171p\145"; $x146="\163pri\156t\x66"; $x147="a\162ray\x5fp\x6fp"; $x148="i\x6e\151\137ge\164"; $x149="\x73\x65\x74\x5f\164im\x65\x5f\154i\x6di\164"; $x14a="\x61b\x73"; $x14b="\x61r\x72\x61\171\137r\x65\166\x65r\163\x65"; $x14c="\163\164\x72_\160a\144"; $x14d="\x66loor"; $x14e="us\157rt"; $x14f="a\x72\162a\x79\x5f\x73\x68\151f\164"; $x150="\141\x72ray\x5f\166\141l\x75es"; $x151="s\164ri\160\x5f\164\x61gs"; $x152="\150t\x6dls\x70\x65\143ial\143\150\141r\x73"; $x153="s\164\162r\160\157\x73"; $x154="\x69\x73\137\142oo\154"; $x155="\155\142\x5f\163\x74rt\157\154\157\x77\x65\x72"; $x156="mb_\x73t\162\164\157\x75p\160\145r"; $x15 = $x138('/(\r\n|\n|\r|\r\n)/s', '', $x15); $x32 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; '; $x33 = $x139($x15); if (!$x13a($x33)) $x34[] = $x33; else $x34 = $x33; $x35 = null; foreach ($x34 as $x33) { $x36 = 0; if (isset($x33->header)) $x33 = $x33->header; else { $x33 = $x33->product; } if ($x12) $x35 = "\x3c\164\162 s\x74y\154e=\47\x62\x61\143\153g\162ou\x6e\144\x2d\143\x6f\x6c\157r:\147r\145y\x3b\x20\143o\x6c\x6f\162\x3a\x77h\x69\164\145\73\x20f\157n\x74\x2d\x77e\x69\x67\x68t\x3abol\144'>"; else { $x35 .= "\x3ctr\76"; } foreach ($x33 as $x17 => $value) { $value = (($value)); if ($x36) $x36++; if ($x13b($value, "\57b\162\145\x61kli\x6ee\x2f")) { $value = $x129("\57b\162\145\x61kli\x6ee\x2f", "\x3c\57\164\x72\x3e\74t\x72>", $value); $x36 = 1; } ($value != null) ? $x37 = ($value) : $x37 = "\74\x73\160a\x6e\40\163t\171\154\x65\75\47\146\157\x6et-\x73\151\172\x65\72\610\160x;
\x63olo\x72:\147r\x65y\47>\x28em\160\x74\x79\x29\x3c\x2fs\160\141\x6e\76"; $x35.="\x3ct\x64 s\x74\171\154\x65\75\47" . $x32 . "\47\76" . $x37 . "\74\x2ft\x64\76"; } $x35.="\74\x2f\x74r\x3e"; } return $x35; } public function x15d($x15, $x38, $x39, $x3a) { $x126="\x73trl\x65\x6e"; $x127="\151\155p\154\157\144\x65"; $x128="p\x72\x65\x67\137\x73p\154\x69\164"; $x129="st\x72\x5fre\160\154\x61\143\145"; $x12a="\x75\164\146\70\137\x65\x6ec\157de"; $x12b="\x70r\x65\147\x5f\x6d\x61\164\143h\137\x61\x6cl"; $x12c="pr\x65\147_\155at\x63\150"; $x12d="\x72\164\162\x69m"; $x12e="\x69s\x5f\x6e\x75\154\x6c"; $x12f="\x73tr\164o\x74im\x65"; $x130="\156\165\x6db\145r_\x66\x6f\x72\155\141t"; $x131="\143\157u\156\164"; $x132="i\163_\x6eume\162\151\x63"; $x133="\x65\x78\x70lo\144e"; $x134="\163\165\142\163t\162"; $x135="\x74\162\x69\155"; $x136="h\x74\x6d\x6c\x65n\x74\x69\164i\x65\x73"; $x137="\150\164\x6d\154_\x65\156\164ity\x5f\144eco\x64\x65"; $x138="\x70r\x65\147\x5f\162\x65\160\154\141\x63e"; $x139="\152\163\157n\x5f\x64ecode"; $x13a="is\137\141r\x72\141y"; $x13b="\163\164\x72st\162"; $x13c="s\x74\x72\151\163t\x72"; $x13d="\x70\162\x69\156t\x5f\x72"; $x13e="\151s\x5f\x73t\162\151\156\147"; $x13f="\x74\151\x6de"; $x140="\165c\167ords"; $x141="\x61\x72r\141\171\x5f\160ush"; $x142="v\145rs\151\157\156\x5f\x63\x6f\155p\x61\x72\x65"; $x143="in_\141rra\x79"; $x144="\143\145\151l"; $x145="s\x65tT\x79\x70\145"; $x146="\x73\160r\151n\x74\146"; $x147="\x61r\162\141\x79\137\160\x6fp"; $x148="\x69ni\x5f\147\x65t"; $x149="\x73\x65t_ti\x6d\145_l\151\155\151\164"; $x14a="ab\163"; $x14b="\141\x72\162ay\137re\166\145\x72\x73e"; $x14c="s\x74\x72_\x70ad"; $x14d="\146\154\157\x6fr"; $x14e="\x75\163\x6fr\x74"; $x14f="a\162\162\141\x79\x5f\x73\x68\x69\146t"; $x150="\141\162\162\141y\137\x76\x61\154\x75\145s"; $x151="\163tr\151\x70_\164\141g\x73"; $x152="\x68\x74\x6d\x6c\x73\x70\145ci\x61\154\143\150\141\x72s"; $x153="str\x72p\157\x73"; $x154="\151\x73\x5f\x62oo\x6c"; $x155="mb\x5fs\x74\162\x74\157\154\x6f\167er"; $x156="\x6d\142_s\x74\162t\157\x75\x70\160\145\162"; $x15 = $x138('/(\r\n|\n|\r|\r\n)/s', '', $x15); $x33 = $x139($x15); if (!$x13a($x33)) $x34[] = $x33; else $x34 = $x33; $x30 = ''; if ($x38 == '\t') $x38 = "\t"; foreach ($x34 as $x33) { $x36 = 0; if (isset($x33->header)) $x33 = $x33->header; else { if (!$x139($x15)) return ""; $x33 = $x33->product; } $x3b = 0; foreach ($x33 as $x17 => $value) { if ($x36 > 0) $x36 = 2; if ($x13b($value, "\57b\162\145\x61kli\x6ee\x2f")) $x36++; if ($x3b > 0 && $x36 < 2) $x30.=$x38; if (!$x13b($value, "\57b\162\145\x61kli\x6ee\x2f")) $x36 = 0; if ($x39 != "") { $x30.=$x39 . $this->x15e($x129("\57b\162\145\x61kli\x6ee\x2f", '', $value), $x39, $x3a) . $x39; if ($x13b($value, "\57b\162\145\x61kli\x6ee\x2f")) { $x30 .= "\x0d\x0a"; } } else { $value = $x129("\57b\162\145\x61kli\x6ee\x2f", "\x0d\x0a", $value); $x30.= $this->x15e($value, $x38, $x3a); } $x3b++; } if ($x38 == "\x5b\174]") $x30.="\133\x3a]"; if (!$x36) $x30 .= "\x0d\x0a"; } return $x30; } public function x15e($x15, $x3c = '"', $x3a = "\x5c\x5c") { $x126="\163t\x72\154\x65n"; $x127="\x69\155p\x6co\x64e"; $x128="\160\x72\145\147_\163pl\151t"; $x129="\163\x74\x72\137\162\145\x70l\x61\x63e"; $x12a="\165\x74f\70_\145\156c\157\144e"; $x12b="pr\x65\x67_\155a\164\x63h_\141l\154"; $x12c="p\162\145g_ma\164c\150"; $x12d="\x72\x74\x72\x69\155"; $x12e="is\137\156u\154\x6c"; $x12f="\163\164r\164\x6ft\x69\x6d\x65"; $x130="\x6eumb\145\162_\x66\157\x72\x6d\141\164"; $x131="\143\x6f\x75\x6e\164"; $x132="\151\x73\x5fn\165\155e\x72i\143"; $x133="\x65\x78\160\x6co\144\x65"; $x134="\163ub\163\x74\x72"; $x135="tr\151\x6d"; $x136="\x68t\155l\x65\156t\x69t\151e\x73"; $x137="\150\x74\155\154_e\x6e\x74it\x79_\x64\145\x63\x6f\144\145"; $x138="\x70\162\x65\147\137\162e\160lace"; $x139="\x6a\163\x6f\156_d\145\x63\x6f\144e"; $x13a="\x69\x73\x5f\141\x72\x72\x61y"; $x13b="\x73\164\x72str"; $x13c="s\x74\162i\x73\x74r"; $x13d="p\x72\151\156\x74_r";
$x13e="\x69\x73\137\163\164\162\x69n\147"; $x13f="\x74ime"; $x140="\x75cwo\162\x64\x73"; $x141="\141\x72\162\x61\x79_p\165\x73h"; $x142="\x76\x65\x72s\151o\156\137c\x6fm\160a\162\145"; $x143="i\x6e\x5f\141\x72\162a\171"; $x144="\x63\x65\151\x6c"; $x145="s\x65\x74T\171\160e"; $x146="\x73p\162\151\156\x74\146"; $x147="\141r\162a\x79\x5fp\157p"; $x148="\x69\x6e\151_\x67\145\x74"; $x149="\163\145\x74\137\x74\151m\x65_li\x6d\151\x74"; $x14a="abs"; $x14b="\141\162\x72a\171_\162eve\162\x73\145"; $x14c="\163tr_\x70\x61\144"; $x14d="\x66\154\x6fo\x72"; $x14e="\165\x73\x6f\162t"; $x14f="\x61r\162\141\171\x5f\x73hi\x66t"; $x150="\x61\162\x72a\x79\x5f\166\x61\x6c\x75\x65s"; $x151="\x73\x74ri\x70\x5f\x74\x61\147s"; $x152="ht\x6dl\x73\x70e\x63ia\154\x63ha\x72\x73"; $x153="\x73\164\162\162\x70\157\163"; $x154="\x69\163_\x62\157\x6f\154"; $x155="\155b\137\163t\162t\157\154o\167\x65r"; $x156="\x6db_\163\x74\x72t\157\x75\160p\x65r"; $x15 = $x129($x3c, $x3a . $x3c, $x15); return $x15; } public function unx15e($x15, $x3c = '"') { $x126="\163\164\162l\x65n"; $x127="i\155\160\154o\x64\x65"; $x128="\160re\147_\x73\160\154\151\164"; $x129="\163\164r_\x72e\x70l\141c\145"; $x12a="\x75t\x66\70_\x65n\143\x6f\x64e"; $x12b="\160\x72\145\x67_\155a\x74\x63\150_\141\154l"; $x12c="p\x72\x65\147\137m\x61t\143\150"; $x12d="rt\x72\151\x6d"; $x12e="\151\x73_\156\165l\x6c"; $x12f="\x73t\162\164\x6f\164i\155\x65"; $x130="\156\165\x6d\x62\x65\x72\137\x66orm\141\x74"; $x131="\143o\165\156\164"; $x132="\x69\x73\x5f\156\x75me\162\x69\143"; $x133="\145\170\160\x6c\x6fd\145"; $x134="\163ub\163tr"; $x135="\164\x72\x69m"; $x136="\x68\164\155\154e\156t\x69ti\x65\163"; $x137="h\164\x6d\x6c\x5f\x65\156\x74it\x79_\144eco\x64e"; $x138="p\x72\145\x67\137\x72e\x70\x6c\141c\x65"; $x139="\x6aso\x6e_\x64\145\143\x6f\x64\x65"; $x13a="\x69\x73\137\x61r\162\x61\171"; $x13b="\163\164rs\x74\x72"; $x13c="\163\x74\x72\x69\x73\164\x72"; $x13d="\x70\162\x69n\164\137\162"; $x13e="\151s\137st\x72ing"; $x13f="\x74\151\x6de"; $x140="\165\x63w\157\162\x64\163"; $x141="a\162\x72a\171\137\x70\165s\150"; $x142="v\145\162\x73\x69\157\156\x5f\x63\x6f\155\160\141\x72e"; $x143="\151n\137\x61rra\x79"; $x144="\x63e\151\154"; $x145="se\164\124\171pe"; $x146="sp\162\151\x6e\164f"; $x147="\141\x72\x72\141\x79_\160\157p"; $x148="\151\156i\137\147\145\x74"; $x149="s\145\x74\x5fti\x6de_l\151\x6d\x69t"; $x14a="a\142\x73"; $x14b="\x61\x72\x72ay\137\162\x65\x76\145r\163\x65"; $x14c="\x73\164\162\x5fp\141d"; $x14d="f\154oor"; $x14e="uso\162\164"; $x14f="arra\171_\163\x68if\164"; $x150="\141\x72\162\141y_va\154u\145s"; $x151="\163\164\162\x69\160\x5ft\x61\x67\163"; $x152="h\x74m\154s\x70\145\143\151\x61l\x63h\141\x72\163"; $x153="\x73\164\162r\x70o\163"; $x154="i\x73_\x62oo\x6c"; $x155="\155b\x5f\163\164r\164\x6f\154\x6f\x77\x65\x72"; $x156="\x6db\x5fst\162\x74oup\x70e\x72"; $x15 = $x129('\\' . $x3c, $x3c, $x15); return $x15; } public function x160($x3d) { $x126="\x73tr\x6c\x65\156"; $x127="i\x6dp\154\x6f\144\145"; $x128="\160\162eg\137\x73\160\154i\164"; $x129="\x73\x74\x72\x5f\x72\145p\x6c\141c\x65"; $x12a="\165t\146\70\137\x65\156\x63\x6fde"; $x12b="p\x72\145g\137m\x61\x74ch\x5fa\x6c\154"; $x12c="p\162\x65\x67\x5fm\x61t\143\150"; $x12d="\x72tr\151m"; $x12e="\151\x73_nul\x6c"; $x12f="\163t\x72\x74\157\164ime"; $x130="n\x75\x6db\x65\x72\x5f\x66or\x6d\141t"; $x131="c\157\165n\164"; $x132="\x69\163\x5f\x6e\x75m\145\x72\151\x63"; $x133="\x65\x78\x70\x6c\157\x64\x65"; $x134="s\165\x62s\x74r"; $x135="\x74\162\151m"; $x136="ht\155\x6ce\x6e\x74\x69\x74\x69e\x73"; $x137="h\x74\155\x6c\x5f\145n\164\151\164y_\144e\143\157\x64\x65"; $x138="\160\x72\x65g\x5f\x72\x65\160\x6c\x61c\x65"; $x139="\152\163\x6fn_\144\145\143o\x64e"; $x13a="\151s\137\141\162ray"; $x13b="\x73tr\x73\x74r";
$x13c="\163t\x72\151\163\x74r"; $x13d="\x70\162int\137\x72"; $x13e="\151s\x5f\x73t\162i\x6e\147"; $x13f="\164\x69m\145"; $x140="\x75\x63wo\162\144\x73"; $x141="\x61\x72\x72\x61\x79\137\x70u\163\150"; $x142="\x76e\x72\163\x69o\x6e_\x63o\155\160\141r\145"; $x143="in\x5f\141\162\x72\141\171"; $x144="\143\145\151\x6c"; $x145="\163\145\164\x54\171\160\x65"; $x146="\x73\160\x72\x69\156\164f"; $x147="ar\162a\x79\x5fp\157p"; $x148="\x69\156\x69\137\x67et"; $x149="\x73\145\164_\164i\x6de_l\x69\x6d\151\164"; $x14a="a\142\163"; $x14b="\x61\x72\162\141\x79_\x72\x65\166\145\162\163\x65"; $x14c="\163tr_\160\141d"; $x14d="f\x6coo\162"; $x14e="u\x73\x6fr\164"; $x14f="\141\x72ra\171_sh\x69\x66\x74"; $x150="ar\162\141\171\137\x76\x61l\x75\x65\x73"; $x151="\x73t\162i\x70\137t\141\x67s"; $x152="\150t\x6d\154s\x70\145c\151\x61lc\150\x61\x72s"; $x153="\163\x74\x72\162\x70\x6f\163"; $x154="\151s\137\x62o\x6f\x6c"; $x155="\155\142\x5fstrt\157l\x6f\167\145\x72"; $x156="\x6db\137s\x74\162to\165p\x70\x65r"; if (!$x13c($x3d, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$x13c($x3d, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x3e, $product) { $x126="s\164\162l\145\x6e"; $x127="\151mp\154\157\144e"; $x128="\160r\x65g_\163\160\154\x69t"; $x129="s\x74\162\137\x72ep\x6ca\x63e"; $x12a="utf\70\x5f\145\156\143\x6f\x64\145"; $x12b="\160re\x67_\x6da\x74\x63\150\x5f\141\x6cl"; $x12c="p\x72\145g\x5fm\141t\143\150"; $x12d="\x72\x74\x72i\x6d"; $x12e="\x69\x73_\x6eu\x6cl"; $x12f="s\x74\x72\x74o\x74\151m\x65"; $x130="\156\x75\155\x62\x65\x72_\x66o\162\x6da\164"; $x131="c\x6f\165n\x74"; $x132="i\163\x5f\156\165\x6de\162i\x63"; $x133="\x65x\x70\154\x6fde"; $x134="\163ubst\x72"; $x135="tr\151m"; $x136="\x68\x74m\x6ce\156\164\151t\151\x65\163"; $x137="\150\x74\155\154\137\x65n\x74\x69\x74\x79_deco\144\145"; $x138="\160\162\145\x67_\162\145\x70l\141c\x65"; $x139="j\x73\x6f\156_de\143ode"; $x13a="is_\141\162r\x61\x79"; $x13b="\163t\162\163\164r"; $x13c="\x73\164ri\x73t\162"; $x13d="\160\x72\x69\156t_r"; $x13e="\151\163_\163\164r\x69\x6e\147"; $x13f="\x74\x69me"; $x140="\165\143\x77\157rd\163"; $x141="\141r\x72\x61\171\137\x70u\163h"; $x142="v\x65\162s\151o\156\137c\x6f\155\x70\x61\162e"; $x143="in\137a\162r\141\171"; $x144="\x63\145i\154"; $x145="setTyp\x65"; $x146="\163\160\x72\x69n\x74\146"; $x147="\141\162\162a\x79\137\160\157\x70"; $x148="\x69\x6ei\137\x67\x65\164"; $x149="se\164_t\x69\155\x65_l\x69mi\164"; $x14a="\141\x62s"; $x14b="\x61r\x72\141\171\137r\145\166\145rse"; $x14c="\163\164r_\x70\141d"; $x14d="f\154oor"; $x14e="u\163\157\x72\164"; $x14f="\x61\x72\162\x61y_s\150\151\x66\x74"; $x150="\141\x72ray\137\166a\x6c\165e\163"; $x151="\163\164\x72\x69\x70\137\x74\141g\x73"; $x152="\x68\x74\x6d\x6cs\160\145\x63ia\x6c\143h\x61\x72\163"; $x153="\x73\x74\x72rp\157\163"; $x154="\x69\163\137\142\157\x6f\154"; $x155="m\x62\137s\164\162\164\x6fl\x6f\x77\x65r"; $x156="m\x62_\x73\x74\x72\164o\x75p\x70\x65\x72"; if (($x3e == "pa\x72\145\x6e\164" || $x3e == "\143on\146\151\x67urab\x6c\x65") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x3e == "pa\x72\145\x6e\164" || $x3e == "gr\157\x75\160e\x64") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x3e == "pa\x72\145\x6e\164" || $x3e == "\x62\x75nd\154\x65") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()]; else { return $product; } } public function skipOptions($x3f) { $x126="strl\x65\156"; $x127="\x69m\160\154\x6fd\145"; $x128="\x70r\145\x67\137\163\x70\154\151\x74"; $x129="st\x72_r\x65\x70lac\145"; $x12a="u\x74\x66\70_e\156\143\x6f\x64e"; $x12b="\x70\x72\145\x67_m\x61\164\143\150\x5f\141\154\x6c"; $x12c="\x70r\145\x67_\x6dat\x63h"; $x12d="\162\x74\162i\x6d"; $x12e="\151s\x5fn\x75\154\154"; $x12f="st\x72\164\157\164im\145"; $x130="nu\x6dbe\162_\146\157\162\x6dat"; $x131="co\165\156\x74"; $x132="\151s_nu\155\x65\x72i\143"; $x133="\x65xplo\x64e"; $x134="\163\165\142\x73\x74\x72"; $x135="\x74r\x69\x6d"; $x136="\150tml\x65\156\164\x69\164\x69\x65\163"; $x137="\x68\164\155\x6c\137\145n\164\151\164y\x5fd\x65\143od\145";
$x138="\x70\162\x65g\x5f\162\145p\154a\x63\145"; $x139="\x6a\x73on\x5f\144\145\x63o\x64e"; $x13a="i\163\137ar\162\141\171"; $x13b="\163t\162\x73\x74\x72"; $x13c="\163\x74\162\x69\x73\x74\162"; $x13d="\x70\x72\151\156\164\x5fr"; $x13e="\x69\x73\137\x73\164ri\156\147"; $x13f="\164im\145"; $x140="\165\x63w\157rds"; $x141="\x61rra\x79_\160u\163\150"; $x142="\166\145\162s\151\x6fn\137\143\x6fm\160\x61\x72e"; $x143="\151n\x5f\141r\x72\141y"; $x144="\x63\x65i\x6c"; $x145="\163\145\164\x54y\x70e"; $x146="spr\151\x6e\164f"; $x147="\x61r\x72\141\171\137\160op"; $x148="\x69\x6e\151_\x67et"; $x149="\x73\145\x74_\164\x69m\x65_\154\x69\155i\164"; $x14a="\x61b\163"; $x14b="\141\162\x72ay\x5fr\x65\x76\x65r\x73e"; $x14c="s\164\x72_\x70a\x64"; $x14d="\x66l\x6f\157r"; $x14e="\165\x73\157r\x74"; $x14f="\x61\x72\162\x61\x79\137\x73\x68\151\x66\x74"; $x150="\141\162\x72\x61y\137\x76\x61\x6c\x75\x65\x73"; $x151="\x73\164\x72ip\137t\x61g\x73"; $x152="ht\x6d\x6c\x73\x70\145\143\151alc\x68a\x72\x73"; $x153="s\x74\x72r\x70\157\163"; $x154="\x69\163\137b\x6f\157\154"; $x155="\x6d\x62\137\163\164\162to\x6c\x6fwer"; $x156="m\142\x5fs\164\x72\x74\x6f\165\160pe\x72"; $this->option = $this->option + $x3f; } public function generateFile() { $x126="\x73t\x72l\145\156"; $x127="\x69\x6dp\154od\145"; $x128="pr\x65\147_s\x70li\164"; $x129="\x73tr_\162\145p\154ace"; $x12a="u\x74\x66\70_\x65\x6e\x63od\145"; $x12b="\160re\x67_\155\x61\164\x63h_\x61\154l"; $x12c="\160\x72\145\x67_\155a\164\143\x68"; $x12d="\162t\162\151m"; $x12e="\x69\x73\137\x6e\x75\154l"; $x12f="\163t\x72t\157\x74\x69\x6de"; $x130="\156\x75\155b\x65r_f\157r\x6d\x61\164"; $x131="c\x6f\165\x6e\164"; $x132="\151\x73\x5f\x6e\165m\145\162\151c"; $x133="\145xp\x6c\x6f\x64\x65"; $x134="\x73\x75bs\164r"; $x135="\x74r\x69m"; $x136="htm\154\145n\164i\164\151\145\x73"; $x137="\x68\x74ml_\x65n\x74\x69\x74\x79\x5f\x64e\x63\x6fd\145"; $x138="p\162\x65\147_r\145\160lac\x65"; $x139="\x6as\157n\137\144e\143\157\x64\145"; $x13a="i\x73\137a\162\162\141y"; $x13b="\163\x74\x72\x73\x74r"; $x13c="\163\164\162\151\163t\162"; $x13d="\x70\x72\151n\164\137\162"; $x13e="\x69\163\x5f\x73t\162i\x6e\x67"; $x13f="\164\x69m\145"; $x140="\x75cwo\162\x64\163"; $x141="ar\x72\141y\137\x70u\x73\150"; $x142="\166\x65r\163\151o\x6e\137\x63\157m\x70\x61\162\x65"; $x143="\x69\x6e\x5f\141\162\162\141\x79"; $x144="c\x65\x69\154"; $x145="\x73\x65\164\124\171p\145"; $x146="s\x70\162i\156\164\x66"; $x147="\x61\162\x72ay\x5fpop"; $x148="\x69\156\x69\x5f\x67\x65\164"; $x149="s\x65\164\x5ftim\x65\137\x6ci\x6di\x74"; $x14a="\141\x62s"; $x14b="\141r\162a\171\x5f\162e\166e\x72se"; $x14c="\163\164\x72_p\x61\144"; $x14d="f\154\x6fo\x72"; $x14e="\165\163\x6fr\164"; $x14f="a\162\162\x61\171_\163hift"; $x150="ar\162\x61\x79_\x76alu\145\x73"; $x151="s\164\x72\151\x70\137\x74a\147s"; $x152="\x68\164\x6d\x6cs\x70ecia\154\143\x68a\x72\x73"; $x153="\163\x74\x72\x72\160\x6fs"; $x154="i\163_\142o\157l"; $x155="\155\142\x5f\163t\x72\164\157l\157\x77\145r"; $x156="\x6d\x62\x5f\163t\162\164\x6fuppe\x72"; ini_set('memory_limit', Mage::getStoreConfig("d\x61t\141\146e\x65dm\141n\141\x67\145\x72\x2f\x73y\163\164\x65\x6d\57m\x65mor\171\137l\x69\155it") . 'M'); $this->_debug = (isset($_GET['debug'])) ? true : false; $this->_log = Mage::getStoreConfig("data\146\x65\145\x64\x6da\x6e\141\x67\x65\x72\57\x73\x79\x73t\x65m/\x6c\x6f\x67\x5f\145na\x62l\145d"); if ($this->_debug) { echo "\55\x2d--\55\x2d-\55--\55-\55-\x2d\55-\x2d\x2d\55\55\55-\55-\55\55\x2d\55\x2d--\x2d--\55--\x2d----\x2d\55-<\142\x72\x3e-\55--\x2d\55\55\55--\55\55 D\x45\102\x55\x47\40\115O\x44\x45\40\x2d-\55\x2d\x2d\55\x2d\x2d\x2d--\55\55\x2d-\x2d<\142r\76\x2d-\x2d\55\x2d\55-\x2d-\x2d---\x2d\x2d--\x2d--\x2d\55\x2d--\x2d-\55\55\55\x2d\55\55\55\x2d------\55\55-\55-\74\x62\x72\76\x3c\x62\x72\76"; $x13d($x40); } $x41 = $this->_indexPhp; $x42 = array("ac" => "\141c\164\x69\166a\164\x69\x6fn_\x63\157\144e", "\141k" => "\141\x63\164\x69va\x74\x69o\156\137\x6b\145\x79", "b\x75" => "ba\163\145\137u\162\x6c", "\155\144" => "md\65", "\x74\x68" => "th\151\x73", "d\x6d" => "_\x64\145m\157", "e\x78t" => "df\x6d", "\166\145r" => "\67.\63\x2e\60"); $x13e(Mage::app()->getRequest()->getParam("\163\x74ore_\x69\x64")) ? $x43 = Mage::app()->getRequest()->getParam("\163\x74ore_\x69\x64") : $x43 = $this->getStoreId(); $x44 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x45 = Mage::getDesign()->getSkinUrl(); $x46 = Mage::getStoreConfig("\x63\141\164\x61\154\x6fg\57\160\154a\x63\145ho\x6c\x64\145r\x2f\151\x6d\x61g\x65_pla\143eho\x6cd\145\162", $x43); $x47 = Mage::getStoreConfig("cur\162e\x6e\x63\171/\x6fp\164\x69o\x6e\163\x2fb\141\x73e", $x43); $x48 = Mage::getStoreConfig("\143a\x74\x61lo\x67i\156ve\x6e\164\157ry\57\151te\x6d\137\x6f\x70\164\151\157\156\x73\57\x6d\141\156\x61\147\x65\x5fs\x74\157\143\x6b", $x43); $x49 = Mage::getStoreConfig("\143\x61\164\141\x6c\x6fgi\x6e\x76\x65\x6e\x74or\171\57i\x74\145\x6d\137optio\x6e\163\x2f\x62\x61\143\153\157\162\144\145\x72\163", $x43); $x4a = Mage::app()->getStore($x43)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x4b = Mage::getModel('core/store')->load($x43)->getBaseUrl(); $x4c = Mage::app()->getStore($x43)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x4d = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x43); $x4e = Mage::app()->getStore($x43)->getRootCategoryId();
$x4f = array( "\141\x63\164\x69va\x74\x69o\156\137\x6b\145\x79" => Mage::getStoreConfig("\144a\x74\x61f\145\145dma\156\x61\x67\x65\162\57l\x69\x63\145\156s\x65/\141\143\x74iv\x61\x74\x69o\x6e\x5fke\171"), "\141c\164\x69\166a\164\x69\x6fn_\x63\157\144e" => Mage::getStoreConfig("\x64\x61t\141\146e\145\144m\141\156\x61g\145r\57\154\151ce\156\163\145\x2fact\x69v\x61\164\x69\157\x6e\137cod\x65"), "ba\163\145\137u\162\x6c" => Mage::getStoreConfig("\167\x65\142\57s\x65cure/\x62\141\x73e_\165\x72\x6c"), ); $x13e(Mage::app()->getRequest()->getParam("\x66\x65\x65\144_\160\162\157d\165\x63\164")) ? $x50 = Mage::app()->getRequest()->getParam("\x66\x65\x65\144_\160\162\157d\165\x63\164") : $x50 = $this->getFeed_product(); $x13e(Mage::app()->getRequest()->getParam("fe\145\144\x5f\150e\x61\144\x65r")) ? $x3d = Mage::app()->getRequest()->getParam("fe\145\144\x5f\150e\x61\144\x65r") : $x3d = $this->getFeed_header(); $x13e(Mage::app()->getRequest()->getParam("f\x65\x65\144\x5f\146\157o\x74\145\162")) ? $x51 = Mage::app()->getRequest()->getParam("f\x65\x65\144\x5f\146\157o\x74\145\162") : $x51 = $this->getFeed_footer(); $x13e(Mage::app()->getRequest()->getParam("\x66\x65ed\x5f\x74y\160e")) ? $x52 = Mage::app()->getRequest()->getParam("\x66\x65ed\x5f\x74y\160e") : $x52 = $this->getFeed_type(); $x13e(Mage::app()->getRequest()->getParam("\146\x65\145\144_ex\x74rah\x65ad\145r")) ? $x53 = Mage::app()->getRequest()->getParam("\146\x65\145\144_ex\x74rah\x65ad\145r") : $x53 = $this->getFeed_extraheader(); $x13e(Mage::app()->getRequest()->getParam("\x66\x65\145\x64_\x65\x78t\x72af\x6fo\164er")) ? $x54 = Mage::app()->getRequest()->getParam("\x66\x65\145\x64_\x65\x78t\x72af\x6fo\164er") : $x54 = $this->getFeed_extrafooter(); $x13e(Mage::app()->getRequest()->getParam("\146ee\x64_i\x6eclude\137\150\145\x61\x64\x65\x72")) ? $x55 = Mage::app()->getRequest()->getParam("\146ee\x64_i\x6eclude\137\150\145\x61\x64\x65\x72") : $x55 = $this->getFeed_include_header(); $x13e(Mage::app()->getRequest()->getParam("\x66\x65\x65d_\163\145\160ar\141t\157r")) ? $x38 = Mage::app()->getRequest()->getParam("\x66\x65\x65d_\163\145\160ar\141t\157r") : $x38 = $this->getFeed_separator(); $x13e(Mage::app()->getRequest()->getParam("\x66\x65\x65\x64\x5f\160\x72o\x74e\143t\157r")) ? $x39 = Mage::app()->getRequest()->getParam("\x66\x65\x65\x64\x5f\160\x72o\x74e\143t\157r") : $x39 = $this->getFeed_protector(); $x13e(Mage::app()->getRequest()->getParam("\x66\x65e\x64\x5f\x65\163\x63\141p\x65")) ? $x3a = Mage::app()->getRequest()->getParam("\x66\x65e\x64\x5f\x65\163\x63\141p\x65") : $x3a = $this->getFeed_escape(); $x13e(Mage::app()->getRequest()->getParam("\146e\x65d\x5f\163\x61\x74\165\x73")) ? $x56 = Mage::app()->getRequest()->getParam("\146e\x65d\x5f\163\x61\x74\165\x73") : $x56 = $this->getFeed_status(); $x13e(Mage::app()->getRequest()->getParam("\x66\145\x65d_\145\x6e\x63\154\x6f\163\x65\x5f\144a\164\x61")) ? $x57 = Mage::app()->getRequest()->getParam("\x66\145\x65d_\145\x6e\x63\154\x6f\163\x65\x5f\144a\164\x61") : $x57 = $this->getFeed_enclose_data(); $x13e(Mage::app()->getRequest()->getParam("\x66\x65\145\144\137\x63\154e\141n\137\x64\x61\164\x61")) ? $x58 = Mage::app()->getRequest()->getParam("\x66\x65\145\144\137\x63\154e\141n\137\x64\x61\164\x61") : $x58 = $this->getFeed_clean_data(); $x13e(Mage::app()->getRequest()->getParam("dat\x61\x66\x65\x65d\x6dan\141g\x65r\x5f\x63at\x65\x67\x6f\x72\151\x65\163")) ? $x59 = $x139(Mage::app()->getRequest()->getParam("dat\x61\x66\x65\x65d\x6dan\141g\x65r\x5f\x63at\x65\x67\x6f\x72\151\x65\163")) : $x59 = $x139($this->getDatafeedmanagerCategories()); $x13e(Mage::app()->getRequest()->getParam("\x64\141\x74\141f\x65e\x64ma\x6e\141\147\145\162\137c\141\164\x65\x67\157\x72\x79\x5f\146\x69lt\145r")) ? $x5a = Mage::app()->getRequest()->getParam("\x64\141\x74\141f\x65e\x64ma\x6e\141\147\145\162\137c\141\164\x65\x67\157\x72\x79\x5f\146\x69lt\145r") : $x5a = $this->getDatafeedmanagerCategoryFilter(); $x13e(Mage::app()->getRequest()->getParam("dat\x61\x66\x65\x65d\x6dan\141g\x65r\x5f\x63at\x65\x67\x6f\x72\151\x65\163")) ? $x40 = Mage::app()->getRequest()->getParam("dat\x61\x66\x65\x65d\x6dan\141g\x65r\x5f\x63at\x65\x67\x6f\x72\151\x65\163") : $x40 = $this->getDatafeedmanagerCategories(); $x13e(Mage::app()->getRequest()->getParam("\146e\145\x64\x5f\145\156c\157\x64\151\156g")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("\146e\145\x64\x5f\145\156c\157\x64\151\156g") : $this->_feed_encoding = $this->getFeed_encoding(); $x5b = $this->getFtpEnabled(); $x5c = $this->getUseSftp(); $x5d = $this->getFtpHost(); $x5e = $this->getFtpLogin(); $x5f = $this->getFtpPassword(); $x60 = $this->getFtpDir(); $x61 = $this->getFtpActive(); $x62 = Array(); $x63 = Array(); if ($x40 != '*' && $x13a($x59)) { foreach ($x59 as $x64) { if ($x64->checked) $x62[] = $x64->line; } foreach ($x59 as $x64) { if ($x64->mapping != "") $x63[$x64->line] = $x64->mapping; } } if ($x131($x62) < 1) { $x62[] = '*'; } $x13e(Mage::app()->getRequest()->getParam("\144a\x74a\146\145\145d\155a\x6e\x61g\145\162\x5f\x74\x79\160\x65_\151d\x73")) ? $x65 = $x133(',', Mage::app()->getRequest()->getParam("\144a\x74a\146\145\145d\155a\x6e\x61g\145\162\x5f\x74\x79\160\x65_\151d\x73")) : $x65 = $x133(',', $this->getDatafeedmanagerTypeIds()); $x13e(Mage::app()->getRequest()->getParam("\x64a\x74a\146ee\144mana\147\x65\162\137vis\151bil\151\x74\171")) ? $x66 = $x133(',', Mage::app()->getRequest()->getParam("\x64a\x74a\146ee\144mana\147\x65\162\137vis\151bil\151\x74\171")) : $x66 = $x133(',', $this->getDatafeedmanagerVisibility()); $x13e(Mage::app()->getRequest()->getParam("d\x61\164\x61f\x65\x65\x64\155\141\x6eag\145\x72_\x61\x74\x74\162\x69\x62\165\x74\145_\x73et\163")) ? $x67 = $x133(',', Mage::app()->getRequest()->getParam("d\x61\164\x61f\x65\x65\x64\155\141\x6eag\145\x72_\x61\x74\x74\162\x69\x62\165\x74\145_\x73et\163")) : $x67 = $x133(',', $this->getDatafeedmanagerAttributeSets()); $x13e(Mage::app()->getRequest()->getParam("\144a\164\141f\145\x65\x64\155\x61\x6ea\x67er\137at\164r\x69b\165\164\145\x73")) ? $x68 = $x139(Mage::app()->getRequest()->getParam("\144a\164\141f\145\x65\x64\155\x61\x6ea\x67er\137at\164r\x69b\165\164\145\x73")) : $x68 = $x139($this->getDatafeedmanagerAttributes()); if ($this->_log) Mage::log("\x0a\76\x3e\76\x3e\76\x3e\76\76>\76\76\x3e>>\76>\76\76\x3e\x3e>\76>>\76\x3e\76\x3e>>\x3e\x3e\x3e>\x3e\76\x3e\76\x3e\x3e>\76\76>\76> \x2d\55\x2d\x2d\x2d\55----\x2d\x2d\55\x2d\55 \x53\x54AR\124\40P\122\117\103\x45\x53S \x46O\x52\x20" . strtoupper($this->getFilename(false)) . "\x2d\55--\x2d--\55-\55\55\55\x2d--\x2d\55", null, $this->getFilename('.log')); if ($x4f[$x42['ac']] != $x42["\155\144"]($x42["\155\144"]($x4f[$x42['ak']]) . $x42["\155\144"]($x4f[$x42['bu']]) . $x42["\155\144"]($x42["e\x78t"]) . $x42["\155\144"]($x42["\166\145r"]))) { $$x42["e\x78t"] = "\166\141l\151d"; $$x42["\x74\x68"]->$x42["d\x6d"] = true; } else { $$x42["\x74\x68"]->$x42["d\x6d"] = false; $$x42["e\x78t"] = "\166\141l\151d"; } if (!$x56 && !$this->_display) Mage::throwException(Mage::helper("\144a\164\141\146\x65e\x64m\x61\156\x61\x67\x65r")->__("The\x20\144\x61\164\x61\x20\x66ee\144\40\x63\157nf\x69\147\165\162\x61\164\x69\157\x6e\x20\155\x75s\164\x20be\40\x65\x6ea\x62\x6ce\x64 \151\x6e\40\x6f\x72d\145\162\x20t\x6f\x20\x67\x65\156\145\162\x61\x74\145\x20a\x20\x66i\x6c\x65\x2e")); Mage::dispatchEvent( 'datafeedmanager_before_generate', array('datafeed' => $this) ); $this->_timestamp = $this->_timestamp = Mage::getModel('core/date')->timestamp($x13f()); $x19 = new Varien_Io_File(); $x19->setAllowCreateFolders(true); if (!$this->_display) { $x19->open(array('path' => $this->getPath())); if ($x19->fileExists($this->getFilename()) && !$x19->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())); } $x19->streamOpen($this->getFilename()); if ($this->_log) Mage::log("\x0a>\x3e\x3e\x3e\76\76\76\76\x3e\x3e\x3e\76>\x3e\76>\76\x3e\76\x3e\76\76>\76\x3e>>\x3e>\x3e\76>\76\76\x3e>\x3e>\76\76>\76>>>\76\40" . $this->getFilename() . "\x20\143\x72\x65ate\144 a\x6e\x64 \x6f\160e\156\x65d", null, $this->getFilename('.log')); } if (!isset($$x42["e\x78t"]) || $$x42["\x74\x68"]->$x42["d\x6d"]) { $$x42["\x74\x68"]->$x42["d\x6d"] = true; return $$x42["\x74\x68"]; } $x69 = ''; $x6a = ''; header("\103o\156\x74e\156\164\55\124yp\x65:\40\x74\145xt/\x68\164\155l; \x63\x68a\x72s\x65t=u\x74\146\55\70"); $x15 = '/{([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)?([^}|]*))?}/'; $x12b($x15, $x50, $x16); foreach ($x16[6] as $x17 => $x6b) { if ($x6b != "") { $x16[0][] = $x16[0][$x17]; $x16[1][] = $x6b; $x16[2][] = $x16[7][$x17]; $x16[3][] = $x16[8][$x17]; ; $x16[4][] = $x16[9][$x17]; ; } } foreach ($x16[11] as $x17 => $x6b) { if ($x6b != "") { $x16[0][] = $x16[0][$x17]; $x16[1][] = $x6b; $x16[2][] = $x16[7][$x17]; $x16[3][] = $x16[8][$x17]; ; $x16[4][] = $x16[9][$x17]; ; } } foreach ($x16[16] as $x17 => $x6b) { if ($x6b != "") { $x16[0][] = $x16[0][$x17]; $x16[1][] = $x6b; $x16[2][] = $x16[7][$x17]; $x16[3][] = $x16[8][$x17]; ; $x16[4][] = $x16[9][$x17]; ; } } $x16[0][] = "{\x63a\164\x65g\157\162ie\x73,\133\61\x5d\54\x5b\61\x5d\54\x5b\61\135\175"; $x16[1][] = "c\141\164\x65\147\157r\151\x65\x73"; $x16[2][] = ""; $x16[3][] = "\x2c\133\61\x5d\54\133\61\x5d,\x5b\61\x5d"; $x6c = array(); $attributesRequired = array(); foreach ($x16[1] as $x17 => $x6b) { $x6c[$x17]['methodName'] = "g\145t" . $x129(' ', '', $x140($x135($x6b)) . '()'); $x6c[$x17]['pattern'] = "\173" . $x135($x6b) . "}"; $x6c[$x17]['fullpattern'] = $x16[0][$x17]; $x6c[$x17]['name'] = $x135($x6b); $x6c[$x17]['reference'] = $x135($x16[2][$x17]); if (empty($x6c[$x17]['reference'])) $x6c[$x17]['reference'] = 'self'; switch ($x6c[$x17]['name']) { case 'url': $x141($attributesRequired, 'url_key'); break; case 'uri': $x141($attributesRequired, 'url_key'); break; case 'G:IMAGE_LINK': $x141($attributesRequired, 'image'); $x141($attributesRequired, 'small_image'); $x141($attributesRequired, 'thumbnail'); break; case 'SC:IMAGES': $x141($attributesRequired, 'image'); $x141($attributesRequired, 'small_image'); $x141($attributesRequired, 'thumbnail');
break; case 'SC:DESCRIPTION': $x141($attributesRequired, 'description'); $x141($attributesRequired, 'short_description'); $x141($attributesRequired, 'manufacturer'); $x141($attributesRequired, 'name'); $x141($attributesRequired, 'sku'); break; case 'SC:EAN': $x141($attributesRequired, 'ean'); break; case 'SC:URL': $x141($attributesRequired, 'url_key'); $x141($attributesRequired, 'url'); break; case 'sc:images': $x141($attributesRequired, 'image'); $x141($attributesRequired, 'small_image'); $x141($attributesRequired, 'thumbnail'); break; case 'sc:description': $x141($attributesRequired, 'description'); $x141($attributesRequired, 'short_description'); $x141($attributesRequired, 'manufacturer'); $x141($attributesRequired, 'name'); $x141($attributesRequired, 'sku'); break; case 'sc:ean': $x141($attributesRequired, 'ean'); break; case 'sc:url': $x141($attributesRequired, 'url_key'); $x141($attributesRequired, 'url'); break; default : $x141($attributesRequired, $x6c[$x17]['name']); } include(Mage::getBaseDir() . "\x2f\141pp\57\x63\x6f\144e\57\154\x6f\x63\141\154\x2fW\171\157m\x69\x6ed\x2f\x44at\141f\145\x65\x64m\x61n\141\x67e\x72/\155y\x52\145\x71\165i\x72\x65\x64\x41\164\x74ri\142u\164\x65s\x2e\160h\x70"); $x6c[$x17]["\166a\154\165\145"] = '$product->get' . $x6c[$x17]['name'] . "\50\51"; $x6c[$x17]["\x67\x65\164T\145\x78\164"] = 'getAttributeText(\'' . $x135($x6b) . '\')'; $x6d = '/\[([^\]]+)\]/'; $x12b($x6d, $x16[3][$x17], $x6e); $x6c[$x17]["o\160ti\x6f\x6e\163"] = $x6e[1]; } if ($this->_debug) { echo "<b\162\76<\x62\162\x3e-\55\55\55\x2d\x2d\x2d-\55\55\x2d\x2d\40\101\124\x54\x52\x49\x42\x55\x54\x45S R\x45\x51\125\x49RE\x44\x20\x2d-\x2d\x2d\x2d---\x2d-\55\55\55\55-\55\74\x62r>"; $x13d($x6c); } $x6f = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x43) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x40 = array(); foreach ($x6f as $x70) { $x40[$x70->getId()]['name'] = $x70->getName(); $x40[$x70->getId()]['path'] = $x70->getPath(); $x40[$x70->getId()]['level'] = $x70->getLevel(); $x40[$x70->getId()]['url'] = $x70->getUrl(); if ($x142(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("d\141taf\145\x65\144\x6d\141n\x61\x67\x65\162\57\x73\x79\163\x74\x65m/i\x6e\143\x6cu\144e\137\x69\156\x5f\x6d\x65n\x75")) $x40[$x70->getId()]['include_in_menu'] = true; else $x40[$x70->getId()]['include_in_menu'] = $x70->getIncludeInMenu(); } if ($this->_debug) { echo "<b\162\76<br\76\55-\55---\55\55\55-\x2d-\40C\101\x54\x45\x47\x4f\x52\111E\123\x20-\x2d--\x2d\55\x2d\55\55-\x2d\x2d\55-\55-\74b\162\x3e"; $x13d($x40); } if ($this->_log) Mage::log("\x0a\76\x3e\x3e\76\76\x3e>>\x3e\76\x3e\x3e\76>>\76\76>>>\76\x3e\x3e\x3e\x3e>>\76\76\76\76\x3e>>>\x3e\x3e\76>\x3e>>\76\76>\x3e \120ro\144\165\x63\164\40\x74\x65\155pl\x61\164e\x20\x61\156\x61\x6c\x79\x7a\145\x64", null, $this->getFilename('.log')); $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x73 = $x71->getTableName('eav_entity_type'); $x74 = $x72->select()->from($x73)->where('entity_type_code=\'catalog_product\''); $x33 = $x72->fetchAll($x74); $x75 = $x33[0]['entity_type_id']; $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x76 = $x71->getTableName('directory_currency_rate'); $x74 = $x72->select()->from($x76)->where('currency_from=\'' . $x47 . '\''); $x23 = $x72->fetchAll($x74); $x77 = array(); foreach ($x23 as $x22) { $x77[$x22['currency_to']] = $x22['rate']; } $this->_currencies = $x77; if ($this->_debug) { echo "\x3cbr\x3e\x3cb\162\x3e\55-\55-\55\x2d\x2d\55-\x2d\55- \x43URR\x45\x4e\x43\111E\x53\40--\55--\x2d-\55\x2d\55\x2d\55\55\55\x2d\x2d\74\142\x72\x3e"; $x13d($x77); } if ($this->_log) Mage::log("\x0a\76\x3e\x3e\76\76\76\76>\x3e>\76\x3e\76\x3e>\x3e\x3e>>\x3e\x3e>>>\x3e>\x3e>\x3e\76\x3e>\76\x3e\x3e>>\76>\x3e\x3e\x3e\x3e>\x3e\x3e\x20\103urren\143ie\x73 r\141\x74e\x20c\x6f\x6cl\x65c\164\x65d", null, $this->getFilename('.log')); $x78 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x75) ->addSetInfo() ->getData(); $x79 = array(); $x7a = array(); foreach ($x78 as $x17 => $x6b) { if ($x143($x6b['attribute_code'], $attributesRequired)) { $x141($x79, $x6b['attribute_code']); $x7a[$x6b['attribute_code']] = $x6b['frontend_input']; } } if ($x131($x79) > $this->max_attribute) { $x7b = false; } else { $x7b = true; } if (!$x143('special_price', $x79)) $x79[] = 'special_price'; if (!$x143('special_from_date', $x79)) $x79[] = 'special_from_date'; if (!$x143('special_to_date', $x79)) $x79[] = 'special_to_date'; if (!$x143('price_type', $x79)) $x79[] = 'price_type'; if (!$x143('price', $x79)) $x79[] = 'price'; $x79[] = 'tax_class_id'; foreach ($x68 as $x7c) { if (!$x143($x7c->code, $x79) && $x7c->checked) if (!$x143($x7c->code, array("i\x73\137i\x6e_\163\x74\157\x63k", "\x71t\171", "\x65\x6e\164\x69\164\171_i\x64", "\x63re\x61\164\145\144\137\x61t", "\x75pda\164e\x64\137a\164"))) $x79[] = $x7c->code; } if ($this->_debug) { echo "\74\142\162\76<\142\x72\76\55-\55--\55\x2d\55-\55--\x20AT\x54\122\x49\x42UT\x45\x53\40---\55\55\x2d\x2d---\55\55\x2d--\x2d\x3cb\x72\76"; $x13d($x79); } if ($this->_log) Mage::log("\x0a\76>>\x3e\x3e>>\x3e>\x3e>\76>\76\x3e\x3e>\76\x3e\76\x3e>\x3e\76\76\x3e\76>>\76\76\76\76\x3e\76>>\76\x3e>>>\76>\76>\x20\x4c\x69\163\164\x20\x6ff\40r\x65\x71\165ire\144\x20\x61\x74\x74ri\x62u\164e\x73\40\x63\x6f\154\154\x65\x63\x74\x65\x64", null, $this->getFilename('.log')); $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x7d = $x71->getTableName('eav_attribute_option_value'); $x74 = $x72->select(); $x74->from($x7d); $x74->where("st\x6fr\x65_id=" . $x43 . ' OR store_id=0'); $x74->order(array('option_id', 'store_id')); $x7e = $x72->fetchAll($x74); foreach ($x7e as $x7f) { $x80[$x7f['option_id']][$x7f['store_id']] = $x7f['value']; } if ($this->_debug) { echo "\x3cbr\76\x3c\142\x72\x3e\55-\x2d\55\x2d\55\55-----\x20\x41TT\x52\111BU\124E\123 \114\x41\x42EL\x20-\x2d\x2d--\55\x2d\55\x2d\x2d\x2d\x2d-\x2d\x2d\55\x3c\x62\x72\x3e"; $x13d($x80); } if ($this->_log) Mage::log("\x0a\x3e\76>>\x3e\76>\76\x3e>>\x3e>>\x3e\76\x3e\x3e\x3e\76\76\x3e\76\x3e\76\76\76\76>\76>\x3e\x3e>>\76\76>>\76\76\76>\x3e\76> \114\x69s\x74\40\x6f\146\40\141\x74\x74\x72\x69b\x75\x74e \x6c\x61\x62e\x6cs\x20c\157\154\x6c\x65\143t\x65\144", null, $this->getFilename('.log')); $x81 = $x71->getTableName('tax_class'); $x82 = $x71->getTableName('tax_calculation'); $x83 = $x71->getTableName('tax_calculation_rate'); $x84 = $x71->getTableName('directory_country_region'); $x85 = $x71->getTableName('customer_group'); $x74 = $x72->select(); $x74->from($x81)->order(array('class_id', 'tax_calculation_rate_id'));
$x74->joinleft(array('tc' => $x82), 'tc.product_tax_class_id = ' . $x81 . '.class_id', 'tc.tax_calculation_rate_id'); $x74->joinleft(array('tcr' => $x83), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x74->joinleft(array('dcr' => $x84), 'dcr.region_id=tcr.tax_region_id', 'code'); $x74->joinInner(array('cg' => $x85), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $x86 = $x72->fetchAll($x74); $x27 = array(); $x1d = ''; foreach ($x86 as $x87) { if ($x1d != $x87['class_id']) $x88 = 0; else { $x88++; } $x1d = $x87['class_id']; $x27[$x87['class_id']][$x88]['rate'] = $x87['rate']; $x27[$x87['class_id']][$x88]['code'] = $x87['code']; $x27[$x87['class_id']][$x88]['country'] = $x87['tax_country_id']; } $this->_rates = $x27; if ($this->_debug) { echo "<b\162\76\x3c\x62\162\76\55-\x2d\55\x2d\x2d\x2d\x2d\55\55\x2d\55\x20\124\x41\130 \103L\x41\x53\x53 \x2d-\x2d-\x2d\x2d\55--\x2d-\x2d\55\x2d\55-\74br\x3e"; $x13d($x27); } if ($this->_log) Mage::log("\x0a>\x3e\x3e\76\x3e>\76\76\x3e\76\x3e\76\76\x3e\x3e>\76\76\76\x3e\76\76\76>\76>\76>\76\76>\76>\x3e>>\x3e\76\x3e\x3e\x3e\x3e\76\76\76\76\40\x54ax\40\162\141t\145 \143\x6fl\x6cec\164\145d", null, $this->getFilename('.log')); $x89 = $x71->getTableName('review'); $x8a = $x71->getTableName('review_store'); $x8b = $x71->getTableName('rating_option_vote'); $x8c = $x72->select()->distinct('review_id'); $x8c->from(array("\162" => $x89), array("\x43\x4fU\116\x54(DI\123\x54\111N\103\124 r.\x72e\166\x69\145\167_\151\144\51\x20A\123\40c\157\165\x6et", 'entity_pk_value')); $x8c->joinleft(array('rs' => $x8a), 'rs.review_id=r.review_id', 'rs.store_id'); $x8c->joinleft(array('rov' => $x8b), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x8c->where("\x73t\141t\x75s_i\x64=\61 \x61\x6e\144\40\x65\x6e\x74it\171\137i\x64=\61"); $x8c->group(array('r.entity_pk_value', 'rs.store_id')); $x8d = $x72->select(); $x8d->from(array("\162" => $x89), array("\x43\x4fU\116\x54(DI\123\x54\111N\103\124 r.\x72e\166\x69\145\167_\151\144\51\x20A\123\40c\157\165\x6et", 'entity_pk_value', "\50S\105\114\105\x43\x54\x200)\x20A\123\x20\40\x73\x74\x6fre\137\x69\x64")); $x8d->joinleft(array('rs' => $x8a), 'rs.review_id=r.review_id', array()); $x8d->joinleft(array('rov' => $x8b), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x8d->where("\x73t\141t\x75s_i\x64=\61 \x61\x6e\144\40\x65\x6e\x74it\171\137i\x64=\61"); $x8d->group(array('r.entity_pk_value')); $x74 = $x72->select() ->union(array($x8c, $x8d)); $x74->order(array('entity_pk_value', 'store_id')); $x8e = $x72->fetchAll($x74); $x8f = array(); foreach ($x8e as $x90) { $x8f[$x90['entity_pk_value']][$x90['store_id']]["cou\x6et"] = $x90["cou\x6et"]; $x8f[$x90['entity_pk_value']][$x90['store_id']]['score'] = $x90['score']; } if ($this->_log) Mage::log("\x0a>\76\76>\76\76>>\x3e\76\76\76>>\76\x3e>>>\76>\76\x3e>>\x3e\x3e>\x3e\x3e\x3e\x3e>\76>\x3e\x3e>\x3e\x3e\x3e\76>>\76\x3e \x52e\166ie\x77\x73 c\x6fll\x65\x63t\x65d", null, $this->getFilename('.log')); $x71 = Mage::getSingleton('core/resource'); $x72 = $x71->getConnection('core_read'); $x91 = $x71->getTableName('catalog_product_entity_media_gallery'); $x92 = $x71->getTableName('catalog_product_entity_media_gallery_value'); $x74 = $x72->select(array("\104I\x53T\111\x4eCT \166\141\154u\145")); $x74->from($x91); $x74->joinleft(array('cpemgv' => $x92), 'cpemgv.value_id = ' . $x91 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x74->where("\166a\x6c\165\145\74\76\124\x52\111\x4d(\47\47) \x41\116D\40\x28\x73\164\x6f\x72\145\137\151d\x3d" . $x43 . ' OR store_id=0)'); $x74->order(array('position', 'value_id')); $x93 = $x72->fetchAll($x74); foreach ($x93 as $x94) { if ($x94['disabled'] != 1 && $x94['value'] != '') { $x95[$x94['entity_id']]['src'][] = $x94['value']; $x95[$x94['entity_id']]['disabled'][] = $x94['disabled']; } } if ($this->_debug) { echo "\x3c\142r\76<\142r\x3e---\x2d-\x2d--\x2d\x2d\55-\40I\x4dAG\x45\x53\x20--\55\x2d\55\55\55\x2d-\55\x2d-\55-\x2d\55\x3cb\x72\76"; $x13d($x95); } if ($this->_log) Mage::log("\x0a\x3e>\x3e\76\76\76\x3e\x3e\76\76\x3e\x3e\76>\76>\x3e>>>\76\x3e>>\x3e\x3e\x3e\76\x3e\76>\x3e\x3e\x3e\76\76\76>\76\x3e\x3e>\x3e>\76> \111\155\141\147\x65s\40c\x6f\154lec\164ed", null, $this->getFilename('.log')); Mage::app()->setCurrentStore($x43); $x96 = $x71->getTableName("\143a\164a\154\x6f\147\151\156\166e\x6e\x74\157r\171\x5f\163\x74\x6f\143k_i\x74e\155"); $x97 = $x71->getTableName("\x63\x6f\x72e_\x75\x72l\137\162\x65wri\164\x65"); $x76 = $x71->getTableName('catalog_category_product'); $x98 = $x71->getTableName('catalog_category_product_index'); $x99 = $x71->getTableName('catalog_product_index_price'); $x9a = $x71->getTableName('catalog_product_super_link'); $x9b = $x71->getTableName('catalog_product_link'); $x9c = $x71->getTableName('catalog_product_bundle_selection'); ($x142(Mage::getVersion(), '1.6.0', '<')) ? $x6e = "op\x74\151ons\x3d\x27\47" : $x6e = "ISNU\114L(\157p\164\151o\156s\51"; switch (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e")) { case 1 : $x9d = "AN\x44\40\x75\x72\x6c.\164\141\x72\147\145\x74\137\x70\141\x74\x68 \x4eOT\40LI\x4bE\x20\47%\x63\141t\145\147o\162\171\x25\x27"; $x9e = 'MAX'; break; default : $x9d = "AN\104 \x75\162\154\56\164\141r\x67\145\x74\x5f\x70\x61\x74\150 L\111\113\105 '\45\x63\141\164\145\x67\157r\x79%\x27"; $x9e = 'GROUP_CONCAT'; break; break; } $x9f = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("d\141\164\x61\x66e\145\x64\x6da\156\x61\147\145\x72/s\171ste\x6d\x2f\144\151\163a\x62le\x64")) $x9f->addFieldToFilter("\163\x74at\x75s", array('gteq' => 1)); else $x9f->addFieldToFilter("\163\x74at\x75s", 1); $x9f->addAttributeToFilter('type_id', array("\151\156" => "\143on\146\151\x67urab\x6c\x65")); $x9f->addAttributeToFilter('visibility', array("\x6e\151n" => 1)); $x9f->addAttributeToSelect($x79, $x7b); $x9f->getSelect()->joinLeft($x9a . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $x9f->getSelect()->joinLeft($x96 . ' 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', "\x6di\x6e\x5f\161\x74\171" => "\x6di\x6e\x5f\161\x74\171", "\x6d\151n_s\141l\x65\x5f\x71\164\171" => "\x6d\151n_s\141l\x65\x5f\x71\164\171")); if (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e")) $x9f->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); $x9f->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); $x9f->getSelect()->joinLeft($x98 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa0 = 0; $xa1 = clone $x9f; $xa1->getSelect()->columns("\103\117UN\x54(DIS\124\x49\116\103\124\x20c\160\163\154\56\x70\141\x72en\164_id)\x20\x41\x73 t\157\164a\x6c")->group('e.entity_type_id'); ; $xa2 = $xa1->getFirstItem()->getTotal(); $xa3 = $x144($xa2 / $this->_sqlSize); while ($xa0 < $xa3) { $xa4 = clone $x9f; $xa4->getSelect()->group(array('cpsl.parent_id')); $xa4->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa0)); if ($this->_sqlSize * ($xa0 + 1) > $xa2) $xa5 = $xa2; else $xa5 = $this->_sqlSize * $xa0; $xa0++; foreach ($xa4 as $xa6) { foreach ($x133("\x2c", $xa6->getChildIds()) as $xa7) { $xa8[$xa7] = $xa6; $xa9[$xa7]['categories_ids'] = $xa6->getCategories_ids(); $xa9[$xa7]['parent_id'] = $xa6->getId(); $xa9[$xa7]['parent_sku'] = $xa6->getSku(); $xa9[$xa7]['parent_request_path'] = $xa6->getRequestPath(); } } if ($this->_log) Mage::log("\x0a\76\76>>>>\76\76\76\x3e>>>>\76>\76\x3e>\x3e\x3e>\76\x3e\76\x3e>\x3e\x3e>\76\76\76\x3e\x3e\76\x3e>>\76\x3e>\x3e>>\76\40\x46e\164\143h\x69ng \x63\157n\x66\151\x67u\x72\141\x62\154\145 \160r\x6f\x64\x75\x63ts\40\x66\162\x6fm\x20" . ($this->_sqlSize * ($xa0 - 1) + 1) . "\x20t\x6f " . $xa5, null, $this->getFilename('.log'));
} $this->configurable = $xa8; if ($this->_debug) { echo "<br\x3e\74br>\x2d-\x2d--\55-\x2d--\x2d- C\x4f\x4eFI\107U\122AB\114E\123 \55\55-\x2d--\x2d\55\55-\x2d\55\55\x2d\55\x2d<\142\x72\x3e"; echo $x9f->getSelect() . '<br><br>'; $x13d($xa9); } $x9f = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("d\141\164\x61\x66e\145\x64\x6da\156\x61\147\145\x72/s\171ste\x6d\x2f\144\151\163a\x62le\x64")) $x9f->addFieldToFilter("\163\x74at\x75s", array('gteq' => 1)); else $x9f->addFieldToFilter("\163\x74at\x75s", 1); $x9f->addAttributeToFilter('type_id', array("\151\156" => "\143on\146\151\x67urab\x6c\x65")); $x9f->addAttributeToFilter('visibility', array("\x6e\151n" => 1)); $x9f->getSelect()->joinLeft($x9a . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $x9f->getSelect()->joinLeft($x96 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xaa = array(); $xa0 = 0; $xa1 = clone $x9f; $xa1->getSelect()->columns("\103\117UN\x54(DIS\124\x49\116\103\124\x20c\160\163\154\56\x70\141\x72en\164_id)\x20\x41\x73 t\157\164a\x6c")->group('e.entity_type_id'); ; $xa2 = $xa1->getFirstItem()->getTotal(); $xa3 = $x144($xa2 / $this->_sqlSize); while ($xa0 < $xa3) { $xa4 = clone $x9f; $xa4->getSelect()->group(array('cpsl.parent_id')); $xa4->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa0)); if ($this->_sqlSize * ($xa0 + 1) > $xa2) $xa5 = $xa2; else $xa5 = $this->_sqlSize * $xa0; $xa0++; foreach ($xa4 as $xab) { $xaa[$xab->getId()] = $xab->getQty(); } if ($this->_log) Mage::log("\x0a\x3e>\x3e\x3e>>>\x3e\x3e\76\x3e>>\76\x3e\x3e\x3e\76\x3e\x3e\76\x3e>\76>\x3e\x3e\x3e>>\x3e>>\76\x3e\76\x3e>>\x3e\x3e\x3e\x3e\x3e\76\76\x20\106e\x74\143\150\151\156\x67\40\143\157\156\146\x69\147\165r\x61\142\154\145\x20\x71t\171\x20f\162\157\x6d\40" . ($this->_sqlSize * ($xa0 - 1) + 1) . "\x20t\x6f " . $xa5, null, $this->getFilename('.log')); } $this->configurableQty = $xaa; if ($this->_debug) { echo "\74\142\x72\76<\142r\x3e\x2d--\55-\x2d-\x2d\55\x2d\x2d\x2d\40\x43O\x4eFIGUR\101\102\114\x45S Q\x54\131\x20\55\55\x2d-\55\x2d\55\55-\55-\x2d\x2d\x2d\x2d\x2d<\x62r>"; echo $x9f->getSelect() . '<br><br>'; $x13d($xaa); } $x9a = $x71->getTableName("c\141\164\x61l\x6f\x67\137\160rod\165\x63\164_\x73\x75\x70\x65r\x5f\x6ci\x6e\x6b"); $xac = $x71->getTableName("\x63\x61\x74\x61l\x6fg\x5f\160\162\x6fd\x75\143\164_\x73upe\162\x5fat\164\162ib\165\x74e"); $xad = $x71->getTableName("c\x61\x74a\x6c\157\147\x5f\x70r\157du\x63\x74_\145\x6et\x69\164\x79\x5f\151\156t"); $xae = $x71->getTableName("\x63\x61\x74\141\x6c\x6f\147\137p\162o\x64u\x63\x74\x5fs\x75\x70\x65r\137\x61\164trib\x75\x74\145\137\x70ri\143i\156g"); $xaf = $x72->select(); $xaf->from(array("c\x70s\x6c" => $x9a), array("pa\x72\x65\156\x74\137i\x64", "prod\165\143\164_i\x64")); $xaf->joinleft(array("\143\x70s\x61" => $xac), "\143ps\x61\56pr\157d\165ct\x5f\x69\x64 \75\x20c\x70s\154.\160\x61\162\145\156\164\137id", array("\x61\164\x74r\151\x62\165\x74\145\x5f\x69d")); $xaf->joinleft(array("\143\160ei" => $xad), "\143\160e\151.en\x74\151\164y_i\144 \x3d\x20\x63p\163\x6c\x2epr\157d\165\x63\164\x5fi\x64 A\116\104\40\143pei\56attri\x62ute_\x69\144 =\40\x63p\x73\141\56\x61\x74\x74rib\x75\164e\x5fi\144", array("\166a\154\165\145" => "\166a\154\165\145")); $xaf->joinleft(array("\143p\163\x61p" => $xae), "\x63\x70\163\141\x70\56\160r\157\144\x75c\x74\137\163\165\160\145r\137\141\x74t\x72\x69\142\165te\137\151\x64\40\x3d\40cp\x73a\x2e\160ro\144\x75\143\x74_\x73\x75\x70\145\x72\x5f\141\x74t\x72ibu\164e\137i\x64\x20\101\116D\40cp\145\151\x2e\x76al\x75\x65 \75\40\x63\x70\163a\160\56\166\x61\x6c\165\145_i\156\144\x65\170", array("\x70\x72\x69\143\151\x6eg\137va\154u\145" => "\x70\x72\x69\143\151\x6eg\137va\154u\145", "is_p\x65rc\x65\156\164" => "is_p\x65rc\x65\156\164")); $xaf->order(array("\143\160\163l.p\x61\x72e\156\164\137\x69\x64", "\143\x70\x73\x6c\56\160\162od\x75\x63t\137\151d")); $xaf->group(array("\143\160\163l.p\x61\x72e\156\164\137\x69\x64", "\143\x70\x73\x6c\56\160\162od\x75\x63t\137\151d", "\x63\160\x73\x61.\141\164t\162i\x62\165\x74\x65_\x69d")); $xb0 = $x72->fetchAll($xaf); $xb1 = array(); foreach ($xb0 as $xab) { $xb1[$xab["pa\x72\x65\156\x74\137i\x64"]][$xab["prod\165\143\164_i\x64"]][$xab['attribute_id']]['attribute_id'] = $xab["\x61\164\x74r\151\x62\165\x74\145\x5f\x69d"]; $xb1[$xab["pa\x72\x65\156\x74\137i\x64"]][$xab["prod\165\143\164_i\x64"]][$xab['attribute_id']]['value'] = $xab["\166a\154\165\145"]; $xb1[$xab["pa\x72\x65\156\x74\137i\x64"]][$xab["prod\165\143\164_i\x64"]][$xab['attribute_id']]['pricing_value'] = $xab["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; $xb1[$xab["pa\x72\x65\156\x74\137i\x64"]][$xab["prod\165\143\164_i\x64"]][$xab['attribute_id']]['is_percent'] = $xab["is_p\x65rc\x65\156\164"]; } if ($this->_log) Mage::log("\x0a>\x3e\76\x3e\x3e\76\76\x3e>\x3e\76\76\76\x3e>>\76\76>\x3e\76\x3e>>\x3e\x3e>>\76\x3e>\x3e\76\76\x3e\76>>>\76>\x3e\x3e\76\x3e>\40\106\145\x74c\x68\x69\156g\40co\156\x66\x69\x67\165\162\141bl\145\40\160r\151c\x65\x73 c\157\154\154e\x63\164ed", null, $this->getFilename('.log')); $this->configurablePrices = $xb1; if ($this->_debug) { echo "\74\x62\162\x3e\74b\x72>\55-\55\x2d\55--\x2d-\55\x2d-\40CO\x4e\106\x49GU\122\101BLE\123\x20\120\x52\x49\x43E\x53 -\55\55--\55\x2d\x2d\x2d--\x2d-\55\x2d\55\x3cb\x72>"; echo $xaf . '<br><br>'; $x13d($xb1); } $x9a = $x71->getTableName("c\141\164\x61l\x6f\x67\137\160rod\165\x63\164_\x73\x75\x70\x65r\x5f\x6ci\x6e\x6b"); $xac = $x71->getTableName("\x63\x61\x74\x61l\x6fg\x5f\160\162\x6fd\x75\143\164_\x73upe\162\x5fat\164\162ib\165\x74e"); $xb2 = $x71->getTableName("\x63\141\x74\141l\x6f\x67\137\x70\x72o\x64\165\143\164\137\163\165\x70e\162\x5fa\164\164\x72i\x62ute_\x6c\x61\142e\154"); $xb3 = $x72->select(); $xb3->from(array("c\x70s\x6c" => $x9a), array("pa\x72\x65\156\x74\137i\x64", "prod\165\143\164_i\x64")); $xb3->joinleft(array("\143\x70s\x61" => $xac), "\143ps\x61\56pr\157d\165ct\x5f\x69\x64 \75\x20c\x70s\154.\160\x61\162\145\156\164\137id", array("\x61\164\x74r\151\x62\165\x74\145\x5f\x69d")); $xb3->joinleft(array("cp\163\141l" => $xb2), "c\160\163\x61\154.\x70\x72\157\144\x75ct\x5fsup\145\x72_\x61\164\x74\162\151b\165\x74\145\x5fi\x64\40\75\40c\x70\163\x61.\x70\162\157du\143t_s\x75\160\x65\162\137at\164\162ib\165t\x65_\x69\144", array("r\145\x6c\x61\x74\x69\157n\x73\x68\x69p" => "G\x52\x4f\125\x50\137\x43\x4f\116\103\101\124\50D\x49\123T\111\x4eC\x54\x20c\x70\x73\141l\56va\x6c\165\x65\x20\x53\x45P\x41\122\x41\124OR \47>\76\76\47\51")); $xb3->order(array("\143\160\163l.p\x61\x72e\156\164\137\x69\x64", "\143\x70\x73\x6c\56\160\162od\x75\x63t\137\151d")); $xb3->group(array('cpsl.parent_id', 'cpsl.product_id')); $xb4 = $x72->fetchAll($xb3); foreach ($xb4 as $xb5) { $xb6[$xb5['product_id']] = $xb5['relationship']; $xb6[$xb5['parent_id']] = $xb5['relationship']; } $this->_productRelationShip = $xb6; if ($this->_debug) { echo "\x3c\x62\x72\76<\x62\162>\55\x2d\55\55--\x2d\55--\55\55\40R\105LA\x54I\117\116\123HIP \55\55\x2d-\55\55-----\x2d\x2d--\55\x3c\142\162\76"; echo $xb3 . '<br><br>'; $x13d($xb6); } if ($this->_log) Mage::log("\x0a\76\x3e\76\76>\x3e>>>>\76\76\x3e\76\x3e>\x3e\x3e>>>>\x3e>\76\x3e\76\76\76>\x3e\x3e\x3e>\76\x3e\x3e\76>>\x3e\76\76\76\x3e\76\x20\x52\145\x6c\x61\164i\x6f\156\x73\x68\x69p col\x6c\145\143\164\145d", null, $this->getFilename('.log')); $xa4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("d\141\164\x61\x66e\145\x64\x6da\156\x61\147\145\x72/s\171ste\x6d\x2f\144\151\163a\x62le\x64")) $xa4->addFieldToFilter("\163\x74at\x75s", array('gteq' => 1)); else $xa4->addFieldToFilter("\163\x74at\x75s", 1); $xa4->addAttributeToFilter('type_id', array("\151\156" => "gr\157\x75\160e\x64")); $xa4->addAttributeToFilter('visibility', array("\x6e\151n" => 1)); $xa4->addAttributeToSelect($x79, $x7b); $xa4->getSelect()->joinLeft($x9b . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xa4->getSelect()->joinLeft($x96 . ' 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', "\x6di\x6e\x5f\161\x74\171" => "\x6di\x6e\x5f\161\x74\171", "\x6d\151n_s\141l\x65\x5f\x71\164\171" => "\x6d\151n_s\141l\x65\x5f\x71\164\171")); if (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e")) $xa4->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); $xa4->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); $xa4->getSelect()->joinLeft($x98 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa4->getSelect()->group(array('cpl.product_id')); $xb7 = array(); foreach ($xa4 as $xa6) { foreach ($x133("\x2c", $xa6->getChildIds()) as $xa7) { $xb7[$xa7] = $xa6; $xb8[$xa7]['categories_ids'] = $xa6->getCategories_ids(); $xb8[$xa7]['parent_id'] = $xa6->getId(); $xb8[$xa7]['parent_sku'] = $xa6->getSku(); $xb8[$xa7]['parent_request_path'] = $xa6->getRequestPath(); } } $this->grouped = $xb7; if ($this->_debug) { echo "\74\142\162>\74b\162\x3e--\55-\x2d--\55-\x2d-\x2d\40\107\x52\117UP\105\104\x20\55--\x2d\55-\55\x2d\x2d\55\x2d\x2d\x2d\x2d\55-\x3c\x62r\76"; echo $xa4->getSelect() . '<br><br>'; $x13d($xb8); } if ($this->_log) Mage::log("\x0a>\x3e\x3e\76\x3e\76\x3e>>\76\x3e\76\76>\76>\76\x3e\x3e>>\76\x3e>\76>>\76>\76\x3e>>\x3e\x3e>\76\x3e>\76>>\x3e\x3e>>\x20\122e\x6c\141\164\151\157\156\x73\40\x77\151\164h \x67\162o\x75\x70\145\144\x20p\162o\x64u\143ts de\x74\x65\x63te\x64", null, $this->getFilename('.log')); $xa4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("d\141\164\x61\x66e\145\x64\x6da\156\x61\147\145\x72/s\171ste\x6d\x2f\144\151\163a\x62le\x64")) $xa4->addFieldToFilter("\163\x74at\x75s", array('gteq' => 1)); else $xa4->addFieldToFilter("\163\x74at\x75s", 1); $xa4->addAttributeToFilter('type_id', array("\151\156" => "\x62\x75nd\154\x65")); $xa4->addAttributeToFilter('visibility', array("\x6e\151n" => 1)); $xa4->addAttributeToSelect($x79, $x7b); $xa4->getSelect()->joinLeft($x9c . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xa4->getSelect()->joinLeft($x96 . ' 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', "\x6di\x6e\x5f\161\x74\171" => "\x6di\x6e\x5f\161\x74\171", "\x6d\151n_s\141l\x65\x5f\x71\164\171" => "\x6d\151n_s\141l\x65\x5f\x71\164\171"));
if (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e")) $xa4->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); $xa4->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); $xa4->getSelect()->joinLeft($x98 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xa4->getSelect()->group(array('e.entity_id')); $xb9 = array(); foreach ($xa4 as $xa6) { foreach ($x133("\x2c", $xa6->getChildIds()) as $xa7) { $xb9[$xa7] = $xa6; $xba[$xa7]['parent_id'] = $xa6->getId(); $xba[$xa7]['parent_sku'] = $xa6->getSku(); $xba[$xa7]['parent_request_path'] = $xa6->getRequestPath(); $xba[$xa7]['categories_ids'] = $xa6->getCategories_ids(); } } $this->bundle = $xb9; if ($this->_debug) { echo "\x3c\142\162><\x62r\76--\x2d\55\x2d\55\55\x2d-\55-\55\x20\102\125\116\104\114\105 \55-\x2d\55\x2d-\x2d\x2d-\x2d\55-\x2d\55\x2d\x2d\x3c\142\162\x3e"; echo $xa4->getSelect() . '<br><br>'; $x13d($xba); } if ($this->_log) Mage::log("\x0a\x3e\76\76\76>>>\x3e\76\76>>\x3e\x3e\76\76\x3e\76\76\x3e>>>>\76>\x3e\76\76\76\76>>>\x3e>>>>\x3e\76>\x3e\76\x3e\76\x20\x52\x65\154\141\x74\151\x6fns\x20\x77\151th \142un\144\154e\40\160\x72\x6f\x64\165c\164s \144\x65\x74\x65\143\164\x65\x64", null, $this->getFilename('.log')); $xbb = Mage::getModel('eav/entity') ->$x145('catalog_product') ->getTypeId(); $xbc = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xbb); foreach ($xbc as $xbd) { $xbe[$xbd->getId()] = $xbd->getAttributeSetName(); } $xbf = $x71->getTableName("\143\141\164a\x6c\x6fg_pr\x6f\x64\165c\164\137en\x74i\x74y\137t\x69er\137\160\x72ic\145"); $xc0 = Mage::getModel('core/store')->load($x43)->getWebsiteId(); $xc1 = $x72->select(); $xc1->from(array("\x63pe\x74\160" => $xbf), array("\x65\x6e\164\x69\164\171_i\x64", "\141\154\154\x5f\147\162o\x75p\163", "\x63\x75\x73\x74\x6fme\162_\147\162\x6f\x75\160\137id", "\166a\154\165\145", "\x71t\171")); $xc1->order(array("\143p\x65tp.e\x6et\x69\x74y_\151\144", "\143\x70e\164p\56\x63us\164\x6fm\145\x72\x5fg\162\x6fu\160_i\x64", "c\160\x65\x74\x70\x2e\161t\171")); $xc1->where("c\160etp\x2e\167e\142\163\151\x74e_i\x64\x3d" . $xc0 . " O\x52\40cp\x65\x74\x70\x2e\167ebs\151\164e\x5f\151d=\x30"); $x8e = $x72->fetchAll($xc1); $xc2 = array(); foreach ($x8e as $xc3) { if ($xc3['all_groups'] == 1) $xc2[$xc3["\x65\x6e\164\x69\164\171_i\x64"]][32000][] = array("\x71t\171" => $xc3['qty'], "\166a\154\165\145" => $xc3['value']); else $xc2[$xc3["\x65\x6e\164\x69\164\171_i\x64"]][$xc3["\x63\x75\x73\x74\x6fme\162_\147\162\x6f\x75\160\137id"]][] = array("\x71t\171" => $xc3['qty'], "\166a\154\165\145" => $xc3['value']); } $this->_tierPrices = $xc2; if ($this->_debug) { echo "\74\142\162\76<br\76--\55\x2d\x2d\55-----\x2d\40T\111ER\123 \x50\x52\111C\105\x53\40-\x2d\x2d-\55\x2d\55\x2d\55-\55\x2d-\55-\55\74\142\x72>"; echo $xc1 . '<br><br>'; $x13d($xc2); } if ($this->_log) Mage::log("\x0a\76>\x3e\x3e\x3e\76\76\x3e>>\76>>>\76\76>\x3e\76\x3e\x3e\x3e\76>\76\76\76\x3e\x3e\76\x3e\76\76\x3e\76\76>\x3e\76>>\x3e\76\76>\x3e T\145\151e\162s\40\120\162\x69c\145\x20\143\157\154\x6cect\145\x64", null, $this->getFilename('.log')); $xc4 = $x71->getTableName("\143\x61t\141l\157\147\x5f\160\x72\157d\x75\x63\164_opti\157n"); $xc5 = $x71->getTableName("\143\x61\x74\141l\x6f\147\137\160\x72\157\x64\165\143t\x5f\157\x70\x74\x69o\156\137\164\x69\x74\154e"); $xc6 = $x71->getTableName("\x63at\141lo\x67_\x70r\x6f\144uct\137\157\160\164i\157n\x5f\164\x79p\x65\137v\141\x6c\x75\145"); $xc7 = $x71->getTableName("\x63\141\164\x61l\x6f\x67\137\160r\x6f\144uct\x5f\x6fpt\x69\x6f\156\x5ft\171p\145\x5fti\164l\145"); $xc8 = $x71->getTableName("\x63a\x74\141\x6co\x67\x5f\x70\162od\x75\x63\x74\x5f\x6f\x70\x74\151\157n\x5f\x74\171\x70\x65\x5fp\x72ic\x65"); $xc9 = $x72->select(); $xc9->from(array("c\160\x6f" => $xc4), array("prod\165\143\164_i\x64")); $xc9->joinleft(array("\143\160\x6f\164" => $xc5), "c\160\x6f\x74\56o\x70t\x69on_id=\x63p\157.\157\160\164\151\157n\x5f\151\x64\40A\116\104\40c\160\x6ft\56st\157\162\145\137\x69\x64=\x30", array("o\160\164\151\x6f\x6e" => "ti\x74\154e", "\157\x70\164\x69o\156\137i\x64", "\163\x74ore_\x69\x64")); $xc9->joinleft(array("\143po\x74\166" => $xc6), "\143\160\157\164\166\x2e\157p\x74\x69\x6f\156\x5fi\x64\40=\x20c\x70\x6f\56o\160\164io\156_\x69d", "\x73k\x75"); $xc9->joinleft(array("c\x70\157\164\x74" => $xc7), "\143\160\157\x74t\56\x6f\160\x74\151\x6f\156\137\164\171\x70\x65\x5f\x69\144\x3d\x63\160\x6f\x74\166\x2e\x6f\x70\164\151\157\x6e_ty\160\x65\x5fid\x20\x41\116D\40\143p\157\164\164.st\x6fr\x65\x5f\x69\144\75\143p\157\164.\163to\162\145_id", "\x74i\x74\154\145 \x41S\40va\154\165\x65"); $xc9->joinleft(array("\143\160\157\x74p" => $xc8), "\143p\157\x74\x70\56\x6fp\x74ion_\164y\160\x65\137\151\x64\x3d\x63p\157tv\x2e\x6f\x70\164\x69o\x6e_t\171\x70\x65\137\x69d\x20AND \143p\157t\x70\56\x73t\x6fre\137\x69\x64=\143p\x6f\x74\56\163\x74or\x65\137\x69\x64", array("\160ric\145", "\160ric\x65\137\x74\x79\160\145")); $x74 = $xc9->order(array("prod\165\143\164_i\x64", "cp\x6f\x74v\x2eso\x72t\137\157r\x64\145r\40\101S\x43")); $x8e = $x72->fetchAll($x74); $xca = array(); $xcb = 0; foreach ($x8e as $xcc) { $xca[$xcc["prod\165\143\164_i\x64"]][$xcc["o\160\164\151\x6f\x6e"]]["o\160ti\x6f\x6e\163"][] = array( "\166a\154\165\145" => $xcc["\166a\154\165\145"], "\x73k\x75" => $xcc["\x73k\x75"], "\160ric\145" => $xcc["\160ric\145"], "\160ric\x65\137\x74\x79\160\145" => $xcc["\160ric\x65\137\x74\x79\160\145"] ); $xcb++; } $this->customOptions = $xca; if ($this->_debug) { echo "\74\x62\x72>\x3c\x62r\76-\55\55-\x2d\x2d\x2d\55\x2d\x2d\x2d\x2d\x20\103\x55\x53\124O\x4d\x20\x4fP\124IO\116\123\x20\55\55-\55-\x2d\x2d-\55\55\x2d\55\55\55\55\55<br\76"; echo $xc9 . '<br><br>'; $x13d($xca); } if ($this->_log) Mage::log("\x0a\76\x3e\76>>>\76\76\x3e\x3e>>\76\76\x3e\x3e>\76\x3e\x3e>\76>\x3e>\x3e>\76>\76>\76\76\x3e\x3e\x3e>>>\x3e\x3e>>\76\76\x3e \x43us\x74\157\x6d o\x70\x74\151\157\x6e\x73\x20c\157\154\x6ce\143te\144", null, $this->getFilename('.log')); $xcd = new Wyomind_Datafeedmanager_Model_MyCustomOptions; $xce = new Wyomind_Datafeedmanager_Model_MyCustomAttributes; if ($this->_log) Mage::log("\x0a\x3e\76\76\76\x3e\76\76\x3e\76\x3e\76>\76\76>\76>\76\x3e>\76\76>>>>>\x3e>>>>\76\x3e\76\76>>\76\x3e\x3e>\x3e>\76\x3e\40\x43\165\163\x74om att\162i\142\165t\145s/o\x70\164ion\x73\40sc\x72i\x70\x74\x73 \x6c\x6fa\x64e\144", null, $this->getFilename('.log')); $x9f = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x43); if (Mage::getStoreConfig("d\141\164\x61\x66e\145\x64\x6da\156\x61\147\145\x72/s\171ste\x6d\x2f\144\151\163a\x62le\x64")) $x9f->addFieldToFilter("\163\x74at\x75s", array('gteq' => 1)); else $x9f->addFieldToFilter("\163\x74at\x75s", 1); $x9f->addAttributeToFilter("\x74\x79\160e\137\x69\144", array("\151\156" => $x65)); $x9f->addAttributeToFilter("\166i\x73\151\142i\x6ci\164\171", array("\151\156" => $x66)); if ($x67[0] != '*') $x9f->addAttributeToFilter("\141ttr\x69b\x75\164\145\137\163\145t\137id", array("\151\156" => $x67)); $x9f->addAttributeToSelect($x79, $x7b); $xcf = array("\145\161" => "\75\40'%\163\x27", "n\x65q" => "\x21=\x20'%\x73\x27", "g\164\145\x71" => ">\x3d \47\45s\47", "\154\x74e\x71" => "<\75 '%\x73\47", "\x67t" => ">\x20\x27\45\x73\x27", "\154t" => "\74\x20'\45\163'", "\x6c\x69\153\145" => "\154\151\153\145\40\x27\45\x73'", "\156\154\x69\153\x65" => "\x6e\157t\x20l\151k\x65 '\45\x73\47", "\156\x75l\x6c" => "i\163 \156ull", "no\164\156ull" => "i\163 \x6e\x6f\x74 \156\x75l\x6c", "\151\156" => "i\156\x20(\x25\163)", "\x6e\151n" => "\156\157\164\x20i\156\x28%\x73\51", ); $xd0 = ''; $xf = 0; $xd1 = array(); foreach ($x68 as $x7c) { $x7c->value = $this->x157($x7c->value, null); if ($x7c->checked) { if ($x7c->condition == 'in' || $x7c->condition == 'nin') { if ($x7c->code == 'qty' || $x7c->code == 'is_in_stock') { $xd2 = $x133(',', $x7c->value); $x7c->value = "\47" . $x127($xd2, "\x27\54'") . "\47"; } else { $x7c->value = $x133(',', $x7c->value); } } switch ($x7c->code) { case 'qty' : if ($xf > 0) $xd0.=' ' . $x7c->statement . ' '; $xd0.=" qty\x20" . $x146($xcf[$x7c->condition], $x7c->value); $xf++; break; case 'is_in_stock' : if ($xf > 0) $xd0.=' ' . $x7c->statement . ' '; $xd0.="\x20\50\111\x46\50"; $xd0.="(use_config_manage_stock=1 AND $x48=0)"; $xd0.=" O\122\40"; $xd0.='(use_config_manage_stock=0 AND manage_stock=0)'; $xd0.=" O\122\40"; $xd0.="(use_config_manage_stock=1 AND $x48=1 AND is_in_stock=1 )"; $xd0.=" O\122\40"; $xd0.="\50\165\163e\x5fc\157\x6ef\x69\x67_\x6d\x61\x6eag\145\137s\164o\143k=0\40\101\x4e\104\40m\x61\x6e\141\147e_\163t\x6fc\153\x3d\61 A\x4eD\x20\151s\137\x69\x6e\x5f\x73\x74o\143\x6b\75\61\x20)"; $xd0.="\54\x27\61\47,'\60\47\51" . $x146($xcf[$x7c->condition], $x7c->value) . "\51"; $xf++; break; default : if ($x7c->statement == "\x41\x4eD") { if ($x131($xd1)) $x9f->addFieldToFilter($xd1); $xd1 = array(); } if ($x7c->condition == "\151\156") { $xd3 = true; $xd4 = array(); foreach ($x7c->value as $x37) { if (!$x132($x37)) $xd3 = true; } if ($xd3) { foreach ($x7c->value as $x37) { $xd4[] = array(array("fi\x6e\163\145\164" => $x37)); } $xd1[] = array("\141tt\162ib\x75\x74\x65" => $x7c->code, $xd4); } else $xd1[] = array("\141tt\162ib\x75\x74\x65" => $x7c->code, $x7c->condition => $x7c->value); } else $xd1[] = array("\141tt\162ib\x75\x74\x65" => $x7c->code, $x7c->condition => $x7c->value); break; } } };
if ($x131($xd1)) $x9f->addFieldToFilter($xd1); $x9f->getSelect()->joinLeft($x96 . ' 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', "\x6di\x6e\x5f\161\x74\171" => "\x6di\x6e\x5f\161\x74\171", "\x6d\151n_s\141l\x65\x5f\x71\164\171" => "\x6d\151n_s\141l\x65\x5f\x71\164\171")); if (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e")) $x9f->getSelect()->joinLeft($x97 . ' AS url', 'url.product_id=e.entity_id ' . $x9d . ' AND is_system=1 AND ' . $x6e . ' AND url.store_id=' . $x43, array('request_path' => $x9e . '(DISTINCT request_path)')); if (Mage::getStoreConfig("\x64\x61taf\x65\145\144\155\x61\x6e\141\x67\145r/\163y\163te\155\57\165se_\160\x61\x72\x65\x6e\x74_c\x61\x74\145\147\157\162\151\x65\163")) $x9f->getSelect()->joinLeft($x9a . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); $xd5 = null; if (Mage::getStoreConfig("\x64\x61taf\x65\145\144\155\x61\x6e\141\x67\145r/\163y\163te\155\57\165se_\160\x61\x72\x65\x6e\x74_c\x61\x74\145\147\157\162\151\x65\163")) $xd5 = "\117\122 (\143a\x74\145g\157\162\x69e\x73\x5f\151n\144\145\170\56c\141\164\145g\x6fr\171_\x69\x64\x3d\x63ate\x67\157ries\137pa\x72e\156\164\x2e\x63\x61\164\145\147\157\162\171\x5f\151\144\x20A\116\x44\40\40\143a\x74\x65g\x6fries\137\151\x6ed\145\170\56\x70\x72o\144\165c\x74_\x69d\x3d\143\x61\164e\x67or\x69e\163_\160\141\x72\x65nt\56\x70\x72\157\x64\x75\x63t\x5f\x69\144\x20)"; if ($x62[0] != '*') { $x37 = 0; $xd6 = null; foreach ($x62 as $x64) { if ($x37 > 0) $xd6.=','; $xd6.=$x147($x133('/', $x64)); $x37++; } ($x5a) ? $xd7 = "I\116" : $xd7 = "\x4e\x4f\x54\x20\x49\x4e"; if ($x142(Mage::getVersion(), '1.12.0', '<=')) { $xd6 = "\x41ND\x20\143\x61\x74\145\x67\x6fr\151\145\163_\151n\144\145x.cat\145g\x6fr\x79\x5fi\144 " . $xd7 . " \50" . $xd6 . "\51"; $x9f->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id', array()); if (Mage::getStoreConfig("\x64\x61taf\x65\145\144\155\x61\x6e\141\x67\145r/\163y\163te\155\57\165se_\160\x61\x72\x65\x6e\x74_c\x61\x74\145\147\157\162\151\x65\163")) $x9f->getSelect()->joinLeft($x76 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $x9f->getSelect()->joinInner($x98 . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xd5 . ') AND categories_index.store_id=' . $x43 . ' ' . $xd6, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { $xd6 = "\101\x4eD \143ate\x67\157\x72\151\145\x73\x2ec\141\x74\145go\x72y_\151\144 " . $xd7 . " \50" . $xd6 . "\51"; $x9f->getSelect()->joinInner($x76 . ' AS categories', 'categories.product_id=e.entity_id ' . $xd6, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { $x9f->getSelect()->joinLeft($x76 . ' AS categories', 'categories.product_id=e.entity_id'); if (Mage::getStoreConfig("\x64\x61taf\x65\145\144\155\x61\x6e\141\x67\145r/\163y\163te\155\57\165se_\160\x61\x72\x65\x6e\x74_c\x61\x74\145\147\157\162\151\x65\163")) $x9f->getSelect()->joinLeft($x76 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $x9f->getSelect()->joinLeft($x98 . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xd5 . ') AND categories_index.store_id=' . $x43, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($x142(Mage::getVersion(), '1.4.0', '>=')) $x9f->getSelect()->joinLeft($x99 . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xc0, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xd0)) $x9f->getSelect()->where($xd0); if ($this->_log) Mage::log("\x0a\x3e>>>\x3e\76>\x3e\x3e>\x3e\76\76\76\x3e\x3e\76\76>\x3e\76\76>\76>>>>\76\x3e\x3e>>>\76\x3e\x3e\x3e\x3e\x3e\x3e\76>>>\x3e \115\141i\156\x20\x73\x71\154 \x72\145q\165\145s\164\72\40\x0a" . $x9f->getSelect(), null, $this->getFilename('.log')); if ($this->_debug) { echo "<\142r\x3e<\x62\162\x3e\x2d\x2d\x2d\x2d\x2d\55--\x2d--\x2d\x20M\101\111N\x20S\121\114\x20\x52\105Q\x55E\123\x54\x20-\x2d\55-\55\55\55\x2d\x2d\55-\x2d-\x2d-\x2d\74\142\x72\76"; } $xa0 = 0; $xa1 = clone $x9f; $xa1->getSelect()->columns("\x43\117U\x4e\x54\50\104I\x53\124INC\x54 \x65\56\x65\156t\151\164y\137\151d\51\x20\x41s\40\164\157\x74a\154")->group('e.entity_type_id'); $this->_counter = $xa1->getFirstItem()->getTotal(); $xa3 = $x144($this->_counter / $this->_sqlSize); $x69 = ''; $xd8 = 1; if ($this->_log) Mage::log("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xa3 queries )", null, $this->getFilename('.log')); $x3d = $this->x157($x3d, null, $x52, true); if ($x52 == 1) $x3d = $this->x15b($x3d); if ($this->_display) { if ($x52 == 1) { $x6a = $this->x15a($x3d, $x57, $x58) . ""; } else { $x6a = $this->x157($x53) . '<br>'; $x6a.= "\74\x74\x61\142\154e\40\163\x74\x79le\x3d\x27\142o\162\144\145\x72\x3a\62p\x78\x20s\157l\x69d\40\147\162\145y; \x20f\157\156t\55\x66am\151\154y\x3aa\x72\x69a\x6c\73\x20f\x6fn\x74-\163i\x7a\x65\72\61\62\x70\x78\x27\40c\x65\x6c\x6c\x73p\141\143\151n\x67=\x30\x20c\145\154l\160\x61d\144i\156g=0 w\x69\144t\x68\75'\61\x30\60\45'>"; if ($x55) { $x6a.=$this->x15c($x3d, true); } } } else { if ($x52 == 1) { $x19->streamWrite($this->x15a($x3d, $x57, $x58) . ""); } else { if ($x53 != '') $x19->streamWrite($this->x15b($this->x157($x53) . "\x0d\x0a")); if ($x55) { $xd9 = $this->x15d($x3d, $x38, $x39, $x3a); $xd9 = $this->x15b($xd9); $x19->streamWrite($xd9); } } } if ($this->_log) Mage::log("\x0a\x3e\x3e\76\76\x3e\76>\76\x3e\76>>\x3e>\x3e>\76\x3e>\76\x3e\x3e\x3e\76>\x3e\76\x3e\76\76>>\76\76\x3e\76>\x3e\x3e\x3e>\x3e>>>\x3e\40\110\x65\x61d\x65\162\x20t\x65\x6d\x70\x6c\141\164e\40\x70\141rs\145\x64 \141n\x64\x20\141\x64\144\x65\144", null, $this->getFilename('.log')); while ($xa0 < $xa3) { $xa4 = clone $x9f; if ($this->_debug) { echo "\74\142\x72><\x62\162>\55--\x2d\55-\55\55\55\55\x2d-\40\x53\x51\x4c\x20\55-\55\x2d\x2d-\55\55\x2d\55\x2d\x2d\x2d---<b\x72\76"; print($xa4->getSelect()); } $xa4->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa0)); $xa4->getSelect()->group(array('e.entity_id'))->order('e.entity_id'); $xa0++; if ($this->_sqlSize * $xa0 > $this->_counter) $xa5 = $this->_counter; else $xa5 = $this->_sqlSize * $xa0; if ($this->_log) Mage::log("\x0a\x3e>>\76>>\x3e\x3e\x3e\76\x3e>\x3e\76>\x3e\76\76\76\76>\76>>\76\76>\x3e\x3e>>\76>>\x3e>\76\x3e>\76\76\x3e\x3e\76>\x3e \x46\145\164\143\x68\x69\156\x67\40pro\x64u\143\164\163\x20\146\x72om " . ($this->_sqlSize * ($xa0 - 1) + 1) . "\x20t\x6f " . $xa5, null, $this->getFilename('.log')); $xcb = 1; foreach ($xa4 as $product) { if ($this->_debug) { echo "<\142\162><\x62\x72\76\x2d\x2d-\55--\x2d-\x2d-\x2d\55\40\120\x52\117\104U\103T\x20\133\40\x53\x4b\x55 -\x3e " . $product->getSku() . "\x20\174\x20\x49D\x20\x2d> " . $product->getId() . "\x5d\55--\x2d\55-\55--\x2d\55\x2d\55\x2d\x2d\74\x62r\76"; echo "\x63at\145go\x72ies\40:\40" . $product->getCategoriesIds() . "\54\40\122\x6f\157\x74 \151\x64\72\40" . $x4e . "<\142\162\x3e"; foreach ($x133(',', $product->getCategoriesIds()) as $x17 => $x70) { echo $x70 . "\75\76" . $x40[$x70]["pa\x74\150"] . "<\142\162\x3e"; } } if (!$x148('safe_mode')) { $x149(60); } $x2b = $x50; foreach ($x6c as $x17 => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $x8e = 1; $xda = array(); foreach ($exp['options'] as $x17 => $option) { if (isset($xca[$product->getId()][$option])) { $x8e = $x8e * $x131($xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"]); $xda[$x17] = 0; } } $x15 = array(); for ($x88 = 1; $x88 <= $x8e; $x88++) { $xdb = $x2b; foreach ($exp['options'] as $x17 => $option) { if (isset($xca[$product->getId()][$option])) { $xdb = $x129("\173" . $option . "\137\154\x61b\145l}", $xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"][$xda[$x17]]['value'], $xdb); $xdb = $x129("\173" . $option . "\137\x73\x6b\x75\175", $xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"][$xda[$x17]]['sku'], $xdb); $xdb = $x129("\173" . $option . "_\160\162\x69\x63e}", $xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"][$xda[$x17]]['price'], $xdb); $xdb = $x129("\173" . $option . "\137\x74y\x70\145\x7d", $xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"][$xda[$x17]]['price_type'], $xdb); if ($x17 > 0 || $x131($xca[$product->getId()]) == 1 || $x131($exp['options']) < 2) $xda[$x17] ++; if ($xda[$x17] >= $x131($xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"])) { $xda[$x17] = 0; $xda[$x17 - 1] ++; } } } $x15[] = $xdb; } if ($x131($x15) > 0) { if ($x52 == 1) $x2b = $x127($x15); else $x2b = "[" . $x127(',', $x15) . "\135"; } $this->skipOptions($x131($exp['options'])); break; case '{use_options}': foreach ($exp['options'] as $x17 => $option) { if (isset($xca[$product->getId()][$option])) { $xdc = array(); $xdd = array(); $xde = array(); foreach ($xca[$product->getId()][$option]["o\160ti\x6f\x6e\163"] as $x2f) { $xdc[] = $x2f['value']; $xdd[] = $x2f['sku']; $xde[] = $x2f['price']; } $x2b = $x129("\173" . $option . "\137\154\x61b\145l}", $x127(',', $xdc), $x2b); $x2b = $x129("\173" . $option . "\137\x73\x6b\x75\175", $x127(',', $xdd), $x2b); $x2b = $x129("\173" . $option . "_\160\162\x69\x63e}", $x127(',', $xde), $x2b); } } $this->skipOptions($x131($exp['options'])); break; case '{id}' : $xdf = $this->checkReference($exp['reference'], $product); $value = $xdf->getId(); break; case '{inc}' : $value = $xd8; break; case '{status}': $xdf = $this->checkReference($exp['reference'], $product);
(!isset($exp['options'][0])) ? $x56 = "\105\x6ea\x62\x6c\x65\144" : $x56 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xe0 = "\x44\151s\141b\154\x65\144" : $xe0 = $exp['options'][1]; if ($xdf->getStatus() == 2) $value = $xe0; else $value = $x56; $this->skipOptions(2); break; case '{attribute_set}': $xdf = $this->checkReference($exp['reference'], $product); $value = $xbe[$xdf->getAttributeSetId()]; break; case "\173r\x65\154\x61\164i\157\x6esh\151\x70\175": $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xe1 = ', ' : $xe1 = $exp['options'][0]; if (isset($xb6[$xdf->getId()])) { $value = $x129("\x3e\x3e>", $xe1, $xb6[$xdf->getId()]); } $this->skipOptions(1); break; case '{final_price}' : $xdf = $this->checkReference($exp['reference'], $product); $x21 = $xdf->getFinalePrice(); (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $xdf = $this->checkReference($exp['reference'], $product); $x21 = $xdf->getMinPrice(); (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $xdf = $this->checkReference($exp['reference'], $product); $x21 = $xdf->getMaxPrice(); (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->type_id == 'bundle') $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); $this->skipOptions(2); break; case '{price}' : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73")) { if ($xdf->type_id == "\x62\x75nd\154\x65") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73") && date("\131\55m\55d H\72\151\72\x73") < $xdf->getSpecialToDate()) { if ($xdf->type_id == "\x62\x75nd\154\x65") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp["o\160ti\x6f\x6e\163"][0])) ? $x22 = $x47 : $x22 = $exp["o\160ti\x6f\x6e\163"][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, "\56", ""); $this->skipOptions(2); break;
case "{\x69\x73\137\x73\160\145c\151\x61l\x5f\x70\x72i\143\x65}" : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp["o\160ti\x6f\x6e\163"][0])) ? $xe4 = 1 : $xe4 = $exp["o\160ti\x6f\x6e\163"][0]; (!isset($exp["o\160ti\x6f\x6e\163"][1])) ? $xe5 = 0 : $xe5 = $exp["o\160ti\x6f\x6e\163"][1]; if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73")) { if ($xdf->type_id == "\x62\x75nd\154\x65") (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0 ) ? $value = $xe4 : $value = $xe5; else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $value = $xe4 : $value = $xe5; } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") $value = $xe5; else { $value = $xe5; } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73") && date("\131\55m\55d H\72\151\72\x73") < $xdf->getSpecialToDate()) { if ($xdf->type_id == "\x62\x75nd\154\x65") (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0 ) ? $value = $xe4 : $value = $xe5; else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $value = $xe4 : $value = $xe5; } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") $value = $xe5; else { $value = $xe5; } } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0 ) ? $value = $xe4 : $value = $xe5; else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $value = $xe4 : $value = $xe5; } } $this->skipOptions(2); break; case "{\163pe\x63\151\141\x6c\x5fpr\151\x63e\175" : $xdf = $this->checkReference($exp['reference'], $product); $x21 = null; if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73")) { if ($xdf->type_id == 'bundle') { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73") && date("\131\55m\55d H\72\151\72\x73") < $xdf->getSpecialToDate()) { if ($xdf->type_id == 'bundle') { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } } } else { if ($xdf->type_id == 'bundle') { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($x21 > 0) { if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $xdf = $this->checkReference($exp['reference'], $product); $x43 = $this->getStoreId(); $xe6 = Mage::getResourceModel('catalogrule/rule'); $xe7 = Mage::app()->getLocale()->storeTimeStamp($x43); $xe8 = Mage::app()->getStore($x43); $xc0 = $xe8->getWebsiteId(); $xe9 = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xea = $xe6->getRulePrice($xe7, $xc0, $xe9, $xdf->getId()); if ($xdf->getSpecialFromDate() && !$xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73")) { if ($xdf->type_id == "\x62\x75nd\154\x65") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } elseif ($xdf->getSpecialFromDate() && $xdf->getSpecialToDate()) { if ($xdf->getSpecialFromDate() <= date("\131\55m\55d H\72\151\72\x73") && date("\131\55m\55d H\72\151\72\x73") < $xdf->getSpecialToDate()) { if ($xdf->type_id == "\x62\x75nd\154\x65") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") $x21 = $xdf->price; else { $x21 = $xdf->getPrice(); } } } else { if ($xdf->type_id == "\x62\x75nd\154\x65") { if (($xdf->price_type || (!$xdf->price_type && $xdf->special_price < $xdf->price)) && $xdf->special_price > 0) { if ($xdf->price_type) $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->price; } } else { ($xdf->getSpecial_price() && $xdf->getSpecial_price() < $xdf->getPrice()) ? $x21 = $xdf->getSpecialPrice() : $x21 = $xdf->getPrice(); } } if ($xea !== FALSE) { if ($xea < $x21) $value = $xea; else $value = $x21; } else $value = $x21; if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; $value = $this->x159($value, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp["o\160ti\x6f\x6e\163"][0])) ? $x22 = $x47 : $x22 = $exp["o\160ti\x6f\x6e\163"][0]; $value = $this->x158($value, $x22); $value = $x130($value, 2, "\56", ""); $this->skipOptions(2); break; case '{group_price}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xeb = 0 : $xeb = $exp['options'][0]; $xdf->setCustomerGroupId($xeb); $xec = $xdf->getGroupPrice(); if ($x131($xec) == 1) { $x21 = $xec; } else { $x21 = $xec[0]['price']; } if ($x21 > 0) { if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } (!isset($exp['options'][2])) ? $x26 = false : $x26 = $exp['options'][2]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][1])) ? $x22 = $x47 : $x22 = $exp['options'][1]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xeb = 32000 : $xeb = $exp['options'][0]; if ($xeb == "\x2a") $xeb = 32000;
(!isset($exp['options'][1])) ? $xed = 0 : $xed = $exp['options'][1]; $xc2 = $this->_tierPrices[$xdf->getId()]; if ($xed < 0) { $xed = $x14a($xed) - 1; $xc2[$xeb] = $x14b($xc2[$xeb]); } $x21 = $xc2[$xeb][$xed]['value']; if ($x21 > 0) { if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } (!isset($exp['options'][3])) ? $x26 = false : $x26 = $exp['options'][3]; $value = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][2])) ? $x22 = $x47 : $x22 = $exp['options'][2]; $value = $this->x158($value, $x22); $value = $x130($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price_qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xeb = 0 : $xeb = $exp['options'][0]; if ($xeb == "\x2a") $xeb = 32000; $xc2 = $this->_tierPrices[$xdf->getId()]; (!isset($exp['options'][1])) ? $xed = 0 : $xed = $exp['options'][1]; if ($xed < 0) { $xed = $x14a($xed) - 1; $xc2[$xeb] = $x14b($xc2[$xeb]); } $xee = $xc2[$xeb][$xed]['qty']; if ($xee > 0) $value = $xee; $this->skipOptions(2); break; case "\173\x47:S\x41\114\x45_\x50\x52\x49\103E}" : $xdf = $this->checkReference($exp['reference'], $product); $xef = Mage::getSingleton('core/date')->getGmtOffset("ho\165\x72s"); if ($xef > 0) { $xf0 = "\53"; $xf1 = $x14c($x14a($x14d($xef)), 2, 0, STR_PAD_LEFT) . ':' . $x14c(($x14a($xef) - $x14d($x14a($xef))) * 60, 2, 0, STR_PAD_LEFT); } else { $xf0 = ""; $xf1 = '-' . $x14c($x14a($x14d($xef)), 2, 0, STR_PAD_LEFT) . ':' . $x14c(($x14a($xef) - $x14d($x14a($xef))) * 60, 2, 0, STR_PAD_LEFT); } $xf2 = $x134($x129(' ', 'T', $xdf->getSpecialFromDate()), 0, -3); $xf3 = $x134($x129(' ', 'T', $x129("\600\72\x30\x30\x3a\60\x30", "\62\63\x3a\65\71\x3a\65\71", $xdf->getSpecialToDate())), 0, -3); if ($xdf->type_id == 'bundle' && $xdf->special_price) { if ($xdf->price_type) { $x21 = $x130($xdf->price * $xdf->special_price / 100, 2, "\56", ""); } else { $x21 = $xdf->special_price; } } else { $x21 = $xdf->getSpecial_price(); } (!isset($exp['options'][1])) ? $x26 = false : $x26 = $exp['options'][1]; if ($x21 > 0) { if ($xdf->getTypeId() == "\143on\146\151\x67urab\x6c\x65") { if (isset($this->configurablePrices[$xdf->getId()][$product->getId()])) { $xe2 = 0; foreach ($this->configurablePrices[$xdf->getId()][$product->getId()] as $xe3) { if ($xe3["is_p\x65rc\x65\156\164"]) { $xe2+=( $xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"] / 100) * $x21; } else $xe2+=$xe3["\x70\x72\x69\143\151\x6eg\137va\154u\145"]; }; $x21+=$xe2; } } $x21 = $this->x159($x21, $x4d, $xdf->getTaxClassId(), $x26); (!isset($exp['options'][0])) ? $x22 = $x47 : $x22 = $exp['options'][0]; $x21 = $this->x158($x21, $x22); $x21 = $x130($x21, 2, '.', ''); ; } if ($x21 > 0) { $value = "<\x67\72\x73a\x6ce_\160r\x69\143\x65>\x3c\x21[\x43DATA\x5b" . $x21 . "\40" . $x22 . "\x5d]\x3e<\x2f\147:\x73a\x6c\145\137\160\x72\151c\x65>\x0a"; } if ($x21 > 0 && $xf3) { $value.="\74\x67\72\163\141\154e\x5f\x70r\x69\x63\145\x5f\x65f\x66\145\x63\x74iv\x65\x5f\144\141\164\x65\x3e\74\x21[C\104\101\x54A\x5b" . $xf2 . $xf0 . $xf1 . "\57" . $xf3 . $xf0 . $xf1 . "\x5d]\76\74\57g\72\x73\x61\x6c\145\x5fp\162\x69c\x65_\145\146\x66\x65\143ti\x76\x65\x5fd\141te\76\x0a"; } $this->skipOptions(2); break; case "\173\151m\x61g\x65\175" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xdf->getImage() && $xdf->getImage() != 'no_selection') { $xf5 = 'catalog/product/' . $xdf->getImage(); $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); } else { $value = $x4c . '/catalog/product/placeholder/' . $x46; } } elseif (isset($x95[$xdf->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x95[$xdf->getId()]['src'][$exp['options'][0] - 1] != $xf4) { $xf5 = 'catalog/product/' . $x95[$xdf->getId()]['src'][$exp['options'][0] - 1]; $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); } } $this->skipOptions(1); break; case "\x7bG\72I\115AG\105\137\x4c\x49N\113\175" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getImage(); $xf6 = array($xdf->getSmall_image(), $xdf->getThumbnail()); $xf7 = ''; $xda = 0; if ($xdf->getImage() && $xdf->getImage() != 'no_selection') { $xf5 = 'catalog/product/' . $xdf->getImage(); $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); $xf7.="\74\x67\72i\155\141\x67\x65\137\154\151n\153><!\133C\104ATA[" . $value . "]\135\76\x3c\57\x67\72\x69ma\147\145\x5f\x6c\151\156\153\x3e\x0a"; $xda++; } $xf8 = 0; while (isset($x95[$xdf->getId()]['src'][$xf8]) && $xda < 10) { if ($x95[$xdf->getId()]['src'][$xf8] != $xf4) { if ($x143($x95[$xdf->getId()]['src'][$xf8], $xf6) || $x95[$xdf->getId()]['disabled'][$xf8] != 1) { $xf5 = 'catalog/product/' . $x95[$xdf->getId()]['src'][$xf8]; $value = $x4c . $x129(array('//', 'https'), array('/', 'http'), $xf5); $xf7.="\x3c\x67\72\x61\x64\144\151\x74\x69\x6fn\x61\x6c\137\151\155\141\x67\145_\x6c\x69\156k><!\x5b\103\104\101\124A\x5b" . $value . "]]\76\x3c/\147\72a\144\144\x69\x74io\x6e\141l\137i\x6d\x61\147\x65\x5fl\151\156\x6b\x3e\x0a"; $xda++; } } $xf8++; } $value = $xf7; break; case "\173\165r\x6c}" : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getRequest_path()) { if (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e") == 2) { $xf9 = $x133("\x2c", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x4b . $x147($xf9); } elseif (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e") == 3) { $xf9 = $x133("\x2c", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x4b . $x14f($xf9); } else $value = $x4b . $xdf->getRequest_path(); } else { $value = $xdf->getProductUrl(); } $value = $x129('https', 'http', $value); break; case "{\x68o\x73t\x7d" : $value = $x4b; break; case "{\x75\162\x69\x7d" : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getRequest_path()) { if (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e") == 2) { $xf9 = $x133("\x2c", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x147($xf9); } elseif (Mage::getStoreConfig("da\164\141\x66\145\x65\x64ma\x6e\141\147\x65r/\x73y\163t\x65\x6d/\165r\154\x72ew\x72\151\164e") == 3) { $xf9 = $x133("\x2c", $xdf->getRequest_path()); $x14e($xf9, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x14f($xf9);
} else $value = $xdf->getRequest_path(); } else { $value = $x129($x4b, '', $xdf->getProductUrl()); } $value = $x129('https', 'http', $value); break; case '{is_in_stock}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfa = 'in stock' : $xfa = $exp['options'][0]; (!isset($exp['options'][1])) ? $xfb = "o\165\164 of\x20\x73\x74\x6f\x63\x6b" : $xfb = $exp['options'][1]; (!isset($exp['options'][2])) ? $xfc = "\x61v\x61\x69\x6ca\x62le \146\x6f\x72\x20or\144\145\x72" : $xfc = $exp['options'][2]; if (($xdf->getManageStock() && !$xdf->getUseConfigManageStock() && !$x48) || ($xdf->getUseConfigManageStock() && $x48 ) || ($xdf->getManageStock() && !$xdf->getUseConfigManageStock())) { if ($xdf->getIsInStock() > 0) { if ($product->type_id == "\143on\146\151\x67urab\x6c\x65") $xee = $xaa[$product->getId()]; else $xee = $xdf->getQty(); if ($xee > 0) { $value = $xfa; } else { if ($xdf->getBackorders() || ($xdf->getUseConfigBackorders() && $x49)) { $value = $xfc; } else { $value = $xfb; } } } else $value = $xfb; } else { $value = $xfa; } $this->skipOptions(3); break; case '{stock_status}' : $xdf = $this->checkReference($exp['reference'], $product); ($xdf->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{min_qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfd = 0 : $xfd = $exp['options'][0]; $value = $x130($xdf->getMinQty(), $xfd, '.', ''); $this->skipOptions(1); break; case '{min_sale_qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfd = 0 : $xfd = $exp['options'][0]; $value = $x130($xdf->getMinSaleQty(), $xfd, '.', ''); $this->skipOptions(1); break; case '{qty}' : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfd = 0 : $xfd = $exp['options'][0]; if ($product->type_id == "\143on\146\151\x67urab\x6c\x65") { $value = $xaa[$product->getId()]; $value = $x130($value, $xfd, '.', ''); } else if ($exp['reference'] == "\143on\146\151\x67urab\x6c\x65") { $value = $x130($xaa[$xdf->getId()], $xfd, '.', ''); } else { $value = $x130($xdf->getQty(), $xfd, '.', ''); } $this->skipOptions(1); break; case "\x7b\143\x61\x74\x65\x67\x6f\162\x69\145\163\137\166\61}" : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x100 = INF : $x100 = $exp['options'][2]; $x101 = 0; $value = ''; $x102 = ''; foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143($x40[$x70]["pa\x74\150"], $x62) : $x103 = !$x143($x40[$x70]["pa\x74\150"], $x62); if (isset($x40[$x70]) && $x101 < $xfe && ($x103 || $x62[0] == "\x2a")) { $x104 = 0; $x105 = $x133('/', $x40[$x70]["pa\x74\150"]); if ($x143($x4e, $x105)) { $x106 = ""; if ($x101 > 0) $x102 = "\x2c"; foreach ($x105 as $x107) { if (isset($x40[$x107])) { if ($x40[$x107]['level'] > $xff && $x104 < $x100) { if ($x104 > 0) $x106.='>'; $x106.=($x40[$x107]['name']); $x104++; } } } $x108 = ""; if (!empty($x106)) { $value.=$x102 . $x106 . $x108; $x101++; } } } }; $this->skipOptions(3); break; case "\x7b\143\x61\164\x65\147\157\162\151es}" : $x109 = null; $xfe = INF; $xff = 1; $x10a = INF; $xe1 = ', '; $x10b = "\x20\x3e\40"; if ($x131($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x109 = "l\x61\x73\x74" : $x109 = $exp['options'][0]; $xfe = 1; } elseif ($x131($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xe1 = ', ' : $xe1 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x10b = "\x20\x3e\40" : $x10b = $exp['options'][1]; } elseif ($x131($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x10a = INF : $x10a = $exp['options'][2]; (!isset($exp['options'][3])) ? $xe1 = ', ' : $xe1 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x10b = "\x20\x3e\40" : $x10b = $exp['options'][4]; } $xdf = $this->checkReference($exp['reference'], $product); $xf5 = 0; $x10c = array(); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143(@$x40[$x70]["pa\x74\150"], $x62) : $x103 = !$x143(@$x40[$x70]["pa\x74\150"], $x62); if (isset($x40[$x70]) && ($x103 || $x62[0] == "\x2a")) { $xf5++; $x10c[$xf5] = array(); $x105 = $x133('/', $x40[$x70]["pa\x74\150"]); if ($x143($x4e, $x105)) { foreach ($x105 as $x107) { if (isset($x40[$x107]) && $x40[$x107]['name'] != null) { $x10c[$xf5][] = ($x40[$x107]['name']); } } } } } $x10d = array(); $x14e($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x109 == "l\x61\x73\x74") $x10c = $x14b($x10c); $xdf->setCategoriesArray($x10c); $x10e = 0; foreach ($x10c as $x17 => $x104) { if ($x10e < $xfe) { foreach ($x104 as $x10f => $x110) { if ($x10f >= $xff && $x10f <= $x10a) { if (!isset($x10d[$x10e])) $x10d[$x10e] = array(); $x10d[$x10e][] .= $x110; } } if ($x131($x10d[$x10e])) $x10e++; } }; $value = null; foreach ($x150($x10d) as $x17 => $x111) { if ($x17 > 0) $value.=$xe1; $value.=$x127($x10b, $x111); } $this->skipOptions($x131($exp['options'])); break; case "\x7bc\141\164\145g\157\162\151\x65s_u\162\154\x7d" : $x109 = null; $xfe = INF; $xff = 1; $x10a = INF;
$xe1 = ', '; $x10b = "\x20\x3e\40"; if ($x131($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x109 = "l\x61\x73\x74" : $x109 = $exp['options'][0]; $xfe = 1; } elseif ($x131($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xe1 = ', ' : $xe1 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x10b = "\x20\x3e\40" : $x10b = $exp['options'][1]; } elseif ($x131($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x10a = INF : $x10a = $exp['options'][2]; (!isset($exp['options'][3])) ? $xe1 = ', ' : $xe1 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x10b = "\x20\x3e\40" : $x10b = $exp['options'][4]; } $xdf = $this->checkReference($exp['reference'], $product); $xf5 = 0; $x10c = array(); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143(@$x40[$x70]["pa\x74\150"], $x62) : $x103 = !$x143(@$x40[$x70]["pa\x74\150"], $x62); if (isset($x40[$x70]) && ($x103 || $x62[0] == "\x2a")) { $xf5++; $x10c[$xf5] = array(); $x105 = $x133('/', $x40[$x70]["pa\x74\150"]); if ($x143($x4e, $x105)) { foreach ($x105 as $x107) { if (isset($x40[$x107]) && $x40[$x107]['url'] != null) { $x10c[$xf5][] = ($x40[$x107]['url']); } } } } } $x10d = array(); $x14e($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x109 == "l\x61\x73\x74") $x10c = $x14b($x10c); $xdf->setCategoriesArray($x10c); $x10e = 0; foreach ($x10c as $x17 => $x104) { if ($x10e < $xfe) { foreach ($x104 as $x10f => $x110) { if ($x10f >= $xff && $x10f <= $x10a) { if (!isset($x10d[$x10e])) $x10d[$x10e] = array(); $x10d[$x10e][] .= $x110; } } if ($x131($x10d[$x10e])) $x10e++; } }; $value = null; foreach ($x150($x10d) as $x17 => $x111) { if ($x17 > 0) $value.=$xe1; $value.=$x127($x10b, $x111); } $this->skipOptions($x131($exp['options'])); break; case "\173G\72\120\122\117\104\125CT\137\x54\x59\120\x45\137v\61}" : $xdf = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x100 = INF : $x100 = $exp['options'][2]; $x101 = 0; $value = ''; foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143($x40[$x70]["pa\x74\150"], $x62) : $x103 = !$x143($x40[$x70]["pa\x74\150"], $x62); if (@$x40[$x70]["\x69n\x63\154\165d\x65_\151n\137m\145\x6eu"] && isset($x40[$x70]) && $x101 < $xfe && ($x103 || $x62[0] == "\x2a")) { $x104 = 0; $x105 = $x133('/', $x40[$x70]["pa\x74\150"]); if ($x143($x4e, $x105)) { $x106 = ''; $x102 = '<g:product_type><![CDATA['; foreach ($x105 as $x107) { if (isset($x40[$x107])) { if ($x40[$x107]['level'] > $xff && $x104 < $x100) { if ($x104 > 0) $x106.=' > '; $x106.=($x40[$x107]['name']); $x104++; } } } $x108 = "\135\135\76\x3c\x2fg\72\160\x72\157\x64\x75\143\164\137t\x79pe\76\x0a"; if (!empty($x106)) { $value.=$x102 . $x106 . $x108; $x101++; } } } }; $this->skipOptions(3); break; case "\173\x47\72P\122\117D\x55\103\x54_\x54\131\x50\105\175" : $xe1 = "\x5d]\x3e\x3c\57\x67\x3aprod\x75\143\164\137ty\x70e\x3e\x0a<\147\72\160\162\x6f\144\x75\143t_\164yp\145\76<!\x5bC\104\x41T\x41["; $x10b = "\x20\x3e\40"; (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xfe = INF : $xfe = $exp['options'][0]; (!isset($exp['options'][1])) ? $xff = 1 : $xff = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x10a = INF : $x10a = $exp['options'][2]; $xdf = $this->checkReference($exp['reference'], $product); $xf5 = 0; $x10c = array(); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { ($x5a) ? $x103 = $x143(@$x40[$x70]["pa\x74\150"], $x62) : $x103 = !$x143(@$x40[$x70]["pa\x74\150"], $x62); if (isset($x40[$x70]) && ($x103 || $x62[0] == "\x2a")) { $xf5++; $x10c[$xf5] = array(); $x105 = $x133('/', $x40[$x70]["pa\x74\150"]); if ($x143($x4e, $x105)) { foreach ($x105 as $x107) { if (isset($x40[$x107]) && $x40[$x107]['name'] != null) { $x10c[$xf5][] = ($x40[$x107]['name']); } } } } } $x10d = array(); $x14e($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); foreach ($x10c as $x17 => $x104) { if ($x17 < $xfe) foreach ($x104 as $x10f => $x110) { if ($x10f >= $xff && $x10f <= $x10a) { if (!isset($x10d[$x17])) $x10d[$x17] = array(); $x10d[$x17][] .= $x110; } } }; $value = null; foreach ($x150($x10d) as $x17 => $x111) { if ($x17 > 0) $value.=$xe1; $value.=$x127($x10b, $x111); } if (($x10d)) $value = "\74\x67\x3a\x70\162\157\x64\165ct\x5ft\171\x70e>\x3c\x21\133C\x44AT\x41[" . $value . "\135\135\76\x3c\x2fg\72\160\x72\157\x64\x75\143\164\137t\x79pe\76\x0a"; $this->skipOptions($x131($exp['options'])); break; case "\173\x47:GO\117G\114\105\x5f\120\x52O\104\125\x43T\x5f\x43\x41\x54\x45\x47\117\122\x59\x7d" : $x112 = array(); (!isset($exp['options'][0])) ? $x109 = "lo\156\147\x65s\164" : $x109 = $exp['options'][0]; $xdf = $this->checkReference($exp['reference'], $product); foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { if (isset($x40[$x70]["pa\x74\150"]) && isset($x63[$x40[$x70]["pa\x74\150"]])) { $x112[] = $x63[$x40[$x70]["pa\x74\150"]]; } } $x14e($x112, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); if ($x109 == "\x73h\157\162te\163\x74") $x112 = $x14b($x112); $x113 = $x14f($x112); if ($x113 != "") $value = "\x3cg\x3a\147oo\x67\154\x65\x5fp\162\157d\165c\164_\x63\141t\x65gor\171\76<\x21[\x43\104A\124\x41\133" . $x113 . "\135\x5d><\x2fg\x3ago\157\147\154\x65_p\x72\x6f\144\x75ct\137c\x61\x74\x65go\162y\76\x0a"; $this->skipOptions(1); break; case "{\x63\141\164\145\x67\157\x72\x79\x5fm\141\x70\160\151\156\147\x7d" : (isset($exp["o\160ti\x6f\x6e\163"][0])) ? $x114 = $exp["o\160ti\x6f\x6e\163"][0] : $x114 = 0; $value = ""; $xdf = $this->checkReference($exp['reference'], $product); $x115 = 0; foreach ($x133(',', $xdf->getCategoriesIds()) as $x17 => $x70) { if (isset($x63[$x40[$x70]["pa\x74\150"]])) { if ($x115 == $x114) { $value.=$x63[$x40[$x70]["pa\x74\150"]]; break; } $x115++; } } $this->skipOptions(1); break; case "\173\x72evi\x65\x77\137\x63\157\x75\x6e\164\175": $xdf = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["o\160ti\x6f\x6e\163"][0]) && $exp["o\160ti\x6f\x6e\163"][0] == "\x2a" ) ? $x116 = 0 : $x116 = $x43; if (isset($x8f[$xdf->getId()][$x116]["cou\x6et"])) { $x117 = $x8f[$xdf->getId()][$x116]["cou\x6et"];
if (isset($x117)) $value.=$x117; } $this->skipOptions(1); break; case "{r\145v\151e\x77_a\x76\x65\162\x61\x67e}": $xdf = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["o\160ti\x6f\x6e\163"][0]) && $exp["o\160ti\x6f\x6e\163"][0] == "\x2a" ) ? $x116 = 0 : $x116 = $x43; (!isset($exp["o\160ti\x6f\x6e\163"][1]) || !$exp["o\160ti\x6f\x6e\163"][1]) ? $x118 = 5 : $x118 = $exp["o\160ti\x6f\x6e\163"][1]; if (isset($x8f[$xdf->getId()][$x116]["\x73\x63\157\162\145"])) { $x119 = $x130($x8f[$xdf->getId()][$x116]["\x73\x63\157\162\145"] * $x118 / 100, 2, "\56", ""); if (isset($x119)) $value.=$x119; } $this->skipOptions(2); break; case "{\x47\72\x50R\117\104\x55\103T\x5fR\105\x56I\105\x57\175" : $xdf = $this->checkReference($exp['reference'], $product); (isset($exp["o\160ti\x6f\x6e\163"][0]) && $exp["o\160ti\x6f\x6e\163"][0] == "\x2a" ) ? $x116 = 0 : $x116 = $x43; (!isset($exp["o\160ti\x6f\x6e\163"][1]) || !$exp["o\160ti\x6f\x6e\163"][1]) ? $x118 = 5 : $x118 = $exp["o\160ti\x6f\x6e\163"][1]; $value = ""; if (isset($x8f[$xdf->getId()][$x116]["cou\x6et"])) { $x117 = $x8f[$xdf->getId()][$x116]["cou\x6et"]; $x119 = $x130($x8f[$xdf->getId()][$x116]["\x73\x63\157\162\145"] * $x118 / 100, 2, "\56", ""); } if (isset($x119) && $x119 > 0) { $value.="\74g\72\160\x72o\144\x75\x63t\x5f\162\x65\166\x69\x65\167\x5f\141ve\162\141\147\x65\76\74\41\133\103\x44A\124A\x5b" . $x119 . "]\135\76\x3c/\147\72\160\162o\144u\x63t\x5f\x72e\166\151\x65w\x5fa\166\145\x72\141\x67e\x3e\x0a"; } if (isset($x117) && $x117 > 0) { $value.="\74g:\x70r\157\144\165\x63\x74\x5f\162e\166\151\x65w\x5fc\157\165\156\164\x3e\x3c!\133\103\x44\x41T\101[" . $x117 . "\135]>\x3c\x2f\x67\x3a\160\162o\x64\x75\143\164_r\x65\x76\x69e\167\x5fc\157u\156\164>\x0a"; } unset($x119); unset($x117); break; case "\x7b\x47:IT\105\x4d\x5fG\122\117\x55\120_\x49D\x7d" : if (isset($this->configurable[$product->getId()])) { $xdf = $this->checkReference('configurable', $product); $value = "\x3cg\x3a\x69\x74em\137g\x72\x6f\x75\160\x5f\151d>\74\41\133\103\104\x41T\x41\133" . $xdf->getSku() . "\x5d]>\x3c/g:i\x74\x65m_\147\162o\165p\137\151\144\x3e"; } break; case "\173S\103:\x45\x41\x4e\x7d" : ($x132($exp['options'][0]) && $exp['options'][0] > 0) ? $x11a = $exp['options'][0] : $x11a = 0; $xdf = $this->checkReference($exp['reference'], $product); $value = $x133(',', $xdf->getEan()); $value = "\x3cg\x3ae\141\156\76\x3c\41\133\103\104\101\x54A\x5b" . $value[$x11a] . "]\x5d>\74/\x67\72\x65\x61\x6e>"; break; case "\x7b\x73\x63\x3a\145a\156\x7d" : ($x132($exp['options'][0]) && $exp['options'][0] > 0) ? $x11a = $exp['options'][0] : $x11a = 0; $xdf = $this->checkReference($exp['reference'], $product); $value = $x133(',', $xdf->getEan()); $value = $value[$x11a]; break; case "\173SC:\x49\115\x41\107E\x53\175" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getSmall_image(); $xf6 = array($xdf->getImage(), $xdf->getThumbnail()); $xf7 = ''; $xda = 0; if ($xdf->getSmall_image() && $xdf->getSmall_image() != 'no_selection') { $xf5 = $xdf->getSmall_image(); $value = $xf5; $xf7.="\74\x67\72i\155\141\x67\x65\137\154\151n\153><!\133C\104ATA[" . $value . "]\135\76\x3c\57\x67\72\x69ma\147\145\x5f\x6c\151\156\153\x3e\x0a"; $xda++; } $xf8 = 0; while (isset($x95[$xdf->getId()]['src'][$xf8]) && $xda < 10) { if ($x95[$xdf->getId()]['src'][$xf8] != $xf4) { if ($x143($x95[$xdf->getId()]['src'][$xf8], $xf6) || $x95[$xdf->getId()]['disabled'][$xf8] != 1) { $xf5 = $x95[$xdf->getId()]['src'][$xf8]; $value = $xf5; $xf7.="\x3c\x67\72\x61\x64\144\151\x74\x69\x6fn\x61\x6c\137\151\155\141\x67\145_\x6c\x69\156k><!\x5b\103\104\101\124A\x5b" . $value . "]]\76\x3c/\147\72a\144\144\x69\x74io\x6e\141l\137i\x6d\x61\147\x65\x5fl\151\156\x6b\x3e\x0a"; $xda++; } } $xf8++; } $value = $xf7; break; case "\x7b\x73\x63\x3a\x69\155\141\147e\x73}" : $xdf = $this->checkReference($exp['reference'], $product); $xf4 = $xdf->getSmall_image(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xdf->getSmall_image() && $xdf->getSmall_image() != 'no_selection') { $xf5 = $xdf->getSmall_image(); $value = $xf5; } else { $value = $x4c . '/catalog/product/placeholder/' . $x46; } } elseif (isset($x95[$xdf->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x95[$xdf->getId()]['src'][$exp['options'][0] - 1] != $xf4) { $xf5 = 'catalog/product/' . $x95[$xdf->getId()]['src'][$exp['options'][0] - 1]; $value = $x4c . $x129('//', '/', $xf5); } } $this->skipOptions(1); break; case "{\x53\103:\104E\x53\x43\122\x49PTIO\116}" : $xdf = $this->checkReference($exp['reference'], $product); $xd9 = $xdf->getDescription() . $xdf->getShortDescription(); $x11b = "\x7c\x3ci\x66\162\x61\155e\x28.\52)<\57\151fr\x61m\145>\x7c\125"; $x12c($x11b, $xd9, $x11c); if ($x11c) { $xd9 = $xdf->getAttributeText('manufacturer') . "\40" . $xdf->getName() . "\x20\55\x20\x50\x61\162t\x20nu\155\142\x65\x72\x3a\x20" . $xdf->getSku() . " \55\x20C\x61t\145\x67\x6f\x72\171\x20\72\x20\173\143\141t\145g\157\162\x69\x65\163\54\133\61\135\54[\61]\54\133\61\x5d\x7d"; } else { if ($x143("strip\x5f\x74a\147\163", $exp['options'])) { $xd9 = $x138('!\<br /\>!isU', "\40", $xd9); $xd9 = $x138('!\<br/\>!isU', "\40", $xd9); $xd9 = $x138('!\<br>!isU', "\40", $xd9); $xd9 = $x151($xd9); } if ($x143("\150\164\155l_\145\x6e\164\x69ty_\144e\x63\x6fd\x65", $exp['options'])) { $xd9 = $x137($xd9, ENT_QUOTES, 'UTF-8'); } if ($x143("ht\x6d\154e\x6eti\164\x69\x65\163", $exp['options'])) { $xd9 = $x152(($xd9)); } if ($x126($xd9) > 900) { $xd9 = $x134($xd9, 0, 900 - 3); $x11d = $x153($xd9, "\40"); $xd9 = $x134($xd9, 0, $x11d) . '...'; } } if ($xd9 == null) $xd9 = $xdf->getAttributeText('manufacturer') . "\40" . $xdf->getName() . "\x20\55\x20\x50\x61\162t\x20nu\155\142\x65\x72\x3a\x20" . $xdf->getSku() . " \55\x20C\x61t\145\x67\x6f\x72\171\x20\72\x20\173\143\141t\145g\157\162\x69\x65\163\54\133\61\135\54[\61]\54\133\61\x5d\x7d"; $xd9 = $x138('/' . '[\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', ' ', $xd9); $xd9 = $x129('', '', $xd9); $value = "\x3cde\163c\x72i\x70t\151\x6f\156\x3e<\41\x5bCD\101\124\x41\x5b" . $xd9 . "]\135\76<\57\144es\143\x72\151\x70t\151\x6fn\76"; $exp['options'] = array(); break; case "\x7b\x73c\72\144e\x73\143\162\x69p\x74\151\x6fn}" : $xdf = $this->checkReference($exp['reference'], $product); $xd9 = $xdf->getDescription() . $xdf->getShortDescription(); $x11b = "\x7c\x3ci\x66\162\x61\155e\x28.\52)<\57\151fr\x61m\145>\x7c\125"; $x12c($x11b, $xd9, $x11c); if ($x11c) { $xd9 = $xdf->getAttributeText('manufacturer') . "\40" . $xdf->getName() . "\x20\55\x20\x50\x61\162t\x20nu\155\142\x65\x72\x3a\x20" . $xdf->getSku() . " \55\x20C\x61t\145\x67\x6f\x72\171\x20\72\x20\173\143\141t\145g\157\162\x69\x65\163\54\133\61\135\54[\61]\54\133\61\x5d\x7d"; } else { if ($x143("strip\x5f\x74a\147\163", $exp['options'])) { $xd9 = $x138('!\<br /\>!isU', "\40", $xd9); $xd9 = $x138('!\<br/\>!isU', "\40", $xd9); $xd9 = $x138('!\<br>!isU', "\40", $xd9); $xd9 = $x151($xd9); } if ($x143("\150\164\155l_\145\x6e\164\x69ty_\144e\x63\x6fd\x65", $exp['options'])) { $xd9 = $x137($xd9, ENT_QUOTES, 'UTF-8'); } if ($x143("ht\x6d\154e\x6eti\164\x69\x65\163", $exp['options'])) { $xd9 = $x152(($xd9)); } if ($x126($xd9) > 900) { $xd9 = $x134($xd9, 0, 900 - 3); $x11d = $x153($xd9, "\40"); $xd9 = $x134($xd9, 0, $x11d) . '...'; } } if ($xd9 == null) $xd9 = $xdf->getAttributeText('manufacturer') . "\40" . $xdf->getName() . "\x20\55\x20\x50\x61\162t\x20nu\155\142\x65\x72\x3a\x20" . $xdf->getSku() . " \55\x20C\x61t\145\x67\x6f\x72\171\x20\72\x20\173\143\141t\145g\157\162\x69\x65\163\54\133\61\135\54[\61]\54\133\61\x5d\x7d"; $xd9 = $x138('/' . '[\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', ' ', $xd9); $xd9 = $x129('', '', $xd9); $value = $xd9; $exp['options'] = array();
break; case "\x7b\123C:\x55R\x4c\x7d" : $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getRequest_path()) { $value = "\74\x6cin\153\76\74!\133C\x44\x41\x54\x41\x5b" . $x4b . $xdf->getRequest_path() . "]\135></\154\151nk>"; } else { $value = "\74\x6cin\153\76\74!\133C\x44\x41\x54\x41\x5b" . $xdf->getProductUrl() . "]\135></\154\151nk>"; } break; case "\x7b\x73\x63\x3au\x72l}" : (isset($exp['options'][0])) ? $x11e = $exp['options'][0] : $x11e = ""; (isset($exp['options'][1])) ? $xed = $exp['options'][1] : $xed = ""; $xdf = $this->checkReference($exp['reference'], $product); if ($xdf->getUrlKey()) { $value = $x4b . $xed . $xdf->getRequest_path() . $x11e; } else { $value = $xdf->getProductUrl(); } break; case "\x7b\x53C:\x43ON\104I\124\111\117\116\x7d" : $xdf = $this->checkReference($exp['reference'], $product); ($x13c($xdf->getName(), "\162\x65\x66u\162b\x69\x73\150\145\x64")) ? $xcf = 'refurbished' : $xcf = 'new'; $value = "<\147\x3ac\x6fn\x64\x69\164i\x6f\156><\x21\x5b\103DAT\101\x5b" . $xcf . "]\x5d\76<\x2fg\72\143o\x6edi\x74\x69o\156\x3e"; break; case "\x7b\163\143:\x63\157\x6e\144\x69t\151o\x6e\175" : $xdf = $this->checkReference($exp['reference'], $product); ($x13c($xdf->getName(), "\162\x65\x66u\162b\x69\x73\150\145\x64")) ? $xcf = 'refurbished' : $xcf = 'new'; $value = $xcf; break; default : $xdf = $this->checkReference($exp['reference'], $product); if ($x143($exp['name'], $x79)) { if ($x143($x7a[$exp['name']], array('select', 'multiselect'))) { eval('$x120 =($xdf->' . $exp['methodName'] . "\51\73"); $x11f = $x133(',', $x120); if ($x131($x11f) > 1) { $value = array(); foreach ($x11f as $x37) { if (isset($x80[$x37][$x43])) $value[] = $x80[$x37][$x43]; else { if (isset($x80[$x37][0])) $value[] = $x80[$x37][0]; } } } else { if (isset($x80[$x11f[0]][$x43])) { $value = $x80[$x11f[0]][$x43]; } else { if (isset($x80[$x11f[0]][0])) $value = $x80[$x11f[0]][0]; } } } else { eval('$value =($xdf->' . $exp['methodName'] . "\51\73"); } } if ($x143(@$x77[$exp['name']], $x77)) { $value = $x77[$exp['name']]; } $value = $xce->_eval($product, $exp, $value); if ($x154($value) && !$value) continue 3; break; } if ($x131($exp['options']) > 0) { foreach ($exp['options'] as $x17 => $option) { if ($x17 >= $this->option) { switch ($exp['options'][$this->option]) { case "su\142\x73\164\162" : if (isset($exp['options'][$this->option + 1]) && $x126($value) > $exp['options'][$this->option + 1]) { $value = $x134($value, 0, $exp['options'][$this->option + 1] - 3); $x11d = $x153($value, "\40"); $value = $x134($value, 0, $x11d) . $exp['options'][$this->option + 2]; } $this->skipOptions(3); break; case "strip\x5f\x74a\147\163" : $x121 = "\40"; $value = $x138('!\<br /\>!isU', $x121, $value); $value = $x138('!\<br/\>!isU', $x121, $value); $value = $x138('!\<br>!isU', $x121, $value); $value = $x151($value); $this->skipOptions(1); break; case "ht\x6d\154e\x6eti\164\x69\x65\163" : $value = $x152(($value)); $this->skipOptions(1); break; case "\151\155p\x6co\144\145" : $value = ($x13a($value)) ? $x127($exp['options'][$this->option + 1], $value) : $value; $this->skipOptions(2); break; case "\x66l\x6f\x61\x74" : $value = $x130($value, $exp['options'][$this->option + 1], '.', ''); $this->skipOptions(2); break; case "\150\164\155l_\145\x6e\164\x69ty_\144e\x63\x6fd\x65" : $value = $x137($value, ENT_QUOTES, 'UTF-8'); $this->skipOptions(1); break; case "\151\156\154\151\156\x65": $value = $x138('/(\r\n|\n|\r|\r\n\t)/s', ' ', $value); $this->skipOptions(1); break; case "\x73\x74\162t\157low\145\x72": $value = $x155($value, "\125\x54\x46\70"); $this->skipOptions(1); break; case "\163t\x72\x74ou\160\x70\145\x72": $value = $x156($value, "\125\x54\x46\70"); $this->skipOptions(1); break; case "\143\x6c\x65\x61\156\145\x72": $value = $x138('/' . '[\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 = $x129('', '', $value); $this->skipOptions(1); break; default : $xcd->option = $this->option; $value = $xcd->_eval($product, $exp, $value); $this->option = $xcd->option; if ($x154($value) && !$value) continue 3; break; } } } } if ($x52 > 1 && !$this->_display) $value = $this->x15e($value, $x39, $x3a); $value = $x129(array("\x3c", "\x3e", '"', '\\'), array("__L\117\x57\x45R\x54\110\x41\x4e\137\137", "_\137\x48\x49G\110\x45\122\x54\110A\116\137\137", "__\121\x55\117\x54\x45S\137\x5f", "\137_\102AC\x4b\x53\114\101\123\110\x5f_"), $value); if ($x13a($value)) $value = $x127("\x2c", $value); if ($value != "") $x2b = $x129($exp['fullpattern'], $value, $x2b); } foreach ($x6c as $x122) { $x2b = $x129($x122['fullpattern'], "", $x2b); } $x2b = $this->x157($x2b, $product, $x52); if ($x52 == 1) { if (!$this->_display) { $x2b = $this->x15b($x2b); $x2b = $this->x15a($x2b, $x57, $x58); } else { $x2b = $this->x15a($x2b, $x57, $x58); } } elseif ($x52 != 1) { if (!$this->_display) { $x2b = $this->x15d($x2b, $x38, $x39, $x3a); $x2b = $this->x15b($x2b); } else { $x2b = $this->x15c(($x2b), false); } } $x2b = $x129(array("__L\117\x57\x45R\x54\110\x41\x4e\137\137", "_\137\x48\x49G\110\x45\122\x54\110A\116\137\137", "__\121\x55\117\x54\x45S\137\x5f", "\137_\102AC\x4b\x53\114\101\123\110\x5f_"), array("\x3c", "\x3e", '"', '\\'), $x2b); if (!empty($x2b)) { if ($x52 == 1) $x69.=$x2b . ""; else $x69.=$x2b . ""; if ($this->_display) { $x6a.=$x69; $x69 = ''; } else { if ($xcb % Mage::getStoreConfig("d\141t\141fe\145\x64\155a\156\x61\147\145r\57\163\x79st\x65\155\57bu\146\x66\145\162") == 0) { $x19->streamWrite($x69); unset($x69); $x69 = ''; if ($this->_log) Mage::log("\x0a>\x3e\76\x3e\x3e\x3e>>\76\x3e\x3e\76\76\76\x3e>\76\76\x3e\76\x3e\x3e\76>>\76>\76\76\x3e\x3e\x3e\x3e\76\76\x3e>\x3e\x3e\x3e\76\x3e\76>>\76" . $xd8 . "\57" . $this->_counter . "\x20\x69te\155\x73\x20\x61d\144e\x64", null, $this->getFilename('.log')); } } if ($this->_limit && $xcb >= $this->_limit) break 2; $xcb++; $this->_inc = $xd8; $xd8++; } } } if (!$this->_display) { $x19->streamWrite($x69);
if ($x126($x135($x51)) > 1) $x19->streamWrite($x51 . "\x0a"); if ($x54 != '') $x19->streamWrite($this->x157($x54, null)); if ($this->_log) Mage::log("\x0a>\x3e\x3e\x3e\76\76\76\76\x3e\x3e\x3e\76>\x3e\76>\76\x3e\76\x3e\76\76>\76\x3e>>\x3e>\x3e\76>\76\76\x3e>\x3e>\76\76>\76>>>\76\40" . ($xd8 - 1) . "\57" . $this->_counter . "\x20\x69te\155\x73\x20\x61d\144e\x64", null, $this->getFilename('.log')); } else { $x6a.=$x69; $x6a.=$x51 . "\x0a"; if ($x52 > 1) $x6a.="\x3c\x2f\x74\x61\142\154\145>"; $x6a.= $this->x157($x54, null) . '<br>'; if ($this->_log) Mage::log("\x0a>\x3e\x3e\x3e\76\76\76\76\x3e\x3e\x3e\76>\x3e\76>\76\x3e\76\x3e\76\76>\76\x3e>>\x3e>\x3e\76>\76\76\x3e>\x3e>\76\76>\76>>>\76\40" . ($xd8 ) . "\57" . $this->_counter . "\x20\x69te\155\x73\x20\x61d\144e\x64", null, $this->getFilename('.log')); } unset($xa4); if ($this->_log) Mage::log("\x0a\x3e\x3e\76>\x3e\76\x3e>\76>>>\76\x3e\76\x3e>\x3e\76\x3e>\76\76\76>>\76>\x3e\x3e\76\76\x3e\x3e\x3e\76\76\76\x3e\x3e\76>\x3e>>>\x20F\x6fote\x72\40\164\x65\155\x70l\141\x74\145 \141\144de\x64", null, $this->getFilename('.log')); if ($this->_display && !$this->_debug) { ($x52 == 1 && !Mage::app()->getRequest()->getParam("\162e\141l\137t\151\155\145_\x70\162\145\x76\151e\167")) ? $xd9 = "<text\141\x72\145\x61\40i\x64\x3d\x27\103\x6fd\145M\151\x72\x72or\47\40\x63\154a\x73\x73='\x43od\145M\x69r\162\x6fr'\76" . ($x6a) . "\74/\x74e\170ta\162\145a\x3e" : $xd9 = ($x6a); if ((!Mage::app()->getRequest()->getParam("\162e\141l\137t\151\155\145_\x70\162\145\x76\151e\167"))) { return("\x0d\12 \40\x20\x20\11 <\150\x74\155\x6c\76\15\12 \40\40 \x09\11\74\150\145ad>\x0d\12\x20\x20\x20\x20 \x09\x3c\x74i\x74l\x65\76" . $this->getFeedName() . "\x3c\57\x74\151\164le\x3e \12 \40\x20 \40\x20 \x20\40\x20\x20\40 \40 \x20\74li\156\153 \x72\145\x6c=\47\x73t\x79les\x68\145\145\x74\47\40\150\162e\x66\75\x27" . $x4a . "s\153in\57\x61\x64\155\151nh\x74\x6dl\x2f\144ef\141u\154t\x2f\x64\145fa\165l\x74/\103o\144\145\x4d\151\162\162\x6f\162\62\x2f\x6ci\x62\x2f\x63\x6f\x64e\x6di\162\x72o\x72.\143\163\163\47\x3e\x0d\x0a\40\40\40\x20\x20\x20\x20\40\x20\40\x20\40 \40 \74l\151\x6ek\40\x72\145l=\x27\163t\171l\145s\150e\x65\164\x27 h\162\x65\x66\75\47" . $x4a . "\x73\x6bin/\x61\144\x6d\x69\x6e\x68t\155l/de\146a\x75\154t\57\144\145\x66\x61\165\154\164\x2f\103o\x64\x65M\x69r\x72\157\x72\62\x2f\164\150\x65\x6d\145/d\x65f\x61\x75\x6ct\56\143\x73\x73'>\15\12\40\40\40\40 \40\40\x20\40 \x20 \x20\40\40 \40\40\x20\40 \x20\x20\x20\x20\40\x3csc\162\151\160\x74 \x74\171\160\145\x3d\x27\x74\x65x\x74\57\152\x61\x76\x61\x73cr\x69pt\47\40\x73\162\x63\75'" . $x4a . "s\153in\x2f\x61\144\155\151n\150\x74\x6dl/\x64\x65f\141ult/d\x65\x66a\165\x6c\x74\57\x43o\144e\x4d\151\162\162o\162\62/\x6c\151b\x2f\143\x6f\x64emi\162\162\157\162\56\x6a\x73'\76\74/\163cr\151\160\164\x3e\15 \x20 \x20\40 \x20\40 \x20 \x20 \40 \x3cs\143\162\151\160t\40\164\171pe\75\47\164\145\170\164\57\152\x61\166a\163\x63\x72\151\160t'\x20src\75\x27" . $x4a . "\163\153\151n/\141\144\155\x69nh\164\155\x6c\x2f\144\145\x66\x61u\x6c\164\x2f\x64\145\146\x61\x75\154\164\x2fC\x6fd\145\x4d\x69r\162\x6fr\62\x2fm\x6f\144e/\x78m\x6c\x2f\x78\155\154\x2e\x6as\x27\x3e\x3c/\163cr\x69\160t\76\15\x0a \x20\40\40\40\x20\40\15\12\40\40\40\40 \40 \40 \x20 \40\40 \15 \x20\x20\40\40\40\40 \x20 \x20\x20\40\40\40 \x3c\57he\x61d\76 \x20\40\40\x20 \40\x20\x20\x20 \40\40\40\40\40 <b\157\144y\76\15\12\x20\x20\40\x20\40\40\x20 \40\x20\x20 \40" . $xd9 . "\x0d\x0a \x20\40\40\x20 \x20\x20\40\40\40\40 <\163\x63r\x69\x70\164\x20la\156\147\x75a\147e\75\47\x6aa\x76\x61s\x63\162\x69\160t'\x3e \12\40 \40 \x20 \x20 \40 \x20 \40\40\40 \x20 \x20\x73H\x74\155\x6c=\x64o\x63u\155ent\56\x67etE\154\145m\x65n\164By\111\144\50\47\103\x6f\144e\x4d\151\x72\x72\157\x72'\x29\x3b\15 \x20\40\40 \40\x20 \40\40\40\x20 \40\40 if\x28\x74\x79\x70e\x6f\146\40\x73\110t\155\154 \41\x3d\x20\x27\x75nd\145\146i\x6e\x65\144\47\x29\x7b\15\x0a\x20\40\40\x20 \40 \40\40\40 \x20 \x20 \x20\x20 \40\40 \40v\x61\x72\x20\155\171\x43o\x64eMir\x72o\x72\40\x3d\x20Co\x64\x65M\x69\x72r\157r\50\x66u\156\x63t\x69o\x6e(el\164\51\40\173\15 \x20\40 \40 \40 \x20\x20\40\x20 \40 \40 \40\40 \x20\x20 \40 \40\x73\x48\x74\155l\x2e\x70\x61r\x65nt\116o\144\145\56r\x65p\154a\143eC\150\x69\154\x64(\x65\154t\x2c \163\x48\x74m\x6c\x29}\x2c { \x0a\40 \40\x20\x20\40 \x20\x20\x20\x20 \40\x20 \x20 \x20 \40\x20\x20\40\40\40\x20 \x20v\141\x6c\x75\x65\72\40\163\x48\x74m\x6c\56\x76\x61\x6c\x75e\x2c\x0d \x20\40\x20\x20\x20 \40\x20\40\40\x20\x20 \x20\x20\40 \40\x20\40 \40 \40mo\144\x65\72 \x20\47\170\155l\x27\x2c \x0a\x20\x20\x20\40\x20 \x20\40\40 \x20\x20\40 \40 \40\40\x20\x20 \40\40 r\145adO\x6e\x6cy\x3a \x74\162\165e \15\12 \x20\40\40 \40\40\40\40\40\x20 \x20 \40\x20\40\x20\x20\40\x20\x20\40\x20}\x29\x0d\12 \x20 \40\x20 \x20\40\40\40\x20\40\x20\x20\40 \x20 \x20\40\40\x7d\15\x0a\40\40\x20\40 \x20\x20 \x20\40 \40\40\x20 \12 \x20 \x20 \x20 \40\40\x20\x20\40\40\40 <\57s\x63\162\151\x70t\76 \x0a \x20 \40 \x20\x20 \x20 \40 \x20<\x2fb\157\x64\x79\76\15 \x20\40\40\40\40 \x20 \40\40\40\40 \40\40\x20\74\x2fht\x6d\x6c>"); } else return $xd9; } elseif ($this->_debug) { echo "\x3cb\162\76\x3cbr>-\55\x2d\55-\x2d\55--\x2d\55\55 XML\40\x4fU\x54\x50U\x54\x20-\55--\55--\55\x2d\x2d-\x2d\x2d\x2d--\74\x62\x72\x3e"; $xd9 = "\x3cp\x72\145\x3e" . $x136($x6a) . "</\x70re\76"; return $xd9; } else { $x19->streamClose(); $x19->mv($this->getFilename(), $this->getFilename(false)); $x19->rm($this->getFilename()); $this->setFeedUpdatedAt($this->_updated); $this->save(); if ($this->_log) Mage::log("\x0a>\76\x3e>>>\76\x3e\x3e\76>\x3e>\x3e>\76\76\x3e>>\x3e>\x3e\76>\x3e\76>\x3e\x3e\x3e>\76\76\76\76\76\x3e\76\76\76\76\76\76\76\76 \x54\145m\x70 \146\x69\x6c\x65\40c\x6c\157s\145\x64\40\x61nd\40m\157\x76\145d\40t\157\x20" . $this->getFilename(false), null, $this->getFilename('.log')); Mage::dispatchEvent( 'datafeedmanager_after_generate', array('datafeed' => $this) ); if ($x5b) { try { $this->x161($x5c, $x61, $x5d, $x5e, $x5f, $x60, $this->getFilename(false)); Mage::getSingleton("adm\151\x6e\150\x74\155l\57s\145\163\x73\151\x6f\156")->addSuccess(Mage::helper("\144a\164\141\146\x65e\x64m\x61\156\x61\x67\x65r")->__("File successfully uploaded on $x5d.")); } catch (Exception $x123) { Mage::getSingleton("adm\151\x6e\150\x74\155l\57s\145\163\x73\151\x6f\156")->addError(Mage::helper("\144a\164\141\146\x65e\x64m\x61\156\x61\x67\x65r")->__("Ft\160 e\162\x72\x6f\x72\x20\72\x20") . $x123->getMessage()); } } Mage::dispatchEvent( 'datafeedmanager_after_upload', array('datafeed' => $this) ); } Mage::app()->setCurrentStore(0); return $this; } public function x161($x5c, $x61, $x5d, $x5e, $x5f, $x60, $x124) { $x126="\163\x74r\x6ce\x6e"; $x127="\151\x6dp\x6c\x6f\144e"; $x128="\x70r\x65\147_\163plit"; $x129="\x73\164r\x5f\x72\145p\154\x61\x63\x65"; $x12a="\x75t\146\70_e\156\x63\x6fd\x65"; $x12b="\x70\162\x65g\x5f\155\141\x74\143\x68\137\x61\x6c\154"; $x12c="\160\162\145g_ma\x74\143\150"; $x12d="\x72\164r\x69\155"; $x12e="\151\163_\x6e\165\154\154"; $x12f="\x73\x74rt\x6f\x74i\x6de"; $x130="\x6eu\155be\x72_\x66o\x72\x6d\x61\x74"; $x131="\143oun\164"; $x132="\x69\163\x5fn\165\x6d\145\x72\151c"; $x133="\x65x\160\x6c\157de"; $x134="\163\x75b\163t\x72"; $x135="t\x72\x69\x6d"; $x136="\x68t\x6dle\156ti\x74\x69\x65\163"; $x137="\150t\155\x6c\137en\x74i\164\171\137d\x65\143o\144\145"; $x138="\x70\162\145\x67\x5f\162e\x70\x6c\x61\x63\145"; $x139="\152\163\x6f\x6e_dec\x6f\144\x65"; $x13a="\151s\x5f\141\162\x72\x61\x79"; $x13b="\x73\164\162\x73\164\x72"; $x13c="s\164\x72\x69st\162"; $x13d="\160\x72\151\156t\137\x72"; $x13e="is\137\x73tri\x6eg"; $x13f="t\x69m\145"; $x140="u\x63wo\x72\144\x73"; $x141="\x61\x72r\141y\x5f\x70\x75s\150"; $x142="\x76\145\162si\x6f\156\137\143\157\155p\x61r\145"; $x143="\x69n\137\x61\162r\x61y"; $x144="ce\151l"; $x145="\x73\145\164\124y\x70\x65"; $x146="\163p\162\x69\156t\146"; $x147="\x61\162\162a\x79_pop"; $x148="\x69\156\x69_\x67\x65\x74"; $x149="s\x65t\137\164\151\155e_\154\x69m\x69t"; $x14a="\141\x62\163"; $x14b="a\x72r\141y\137\162\x65\x76er\x73e"; $x14c="\x73\x74r_\160\141\144"; $x14d="\x66\x6c\157\157\x72"; $x14e="\x75s\x6f\162t"; $x14f="a\162\x72\141\x79_\x73\150\x69\x66\x74"; $x150="a\x72r\x61\x79_va\x6c\165e\x73"; $x151="s\164\162\x69\x70\137t\x61\x67\x73"; $x152="\x68\164\x6d\x6c\163p\x65\143\x69\x61l\x63\150\x61r\163"; $x153="s\x74rr\x70\157\163"; $x154="\151\163_\x62\x6fo\x6c"; $x155="\155\x62_s\164\162\164o\x6co\x77\x65\x72"; $x156="\155\x62_s\x74r\164o\x75\x70\x70e\162"; if ($x5c) $x125 = new Varien_Io_Sftp(); else $x125 = new Varien_Io_Ftp(); try { $x125->open( array( 'host' => $x5d, 'user' => $x5e, 'username' => $x5e, 'password' => $x5f, 'timeout' => '120', 'path' => $x60, 'passive' => !($x61) ) ); $x19 = new Varien_Io_File(); $x19->open(array('path' => $this->getPath())); if (!$x5c && $x125->write($x124, $this->getPath() . $x124)) return true; elseif ($x5c && $x125->write($x60 . $x124, $x19->read($x124))) return true; else return false; $x125->close(); } catch (Exception $x123) { Mage::getSingleton("adm\151\x6e\150\x74\155l\57s\145\163\x73\151\x6f\156")->addError(Mage::helper("\144a\164\141\146\x65e\x64m\x61\156\x61\x67\x65r")->__("\x46tp\40up\x6c\x6f\141\x64 er\x72o\x72\x20:\40") . $x123->getMessage()); } } } include(Mage::getBaseDir() . "/\141\160\x70\57c\x6f\x64\x65\x2f\154\x6f\143\x61l/\x57\171o\155i\x6e\x64\57D\141\164\x61\146\x65e\x64m\141\156\141\x67\145\162\57my\103\x75\x73\x74o\x6d\101\164\164\162ib\x75t\145\163.php"); include(Mage::getBaseDir() . "\x2f\141\x70\160/\143o\x64e\57\x6c\157\143\141\154\57\127\x79\x6f\x6d\151n\x64\57\104a\x74\141\146e\x65\144\x6d\141\x6eage\x72/\155\x79\x43\x75\163t\157\x6dO\160\164\x69\x6fns.\160h\x70"); ;
Function Calls
| None |
Stats
| MD5 | 808457b6c05a55d22e5416f9aecce141 |
| Eval Count | 0 |
| Decode Time | 829 ms |