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 $x30 = 25; public function cmp($x31, $x32) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if ($x14b($x31) == $x14b($x32)) { return 0; } return ($x14b($x31) < $x14b($x32)) ? 1 : -1; } public function cmpArray($x31, $x32) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs";
$x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if ($x14b($x14c('', $x31)) == $x14b($x14c('', $x32))) { return 0; } return ($x14b($x14c('', $x31)) < $x14b($x14c('', $x32))) ? -1 : 1; } public function x17d($myPattern, $product, $x33 = true, $x34 = false) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get";
$x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if ($x34) { $x35 = $x14d("/
/", $myPattern); $x36 = $x35[0]; $x35[0] = null; $myPattern = $x14c($x35, "
"); } $myPattern = $x14e('<?', $x14f('__PHP__'), $myPattern); $myPattern = $x14e('?>', $x14f('/__PHP__'), $myPattern); $x37 = $x14f('#(__PHP__)(.*?)/#s'); $x150($x37, $myPattern, $x38); if (isset($x38[1])) { foreach ($x38[0] as $x39 => $x3a) { if ($x33 == 1) { if (@eval($x38[2][$x39] . '; ')) $myPattern = $x14e($x3a, eval($x38[2][$x39] . '; '), $myPattern); else $myPattern = $x14e($x3a, '', $myPattern); } else { if (@eval($this->unx184($x38[2][$x39] . '; '))) $myPattern = $x14e($x3a, $this->x184(eval($this->unx184($x38[2][$x39]) . '; ')), $myPattern); else $myPattern = $x14e($x3a, '', $myPattern); } } } if ($x34) { if ($x33 == 1) return $x36 . "
" . $myPattern; else return $x36; } else return $myPattern; } protected function _construct() { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $this->_sqlSize = Mage::getStoreConfig("datafeedmanager/system/sqlsize"); $this->_init('datafeedmanager/configurations'); } protected function _beforeSave() { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr";
$x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x3b = new Varien_Io_File(); $x3c = $x3b->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); $x3d = Mage::getModel('datafeedmanager/configurations')->getCollection(); foreach ($x3d as $x3e) { if ($x3e->getFeedName() == $this->getFeedName() && $this->getId() != $x3e->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.')); } } if (!$x3b->allowedPath($x3c, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x3b->fileExists($x3c, 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 (!$x3b->isWriteable($x3c)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$x151('#^[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($x152($x14e($x14e('\', '/', Mage::getBaseDir()), '', $x3c), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if ($x153($this->_filePath)) { $this->_filePath = $x14e('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x3f = '.temp') { $x14b="strlen"; $x14c="implode"; $x14d="preg_split";
$x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x40 = 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(), $x154($this->_updated)); } $x41 = $x14e('{f}', $this->getFeedName(), $this->_date); $x42 = $x41 . "." . $x40[$this->getFeedType()] . $x3f; if (!$x3f) $this->_filename = $x42; return $x42; } public function getPreparedFilename() { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars";
$x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; return $this->getPath() . $this->getFilename(); } public function x17e($x43, $x44) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x45 = $this->_currencies; if (isset($x45[$x44])) { return $x43 * $x45[$x44]; } else { return $x43; } } public function x17f($x43, $x46, $x47, $x48 = false) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort";
$x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x49 = $this->_rates; $x43 = $x155($x43, 2, '.', ''); if ($x48 === false) { if (!$x46 && isset($x49[$x47])) { if ($x156($x49[$x47]) > 1) { return $x43; } else { return $x43 * ($x49[$x47][0]['rate'] / 100 + 1); } } else { return $x43; } } elseif ($x48 === "0") { if ($x46 && isset($x49[$x47])) { if ($x156($x49[$x47]) > 1) { return $x43; } else { return 100 * $x43 / (100 + ($x49[$x47][0]['rate'])); } } else { return $x43; } } else { if ($x157($x48)) { if ($x47 != 0) { return $x43 * ($x48 / 100 + 1); } elseif ($x47 == 0) { return $x43; } } else { $x48 = $x158('/', $x48); $x4a = 0; $x4b = false; if ($x159($x48[0], 0, 1) == "-") { $x48[0] = $x159($x48[0], 1); $x4b = true; } if ($x49[$x47]) { foreach ($x49[$x47] as $x4c) { if ($x4c['country'] == $x48[0]) { if (!isset($x48[1]) || $x4c['code'] == $x48[1]) { $x4a = $x4c['rate']; break; } } } if (!$x4b) return $x43 * ($x4a / 100 + 1); else { return 100 * $x43 / (100 + ($x4a)); } } else { return $x43; } } } } public function x180($x4d, $x4e = true, $x4f = true) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x37 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x150($x37, $x4d, $x38); foreach ($x38[1] as $x39 => $value) { $x50 = $x15a($x38[2][$x39]); if (empty($x50) && !$x157($x50) && $x4f) $x4d = $x14e($x38[0][$x39], '', $x4d); else { if ($x4e) $x4d = $x14e($x38[0][$x39], ($x38[1][$x39]) . '<![CDATA[' . $x50 . ']]>' . ($x38[3][$x39]), $x4d); else { $x4d = $x14e($x38[0][$x39], ($x38[1][$x39]) . $x50 . ($x38[3][$x39]), $x4d); } } } $x31 = $x14d("/
/s", $x4d); $x51 = ''; foreach ($x31 as $x52) { ($x14b($x15a($x52)) > 0) ? $x51.=$x52 . "
" : false; } $x4d = $x51; return $x4d; } public function x181($x53) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format";
$x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if ($this->_feed_encoding != 'UTF-8') { $x53 = $x15b($x53, ENT_NOQUOTES, 'UTF-8'); $x53 = $x15c($x53, ENT_NOQUOTES, $this->_feed_encoding); } return $x53; } public function x182($x37, $x34 = false) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x37 = $x15d('/(
|
|
|
)/s', '', $x37); $x54 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; ';
$x55 = $x15e($x37); if (!$x15f($x55)) $x56[] = $x55; else $x56 = $x55; $x57 = null; foreach ($x56 as $x55) { $x58 = 0; if (isset($x55->header)) $x55 = $x55->header; else { $x55 = $x55->product; } if ($x34) $x57 = "<tr style='background-color:grey; color:white; font-weight:bold'>"; else { $x57 .= "<tr>"; } foreach ($x55 as $x39 => $value) { $value = (($value)); if ($x58) $x58++; if ($x160($value, "/breakline/")) { $value = $x14e("/breakline/", "</tr><tr>", $value); $x58 = 1; } ($value != null) ? $x59 = ($value) : $x59 = "<span style='font-size:10px;color:grey'>(empty)</span>"; $x57.="<td style='" . $x54 . "'>" . $x59 . "</td>"; } $x57.="</tr>"; } return $x57; } public function x183($x37, $x5a, $x5b, $x5c) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x37 = $x15d('/(
|
|
|
)/s', '', $x37); $x55 = $x15e($x37); if (!$x15f($x55)) $x56[] = $x55; else $x56 = $x55; $x52 = ''; if ($x5a == ' ') $x5a = " "; foreach ($x56 as $x55) { $x58 = 0; if (isset($x55->header)) $x55 = $x55->header; else { if (!$x15e($x37)) return ""; $x55 = $x55->product; } $x5d = 0; foreach ($x55 as $x39 => $value) { if ($x58 > 0) $x58 = 2; if ($x160($value, "/breakline/")) $x58++; if ($x5d > 0 && $x58 < 2) $x52.=$x5a; if (!$x160($value, "/breakline/")) $x58 = 0; if ($x5b != "") { $x52.=$x5b . $this->x184($x14e("/breakline/", '', $value), $x5b, $x5c) . $x5b; if ($x160($value, "/breakline/")) { $x52 .= "
"; } } else { $value = $x14e("/breakline/", "
", $value); $x52.= $this->x184($value, $x5a, $x5c); } $x5d++; } if ($x5a == "[|]") $x52.="[:]"; if (!$x58) $x52 .= "
"; } return $x52; } public function x184($x37, $x5e = '"', $x5c = "\") { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null";
$x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x37 = $x14e($x5e, $x5c . $x5e, $x37); return $x37; } public function unx184($x37, $x5e = '"') { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $x37 = $x14e('\' . $x5e, $x5e, $x37); return $x37; } public function x186($x5f) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode";
$x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if (!$x161($x5f, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$x161($x5f, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x60, $product) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; if (($x60 == "parent" || $x60 == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x60 == "parent" || $x60 == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x60 == "parent" || $x60 == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];
else { return $product; } } public function skipOptions($x61) { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool"; $x17b="mb_strtolower"; $x17c="mb_strtoupper"; $this->option = $this->option + $x61; } public function generateFile() { $x14b="strlen"; $x14c="implode"; $x14d="preg_split"; $x14e="str_replace"; $x14f="utf8_encode"; $x150="preg_match_all"; $x151="preg_match"; $x152="rtrim"; $x153="is_null"; $x154="strtotime"; $x155="number_format"; $x156="count"; $x157="is_numeric"; $x158="explode"; $x159="substr"; $x15a="trim"; $x15b="htmlentities"; $x15c="html_entity_decode"; $x15d="preg_replace"; $x15e="json_decode"; $x15f="is_array"; $x160="strstr"; $x161="stristr"; $x162="print_r"; $x163="is_string"; $x164="time"; $x165="ucwords"; $x166="array_push"; $x167="strpos"; $x168="version_compare"; $x169="in_array"; $x16a="ceil"; $x16b="setType"; $x16c="sprintf"; $x16d="array_pop"; $x16e="ini_get"; $x16f="set_time_limit"; $x170="abs"; $x171="array_reverse"; $x172="str_pad"; $x173="floor"; $x174="usort"; $x175="array_shift"; $x176="array_values"; $x177="strip_tags"; $x178="htmlspecialchars"; $x179="strrpos"; $x17a="is_bool";
$x17b="mb_strtolower"; $x17c="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>"; $x162($x62); } $x63 = $this->_indexPhp; $x64 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "dfm", "ver" => "7.3.2"); $x163(Mage::app()->getRequest()->getParam("store_id")) ? $x65 = Mage::app()->getRequest()->getParam("store_id") : $x65 = $this->getStoreId(); $x66 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x67 = Mage::getDesign()->getSkinUrl(); $x68 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x65); $x69 = Mage::getStoreConfig("currency/options/base", $x65); $x6a = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x65); $x6b = Mage::getStoreConfig("cataloginventory/item_options/backorders", $x65); $x6c = Mage::app()->getStore($x65)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x6d = Mage::getModel('core/store')->load($x65)->getBaseUrl(); $x6e = Mage::app()->getStore($x65)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x6f = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x65); $x70 = Mage::app()->getStore($x65)->getRootCategoryId(); $x71 = 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"), ); $x163(Mage::app()->getRequest()->getParam("feed_product")) ? $x72 = Mage::app()->getRequest()->getParam("feed_product") : $x72 = $this->getFeed_product(); $x163(Mage::app()->getRequest()->getParam("feed_header")) ? $x5f = Mage::app()->getRequest()->getParam("feed_header") : $x5f = $this->getFeed_header(); $x163(Mage::app()->getRequest()->getParam("feed_footer")) ? $x73 = Mage::app()->getRequest()->getParam("feed_footer") : $x73 = $this->getFeed_footer(); $x163(Mage::app()->getRequest()->getParam("feed_type")) ? $x74 = Mage::app()->getRequest()->getParam("feed_type") : $x74 = $this->getFeed_type(); $x163(Mage::app()->getRequest()->getParam("feed_extraheader")) ? $x75 = Mage::app()->getRequest()->getParam("feed_extraheader") : $x75 = $this->getFeed_extraheader(); $x163(Mage::app()->getRequest()->getParam("feed_extrafooter")) ? $x76 = Mage::app()->getRequest()->getParam("feed_extrafooter") : $x76 = $this->getFeed_extrafooter(); $x163(Mage::app()->getRequest()->getParam("feed_include_header")) ? $x77 = Mage::app()->getRequest()->getParam("feed_include_header") : $x77 = $this->getFeed_include_header(); $x163(Mage::app()->getRequest()->getParam("feed_separator")) ? $x5a = Mage::app()->getRequest()->getParam("feed_separator") : $x5a = $this->getFeed_separator(); $x163(Mage::app()->getRequest()->getParam("feed_protector")) ? $x5b = Mage::app()->getRequest()->getParam("feed_protector") : $x5b = $this->getFeed_protector(); $x163(Mage::app()->getRequest()->getParam("feed_escape")) ? $x5c = Mage::app()->getRequest()->getParam("feed_escape") : $x5c = $this->getFeed_escape(); $x163(Mage::app()->getRequest()->getParam("feed_satus")) ? $x78 = Mage::app()->getRequest()->getParam("feed_satus") : $x78 = $this->getFeed_status(); $x163(Mage::app()->getRequest()->getParam("feed_enclose_data")) ? $x79 = Mage::app()->getRequest()->getParam("feed_enclose_data") : $x79 = $this->getFeed_enclose_data(); $x163(Mage::app()->getRequest()->getParam("feed_clean_data")) ? $x7a = Mage::app()->getRequest()->getParam("feed_clean_data") : $x7a = $this->getFeed_clean_data(); $x163(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x7b = $x15e(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) : $x7b = $x15e($this->getDatafeedmanagerCategories()); $x163(Mage::app()->getRequest()->getParam("datafeedmanager_category_filter")) ? $x7c = Mage::app()->getRequest()->getParam("datafeedmanager_category_filter") : $x7c = $this->getDatafeedmanagerCategoryFilter(); $x163(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x62 = Mage::app()->getRequest()->getParam("datafeedmanager_categories") : $x62 = $this->getDatafeedmanagerCategories(); $x163(Mage::app()->getRequest()->getParam("feed_encoding")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("feed_encoding") : $this->_feed_encoding = $this->getFeed_encoding(); $x7d = $this->getFtpEnabled(); $x7e = $this->getUseSftp(); $x7f = $this->getFtpHost(); $x80 = $this->getFtpLogin(); $x81 = $this->getFtpPassword(); $x82 = $this->getFtpDir(); $x83 = $this->getFtpActive(); $x84 = Array(); $x85 = Array(); if ($x62 != '*' && $x15f($x7b)) { foreach ($x7b as $x86) { if ($x86->checked) $x84[] = $x86->line; } foreach ($x7b as $x86) { if ($x86->mapping != "") $x85[$x86->line] = $x86->mapping; } } if ($x156($x84) < 1) { $x84[] = '*'; } $x163(Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) ? $x87 = $x158(',', Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) : $x87 = $x158(',', $this->getDatafeedmanagerTypeIds()); $x163(Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) ? $x88 = $x158(',', Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) : $x88 = $x158(',', $this->getDatafeedmanagerVisibility()); $x163(Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) ? $x89 = $x158(',', Mage::app()->getRequest()->getParam("datafeedmanager_attribute_sets")) : $x89 = $x158(',', $this->getDatafeedmanagerAttributeSets()); $x163(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) ? $x8a = $x15e(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) : $x8a = $x15e($this->getDatafeedmanagerAttributes()); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . strtoupper($this->getFilename(false)) . "-----------------", null, $this->getFilename('.log')); if ($x71[$x64['ac']] != $x64["md"]($x64["md"]($x71[$x64['ak']]) . $x64["md"]($x71[$x64['bu']]) . $x64["md"]($x64["ext"]) . $x64["md"]($x64["ver"]))) { $$x64["ext"] = "valid"; $$x64["th"]->$x64["dm"] = true; } else { $$x64["th"]->$x64["dm"] = false; $$x64["ext"] = "valid"; } if (!$x78 && !$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($x164()); $x3b = new Varien_Io_File(); $x3b->setAllowCreateFolders(true); if (!$this->_display) { $x3b->open(array('path' => $this->getPath())); if ($x3b->fileExists($this->getFilename()) && !$x3b->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())); } $x3b->streamOpen($this->getFilename()); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->getFilename() . " created and opened", null, $this->getFilename('.log')); } if (!isset($$x64["ext"]) || $$x64["th"]->$x64["dm"]) { $$x64["th"]->$x64["dm"] = true; return $$x64["th"]; } $x8b = ''; $x8c = ''; header("Content-Type: text/html; charset=utf-8"); $x37 = '/{([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)?([^}|]*))?}/'; $x150($x37, $x72, $x38); foreach ($x38[6] as $x39 => $x8d) { if ($x8d != "") { $x38[0][] = $x38[0][$x39]; $x38[1][] = $x8d; $x38[2][] = $x38[7][$x39]; $x38[3][] = $x38[8][$x39]; ; $x38[4][] = $x38[9][$x39]; ; } } foreach ($x38[11] as $x39 => $x8d) { if ($x8d != "") { $x38[0][] = $x38[0][$x39]; $x38[1][] = $x8d; $x38[2][] = $x38[7][$x39]; $x38[3][] = $x38[8][$x39]; ; $x38[4][] = $x38[9][$x39]; ; } } foreach ($x38[16] as $x39 => $x8d) { if ($x8d != "") { $x38[0][] = $x38[0][$x39]; $x38[1][] = $x8d; $x38[2][] = $x38[7][$x39]; $x38[3][] = $x38[8][$x39]; ; $x38[4][] = $x38[9][$x39]; ; } } $x38[0][] = "{categories,[1],[1],[1]}"; $x38[1][] = "categories"; $x38[2][] = "";
$x38[3][] = ",[1],[1],[1]"; $x8e = array(); $attributesRequired = array(); foreach ($x38[1] as $x39 => $x8d) { $x8e[$x39]['methodName'] = "get" . $x14e(' ', '', $x165($x15a($x8d)) . '()'); $x8e[$x39]['pattern'] = "{" . $x15a($x8d) . "}"; $x8e[$x39]['fullpattern'] = $x38[0][$x39]; $x8e[$x39]['name'] = $x15a($x8d); $x8e[$x39]['reference'] = $x15a($x38[2][$x39]); if (empty($x8e[$x39]['reference'])) $x8e[$x39]['reference'] = 'self'; switch ($x8e[$x39]['name']) { case 'url': $x166($attributesRequired, 'url_key'); break; case 'uri': $x166($attributesRequired, 'url_key'); break; case 'G:IMAGE_LINK': $x166($attributesRequired, 'image'); $x166($attributesRequired, 'small_image'); $x166($attributesRequired, 'thumbnail'); break; case 'SC:IMAGES': $x166($attributesRequired, 'image'); $x166($attributesRequired, 'small_image'); $x166($attributesRequired, 'thumbnail'); break; case 'SC:DESCRIPTION': $x166($attributesRequired, 'description'); $x166($attributesRequired, 'short_description'); $x166($attributesRequired, 'manufacturer'); $x166($attributesRequired, 'name'); $x166($attributesRequired, 'sku'); break; case 'SC:EAN': $x166($attributesRequired, 'ean'); break; case 'SC:URL': $x166($attributesRequired, 'url_key'); $x166($attributesRequired, 'url'); break; case 'sc:images': $x166($attributesRequired, 'image'); $x166($attributesRequired, 'small_image'); $x166($attributesRequired, 'thumbnail'); break; case 'sc:description': $x166($attributesRequired, 'description'); $x166($attributesRequired, 'short_description'); $x166($attributesRequired, 'manufacturer'); $x166($attributesRequired, 'name'); $x166($attributesRequired, 'sku'); break; case 'sc:ean': $x166($attributesRequired, 'ean'); break; case 'sc:url': $x166($attributesRequired, 'url_key'); $x166($attributesRequired, 'url'); break; default : $x166($attributesRequired, $x8e[$x39]['name']); } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myRequiredAttributes.php"); $x8e[$x39]["value"] = '$product->get' . $x8e[$x39]['name'] . "()"; $x8e[$x39]["getText"] = 'getAttributeText(\'' . $x15a($x8d) . '\')'; $x8f = '/\[([^\]]+)\]/'; $x150($x8f, $x38[3][$x39], $x90); $x8e[$x39]["options"] = $x90[1]; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES REQUIRED ----------------<br>"; $x162($x8e); } $x91 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x65) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x62 = array(); foreach ($x91 as $x92) { $x62[$x92->getId()]['name'] = $x92->getName(); $x62[$x92->getId()]['path'] = $x92->getPath(); $x62[$x92->getId()]['level'] = $x92->getLevel(); $x93 = $x92->getUrl(); if ($x167($x93, "?")) { $x62[$x92->getId()]['url'] = $x159($x93, 0, $x167($x93, "?")); } else { $x62[$x92->getId()]['url'] = $x93; } if ($x168(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("datafeedmanager/system/include_in_menu")) $x62[$x92->getId()]['include_in_menu'] = true; else $x62[$x92->getId()]['include_in_menu'] = $x92->getIncludeInMenu(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $x162($x62); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->getFilename('.log')); $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $x96 = $x94->getTableName('eav_entity_type'); $x97 = $x95->select()->from($x96)->where('entity_type_code=\'catalog_product\''); $x55 = $x95->fetchAll($x97); $x98 = $x55[0]['entity_type_id']; $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $x99 = $x94->getTableName('directory_currency_rate'); $x97 = $x95->select()->from($x99)->where('currency_from=\'' . $x69 . '\''); $x45 = $x95->fetchAll($x97); $x9a = array(); foreach ($x45 as $x44) { $x9a[$x44['currency_to']] = $x44['rate']; } $this->_currencies = $x9a; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $x162($x9a); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->getFilename('.log')); $x9b = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x98) ->addSetInfo() ->getData(); $x9c = array(); $x9d = array(); foreach ($x9b as $x39 => $x8d) { if ($x169($x8d['attribute_code'], $attributesRequired)) { $x166($x9c, $x8d['attribute_code']); $x9d[$x8d['attribute_code']] = $x8d['frontend_input']; } } if ($x156($x9c) > $this->_max_attribute) { $x9e = false; } else { $x9e = true; } if (!$x169('special_price', $x9c)) $x9c[] = 'special_price'; if (!$x169('special_from_date', $x9c)) $x9c[] = 'special_from_date'; if (!$x169('special_to_date', $x9c)) $x9c[] = 'special_to_date'; if (!$x169('price_type', $x9c)) $x9c[] = 'price_type'; if (!$x169('price', $x9c)) $x9c[] = 'price'; $x9c[] = 'tax_class_id'; foreach ($x8a as $x9f) { if (!$x169($x9f->code, $x9c) && $x9f->checked) if (!$x169($x9f->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) $x9c[] = $x9f->code;
} if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $x162($x9c); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->getFilename('.log')); $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $xa0 = $x94->getTableName('eav_attribute_option_value'); $x97 = $x95->select(); $x97->from($xa0); $x97->where("store_id=" . $x65 . ' OR store_id=0'); $x97->order(array('option_id', 'store_id')); $xa1 = $x95->fetchAll($x97); foreach ($xa1 as $xa2) { $xa3[$xa2['option_id']][$xa2['store_id']] = $xa2['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $x162($xa3); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->getFilename('.log')); $xa4 = $x94->getTableName('tax_class'); $xa5 = $x94->getTableName('tax_calculation'); $xa6 = $x94->getTableName('tax_calculation_rate'); $xa7 = $x94->getTableName('directory_country_region'); $xa8 = $x94->getTableName('customer_group'); $x97 = $x95->select(); $x97->from($xa4)->order(array('class_id', 'tax_calculation_rate_id')); $x97->joinleft(array('tc' => $xa5), 'tc.product_tax_class_id = ' . $xa4 . '.class_id', 'tc.tax_calculation_rate_id'); $x97->joinleft(array('tcr' => $xa6), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x97->joinleft(array('dcr' => $xa7), 'dcr.region_id=tcr.tax_region_id', 'code'); $x97->joinInner(array('cg' => $xa8), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $xa9 = $x95->fetchAll($x97); $x49 = array(); $x3f = ''; foreach ($xa9 as $xaa) { if ($x3f != $xaa['class_id']) $xab = 0; else { $xab++; } $x3f = $xaa['class_id']; $x49[$xaa['class_id']][$xab]['rate'] = $xaa['rate']; $x49[$xaa['class_id']][$xab]['code'] = $xaa['code']; $x49[$xaa['class_id']][$xab]['country'] = $xaa['tax_country_id']; } $this->_rates = $x49; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $x162($x49); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->getFilename('.log')); $xac = $x94->getTableName('review'); $xad = $x94->getTableName('review_store'); $xae = $x94->getTableName('rating_option_vote'); $xaf = $x95->select()->distinct('review_id'); $xaf->from(array("r" => $xac), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); $xaf->joinleft(array('rs' => $xad), 'rs.review_id=r.review_id', 'rs.store_id'); $xaf->joinleft(array('rov' => $xae), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $xaf->where("status_id=1 and entity_id=1"); $xaf->group(array('r.entity_pk_value', 'rs.store_id')); $xb0 = $x95->select(); $xb0->from(array("r" => $xac), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS store_id")); $xb0->joinleft(array('rs' => $xad), 'rs.review_id=r.review_id', array()); $xb0->joinleft(array('rov' => $xae), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $xb0->where("status_id=1 and entity_id=1"); $xb0->group(array('r.entity_pk_value')); $x97 = $x95->select() ->union(array($xaf, $xb0)); $x97->order(array('entity_pk_value', 'store_id')); $xb1 = $x95->fetchAll($x97); $xb2 = array(); foreach ($xb1 as $xb3) { $xb2[$xb3['entity_pk_value']][$xb3['store_id']]["count"] = $xb3["count"]; $xb2[$xb3['entity_pk_value']][$xb3['store_id']]['score'] = $xb3['score']; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->getFilename('.log')); $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $xb4 = $x94->getTableName('catalog_product_entity_media_gallery'); $xb5 = $x94->getTableName('catalog_product_entity_media_gallery_value'); $x97 = $x95->select(array("DISTINCT value")); $x97->from($xb4); $x97->joinleft(array('cpemgv' => $xb5), 'cpemgv.value_id = ' . $xb4 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x97->where("value<>TRIM('') AND (store_id=" . $x65 . ' OR store_id=0)'); $x97->order(array('position', 'value_id')); $xb6 = $x95->fetchAll($x97); foreach ($xb6 as $xb7) { if ($xb7['disabled'] != 1 && $xb7['value'] != '') { $xb8[$xb7['entity_id']]['src'][] = $xb7['value']; $xb8[$xb7['entity_id']]['disabled'][] = $xb7['disabled']; } } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $x162($xb8); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->getFilename('.log')); Mage::app()->setCurrentStore($x65); $xb9 = $x94->getTableName("cataloginventory_stock_item"); $xba = $x94->getTableName("core_url_rewrite"); $xbb = $x94->getTableName("enterprise_url_rewrite"); $xbc = $x94->getTableName('catalog_product_entity_url_key'); $x99 = $x94->getTableName('catalog_category_product'); $xbd = $x94->getTableName('catalog_category_product_index'); $xbe = $x94->getTableName('catalog_product_index_price'); $xbf = $x94->getTableName('catalog_product_super_link'); $xc0 = $x94->getTableName('catalog_product_link'); $xc1 = $x94->getTableName('catalog_product_bundle_selection'); ($x168(Mage::getVersion(), '1.6.0', '<')) ? $x90 = "options=''" : $x90 = "ISNULL(options)"; switch (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) { case 1 : $xc2 = "AND url.target_path NOT LIKE '%category%'"; $xc3 = 'MAX'; break; default : $xc2 = "AND url.target_path LIKE '%category%'"; $xc3 = 'GROUP_CONCAT'; break; break; } $xc4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xc4->addFieldToFilter("status", array('gteq' => 1)); else $xc4->addFieldToFilter("status", 1); $xc4->addAttributeToFilter('type_id', array("in" => "configurable")); $xc4->addAttributeToFilter('visibility', array("nin" => 1));
$xc4->addAttributeToSelect($x9c, $x9e); $xc4->getSelect()->joinLeft($xbf . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $xc4->getSelect()->joinLeft($xb9 . ' 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 ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url', 'url.value_id=url_key.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url', 'url.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } $xc4->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); $xc4->getSelect()->joinLeft($xbd . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xc5 = 0; $xc6 = clone $xc4; $xc6->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id'); ; $xc7 = $xc6->getFirstItem()->getTotal(); $xc8 = $x16a($xc7 / $this->_sqlSize); while ($xc5 < $xc8) { $xc9 = clone $xc4; $xc9->getSelect()->group(array('cpsl.parent_id')); $xc9->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc5)); if ($this->_sqlSize * ($xc5 + 1) > $xc7) $xca = $xc7; else $xca = $this->_sqlSize * $xc5; $xc5++; foreach ($xc9 as $xcb) { foreach ($x158(",", $xcb->getChildIds()) as $xcc) { $xcd[$xcc] = $xcb; $xce[$xcc]['categories_ids'] = $xcb->getCategories_ids(); $xce[$xcc]['parent_id'] = $xcb->getId(); $xce[$xcc]['parent_sku'] = $xcb->getSku(); $xce[$xcc]['parent_request_path'] = $xcb->getRequestPath(); } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable products from " . ($this->_sqlSize * ($xc5 - 1) + 1) . " to " . $xca, null, $this->getFilename('.log')); } $this->configurable = $xcd; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo $xc4->getSelect() . '<br><br>'; $x162($xce); } $xc4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xc4->addFieldToFilter("status", array('gteq' => 1)); else $xc4->addFieldToFilter("status", 1); $xc4->addAttributeToFilter('type_id', array("in" => "configurable")); $xc4->addAttributeToFilter('visibility', array("nin" => 1)); $xc4->getSelect()->joinLeft($xbf . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $xc4->getSelect()->joinLeft($xb9 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xcf = array(); $xc5 = 0; $xc6 = clone $xc4; $xc6->getSelect()->columns("COUNT(DISTINCT cpsl.parent_id) As total")->group('e.entity_type_id'); ; $xc7 = $xc6->getFirstItem()->getTotal(); $xc8 = $x16a($xc7 / $this->_sqlSize); while ($xc5 < $xc8) { $xc9 = clone $xc4; $xc9->getSelect()->group(array('cpsl.parent_id')); $xc9->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc5)); if ($this->_sqlSize * ($xc5 + 1) > $xc7) $xca = $xc7; else $xca = $this->_sqlSize * $xc5; $xc5++; foreach ($xc9 as $xd0) { $xcf[$xd0->getId()] = $xd0->getQty(); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable qty from " . ($this->_sqlSize * ($xc5 - 1) + 1) . " to " . $xca, null, $this->getFilename('.log')); } $this->configurableQty = $xcf; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo $xc4->getSelect() . '<br><br>'; $x162($xcf); } $xbf = $x94->getTableName("catalog_product_super_link"); $xd1 = $x94->getTableName("catalog_product_super_attribute"); $xd2 = $x94->getTableName("catalog_product_entity_int"); $xd3 = $x94->getTableName("catalog_product_super_attribute_pricing"); $xd4 = $x95->select(); $xd4->from(array("cpsl" => $xbf), array("parent_id", "product_id")); $xd4->joinleft(array("cpsa" => $xd1), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); $xd4->joinleft(array("cpei" => $xd2), "cpei.entity_id = cpsl.product_id AND cpei.attribute_id = cpsa.attribute_id", array("value" => "value")); $xd4->joinleft(array("cpsap" => $xd3), "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")); $xd4->order(array("cpsl.parent_id", "cpsl.product_id")); $xd4->group(array("cpsl.parent_id", "cpsl.product_id", "cpsa.attribute_id")); $xd5 = $x95->fetchAll($xd4); $xd6 = array(); foreach ($xd5 as $xd0) { $xd6[$xd0["parent_id"]][$xd0["product_id"]][$xd0['attribute_id']]['attribute_id'] = $xd0["attribute_id"]; $xd6[$xd0["parent_id"]][$xd0["product_id"]][$xd0['attribute_id']]['value'] = $xd0["value"]; $xd6[$xd0["parent_id"]][$xd0["product_id"]][$xd0['attribute_id']]['pricing_value'] = $xd0["pricing_value"]; $xd6[$xd0["parent_id"]][$xd0["product_id"]][$xd0['attribute_id']]['is_percent'] = $xd0["is_percent"]; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching configurable prices collected", null, $this->getFilename('.log')); $this->configurablePrices = $xd6; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES PRICES ----------------<br>"; echo $xd4 . '<br><br>'; $x162($xd6); } $xbf = $x94->getTableName("catalog_product_super_link"); $xd1 = $x94->getTableName("catalog_product_super_attribute"); $xd7 = $x94->getTableName("catalog_product_super_attribute_label"); $xd8 = $x95->select(); $xd8->from(array("cpsl" => $xbf), array("parent_id", "product_id")); $xd8->joinleft(array("cpsa" => $xd1), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); $xd8->joinleft(array("cpsal" => $xd7), "cpsal.product_super_attribute_id = cpsa.product_super_attribute_id", array("relationship" => "GROUP_CONCAT(DISTINCT cpsal.value SEPARATOR '>>>')")); $xd8->order(array("cpsl.parent_id", "cpsl.product_id")); $xd8->group(array('cpsl.parent_id', 'cpsl.product_id')); $xd9 = $x95->fetchAll($xd8); foreach ($xd9 as $xda) { $xdb[$xda['product_id']] = $xda['relationship']; $xdb[$xda['parent_id']] = $xda['relationship']; } $this->_productRelationShip = $xdb; if ($this->_debug) { echo "<br><br>------------ RELATIONSHIP ----------------<br>"; echo $xd8 . '<br><br>'; $x162($xdb); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relationship collected", null, $this->getFilename('.log')); $xc9 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xc9->addFieldToFilter("status", array('gteq' => 1)); else $xc9->addFieldToFilter("status", 1); $xc9->addAttributeToFilter('type_id', array("in" => "grouped")); $xc9->addAttributeToFilter('visibility', array("nin" => 1));
$xc9->addAttributeToSelect($x9c, $x9e); $xc9->getSelect()->joinLeft($xc0 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xc9->getSelect()->joinLeft($xb9 . ' 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 ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key_b', 'e.entity_id=url_key_b.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url_b', 'url_b.value_id=url_key_b.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url_b', 'url_b.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url_b.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } $xc9->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); $xc9->getSelect()->joinLeft($xbd . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xc9->getSelect()->group(array('cpl.product_id')); $xdc = array(); foreach ($xc9 as $xcb) { foreach ($x158(",", $xcb->getChildIds()) as $xcc) { $xdc[$xcc] = $xcb; $xdd[$xcc]['categories_ids'] = $xcb->getCategories_ids(); $xdd[$xcc]['parent_id'] = $xcb->getId(); $xdd[$xcc]['parent_sku'] = $xcb->getSku(); $xdd[$xcc]['parent_request_path'] = $xcb->getRequestPath(); } } $this->grouped = $xdc; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo $xc9->getSelect() . '<br><br>'; $x162($xdd); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->getFilename('.log')); $xc9 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xc9->addFieldToFilter("status", array('gteq' => 1)); else $xc9->addFieldToFilter("status", 1); $xc9->addAttributeToFilter('type_id', array("in" => "bundle")); $xc9->addAttributeToFilter('visibility', array("nin" => 1)); $xc9->addAttributeToSelect($x9c, $x9e); $xc9->getSelect()->joinLeft($xc1 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xc9->getSelect()->joinLeft($xb9 . ' 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 ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url', 'url.value_id=url_key.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url', 'url.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } $xc9->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); $xc9->getSelect()->joinLeft($xbd . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xc9->getSelect()->group(array('e.entity_id')); $xde = array(); foreach ($xc9 as $xcb) { foreach ($x158(",", $xcb->getChildIds()) as $xcc) { $xde[$xcc] = $xcb; $xdf[$xcc]['parent_id'] = $xcb->getId(); $xdf[$xcc]['parent_sku'] = $xcb->getSku(); $xdf[$xcc]['parent_request_path'] = $xcb->getRequestPath(); $xdf[$xcc]['categories_ids'] = $xcb->getCategories_ids(); } } $this->bundle = $xde; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo $xc9->getSelect() . '<br><br>'; $x162($xdf); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->getFilename('.log')); $xe0 = Mage::getModel('eav/entity') ->$x16b('catalog_product') ->getTypeId(); $xe1 = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xe0); foreach ($xe1 as $xe2) { $xe3[$xe2->getId()] = $xe2->getAttributeSetName(); } $xe4 = $x94->getTableName("catalog_product_entity_tier_price"); $xe5 = Mage::getModel('core/store')->load($x65)->getWebsiteId(); $xe6 = $x95->select(); $xe6->from(array("cpetp" => $xe4), array("entity_id", "all_groups", "customer_group_id", "value", "qty")); $xe6->order(array("cpetp.entity_id", "cpetp.customer_group_id", "cpetp.qty")); $xe6->where("cpetp.website_id=" . $xe5 . " OR cpetp.website_id=0"); $xb1 = $x95->fetchAll($xe6); $xe7 = array(); foreach ($xb1 as $xe8) { if ($xe8['all_groups'] == 1) $xe7[$xe8["entity_id"]][32000][] = array("qty" => $xe8['qty'], "value" => $xe8['value']); else $xe7[$xe8["entity_id"]][$xe8["customer_group_id"]][] = array("qty" => $xe8['qty'], "value" => $xe8['value']); } $this->_tierPrices = $xe7; if ($this->_debug) { echo "<br><br>------------ TIERS PRICES ----------------<br>"; echo $xe6 . '<br><br>'; $x162($xe7); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Teiers Price collected", null, $this->getFilename('.log')); $xe9 = $x94->getTableName("catalog_product_option"); $xea = $x94->getTableName("catalog_product_option_title"); $xeb = $x94->getTableName("catalog_product_option_type_value"); $xec = $x94->getTableName("catalog_product_option_type_title"); $xed = $x94->getTableName("catalog_product_option_type_price"); $xee = $x95->select(); $xee->from(array("cpo" => $xe9), array("product_id")); $xee->joinleft(array("cpot" => $xea), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id")); $xee->joinleft(array("cpotv" => $xeb), "cpotv.option_id = cpo.option_id", "sku"); $xee->joinleft(array("cpott" => $xec), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); $xee->joinleft(array("cpotp" => $xed), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); $x97 = $xee->order(array("product_id", "cpotv.sort_order ASC")); $xb1 = $x95->fetchAll($x97); $xef = array(); $xf0 = 0; foreach ($xb1 as $xf1) { $xef[$xf1["product_id"]][$xf1["option"]]["options"][] = array( "value" => $xf1["value"], "sku" => $xf1["sku"], "price" => $xf1["price"], "price_type" => $xf1["price_type"] ); $xf0++; } $this->customOptions = $xef; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo $xee . '<br><br>'; $x162($xef); } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->getFilename('.log')); $xf2 = new Wyomind_Datafeedmanager_Model_MyCustomOptions; $xf3 = new Wyomind_Datafeedmanager_Model_MyCustomAttributes; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom attributes/options scripts loaded", null, $this->getFilename('.log')); $xc4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $xc4->addFieldToFilter("status", array('gteq' => 1)); else $xc4->addFieldToFilter("status", 1); $xc4->addAttributeToFilter("type_id", array("in" => $x87)); $xc4->addAttributeToFilter("visibility", array("in" => $x88)); if ($x89[0] != '*') $xc4->addAttributeToFilter("attribute_set_id", array("in" => $x89)); $xc4->addAttributeToSelect($x9c, $x9e); $xf4 = 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)", ); $xf5 = ''; $x31 = 0; $xf6 = array(); foreach ($x8a as $x9f) { $x9f->value = $this->x17d($x9f->value, null);
if ($x9f->checked) { if ($x9f->condition == 'in' || $x9f->condition == 'nin') { if ($x9f->code == 'qty' || $x9f->code == 'is_in_stock') { $xf7 = $x158(',', $x9f->value); $x9f->value = "'" . $x14c($xf7, "','") . "'"; } else { $x9f->value = $x158(',', $x9f->value); } } switch ($x9f->code) { case 'qty' : if ($x31 > 0) $xf5.=' ' . $x9f->statement . ' '; $xf5.=" qty " . $x16c($xf4[$x9f->condition], $x9f->value); $x31++; break; case 'is_in_stock' : if ($x31 > 0) $xf5.=' ' . $x9f->statement . ' '; $xf5.=" (IF("; $xf5.="(use_config_manage_stock=1 AND $x6a=0)"; $xf5.=" OR "; $xf5.='(use_config_manage_stock=0 AND manage_stock=0)'; $xf5.=" OR "; $xf5.="(use_config_manage_stock=1 AND $x6a=1 AND is_in_stock=1 )"; $xf5.=" OR "; $xf5.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )"; $xf5.=",'1','0')" . $x16c($xf4[$x9f->condition], $x9f->value) . ")"; $x31++; break; default : if ($x9f->statement == "AND") { if ($x156($xf6)) $xc4->addFieldToFilter($xf6); $xf6 = array(); } if ($x9f->condition == "in") { $xf8 = true; $xf9 = array(); foreach ($x9f->value as $x59) { if (!$x157($x59)) $xf8 = true; } if ($xf8) { foreach ($x9f->value as $x59) { $xf9[] = array(array("finset" => $x59)); } $xf6[] = array("attribute" => $x9f->code, $xf9); } else $xf6[] = array("attribute" => $x9f->code, $x9f->condition => $x9f->value); } else $xf6[] = array("attribute" => $x9f->code, $x9f->condition => $x9f->value); break; } } }; if ($x156($xf6)) $xc4->addFieldToFilter($xf6); $xc4->getSelect()->joinLeft($xb9 . ' 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 ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url', 'url.value_id=url_key.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url', 'url.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xc4->getSelect()->joinLeft($xbf . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); $xfa = null; if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xfa = "OR (categories_index.category_id=categories_parent.category_id AND categories_index.product_id=categories_parent.product_id )"; if ($x84[0] != '*') { $x59 = 0; $xfb = null; foreach ($x84 as $x86) { if ($x59 > 0) $xfb.=','; $xfb.=$x16d($x158('/', $x86)); $x59++; } ($x7c) ? $xfc = "IN" : $xfc = "NOT IN"; if ($x168(Mage::getVersion(), '1.12.0', '<=')) { $xfb = " AND categories_index.category_id " . $xfc . " (" . $xfb . ")"; $xc4->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id', array()); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xc4->getSelect()->joinLeft($x99 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $xc4->getSelect()->joinInner($xbd . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xfa . ') AND categories_index.store_id=' . $x65 . ' ' . $xfb, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { $xfb = " AND categories.category_id " . $xfc . " (" . $xfb . ")"; $xc4->getSelect()->joinInner($x99 . ' AS categories', 'categories.product_id=e.entity_id ' . $xfb, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { $xc4->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); if (Mage::getStoreConfig("datafeedmanager/system/use_parent_categories")) $xc4->getSelect()->joinLeft($x99 . ' AS categories_parent', 'categories_parent.product_id=cpsl.parent_id'); $xc4->getSelect()->joinLeft($xbd . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ' . $xfa . ') AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($x168(Mage::getVersion(), '1.4.0', '>=')) $xc4->getSelect()->joinLeft($xbe . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . $xe5, array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xf5)) $xc4->getSelect()->where($xf5); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request:
" . $xc4->getSelect(), null, $this->getFilename('.log')); if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>"; } $xc5 = 0; $xc6 = clone $xc4; $xc6->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total")->group('e.entity_type_id'); $this->_counter = $xc6->getFirstItem()->getTotal(); $xc8 = $x16a($this->_counter / $this->_sqlSize); $x8b = ''; $xfd = 1; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in $xc8 queries )", null, $this->getFilename('.log')); $x5f = $this->x17d($x5f, null, $x74, true); if ($x74 == 1) $x5f = $this->x181($x5f); if ($this->_display) { if ($x74 == 1) { $x8c = $this->x180($x5f, $x79, $x7a) . ""; } else { $x8c = $this->x17d($x75) . '<br>'; $x8c.= "<table style='border:2px solid grey; font-family:arial; font-size:12px' cellspacing cellpadding width='100%'>"; if ($x77) { $x8c.=$this->x182($x5f, true); } } } else { if ($x74 == 1) { $x3b->streamWrite($this->x180($x5f, $x79, $x7a) . ""); } else { if ($x75 != '') $x3b->streamWrite($this->x181($this->x17d($x75) . "
")); if ($x77) { $xfe = $this->x183($x5f, $x5a, $x5b, $x5c); $xfe = $this->x181($xfe); $x3b->streamWrite($xfe); } } } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Header template parsed and added", null, $this->getFilename('.log')); $xc4->getSelect()->group(array('e.entity_id'))->order('e.entity_id'); while ($xc5 < $xc8) { $xc9 = clone $xc4; if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>"; print($xc9->getSelect()); } $xc9->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc5)); $xc5++; if ($this->_sqlSize * $xc5 > $this->_counter) $xca = $this->_counter; else $xca = $this->_sqlSize * $xc5; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->_sqlSize * ($xc5 - 1) + 1) . " to " . $xca, null, $this->getFilename('.log')); $xf0 = 1; foreach ($xc9 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>"; echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x70 . "<br>"; foreach ($x158(',', $product->getCategoriesIds()) as $x39 => $x92) { echo $x92 . "=>" . $x62[$x92]["path"] . "<br>"; } } if (!$x16e('safe_mode')) { $x16f(60); } $x4d = $x72; foreach ($x8e as $x39 => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $xb1 = 1; $xff = array(); foreach ($exp['options'] as $x39 => $option) { if (isset($xef[$product->getId()][$option])) { $xb1 = $xb1 * $x156($xef[$product->getId()][$option]["options"]); $xff[$x39] = 0; } } $x37 = array(); for ($xab = 1;
$xab <= $xb1; $xab++) { $x100 = $x4d; foreach ($exp['options'] as $x39 => $option) { if (isset($xef[$product->getId()][$option])) { $x100 = $x14e("{" . $option . "_label}", $xef[$product->getId()][$option]["options"][$xff[$x39]]['value'], $x100); $x100 = $x14e("{" . $option . "_sku}", $xef[$product->getId()][$option]["options"][$xff[$x39]]['sku'], $x100); $x100 = $x14e("{" . $option . "_price}", $xef[$product->getId()][$option]["options"][$xff[$x39]]['price'], $x100); $x100 = $x14e("{" . $option . "_type}", $xef[$product->getId()][$option]["options"][$xff[$x39]]['price_type'], $x100); if ($x39 > 0 || $x156($xef[$product->getId()]) == 1 || $x156($exp['options']) < 2) $xff[$x39] ++; if ($xff[$x39] >= $x156($xef[$product->getId()][$option]["options"])) { $xff[$x39] = 0; $xff[$x39 - 1] ++; } } } $x37[] = $x100; } if ($x156($x37) > 0) { if ($x74 == 1) $x4d = $x14c($x37); else $x4d = "[" . $x14c(',', $x37) . "]"; } $this->skipOptions($x156($exp['options'])); break; case '{use_options}': foreach ($exp['options'] as $x39 => $option) { if (isset($xef[$product->getId()][$option])) { $x101 = array(); $x102 = array(); $x103 = array(); foreach ($xef[$product->getId()][$option]["options"] as $x51) { $x101[] = $x51['value']; $x102[] = $x51['sku']; $x103[] = $x51['price']; } $x4d = $x14e("{" . $option . "_label}", $x14c(',', $x101), $x4d); $x4d = $x14e("{" . $option . "_sku}", $x14c(',', $x102), $x4d); $x4d = $x14e("{" . $option . "_price}", $x14c(',', $x103), $x4d); } } $this->skipOptions($x156($exp['options'])); break; case '{id}' : $x104 = $this->checkReference($exp['reference'], $product); $value = $x104->getId(); break; case '{inc}' : $value = $xfd; break; case '{status}': $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x78 = "Enabled" : $x78 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x105 = "Disabled" : $x105 = $exp['options'][1]; if ($x104->getStatus() == 2) $value = $x105; else $value = $x78; $this->skipOptions(2); break; case '{attribute_set}': $x104 = $this->checkReference($exp['reference'], $product); $value = $xe3[$x104->getAttributeSetId()]; break; case "{relationship}": $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x106 = ', ' : $x106 = $exp['options'][0]; if (isset($xdb[$x104->getId()])) { $value = $x14e(">>>", $x106, $xdb[$x104->getId()]); } $this->skipOptions(1); break; case '{final_price}' : $x104 = $this->checkReference($exp['reference'], $product); $x43 = $x104->getFinalePrice(); (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][0])) ? $x44 = $x69 : $x44 = $exp['options'][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $x104 = $this->checkReference($exp['reference'], $product); $x43 = $x104->getMinPrice(); (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][0])) ? $x44 = $x69 : $x44 = $exp['options'][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $x104 = $this->checkReference($exp['reference'], $product); $x43 = $x104->getMaxPrice(); (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][0])) ? $x44 = $x69 : $x44 = $exp['options'][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $x104 = $this->checkReference($exp['reference'], $product); if ($x104->type_id == 'bundle') $x43 = $x104->price; else { $x43 = $x104->getPrice(); } if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][0])) ? $x44 = $x69 : $x44 = $exp['options'][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', '');
$this->skipOptions(2); break; case '{price}' : $x104 = $this->checkReference($exp['reference'], $product); if ($x104->getSpecialFromDate() && !$x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x104->type_id == "bundle") { if (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0) { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->price; } } else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $x43 = $x104->getSpecialPrice() : $x43 = $x104->getPrice(); } } else { if ($x104->type_id == "bundle") $x43 = $x104->price; else { $x43 = $x104->getPrice(); } } } elseif ($x104->getSpecialFromDate() && $x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x104->getSpecialToDate()) { if ($x104->type_id == "bundle") { if (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0) { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->price; } } else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $x43 = $x104->getSpecialPrice() : $x43 = $x104->getPrice(); } } else { if ($x104->type_id == "bundle") $x43 = $x104->price; else { $x43 = $x104->getPrice(); } } } else { if ($x104->type_id == "bundle") { if (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0) { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->price; } } else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $x43 = $x104->getSpecialPrice() : $x43 = $x104->getPrice(); } } if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp["options"][0])) ? $x44 = $x69 : $x44 = $exp["options"][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, ".", ""); $this->skipOptions(2); break; case "{is_special_price}" : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp["options"][0])) ? $x109 = 1 : $x109 = $exp["options"][0]; (!isset($exp["options"][1])) ? $x10a = 0 : $x10a = $exp["options"][1]; if ($x104->getSpecialFromDate() && !$x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x104->type_id == "bundle") (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0 ) ? $value = $x109 : $value = $x10a; else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $value = $x109 : $value = $x10a; } } else { if ($x104->type_id == "bundle") $value = $x10a; else { $value = $x10a; } } } elseif ($x104->getSpecialFromDate() && $x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x104->getSpecialToDate()) { if ($x104->type_id == "bundle") (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0 ) ? $value = $x109 : $value = $x10a; else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $value = $x109 : $value = $x10a; } } else { if ($x104->type_id == "bundle") $value = $x10a; else { $value = $x10a; } } } else { if ($x104->type_id == "bundle") (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0 ) ? $value = $x109 : $value = $x10a; else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $value = $x109 : $value = $x10a; } } $this->skipOptions(2); break; case "{special_price}" : $x104 = $this->checkReference($exp['reference'], $product); $x43 = null; if ($x104->getSpecialFromDate() && !$x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x104->type_id == 'bundle') { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->getSpecial_price(); } } } elseif ($x104->getSpecialFromDate() && $x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x104->getSpecialToDate()) { if ($x104->type_id == 'bundle') { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->getSpecial_price(); } } } else { if ($x104->type_id == 'bundle') { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; if ($x43 > 0) { if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][0])) ? $x44 = $x69 : $x44 = $exp['options'][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $x104 = $this->checkReference($exp['reference'], $product); $x65 = $this->getStoreId(); $x10b = Mage::getResourceModel('catalogrule/rule'); $x10c = Mage::app()->getLocale()->storeTimeStamp($x65); $x10d = Mage::app()->getStore($x65); $xe5 = $x10d->getWebsiteId(); $x10e = Mage::getSingleton('customer/session')->getCustomerGroupId(); $x10f = $x10b->getRulePrice($x10c, $xe5, $x10e, $x104->getId()); if ($x104->getSpecialFromDate() && !$x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($x104->type_id == "bundle") { if (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0) { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->price; } } else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $x43 = $x104->getSpecialPrice() : $x43 = $x104->getPrice(); } } else { if ($x104->type_id == "bundle") $x43 = $x104->price; else { $x43 = $x104->getPrice(); } } } elseif ($x104->getSpecialFromDate() && $x104->getSpecialToDate()) { if ($x104->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $x104->getSpecialToDate()) { if ($x104->type_id == "bundle") { if (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0) { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->price; } } else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $x43 = $x104->getSpecialPrice() : $x43 = $x104->getPrice(); } } else { if ($x104->type_id == "bundle") $x43 = $x104->price; else { $x43 = $x104->getPrice(); } } } else { if ($x104->type_id == "bundle") { if (($x104->price_type || (!$x104->price_type && $x104->special_price < $x104->price)) && $x104->special_price > 0) { if ($x104->price_type) $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); else { $x43 = $x104->special_price; } } else { $x43 = $x104->price; } } else { ($x104->getSpecial_price() && $x104->getSpecial_price() < $x104->getPrice()) ? $x43 = $x104->getSpecialPrice() : $x43 = $x104->getPrice(); } } if ($x10f !== FALSE) { if ($x10f < $x43) $value = $x10f; else $value = $x43; } else $value = $x43; if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43;
} else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; $value = $this->x17f($value, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp["options"][0])) ? $x44 = $x69 : $x44 = $exp["options"][0]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, ".", ""); $this->skipOptions(2); break; case '{group_price}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; $x104->setCustomerGroupId($x110); $x111 = $x104->getGroupPrice(); if ($x156($x111) == 1) { $x43 = $x111; } else { $x43 = $x111[0]['price']; } if ($x43 > 0) { if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } (!isset($exp['options'][2])) ? $x48 = false : $x48 = $exp['options'][2]; $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][1])) ? $x44 = $x69 : $x44 = $exp['options'][1]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 32000 : $x110 = $exp['options'][0]; if ($x110 == "*") $x110 = 32000; (!isset($exp['options'][1])) ? $x112 = 0 : $x112 = $exp['options'][1]; $xe7 = $this->_tierPrices[$x104->getId()]; if ($x112 < 0) { $x112 = $x170($x112) - 1; $xe7[$x110] = $x171($xe7[$x110]); } $x43 = $xe7[$x110][$x112]['value']; if ($x43 > 0) { if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } (!isset($exp['options'][3])) ? $x48 = false : $x48 = $exp['options'][3]; $value = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][2])) ? $x44 = $x69 : $x44 = $exp['options'][2]; $value = $this->x17e($value, $x44); $value = $x155($value, 2, '.', ''); } $this->skipOptions(3); break; case '{tier_price_qty}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x110 = 0 : $x110 = $exp['options'][0]; if ($x110 == "*") $x110 = 32000; $xe7 = $this->_tierPrices[$x104->getId()]; (!isset($exp['options'][1])) ? $x112 = 0 : $x112 = $exp['options'][1]; if ($x112 < 0) { $x112 = $x170($x112) - 1; $xe7[$x110] = $x171($xe7[$x110]); } $x113 = $xe7[$x110][$x112]['qty']; if ($x113 > 0) $value = $x113; $this->skipOptions(2); break; case "{G:SALE_PRICE}" : $x104 = $this->checkReference($exp['reference'], $product); $x114 = Mage::getSingleton('core/date')->getGmtOffset("hours"); if ($x114 > 0) { $x115 = "+"; $x116 = $x172($x170($x173($x114)), 2, 0, STR_PAD_LEFT) . ':' . $x172(($x170($x114) - $x173($x170($x114))) * 60, 2, 0, STR_PAD_LEFT); } else { $x115 = ""; $x116 = '-' . $x172($x170($x173($x114)), 2, 0, STR_PAD_LEFT) . ':' . $x172(($x170($x114) - $x173($x170($x114))) * 60, 2, 0, STR_PAD_LEFT); } $x117 = $x159($x14e(' ', 'T', $x104->getSpecialFromDate()), 0, -3); $x118 = $x159($x14e(' ', 'T', $x14e("00:00:00", "23:59:59", $x104->getSpecialToDate())), 0, -3); if ($x104->type_id == 'bundle' && $x104->special_price) { if ($x104->price_type) { $x43 = $x155($x104->price * $x104->special_price / 100, 2, ".", ""); } else { $x43 = $x104->special_price; } } else { $x43 = $x104->getSpecial_price(); } (!isset($exp['options'][1])) ? $x48 = false : $x48 = $exp['options'][1]; if ($x43 > 0) { if ($x104->getTypeId() == "configurable") { if (isset($this->configurablePrices[$x104->getId()][$product->getId()])) { $x107 = 0; foreach ($this->configurablePrices[$x104->getId()][$product->getId()] as $x108) { if ($x108["is_percent"]) { $x107+=( $x108["pricing_value"] / 100) * $x43; } else $x107+=$x108["pricing_value"]; }; $x43+=$x107; } } $x43 = $this->x17f($x43, $x6f, $x104->getTaxClassId(), $x48); (!isset($exp['options'][0])) ? $x44 = $x69 : $x44 = $exp['options'][0]; $x43 = $this->x17e($x43, $x44); $x43 = $x155($x43, 2, '.', ''); ; } if ($x43 > 0) { $value = "<g:sale_price><![CDATA[" . $x43 . " " . $x44 . "]]></g:sale_price>
"; } if ($x43 > 0 && $x118) { $value.="<g:sale_price_effective_date><![CDATA[" . $x117 . $x115 . $x116 . "/" . $x118 . $x115 . $x116 . "]]></g:sale_price_effective_date>
"; } $this->skipOptions(2); break; case "{image}" : $x104 = $this->checkReference($exp['reference'], $product); $x119 = $x104->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($x104->getImage() && $x104->getImage() != 'no_selection') { $x11a = 'catalog/product/' . $x104->getImage(); $value = $x6e . $x14e(array('//', 'https'), array('/', 'http'), $x11a); } else { $value = $x6e . '/catalog/product/placeholder/' . $x68; } } elseif (isset($xb8[$x104->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($xb8[$x104->getId()]['src'][$exp['options'][0] - 1] != $x119) { $x11a = 'catalog/product/' . $xb8[$x104->getId()]['src'][$exp['options'][0] - 1]; $value = $x6e . $x14e(array('//', 'https'), array('/', 'http'), $x11a); } } $this->skipOptions(1); break; case "{G:IMAGE_LINK}" : $x104 = $this->checkReference($exp['reference'], $product); $x119 = $x104->getImage(); $x11b = array($x104->getSmall_image(), $x104->getThumbnail()); $x11c = ''; $xff = 0; if ($x104->getImage() && $x104->getImage() != 'no_selection') { $x11a = 'catalog/product/' . $x104->getImage();
$value = $x6e . $x14e(array('//', 'https'), array('/', 'http'), $x11a); $x11c.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xff++; } $x11d = 0; while (isset($xb8[$x104->getId()]['src'][$x11d]) && $xff < 10) { if ($xb8[$x104->getId()]['src'][$x11d] != $x119) { if ($x169($xb8[$x104->getId()]['src'][$x11d], $x11b) || $xb8[$x104->getId()]['disabled'][$x11d] != 1) { $x11a = 'catalog/product/' . $xb8[$x104->getId()]['src'][$x11d]; $value = $x6e . $x14e(array('//', 'https'), array('/', 'http'), $x11a); $x11c.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xff++; } } $x11d++; } $value = $x11c; break; case "{url}" : $x104 = $this->checkReference($exp['reference'], $product); if ($x104->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $x11e = $x158(",", $x104->getRequest_path()); $x174($x11e, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x6d . $x16d($x11e); } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $x11e = $x158(",", $x104->getRequest_path()); $x174($x11e, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x6d . $x175($x11e); } else $value = $x6d . $x104->getRequest_path(); } else { $value = $x104->getProductUrl(); } $value = $x14e('https', 'http', $value); break; case "{host}" : $value = $x6d; break; case "{uri}" : $x104 = $this->checkReference($exp['reference'], $product); if ($x104->getRequest_path()) { if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 2) { $x11e = $x158(",", $x104->getRequest_path()); $x174($x11e, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x16d($x11e); } elseif (Mage::getStoreConfig("datafeedmanager/system/urlrewrite") == 3) { $x11e = $x158(",", $x104->getRequest_path()); $x174($x11e, array('Wyomind_Datafeedmanager_Model_Configurations', 'cmp')); $value = $x175($x11e); } else $value = $x104->getRequest_path(); } else { $value = $x14e($x6d, '', $x104->getProductUrl()); } $value = $x14e('https', 'http', $value); break; case '{is_in_stock}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x11f = 'in stock' : $x11f = $exp['options'][0]; (!isset($exp['options'][1])) ? $x120 = "out of stock" : $x120 = $exp['options'][1]; (!isset($exp['options'][2])) ? $x121 = "available for order" : $x121 = $exp['options'][2]; if (($x104->getManageStock() && !$x104->getUseConfigManageStock() && !$x6a) || ($x104->getUseConfigManageStock() && $x6a ) || ($x104->getManageStock() && !$x104->getUseConfigManageStock())) { if ($x104->getIsInStock() > 0) { if ($product->type_id == "configurable") $x113 = $xcf[$product->getId()]; else $x113 = $x104->getQty(); if ($x113 > 0) { $value = $x11f; } else { if ($x104->getBackorders() || ($x104->getUseConfigBackorders() && $x6b)) { $value = $x121; } else { $value = $x120; } } } else $value = $x120; } else { $value = $x11f; } $this->skipOptions(3); break; case '{stock_status}' : $x104 = $this->checkReference($exp['reference'], $product); ($x104->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{min_qty}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x122 = 0 : $x122 = $exp['options'][0]; $value = $x155($x104->getMinQty(), $x122, '.', ''); $this->skipOptions(1); break; case '{min_sale_qty}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x122 = 0 : $x122 = $exp['options'][0]; $value = $x155($x104->getMinSaleQty(), $x122, '.', ''); $this->skipOptions(1); break; case '{qty}' : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $x122 = 0 : $x122 = $exp['options'][0]; if ($product->type_id == "configurable") { $value = $xcf[$product->getId()]; $value = $x155($value, $x122, '.', ''); } else if ($exp['reference'] == "configurable") { $value = $x155($xcf[$x104->getId()], $x122, '.', ''); } else { $value = $x155($x104->getQty(), $x122, '.', ''); } $this->skipOptions(1); break; case "{categories_v1}" : $x104 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x123 = INF : $x123 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x124 = 1 : $x124 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x125 = INF : $x125 = $exp['options'][2]; $x126 = 0; $value = ''; $x127 = ''; foreach ($x158(',', $x104->getCategoriesIds()) as $x39 => $x92) { ($x7c) ? $x128 = $x169($x62[$x92]["path"], $x84) : $x128 = !$x169($x62[$x92]["path"], $x84); if (isset($x62[$x92]) && $x126 < $x123 && ($x128 || $x84[0] == "*")) { $x129 = 0; $x12a = $x158('/', $x62[$x92]["path"]); if ($x169($x70, $x12a)) { $x12b = ""; if ($x126 > 0) $x127 = ","; foreach ($x12a as $x12c) { if (isset($x62[$x12c])) { if ($x62[$x12c]['level'] > $x124 && $x129 < $x125) { if ($x129 > 0) $x12b.='>'; $x12b.=($x62[$x12c]['name']); $x129++; } } } $x12d = ""; if (!empty($x12b)) { $value.=$x127 . $x12b . $x12d; $x126++; } } } }; $this->skipOptions(3); break; case "{categories}" : $x12e = null; $x123 = INF; $x124 = 1; $x12f = INF; $x106 = ', '; $x130 = " > "; if ($x156($exp['options']) == 1) { (!isset($exp['options'][0])) ? $x12e = "last" : $x12e = $exp['options'][0]; $x123 = 1; } elseif ($x156($exp['options']) == 2) { (!isset($exp['options'][0])) ? $x106 = ', ' : $x106 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x130 = " > " : $x130 = $exp['options'][1];
} elseif ($x156($exp['options']) > 2) { (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $x123 = INF : $x123 = $exp['options'][0]; (!isset($exp['options'][1])) ? $x124 = 1 : $x124 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $x12f = INF : $x12f = $exp['options'][2]; (!isset($exp['options'][3])) ? $x106 = ', ' : $x106 = $exp['options'][3]; (!isset($exp['options'][4]))
Showing the first 100,000 of 124,117 characters. Download the full output.
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 0404fcf2ba961352 |
|---|---|
| Eval Count | 0 |
| Decode Time | 818 ms |
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 $x30 = 25; public function cmp($x31, $x32) { $x14b="\x73\164r\x6c\145\156"; $x14c="\151\155p\154\x6f\x64\x65"; $x14d="\160\162\x65\147\137\163plit"; $x14e="\163t\162\x5f\162ep\154a\143\145"; $x14f="\x75tf\70_\x65\156\x63\x6fd\145"; $x150="p\x72\145\x67_\x6da\164ch_\141\154l"; $x151="\x70\x72e\147\x5f\155\x61\x74\x63\x68"; $x152="r\164r\x69m"; $x153="\151\163\137\156\x75\154\x6c"; $x154="\x73\164\162\x74\x6f\164\151\155\145"; $x155="nu\155\142er\137fo\162m\141\x74"; $x156="c\x6f\165\x6e\164"; $x157="\x69\x73\x5f\x6e\165\155e\162i\x63"; $x158="\x65\x78plo\x64\x65"; $x159="su\142\163t\x72"; $x15a="\x74\x72\x69\x6d"; $x15b="\x68t\155len\x74\x69\x74\151\x65s"; $x15c="\x68\164m\154\x5fe\156\x74\x69\x74y_d\145c\x6f\144\x65"; $x15d="\x70re\147_\162\x65pl\141\x63e"; $x15e="\x6a\163\x6f\x6e\x5f\x64\x65c\x6f\x64e"; $x15f="\x69s_\141\162r\x61\171"; $x160="s\x74\162\163tr"; $x161="s\164r\151s\164r"; $x162="\160\162int\x5f\162"; $x163="\x69\x73\137\x73\x74\x72\151ng"; $x164="t\151me"; $x165="u\x63\167o\x72\x64\163"; $x166="\141r\x72\x61\171\137\x70\x75\163\x68"; $x167="\163\164\162p\157s"; $x168="\x76\x65\162si\x6fn_c\x6f\x6dp\x61\162\145"; $x169="i\x6e\137\x61rr\x61y"; $x16a="\x63\145\151l"; $x16b="\x73\145\x74T\171\x70\145"; $x16c="\163\x70\162\x69n\164\x66"; $x16d="\x61\x72\162\141\171\137po\160"; $x16e="\151ni\x5f\x67\145t"; $x16f="s\145\x74\x5f\164i\155\x65\x5f\154i\155\151\x74"; $x170="a\142\163"; $x171="\x61r\x72\141\171\x5f\x72\x65\x76e\162\163\x65"; $x172="\x73\164r\137\160\141\x64"; $x173="fl\x6f\157\162"; $x174="us\157\162\164"; $x175="\x61r\x72\x61\171_\x73\150\x69\146\164"; $x176="\141rra\x79\137\x76\141\x6c\x75\145s"; $x177="\163\x74\x72\x69\x70_t\141g\163"; $x178="h\x74ml\x73\x70ec\151\x61\154\x63h\141r\x73"; $x179="\x73\x74\162r\x70os"; $x17a="\x69\x73\x5f\x62o\157l"; $x17b="\x6d\x62_st\x72\x74ol\157\x77\145r"; $x17c="\x6db_\x73\x74\x72\164o\x75\160p\x65\162"; if ($x14b($x31) == $x14b($x32)) { return 0; } return ($x14b($x31) < $x14b($x32)) ? 1 : -1; } public function cmpArray($x31, $x32) { $x14b="s\x74\x72\154\x65\156"; $x14c="\151\x6d\x70\154\x6f\144\145"; $x14d="\x70\x72\145\147_\163\160l\151\164"; $x14e="s\x74\162_\162\x65\x70l\x61\143\x65"; $x14f="\165t\146\70\x5fen\143\x6f\144\x65"; $x150="\x70\162\145\147\137m\x61\x74\143\150\x5fall"; $x151="\x70\x72\x65\x67\x5f\155\x61\164\143h"; $x152="\162\x74r\x69\x6d"; $x153="\x69\x73\x5f\156ull"; $x154="\163t\x72\x74\157\164i\155\145"; $x155="n\165\155\x62e\x72\x5f\x66\157\x72m\141t"; $x156="\x63o\x75\x6e\x74"; $x157="is\x5fn\165\x6d\x65r\151\143"; $x158="\145\x78p\154\157\x64\145"; $x159="\x73\165b\163tr"; $x15a="\x74\162i\x6d"; $x15b="\150\x74\155\154e\156\164\151ti\145\163"; $x15c="\150\x74\x6d\154_ent\x69\x74\x79\x5f\144\x65\x63ode"; $x15d="\x70\x72\x65\147_re\160\154a\x63\x65"; $x15e="\152\163\x6f\156_d\x65co\144e"; $x15f="\x69\163\137\141\162\x72\x61\171"; $x160="\x73\164\162s\x74\162"; $x161="\163\164\x72\151\163\164r"; $x162="\x70r\151n\164\137r"; $x163="\151\x73\137s\164\x72\x69\x6e\x67"; $x164="\x74\151\155e"; $x165="\x75\x63wo\162\144s"; $x166="\x61\x72\162a\x79\x5f\160\x75s\x68"; $x167="s\x74\x72\160os"; $x168="\166\x65rs\x69\157\x6e\x5fc\x6fm\160a\x72\145"; $x169="i\x6e_a\162\x72\x61\171"; $x16a="c\x65\151\x6c"; $x16b="\x73et\x54\171pe"; $x16c="\x73\x70\162\x69\x6e\x74\146"; $x16d="\x61r\x72\141\171\x5fp\x6fp"; $x16e="\x69\156i_\x67\x65\x74"; $x16f="\x73\145\x74\x5f\164\151\x6d\x65_\x6ci\x6d\151t"; $x170="\141bs";
$x171="a\x72\x72a\x79\137\162\x65v\145rs\145"; $x172="\x73\x74r\x5f\x70\x61d"; $x173="\x66\154o\157\x72"; $x174="u\x73\x6f\x72t"; $x175="a\x72\x72\x61y\x5f\163\x68\x69\x66t"; $x176="\x61\x72\162\x61\x79\x5f\166\x61\154\x75\x65\x73"; $x177="\x73\164\162i\160_\x74\141g\x73"; $x178="html\x73\x70\x65\x63i\141\x6c\x63\150\x61\162\x73"; $x179="\163\x74\162\162\160\157\x73"; $x17a="i\x73_b\157\157\154"; $x17b="\155\x62\x5f\163t\x72\164\x6f\154\157\167er"; $x17c="\x6d\x62\137\x73\164rto\x75\x70\x70\x65\162"; $x14b="\x73\164r\x6c\145\156"; $x14c="\151\155p\154\x6f\x64\x65"; $x14d="\160\162\x65\147\137\163plit"; $x14e="\163t\162\x5f\162ep\154a\143\145"; $x14f="\x75tf\70_\x65\156\x63\x6fd\145"; $x150="p\x72\145\x67_\x6da\164ch_\141\154l"; $x151="\x70\x72e\147\x5f\155\x61\x74\x63\x68"; $x152="r\164r\x69m"; $x153="\151\163\137\156\x75\154\x6c"; $x154="\x73\164\162\x74\x6f\164\151\155\145"; $x155="nu\155\142er\137fo\162m\141\x74"; $x156="c\x6f\165\x6e\164"; $x157="\x69\x73\x5f\x6e\165\155e\162i\x63"; $x158="\x65\x78plo\x64\x65"; $x159="su\142\163t\x72"; $x15a="\x74\x72\x69\x6d"; $x15b="\x68t\155len\x74\x69\x74\151\x65s"; $x15c="\x68\164m\154\x5fe\156\x74\x69\x74y_d\145c\x6f\144\x65"; $x15d="\x70re\147_\162\x65pl\141\x63e"; $x15e="\x6a\163\x6f\x6e\x5f\x64\x65c\x6f\x64e"; $x15f="\x69s_\141\162r\x61\171"; $x160="s\x74\162\163tr"; $x161="s\164r\151s\164r"; $x162="\160\162int\x5f\162"; $x163="\x69\x73\137\x73\x74\x72\151ng"; $x164="t\151me"; $x165="u\x63\167o\x72\x64\163"; $x166="\141r\x72\x61\171\137\x70\x75\163\x68"; $x167="\163\164\162p\157s"; $x168="\x76\x65\162si\x6fn_c\x6f\x6dp\x61\162\145"; $x169="i\x6e\137\x61rr\x61y"; $x16a="\x63\145\151l"; $x16b="\x73\145\x74T\171\x70\145"; $x16c="\163\x70\162\x69n\164\x66"; $x16d="\x61\x72\162\141\171\137po\160"; $x16e="\151ni\x5f\x67\145t"; $x16f="s\145\x74\x5f\164i\155\x65\x5f\154i\155\151\x74"; $x170="a\142\163"; $x171="\x61r\x72\141\171\x5f\x72\x65\x76e\162\163\x65"; $x172="\x73\164r\137\160\141\x64"; $x173="fl\x6f\157\162"; $x174="us\157\162\164"; $x175="\x61r\x72\x61\171_\x73\150\x69\146\164"; $x176="\141rra\x79\137\x76\141\x6c\x75\145s"; $x177="\163\x74\x72\x69\x70_t\141g\163"; $x178="h\x74ml\x73\x70ec\151\x61\154\x63h\141r\x73"; $x179="\x73\x74\162r\x70os"; $x17a="\x69\x73\x5f\x62o\157l"; $x17b="\x6d\x62_st\x72\x74ol\157\x77\145r"; $x17c="\x6db_\x73\x74\x72\164o\x75\160p\x65\162"; if ($x14b($x14c('', $x31)) == $x14b($x14c('', $x32))) { return 0; } return ($x14b($x14c('', $x31)) < $x14b($x14c('', $x32))) ? -1 : 1; } public function x17d($myPattern, $product, $x33 = true, $x34 = false) { $x14b="\x73tr\154\x65\156"; $x14c="\151\x6dp\154\157\144\145"; $x14d="pr\x65\147_\x73\160\x6c\151\x74"; $x14e="s\x74r\x5f\x72\x65\x70\154\x61c\145"; $x14f="utf\70\137\x65nc\157\x64\145"; $x150="\160\x72\145g\x5fm\141\x74\x63\150\x5f\x61\154\154"; $x151="\160r\145\x67\x5f\155\141t\x63\150"; $x152="\162\164\x72\x69m"; $x153="\151s\x5f\156\x75\x6c\154"; $x154="\x73tr\x74\157\x74\x69\x6d\145"; $x155="\156u\x6db\x65\162\x5f\x66o\162\155\x61t"; $x156="\143\x6f\x75\156\164"; $x157="i\163_\156u\155\x65r\x69\143"; $x158="\x65\x78\x70l\x6f\x64\145"; $x159="\x73\165\142\x73\164\x72"; $x15a="\164\162\x69\x6d"; $x15b="h\x74\155\x6c\x65\x6et\151t\151es"; $x15c="\150\x74ml\x5f\145n\164i\x74y\137\144\145c\x6f\x64e"; $x15d="\x70r\x65g_\x72\x65pl\x61\x63\145"; $x15e="j\163\157\156\137d\x65\x63\x6fd\145"; $x15f="\x69\163_\141\x72r\141\x79"; $x160="\x73\x74\x72s\x74\162"; $x161="\x73t\x72\x69\x73\164r"; $x162="p\x72\151\x6et\137\x72"; $x163="\x69\163_\x73t\162i\x6e\147"; $x164="\x74\x69\155\145"; $x165="\165\143w\x6f\162\144\163"; $x166="a\162r\141\171\x5fp\165\x73\150"; $x167="s\x74r\160\x6fs"; $x168="\x76er\163\x69\x6fn_c\157\155p\x61\x72\x65"; $x169="in\x5f\141\x72\162\141\171"; $x16a="\143e\x69l"; $x16b="\163\145t\x54\171p\x65"; $x16c="\x73\x70\x72in\x74\146"; $x16d="\x61r\162\x61\x79\137p\157p"; $x16e="i\x6e\x69\137\147e\164";
$x16f="\x73\145\x74\x5fti\x6de_\154\x69m\x69\x74"; $x170="\x61\142\x73"; $x171="ar\162\x61y\x5f\x72e\x76\x65\x72\163\x65"; $x172="str_\x70\141\144"; $x173="\146\154\157o\162"; $x174="\x75\x73o\162\164"; $x175="a\x72\162\141\171\137\163\150\x69\146t"; $x176="\141\x72\x72\x61\x79_v\x61\154\165\145s"; $x177="\x73\164\162\x69\160\x5f\164\x61\x67s"; $x178="h\164\155\x6cs\x70\x65\143i\141\154c\150ar\163"; $x179="s\x74\x72\162p\x6f\x73"; $x17a="\x69\163\137\142\x6fol"; $x17b="m\142\x5f\163\164\x72\164ol\157\167\145\x72"; $x17c="\x6d\x62_s\x74\x72t\157u\x70\160\x65\162"; if ($x34) { $x35 = $x14d("\x2f\x0a/", $myPattern); $x36 = $x35[0]; $x35[0] = null; $myPattern = $x14c($x35, "\x0a"); } $myPattern = $x14e('<?', $x14f('__PHP__'), $myPattern); $myPattern = $x14e('?>', $x14f('/__PHP__'), $myPattern); $x37 = $x14f('#(__PHP__)(.*?)/\1#s'); $x150($x37, $myPattern, $x38); if (isset($x38[1])) { foreach ($x38[0] as $x39 => $x3a) { if ($x33 == 1) { if (@eval($x38[2][$x39] . '; ')) $myPattern = $x14e($x3a, eval($x38[2][$x39] . '; '), $myPattern); else $myPattern = $x14e($x3a, '', $myPattern); } else { if (@eval($this->unx184($x38[2][$x39] . '; '))) $myPattern = $x14e($x3a, $this->x184(eval($this->unx184($x38[2][$x39]) . '; ')), $myPattern); else $myPattern = $x14e($x3a, '', $myPattern); } } } if ($x34) { if ($x33 == 1) return $x36 . "\x0a" . $myPattern; else return $x36; } else return $myPattern; } protected function _construct() { $x14b="\x73tr\x6c\145n"; $x14c="\151m\x70\x6co\144\x65"; $x14d="pr\145\x67\x5fs\x70\x6c\151\x74"; $x14e="\x73\164r\x5fr\145\x70\x6ca\x63\x65"; $x14f="u\164f\70\137\x65n\143\x6f\144e"; $x150="p\162\145g_\x6d\x61t\143\150\x5f\x61\x6c\154"; $x151="p\162\145\x67\137m\x61\x74\x63h"; $x152="\162\164\162\x69\155"; $x153="\x69s\x5f\156\x75\x6c\x6c"; $x154="\163\x74\x72to\164\x69me"; $x155="n\165\155be\x72_f\157\162\155a\x74"; $x156="\143\x6f\165\156\164"; $x157="is\137\x6e\x75m\145\x72\151c"; $x158="\x65\170pl\x6f\x64\145"; $x159="s\165\142st\x72"; $x15a="\164\162\151m"; $x15b="\150t\155le\x6e\164\x69\x74\151\145\163"; $x15c="h\164\155\154\x5f\x65\156\164i\x74y\137\x64\145\143\157d\x65"; $x15d="\160\162eg\x5frepl\x61\x63\145"; $x15e="\152s\x6fn\137\144\x65co\x64\x65"; $x15f="i\163\x5f\x61\x72r\x61\x79"; $x160="\x73\164\x72\x73t\x72"; $x161="\x73\164r\x69s\164r"; $x162="p\162i\x6et\x5fr"; $x163="\151\x73_\163t\x72i\x6eg"; $x164="t\151\x6d\145"; $x165="u\x63\167o\x72\x64s"; $x166="\141r\x72\x61\171\137\x70\165\x73\x68"; $x167="\163t\162\160\x6f\163"; $x168="\166er\163i\x6f\156\137\x63ompa\x72\145"; $x169="\151n\137a\162\x72a\x79"; $x16a="\x63\x65\151\x6c"; $x16b="\163\x65\x74\x54\171\x70e"; $x16c="s\x70\x72\151\156\x74\x66"; $x16d="\x61r\x72\x61\171\137\x70\x6f\160"; $x16e="i\156\151_\147\145\164"; $x16f="s\x65\164\x5f\x74i\x6d\x65_\x6c\x69\x6di\x74"; $x170="\141b\x73"; $x171="\141\x72r\x61\171\x5f\162\x65\166\x65\x72\x73\145"; $x172="\163tr_p\x61d"; $x173="\x66\x6co\157\x72"; $x174="\x75\x73\157\162\x74"; $x175="ar\162\141\x79_\163\150\x69f\164"; $x176="\x61r\x72\141y\x5f\166a\x6c\165e\x73"; $x177="\163\164\162\151\160\x5ftags"; $x178="\x68\x74mls\160\x65c\x69\x61l\x63h\141\162\163"; $x179="\x73\164r\x72p\157\163"; $x17a="\151s\x5f\142oo\154"; $x17b="\155b_\163t\162to\x6cow\x65\x72"; $x17c="\155\142\137\x73t\x72tou\x70\160\x65\x72"; $this->_sqlSize = Mage::getStoreConfig("\x64\x61\164a\146\x65\x65dman\141\x67er\x2fsy\x73\164\145m\57\x73\161lsi\172e"); $this->_init('datafeedmanager/configurations'); } protected function _beforeSave() { $x14b="\163tr\x6c\x65\156"; $x14c="\x69mpl\157\144\145"; $x14d="p\162\145g_\x73\160\x6c\x69\x74"; $x14e="\x73\x74\x72\x5f\162\145\x70\154\x61\x63\145"; $x14f="\165\x74f\70\137en\x63\157\x64e"; $x150="\x70r\145g\137m\x61\164c\150_\x61\154l"; $x151="\160\x72\x65\x67\137\x6d\141t\x63\150"; $x152="\x72\x74\x72\151\155"; $x153="\151\163_\x6e\x75\154l"; $x154="st\162\164\x6f\x74im\x65"; $x155="\x6e\x75\x6d\142\145\162\x5f\x66\157r\155at"; $x156="\x63\157\165n\x74"; $x157="is_\156\165\155e\x72ic"; $x158="ex\x70\x6co\x64\145"; $x159="\x73\165b\163\x74\162";
$x15a="\x74\x72\151\155"; $x15b="ht\x6dl\145nti\x74\151\145\x73"; $x15c="\x68\164\x6dl_\x65n\x74\151\x74y\137deco\x64\x65"; $x15d="\160re\147_\162\x65p\x6c\141\x63e"; $x15e="\152\x73\157\156\x5f\x64ec\x6f\144e"; $x15f="is_a\162\162\x61y"; $x160="\x73t\162\163tr"; $x161="s\164\x72\x69\163\x74r"; $x162="p\162\151\x6et\x5fr"; $x163="i\163_s\164\162i\x6e\x67"; $x164="ti\x6de"; $x165="\165c\167\x6f\162d\163"; $x166="\141\x72\162\141\x79_p\x75s\x68"; $x167="\x73t\162p\157\x73"; $x168="\166\145\x72s\x69o\x6e_\x63o\x6d\160\141\x72e"; $x169="\x69\x6e\137\141\162\162\x61\171"; $x16a="\x63\x65\151l"; $x16b="s\145\164T\x79p\x65"; $x16c="s\x70r\x69n\x74\x66"; $x16d="\x61\162\162\x61\171_\160o\x70"; $x16e="i\156\151\137\147\145t"; $x16f="\x73\145\164_\164\151\155\145\137\154\151\155\151\164"; $x170="a\142\x73"; $x171="\141r\162\x61\x79\137\x72\x65v\145\162\x73\x65"; $x172="\163\164r_\x70\x61\144"; $x173="flo\157\x72"; $x174="\165so\x72\x74"; $x175="a\162\x72\x61y\137\163hi\146\164"; $x176="\141\162\162a\x79\137v\141\154\x75\x65\x73"; $x177="s\164\162\x69\160\x5f\164ag\x73"; $x178="h\x74m\x6cspe\x63\x69\x61lc\x68\x61\x72\x73"; $x179="\163t\x72r\x70\x6f\x73"; $x17a="\151\163\137bo\x6fl"; $x17b="m\x62\x5fs\x74r\164\x6f\x6c\157\167e\162"; $x17c="m\x62\137s\164\162\x74\x6f\165\x70\160er"; $x3b = new Varien_Io_File(); $x3c = $x3b->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); $x3d = Mage::getModel('datafeedmanager/configurations')->getCollection(); foreach ($x3d as $x3e) { if ($x3e->getFeedName() == $this->getFeedName() && $this->getId() != $x3e->getId()) { Mage::throwException(Mage::helper('datafeedmanager')->__('There is already one data feed with the same name. Please change it.')); } } if (!$x3b->allowedPath($x3c, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x3b->fileExists($x3c, 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 (!$x3b->isWriteable($x3c)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$x151('#^[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($x152($x14e($x14e('\\', '/', Mage::getBaseDir()), '', $x3c), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $x14b="\x73t\162\154\145\156"; $x14c="\151\155\160l\157de"; $x14d="\160\162\145\147\x5f\x73\160l\x69\x74"; $x14e="\x73\x74\x72\137\162e\160\x6ca\x63e"; $x14f="\x75t\146\70_\145\x6e\143\x6f\x64\145"; $x150="p\162e\x67\137\x6da\x74\143\x68\137a\154l"; $x151="\160\x72\x65g\x5f\155a\x74\143\150"; $x152="\x72\x74\162\151\x6d"; $x153="\151s_\x6eu\x6c\154"; $x154="\x73\x74r\164\x6f\x74\151\155\x65"; $x155="nu\155\142e\x72\x5f\x66\157\162\x6d\141t"; $x156="\143o\165\156\164"; $x157="\151\163\137\x6e\165m\x65\x72i\x63"; $x158="\145\170\160\x6c\x6fd\145"; $x159="sub\x73\164\x72"; $x15a="\x74\x72\x69m"; $x15b="h\164\x6d\x6ce\156ti\x74\151e\x73"; $x15c="\150\x74\155l_\145\x6e\164\x69\x74\171_\x64\x65c\x6f\x64e"; $x15d="pr\145\x67\x5f\x72ep\x6ca\143\x65"; $x15e="j\x73\x6f\x6e\x5f\x64e\x63od\x65"; $x15f="\x69\163\x5f\x61\162\162\141\171"; $x160="\x73\x74r\163\x74\x72"; $x161="\x73\x74\162i\163\164r"; $x162="\160ri\156t_r"; $x163="\151\163_s\x74\x72\x69n\147"; $x164="\164\x69m\145"; $x165="\x75\143w\157\162ds"; $x166="\141\x72\162\x61y\x5f\x70\165\x73h"; $x167="\x73t\162\x70\157s"; $x168="\x76\145\162s\x69on\137\x63\x6f\155\160\141\x72\145"; $x169="\x69\156_\141\162\x72\141y"; $x16a="\143\145\x69\x6c"; $x16b="\x73\x65tT\171\x70\x65"; $x16c="\163\160r\x69n\x74\x66"; $x16d="\x61\162r\141\x79\x5fp\x6f\160"; $x16e="\x69\x6e\x69\x5fg\145\x74"; $x16f="se\164\137\164\x69me\137\x6ci\155\x69t"; $x170="a\142\x73"; $x171="a\x72\x72ay\x5f\162\x65\166\145\x72\163\x65"; $x172="\x73\x74r_p\x61d"; $x173="f\x6c\x6f\x6fr"; $x174="u\163\157rt"; $x175="ar\x72\x61y_\163\x68\x69f\164"; $x176="\x61\162r\141\171\137\x76\141l\x75\x65s"; $x177="\163\164\162\151p\x5f\x74ag\x73"; $x178="html\x73pe\x63\151a\154\x63\150\x61\162s"; $x179="\163\164rr\x70\x6f\163"; $x17a="i\163\x5fboo\154"; $x17b="mb\137\163\164r\164\x6flo\x77\145r"; $x17c="\155\142\137\x73\x74r\x74\x6f\x75\160\160\x65\x72"; if ($x153($this->_filePath)) { $this->_filePath = $x14e('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x3f = '.temp') { $x14b="\163tr\154\145n"; $x14c="\x69\x6d\160lod\x65"; $x14d="\160r\x65\x67\137sp\x6c\x69\x74";
$x14e="s\x74\x72\x5f\162e\x70l\141\x63\145"; $x14f="\x75\164\146\70\137\145n\x63\x6fd\x65"; $x150="pr\145\x67\x5f\x6da\164\x63h\137\141\x6c\154"; $x151="\x70\x72\145g\137\155\141\164\x63h"; $x152="rtr\x69\x6d"; $x153="i\x73\x5f\156\165\x6cl"; $x154="s\x74\x72t\x6f\164\151\x6d\x65"; $x155="\156\x75\155\x62e\x72_\146\157\162\x6d\x61\164"; $x156="\x63\x6f\165\156\x74"; $x157="i\x73\137nu\155er\151\143"; $x158="\x65x\160\154\x6f\x64e"; $x159="s\165\142\x73t\x72"; $x15a="\164\x72im"; $x15b="\x68\x74\x6d\154\x65\156ti\x74\151e\x73"; $x15c="h\164\x6d\154_e\156\x74\151\164\171\x5fd\145\143\x6f\144\x65"; $x15d="pr\x65\x67\137\162\145\160\x6cac\x65"; $x15e="js\157\x6e\x5f\144ec\157\x64\145"; $x15f="\x69\163\x5f\141r\x72\x61y"; $x160="\x73t\x72\x73\164\162"; $x161="stri\163tr"; $x162="\160\x72i\156\164\137\162"; $x163="\x69s\x5f\x73\x74\x72\151\x6e\x67"; $x164="t\x69\155\145"; $x165="\x75\143wo\162ds"; $x166="\x61\162\162\x61y_p\165\163\150"; $x167="\x73\164\x72\x70\157\163"; $x168="\x76\x65\162\163ion\137\x63\157\155pa\x72\145"; $x169="\x69\156\x5f\x61\x72ra\171"; $x16a="\x63\145\151l"; $x16b="\163\145\x74\x54y\160e"; $x16c="\x73\x70\162in\164\x66"; $x16d="\x61\162\x72\x61\x79\x5f\160\x6f\x70"; $x16e="i\x6e\x69\137\147e\x74"; $x16f="\x73\x65t\137\164\151m\x65\137\x6c\151\155i\x74"; $x170="ab\163"; $x171="a\x72\162\x61\171\137\162\145v\145r\x73\x65"; $x172="s\164\162\137\x70\x61d"; $x173="f\x6c\157\x6fr"; $x174="\x75\x73ort"; $x175="\x61rray\137\163\150i\x66\x74"; $x176="a\162\162\141y_\x76\x61lue\x73"; $x177="\163\x74ri\x70_tag\163"; $x178="ht\155\154\x73p\x65\x63ial\x63\150a\x72\163"; $x179="s\x74\162\162\160\x6fs"; $x17a="\x69s_\x62\157o\x6c"; $x17b="\x6d\142_s\x74rt\157\x6c\157\167er"; $x17c="m\142\x5f\163\x74\162toup\160\x65\162"; $x40 = array(1 => 'xml', 2 => 'txt', 3 => 'csv', 4 => 'tsv'); if ($this->_date == false) { $this->_updated = Mage::getSingleton('core/date')->gmtDate("\131-m\x2d\144\40\x48\72\x69\x3a\x73", $this->_timestamp); $this->_date = Mage::getSingleton('core/date')->date($this->getFeedDateformat(), $x154($this->_updated)); } $x41 = $x14e('{f}', $this->getFeedName(), $this->_date); $x42 = $x41 . "\x2e" . $x40[$this->getFeedType()] . $x3f; if (!$x3f) $this->_filename = $x42; return $x42; } public function getPreparedFilename() { $x14b="\163\x74\x72\x6c\145\x6e"; $x14c="i\x6dplo\144\x65"; $x14d="p\x72\145\147\x5f\163\x70\154i\x74"; $x14e="\x73\164\x72_\162\145\x70\x6ca\143\x65"; $x14f="\x75t\146\70_\x65\x6e\143ode"; $x150="p\x72\145\147\137m\141tc\150\x5f\x61l\x6c"; $x151="p\x72\x65g\x5fma\x74c\x68"; $x152="\x72t\162\151m"; $x153="\151\163\137nul\x6c"; $x154="s\x74\x72\164o\x74i\155\x65"; $x155="\156u\155\x62e\162\x5f\x66\x6f\162\x6da\x74"; $x156="c\157\165\156\x74"; $x157="\151\x73_\156\x75\x6deri\x63"; $x158="\145\x78\x70\x6c\x6fd\145"; $x159="\x73\x75\142\x73\x74\x72"; $x15a="\164\x72\x69\x6d"; $x15b="ht\155l\x65nti\x74i\145s"; $x15c="\150\164\155l_\145n\164\x69ty_\x64ec\157\x64\x65"; $x15d="\160\x72e\x67_r\x65\160\154\x61\x63e"; $x15e="\x6as\157\156\137\x64\x65\143o\x64\x65"; $x15f="\151\x73\137\141rr\141y"; $x160="\163t\162\163\164\162"; $x161="s\x74ri\x73tr"; $x162="p\162\151\156\164\137r"; $x163="\151s\x5fst\162\151n\147"; $x164="\x74\151me"; $x165="\x75\143\x77o\x72\x64s"; $x166="\x61\162r\x61\171\x5f\160\x75s\x68"; $x167="s\x74r\x70\x6fs"; $x168="v\145\162\x73i\x6fn\137\143\157m\160\141\x72\x65"; $x169="in_a\x72\x72\x61\x79"; $x16a="c\145\x69\x6c"; $x16b="\x73\145\164\x54\x79\x70e"; $x16c="\x73p\x72i\156\164\146"; $x16d="\x61rr\x61\x79_p\x6f\160"; $x16e="\x69\x6ei\137\x67\x65t"; $x16f="\163\145\x74_\164\x69m\145\x5fl\151\x6d\x69\x74"; $x170="\141\142\x73"; $x171="\141r\x72\x61\171\x5fre\166\145\162\163\145"; $x172="\x73t\x72\x5f\160a\x64"; $x173="\146\x6c\157\157\162"; $x174="\165so\x72\x74"; $x175="a\162ray\137\x73\150\x69\146\x74"; $x176="\141\x72ray_v\141\154\x75\x65s"; $x177="\163t\162\x69\160\x5f\x74\141gs"; $x178="\150tml\x73\x70\x65c\x69\141lc\150ar\x73";
$x179="\163\164\162r\x70o\163"; $x17a="i\x73_b\157\157l"; $x17b="\x6db_s\164r\x74\157l\157\x77e\162"; $x17c="\155\142\x5fs\x74r\x74ou\x70\x70e\x72"; return $this->getPath() . $this->getFilename(); } public function x17e($x43, $x44) { $x14b="\x73\164\162l\145n"; $x14c="\151\x6dp\x6c\x6f\x64e"; $x14d="\x70\162\x65g_s\160\x6c\151\164"; $x14e="st\x72_r\145\160\x6ca\x63e"; $x14f="\165t\146\70\x5f\x65\156\x63\157\144\x65"; $x150="\160\x72\x65\x67_m\141\x74\143\x68\x5f\141\154\x6c"; $x151="\x70\x72e\147_m\x61\164ch"; $x152="\162t\x72i\x6d"; $x153="\151s_\156\x75\x6c\154"; $x154="\x73\164rtot\x69\x6d\x65"; $x155="\156\x75mber_\146\157\162m\141t"; $x156="co\x75n\164"; $x157="i\x73\137\156\x75\x6d\x65ri\x63"; $x158="ex\160\x6co\x64e"; $x159="s\x75b\x73\164\162"; $x15a="\x74\x72\x69\x6d"; $x15b="h\x74m\154\x65nt\151\x74ies"; $x15c="h\x74m\154\137e\156ti\164y\137d\145c\x6f\144e"; $x15d="\x70\162\x65\x67_\162\x65\160l\x61\143e"; $x15e="\x6a\x73on_\144e\143\x6f\144e"; $x15f="i\x73\137\141r\162ay"; $x160="s\x74\x72s\x74\162"; $x161="\x73\164\162\151\x73\x74\162"; $x162="\160\x72\151\x6et\x5f\162"; $x163="i\163\137s\164\x72\151\156g"; $x164="\x74\151\155\145"; $x165="\165\143\167or\x64\x73"; $x166="\x61\x72\162a\171_\x70u\163\x68"; $x167="\163\164r\x70\157\163"; $x168="\x76er\x73\x69\x6fn_\143\157\155\160\x61\162e"; $x169="\151n\x5f\x61\162r\141\171"; $x16a="\143\145il"; $x16b="\163\x65\x74T\171\x70e"; $x16c="\163\x70r\x69n\164f"; $x16d="\x61\x72ray\137p\x6f\160"; $x16e="\x69ni_\147\145t"; $x16f="\x73et\137t\x69\155\145\137l\151mi\x74"; $x170="\141b\x73"; $x171="\141r\x72\x61\171\x5f\162e\x76\145\162\163\x65"; $x172="\x73\164\x72_\x70a\x64"; $x173="f\154oo\x72"; $x174="\165\163\x6f\x72\164"; $x175="\141r\x72\141y\137\163\150\x69\146\x74"; $x176="ar\162a\171\137va\154u\145\x73"; $x177="\163\x74\x72\x69p\x5f\164\x61g\163"; $x178="\x68\164\155\154s\x70e\143\x69\141\154\143\150\x61\x72\x73"; $x179="st\x72\162p\157s"; $x17a="is\137\x62\157ol"; $x17b="mb\x5f\163\164\x72\164\x6flow\145\162"; $x17c="\x6d\142\137\163\164\x72\164\x6f\x75\x70\x70er"; $x45 = $this->_currencies; if (isset($x45[$x44])) { return $x43 * $x45[$x44]; } else { return $x43; } } public function x17f($x43, $x46, $x47, $x48 = false) { $x14b="st\162\154e\156"; $x14c="\x69\x6dpl\157\144e"; $x14d="\x70\x72e\147_\x73\x70\x6c\151t"; $x14e="\163tr\137re\160l\141\143\x65"; $x14f="\x75\x74\146\70\x5f\145\156code"; $x150="p\x72e\147_ma\x74\x63\150_a\x6c\154"; $x151="\160\x72e\x67_\x6d\141t\143\x68"; $x152="r\x74\162im"; $x153="\151s_\156\165\154\154"; $x154="\x73\x74\162\164\157\x74\x69\155\145"; $x155="nu\155\x62\145r\137\x66\x6fr\x6d\141\x74"; $x156="c\x6f\165\156\x74"; $x157="\x69\x73\137\156\165\155\x65r\x69\x63"; $x158="e\170pl\157\x64e"; $x159="su\142s\x74\x72"; $x15a="t\162\151m"; $x15b="h\x74\155l\x65\156\x74i\x74ies"; $x15c="h\x74\155\154\x5f\145n\x74\x69\164\x79_\144\x65c\157d\x65"; $x15d="\160\162\x65g\137\162\145\160\154\141\143\145"; $x15e="\x6a\x73\157n_\144\145\143o\144\x65"; $x15f="i\163_\x61\x72\x72\x61\171"; $x160="str\163\x74\162"; $x161="\x73\164ri\x73\x74\x72"; $x162="\x70r\x69\x6e\164\137\162"; $x163="\x69s_\x73\x74\162\151\156g"; $x164="t\x69m\145"; $x165="\x75\x63\167\157\162d\163"; $x166="\x61\x72r\x61\171\137\x70\165\x73\150"; $x167="\x73\164\162p\157s"; $x168="\166\x65\162\163i\157\x6e\x5fc\157m\x70are"; $x169="\x69n\137\x61\x72\x72\141\171"; $x16a="\x63\x65\151\154"; $x16b="\163\145\x74\124y\x70e"; $x16c="\163\x70\162\151\156\x74\x66"; $x16d="\x61\162\x72a\x79\x5f\160o\160"; $x16e="\151n\x69\x5fg\x65\164"; $x16f="\x73et\137\x74im\x65\x5fl\151m\151t"; $x170="\x61\142\163"; $x171="\x61\162\162\141y\x5fr\145\x76e\162se"; $x172="\x73\x74r_\160ad"; $x173="\x66lo\x6f\162"; $x174="u\163\157r\x74";
$x175="ar\162\141\x79\x5fs\x68ift"; $x176="\141\162r\141y\137\166\x61\154\x75\145\163"; $x177="\x73\164ri\x70\x5f\164\x61\x67\163"; $x178="\150\164ml\x73p\145\x63i\x61\154c\150\141\162\x73"; $x179="st\x72\x72\x70\157s"; $x17a="\x69\x73_\142oo\154"; $x17b="\155\142\x5f\x73\x74\162\x74o\154\x6fw\x65r"; $x17c="\155\142\137\163\x74\162t\157u\x70\x70e\162"; $x49 = $this->_rates; $x43 = $x155($x43, 2, '.', ''); if ($x48 === false) { if (!$x46 && isset($x49[$x47])) { if ($x156($x49[$x47]) > 1) { return $x43; } else { return $x43 * ($x49[$x47][0]['rate'] / 100 + 1); } } else { return $x43; } } elseif ($x48 === "\60") { if ($x46 && isset($x49[$x47])) { if ($x156($x49[$x47]) > 1) { return $x43; } else { return 100 * $x43 / (100 + ($x49[$x47][0]['rate'])); } } else { return $x43; } } else { if ($x157($x48)) { if ($x47 != 0) { return $x43 * ($x48 / 100 + 1); } elseif ($x47 == 0) { return $x43; } } else { $x48 = $x158('/', $x48); $x4a = 0; $x4b = false; if ($x159($x48[0], 0, 1) == "\55") { $x48[0] = $x159($x48[0], 1); $x4b = true; } if ($x49[$x47]) { foreach ($x49[$x47] as $x4c) { if ($x4c['country'] == $x48[0]) { if (!isset($x48[1]) || $x4c['code'] == $x48[1]) { $x4a = $x4c['rate']; break; } } } if (!$x4b) return $x43 * ($x4a / 100 + 1); else { return 100 * $x43 / (100 + ($x4a)); } } else { return $x43; } } } } public function x180($x4d, $x4e = true, $x4f = true) { $x14b="\x73\164\162\x6cen"; $x14c="\151\x6d\x70\154\157\x64\x65"; $x14d="p\162\x65\x67\x5f\163\160l\x69\164"; $x14e="\x73t\x72_\x72\x65p\154\x61\x63e"; $x14f="\x75tf\70_\x65n\x63\157\x64\145"; $x150="\160\162\145\147_\x6d\x61\164\x63h_\x61l\154"; $x151="\160\x72\x65\x67\137\x6d\x61\164\x63h"; $x152="\162\164r\151\x6d"; $x153="i\x73\137\x6eu\x6c\x6c"; $x154="s\x74r\x74\x6f\164\151m\x65"; $x155="nu\155b\x65r_f\x6f\162\x6d\141\x74"; $x156="c\157\x75nt"; $x157="\151\163\x5f\156\x75\155\x65\162\151c"; $x158="e\x78p\154\x6f\144\145"; $x159="\x73\x75\x62\x73\x74r"; $x15a="\x74\162im"; $x15b="h\x74ml\145\x6e\x74i\164\151\x65s"; $x15c="h\x74m\x6c\x5f\145\156\164i\164\171_de\143o\x64\145"; $x15d="p\x72\145g_re\x70l\141\143\x65"; $x15e="\152\163\157\x6e_\144\145\x63\x6f\x64e"; $x15f="\151\x73\137\x61\162\162\141y"; $x160="\163\164\162\x73\164\x72"; $x161="\x73\164\x72i\x73\x74\x72"; $x162="\160r\151\156\x74\x5f\162"; $x163="\x69\163\x5fs\164r\x69\x6e\x67"; $x164="\164\x69\155\x65"; $x165="\165c\167or\x64s"; $x166="\141\x72\x72ay_\160\x75\x73\150"; $x167="s\x74r\x70\x6f\163"; $x168="v\x65\162si\157\156_c\x6f\155p\x61r\145"; $x169="i\x6e_\141\x72ra\171"; $x16a="c\145\x69\x6c"; $x16b="\x73\x65\x74Ty\160\x65"; $x16c="s\x70r\x69\x6e\164\146"; $x16d="a\162\162ay\x5fpop"; $x16e="i\156i\x5f\x67\x65\164"; $x16f="\x73\145t\137\x74\151\x6d\145\137\154\x69\155\151t"; $x170="\x61\142\x73"; $x171="\141\162\x72a\171_\162\145\166\x65\162\163\145"; $x172="\x73t\x72_\160\x61\144"; $x173="\146loor"; $x174="\165\163o\162\x74"; $x175="a\x72\162\x61y_s\x68\x69\x66\164"; $x176="ar\x72\x61y\x5fv\x61\154\x75e\x73"; $x177="\x73\164\x72ip_\164\x61g\163"; $x178="\150t\x6d\154s\160\145\x63\x69\141\x6c\x63\150a\162\x73"; $x179="\x73t\162r\x70o\x73"; $x17a="\x69\163\x5f\x62\x6f\x6fl"; $x17b="\155b_s\x74\162\164o\154\157\x77er"; $x17c="\155\142\x5fs\164r\164\157\x75\x70p\x65r"; $x37 = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x150($x37, $x4d, $x38); foreach ($x38[1] as $x39 => $value) { $x50 = $x15a($x38[2][$x39]); if (empty($x50) && !$x157($x50) && $x4f) $x4d = $x14e($x38[0][$x39], '', $x4d); else { if ($x4e) $x4d = $x14e($x38[0][$x39], ($x38[1][$x39]) . '<![CDATA[' . $x50 . ']]>' . ($x38[3][$x39]), $x4d); else { $x4d = $x14e($x38[0][$x39], ($x38[1][$x39]) . $x50 . ($x38[3][$x39]), $x4d); } } } $x31 = $x14d("\x2f\x0a\57\163", $x4d); $x51 = ''; foreach ($x31 as $x52) { ($x14b($x15a($x52)) > 0) ? $x51.=$x52 . "\x0a" : false; } $x4d = $x51; return $x4d; } public function x181($x53) { $x14b="s\164r\x6c\x65\156"; $x14c="\x69m\x70\x6c\157\144e"; $x14d="\x70\x72\x65g_s\160l\151\x74"; $x14e="s\x74\162_\162\x65\x70\x6c\x61\143\x65"; $x14f="\165t\146\70\137enc\157\x64e"; $x150="\160\x72e\147\x5fmat\143\x68_\141\154l"; $x151="pr\x65\x67\x5fm\x61\164ch"; $x152="\x72t\162i\x6d"; $x153="is_\x6e\165\154\x6c"; $x154="\163\164\x72t\157\x74\x69\x6de"; $x155="\x6eu\x6d\x62er\137\146o\x72\155\141t";
$x156="\143\157\165\x6e\x74"; $x157="\151s\137n\x75m\x65r\151\x63"; $x158="\x65\170\x70\x6c\x6f\x64\x65"; $x159="\x73\x75\142\163tr"; $x15a="\x74\x72\151m"; $x15b="\150tml\145\156\164\151t\151\145\163"; $x15c="h\164m\x6c_e\156t\x69t\x79_\x64e\143\157\x64\x65"; $x15d="\x70r\x65g_\162\145\x70\x6c\x61c\145"; $x15e="js\x6f\156\x5fd\145\143o\144\x65"; $x15f="i\163\137a\x72\x72a\x79"; $x160="\x73\164\x72\x73\x74r"; $x161="s\164ri\x73\x74r"; $x162="\x70\162\151\x6e\x74_\162"; $x163="i\163_st\x72\151\x6e\x67"; $x164="\164\x69\155e"; $x165="\x75c\x77o\162d\163"; $x166="\141\x72r\x61\x79\137p\x75s\150"; $x167="\163\164\x72\160\157\x73"; $x168="v\x65\x72\x73\151\x6f\156\137\143\x6f\155\x70a\162e"; $x169="\x69\156_\141\162\162\x61\171"; $x16a="\x63e\x69l"; $x16b="s\145\x74\x54\x79\x70\145"; $x16c="\163p\162i\x6e\x74\x66"; $x16d="a\162r\x61\171_\160\157\x70"; $x16e="\x69n\151\137g\x65t"; $x16f="\163\x65\164_\x74i\x6de\x5fl\151\x6di\164"; $x170="\x61\142s"; $x171="\x61r\x72\x61\x79_\162\x65\166er\163\x65"; $x172="st\x72\x5f\160\141\x64"; $x173="f\x6c\x6f\157\162"; $x174="\x75\x73o\162t"; $x175="ar\162\x61y\137s\x68i\146\x74"; $x176="ar\x72\141\171\x5fv\x61lues"; $x177="\x73\x74\162\151\160\137t\x61\x67s"; $x178="\150\164\155\x6c\x73\160\x65\143\151a\154\143\150\x61r\163"; $x179="\x73\164\x72\x72\160\157\163"; $x17a="is\x5f\x62o\x6f\154"; $x17b="\155b_s\x74r\164\x6f\154\x6f\x77\x65r"; $x17c="m\x62_\x73\164\x72\164\157\165p\x70\145r"; if ($this->_feed_encoding != 'UTF-8') { $x53 = $x15b($x53, ENT_NOQUOTES, 'UTF-8'); $x53 = $x15c($x53, ENT_NOQUOTES, $this->_feed_encoding); } return $x53; } public function x182($x37, $x34 = false) { $x14b="\x73\164r\154e\x6e"; $x14c="\151\155\x70\154\157de"; $x14d="\x70r\x65\x67_s\x70\154\x69\164"; $x14e="st\x72\137r\145p\154a\143\x65"; $x14f="\x75\x74\146\70_en\143\157d\145"; $x150="pr\145\x67\137\155\141tch_\141\x6c\x6c"; $x151="\x70re\147\137\x6dat\143\150"; $x152="\162\164\162\x69m"; $x153="\x69\163_n\x75l\x6c"; $x154="\163\x74\x72\x74\x6ft\151\x6de"; $x155="num\142\145r\x5f\x66\157rma\x74"; $x156="c\157\165\x6e\x74"; $x157="\x69\x73\x5f\156u\x6d\145\x72\x69\143"; $x158="e\170\160\154\157\x64e"; $x159="s\x75\x62s\164\x72"; $x15a="\164\x72\x69\155"; $x15b="ht\155\x6cen\x74\x69t\151es"; $x15c="\150\164m\x6c_\x65\156\x74\x69\164\x79\x5f\144\145\x63\x6fd\145"; $x15d="\160\162\x65\x67_rep\x6ca\x63\x65"; $x15e="\152so\x6e_\144\145\143o\144e"; $x15f="\x69\163\x5f\141r\x72\141\x79"; $x160="\163\x74\x72\163t\x72"; $x161="\163t\162\x69\x73tr"; $x162="\x70\162\x69n\x74\137\162"; $x163="is\x5fs\164\x72\151\x6e\147"; $x164="\x74\151\x6d\x65"; $x165="uc\x77o\162d\163"; $x166="\141\x72\x72\141\x79_\160\x75sh"; $x167="\163tr\160\157\x73"; $x168="v\x65\162\163\x69o\156\137\143\x6f\155\160\141\x72\x65"; $x169="\x69\156\137\141\162\x72\x61y"; $x16a="\x63\x65\x69l"; $x16b="se\164\x54ype"; $x16c="\x73p\162\151\156\x74f"; $x16d="ar\162\x61y_\160\x6f\160"; $x16e="\x69\156\151_\147\145\x74"; $x16f="\163\145t\x5f\164\151m\x65_li\155\x69t"; $x170="\x61b\163"; $x171="ar\162\141\171_\x72\145\x76\145\162s\x65"; $x172="\163\x74\162\137\160a\x64"; $x173="\x66\x6coor"; $x174="\x75so\x72t"; $x175="\x61\x72\162ay\x5f\163hif\x74"; $x176="\x61\162\x72ay_\x76\x61\154\x75\x65\163"; $x177="s\x74\162ip\x5f\x74\141\147\163"; $x178="\x68\x74\x6d\154\163p\x65\x63\x69\x61l\143ha\x72\x73"; $x179="\x73t\x72\x72\160o\163"; $x17a="is\137b\x6f\x6f\154"; $x17b="\155\x62\137\163t\x72\164o\154ow\x65\162"; $x17c="mb_st\162\x74\x6f\x75\x70per"; $x37 = $x15d('/(\r\n|\n|\r|\r\n)/s', '', $x37); $x54 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; ';
$x55 = $x15e($x37); if (!$x15f($x55)) $x56[] = $x55; else $x56 = $x55; $x57 = null; foreach ($x56 as $x55) { $x58 = 0; if (isset($x55->header)) $x55 = $x55->header; else { $x55 = $x55->product; } if ($x34) $x57 = "\x3c\x74r\40s\164\x79le='b\141\143\153\x67\162\157un\144\x2d\x63\157\154\157\x72\x3a\147\162\145\171; \40\x63o\x6c\x6f\162\x3a\x77\x68ite\x3b \x66\157n\x74\x2dw\145\151\147h\164\72\142\x6f\x6c\x64'\76"; else { $x57 .= "\x3c\164r\76"; } foreach ($x55 as $x39 => $value) { $value = (($value)); if ($x58) $x58++; if ($x160($value, "\x2fb\162\145\141\x6b\x6ci\x6e\x65\57")) { $value = $x14e("\x2fb\162\145\141\x6b\x6ci\x6e\x65\57", "\74\x2f\x74\x72>\74t\162>", $value); $x58 = 1; } ($value != null) ? $x59 = ($value) : $x59 = "<\x73\160\141n \163\164\x79le\x3d\47\146o\x6e\x74\55si\172\x65\x3a\61\60\x70\170\73c\157lo\x72\x3a\x67re\x79\47\76\x28\145\155\x70ty\x29\x3c\x2f\163p\x61\x6e\x3e"; $x57.="\x3ct\144 \x73\x74\x79\x6ce\75\47" . $x54 . "\x27\x3e" . $x59 . "\x3c\x2ftd\76"; } $x57.="\x3c\57\164r\76"; } return $x57; } public function x183($x37, $x5a, $x5b, $x5c) { $x14b="\x73tr\x6c\x65\156"; $x14c="\151mp\x6co\144e"; $x14d="\x70\162e\x67_s\x70\154i\x74"; $x14e="\x73t\162\x5fr\x65\x70\154\141\x63\145"; $x14f="\165\x74f\70\x5fen\x63o\144\x65"; $x150="pr\x65g_m\x61\164\143\150_\141ll"; $x151="\x70\x72\x65g\137\x6d\x61\x74\143\x68"; $x152="\x72\164\x72\151\x6d"; $x153="is_nul\154"; $x154="s\x74\x72\164\157ti\155e"; $x155="n\165mb\x65\x72\x5f\146o\x72\155\x61\164"; $x156="\x63\157\x75n\164"; $x157="\x69s\x5f\156\165\155e\x72i\143"; $x158="e\170\x70l\x6f\x64\145"; $x159="\x73\x75\142str"; $x15a="\164\x72\151\155"; $x15b="\150t\155le\x6e\x74\151ti\x65s"; $x15c="h\164m\x6c_\145\x6et\x69\164y_\x64ec\157d\x65"; $x15d="\x70\162e\147\137rep\x6c\141\143\145"; $x15e="\x6a\x73on\137\144\145\143\157d\x65"; $x15f="\x69\163\x5f\x61\x72ra\x79"; $x160="s\164\x72\163tr"; $x161="\x73t\x72\151\x73\164r"; $x162="\160\162in\x74\137\162"; $x163="\151\x73\137s\164rin\147"; $x164="t\x69\155\x65"; $x165="\165\x63\x77\x6f\x72d\163"; $x166="a\x72ray\137\160\165\163h"; $x167="\x73t\x72\160\157s"; $x168="\x76\145\162s\x69o\156\137\x63\157\155\160a\162e"; $x169="\151\156_\141\x72\162ay"; $x16a="ce\x69l"; $x16b="\x73\145\164Typ\145"; $x16c="sp\x72\x69\x6e\164f"; $x16d="ar\162\x61y\x5fpo\160"; $x16e="\x69\x6e\151\x5f\x67\145\x74"; $x16f="s\145t\x5f\164\151m\x65\137l\151\155\x69t"; $x170="\x61bs"; $x171="a\x72ra\x79\137\x72\x65ve\162s\x65"; $x172="\163tr\137p\x61\x64"; $x173="\146\x6c\157\157r"; $x174="\x75\163\157\x72\164"; $x175="\141\x72r\x61y_s\x68\x69ft"; $x176="\141\162\x72\x61\x79_\166\x61\x6c\165e\163"; $x177="\x73\x74\x72\x69\160_\164\x61\x67\163"; $x178="h\x74\x6d\154\x73\160ec\x69\x61\154\x63\150\141\x72\x73"; $x179="s\x74r\162po\163"; $x17a="i\x73\x5fb\157\x6fl"; $x17b="\x6d\x62\x5f\163t\x72t\157l\x6fw\145\x72"; $x17c="\155b\137\163tr\x74\x6f\165\x70\160\145\x72"; $x37 = $x15d('/(\r\n|\n|\r|\r\n)/s', '', $x37); $x55 = $x15e($x37); if (!$x15f($x55)) $x56[] = $x55; else $x56 = $x55; $x52 = ''; if ($x5a == '\t') $x5a = "\t"; foreach ($x56 as $x55) { $x58 = 0; if (isset($x55->header)) $x55 = $x55->header; else { if (!$x15e($x37)) return ""; $x55 = $x55->product; } $x5d = 0; foreach ($x55 as $x39 => $value) { if ($x58 > 0) $x58 = 2; if ($x160($value, "\x2fb\162\145\141\x6b\x6ci\x6e\x65\57")) $x58++; if ($x5d > 0 && $x58 < 2) $x52.=$x5a; if (!$x160($value, "\x2fb\162\145\141\x6b\x6ci\x6e\x65\57")) $x58 = 0; if ($x5b != "") { $x52.=$x5b . $this->x184($x14e("\x2fb\162\145\141\x6b\x6ci\x6e\x65\57", '', $value), $x5b, $x5c) . $x5b; if ($x160($value, "\x2fb\162\145\141\x6b\x6ci\x6e\x65\57")) { $x52 .= "\x0d\x0a"; } } else { $value = $x14e("\x2fb\162\145\141\x6b\x6ci\x6e\x65\57", "\x0d\x0a", $value); $x52.= $this->x184($value, $x5a, $x5c); } $x5d++; } if ($x5a == "\133\x7c\135") $x52.="\x5b:]"; if (!$x58) $x52 .= "\x0d\x0a"; } return $x52; } public function x184($x37, $x5e = '"', $x5c = "\134\x5c") { $x14b="s\x74rl\x65n"; $x14c="\x69\x6d\x70l\x6f\x64\145"; $x14d="\x70\x72\x65\147\137\163\160l\x69\x74"; $x14e="\163\x74\x72\x5f\162e\160l\141c\145"; $x14f="\165t\146\70_en\143\x6fde"; $x150="\x70r\x65g\x5fm\141tch\137\x61\x6c\154"; $x151="\160r\x65\147\137ma\x74\143\x68"; $x152="r\x74r\151\x6d"; $x153="i\x73\137\156\165\154l";
$x154="\x73\x74r\x74o\x74\151me"; $x155="\x6eum\142\145\162\x5f\146\x6f\162\155\x61\164"; $x156="c\157\x75\x6e\x74"; $x157="i\163_\156um\x65r\151\143"; $x158="\145\170\160\154\157\x64e"; $x159="sub\163t\162"; $x15a="t\x72i\155"; $x15b="h\x74mle\x6e\164\x69\x74\151\145\x73"; $x15c="\x68\x74\155\154\137en\164\151t\171\137\x64\145c\x6f\144e"; $x15d="p\x72e\147\x5f\162epla\x63\x65"; $x15e="j\x73\157\x6e_d\x65c\157\144\145"; $x15f="i\x73_\x61\x72ray"; $x160="\163\x74rs\x74\162"; $x161="s\x74\x72\151\x73\164\162"; $x162="\160ri\156t_\x72"; $x163="\x69\163\137\x73t\162\151n\x67"; $x164="\x74im\x65"; $x165="\165c\167o\162\144\x73"; $x166="arr\141\x79\137\x70u\163h"; $x167="s\164\162\160\157\x73"; $x168="ver\x73\x69on\x5f\x63\157\155\x70a\x72\x65"; $x169="in_\x61\x72\162\x61y"; $x16a="c\x65\151\154"; $x16b="\163\x65\x74Type"; $x16c="s\x70\162\151\x6e\164f"; $x16d="arra\x79\137p\x6f\160"; $x16e="in\151\137g\145\x74"; $x16f="\x73\x65\x74\x5fti\x6d\145_\x6c\x69\155\151t"; $x170="\141\142\163"; $x171="\x61\162\162\141\x79_re\166\145\162\x73\x65"; $x172="\163\x74\x72\137\160\x61\144"; $x173="fl\157or"; $x174="u\x73\157\x72t"; $x175="\x61\162\x72\141y\x5f\163h\x69f\x74"; $x176="\141r\162a\x79\137\166al\x75\145\163"; $x177="\163\164\162\151p_t\141g\x73"; $x178="\150\164m\154sp\145\143\x69\x61\154\143\x68a\x72s"; $x179="str\x72\160\157s"; $x17a="is\137\142\157o\154"; $x17b="m\x62\x5f\163tr\164\157\154\157\167\x65r"; $x17c="\155\x62\x5f\x73tr\x74\x6f\x75\160p\x65\162"; $x37 = $x14e($x5e, $x5c . $x5e, $x37); return $x37; } public function unx184($x37, $x5e = '"') { $x14b="\x73t\x72l\x65n"; $x14c="\x69\155\160l\x6fd\x65"; $x14d="p\162e\x67\137\x73\x70\154\151t"; $x14e="\163t\x72\137\x72epl\x61\143e"; $x14f="\x75t\146\70\137\x65\x6e\x63\157d\145"; $x150="\x70\162\x65\x67_\155\141\x74\x63\x68\137a\154\x6c"; $x151="\x70\162e\x67\137\155at\x63\150"; $x152="\x72\164r\x69m"; $x153="\151s\x5f\x6e\x75\154l"; $x154="st\x72to\164i\155e"; $x155="\x6eum\142\145\162\137\x66or\x6d\x61t"; $x156="\143\x6f\165\x6e\x74"; $x157="\151\x73\137\x6e\x75\x6d\x65\x72\x69c"; $x158="e\170p\x6c\157\144\145"; $x159="subs\164r"; $x15a="tr\151\x6d"; $x15b="ht\155l\x65n\x74\151t\151es"; $x15c="\150\164m\x6c\x5f\x65\156t\151\x74\171\137\x64\x65\143ode"; $x15d="\x70\162eg\137\x72\145pl\141\x63\145"; $x15e="\x6aso\x6e\x5f\x64\x65\143o\144e"; $x15f="\151\x73_a\162ra\171"; $x160="\x73\x74\162st\162"; $x161="\x73\164\x72\151str"; $x162="print_\x72"; $x163="i\163\x5f\163t\x72\x69\x6e\x67"; $x164="ti\x6d\x65"; $x165="\x75\x63wo\162\144\x73"; $x166="a\162ra\x79\137pu\163h"; $x167="\x73\x74\x72\x70\157\x73"; $x168="\166\145\x72\163\151on\137co\155\160\x61\x72\145"; $x169="\x69\156\137a\162ra\x79"; $x16a="\x63\145\x69\154"; $x16b="\163\145t\124y\160e"; $x16c="\x73\x70ri\156tf"; $x16d="\x61\162r\x61\x79\x5f\160\157p"; $x16e="\x69\x6e\151\x5f\147e\x74"; $x16f="s\145\164_\x74\151\155\x65\137\154i\155\x69t"; $x170="\x61\x62\x73"; $x171="\x61\162\x72\x61\x79\137\x72\x65ve\x72\163e"; $x172="\163\164\162\x5f\x70a\144"; $x173="\146l\x6f\x6fr"; $x174="u\x73\157\x72\x74"; $x175="\141\x72ra\171_\x73hi\x66\164"; $x176="\x61\162\162ay_\x76\x61\154ue\163"; $x177="st\x72ip_t\x61\x67\x73"; $x178="h\x74m\154\x73\160\145\143ia\x6c\x63ha\x72s"; $x179="\x73\164rrpo\163"; $x17a="\x69\163\137b\x6f\157\x6c"; $x17b="\155\142\x5f\x73t\162\164\157l\157\167er"; $x17c="\x6db_\x73\x74\162\x74o\165p\160\145\x72"; $x37 = $x14e('\\' . $x5e, $x5e, $x37); return $x37; } public function x186($x5f) { $x14b="\x73\164\162\154\145\x6e"; $x14c="i\155\x70l\x6f\144\145"; $x14d="p\x72eg_\x73pl\151t"; $x14e="\x73\164r_\x72\145\160\154\141c\x65"; $x14f="u\164\x66\70_e\x6ecod\x65";
$x150="pr\x65g_\x6d\141\164\143\x68_a\x6c\154"; $x151="\x70\162\x65\147_m\141t\x63\150"; $x152="\162\x74\162\x69\x6d"; $x153="\151\163\x5f\x6e\165ll"; $x154="\163\x74\162\x74\157\x74i\155e"; $x155="\x6eu\x6d\142\145r\x5f\x66\x6f\162m\141\x74"; $x156="\x63\157\165\156\164"; $x157="is\137\156\165\155\x65\162\x69\143"; $x158="\145x\x70l\157\144\x65"; $x159="\x73\x75\142\163\164r"; $x15a="\164r\x69\155"; $x15b="\150t\x6d\x6c\145\x6e\164\x69\164\x69\x65\x73"; $x15c="\x68\164ml_\145\156\x74it\171\x5f\x64\x65\x63od\x65"; $x15d="\x70\x72\x65\147\x5f\162\145\160l\x61c\x65"; $x15e="\x6a\x73o\x6e\x5f\144e\143o\144\145"; $x15f="\151\163_\141r\162\x61\x79"; $x160="s\164\x72\x73tr"; $x161="\163\164\162\151\x73\164r"; $x162="\x70\x72i\x6et\137r"; $x163="i\x73\x5f\x73tr\151\156\x67"; $x164="t\151\x6d\145"; $x165="\165\x63\x77\x6f\162\144s"; $x166="\x61r\162ay\137p\x75\163\x68"; $x167="s\x74\162p\157\x73"; $x168="v\x65\162\x73\x69o\x6e\137\143\x6fm\160a\x72\145"; $x169="i\x6e_\141r\162\x61y"; $x16a="\x63\145i\x6c"; $x16b="setT\171\x70\x65"; $x16c="s\x70\x72\x69n\164\x66"; $x16d="\141\x72ra\171_p\x6f\x70"; $x16e="in\151_ge\164"; $x16f="\x73e\x74_\164i\x6de_\x6c\x69mi\164"; $x170="\x61\x62\163"; $x171="\x61\x72\x72ay\137r\145\x76\145\x72\x73\x65"; $x172="s\x74\x72_\x70ad"; $x173="\x66lo\x6fr"; $x174="\165\x73\x6f\162\164"; $x175="a\162\162a\x79\137\x73\x68i\x66\164"; $x176="\x61\162ra\171\x5fvalue\163"; $x177="\163\x74\x72i\160\x5f\164ag\x73"; $x178="\150t\x6dls\160e\x63\x69a\154\x63ha\x72\163"; $x179="\163t\x72\162\x70\157s"; $x17a="\151\163\x5fb\x6fol"; $x17b="\x6d\142\137\163\x74\x72\x74o\x6c\x6fwe\x72"; $x17c="\155\142\x5f\x73\x74\x72\x74o\165p\160e\162"; if (!$x161($x5f, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$x161($x5f, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x60, $product) { $x14b="\163t\162\154\145n"; $x14c="im\x70\x6co\x64\x65"; $x14d="\x70\162eg\137\163\160l\151t"; $x14e="\x73t\162\137r\x65\160\154\141\x63\x65"; $x14f="\x75\164f\70\x5f\x65\x6e\x63\x6f\x64\x65"; $x150="\x70reg\x5f\x6d\141\x74c\x68\x5f\141\154l"; $x151="\160\162\x65g\x5f\155a\x74\x63\150"; $x152="\x72\164r\151\155"; $x153="\x69\163_n\165l\x6c"; $x154="s\x74\x72\164\x6f\164\x69m\145"; $x155="\156\165m\142\145\x72\x5ff\x6fr\x6d\141\164"; $x156="\143\x6f\165\x6et"; $x157="\151\163\137\156\x75meri\143"; $x158="exp\154\x6f\144e"; $x159="s\165\x62\163tr"; $x15a="t\162\151\155"; $x15b="\150\x74\155\154\145n\x74\x69\x74ies"; $x15c="h\x74m\154_\145\156\164\x69\x74\x79\137de\143\157\144\x65"; $x15d="p\x72\x65\147\137r\145pl\141\143e"; $x15e="\152\163o\156_de\143\x6f\x64e"; $x15f="\x69\163\137\x61r\x72\141y"; $x160="\x73t\x72\163\164r"; $x161="s\x74r\x69\163\164r"; $x162="p\162\x69n\x74_\x72"; $x163="\151s_s\164\162i\x6e\147"; $x164="\164\x69\155\x65"; $x165="\165c\167\x6frd\x73"; $x166="\x61\x72\162a\x79_p\x75\x73h"; $x167="\x73tr\x70\157\x73"; $x168="v\145\162\x73\x69on\137\x63om\160\141\162\145"; $x169="\151n\x5f\141\x72\x72\141\x79"; $x16a="\143\x65\151\x6c"; $x16b="\x73et\x54\171\x70e"; $x16c="s\x70r\151\156t\x66"; $x16d="\141\x72r\x61y\x5f\x70op"; $x16e="\151\x6e\x69_\147\x65\164"; $x16f="\163\145\x74\x5fti\155\145\137\154\151m\x69\x74"; $x170="\x61b\163"; $x171="ar\162\x61\x79\137r\145\166e\x72s\x65"; $x172="\163\164\162_p\141\144"; $x173="\x66\x6c\x6fo\162"; $x174="us\157\x72t"; $x175="\x61\x72\162\141\171\137s\x68\x69\x66\x74"; $x176="\x61\x72\162a\171\x5f\166\x61\154\x75\145\163"; $x177="\x73\x74r\x69\x70\137\x74ag\163"; $x178="\150\x74m\x6cs\x70\x65\x63\151\x61\x6c\x63\x68a\x72\163"; $x179="\x73t\162\162\160\157\163"; $x17a="\151\163_\x62ool"; $x17b="\155\x62_\x73\x74r\164\x6f\x6co\167\x65\x72"; $x17c="\155\x62\x5f\x73\x74\x72\164\157u\x70\x70\x65r"; if (($x60 == "\160a\x72en\164" || $x60 == "\x63\x6f\156f\151gu\x72\x61b\154\145") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x60 == "\160a\x72en\164" || $x60 == "gr\x6f\165ped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x60 == "\160a\x72en\164" || $x60 == "bun\144\154\145") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()];
else { return $product; } } public function skipOptions($x61) { $x14b="\x73\x74rl\x65\x6e"; $x14c="im\160\x6cod\145"; $x14d="pre\x67_\163\x70\x6c\151\164"; $x14e="\163\x74r\x5f\x72\x65\x70\x6c\x61\143\x65"; $x14f="\x75\164\x66\70\x5f\145n\x63\157d\145"; $x150="\x70\162\145\147\137m\141t\x63\x68\x5f\x61l\x6c"; $x151="\160\x72\145\147\137\x6da\164ch"; $x152="\162\164rim"; $x153="\151\163\x5f\x6eu\154l"; $x154="\163\x74\162\164\x6fti\x6d\x65"; $x155="\x6e\165mber\137\146o\162\x6d\x61\x74"; $x156="co\165\x6et"; $x157="\151s\137\x6e\165\155eri\143"; $x158="\145x\160l\x6f\x64\145"; $x159="\x73\x75b\163t\x72"; $x15a="\164r\151\155"; $x15b="html\145n\x74i\x74i\145s"; $x15c="h\x74\155l_\x65nt\151\x74\x79\137\144ec\x6fd\x65"; $x15d="pr\x65\147\137\162\x65p\154\x61ce"; $x15e="\x6ason\137\144e\x63\157\144\145"; $x15f="i\x73_a\x72\x72\141\x79"; $x160="s\164\x72\x73\x74r"; $x161="\163\x74\x72\151s\x74r"; $x162="\160\x72\151nt\137\x72"; $x163="\151\x73\137\x73\164\162i\156\147"; $x164="\164i\155e"; $x165="\x75\143word\x73"; $x166="\141r\162\141\171\137\x70\165\x73h"; $x167="st\x72\160o\163"; $x168="ve\x72\163\x69on_c\157mp\141re"; $x169="\x69\156\x5f\141\x72ray"; $x16a="\x63\145\151l"; $x16b="\163etTy\160e"; $x16c="\163\160\162\151\156\164f"; $x16d="\141\x72\162\x61y\137p\x6f\x70"; $x16e="\x69ni_g\x65\x74"; $x16f="s\145\x74\137\164im\145\x5f\154\x69mi\164"; $x170="\141\142\163"; $x171="\x61\162\162\141\171_\162\145\166\145\x72\163\145"; $x172="\x73\x74\x72\x5f\160\141\x64"; $x173="\146\x6c\157o\x72"; $x174="\x75s\157r\x74"; $x175="\x61rr\141\171\x5f\x73h\151f\164"; $x176="\141\x72ra\171\x5f\x76al\165\145s"; $x177="s\x74r\x69p\137ta\147s"; $x178="\150\x74\x6dl\163\x70\x65\143\151al\143h\x61\162s"; $x179="\x73\164\x72\162\x70\x6f\163"; $x17a="\x69\163\137\142\157\x6f\x6c"; $x17b="\x6db\x5f\x73\164r\164o\x6cowe\162"; $x17c="\155b_\163t\x72t\157\165pp\145\162"; $this->option = $this->option + $x61; } public function generateFile() { $x14b="\163tr\154en"; $x14c="\151\x6d\x70\x6co\144\x65"; $x14d="p\162e\147_\x73\160li\164"; $x14e="s\164r\137\162epl\x61c\145"; $x14f="ut\146\70\137e\156\143\157\x64e"; $x150="\160\162\145\x67\x5fm\141t\143\x68_al\x6c"; $x151="\160r\x65\x67\x5fm\141\x74\143h"; $x152="\162\164\162\x69\x6d"; $x153="\151s\137n\165l\x6c"; $x154="\x73\x74rt\157ti\155e"; $x155="\x6e\x75\x6d\x62\145r_\146\157r\x6d\x61\x74"; $x156="\143\x6fu\x6et"; $x157="is\137n\x75mer\x69\143"; $x158="\145\170\160lo\144e"; $x159="\163\165b\x73t\162"; $x15a="\x74rim"; $x15b="\x68t\x6dl\145n\164\x69t\x69\x65s"; $x15c="\150\164\155\x6c_\x65n\x74\x69\164\171_\144\145\143o\144\145"; $x15d="\160\162\x65\147\137\162\145pl\x61\x63e"; $x15e="j\163\157\x6e\137\x64\145\143\157\144e"; $x15f="\x69\163\137ar\x72\x61\x79"; $x160="st\x72\163\x74r"; $x161="s\x74\162i\x73\164r"; $x162="\160r\x69\x6et\137\162"; $x163="\151\x73\137s\164r\151\156\x67"; $x164="\164\151m\x65"; $x165="u\x63\167\157r\144\x73"; $x166="a\162\162a\x79\x5fp\x75\x73\x68"; $x167="\163t\162\x70\157s"; $x168="ve\x72\x73\151on_\143\x6f\x6d\x70\x61r\145"; $x169="\x69\x6e_a\162\x72\141\171"; $x16a="\143e\x69\x6c"; $x16b="\x73\x65\164\x54y\160\x65"; $x16c="sp\x72i\156t\x66"; $x16d="ar\x72\141\x79\137p\x6f\x70"; $x16e="\x69\x6ei\137g\145t"; $x16f="set\137tim\x65\137l\x69\155\x69t"; $x170="\141bs"; $x171="a\162\x72\x61\x79\x5f\162\145\166\x65\x72\x73e"; $x172="st\162\137\160\141\x64"; $x173="\146\154o\x6fr"; $x174="\165\163o\x72\164"; $x175="\141\x72r\141\171\x5fsh\151\x66t"; $x176="\141\x72\162\141\x79\x5fva\154\x75\x65\x73"; $x177="\x73\x74r\151\160\137ta\x67s"; $x178="h\164\x6dl\x73p\145\143i\x61\154\143\150ar\163"; $x179="\163\x74rr\x70os"; $x17a="\x69\163\137b\x6f\157l";
$x17b="m\x62\x5f\x73\x74\162t\157low\145\162"; $x17c="\x6d\x62\x5fst\x72\164\157\165\160\160er"; ini_set('memory_limit', Mage::getStoreConfig("\144\141t\141f\145\x65\144\x6d\x61na\x67\145\x72/\x73\x79\163\x74e\x6d\x2f\155\145\x6d\x6f\x72y_l\151\155\151t") . 'M'); $this->_debug = (isset($_GET['debug'])) ? true : false; $this->_log = Mage::getStoreConfig("\144ataf\x65\145d\x6d\x61\x6e\x61\x67\x65\162\57s\171\163\x74\x65m\57\x6c\157\x67_e\156\141\142l\x65\144"); if ($this->_debug) { echo "-\x2d\55\55\x2d-\55\x2d--\x2d\55\55\x2d\x2d\x2d\55\x2d--\55\x2d\x2d\x2d--\55\x2d--\55\55-\x2d\x2d\x2d\x2d-\x2d\x2d\55\55\55-\55\55\x3cbr>-\x2d-\x2d\55--\x2d\x2d\55-\55\x20DE\x42U\x47\x20\x4d\x4f\104\105\40\55-\x2d---\55--\55-\x2d\x2d\55\x2d\x2d\x3c\x62r\76--------\55\x2d\55\x2d\x2d\55-\x2d\x2d\x2d-\x2d\55\55\55-\x2d\55-\55\55--\55\55-\55\x2d\55\55-\x2d\55\x2d\x2d---<\x62\x72\76\x3c\142\x72\76"; $x162($x62); } $x63 = $this->_indexPhp; $x64 = array("\141\143" => "\x61\x63tiva\164\x69\157n\137\x63\x6f\x64\x65", "a\153" => "\x61\143\164\x69\166\141\x74\x69\157n\x5f\x6b\x65\171", "\x62\165" => "\142a\x73\145\x5f\165r\x6c", "m\x64" => "\x6d\x64\65", "\x74\x68" => "t\150i\x73", "d\x6d" => "\137d\x65\x6d\157", "\145\x78t" => "\x64\146\x6d", "\166\x65\x72" => "\67.\63\56\62"); $x163(Mage::app()->getRequest()->getParam("st\157\162e_i\x64")) ? $x65 = Mage::app()->getRequest()->getParam("st\157\162e_i\x64") : $x65 = $this->getStoreId(); $x66 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x67 = Mage::getDesign()->getSkinUrl(); $x68 = Mage::getStoreConfig("\x63\x61\x74a\154\157\147\57p\154\x61\x63e\x68o\154d\145\x72/\151\x6da\147\145\137\x70\x6ca\x63\145\x68\x6fld\145\162", $x65); $x69 = Mage::getStoreConfig("\x63\x75\x72r\x65\156\143\x79\x2f\x6f\x70\164\151on\163\57\142\x61\x73\145", $x65); $x6a = Mage::getStoreConfig("\143atalogi\156\x76en\x74ory\x2f\x69t\145\x6d\137o\x70\164\x69on\163/\155an\x61\147e\x5f\x73\164\157\x63\153", $x65); $x6b = Mage::getStoreConfig("\x63\141\x74\x61\154\157\147\151nvent\157\x72\171\57\151\164e\x6d\x5f\x6fp\x74\x69o\156s\x2fb\x61c\x6b\x6f\x72\144\145\162\163", $x65); $x6c = Mage::app()->getStore($x65)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x6d = Mage::getModel('core/store')->load($x65)->getBaseUrl(); $x6e = Mage::app()->getStore($x65)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x6f = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x65); $x70 = Mage::app()->getStore($x65)->getRootCategoryId(); $x71 = array( "\x61\143\164\x69\166\141\x74\x69\157n\x5f\x6b\x65\171" => Mage::getStoreConfig("\144\141\164\141\x66\x65e\x64\x6d\141\x6e\141ge\x72\57\154\151\x63e\156\x73\x65\x2f\141c\164iv\x61t\151\157\156_k\145y"), "\x61\x63tiva\164\x69\157n\137\x63\x6f\x64\x65" => Mage::getStoreConfig("\x64\x61\x74\x61feedm\141\156\x61\147\145r\x2f\x6c\151\143\x65\156se\57\141c\x74\x69v\x61ti\157\x6e\x5f\x63o\x64\x65"), "\142a\x73\145\x5f\165r\x6c" => Mage::getStoreConfig("\x77\x65\x62\x2f\163\x65c\x75\162e\x2f\142a\163\145\137u\162l"), ); $x163(Mage::app()->getRequest()->getParam("f\145e\x64\137\x70r\157du\x63t")) ? $x72 = Mage::app()->getRequest()->getParam("f\145e\x64\137\x70r\157du\x63t") : $x72 = $this->getFeed_product(); $x163(Mage::app()->getRequest()->getParam("fe\145\144\137h\x65\141\144e\162")) ? $x5f = Mage::app()->getRequest()->getParam("fe\145\144\137h\x65\141\144e\162") : $x5f = $this->getFeed_header(); $x163(Mage::app()->getRequest()->getParam("f\145\145d_fo\x6fte\x72")) ? $x73 = Mage::app()->getRequest()->getParam("f\145\145d_fo\x6fte\x72") : $x73 = $this->getFeed_footer(); $x163(Mage::app()->getRequest()->getParam("fe\145\x64\x5ft\171p\x65")) ? $x74 = Mage::app()->getRequest()->getParam("fe\145\x64\x5ft\171p\x65") : $x74 = $this->getFeed_type(); $x163(Mage::app()->getRequest()->getParam("f\145\145d\x5fe\x78\x74\162ahe\141\144er")) ? $x75 = Mage::app()->getRequest()->getParam("f\145\145d\x5fe\x78\x74\162ahe\141\144er") : $x75 = $this->getFeed_extraheader(); $x163(Mage::app()->getRequest()->getParam("\x66\145\x65\x64\137\x65\170t\x72\x61fo\157\164e\x72")) ? $x76 = Mage::app()->getRequest()->getParam("\x66\145\x65\x64\137\x65\170t\x72\x61fo\157\164e\x72") : $x76 = $this->getFeed_extrafooter(); $x163(Mage::app()->getRequest()->getParam("f\x65\x65\144\137\151\x6ec\154\x75\144\x65\137\x68\145ad\x65r")) ? $x77 = Mage::app()->getRequest()->getParam("f\x65\x65\144\137\151\x6ec\154\x75\144\x65\137\x68\145ad\x65r") : $x77 = $this->getFeed_include_header(); $x163(Mage::app()->getRequest()->getParam("\146\x65ed\137\163\x65\x70\141\x72\x61\x74o\x72")) ? $x5a = Mage::app()->getRequest()->getParam("\146\x65ed\137\163\x65\x70\141\x72\x61\x74o\x72") : $x5a = $this->getFeed_separator(); $x163(Mage::app()->getRequest()->getParam("f\x65\x65\144\137p\162o\164e\x63to\162")) ? $x5b = Mage::app()->getRequest()->getParam("f\x65\x65\144\137p\162o\164e\x63to\162") : $x5b = $this->getFeed_protector(); $x163(Mage::app()->getRequest()->getParam("\146\x65\x65\144\x5f\x65\x73c\x61\160\145")) ? $x5c = Mage::app()->getRequest()->getParam("\146\x65\x65\144\x5f\x65\x73c\x61\160\145") : $x5c = $this->getFeed_escape(); $x163(Mage::app()->getRequest()->getParam("\146\x65\145d\137\x73\x61\x74\x75\163")) ? $x78 = Mage::app()->getRequest()->getParam("\146\x65\145d\137\x73\x61\x74\x75\163") : $x78 = $this->getFeed_status(); $x163(Mage::app()->getRequest()->getParam("fee\x64_e\x6e\143\154\157se_\144a\x74a")) ? $x79 = Mage::app()->getRequest()->getParam("fee\x64_e\x6e\143\154\157se_\144a\x74a") : $x79 = $this->getFeed_enclose_data(); $x163(Mage::app()->getRequest()->getParam("f\x65\145d\137c\154\145a\156_\144a\164\x61")) ? $x7a = Mage::app()->getRequest()->getParam("f\x65\145d\137c\154\145a\156_\144a\164\x61") : $x7a = $this->getFeed_clean_data(); $x163(Mage::app()->getRequest()->getParam("d\141\x74\x61\146\145e\x64ma\156a\x67\x65\x72\137\143\141t\145g\x6fr\151\x65\x73")) ? $x7b = $x15e(Mage::app()->getRequest()->getParam("d\141\x74\x61\146\145e\x64ma\156a\x67\x65\x72\137\143\141t\145g\x6fr\151\x65\x73")) : $x7b = $x15e($this->getDatafeedmanagerCategories()); $x163(Mage::app()->getRequest()->getParam("d\x61t\x61\146\x65e\x64m\x61\156\141g\x65\x72\x5fc\x61\x74ego\x72\x79_\x66\x69\x6cte\162")) ? $x7c = Mage::app()->getRequest()->getParam("d\x61t\x61\146\x65e\x64m\x61\156\141g\x65\x72\x5fc\x61\x74ego\x72\x79_\x66\x69\x6cte\162") : $x7c = $this->getDatafeedmanagerCategoryFilter(); $x163(Mage::app()->getRequest()->getParam("d\141\x74\x61\146\145e\x64ma\156a\x67\x65\x72\137\143\141t\145g\x6fr\151\x65\x73")) ? $x62 = Mage::app()->getRequest()->getParam("d\141\x74\x61\146\145e\x64ma\156a\x67\x65\x72\137\143\141t\145g\x6fr\151\x65\x73") : $x62 = $this->getDatafeedmanagerCategories(); $x163(Mage::app()->getRequest()->getParam("f\x65\x65\x64\137\x65nc\157\144\x69ng")) ? $this->_feed_encoding = Mage::app()->getRequest()->getParam("f\x65\x65\x64\137\x65nc\157\144\x69ng") : $this->_feed_encoding = $this->getFeed_encoding(); $x7d = $this->getFtpEnabled(); $x7e = $this->getUseSftp(); $x7f = $this->getFtpHost(); $x80 = $this->getFtpLogin(); $x81 = $this->getFtpPassword(); $x82 = $this->getFtpDir(); $x83 = $this->getFtpActive(); $x84 = Array(); $x85 = Array(); if ($x62 != '*' && $x15f($x7b)) { foreach ($x7b as $x86) { if ($x86->checked) $x84[] = $x86->line; } foreach ($x7b as $x86) { if ($x86->mapping != "") $x85[$x86->line] = $x86->mapping; } } if ($x156($x84) < 1) { $x84[] = '*'; } $x163(Mage::app()->getRequest()->getParam("dat\x61\x66\145\x65\x64ma\156\141g\x65\x72_t\x79\160\x65_\151\144\x73")) ? $x87 = $x158(',', Mage::app()->getRequest()->getParam("dat\x61\x66\145\x65\x64ma\156\141g\x65\x72_t\x79\160\x65_\151\144\x73")) : $x87 = $x158(',', $this->getDatafeedmanagerTypeIds()); $x163(Mage::app()->getRequest()->getParam("\144\141\x74\x61f\145\145\144\155\x61\x6ea\x67\x65r\x5f\x76\x69\x73i\142i\154i\164\171")) ? $x88 = $x158(',', Mage::app()->getRequest()->getParam("\144\141\x74\x61f\145\145\144\155\x61\x6ea\x67\x65r\x5f\x76\x69\x73i\142i\154i\164\171")) : $x88 = $x158(',', $this->getDatafeedmanagerVisibility()); $x163(Mage::app()->getRequest()->getParam("\144a\164\x61\146\145e\x64\155\x61\156age\x72_\141t\164\162i\142ut\145\137\163e\164s")) ? $x89 = $x158(',', Mage::app()->getRequest()->getParam("\144a\164\x61\146\145e\x64\155\x61\156age\x72_\141t\164\162i\142ut\145\137\163e\164s")) : $x89 = $x158(',', $this->getDatafeedmanagerAttributeSets()); $x163(Mage::app()->getRequest()->getParam("d\141\164af\145\x65\144\155an\141g\145\162_a\x74\x74\162\x69\x62ut\x65\x73")) ? $x8a = $x15e(Mage::app()->getRequest()->getParam("d\141\164af\145\x65\144\155an\141g\145\162_a\x74\x74\162\x69\x62ut\x65\x73")) : $x8a = $x15e($this->getDatafeedmanagerAttributes()); if ($this->_log) Mage::log("\x0a\x3e>>\x3e\x3e\x3e>\x3e\76>\x3e\76>>\x3e\x3e\76\76\x3e>>\76>\x3e\x3e>>>>>\x3e>>\x3e\x3e>\x3e\x3e\x3e>\x3e\76\76>\x3e\76\x20\55\x2d\x2d\x2d-\55\x2d\x2d\55--\55\55\55\55\40\123\124A\x52T \120ROC\x45SS F\117R " . strtoupper($this->getFilename(false)) . "--\x2d-----\x2d\55\55-\x2d-\55-\x2d", null, $this->getFilename('.log')); if ($x71[$x64['ac']] != $x64["m\x64"]($x64["m\x64"]($x71[$x64['ak']]) . $x64["m\x64"]($x71[$x64['bu']]) . $x64["m\x64"]($x64["\145\x78t"]) . $x64["m\x64"]($x64["\166\x65\x72"]))) { $$x64["\145\x78t"] = "\x76\x61\154\151d"; $$x64["\x74\x68"]->$x64["d\x6d"] = true; } else { $$x64["\x74\x68"]->$x64["d\x6d"] = false; $$x64["\145\x78t"] = "\x76\x61\154\151d"; } if (!$x78 && !$this->_display) Mage::throwException(Mage::helper("d\141\164a\146\x65\145d\155ana\147\x65\162")->__("\x54\x68\x65 data fee\144 \x63\x6fnfi\147\x75rat\x69o\156\x20\x6du\163\164 \142\145 \x65\x6e\141\x62l\145\x64\40\x69\156\40\x6f\x72\x64\145\162\x20\164\x6f\40\x67e\156\145\162at\145\40\x61\x20f\x69le\x2e")); Mage::dispatchEvent( 'datafeedmanager_before_generate', array('datafeed' => $this) ); $this->_timestamp = $this->_timestamp = Mage::getModel('core/date')->timestamp($x164()); $x3b = new Varien_Io_File(); $x3b->setAllowCreateFolders(true); if (!$this->_display) { $x3b->open(array('path' => $this->getPath())); if ($x3b->fileExists($this->getFilename()) && !$x3b->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())); } $x3b->streamOpen($this->getFilename()); if ($this->_log) Mage::log("\x0a\76\x3e\76>\76\x3e>>\76\76\x3e\76>\76>\x3e\76\76\76>\x3e\x3e\76>\x3e\76\76\76\76\76\76>\76\x3e\76\x3e\x3e\76\x3e>>\x3e\x3e\76>\x3e\40" . $this->getFilename() . "\x20c\x72\x65a\x74\145d\40\x61\x6e\x64\40\157p\145\x6ee\x64", null, $this->getFilename('.log')); } if (!isset($$x64["\145\x78t"]) || $$x64["\x74\x68"]->$x64["d\x6d"]) { $$x64["\x74\x68"]->$x64["d\x6d"] = true; return $$x64["\x74\x68"]; } $x8b = ''; $x8c = ''; header("\x43\157n\x74e\x6et\55\x54\x79\160e\72\x20\x74e\x78\x74\x2f\150t\155\154\x3b\x20cha\162\163\145t\x3d\x75t\x66\55\70"); $x37 = '/{([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)?([^}|]*))?}/'; $x150($x37, $x72, $x38); foreach ($x38[6] as $x39 => $x8d) { if ($x8d != "") { $x38[0][] = $x38[0][$x39]; $x38[1][] = $x8d; $x38[2][] = $x38[7][$x39]; $x38[3][] = $x38[8][$x39]; ; $x38[4][] = $x38[9][$x39]; ; } } foreach ($x38[11] as $x39 => $x8d) { if ($x8d != "") { $x38[0][] = $x38[0][$x39]; $x38[1][] = $x8d; $x38[2][] = $x38[7][$x39]; $x38[3][] = $x38[8][$x39]; ; $x38[4][] = $x38[9][$x39]; ; } } foreach ($x38[16] as $x39 => $x8d) { if ($x8d != "") { $x38[0][] = $x38[0][$x39]; $x38[1][] = $x8d; $x38[2][] = $x38[7][$x39]; $x38[3][] = $x38[8][$x39]; ; $x38[4][] = $x38[9][$x39]; ; } } $x38[0][] = "{\143\141t\x65\x67\157\162\151\x65s\54\x5b\61\x5d\54[\61\135\54\x5b\61\135\175"; $x38[1][] = "cat\145\147\x6fr\151\x65\x73"; $x38[2][] = "";
$x38[3][] = "\x2c[\61\135,[\61]\54\133\61\x5d"; $x8e = array(); $attributesRequired = array(); foreach ($x38[1] as $x39 => $x8d) { $x8e[$x39]['methodName'] = "\147\x65t" . $x14e(' ', '', $x165($x15a($x8d)) . '()'); $x8e[$x39]['pattern'] = "\173" . $x15a($x8d) . "\x7d"; $x8e[$x39]['fullpattern'] = $x38[0][$x39]; $x8e[$x39]['name'] = $x15a($x8d); $x8e[$x39]['reference'] = $x15a($x38[2][$x39]); if (empty($x8e[$x39]['reference'])) $x8e[$x39]['reference'] = 'self'; switch ($x8e[$x39]['name']) { case 'url': $x166($attributesRequired, 'url_key'); break; case 'uri': $x166($attributesRequired, 'url_key'); break; case 'G:IMAGE_LINK': $x166($attributesRequired, 'image'); $x166($attributesRequired, 'small_image'); $x166($attributesRequired, 'thumbnail'); break; case 'SC:IMAGES': $x166($attributesRequired, 'image'); $x166($attributesRequired, 'small_image'); $x166($attributesRequired, 'thumbnail'); break; case 'SC:DESCRIPTION': $x166($attributesRequired, 'description'); $x166($attributesRequired, 'short_description'); $x166($attributesRequired, 'manufacturer'); $x166($attributesRequired, 'name'); $x166($attributesRequired, 'sku'); break; case 'SC:EAN': $x166($attributesRequired, 'ean'); break; case 'SC:URL': $x166($attributesRequired, 'url_key'); $x166($attributesRequired, 'url'); break; case 'sc:images': $x166($attributesRequired, 'image'); $x166($attributesRequired, 'small_image'); $x166($attributesRequired, 'thumbnail'); break; case 'sc:description': $x166($attributesRequired, 'description'); $x166($attributesRequired, 'short_description'); $x166($attributesRequired, 'manufacturer'); $x166($attributesRequired, 'name'); $x166($attributesRequired, 'sku'); break; case 'sc:ean': $x166($attributesRequired, 'ean'); break; case 'sc:url': $x166($attributesRequired, 'url_key'); $x166($attributesRequired, 'url'); break; default : $x166($attributesRequired, $x8e[$x39]['name']); } include(Mage::getBaseDir() . "\x2f\141pp\57\x63\x6f\144\x65/l\157\x63al\x2fWyo\155in\x64\x2f\x44\x61t\x61\x66\145\145\144m\x61\x6e\141\147\x65\x72\57\x6d\x79\x52\x65qu\151\162e\144At\x74\x72\x69\142\165t\145\163\x2e\x70h\x70"); $x8e[$x39]["\x76\x61lu\x65"] = '$product->get' . $x8e[$x39]['name'] . "(\51"; $x8e[$x39]["\147e\164\124e\x78\x74"] = 'getAttributeText(\'' . $x15a($x8d) . '\')'; $x8f = '/\[([^\]]+)\]/'; $x150($x8f, $x38[3][$x39], $x90); $x8e[$x39]["\x6f\x70\164\x69\x6fn\x73"] = $x90[1]; } if ($this->_debug) { echo "\x3c\x62\162>\74b\x72\76-\x2d--\x2d-\x2d-\x2d\55-\55\x20\101T\x54RIBUT\105\x53\x20\122\105Q\x55\111\x52E\104\40-\x2d\55\55\55\55\55\x2d\x2d-\x2d-\55\55-\55\74\142\162>"; $x162($x8e); } $x91 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x65) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x62 = array(); foreach ($x91 as $x92) { $x62[$x92->getId()]['name'] = $x92->getName(); $x62[$x92->getId()]['path'] = $x92->getPath(); $x62[$x92->getId()]['level'] = $x92->getLevel(); $x93 = $x92->getUrl(); if ($x167($x93, "\77")) { $x62[$x92->getId()]['url'] = $x159($x93, 0, $x167($x93, "\77")); } else { $x62[$x92->getId()]['url'] = $x93; } if ($x168(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("\144\x61\164\141f\145\145\x64m\x61\156\x61\147e\162/sys\x74\145\155/\x69n\x63l\x75\x64\145_\151n\x5f\x6d\145\156\165")) $x62[$x92->getId()]['include_in_menu'] = true; else $x62[$x92->getId()]['include_in_menu'] = $x92->getIncludeInMenu(); } if ($this->_debug) { echo "\74\x62\162>\x3c\x62r>--\55--\x2d\x2d-\x2d-\x2d\x2d\x20\x43\101TE\107\x4f\x52I\105S\x20-\55\x2d-\55--\55\55\x2d\x2d\55\x2d\x2d\55\55\x3c\142\162\x3e"; $x162($x62); } if ($this->_log) Mage::log("\x0a>\x3e\x3e>\76\x3e\x3e\76>>\76\76\x3e>\76>>\x3e\x3e\76\76\76>\76>\76\x3e>\x3e\76\x3e>>\x3e>\x3e\76>\76\76>\x3e>\x3e\x3e\76 Pr\x6f\x64\x75c\x74 \164\145m\x70\154\141\x74\145\x20\141\156\x61\x6c\171z\145\x64", null, $this->getFilename('.log')); $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $x96 = $x94->getTableName('eav_entity_type'); $x97 = $x95->select()->from($x96)->where('entity_type_code=\'catalog_product\''); $x55 = $x95->fetchAll($x97); $x98 = $x55[0]['entity_type_id']; $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $x99 = $x94->getTableName('directory_currency_rate'); $x97 = $x95->select()->from($x99)->where('currency_from=\'' . $x69 . '\''); $x45 = $x95->fetchAll($x97); $x9a = array(); foreach ($x45 as $x44) { $x9a[$x44['currency_to']] = $x44['rate']; } $this->_currencies = $x9a; if ($this->_debug) { echo "\x3c\142\162\x3e\x3c\142r>-\x2d\x2d\55\x2d---\55\x2d\55\x2d\40C\x55\x52\122\105\x4eC\111E\x53\40\x2d\55-\55-\55\x2d\55-\x2d\x2d-\x2d\x2d-\55\x3c\x62\162>"; $x162($x9a); } if ($this->_log) Mage::log("\x0a\x3e>>\76\x3e\x3e\76\76>\76>\x3e\x3e>\76>\x3e\76\76\x3e>>>>>\76\76\x3e>\x3e>>>>\x3e>>\76\76>\x3e\76>\x3e\x3e\76\x20\103ur\162e\156\143i\x65\x73\x20\x72a\x74\x65\40\x63ol\x6ce\143\164\145\144", null, $this->getFilename('.log')); $x9b = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x98) ->addSetInfo() ->getData(); $x9c = array(); $x9d = array(); foreach ($x9b as $x39 => $x8d) { if ($x169($x8d['attribute_code'], $attributesRequired)) { $x166($x9c, $x8d['attribute_code']); $x9d[$x8d['attribute_code']] = $x8d['frontend_input']; } } if ($x156($x9c) > $this->_max_attribute) { $x9e = false; } else { $x9e = true; } if (!$x169('special_price', $x9c)) $x9c[] = 'special_price'; if (!$x169('special_from_date', $x9c)) $x9c[] = 'special_from_date'; if (!$x169('special_to_date', $x9c)) $x9c[] = 'special_to_date'; if (!$x169('price_type', $x9c)) $x9c[] = 'price_type'; if (!$x169('price', $x9c)) $x9c[] = 'price'; $x9c[] = 'tax_class_id'; foreach ($x8a as $x9f) { if (!$x169($x9f->code, $x9c) && $x9f->checked) if (!$x169($x9f->code, array("\x69\163\137\x69n_\163t\157\x63\153", "q\164\x79", "\x65\156\164\x69\164y\137id", "\143re\x61\x74\145d\137\141\x74", "\x75p\x64\x61\x74e\144\137\141\x74"))) $x9c[] = $x9f->code;
} if ($this->_debug) { echo "<b\162\76\x3c\142r>\x2d-\55\55\55\55-\55\x2d\55\x2d\55 \x41\x54T\x52\111\102UT\x45\x53 -\55\x2d-\x2d\x2d-\x2d-\x2d\55\x2d-\x2d\55-\74\142\162\76"; $x162($x9c); } if ($this->_log) Mage::log("\x0a>>\x3e\x3e\x3e>>\x3e\x3e>>>\x3e\x3e>\x3e\x3e\76\x3e\x3e\76>\x3e\76>>\x3e\76\76>\x3e\76\76\x3e\76>\x3e\76>\x3e\x3e>\x3e\76>> \x4c\x69\x73\x74 \x6f\146\x20r\x65\161\165i\162\145\x64 at\164\x72\x69\142\165\164\x65\163\x20\x63\x6f\x6c\154\145\x63\164\x65\x64", null, $this->getFilename('.log')); $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $xa0 = $x94->getTableName('eav_attribute_option_value'); $x97 = $x95->select(); $x97->from($xa0); $x97->where("\x73\164\x6f\x72\x65_\x69\144\x3d" . $x65 . ' OR store_id=0'); $x97->order(array('option_id', 'store_id')); $xa1 = $x95->fetchAll($x97); foreach ($xa1 as $xa2) { $xa3[$xa2['option_id']][$xa2['store_id']] = $xa2['value']; } if ($this->_debug) { echo "\x3c\142\x72\x3e<\x62\x72\x3e--\55\x2d--\55-\x2d\x2d\x2d-\40\101T\x54\122\x49\x42\x55\x54E\123\40\x4cA\102EL \x2d\55\55--\55\55\55\x2d\55\55\55\x2d--\x2d<\x62\x72\x3e"; $x162($xa3); } if ($this->_log) Mage::log("\x0a\76\x3e>\x3e>\x3e>\x3e>\76\x3e\x3e\x3e\76>\x3e>\76\76\x3e>\x3e\76\x3e\x3e\x3e\x3e>\76\76\x3e\x3e>>\x3e\76>>\76>\76\76\x3e>\x3e\x3e \x4c\151\163\x74\40\157f \141\x74\x74\162i\142\165t\x65\40\x6ca\142e\x6c\163\x20c\157\x6c\x6cec\x74\145\144", null, $this->getFilename('.log')); $xa4 = $x94->getTableName('tax_class'); $xa5 = $x94->getTableName('tax_calculation'); $xa6 = $x94->getTableName('tax_calculation_rate'); $xa7 = $x94->getTableName('directory_country_region'); $xa8 = $x94->getTableName('customer_group'); $x97 = $x95->select(); $x97->from($xa4)->order(array('class_id', 'tax_calculation_rate_id')); $x97->joinleft(array('tc' => $xa5), 'tc.product_tax_class_id = ' . $xa4 . '.class_id', 'tc.tax_calculation_rate_id'); $x97->joinleft(array('tcr' => $xa6), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x97->joinleft(array('dcr' => $xa7), 'dcr.region_id=tcr.tax_region_id', 'code'); $x97->joinInner(array('cg' => $xa8), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); $xa9 = $x95->fetchAll($x97); $x49 = array(); $x3f = ''; foreach ($xa9 as $xaa) { if ($x3f != $xaa['class_id']) $xab = 0; else { $xab++; } $x3f = $xaa['class_id']; $x49[$xaa['class_id']][$xab]['rate'] = $xaa['rate']; $x49[$xaa['class_id']][$xab]['code'] = $xaa['code']; $x49[$xaa['class_id']][$xab]['country'] = $xaa['tax_country_id']; } $this->_rates = $x49; if ($this->_debug) { echo "\74\x62\x72\76<\142\162\x3e\x2d\55--\x2d\x2d\55\x2d--\x2d\x2d\x20\x54AX\40\x43L\x41\x53\x53\40\55\x2d\55-\x2d\x2d\55\55\55-\x2d\x2d\x2d\x2d\55\x2d\x3c\142\162\x3e"; $x162($x49); } if ($this->_log) Mage::log("\x0a>>\x3e\76\x3e\x3e\76\x3e\76\76>\x3e>\76\x3e>>\76\76\76\76\76\76\76>\x3e>\x3e>\x3e\x3e\76\x3e\76\x3e\x3e\76\76\x3e\x3e>\x3e\x3e>>\x3e Ta\x78\x20\x72\141te\40co\154\154\x65c\x74\x65\x64", null, $this->getFilename('.log')); $xac = $x94->getTableName('review'); $xad = $x94->getTableName('review_store'); $xae = $x94->getTableName('rating_option_vote'); $xaf = $x95->select()->distinct('review_id'); $xaf->from(array("\x72" => $xac), array("\x43O\125\116T\50DI\123\124\x49\x4e\x43T\x20\162\x2er\x65\x76\x69\x65w_id\51 \x41S\x20\x63\157un\164", 'entity_pk_value')); $xaf->joinleft(array('rs' => $xad), 'rs.review_id=r.review_id', 'rs.store_id'); $xaf->joinleft(array('rov' => $xae), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $xaf->where("\163\164\x61t\x75\163_\151\144=\61 \141\156d en\164it\171\137\151\144\x3d\61"); $xaf->group(array('r.entity_pk_value', 'rs.store_id')); $xb0 = $x95->select(); $xb0->from(array("\x72" => $xac), array("\x43O\125\116T\50DI\123\124\x49\x4e\x43T\x20\162\x2er\x65\x76\x69\x65w_id\51 \x41S\x20\x63\157un\164", 'entity_pk_value', "\x28SELE\103T\x200\x29\x20\101S\x20 \x73\x74o\162\x65\137\x69\144")); $xb0->joinleft(array('rs' => $xad), 'rs.review_id=r.review_id', array()); $xb0->joinleft(array('rov' => $xae), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $xb0->where("\163\164\x61t\x75\163_\151\144=\61 \141\156d en\164it\171\137\151\144\x3d\61"); $xb0->group(array('r.entity_pk_value')); $x97 = $x95->select() ->union(array($xaf, $xb0)); $x97->order(array('entity_pk_value', 'store_id')); $xb1 = $x95->fetchAll($x97); $xb2 = array(); foreach ($xb1 as $xb3) { $xb2[$xb3['entity_pk_value']][$xb3['store_id']]["\143\157\x75\x6e\164"] = $xb3["\143\157\x75\x6e\164"]; $xb2[$xb3['entity_pk_value']][$xb3['store_id']]['score'] = $xb3['score']; } if ($this->_log) Mage::log("\x0a>\x3e\76>\76>>\76\x3e\x3e\76\x3e\76\76>\x3e\x3e\76>\x3e\76\x3e\76\76\x3e>\x3e\x3e\76\x3e>\x3e\76\76\x3e>\x3e>\76\x3e\x3e\x3e\76\76\76\76\40Re\x76i\145\167\x73 \143\x6f\x6c\154\145\x63\164ed", null, $this->getFilename('.log')); $x94 = Mage::getSingleton('core/resource'); $x95 = $x94->getConnection('core_read'); $xb4 = $x94->getTableName('catalog_product_entity_media_gallery'); $xb5 = $x94->getTableName('catalog_product_entity_media_gallery_value'); $x97 = $x95->select(array("D\x49S\x54I\x4e\103T\x20v\141l\165e")); $x97->from($xb4); $x97->joinleft(array('cpemgv' => $xb5), 'cpemgv.value_id = ' . $xb4 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x97->where("v\x61\x6c\165\145\74>\124\x52\x49\115(\47'\x29\40\101\x4e\104\x20\x28\163\164\157\162e\137i\144=" . $x65 . ' OR store_id=0)'); $x97->order(array('position', 'value_id')); $xb6 = $x95->fetchAll($x97); foreach ($xb6 as $xb7) { if ($xb7['disabled'] != 1 && $xb7['value'] != '') { $xb8[$xb7['entity_id']]['src'][] = $xb7['value']; $xb8[$xb7['entity_id']]['disabled'][] = $xb7['disabled']; } } if ($this->_debug) { echo "<\142\x72><\142\162>\x2d\55-\55\x2d\55\55\x2d\x2d-\55-\x20\111\x4d\101\x47E\x53 --\55\55\x2d-\55\x2d\55--\55\x2d-\x2d\x2d\x3c\142\162\x3e"; $x162($xb8); } if ($this->_log) Mage::log("\x0a\76>>>\76\x3e\x3e>>\76\76\76\76\x3e\x3e>>\76>\x3e\x3e>>\76\76>\76>\76\x3e>>\x3e>\76\76\x3e>\76>\76>\76>>>\40\111\x6d\141g\145\x73\40co\154\x6c\145c\164\145d", null, $this->getFilename('.log')); Mage::app()->setCurrentStore($x65); $xb9 = $x94->getTableName("\143\x61\164\x61\x6c\x6f\147\x69n\x76e\156\x74\157\x72y_\163\164\x6fc\x6b_\151\164\x65\x6d"); $xba = $x94->getTableName("\143\157\162\x65_u\162\x6c\x5fr\145\167\162i\x74\x65"); $xbb = $x94->getTableName("en\164\145\162\x70\x72\151s\145\137\165r\154\137\x72\x65w\162\x69t\x65"); $xbc = $x94->getTableName('catalog_product_entity_url_key'); $x99 = $x94->getTableName('catalog_category_product'); $xbd = $x94->getTableName('catalog_category_product_index'); $xbe = $x94->getTableName('catalog_product_index_price'); $xbf = $x94->getTableName('catalog_product_super_link'); $xc0 = $x94->getTableName('catalog_product_link'); $xc1 = $x94->getTableName('catalog_product_bundle_selection'); ($x168(Mage::getVersion(), '1.6.0', '<')) ? $x90 = "\x6fp\x74\151\x6fn\163\75'\x27" : $x90 = "\x49\123NU\114\x4c\x28\x6f\160ti\157\x6e\x73)"; switch (Mage::getStoreConfig("\x64\x61\x74\x61\x66\x65\145d\x6da\x6e\x61\147\145r/\163\171\163\164em\57\x75\x72\x6cr\145\167\x72\x69t\x65")) { case 1 : $xc2 = "\101\x4e\x44\40\165\x72l\x2e\x74arge\164\137\x70\x61t\x68 \x4e\x4fT\40L\111\x4b\x45\40'\45cat\145\x67o\162\171\x25\47"; $xc3 = 'MAX'; break; default : $xc2 = "\101N\104 \x75rl.t\141\x72g\145t_pa\x74\150 \114\111K\x45 \x27\x25\143a\x74e\x67\x6f\x72y\x25\x27"; $xc3 = 'GROUP_CONCAT'; break; break; } $xc4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("\144\x61t\x61\x66e\145\x64m\141\x6eage\x72\x2fs\171\x73t\145\155\57d\151\163ab\154\x65d")) $xc4->addFieldToFilter("\x73\x74\141\x74\165\163", array('gteq' => 1)); else $xc4->addFieldToFilter("\x73\x74\141\x74\165\163", 1); $xc4->addAttributeToFilter('type_id', array("i\156" => "\x63\x6f\156f\151gu\x72\x61b\154\145")); $xc4->addAttributeToFilter('visibility', array("\x6e\151\156" => 1));
$xc4->addAttributeToSelect($x9c, $x9e); $xc4->getSelect()->joinLeft($xbf . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $xc4->getSelect()->joinLeft($xb9 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', "\x6d\151\156\137\x71ty" => "\x6d\151\156\137\x71ty", "\x6d\151\x6e_\163\x61l\145\137\x71\x74y" => "\x6d\151\x6e_\163\x61l\145\137\x71\x74y")); if ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url', 'url.value_id=url_key.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url', 'url.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } $xc4->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); $xc4->getSelect()->joinLeft($xbd . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xc5 = 0; $xc6 = clone $xc4; $xc6->getSelect()->columns("CO\x55\116\x54\x28\104\x49\123T\x49\x4eCT \143\x70\x73\154\x2e\160\141\x72\145n\164\x5fid\51 A\x73 \164\x6f\x74a\154")->group('e.entity_type_id'); ; $xc7 = $xc6->getFirstItem()->getTotal(); $xc8 = $x16a($xc7 / $this->_sqlSize); while ($xc5 < $xc8) { $xc9 = clone $xc4; $xc9->getSelect()->group(array('cpsl.parent_id')); $xc9->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc5)); if ($this->_sqlSize * ($xc5 + 1) > $xc7) $xca = $xc7; else $xca = $this->_sqlSize * $xc5; $xc5++; foreach ($xc9 as $xcb) { foreach ($x158("\54", $xcb->getChildIds()) as $xcc) { $xcd[$xcc] = $xcb; $xce[$xcc]['categories_ids'] = $xcb->getCategories_ids(); $xce[$xcc]['parent_id'] = $xcb->getId(); $xce[$xcc]['parent_sku'] = $xcb->getSku(); $xce[$xcc]['parent_request_path'] = $xcb->getRequestPath(); } } if ($this->_log) Mage::log("\x0a\76\76\x3e\76\x3e>>\76>\x3e>\76\76>>\76\76>\76\x3e\76\x3e\x3e\76\x3e\76>\x3e\x3e\x3e\x3e>\76\x3e\x3e>\x3e>\x3e>\x3e\x3e\x3e\76>\x3e\x20\106\x65\164\143\150i\156g \x63o\x6e\x66\x69\147\x75\162\141\x62\154\145\x20p\162\x6fduct\x73\x20\x66\x72om\40" . ($this->_sqlSize * ($xc5 - 1) + 1) . "\40\164\157\40" . $xca, null, $this->getFilename('.log')); } $this->configurable = $xcd; if ($this->_debug) { echo "\74\x62\162>\x3cbr>\55\x2d\55\x2d\55\55-\55\x2d\55\55\x2d\40\103\x4fN\x46I\x47U\122\101\x42LE\123 \x2d\55-\x2d\x2d\x2d\55\x2d\55--\x2d\x2d\55\55\x2d\x3cb\162>"; echo $xc4->getSelect() . '<br><br>'; $x162($xce); } $xc4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("\144\x61t\x61\x66e\145\x64m\141\x6eage\x72\x2fs\171\x73t\145\155\57d\151\163ab\154\x65d")) $xc4->addFieldToFilter("\x73\x74\141\x74\165\163", array('gteq' => 1)); else $xc4->addFieldToFilter("\x73\x74\141\x74\165\163", 1); $xc4->addAttributeToFilter('type_id', array("i\156" => "\x63\x6f\156f\151gu\x72\x61b\154\145")); $xc4->addAttributeToFilter('visibility', array("\x6e\151\156" => 1)); $xc4->getSelect()->joinLeft($xbf . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $xc4->getSelect()->joinLeft($xb9 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); $xcf = array(); $xc5 = 0; $xc6 = clone $xc4; $xc6->getSelect()->columns("CO\x55\116\x54\x28\104\x49\123T\x49\x4eCT \143\x70\x73\154\x2e\160\141\x72\145n\164\x5fid\51 A\x73 \164\x6f\x74a\154")->group('e.entity_type_id'); ; $xc7 = $xc6->getFirstItem()->getTotal(); $xc8 = $x16a($xc7 / $this->_sqlSize); while ($xc5 < $xc8) { $xc9 = clone $xc4; $xc9->getSelect()->group(array('cpsl.parent_id')); $xc9->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xc5)); if ($this->_sqlSize * ($xc5 + 1) > $xc7) $xca = $xc7; else $xca = $this->_sqlSize * $xc5; $xc5++; foreach ($xc9 as $xd0) { $xcf[$xd0->getId()] = $xd0->getQty(); } if ($this->_log) Mage::log("\x0a\76>>>\76>\76>\76\76\x3e>\x3e>\76\76\x3e>>\x3e\76\x3e>>\76>>>\76>\x3e\x3e>\x3e>\x3e>\76>\76>\x3e\x3e\x3e>\76\40F\145\164\x63hing\x20con\146\151\x67\165\162\x61\142\154\x65\x20\161\164y\40fr\157\x6d\40" . ($this->_sqlSize * ($xc5 - 1) + 1) . "\40\164\157\40" . $xca, null, $this->getFilename('.log')); } $this->configurableQty = $xcf; if ($this->_debug) { echo "\74b\x72\76<\x62\x72>\55--\x2d\x2d-----\55\55\40C\x4f\116\x46\111\x47\125\x52\x41BLES\x20\121T\x59\x20\55---\x2d-\55\x2d-\x2d\55\x2d-\x2d\55\55\74b\162>"; echo $xc4->getSelect() . '<br><br>'; $x162($xcf); } $xbf = $x94->getTableName("\x63\141\164a\154\157g_\160ro\x64uct\x5fs\x75\x70\145\x72\137l\x69n\153"); $xd1 = $x94->getTableName("\143\x61\164a\x6c\157\147_\x70r\157d\165ct\137su\160er\x5fatt\x72\x69b\x75t\x65"); $xd2 = $x94->getTableName("\143\x61\164\141\154og\137\x70\162od\x75ct\137en\x74\151\164\171\137\x69\x6e\164"); $xd3 = $x94->getTableName("\143a\164\141l\x6fg\137\160\x72\x6f\x64u\x63\164_\x73u\160\x65\162\137a\164\x74\x72i\142\165te\x5fp\162ic\151\156\x67"); $xd4 = $x95->select(); $xd4->from(array("cp\x73\x6c" => $xbf), array("\160\141\162\x65n\164_id", "\160r\x6f\144\x75ct_i\144")); $xd4->joinleft(array("cps\141" => $xd1), "\143\x70\x73\141\x2epr\x6f\144\165ct\x5f\x69\144\x20= cp\x73l.\x70\141r\145\156t\137\x69\x64", array("a\x74tr\x69bu\164\x65_\x69\144")); $xd4->joinleft(array("cp\145i" => $xd2), "c\160e\x69\56e\x6e\x74i\164y\137\x69d\40=\x20\143\160\x73\x6c\56p\162\157du\x63t\137\x69d\x20AND\40cp\145\151.a\164\164\162\151\142ute\x5f\151\144\40=\40\143\x70\x73a\x2e\x61t\x74r\151bu\164\x65\137\x69d", array("\x76\x61lu\x65" => "\x76\x61lu\x65")); $xd4->joinleft(array("cp\163\x61\x70" => $xd3), "c\160sa\160.\x70\162\157d\x75\x63t_\163up\x65\x72\x5f\141\x74\164r\151\142\165\x74\x65_\151d\x20\x3d c\x70s\x61.p\x72odu\x63\164_\163\165\x70er_a\164\x74\x72i\142u\x74\x65\x5f\x69\x64 \101\x4eD\x20c\x70\x65\151\x2e\166\x61\x6cu\145\x20=\40c\160s\x61p\56\166a\154\165e_in\144ex", array("\160ric\151\x6e\x67\137\x76a\x6c\x75\145" => "\160ric\151\x6e\x67\137\x76a\x6c\x75\145", "i\163_p\145\162c\x65\156\x74" => "i\163_p\145\162c\x65\156\x74")); $xd4->order(array("c\x70sl\x2e\160ar\145\156\x74\137\x69\x64", "\x63\160s\x6c.\x70\162\x6f\144\x75ct\x5fi\144")); $xd4->group(array("c\x70sl\x2e\160ar\145\156\x74\137\x69\x64", "\x63\160s\x6c.\x70\162\x6f\144\x75ct\x5fi\144", "c\160s\141\x2e\141\x74\164\162\151bu\x74e_id")); $xd5 = $x95->fetchAll($xd4); $xd6 = array(); foreach ($xd5 as $xd0) { $xd6[$xd0["\160\141\162\x65n\164_id"]][$xd0["\160r\x6f\144\x75ct_i\144"]][$xd0['attribute_id']]['attribute_id'] = $xd0["a\x74tr\x69bu\164\x65_\x69\144"]; $xd6[$xd0["\160\141\162\x65n\164_id"]][$xd0["\160r\x6f\144\x75ct_i\144"]][$xd0['attribute_id']]['value'] = $xd0["\x76\x61lu\x65"]; $xd6[$xd0["\160\141\162\x65n\164_id"]][$xd0["\160r\x6f\144\x75ct_i\144"]][$xd0['attribute_id']]['pricing_value'] = $xd0["\160ric\151\x6e\x67\137\x76a\x6c\x75\145"]; $xd6[$xd0["\160\141\162\x65n\164_id"]][$xd0["\160r\x6f\144\x75ct_i\144"]][$xd0['attribute_id']]['is_percent'] = $xd0["i\163_p\145\162c\x65\156\x74"]; } if ($this->_log) Mage::log("\x0a\x3e\x3e>\76\x3e>\76>>\x3e\x3e\x3e>\76>>\76\x3e\x3e>\x3e\x3e>\76\76\76>\76>\x3e\76>\76\x3e\76\76\x3e>\76>>>>\76\76>\40F\x65tc\x68\x69n\147\40\x63\157n\x66\151\147\x75ra\142\154e\40\x70\162\151c\145\x73\x20\143\157\x6c\154\145\x63\164\145d", null, $this->getFilename('.log')); $this->configurablePrices = $xd6; if ($this->_debug) { echo "\x3c\x62\x72>\x3c\x62\x72\76\x2d\x2d\55--\x2d\x2d--\55-\55\40\x43O\x4e\106\111\107\125R\x41\102\x4c\105\123 \120R\x49\x43\x45\123\40-\x2d--\x2d\55\55\x2d\x2d-\x2d-\x2d\55\x2d-\x3c\x62r\76"; echo $xd4 . '<br><br>'; $x162($xd6); } $xbf = $x94->getTableName("\x63\141\164a\154\157g_\160ro\x64uct\x5fs\x75\x70\145\x72\137l\x69n\153"); $xd1 = $x94->getTableName("\143\x61\164a\x6c\157\147_\x70r\157d\165ct\137su\160er\x5fatt\x72\x69b\x75t\x65"); $xd7 = $x94->getTableName("ca\164\141lo\147_\160\162o\144\165\143\164_\x73\165\160\145\x72_a\x74t\x72\151\142\x75\x74\x65\x5f\x6c\141be\x6c"); $xd8 = $x95->select(); $xd8->from(array("cp\x73\x6c" => $xbf), array("\160\141\162\x65n\164_id", "\160r\x6f\144\x75ct_i\144")); $xd8->joinleft(array("cps\141" => $xd1), "\143\x70\x73\141\x2epr\x6f\144\165ct\x5f\x69\144\x20= cp\x73l.\x70\141r\145\156t\137\x69\x64", array("a\x74tr\x69bu\164\x65_\x69\144")); $xd8->joinleft(array("\143\160s\x61\x6c" => $xd7), "\143p\x73al\56p\162o\x64\x75\x63t\137\163\x75\x70\145\x72\137at\x74\162\151bu\x74\145\x5f\x69\x64 \x3d\x20cps\x61.p\x72\x6fdu\143t\x5f\x73uper\x5f\x61\164t\x72\151\142\x75t\145\x5f\x69d", array("re\154\x61t\151\157n\x73\150\151p" => "\107\122O\x55\x50\137\x43\117N\x43\101\x54(D\x49\x53T\x49\x4eCT\40cp\x73\141\154\x2eva\x6c\x75\145 \123\105\x50A\x52\x41TO\122\40\47\76>\76\47)")); $xd8->order(array("c\x70sl\x2e\160ar\145\156\x74\137\x69\x64", "\x63\160s\x6c.\x70\162\x6f\144\x75ct\x5fi\144")); $xd8->group(array('cpsl.parent_id', 'cpsl.product_id')); $xd9 = $x95->fetchAll($xd8); foreach ($xd9 as $xda) { $xdb[$xda['product_id']] = $xda['relationship']; $xdb[$xda['parent_id']] = $xda['relationship']; } $this->_productRelationShip = $xdb; if ($this->_debug) { echo "<br\x3e\74\x62\x72\x3e---\x2d\55-\55\x2d-\55--\x20\122\x45\114\x41T\111\x4f\x4e\123\110I\x50\40--\55\x2d-\x2d-\55\x2d\x2d\55-\55\x2d\x2d\x2d\x3c\x62r\76"; echo $xd8 . '<br><br>'; $x162($xdb); } if ($this->_log) Mage::log("\x0a>>\76\x3e>\76>\76\76\x3e\x3e\76>\76\76\76>\x3e\x3e>\76\76>>>>\x3e\x3e\x3e\x3e\76>\x3e>\x3e\x3e\76>\76>\x3e\76\x3e>\x3e>\x20R\x65\x6ca\164i\157\156s\150ip\40\x63\x6f\154\x6c\x65c\x74\145d", null, $this->getFilename('.log')); $xc9 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("\144\x61t\x61\x66e\145\x64m\141\x6eage\x72\x2fs\171\x73t\145\155\57d\151\163ab\154\x65d")) $xc9->addFieldToFilter("\x73\x74\141\x74\165\163", array('gteq' => 1)); else $xc9->addFieldToFilter("\x73\x74\141\x74\165\163", 1); $xc9->addAttributeToFilter('type_id', array("i\156" => "gr\x6f\165ped")); $xc9->addAttributeToFilter('visibility', array("\x6e\151\156" => 1));
$xc9->addAttributeToSelect($x9c, $x9e); $xc9->getSelect()->joinLeft($xc0 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $xc9->getSelect()->joinLeft($xb9 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', "\x6d\151\156\137\x71ty" => "\x6d\151\156\137\x71ty", "\x6d\151\x6e_\163\x61l\145\137\x71\x74y" => "\x6d\151\x6e_\163\x61l\145\137\x71\x74y")); if ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key_b', 'e.entity_id=url_key_b.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url_b', 'url_b.value_id=url_key_b.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url_b', 'url_b.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url_b.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } $xc9->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); $xc9->getSelect()->joinLeft($xbd . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xc9->getSelect()->group(array('cpl.product_id')); $xdc = array(); foreach ($xc9 as $xcb) { foreach ($x158("\54", $xcb->getChildIds()) as $xcc) { $xdc[$xcc] = $xcb; $xdd[$xcc]['categories_ids'] = $xcb->getCategories_ids(); $xdd[$xcc]['parent_id'] = $xcb->getId(); $xdd[$xcc]['parent_sku'] = $xcb->getSku(); $xdd[$xcc]['parent_request_path'] = $xcb->getRequestPath(); } } $this->grouped = $xdc; if ($this->_debug) { echo "\74\142\162\76<\142\x72\x3e\55\x2d\x2d\x2d\55\55\55\55\x2d-\x2d\55\x20G\x52\117\125\120E\104\40\55\55\x2d-\x2d--\55--\x2d\x2d-\x2d\55\55\74br\76"; echo $xc9->getSelect() . '<br><br>'; $x162($xdd); } if ($this->_log) Mage::log("\x0a\x3e\76\76\x3e\76\x3e\76\x3e>\x3e>\76>>\76>\76\x3e\x3e\76\x3e\x3e\76\x3e\76>>\x3e>\76>\x3e\x3e\x3e\x3e\76\76>>\76\x3e\76>>\x3e\x3e\40R\145l\x61\164ion\163 \167i\164\x68\40g\x72o\x75p\x65\x64\40\160\x72o\x64u\x63\164\163 \x64\x65t\145\x63\164\145\144", null, $this->getFilename('.log')); $xc9 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("\144\x61t\x61\x66e\145\x64m\141\x6eage\x72\x2fs\171\x73t\145\155\57d\151\163ab\154\x65d")) $xc9->addFieldToFilter("\x73\x74\141\x74\165\163", array('gteq' => 1)); else $xc9->addFieldToFilter("\x73\x74\141\x74\165\163", 1); $xc9->addAttributeToFilter('type_id', array("i\156" => "bun\144\154\145")); $xc9->addAttributeToFilter('visibility', array("\x6e\151\156" => 1)); $xc9->addAttributeToSelect($x9c, $x9e); $xc9->getSelect()->joinLeft($xc1 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $xc9->getSelect()->joinLeft($xb9 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', "\x6d\151\156\137\x71ty" => "\x6d\151\156\137\x71ty", "\x6d\151\x6e_\163\x61l\145\137\x71\x74y" => "\x6d\151\x6e_\163\x61l\145\137\x71\x74y")); if ($x168(Mage::getVersion(), '1.13.0', '>=')) { $xc4->getSelect()->joinLeft($xbc . ' AS url_key', 'e.entity_id=url_key.entity_id'); $xc4->getSelect()->joinLeft($xbb . ' AS url', 'url.value_id=url_key.entity_id ' . $xc2 . ' AND is_system=1 AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } else { $xc4->getSelect()->joinLeft($xba . ' AS url', 'url.product_id=e.entity_id ' . $xc2 . ' AND is_system=1 AND ' . $x90 . ' AND url.store_id=' . $x65, array('request_path' => $xc3 . '(DISTINCT request_path)')); } $xc9->getSelect()->joinLeft($x99 . ' AS categories', 'categories.product_id=e.entity_id'); $xc9->getSelect()->joinLeft($xbd . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x65, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $xc9->getSelect()->group(array('e.entity_id')); $xde = array(); foreach ($xc9 as $xcb) { foreach ($x158("\54", $xcb->getChildIds()) as $xcc) { $xde[$xcc] = $xcb; $xdf[$xcc]['parent_id'] = $xcb->getId(); $xdf[$xcc]['parent_sku'] = $xcb->getSku(); $xdf[$xcc]['parent_request_path'] = $xcb->getRequestPath(); $xdf[$xcc]['categories_ids'] = $xcb->getCategories_ids(); } } $this->bundle = $xde; if ($this->_debug) { echo "<\x62r>\x3cb\162>---\x2d-\x2d-\55\55\55\x2d\x2d\40B\125\116\104\x4cE\40-\x2d-\55\55-\55\55--\x2d--\x2d-\55\x3c\142\x72>"; echo $xc9->getSelect() . '<br><br>'; $x162($xdf); } if ($this->_log) Mage::log("\x0a>\x3e\x3e\76\x3e\76>\76>>>>>>\76\x3e>>>\76\76>\x3e\76>>>\x3e\76\x3e\x3e\76\x3e\x3e>\x3e>>>>\76\76\76\76\x3e> Re\154\141\164\151\157n\163\40\167i\x74h \142u\x6e\x64\x6c\x65\x20pro\144\165\x63\164\163\x20\144\x65\164e\143t\145\x64", null, $this->getFilename('.log')); $xe0 = Mage::getModel('eav/entity') ->$x16b('catalog_product') ->getTypeId(); $xe1 = Mage::getModel('eav/entity_attribute_set') ->getCollection() ->setEntityTypeFilter($xe0); foreach ($xe1 as $xe2) { $xe3[$xe2->getId()] = $xe2->getAttributeSetName(); } $xe4 = $x94->getTableName("\x63\x61ta\x6c\157g\137\160rod\x75\x63\164_en\164\x69\164y\x5f\x74ie\x72\137\160\162ice"); $xe5 = Mage::getModel('core/store')->load($x65)->getWebsiteId(); $xe6 = $x95->select(); $xe6->from(array("cpe\x74\160" => $xe4), array("\x65\156\164\x69\164y\137id", "\x61\x6cl\x5fg\162\x6fu\160s", "\x63\x75\163to\x6d\145\162\x5f\147r\157up\x5fi\x64", "\x76\x61lu\x65", "q\164\x79")); $xe6->order(array("\143\160\145\164p\56\145n\x74\151t\x79_\x69\144", "\x63\x70\x65tp\x2ec\x75\163\x74\157\155\x65\162\x5f\147\x72\157\x75\160\137i\x64", "\143p\145\x74\x70\56\161\164y")); $xe6->where("c\160e\164\160\56\167\x65\142\x73it\145_\151\144\75" . $xe5 . " \x4f\x52\40\143\160\x65\x74p\x2ew\145\142\163\x69\x74\x65\137id\x3d0"); $xb1 = $x95->fetchAll($xe6); $xe7 = array(); foreach ($xb1 as $xe8) { if ($xe8['all_groups'] == 1) $xe7[$xe8["\x65\156\164\x69\164y\137id"]][32000][] = array("q\164\x79" => $xe8['qty'], "\x76\x61lu\x65" => $xe8['value']); else $xe7[$xe8["\x65\156\164\x69\164y\137id"]][$xe8["\x63\x75\163to\x6d\145\162\x5f\147r\157up\x5fi\x64"]][] = array("q\164\x79" => $xe8['qty'], "\x76\x61lu\x65" => $xe8['value']); } $this->_tierPrices = $xe7; if ($this->_debug) { echo "\74\142\x72\76\74\142\x72\x3e\x2d-\55\x2d\x2d\55\55\x2d\x2d\55\x2d- T\x49\x45\x52\123\40\x50\x52\x49\103\105\123 \x2d-\x2d\x2d-\x2d\x2d\55\x2d\x2d\x2d-\x2d\x2d\x2d\x2d<b\x72\x3e"; echo $xe6 . '<br><br>'; $x162($xe7); } if ($this->_log) Mage::log("\x0a>\x3e>\76\x3e>\76\76\76\x3e\x3e\76\x3e\76>>\76>\76>>\76\76\x3e>\76\76>\76\76\x3e\76\76>>>>\76\x3e\x3e\76\76\76\76>\76\40\124\x65\x69\145\x72s \120\162\151c\145 \143o\x6c\x6c\145\x63t\x65\144", null, $this->getFilename('.log')); $xe9 = $x94->getTableName("\x63\141ta\x6c\157g\137\x70\x72o\x64uct\137\157\160\x74\x69\x6fn"); $xea = $x94->getTableName("ca\x74a\154\x6f\147\137p\162\x6fd\165\x63\x74\x5f\157\160\164\x69\157\x6e\x5f\164i\164\x6ce"); $xeb = $x94->getTableName("c\x61t\141lo\x67\137\x70rod\165c\164_\x6fpt\151\x6f\x6e_t\x79p\x65_\x76\x61lu\x65"); $xec = $x94->getTableName("\143\141\x74\141\154\157\147\x5f\160\162\157\144u\143\164_\x6f\x70t\151o\156_\164y\160e_\x74i\x74l\x65"); $xed = $x94->getTableName("\143\x61t\x61l\x6fg\x5f\160\162\x6f\x64uc\x74\x5fopt\x69\157\156\x5ft\171p\x65\x5f\x70\x72\151\143\x65"); $xee = $x95->select(); $xee->from(array("\x63p\x6f" => $xe9), array("\160r\x6f\144\x75ct_i\144")); $xee->joinleft(array("cpot" => $xea), "\x63\x70\157\x74\x2eo\x70\164\x69\x6fn\137id=\143p\x6f\x2e\x6f\x70\x74\151\x6fn\137\151d\40\101ND\40\143po\x74\x2e\163\164\157\x72\x65\x5f\x69d=\x30", array("\x6f\x70\164\151\x6fn" => "\164\x69\164l\x65", "\x6f\x70tio\156_i\144", "st\157\162e_i\x64")); $xee->joinleft(array("\x63\x70\157\x74\166" => $xeb), "c\160\157t\x76.\x6f\x70t\x69\157n\x5f\151\x64 \x3d\40\143p\157.\157p\x74\151o\156_id", "s\153\165"); $xee->joinleft(array("\143\160\x6f\164\164" => $xec), "cp\x6f\164t\56o\160\164\151\x6f\156\x5f\x74yp\145\137\151d\75\x63p\x6ft\166\56\x6f\160\x74i\157\x6e_\x74y\x70e\137i\x64 \x41\x4eD\x20\x63\160o\164\164\x2es\x74\157\162e_i\144\x3dcp\x6f\164\x2e\x73t\x6fre\137\151\x64", "t\151\164le\x20\x41\123\x20va\154\x75\145"); $xee->joinleft(array("\143\x70otp" => $xed), "cp\x6f\x74\x70\x2e\x6fp\x74\151\157\x6e\x5ft\171pe\137i\x64=cp\157\x74\x76\x2e\x6f\x70ti\x6fn_\x74y\x70\x65\137\x69d \101ND cp\157tp\56\163to\162\x65\x5f\151\x64=\143\x70\157\164\56\163\164\157re\137i\x64", array("\160ri\x63\145", "\160\x72\x69ce_t\x79pe")); $x97 = $xee->order(array("\160r\x6f\144\x75ct_i\144", "\143\160ot\166.\x73\x6fr\164_\157\162d\x65\x72 \x41\123C")); $xb1 = $x95->fetchAll($x97); $xef = array(); $xf0 = 0; foreach ($xb1 as $xf1) { $xef[$xf1["\160r\x6f\144\x75ct_i\144"]][$xf1["\x6f\x70\164\151\x6fn"]]["\x6f\x70\164\x69\x6fn\x73"][] = array( "\x76\x61lu\x65" => $xf1["\x76\x61lu\x65"], "s\153\165" => $xf1["s\153\165"], "\160ri\x63\145" => $xf1["\160ri\x63\145"], "\160\x72\x69ce_t\x79pe" => $xf1["\160\x72\x69ce_t\x79pe"] ); $xf0++; } $this->customOptions = $xef; if ($this->_debug) { echo "\x3c\142r\x3e<\x62r\x3e\x2d\x2d-\55\x2d\x2d-\x2d\55\x2d\55\55\x20\x43\x55\123\124\117\115\x20\117PTI\117N\x53\x20-\x2d\55-\x2d\x2d\55\55\x2d\55\55---\x2d-\x3c\x62\162>"; echo $xee . '<br><br>'; $x162($xef); } if ($this->_log) Mage::log("\x0a\76\x3e>\x3e>>>\x3e\76>\x3e\76>>\76\x3e>\x3e\76\x3e>\x3e>\76\x3e>\76\x3e\x3e>\x3e>>>>>>\76>\76\76\x3e>\76\x3e\x3e\40C\x75\x73t\x6f\x6d\40\157\x70\164i\157ns\40\143\157\154\x6c\145\x63t\x65d", null, $this->getFilename('.log')); $xf2 = new Wyomind_Datafeedmanager_Model_MyCustomOptions; $xf3 = new Wyomind_Datafeedmanager_Model_MyCustomAttributes; if ($this->_log) Mage::log("\x0a\x3e\76>\76\76>\x3e\76\x3e\x3e\x3e\76\x3e>>\x3e\x3e>>\x3e>\x3e\76\x3e\76>>>\76>\76>\76\x3e\76\x3e\x3e\76\76\76>>>>\76>\x20Cust\157m\40a\164\x74\162\x69\142\x75t\145s/o\x70\x74\151\157n\x73\40\163cr\151\x70t\x73 l\157a\x64\x65\144", null, $this->getFilename('.log')); $xc4 = Mage::getModel('datafeedmanager/product_collection')->getCollection()->addStoreFilter($x65); if (Mage::getStoreConfig("\144\x61t\x61\x66e\145\x64m\141\x6eage\x72\x2fs\171\x73t\145\155\57d\151\163ab\154\x65d")) $xc4->addFieldToFilter("\x73\x74\141\x74\165\163", array('gteq' => 1)); else $xc4->addFieldToFilter("\x73\x74\141\x74\165\163", 1); $xc4->addAttributeToFilter("\164y\160e\137\151d", array("i\156" => $x87)); $xc4->addAttributeToFilter("\x76is\x69\x62i\154\151\164y", array("i\156" => $x88)); if ($x89[0] != '*') $xc4->addAttributeToFilter("\x61\164\x74\162ib\x75\x74\145\137\163\x65t\x5fi\144", array("i\156" => $x89)); $xc4->addAttributeToSelect($x9c, $x9e); $xf4 = array("\x65\x71" => "= \47%s'", "\156\x65q" => "\41\x3d '\x25\x73\47", "\x67\164e\161" => ">\x3d\40'\45\163\x27", "l\164\x65q" => "\x3c\x3d\40\x27\x25\163\47", "\147\x74" => "\x3e\40\x27%s\x27", "\154t" => "<\x20\47\45\163\x27", "\154\x69\153e" => "li\x6be\x20\47\45\163\47", "n\x6cik\x65" => "\x6eo\x74\x20\x6c\151\x6be \47\45\163\47", "\x6e\165\x6cl" => "\151\x73\x20\156\165\154l", "\x6eo\164\x6e\165\154\x6c" => "i\163\40\x6eot\x20nul\154", "i\156" => "\151n\40\50\x25s\51", "\x6e\151\156" => "n\x6ft\40\151\156(%\163\51", ); $xf5 = ''; $x31 = 0; $xf6 = array(); foreach ($x8a as $x9f) { $x9f->value = $this->x17d($x9f->value, null);
if ($x9f->checked) { if ($x9f->condition == 'in' || $x9f->condition == 'nin') { if ($x9f->code == 'qty' || $x9f->code == 'is_in_stock') { $xf7 = $x158(',', $x9f->value); $x9f->value = "\x27" . $x14c($xf7, "\47\x2c'") . "\x27"; } else { $x9f->value = $x158(',', $x9f->value); } } switch ($x9f->code) { case 'qty' : if ($x31 > 0) $xf5.=' ' . $x9f->statement . ' '; $xf5.="\x20\161\164\171 " . $x16c($xf4[$x9f->condition], $x9f->value); $x31++; break; case 'is_in_stock' : if ($x31 > 0) $xf5.=' ' . $x9f->statement . ' '; $xf5.="\x20(\111F\50"; $xf5.="(use_config_manage_stock=1 AND $x6a=0)"; $xf5.=" \117\x52\40"; $xf5.='(use_config_manage_stock=0 AND manage_stock=0)'; $xf5.=" \117\x52\40"; $xf5.="(use_config_manage_stock=1 AND $x6a=1 AND is_in_stock=1 )"; $xf5.=" \117\x52\40"; $xf5.="\50\x75se\x5f\x63\x6f\x6ef\x69g\137m\141\156ag\x65\x5f\163t\x6f\x63\153\x3d\x30\40\x41ND\40\x6d\x61\156\x61\x67\145\x5f\x73\164\157c\x6b\x3d\61\x20AN\x44\x20\x69s_\x69n\137\163t\x6fc\153=\61\40)"; $xf5.=",'\61'\x2c\47\x30\x27\x29" . $x16c($xf4[$x9f->condition], $x9f->value) . "\51"; $x31++; break; default : if ($x9f->statement == "\x41\x4e\x44") { if ($x156($xf6)) $xc4->addFieldToFilter($xf6); $xf6 = array(); } if ($x9f->condition == "i\156") { $xf8 = true; $xf9 = array(); foreach ($x9f->value as $x59) { if (!$x157($x59)) $xf8 = true; } if ($xf8) { foreach ($x9f->value as $x59) { $xf9[] = array(array("f\151\x6e\x73\x65\x74" => $x59)); } $xf6[] = array("\x61t\164ri\142\165\164\145" => $x9f->code, $xf9); } else $xf6[] = array("\x61t\164ri\142\165\164\145" => $x9f->code, $x9f->condition => $x9f->value); } else $xf6[] = array("\x61t\164ri\142\165\164\145" => $x9f->code, $x9f->condition => $x9f->value); break; } } }; if ($x156($xf6)) $xc4->addFieldToFilter($xf6); $xc4->getSelect()->joinLeft($xb9 . ' 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_mana
Showing the first 100,000 of 169,906 characters. Download the original.