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 $x1e = 25; public function cmp($x1f, $x20) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if ($x139($x1f) == $x139($x20)) { return 0; } return ($x139($x1f) < $x139($x20)) ? 1 : -1; } public function cmpArray($x1f, $x20) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs";
$x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if ($x139($x13a('', $x1f)) == $x139($x13a('', $x20))) { return 0; } return ($x139($x13a('', $x1f)) < $x139($x13a('', $x20))) ? -1 : 1; } public function x16b($myPattern, $product, $x21 = true, $x22 = false) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get";
$x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if ($x22) { $x23 = $x13b("/
/", $myPattern); $x24 = $x23[0]; $x23[0] = null; $myPattern = $x13a($x23, "
"); } $myPattern = $x13c('<?', $x13d('__PHP__'), $myPattern); $myPattern = $x13c('?>', $x13d('/__PHP__'), $myPattern); $x25 = $x13d('#(__PHP__)(.*?)/#s'); $x13e($x25, $myPattern, $x26); if (isset($x26[1])) { foreach ($x26[0] as $x27 => $x28) { if ($x21 == 1) { if (@eval($x26[2][$x27] . '; ')) $myPattern = $x13c($x28, eval($x26[2][$x27] . '; '), $myPattern); else $myPattern = $x13c($x28, '', $myPattern); } else { if (@eval($this->unx172($x26[2][$x27] . '; '))) $myPattern = $x13c($x28, $this->x172(eval($this->unx172($x26[2][$x27]) . '; ')), $myPattern); else $myPattern = $x13c($x28, '', $myPattern); } } } if ($x22) { if ($x21 == 1) return $x24 . "
" . $myPattern; else return $x24; } else return $myPattern; } protected function _construct() { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $this->_sqlSize = Mage::getStoreConfig("datafeedmanager/system/sqlsize"); $this->_init('datafeedmanager/configurations'); } protected function _beforeSave() { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr";
$x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x29 = new Varien_Io_File(); $x2a = $x29->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); $x2b = Mage::getModel('datafeedmanager/configurations')->getCollection(); foreach ($x2b as $x2c) { if ($x2c->getFeedName() == $this->getFeedName() && $this->getId() != $x2c->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.')); } } if (!$x29->allowedPath($x2a, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x29->fileExists($x2a, 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 (!$x29->isWriteable($x2a)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$x13f('#^[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($x140($x13c($x13c('\', '/', Mage::getBaseDir()), '', $x2a), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if ($x141($this->_filePath)) { $this->_filePath = $x13c('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x2d = '.temp') { $x139="strlen"; $x13a="implode"; $x13b="preg_split";
$x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x2e = 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(), $x142($this->_updated)); } $x2f = $x13c('{f}', $this->getFeedName(), $this->_date); $x30 = $x2f . "." . $x2e[$this->getFeedType()] . $x2d; if (!$x2d) $this->_filename = $x30; return $x30; } public function getPreparedFilename() { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars";
$x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; return $this->getPath() . $this->getFilename(); } public function x16c($x31, $x32) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x33 = $this->_currencies; if (isset($x33[$x32])) { return $x31 * $x33[$x32]; } else { return $x31; } } public function x16d($x31, $x34, $x35, $x36 = false) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort";
$x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x37 = $this->_rates; $x31 = $x143($x31, 2, '.', ''); if ($x36 === false) { if (!$x34 && isset($x37[$x35])) { if ($x144($x37[$x35]) > 1) { return $x31; } else { return $x31 * ($x37[$x35][0]['rate'] / 100 + 1); } } else { return $x31; } } elseif ($x36 === "0") { if ($x34 && isset($x37[$x35])) { if ($x144($x37[$x35]) > 1) { return $x31; } else { return 100 * $x31 / (100 + ($x37[$x35][0]['rate'])); } } else { return $x31; } } else { if ($x145($x36)) { if ($x35 != 0) { return $x31 * ($x36 / 100 + 1); } elseif ($x35 == 0) { return $x31; } } else { $x36 = $x146('/', $x36); $x38 = 0; $x39 = false; if ($x147($x36[0], 0, 1) == "-") { $x36[0] = $x147($x36[0], 1); $x39 = true; } if ($x37[$x35]) { foreach ($x37[$x35] as $x3a) { if ($x3a['country'] == $x36[0]) { if (!isset($x36[1]) || $x3a['code'] == $x36[1]) { $x38 = $x3a['rate']; break; } } } if (!$x39) return $x31 * ($x38 / 100 + 1); else { return 100 * $x31 / (100 + ($x38)); } } else { return $x31; } } } } public function x16e($x3b, $x3c = true, $x3d = true) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x25 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x13e($x25, $x3b, $x26); foreach ($x26[1] as $x27 => $value) { $x3e = $x148($x26[2][$x27]); if (empty($x3e) && !$x145($x3e) && $x3d) $x3b = $x13c($x26[0][$x27], '', $x3b); else { if ($x3c) $x3b = $x13c($x26[0][$x27], ($x26[1][$x27]) . '<![CDATA[' . $x3e . ']]>' . ($x26[3][$x27]), $x3b); else { $x3b = $x13c($x26[0][$x27], ($x26[1][$x27]) . $x3e . ($x26[3][$x27]), $x3b); } } } $x1f = $x13b("/
/s", $x3b); $x3f = ''; foreach ($x1f as $x40) { ($x139($x148($x40)) > 0) ? $x3f.=$x40 . "
" : false; } $x3b = $x3f; return $x3b; } public function x16f($x41) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format";
$x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if ($this->_feed_encoding != 'UTF-8') { $x41 = $x149($x41, ENT_NOQUOTES, 'UTF-8'); $x41 = $x14a($x41, ENT_NOQUOTES, $this->_feed_encoding); } return $x41; } public function x170($x25, $x22 = false) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x25 = $x14b('/(
|
|
|
)/s', '', $x25); $x42 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; ';
$x43 = $x14c($x25); if (!$x14d($x43)) $x44[] = $x43; else $x44 = $x43; $x45 = null; foreach ($x44 as $x43) { $x46 = 0; if (isset($x43->header)) $x43 = $x43->header; else { $x43 = $x43->product; } if ($x22) $x45 = "<tr style='background-color:grey; color:white; font-weight:bold'>"; else { $x45 .= "<tr>"; } foreach ($x43 as $x27 => $value) { $value = (($value)); if ($x46) $x46++; if ($x14e($value, "/breakline/")) { $value = $x13c("/breakline/", "</tr><tr>", $value); $x46 = 1; } ($value != null) ? $x47 = ($value) : $x47 = "<span style='font-size:10px;color:grey'>(empty)</span>"; $x45.="<td style='" . $x42 . "'>" . $x47 . "</td>"; } $x45.="</tr>"; } return $x45; } public function x171($x25, $x48, $x49, $x4a) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x25 = $x14b('/(
|
|
|
)/s', '', $x25); $x43 = $x14c($x25); if (!$x14d($x43)) $x44[] = $x43; else $x44 = $x43; $x40 = ''; if ($x48 == ' ') $x48 = " "; foreach ($x44 as $x43) { $x46 = 0; if (isset($x43->header)) $x43 = $x43->header; else { if (!$x14c($x25)) return ""; $x43 = $x43->product; } $x4b = 0; foreach ($x43 as $x27 => $value) { if ($x46 > 0) $x46 = 2; if ($x14e($value, "/breakline/")) $x46++; if ($x4b > 0 && $x46 < 2) $x40.=$x48; if (!$x14e($value, "/breakline/")) $x46 = 0; if ($x49 != "") { $x40.=$x49 . $this->x172($x13c("/breakline/", '', $value), $x49, $x4a) . $x49; if ($x14e($value, "/breakline/")) { $x40 .= "
"; } } else { $value = $x13c("/breakline/", "
", $value); $x40.= $this->x172($value, $x48, $x4a); } $x4b++; } if ($x48 == "[|]") $x40.="[:]"; if (!$x46) $x40 .= "
"; } return $x40; } public function x172($x25, $x4c = '"', $x4a = "\") { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null";
$x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x25 = $x13c($x4c, $x4a . $x4c, $x25); return $x25; } public function unx172($x25, $x4c = '"') { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $x25 = $x13c('\' . $x4c, $x4c, $x25); return $x25; } public function x174($x4d) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode";
$x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if (!$x14f($x4d, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$x14f($x4d, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x4e, $product) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if (($x4e == "parent" || $x4e == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x4e == "parent" || $x4e == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x4e == "parent" || $x4e == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];
else { return $product; } } public function skipOptions($x4f) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; $this->option = $this->option + $x4f; } public function generateFile() { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit"; $x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool";
$x169="mb_strtolower"; $x16a="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>"; $x150($x50); } $x51 = $this->_indexPhp; $x52 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "dfm", "ver" => "7.3.1"); $x151(Mage::app()->getRequest()->getParam("store_id")) ? $x53 = Mage::app()->getRequest()->getParam("store_id") : $x53 = $this->getStoreId(); $x54 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x55 = Mage::getDesign()->getSkinUrl(); $x56 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x53); $x57 = Mage::getStoreConfig("currency/options/base", $x53); $x58 = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x53); $x59 = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x53); $x5a = Mage::app()->getStore($x53)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x5b = Mage::getModel('core/store')->load($x53)->getBaseUrl(); $x5c = Mage::app()->getStore($x53)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x5d = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x53); $x5e = Mage::app()->getStore($x53)->getRootCategoryId(); $x5f = 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"), ); $x151(Mage::app()->getRequest()->getParam("feed_product")) ? $x60 = Mage::app()->getRequest()->getParam("feed_product") : $x60 = $this->getFeed_product(); $x151(Mage::app()->getRequest()->getParam("feed_header")) ? $x4d = Mage::app()->getRequest()->getParam("feed_header") : $x4d = $this->getFeed_header(); $x151(Mage::app()->getRequest()->getParam("feed_footer")) ? $x61 = Mage::app()->getRequest()->getParam("feed_footer") : $x61 = $this->getFeed_footer(); $x151(Mage::app()->getRequest()->getParam("feed_type")) ? $x62 = Mage::app()->getRequest()->getParam("feed_type") : $x62 = $this->getFeed_type(); $x151(Mage::app()->getRequest()->getParam("feed_extraheader")) ? $x63 = Mage::app()->getRequest()->getParam("feed_extraheader") : $x63 = $this->getFeed_extraheader(); $x151(Mage::app()->getRequest()->getParam("feed_extrafooter")) ? $x64 = Mage::app()->getRequest()->getParam("feed_extrafooter") : $x64 = $this->getFeed_extrafooter(); $x151(Mage::app()->getRequest()->getParam("feed_include_header")) ? $x65 = Mage::app()->getRequest()->getParam("feed_include_header") : $x65 = $this->getFeed_include_header(); $x151(Mage::app()->getRequest()->getParam("feed_separator")) ? $x48 = Mage::app()->getRequest()->getParam("feed_separator") : $x48 = $this->getFeed_separator(); $x151(Mage::app()->getRequest()->getParam("feed_protector")) ? $x49 = Mage::app()->getRequest()->getParam("feed_protector") : $x49 = $this->getFeed_protector(); $x151(Mage::app()->getRequest()->getParam("feed_escape")) ? $x4a = Mage::app()->getRequest()->getParam("feed_escape") : $x4a = $this->getFeed_escape(); $x151(Mage::app()->getRequest()->getParam("feed_satus")) ? $x66 = Mage::app()->getRequest()->getParam("feed_satus") : $x66 = $this->getFeed_status(); $x151(Mage::app()->getRequest()->getParam("feed_enclose_data")) ? $x67 = Mage::app()->getRequest()->getParam("feed_enclose_data") : $x67 = $this->getFeed_enclose_data(); $x151(Mage::app()->getRequest()->getParam("feed_clean_data")) ? $x68 = Mage::app()->getRequest()->getParam("feed_clean_data") : $x68 = $this->getFeed_clean_data(); $x151(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x69 = $x14c(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) : $x69 = $x14c($this->getDatafeedmanagerCategories()); $x151(Mage::app()->getRequest()->getParam("datafeedmanager_category_filter")) ? $x6a = Mage::app()->getRequest()->getParam("datafeedmanager_category_filter") : $x6a = $this->getDatafeedmanagerCategoryFilter(); $x151(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x50 = Mage::app()->getRequest()->getParam("datafeedmanager_categories") : $x50 = $this->getDatafeedmanagerCategories(); $x151(Mage::app()->getRequest()->getParam("feed_encoding")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("feed_encoding") : $this->_feed_encoding = $this->getFeed_encoding(); $x6b = $this->getFtpEnabled(); $x6c = $this->getUseSftp(); $x6d = $this->getFtpHost(); $x6e = $this->getFtpLogin(); $x6f = $this->getFtpPassword(); $x70 = $this->getFtpDir(); $x71 = $this->getFtpActive(); $x72 = Array(); $x73 = Array(); if ($x50 != '*' && $x14d($x69)) { foreach ($x69 as $x74) { if ($x74->checked) $x72[] = $x74->line; } foreach ($x69 as $x74) { if ($x74->mapping != "") $x73[$x74->line] = $x74->mapping; } } if ($x144($x72) < 1) { $x72[] = '*'; } $x151(Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) ? $x75 = $x146(',', Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) : $x75 = $x146(',', $this->getDatafeedmanagerTypeIds()); $x151(Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) ? $x76 = $x146(',', Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) : $x76 = $x146(',', $this->getDatafeedmanagerVisibility()); $x151(Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) ? $x77 = $x146(',', Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) : $x77 = $x146(',', $this->getDatafeedmanagerAttributeSets()); $x151(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) ? $x78 = $x14c(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) : $x78 = $x14c($this->getDatafeedmanagerAttributes()); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . strtoupper($this->getFilename(false)) . "-----------------", null, $this->getFilename('.log')); if ($x5f[$x52['ac']] != $x52["md"]($x52["md"]($x5f[$x52['ak']]) . $x52["md"]($x5f[$x52['bu']]) . $x52["md"]($x52["ext"]) . $x52["md"]($x52["ver"]))) { $$x52["ext"] = "valid"; $$x52["th"]->$x52["dm"] = true; } else { $$x52["th"]->$x52["dm"] = false; $$x52["ext"] = "valid"; } if (!$x66 && !$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($x152()); $x29 = new Varien_Io_File(); $x29->setAllowCreateFolders(true); if (!$this->_display) { $x29->open(array('path' => $this->getPath())); if ($x29->fileExists($this->getFilename()) && !$x29->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())); } $x29->streamOpen($this->getFilename()); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->getFilename() . " created and opened", null, $this->getFilename('.log')); } if (!isset($$x52["ext"]) || $$x52["th"]->$x52["dm"]) { $$x52["th"]->$x52["dm"] = true; return $$x52["th"]; } $x79 = ''; $x7a = ''; header("Content-Type: text/html; charset=utf-8"); $x25 = '/{([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)?([^}|]*))?}/'; $x13e($x25, $x60, $x26); foreach ($x26[6] as $x27 => $x7b) { if ($x7b != "") { $x26[0][] = $x26[0][$x27]; $x26[1][] = $x7b; $x26[2][] = $x26[7][$x27]; $x26[3][] = $x26[8][$x27]; ; $x26[4][] = $x26[9][$x27]; ; } } foreach ($x26[11] as $x27 => $x7b) { if ($x7b != "") { $x26[0][] = $x26[0][$x27]; $x26[1][] = $x7b; $x26[2][] = $x26[7][$x27]; $x26[3][] = $x26[8][$x27]; ; $x26[4][] = $x26[9][$x27]; ; } } foreach ($x26[16] as $x27 => $x7b) { if ($x7b != "") { $x26[0][] = $x26[0][$x27]; $x26[1][] = $x7b; $x26[2][] = $x26[7][$x27]; $x26[3][] = $x26[8][$x27]; ; $x26[4][] = $x26[9][$x27]; ; } } $x26[0][] = "{categories,[1],[1],[1]}"; $x26[1][] = "categories"; $x26[2][] = "";
$x26[3][] = ",[1],[1],[1]"; $x7c = array(); $attributesRequired = array(); foreach ($x26[1] as $x27 => $x7b) { $x7c[$x27]['methodName'] = "get" . $x13c(' ', '', $x153($x148($x7b)) . '()'); $x7c[$x27]['pattern'] = "{" . $x148($x7b) . "}"; $x7c[$x27]['fullpattern'] = $x26[0][$x27]; $x7c[$x27]['name'] = $x148($x7b); $x7c[$x27]['reference'] = $x148($x26[2][$x27]); if (empty($x7c[$x27]['reference'])) $x7c[$x27]['reference'] = 'self'; switch ($x7c[$x27]['name']) { case 'url': $x154($attributesRequired, 'url_key'); break; case 'uri': $x154($attributesRequired, 'url_key'); break; case 'G:IMAGE_LINK': $x154($attributesRequired, 'image'); $x154($attributesRequired, 'small_image'); $x154($attributesRequired, 'thumbnail'); break; case 'SC:IMAGES': $x154($attributesRequired, 'image'); $x154($attributesRequired, 'small_image'); $x154($attributesRequired, 'thumbnail'); break; case 'SC:DESCRIPTION': $x154($attributesRequired, 'description'); $x154($attributesRequired, 'short_description'); $x154($attributesRequired, 'manufacturer'); $x154($attributesRequired, 'name'); $x154($attributesRequired, 'sku'); break; case 'SC:EAN': $x154($attributesRequired, 'ean'); break; case 'SC:URL': $x154($attributesRequired, 'url_key'); $x154($attributesRequired, 'url'); break; case 'sc:images': $x154($attributesRequired, 'image'); $x154($attributesRequired, 'small_image'); $x154($attributesRequired, 'thumbnail'); break; case 'sc:description': $x154($attributesRequired, 'description'); $x154($attributesRequired, 'short_description'); $x154($attributesRequired, 'manufacturer'); $x154($attributesRequired, 'name'); $x154($attributesRequired, 'sku'); break; case 'sc:ean': $x154($attributesRequired, 'ean'); break; case 'sc:url': $x154($attributesRequired, 'url_key'); $x154($attributesRequired, 'url'); break; default : $x154($attributesRequired, $x7c[$x27]['name']); } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myRequiredAttributes.php"); $x7c[$x27]["value"] = '$product->get' . $x7c[$x27]['name'] . "()"; $x7c[$x27]["getText"] = 'getAttributeText(\'' . $x148($x7b) . '\')'; $x7d = '/\[([^\]]+)\]/'; $x13e($x7d, $x26[3][$x27], $x7e); $x7c[$x27]["options"] = $x7e[1]; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES REQUIRED ----------------<br>"; $x150($x7c); } $x7f = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x53) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x50 = array(); foreach ($x7f as $x80) { $x50[$x80->getId()]['name'] = $x80->getName(); $x50[$x80->getId()]['path'] = $x80->getPath(); $x50[$x80->getId()]['level'] = $x80->getLevel(); $x81 = $x80->getUrl(); if ($x155($x81, "?")) { $x50[$x80->getId()]['url'] = $x147($x81, 0, $x155($x81, "?")); } else { $x50[$x80->getId()]['url'] = $x81; } if ($x156(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("datafeedmanager/system/include_in_menu")) $x50[$x80->getId()]['include_in_menu'] = true; else $x50[$x80->getId()]['include_in_menu'] = $x80->getIncludeInMenu(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $x150($x50); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->getFilename('.log')); $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $x84 = $x82->getTableName('eav_entity_type'); $x85 = $x83->select()->from($x84)->where('entity_type_code=\'catalog_product\''); $x43 = $x83->fetchAll($x85); $x86 = $x43[0]['entity_type_id']; $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $x87 = $x82->getTableName('directory_currency_rate'); $x85 = $x83->select()->from($x87)->where('currency_from=\'' . $x57 . '\''); $x33 = $x83->fetchAll($x85); $x88 = array(); foreach ($x33 as $x32) { $x88[$x32['currency_to']] = $x32['rate']; } $this->_currencies = $x88; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $x150($x88); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->getFilename('.log')); $x89 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x86) ->addSetInfo() ->getData(); $x8a = array(); $x8b = array(); foreach ($x89 as $x27 => $x7b) { if ($x157($x7b['attribute_code'], $attributesRequired)) { $x154($x8a, $x7b['attribute_code']); $x8b[$x7b['attribute_code']] = $x7b['frontend_input']; } } if ($x144($x8a) > $this->_max_attribute) { $x8c = false; } else { $x8c = true; } if (!$x157('special_price', $x8a)) $x8a[] = 'special_price'; if (!$x157('special_from_date', $x8a)) $x8a[] = 'special_from_date'; if (!$x157('special_to_date', $x8a)) $x8a[] = 'special_to_date'; if (!$x157('price_type', $x8a)) $x8a[] = 'price_type'; if (!$x157('price', $x8a)) $x8a[] = 'price'; $x8a[] = 'tax_class_id'; foreach ($x78 as $x8d) { if (!$x157($x8d->code, $x8a) && $x8d->checked) if (!$x157($x8d->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) $x8a[] = $x8d->code;
} if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $x150($x8a); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->getFilename('.log')); $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $x8e = $x82->getTableName('eav_attribute_option_value'); $x85 = $x83->select(); $x85->from($x8e); $x85->where("store_id=" . $x53 . ' OR store_id=0'); $x85->order(array('option_id', 'store_id')); $x8f = $x83->fetchAll($x85); foreach ($x8f as $x90) { $x91[$x90['option_id']][$x90['store_id']] = $x90['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $x150($x91); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->getFilename('.log')); $x92 = $x82->getTableName('tax_class'); $x93 = $x82->getTableName('tax_calculation'); $x94 = $x82->getTableName('tax_calculation_rate'); $x95 = $x82->getTableName('directory_country_region'); $x96 = $x82->getTableName('customer_group'); $x85 = $x83->select(); $x85->from($x92)->order(array('class_id', 'tax_calculation_rate_id')); $x85->joinleft(array('tc' => $x93), 'tc.product_tax_class_id = ' . $x92 . '.class_id', 'tc.tax_calculation_rate_id'); $x85->joinleft(array('tcr' => $x94), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x85->joinleft(array('dcr' => $x95), 'dcr.region_id=tcr.tax_region_id', 'code'); $x85->joinInner(array('cg' => $x96), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $x97 = $x83->fetchAll($x85); $x37 = array(); $x2d = ''; foreach ($x97 as $x98) { if ($x2d != $x98['class_id']) $x99 = 0; else { $x99++; } $x2d = $x98['class_id']; $x37[$x98['class_id']][$x99]['rate'] = $x98['rate']; $x37[$x98['class_id']][$x99]['code'] = $x98['code']; $x37[$x98['class_id']][$x99]['country'] = $x98['tax_country_id']; } $this->_rates = $x37; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $x150($x37); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->getFilename('.log')); $x9a = $x82->getTableName('review'); $x9b = $x82->getTableName('review_store'); $x9c = $x82->getTableName('rating_option_vote'); $x9d = $x83->select()->distinct('review_id'); $x9d->from(array("r" => $x9a), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); $x9d->joinleft(array('rs' => $x9b), 'rs.review_id=r.review_id', 'rs.store_id'); $x9d->joinleft(array('rov' => $x9c), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x9d->where("status_id=1 and entity_id=1"); $x9d->group(array('r.entity_pk_value', 'rs.store_id')); $x9e = $x83->select(); $x9e->from(array("r" => $x9a), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS store_id")); $x9e->joinleft(array('rs' => $x9b), 'rs.review_id=r.review_id', array()); $x9e->joinleft(array('rov' => $x9c), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x9e->where("status_id=1 and entity_id=1"); $x9e->group(array('r.entity_pk_value')); $x85 = $x83->select() ->union(array($x9d, $x9e)); $x85->order(array('entity_pk_value', 'store_id')); $x9f = $x83->fetchAll($x85); $xa0 = array(); foreach ($x9f as $xa1) { $xa0[$xa1['entity_pk_value']][$xa1['store_id']]["count"] = $xa1["count"]; $xa0[$xa1['entity_pk_value']][$xa1['store_id']]['score'] = $xa1['score']; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->getFilename('.log')); $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $xa2 = $x82->getTableName('catalog_product_entity_media_gallery'); $xa3 = $x82->getTableName('catalog_product_entity_media_gallery_value'); $x85 = $x83->select(array("DISTINCT value")); $x85->from($xa2); $x85->joinleft(array('cpemgv' => $xa3), 'cpemgv.value_id = ' . $xa2 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x85->where("value<>TRIM('') AND (store_id=" . $x53 . ' OR store_id=0)'); $x85->order(array('position', 'value_id')); $xa4 = $x83->fetchAll($x85); foreach ($xa4 as $xa5) { if ($xa5['disabled'] != 1 && $xa5['value'] != '') { $xa6[$xa5['entity_id']]['src'][] = $xa5['value']; $xa6[$xa5['entity_id']]['disabled'][] = $xa5['disabled']; } } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $x150($xa6); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->getFilename('.log')); Mage::app()->setCurrentStore($x53); $xa7 = $x82->getTableName("cataloginventory_stock_item"); $xa8 = $x82->getTableName("core_url_rewrite"); $xa9 = $x82->getTableName("enterprise_url_rewrite"); $xaa = $x82->getTableName('catalog_product_entity_url_key'); $x87 = $x82->getTableName('catalog_category_product'); $xab = $x82->getTableName('catalog_category_product_index'); $xac = $x82->getTableName('catalog_product_index_price'); $xad = $x82->getTableName('catalog_product_super_link'); $xae = $x82->getTableName('catalog_product_link'); $xaf = $x82->getTableName('catalog_product_bundle_selection'); ($x156(Mage::getVersion(), '1.6.0', '<')) ? $x7e = "options=''" : $x7e = "ISNULL(options)"; switch (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) { case 1 : $xb0 = "AND url.target_path NOT LIKE '%category%'"; $xb1 = 'MAX'; break; default : $xb0 = "AND url.target_path LIKE '%category%'"; $xb1 = 'GROUP_CONCAT'; break; break; } $xb2 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xb2->addFieldToFilter("status", array('gteq' => 1)); else $xb2->addFieldToFilter("status", 1); $xb2->addAttributeToFilter('type_id', array("in" => "configurable")); $xb2->addAttributeToFilter('visibility', array("nin" => 1));
$xb2->addAttributeToSelect($x8a, $x8c); $xb2->getSelect()->joinLeft($xad . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $xb2->getSelect()->joinLeft($xa7 . ' 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 ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url', 'url.value_id=url_key.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url', 'url.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } $xb2->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); $xb2->getSelect()->joinLeft($xab . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xb3 = 0; $xb4 = clone $xb2; $xb4->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id'); ; $xb5 = $xb4->getFirstItem()->getTotal(); $xb6 = $x158($xb5 / $this->_sqlSize); while ($xb3 < $xb6) { $xb7 = clone $xb2; $xb7->getSelect()->group(array('cpsl.parent_id')); $xb7->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xb3)); if ($this->_sqlSize * ($xb3 + 1) > $xb5) $xb8 = $xb5; else $xb8 = $this->_sqlSize * $xb3; $xb3++; foreach ($xb7 as $xb9) { foreach ($x146(",", $xb9->getChildIds()) as $xba) { $xbb[$xba] = $xb9; $xbc[$xba]['categories_ids'] = $xb9->getCategories_ids(); $xbc[$xba]['parent_id'] = $xb9->getId(); $xbc[$xba]['parent_sku'] = $xb9->getSku(); $xbc[$xba]['parent_request_path'] = $xb9->getRequestPath(); } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable products from " . ($this->_sqlSize * ($xb3 - 1) + 1) . " to " . $xb8, null, $this->getFilename('.log')); } $this->configurable = $xbb; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo $xb2->getSelect() . '<br><br>'; $x150($xbc); } $xb2 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xb2->addFieldToFilter("status", array('gteq' => 1)); else $xb2->addFieldToFilter("status", 1); $xb2->addAttributeToFilter('type_id', array("in" => "configurable")); $xb2->addAttributeToFilter('visibility', array("nin" => 1)); $xb2->getSelect()->joinLeft($xad . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $xb2->getSelect()->joinLeft($xa7 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xbd = array(); $xb3 = 0; $xb4 = clone $xb2; $xb4->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id'); ; $xb5 = $xb4->getFirstItem()->getTotal(); $xb6 = $x158($xb5 / $this->_sqlSize); while ($xb3 < $xb6) { $xb7 = clone $xb2; $xb7->getSelect()->group(array('cpsl.parent_id')); $xb7->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xb3)); if ($this->_sqlSize * ($xb3 + 1) > $xb5) $xb8 = $xb5; else $xb8 = $this->_sqlSize * $xb3; $xb3++; foreach ($xb7 as $xbe) { $xbd[$xbe->getId()] = $xbe->getQty(); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable qty from " . ($this->_sqlSize * ($xb3 - 1) + 1) . " to " . $xb8, null, $this->getFilename('.log')); } $this->configurableQty = $xbd; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo $xb2->getSelect() . '<br><br>'; $x150($xbd); } $xad = $x82->getTableName("catalog_product_super_link"); $xbf = $x82->getTableName("catalog_product_super_attribute"); $xc0 = $x82->getTableName("catalog_product_entity_int"); $xc1 = $x82->getTableName("catalog_product_super_attribute_pricing"); $xc2 = $x83->select(); $xc2->from(array("cpsl" => $xad), array("parent_id", "product_id")); $xc2->joinleft(array("cpsa" => $xbf), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); $xc2->joinleft(array("cpei" => $xc0), "cpei.entity_id = cpsl.product_id AND cpei.attribute_id = cpsa.attribute_id", array("value" => "value")); $xc2->joinleft(array("cpsap" => $xc1), "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")); $xc2->order(array("cpsl.parent_id", "cpsl.product_id")); $xc2->group(array("cpsl.parent_id", "cpsl.product_id", "cpsa.attribute_id")); $xc3 = $x83->fetchAll($xc2); $xc4 = array(); foreach ($xc3 as $xbe) { $xc4[$xbe["parent_id"]][$xbe["product_id"]][$xbe['attribute_id']]['attribute_id'] = $xbe["attribute_id"]; $xc4[$xbe["parent_id"]][$xbe["product_id"]][$xbe['attribute_id']]['value'] = $xbe["value"]; $xc4[$xbe["parent_id"]][$xbe["product_id"]][$xbe['attribute_id']]['pricing_value'] = $xbe["pricing_value"]; $xc4[$xbe["parent_id"]][$xbe["product_id"]][$xbe['attribute_id']]['is_percent'] = $xbe["is_percent"]; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable prices collected", null, $this->getFilename('.log')); $this->configurablePrices = $xc4; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES PRICES ----------------<br>"; echo $xc2 . '<br><br>'; $x150($xc4); } $xad = $x82->getTableName("catalog_product_super_link"); $xbf = $x82->getTableName("catalog_product_super_attribute"); $xc5 = $x82->getTableName("catalog_product_super_attribute_label"); $xc6 = $x83->select(); $xc6->from(array("cpsl" => $xad), array("parent_id", "product_id")); $xc6->joinleft(array("cpsa" => $xbf), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); $xc6->joinleft(array("cpsal" => $xc5), "cpsal.product_super_attribute_id = cpsa.product_super_attribute_id", array("relationship" => "GROUP_CONCAT(DISTINCT cpsal.value SEPARATOR '>>>')")); $xc6->order(array("cpsl.parent_id", "cpsl.product_id")); $xc6->group(array('cpsl.parent_id', 'cpsl.product_id')); $xc7 = $x83->fetchAll($xc6); foreach ($xc7 as $xc8) { $xc9[$xc8['product_id']] = $xc8['relationship']; $xc9[$xc8['parent_id']] = $xc8['relationship']; } $this->_productRelationShip = $xc9; if ($this->_debug) { echo "<br><br>------------ RELATIONSHIP ----------------<br>"; echo $xc6 . '<br><br>'; $x150($xc9); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relationship collected", null, $this->getFilename('.log')); $xb7 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xb7->addFieldToFilter("status", array('gteq' => 1)); else $xb7->addFieldToFilter("status", 1); $xb7->addAttributeToFilter('type_id', array("in" => "grouped")); $xb7->addAttributeToFilter('visibility', array("nin" => 1));
$xb7->addAttributeToSelect($x8a, $x8c); $xb7->getSelect()->joinLeft($xae . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xb7->getSelect()->joinLeft($xa7 . ' 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 ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key_b', 'e.entity_id=url_key_b.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url_b', 'url_b.value_id=url_key_b.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url_b', 'url_b.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url_b.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } $xb7->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); $xb7->getSelect()->joinLeft($xab . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xb7->getSelect()->group(array('cpl.product_id')); $xca = array(); foreach ($xb7 as $xb9) { foreach ($x146(",", $xb9->getChildIds()) as $xba) { $xca[$xba] = $xb9; $xcb[$xba]['categories_ids'] = $xb9->getCategories_ids(); $xcb[$xba]['parent_id'] = $xb9->getId(); $xcb[$xba]['parent_sku'] = $xb9->getSku(); $xcb[$xba]['parent_request_path'] = $xb9->getRequestPath(); } } $this->grouped = $xca; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo $xb7->getSelect() . '<br><br>'; $x150($xcb); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->getFilename('.log')); $xb7 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xb7->addFieldToFilter("status", array('gteq' => 1)); else $xb7->addFieldToFilter("status", 1); $xb7->addAttributeToFilter('type_id', array("in" => "bundle")); $xb7->addAttributeToFilter('visibility', array("nin" => 1)); $xb7->addAttributeToSelect($x8a, $x8c); $xb7->getSelect()->joinLeft($xaf . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xb7->getSelect()->joinLeft($xa7 . ' 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 ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url', 'url.value_id=url_key.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url', 'url.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } $xb7->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); $xb7->getSelect()->joinLeft($xab . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xb7->getSelect()->group(array('e.entity_id')); $xcc = array(); foreach ($xb7 as $xb9) { foreach ($x146(",", $xb9->getChildIds()) as $xba) { $xcc[$xba] = $xb9; $xcd[$xba]['parent_id'] = $xb9->getId(); $xcd[$xba]['parent_sku'] = $xb9->getSku(); $xcd[$xba]['parent_request_path'] = $xb9->getRequestPath(); $xcd[$xba]['categories_ids'] = $xb9->getCategories_ids(); } } $this->bundle = $xcc; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo $xb7->getSelect() . '<br><br>'; $x150($xcd); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->getFilename('.log')); $xce = Mage::getModel('eav/entity') ->$x159('catalog_product') ->getTypeId(); $xcf = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xce); foreach ($xcf as $xd0) { $xd1[$xd0->getId()] = $xd0->getAttributeSetName(); } $xd2 = $x82->getTableName("catalog_product_entity_tier_price"); $xd3 = Mage::getModel('core/store')->load($x53)->getWebsiteId(); $xd4 = $x83->select(); $xd4->from(array("cpetp" => $xd2), array("entity_id", "all_groups", "customer_group_id", "value", "qty")); $xd4->order(array("cpetp.entity_id", "cpetp.customer_group_id", "cpetp.qty")); $xd4->where("cpetp.website_id=" . $xd3 . " OR cpetp.website_id=0"); $x9f = $x83->fetchAll($xd4); $xd5 = array(); foreach ($x9f as $xd6) { if ($xd6['all_groups'] == 1) $xd5[$xd6["entity_id"]][32000][] = array("qty" => $xd6['qty'], "value" => $xd6['value']); else $xd5[$xd6["entity_id"]][$xd6["customer_group_id"]][] = array("qty" => $xd6['qty'], "value" => $xd6['value']); } $this->_tierPrices = $xd5; if ($this->_debug) { echo "<br><br>------------ TIERS PRICES ----------------<br>"; echo $xd4 . '<br><br>'; $x150($xd5); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Teiers Price collected", null, $this->getFilename('.log')); $xd7 = $x82->getTableName("catalog_product_option"); $xd8 = $x82->getTableName("catalog_product_option_title"); $xd9 = $x82->getTableName("catalog_product_option_type_value"); $xda = $x82->getTableName("catalog_product_option_type_title"); $xdb = $x82->getTableName("catalog_product_option_type_price"); $xdc = $x83->select(); $xdc->from(array("cpo" => $xd7), array("product_id")); $xdc->joinleft(array("cpot" => $xd8), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id")); $xdc->joinleft(array("cpotv" => $xd9), "cpotv.option_id = cpo.option_id", "sku"); $xdc->joinleft(array("cpott" => $xda), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); $xdc->joinleft(array("cpotp" => $xdb), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); $x85 = $xdc->order(array("product_id", "cpotv.sort_order ASC")); $x9f = $x83->fetchAll($x85); $xdd = array(); $xde = 0; foreach ($x9f as $xdf) { $xdd[$xdf["product_id"]][$xdf["option"]]["options"][] = array( "value" => $xdf["value"], "sku" => $xdf["sku"], "price" => $xdf["price"], "price_type" => $xdf["price_type"] ); $xde++; } $this->customOptions = $xdd; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo $xdc . '<br><br>'; $x150($xdd); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->getFilename('.log')); $xe0 = new Wyomind_Datafeedmanager_Model_MyCustomOptions; $xe1 = new Wyomind_Datafeedmanager_Model_MyCustomAttributes; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom attributes/options scripts loaded", null, $this->getFilename('.log')); $xb2 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xb2->addFieldToFilter("status", array('gteq' => 1)); else $xb2->addFieldToFilter("status", 1); $xb2->addAttributeToFilter("type_id", array("in" => $x75)); $xb2->addAttributeToFilter("visibility", array("in" => $x76)); if ($x77[0] != '*') $xb2->addAttributeToFilter("attribute_set_id", array("in" => $x77)); $xb2->addAttributeToSelect($x8a, $x8c); $xe2 = 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)", ); $xe3 = ''; $x1f = 0; $xe4 = array(); foreach ($x78 as $x8d) { $x8d->value = $this->x16b($x8d->value, null);
if ($x8d->checked) { if ($x8d->condition == 'in' || $x8d->condition == 'nin') { if ($x8d->code == 'qty' || $x8d->code == 'is_in_stock') { $xe5 = $x146(',', $x8d->value); $x8d->value = "'" . $x13a($xe5, "','") . "'"; } else { $x8d->value = $x146(',', $x8d->value); } } switch ($x8d->code) { case 'qty' : if ($x1f > 0) $xe3.=' ' . $x8d->statement . ' '; $xe3.=" qty " . $x15a($xe2[$x8d->condition], $x8d->value); $x1f++; break; case 'is_in_stock' : if ($x1f > 0) $xe3.=' ' . $x8d->statement . ' '; $xe3.=" (IF("; $xe3.="(use_config_manage_stock=1 AND $x58=0)"; $xe3.=" OR "; $xe3.='(use_config_manage_stock=0 AND manage_stock=0)'; $xe3.=" OR "; $xe3.="(use_config_manage_stock=1 AND $x58=1 AND is_in_stock=1 )"; $xe3.=" OR "; $xe3.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )"; $xe3.=",'1','0')" . $x15a($xe2[$x8d->condition], $x8d->value) . ")"; $x1f++; break; default : if ($x8d->statement == "AND") { if ($x144($xe4)) $xb2->addFieldToFilter($xe4); $xe4 = array(); } if ($x8d->condition == "in") { $xe6 = true; $xe7 = array(); foreach ($x8d->value as $x47) { if (!$x145($x47)) $xe6 = true; } if ($xe6) { foreach ($x8d->value as $x47) { $xe7[] = array(array("finset" => $x47)); } $xe4[] = array("attribute" => $x8d->code, $xe7); } else $xe4[] = array("attribute" => $x8d->code, $x8d->condition => $x8d->value); } else $xe4[] = array("attribute" => $x8d->code, $x8d->condition => $x8d->value); break; } } }; if ($x144($xe4)) $xb2->addFieldToFilter($xe4); $xb2->getSelect()->joinLeft($xa7 . ' 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 ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url', 'url.value_id=url_key.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url', 'url.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xb2->getSelect()->joinLeft($xad . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); $xe8 = null; if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xe8 = "OR (categories_index.category_id=categories_parent.category_id AND categories_index.product_id=categories_parent.product_id )"; if ($x72[0] != '*') { $x47 = 0; $xe9 = null; foreach ($x72 as $x74) { if ($x47 > 0) $xe9.=','; $xe9.=$x15b($x146('/', $x74)); $x47++; } ($x6a) ? $xea = "IN" : $xea = "NOT IN"; if ($x156(Mage::getVersion(), '1.12.0', '<=')) { $xe9 = " AND categories_index.category_id " . $xea . " (" . $xe9 . ")"; $xb2->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id', array()); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xb2->getSelect()->joinLeft($x87 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $xb2->getSelect()->joinInner($xab . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xe8 . ') AND categories_index.store_id=' . $x53 . ' ' . $xe9, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { $xe9 = " AND categories.category_id " . $xea . " (" . $xe9 . ")"; $xb2->getSelect()->joinInner($x87 . ' AS categories', 'categories.product_id=e.entity_id ' . $xe9, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { $xb2->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xb2->getSelect()->joinLeft($x87 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $xb2->getSelect()->joinLeft($xab . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xe8 . ') AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($x156(Mage::getVersion(), '1.4.0', '>=')) $xb2->getSelect()->joinLeft($xac . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xd3, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xe3)) $xb2->getSelect()->where($xe3); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request:
" . $xb2->getSelect(), null, $this->getFilename('.log')); if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>"; } $xb3 = 0; $xb4 = clone $xb2; $xb4->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total")->group('e.entity_type_id'); $this->_counter = $xb4->getFirstItem()->getTotal(); $xb6 = $x158($this->_counter / $this->_sqlSize); $x79 = ''; $xeb = 1; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xb6 queries )", null, $this->getFilename('.log')); $x4d = $this->x16b($x4d, null, $x62, true); if ($x62 == 1) $x4d = $this->x16f($x4d); if ($this->_display) { if ($x62 == 1) { $x7a = $this->x16e($x4d, $x67, $x68) . ""; } else { $x7a = $this->x16b($x63) . '<br>'; $x7a.= "<table style='border:2px solid grey; font-family:arial; font-size:12px' cellspacing=0 cellpadding width='100%'>"; if ($x65) { $x7a.=$this->x170($x4d, true); } } } else { if ($x62 == 1) { $x29->streamWrite($this->x16e($x4d, $x67, $x68) . ""); } else { if ($x63 != '') $x29->streamWrite($this->x16f($this->x16b($x63) . "
")); if ($x65) { $xec = $this->x171($x4d, $x48, $x49, $x4a); $xec = $this->x16f($xec); $x29->streamWrite($xec); } } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Header template parsed and added", null, $this->getFilename('.log')); $xb2->getSelect()->group(array('e.entity_id'))->order('e.entity_id'); while ($xb3 < $xb6) { $xb7 = clone $xb2; if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>"; print($xb7->getSelect()); } $xb7->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xb3)); $xb3++; if ($this->_sqlSize * $xb3 > $this->_counter) $xb8 = $this->_counter; else $xb8 = $this->_sqlSize * $xb3; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->_sqlSize * ($xb3 - 1) + 1) . " to " . $xb8, null, $this->getFilename('.log')); $xde = 1; foreach ($xb7 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>"; echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x5e . "<br>"; foreach ($x146(',', $product->getCategoriesIds()) as $x27 => $x80) { echo $x80 . "=>" . $x50[$x80]["path"] . "<br>"; } } if (!$x15c('safe_mode')) { $x15d(60); } $x3b = $x60; foreach ($x7c as $x27 => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $x9f = 1; $xed = array(); foreach ($exp['options'] as $x27 => $option) { if (isset($xdd[$product->getId()][$option])) { $x9f = $x9f * $x144($xdd[$product->getId()][$option]["options"]); $xed[$x27] = 0;
} } $x25 = array(); for ($x99 = 1; $x99 <= $x9f; $x99++) { $xee = $x3b; foreach ($exp['options'] as $x27 => $option) { if (isset($xdd[$product->getId()][$option])) { $xee = $x13c("{" . $option . "_label}", $xdd[$product->getId()][$option]["options"][$xed[$x27]]['value'], $xee); $xee = $x13c("{" . $option . "_sku}", $xdd[$product->getId()][$option]["options"][$xed[$x27]]['sku'], $xee); $xee = $x13c("{" . $option . "_price}", $xdd[$product->getId()][$option]["options"][$xed[$x27]]['price'], $xee); $xee = $x13c("{" . $option . "_type}", $xdd[$product->getId()][$option]["options"][$xed[$x27]]['price_type'], $xee); if ($x27 > 0 || $x144($xdd[$product->getId()]) == 1 || $x144($exp['options']) < 2) $xed[$x27] ++; if ($xed[$x27] >= $x144($xdd[$product->getId()][$option]["options"])) { $xed[$x27] = 0; $xed[$x27 - 1] ++; } } } $x25[] = $xee; } if ($x144($x25) > 0) { if ($x62 == 1) $x3b = $x13a($x25); else $x3b = "[" . $x13a(',', $x25) . "]"; } $this->skipOptions($x144($exp['options'])); break; case '{use_options}': foreach ($exp['options'] as $x27 => $option) { if (isset($xdd[$product->getId()][$option])) { $xef = array(); $xf0 = array(); $xf1 = array(); foreach ($xdd[$product->getId()][$option]["options"] as $x3f) { $xef[] = $x3f['value']; $xf0[] = $x3f['sku']; $xf1[] = $x3f['price']; } $x3b = $x13c("{" . $option . "_label}", $x13a(',', $xef), $x3b); $x3b = $x13c("{" . $option . "_sku}", $x13a(',', $xf0), $x3b); $x3b = $x13c("{" . $option . "_price}", $x13a(',', $xf1), $x3b); } } $this->skipOptions($x144($exp['options'])); break; case '{id}' : $xf2 = $this->checkReference($exp['reference'], $product); $value = $xf2->getId(); break; case '{inc}' : $value = $xeb; break; case '{status}': $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x66 = "Enabled" : $x66 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xf3 = "Disabled" : $xf3 = $exp['options'][1]; if ($xf2->getStatus() == 2) $value = $xf3; else $value = $x66; $this->skipOptions(2); break; case '{attribute_set}': $xf2 = $this->checkReference($exp['reference'], $product); $value = $xd1[$xf2->getAttributeSetId()]; break; case "{relationship}": $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xf4 = ', ' : $xf4 = $exp['options'][0]; if (isset($xc9[$xf2->getId()])) { $value = $x13c(">>>", $xf4, $xc9[$xf2->getId()]); } $this->skipOptions(1); break; case '{final_price}' : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = $xf2->getFinalePrice(); (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = $xf2->getMinPrice(); (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = $xf2->getMaxPrice(); (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->type_id == 'bundle') $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0];
$value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{price}' : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xf2->type_id == "bundle") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bundle") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xf2->getSpecialToDate()) { if ($xf2->type_id == "bundle") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bundle") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } else { if ($xf2->type_id == "bundle") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp["options"][0])) ? $x32 = $x57 : $x32 = $exp["options"][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, ".", ""); $this->skipOptions(2); break; case "{is_special_price}" : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp["options"][0])) ? $xf7 = 1 : $xf7 = $exp["options"][0]; (!isset($exp["options"][1])) ? $xf8 = 0 : $xf8 = $exp["options"][1]; if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xf2->type_id == "bundle") (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0 ) ? $value = $xf7 : $value = $xf8; else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $value = $xf7 : $value = $xf8; } } else { if ($xf2->type_id == "bundle") $value = $xf8; else { $value = $xf8; } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xf2->getSpecialToDate()) { if ($xf2->type_id == "bundle") (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0 ) ? $value = $xf7 : $value = $xf8; else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $value = $xf7 : $value = $xf8; } } else { if ($xf2->type_id == "bundle") $value = $xf8; else { $value = $xf8; } } } else { if ($xf2->type_id == "bundle") (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0 ) ? $value = $xf7 : $value = $xf8; else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $value = $xf7 : $value = $xf8; } } $this->skipOptions(2); break; case "{special_price}" : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = null; if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xf2->type_id == 'bundle') { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xf2->getSpecialToDate()) { if ($xf2->type_id == 'bundle') { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } } } else { if ($xf2->type_id == 'bundle') { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($x31 > 0) { if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $xf2 = $this->checkReference($exp['reference'], $product); $x53 = $this->getStoreId(); $xf9 = Mage::getResourceModel('catalogrule/rule'); $xfa = Mage::app()->getLocale()->storeTimeStamp($x53); $xfb = Mage::app()->getStore($x53); $xd3 = $xfb->getWebsiteId(); $xfc = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xfd = $xf9->getRulePrice($xfa, $xd3, $xfc, $xf2->getId()); if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xf2->type_id == "bundle") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bundle") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xf2->getSpecialToDate()) { if ($xf2->type_id == "bundle") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bundle") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } else { if ($xf2->type_id == "bundle") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } if ($xfd !== FALSE) { if ($xfd < $x31) $value = $xfd; else $value = $x31; } else $value = $x31;
if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; $value = $this->x16d($value, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp["options"][0])) ? $x32 = $x57 : $x32 = $exp["options"][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, ".", ""); $this->skipOptions(2); break; case '{group_price}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfe = 0 : $xfe = $exp['options'][0]; $xf2->setCustomerGroupId($xfe); $xff = $xf2->getGroupPrice(); if ($x144($xff) == 1) { $x31 = $xff; } else { $x31 = $xff[0]['price']; } if ($x31 > 0) { if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } (!isset($exp['options'][2])) ? $x36 = false : $x36 = $exp['options'][2]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][1])) ? $x32 = $x57 : $x32 = $exp['options'][1]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfe = 32000 : $xfe = $exp['options'][0]; if ($xfe == "*") $xfe = 32000; (!isset($exp['options'][1])) ? $x100 = 0 : $x100 = $exp['options'][1]; $xd5 = $this->_tierPrices[$xf2->getId()]; if ($x100 < 0) { $x100 = $x15e($x100) - 1; $xd5[$xfe] = $x15f($xd5[$xfe]); } $x31 = $xd5[$xfe][$x100]['value']; if ($x31 > 0) { if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } (!isset($exp['options'][3])) ? $x36 = false : $x36 = $exp['options'][3]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][2])) ? $x32 = $x57 : $x32 = $exp['options'][2]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price_qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfe = 0 : $xfe = $exp['options'][0]; if ($xfe == "*") $xfe = 32000; $xd5 = $this->_tierPrices[$xf2->getId()]; (!isset($exp['options'][1])) ? $x100 = 0 : $x100 = $exp['options'][1]; if ($x100 < 0) { $x100 = $x15e($x100) - 1; $xd5[$xfe] = $x15f($xd5[$xfe]); } $x101 = $xd5[$xfe][$x100]['qty']; if ($x101 > 0) $value = $x101; $this->skipOptions(2); break; case "{G:SALE_PRICE}" : $xf2 = $this->checkReference($exp['reference'], $product); $x102 = Mage::getSingleton('core/date')->getGmtOffset("hours"); if ($x102 > 0) { $x103 = "+"; $x104 = $x160($x15e($x161($x102)), 2, 0, STR_PAD_LEFT) . ':' . $x160(($x15e($x102) - $x161($x15e($x102))) * 60, 2, 0, STR_PAD_LEFT); } else { $x103 = ""; $x104 = '-' . $x160($x15e($x161($x102)), 2, 0, STR_PAD_LEFT) . ':' . $x160(($x15e($x102) - $x161($x15e($x102))) * 60, 2, 0, STR_PAD_LEFT); } $x105 = $x147($x13c(' ', 'T', $xf2->getSpecialFromDate()), 0, -3); $x106 = $x147($x13c(' ', 'T', $x13c("00::00", "23:59:59", $xf2->getSpecialToDate())), 0, -3); if ($xf2->type_id == 'bundle' && $xf2->special_price) { if ($xf2->price_type) { $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, ".", ""); } else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($x31 > 0) { if ($xf2->getTypeId() == "configurable") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["is_percent"]) { $xf5+=( $xf6["pricing_value"] / 100) * $x31; } else $xf5+=$xf6["pricing_value"]; }; $x31+=$xf5; } } $x31 = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $x31 = $this->x16c($x31, $x32); $x31 = $x143($x31, 2, '.', ''); ; } if ($x31 > 0) { $value = "<g:sale_price><![CDATA[" . $x31 . " " . $x32 . "]]></g:sale_price>
"; } if ($x31 > 0 && $x106) { $value.="<g:sale_price_effective_date><![CDATA[" . $x105 . $x103 . $x104 . "/" . $x106 . $x103 . $x104 . "]]></g:sale_price_effective_date>
"; } $this->skipOptions(2); break; case "{image}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xf2->getImage() && $xf2->getImage() != 'no_selection') { $x108 = 'catalog/product/' . $xf2->getImage(); $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); } else { $value = $x5c . '/catalog/product/placeholder/' . $x56; } } elseif (isset($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1] != $x107) { $x108 = 'catalog/product/' . $xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]; $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); } } $this->skipOptions(1); break; case "{G:IMAGE_LINK}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getImage(); $x109 = array($xf2->getSmall_image(), $xf2->getThumbnail()); $x10a = '';
$xed = 0; if ($xf2->getImage() && $xf2->getImage() != 'no_selection') { $x108 = 'catalog/product/' . $xf2->getImage(); $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); $x10a.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xed++; } $x10b = 0; while (isset($xa6[$xf2->getId()]['src'][$x10b]) && $xed < 10) { if ($xa6[$xf2->getId()]['src'][$x10b] != $x107) { if ($x157($xa6[$xf2->getId()]['src'][$x10b], $x109) || $xa6[$xf2->getId()]['disabled'][$x10b] != 1) { $x108 = 'catalog/product/' . $xa6[$xf2->getId()]['src'][$x10b]; $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); $x10a.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xed++; } } $x10b++; } $value = $x10a; break; case "{url}" : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $x10c = $x146(",", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x5b . $x15b($x10c); } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $x10c = $x146(",", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x5b . $x163($x10c); } else $value = $x5b . $xf2->getRequest_path(); } else { $value = $xf2->getProductUrl(); } $value = $x13c('https', 'http', $value); break; case "{host}" : $value = $x5b; break; case "{uri}" : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $x10c = $x146(",", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x15b($x10c); } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $x10c = $x146(",", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x163($x10c); } else $value = $xf2->getRequest_path(); } else { $value = $x13c($x5b, '', $xf2->getProductUrl()); } $value = $x13c('https', 'http', $value); break; case '{is_in_stock}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x10d = 'in stock' : $x10d = $exp['options'][0]; (!isset($exp['options'][1])) ? $x10e = "out of stock" : $x10e = $exp['options'][1]; (!isset($exp['options'][2])) ? $x10f = "available for order" : $x10f = $exp['options'][2]; if (($xf2->getManageStock() && !$xf2->getUseConfigManageStock() && !$x58) || ($xf2->getUseConfigManageStock() && $x58 ) || ($xf2->getManageStock() && !$xf2->getUseConfigManageStock())) { if ($xf2->getIsInStock() > 0) { if ($product->type_id == "configurable") $x101 = $xbd[$product->getId()]; else $x101 = $xf2->getQty(); if ($x101 > 0) { $value = $x10d; } else { if ($xf2->getBackorders() || ($xf2->getUseConfigBackorders() && $x59)) { $value = $x10f; } else { $value = $x10e; } } } else $value = $x10e; } else { $value = $x10d; } $this->skipOptions(3); break; case '{stock_status}' : $xf2 = $this->checkReference($exp['reference'], $product); ($xf2->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{min_qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; $value = $x143($xf2->getMinQty(), $x110, '.', ''); $this->skipOptions(1); break; case '{min_sale_qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; $value = $x143($xf2->getMinSaleQty(), $x110, '.', ''); $this->skipOptions(1); break; case '{qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; if ($product->type_id == "configurable") { $value = $xbd[$product->getId()]; $value = $x143($value, $x110, '.', ''); } else if ($exp['reference'] == "configurable") { $value = $x143($xbd[$xf2->getId()], $x110, '.', ''); } else { $value = $x143($xf2->getQty(), $x110, '.', ''); } $this->skipOptions(1); break; case "{categories_v1}" : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x113 = INF : $x113 = $exp['options'][2]; $x114 = 0; $value = ''; $x115 = ''; foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157($x50[$x80]["path"], $x72) : $x116 = !$x157($x50[$x80]["path"], $x72); if (isset($x50[$x80]) && $x114 < $x111 && ($x116 || $x72[0] == "*")) { $x117 = 0; $x118 = $x146('/', $x50[$x80]["path"]); if ($x157($x5e, $x118)) { $x119 = ""; if ($x114 > 0) $x115 = ","; foreach ($x118 as $x11a) { if (isset($x50[$x11a])) { if ($x50[$x11a]['level'] > $x112 && $x117 < $x113) { if ($x117 > 0) $x119.='>'; $x119.=($x50[$x11a]['name']); $x117++; } } } $x11b = ""; if (!empty($x119)) { $value.=$x115 . $x119 . $x11b; $x114++; } } } }; $this->skipOptions(3); break; case "{categories}" : $x11c = null; $x111 = INF; $x112 = 1; $x11d = INF; $xf4 = ', '; $x11e = " > "; if ($x144($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x11c = "last" : $x11c = $exp['options'][0]; $x111 = 1;
} elseif ($x144($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xf4 = ', ' : $xf4 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x11e = " > " : $x11e = $exp['options'][1]; } elseif ($x144($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x11d = INF : $x11d = $exp['options'][2]; (!isset($exp['options'][3])) ? $xf4 = ', ' : $xf4 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x11e = " > " : $x11e = $exp['options'][4]; } $xf2 = $this->checkReference($exp['reference'], $product); $x108 = 0; $x11f = array(); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157(@$x50[$x80]["path"], $x72) : $x116 = !$x157(@$x50[$x80]["path"], $x72); if (isset($x50[$x80]) && ($x116 || $x72[0] == "*")) { $x108++; $x11f[$x108] = array(); $x118 = $x146('/', $x50[$x80]["path"]); if ($x157($x5e, $x118)) { foreach ($x118 as $x11a) { if (isset($x50[$x11a]) && $x50[$x11a]['name'] != null) { $x11f[$x108][] = ($x50[$x11a]['name']); } } } } } $x120 = array(); $x162($x11f, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x11c == "last") $x11f = $x15f($x11f); $xf2->setCategoriesArray($x11f); $x121 = 0; foreach ($x11f as $x27 => $x117) { if ($x121 < $x111) { foreach ($x117 as $x122 => $x123) { if ($x122 >= $x112 && $x122 <= $x11d) { if (!isset($x120[$x121])) $x120[$x121] = array(); $x120[$x121][] .= $x123; } } if ($x144($x120[$x121])) $x121++; } }; $value = null; foreach ($x164($x120) as $x27 => $x124) { if ($x27 > 0) $value.=$xf4; $value.=$x13a($x11e, $x124); } $this->skipOptions($x144($exp['options'])); break; case "{categories_url}" : $x11c = null; $x111 = INF; $x112 = 1; $x11d = INF; $xf4 = ', '; $x11e = " > "; if ($x144($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x11c = "last" : $x11c = $exp['options'][0]; $x111 = 1; } elseif ($x144($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xf4 = ', ' : $xf4 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x11e = " > " : $x11e = $exp['options'][1]; } elseif ($x144($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x11d = INF : $x11d = $exp['options'][2]; (!isset($exp['options'][3])) ? $xf4 = ', ' : $xf4 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x11e = " > " : $x11e = $exp['options'][4]; } $xf2 = $this->checkReference($exp['reference'], $product); $x108 = 0; $x11f = array(); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157(@$x50[$x80]["path"], $x72) : $x116 = !$x157(@$x50[$x80]["path"], $x72); if (isset($x50[$x80]) && ($x116 || $x72[0] == "*")) { $x108++; $x11f[$x108] = array(); $x118 = $x146('/', $x50[$x80]["path"]); if ($x157($x5e, $x118)) { foreach ($x118 as $x11a) { if (isset($x50[$x11a]) && $x50[$x11a]['url'] != null) { $x11f[$x108][] = ($x50[$x11a]['url']); } } } } } $x120 = array(); $x162($x11f, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x11c == "last") $x11f = $x15f($x11f); $xf2->setCategoriesArray($x11f); $x121 = 0; foreach ($x11f as $x27 => $x117) { if ($x121 < $x111) { foreach ($x117 as $x122 => $x123) { if ($x122 >= $x112 && $x122 <= $x11d) { if (!isset($x120[$x121])) $x120[$x121] = array(); $x120[$x121][] .= $x123; } } if ($x144($x120[$x121])) $x121++; } }; $value = null; foreach ($x164($x120) as $x27 => $x124) { if ($x27 > 0) $value.=$xf4; $value.=$x13a($x11e, $x124); } $this->skipOptions($x144($exp['options'])); break; case "{G:PRODUCT_TYPE_v1}" : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x113 = INF : $x113 = $exp['options'][2]; $x114 = 0; $value = ''; foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157($x50[$x80]["path"], $x72) : $x116 = !$x157($x50[$x80]["path"], $x72); if (@$x50[$x80]["include_in_menu"] && isset($x50[$x80]) && $x114 < $x111 && ($x116 || $x72[0] == "*")) { $x117 = 0; $x118 = $x146('/', $x50[$x80]["path"]); if ($x157($x5e, $x118)) { $x119 = ''; $x115 = '<g:product_type><![CDATA['; foreach ($x118 as $x11a) { if (isset($x50[$x11a])) { if ($x50[$x11a]['level'] > $x112 && $x117 < $x113) { if ($x117 > 0) $x119.=' > '; $x119.=($x50[$x11a]['name']); $x117++; } } } $x11b = "]]></g:product_type>
"; if (!empty($x119)) { $value.=$x115 . $x119 . $x11b; $x114++; } } } }; $this->skipOptions(3); break; case "{G:PRODUCT_TYPE}" : $xf4 = "]]></g:product_type>
<g:product_type><![CDATA["; $x11e = " > "; (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x11d = INF : $x11d = $exp['options'][2]; $xf2 = $this->checkReference($exp['reference'], $product); $x108 = 0; $x11f = array(); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157(@$x50[$x80]["path"], $x72) : $x116 = !$x157(@$x50[$x80]["path"], $x72); if (isset($x50[$x80]) && ($x116 || $x72[0] == "*")) { $x108++; $x11f[$x108] = array(); $x118 = $x146('/', $x50[$x80]["path"]); if ($x157($x5e, $x118)) { foreach ($x118 as $x11a) { if (isset($x50[$x11a]) && $x50[$x11a]['name'] != null) { $x11f[$x108][] = ($x50[$x11a]['name']); } } } } } $x120 = array();
$x162($x11f, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); foreach ($x11f as $x27 => $x117) { if ($x27 < $x111) foreach ($x117 as $x122 => $x123) { if ($x122 >= $x112 && $x122 <= $x11d) { if (!isset($x120[$x27])) $x120[$x27] = array(); $x120[$x27][] .= $x123; } } }; $value = null; foreach ($x164($x120) as $x27 => $x124) { if ($x27 > 0) $value.=$xf4; $value.=$x13a($x11e, $x124); } if (($x120)) $value = "<g:product_type><![CDATA[" . $value . "]]></g:product_type>
"; $this->skipOptions($x144($exp['options'])); break; case "{G:GOOGLE_PRODUCT_CATEGORY}" : $x125 = array(); (!isset($exp['options'][0])) ? $x11c = "longest" : $x11c = $exp['options'][0]; $xf2 = $this->checkReference($exp['reference'], $product); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { if (isset($x50[$x80]["path"]) && isset($x73[$x50[$x80]["path"]])) { $x125[] = $x73[$x50[$x80]["path"]]; } } $x162($x125, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); if ($x11c == "shortest") $x125 = $x15f($x125); $x126 = $x163($x125); if ($x126 != "") $value = "<g:google_product_category><![CDATA[" . $x126 . "]]></g:google_product_category>
"; $this->skipOptions(1); break; case "{category_mapping}" : (isset($exp["options"][0])) ? $x127 = $exp["options"][0] : $x127 = 0; $value = ""; $xf2 = $this->checkReference($exp['reference'], $product); $x128 = 0; foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { if (isset($x73[$x50[$x80]["path"]])) { if ($x128 == $x127) { $value.=$x73[$x50[$x80]["path"]]; break; } $x128++; } } $this->skipOptions(1); break; case "{review_count}": $xf2 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x129 = 0 : $x129 = $x53; if (isset($xa0[$xf2->getId()][$x129]["count"])) { $x12a = $xa0[$xf2->getId()][$x129]["count"]; if (isset($x12a)) $value.=$x12a; } $this->skipOptions(1); break; case "{review_average}": $xf2 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x129 = 0 : $x129 = $x53; (!isset($exp["options"][1]) || !$exp["options"][1]) ? $x12b = 5 : $x12b = $exp["options"][1]; if (isset($xa0[$xf2->getId()][$x129]["score"])) { $x12c = $x143($xa0[$xf2->getId()][$x129]["score"] * $x12b / 100, 2, ".", ""); if (isset($x12c)) $value.=$x12c; } $this->skipOptions(2); break; case "{G:PRODUCT_REVIEW}" : $xf2 = $this->checkReference($exp['reference'], $product); (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $x129 = 0 : $x129 = $x53; (!isset($exp["options"][1]) || !$exp["options"][1]) ? $x12b = 5 : $x12b = $exp["options"][1]; $value = ""; if (isset($xa0[$xf2->getId()][$x129]["count"])) { $x12a = $xa0[$xf2->getId()][$x129]["count"]; $x12c = $x143($xa0[$xf2->getId()][$x129]["score"] * $x12b / 100, 2, ".", ""); } if (isset($x12c) && $x12c > 0) { $value.="<g:product_review_average><![CDATA[" . $x12c . "]]></g:product_review_average>
"; } if (isset($x12a) && $x12a > 0) { $value.="<g:product_review_count><![CDATA[" . $x12a . "]]></g:product_review_count>
"; } unset($x12c); unset($x12a); break; case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $xf2 = $this->checkReference('configurable', $product); $value = "<g:item_group_id><![CDATA[" . $xf2->getSku() . "]]></g:item_group_id>"; } break; case "{SC:EAN}" : ($x145($exp['options'][0]) && $exp['options'][0] > 0) ? $x12d = $exp['options'][0] : $x12d = 0; $xf2 = $this->checkReference($exp['reference'], $product); $value = $x146(',', $xf2->getEan()); $value = "<g:ean><![CDATA[" . $value[$x12d] . "]]></g:ean>"; break; case "{sc:ean}" : ($x145($exp['options'][0]) && $exp['options'][0] > 0) ? $x12d = $exp['options'][0] : $x12d = 0; $xf2 = $this->checkReference($exp['reference'], $product); $value = $x146(',', $xf2->getEan()); $value = $value[$x12d]; break; case "{SC:IMAGES}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getSmall_image(); $x109 = array($xf2->getImage(), $xf2->getThumbnail()); $x10a = ''; $xed = 0; if ($xf2->getSmall_image() && $xf2->getSmall_image() != 'no_selection') { $x108 = $xf2->getSmall_image(); $value = $x108; $x10a.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xed++; } $x10b = 0; while (isset($xa6[$xf2->getId()]['src'][$x10b]) && $xed < 10) { if ($xa6[$xf2->getId()]['src'][$x10b] != $x107) { if ($x157($xa6[$xf2->getId()]['src'][$x10b], $x109) || $xa6[$xf2->getId()]['disabled'][$x10b] != 1) { $x108 = $xa6[$xf2->getId()]['src'][$x10b]; $value = $x108; $x10a.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xed++; } } $x10b++; } $value = $x10a; break; case "{sc:images}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getSmall_image(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xf2->getSmall_image() && $xf2->getSmall_image() != 'no_selection') { $x108 = $xf2->getSmall_image(); $value = $x108; } else { $value = $x5c . '/catalog/product/placeholder/' . $x56; } } elseif (isset($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1] != $x107) { $x108 = 'catalog/product/' . $xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]; $value = $x5c . $x13c('//', '/', $x108); } } $this->skipOptions(1); break; case "{SC:DESCRIPTION}" : $xf2 = $this->checkReference($exp['reference'], $product); $xec = $xf2->getDescription() . $xf2->getShortDescription(); $x12e = "|<iframe(.*)</iframe>|U"; $x13f($x12e, $xec, $x12f); if ($x12f) { $xec = $xf2->getAttributeText('manufacturer') . " " . $xf2->getName() . " - Part number: " . $xf2->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x157("strip_tags", $exp['options'])) { $xec = $x14b('!\<br /\>!isU', " ", $xec);
$xec = $x14b('!\<br/\>!isU', " ", $xec); $xec = $x14b('!\<br>!isU', " ", $xec); $xec = $x165($xec); } if ($x157("html_entity_decode", $exp['options'])) { $xec = $x14a($xec, ENT_QUOTES, 'UTF-8'); } if ($x157("htmlentities", $exp['options'])) { $xec = $x166(($xec)); } if ($x139($xec) > 900) { $xec = $x147($xec, 0, 900 - 3); $x130 = $x167($xec, " "); $xec = $x147($xec, 0, $x130) . '...'; } } if ($xec == null) $xec = $xf2->getAttributeText('manufacturer') . " " . $xf2->getName() . " - Part number: " . $xf2->getSku() . " - Category : {categories,[1],[1],[1]}"; $xec = $x14b('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xec); $xec = $x13c('', '', $xec); $value = "<description><![CDATA[" . $xec . "]]></description>"; $exp['options'] = array(); break; case "{sc:description}" : $xf2 = $this->checkReference($exp['reference'], $product); $xec = $xf2->getDescription() . $xf2->getShortDescription(); $x12e = "|<iframe(.*)</iframe>|U"; $x13f($x12e, $xec, $x12f); if ($x12f) { $xec = $xf2->getAttributeText('manufacturer') . " " . $xf2->getName() . " - Part number: " . $xf2->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x157("strip_tags", $exp['options'])) { $xec = $x14b('!\<br /\>!isU', " ", $xec); $xec = $x14b('!\<br/\>!isU', " ", $xec); $xec = $x14b('!\<br>!isU', " ", $xec); $xec = $x165($xec); } if ($x157("html_entity_decode", $exp['options'])) { $xec = $x14a($xec, ENT_QUOTES, 'UTF-8'); } if ($x157("htmlentities", $exp['options'])) { $xec = $x166(($xec)); } if ($x139($xec) > 900) { $xec = $x147($xec, 0, 900 - 3); $x130 = $x167($xec, " "); $xec = $x147($xec, 0, $x130) . '...'; } } if ($xec == null) $xec = $xf2->getAttributeText('manufacturer') . " " . $xf2->getName() . " - Part number: " . $xf2->getSku() . " - Category : {categories,[1],[1],[1]}"; $xec = $x14b('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xec); $xec = $x13c('', '', $xec); $value = $xec; $exp['options'] = array(); break; case "{SC:URL}" : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getRequest_path()) { $value = "<link><![CDATA[" . $x5b . $xf2->getRequest_path() . "]]></link>"; } else { $value = "<link><![CDATA[" . $xf2->getProductUrl() . "]]></link>"; } break; case "{sc:url}" : (isset($exp['options'][0])) ? $x131 = $exp['options'][0] : $x131 = ""; (isset($exp['options'][1])) ? $x100 = $exp['options'][1] : $x100 = ""; $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getUrlKey()) { $value = $x5b . $x100 . $xf2->getRequest_path() . $x131; } else { $value = $xf2->getProductUrl(); } break; case "{SC:CONDITION}" : $xf2 = $this->checkReference($exp['reference'], $product); ($x14f($xf2->getName(), "refurbished")) ? $xe2 = 'refurbished' : $xe2 = 'new'; $value = "<g:condition><![CDATA[" . $xe2 . "]]></g:condition>"; break; case "{sc:condition}" : $xf2 = $this->checkReference($exp['reference'], $product); ($x14f($xf2->getName(), "refurbished")) ? $xe2 = 'refurbished' : $xe2 = 'new'; $value = $xe2; break; default : $xf2 = $this->checkReference($exp['reference'], $product); if ($x157($exp['name'], $x8a)) { if ($x157($x8b[$exp['name']], array('select', 'multiselect'))) { eval('$x133 =($xf2->' . $exp['methodName'] . ");"); $x132 = $x146(',', $x133); if ($x144($x132) > 1) { $value = array(); foreach ($x132 as $x47) { if (isset($x91[$x47][$x53])) $value[] = $x91[$x47][$x53]; else { if (isset($x91[$x47][0])) $value[] = $x91[$x47][0]; } } } else { if (isset($x91[$x132[0]][$x53])) { $value = $x91[$x132[0]][$x53]; } else { if (isset($x91[$x132[0]][0])) $value = $x91[$x132[0]][0]; } } } else { eval('$value =($xf2->' . $exp['methodName'] . ");"); } } if ($x157(@$x88[$exp['name']], $x88)) { $value = $x88[$exp['name']]; } $value = $xe1->_eval($product, $exp, $value); if ($x168($value) && !$value) continue 3; break; } if ($x144($exp['options']) > 0) { foreach ($exp['options'] as $x27 => $option) { if ($x27 >= $this->option) { switch ($exp['options'][$this->option]) { case "substr" : if (isset($exp['options'][$this->option + 1]) && $x139($value) > $exp['options'][$this->option + 1]) { $value = $x147($value, 0, $exp['options'][$this->option + 1] - 3); $x130 = $x167($value, " "); $value = $x147($value, 0, $x130) . $exp['options'][$this->option + 2]; } $this->skipOptions(3); break; case "strip_tags" : $x134 = " "; $value = $x14b('!\<br /\>!isU', $x134, $value); $value = $x14b('!\<br/\>!isU', $x134, $value); $value = $x14b('!\<br>!isU', $x134, $value); $value = $x165($value); $this->skipOptions(1); break; case "htmlentities" : $value = $x166(($value)); $this->skipOptions(1); break; case "implode" : $value = ($x14d($value)) ? $x13a($exp['options'][$this->option + 1], $value) : $value; $this->skipOptions(2); break; case "float" : $value = $x143($value, $exp['options'][$this->option + 1], '.', ''); $this->skipOptions(2); break; case "html_entity_decode" : $value = $x14a($value, ENT_QUOTES, 'UTF-8'); $this->skipOptions(1); break; case "inline": $value = $x14b('/(
|
|
|
)/s', ' ', $value); $this->skipOptions(1); break; case "strtolower": $value = $x169($value, "UTF8"); $this->skipOptions(1); break; case "strtoupper": $value = $x16a($value, "UTF8"); $this->skipOptions(1); break; case "cleaner": $value = $x14b('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $value); $value = $x13c('', '', $value);
$this->skipOptions(1); break; default : $xe0->option = $this->option; $value = $xe0->_eval($product, $exp, $value); $this->option = $xe0->option; if ($x168($value) && !$value) continue 3; break; } } } } if ($x62 > 1 && !$this->_display) $value = $this->x172($value, $x49, $x4a); $value = $x13c(array("<", ">", '"', '\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $value); if ($x14d($value)) $value = $x13a(",", $value); if ($value != "") $x3b = $x13c($exp['fullpattern'], $value, $x3b); } foreach ($x7c as $x135) { $x3b = $x13c($x135['fullpattern'], "", $x3b); } $x3b = $this->x16b($x3b, $product, $x62); if ($x62 == 1) { if (!$this->_display) { $x3b = $this->x16f($x3b); $x3b = $this->x16e($x3b, $x67, $x68); } else { $x3b = $this->x16e($x3b, $x67, $x68); } } elseif ($x62 != 1) { if (!$this->_display) { $x3b = $this->x171($x3b, $x48, $x49, $x4a); $x3b = $this->x16f($x3b); } else { $x3b = $this->x170(($x3b), false); } } $x3b = $x13c(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\'), $x3b); if (!empty($x3b)) { if ($x62 == 1) $x79.=$x3b . ""; else $x79.=$x3b . ""; if ($this->_display) { $x7a.=$x79; $x79 = ''; } else { if ($xde % Mage::getStoreConfig("datafeedmanager/system/buffer") == 0) { $x29->streamWrite($x79); unset($x79); $x79 = ''; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . $xeb . "/" . $this->_counter . " items added", null, $this->getFilename('.log')); } } if ($this->_limit && $xde >= $this->_limit) break 2; $xde++; $this->_inc = $xeb; $xeb++; } } } if (!$this->_display) { $x29->streamWrite($x79); if ($x139($x148($x61)) > 1) $x29->streamWrite($x61 . "
"); if ($x64 != '') $x29->streamWrite($this->x16b($x64, null)); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($xeb - 1) . "/" . $this->_counter . " items added", null, $this->getFilename('.log')); } else { $x7a.=$x79; $x7a.=$x61 . "
"; if ($x62 > 1) $x7a.="</table>"; $x7a.= $this->x16b($x64, null) . '<br>'; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . ($xeb ) . "/" . $this->_counter . " items added", null, $this->getFilename('.log')); } unset($xb7); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Footer template added", null, $this->getFilename('.log')); if ($this->_display && !$this->_debug) { ($x62 == 1 && !Mage::app()->getRequest()->getParam("real_time_preview")) ? $xec = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x7a) . "</textarea>" : $xec = ($x7a); if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
<html>
<head>
<title>" . $this->getFeedName() . "</title>
<link rel='stylesheet' href='" . $x5a . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
<link rel='stylesheet' href='" . $x5a . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>
<script type='text/javascript' src='" . $x5a . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
<script type='text/javascript' src='" . $x5a . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script>
</head>
<body> " . $xec . "
<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 $xec; } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>"; $xec = "<pre>" . $x149($x7a) . "</pre>"; return $xec; } else { $x29->streamClose(); $x29->mv($this->getFilename(), $this->getFilename(false)); $x29->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 ($x6b) { try { $this->x175($x6c, $x71, $x6d, $x6e, $x6f, $x70, $this->getFilename(false)); Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("datafeedmanager")->__("File successfully uploaded on $x6d.")); } catch (Exception $x136) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Ftp error : ") . $x136->getMessage()); } } Mage::dispatchEvent( 'datafeedmanager_after_upload', array('datafeed' => $this) ); } Mage::app()->setCurrentStore(0); return $this; } public function x175($x6c, $x71, $x6d, $x6e, $x6f, $x70, $x137) { $x139="strlen"; $x13a="implode"; $x13b="preg_split"; $x13c="str_replace"; $x13d="utf8_encode"; $x13e="preg_match_all"; $x13f="preg_match"; $x140="rtrim"; $x141="is_null"; $x142="strtotime"; $x143="number_format"; $x144="count"; $x145="is_numeric"; $x146="explode"; $x147="substr"; $x148="trim"; $x149="htmlentities"; $x14a="html_entity_decode"; $x14b="preg_replace"; $x14c="json_decode"; $x14d="is_array"; $x14e="strstr"; $x14f="stristr"; $x150="print_r"; $x151="is_string"; $x152="time"; $x153="ucwords"; $x154="array_push"; $x155="strpos"; $x156="version_compare"; $x157="in_array"; $x158="ceil"; $x159="setType"; $x15a="sprintf"; $x15b="array_pop"; $x15c="ini_get"; $x15d="set_time_limit";
$x15e="abs"; $x15f="array_reverse"; $x160="str_pad"; $x161="floor"; $x162="usort"; $x163="array_shift"; $x164="array_values"; $x165="strip_tags"; $x166="htmlspecialchars"; $x167="strrpos"; $x168="is_bool"; $x169="mb_strtolower"; $x16a="mb_strtoupper"; if ($x6c) $x138 = new Varien_Io_Sftp(); else $x138 = new Varien_Io_Ftp(); try { $x138->open( array( 'host' => $x6d, 'user' => $x6e, 'username' => $x6e, 'password' => $x6f, 'timeout' => '120', 'path' => $x70, 'passive' => !($x71) ) ); $x29 = new Varien_Io_File(); $x29->open(array('path' => $this->getPath())); if (!$x6c && $x138->write($x137, $this->getPath() . $x137)) return true; elseif ($x6c && $x138->write($x70 . $x137, $x29->read($x137))) return true; else return false; $x138->close(); } catch (Exception $x136) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Ftp upload error : ") . $x136->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 $x1e = 25; public function cmp($x1f, $x20) { $x139="s\x74r\154e\156"; $x13a="i\x6d\x70\154o\x64\x65"; $x13b="\160\x72\x65g\137\x73\x70\154i\164"; $x13c="\x73t\162_\x72\x65p\154ac\x65"; $x13d="\165tf\70\x5fe\x6eco\x64\x65"; $x13e="\160\162\x65\x67\x5f\x6d\141\164\x63h_\x61\x6cl"; $x13f="\x70\162\145g\x5f\x6da\164ch"; $x140="rtrim"; $x141="\x69s\x5fn\x75\154l"; $x142="\x73t\162\164\157\x74\151me"; $x143="n\x75\x6d\142\145\162\137\x66\x6f\162m\x61\164"; $x144="\143o\165\156t"; $x145="\151\163\x5f\x6eu\x6d\145\162\151c"; $x146="e\170\160lod\x65"; $x147="\x73\x75b\x73\164\x72"; $x148="\x74\162\151m"; $x149="\150\x74\x6d\154\145nti\164i\145s"; $x14a="\150\x74ml_\145n\164it\171\137\x64e\143\x6f\144\x65"; $x14b="\x70r\x65\x67\137r\x65\x70\154a\x63e"; $x14c="j\163\x6f\156\137d\x65\x63\x6f\x64e"; $x14d="\151\163\x5f\141\x72\x72a\171"; $x14e="\x73t\162\163\x74\x72"; $x14f="s\164\162\151\163\164\x72"; $x150="\x70\162i\156\x74\x5f\162"; $x151="\151\x73\137\x73t\162\151\x6eg"; $x152="\164\151\x6d\x65"; $x153="uc\167\x6f\162\x64s"; $x154="a\162\162\x61y_\x70\x75\x73\150"; $x155="s\164\162\160\157\163"; $x156="v\x65\162s\151on\137c\157\x6dpa\x72e"; $x157="in\x5f\x61\162\x72\x61y"; $x158="\x63e\151l"; $x159="\x73e\x74\124y\x70\x65"; $x15a="spr\151\x6et\x66"; $x15b="\x61rr\141\171_\x70o\x70"; $x15c="\151n\151\x5fg\x65t"; $x15d="\163\x65t_ti\x6de\137lim\x69\164"; $x15e="a\142\x73"; $x15f="array\137r\145\x76\x65r\x73\x65"; $x160="\163t\162\x5f\160\141d"; $x161="f\154\x6fo\x72"; $x162="\x75so\x72\164"; $x163="\x61r\x72ay\x5f\x73\150\151\146\164"; $x164="\x61\162ra\x79\x5f\x76al\x75e\x73"; $x165="\x73\164\x72\151\160\x5f\164\x61\x67\163"; $x166="\150t\x6d\154\x73p\x65\143\151\141\x6c\x63\x68\141\162\x73"; $x167="\163\x74\x72\x72\160\157s"; $x168="i\x73\137bo\157l"; $x169="\x6db_\163\164r\x74\157\154o\x77\145r"; $x16a="\x6db\137\163\164rto\x75\x70\160e\162"; if ($x139($x1f) == $x139($x20)) { return 0; } return ($x139($x1f) < $x139($x20)) ? 1 : -1; } public function cmpArray($x1f, $x20) { $x139="\x73\164\x72l\145\x6e"; $x13a="i\x6dp\x6co\x64e"; $x13b="\x70reg_\x73p\154\151\x74"; $x13c="\x73\x74r\137\162\145\x70lace"; $x13d="\165\x74\x66\70\137\x65\x6e\143\x6f\x64\145"; $x13e="\160\x72\145\x67_\155\x61\164\x63\x68\137\x61\x6cl"; $x13f="pr\x65\147\137m\141t\x63h"; $x140="\x72\164ri\155"; $x141="\x69\163\x5f\x6eu\154\x6c"; $x142="\163\164\162\164o\x74\151\x6de"; $x143="\156u\x6db\x65r\137\x66o\x72\155\x61\x74"; $x144="\x63o\x75nt"; $x145="\x69\163\137\156ume\x72i\x63"; $x146="ex\x70\x6c\157\x64\x65"; $x147="s\x75bstr"; $x148="\164\x72im"; $x149="\x68\x74\155\x6c\x65\x6e\164it\151e\x73"; $x14a="\150t\x6d\x6c_\145n\x74i\164\x79\137\144\x65\143o\x64\145"; $x14b="\160\162\145\x67\137r\x65\x70\154ac\x65"; $x14c="\x6a\x73\x6f\156\x5fde\x63\x6fde"; $x14d="\x69\163\x5f\x61r\x72\141\171"; $x14e="st\x72s\164r"; $x14f="s\164\162i\x73t\x72"; $x150="\160r\151\156t\137r"; $x151="i\x73\137\x73tr\x69ng"; $x152="\164\x69m\x65"; $x153="\x75\143\167\x6f\162\x64s"; $x154="\141\162\162\141y\137\x70\165\163\150"; $x155="\163\164rp\157\163"; $x156="\166\145\x72\163\x69\157\x6e\x5fcom\x70\141\x72e"; $x157="in\137\x61r\x72\x61\171"; $x158="cei\x6c"; $x159="\163\145t\x54\x79\160\145"; $x15a="s\160r\x69n\164\x66"; $x15b="\141\162\162a\171\x5f\160o\160"; $x15c="\151\x6ei_ge\164"; $x15d="s\145\x74\137\164\151\x6de\x5f\154\151\x6d\x69\x74"; $x15e="\x61bs";
$x15f="a\162\x72\x61\x79\x5f\162\145\x76\145\162s\145"; $x160="s\164r\x5f\x70\x61\144"; $x161="\x66\x6coor"; $x162="\x75so\162\164"; $x163="a\x72\x72a\x79\137sh\x69f\164"; $x164="\141\162r\x61\x79\137\166\141lues"; $x165="\163\164ri\x70_\x74a\147\x73"; $x166="\x68\x74\x6d\154s\x70\145c\151a\154\x63\x68a\162\163"; $x167="\x73\164\162\x72\160\x6f\163"; $x168="\x69s_boo\x6c"; $x169="mb\x5f\x73\164\x72\x74\x6f\x6c\157w\145r"; $x16a="\x6d\142\137\163\164rt\157\x75\x70\x70\x65r"; $x139="s\x74r\154e\156"; $x13a="i\x6d\x70\154o\x64\x65"; $x13b="\160\x72\x65g\137\x73\x70\154i\164"; $x13c="\x73t\162_\x72\x65p\154ac\x65"; $x13d="\165tf\70\x5fe\x6eco\x64\x65"; $x13e="\160\162\x65\x67\x5f\x6d\141\164\x63h_\x61\x6cl"; $x13f="\x70\162\145g\x5f\x6da\164ch"; $x140="rtrim"; $x141="\x69s\x5fn\x75\154l"; $x142="\x73t\162\164\157\x74\151me"; $x143="n\x75\x6d\142\145\162\137\x66\x6f\162m\x61\164"; $x144="\143o\165\156t"; $x145="\151\163\x5f\x6eu\x6d\145\162\151c"; $x146="e\170\160lod\x65"; $x147="\x73\x75b\x73\164\x72"; $x148="\x74\162\151m"; $x149="\150\x74\x6d\154\145nti\164i\145s"; $x14a="\150\x74ml_\145n\164it\171\137\x64e\143\x6f\144\x65"; $x14b="\x70r\x65\x67\137r\x65\x70\154a\x63e"; $x14c="j\163\x6f\156\137d\x65\x63\x6f\x64e"; $x14d="\151\163\x5f\141\x72\x72a\171"; $x14e="\x73t\162\163\x74\x72"; $x14f="s\164\162\151\163\164\x72"; $x150="\x70\162i\156\x74\x5f\162"; $x151="\151\x73\137\x73t\162\151\x6eg"; $x152="\164\151\x6d\x65"; $x153="uc\167\x6f\162\x64s"; $x154="a\162\162\x61y_\x70\x75\x73\150"; $x155="s\164\162\160\157\163"; $x156="v\x65\162s\151on\137c\157\x6dpa\x72e"; $x157="in\x5f\x61\162\x72\x61y"; $x158="\x63e\151l"; $x159="\x73e\x74\124y\x70\x65"; $x15a="spr\151\x6et\x66"; $x15b="\x61rr\141\171_\x70o\x70"; $x15c="\151n\151\x5fg\x65t"; $x15d="\163\x65t_ti\x6de\137lim\x69\164"; $x15e="a\142\x73"; $x15f="array\137r\145\x76\x65r\x73\x65"; $x160="\163t\162\x5f\160\141d"; $x161="f\154\x6fo\x72"; $x162="\x75so\x72\164"; $x163="\x61r\x72ay\x5f\x73\150\151\146\164"; $x164="\x61\162ra\x79\x5f\x76al\x75e\x73"; $x165="\x73\164\x72\151\160\x5f\164\x61\x67\163"; $x166="\150t\x6d\154\x73p\x65\143\151\141\x6c\x63\x68\141\162\x73"; $x167="\163\x74\x72\x72\160\157s"; $x168="i\x73\137bo\157l"; $x169="\x6db_\163\164r\x74\157\154o\x77\145r"; $x16a="\x6db\137\163\164rto\x75\x70\160e\162"; if ($x139($x13a('', $x1f)) == $x139($x13a('', $x20))) { return 0; } return ($x139($x13a('', $x1f)) < $x139($x13a('', $x20))) ? -1 : 1; } public function x16b($myPattern, $product, $x21 = true, $x22 = false) { $x139="s\x74\162\154\x65\x6e"; $x13a="\151\155\x70lo\144e"; $x13b="pre\147_sp\x6c\151\164"; $x13c="s\164r\x5f\162\x65\160\x6ca\143\145"; $x13d="\165\164f\70_\x65\x6eco\144\145"; $x13e="\160\x72\145g\x5f\155a\x74c\x68\x5f\141\x6c\154"; $x13f="\x70\x72e\147_\x6d\x61\164ch"; $x140="\x72trim"; $x141="\x69\163\x5f\156\x75\x6c\154"; $x142="\163tr\164\x6fti\x6d\x65"; $x143="\x6e\x75\x6d\142\x65\162\137\146\x6f\x72m\x61\x74"; $x144="co\165\156\x74"; $x145="i\163\137\156u\155\x65\x72\151\x63"; $x146="\x65\170\x70\x6co\x64e"; $x147="\x73\165\x62st\162"; $x148="\164\x72i\x6d"; $x149="\x68\x74\155\x6ce\x6et\151t\x69\145\x73"; $x14a="\150\164\x6d\x6c_\145n\x74\151\x74y_de\x63\x6fde"; $x14b="\160\x72\x65\x67\137\x72\x65\x70\154\x61\x63\x65"; $x14c="\x6a\163\157\156\137\144\x65\143o\144\145"; $x14d="i\x73\x5f\141\162\162\141\171"; $x14e="\x73\164\162\x73\x74\162"; $x14f="\163\x74\x72\151\x73\x74r"; $x150="pr\151\156\x74\137r"; $x151="\x69\x73\137s\164r\x69n\147"; $x152="t\151\155\145"; $x153="\x75c\167o\x72\144s"; $x154="arr\141y\137p\x75s\150"; $x155="\x73\x74\162\160o\x73"; $x156="\166\x65\x72si\157\x6e\x5fcom\160\x61\162\145"; $x157="i\x6e\137\141r\x72\141\x79"; $x158="c\x65\x69l"; $x159="\163\145tType"; $x15a="sp\162i\x6e\x74f"; $x15b="arr\x61\171_\160o\160"; $x15c="\151ni_get";
$x15d="s\145\164\137\x74\151\155\x65\x5f\x6c\151\x6d\x69t"; $x15e="a\x62\163"; $x15f="a\162\x72a\x79_\x72\145v\x65\x72s\x65"; $x160="\x73\164\162\137pad"; $x161="\146lo\157\x72"; $x162="u\163\x6frt"; $x163="ar\x72ay\x5fs\x68i\146\x74"; $x164="\x61\x72\x72\x61y_\166a\154\165\x65\x73"; $x165="\x73\164\162\x69\x70\137\x74a\x67\x73"; $x166="\x68\x74m\x6cspe\143i\x61\154\x63\x68\141rs"; $x167="\x73\x74\x72\x72\160\157s"; $x168="\x69\163\x5fbool"; $x169="mb\x5f\163\x74r\x74\x6f\x6c\x6f\x77e\x72"; $x16a="\155\x62\x5f\x73\164\x72\164oup\160e\162"; if ($x22) { $x23 = $x13b("\x2f\x0a/", $myPattern); $x24 = $x23[0]; $x23[0] = null; $myPattern = $x13a($x23, "\x0a"); } $myPattern = $x13c('<?', $x13d('__PHP__'), $myPattern); $myPattern = $x13c('?>', $x13d('/__PHP__'), $myPattern); $x25 = $x13d('#(__PHP__)(.*?)/\1#s'); $x13e($x25, $myPattern, $x26); if (isset($x26[1])) { foreach ($x26[0] as $x27 => $x28) { if ($x21 == 1) { if (@eval($x26[2][$x27] . '; ')) $myPattern = $x13c($x28, eval($x26[2][$x27] . '; '), $myPattern); else $myPattern = $x13c($x28, '', $myPattern); } else { if (@eval($this->unx172($x26[2][$x27] . '; '))) $myPattern = $x13c($x28, $this->x172(eval($this->unx172($x26[2][$x27]) . '; ')), $myPattern); else $myPattern = $x13c($x28, '', $myPattern); } } } if ($x22) { if ($x21 == 1) return $x24 . "\x0a" . $myPattern; else return $x24; } else return $myPattern; } protected function _construct() { $x139="\163\164\x72\154\145\x6e"; $x13a="\151\155\160\154\157de"; $x13b="\160\x72e\147\137\163p\154i\164"; $x13c="s\x74\x72\137\x72\145\x70la\143e"; $x13d="\165t\x66\70_\145\156\143o\144\x65"; $x13e="\160\162\x65g_\155a\164\x63\x68\x5f\141\x6c\154"; $x13f="\160r\145\x67\137\x6d\x61t\x63\x68"; $x140="r\164r\x69\155"; $x141="\x69\x73_n\165ll"; $x142="s\164\x72to\164\151\x6de"; $x143="nu\155\x62\145\162\x5f\146o\162\x6d\x61\164"; $x144="\x63\157u\156\164"; $x145="\151s\x5f\156umeri\x63"; $x146="\x65xpl\157\x64\x65"; $x147="su\142\x73\164\x72"; $x148="\164r\151\155"; $x149="\150\x74\x6dle\x6e\x74\x69\x74i\x65s"; $x14a="\150\x74m\x6c_en\x74\x69\164\x79\137d\145\143\x6f\144e"; $x14b="pr\x65\x67\137r\145\160\x6c\141\143\x65"; $x14c="\x6a\x73\157\x6e\x5f\144\x65\x63\157\x64\145"; $x14d="is\137\x61\x72\162\141\x79"; $x14e="\163\164\x72\163t\x72"; $x14f="s\164\162\x69st\162"; $x150="p\x72i\x6e\164_\x72"; $x151="\x69\x73_st\162\x69\x6eg"; $x152="t\x69\155\x65"; $x153="\165cw\157r\144s"; $x154="a\162\162\141\171_\x70u\x73\x68"; $x155="\x73\164\x72\x70\x6f\x73"; $x156="\166\145\x72\163\x69\157n\x5fco\x6d\x70\141r\x65"; $x157="\151\x6e_a\162\162\x61\171"; $x158="c\x65\151\154"; $x159="\163\145\164\124y\x70e"; $x15a="\163\x70\x72\x69\156\x74f"; $x15b="\141\162\x72\x61\171\137\160\157\160"; $x15c="\x69\x6e\151\137g\145t"; $x15d="\x73\x65\x74_t\x69\x6de\137\x6cimi\x74"; $x15e="\141\x62\163"; $x15f="a\162\x72\141\x79\137r\x65\166\145\162\163\x65"; $x160="\163\164\x72_\160\x61d"; $x161="\146l\157or"; $x162="\165\163ort"; $x163="\x61r\162\x61\171\137\163\150\151\x66t"; $x164="\x61\162r\141\x79\x5f\x76a\x6c\x75\x65s"; $x165="s\x74r\x69\160\137\x74\141\147s"; $x166="\x68t\155\154\163p\x65\143\151\141\x6c\143h\x61r\x73"; $x167="st\x72\x72po\163"; $x168="\151s_\x62o\157l"; $x169="m\142\137\x73\x74\x72\x74\157l\157we\x72"; $x16a="\155\x62_s\x74rt\x6fup\160\145r"; $this->_sqlSize = Mage::getStoreConfig("\144a\164\x61\146\145\145\144\x6d\x61\x6eag\145r\x2fs\171\x73\x74em/\x73q\154\163\x69z\145"); $this->_init('datafeedmanager/configurations'); } protected function _beforeSave() { $x139="\163\164r\x6c\x65\156"; $x13a="\151\155plod\x65"; $x13b="\160\162e\x67\137\163\x70\154\x69\x74"; $x13c="\x73\x74\162\x5fr\x65\160lac\145"; $x13d="u\x74\x66\70\137\145n\x63\157d\x65"; $x13e="p\x72\x65g_\155\x61\x74c\150\137al\154"; $x13f="p\x72e\147_m\x61\164c\x68"; $x140="r\164r\x69m"; $x141="\151\163_n\165\154\154"; $x142="\x73tr\x74\x6f\x74\x69\x6de"; $x143="n\x75m\142\x65\162\137\146\157r\155\x61\164"; $x144="co\x75\x6e\164"; $x145="\x69s\x5fn\x75\x6d\145\x72\151c"; $x146="\145\170\160\154o\x64e"; $x147="\x73u\142\163\164\x72";
$x148="\x74\162im"; $x149="\150\x74\x6d\x6c\x65n\x74it\151\145\x73"; $x14a="h\x74\155\x6c\137e\x6eti\x74y\137d\x65c\x6f\144\145"; $x14b="p\x72\145\x67\x5fre\160lac\x65"; $x14c="\x6a\163\x6fn_de\x63\157\144\x65"; $x14d="\151\x73\x5f\141r\162\x61\171"; $x14e="\163\x74r\163\x74r"; $x14f="\x73\164\162\x69\163\164\x72"; $x150="pr\x69\156\164_\162"; $x151="\x69\163_\163\164\x72\x69\x6e\147"; $x152="\x74im\145"; $x153="\165\x63w\157\162\144s"; $x154="\141r\162a\171\x5f\x70\x75sh"; $x155="\163t\x72\160\x6fs"; $x156="\166\x65\x72s\151on\x5f\143o\x6dp\141\162e"; $x157="i\156\x5fa\x72\162a\x79"; $x158="\x63ei\x6c"; $x159="s\x65\x74T\171\160e"; $x15a="\163\x70\162\x69\156t\x66"; $x15b="\141r\162\x61\171\137\160o\160"; $x15c="\151\156\x69\137g\x65\164"; $x15d="s\x65\164\x5ft\x69m\145_\x6c\x69\x6d\151t"; $x15e="\x61bs"; $x15f="ar\x72\x61\171\x5f\162eve\162\163e"; $x160="s\x74r\x5f\160a\144"; $x161="\x66\x6c\x6f\x6f\x72"; $x162="\x75s\x6f\162t"; $x163="a\x72r\x61\171\x5f\163\x68\x69\x66\x74"; $x164="\141r\x72\x61y\x5f\166\141l\x75es"; $x165="\x73t\x72\151p\137\x74\141\147\163"; $x166="\150tm\154\x73p\145\143\x69a\x6c\x63\x68\x61\x72s"; $x167="\163tr\x72p\x6f\x73"; $x168="\x69\163\x5f\142oo\x6c"; $x169="\x6d\x62_s\164\x72t\x6f\154o\x77e\x72"; $x16a="\155b\x5f\x73\164r\x74ou\x70per"; $x29 = new Varien_Io_File(); $x2a = $x29->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); $x2b = Mage::getModel('datafeedmanager/configurations')->getCollection(); foreach ($x2b as $x2c) { if ($x2c->getFeedName() == $this->getFeedName() && $this->getId() != $x2c->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.')); } } if (!$x29->allowedPath($x2a, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x29->fileExists($x2a, 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 (!$x29->isWriteable($x2a)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$x13f('#^[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($x140($x13c($x13c('\\', '/', Mage::getBaseDir()), '', $x2a), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x139="\x73\164\162l\145\156"; $x13a="i\155\160\154\157\144\145"; $x13b="\x70\x72eg\x5f\x73p\154\151\164"; $x13c="\x73\164\x72\x5f\162\x65p\x6c\x61\143e"; $x13d="ut\x66\70_\145\156\x63o\x64e"; $x13e="\x70\x72\145\x67\137ma\x74\143\x68\137a\x6c\154"; $x13f="\160\162\145g\137m\141\x74ch"; $x140="\x72\x74\162\x69\x6d"; $x141="\151s\x5fn\165\x6c\x6c"; $x142="\163\x74\162t\157ti\155\x65"; $x143="\156\x75\155\x62\145\x72_f\x6f\162m\141t"; $x144="\x63\157\x75nt"; $x145="i\163\x5f\x6e\x75\x6d\145\x72\151\x63"; $x146="e\x78\160\x6c\x6fd\145"; $x147="s\x75\x62\163\164\162"; $x148="\164r\151\155"; $x149="\x68\164\155\x6c\145\x6e\x74i\x74\151\145\x73"; $x14a="ht\x6d\x6c\x5f\145\156\x74i\x74\171\x5fde\143\x6f\144e"; $x14b="pr\145\x67_\x72\145\x70l\141\143\145"; $x14c="j\163\x6f\x6e\137\144\145c\157\144\x65"; $x14d="i\163_\141\x72\x72\x61\x79"; $x14e="\x73tr\163tr"; $x14f="str\151\163\164\x72"; $x150="p\162\x69\x6e\x74_\x72"; $x151="\151\163\x5f\163\x74\x72\x69\156\147"; $x152="\x74\151\155\x65"; $x153="\x75cw\x6frd\x73"; $x154="\x61\x72\162\141\x79\x5fp\x75\x73\150"; $x155="\163t\x72p\x6f\x73"; $x156="v\x65\162\163\151\x6f\x6e\137\143o\155\160a\162\145"; $x157="in\x5f\x61r\x72\x61\x79"; $x158="\x63\145\151l"; $x159="s\x65\x74T\x79\160\145"; $x15a="\163p\162\151\156\x74\146"; $x15b="\x61\162\162a\x79\x5f\160\157\160"; $x15c="\151\156\151\137g\x65\x74"; $x15d="s\x65\164_\x74\151\155\145\x5f\154\x69mi\164"; $x15e="\141\x62s"; $x15f="ar\x72\x61\171\137\162e\x76\x65\162s\145"; $x160="\163tr\x5fpa\144"; $x161="\x66\154o\157r"; $x162="\165\163\x6fr\164"; $x163="\x61\162\x72\141\171_s\x68\151\x66\164"; $x164="\x61\x72\x72\141y_\166\141l\x75\145\x73"; $x165="s\x74\x72\151\160\x5f\164a\x67s"; $x166="\x68t\155lsp\145c\151\141l\143\x68a\162s"; $x167="\x73\164\x72rp\x6fs"; $x168="i\163\x5fbo\x6f\x6c"; $x169="m\142_\163\x74r\x74\157\154\157\x77\145\x72"; $x16a="\x6d\x62_s\x74\x72t\x6fuppe\162"; if ($x141($this->_filePath)) { $this->_filePath = $x13c('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x2d = '.temp') { $x139="\x73\164\162\154e\x6e"; $x13a="im\160l\157d\145"; $x13b="\x70\x72\145\147\137s\160\154i\164";
$x13c="\163tr\137\162\145\x70\x6cac\145"; $x13d="\165t\146\70\x5fe\x6e\x63\x6fde"; $x13e="\160\x72\145g\137\x6d\x61t\x63h\137a\154\x6c"; $x13f="\x70\x72\145\147\x5f\155a\164\x63\150"; $x140="rt\162i\x6d"; $x141="\x69s\137\156\x75\154l"; $x142="\163\164r\164\157\164\x69m\145"; $x143="\156\x75\x6db\145\162_f\157\x72\155\141\164"; $x144="\143ou\156\x74"; $x145="\x69s\137\x6e\x75\x6d\x65r\151\143"; $x146="e\170\x70\154o\x64\145"; $x147="\x73\165\x62\x73\x74\x72"; $x148="t\162i\x6d"; $x149="\150tm\154e\156\x74\x69t\151\x65\163"; $x14a="\x68t\155\154_e\156\x74\x69\164y\x5f\144e\143\x6f\144\x65"; $x14b="\160re\x67\137repl\141\x63\x65"; $x14c="j\x73\x6f\x6e_\x64e\x63\x6f\x64e"; $x14d="\x69\x73\x5far\162\141y"; $x14e="s\164r\x73t\162"; $x14f="st\162\x69str"; $x150="\x70ri\x6et_\x72"; $x151="\x69\x73_\x73\164\x72\x69\x6e\147"; $x152="\164i\x6de"; $x153="\165\143w\x6f\x72\144\163"; $x154="\x61\162\162\x61y\x5f\x70u\x73h"; $x155="s\x74\x72p\157\163"; $x156="\x76\145\162\163\x69\157n\x5fc\x6fm\x70\x61\162\145"; $x157="\151\x6e_\141r\x72\141\171"; $x158="\x63\145\151\154"; $x159="\163\x65tT\x79\160\145"; $x15a="s\160r\151\156tf"; $x15b="\141r\x72a\171\137p\157p"; $x15c="\151\156\151\x5fge\164"; $x15d="\163\145\164\137\164ime_\x6c\151\x6di\x74"; $x15e="\x61\x62s"; $x15f="\x61\x72\x72\141\x79\137\162e\x76\x65r\x73\x65"; $x160="\x73\164\162_pa\144"; $x161="f\154\x6f\x6f\x72"; $x162="\165s\x6f\162\x74"; $x163="\x61r\x72\x61\171\x5fshi\x66\x74"; $x164="\141\x72\x72\141y\137\x76a\154u\145\x73"; $x165="\x73\164\x72i\x70\x5f\164\x61\x67\x73"; $x166="\150\164\155\154\163\160\145\143\151\x61l\143h\141\x72s"; $x167="\163trrp\x6f\x73"; $x168="is\137\x62\x6fo\x6c"; $x169="\x6d\x62_st\x72\x74\157lo\167\145\162"; $x16a="\x6d\x62\137\x73\164\162t\157\x75\x70\160er"; $x2e = array(1 => 'xml', 2 => 'txt', 3 => 'csv', 4 => 'tsv'); if ($this->_date == false) { $this->_updated = Mage::getSingleton('core/date')->gmtDate("Y\x2d\155\55\144 \x48:\151\x3a\x73", $this->_timestamp); $this->_date = Mage::getSingleton('core/date')->date($this->getFeedDateformat(), $x142($this->_updated)); } $x2f = $x13c('{f}', $this->getFeedName(), $this->_date); $x30 = $x2f . "\x2e" . $x2e[$this->getFeedType()] . $x2d; if (!$x2d) $this->_filename = $x30; return $x30; } public function getPreparedFilename() { $x139="\x73trl\x65\x6e"; $x13a="\x69mpl\x6f\x64\x65"; $x13b="pre\147\x5fspli\164"; $x13c="\x73tr\137r\145\160l\141\x63e"; $x13d="\165\164f\70\137\145n\143o\x64e"; $x13e="\160\x72\145\x67\137\155\x61\x74\x63h\137\x61\154l"; $x13f="\x70\x72\x65g_\155\141\164\x63\150"; $x140="r\164\162\151\x6d"; $x141="i\x73_nu\x6c\x6c"; $x142="\x73\x74\162\164\x6ft\151me"; $x143="numbe\162\137\x66\157r\x6d\x61\164"; $x144="\143\x6f\x75n\x74"; $x145="\x69\163\x5f\x6eu\155\145\162\151\143"; $x146="e\x78\x70l\x6f\x64\145"; $x147="s\165bs\x74r"; $x148="t\x72\x69\155"; $x149="\150\164\x6d\154entit\151\145\x73"; $x14a="\x68t\x6d\154\x5fen\x74\x69\164\171\x5f\144ec\157d\x65"; $x14b="\x70\x72e\x67_\162\x65p\154a\143e"; $x14c="\x6a\163o\x6e\x5fd\x65co\144\145"; $x14d="\151\163\x5f\x61\162r\x61y"; $x14e="s\x74\162\x73\x74\x72"; $x14f="\x73\x74\162\x69\163\164\162"; $x150="\x70\x72\151\156\x74_\x72"; $x151="i\x73_\163t\x72\151\x6eg"; $x152="\164i\155e"; $x153="\165\143\x77\157r\x64\x73"; $x154="ar\162\141y_p\x75sh"; $x155="\163\164r\160\x6fs"; $x156="\166\145\x72\x73\x69\x6fn\x5f\143\x6f\x6d\x70a\162\145"; $x157="i\x6e_\x61\x72r\x61\171"; $x158="\143e\x69\x6c"; $x159="s\145\x74Type"; $x15a="\x73pri\x6e\164\x66"; $x15b="\x61r\x72\141\x79_p\x6f\x70"; $x15c="in\151\137\x67\145\164"; $x15d="\x73\x65t\137ti\x6de\x5f\x6ci\x6d\x69\x74"; $x15e="\x61\142s"; $x15f="\x61\x72\x72\x61y\x5f\162eve\x72s\145"; $x160="\163\x74r\137\160\141\144"; $x161="f\154\157o\x72"; $x162="u\x73\157r\164"; $x163="\141\x72\162\141\171\137\163h\x69\x66t"; $x164="\141\x72\x72\x61\171_\166a\154\x75\145\x73"; $x165="s\164\x72\151\160\137\x74\x61g\163"; $x166="\150\x74m\x6csp\x65\x63\151a\154char\163";
$x167="\163\x74\162\x72\x70\x6fs"; $x168="\151\163\x5fbo\157l"; $x169="\155b\x5f\x73trt\x6f\x6c\157\x77\145\x72"; $x16a="m\x62_\x73t\x72t\x6f\165ppe\162"; return $this->getPath() . $this->getFilename(); } public function x16c($x31, $x32) { $x139="\x73t\162\154\145n"; $x13a="\151m\x70\154ode"; $x13b="p\162e\x67\137\163\160\154i\x74"; $x13c="\163\164\162\x5f\162\x65p\x6c\141c\145"; $x13d="\x75\164\146\70\137\x65\156\x63o\144e"; $x13e="\160r\145g\137\x6d\x61tc\150\137\141ll"; $x13f="p\x72\145g\137\155\141\164c\x68"; $x140="\x72\x74r\x69m"; $x141="\x69s\137\x6e\x75\x6cl"; $x142="\x73\164\162\x74o\x74\151me"; $x143="\156u\155\142\x65\x72\x5ffo\x72mat"; $x144="co\x75n\x74"; $x145="\151\x73\137\x6e\165\x6de\162i\x63"; $x146="\x65x\x70\154\157d\x65"; $x147="\163u\x62\x73\164\x72"; $x148="\x74\162\x69m"; $x149="\150\164m\154en\x74\x69\x74\x69es"; $x14a="\x68tml_\145\x6e\164\151t\171\137d\x65c\x6f\144\x65"; $x14b="pre\147\137r\145pl\141ce"; $x14c="\152\x73\157\x6e\x5f\144e\143\x6f\x64\x65"; $x14d="\151s\x5f\141r\x72\x61\x79"; $x14e="\x73\x74rs\164\162"; $x14f="\x73\x74\162i\x73\x74\x72"; $x150="\160r\151\156\x74\x5f\x72"; $x151="\151\163\x5f\x73\x74\162\151\x6e\147"; $x152="t\x69me"; $x153="u\143\167\157rds"; $x154="\141rra\171\137\x70\x75s\150"; $x155="\x73\x74r\160\x6f\x73"; $x156="ve\162\163\151\157\x6e\137\143ompa\162e"; $x157="\x69\156\137\x61\x72\x72\141\x79"; $x158="c\x65\x69\x6c"; $x159="\x73e\164\124\171\x70e"; $x15a="\x73p\x72\151\156t\146"; $x15b="\x61r\x72a\171\137\160\x6f\160"; $x15c="\151\x6e\x69\137\x67\x65t"; $x15d="\163\x65\164_\164\x69\x6d\x65\137\x6c\151m\151\x74"; $x15e="\x61b\x73"; $x15f="\x61\162\162\141y\137\x72\145v\x65\x72\x73\x65"; $x160="st\162\137\160ad"; $x161="f\x6c\x6f\x6fr"; $x162="\x75\163\x6f\x72\x74"; $x163="\x61\162r\141\x79_\x73\x68\x69\x66\164"; $x164="\x61\162r\x61\x79\x5fva\x6c\165\145\163"; $x165="s\164\x72i\x70\x5f\x74\141\x67\163"; $x166="\150tm\x6c\x73p\145\x63\151\141\154\x63h\141\162\163"; $x167="\163\164rr\x70o\163"; $x168="\x69\163_\142\157\157l"; $x169="\x6db_strt\x6f\x6c\157w\145\162"; $x16a="\155\x62_\x73\164\162\x74\157up\x70e\x72"; $x33 = $this->_currencies; if (isset($x33[$x32])) { return $x31 * $x33[$x32]; } else { return $x31; } } public function x16d($x31, $x34, $x35, $x36 = false) { $x139="\x73\164r\154\145\x6e"; $x13a="\x69\x6d\x70\x6c\x6f\x64\145"; $x13b="\x70\162\x65g\x5fs\x70lit"; $x13c="\163\x74\162\x5fre\x70\x6cace"; $x13d="\x75\x74\x66\70\137\145\x6e\143\157\x64\x65"; $x13e="pr\x65\147_\x6dat\x63\150\x5f\x61l\154"; $x13f="p\162eg\137\155atch"; $x140="\x72\164\x72im"; $x141="\151s_\x6e\x75\x6c\x6c"; $x142="\163\x74r\164\157\x74i\155e"; $x143="n\x75\155b\145\x72_\x66o\162\155\x61t"; $x144="\143\x6f\x75\156t"; $x145="\151\163\x5f\156u\x6d\145\162i\143"; $x146="\145\170\x70\x6c\157d\x65"; $x147="\x73ub\163t\x72"; $x148="\x74\x72\x69\155"; $x149="\x68\x74m\x6ce\156\164\x69\164i\145\x73"; $x14a="h\x74\155\x6c\137en\x74i\x74y\137\144ecode"; $x14b="\160\x72\x65\147\137\x72ep\154\141\143\x65"; $x14c="\152\163\x6f\x6e\137\144\x65\143od\145"; $x14d="\151\163\x5f\141\162r\x61\x79"; $x14e="\x73\164\162st\162"; $x14f="\163\164r\x69\x73tr"; $x150="\160\x72\x69\x6et\x5f\162"; $x151="\151s\x5f\x73\164\x72\151n\x67"; $x152="t\x69\155\x65"; $x153="\165\x63w\x6fr\x64\x73"; $x154="a\162\x72\141y\x5f\160\x75\x73h"; $x155="s\164\162p\157\x73"; $x156="\x76\x65r\x73io\156_\143o\155p\141r\x65"; $x157="\x69\x6e\x5fa\x72\162\141\x79"; $x158="\143\x65i\x6c"; $x159="setType"; $x15a="\x73\160r\151\x6e\x74\x66"; $x15b="a\x72ra\x79_p\157p"; $x15c="\x69\x6e\151\137\147\145\164"; $x15d="s\145\x74\137\164\x69\x6d\x65\x5f\154\x69mi\x74"; $x15e="ab\163"; $x15f="a\162\162a\171_\162\145ve\x72\163\145"; $x160="\163\164\x72\137p\141d"; $x161="flo\157r"; $x162="\165\163\x6f\162\164";
$x163="\141\x72r\x61y\137\x73\150\x69\x66\164"; $x164="\x61rr\141\x79\x5f\x76alues"; $x165="s\164\162\x69p_\164\x61\147s"; $x166="\x68\164\155lspec\x69\x61l\x63ha\162\x73"; $x167="s\x74\x72\162pos"; $x168="\151\x73_\142\157\x6fl"; $x169="\x6d\142\137s\x74\x72t\x6f\x6c\x6f\167e\162"; $x16a="\x6db_\163\164\x72\164ou\160p\145\162"; $x37 = $this->_rates; $x31 = $x143($x31, 2, '.', ''); if ($x36 === false) { if (!$x34 && isset($x37[$x35])) { if ($x144($x37[$x35]) > 1) { return $x31; } else { return $x31 * ($x37[$x35][0]['rate'] / 100 + 1); } } else { return $x31; } } elseif ($x36 === "\x30") { if ($x34 && isset($x37[$x35])) { if ($x144($x37[$x35]) > 1) { return $x31; } else { return 100 * $x31 / (100 + ($x37[$x35][0]['rate'])); } } else { return $x31; } } else { if ($x145($x36)) { if ($x35 != 0) { return $x31 * ($x36 / 100 + 1); } elseif ($x35 == 0) { return $x31; } } else { $x36 = $x146('/', $x36); $x38 = 0; $x39 = false; if ($x147($x36[0], 0, 1) == "-") { $x36[0] = $x147($x36[0], 1); $x39 = true; } if ($x37[$x35]) { foreach ($x37[$x35] as $x3a) { if ($x3a['country'] == $x36[0]) { if (!isset($x36[1]) || $x3a['code'] == $x36[1]) { $x38 = $x3a['rate']; break; } } } if (!$x39) return $x31 * ($x38 / 100 + 1); else { return 100 * $x31 / (100 + ($x38)); } } else { return $x31; } } } } public function x16e($x3b, $x3c = true, $x3d = true) { $x139="\163t\x72l\145\156"; $x13a="\x69\x6d\x70\x6c\157\x64\145"; $x13b="\160\x72e\147_\x73\x70\154\151t"; $x13c="\163\x74\162\137r\145p\x6c\x61\143\145"; $x13d="u\x74f\70_\x65\x6e\x63o\x64\145"; $x13e="\x70\162\145g\x5f\155\x61t\x63h\x5f\x61\154l"; $x13f="pr\145\x67_\x6d\141t\143\x68"; $x140="\162t\162\151\155"; $x141="is_\x6e\x75\154\154"; $x142="st\x72t\157\164\x69m\x65"; $x143="\x6eum\x62e\x72\137\146orm\141\164"; $x144="\143o\x75\156t"; $x145="\151\163\x5fn\165m\x65\162\151c"; $x146="\145\x78\x70\154\x6fde"; $x147="s\x75\x62\x73t\x72"; $x148="\x74\162i\155"; $x149="\x68tml\145\156\x74\151t\x69e\x73"; $x14a="\150\164ml\137\x65n\164ity\x5f\x64\145\143\x6fd\145"; $x14b="p\x72\145\147\x5fr\x65\160\154\x61\143\x65"; $x14c="\152\x73\157\x6e_\x64\145c\157\144\145"; $x14d="\x69s\137a\162ray"; $x14e="\163t\x72s\x74\x72"; $x14f="s\164\162i\x73\164\x72"; $x150="\x70\x72\151\x6e\x74_r"; $x151="i\163\x5fs\x74ri\156\147"; $x152="\164\x69m\145"; $x153="\165cw\157r\144s"; $x154="\141\162\x72ay\137\160u\163\150"; $x155="\163\x74rp\x6fs"; $x156="ve\162\x73\151\157\x6e\x5fcom\x70\141\x72\x65"; $x157="\x69\156\137\x61\x72ra\x79"; $x158="\x63\x65\151\154"; $x159="s\145tT\x79p\x65"; $x15a="\163\x70\162\151\x6e\164\146"; $x15b="\x61r\x72\x61y\137p\x6fp"; $x15c="\x69n\151\x5f\x67\145t"; $x15d="s\x65\164\137t\151\x6de\x5f\x6c\151m\151\x74"; $x15e="\141bs"; $x15f="\141\x72r\x61y_r\x65v\x65\162\x73\145"; $x160="\x73tr\137\x70\141\x64"; $x161="\x66\154\x6f\157\x72"; $x162="\x75\x73\x6f\162t"; $x163="\x61rray_s\150i\146t"; $x164="\x61r\x72\141\171_\x76a\154\165e\x73"; $x165="s\164\162i\160_\x74\141g\x73"; $x166="\x68t\x6dl\163pe\x63\151\x61lch\141rs"; $x167="\x73\164\162\x72p\x6f\163"; $x168="\x69\x73\x5fb\x6f\157l"; $x169="\155b\137\163tr\164\157lower"; $x16a="\155\x62\137\163\164r\x74\157\165\x70\x70e\x72"; $x25 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x13e($x25, $x3b, $x26); foreach ($x26[1] as $x27 => $value) { $x3e = $x148($x26[2][$x27]); if (empty($x3e) && !$x145($x3e) && $x3d) $x3b = $x13c($x26[0][$x27], '', $x3b); else { if ($x3c) $x3b = $x13c($x26[0][$x27], ($x26[1][$x27]) . '<![CDATA[' . $x3e . ']]>' . ($x26[3][$x27]), $x3b); else { $x3b = $x13c($x26[0][$x27], ($x26[1][$x27]) . $x3e . ($x26[3][$x27]), $x3b); } } } $x1f = $x13b("\x2f\x0a\x2f\x73", $x3b); $x3f = ''; foreach ($x1f as $x40) { ($x139($x148($x40)) > 0) ? $x3f.=$x40 . "\x0a" : false; } $x3b = $x3f; return $x3b; } public function x16f($x41) { $x139="\x73t\162l\145n"; $x13a="im\160\154\157d\x65"; $x13b="\160re\147\137\163\160l\x69t"; $x13c="s\x74\162\137\x72\145\x70\154ac\x65"; $x13d="u\x74\x66\70\137e\156\x63\157\144\x65"; $x13e="\x70\x72\x65\147_m\x61\164ch\x5fa\x6c\154"; $x13f="\x70reg\137\155a\x74c\x68"; $x140="rt\162i\x6d"; $x141="\x69\x73\137\156\x75l\x6c"; $x142="\x73t\162toti\x6d\145"; $x143="\x6eu\155b\145r_\146\157r\x6d\x61\164";
$x144="\x63\157\165\x6e\x74"; $x145="\x69\x73_\x6e\x75me\x72i\143"; $x146="\x65x\x70\x6co\144\x65"; $x147="\x73\165bs\x74r"; $x148="\x74\x72\x69\x6d"; $x149="ht\x6dl\x65\156t\x69ties"; $x14a="\150\164m\154\137e\156\x74i\164\171_\144\145\143\157de"; $x14b="\160\162e\147\137re\160\x6c\141\x63e"; $x14c="\152s\x6f\x6e\137\144\x65c\157\x64\145"; $x14d="\x69\x73_\141r\x72\x61y"; $x14e="\163tr\x73\164\162"; $x14f="\x73t\162i\x73\164\x72"; $x150="\x70\162\151\156\x74_\x72"; $x151="i\x73_s\x74\162\151n\147"; $x152="\164i\x6d\145"; $x153="\165\x63wo\x72\144\163"; $x154="ar\x72\x61y\137\160\165s\150"; $x155="st\162\160\157\163"; $x156="v\x65\162\163\151\x6f\156_\143om\160\x61\162\x65"; $x157="\x69\x6e\x5f\x61\x72ray"; $x158="\143\x65\151\x6c"; $x159="\163etTyp\145"; $x15a="\x73\160\162i\156\x74\146"; $x15b="\x61\162\162a\171\137po\160"; $x15c="\x69\156\x69_g\145\x74"; $x15d="\x73e\x74\x5ft\x69\x6d\x65\x5flim\x69t"; $x15e="\141\142\x73"; $x15f="a\x72r\141\x79\137\x72\145v\x65\x72se"; $x160="\163\x74\162_\160\x61d"; $x161="\146\x6c\x6f\157r"; $x162="\x75s\157\162\x74"; $x163="a\162\162ay_\x73h\x69\x66\x74"; $x164="\141\x72r\x61\171\137va\154u\145s"; $x165="str\x69\160\137\164a\x67\x73"; $x166="\x68tm\x6c\x73p\x65\143\x69a\154ch\x61\x72\163"; $x167="st\162\x72\160\x6f\x73"; $x168="\x69\x73\137bo\157l"; $x169="mb_st\x72t\x6f\154ow\x65r"; $x16a="\155\x62\x5f\x73\x74r\164\157\165p\160e\x72"; if ($this->_feed_encoding != 'UTF-8') { $x41 = $x149($x41, ENT_NOQUOTES, 'UTF-8'); $x41 = $x14a($x41, ENT_NOQUOTES, $this->_feed_encoding); } return $x41; } public function x170($x25, $x22 = false) { $x139="\x73\164r\154\145n"; $x13a="\x69\155p\x6co\144\x65"; $x13b="\160\162e\147\x5f\163p\154\151t"; $x13c="\163\x74\162_repl\x61\143e"; $x13d="\165\x74f\70_\145nc\157\x64\x65"; $x13e="pr\x65\147\x5f\155\x61\164\x63\x68_\x61\154l"; $x13f="\x70\162\145\x67\137\x6d\x61\x74\x63h"; $x140="\x72tr\x69\155"; $x141="\x69\x73\x5fn\x75\154l"; $x142="st\x72t\x6ft\x69me"; $x143="\156\x75\155be\162_\x66or\155a\164"; $x144="\143\x6f\165n\x74"; $x145="\x69s_\x6eu\155\x65ri\x63"; $x146="e\170p\154o\144\x65"; $x147="subst\162"; $x148="\x74\162\x69m"; $x149="\150t\155le\156t\x69\x74\151\x65s"; $x14a="\x68\164m\154\137\x65\156t\x69\x74\171\x5f\x64\145c\x6fde"; $x14b="\x70\162\145g\137\162\x65\x70\154\141\143e"; $x14c="\152s\x6f\x6e\x5f\144\145\143\x6fde"; $x14d="is_\x61r\x72\x61\171"; $x14e="\x73t\x72s\x74r"; $x14f="\x73\164\162\151\x73\164\x72"; $x150="pr\151\x6e\x74_r"; $x151="\151s\137\163\164\x72i\156\x67"; $x152="\x74\x69\155e"; $x153="\165\143\x77\x6f\162\144s"; $x154="\x61r\x72\141\171_p\165\x73h"; $x155="\163t\162p\157\x73"; $x156="\x76\x65\162\163\x69\157\x6e\x5fc\157\x6d\x70\x61re"; $x157="\151\156\x5far\x72\141\171"; $x158="\x63\x65\x69\x6c"; $x159="s\x65\164T\x79p\145"; $x15a="s\x70ri\x6et\146"; $x15b="\141r\162\x61y_p\x6f\160"; $x15c="i\x6e\x69\137\147\145\164"; $x15d="\163\x65\164\x5ftim\145\137\x6c\x69\155\151\x74"; $x15e="\x61bs"; $x15f="\141\x72r\141\x79_\x72e\x76\x65\x72\163\145"; $x160="\163\x74\162\x5f\x70\141d"; $x161="\x66l\157\x6f\x72"; $x162="\x75\163\x6f\x72\164"; $x163="\x61\162r\x61\x79_s\x68\151\x66\164"; $x164="a\162\x72\141\171\137\166a\x6c\165e\x73"; $x165="\x73\x74\x72\x69p\137\x74\x61gs"; $x166="\x68t\x6dls\x70\145ci\x61\154c\150\x61\162\x73"; $x167="s\164rrpos"; $x168="\x69s\137\142\x6fo\154"; $x169="\x6db\x5f\x73t\x72\164\x6fl\x6f\x77\145r"; $x16a="m\142\137\x73\x74\x72toupper"; $x25 = $x14b('/(\r\n|\n|\r|\r\n)/s', '', $x25); $x42 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; ';
$x43 = $x14c($x25); if (!$x14d($x43)) $x44[] = $x43; else $x44 = $x43; $x45 = null; foreach ($x44 as $x43) { $x46 = 0; if (isset($x43->header)) $x43 = $x43->header; else { $x43 = $x43->product; } if ($x22) $x45 = "\x3ct\162\x20\163\x74\x79le=\x27b\141ckg\162\157\x75\156\144\x2dco\x6c\157\x72\x3ag\x72\x65y; \x63\157l\157\x72\72\x77\150\151\164\x65\73\40fon\x74\55\x77e\151\x67\150\164\72\142\157l\144\47\76"; else { $x45 .= "\74t\x72>"; } foreach ($x43 as $x27 => $value) { $value = (($value)); if ($x46) $x46++; if ($x14e($value, "\x2fb\x72\145\x61kl\151\x6e\145\57")) { $value = $x13c("\x2fb\x72\145\x61kl\151\x6e\145\57", "\x3c\57\x74r><\164\x72>", $value); $x46 = 1; } ($value != null) ? $x47 = ($value) : $x47 = "\74sp\x61n\40s\164y\x6ce='fo\156\x74\x2dsi\x7a\145\x3a\61\60\160x\73\x63\x6flor\72gr\145\x79\47>\x28empt\171)\74\57\x73\x70\141\x6e\76"; $x45.="\74t\x64\x20\163\164\171\x6c\145\75'" . $x42 . "\x27\x3e" . $x47 . "\x3c\57t\x64\76"; } $x45.="</\164r\76"; } return $x45; } public function x171($x25, $x48, $x49, $x4a) { $x139="\163\164r\x6ce\x6e"; $x13a="\x69\x6d\x70l\157\144\x65"; $x13b="\x70r\145g_\163\x70\x6c\151\164"; $x13c="\x73\164\162_\x72\x65pl\141\143\145"; $x13d="u\x74\146\70\x5f\145n\x63o\144\x65"; $x13e="\x70\x72\145g\x5f\x6d\x61\x74\143\150\137al\x6c"; $x13f="p\x72\x65\147\137\155\x61\164ch"; $x140="\162\x74r\151\x6d"; $x141="\x69s\137\156\165\x6cl"; $x142="\163\164rto\x74im\145"; $x143="\156um\x62\145\x72\137fo\162\155\x61\x74"; $x144="c\x6f\165\156\164"; $x145="is_\156\165\155\145\x72\x69c"; $x146="e\x78\160\154o\x64e"; $x147="\163\165\x62\163\x74\162"; $x148="t\162\151m"; $x149="ht\x6d\154e\x6e\164\151\164i\x65s"; $x14a="\x68\x74m\x6c\137\x65\x6eti\164\x79\x5fd\145\143od\x65"; $x14b="\160\162\x65g\x5fre\160\154\141\x63e"; $x14c="\152\x73o\x6e\137\144\145\143\x6f\144\x65"; $x14d="\151\163_ar\162\141y"; $x14e="\x73\x74\x72s\164\x72"; $x14f="st\162\151\x73\164r"; $x150="\160\x72\x69n\164\137\x72"; $x151="is\x5f\x73\x74\x72i\x6eg"; $x152="\164\x69me"; $x153="\x75\143\167\157\x72\x64s"; $x154="a\162\162\141y\137p\165\x73\x68"; $x155="s\x74\x72p\157\163"; $x156="v\145rs\x69o\156_\x63\x6f\155\160\141r\145"; $x157="\x69\x6e_ar\162\141\171"; $x158="ce\x69l"; $x159="se\164\124yp\x65"; $x15a="sp\x72\151\156\x74\146"; $x15b="\x61r\x72a\171\137p\157\x70"; $x15c="in\151\x5fg\x65\164"; $x15d="s\x65\164\x5f\164\151me\x5f\154i\155\x69\x74"; $x15e="\x61\x62s"; $x15f="\141r\x72ay\137r\145\166\145r\x73e"; $x160="\x73\x74r\137\x70\141d"; $x161="f\x6c\x6f\x6fr"; $x162="u\163\x6fr\164"; $x163="a\x72\162\x61\x79\x5fsh\151\146\164"; $x164="\x61r\x72\141y\x5fva\154ues"; $x165="\x73tri\160_\164ags"; $x166="\x68tm\x6cspe\143\151\x61\x6c\143\150\x61r\163"; $x167="s\x74\162r\x70\157s"; $x168="i\x73\x5f\142\157o\x6c"; $x169="\155\x62\x5f\163\164\x72\164\x6f\154o\x77e\162"; $x16a="mb\x5f\x73t\162\164\157\165p\x70\145r"; $x25 = $x14b('/(\r\n|\n|\r|\r\n)/s', '', $x25); $x43 = $x14c($x25); if (!$x14d($x43)) $x44[] = $x43; else $x44 = $x43; $x40 = ''; if ($x48 == '\t') $x48 = "\t"; foreach ($x44 as $x43) { $x46 = 0; if (isset($x43->header)) $x43 = $x43->header; else { if (!$x14c($x25)) return ""; $x43 = $x43->product; } $x4b = 0; foreach ($x43 as $x27 => $value) { if ($x46 > 0) $x46 = 2; if ($x14e($value, "\x2fb\x72\145\x61kl\151\x6e\145\57")) $x46++; if ($x4b > 0 && $x46 < 2) $x40.=$x48; if (!$x14e($value, "\x2fb\x72\145\x61kl\151\x6e\145\57")) $x46 = 0; if ($x49 != "") { $x40.=$x49 . $this->x172($x13c("\x2fb\x72\145\x61kl\151\x6e\145\57", '', $value), $x49, $x4a) . $x49; if ($x14e($value, "\x2fb\x72\145\x61kl\151\x6e\145\57")) { $x40 .= "\x0d\x0a"; } } else { $value = $x13c("\x2fb\x72\145\x61kl\151\x6e\145\57", "\x0d\x0a", $value); $x40.= $this->x172($value, $x48, $x4a); } $x4b++; } if ($x48 == "\x5b\x7c\135") $x40.="\x5b\x3a\x5d"; if (!$x46) $x40 .= "\x0d\x0a"; } return $x40; } public function x172($x25, $x4c = '"', $x4a = "\x5c\x5c") { $x139="\x73t\162\x6c\x65\x6e"; $x13a="\151\155\160lo\x64e"; $x13b="\160r\x65\x67\137s\x70\154i\x74"; $x13c="\x73\164r\137\162ep\x6c\x61ce"; $x13d="\165\x74f\70_e\156\143\157d\145"; $x13e="pre\x67\x5f\155\141\164\143\150_a\x6c\x6c"; $x13f="\x70\x72\x65\147\137\x6d\141\x74\x63\150"; $x140="r\x74r\151\155"; $x141="i\x73\137\156u\154\154";
$x142="\x73t\x72t\157tim\x65"; $x143="\x6eu\x6d\142\145\162\x5f\146o\162\155a\164"; $x144="c\157\x75nt"; $x145="\151\163\137\x6eu\x6d\x65\162i\x63"; $x146="\x65\170\x70\x6c\157\144e"; $x147="\x73\x75b\163t\162"; $x148="\x74\162i\x6d"; $x149="\x68tml\145\156\x74\151\164\151e\x73"; $x14a="\x68t\155l\x5fe\156\164\151\164\171\137\x64\145\x63\x6f\x64e"; $x14b="\x70\x72e\x67_\x72e\x70l\141\143\145"; $x14c="\152s\157n_\144\145\x63o\x64e"; $x14d="\151s_ar\x72ay"; $x14e="\163\x74\162\163tr"; $x14f="\163t\162i\163\x74\x72"; $x150="\160\162\x69\x6et\137\162"; $x151="is\x5f\163\164\x72\x69\156\x67"; $x152="\x74\x69\155\x65"; $x153="u\x63\x77\157\162\x64\x73"; $x154="\x61r\x72\141\x79\137\160\165\163\x68"; $x155="s\x74r\x70\157\163"; $x156="\x76er\x73\x69on\x5f\143o\155\x70\x61\162\x65"; $x157="\151\x6e\x5fa\162r\141y"; $x158="\x63\145\151\154"; $x159="\x73e\x74\124y\x70\145"; $x15a="s\x70\x72i\156t\146"; $x15b="ar\162\141\x79\x5f\160\x6fp"; $x15c="in\151_\x67e\164"; $x15d="s\x65\x74_tim\x65_l\151\155\151\164"; $x15e="a\x62\163"; $x15f="\141\162\162\141\x79\137\162\x65\166erse"; $x160="\163\164r\137\x70a\x64"; $x161="\x66l\x6fo\162"; $x162="u\x73o\162\164"; $x163="\x61\x72\x72\141y\137\x73\x68if\x74"; $x164="a\162r\x61y_\166\x61lu\x65\163"; $x165="s\x74\x72\151\x70_\x74a\x67\x73"; $x166="\x68\164m\154s\x70\x65\143\151a\x6c\143ha\x72\163"; $x167="s\x74\x72\x72p\x6f\x73"; $x168="i\163\137\142o\x6fl"; $x169="\x6d\142\137\x73t\x72\x74\x6fl\157\x77er"; $x16a="\x6db\x5f\163t\x72to\x75ppe\162"; $x25 = $x13c($x4c, $x4a . $x4c, $x25); return $x25; } public function unx172($x25, $x4c = '"') { $x139="\x73\164\x72\154\x65\156"; $x13a="i\155\160lo\144e"; $x13b="\160\x72\x65\x67\x5f\x73\x70\154it"; $x13c="s\164\162_\162\x65\160\x6c\141c\x65"; $x13d="u\x74f\70\137\145\x6e\x63\157d\x65"; $x13e="pr\x65\x67\x5f\155\x61\164\x63h\137a\154\x6c"; $x13f="\x70\162e\x67_m\141tc\x68"; $x140="\162\164\x72im"; $x141="\x69s_n\x75l\x6c"; $x142="\163\x74rt\x6f\x74\151\155\145"; $x143="nu\x6d\x62e\x72\137for\x6d\141\x74"; $x144="c\x6f\x75nt"; $x145="\x69s_\x6e\165\x6de\x72\x69\x63"; $x146="e\170\160\154\157d\145"; $x147="\163u\x62\x73tr"; $x148="\x74\x72\x69\x6d"; $x149="\150\x74m\154\x65\156\164\151t\151\145\x73"; $x14a="h\164m\x6c\x5f\x65nti\164y_\144\145\143od\145"; $x14b="p\x72eg_\x72\x65\x70\154\x61ce"; $x14c="\152\163\157\x6e_\144\145c\157\x64\x65"; $x14d="\x69s_a\x72r\141y"; $x14e="str\163tr"; $x14f="st\x72\x69s\x74\162"; $x150="\x70r\151\x6e\x74_r"; $x151="\151s\x5fs\164r\151n\147"; $x152="ti\155e"; $x153="\165c\167\x6fr\144\163"; $x154="a\x72r\x61\171\137\160\165s\150"; $x155="\163\x74\x72\160os"; $x156="\x76\145\162s\151\157\156\x5fc\x6fm\x70\x61\162e"; $x157="i\156\137a\x72\x72\141y"; $x158="ce\x69l"; $x159="s\145t\124y\160\x65"; $x15a="spr\x69\x6e\164\146"; $x15b="\x61r\162\141\171\x5f\x70\x6f\x70"; $x15c="\x69\x6e\151_g\x65\x74"; $x15d="set_\164\151\x6de\137l\151\155\x69\x74"; $x15e="\x61\x62s"; $x15f="\141\162\162a\171\137rev\x65\162\163\x65"; $x160="s\x74\x72\137pad"; $x161="\x66\154\157\x6f\x72"; $x162="u\x73\x6fr\164"; $x163="\x61\162\x72a\x79\137\x73\x68\x69\x66\x74"; $x164="a\162\162ay\137\x76a\x6c\x75e\163"; $x165="\163\x74r\151\x70_\x74a\x67s"; $x166="ht\x6d\x6c\x73\x70\145\x63\151\141\154c\x68\141\x72\163"; $x167="\x73\x74\162\x72po\x73"; $x168="\151\x73\137\142\157\x6f\154"; $x169="\155b\137\163\x74\162to\154\x6f\167\x65r"; $x16a="mb\x5f\x73t\x72\164\x6f\x75\160\x70er"; $x25 = $x13c('\\' . $x4c, $x4c, $x25); return $x25; } public function x174($x4d) { $x139="s\164\162len"; $x13a="i\155\x70\x6co\x64\x65"; $x13b="\160\x72\145g_\163\160l\151\164"; $x13c="\x73\x74\162\137re\160\154\141ce"; $x13d="\165tf\70\137\x65ncode";
$x13e="\160\x72\145\x67\x5fm\141t\143\x68\x5f\141\154l"; $x13f="\160\162\x65g_ma\164c\150"; $x140="rt\162\151m"; $x141="\151\163\x5f\156u\154\154"; $x142="s\x74\162\x74\x6f\164i\155\x65"; $x143="\x6eu\155be\x72_\x66o\x72\x6da\164"; $x144="c\157\x75\x6et"; $x145="\151\x73\x5fnu\x6d\145r\x69c"; $x146="\145x\x70\154o\144\145"; $x147="\163u\142st\162"; $x148="t\162\x69\155"; $x149="\x68\x74mlen\x74i\164\151\x65\x73"; $x14a="\150\x74m\154\137\145\x6et\x69\164y\137\x64\145c\x6fd\x65"; $x14b="\160r\145\x67_\x72\x65pl\141\x63e"; $x14c="\152s\x6f\156\x5f\144e\x63\x6fde"; $x14d="\x69\x73\x5f\141\x72\x72\141\171"; $x14e="s\x74r\x73\x74r"; $x14f="\x73tri\x73t\162"; $x150="pri\x6e\x74_\162"; $x151="\151\163\137st\162\x69\x6eg"; $x152="\164ime"; $x153="\165\x63w\157\162d\163"; $x154="\x61r\x72\141y\x5f\x70\x75\163h"; $x155="\163\x74\162po\163"; $x156="\166er\x73\151\157\x6e\x5fc\x6f\x6d\160\141\x72e"; $x157="i\x6e_\x61r\x72\141y"; $x158="\143\145\151\154"; $x159="s\x65\x74\124yp\x65"; $x15a="s\160\162\x69\156\x74\x66"; $x15b="arra\171\137p\157p"; $x15c="i\156\x69_g\145\x74"; $x15d="\x73\145\164\137t\x69\x6de\x5f\154\x69\155\x69\164"; $x15e="\141\x62\x73"; $x15f="\141r\162\x61y\x5fr\145\166e\162\163\145"; $x160="s\164r\x5fp\141\144"; $x161="\x66\x6coo\x72"; $x162="\x75\x73or\x74"; $x163="a\x72r\141\171_\163\x68\151\x66\x74"; $x164="a\162\162\141\x79\137v\x61l\x75\145s"; $x165="\x73\x74\x72\x69\x70\x5ft\x61\x67\x73"; $x166="\x68\164\155l\x73p\x65\143\x69\x61lc\150\x61\x72\x73"; $x167="\x73t\162\162p\157s"; $x168="\x69\163_\142\157\x6f\154"; $x169="m\142\x5f\163\164\x72\x74\157l\157\167e\x72"; $x16a="\x6db\x5f\163\x74\x72t\157\x75\160\160\x65\x72"; if (!$x14f($x4d, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$x14f($x4d, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x4e, $product) { $x139="\163t\162\154\x65\x6e"; $x13a="\x69\x6dp\154\157d\x65"; $x13b="\x70\x72\145g\x5fsp\154\x69t"; $x13c="\163\x74\162_\162e\x70\154\x61c\x65"; $x13d="ut\146\70_\x65\x6e\x63\157d\x65"; $x13e="\160\x72e\147\137m\x61\x74ch_a\x6c\154"; $x13f="\160\x72\145g\x5f\x6da\x74\x63\x68"; $x140="r\x74\x72\x69\155"; $x141="\x69\163\x5f\156\165l\x6c"; $x142="\x73t\x72\x74oti\x6d\145"; $x143="\156\x75m\x62\x65\x72\x5f\146\157\162\x6d\141\164"; $x144="\143\x6fun\164"; $x145="\151\163\x5f\156\165\x6de\162i\143"; $x146="\145xplod\x65"; $x147="\x73\x75\x62\163\164\162"; $x148="tr\x69\x6d"; $x149="\x68\x74\x6d\154\145nt\x69\x74ies"; $x14a="\150\164\155\154\x5f\145\156\x74\151\164\x79_\x64\145\143\x6f\144e"; $x14b="\160\162e\147\x5f\162\145pl\141\143\145"; $x14c="\152\x73on\137\x64\145\x63\157\x64e"; $x14d="\151s_\x61\162ra\x79"; $x14e="\163\164r\x73\164\162"; $x14f="\163\164\x72i\x73t\162"; $x150="\x70\162\151nt_r"; $x151="\x69s\137st\162\x69\x6e\147"; $x152="t\151m\145"; $x153="\165cwo\162\144\x73"; $x154="\x61\162ray\137\x70u\163h"; $x155="\163tr\x70o\163"; $x156="ver\x73i\x6f\x6e\x5f\143\x6f\x6d\160\141\162\145"; $x157="i\x6e\137\141rr\141y"; $x158="\x63\145\151\x6c"; $x159="\163\145t\x54\171\160e"; $x15a="\163\x70\x72i\156\164f"; $x15b="\141\x72\162\x61\171\x5f\x70o\160"; $x15c="\x69n\x69_\x67e\164"; $x15d="\x73\x65t_\x74\151\x6d\x65\x5f\154\x69mit"; $x15e="a\142s"; $x15f="\x61\162\162\x61y\x5fr\x65\x76\x65\x72\x73\x65"; $x160="\163\x74\162\137p\141d"; $x161="\x66lo\157\x72"; $x162="u\163o\162t"; $x163="a\162\162\x61y\x5f\163\150\x69\146t"; $x164="\141rray\x5f\166\141l\x75es"; $x165="\x73\x74ri\160\137\x74\141\147s"; $x166="h\164\155\x6c\x73\x70\x65\143ia\x6cch\x61\x72\x73"; $x167="s\x74\162\162p\157\163"; $x168="\151\163\x5f\x62\157o\154"; $x169="\155\142\x5fs\164\x72\x74ol\x6f\167\x65r"; $x16a="\155\x62\x5f\163t\x72t\157\x75\160\x70er"; if (($x4e == "\160ar\x65\x6e\164" || $x4e == "\143\157n\146ig\165r\141\142\154\x65") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x4e == "\160ar\x65\x6e\164" || $x4e == "\x67r\x6f\x75p\145\144") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x4e == "\160ar\x65\x6e\164" || $x4e == "bu\156\x64l\x65") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];
else { return $product; } } public function skipOptions($x4f) { $x139="\163t\162\x6c\x65\x6e"; $x13a="\151\155p\x6c\157de"; $x13b="\x70\x72\145\x67_s\160\x6c\x69\164"; $x13c="\163\x74r\137re\x70l\x61\x63\145"; $x13d="\165\164\146\70_e\156c\x6f\144e"; $x13e="\160\162\x65g\137\x6d\x61\164\x63\150_\141\154\154"; $x13f="\160\162e\x67_m\141\x74\143\x68"; $x140="\x72\x74\162i\155"; $x141="is_\x6eu\154\154"; $x142="s\164\x72\x74\x6fti\155\145"; $x143="\x6e\x75\155\142e\162_fo\x72ma\164"; $x144="c\x6f\x75\156\x74"; $x145="\151\163\137\x6e\165\x6d\x65r\x69\x63"; $x146="\145x\160lo\x64\x65"; $x147="s\165\x62s\x74\x72"; $x148="t\x72\151m"; $x149="\150t\x6d\154\145n\x74\151\x74\x69\145\x73"; $x14a="\x68t\155\x6c\x5f\145\x6e\164\151ty_d\x65c\157\x64\145"; $x14b="\x70r\145\147\x5fr\x65\x70\154\141\x63e"; $x14c="\152\163o\x6e_d\145c\157\x64e"; $x14d="\x69s\137\x61\162\x72\141y"; $x14e="\x73\x74\162\163\164\x72"; $x14f="s\164r\151str"; $x150="\160\162\x69\x6e\164\137\x72"; $x151="i\163_s\x74\162\x69n\147"; $x152="\164i\155\145"; $x153="\x75\x63w\157\x72\144\x73"; $x154="\141\162r\141y\x5f\160u\163h"; $x155="\x73\x74\162p\x6fs"; $x156="\166\x65\162s\151\x6f\156\x5f\143ompa\162\x65"; $x157="\151n_a\162\x72\x61\171"; $x158="\143\x65\151l"; $x159="\163\145t\x54yp\145"; $x15a="s\160r\x69\156\x74\x66"; $x15b="\141\x72r\x61\x79\137p\x6f\x70"; $x15c="\151\x6e\x69_g\x65\164"; $x15d="se\x74\137t\x69\155\145_\x6c\151\x6dit"; $x15e="\x61\x62\x73"; $x15f="\x61\x72\x72a\x79\137r\145ve\162\163\x65"; $x160="\x73\164r\x5f\x70a\144"; $x161="\146\154\x6for"; $x162="\165\163or\164"; $x163="a\x72r\x61y\x5fs\150\151\146\164"; $x164="\x61\x72r\x61\171_\166\141\154u\x65\x73"; $x165="\x73t\x72\151\x70_\164ag\163"; $x166="h\x74\155ls\x70\145\x63\151\141\x6c\143ha\x72\x73"; $x167="\x73t\x72\162\x70\x6f\x73"; $x168="\x69s\137\x62\x6f\157l"; $x169="m\x62\x5f\163tr\164\x6fl\x6fw\x65\162"; $x16a="\155b_s\x74\162t\157\165p\160er"; $this->option = $this->option + $x4f; } public function generateFile() { $x139="\x73t\x72\154e\x6e"; $x13a="\151m\160\154\157de"; $x13b="\160\x72\145\147\137\x73\160\x6ci\164"; $x13c="s\164r\137\162\145\x70\x6c\141c\x65"; $x13d="\x75t\x66\70_\145n\x63\x6fde"; $x13e="\160r\145\x67\137\155\141\164\143h\137all"; $x13f="\x70\162e\147\x5fm\141\x74ch"; $x140="r\x74\162\x69\155"; $x141="\151s_\x6e\165l\154"; $x142="\x73\164\x72\164\157\164\151\x6d\145"; $x143="\156u\155be\162\137f\x6f\162m\141\x74"; $x144="co\165n\164"; $x145="\151\x73\137\x6e\165\x6d\x65r\151c"; $x146="\x65x\160l\157de"; $x147="\x73\x75\142\x73\164r"; $x148="tri\155"; $x149="\150\164\x6d\x6c\x65\156\164\x69\x74i\145s"; $x14a="\x68\x74\x6dl\137\x65\x6e\164\x69\x74y\137\x64\x65\x63\x6fd\x65"; $x14b="p\x72\145\x67\x5fr\145pl\141\143\x65"; $x14c="\152s\157n\137\x64\x65c\157\x64e"; $x14d="\x69\163\x5f\x61r\162\x61y"; $x14e="\x73\164\162\x73t\x72"; $x14f="s\164\x72\151\x73\164r"; $x150="p\x72i\156\x74_\x72"; $x151="i\x73\x5f\x73\164\162\151\x6eg"; $x152="\164\x69\x6de"; $x153="\165\x63\167or\x64\x73"; $x154="\141\162\162\141\171\137\x70us\x68"; $x155="\x73t\x72\x70os"; $x156="v\145rs\x69\x6fn_c\x6f\155\160\x61r\145"; $x157="\151\156\x5farr\x61y"; $x158="\143\x65i\x6c"; $x159="\163\x65\x74\x54\x79\160\x65"; $x15a="s\160\162i\156\x74f"; $x15b="\x61rr\x61\x79\137\160\157\x70"; $x15c="\x69\x6e\151\x5f\147e\x74"; $x15d="s\x65\x74\x5f\164\151me\x5f\154\x69mi\164"; $x15e="a\x62\x73"; $x15f="a\x72\x72\x61y_\162\x65v\x65\x72\163e"; $x160="\x73\164r\137\160\141d"; $x161="\146\154\x6fo\162"; $x162="\x75so\x72t"; $x163="ar\x72\x61\x79_shift"; $x164="a\x72\162\x61y\137v\x61l\165e\x73"; $x165="s\164ri\x70_t\x61gs"; $x166="\150\x74m\x6c\x73\160\x65c\151\x61\x6cc\x68a\162s"; $x167="\x73\x74\162r\160\x6f\x73"; $x168="\151\x73\137\x62\x6fo\x6c";
$x169="m\x62\x5fs\x74\162\164\157\x6co\167\145r"; $x16a="m\x62\x5fs\x74\162\x74\x6fu\160\160\145r"; ini_set('memory_limit', Mage::getStoreConfig("d\141t\141\x66e\x65\144\155\x61\x6e\141\147\x65\162\57sy\x73\164\x65\x6d/\155em\x6f\x72\x79\x5f\154\x69\155\151\164") . 'M'); $this->_debug = (isset($_GET['debug'])) ? true : false; $this->_log = Mage::getStoreConfig("d\141\164\141fe\145\x64\x6d\141\156a\147\145r/\163\x79s\x74\x65m\x2f\154o\147_\x65\x6e\x61bl\145\x64"); if ($this->_debug) { echo "\x2d\55\x2d-\55\55\x2d\x2d\x2d\55-\x2d\55\55\55\55\55\55\x2d--\x2d\x2d-\55\x2d-\x2d-\55\x2d\x2d-\55-\55-\x2d-\x2d\55-\55\x2d\x2d-\74\142\162>\55\55\x2d\55\x2d\55-\x2d\55-\55-\x20\104\x45B\x55\x47 \x4d\117\104E -\x2d-\55-\55\x2d\x2d-\55---\55-\x2d\74\142r\76\x2d\x2d\55\x2d\55\x2d\55--\x2d-\55\x2d\55--\x2d\x2d\x2d-\55--\55\55\55\55-\x2d\55\55\x2d--\55\x2d\x2d----\55\55\x2d\x2d\55<\x62r>\x3c\142r>"; $x150($x50); } $x51 = $this->_indexPhp; $x52 = array("a\x63" => "\x61\143\x74\151v\141\164i\x6fn_\143\157\144\145", "\141\x6b" => "\x61\143\x74\151\166\141\164\151\157n\137\x6be\171", "\142\x75" => "\142a\x73\x65\x5fu\162\x6c", "\155d" => "m\x64\65", "\x74\150" => "\x74\150\x69\163", "d\155" => "_\144\x65\x6d\157", "\145\170\x74" => "\x64f\155", "v\145r" => "\67.\63.\61"); $x151(Mage::app()->getRequest()->getParam("s\x74\x6f\x72\x65_\151\144")) ? $x53 = Mage::app()->getRequest()->getParam("s\x74\x6f\x72\x65_\151\144") : $x53 = $this->getStoreId(); $x54 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x55 = Mage::getDesign()->getSkinUrl(); $x56 = Mage::getStoreConfig("\x63\x61\x74\141l\157g/\x70\154\141c\x65\150\157ld\145\x72/\151m\x61g\145\x5f\x70\154a\x63\145\x68\x6fl\144\x65\x72", $x53); $x57 = Mage::getStoreConfig("\143u\162r\145\x6e\x63\x79/op\164\x69\157\x6es/b\141se", $x53); $x58 = Mage::getStoreConfig("cat\141l\x6f\x67\151\x6e\166\x65\x6eto\162\x79\x2fi\x74\x65\155_\x6f\x70t\x69on\163/\155\141\156\141g\145\137\x73\x74o\143\x6b", $x53); $x59 = Mage::getStoreConfig("c\x61\x74\141\154\x6f\x67\151\x6e\166\145\156\164\x6fr\171/\x69\x74\145m_\x6f\160\164\151\157\156\x73\x2f\142\x61\143\153\157rd\145\162\x73", $x53); $x5a = Mage::app()->getStore($x53)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x5b = Mage::getModel('core/store')->load($x53)->getBaseUrl(); $x5c = Mage::app()->getStore($x53)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x5d = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x53); $x5e = Mage::app()->getStore($x53)->getRootCategoryId(); $x5f = array( "\x61\143\x74\151\166\141\164\151\157n\137\x6be\171" => Mage::getStoreConfig("\x64a\164a\x66eedm\x61\156\x61g\x65r\57\x6c\x69\x63en\163\x65\x2f\141c\164\151\166a\x74\151o\156\x5f\x6b\x65y"), "\x61\143\x74\151v\141\164i\x6fn_\143\157\144\145" => Mage::getStoreConfig("\144\141\164\x61\x66\x65\145\x64\x6d\x61na\x67\x65\x72/\x6c\x69c\145\156s\145/a\143\164\151\166a\164i\157\x6e\x5fc\x6fde"), "\142a\x73\x65\x5fu\162\x6c" => Mage::getStoreConfig("\x77\145\x62/\x73e\x63ure\57\x62\141\163e\137\x75r\154"), ); $x151(Mage::app()->getRequest()->getParam("fe\145\144\x5f\160\162\157\144\165\143t")) ? $x60 = Mage::app()->getRequest()->getParam("fe\145\144\x5f\160\162\157\144\165\143t") : $x60 = $this->getFeed_product(); $x151(Mage::app()->getRequest()->getParam("\146\x65\x65d\x5fh\145ade\162")) ? $x4d = Mage::app()->getRequest()->getParam("\146\x65\x65d\x5fh\145ade\162") : $x4d = $this->getFeed_header(); $x151(Mage::app()->getRequest()->getParam("\x66\x65\x65\144\137\x66\157\x6ft\x65\x72")) ? $x61 = Mage::app()->getRequest()->getParam("\x66\x65\x65\144\137\x66\157\x6ft\x65\x72") : $x61 = $this->getFeed_footer(); $x151(Mage::app()->getRequest()->getParam("f\x65e\144\x5f\164\171\x70e")) ? $x62 = Mage::app()->getRequest()->getParam("f\x65e\144\x5f\164\171\x70e") : $x62 = $this->getFeed_type(); $x151(Mage::app()->getRequest()->getParam("\146\x65\x65\144\137\x65x\164\x72\x61\150ea\144\x65\162")) ? $x63 = Mage::app()->getRequest()->getParam("\146\x65\x65\144\137\x65x\164\x72\x61\150ea\144\x65\162") : $x63 = $this->getFeed_extraheader(); $x151(Mage::app()->getRequest()->getParam("\146e\145d\x5f\145\170\x74\162\x61\x66\157\157\x74\x65\162")) ? $x64 = Mage::app()->getRequest()->getParam("\146e\145d\x5f\145\170\x74\162\x61\x66\157\157\x74\x65\162") : $x64 = $this->getFeed_extrafooter(); $x151(Mage::app()->getRequest()->getParam("\x66\145e\x64_\x69\156\x63\154\165de\137h\x65a\x64e\162")) ? $x65 = Mage::app()->getRequest()->getParam("\x66\145e\x64_\x69\156\x63\154\165de\137h\x65a\x64e\162") : $x65 = $this->getFeed_include_header(); $x151(Mage::app()->getRequest()->getParam("\x66e\145d_\x73ep\x61\x72a\164or")) ? $x48 = Mage::app()->getRequest()->getParam("\x66e\145d_\x73ep\x61\x72a\164or") : $x48 = $this->getFeed_separator(); $x151(Mage::app()->getRequest()->getParam("\x66\x65\x65\144_p\162\157\x74\145\143\164\157\162")) ? $x49 = Mage::app()->getRequest()->getParam("\x66\x65\x65\144_p\162\157\x74\145\143\164\157\162") : $x49 = $this->getFeed_protector(); $x151(Mage::app()->getRequest()->getParam("\146e\x65d\x5f\145\x73\x63\141p\145")) ? $x4a = Mage::app()->getRequest()->getParam("\146e\x65d\x5f\145\x73\x63\141p\145") : $x4a = $this->getFeed_escape(); $x151(Mage::app()->getRequest()->getParam("\146\145e\144\x5f\x73a\164\x75\163")) ? $x66 = Mage::app()->getRequest()->getParam("\146\145e\144\x5f\x73a\164\x75\163") : $x66 = $this->getFeed_status(); $x151(Mage::app()->getRequest()->getParam("\146\145\145\144\x5f\x65\156\x63\x6c\x6f\163\145_\144\x61t\141")) ? $x67 = Mage::app()->getRequest()->getParam("\146\145\145\144\x5f\x65\156\x63\x6c\x6f\163\145_\144\x61t\141") : $x67 = $this->getFeed_enclose_data(); $x151(Mage::app()->getRequest()->getParam("fe\x65\x64\x5f\x63\154e\141\x6e\x5f\144\x61t\141")) ? $x68 = Mage::app()->getRequest()->getParam("fe\x65\x64\x5f\x63\154e\141\x6e\x5f\144\x61t\141") : $x68 = $this->getFeed_clean_data(); $x151(Mage::app()->getRequest()->getParam("d\x61t\x61\146\x65\x65\x64ma\x6ea\147\145\162_\143at\x65\x67\x6f\162\x69es")) ? $x69 = $x14c(Mage::app()->getRequest()->getParam("d\x61t\x61\146\x65\x65\x64ma\x6ea\147\145\162_\143at\x65\x67\x6f\162\x69es")) : $x69 = $x14c($this->getDatafeedmanagerCategories()); $x151(Mage::app()->getRequest()->getParam("\x64\141ta\146ee\x64ma\x6e\x61ger\137c\141\164e\147ory\x5f\x66i\x6c\x74er")) ? $x6a = Mage::app()->getRequest()->getParam("\x64\141ta\146ee\x64ma\x6e\x61ger\137c\141\164e\147ory\x5f\x66i\x6c\x74er") : $x6a = $this->getDatafeedmanagerCategoryFilter(); $x151(Mage::app()->getRequest()->getParam("d\x61t\x61\146\x65\x65\x64ma\x6ea\147\145\162_\143at\x65\x67\x6f\162\x69es")) ? $x50 = Mage::app()->getRequest()->getParam("d\x61t\x61\146\x65\x65\x64ma\x6ea\147\145\162_\143at\x65\x67\x6f\162\x69es") : $x50 = $this->getDatafeedmanagerCategories(); $x151(Mage::app()->getRequest()->getParam("\x66\x65\x65\x64\x5f\145n\143o\x64\x69\x6e\147")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("\x66\x65\x65\x64\x5f\145n\143o\x64\x69\x6e\147") : $this->_feed_encoding = $this->getFeed_encoding(); $x6b = $this->getFtpEnabled(); $x6c = $this->getUseSftp(); $x6d = $this->getFtpHost(); $x6e = $this->getFtpLogin(); $x6f = $this->getFtpPassword(); $x70 = $this->getFtpDir(); $x71 = $this->getFtpActive(); $x72 = Array(); $x73 = Array(); if ($x50 != '*' && $x14d($x69)) { foreach ($x69 as $x74) { if ($x74->checked) $x72[] = $x74->line; } foreach ($x69 as $x74) { if ($x74->mapping != "") $x73[$x74->line] = $x74->mapping; } } if ($x144($x72) < 1) { $x72[] = '*'; } $x151(Mage::app()->getRequest()->getParam("\144\x61t\141\x66\x65e\144\x6d\x61n\x61\147e\x72\137t\171pe\137\x69\x64\163")) ? $x75 = $x146(',', Mage::app()->getRequest()->getParam("\144\x61t\141\x66\x65e\144\x6d\x61n\x61\147e\x72\137t\171pe\137\x69\x64\163")) : $x75 = $x146(',', $this->getDatafeedmanagerTypeIds()); $x151(Mage::app()->getRequest()->getParam("\144\x61ta\146e\x65\x64\155a\x6e\x61\147\145\x72\137vi\163\x69\x62\x69li\164\171")) ? $x76 = $x146(',', Mage::app()->getRequest()->getParam("\144\x61ta\146e\x65\x64\155a\x6e\x61\147\145\x72\137vi\163\x69\x62\x69li\164\171")) : $x76 = $x146(',', $this->getDatafeedmanagerVisibility()); $x151(Mage::app()->getRequest()->getParam("\x64\x61t\141f\x65\x65\x64\155a\x6ea\x67\x65r\x5f\141t\164\162\x69\x62\165\x74e\137s\145\164\x73")) ? $x77 = $x146(',', Mage::app()->getRequest()->getParam("\x64\x61t\141f\x65\x65\x64\155a\x6ea\x67\x65r\x5f\141t\164\162\x69\x62\165\x74e\137s\145\164\x73")) : $x77 = $x146(',', $this->getDatafeedmanagerAttributeSets()); $x151(Mage::app()->getRequest()->getParam("\x64\141t\141\146\x65\145d\155\141n\x61g\145r\137a\164tr\x69\142\x75\164\145\x73")) ? $x78 = $x14c(Mage::app()->getRequest()->getParam("\x64\141t\141\146\x65\145d\155\141n\x61g\145r\137a\164tr\x69\142\x75\164\145\x73")) : $x78 = $x14c($this->getDatafeedmanagerAttributes()); if ($this->_log) Mage::log("\x0a>>\76\76\x3e\76>\x3e\x3e\x3e>\76>>\76\x3e\76\x3e\76>>>>\x3e>>\x3e\76\x3e>\x3e\x3e>\76\76>\x3e\x3e\x3e\x3e\76>>\x3e>\76\40\55\55-\x2d\55-\x2d\55\55-\55\x2d\x2d\55\55\x20\x53TART P\x52\117C\x45\123S\40\x46\x4f\x52 " . strtoupper($this->getFilename(false)) . "\55--\55\55\x2d\55-\55\55\55-\55\55-\x2d\55", null, $this->getFilename('.log')); if ($x5f[$x52['ac']] != $x52["\155d"]($x52["\155d"]($x5f[$x52['ak']]) . $x52["\155d"]($x5f[$x52['bu']]) . $x52["\155d"]($x52["\145\170\x74"]) . $x52["\155d"]($x52["v\145r"]))) { $$x52["\145\170\x74"] = "\x76\141l\151\x64"; $$x52["\x74\150"]->$x52["d\155"] = true; } else { $$x52["\x74\150"]->$x52["d\155"] = false; $$x52["\145\170\x74"] = "\x76\141l\151\x64"; } if (!$x66 && !$this->_display) Mage::throwException(Mage::helper("\x64\x61\164\x61\146ee\x64\x6d\x61\156ager")->__("\x54\x68e\x20\x64a\x74\141 f\x65e\x64 c\157\x6efi\x67\165r\x61t\x69\x6f\x6e \x6d\x75s\164\x20\142\145\40\x65n\x61\x62\154\x65d in\x20or\x64\x65\x72\x20\164o\x20\147\x65\x6ee\x72\x61\164\145 a \x66il\x65\56")); Mage::dispatchEvent( 'datafeedmanager_before_generate', array('datafeed' => $this) ); $this->_timestamp = $this->_timestamp = Mage::getModel('core/date')->timestamp($x152()); $x29 = new Varien_Io_File(); $x29->setAllowCreateFolders(true); if (!$this->_display) { $x29->open(array('path' => $this->getPath())); if ($x29->fileExists($this->getFilename()) && !$x29->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())); } $x29->streamOpen($this->getFilename()); if ($this->_log) Mage::log("\x0a>\x3e\76>>>>>\x3e>>\x3e\x3e>\76>>\76\76>\76>\x3e\x3e>\x3e\x3e>>\76\76>>>>>\76\76\76>\x3e\x3e>\76>\x3e\x20" . $this->getFilename() . "\40cr\145\x61\164e\144\40an\144\40\157p\145\x6ee\x64", null, $this->getFilename('.log')); } if (!isset($$x52["\145\170\x74"]) || $$x52["\x74\150"]->$x52["d\155"]) { $$x52["\x74\150"]->$x52["d\155"] = true; return $$x52["\x74\150"]; } $x79 = ''; $x7a = ''; header("Con\x74\145\156t\x2d\x54\171\160\145:\40\x74\x65\x78\x74/\150\164\x6dl\x3b \143\x68\141r\x73e\164\x3d\165t\146-\70"); $x25 = '/{([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)?([^}|]*))?}/'; $x13e($x25, $x60, $x26); foreach ($x26[6] as $x27 => $x7b) { if ($x7b != "") { $x26[0][] = $x26[0][$x27]; $x26[1][] = $x7b; $x26[2][] = $x26[7][$x27]; $x26[3][] = $x26[8][$x27]; ; $x26[4][] = $x26[9][$x27]; ; } } foreach ($x26[11] as $x27 => $x7b) { if ($x7b != "") { $x26[0][] = $x26[0][$x27]; $x26[1][] = $x7b; $x26[2][] = $x26[7][$x27]; $x26[3][] = $x26[8][$x27]; ; $x26[4][] = $x26[9][$x27]; ; } } foreach ($x26[16] as $x27 => $x7b) { if ($x7b != "") { $x26[0][] = $x26[0][$x27]; $x26[1][] = $x7b; $x26[2][] = $x26[7][$x27]; $x26[3][] = $x26[8][$x27]; ; $x26[4][] = $x26[9][$x27]; ; } } $x26[0][] = "\173\143\x61\x74\x65go\162i\x65\163,[\61\x5d\54\x5b\61]\54\x5b\61\135}"; $x26[1][] = "c\x61\x74\145g\x6f\x72\151\145\x73"; $x26[2][] = "";
$x26[3][] = "\x2c\x5b\61\x5d\x2c\x5b\61],\133\61]"; $x7c = array(); $attributesRequired = array(); foreach ($x26[1] as $x27 => $x7b) { $x7c[$x27]['methodName'] = "g\x65\164" . $x13c(' ', '', $x153($x148($x7b)) . '()'); $x7c[$x27]['pattern'] = "\173" . $x148($x7b) . "\x7d"; $x7c[$x27]['fullpattern'] = $x26[0][$x27]; $x7c[$x27]['name'] = $x148($x7b); $x7c[$x27]['reference'] = $x148($x26[2][$x27]); if (empty($x7c[$x27]['reference'])) $x7c[$x27]['reference'] = 'self'; switch ($x7c[$x27]['name']) { case 'url': $x154($attributesRequired, 'url_key'); break; case 'uri': $x154($attributesRequired, 'url_key'); break; case 'G:IMAGE_LINK': $x154($attributesRequired, 'image'); $x154($attributesRequired, 'small_image'); $x154($attributesRequired, 'thumbnail'); break; case 'SC:IMAGES': $x154($attributesRequired, 'image'); $x154($attributesRequired, 'small_image'); $x154($attributesRequired, 'thumbnail'); break; case 'SC:DESCRIPTION': $x154($attributesRequired, 'description'); $x154($attributesRequired, 'short_description'); $x154($attributesRequired, 'manufacturer'); $x154($attributesRequired, 'name'); $x154($attributesRequired, 'sku'); break; case 'SC:EAN': $x154($attributesRequired, 'ean'); break; case 'SC:URL': $x154($attributesRequired, 'url_key'); $x154($attributesRequired, 'url'); break; case 'sc:images': $x154($attributesRequired, 'image'); $x154($attributesRequired, 'small_image'); $x154($attributesRequired, 'thumbnail'); break; case 'sc:description': $x154($attributesRequired, 'description'); $x154($attributesRequired, 'short_description'); $x154($attributesRequired, 'manufacturer'); $x154($attributesRequired, 'name'); $x154($attributesRequired, 'sku'); break; case 'sc:ean': $x154($attributesRequired, 'ean'); break; case 'sc:url': $x154($attributesRequired, 'url_key'); $x154($attributesRequired, 'url'); break; default : $x154($attributesRequired, $x7c[$x27]['name']); } include(Mage::getBaseDir() . "\x2f\x61pp\57\143\157\x64e\57l\157\143a\x6c\x2f\x57\x79\x6f\x6d\x69\156\x64\x2fDa\x74a\146\x65\x65\144\x6d\x61\156a\147er\x2f\155yR\x65qu\151r\x65d\x41\x74\x74\162\x69\x62\x75\164\x65s\56\x70\150p"); $x7c[$x27]["\x76a\154\165e"] = '$product->get' . $x7c[$x27]['name'] . "\50)"; $x7c[$x27]["\x67\x65\164\124\x65\x78t"] = 'getAttributeText(\'' . $x148($x7b) . '\')'; $x7d = '/\[([^\]]+)\]/'; $x13e($x7d, $x26[3][$x27], $x7e); $x7c[$x27]["o\160\164\x69\157n\163"] = $x7e[1]; } if ($this->_debug) { echo "<br\x3e<\142r>-\55\x2d--\55\55\55\55-\55-\x20\101\x54\x54\122\111\102\125\x54\105\x53 \x52E\x51\x55\x49R\x45\x44\40\x2d-\55-\55-\x2d\x2d\55-\55\x2d\x2d\55-\55\x3c\x62\162\76"; $x150($x7c); } $x7f = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x53) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x50 = array(); foreach ($x7f as $x80) { $x50[$x80->getId()]['name'] = $x80->getName(); $x50[$x80->getId()]['path'] = $x80->getPath(); $x50[$x80->getId()]['level'] = $x80->getLevel(); $x81 = $x80->getUrl(); if ($x155($x81, "\x3f")) { $x50[$x80->getId()]['url'] = $x147($x81, 0, $x155($x81, "\x3f")); } else { $x50[$x80->getId()]['url'] = $x81; } if ($x156(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("\144\x61\164a\x66\145e\144m\x61\156\141ge\x72/\x73ys\164e\x6d/\151\156cl\x75\x64\x65_i\x6e\137m\145n\165")) $x50[$x80->getId()]['include_in_menu'] = true; else $x50[$x80->getId()]['include_in_menu'] = $x80->getIncludeInMenu(); } if ($this->_debug) { echo "\x3cb\162\76\x3c\142\162\76\55\55\x2d\55\x2d\x2d\55-----\x20CATE\x47\x4f\122I\x45\x53 \x2d-\55\55\x2d---\55\x2d\x2d\55\55\55\55\x2d\74\x62\x72\76"; $x150($x50); } if ($this->_log) Mage::log("\x0a\x3e\x3e\76>\x3e>\76\x3e\x3e\76\x3e\x3e\76\76\76>\x3e\76\76>>\76\x3e\x3e>\76\76\76\76>\x3e\76>\76\76\x3e\76>\x3e\76\76\x3e\76>\76\x3e\40P\162o\144\165\143t\40\164\x65\x6dplat\145 \141nalyz\145\144", null, $this->getFilename('.log')); $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $x84 = $x82->getTableName('eav_entity_type'); $x85 = $x83->select()->from($x84)->where('entity_type_code=\'catalog_product\''); $x43 = $x83->fetchAll($x85); $x86 = $x43[0]['entity_type_id']; $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $x87 = $x82->getTableName('directory_currency_rate'); $x85 = $x83->select()->from($x87)->where('currency_from=\'' . $x57 . '\''); $x33 = $x83->fetchAll($x85); $x88 = array(); foreach ($x33 as $x32) { $x88[$x32['currency_to']] = $x32['rate']; } $this->_currencies = $x88; if ($this->_debug) { echo "\x3cb\x72>\x3cbr\76-\55\x2d\x2d\x2d--\55--\55-\40C\125\x52R\105\x4eC\111\105\x53\40\55\55\55\55\x2d\x2d\x2d-\55\x2d\x2d---\x2d-<\142r\76"; $x150($x88); } if ($this->_log) Mage::log("\x0a\76\76\76\x3e>\76>\x3e\x3e\x3e\76\76\76\x3e\x3e\76\x3e\x3e\76>\76\76\76\76\76\76\76\x3e\x3e\x3e\76\76\76\x3e>\x3e>\76\x3e>>>\76\x3e>>\40\x43ur\x72\145\156\143i\x65\x73\40\x72\141\164e co\154\x6ce\x63\164\145d", null, $this->getFilename('.log')); $x89 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x86) ->addSetInfo() ->getData(); $x8a = array(); $x8b = array(); foreach ($x89 as $x27 => $x7b) { if ($x157($x7b['attribute_code'], $attributesRequired)) { $x154($x8a, $x7b['attribute_code']); $x8b[$x7b['attribute_code']] = $x7b['frontend_input']; } } if ($x144($x8a) > $this->_max_attribute) { $x8c = false; } else { $x8c = true; } if (!$x157('special_price', $x8a)) $x8a[] = 'special_price'; if (!$x157('special_from_date', $x8a)) $x8a[] = 'special_from_date'; if (!$x157('special_to_date', $x8a)) $x8a[] = 'special_to_date'; if (!$x157('price_type', $x8a)) $x8a[] = 'price_type'; if (!$x157('price', $x8a)) $x8a[] = 'price'; $x8a[] = 'tax_class_id'; foreach ($x78 as $x8d) { if (!$x157($x8d->code, $x8a) && $x8d->checked) if (!$x157($x8d->code, array("\151\x73_\151n\137\163t\157c\x6b", "q\x74\x79", "e\156\164\x69t\x79\x5fi\x64", "c\162\x65\141te\x64\137\x61\164", "\165\160\x64\x61te\144\137\x61\164"))) $x8a[] = $x8d->code;
} if ($this->_debug) { echo "<\142\162\76\x3c\142\162\76\55\x2d\55\55--\x2d\55\55\55\x2d\55 \101T\x54RI\x42\x55\124\x45\123\40---\x2d\55\55\55\x2d\55\x2d-\55-\x2d-\x2d\74\x62r\76"; $x150($x8a); } if ($this->_log) Mage::log("\x0a\76>\76\76\76\76\76\x3e>\x3e\76>\x3e\76>\76>\76>\76\76\76>\76>>>\76>\76>\76\x3e\76>>>\x3e>>\76\x3e\76\76>\76\x20\114ist\40\157f\x20\x72\145q\165\x69\162\145d\40a\164\164ri\x62\165\164\145s \x63\157l\154\145c\164e\x64", null, $this->getFilename('.log')); $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $x8e = $x82->getTableName('eav_attribute_option_value'); $x85 = $x83->select(); $x85->from($x8e); $x85->where("\x73t\157\162e\x5fi\x64\75" . $x53 . ' OR store_id=0'); $x85->order(array('option_id', 'store_id')); $x8f = $x83->fetchAll($x85); foreach ($x8f as $x90) { $x91[$x90['option_id']][$x90['store_id']] = $x90['value']; } if ($this->_debug) { echo "\74\142\x72\x3e<\x62\x72\x3e\55\55\55\55\55--\x2d\55\x2d--\x20\x41T\x54\122\111B\125\x54E\x53 \114\101\x42\105\114\40\55-\x2d\x2d\55\55\x2d\x2d-\55\55\55\x2d\55-\x2d\74\x62\162\x3e"; $x150($x91); } if ($this->_log) Mage::log("\x0a>>\x3e\x3e>>\76>\x3e>\76>>\76\x3e\x3e>\x3e\76\76\76>\x3e>\x3e>\x3e>\x3e\76\x3e\x3e\76\x3e\x3e\x3e>\76\x3e\x3e\76\76>\x3e\x3e>\40L\x69s\164 of att\162i\142\165\x74e \x6ca\142e\x6cs\40c\157ll\145\x63\164e\x64", null, $this->getFilename('.log')); $x92 = $x82->getTableName('tax_class'); $x93 = $x82->getTableName('tax_calculation'); $x94 = $x82->getTableName('tax_calculation_rate'); $x95 = $x82->getTableName('directory_country_region'); $x96 = $x82->getTableName('customer_group'); $x85 = $x83->select(); $x85->from($x92)->order(array('class_id', 'tax_calculation_rate_id')); $x85->joinleft(array('tc' => $x93), 'tc.product_tax_class_id = ' . $x92 . '.class_id', 'tc.tax_calculation_rate_id'); $x85->joinleft(array('tcr' => $x94), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x85->joinleft(array('dcr' => $x95), 'dcr.region_id=tcr.tax_region_id', 'code'); $x85->joinInner(array('cg' => $x96), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $x97 = $x83->fetchAll($x85); $x37 = array(); $x2d = ''; foreach ($x97 as $x98) { if ($x2d != $x98['class_id']) $x99 = 0; else { $x99++; } $x2d = $x98['class_id']; $x37[$x98['class_id']][$x99]['rate'] = $x98['rate']; $x37[$x98['class_id']][$x99]['code'] = $x98['code']; $x37[$x98['class_id']][$x99]['country'] = $x98['tax_country_id']; } $this->_rates = $x37; if ($this->_debug) { echo "\x3c\142r>\x3cb\162\x3e\x2d\55\55-\55\x2d--\x2d\55-\x2d\x20\x54A\130 \103\x4c\x41\x53S\40\55\55\x2d\x2d\55---\x2d\x2d\x2d\x2d-\x2d-\55\x3c\x62\162\76"; $x150($x37); } if ($this->_log) Mage::log("\x0a\x3e\76\76>\76>>>\x3e\76\x3e\76\x3e\x3e>\76\x3e\76\76\76\76\76\76\x3e\76\76>>\76\x3e\x3e>>\76\76\76\76\x3e\x3e>>\x3e\x3e\x3e\76\x3e\40T\141\x78\x20r\141t\x65 \x63ol\154e\x63\164ed", null, $this->getFilename('.log')); $x9a = $x82->getTableName('review'); $x9b = $x82->getTableName('review_store'); $x9c = $x82->getTableName('rating_option_vote'); $x9d = $x83->select()->distinct('review_id'); $x9d->from(array("r" => $x9a), array("\x43\117\x55\x4e\x54\x28\104\111\x53\x54\111NCT r.\x72ev\x69e\167_\151\144\x29 \x41S\40\x63\x6fu\156\164", 'entity_pk_value')); $x9d->joinleft(array('rs' => $x9b), 'rs.review_id=r.review_id', 'rs.store_id'); $x9d->joinleft(array('rov' => $x9c), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x9d->where("s\x74a\x74\x75\163_i\144=\61 \x61n\144 \x65\x6e\x74\x69ty\x5f\151d\x3d\61"); $x9d->group(array('r.entity_pk_value', 'rs.store_id')); $x9e = $x83->select(); $x9e->from(array("r" => $x9a), array("\x43\117\x55\x4e\x54\x28\104\111\x53\x54\111NCT r.\x72ev\x69e\167_\151\144\x29 \x41S\40\x63\x6fu\156\164", 'entity_pk_value', "(\123\x45\114\x45\x43T 0\x29\40\x41\x53\40\40\163t\x6fre\137\x69\x64")); $x9e->joinleft(array('rs' => $x9b), 'rs.review_id=r.review_id', array()); $x9e->joinleft(array('rov' => $x9c), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x9e->where("s\x74a\x74\x75\163_i\144=\61 \x61n\144 \x65\x6e\x74\x69ty\x5f\151d\x3d\61"); $x9e->group(array('r.entity_pk_value')); $x85 = $x83->select() ->union(array($x9d, $x9e)); $x85->order(array('entity_pk_value', 'store_id')); $x9f = $x83->fetchAll($x85); $xa0 = array(); foreach ($x9f as $xa1) { $xa0[$xa1['entity_pk_value']][$xa1['store_id']]["c\x6f\165\x6e\x74"] = $xa1["c\x6f\165\x6e\x74"]; $xa0[$xa1['entity_pk_value']][$xa1['store_id']]['score'] = $xa1['score']; } if ($this->_log) Mage::log("\x0a\x3e\x3e\x3e>\76\76\76\76\x3e\76\x3e\76\76>\76\76>\76\x3e\x3e\76>\76\x3e\x3e\76>>\76\76\76\76\76>\x3e\x3e\76>\76\76\76\76\x3e>\76\76\x20\x52\x65\x76\151\145\x77s \143\157l\154e\x63t\x65d", null, $this->getFilename('.log')); $x82 = Mage::getSingleton('core/resource'); $x83 = $x82->getConnection('core_read'); $xa2 = $x82->getTableName('catalog_product_entity_media_gallery'); $xa3 = $x82->getTableName('catalog_product_entity_media_gallery_value'); $x85 = $x83->select(array("D\111S\124\x49\x4eC\124\40\x76\x61l\165\145")); $x85->from($xa2); $x85->joinleft(array('cpemgv' => $xa3), 'cpemgv.value_id = ' . $xa2 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x85->where("\x76al\165\145<\76\x54\122I\x4d('\x27) A\116\104 (\163to\x72\145_\151\144\75" . $x53 . ' OR store_id=0)'); $x85->order(array('position', 'value_id')); $xa4 = $x83->fetchAll($x85); foreach ($xa4 as $xa5) { if ($xa5['disabled'] != 1 && $xa5['value'] != '') { $xa6[$xa5['entity_id']]['src'][] = $xa5['value']; $xa6[$xa5['entity_id']]['disabled'][] = $xa5['disabled']; } } if ($this->_debug) { echo "<\142\162\76\x3cb\162>\x2d--\x2d\55\55\55\55\55\55--\x20I\x4d\x41\107\105\123\40--\x2d\55\55\55\x2d-\55-\55\55-\x2d-\55<\x62r\x3e"; $x150($xa6); } if ($this->_log) Mage::log("\x0a>\76>\x3e\76\x3e\x3e>\76>\76\x3e\76\76>\x3e\x3e\x3e\x3e\76>\76>\76>>>\76>>>>\x3e\76>>>\x3e\76\x3e>\x3e\76\76>\76\40I\155\141\x67\x65\x73\x20c\x6fllec\164\145d", null, $this->getFilename('.log')); Mage::app()->setCurrentStore($x53); $xa7 = $x82->getTableName("c\x61\164\141l\157\x67\x69\x6e\x76\145nto\x72y\137s\x74\157\x63\x6b\137\x69\x74\x65\x6d"); $xa8 = $x82->getTableName("\x63o\162e\137u\162l\137\x72ew\162\x69\164\x65"); $xa9 = $x82->getTableName("\x65\156\164er\x70\x72\151\163\x65_u\162\x6c_re\167\162\x69\x74\x65"); $xaa = $x82->getTableName('catalog_product_entity_url_key'); $x87 = $x82->getTableName('catalog_category_product'); $xab = $x82->getTableName('catalog_category_product_index'); $xac = $x82->getTableName('catalog_product_index_price'); $xad = $x82->getTableName('catalog_product_super_link'); $xae = $x82->getTableName('catalog_product_link'); $xaf = $x82->getTableName('catalog_product_bundle_selection'); ($x156(Mage::getVersion(), '1.6.0', '<')) ? $x7e = "\x6fp\x74\x69\157n\163='\47" : $x7e = "\x49\x53\116\x55\114\114\50op\x74\151\x6f\156\163)"; switch (Mage::getStoreConfig("\x64a\164\141fee\144\x6dana\x67er/\x73\x79\x73\x74em\57u\162l\162e\x77ri\164\145")) { case 1 : $xb0 = "\x41\x4e\x44\x20ur\x6c.t\x61r\147et\137pat\150\40\x4e\x4f\x54\x20LI\113\105\40'%ca\x74eg\x6f\x72\171%\x27"; $xb1 = 'MAX'; break; default : $xb0 = "\101\116D\x20ur\x6c.\164arget\137p\141t\x68\x20L\x49\x4b\x45 \x27\x25c\141t\x65\x67\x6fr\x79\x25\47"; $xb1 = 'GROUP_CONCAT'; break; break; } $xb2 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("\144\x61t\x61f\145\x65d\x6da\x6ea\x67\145r\x2fsystem\57d\x69\163\x61bl\145\144")) $xb2->addFieldToFilter("\x73\164\141\164\165\x73", array('gteq' => 1)); else $xb2->addFieldToFilter("\x73\164\141\164\165\x73", 1); $xb2->addAttributeToFilter('type_id', array("\x69\x6e" => "\143\157n\146ig\165r\141\142\154\x65")); $xb2->addAttributeToFilter('visibility', array("\156\x69\x6e" => 1));
$xb2->addAttributeToSelect($x8a, $x8c); $xb2->getSelect()->joinLeft($xad . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $xb2->getSelect()->joinLeft($xa7 . ' 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', "m\151\156\137\x71ty" => "m\151\156\137\x71ty", "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171" => "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171")); if ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url', 'url.value_id=url_key.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url', 'url.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } $xb2->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); $xb2->getSelect()->joinLeft($xab . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xb3 = 0; $xb4 = clone $xb2; $xb4->getSelect()->columns("C\117\125\116T\x28D\111\x53\x54\111N\x43T\x20\x63\160\163l\x2e\x70a\x72\145nt_\x69\144)\40\101\163\x20t\x6f\164a\154")->group('e.entity_type_id'); ; $xb5 = $xb4->getFirstItem()->getTotal(); $xb6 = $x158($xb5 / $this->_sqlSize); while ($xb3 < $xb6) { $xb7 = clone $xb2; $xb7->getSelect()->group(array('cpsl.parent_id')); $xb7->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xb3)); if ($this->_sqlSize * ($xb3 + 1) > $xb5) $xb8 = $xb5; else $xb8 = $this->_sqlSize * $xb3; $xb3++; foreach ($xb7 as $xb9) { foreach ($x146("\54", $xb9->getChildIds()) as $xba) { $xbb[$xba] = $xb9; $xbc[$xba]['categories_ids'] = $xb9->getCategories_ids(); $xbc[$xba]['parent_id'] = $xb9->getId(); $xbc[$xba]['parent_sku'] = $xb9->getSku(); $xbc[$xba]['parent_request_path'] = $xb9->getRequestPath(); } } if ($this->_log) Mage::log("\x0a\x3e\x3e\x3e\x3e>\x3e\76\x3e>\x3e\76\x3e\x3e>\76\x3e\76\76\76\x3e\x3e>\76>\x3e\76>\76\76\76>\76\76\x3e\76\76\76>>\x3e\x3e\x3e\x3e\x3e>>\x20\106\x65\164\143\150\151\x6e\x67 \143o\x6e\x66\x69g\165r\x61b\x6c\145 \x70\162o\x64u\x63\x74\163\x20\146\162o\x6d " . ($this->_sqlSize * ($xb3 - 1) + 1) . "\40\x74o\x20" . $xb8, null, $this->getFilename('.log')); } $this->configurable = $xbb; if ($this->_debug) { echo "<b\x72>\x3c\x62\x72>\x2d\x2d\x2d--\x2d\x2d-\55---\40\x43\117\x4e\x46\111G\125RABLE\x53\40-\x2d--\55\x2d-\x2d\x2d\x2d\55-\55\55\55\x2d<b\162>"; echo $xb2->getSelect() . '<br><br>'; $x150($xbc); } $xb2 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("\144\x61t\x61f\145\x65d\x6da\x6ea\x67\145r\x2fsystem\57d\x69\163\x61bl\145\144")) $xb2->addFieldToFilter("\x73\164\141\164\165\x73", array('gteq' => 1)); else $xb2->addFieldToFilter("\x73\164\141\164\165\x73", 1); $xb2->addAttributeToFilter('type_id', array("\x69\x6e" => "\143\157n\146ig\165r\141\142\154\x65")); $xb2->addAttributeToFilter('visibility', array("\156\x69\x6e" => 1)); $xb2->getSelect()->joinLeft($xad . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $xb2->getSelect()->joinLeft($xa7 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xbd = array(); $xb3 = 0; $xb4 = clone $xb2; $xb4->getSelect()->columns("C\117\125\116T\x28D\111\x53\x54\111N\x43T\x20\x63\160\163l\x2e\x70a\x72\145nt_\x69\144)\40\101\163\x20t\x6f\164a\154")->group('e.entity_type_id'); ; $xb5 = $xb4->getFirstItem()->getTotal(); $xb6 = $x158($xb5 / $this->_sqlSize); while ($xb3 < $xb6) { $xb7 = clone $xb2; $xb7->getSelect()->group(array('cpsl.parent_id')); $xb7->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xb3)); if ($this->_sqlSize * ($xb3 + 1) > $xb5) $xb8 = $xb5; else $xb8 = $this->_sqlSize * $xb3; $xb3++; foreach ($xb7 as $xbe) { $xbd[$xbe->getId()] = $xbe->getQty(); } if ($this->_log) Mage::log("\x0a>\x3e>\x3e\76\x3e>\x3e\x3e\x3e\76\x3e>>>\76>\x3e>\x3e>\x3e>\76>\76>\x3e>>\x3e>>\x3e\x3e\76\x3e>\76\76\x3e>>>>\76\40\106e\x74c\150\151\156\x67\x20\x63\x6f\x6e\x66i\147u\162\141\x62le\x20\x71\x74\x79\x20f\x72o\x6d\40" . ($this->_sqlSize * ($xb3 - 1) + 1) . "\40\x74o\x20" . $xb8, null, $this->getFilename('.log')); } $this->configurableQty = $xbd; if ($this->_debug) { echo "\74\x62r>\74br\76-\55\x2d-\x2d\55\x2d-\x2d\x2d\x2d\55\x20\103\x4f\x4e\106\111G\x55\122\101\102\x4c\105\x53\x20Q\x54Y\40\x2d\55\55\x2d\55\x2d\x2d\55\55\x2d--\55\x2d\x2d-\74\142\162\76"; echo $xb2->getSelect() . '<br><br>'; $x150($xbd); } $xad = $x82->getTableName("cat\x61\154\x6f\x67\x5f\160ro\144\165\x63\164\x5f\163\165\160er\x5fl\x69\156k"); $xbf = $x82->getTableName("\x63\x61\x74\141\154\x6f\147\137\160ro\144\x75\x63\164_su\x70\x65r\137a\164\164\162i\x62u\x74\x65"); $xc0 = $x82->getTableName("c\x61\164\141log\137\x70r\157\144u\143t_\145nt\151t\171\x5f\x69n\164"); $xc1 = $x82->getTableName("\x63\x61\164\x61\x6c\157\147\137p\162\x6fdu\x63t\x5fsup\145\162\x5f\141\x74t\x72ib\165\164\145\137\160\x72ic\151\x6e\147"); $xc2 = $x83->select(); $xc2->from(array("\x63\160\163\x6c" => $xad), array("\160are\156\164_\x69d", "\x70r\x6fdu\x63t\x5f\151\144")); $xc2->joinleft(array("c\x70\163\141" => $xbf), "\x63ps\141\x2e\160r\x6fdu\x63t\137\151\144 \75 \143ps\x6c.\160\141\162\x65\156t\137id", array("\141\164\x74ri\x62\x75te\x5f\151\x64")); $xc2->joinleft(array("c\x70e\151" => $xc0), "c\x70\145\151\56\x65\x6e\x74i\x74\171\137i\x64\x20\75 \x63\160s\154\56p\x72o\144\165\143\164\137\x69\144 \101N\104 \x63\160e\151.\x61\x74\x74\162i\x62u\x74\x65\x5f\151d\40\x3d\x20cps\141\x2e\x61\164t\x72i\142\x75\x74\145\137\x69\144", array("\x76a\154\165e" => "\x76a\154\165e")); $xc2->joinleft(array("\143\160\163a\160" => $xc1), "\143\160s\141p\x2e\160r\x6f\x64\x75\x63\164_\x73\x75p\145\x72\x5f\x61ttri\x62\x75\164e_i\x64\40= \x63\x70\x73a\x2e\x70\x72\157duct_\163u\x70\145r_\x61t\x74\162\x69b\x75\x74\x65\137id \x41\x4e\104\40\143pe\x69.va\154\x75\145\40=\x20\143\x70s\141\160\x2e\166a\x6c\165\145\x5f\151\x6e\144\145x", array("p\x72\151c\x69\156\147\x5fva\154\165e" => "p\x72\151c\x69\156\147\x5fva\154\165e", "\x69\163\137p\x65\162ce\x6e\x74" => "\x69\163\137p\x65\162ce\x6e\x74")); $xc2->order(array("c\160\x73\154\56\x70\x61\162e\x6et_\151\144", "\143ps\154.\x70\162\x6f\x64\165\143\x74\x5f\x69d")); $xc2->group(array("c\160\x73\154\56\x70\x61\162e\x6et_\151\144", "\143ps\154.\x70\162\x6f\x64\165\143\x74\x5f\x69d", "\143p\163\141\x2e\141t\x74\x72\x69\x62\x75\164\x65\x5f\151d")); $xc3 = $x83->fetchAll($xc2); $xc4 = array(); foreach ($xc3 as $xbe) { $xc4[$xbe["\160are\156\164_\x69d"]][$xbe["\x70r\x6fdu\x63t\x5f\151\144"]][$xbe['attribute_id']]['attribute_id'] = $xbe["\141\164\x74ri\x62\x75te\x5f\151\x64"]; $xc4[$xbe["\160are\156\164_\x69d"]][$xbe["\x70r\x6fdu\x63t\x5f\151\144"]][$xbe['attribute_id']]['value'] = $xbe["\x76a\154\165e"]; $xc4[$xbe["\160are\156\164_\x69d"]][$xbe["\x70r\x6fdu\x63t\x5f\151\144"]][$xbe['attribute_id']]['pricing_value'] = $xbe["p\x72\151c\x69\156\147\x5fva\154\165e"]; $xc4[$xbe["\160are\156\164_\x69d"]][$xbe["\x70r\x6fdu\x63t\x5f\151\144"]][$xbe['attribute_id']]['is_percent'] = $xbe["\x69\163\137p\x65\162ce\x6e\x74"]; } if ($this->_log) Mage::log("\x0a\76>\x3e\x3e\76>>\x3e\x3e\76\x3e\x3e\x3e>\x3e\76\76\x3e\x3e>\76\x3e>>>>\x3e>>\x3e>\76>\x3e\76\76>\76>>>>>\x3e\76\x3e\40\x46\x65\164chin\147 \143\157\156\x66i\147ur\141\x62\154\x65 \x70\x72\151\x63es\40c\x6f\154\x6ce\143te\x64", null, $this->getFilename('.log')); $this->configurablePrices = $xc4; if ($this->_debug) { echo "\74\142r\x3e\x3c\x62r\76-\55\x2d\x2d-\55-\x2d\55\55\x2d\55\40C\117\116\106\111\107U\122\101\x42LE\x53\x20\x50\x52ICE\123 \x2d\55\55\x2d\55-\55-\55-\55-\55\x2d\55\x2d\x3cb\162\x3e"; echo $xc2 . '<br><br>'; $x150($xc4); } $xad = $x82->getTableName("cat\x61\154\x6f\x67\x5f\160ro\144\165\x63\164\x5f\163\165\160er\x5fl\x69\156k"); $xbf = $x82->getTableName("\x63\x61\x74\141\154\x6f\147\137\160ro\144\x75\x63\164_su\x70\x65r\137a\164\164\162i\x62u\x74\x65"); $xc5 = $x82->getTableName("\x63\141tal\x6fg\137\x70\162\157\144\x75\143\164\137\163\x75\x70\145r\137att\162i\x62u\x74e_\154\141\142\145l"); $xc6 = $x83->select(); $xc6->from(array("\x63\160\163\x6c" => $xad), array("\160are\156\164_\x69d", "\x70r\x6fdu\x63t\x5f\151\144")); $xc6->joinleft(array("c\x70\163\141" => $xbf), "\x63ps\141\x2e\160r\x6fdu\x63t\137\151\144 \75 \143ps\x6c.\160\141\162\x65\156t\137id", array("\141\164\x74ri\x62\x75te\x5f\151\x64")); $xc6->joinleft(array("c\160\163\141l" => $xc5), "cps\x61\x6c\x2e\160r\x6fd\x75c\x74_\x73\165p\x65r_\141t\164\162ib\165\x74\x65_\x69\x64 \x3d\x20\x63\x70\163\x61\x2e\x70\x72\x6f\x64\x75\x63t_\163\165\160e\x72\x5f\141tt\x72\x69\x62u\x74\x65_\151\x64", array("\x72\145\154\x61ti\x6f\x6e\x73\x68\151p" => "\x47R\117U\120\137C\x4f\116C\x41T\x28\x44\x49\x53T\111\116C\x54\x20cp\x73\x61l\x2e\166\141\x6c\165\x65\40\123E\x50\101RA\124O\122\40'\76\76>\x27\x29")); $xc6->order(array("c\160\x73\154\56\x70\x61\162e\x6et_\151\144", "\143ps\154.\x70\162\x6f\x64\165\143\x74\x5f\x69d")); $xc6->group(array('cpsl.parent_id', 'cpsl.product_id')); $xc7 = $x83->fetchAll($xc6); foreach ($xc7 as $xc8) { $xc9[$xc8['product_id']] = $xc8['relationship']; $xc9[$xc8['parent_id']] = $xc8['relationship']; } $this->_productRelationShip = $xc9; if ($this->_debug) { echo "\x3c\x62\162\x3e\x3cb\162\76\55\55-\55-\x2d\x2d\x2d\x2d\55\55\x2d\x20\122\x45\114\101\124I\117NS\x48I\x50\40\x2d\x2d\55\55\55--\55\55\55\55\55-\55\x2d\x2d<\x62r>"; echo $xc6 . '<br><br>'; $x150($xc9); } if ($this->_log) Mage::log("\x0a>\x3e\76\76\76\x3e\76>\x3e\76\x3e\x3e>\76>\76\76\76>>\x3e\76\76\x3e>\76\x3e>>\x3e>\76\x3e\x3e\x3e>\x3e>>\76\76>\76\x3e\76\x3e Rela\x74\x69\x6f\x6e\x73h\151p\40\143\157\x6cle\x63t\x65\x64", null, $this->getFilename('.log')); $xb7 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("\144\x61t\x61f\145\x65d\x6da\x6ea\x67\145r\x2fsystem\57d\x69\163\x61bl\145\144")) $xb7->addFieldToFilter("\x73\164\141\164\165\x73", array('gteq' => 1)); else $xb7->addFieldToFilter("\x73\164\141\164\165\x73", 1); $xb7->addAttributeToFilter('type_id', array("\x69\x6e" => "\x67r\x6f\x75p\145\144")); $xb7->addAttributeToFilter('visibility', array("\156\x69\x6e" => 1));
$xb7->addAttributeToSelect($x8a, $x8c); $xb7->getSelect()->joinLeft($xae . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xb7->getSelect()->joinLeft($xa7 . ' 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', "m\151\156\137\x71ty" => "m\151\156\137\x71ty", "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171" => "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171")); if ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key_b', 'e.entity_id=url_key_b.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url_b', 'url_b.value_id=url_key_b.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url_b', 'url_b.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url_b.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } $xb7->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); $xb7->getSelect()->joinLeft($xab . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xb7->getSelect()->group(array('cpl.product_id')); $xca = array(); foreach ($xb7 as $xb9) { foreach ($x146("\54", $xb9->getChildIds()) as $xba) { $xca[$xba] = $xb9; $xcb[$xba]['categories_ids'] = $xb9->getCategories_ids(); $xcb[$xba]['parent_id'] = $xb9->getId(); $xcb[$xba]['parent_sku'] = $xb9->getSku(); $xcb[$xba]['parent_request_path'] = $xb9->getRequestPath(); } } $this->grouped = $xca; if ($this->_debug) { echo "\74b\162\76\74br\76\x2d\x2d\x2d\x2d\55\x2d\55-\55\x2d\55- \x47\x52OU\x50\105\x44 \55\55\x2d\x2d\x2d-\55-\55\x2d\x2d\55\x2d\55\x2d\55<br\x3e"; echo $xb7->getSelect() . '<br><br>'; $x150($xcb); } if ($this->_log) Mage::log("\x0a\x3e\76>\76>\76\x3e>>\76>\76\x3e\x3e\76\x3e>\x3e\x3e\76\x3e\76\x3e\76>\x3e>>\x3e\76>\x3e\x3e\76\76\x3e\x3e>\x3e\x3e\x3e>\76\x3e\x3e\x3e\40\x52\x65\154\141\x74ion\163 \167\x69t\x68\x20\x67\162\157u\160\145\144\40\160r\157\x64\x75\143\x74\163\40\x64e\x74\145ct\x65\144", null, $this->getFilename('.log')); $xb7 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("\144\x61t\x61f\145\x65d\x6da\x6ea\x67\145r\x2fsystem\57d\x69\163\x61bl\145\144")) $xb7->addFieldToFilter("\x73\164\141\164\165\x73", array('gteq' => 1)); else $xb7->addFieldToFilter("\x73\164\141\164\165\x73", 1); $xb7->addAttributeToFilter('type_id', array("\x69\x6e" => "bu\156\x64l\x65")); $xb7->addAttributeToFilter('visibility', array("\156\x69\x6e" => 1)); $xb7->addAttributeToSelect($x8a, $x8c); $xb7->getSelect()->joinLeft($xaf . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xb7->getSelect()->joinLeft($xa7 . ' 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', "m\151\156\137\x71ty" => "m\151\156\137\x71ty", "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171" => "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171")); if ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url', 'url.value_id=url_key.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url', 'url.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } $xb7->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); $xb7->getSelect()->joinLeft($xab . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xb7->getSelect()->group(array('e.entity_id')); $xcc = array(); foreach ($xb7 as $xb9) { foreach ($x146("\54", $xb9->getChildIds()) as $xba) { $xcc[$xba] = $xb9; $xcd[$xba]['parent_id'] = $xb9->getId(); $xcd[$xba]['parent_sku'] = $xb9->getSku(); $xcd[$xba]['parent_request_path'] = $xb9->getRequestPath(); $xcd[$xba]['categories_ids'] = $xb9->getCategories_ids(); } } $this->bundle = $xcc; if ($this->_debug) { echo "\x3c\142r\76\x3c\x62\162>\x2d-\55-\55---\x2d\55\55\55 \102U\116\104\x4c\105\x20\55\55\55-\x2d\55\x2d\x2d\55\55\x2d-\x2d-\55-\74\142\162\76"; echo $xb7->getSelect() . '<br><br>'; $x150($xcd); } if ($this->_log) Mage::log("\x0a\x3e>>>\x3e>\76>\x3e>\x3e\76\76\76\x3e\76>\76>\76>>\76\x3e\76>>\x3e\76\x3e\76\76\x3e\76\x3e\76\76\76\76\76\76>\x3e>\x3e\76\40\x52e\x6cat\x69\x6f\x6es \x77\x69\164\150 b\165\x6e\x64\x6ce\40p\162\x6f\144\165c\164\x73\x20d\x65\164\145ct\145\x64", null, $this->getFilename('.log')); $xce = Mage::getModel('eav/entity') ->$x159('catalog_product') ->getTypeId(); $xcf = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xce); foreach ($xcf as $xd0) { $xd1[$xd0->getId()] = $xd0->getAttributeSetName(); } $xd2 = $x82->getTableName("c\141\x74al\157\147_\x70ro\x64\165\143\x74\x5f\145\156t\151\x74y_ti\x65\162_\x70\x72ic\145"); $xd3 = Mage::getModel('core/store')->load($x53)->getWebsiteId(); $xd4 = $x83->select(); $xd4->from(array("c\160\145\x74p" => $xd2), array("e\156\164\x69t\x79\x5fi\x64", "\x61\x6cl\137\147r\x6f\x75\160\163", "c\x75\163to\x6d\x65r\137g\x72\x6f\x75\160_\x69\x64", "\x76a\154\165e", "q\x74\x79")); $xd4->order(array("cp\145t\160.en\x74\151t\x79_\151\144", "\143\160e\164\x70.c\165s\164\157\x6d\x65r\x5f\147r\x6fu\160\137\151\144", "\143\160e\x74\160\56\161\x74\x79")); $xd4->where("\x63\x70\145\164p\x2ew\145\142\163\151t\145_\x69\x64=" . $xd3 . " O\122\x20\x63pe\x74p\x2e\167\145\142\163i\164\x65\x5f\x69\144\x3d0"); $x9f = $x83->fetchAll($xd4); $xd5 = array(); foreach ($x9f as $xd6) { if ($xd6['all_groups'] == 1) $xd5[$xd6["e\156\164\x69t\x79\x5fi\x64"]][32000][] = array("q\x74\x79" => $xd6['qty'], "\x76a\154\165e" => $xd6['value']); else $xd5[$xd6["e\156\164\x69t\x79\x5fi\x64"]][$xd6["c\x75\163to\x6d\x65r\137g\x72\x6f\x75\160_\x69\x64"]][] = array("q\x74\x79" => $xd6['qty'], "\x76a\154\165e" => $xd6['value']); } $this->_tierPrices = $xd5; if ($this->_debug) { echo "\74b\x72\x3e<\x62\x72\x3e-\55\x2d\55\x2d\55-\55\x2d\55\55- \x54I\105\x52\123 \x50\x52\x49\103ES\40\x2d\55-\x2d\55\55\55---\55-\55\55\55\x2d\74\142\x72\x3e"; echo $xd4 . '<br><br>'; $x150($xd5); } if ($this->_log) Mage::log("\x0a>\76\76\76\76>\76\x3e\76\x3e\76>>\x3e\x3e\76>>\76\76>>\76\x3e\76>\76>\x3e>\x3e\x3e\x3e>\76>\76\x3e>\x3e\76\76\x3e\x3e>\x3e \124e\x69\x65\162s P\162\151\143\x65 \x63\157l\154\x65\143\164e\144", null, $this->getFilename('.log')); $xd7 = $x82->getTableName("\143\x61ta\x6c\x6fg\137p\x72\157\x64\165c\x74\x5fo\160\164\151o\156"); $xd8 = $x82->getTableName("\143\x61\164\x61\154og\137\x70\x72\157\x64\x75c\164_\157\x70\x74i\157\156_\164\151\164l\x65"); $xd9 = $x82->getTableName("\x63\141\164\141log\x5f\160\162\157du\x63\x74_\x6f\160t\151on\x5f\164\x79pe\137\166a\154\165\145"); $xda = $x82->getTableName("\x63\x61\x74a\x6c\x6f\147_p\162\157du\143t\137\157\x70\x74\x69\157n\137\164\171p\x65\x5f\164\151\164\154e"); $xdb = $x82->getTableName("c\141\x74a\x6cog\137\160\162\157d\165c\x74_\x6f\160\164ion\x5fty\160\x65\137\x70r\151c\x65"); $xdc = $x83->select(); $xdc->from(array("\143p\x6f" => $xd7), array("\x70r\x6fdu\x63t\x5f\151\144")); $xdc->joinleft(array("\143\x70\x6ft" => $xd8), "\x63\x70o\x74.\157p\x74\x69\x6fn\137i\x64=c\160\x6f\56\157\160ti\x6f\156_i\x64\x20\x41\x4e\x44\x20c\160\x6f\164\x2e\x73\164\x6fr\x65\x5f\x69\x64\x3d\60", array("\x6f\160\x74i\x6fn" => "ti\164\154e", "\157\160\x74ion\x5fi\x64", "s\x74\x6f\x72\x65_\151\144")); $xdc->joinleft(array("\x63p\157\x74\x76" => $xd9), "\143p\157\164\166\56o\x70\x74\151\157\x6e\x5f\151\x64\x20\x3d\40\143\x70\157\x2eo\160ti\157\156\137\151d", "\x73\x6b\x75"); $xdc->joinleft(array("\143p\157\164t" => $xda), "cp\157\x74\x74.\x6f\160tion\x5fty\160e_i\x64\75\143p\157t\x76\x2e\157p\164\x69\157\156_ty\160\x65\x5f\151d\x20\101\x4e\x44\x20\143p\x6f\164\x74\56st\x6f\162\x65\x5f\x69d=\143\160\157\x74\56\x73\164\157\162e\137\151\144", "\164itl\145 \101\123\40\x76\141\154u\145"); $xdc->joinleft(array("\143p\157\164\x70" => $xdb), "cp\157\x74p.o\x70t\x69o\x6e\137\164y\160\x65_i\144\x3d\x63\x70\157\x74v\x2e\x6f\x70\164\151\x6f\x6e_\164\x79p\x65\x5f\151\144 A\x4e\104\40\143\160\x6f\164\x70\56s\x74o\x72e_\x69\x64\75c\x70o\164.s\x74or\145\x5fi\x64", array("\160\162ice", "\x70\162i\143\145\x5f\164\171\x70\145")); $x85 = $xdc->order(array("\x70r\x6fdu\x63t\x5f\151\144", "c\160\157\x74\166.\163or\164_o\x72\144\145\162 \x41SC")); $x9f = $x83->fetchAll($x85); $xdd = array(); $xde = 0; foreach ($x9f as $xdf) { $xdd[$xdf["\x70r\x6fdu\x63t\x5f\151\144"]][$xdf["\x6f\160\x74i\x6fn"]]["o\160\164\x69\157n\163"][] = array( "\x76a\154\165e" => $xdf["\x76a\154\165e"], "\x73\x6b\x75" => $xdf["\x73\x6b\x75"], "\160\162ice" => $xdf["\160\162ice"], "\x70\162i\143\145\x5f\164\171\x70\145" => $xdf["\x70\162i\143\145\x5f\164\171\x70\145"] ); $xde++; } $this->customOptions = $xdd; if ($this->_debug) { echo "<\x62r><\142\162>\55\x2d\x2d\55\x2d-\55-\x2d-\x2d-\40CU\123\x54\117\x4d\x20OP\124I\x4f\116S -\x2d-\x2d\x2d\x2d\55\55-\x2d\x2d\x2d-\55-\55\74br\76"; echo $xdc . '<br><br>'; $x150($xdd); } if ($this->_log) Mage::log("\x0a\76>>\76>\76\x3e>>>>\76\x3e\76>\76\76\76>\76\76\x3e\76\76\76\76>\x3e\76\76>>\76\76\x3e\x3e>\76>>\76\76\76\76\x3e\x3e C\165s\164\x6fm \157\160\164\x69\157ns\x20c\157ll\145c\x74\145\144", null, $this->getFilename('.log')); $xe0 = new Wyomind_Datafeedmanager_Model_MyCustomOptions; $xe1 = new Wyomind_Datafeedmanager_Model_MyCustomAttributes; if ($this->_log) Mage::log("\x0a\76\x3e>\x3e\76\x3e>\x3e\76>\76>>\76\x3e\76\x3e\x3e\x3e\x3e\x3e\x3e>\76\x3e\76>>>\76\76\x3e\76\76\x3e>\76\x3e\x3e\x3e\x3e>>>\x3e>\x20\103\x75\x73\164\x6f\155\x20\141tt\162i\142u\x74\145\163/o\x70\164i\157\156s\x20\163c\162\151pt\163\x20\154oa\144\145\144", null, $this->getFilename('.log')); $xb2 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x53); if (Mage::getStoreConfig("\144\x61t\x61f\145\x65d\x6da\x6ea\x67\145r\x2fsystem\57d\x69\163\x61bl\145\144")) $xb2->addFieldToFilter("\x73\164\141\164\165\x73", array('gteq' => 1)); else $xb2->addFieldToFilter("\x73\164\141\164\165\x73", 1); $xb2->addAttributeToFilter("t\171\160\145\137\151d", array("\x69\x6e" => $x75)); $xb2->addAttributeToFilter("\x76isi\142i\x6ci\x74\x79", array("\x69\x6e" => $x76)); if ($x77[0] != '*') $xb2->addAttributeToFilter("\141t\x74\x72\x69\x62u\164e_\x73\145\164_\x69d", array("\x69\x6e" => $x77)); $xb2->addAttributeToSelect($x8a, $x8c); $xe2 = array("e\161" => "\x3d\40\x27\45\163\47", "\156\145\161" => "\x21\75 '%\x73\x27", "\x67t\145q" => "\76\75\40'\x25s'", "l\x74\145\161" => "\x3c\x3d '\45\x73\x27", "g\164" => "\x3e\40\x27\x25\x73\x27", "\x6c\x74" => "\x3c\40\x27%\x73\47", "l\151\153\145" => "\x6c\151\x6b\145\40\x27\x25\163'", "\x6e\154\151ke" => "no\x74 \x6c\x69\x6b\145 \x27\x25s'", "n\x75\x6c\154" => "\151\163\40n\x75\154\x6c", "\156\x6f\164\x6eu\x6c\x6c" => "i\x73\x20n\157\164 n\x75ll", "\x69\x6e" => "i\x6e \x28%\163\51", "\156\x69\x6e" => "n\x6f\x74\40\151\x6e(\45s)", ); $xe3 = ''; $x1f = 0; $xe4 = array(); foreach ($x78 as $x8d) { $x8d->value = $this->x16b($x8d->value, null);
if ($x8d->checked) { if ($x8d->condition == 'in' || $x8d->condition == 'nin') { if ($x8d->code == 'qty' || $x8d->code == 'is_in_stock') { $xe5 = $x146(',', $x8d->value); $x8d->value = "\x27" . $x13a($xe5, "\47\54\x27") . "\x27"; } else { $x8d->value = $x146(',', $x8d->value); } } switch ($x8d->code) { case 'qty' : if ($x1f > 0) $xe3.=' ' . $x8d->statement . ' '; $xe3.="\x20\161\x74\x79\40" . $x15a($xe2[$x8d->condition], $x8d->value); $x1f++; break; case 'is_in_stock' : if ($x1f > 0) $xe3.=' ' . $x8d->statement . ' '; $xe3.="\x20(IF("; $xe3.="(use_config_manage_stock=1 AND $x58=0)"; $xe3.="\40\117\x52\x20"; $xe3.='(use_config_manage_stock=0 AND manage_stock=0)'; $xe3.="\40\117\x52\x20"; $xe3.="(use_config_manage_stock=1 AND $x58=1 AND is_in_stock=1 )"; $xe3.="\40\117\x52\x20"; $xe3.="\x28\165\163\x65\x5f\x63\157\156\146\151\x67_\155\141n\141\147e\x5fs\x74\157\x63\x6b=\x30\40\101\116\x44\x20m\141nag\x65\x5f\163\164o\143\x6b\75\61\x20\x41N\104 \x69\163_i\156\x5f\163t\157\x63\153=\61\40\x29"; $xe3.="\54\47\61\x27\x2c\47\60\47\x29" . $x15a($xe2[$x8d->condition], $x8d->value) . "\x29"; $x1f++; break; default : if ($x8d->statement == "\x41\116D") { if ($x144($xe4)) $xb2->addFieldToFilter($xe4); $xe4 = array(); } if ($x8d->condition == "\x69\x6e") { $xe6 = true; $xe7 = array(); foreach ($x8d->value as $x47) { if (!$x145($x47)) $xe6 = true; } if ($xe6) { foreach ($x8d->value as $x47) { $xe7[] = array(array("\146i\156s\x65\x74" => $x47)); } $xe4[] = array("\141t\164\x72i\x62\165\x74e" => $x8d->code, $xe7); } else $xe4[] = array("\141t\164\x72i\x62\165\x74e" => $x8d->code, $x8d->condition => $x8d->value); } else $xe4[] = array("\141t\164\x72i\x62\165\x74e" => $x8d->code, $x8d->condition => $x8d->value); break; } } }; if ($x144($xe4)) $xb2->addFieldToFilter($xe4); $xb2->getSelect()->joinLeft($xa7 . ' 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', "m\151\156\137\x71ty" => "m\151\156\137\x71ty", "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171" => "mi\x6e\x5fsa\x6c\x65\x5f\161\164\171")); if ($x156(Mage::getVersion(), '1.12.0', '>')) { $xb2->getSelect()->joinLeft($xaa . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xb2->getSelect()->joinLeft($xa9 . ' AS url', 'url.value_id=url_key.entity_id ' . $xb0 . ' AND is_system=1 AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } else { $xb2->getSelect()->joinLeft($xa8 . ' AS url', 'url.product_id=e.entity_id ' . $xb0 . ' AND is_system=1 AND ' . $x7e . ' AND url.store_id=' . $x53, array('request_path' => $xb1 . '(DISTINCT request_path)')); } if (Mage::getStoreConfig("\x64a\x74af\145\145\x64\155a\x6e\141g\x65\162/\163y\163\164\145\x6d\x2f\x75\x73\x65\x5f\x70\x61\x72\x65\x6et\137\x63ateg\157\162\x69e\x73")) $xb2->getSelect()->joinLeft($xad . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); $xe8 = null; if (Mage::getStoreConfig("\x64a\x74af\145\145\x64\155a\x6e\141g\x65\162/\163y\163\164\145\x6d\x2f\x75\x73\x65\x5f\x70\x61\x72\x65\x6et\137\x63ateg\157\162\x69e\x73")) $xe8 = "\x4f\122\40\x28\143\x61\x74egor\151\145\163\137\151nd\x65x\56\143a\164e\147\x6f\x72y_\151\x64\x3dc\x61\164e\147\x6fr\x69\x65\x73_\160\141\x72\145\156\x74\56ca\x74\145go\162y_\x69\x64 \101\x4e\x44 \x20\143\x61t\145\x67o\x72i\145\163\137\x69nde\170\x2e\160\x72od\x75c\x74\137\151d\75\143\141tego\162i\145s_\x70\x61\x72\x65n\x74\x2e\160\x72\157d\x75\143t_i\x64\40\51"; if ($x72[0] != '*') { $x47 = 0; $xe9 = null; foreach ($x72 as $x74) { if ($x47 > 0) $xe9.=','; $xe9.=$x15b($x146('/', $x74)); $x47++; } ($x6a) ? $xea = "IN" : $xea = "\x4eOT \111\x4e"; if ($x156(Mage::getVersion(), '1.12.0', '<=')) { $xe9 = " AN\104\x20\x63a\164\x65g\157\162\x69\x65\163\x5f\151\x6e\x64\145\170\56\x63\x61\164\x65g\x6f\x72\171\137i\144\x20" . $xea . "\x20\50" . $xe9 . "\x29"; $xb2->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id', array()); if (Mage::getStoreConfig("\x64a\x74af\145\145\x64\155a\x6e\141g\x65\162/\163y\163\164\145\x6d\x2f\x75\x73\x65\x5f\x70\x61\x72\x65\x6et\137\x63ateg\157\162\x69e\x73")) $xb2->getSelect()->joinLeft($x87 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $xb2->getSelect()->joinInner($xab . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xe8 . ') AND categories_index.store_id=' . $x53 . ' ' . $xe9, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { $xe9 = "\x20A\x4eD\x20c\141t\145\x67o\162i\x65s\56\x63\141\x74eg\157\x72y\x5f\151\x64 " . $xea . "\x20\50" . $xe9 . "\x29"; $xb2->getSelect()->joinInner($x87 . ' AS categories', 'categories.product_id=e.entity_id ' . $xe9, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { $xb2->getSelect()->joinLeft($x87 . ' AS categories', 'categories.product_id=e.entity_id'); if (Mage::getStoreConfig("\x64a\x74af\145\145\x64\155a\x6e\141g\x65\162/\163y\163\164\145\x6d\x2f\x75\x73\x65\x5f\x70\x61\x72\x65\x6et\137\x63ateg\157\162\x69e\x73")) $xb2->getSelect()->joinLeft($x87 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $xb2->getSelect()->joinLeft($xab . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xe8 . ') AND categories_index.store_id=' . $x53, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($x156(Mage::getVersion(), '1.4.0', '>=')) $xb2->getSelect()->joinLeft($xac . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xd3, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xe3)) $xb2->getSelect()->where($xe3); if ($this->_log) Mage::log("\x0a>\76\76>\x3e\76\76>\x3e\76\76>>\x3e\x3e\76\76\76>\x3e\x3e\x3e\76\76\76\x3e>\76\76>>\x3e\x3e\x3e\x3e\76\76\76\76>>>\76>\x3e>\40M\141\x69\x6e\40\163\161l re\x71\x75\145\x73\164:\40\x0a" . $xb2->getSelect(), null, $this->getFilename('.log')); if ($this->_debug) { echo "\74\x62\x72\x3e<br\76\x2d-\55\x2d\x2d\55\55\x2d\55--- MA\111\x4e\x20S\x51\114 \122\x45\x51\125\x45S\124\x20\55\55\x2d--\x2d\x2d\x2d\55--\x2d--\x2d\55\x3c\x62\162\x3e"; } $xb3 = 0; $xb4 = clone $xb2; $xb4->getSelect()->columns("\103\x4fUN\124\x28\104IST\x49\116\103\x54\x20\x65\x2e\145\x6et\x69\x74\x79\x5fi\x64\51\x20\101\x73\x20t\157\x74al")->group('e.entity_type_id'); $this->_counter = $xb4->getFirstItem()->getTotal(); $xb6 = $x158($this->_counter / $this->_sqlSize); $x79 = ''; $xeb = 1; if ($this->_log) Mage::log("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xb6 queries )", null, $this->getFilename('.log')); $x4d = $this->x16b($x4d, null, $x62, true); if ($x62 == 1) $x4d = $this->x16f($x4d); if ($this->_display) { if ($x62 == 1) { $x7a = $this->x16e($x4d, $x67, $x68) . ""; } else { $x7a = $this->x16b($x63) . '<br>'; $x7a.= "\x3c\x74a\x62\x6ce\40\163tyl\x65\75\x27\x62o\x72\x64e\x72\72\62\160\x78 \163\157\154i\144\x20g\162\145\171; \40\146\157\x6e\164\x2df\141mi\154\171\x3aa\162\151\x61l; \x66\x6f\156\x74\55\163\x69\x7a\x65:\61\62\x70\170\x27\40c\145l\154\x73\160\141c\x69n\147\75\x30\40\143e\154lpad\144\151\x6e\147\750\40\x77i\x64t\150=\47\61\60\x30\x25\x27\76"; if ($x65) { $x7a.=$this->x170($x4d, true); } } } else { if ($x62 == 1) { $x29->streamWrite($this->x16e($x4d, $x67, $x68) . ""); } else { if ($x63 != '') $x29->streamWrite($this->x16f($this->x16b($x63) . "\x0d\x0a")); if ($x65) { $xec = $this->x171($x4d, $x48, $x49, $x4a); $xec = $this->x16f($xec); $x29->streamWrite($xec); } } } if ($this->_log) Mage::log("\x0a>>>>\76\76>>\x3e>>\x3e\76\x3e\x3e\x3e>\x3e>>\x3e>>\76\76\x3e\x3e>\x3e\76\x3e\x3e\x3e\x3e\x3e>\76>>>>\76>\x3e>>\x20H\x65\x61d\x65r\40\164\145mp\x6c\x61\x74\145\x20\160a\x72\x73\x65\x64 a\x6e\x64 \141\x64ded", null, $this->getFilename('.log')); $xb2->getSelect()->group(array('e.entity_id'))->order('e.entity_id'); while ($xb3 < $xb6) { $xb7 = clone $xb2; if ($this->_debug) { echo "<b\162>\74b\162>-\x2d\x2d-\55\55\x2d-\x2d\x2d-\55\40S\121\114\x20\x2d\x2d\x2d----\55\55--\55\x2d-\x2d\55<\x62r\x3e"; print($xb7->getSelect()); } $xb7->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xb3)); $xb3++; if ($this->_sqlSize * $xb3 > $this->_counter) $xb8 = $this->_counter; else $xb8 = $this->_sqlSize * $xb3; if ($this->_log) Mage::log("\x0a\x3e>\x3e\76>\76>\76\x3e\76\76\x3e\76\76\x3e\x3e\76\x3e>\x3e>\76\76>\x3e>\76>>\76\x3e\x3e\x3e\x3e\76>>\76\x3e\x3e\x3e>\x3e>\x3e\76\x20F\145tc\x68\x69\156\x67\40\x70r\157\x64\x75\143\x74\x73 f\x72o\x6d\40" . ($this->_sqlSize * ($xb3 - 1) + 1) . "\40\x74o\x20" . $xb8, null, $this->getFilename('.log')); $xde = 1; foreach ($xb7 as $product) { if ($this->_debug) { echo "<\x62\162>\x3cb\162>\x2d-\55\x2d\55\55---\x2d\x2d\x2d\x20PR\117\104UC\x54\x20[\x20\x53\x4b\125\x20\55\76\40" . $product->getSku() . "\40\174\40ID \55>\40" . $product->getId() . "\x5d--\55\x2d\55\x2d\55\x2d\x2d\55\x2d\55\55\55\55<b\162\x3e"; echo "\143\x61\164eg\157r\151e\163\x20\x3a\x20" . $product->getCategoriesIds() . ",\40\x52\x6fot\x20\x69\x64\72\40" . $x5e . "\74b\x72\x3e"; foreach ($x146(',', $product->getCategoriesIds()) as $x27 => $x80) { echo $x80 . "=\76" . $x50[$x80]["\160\141t\x68"] . "\74b\x72\x3e"; } } if (!$x15c('safe_mode')) { $x15d(60); } $x3b = $x60; foreach ($x7c as $x27 => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $x9f = 1; $xed = array(); foreach ($exp['options'] as $x27 => $option) { if (isset($xdd[$product->getId()][$option])) { $x9f = $x9f * $x144($xdd[$product->getId()][$option]["o\160\164\x69\157n\163"]); $xed[$x27] = 0;
} } $x25 = array(); for ($x99 = 1; $x99 <= $x9f; $x99++) { $xee = $x3b; foreach ($exp['options'] as $x27 => $option) { if (isset($xdd[$product->getId()][$option])) { $xee = $x13c("\173" . $option . "_\x6c\x61\142\145\154}", $xdd[$product->getId()][$option]["o\160\164\x69\157n\163"][$xed[$x27]]['value'], $xee); $xee = $x13c("\173" . $option . "\x5f\163\153\x75}", $xdd[$product->getId()][$option]["o\160\164\x69\157n\163"][$xed[$x27]]['sku'], $xee); $xee = $x13c("\173" . $option . "_\x70\x72i\143\145\175", $xdd[$product->getId()][$option]["o\160\164\x69\157n\163"][$xed[$x27]]['price'], $xee); $xee = $x13c("\173" . $option . "_\x74\x79p\145}", $xdd[$product->getId()][$option]["o\160\164\x69\157n\163"][$xed[$x27]]['price_type'], $xee); if ($x27 > 0 || $x144($xdd[$product->getId()]) == 1 || $x144($exp['options']) < 2) $xed[$x27] ++; if ($xed[$x27] >= $x144($xdd[$product->getId()][$option]["o\160\164\x69\157n\163"])) { $xed[$x27] = 0; $xed[$x27 - 1] ++; } } } $x25[] = $xee; } if ($x144($x25) > 0) { if ($x62 == 1) $x3b = $x13a($x25); else $x3b = "\x5b" . $x13a(',', $x25) . "\x5d"; } $this->skipOptions($x144($exp['options'])); break; case '{use_options}': foreach ($exp['options'] as $x27 => $option) { if (isset($xdd[$product->getId()][$option])) { $xef = array(); $xf0 = array(); $xf1 = array(); foreach ($xdd[$product->getId()][$option]["o\160\164\x69\157n\163"] as $x3f) { $xef[] = $x3f['value']; $xf0[] = $x3f['sku']; $xf1[] = $x3f['price']; } $x3b = $x13c("\173" . $option . "_\x6c\x61\142\145\154}", $x13a(',', $xef), $x3b); $x3b = $x13c("\173" . $option . "\x5f\163\153\x75}", $x13a(',', $xf0), $x3b); $x3b = $x13c("\173" . $option . "_\x70\x72i\143\145\175", $x13a(',', $xf1), $x3b); } } $this->skipOptions($x144($exp['options'])); break; case '{id}' : $xf2 = $this->checkReference($exp['reference'], $product); $value = $xf2->getId(); break; case '{inc}' : $value = $xeb; break; case '{status}': $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x66 = "\105\x6e\141b\x6ce\x64" : $x66 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xf3 = "Disa\142l\145\144" : $xf3 = $exp['options'][1]; if ($xf2->getStatus() == 2) $value = $xf3; else $value = $x66; $this->skipOptions(2); break; case '{attribute_set}': $xf2 = $this->checkReference($exp['reference'], $product); $value = $xd1[$xf2->getAttributeSetId()]; break; case "\x7br\145\x6ca\x74\x69\x6fnsh\x69\160\x7d": $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xf4 = ', ' : $xf4 = $exp['options'][0]; if (isset($xc9[$xf2->getId()])) { $value = $x13c("\x3e\76\76", $xf4, $xc9[$xf2->getId()]); } $this->skipOptions(1); break; case '{final_price}' : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = $xf2->getFinalePrice(); (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = $xf2->getMinPrice(); (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = $xf2->getMaxPrice(); (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->type_id == 'bundle') $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0];
$value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); $this->skipOptions(2); break; case '{price}' : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73")) { if ($xf2->type_id == "bu\156\x64l\x65") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bu\156\x64l\x65") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73") && date("Y\x2d\155\55\144 \x48:\151\x3a\x73") < $xf2->getSpecialToDate()) { if ($xf2->type_id == "bu\156\x64l\x65") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bu\156\x64l\x65") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } else { if ($xf2->type_id == "bu\156\x64l\x65") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp["o\160\164\x69\157n\163"][0])) ? $x32 = $x57 : $x32 = $exp["o\160\164\x69\157n\163"][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, "\x2e", ""); $this->skipOptions(2); break; case "\x7bi\x73\137s\160e\x63ia\154\137\160\162ice}" : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp["o\160\164\x69\157n\163"][0])) ? $xf7 = 1 : $xf7 = $exp["o\160\164\x69\157n\163"][0]; (!isset($exp["o\160\164\x69\157n\163"][1])) ? $xf8 = 0 : $xf8 = $exp["o\160\164\x69\157n\163"][1]; if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73")) { if ($xf2->type_id == "bu\156\x64l\x65") (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0 ) ? $value = $xf7 : $value = $xf8; else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $value = $xf7 : $value = $xf8; } } else { if ($xf2->type_id == "bu\156\x64l\x65") $value = $xf8; else { $value = $xf8; } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73") && date("Y\x2d\155\55\144 \x48:\151\x3a\x73") < $xf2->getSpecialToDate()) { if ($xf2->type_id == "bu\156\x64l\x65") (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0 ) ? $value = $xf7 : $value = $xf8; else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $value = $xf7 : $value = $xf8; } } else { if ($xf2->type_id == "bu\156\x64l\x65") $value = $xf8; else { $value = $xf8; } } } else { if ($xf2->type_id == "bu\156\x64l\x65") (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0 ) ? $value = $xf7 : $value = $xf8; else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $value = $xf7 : $value = $xf8; } } $this->skipOptions(2); break; case "\173s\x70\x65\143\x69\141\154\137\160\162\151\143\x65\175" : $xf2 = $this->checkReference($exp['reference'], $product); $x31 = null; if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73")) { if ($xf2->type_id == 'bundle') { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73") && date("Y\x2d\155\55\144 \x48:\151\x3a\x73") < $xf2->getSpecialToDate()) { if ($xf2->type_id == 'bundle') { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } } } else { if ($xf2->type_id == 'bundle') { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($x31 > 0) { if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $xf2 = $this->checkReference($exp['reference'], $product); $x53 = $this->getStoreId(); $xf9 = Mage::getResourceModel('catalogrule/rule'); $xfa = Mage::app()->getLocale()->storeTimeStamp($x53); $xfb = Mage::app()->getStore($x53); $xd3 = $xfb->getWebsiteId(); $xfc = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xfd = $xf9->getRulePrice($xfa, $xd3, $xfc, $xf2->getId()); if ($xf2->getSpecialFromDate() && !$xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73")) { if ($xf2->type_id == "bu\156\x64l\x65") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bu\156\x64l\x65") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } elseif ($xf2->getSpecialFromDate() && $xf2->getSpecialToDate()) { if ($xf2->getSpecialFromDate() <= date("Y\x2d\155\55\144 \x48:\151\x3a\x73") && date("Y\x2d\155\55\144 \x48:\151\x3a\x73") < $xf2->getSpecialToDate()) { if ($xf2->type_id == "bu\156\x64l\x65") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } else { if ($xf2->type_id == "bu\156\x64l\x65") $x31 = $xf2->price; else { $x31 = $xf2->getPrice(); } } } else { if ($xf2->type_id == "bu\156\x64l\x65") { if (($xf2->price_type || (!$xf2->price_type && $xf2->special_price < $xf2->price)) && $xf2->special_price > 0) { if ($xf2->price_type) $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->price; } } else { ($xf2->getSpecial_price() && $xf2->getSpecial_price() < $xf2->getPrice()) ? $x31 = $xf2->getSpecialPrice() : $x31 = $xf2->getPrice(); } } if ($xfd !== FALSE) { if ($xfd < $x31) $value = $xfd; else $value = $x31; } else $value = $x31;
if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; $value = $this->x16d($value, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp["o\160\164\x69\157n\163"][0])) ? $x32 = $x57 : $x32 = $exp["o\160\164\x69\157n\163"][0]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, "\x2e", ""); $this->skipOptions(2); break; case '{group_price}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfe = 0 : $xfe = $exp['options'][0]; $xf2->setCustomerGroupId($xfe); $xff = $xf2->getGroupPrice(); if ($x144($xff) == 1) { $x31 = $xff; } else { $x31 = $xff[0]['price']; } if ($x31 > 0) { if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } (!isset($exp['options'][2])) ? $x36 = false : $x36 = $exp['options'][2]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][1])) ? $x32 = $x57 : $x32 = $exp['options'][1]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfe = 32000 : $xfe = $exp['options'][0]; if ($xfe == "\52") $xfe = 32000; (!isset($exp['options'][1])) ? $x100 = 0 : $x100 = $exp['options'][1]; $xd5 = $this->_tierPrices[$xf2->getId()]; if ($x100 < 0) { $x100 = $x15e($x100) - 1; $xd5[$xfe] = $x15f($xd5[$xfe]); } $x31 = $xd5[$xfe][$x100]['value']; if ($x31 > 0) { if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } (!isset($exp['options'][3])) ? $x36 = false : $x36 = $exp['options'][3]; $value = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][2])) ? $x32 = $x57 : $x32 = $exp['options'][2]; $value = $this->x16c($value, $x32); $value = $x143($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price_qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xfe = 0 : $xfe = $exp['options'][0]; if ($xfe == "\52") $xfe = 32000; $xd5 = $this->_tierPrices[$xf2->getId()]; (!isset($exp['options'][1])) ? $x100 = 0 : $x100 = $exp['options'][1]; if ($x100 < 0) { $x100 = $x15e($x100) - 1; $xd5[$xfe] = $x15f($xd5[$xfe]); } $x101 = $xd5[$xfe][$x100]['qty']; if ($x101 > 0) $value = $x101; $this->skipOptions(2); break; case "\173\107\x3a\123A\114E\x5f\x50\122I\103E\175" : $xf2 = $this->checkReference($exp['reference'], $product); $x102 = Mage::getSingleton('core/date')->getGmtOffset("\150o\x75\x72\163"); if ($x102 > 0) { $x103 = "\53"; $x104 = $x160($x15e($x161($x102)), 2, 0, STR_PAD_LEFT) . ':' . $x160(($x15e($x102) - $x161($x15e($x102))) * 60, 2, 0, STR_PAD_LEFT); } else { $x103 = ""; $x104 = '-' . $x160($x15e($x161($x102)), 2, 0, STR_PAD_LEFT) . ':' . $x160(($x15e($x102) - $x161($x15e($x102))) * 60, 2, 0, STR_PAD_LEFT); } $x105 = $x147($x13c(' ', 'T', $xf2->getSpecialFromDate()), 0, -3); $x106 = $x147($x13c(' ', 'T', $x13c("\x300\72\600\x3a\x30\x30", "\62\63\x3a\65\71:\65\71", $xf2->getSpecialToDate())), 0, -3); if ($xf2->type_id == 'bundle' && $xf2->special_price) { if ($xf2->price_type) { $x31 = $x143($xf2->price * $xf2->special_price / 100, 2, "\x2e", ""); } else { $x31 = $xf2->special_price; } } else { $x31 = $xf2->getSpecial_price(); } (!isset($exp['options'][1])) ? $x36 = false : $x36 = $exp['options'][1]; if ($x31 > 0) { if ($xf2->getTypeId() == "\143\157n\146ig\165r\141\142\154\x65") { if (isset($this->configurablePrices[$xf2->getId()][$product->getId()])) { $xf5 = 0; foreach ($this->configurablePrices[$xf2->getId()][$product->getId()] as $xf6) { if ($xf6["\x69\163\137p\x65\162ce\x6e\x74"]) { $xf5+=( $xf6["p\x72\151c\x69\156\147\x5fva\154\165e"] / 100) * $x31; } else $xf5+=$xf6["p\x72\151c\x69\156\147\x5fva\154\165e"]; }; $x31+=$xf5; } } $x31 = $this->x16d($x31, $x5d, $xf2->getTaxClassId(), $x36); (!isset($exp['options'][0])) ? $x32 = $x57 : $x32 = $exp['options'][0]; $x31 = $this->x16c($x31, $x32); $x31 = $x143($x31, 2, '.', ''); ; } if ($x31 > 0) { $value = "\74\147\x3a\163a\x6c\x65\x5f\x70r\x69\x63\x65><\x21\133\x43DATA\x5b" . $x31 . "\x20" . $x32 . "\135]>\74\x2f\147\x3as\x61\x6c\x65_\x70\x72i\x63e\x3e\x0a"; } if ($x31 > 0 && $x106) { $value.="\x3c\x67:s\x61\154\x65\x5f\160\x72\x69\143\145\137\145\146\x66\145\x63\x74\x69\x76\x65\137d\x61\164e\x3e\74!\133CD\101\x54\x41\133" . $x105 . $x103 . $x104 . "\x2f" . $x106 . $x103 . $x104 . "]]\x3e\x3c\57\147\72sa\x6c\x65_\160\x72ic\x65_\145f\x66\x65c\164\x69v\x65\x5f\x64a\164e\76\x0a"; } $this->skipOptions(2); break; case "\173\x69\x6d\x61\147\x65}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xf2->getImage() && $xf2->getImage() != 'no_selection') { $x108 = 'catalog/product/' . $xf2->getImage(); $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); } else { $value = $x5c . '/catalog/product/placeholder/' . $x56; } } elseif (isset($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1] != $x107) { $x108 = 'catalog/product/' . $xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]; $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); } } $this->skipOptions(1); break; case "{\x47:\x49\115\101\x47\105\137L\111\116\x4b\175" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getImage(); $x109 = array($xf2->getSmall_image(), $xf2->getThumbnail()); $x10a = '';
$xed = 0; if ($xf2->getImage() && $xf2->getImage() != 'no_selection') { $x108 = 'catalog/product/' . $xf2->getImage(); $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); $x10a.="\x3c\x67\x3a\x69\155\x61ge\x5f\154\151\x6e\153\76<\41\133\103D\x41T\x41[" . $value . "\x5d\135\x3e\x3c\x2fg\x3a\151\x6d\x61g\x65\137\x6c\x69\156\x6b>\x0a"; $xed++; } $x10b = 0; while (isset($xa6[$xf2->getId()]['src'][$x10b]) && $xed < 10) { if ($xa6[$xf2->getId()]['src'][$x10b] != $x107) { if ($x157($xa6[$xf2->getId()]['src'][$x10b], $x109) || $xa6[$xf2->getId()]['disabled'][$x10b] != 1) { $x108 = 'catalog/product/' . $xa6[$xf2->getId()]['src'][$x10b]; $value = $x5c . $x13c(array('//', 'https'), array('/', 'http'), $x108); $x10a.="<\147\x3a\x61\x64diti\x6fnal_\151\x6da\147e\x5f\x6ci\x6ek\x3e<\x21\133\x43\x44\x41T\101\133" . $value . "\x5d]\x3e\x3c\57\x67\x3a\x61d\x64\x69\x74\x69\x6fn\x61\x6c\x5f\x69\155a\147\x65_l\151\x6ek\76\x0a"; $xed++; } } $x10b++; } $value = $x10a; break; case "{\x75\162l\175" : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getRequest_path()) { if (Mage::getStoreConfig("\x64a\164\141fee\144\x6dana\x67er/\x73\x79\x73\x74em\57u\162l\162e\x77ri\164\145") == 2) { $x10c = $x146("\54", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x5b . $x15b($x10c); } elseif (Mage::getStoreConfig("\x64a\164\141fee\144\x6dana\x67er/\x73\x79\x73\x74em\57u\162l\162e\x77ri\164\145") == 3) { $x10c = $x146("\54", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x5b . $x163($x10c); } else $value = $x5b . $xf2->getRequest_path(); } else { $value = $xf2->getProductUrl(); } $value = $x13c('https', 'http', $value); break; case "{h\x6f\163\x74}" : $value = $x5b; break; case "\173\165r\151}" : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getRequest_path()) { if (Mage::getStoreConfig("\x64a\164\141fee\144\x6dana\x67er/\x73\x79\x73\x74em\57u\162l\162e\x77ri\164\145") == 2) { $x10c = $x146("\54", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x15b($x10c); } elseif (Mage::getStoreConfig("\x64a\164\141fee\144\x6dana\x67er/\x73\x79\x73\x74em\57u\162l\162e\x77ri\164\145") == 3) { $x10c = $x146("\54", $xf2->getRequest_path()); $x162($x10c, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x163($x10c); } else $value = $xf2->getRequest_path(); } else { $value = $x13c($x5b, '', $xf2->getProductUrl()); } $value = $x13c('https', 'http', $value); break; case '{is_in_stock}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x10d = 'in stock' : $x10d = $exp['options'][0]; (!isset($exp['options'][1])) ? $x10e = "out\x20\x6ff \163t\x6f\143\153" : $x10e = $exp['options'][1]; (!isset($exp['options'][2])) ? $x10f = "\141\x76\141\x69\154\141bl\x65\40\146\157\x72\x20\x6f\x72\144e\162" : $x10f = $exp['options'][2]; if (($xf2->getManageStock() && !$xf2->getUseConfigManageStock() && !$x58) || ($xf2->getUseConfigManageStock() && $x58 ) || ($xf2->getManageStock() && !$xf2->getUseConfigManageStock())) { if ($xf2->getIsInStock() > 0) { if ($product->type_id == "\143\157n\146ig\165r\141\142\154\x65") $x101 = $xbd[$product->getId()]; else $x101 = $xf2->getQty(); if ($x101 > 0) { $value = $x10d; } else { if ($xf2->getBackorders() || ($xf2->getUseConfigBackorders() && $x59)) { $value = $x10f; } else { $value = $x10e; } } } else $value = $x10e; } else { $value = $x10d; } $this->skipOptions(3); break; case '{stock_status}' : $xf2 = $this->checkReference($exp['reference'], $product); ($xf2->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{min_qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; $value = $x143($xf2->getMinQty(), $x110, '.', ''); $this->skipOptions(1); break; case '{min_sale_qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; $value = $x143($xf2->getMinSaleQty(), $x110, '.', ''); $this->skipOptions(1); break; case '{qty}' : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; if ($product->type_id == "\143\157n\146ig\165r\141\142\154\x65") { $value = $xbd[$product->getId()]; $value = $x143($value, $x110, '.', ''); } else if ($exp['reference'] == "\143\157n\146ig\165r\141\142\154\x65") { $value = $x143($xbd[$xf2->getId()], $x110, '.', ''); } else { $value = $x143($xf2->getQty(), $x110, '.', ''); } $this->skipOptions(1); break; case "\173\x63\141\164\145\x67o\162\x69\145s_v\61\175" : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x113 = INF : $x113 = $exp['options'][2]; $x114 = 0; $value = ''; $x115 = ''; foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157($x50[$x80]["\160\141t\x68"], $x72) : $x116 = !$x157($x50[$x80]["\160\141t\x68"], $x72); if (isset($x50[$x80]) && $x114 < $x111 && ($x116 || $x72[0] == "\52")) { $x117 = 0; $x118 = $x146('/', $x50[$x80]["\160\141t\x68"]); if ($x157($x5e, $x118)) { $x119 = ""; if ($x114 > 0) $x115 = "\54"; foreach ($x118 as $x11a) { if (isset($x50[$x11a])) { if ($x50[$x11a]['level'] > $x112 && $x117 < $x113) { if ($x117 > 0) $x119.='>'; $x119.=($x50[$x11a]['name']); $x117++; } } } $x11b = ""; if (!empty($x119)) { $value.=$x115 . $x119 . $x11b; $x114++; } } } }; $this->skipOptions(3); break; case "\173c\x61teg\x6f\162i\x65\x73\x7d" : $x11c = null; $x111 = INF; $x112 = 1; $x11d = INF; $xf4 = ', '; $x11e = "\40\x3e\x20"; if ($x144($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x11c = "\154\141st" : $x11c = $exp['options'][0]; $x111 = 1;
} elseif ($x144($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xf4 = ', ' : $xf4 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x11e = "\40\x3e\x20" : $x11e = $exp['options'][1]; } elseif ($x144($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x11d = INF : $x11d = $exp['options'][2]; (!isset($exp['options'][3])) ? $xf4 = ', ' : $xf4 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x11e = "\40\x3e\x20" : $x11e = $exp['options'][4]; } $xf2 = $this->checkReference($exp['reference'], $product); $x108 = 0; $x11f = array(); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157(@$x50[$x80]["\160\141t\x68"], $x72) : $x116 = !$x157(@$x50[$x80]["\160\141t\x68"], $x72); if (isset($x50[$x80]) && ($x116 || $x72[0] == "\52")) { $x108++; $x11f[$x108] = array(); $x118 = $x146('/', $x50[$x80]["\160\141t\x68"]); if ($x157($x5e, $x118)) { foreach ($x118 as $x11a) { if (isset($x50[$x11a]) && $x50[$x11a]['name'] != null) { $x11f[$x108][] = ($x50[$x11a]['name']); } } } } } $x120 = array(); $x162($x11f, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x11c == "\154\141st") $x11f = $x15f($x11f); $xf2->setCategoriesArray($x11f); $x121 = 0; foreach ($x11f as $x27 => $x117) { if ($x121 < $x111) { foreach ($x117 as $x122 => $x123) { if ($x122 >= $x112 && $x122 <= $x11d) { if (!isset($x120[$x121])) $x120[$x121] = array(); $x120[$x121][] .= $x123; } } if ($x144($x120[$x121])) $x121++; } }; $value = null; foreach ($x164($x120) as $x27 => $x124) { if ($x27 > 0) $value.=$xf4; $value.=$x13a($x11e, $x124); } $this->skipOptions($x144($exp['options'])); break; case "\173ca\x74\145\x67\x6f\x72\151\x65\163\137\165\162l}" : $x11c = null; $x111 = INF; $x112 = 1; $x11d = INF; $xf4 = ', '; $x11e = "\40\x3e\x20"; if ($x144($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x11c = "\154\141st" : $x11c = $exp['options'][0]; $x111 = 1; } elseif ($x144($exp['options']) == 2) { (!isset($exp['options'][0])) ? $xf4 = ', ' : $xf4 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x11e = "\40\x3e\x20" : $x11e = $exp['options'][1]; } elseif ($x144($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x11d = INF : $x11d = $exp['options'][2]; (!isset($exp['options'][3])) ? $xf4 = ', ' : $xf4 = $exp['options'][3]; (!isset($exp['options'][4])) ? $x11e = "\40\x3e\x20" : $x11e = $exp['options'][4]; } $xf2 = $this->checkReference($exp['reference'], $product); $x108 = 0; $x11f = array(); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157(@$x50[$x80]["\160\141t\x68"], $x72) : $x116 = !$x157(@$x50[$x80]["\160\141t\x68"], $x72); if (isset($x50[$x80]) && ($x116 || $x72[0] == "\52")) { $x108++; $x11f[$x108] = array(); $x118 = $x146('/', $x50[$x80]["\160\141t\x68"]); if ($x157($x5e, $x118)) { foreach ($x118 as $x11a) { if (isset($x50[$x11a]) && $x50[$x11a]['url'] != null) { $x11f[$x108][] = ($x50[$x11a]['url']); } } } } } $x120 = array(); $x162($x11f, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); if ($x11c == "\154\141st") $x11f = $x15f($x11f); $xf2->setCategoriesArray($x11f); $x121 = 0; foreach ($x11f as $x27 => $x117) { if ($x121 < $x111) { foreach ($x117 as $x122 => $x123) { if ($x122 >= $x112 && $x122 <= $x11d) { if (!isset($x120[$x121])) $x120[$x121] = array(); $x120[$x121][] .= $x123; } } if ($x144($x120[$x121])) $x121++; } }; $value = null; foreach ($x164($x120) as $x27 => $x124) { if ($x27 > 0) $value.=$xf4; $value.=$x13a($x11e, $x124); } $this->skipOptions($x144($exp['options'])); break; case "\x7b\x47\x3a\120\x52O\x44\125\103\124\137\x54\131\120\x45_v\61}" : $xf2 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x113 = INF : $x113 = $exp['options'][2]; $x114 = 0; $value = ''; foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157($x50[$x80]["\160\141t\x68"], $x72) : $x116 = !$x157($x50[$x80]["\160\141t\x68"], $x72); if (@$x50[$x80]["\x69n\143\154\x75\144e\x5fin\x5fm\x65n\165"] && isset($x50[$x80]) && $x114 < $x111 && ($x116 || $x72[0] == "\52")) { $x117 = 0; $x118 = $x146('/', $x50[$x80]["\160\141t\x68"]); if ($x157($x5e, $x118)) { $x119 = ''; $x115 = '<g:product_type><![CDATA['; foreach ($x118 as $x11a) { if (isset($x50[$x11a])) { if ($x50[$x11a]['level'] > $x112 && $x117 < $x113) { if ($x117 > 0) $x119.=' > '; $x119.=($x50[$x11a]['name']); $x117++; } } } $x11b = "]]\x3e\74\57\147\x3ap\162od\165c\x74\x5ft\171p\x65\x3e\x0a"; if (!empty($x119)) { $value.=$x115 . $x119 . $x11b; $x114++; } } } }; $this->skipOptions(3); break; case "\173\x47\x3aP\x52O\104\x55C\124\x5f\124\131\120\x45}" : $xf4 = "]\135\76\74\57\147\x3a\x70\162\x6f\x64\x75\x63\x74\x5f\164\x79\160\145\76\x0a\x3cg\72\x70\162o\144u\x63t_\x74\x79\160\145><![\103DA\124A\x5b"; $x11e = "\40\x3e\x20"; (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x111 = INF : $x111 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x112 = 1 : $x112 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x11d = INF : $x11d = $exp['options'][2]; $xf2 = $this->checkReference($exp['reference'], $product); $x108 = 0; $x11f = array(); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { ($x6a) ? $x116 = $x157(@$x50[$x80]["\160\141t\x68"], $x72) : $x116 = !$x157(@$x50[$x80]["\160\141t\x68"], $x72); if (isset($x50[$x80]) && ($x116 || $x72[0] == "\52")) { $x108++; $x11f[$x108] = array(); $x118 = $x146('/', $x50[$x80]["\160\141t\x68"]); if ($x157($x5e, $x118)) { foreach ($x118 as $x11a) { if (isset($x50[$x11a]) && $x50[$x11a]['name'] != null) { $x11f[$x108][] = ($x50[$x11a]['name']); } } } } } $x120 = array();
$x162($x11f, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmpArray')); foreach ($x11f as $x27 => $x117) { if ($x27 < $x111) foreach ($x117 as $x122 => $x123) { if ($x122 >= $x112 && $x122 <= $x11d) { if (!isset($x120[$x27])) $x120[$x27] = array(); $x120[$x27][] .= $x123; } } }; $value = null; foreach ($x164($x120) as $x27 => $x124) { if ($x27 > 0) $value.=$xf4; $value.=$x13a($x11e, $x124); } if (($x120)) $value = "\74\x67\72\x70r\x6fd\165c\164\x5ft\x79\x70e><\x21\x5b\x43DA\x54\x41\133" . $value . "]]\x3e\74\57\147\x3ap\162od\165c\x74\x5ft\171p\x65\x3e\x0a"; $this->skipOptions($x144($exp['options'])); break; case "\x7b\107\x3a\x47O\117\x47L\105\x5f\x50\122\x4f\x44UCT_\103\x41T\x45\107OR\131\175" : $x125 = array(); (!isset($exp['options'][0])) ? $x11c = "lo\x6e\147est" : $x11c = $exp['options'][0]; $xf2 = $this->checkReference($exp['reference'], $product); foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { if (isset($x50[$x80]["\160\141t\x68"]) && isset($x73[$x50[$x80]["\160\141t\x68"]])) { $x125[] = $x73[$x50[$x80]["\160\141t\x68"]]; } } $x162($x125, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); if ($x11c == "\163\150or\164es\x74") $x125 = $x15f($x125); $x126 = $x163($x125); if ($x126 != "") $value = "<g:\147o\157\147\x6c\x65\x5fp\x72od\165\x63\164_ca\164\145gor\171>\74\41[C\104A\124A\133" . $x126 . "]\x5d><\57\147\x3a\x67\157\157\147\x6c\145\x5fpr\157\144u\143\x74_\x63ate\x67\157\x72y>\x0a"; $this->skipOptions(1); break; case "{\x63at\145\x67ory\137\155\x61\x70\160i\x6e\x67\175" : (isset($exp["o\160\164\x69\157n\163"][0])) ? $x127 = $exp["o\160\164\x69\157n\163"][0] : $x127 = 0; $value = ""; $xf2 = $this->checkReference($exp['reference'], $product); $x128 = 0; foreach ($x146(',', $xf2->getCategoriesIds()) as $x27 => $x80) { if (isset($x73[$x50[$x80]["\160\141t\x68"]])) { if ($x128 == $x127) { $value.=$x73[$x50[$x80]["\160\141t\x68"]]; break; } $x128++; } } $this->skipOptions(1); break; case "\x7b\162\145\166\x69\145\167\x5fc\x6fu\156\x74}": $xf2 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["o\160\164\x69\157n\163"][0]) && $exp["o\160\164\x69\157n\163"][0] == "\52" ) ? $x129 = 0 : $x129 = $x53; if (isset($xa0[$xf2->getId()][$x129]["c\x6f\165\x6e\x74"])) { $x12a = $xa0[$xf2->getId()][$x129]["c\x6f\165\x6e\x74"]; if (isset($x12a)) $value.=$x12a; } $this->skipOptions(1); break; case "\173\162\145v\151\145w_a\x76\x65\162\141ge\175": $xf2 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["o\160\164\x69\157n\163"][0]) && $exp["o\160\164\x69\157n\163"][0] == "\52" ) ? $x129 = 0 : $x129 = $x53; (!isset($exp["o\160\164\x69\157n\163"][1]) || !$exp["o\160\164\x69\157n\163"][1]) ? $x12b = 5 : $x12b = $exp["o\160\164\x69\157n\163"][1]; if (isset($xa0[$xf2->getId()][$x129]["\x73\x63or\x65"])) { $x12c = $x143($xa0[$xf2->getId()][$x129]["\x73\x63or\x65"] * $x12b / 100, 2, "\x2e", ""); if (isset($x12c)) $value.=$x12c; } $this->skipOptions(2); break; case "\173\x47\x3a\x50\122\x4fD\125\x43\124\137R\x45\x56\111\x45\127}" : $xf2 = $this->checkReference($exp['reference'], $product); (isset($exp["o\160\164\x69\157n\163"][0]) && $exp["o\160\164\x69\157n\163"][0] == "\52" ) ? $x129 = 0 : $x129 = $x53; (!isset($exp["o\160\164\x69\157n\163"][1]) || !$exp["o\160\164\x69\157n\163"][1]) ? $x12b = 5 : $x12b = $exp["o\160\164\x69\157n\163"][1]; $value = ""; if (isset($xa0[$xf2->getId()][$x129]["c\x6f\165\x6e\x74"])) { $x12a = $xa0[$xf2->getId()][$x129]["c\x6f\165\x6e\x74"]; $x12c = $x143($xa0[$xf2->getId()][$x129]["\x73\x63or\x65"] * $x12b / 100, 2, "\x2e", ""); } if (isset($x12c) && $x12c > 0) { $value.="<\x67\x3ap\162\157du\x63\x74\137\162\145\x76\x69\145\167_\x61v\145\x72\141\147\145\76<\x21\133\x43\x44\x41\x54\x41\x5b" . $x12c . "]]>\74/\x67:\160\162\x6f\144\x75\143\164\x5f\162e\166\x69\x65\x77\137\x61\x76e\x72\x61\x67\145\76\x0a"; } if (isset($x12a) && $x12a > 0) { $value.="\74\x67\x3a\160\162\x6f\144\165\143\x74\137\x72\x65\x76\151\145\167\137c\157\165\x6e\x74>\x3c\x21[\103\104\x41TA\x5b" . $x12a . "\x5d\135>\x3c\x2f\x67:\x70\162o\144u\143t\x5f\x72eview\137\x63\x6f\165\156\164\76\x0a"; } unset($x12c); unset($x12a); break; case "\173\x47:IT\105M_G\122O\x55\120\x5fI\x44\x7d" : if (isset($this->configurable[$product->getId()])) { $xf2 = $this->checkReference('configurable', $product); $value = "\x3c\147\x3a\x69\x74\x65\x6d\137\x67\x72ou\160\137\151d\x3e\x3c\41[\x43\x44\101TA[" . $xf2->getSku() . "\x5d\x5d>\74\x2f\x67:\151\x74\x65\155\137\147r\157\165\160\x5f\x69\x64>"; } break; case "\x7b\x53\103\x3a\105\101\116\x7d" : ($x145($exp['options'][0]) && $exp['options'][0] > 0) ? $x12d = $exp['options'][0] : $x12d = 0; $xf2 = $this->checkReference($exp['reference'], $product); $value = $x146(',', $xf2->getEan()); $value = "\74\x67\72\145\x61n>\x3c!\133\x43DAT\101[" . $value[$x12d] . "\135\x5d\76\74\x2f\147\72\145an\76"; break; case "\x7b\163c\x3a\x65\x61\156\175" : ($x145($exp['options'][0]) && $exp['options'][0] > 0) ? $x12d = $exp['options'][0] : $x12d = 0; $xf2 = $this->checkReference($exp['reference'], $product); $value = $x146(',', $xf2->getEan()); $value = $value[$x12d]; break; case "\x7b\123\103\x3a\111M\101\107E\123}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getSmall_image(); $x109 = array($xf2->getImage(), $xf2->getThumbnail()); $x10a = ''; $xed = 0; if ($xf2->getSmall_image() && $xf2->getSmall_image() != 'no_selection') { $x108 = $xf2->getSmall_image(); $value = $x108; $x10a.="\x3c\x67\x3a\x69\155\x61ge\x5f\154\151\x6e\153\76<\41\133\103D\x41T\x41[" . $value . "\x5d\135\x3e\x3c\x2fg\x3a\151\x6d\x61g\x65\137\x6c\x69\156\x6b>\x0a"; $xed++; } $x10b = 0; while (isset($xa6[$xf2->getId()]['src'][$x10b]) && $xed < 10) { if ($xa6[$xf2->getId()]['src'][$x10b] != $x107) { if ($x157($xa6[$xf2->getId()]['src'][$x10b], $x109) || $xa6[$xf2->getId()]['disabled'][$x10b] != 1) { $x108 = $xa6[$xf2->getId()]['src'][$x10b]; $value = $x108; $x10a.="<\147\x3a\x61\x64diti\x6fnal_\151\x6da\147e\x5f\x6ci\x6ek\x3e<\x21\133\x43\x44\x41T\101\133" . $value . "\x5d]\x3e\x3c\57\x67\x3a\x61d\x64\x69\x74\x69\x6fn\x61\x6c\x5f\x69\155a\147\x65_l\151\x6ek\76\x0a"; $xed++; } } $x10b++; } $value = $x10a; break; case "\x7bsc\72\x69\x6da\x67e\x73}" : $xf2 = $this->checkReference($exp['reference'], $product); $x107 = $xf2->getSmall_image(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xf2->getSmall_image() && $xf2->getSmall_image() != 'no_selection') { $x108 = $xf2->getSmall_image(); $value = $x108; } else { $value = $x5c . '/catalog/product/placeholder/' . $x56; } } elseif (isset($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xa6[$xf2->getId()]['src'][$exp['options'][0] - 1] != $x107) { $x108 = 'catalog/product/' . $xa6[$xf2->getId()]['src'][$exp['options'][0] - 1]; $value = $x5c . $x13c('//', '/', $x108); } } $this->skipOptions(1); break; case "{SC:\x44E\x53C\122\x49P\124I\x4f\116\175" : $xf2 = $this->checkReference($exp['reference'], $product); $xec = $xf2->getDescription() . $xf2->getShortDescription(); $x12e = "\x7c\x3c\151\x66\162\x61me\x28\x2e*\51</\x69f\162am\145>|\125"; $x13f($x12e, $xec, $x12f); if ($x12f) { $xec = $xf2->getAttributeText('manufacturer') . "\x20" . $xf2->getName() . " \x2d\x20\120\141\162t n\165m\x62\145r:\40" . $xf2->getSku() . " \55 C\141\x74eg\x6f\162\171 \x3a \173c\x61\164\x65go\x72\151e\163\54[\61\x5d\x2c[\61\135,\x5b\61\135}"; } else { if ($x157("s\164\162ip_\x74a\x67\x73", $exp['options'])) { $xec = $x14b('!\<br /\>!isU', "\x20", $xec);
$xec = $x14b('!\<br/\>!isU', "\x20", $xec); $xec = $x14b('!\<br>!isU', "\x20", $xec); $xec = $x165($xec); } if ($x157("\150\x74\x6d\154\137\145\x6e\x74i\x74\x79\x5fde\x63\x6f\144e", $exp['options'])) { $xec = $x14a($xec, ENT_QUOTES, 'UTF-8'); } if ($x157("h\x74\155\154e\x6et\151\164ie\x73", $exp['options'])) { $xec = $x166(($xec)); } if ($x139($xec) > 900) { $xec = $x147($xec, 0, 900 - 3); $x130 = $x167($xec, "\x20"); $xec = $x147($xec, 0, $x130) . '...'; } } if ($xec == null) $xec = $xf2->getAttributeText('manufacturer') . "\x20" . $xf2->getName() . " \x2d\x20\120\141\162t n\165m\x62\145r:\40" . $xf2->getSku() . " \55 C\141\x74eg\x6f\162\171 \x3a \173c\x61\164\x65go\x72\151e\163\54[\61\x5d\x2c[\61\135,\x5b\61\135}"; $xec = $x14b('/' . '[\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', ' ', $xec); $xec = $x13c('', '', $xec); $value = "<\x64e\163\x63\x72\151\x70\164\x69\x6f\x6e>\x3c\x21\133\103\104A\x54\x41\x5b" . $xec . "\x5d\x5d>\x3c/\144\145\163\143\x72i\160t\x69\157\x6e\x3e"; $exp['options'] = array(); break; case "{\163\143\x3a\x64e\163\143\x72i\x70\164i\157\156\x7d" : $xf2 = $this->checkReference($exp['reference'], $product); $xec = $xf2->getDescription() . $xf2->getShortDescription(); $x12e = "\x7c\x3c\151\x66\162\x61me\x28\x2e*\51</\x69f\162am\145>|\125"; $x13f($x12e, $xec, $x12f); if ($x12f) { $xec = $xf2->getAttributeText('manufacturer') . "\x20" . $xf2->getName() . " \x2d\x20\120\141\162t n\165m\x62\145r:\40" . $xf2->getSku() . " \55 C\141\x74eg\x6f\162\171 \x3a \173c\x61\164\x65go\x72\151e\163\54[\61\x5d\x2c[\61\135,\x5b\61\135}"; } else { if ($x157("s\164\162ip_\x74a\x67\x73", $exp['options'])) { $xec = $x14b('!\<br /\>!isU', "\x20", $xec); $xec = $x14b('!\<br/\>!isU', "\x20", $xec); $xec = $x14b('!\<br>!isU', "\x20", $xec); $xec = $x165($xec); } if ($x157("\150\x74\x6d\154\137\145\x6e\x74i\x74\x79\x5fde\x63\x6f\144e", $exp['options'])) { $xec = $x14a($xec, ENT_QUOTES, 'UTF-8'); } if ($x157("h\x74\155\154e\x6et\151\164ie\x73", $exp['options'])) { $xec = $x166(($xec)); } if ($x139($xec) > 900) { $xec = $x147($xec, 0, 900 - 3); $x130 = $x167($xec, "\x20"); $xec = $x147($xec, 0, $x130) . '...'; } } if ($xec == null) $xec = $xf2->getAttributeText('manufacturer') . "\x20" . $xf2->getName() . " \x2d\x20\120\141\162t n\165m\x62\145r:\40" . $xf2->getSku() . " \55 C\141\x74eg\x6f\162\171 \x3a \173c\x61\164\x65go\x72\151e\163\54[\61\x5d\x2c[\61\135,\x5b\61\135}"; $xec = $x14b('/' . '[\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', ' ', $xec); $xec = $x13c('', '', $xec); $value = $xec; $exp['options'] = array(); break; case "\x7b\x53\103:U\x52\114\x7d" : $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getRequest_path()) { $value = "\x3c\x6c\x69\156k\76\x3c\41\133\x43\x44A\124\101\x5b" . $x5b . $xf2->getRequest_path() . "]\135>\74/l\151\156k>"; } else { $value = "\x3c\x6c\x69\156k\76\x3c\41\133\x43\x44A\124\101\x5b" . $xf2->getProductUrl() . "]\135>\74/l\151\156k>"; } break; case "\173\163c:\165\162l}" : (isset($exp['options'][0])) ? $x131 = $exp['options'][0] : $x131 = ""; (isset($exp['options'][1])) ? $x100 = $exp['options'][1] : $x100 = ""; $xf2 = $this->checkReference($exp['reference'], $product); if ($xf2->getUrlKey()) { $value = $x5b . $x100 . $xf2->getRequest_path() . $x131; } else { $value = $xf2->getProductUrl(); } break; case "\x7b\x53C:CONDI\x54\x49\x4f\x4e\175" : $xf2 = $this->checkReference($exp['reference'], $product); ($x14f($xf2->getName(), "re\146ur\x62\151s\150e\x64")) ? $xe2 = 'refurbished' : $xe2 = 'new'; $value = "\74g:c\157n\x64i\164\x69o\156>\74\41\x5bC\104\x41\x54\101[" . $xe2 . "]\x5d>\x3c\57\147\72\x63o\x6ed\151\x74\151\x6f\x6e\76"; break; case "{\x73\x63\72\x63on\x64\151\164\x69on\x7d" : $xf2 = $this->checkReference($exp['reference'], $product); ($x14f($xf2->getName(), "re\146ur\x62\151s\150e\x64")) ? $xe2 = 'refurbished' : $xe2 = 'new'; $value = $xe2; break; default : $xf2 = $this->checkReference($exp['reference'], $product); if ($x157($exp['name'], $x8a)) { if ($x157($x8b[$exp['name']], array('select', 'multiselect'))) { eval('$x133 =($xf2->' . $exp['methodName'] . "\51\x3b"); $x132 = $x146(',', $x133); if ($x144($x132) > 1) { $value = array(); foreach ($x132 as $x47) { if (isset($x91[$x47][$x53])) $value[] = $x91[$x47][$x53]; else { if (isset($x91[$x47][0])) $value[] = $x91[$x47][0]; } } } else { if (isset($x91[$x132[0]][$x53])) { $value = $x91[$x132[0]][$x53]; } else { if (isset($x91[$x132[0]][0])) $value = $x91[$x132[0]][0]; } } } else { eval('$value =($xf2->' . $exp['methodName'] . "\51\x3b"); } } if ($x157(@$x88[$exp['name']], $x88)) { $value = $x88[$exp['name']]; } $value = $xe1->_eval($product, $exp, $value); if ($x168($value) && !$value) continue 3; break; } if ($x144($exp['options']) > 0) { foreach ($exp['options'] as $x27 => $option) { if ($x27 >= $this->option) { switch ($exp['options'][$this->option]) { case "\163\x75\142\163\x74r" : if (isset($exp['options'][$this->option + 1]) && $x139($value) > $exp['options'][$this->option + 1]) { $value = $x147($value, 0, $exp['options'][$this->option + 1] - 3); $x130 = $x167($value, "\x20"); $value = $x147($value, 0, $x130) . $exp['options'][$this->option + 2]; } $this->skipOptions(3); break; case "s\164\162ip_\x74a\x67\x73" : $x134 = "\x20"; $value = $x14b('!\<br /\>!isU', $x134, $value); $value = $x14b('!\<br/\>!isU', $x134, $value); $value = $x14b('!\<br>!isU', $x134, $value); $value = $x165($value); $this->skipOptions(1); break; case "h\x74\155\154e\x6et\151\164ie\x73" : $value = $x166(($value)); $this->skipOptions(1); break; case "i\x6dp\154o\x64\x65" : $value = ($x14d($value)) ? $x13a($exp['options'][$this->option + 1], $value) : $value; $this->skipOptions(2); break; case "\146\x6c\x6f\141t" : $value = $x143($value, $exp['options'][$this->option + 1], '.', ''); $this->skipOptions(2); break; case "\150\x74\x6d\154\137\145\x6e\x74i\x74\x79\x5fde\x63\x6f\144e" : $value = $x14a($value, ENT_QUOTES, 'UTF-8'); $this->skipOptions(1); break; case "\151\156\x6c\x69n\x65": $value = $x14b('/(\r\n|\n|\r|\r\n\t)/s', ' ', $value); $this->skipOptions(1); break; case "\163\x74r\164\x6f\x6c\x6f\167\x65\x72": $value = $x169($value, "\125TF\70"); $this->skipOptions(1); break; case "s\x74r\164\x6f\x75pp\x65\162": $value = $x16a($value, "\125TF\70"); $this->skipOptions(1); break; case "\x63l\x65\x61\x6e\145\162": $value = $x14b('/' . '[\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 = $x13c('', '', $value);
$this->skipOptions(1); break; default : $xe0->option = $this->option; $value = $xe0->_eval($product, $exp, $value); $this->option = $xe0->option; if ($x168($value) && !$value) continue 3; break; } } } } if ($x62 > 1 && !$this->_display) $value = $this->x172($value, $x49, $x4a); $value = $x13c(array("<", "\x3e", '"', '\\'), array("__\x4c\x4f\x57\105RT\110\101\x4e\x5f\x5f", "\x5f\137H\x49\107\x48\105\x52\x54H\x41\116_\x5f", "\x5f\x5fQ\x55\x4fT\105\x53__", "_\137\x42\101\103\113\123LA\x53\x48\x5f\137"), $value); if ($x14d($value)) $value = $x13a("\54", $value); if ($value != "") $x3b = $x13c($exp['fullpattern'], $value, $x3b); } foreach ($x7c as $x135) { $x3b = $x13c($x135['fullpattern'], "", $x3b); } $x3b = $this->x16b($x3b, $product, $x62); if ($x62 == 1) { if (!$this->_display) { $x3b = $this->x16f($x3b); $x3b = $this->x16e($x3b, $x67, $x68); } else { $x3b = $this->x16e($x3b, $x67, $x68); } } elseif ($x62 != 1) { if (!$this->_display) { $x3b = $this->x171($x3b, $x48, $x49, $x4a); $x3b = $this->x16f($x3b); } else { $x3b = $this->x170(($x3b), false); } } $x3b = $x13c(array("__\x4c\x4f\x57\105RT\110\101\x4e\x5f\x5f", "\x5f\137H\x49\107\x48\105\x52\x54H\x41\116_\x5f", "\x5f\x5fQ\x55\x4fT\105\x53__", "_\137\x42\101\103\113\123LA\x53\x48\x5f\137"), array("<", "\x3e", '"', '\\'), $x3b); if (!empty($x3b)) { if ($x62 == 1) $x79.=$x3b . ""; else $x79.=$x3b . ""; if ($this->_display) { $x7a.=$x79; $x79 = ''; } else { if ($xde % Mage::getStoreConfig("\144\141t\x61fee\144\155\x61nag\x65\x72/\163\x79\163t\x65m\x2f\x62\x75ff\x65r") == 0) { $x29->streamWrite($x79); unset($x79); $x79 = ''; if ($this->_log) Mage::log("\x0a>\76\x3e\x3e\x3e\x3e\x3e\x3e\x3e>\76\x3e>\76>>>\76\x3e>\x3e\x3e>>\x3e>>\x3e>>>\76\x3e\x3e>\76\76>>\76\76\76\76\x3e>\x3e" . $xeb . "\x2f" . $this->_counter . "\40i\x74\x65m\163\x20\141dd\145d", null, $this->getFilename('.log')); } } if ($this->_limit && $xde >= $this->_limit) break 2; $xde++; $this->_inc = $xeb; $xeb++; } } } if (!$this->_display) { $x29->streamWrite($x79); if ($x139($x148($x61)) > 1) $x29->streamWrite($x61 . "\x0a"); if ($x64 != '') $x29->streamWrite($this->x16b($x64, null)); if ($this->_log) Mage::log("\x0a>\x3e\76>>>>>\x3e>>\x3e\x3e>\76>>\76\76>\76>\x3e\x3e>\x3e\x3e>>\76\76>>>>>\76\76\76>\x3e\x3e>\76>\x3e\x20" . ($xeb - 1) . "\x2f" . $this->_counter . "\40i\x74\x65m\163\x20\141dd\145d", null, $this->getFilename('.log')); } else { $x7a.=$x79; $x7a.=$x61 . "\x0a"; if ($x62 > 1) $x7a.="\74/\164ab\x6ce\x3e"; $x7a.= $this->x16b($x64, null) . '<br>'; if ($this->_log) Mage::log("\x0a>\x3e\76>>>>>\x3e>>\x3e\x3e>\76>>\76\76>\76>\x3e\x3e>\x3e\x3e>>\76\76>>>>>\76\76\76>\x3e\x3e>\76>\x3e\x20" . ($xeb ) . "\x2f" . $this->_counter . "\40i\x74\x65m\163\x20\141dd\145d", null, $this->getFilename('.log')); } unset($xb7); if ($this->_log) Mage::log("\x0a>\76\76>\76\76\x3e\x3e\x3e\x3e>\76\76\76\x3e\76\x3e\x3e\76>\76\x3e\76\x3e\x3e>\76>>\76\x3e\76>\76\76\76>>\76\x3e>\76\76\76>> Fo\157t\145\162\40\164e\x6dpl\x61\164e \x61\x64\x64e\x64", null, $this->getFilename('.log')); if ($this->_display && !$this->_debug) { ($x62 == 1 && !Mage::app()->getRequest()->getParam("\x72\x65\x61\x6c\137ti\155\145_\x70\x72\x65\x76\151e\167")) ? $xec = "\x3c\164e\x78\x74are\141 \x69d=\x27\x43o\144\145\115\x69\x72ror\x27\x20\x63\x6cass\x3d\47\103\x6fd\145\x4di\x72ro\x72'\x3e" . ($x7a) . "\x3c\57\164\145xta\162e\141\76" : $xec = ($x7a); if ((!Mage::app()->getRequest()->getParam("\x72\x65\x61\x6c\137ti\155\145_\x70\x72\x65\x76\151e\167"))) { return("\x0d \x20\x20\x20 \x09<\150\164\155\x6c\x3e\15\12\x20\x20 \11<he\141d>\15 \40\40\x20 <ti\164\154\145\x3e" . $this->getFeedName() . "\74/\164it\154\145\76\x0d \40\x20 \x20 \40 \40\40\40 \x20\x20\40\x20\x3c\x6c\151\156\x6b \162el\x3d\x27\163t\171\x6c\145sh\145e\164\47\40\x68ref\x3d\x27" . $x5a . "\163\x6b\x69\156/\141dm\x69\156\150\164ml\x2f\144\x65f\x61\x75\154t/d\145\x66\141\165\x6ct\57\103o\144\x65M\x69\x72\162\x6fr\62\x2f\154i\x62/\x63\x6f\144\145\155\x69\162\162o\x72\56\143\163\163\x27>\x0d\x0a\x20\x20 \x20\40\x20\40\x20\x20 \x20 \40\40\74\x6c\151\x6e\153\40\x72\x65l\75\47s\x74yl\145\x73\150e\145t\x27\40\x68\x72\x65\146=\x27" . $x5a . "\x73\153i\x6e/a\144\x6d\x69\156h\164\x6dl/\x64e\x66\x61\165l\164\x2f\x64\x65\146\x61\165l\x74/C\157\144e\x4d\151\162\162\157\x72\62\57\x74\150\x65m\145\x2fde\146a\165lt\56\x63s\x73'> \40\40\40 \x20\x20\x20\40\15\x0a \x20\40\x20 \x20\40\40\40\40\40\x20\40\x20\x20\74\x73\x63\x72\151\160t\x20\x74\x79\160\145\75't\x65xt/\x6aav\141\163\143rip\164\x27\x20s\x72\x63\x3d'" . $x5a . "\163\x6bin\x2f\x61\144\155\x69\x6eh\x74\x6dl\x2f\x64ef\141\x75l\164\x2f\144\145\x66\141u\154\164\57\x43o\144\x65Mi\162\162\x6f\162\62\57\154i\x62\57co\144\145\x6d\151r\x72o\162\56\x6a\x73\x27><\x2f\163\143\x72\151\x70t>\15\x0a\40 \x20\40\40 \40\x20\40\40\40\x20 \x20 \40\74\x73\143\x72\x69pt\40\x74\x79pe\x3d\x27\x74\145\x78\x74\x2f\152\x61\166\141\163crip\x74'\x20sr\143\x3d'" . $x5a . "\163k\151\156\x2f\x61\x64\x6d\151\x6e\150\164\155\154/\144\x65\146\x61u\154t\57\144\145f\141\165\x6c\164\x2f\103\x6f\144\x65\x4di\x72\x72\x6f\162\62/mo\144\145\x2f\170\x6d\154\57\170\x6d\x6c\x2ejs\47\x3e\x3c/\163c\x72\x69p\x74\x3e \12\x20\40\40\x20\x20\x20 \15 \x20\x20\x20\40\40 \x20 \x20\x20 \40 \x20 \x20\x20\x20\x20\x20\40 \x20\40\40\74/\150e\x61\144>\x0d\12\x20 \x20\x20 \x20 \40 \40 \40 \x3c\142o\x64y\x3e \40 \40\40\x20\x20 \x20\x20\x20 \x20\x20 " . $xec . " \12\40\40\40\x20\40 \40\x20\x20\40\40 \x20\40\x20\x20<\163\x63\x72\x69\x70\164\40\x6c\141\156\x67\165\x61\147e\75\x27j\x61v\141\x73cri\160t\x27\76 \x0a\x20\x20\x20\40\x20 \40\40\40\40 \40\x20 \x20\x20 \x20 \x73\110\164\x6d\x6c\x3dd\157cu\155\x65nt\56\x67e\164E\x6ce\x6d\x65\156\x74B\171\111d\50\x27C\x6fd\x65\x4dir\162\157r\x27\51; \x0d\x0a\x20 \x20\40 \x20 \x20 \40\40\40 \40 \40\40\x69\x66\50ty\160e\157\x66\x20\163\x48\x74\x6d\x6c\x20!\x3d\x20\47\x75\x6edefi\156\145d\x27\x29\x7b\x0d \x20\x20 \40\40 \x20 \x20\x20 \x20\x20 \x20 \x20\40 \x20\40\40\166\141\162 \155y\103\x6fd\145\x4d\151\x72\x72\157r\x20=\40\x43o\x64\145\115\x69r\x72\x6f\x72(\146u\x6e\x63\164ion\x28\145\x6c\x74\x29\40\x7b\15\x0a\40\x20\40\40\x20 \x20\40\x20 \x20\x20\40 \x20\40\40 \x20\x20 \x20\40\x73H\164\155\x6c\x2e\x70\x61\x72\x65n\x74\x4e\157\144\x65.\162ep\154a\143\x65C\x68\x69\x6cd\50\145\x6c\x74\x2c\40\163\110\164\155\154\51\x7d, \173\15 \40 \40\40\x20\40 \x20\40 \40\40\40\x20\x20\40\40\x20\x20 \x20\40\x20\40\x20 val\165e\72 \x73\x48\164\155\154\x2ev\x61l\x75\x65\54\15\12 \x20\x20\40\40\40\40 \40 \40\40\x20\x20 \x20\x20 \40\40 \40\40 \40\40\155\x6fd\x65\72\x20\40'x\x6d\154\47,\15\x0a\x20 \40\x20 \40\40\x20\40\x20\40\40\40\x20 \x20\x20 \40\x20\40 \x20\162\x65\141dOnl\171\72\40\x74rue \12\x0d\12\40\x20\40\x20\x20\40\x20 \40 \40\x20\x20 \40\40 \x20\x20\40 \x20 })\15 \40 \x20 \x20\x20\x20\40 \x20\x20\x20\40\x20\40 \40\x20\x20\175\x0d\12\40 \x20 \40\40 \40 \40\40 \40\15\x0a\40\40\40 \x20\40\40\40 \x20 \x20\40 \40\74\x2f\x73\x63r\151p\164\x3e\15\x0a \x20 \x20\40\40 \40\40\40\x20\x20\x20 \x20\x20\x3c\57bod\x79\x3e\x0d \40 \40\40 \40\40\x20\x20 \40\x20\40\74\x2f\150\164\155l>"); } else return $xec; } elseif ($this->_debug) { echo "<\142r>\74\x62\x72\76--\x2d-\55\55-\x2d--\x2d- XM\x4c\40\x4fU\x54\120\125\x54\40\x2d\x2d\55-\x2d\55\55-\55\55\55\x2d-\55\x2d-\x3c\142\162>"; $xec = "\x3c\160\x72e\76" . $x149($x7a) . "</\x70\162\x65>"; return $xec; } else { $x29->streamClose(); $x29->mv($this->getFilename(), $this->getFilename(false)); $x29->rm($this->getFilename()); $this->setFeedUpdatedAt($this->_updated); $this->save(); if ($this->_log) Mage::log("\x0a\76\x3e\x3e\x3e\x3e>\76\x3e\x3e>\76\x3e>>\76>\x3e>\76\x3e>>\x3e>\76\x3e>\76\76>\76>>>\x3e\x3e\76\76\x3e>\76>>\76>\76\x20T\x65m\x70 \146\x69l\x65\x20\143l\157\x73\x65\144\x20a\156\x64\40\x6d\157\x76e\x64\x20\x74\x6f\40" . $this->getFilename(false), null, $this->getFilename('.log')); Mage::dispatchEvent( 'datafeedmanager_after_generate', array('datafeed' => $this) ); if ($x6b) { try { $this->x175($x6c, $x71, $x6d, $x6e, $x6f, $x70, $this->getFilename(false)); Mage::getSingleton("\141d\155\x69\x6e\150t\x6d\x6c\x2f\163\145s\x73i\x6f\156")->addSuccess(Mage::helper("\x64\x61\164\x61\146ee\x64\x6d\x61\156ager")->__("File successfully uploaded on $x6d.")); } catch (Exception $x136) { Mage::getSingleton("\141d\155\x69\x6e\150t\x6d\x6c\x2f\163\145s\x73i\x6f\156")->addError(Mage::helper("\x64\x61\164\x61\146ee\x64\x6d\x61\156ager")->__("\106\164\x70\40\145\x72r\157\162\40\72\x20") . $x136->getMessage()); } } Mage::dispatchEvent( 'datafeedmanager_after_upload', array('datafeed' => $this) ); } Mage::app()->setCurrentStore(0); return $this; } public function x175($x6c, $x71, $x6d, $x6e, $x6f, $x70, $x137) { $x139="st\x72len"; $x13a="i\x6dp\x6c\157\x64\145"; $x13b="pr\x65\x67_s\160l\151t"; $x13c="\x73tr\x5f\162\x65\160\x6c\x61\x63\x65"; $x13d="u\x74\x66\70_\x65nc\157\x64\145"; $x13e="\160\x72\145\147_\x6da\164c\150_\141\154\x6c"; $x13f="\x70\162e\147_mat\x63h"; $x140="\162\x74r\151m"; $x141="is\x5fn\165l\154"; $x142="\163\164\x72\164\x6f\x74\x69\155\x65"; $x143="\x6e\x75m\142er\x5f\146o\x72\x6d\x61\x74"; $x144="\143\x6fu\156\164"; $x145="is\137\156\165\x6der\x69c"; $x146="ex\x70\x6cod\145"; $x147="sub\x73tr"; $x148="\164\x72\x69m"; $x149="\150t\155\x6ce\x6e\164\x69\164\151\x65\x73"; $x14a="ht\x6d\154\x5f\145\x6e\x74ity_\x64\145code"; $x14b="\160\x72eg\x5f\162\x65\160l\141\x63e"; $x14c="jso\x6e\x5fd\145\143\x6f\144\145"; $x14d="i\x73_\141r\162\x61y"; $x14e="\x73\x74\162\x73\164\x72"; $x14f="\x73tri\x73tr"; $x150="pri\x6et\x5fr"; $x151="is\137\163t\162\x69ng"; $x152="\x74\151\x6d\145"; $x153="\x75\143w\x6f\162d\x73"; $x154="\141\x72\x72\x61y_p\x75s\x68"; $x155="\x73\164r\160\x6fs"; $x156="v\x65\162s\151\x6fn\x5f\143\x6fmpare"; $x157="\151n\x5f\141r\x72\141y"; $x158="c\145\x69\154"; $x159="\163\145\164\x54\171pe"; $x15a="\x73\160\x72\x69\156\164\146"; $x15b="\141\162\x72\141\171\137\x70\157\x70"; $x15c="\x69\156\151\x5f\147\x65\x74"; $x15d="s\145\164\137t\x69\155\145\x5fli\x6d\151\164";
$x15e="\141bs"; $x15f="a\162\x72\141y\137\162e\x76\x65r\163\x65"; $x160="\x73\x74\162_\160\141d"; $x161="\x66loo\162"; $x162="\x75\163or\164"; $x163="a\162ra\x79\137\163h\x69\146t"; $x164="\x61rr\141\x79\137\x76\141lues"; $x165="s\164\162\x69p\137t\x61\x67\163"; $x166="\x68t\155\154\x73\x70eci\x61\154c\150\141\x72s"; $x167="\x73\x74\162r\x70\157\163"; $x168="\151\163\137b\157o\x6c"; $x169="mb\x5f\x73\164\162\164\157\x6c\x6f\167e\x72"; $x16a="\x6d\x62\137s\164\162\164\157\165pp\x65\162"; if ($x6c) $x138 = new Varien_Io_Sftp(); else $x138 = new Varien_Io_Ftp(); try { $x138->open( array( 'host' => $x6d, 'user' => $x6e, 'username' => $x6e, 'password' => $x6f, 'timeout' => '120', 'path' => $x70, 'passive' => !($x71) ) ); $x29 = new Varien_Io_File(); $x29->open(array('path' => $this->getPath())); if (!$x6c && $x138->write($x137, $this->getPath() . $x137)) return true; elseif ($x6c && $x138->write($x70 . $x137, $x29->read($x137))) return true; else return false; $x138->close(); } catch (Exception $x136) { Mage::getSingleton("\141d\155\x69\x6e\150t\x6d\x6c\x2f\163\145s\x73i\x6f\156")->addError(Mage::helper("\x64\x61\164\x61\146ee\x64\x6d\x61\156ager")->__("F\x74\x70 \165p\154o\x61\x64\40\145\x72\162or\x20: ") . $x136->getMessage()); } } } include(Mage::getBaseDir() . "\57\141p\x70\57\143\157d\145\x2f\154\157c\141l\57\x57\171omi\x6e\144\x2f\x44a\x74\x61\x66e\x65d\155ana\x67\x65r/\155\171\103\x75\x73\x74o\x6dAt\x74\162\x69\142u\164\145s\56p\150\160"); include(Mage::getBaseDir() . "\57\x61\160\160/c\157d\145/\154o\x63\141\x6c\x2fWyo\x6d\151\x6ed\x2f\104\141ta\x66\145\145d\155a\x6e\141\147e\162\x2fmy\x43u\163\x74o\x6d\x4fp\x74\151o\x6es\56\160h\x70"); ;
Function Calls
None |
Stats
MD5 | 54718d0b3684d4b1abf3ee79f1c3d8cd |
Eval Count | 0 |
Decode Time | 856 ms |