Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php class Wyomind_Datafeedmanager_Model_Datafeedmanager extends Mage_Core_Model_Abstract..
Decoded Output download
<?php class Wyomind_Datafeedmanager_Model_Datafeedmanager 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 function x110($myPattern, $product, $x16 = true, $x17 = false) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; if ($x17) { $x18 = $xe4("/
/", $myPattern); $x19 = $x18[0]; $x18[0] = null; $myPattern = $xe5($x18, "
"); } $myPattern = $xe6('<?', $xe7(''), $myPattern); $myPattern = $xe6('?>', $xe7(''), $myPattern); $x1a = $xe7('/((.[^]+))/s'); $xe8($x1a, $myPattern, $x1b); if (isset($x1b[1])) { foreach ($x1b[1] as $x1c => $x1d) { if ($x16 == 1) { if (@eval($x1b[2][$x1c] . '; ')) $myPattern = $xe6($x1d, eval($x1b[2][$x1c] . '; '), $myPattern); else $myPattern = $xe6($x1d, '', $myPattern); } else { if (@eval($this->unx117($x1b[2][$x1c] . '; '))) $myPattern = $xe6($x1d, $this->x117(eval($this->unx117($x1b[2][$x1c]) . '; ')), $myPattern); else $myPattern = $xe6($x1d, '', $myPattern); } } } if ($x17) { if ($x16 == 1) return $x19 . "
" . $myPattern; else return $x19; } else return $myPattern; } protected function _construct() { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit";
$x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $this->_sqlSize = Mage::getStoreConfig("datafeedmanager/system/sqlsize"); $this->_init('datafeedmanager/datafeedmanager'); } protected function _beforeSave() { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x1e = new Varien_Io_File(); $x1f = $x1e->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); if (!$x1e->allowedPath($x1f, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x1e->fileExists($x1f, 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 (!$x1e->isWriteable($x1f)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$xe9('#^[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($xea($xe6($xe6('\', '/', Mage::getBaseDir()), '', $x1f), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags";
$x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; if ($xeb($this->_filePath)) { $this->_filePath = $xe6('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x20 = true) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; ($x20) ? $x20 = '.temp' : $x20 = null; $x21 = array(1 => 'xml', 2 => 'txt', 3 => 'csv'); return $this->getFeedName() . "." . $x21[$this->getFeedType()] . $x20; } public function getPreparedFilename() { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities";
$x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; return $this->getPath() . $this->getFilename(); } public function x111($x22, $x23) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x24 = $this->_currencies; if (isset($x24[$x23])) { return $x22 * $x24[$x23]; } else { return $x22; } } public function x112($x22, $x25, $x26, $x27 = false) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x28 = $this->_rates; if ($x27 === false) { if (!$x25 && isset($x28[$x26])) { if ($xec($x28[$x26]) > 1) { return $x22; } else { return $x22 * ($x28[$x26][0]['rate'] / 100 + 1);
} } else { return $x22; } } elseif ($x27 === "0") { if ($x25 && isset($x28[$x26])) { if ($xec($x28[$x26]) > 1) { return $x22; } else { return 100 * $x22 / (100 + ($x28[$x26][0]['rate'])); } } else { return $x22; } } else { if ($xed($x27)) { if ($x26 != 0) { return $x22 * ($x27 / 100 + 1); } elseif ($x26 == 0) { return $x22; } } else { $x27 = $xee('/', $x27); $x29 = 0; $x2a = false; if ($xef($x27[0], 0, 1) == "-") { $x27[0] = $xef($x27[0], 1); $x2a = true; } if ($x28[$x26]) { foreach ($x28[$x26] as $x2b) { if ($x2b['country'] == $x27[0]) { if (!isset($x27[1]) || $x2b['code'] == $x27[1]) { $x29 = $x2b['rate']; break; } } } if (!$x2a) return $x22 * ($x29 / 100 + 1); else { return 100 * $x22 / (100 + ($x29)); } } else { return $x22; } } } } public function x113($x2c, $x2d = true) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x1a = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $xe8($x1a, $x2c, $x1b); foreach ($x1b[1] as $x1c => $value) { $x2e = $xf0($x1b[2][$x1c]); if (empty($x2e) && !$xed($x2e)) $x2c = $xe6($x1b[0][$x1c], '', $x2c); else { if ($x2d) $x2c = $xe6($x1b[0][$x1c], ($x1b[1][$x1c]) . '<![CDATA[' . $x2e . ']]>' . ($x1b[3][$x1c]), $x2c); else { $x2c = $xe6($x1b[0][$x1c], ($x1b[1][$x1c]) . $x2e . ($x1b[3][$x1c]), $x2c); } } } $x2f = $xe4("/
/s", $x2c); $x30 = ''; foreach ($x2f as $x31) { ($xf1($xf0($x31)) > 0) ? $x30.=$x31 . "
" : false; } $x2c = $x30; return $x2c; } public function x114($x2c) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get";
$x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; if ($this->_display) return ($x2c); else { if ($this->_chartset == 'ISO') return $xf2($x2c); else { return ($x2c); } } } public function x115($x1a, $x17 = false) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x1a = $xf3('/(
|
|
|
)/s', '', $x1a); $x32 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; '; $x33 = $xf4($x1a); if (isset($x33->header)) $x33 = $x33->header; else { $x33 = $x33->product; } if ($x17) $x34 = "<tr style='background-color:grey; color:white; font-weight:bold'>"; else { $x34 = "<tr>"; } foreach ($x33 as $x1c => $value) { ($value != null) ? $x35 = $value : $x35 = "<span style='font-size:10px;color:grey'>(empty)</span>"; $x34.="<td style='" . $x32 . "'>" . $x35 . "</td>"; } $x34.="</tr>"; return $x34; } public function x116($x1a, $x36, $x37) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string";
$xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x1a = $xf3('/(
|
|
|
)/s', '', $x1a); $x33 = $xf4($x1a); if (isset($x33->header)) $x33 = $x33->header; else { if (!$xf4($x1a)) return ""; $x33 = $x33->product; } $x31 = ''; $x38 = 0; foreach ($x33 as $x1c => $value) { if ($x36 == ' ') $x36 = " "; if ($x38 > 0) $x31.=$x36; if ($x37 != "") $x31.=$x37 . $this->x117($value, $x37) . $x37; else { $x31.= $this->x117($value, $x36); } $x38++; } if ($x36 == "[|]") $x31.="[:]"; return $x31; } public function x117($x1a, $x39 = '"') { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x1a = $xe6($x39, '\' . $x39, $x1a); return $x1a; } public function unx117($x1a, $x39 = '"') { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace";
$xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $x1a = $xe6('\' . $x39, $x39, $x1a); return $x1a; } public function x119($x3a) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; if (!$xf5($x3a, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$xf5($x3a, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x3b, $product) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare";
$xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; if (($x3b == "parent" || $x3b == "configurable") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x3b == "parent" || $x3b == "grouped") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x3b == "parent" || $x3b == "bundle") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()]; else { return $product; } } public function skipOptions($x3c) { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format"; $x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; $this->option = $this->option + $x3c; } public function generateFile() { $xe4="preg_split"; $xe5="implode"; $xe6="str_replace"; $xe7="utf8_encode"; $xe8="preg_match_all"; $xe9="preg_match"; $xea="rtrim"; $xeb="is_null"; $xec="count"; $xed="is_numeric"; $xee="explode"; $xef="substr"; $xf0="trim"; $xf1="strlen"; $xf2="utf8_decode"; $xf3="preg_replace"; $xf4="json_decode"; $xf5="stristr"; $xf6="print_r"; $xf7="is_string"; $xf8="is_array"; $xf9="ucwords"; $xfa="array_push"; $xfb="version_compare"; $xfc="in_array"; $xfd="round"; $xfe="sprintf"; $xff="array_pop"; $x100="ini_get"; $x101="set_time_limit"; $x102="number_format";
$x103="strip_tags"; $x104="html_entity_decode"; $x105="htmlspecialchars"; $x106="strrpos"; $x107="is_bool"; $x108="mb_strtolower"; $x109="mb_strtoupper"; $x10a="htmlentities"; $x10b="ftp_connect"; $x10c="ftp_login"; $x10d="ftp_pasv"; $x10e="ftp_put"; $x10f="ftp_close"; ini_set('memory_limit', Mage::getStoreConfig("datafeedmanager/system/memory_limit") . 'M'); error_reporting(Mage::getStoreConfig("datafeedmanager/system/error_reporting")); $this->_debug = (isset($_GET['debug'])) ? true : false; $this->_type = (isset($_GET['type'])) ? $_GET['type'] : "*"; if ($this->_debug) { echo "----------------------------------------------<br>------------ DEBUG MODE ----------------<br>----------------------------------------------<br><br>"; $xf6($x3d); } $x3e = $this->_indexPhp; $x3f = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "dfm", "ver" => "6.0.1"); $xf7(Mage::app()->getRequest()->getParam("store_id")) ? $x40 = Mage::app()->getRequest()->getParam("store_id") : $x40 = $this->getStoreId(); $x41 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x42 = Mage::getDesign()->getSkinUrl(); $x43 = Mage::getStoreConfig("catalog/placeholder/image_placeholder", $x40); $x44 = Mage::getStoreConfig("currency/options/base", $x40); $x45 = Mage::getStoreConfig("cataloginventory/item_options/manage_stock", $x40); $x46 = Mage::app()->getStore($x40)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x47 = Mage::getModel('core/store')->load($x40)->getBaseUrl(); $x48 = Mage::app()->getStore($x40)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x49 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x40); $x4a = Mage::app()->getStore($x40)->getRootCategoryId(); $x4b = 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"), ); $xf7(Mage::app()->getRequest()->getParam("feed_product")) ? $x4c = Mage::app()->getRequest()->getParam("feed_product") : $x4c = $this->getFeed_product(); $xf7(Mage::app()->getRequest()->getParam("feed_header")) ? $x3a = Mage::app()->getRequest()->getParam("feed_header") : $x3a = $this->getFeed_header(); $xf7(Mage::app()->getRequest()->getParam("feed_footer")) ? $x4d = Mage::app()->getRequest()->getParam("feed_footer") : $x4d = $this->getFeed_footer(); $xf7(Mage::app()->getRequest()->getParam("feed_type")) ? $x4e = Mage::app()->getRequest()->getParam("feed_type") : $x4e = $this->getFeed_type(); $xf7(Mage::app()->getRequest()->getParam("feed_extraheader")) ? $x4f = Mage::app()->getRequest()->getParam("feed_extraheader") : $x4f = $this->getFeed_extraheader(); $xf7(Mage::app()->getRequest()->getParam("feed_include_header")) ? $x50 = Mage::app()->getRequest()->getParam("feed_include_header") : $x50 = $this->getFeed_include_header(); $xf7(Mage::app()->getRequest()->getParam("feed_separator")) ? $x36 = Mage::app()->getRequest()->getParam("feed_separator") : $x36 = $this->getFeed_separator(); $xf7(Mage::app()->getRequest()->getParam("feed_protector")) ? $x37 = Mage::app()->getRequest()->getParam("feed_protector") : $x37 = $this->getFeed_protector(); $xf7(Mage::app()->getRequest()->getParam("feed_satus")) ? $x51 = Mage::app()->getRequest()->getParam("feed_satus") : $x51 = $this->getFeed_status(); $xf7(Mage::app()->getRequest()->getParam("feed_enclose_data")) ? $x52 = Mage::app()->getRequest()->getParam("feed_enclose_data") : $x52 = $this->getFeed_enclose_data(); $xf7(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x53 = $xf4(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) : $x53 = $xf4($this->getDatafeedmanagerCategories()); $xf7(Mage::app()->getRequest()->getParam("datafeedmanager_category_filter")) ? $x54 = Mage::app()->getRequest()->getParam("datafeedmanager_category_filter") : $x54 = $this->getDatafeedmanagerCategoryFilter(); $xf7(Mage::app()->getRequest()->getParam("datafeedmanager_categories")) ? $x3d = Mage::app()->getRequest()->getParam("datafeedmanager_categories") : $x3d = $this->getDatafeedmanagerCategories(); $x55 = $this->getFtpEnabled(); $x56 = $this->getFtpHost(); $x57 = $this->getFtpLogin(); $x58 = $this->getFtpPassword(); $x59 = $this->getFtpDir(); $x5a = $this->getFtpActive(); $x5b = Array(); $x5c = Array(); if ($x3d != '*' && $xf8($x53)) { foreach ($x53 as $x5d) { if ($x5d->checked) $x5b[] = $x5d->line; } foreach ($x53 as $x5d) { if ($x5d->mapping != "") $x5c[$x5d->line] = $x5d->mapping; } } if ($xec($x5b) < 1) { $x5b[] = '*'; } $xf7(Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) ? $x5e = $xee(',', Mage::app()->getRequest()->getParam("datafeedmanager_type_ids")) : $x5e = $xee(',', $this->getDatafeedmanagerTypeIds()); $xf7(Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) ? $x5f = $xee(',', Mage::app()->getRequest()->getParam("datafeedmanager_visibility")) : $x5f = $xee(',', $this->getDatafeedmanagerVisibility()); $xf7(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) ? $x60 = $xf4(Mage::app()->getRequest()->getParam("datafeedmanager_attributes")) : $x60 = $xf4($this->getDatafeedmanagerAttributes()); if ($x4b[$x3f['ac']] != $x3f["md"]($x3f["md"]($x4b[$x3f['ak']]) . $x3f["md"]($x4b[$x3f['bu']]) . $x3f["md"]($x3f["ext"]) . $x3f["md"]($x3f["ver"]))) { $$x3f["ext"] = "valid"; $$x3f["th"]->$x3f["dm"] = true; } else { $$x3f["th"]->$x3f["dm"] = false; $$x3f["ext"] = "valid"; } if (!$x51 && !$this->_display) Mage::throwException(Mage::helper("datafeedmanager")->__("The data feed configuration must be enabled in order to generate a file.")); $x1e = new Varien_Io_File(); $x1e->setAllowCreateFolders(true); if (!$this->_display) { $x1e->open(array('path' => $this->getPath())); if ($x1e->fileExists($this->getFilename()) && !$x1e->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())); } $x1e->streamOpen($this->getFilename()); } if (!isset($$x3f["ext"]) || $$x3f["th"]->$x3f["dm"]) { $$x3f["th"]->$x3f["dm"] = true; return $$x3f["th"]; } $x61 = ''; $x62 = ''; header("Content-Type: text/html; charset=utf-8"); $this->x119($x3a); $x3a = $this->x110($x3a, null, $x4e, true); if ($x4e == 1 || ($x4e != 1 && !$this->_display)) $x2c = $this->x114($x3a); if ($this->_display) { if ($x4e == 1) { $x62 = $this->x113($x3a, $x52) . ""; } else { $x62 = $x4f . '<br>'; $x62.= "<table style='border:2px solid grey; font-family:arial; font-size:12px' cellspacing=0 cellpadding=0 width='0%'>"; if ($x50) { $x62.=$this->x115($x3a, true); } } } else { if ($x4e == 1) { $x1e->streamWrite($this->x113($x3a, $x52) . ""); } else { if ($x4f != '') $x1e->streamWrite($x4f . "
"); if ($x50) { $x1e->streamWrite($this->x116($x3a, $x36, $x37) . "
"); } } } $x1a = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}]*)}/'; $xe8($x1a, $x4c, $x1b); $x1b[0][] = "{categories,[1],[1],[1]}"; $x1b[1][] = "categories"; $x1b[2][] = ""; $x1b[3][] = ",[1],[1],[1]"; $x63 = array(); $x64 = array(); foreach ($x1b[1] as $x1c => $x65) { $x63[$x1c]['methodName'] = "get" . $xe6(' ', '', $xf9($xf0($x65)) . '()'); $x63[$x1c]['pattern'] = "{" . $xf0($x65) . "}"; $x63[$x1c]['fullpattern'] = $x1b[0][$x1c]; $x63[$x1c]['name'] = $xf0($x65); $x63[$x1c]['reference'] = $xf0($x1b[2][$x1c]); if (empty($x63[$x1c]['reference'])) $x63[$x1c]['reference'] = 'self';
switch ($x63[$x1c]['name']) { case 'url': $xfa($x64, 'url_key'); break; case 'uri': $xfa($x64, 'url_key'); break; case 'G:IMAGE_LINK': $xfa($x64, 'image'); $xfa($x64, 'small_image'); $xfa($x64, 'thumbnail'); break; case 'SC:IMAGES': $xfa($x64, 'image'); $xfa($x64, 'small_image'); $xfa($x64, 'thumbnail'); break; case 'SC:DESCRIPTION': $xfa($x64, 'description'); $xfa($x64, 'short_description'); $xfa($x64, 'manufacturer'); $xfa($x64, 'name'); $xfa($x64, 'sku'); break; case 'SC:EAN': $xfa($x64, 'ean'); break; case 'SC:URL': $xfa($x64, 'url_key'); $xfa($x64, 'url'); break; case 'sc:images': $xfa($x64, 'image'); $xfa($x64, 'small_image'); $xfa($x64, 'thumbnail'); break; case 'sc:description': $xfa($x64, 'description'); $xfa($x64, 'short_description'); $xfa($x64, 'manufacturer'); $xfa($x64, 'name'); $xfa($x64, 'sku'); break; case 'sc:ean': $xfa($x64, 'ean'); break; case 'sc:url': $xfa($x64, 'url_key'); $xfa($x64, 'url'); break; default : $xfa($x64, $x63[$x1c]['name']); } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myRequiredAttributes.php"); $x63[$x1c]["value"] = '$product->get' . $x63[$x1c]['name'] . "()"; $x63[$x1c]["getText"] = 'getAttributeText(\'' . $xf0($x65) . '\')'; $x66 = '/\[([^\]]+)\]/'; $xe8($x66, $x1b[3][$x1c], $x67); $x63[$x1c]["options"] = $x67[1]; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES REQUIRED ----------------<br>"; $xf6($x63); } $x68 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x40) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x3d = array(); foreach ($x68 as $x69) { $x3d[$x69->getId()]['name'] = $x69->getName(); $x3d[$x69->getId()]['path'] = $x69->getPath(); $x3d[$x69->getId()]['level'] = $x69->getLevel(); if ($xfb(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("datafeedmanager/system/include_in_menu")) $x3d[$x69->getId()]['include_in_menu'] = true; else $x3d[$x69->getId()]['include_in_menu'] = $x69->getIncludeInMenu(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $xf6($x3d); } $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x6c = $x6a->getTableName('eav_entity_type'); $x6d = $x6b->select()->from($x6c)->where('entity_type_code=\'catalog_product\''); $x33 = $x6b->fetchAll($x6d); $x6e = $x33[0]['entity_type_id']; $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x6f = $x6a->getTableName('directory_currency_rate'); $x6d = $x6b->select()->from($x6f)->where('currency_from=\'' . $x44 . '\''); $x24 = $x6b->fetchAll($x6d); $x70 = array(); foreach ($x24 as $x23) { $x70[$x23['currency_to']] = $x23['rate']; } $this->_currencies = $x70; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $xf6($x70); } $x71 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x6e) ->addSetInfo() ->getData(); $x72 = array(); $x73 = array(); foreach ($x71 as $x1c => $x65) { if ($xfc($x65['attribute_code'], $x64)) { $xfa($x72, $x65['attribute_code']); $x73[$x65['attribute_code']] = $x65['frontend_input']; } } if (!$xfc('special_price', $x72)) $x72[] = 'special_price'; if (!$xfc('special_from_date', $x72)) $x72[] = 'special_from_date'; if (!$xfc('special_to_date', $x72)) $x72[] = 'special_to_date'; if (!$xfc('price_type', $x72)) $x72[] = 'price_type'; if (!$xfc('price', $x72)) $x72[] = 'price'; $x72[] = 'tax_class_id'; foreach ($x60 as $x74) { if (!$xfc($x74->code, $x72) && $x74->checked) $x72[] = $x74->code; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $xf6($x72); } $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x75 = $x6a->getTableName('eav_attribute_option_value'); $x6d = $x6b->select(); $x6d->from($x75); $x6d->where("store_id=" . $x40 . ' OR store_id=0'); $x6d->order(array('option_id', 'store_id')); $x76 = $x6b->fetchAll($x6d); foreach ($x76 as $x77) { $x78[$x77['option_id']][$x77['store_id']] = $x77['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $xf6($x78); } $x79 = $x6a->getTableName('tax_class'); $x7a = $x6a->getTableName('tax_calculation'); $x7b = $x6a->getTableName('tax_calculation_rate');
$x7c = $x6a->getTableName('directory_country_region'); $x6d = $x6b->select(); $x6d->from($x79)->order(array('class_id', 'tax_calculation_rate_id')); $x6d->joinleft(array('tc' => $x7a), 'tc.product_tax_class_id = ' . $x79 . '.class_id', 'tc.tax_calculation_rate_id'); $x6d->joinleft(array('tcr' => $x7b), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x6d->joinleft(array('dcr' => $x7c), 'dcr.region_id=tcr.tax_region_id', 'code'); $x7d = $x6b->fetchAll($x6d); $x28 = array(); $x20 = ''; foreach ($x7d as $x7e) { if ($x20 != $x7e['class_id']) $x7f = 0; else { $x7f++; } $x20 = $x7e['class_id']; $x28[$x7e['class_id']][$x7f]['rate'] = $x7e['rate']; $x28[$x7e['class_id']][$x7f]['code'] = $x7e['code']; $x28[$x7e['class_id']][$x7f]['country'] = $x7e['tax_country_id']; } $this->_rates = $x28; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $xf6($x28); } $x80 = $x6a->getTableName('review'); $x81 = $x6a->getTableName('review_store'); $x82 = $x6a->getTableName('rating_option_vote'); $x83 = $x6b->select()->distinct('review_id'); $x83->from(array("r" => $x80), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); $x83->joinleft(array('rs' => $x81), 'rs.review_id=r.review_id', 'rs.store_id'); $x83->joinleft(array('rov' => $x82), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x83->where("status_id=1 and entity_id=1"); $x83->group(array('r.entity_pk_value', 'rs.store_id')); $x84 = $x6b->select(); $x84->from(array("r" => $x80), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT 0) AS store_id")); $x84->joinleft(array('rs' => $x81), 'rs.review_id=r.review_id', array()); $x84->joinleft(array('rov' => $x82), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x84->where("status_id=1 and entity_id=1"); $x84->group(array('r.entity_pk_value')); $x6d = $x6b->select() ->union(array($x83, $x84)); $x6d->order(array('entity_pk_value', 'store_id')); $x85 = $x6b->fetchAll($x6d); $x86 = array(); foreach ($x85 as $x87) { $x86[$x87['entity_pk_value']][$x87['store_id']]["count"] = $x87["count"]; $x86[$x87['entity_pk_value']][$x87['store_id']]['score'] = $x87['score']; } $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x88 = $x6a->getTableName('catalog_product_entity_media_gallery'); $x89 = $x6a->getTableName('catalog_product_entity_media_gallery_value'); $x6d = $x6b->select(); $x6d->from($x88); $x6d->joinleft(array('cpemgv' => $x89), 'cpemgv.value_id = ' . $x88 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x6d->where("value<>TRIM('') AND (store_id=" . $x40 . ' OR store_id=0)'); $x6d->order(array('position', 'value_id')); $x8a = $x6b->fetchAll($x6d); foreach ($x8a as $x8b) { $x8c[$x8b['entity_id']]['src'][] = $x8b['value']; $x8c[$x8b['entity_id']]['disabled'][] = $x8b['disabled']; } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $xf6($x8c); } $x8d = $x6a->getTableName("cataloginventory_stock_item"); $x8e = $x6a->getTableName("core_url_rewrite"); $x6f = $x6a->getTableName('catalog_category_product'); $x8f = $x6a->getTableName('catalog_category_product_index'); $x90 = $x6a->getTableName('catalog_product_index_price'); $x91 = $x6a->getTableName('catalog_product_super_link'); $x92 = $x6a->getTableName('catalog_product_link'); $x93 = $x6a->getTableName('catalog_product_bundle_selection'); ($xfb(Mage::getVersion(), '1.6.0', '<')) ? $x67 = "options=''" : $x67 = "ISNULL(options)"; $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x94->addFieldToFilter("status", array('gteq' => 1)); else $x94->addFieldToFilter("status", 1); $x94->addAttributeToFilter('type_id', array("in" => "configurable")); $x94->addAttributeToFilter('visibility', array("nin" => 1)); $x94->addAttributeToSelect($x72); $x94->getSelect()->joinLeft($x91 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $x94->getSelect()->group(array('cpsl.parent_id')); $x95 = array(); foreach ($x94 as $x96) { foreach ($xee(",", $x96->getChildIds()) as $x97) { $x95[$x97] = $x96; $x98[$x97]['categories_ids'] = $x96->getCategories_ids(); $x98[$x97]['parent_id'] = $x96->getId(); $x98[$x97]['parent_sku'] = $x96->getSku(); $x98[$x97]['parent_request_path'] = $x96->getRequestPath(); } } $this->configurable = $x95; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo $x94->getSelect() . '<br><br>'; $xf6($x98); } $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x94->addFieldToFilter("status", array('gteq' => 1)); else $x94->addFieldToFilter("status", 1); $x94->addAttributeToFilter('type_id', array("in" => "configurable")); $x94->addAttributeToFilter('visibility', array("nin" => 1)); $x94->getSelect()->joinLeft($x91 . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $x94->getSelect()->joinLeft($x8d . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(qty)')); $x94->getSelect()->group(array('cpsl.parent_id')); $x99 = array(); foreach ($x94 as $x9a) { $x99[$x9a->getId()] = $x9a->getQty(); } $this->configurableQty = $x99; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo $x94->getSelect() . '<br><br>'; $xf6($x99); } $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x94->addFieldToFilter("status", array('gteq' => 1));
else $x94->addFieldToFilter("status", 1); $x94->addAttributeToFilter('type_id', array("in" => "grouped")); $x94->addAttributeToFilter('visibility', array("nin" => 1)); $x94->addAttributeToSelect($x72); $x94->getSelect()->joinLeft($x92 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $x94->getSelect()->group(array('cpl.product_id')); $x9b = array(); foreach ($x94 as $x96) { foreach ($xee(",", $x96->getChildIds()) as $x97) { $x9b[$x97] = $x96; $x9c[$x97]['categories_ids'] = $x96->getCategories_ids(); $x9c[$x97]['parent_id'] = $x96->getId(); $x9c[$x97]['parent_sku'] = $x96->getSku(); $x9c[$x97]['parent_request_path'] = $x96->getRequestPath(); } } $this->grouped = $x9b; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo $x94->getSelect() . '<br><br>'; $xf6($x9c); } $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x94->addFieldToFilter("status", array('gteq' => 1)); else $x94->addFieldToFilter("status", 1); $x94->addAttributeToFilter('type_id', array("in" => "bundle")); $x94->addAttributeToFilter('visibility', array("nin" => 1)); $x94->addAttributeToSelect($x72); $x94->getSelect()->joinLeft($x93 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $x94->getSelect()->group(array('e.entity_id')); $x9d = array(); foreach ($x94 as $x96) { foreach ($xee(",", $x96->getChildIds()) as $x97) { $x9d[$x97] = $x96; $x9e[$x97]['parent_id'] = $x96->getId(); $x9e[$x97]['parent_sku'] = $x96->getSku(); $x9e[$x97]['parent_request_path'] = $x96->getRequestPath(); $x9e[$x97]['categories_ids'] = $x96->getCategories_ids(); } } $this->bundle = $x9d; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo $x94->getSelect() . '<br><br>'; $xf6($x9e); } $x9f = $x6a->getTableName("catalog_product_option"); $xa0 = $x6a->getTableName("catalog_product_option_title"); $xa1 = $x6a->getTableName("catalog_product_option_type_value"); $xa2 = $x6a->getTableName("catalog_product_option_type_title"); $xa3 = $x6a->getTableName("catalog_product_option_type_price"); $xa4 = $x6b->select(); $xa4->from(array("cpo" => $x9f), array("product_id")); $xa4->joinleft(array("cpot" => $xa0), "cpot.option_id=cpo.option_id AND cpot.store_id=0", array("option" => "title", "option_id", "store_id")); $xa4->joinleft(array("cpotv" => $xa1), "cpotv.option_id = cpo.option_id", "sku"); $xa4->joinleft(array("cpott" => $xa2), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); $xa4->joinleft(array("cpotp" => $xa3), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); $x6d = $xa4->order(array("product_id")); $x85 = $x6b->fetchAll($x6d); $xa5 = array(); $xa6 = 0; foreach ($x85 as $xa7) { $xa5[$xa7["product_id"]][$xa7["option"]]["options"][] = array( "value" => $xa7["value"], "sku" => $xa7["sku"], "price" => $xa7["price"], "price_type" => $xa7["price_type"] ); $xa6++; } $this->customOptions = $xa5; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo $xa4 . '<br><br>'; $xf6($xa5); } $xa8 = 0; $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x94->addFieldToFilter("status", array('gteq' => 1)); else $x94->addFieldToFilter("status", 1); $x94->addAttributeToFilter('type_id', array("in" => $x5e)); $x94->addAttributeToFilter('visibility', array("in" => $x5f)); $x94->getSelect()->columns("COUNT(DISTINCT e.entity_id) As total")->group(array('status')); $xa9 = $x94->getFirstItem()->getTotal(); $xaa = $xfd($xa9 / $this->_sqlSize) + 1; $x61 = ''; $xab = 1; while ($xa8 < $xaa) { $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("datafeedmanager/system/disabled")) $x94->addFieldToFilter("status", array('gteq' => 1)); else $x94->addFieldToFilter("status", 1); $x94->addAttributeToFilter("type_id", array("in" => $x5e)); $x94->addAttributeToFilter("visibility", array("in" => $x5f)); $x94->addAttributeToSelect($x72); $xac = 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)", ); $xad = ''; $x2f = 0; foreach ($x60 as $x74) { if ($x74->checked) { if ($x74->condition == 'in' || $x74->condition == 'nin') { if ($x74->code == 'qty' || $x74->code == 'is_in_stock') { $xae = $xee(',', $x74->value); $x74->value = "'" . $xe5($xae, "','") . "'"; } else { $x74->value = $xee(',', $x74->value); } } switch ($x74->code) { case 'qty' : if ($x2f > 0) $xad.=' AND '; $xad.=" qty " . $xfe($xac[$x74->condition], $x74->value); $x2f++; break; case 'is_in_stock' : if ($x2f > 0) $xad.=' AND '; $xad.=" (is_in_stock " . $xfe($xac[$x74->condition], $x74->value); $xad.=" OR ( manage_stock " . $xfe($xac[$x74->condition], (int) !$x74->value); $xad.=" AND use_config_manage_stock " . $xfe($xac[$x74->condition], (int) !$x74->value) . ')'; $xad.=" OR (use_config_manage_stock " . $xfe($xac[$x74->condition], $x74->value) . ' AND ' . $x45 . '=' . (int) $x74->value . ' AND is_in_stock = ' . $x74->value . ' )'; $xad.=")"; $x2f++; break; default : $x94->addFieldToFilter($x74->code, array($x74->condition => $x74->value)); break;
} } }; $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("datafeedmanager/system/urlrewrite")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); if ($x5b[0] != '*') { $x35 = 0; $xaf = null; foreach ($x5b as $x5d) { if ($x35 > 0) $xaf.=','; $xaf.=$xff($xee('/', $x5d)); $x35++; } ($x54) ? $xb0 = "IN" : $xb0 = "NOT IN"; $xaf = "AND categories_index.category_id " . $xb0 . " (" . $xaf . ")"; $x94->getSelect()->joinInner($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40 . ' ' . $xaf, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)')); } else $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)')); if ($xfb(Mage::getVersion(), '1.4.0', '>=')) $x94->getSelect()->joinLeft($x90 . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . Mage::getModel('core/store')->load($x40)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xad)) $x94->getSelect()->where($xad); $x94->getSelect()->group(array('e.entity_id')); $x94->getSelect()->group(array('e.entity_id')); if ($this->_debug && ($this->_type == '*' || $this->_type == "sql")) { echo "<br><br>------------ SQL ----------------<br>"; print($x94->getSelect()); } $x94->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa8)); $xa8++; $xa6 = 1; $xb1 = new MyCustomOptions; $xb2 = new MyCustomAttributes; foreach ($x94 as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->getSku() . " | ID -> " . $product->getId() . "]---------------<br>"; echo "categories : " . $product->getCategoriesIds() . ", Root id: " . $x4a . "<br>"; foreach ($xee(',', $product->getCategoriesIds()) as $x1c => $x69) { echo $x69 . "=>" . $x3d[$x69]["path"] . "<br>"; } } if (!$x100('safe_mode')) { $x101(60); } $x2c = $x4c; foreach ($x63 as $x1c => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $x85 = 1; $xb3 = array(); foreach ($exp['options'] as $x1c => $option) { if (isset($xa5[$product->getId()][$option])) { $x85 = $x85 * $xec($xa5[$product->getId()][$option]["options"]); $xb3[$x1c] = 0; } } $x1a = array(); for ($x7f = 1; $x7f <= $x85; $x7f++) { $xb4 = $x2c; foreach ($exp['options'] as $x1c => $option) { if (isset($xa5[$product->getId()][$option])) { $xb4 = $xe6("{" . $option . "_option_value}", $xa5[$product->getId()][$option]["options"][$xb3[$x1c]]['value'], $xb4); $xb4 = $xe6("{" . $option . "_option_sku}", $xa5[$product->getId()][$option]["options"][$xb3[$x1c]]['sku'], $xb4); if ($x1c > 0 || $xec($xa5[$product->getId()]) == 1 || $xec($exp['options']) < 1) $xb3[$x1c]++; if ($xb3[$x1c] >= $xec($xa5[$product->getId()][$option]["options"])) { $xb3[$x1c] = 0; $xb3[$x1c - 1]++; } } } $x1a[] = $xb4; } if ($xec($x1a) > 0) $x2c = $xe5($x1a); $this->skipOptions($xec($exp['options'])); break; case '{id}' : $xb5 = $this->checkReference($exp['reference'], $product); $value = $xb5->getId(); break; case '{inc}' : $value = $xab; break; case '{final_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getFinalePrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{tier_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getTierPrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getMinPrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getMaxPrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->type_id == 'bundle') $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{price}' : $xb5 = $this->checkReference($exp['reference'], $product);
if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb5->type_id == "bundle") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "bundle") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb5->getSpecialToDate()) { if ($xb5->type_id == "bundle") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "bundle") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } else { if ($xb5->type_id == "bundle") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp["options"][0])) ? $x23 = $x44 : $x23 = $exp["options"][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, ".", ""); $this->skipOptions(2); break; case "{is_special_price}" : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp["options"][0])) ? $xb6 = 1 : $xb6 = $exp["options"][0]; (!isset($exp["options"][1])) ? $xb7 = 0 : $xb7 = $exp["options"][1]; if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb5->type_id == "bundle") (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0 ) ? $value = $xb6 : $value = $xb7; else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $value = $xb6 : $value = $xb7; } } else { if ($xb5->type_id == "bundle") $value = $xb7; else { $value = $xb7; } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb5->getSpecialToDate()) { if ($xb5->type_id == "bundle") (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0 ) ? $value = $xb6 : $value = $xb7; else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $value = $xb6 : $value = $xb7; } } else { if ($xb5->type_id == "bundle") $value = $xb7; else { $value = $xb7; } } } else { if ($xb5->type_id == "bundle") (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0 ) ? $value = $xb6 : $value = $xb7; else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $value = $xb6 : $value = $xb7; } } $this->skipOptions(2); break; case "{special_price}" : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = null; if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb5->type_id == 'bundle') { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb5->getSpecialToDate()) { if ($xb5->type_id == 'bundle') { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } } } else { if ($xb5->type_id == 'bundle') { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; if ($x22 > 0) { $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $xb5 = $this->checkReference($exp['reference'], $product); $x40 = $this->getStoreId(); $xb8 = Mage::getResourceModel('catalogrule/rule'); $xb9 = Mage::app()->getLocale()->storeTimeStamp($x40); $xba = Mage::app()->getStore($x40); $xbb = $xba->getWebsiteId(); $xbc = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xbd = $xb8->getRulePrice($xb9, $xbb, $xbc, $xb5->getId()); if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s")) { if ($xb5->type_id == "bundle") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "bundle") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("Y-m-d H:i:s") && date("Y-m-d H:i:s") < $xb5->getSpecialToDate()) { if ($xb5->type_id == "bundle") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "bundle") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } else { if ($xb5->type_id == "bundle") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } if($xbd!==FALSE){ if($xbd<$x22) $value=$xbd; else $value=$x22; } else $value=$x22; (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($value, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp["options"][0])) ? $x23 = $x44 : $x23 = $exp["options"][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, ".", ""); $this->skipOptions(2); break; case "{G:SALE_PRICE}" : $xb5 = $this->checkReference($exp['reference'], $product); $xbe = $xe6(' ', 'T', $xb5->getSpecialFromDate()); $xbf = $xe6(' ', 'T', $xb5->getSpecialToDate()); if ($xb5->type_id == 'bundle' && $xb5->special_price) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, ".", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; if ($x22 > 0) { $x22 = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27);
(!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $x22 = $this->x111($x22, $x23); $x22 = $x102($x22, 2, '.', ''); ; } if ($x22 > 0) $value = "<g:sale_price><![CDATA[" . $x22 . "]]></g:sale_price>
"; if ($x22 > 0 && $xbf) $value.="<g:sale_price_effective_date><![CDATA[" . $xbe . "/" . $xbf . "]]></g:sale_price_effective_date>"; $this->skipOptions(2); break; case "{image}" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xb5->getImage() && $xb5->getImage() != 'no_selection') { $xc1 = 'catalog/product/' . $xb5->getImage(); $value = $x48 . $xe6('//', '/', $xc1); } else { $value = $x48 . '/catalog/product/placeholder/' . $x43; } } elseif (isset($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1] != $xc0) { $xc1 = 'catalog/product/' . $x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]; $value = $x48 . $xe6('//', '/', $xc1); } } $this->skipOptions(1); break; case "{G:IMAGE_LINK}" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getImage(); $xc2 = array($xb5->getSmall_image(), $xb5->getThumbnail()); $xc3 = ''; $xb3 = 0; if ($xb5->getImage() && $xb5->getImage() != 'no_selection') { $xc1 = 'catalog/product/' . $xb5->getImage(); $value = $x48 . $xe6('//', '/', $xc1); $xc3.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xb3++; } $xc4 = 0; while (isset($x8c[$xb5->getId()]['src'][$xc4]) && $xb3 < 10) { if ($x8c[$xb5->getId()]['src'][$xc4] != $xc0) { if ($xfc($x8c[$xb5->getId()]['src'][$xc4], $xc2) || $x8c[$xb5->getId()]['disabled'][$xc4] != 1) { $xc1 = 'catalog/product/' . $x8c[$xb5->getId()]['src'][$xc4]; $value = $x48 . $xe6('//', '/', $xc1); $xc3.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xb3++; } } $xc4++; } $value = $xc3; break; case "{url}" : $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getRequest_path()) { $value = $x47 . $xb5->getRequest_path(); } else { $value = $xb5->getProductUrl(); } break; case "{host}" : $value = $x47; break; case "{uri}" : (isset($exp['options'][0])) ? $xc5 = $exp['options'][0] : $xc5 = ""; (isset($exp['options'][1])) ? $xc6 = $exp['options'][1] : $xc6 = ""; $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getRequest_path()) { $value = $xc6 . '' . $xb5->getRequest_path() . $xc5; } else { $value = $xe6($x47, '', $xb5->getProductUrl()); } break; case '{is_in_stock}' : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xb6 = 1 : $xb6 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xb7 = 0 : $xb7 = $exp['options'][1]; if ($xb5->getManageStock() || ($xb5->getUseConfigManageStock() && $x45 )) { ($xb5->getIs_in_stock() > 0) ? $value = $xb6 : $value = $xb7; } else { $value = $xb6; } $this->skipOptions(2); break; case '{stock_status}' : $xb5 = $this->checkReference($exp['reference'], $product); ($xb5->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{qty}' : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xc7 = 0 : $xc7 = $exp['options'][0]; if ($product->type_id == "configurable") { $value = $x99[$product->getId()]; $value = $x102($value, $xc7, '.', ''); } else if ($exp['reference'] == "configurable") { $value = $x102($x99[$xb5->getId()], $xc7, '.', ''); } else { $value = $x102($xb5->getQty(), $xc7, '.', ''); } $this->skipOptions(1); break; case "{categories}" : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xc8 = INF : $xc8 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xc9 = 1 : $xc9 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $xca = INF : $xca = $exp['options'][2]; $xcb = 0; $value = ''; $xcc = ''; foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { ($x54) ? $xcd = $xfc($x3d[$x69]["path"], $x5b) : $xcd = !$xfc($x3d[$x69]["path"], $x5b); if (isset($x3d[$x69]) && $xcb < $xc8 && ($xcd || $x5b[0] == "*")) { $xce = 0; $xcf = $xee('/', $x3d[$x69]["path"]); if ($xfc($x4a, $xcf)) { $xd0 = ""; if ($xcb > 0) $xcc = ","; foreach ($xcf as $xd1) { if (isset($x3d[$xd1])) { if ($x3d[$xd1]['level'] > $xc9 && $xce < $xca) { if ($xce > 0) $xd0.=' > '; $xd0.=($x3d[$xd1]['name']); $xce++; } } } $xd2 = ""; if (!empty($xd0)) { $value.=$xcc . $xd0 . $xd2; $xcb++; } } } }; $this->skipOptions(3); break; case "{G:PRODUCT_TYPE}" : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xc8 = INF : $xc8 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xc9 = 1 : $xc9 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $xca = INF : $xca = $exp['options'][2]; $xcb = 0; $value = ''; foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { ($x54) ? $xcd = $xfc($x3d[$x69]["path"], $x5b) : $xcd = !$xfc($x3d[$x69]["path"], $x5b); if (@$x3d[$x69]["include_in_menu"] && isset($x3d[$x69]) && $xcb < $xc8 && ($xcd || $x5b[0] == "*")) { $xce = 0; $xcf = $xee('/', $x3d[$x69]["path"]); if ($xfc($x4a, $xcf)) { $xd0 = ''; $xcc = '<g:product_type><![CDATA['; foreach ($xcf as $xd1) { if (isset($x3d[$xd1])) { if ($x3d[$xd1]['level'] > $xc9 && $xce < $xca) { if ($xce > 0) $xd0.=' > '; $xd0.=($x3d[$xd1]['name']); $xce++; } } } $xd2 = "]]></g:product_type>
";
if (!empty($xd0)) { $value.=$xcc . $xd0 . $xd2; $xcb++; } } } }; $this->skipOptions(3); break; case "{G:GOOGLE_PRODUCT_CATEGORY}" : (isset($exp["options"][0])) ? $xd3 = $exp["options"][0] : $xd3 = 0; $value = ""; $xd4 = 0; $xb5 = $this->checkReference($exp['reference'], $product); foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { if (isset($x3d[$x69]["path"]) && isset($x5c[$x3d[$x69]["path"]])) { if ($xd4 == $xd3) { $value.="<g:google_product_category><![CDATA[" . $x5c[$x3d[$x69]["path"]] . "]]></g:google_product_category>
"; break; } $xd4++; } } $this->skipOptions(1); break; case "{category_mapping}" : (isset($exp["options"][0])) ? $xd3 = $exp["options"][0] : $xd3 = 0; $value = ""; $xb5 = $this->checkReference($exp['reference'], $product); $xd4 = 0; foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { if (isset($x5c[$x3d[$x69]["path"]])) { if ($xd4 == $xd3) { $value.=$x5c[$x3d[$x69]["path"]]; break; } $xd4++; } } $this->skipOptions(1); break; case "{review_count}": $xb5 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $xd5 = 0 : $xd5 = $x40; if (isset($x86[$xb5->getId()][$xd5]["count"])) { $xd6 = $x86[$xb5->getId()][$xd5]["count"]; if (isset($xd6)) $value.=$xd6; } $this->skipOptions(1); break; case "{review_average}": $xb5 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $xd5 = 0 : $xd5 = $x40; (!isset($exp["options"][1]) || !$exp["options"][1]) ? $xd7 = 5 : $xd7 = $exp["options"][1]; if (isset($x86[$xb5->getId()][$xd5]["score"])) { $xd8 = $x102($x86[$xb5->getId()][$xd5]["score"] * $xd7 / 100, 2, ".", ""); if (isset($xd8)) $value.=$xd8; } $this->skipOptions(2); break; case "{G:PRODUCT_REVIEW}" : $xb5 = $this->checkReference($exp['reference'], $product); (isset($exp["options"][0]) && $exp["options"][0] == "*" ) ? $xd5 = 0 : $xd5 = $x40; (!isset($exp["options"][1]) || !$exp["options"][1]) ? $xd7 = 5 : $xd7 = $exp["options"][1]; $value = ""; if (isset($x86[$xb5->getId()][$xd5]["count"])) { $xd6 = $x86[$xb5->getId()][$xd5]["count"]; $xd8 = $x102($x86[$xb5->getId()][$xd5]["score"] * $xd7 / 100, 2, ".", ""); } if (isset($xd8) && $xd8 > 0) { $value.="<g:product_review_average><![CDATA[" . $xd8 . "]]></g:product_review_average>
"; } if (isset($xd6) && $xd6 > 0) { $value.="<g:product_review_count><![CDATA[" . $xd6 . "]]></g:product_review_count>
"; } unset($xd8); unset($xd6); break; case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->getId()])) { $xb5 = $this->checkReference('configurable', $product); $value = "<g:item_group_id><![CDATA[" . $xb5->getSku() . "]]></g:item_group_id>"; } break; case "{SC:EAN}" : ($xed($exp['options'][0]) && $exp['options'][0] > 0) ? $xd9 = $exp['options'][0] : $xd9 = 0; $xb5 = $this->checkReference($exp['reference'], $product); $value = $xee(',', $xb5->getEan()); $value = "<g:ean><![CDATA[" . $value[$xd9] . "]]></g:ean>"; break; case "{sc:ean}" : ($xed($exp['options'][0]) && $exp['options'][0] > 0) ? $xd9 = $exp['options'][0] : $xd9 = 0; $xb5 = $this->checkReference($exp['reference'], $product); $value = $xee(',', $xb5->getEan()); $value = $value[$xd9]; break; case "{SC:IMAGES}" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getSmall_image(); $xc2 = array($xb5->getImage(), $xb5->getThumbnail()); $xc3 = ''; $xb3 = 0; if ($xb5->getSmall_image() && $xb5->getSmall_image() != 'no_selection') { $xc1 = $xb5->getSmall_image(); $value = $xc1; $xc3.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; $xb3++; } $xc4 = 0; while (isset($x8c[$xb5->getId()]['src'][$xc4]) && $xb3 < 10) { if ($x8c[$xb5->getId()]['src'][$xc4] != $xc0) { if ($xfc($x8c[$xb5->getId()]['src'][$xc4], $xc2) || $x8c[$xb5->getId()]['disabled'][$xc4] != 1) { $xc1 = $x8c[$xb5->getId()]['src'][$xc4]; $value = $xc1; $xc3.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; $xb3++; } } $xc4++; } $value = $xc3; break; case "{sc:images}" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getSmall_image(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xb5->getSmall_image() && $xb5->getSmall_image() != 'no_selection') { $xc1 = $xb5->getSmall_image(); $value = $xc1; } else { $value = $x48 . '/catalog/product/placeholder/' . $x43; } } elseif (isset($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1] != $xc0) { $xc1 = 'catalog/product/' . $x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]; $value = $x48 . $xe6('//', '/', $xc1); } } $this->skipOptions(1); break; case "{SC:DESCRIPTION}" : $xb5 = $this->checkReference($exp['reference'], $product); $xda = $xb5->getDescription() . $xb5->getShortDescription(); $xdb = "|<iframe(.*)</iframe>|U"; $xe9($xdb, $xda, $xdc); if ($xdc) { $xda = $xb5->getAttributeText('manufacturer') . " " . $xb5->getName() . " - Part number: " . $xb5->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($xfc("strip_tags", $exp['options'])) { $xda = $xf3('!\<br /\>!isU', " ", $xda); $xda = $xf3('!\<br/\>!isU', " ", $xda); $xda = $xf3('!\<br>!isU', " ", $xda); $xda = $x103($xda); } if ($xfc("html_entity_decode", $exp['options'])) { $xda = $x104($xda, ENT_QUOTES, 'UTF-8'); } if ($xfc("htmlentities", $exp['options'])) { $xda = $x105(($xda)); } if ($xf1($xda) > 900) { $xda = $xef($xda, 0, 900 - 3);
$xdd = $x106($xda, " "); $xda = $xef($xda, 0, $xdd) . '...'; } } if ($xda == null) $xda = $xb5->getAttributeText('manufacturer') . " " . $xb5->getName() . " - Part number: " . $xb5->getSku() . " - Category : {categories,[1],[1],[1]}"; $xda = $xf3('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xda); $xda = $xe6('', '', $xda); $value = "<description><![CDATA[" . $xda . "]]></description>"; $exp['options'] = array(); break; case "{sc:description}" : $xb5 = $this->checkReference($exp['reference'], $product); $xda = $xb5->getDescription() . $xb5->getShortDescription(); $xdb = "|<iframe(.*)</iframe>|U"; $xe9($xdb, $xda, $xdc); if ($xdc) { $xda = $xb5->getAttributeText('manufacturer') . " " . $xb5->getName() . " - Part number: " . $xb5->getSku() . " - Category : {categories,[1],[1],[1]}"; } else { if ($xfc("strip_tags", $exp['options'])) { $xda = $xf3('!\<br /\>!isU', " ", $xda); $xda = $xf3('!\<br/\>!isU', " ", $xda); $xda = $xf3('!\<br>!isU', " ", $xda); $xda = $x103($xda); } if ($xfc("html_entity_decode", $exp['options'])) { $xda = $x104($xda, ENT_QUOTES, 'UTF-8'); } if ($xfc("htmlentities", $exp['options'])) { $xda = $x105(($xda)); } if ($xf1($xda) > 900) { $xda = $xef($xda, 0, 900 - 3); $xdd = $x106($xda, " "); $xda = $xef($xda, 0, $xdd) . '...'; } } if ($xda == null) $xda = $xb5->getAttributeText('manufacturer') . " " . $xb5->getName() . " - Part number: " . $xb5->getSku() . " - Category : {categories,[1],[1],[1]}"; $xda = $xf3('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $xda); $xda = $xe6('', '', $xda); $value = $xda; $exp['options'] = array(); break; case "{SC:URL}" : $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getRequest_path()) { $value = "<link><![CDATA[" . $x47 . $xb5->getRequest_path() . "]]></link>"; } else { $value = "<link><![CDATA[" . $xb5->getProductUrl() . "]]></link>"; } break; case "{sc:url}" : (isset($exp['options'][0])) ? $xc5 = $exp['options'][0] : $xc5 = ""; (isset($exp['options'][1])) ? $xc6 = $exp['options'][1] : $xc6 = ""; $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getUrlKey()) { $value = $x47 . $xc6 . $xb5->getRequest_path() . $xc5; } else { $value = $xb5->getProductUrl(); } break; case "{SC:CONDITION}" : $xb5 = $this->checkReference($exp['reference'], $product); ($xf5($xb5->getName(), "refurbished")) ? $xac = 'refurbished' : $xac = 'new'; $value = "<g:condition><![CDATA[" . $xac . "]]></g:condition>"; break; case "{sc:condition}" : $xb5 = $this->checkReference($exp['reference'], $product); ($xf5($xb5->getName(), "refurbished")) ? $xac = 'refurbished' : $xac = 'new'; $value = $xac; break; default : $xb5 = $this->checkReference($exp['reference'], $product); if ($xfc($exp['name'], $x72)) { if ($xfc($x73[$exp['name']], array('select', 'multiselect'))) { eval('$xdf =($xb5->' . $exp['methodName'] . "); "); $xde = $xee(',', $xdf); if ($xec($xde) > 1) { $value = array(); foreach ($xde as $x35) { if (isset($x78[$x35][$x40])) $value[] = $x78[$x35][$x40]; else { if (isset($x78[$x35][0])) $value[] = $x78[$x35][0]; } } } else { if (isset($x78[$xde[0]][$x40])) { $value = $x78[$xde[0]][$x40]; } else { if (isset($x78[$xde[0]][0])) $value = $x78[$xde[0]][0]; } } } else { eval('$value =($xb5->' . $exp['methodName'] . "); "); } } if ($xfc(@$x70[$exp['name']], $x70)) { $value = $x70[$exp['name']]; } $value = $xb2->_eval($product, $exp, $value); if ($x107($value) && !$value) continue 3; break; } if ($xec($exp['options']) > 0) { foreach ($exp['options'] as $x1c => $option) { if ($x1c >= $this->option) { switch ($exp['options'][$this->option]) { case "substr" : if (isset($exp['options'][$this->option + 1]) && $xf1($value) > $exp['options'][$this->option + 1]) { $value = $xef($value, 0, $exp['options'][$this->option + 1] - 3); $xdd = $x106($value, " "); $value = $xef($value, 0, $xdd) . $exp['options'][$this->option + 2]; } $this->skipOptions(3); break; case "strip_tags" : $xe0 = " "; $value = $xf3('!\<br /\>!isU', $xe0, $value); $value = $xf3('!\<br/\>!isU', $xe0, $value); $value = $xf3('!\<br>!isU', $xe0, $value); $value = $x103($value); $this->skipOptions(1); break; case "htmlentities" : $value = $x105(($value)); $this->skipOptions(1); break; case "implode" : $value = ($xf8($value)) ? $xe5($exp['options'][$this->option + 1], $value) : $value; $this->skipOptions(2); break; case "float" : $value = $x102($value, $exp['options'][$this->option + 1], '.', ''); $this->skipOptions(2); break; case "html_entity_decode" : $value = $x104($value, ENT_QUOTES, 'UTF-8'); $this->skipOptions(1); break; case "inline": $value = $xf3('/(
|
|
|
)/s', ' ', $value); $this->skipOptions(1); break; case "strtolower": $value = $x108($value, "UTF8"); $this->skipOptions(1); break; case "strtoupper": $value = $x109($value, "UTF8"); $this->skipOptions(1); break; case "cleaner": $value = $xf3('/' . '[-]' . '|[-][-]+' . '|([]|[-])[-]*' . '|[-]((?![-])|[-]{2,})' . '|[-](([-](?![-]))|' . '(?![-]{2})|[-]{3,})' . '/S', ' ', $value); $value = $xe6('', '', $value); $this->skipOptions(1); break; default : $xb1->option = $this->option; $value = $xb1->_eval($product, $exp, $value);
$this->option = $xb1->option; if ($x107($value) && !$value) continue 3; break; } } } } if ($x4e > 1) $value = $this->x117($value); $value = $xe6(array("<", ">"), array("{([", "])}"), $value); $x2c = $xe6($exp['fullpattern'], $value, $x2c); } $x2c = $this->x110($x2c, $product, $x4e); if ($x4e == 1 || ($x4e != 1 && !$this->_display)) $x2c = $this->x114($x2c); if ($x4e == 1) $x2c = $this->x113($x2c, $x52); else { if (!$this->_display) $x2c = $this->x116($x2c, $x36, $x37); else { $x2c = $this->x115(($x2c), false); } } $x2c = $xe6(array("{([", "])}"), array("<", ">"), $x2c); if (!empty($x2c)) { if ($x4e == 1) $x61.=$x2c . ""; else $x61.=$x2c . "
"; if ($this->_display) { $x62.=$x61; $x61 = ''; } else { if ($xa6 % Mage::getStoreConfig("datafeedmanager/system/buffer") == 0) { $x1e->streamWrite($x61); unset($x61); $x61 = ''; } } if ($this->_limit && $xa6 >= $this->_limit) break 2; $xa6++; $xab++; } } } if (!$this->_display) { $x1e->streamWrite($x61); if ($xf1($xf0($x4d)) > 1) $x1e->streamWrite($x4d . "
"); } else { $x62.=$x61; $x62.=$x4d . "
"; if ($x4e > 1) $x62.="</table>"; } unset($x94); if ($this->_display && !$this->_debug) { ($x4e == 1 && !Mage::app()->getRequest()->getParam("real_time_preview")) ? $xda = "<textarea id='CodeMirror' class='CodeMirror'>" . ($x62) . "</textarea>" : $xda = $x62; if ((!Mage::app()->getRequest()->getParam("real_time_preview"))) { return("
<html>
<head>
<title>" . $this->getFeedName() . "</title>
<link rel='stylesheet' href='" . $x46 . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.css'>
<link rel='stylesheet' href='" . $x46 . "skin/adminhtml/default/default/CodeMirror2/theme/default.css'>
<script type='text/javascript' src='" . $x46 . "skin/adminhtml/default/default/CodeMirror2/lib/codemirror.js'></script>
<script type='text/javascript' src='" . $x46 . "skin/adminhtml/default/default/CodeMirror2/mode/xml/xml.js'></script>
</head>
<body>
" . $xda . "
<script language='javascript'>
sHtml=document.getElementById('CodeMirror');
if(typeof sHtml != 'undefined'){ var myCodeMirror = CodeMirror(function(elt) {
sHtml.parentNode.replaceChild(elt, sHtml)}, {
value: sHtml.value,
mode: 'xml',
readOnly: true
})
}
</script>
</body>
</html>"); } else return $xda; } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>"; $xda = "<pre>" . $x10a($x62) . "</pre>"; return $xda; } else { $x1e->streamClose(); $x1e->mv($this->getFilename(), $this->getFilename(false)); $x1e->rm($this->getFilename()); $this->setFeedUpdatedAt(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s')); $this->save(); if ($x55) { $xe1 = $x10b($x56); $xe2 = $x10c($xe1, $x57, $x58); $x10d($xe1, true); if ((!$xe1) || (!$xe2)) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Unable to connect the ftp server, please check your credentials.")); } $xe3 = $x10e($xe1, $x59 . $this->getFilename(false), $this->getPath() . $this->getFilename(false), FTP_BINARY); if (!$xe3) { Mage::getSingleton("adminhtml/session")->addError(Mage::helper("datafeedmanager")->__("Unable to upload the file to the FTP directory.")); } else { Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("datafeedmanager")->__("File successfully uploaded on $x56.")); } $x10f($xe1); } } return $this; } } include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myCustomAttributes.php"); include(Mage::getBaseDir() . "/app/code/local/Wyomind/Datafeedmanager/myCustomOptions.php"); ;
Did this file decode correctly?
Original Code
<?php class Wyomind_Datafeedmanager_Model_Datafeedmanager 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 function x110($myPattern, $product, $x16 = true, $x17 = false) { $xe4="\x70\162\x65\x67\x5fs\160\x6c\151\x74"; $xe5="\151\155\x70\154o\144e"; $xe6="s\x74\162\x5f\162\145\160\x6c\141\x63\145"; $xe7="\165t\146\70_\145n\x63\157\144\145"; $xe8="\160\x72\145\x67\137ma\x74\143h\x5f\141\x6c\154"; $xe9="\x70r\x65\147\x5f\x6da\164\x63\150"; $xea="\x72\164\x72\151\x6d"; $xeb="\151s_n\x75\x6c\x6c"; $xec="\x63\x6f\165\156t"; $xed="i\x73\x5f\x6e\165m\x65ri\143"; $xee="e\170p\x6co\144\x65"; $xef="\x73ub\x73tr"; $xf0="\x74ri\155"; $xf1="s\164\x72l\x65\x6e"; $xf2="u\x74f\70_\144\145c\x6f\144\x65"; $xf3="p\162\x65\147_\162\x65p\154a\143e"; $xf4="j\163\x6fn_\x64\145\x63\157\144\145"; $xf5="\x73\x74ris\x74\x72"; $xf6="\x70\x72i\156\164\137r"; $xf7="\151\x73\x5f\163t\x72\x69\x6e\x67"; $xf8="\x69\x73\137a\x72r\x61\171"; $xf9="\x75\143\167\x6f\162\144\x73"; $xfa="\141\162r\x61y\137p\165s\x68"; $xfb="v\145\x72\x73\151\157\x6e_c\x6fmp\x61\x72\x65"; $xfc="i\156\x5f\x61\x72\162a\171"; $xfd="\x72o\x75nd"; $xfe="s\160r\151n\x74f"; $xff="\141\162\x72\x61\x79\x5fp\x6f\160"; $x100="\x69\x6e\151_\x67\145t"; $x101="s\145\x74_\164\151\155\x65\x5f\x6c\x69mi\x74"; $x102="n\x75mb\145\x72\x5f\146\x6f\162\155\141t"; $x103="\x73\164\162\x69\x70\x5f\x74\x61\147s"; $x104="ht\x6dl_\x65n\x74i\x74y_\144ec\x6f\x64\145"; $x105="\150\164\x6dl\x73pe\143i\x61l\143\x68\141\x72\x73"; $x106="\163\x74\162\162\x70\x6f\163"; $x107="\x69\x73\x5f\x62o\x6f\x6c"; $x108="\x6db_\163tr\x74o\x6c\x6fwe\162"; $x109="\x6d\142\137\163\x74rt\157\x75\x70\x70\145\x72"; $x10a="\150\164\x6dle\156\164\151t\151\145\x73"; $x10b="\x66t\x70\x5fco\x6e\x6e\145\143\164"; $x10c="\x66\164\x70\137l\x6fgin"; $x10d="\x66\x74\160\x5f\160\x61s\x76"; $x10e="\146\164\160\137\x70ut"; $x10f="f\164p\x5f\x63\154o\163e"; if ($x17) { $x18 = $xe4("/\x0a\57", $myPattern); $x19 = $x18[0]; $x18[0] = null; $myPattern = $xe5($x18, "\x0a"); } $myPattern = $xe6('<?', $xe7(''), $myPattern); $myPattern = $xe6('?>', $xe7(''), $myPattern); $x1a = $xe7('/((.[^]+))/s'); $xe8($x1a, $myPattern, $x1b); if (isset($x1b[1])) { foreach ($x1b[1] as $x1c => $x1d) { if ($x16 == 1) { if (@eval($x1b[2][$x1c] . '; ')) $myPattern = $xe6($x1d, eval($x1b[2][$x1c] . '; '), $myPattern); else $myPattern = $xe6($x1d, '', $myPattern); } else { if (@eval($this->unx117($x1b[2][$x1c] . '; '))) $myPattern = $xe6($x1d, $this->x117(eval($this->unx117($x1b[2][$x1c]) . '; ')), $myPattern); else $myPattern = $xe6($x1d, '', $myPattern); } } } if ($x17) { if ($x16 == 1) return $x19 . "\x0a" . $myPattern; else return $x19; } else return $myPattern; } protected function _construct() { $xe4="pr\145\x67\137\163pl\151\164"; $xe5="\x69\x6d\160l\157\x64\145"; $xe6="st\162\137\162\145\x70\x6c\141\143e"; $xe7="\165t\146\70\x5fe\x6e\x63\x6fd\x65"; $xe8="\x70\162\145\x67\137\x6d\x61t\143\150\137\x61\x6c\x6c"; $xe9="\160\162\145g\x5fm\141\164c\x68"; $xea="\162\164\x72im"; $xeb="\x69\x73\x5f\156u\154l"; $xec="\x63\157u\156\x74"; $xed="\x69\163\x5f\156\x75\155\x65\x72i\x63"; $xee="\145\x78plo\144\x65"; $xef="s\165\x62s\164\162"; $xf0="\164r\151\155"; $xf1="\163\x74\x72\154\145\156"; $xf2="u\x74f\70\137\x64e\x63\x6f\144\x65"; $xf3="\x70\x72\x65g\137r\x65\160\154a\x63\x65"; $xf4="j\163o\x6e_de\x63\157\144\x65"; $xf5="\x73t\x72\x69\x73\164r"; $xf6="\160ri\156\164\137\x72"; $xf7="is_\163\x74r\151ng"; $xf8="\151\163\137\141\162\x72a\171"; $xf9="\x75cw\157\x72\x64\x73"; $xfa="\141r\x72a\171\137\x70\x75\163h"; $xfb="v\145r\163\x69\157n\137\x63\x6f\x6d\x70\x61\162\145"; $xfc="\x69\156_\x61r\x72ay"; $xfd="\x72o\x75nd"; $xfe="\163\x70r\151n\164f"; $xff="\x61\x72r\141\x79\x5fp\x6f\x70"; $x100="\151\156\151_\147e\164"; $x101="\163\145\x74\137\x74\151\x6d\x65_\154i\x6d\x69\164";
$x102="n\165m\142\x65r\137f\x6fr\x6d\141\164"; $x103="s\x74\x72\151\160_\164\x61\x67s"; $x104="\150\x74ml\x5fe\x6eti\164\171\137\144\x65\x63\x6f\144\x65"; $x105="\150t\155\x6c\x73p\145\143\151\x61\154cha\x72s"; $x106="s\x74\162r\x70\157\163"; $x107="\151s\x5fb\x6f\x6f\x6c"; $x108="\x6db\x5fst\x72\164\157l\x6f\167\x65r"; $x109="\155\x62_\x73t\x72to\x75\x70\x70e\x72"; $x10a="\x68\164\155\154e\156\x74\x69\x74\x69\145s"; $x10b="\146\x74p\x5f\143\157nn\x65c\164"; $x10c="\x66t\160\137\x6c\157\x67\x69n"; $x10d="f\164\160_\x70a\x73\166"; $x10e="\x66\164\x70_p\x75t"; $x10f="\146\164p\x5fclo\x73\145"; $this->_sqlSize = Mage::getStoreConfig("\144a\x74\141f\145edm\x61\156\141g\145\x72\57s\171\x73\164\145\x6d/\x73\161\154\163\151\172\x65"); $this->_init('datafeedmanager/datafeedmanager'); } protected function _beforeSave() { $xe4="\x70\162\145g\137sp\154\151\x74"; $xe5="\x69\155\x70\x6c\x6f\144e"; $xe6="\x73\x74r\137\x72\x65pl\141c\145"; $xe7="\x75tf\70\x5f\145\156co\x64\145"; $xe8="\160\162eg\x5f\x6d\x61\x74\143h\137\141ll"; $xe9="pr\145\147\137\155a\164\x63h"; $xea="r\164\x72\151\155"; $xeb="\151\x73_n\x75ll"; $xec="\x63ou\156\164"; $xed="\151\x73\137\x6eu\155e\162i\x63"; $xee="\x65\x78\x70\x6cod\145"; $xef="\163\165bs\164\162"; $xf0="t\x72\151m"; $xf1="s\x74\162\154\145\156"; $xf2="ut\146\70\x5f\144ec\157\x64\x65"; $xf3="p\x72\x65g\137r\x65\160\154\141c\x65"; $xf4="j\x73o\156\137\144\x65\x63\x6fde"; $xf5="\163\x74\162\151\x73\x74\162"; $xf6="\160\x72i\156t\137\162"; $xf7="\x69s_str\151\x6eg"; $xf8="i\163\x5f\x61r\162ay"; $xf9="u\x63\x77\157\x72\144s"; $xfa="\141\162r\x61\171\137\160u\x73\x68"; $xfb="\166\x65\x72\x73\x69o\x6e\137\x63\x6f\155\160a\x72\145"; $xfc="i\156_\x61rr\141\171"; $xfd="\162\157\x75nd"; $xfe="s\x70\x72\151\x6e\x74\146"; $xff="\x61\x72\162a\171\137\160o\160"; $x100="\151\156\151_\x67\145t"; $x101="s\x65\x74\137t\x69\x6de\x5f\154i\155\151\x74"; $x102="nu\x6d\142e\162_\x66\157\162mat"; $x103="st\162\151p\137t\x61\x67\x73"; $x104="\150\x74\x6dl_\145\x6et\151\x74\x79_deco\x64\x65"; $x105="h\x74\x6d\154s\160ec\x69\141l\x63h\141\162s"; $x106="\x73\x74\162\162\x70\x6f\163"; $x107="\151\x73\137\x62o\157\154"; $x108="\x6d\x62\137\x73\164\x72\164\x6f\x6c\157w\x65r"; $x109="m\142\x5f\163\164\162\x74ou\x70\160\x65\x72"; $x10a="h\x74\x6d\154\145\x6e\164i\x74\x69\x65s"; $x10b="\146\x74\160\x5f\x63\x6fn\156\145\143\x74"; $x10c="ft\x70\137\x6c\157g\151\156"; $x10d="f\164\x70\137p\141\163v"; $x10e="f\164p\x5fp\x75\164"; $x10f="\x66\164\160_cl\x6fse"; $x1e = new Varien_Io_File(); $x1f = $x1e->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath()); if (!$x1e->allowedPath($x1f, Mage::getBaseDir())) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path')); } if (!$x1e->fileExists($x1f, 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 (!$x1e->isWriteable($x1f)) { Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath())); } if (!$xe9('#^[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($xea($xe6($xe6('\\', '/', Mage::getBaseDir()), '', $x1f), '/') . '/'); return parent::_beforeSave(); } protected function getPath() { $xe4="\x70\162eg\x5f\x73\160\x6ci\164"; $xe5="i\155\x70\x6c\157d\145"; $xe6="\x73t\162\137\x72ep\154\141c\145"; $xe7="\165t\x66\70_\x65\x6e\143\157\144e"; $xe8="p\x72\x65\147_\155\141\x74\x63\x68\137\x61ll"; $xe9="\x70\162eg\x5f\155\141t\x63\150"; $xea="\162\164ri\x6d"; $xeb="\x69s_\156\x75\154\x6c"; $xec="\143\x6f\165\156\164"; $xed="i\163\x5fnum\145\162i\x63"; $xee="ex\x70\154\x6fd\145"; $xef="\x73u\142str"; $xf0="t\x72\x69\155"; $xf1="\163\164rl\145\156"; $xf2="\x75\164\x66\70_decod\145"; $xf3="\x70\x72eg\137\x72e\x70\x6c\141\x63\x65"; $xf4="j\x73\157\156_\x64\x65\143o\x64e"; $xf5="s\x74r\151st\162"; $xf6="\160\x72\151\x6e\x74\x5f\162"; $xf7="i\x73\137\163\164\162\x69ng"; $xf8="\151s\x5fa\x72ra\x79"; $xf9="uc\x77\157rds"; $xfa="\x61\x72\162\141\x79\137pus\x68"; $xfb="\x76\x65\162\163\x69\157\x6e_c\x6f\x6d\160\x61\x72\x65"; $xfc="\x69\x6e_a\x72\162a\x79"; $xfd="r\157\x75\x6e\x64"; $xfe="\x73\x70\162\151\156t\x66"; $xff="\141\162\x72\141\x79\137\160o\160"; $x100="i\x6e\151\x5fg\x65\x74"; $x101="\x73\x65\164_ti\x6de_\154\x69\155i\x74"; $x102="\156\165mber\x5f\x66\157\162\x6d\141t"; $x103="\x73\164\x72\x69\160\137t\141\x67\163";
$x104="h\x74\155\x6c\137\x65\x6e\164\151t\x79\x5f\144\x65\x63ode"; $x105="h\164mls\x70\x65\143\151\x61lchar\163"; $x106="\x73\x74\162\x72pos"; $x107="\x69\x73\137\142\157\157\154"; $x108="\x6d\x62_\x73\x74\162\x74\157lo\167er"; $x109="\155\142_s\164\x72\x74oupp\x65r"; $x10a="\x68t\155l\x65\156\x74it\x69\145\x73"; $x10b="f\164p\137\143onn\145\143\164"; $x10c="\146\164\160\137\154\x6fg\151\156"; $x10d="\146t\x70\137\160\x61\163\x76"; $x10e="\146\x74\x70\x5fp\x75\164"; $x10f="\x66t\x70\x5f\143\154os\x65"; if ($xeb($this->_filePath)) { $this->_filePath = $xe6('//', '/', Mage::getBaseDir() . $this->getFeedPath()); } return $this->_filePath; } protected function getFilename($x20 = true) { $xe4="\x70\162\145\x67\x5f\x73\160\154it"; $xe5="\x69\155pl\157\x64e"; $xe6="s\164\162\x5fre\x70\x6c\x61\143e"; $xe7="u\x74\x66\70_en\x63ode"; $xe8="\160\162\145\147\x5f\155\141\164c\x68\137\x61ll"; $xe9="\x70re\147_\155\x61\164\143\150"; $xea="\162\x74\x72\151\x6d"; $xeb="i\163\137\156u\x6c\154"; $xec="\x63\157\x75nt"; $xed="i\x73_\156\x75\155\145r\x69c"; $xee="\x65x\160\154\157d\145"; $xef="\x73u\x62\163\164r"; $xf0="\x74\162\x69\155"; $xf1="\x73\x74\162l\x65\156"; $xf2="\165\164f\70\x5fd\145\x63o\144\x65"; $xf3="\x70r\145g\137rep\x6c\x61\143\x65"; $xf4="\152\163o\156_\x64\145cod\145"; $xf5="\163t\162\x69\x73\x74\162"; $xf6="\160\x72\151\x6e\x74_r"; $xf7="i\163_st\x72\151\156g"; $xf8="\x69\163\x5f\141\x72r\141\171"; $xf9="\165\143\x77\157\162\x64s"; $xfa="\x61\x72\162\x61\x79\x5f\x70u\163h"; $xfb="v\145\x72\x73\x69\x6f\x6e\137\143o\155\x70\x61\x72\145"; $xfc="\151\x6e\x5f\x61\x72r\x61\171"; $xfd="\x72\157u\156\144"; $xfe="\163\x70\162\151\156t\146"; $xff="\141rra\x79\137\160\157p"; $x100="i\x6e\x69\x5f\x67\x65\164"; $x101="\x73\145t\x5ft\151m\145\x5fli\155\151\164"; $x102="\x6eu\155be\162\137\146\x6f\x72\x6d\x61\x74"; $x103="\163\x74\162i\x70\x5f\164\141g\x73"; $x104="\x68\x74\155\x6c\x5fe\156ti\164\x79_\144\145\x63od\x65"; $x105="\x68t\x6d\154sp\145\x63ialc\x68a\x72\163"; $x106="\x73\x74\162\162p\157\x73"; $x107="i\x73\137\142\x6f\157\154"; $x108="\x6d\142\x5f\163\x74\x72\x74\157\x6c\x6f\167er"; $x109="mb_\163\x74\x72t\157\x75\x70p\x65\x72"; $x10a="\x68t\155l\x65\156\164\x69\x74\151\x65\163"; $x10b="\x66\164\160_\143\157\156\x6e\145c\x74"; $x10c="\146\164p\137l\157\147\x69n"; $x10d="\146\164p\137p\x61\163\x76"; $x10e="ft\160_\x70\x75t"; $x10f="\146\164\x70_c\x6c\x6f\163e"; ($x20) ? $x20 = '.temp' : $x20 = null; $x21 = array(1 => 'xml', 2 => 'txt', 3 => 'csv'); return $this->getFeedName() . "\x2e" . $x21[$this->getFeedType()] . $x20; } public function getPreparedFilename() { $xe4="pr\145\147\137\163\160li\x74"; $xe5="\151m\160lo\x64e"; $xe6="\163\x74r\137r\145\x70\x6c\x61c\x65"; $xe7="\x75\x74f\70\x5f\x65\156cod\x65"; $xe8="pr\145\x67_m\x61t\x63h\x5f\x61ll"; $xe9="\x70\x72e\x67\137\155\141tc\150"; $xea="\x72\x74ri\x6d"; $xeb="i\x73_n\165l\154"; $xec="\x63o\x75\x6et"; $xed="\x69\163\137\x6e\165\155er\x69\143"; $xee="\145x\x70lo\144e"; $xef="s\165bs\x74\162"; $xf0="\x74\x72i\155"; $xf1="\x73\x74rl\145\x6e"; $xf2="\165\164f\70_\x64e\x63\157\x64e"; $xf3="p\x72e\147_\162e\160\x6c\x61\x63\145"; $xf4="\152\x73on\137\144eco\x64\x65"; $xf5="\163\x74\162\151\x73\x74\162"; $xf6="\x70\x72\151n\164\137\162"; $xf7="\151\x73_s\x74\x72\x69\156g"; $xf8="\x69s\137a\162\x72ay"; $xf9="uc\167\x6f\x72ds"; $xfa="\x61r\x72a\x79\137\160u\163\x68"; $xfb="\166e\x72s\151\x6fn\x5f\143ompare"; $xfc="\151\x6e_\141r\162\141y"; $xfd="r\157u\156\x64"; $xfe="s\x70\x72\151\x6e\164\x66"; $xff="\141\162\x72\141\x79\x5f\x70op"; $x100="\x69n\x69\x5fge\x74"; $x101="\163\145t\x5f\x74im\x65\137l\x69mi\164"; $x102="\x6e\x75\x6d\142e\x72\137f\x6f\x72m\x61\164"; $x103="\x73t\x72\151\x70_\x74\141\x67s"; $x104="\x68\x74\155l\137\145\156\x74\151t\x79\x5f\144\145\143\157d\145"; $x105="\150tm\154\163\x70ec\x69\x61\x6c\x63\x68\x61\x72s"; $x106="st\x72\162po\x73"; $x107="\x69s\137b\x6f\x6fl"; $x108="m\142\137st\x72\x74o\x6c\x6f\x77\x65\x72"; $x109="\x6d\x62\137s\x74\162\x74o\165pper"; $x10a="\150\164\x6d\154\145n\x74\x69ti\x65s";
$x10b="f\x74p_\143\x6f\x6ene\x63t"; $x10c="\x66\x74\160\137l\157\147i\x6e"; $x10d="ftp\137pa\163\166"; $x10e="ft\x70\137\x70\x75\164"; $x10f="\146\164p\x5f\x63l\x6f\163\x65"; return $this->getPath() . $this->getFilename(); } public function x111($x22, $x23) { $xe4="\160\x72\x65\x67\137s\x70\154\151t"; $xe5="i\155p\x6co\144\x65"; $xe6="\x73\x74\x72\137r\145p\154a\x63\145"; $xe7="u\164\146\70\137\145\156\143\x6f\x64e"; $xe8="\160re\x67\x5f\155\141\x74c\150\x5f\x61\154l"; $xe9="p\x72\145\147_\155at\x63\150"; $xea="\x72trim"; $xeb="\x69s\x5f\x6e\165\154\x6c"; $xec="\x63\x6f\165\x6e\164"; $xed="\151\x73\x5f\x6eu\x6de\162\x69\143"; $xee="\x65xpl\x6f\144\145"; $xef="\x73\165bstr"; $xf0="\164\x72\x69\155"; $xf1="\x73\164\162l\x65n"; $xf2="u\164f\70\x5f\x64\x65\x63o\144\x65"; $xf3="\160\x72\145\x67_r\145p\154\x61c\x65"; $xf4="\152s\157\156\137\x64\145\143\x6f\x64\x65"; $xf5="s\164\162\x69s\x74\162"; $xf6="\x70ri\156t_\x72"; $xf7="\x69\163_\x73\x74\x72i\x6e\147"; $xf8="\151\163_a\x72\x72\x61\x79"; $xf9="u\143\167o\x72\144\163"; $xfa="\x61\x72\162a\x79\x5f\x70\x75s\x68"; $xfb="\166\x65\x72\x73\x69o\156_c\157mp\141r\145"; $xfc="\x69\156\137\x61\x72\x72\141\x79"; $xfd="\162\157\165n\144"; $xfe="\163pr\x69nt\146"; $xff="\x61\162\x72a\x79\137po\x70"; $x100="i\156\x69\x5f\x67\x65\x74"; $x101="\x73e\164_\x74i\155e\137\154\151m\x69\x74"; $x102="\x6e\165m\142\145\x72\x5f\x66\x6f\x72\x6d\141\x74"; $x103="\x73t\162\151p\x5f\x74a\147\x73"; $x104="\150\x74\155l\137\145\x6e\164i\164\171\x5f\x64\145\x63\x6f\144\x65"; $x105="\150\x74\155lsp\x65c\x69\x61\154\143\x68\x61\162s"; $x106="s\x74\162rp\x6f\163"; $x107="\x69\x73\137\142\157o\x6c"; $x108="m\x62\x5f\x73t\x72\x74\x6f\x6c\x6f\167\145r"; $x109="m\142\137s\164\162\x74\157\x75\x70p\145\162"; $x10a="\150tm\x6c\x65n\164\151\x74\x69\145\x73"; $x10b="\146t\160_\143\157n\x6ee\143\164"; $x10c="\146\164p\137log\x69\x6e"; $x10d="f\x74\x70\x5f\x70\141\163\x76"; $x10e="f\x74\x70\137p\165\x74"; $x10f="\x66t\x70\x5fc\154\157\x73\x65"; $x24 = $this->_currencies; if (isset($x24[$x23])) { return $x22 * $x24[$x23]; } else { return $x22; } } public function x112($x22, $x25, $x26, $x27 = false) { $xe4="\160r\x65\x67_\163\160l\151\164"; $xe5="i\155\x70\x6co\x64\x65"; $xe6="s\164r\137r\x65\160l\x61\x63\145"; $xe7="u\164f\70\x5f\x65n\143\x6f\144e"; $xe8="p\x72\145\147\137\155\141\x74ch\x5f\x61\154\154"; $xe9="\x70\162\x65g_\155\141\164c\150"; $xea="\162\x74\162i\x6d"; $xeb="i\163_nu\x6c\154"; $xec="\143ou\x6e\164"; $xed="i\163\x5f\156\165me\162\151\x63"; $xee="\x65x\x70\154\157\x64\x65"; $xef="\163\165b\x73\x74\162"; $xf0="\x74\162\x69\155"; $xf1="\163tr\x6ce\156"; $xf2="\x75\164\x66\70\x5f\x64\145\143\157d\145"; $xf3="\160\162\x65g\137\162\x65\x70\154\141c\145"; $xf4="\x6as\x6f\156_\x64\145\143\157d\x65"; $xf5="\163t\162\x69\163tr"; $xf6="\x70\x72\151\x6e\x74_\162"; $xf7="\x69\x73\x5f\163tring"; $xf8="\x69s\x5fa\162ra\171"; $xf9="\x75\143w\157\x72\144\163"; $xfa="\x61rr\x61y_p\x75sh"; $xfb="ve\162\163i\157n\137\143om\x70\141\162\145"; $xfc="\x69\x6e\x5f\x61r\162\141y"; $xfd="\162\157u\x6e\x64"; $xfe="s\x70\x72in\164\x66"; $xff="\141\x72\x72a\171_po\x70"; $x100="\x69\x6e\151\137\x67e\164"; $x101="s\x65\x74\137\164i\155e_\154i\155\151\164"; $x102="nu\155be\x72\137\146orm\x61\x74"; $x103="\x73\164r\151\160_ta\147s"; $x104="\x68\164\155l\137\x65\x6etit\171\137d\145\x63\157\144e"; $x105="\x68\164\x6d\154s\x70\x65\143\x69a\x6cc\150\x61\x72\x73"; $x106="\x73\164\x72\x72\160\x6f\x73"; $x107="i\163\x5f\x62o\157\154"; $x108="m\142\x5fst\x72\x74o\154\x6fw\145\x72"; $x109="\155b\x5f\163trt\x6f\x75p\160\x65\162"; $x10a="\150\164\x6dl\x65n\164\x69t\x69\145s"; $x10b="\x66t\x70\x5f\143\157\156\x6eec\x74"; $x10c="\146t\160_\154ogi\x6e"; $x10d="\146\x74\x70\137\x70\141sv"; $x10e="f\x74p\x5f\x70\x75\x74"; $x10f="\146\164\160_\x63\154\x6fs\x65"; $x28 = $this->_rates; if ($x27 === false) { if (!$x25 && isset($x28[$x26])) { if ($xec($x28[$x26]) > 1) { return $x22; } else { return $x22 * ($x28[$x26][0]['rate'] / 100 + 1);
} } else { return $x22; } } elseif ($x27 === "\x30") { if ($x25 && isset($x28[$x26])) { if ($xec($x28[$x26]) > 1) { return $x22; } else { return 100 * $x22 / (100 + ($x28[$x26][0]['rate'])); } } else { return $x22; } } else { if ($xed($x27)) { if ($x26 != 0) { return $x22 * ($x27 / 100 + 1); } elseif ($x26 == 0) { return $x22; } } else { $x27 = $xee('/', $x27); $x29 = 0; $x2a = false; if ($xef($x27[0], 0, 1) == "\x2d") { $x27[0] = $xef($x27[0], 1); $x2a = true; } if ($x28[$x26]) { foreach ($x28[$x26] as $x2b) { if ($x2b['country'] == $x27[0]) { if (!isset($x27[1]) || $x2b['code'] == $x27[1]) { $x29 = $x2b['rate']; break; } } } if (!$x2a) return $x22 * ($x29 / 100 + 1); else { return 100 * $x22 / (100 + ($x29)); } } else { return $x22; } } } } public function x113($x2c, $x2d = true) { $xe4="\160\162e\x67\137\163\160lit"; $xe5="\151m\x70\x6cod\145"; $xe6="\163t\162_\x72\x65\160\154\x61ce"; $xe7="\x75\164\x66\70\137\x65nco\144\145"; $xe8="\160\x72\x65\x67\x5f\155\141t\x63h\137\x61\154\154"; $xe9="\x70reg_\155at\x63h"; $xea="\162\x74r\x69m"; $xeb="\x69s\137\156ul\154"; $xec="\143\x6f\165\156\x74"; $xed="\x69s\137\156\x75\x6d\x65ric"; $xee="\145xp\154\x6f\x64\x65"; $xef="\163\x75\142\x73t\x72"; $xf0="\x74\162i\155"; $xf1="s\x74\x72l\x65\x6e"; $xf2="\x75\164\x66\70\137de\143o\144\x65"; $xf3="\160\x72\145g\x5fr\x65p\x6cac\x65"; $xf4="\152\163o\x6e_\x64ec\x6f\x64\145"; $xf5="\x73t\162\x69\x73\x74\162"; $xf6="\160r\151n\164_\162"; $xf7="\151s\137\163\164ri\x6eg"; $xf8="\x69s_a\162r\x61\x79"; $xf9="uc\167\x6f\x72\144s"; $xfa="\141\x72\162\x61y\x5fp\165\x73\150"; $xfb="v\145\x72s\151on\x5f\143om\160\x61\x72\145"; $xfc="\x69\156\137\x61\x72\162\141\171"; $xfd="r\157\165\x6e\144"; $xfe="s\x70ri\156tf"; $xff="\x61rr\141\171_\x70op"; $x100="\151\156i_\x67e\x74"; $x101="\163\145\164\x5fti\x6d\x65_\x6c\x69\155it"; $x102="\156\x75m\x62\145\162_f\157r\x6da\164"; $x103="\x73t\162\x69\x70_t\x61gs"; $x104="\150\x74ml\x5f\145n\x74it\x79_\x64\145c\x6fd\145"; $x105="\150\164\x6d\154\163\160e\143\151al\143\150\141\162\163"; $x106="\x73tr\x72p\157s"; $x107="i\x73\x5f\142\x6f\x6f\x6c"; $x108="\155\142_\163\x74\x72\x74olo\167\145\x72"; $x109="\x6d\x62\137\163\164\162\164\157\165p\x70\145\x72"; $x10a="\x68t\x6d\154en\x74\151\x74\x69\145\163"; $x10b="\x66\x74\x70_c\x6fn\x6ee\143\164"; $x10c="\x66tp\137l\x6fgi\156"; $x10d="ftp\137\160\x61\x73v"; $x10e="\x66\164\160\x5fp\165t"; $x10f="ftp_\143\154\157s\145"; $x1a = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $xe8($x1a, $x2c, $x1b); foreach ($x1b[1] as $x1c => $value) { $x2e = $xf0($x1b[2][$x1c]); if (empty($x2e) && !$xed($x2e)) $x2c = $xe6($x1b[0][$x1c], '', $x2c); else { if ($x2d) $x2c = $xe6($x1b[0][$x1c], ($x1b[1][$x1c]) . '<![CDATA[' . $x2e . ']]>' . ($x1b[3][$x1c]), $x2c); else { $x2c = $xe6($x1b[0][$x1c], ($x1b[1][$x1c]) . $x2e . ($x1b[3][$x1c]), $x2c); } } } $x2f = $xe4("\57\x0a\57s", $x2c); $x30 = ''; foreach ($x2f as $x31) { ($xf1($xf0($x31)) > 0) ? $x30.=$x31 . "\x0a" : false; } $x2c = $x30; return $x2c; } public function x114($x2c) { $xe4="\x70\162\x65\147\137\x73p\x6c\x69t"; $xe5="impl\157\x64\145"; $xe6="s\164\162\137\x72\x65\x70\x6c\x61ce"; $xe7="ut\146\70_\145n\143od\x65"; $xe8="\x70reg\137m\141\x74ch\x5f\x61\154l"; $xe9="\160r\x65g_m\141\164c\x68"; $xea="\162\x74rim"; $xeb="\151\x73_\156ul\x6c"; $xec="c\x6f\165\156\x74"; $xed="\151\163\137\x6eu\x6d\145\162\x69\x63"; $xee="\x65x\x70\x6c\157\x64\x65"; $xef="\163\x75b\163\x74\x72"; $xf0="\164r\151\x6d"; $xf1="\x73tr\x6c\145\x6e"; $xf2="ut\x66\70\x5f\x64e\x63\157\x64\x65"; $xf3="\160\x72\145g\137\x72e\x70\154\x61\x63\x65"; $xf4="js\157n\137\x64\x65c\x6fde"; $xf5="\163\x74r\x69\x73\x74\x72"; $xf6="\160r\151n\164_r"; $xf7="\151\x73\137\163\164r\x69\x6e\x67"; $xf8="\x69\163\x5f\141\162\162\141\x79"; $xf9="u\143\x77\x6f\162\144\163"; $xfa="\x61\x72ra\171_p\x75s\150"; $xfb="\166\145\x72s\151\157n\x5fc\157m\x70a\x72\x65"; $xfc="\x69\x6e\x5fa\162\162a\171"; $xfd="\162o\x75\156d"; $xfe="\x73\160\x72in\164\146"; $xff="\141\x72\162\141y_\x70o\160"; $x100="\x69\x6ei\x5f\x67\145t";
$x101="s\145\164\137\x74i\x6de_\154\x69\155\151t"; $x102="\x6eum\142\x65\162\x5f\146\157\162\155\141\x74"; $x103="stri\160\x5f\x74\x61\147s"; $x104="\x68\164m\154_\145\x6e\164\151t\171_\x64\x65c\157\144\145"; $x105="\x68\x74m\x6cspe\143ia\154\143h\141\x72\163"; $x106="\x73tr\162\160\x6f\x73"; $x107="is\137bo\x6f\154"; $x108="\x6d\142\137\x73\164\162t\157\x6co\x77\145\x72"; $x109="\x6d\x62\x5f\163\164\x72\x74o\165\160\x70\x65\162"; $x10a="\150\x74\x6dle\156\x74\151\164ie\163"; $x10b="\x66t\x70\x5f\143\157\x6enec\x74"; $x10c="f\x74\x70\x5f\154\x6f\147\x69n"; $x10d="f\164\160\137pas\166"; $x10e="\146tp\137p\x75t"; $x10f="\x66\164\x70\x5f\x63l\x6f\x73\x65"; if ($this->_display) return ($x2c); else { if ($this->_chartset == 'ISO') return $xf2($x2c); else { return ($x2c); } } } public function x115($x1a, $x17 = false) { $xe4="\160\x72e\147_s\160\154\x69\x74"; $xe5="\x69\x6dpl\157\144e"; $xe6="\163t\162\137re\x70la\143e"; $xe7="\x75\164\x66\70\137enco\144\145"; $xe8="\x70\162\145\x67\137\155\x61\x74ch_a\154\154"; $xe9="p\x72\145g\x5fma\x74\143h"; $xea="\162\x74\162\151\x6d"; $xeb="is\x5f\156\165\154\x6c"; $xec="\x63o\165\x6et"; $xed="\x69s\x5f\156u\155\x65\162\151c"; $xee="\x65\170\160\x6c\x6fd\145"; $xef="\163u\142\163\x74r"; $xf0="\x74\162\x69\x6d"; $xf1="\163\164\x72\x6c\145\x6e"; $xf2="\165\x74f\70_\x64\145\143\x6fd\x65"; $xf3="\160r\x65\147\137r\x65p\154\x61c\145"; $xf4="jso\156\137d\145\x63o\x64\x65"; $xf5="s\x74\162\151\163\164\x72"; $xf6="p\x72\x69\x6e\164\137r"; $xf7="\151\163\137s\164r\151\x6e\147"; $xf8="is\137\141r\162a\x79"; $xf9="\x75c\167\157\162ds"; $xfa="\x61r\x72\x61\x79_\x70u\x73\150"; $xfb="\166\145\162\x73io\x6e_\143o\155p\141\162e"; $xfc="\x69n\137\141r\162\141y"; $xfd="ro\x75\156d"; $xfe="sp\x72\x69\156\164\146"; $xff="\141\162\162\x61y\x5f\160o\160"; $x100="\x69\156i\x5f\x67\145\x74"; $x101="s\x65t\137ti\x6d\145\137lim\151\164"; $x102="\156u\x6db\x65\x72\x5f\146orm\141\164"; $x103="\x73tr\x69\160_\x74\x61gs"; $x104="\150\164\155\154\x5f\145nti\164\x79\137\144\x65c\x6f\x64\145"; $x105="\x68\164\x6d\x6c\x73p\145ci\141\x6c\143\150\141rs"; $x106="s\x74\x72\162\x70o\x73"; $x107="\x69\163_\142\x6f\x6f\154"; $x108="\155\142_\163t\x72\164\x6f\x6c\157w\x65r"; $x109="\x6db_\x73\164\x72\x74\x6f\x75\x70\160\145\162"; $x10a="\150\x74\155l\145\x6e\x74\151t\x69\145\x73"; $x10b="\146t\160\137c\157\156n\145\143\164"; $x10c="\146tp_l\x6f\147\151n"; $x10d="\146tp_\x70\x61\x73v"; $x10e="\x66tp\137\160\165t"; $x10f="\146\x74\160\x5f\143\x6co\x73\x65"; $x1a = $xf3('/(\r\n|\n|\r|\r\n)/s', '', $x1a); $x32 = 'padding:2px; border:1px solid grey; text-align:center; padding:5px; min-width:10px; min-height:10px; '; $x33 = $xf4($x1a); if (isset($x33->header)) $x33 = $x33->header; else { $x33 = $x33->product; } if ($x17) $x34 = "<\x74\162 \163t\x79\154\145\75'\142ac\x6b\x67ro\165\x6e\x64-color:\x67\162e\x79; \40c\x6f\154\x6fr:w\150\151\164\145\73 \x66\x6f\x6e\164\x2dw\145\x69g\x68\x74:\142\157ld\47\x3e"; else { $x34 = "<t\162>"; } foreach ($x33 as $x1c => $value) { ($value != null) ? $x35 = $value : $x35 = "\74\163pan\40\163\x74\x79l\x65\75\x27\146\157nt\55si\172\145\72\61\x30\x70x\73c\157lo\x72\72g\x72\x65\x79\47\76\50\x65\155\x70\164\x79\51\x3c/\x73pa\156\76"; $x34.="\x3ctd\x20\x73ty\x6ce=\47" . $x32 . "\47>" . $x35 . "<\57\x74\x64\x3e"; } $x34.="\x3c\57\x74\162>"; return $x34; } public function x116($x1a, $x36, $x37) { $xe4="\160re\147\x5f\x73\160l\x69\x74"; $xe5="i\x6d\x70lo\x64e"; $xe6="st\162\137r\x65\160\154\141ce"; $xe7="\x75tf\70\137e\156\x63\x6fd\145"; $xe8="p\x72e\147\137m\141\x74\x63\150\x5f\x61l\154"; $xe9="\x70\x72\x65\147\137m\x61\164ch"; $xea="rt\162im"; $xeb="\151\163_n\x75\x6c\x6c"; $xec="\x63o\x75\x6e\x74"; $xed="\151\x73\x5fn\165\x6deric"; $xee="\x65\x78p\x6c\x6f\144\145"; $xef="\x73\x75\x62str"; $xf0="t\x72im"; $xf1="s\x74\x72\x6c\145\156"; $xf2="\165\164f\70_\144e\143\157de"; $xf3="\x70r\x65\147\137\162e\160\x6ca\143\x65"; $xf4="\x6a\163\x6f\x6e\137\x64\x65\x63od\145"; $xf5="\163\164r\x69\x73\164\x72"; $xf6="p\162in\x74\137\x72"; $xf7="i\x73\137s\164\162in\147";
$xf8="i\163\137\x61\162\162ay"; $xf9="u\143w\x6f\162\x64\x73"; $xfa="\x61r\x72\x61y\137\160ush"; $xfb="\166\x65\x72\163\x69\157\156\137\x63\157m\160\141r\145"; $xfc="i\156_\x61rr\x61\171"; $xfd="\x72\157\165nd"; $xfe="\x73\160ri\156t\x66"; $xff="a\162\162\x61y\x5f\x70\157\160"; $x100="i\x6e\x69\137g\x65\164"; $x101="s\145t_\x74\x69\155\x65\137li\x6d\151\164"; $x102="\x6e\165\x6db\145\x72_\146\157\x72\155a\164"; $x103="s\164r\151\x70\137\x74a\147\163"; $x104="\150\164\x6d\154\x5f\x65nt\151\x74\x79\137d\x65\x63\157d\145"; $x105="h\164\x6dlsp\145c\x69\141lc\x68\x61\x72\x73"; $x106="\163\164\162\162\x70\x6fs"; $x107="\x69\163\137\x62o\x6f\x6c"; $x108="\x6d\x62\137\163\x74\x72\x74\157\x6c\157\x77e\x72"; $x109="\x6d\x62\x5f\163\164\162\x74ou\x70\160e\162"; $x10a="\x68\x74\x6d\x6c\x65\156\x74it\151e\x73"; $x10b="f\x74\160_conn\x65\143\164"; $x10c="\146\164\160\137lo\147\x69\x6e"; $x10d="\146\164\160_\x70a\163\x76"; $x10e="\x66\164\160_\160u\164"; $x10f="\x66t\160\x5fc\x6c\157\163e"; $x1a = $xf3('/(\r\n|\n|\r|\r\n)/s', '', $x1a); $x33 = $xf4($x1a); if (isset($x33->header)) $x33 = $x33->header; else { if (!$xf4($x1a)) return ""; $x33 = $x33->product; } $x31 = ''; $x38 = 0; foreach ($x33 as $x1c => $value) { if ($x36 == '\t') $x36 = "\t"; if ($x38 > 0) $x31.=$x36; if ($x37 != "") $x31.=$x37 . $this->x117($value, $x37) . $x37; else { $x31.= $this->x117($value, $x36); } $x38++; } if ($x36 == "[\174]") $x31.="[\72\135"; return $x31; } public function x117($x1a, $x39 = '"') { $xe4="pr\145g\x5fs\x70l\151\164"; $xe5="\151\155\x70\x6c\157\144\145"; $xe6="s\x74r_r\x65\160\x6c\141\143\145"; $xe7="ut\x66\70_\145\156co\144e"; $xe8="\160r\145\x67\x5f\155\x61t\x63h_\x61ll"; $xe9="\x70r\145\147\137ma\164ch"; $xea="\x72\x74\162i\x6d"; $xeb="is\137n\x75l\x6c"; $xec="count"; $xed="i\x73\137n\x75\155\x65\162i\x63"; $xee="\x65\x78p\x6c\157\x64e"; $xef="\163\x75b\x73t\162"; $xf0="\164\162\151\x6d"; $xf1="\163\164\x72\154\x65\x6e"; $xf2="ut\x66\70\x5f\x64e\x63\157d\145"; $xf3="\x70\x72e\147_\x72ep\154a\x63e"; $xf4="\x6as\x6fn\x5f\x64\x65\143\157\x64\145"; $xf5="\163\164r\x69\163\x74\x72"; $xf6="p\x72\151nt\x5f\x72"; $xf7="\151s\137\x73\x74\162\151\x6eg"; $xf8="\151\x73_ar\x72a\x79"; $xf9="u\x63\x77\x6fr\x64\163"; $xfa="a\162r\141\x79\x5f\160\165\x73\x68"; $xfb="v\x65r\163\x69\157n\137\143\157\155p\141r\145"; $xfc="\151n_\x61r\x72a\x79"; $xfd="\x72\157\x75\x6ed"; $xfe="s\160\x72int\x66"; $xff="a\x72\x72\141\171\137p\x6fp"; $x100="\151n\151\x5fge\x74"; $x101="\x73e\x74\x5f\x74\151\155\x65\137l\151\x6d\151\x74"; $x102="\156\165\155\142\x65\x72\x5f\x66\x6fr\155\x61\164"; $x103="st\x72ip\x5f\x74\x61\x67\163"; $x104="\150\164\x6d\154_\x65n\x74\151\164\171\x5f\144\145\x63\157de"; $x105="\x68\x74\155\x6cs\160\x65c\151\x61\x6ccha\162s"; $x106="\x73\x74\x72\x72\x70o\163"; $x107="is_\142o\157\x6c"; $x108="m\142\x5f\x73\164\x72t\157\x6c\x6f\167\x65\x72"; $x109="\155\x62\137\163\x74r\164\x6f\x75\x70per"; $x10a="h\x74\155\x6c\145\x6e\164\151\x74\x69es"; $x10b="\146t\x70\x5f\x63\157\156\x6ee\x63\164"; $x10c="\146\164p\137\154\157\147\151\x6e"; $x10d="ft\160\x5f\x70\x61\163\166"; $x10e="\x66\164\160\137\x70\165t"; $x10f="\146t\160\137c\154o\163e"; $x1a = $xe6($x39, '\\' . $x39, $x1a); return $x1a; } public function unx117($x1a, $x39 = '"') { $xe4="p\x72\145\x67\137s\160\x6ci\x74"; $xe5="\x69m\x70l\x6f\x64\x65"; $xe6="\163t\162\x5f\162e\x70l\141c\x65"; $xe7="\165\x74\x66\70\x5f\145\156\143o\x64\x65"; $xe8="\x70r\x65\147_\x6d\x61\x74\143\150_\x61\x6cl"; $xe9="p\x72\x65\147\137ma\x74\x63h"; $xea="\162t\162\x69\155"; $xeb="i\x73_\156\165\x6c\154"; $xec="\143\157\165\x6e\x74"; $xed="\151\163\x5f\x6e\x75\x6d\145ri\143"; $xee="e\x78\160l\157\144\x65"; $xef="\163ubst\162"; $xf0="\x74\x72im"; $xf1="\163\164rle\x6e"; $xf2="u\x74\146\70\x5f\144\x65\x63\x6f\x64\145"; $xf3="pre\x67_\162ep\x6ca\x63\x65";
$xf4="j\x73o\156_d\x65co\x64e"; $xf5="\163\164\162i\163\164r"; $xf6="p\x72\151n\x74\137\162"; $xf7="\x69\x73\137\x73\164ri\156g"; $xf8="\x69\x73\137\x61\x72\162\x61y"; $xf9="u\143\167\157\x72\x64\163"; $xfa="\x61\162ray\x5f\x70\x75\163h"; $xfb="\x76e\162s\151\157\x6e_c\157m\160a\162\x65"; $xfc="\x69\x6e_\141\162\x72\141y"; $xfd="\x72\157u\156d"; $xfe="sprin\164f"; $xff="\x61r\x72ay\137\160\x6f\x70"; $x100="\x69\156\151\137\147\x65t"; $x101="se\164_\x74\151\x6d\x65\x5f\x6c\x69\x6di\164"; $x102="nu\x6d\x62\145\x72\137\x66\x6f\162\x6d\141\x74"; $x103="\163\x74\x72\x69p_t\141\x67\x73"; $x104="h\164\155l\137\145\156\x74\151\164\x79\137d\145co\144\145"; $x105="\x68\x74m\154\x73peci\141\154ch\x61\162\x73"; $x106="s\x74\162\162\x70\x6fs"; $x107="\151\163_b\157o\x6c"; $x108="mb\137\163\x74\162\164o\154\157\167e\162"; $x109="\155\x62_\163\x74r\x74ou\x70\160\x65\162"; $x10a="\150t\x6d\x6c\x65nt\151\164i\x65\x73"; $x10b="ft\160\137conne\143\x74"; $x10c="\146tp\137\x6c\x6f\147i\156"; $x10d="\146t\160\137p\141\x73\x76"; $x10e="\146\164\160\137\x70\x75t"; $x10f="ftp_\143\154o\x73\145"; $x1a = $xe6('\\' . $x39, $x39, $x1a); return $x1a; } public function x119($x3a) { $xe4="\160\162\145g\x5f\x73\160\154i\x74"; $xe5="\x69\155\160\x6code"; $xe6="\163\x74r\137\x72e\160\x6c\141\x63\145"; $xe7="\165\x74f\70\x5fe\x6eco\144\145"; $xe8="\160\162\145\147\x5fma\x74c\150\137\x61\154\x6c"; $xe9="\x70\x72\145\x67_ma\164\x63h"; $xea="\162t\x72\x69m"; $xeb="\151\163\x5fn\x75l\x6c"; $xec="\x63\157\x75n\x74"; $xed="\151\x73\137n\165m\145ri\x63"; $xee="\145\x78\x70\x6c\157\x64\145"; $xef="s\x75b\163\x74r"; $xf0="t\x72im"; $xf1="s\x74rlen"; $xf2="\165\164\x66\70\137de\x63o\144\145"; $xf3="\x70r\x65\147\x5fr\145p\154ac\x65"; $xf4="jso\156_d\145\143\157de"; $xf5="s\x74r\151\163t\x72"; $xf6="prin\x74_r"; $xf7="\151s\137\x73\164\162\x69\156\147"; $xf8="\151\x73\x5farray"; $xf9="\165\x63\167\x6f\162\x64\163"; $xfa="\141r\x72\141\x79_\160u\163h"; $xfb="\x76\x65\162\x73\151\x6fn\137\143\157\x6d\160\141re"; $xfc="\151\156\x5f\x61\162\162a\171"; $xfd="r\x6fu\156d"; $xfe="\163\x70\162\151\x6e\x74\146"; $xff="a\x72\x72\x61y_\160\x6f\160"; $x100="\151\x6ei\x5f\147\x65\164"; $x101="\x73e\x74_ti\155e\x5f\154\x69mi\164"; $x102="\x6e\165m\142e\162\x5f\x66o\162ma\164"; $x103="s\x74\162\151\x70\137\164\x61\147\163"; $x104="\150\x74ml\x5f\145\156t\151\x74\171\x5fd\x65\143\x6fd\x65"; $x105="ht\155ls\x70\145\x63\151a\x6c\x63\150a\x72\x73"; $x106="\163\164\162\x72\x70\x6f\x73"; $x107="i\163\x5fbo\x6fl"; $x108="m\x62\137\163t\162t\x6f\154\157\x77e\162"; $x109="\155\142\137s\x74r\164\157\x75\160pe\x72"; $x10a="htm\x6c\145n\x74i\x74i\x65\x73"; $x10b="\x66t\160\x5fcon\156\145ct"; $x10c="\146\x74\x70\137l\x6f\147i\x6e"; $x10d="\x66\164\x70\137\x70\x61\163\166"; $x10e="\x66t\160\x5fpu\164"; $x10f="\146t\160\x5f\143\x6cos\x65"; if (!$xf5($x3a, 'encoding="utf-8"') === FALSE) $this->_chartset = 'UTF8'; if (!$xf5($x3a, 'encoding="ISO-8859-1"') === FALSE) $this->_chartset = 'ISO'; } public function checkReference($x3b, $product) { $xe4="\x70\162e\x67_s\160l\151\164"; $xe5="\151\155pl\x6fde"; $xe6="\163\x74r\137\162\145\160l\141\x63e"; $xe7="\x75t\x66\70\137\x65\x6e\143o\x64e"; $xe8="p\162\145\x67\x5f\x6d\x61\x74\x63h_\x61l\154"; $xe9="\160\x72\x65\147\137\x6d\141tc\150"; $xea="\x72\x74ri\x6d"; $xeb="is_\x6e\x75l\x6c"; $xec="\143o\165\156t"; $xed="\x69\163\137nu\155e\162\x69c"; $xee="e\x78p\154\x6fd\x65"; $xef="\x73u\x62st\162"; $xf0="\x74\162\151\155"; $xf1="\163\x74r\x6c\145\156"; $xf2="u\x74\146\70\137de\143o\144\145"; $xf3="\160\x72e\147\137r\145\160\154\x61c\145"; $xf4="j\163\x6f\x6e_\x64\145\x63\157\x64\x65"; $xf5="s\164\x72\151\x73t\x72"; $xf6="p\162\x69\156\x74\137\162"; $xf7="\151\x73\x5fs\x74r\151ng"; $xf8="\151\163_a\162\x72\x61y"; $xf9="ucw\157rd\163"; $xfa="a\162\162\141\171\x5fpu\x73h"; $xfb="\166\145\162\x73\x69\157\156_\x63\157\155\160a\x72\x65";
$xfc="\151\x6e\137\141\x72\x72\x61\171"; $xfd="\162\157un\144"; $xfe="\163\x70\x72\x69\156t\x66"; $xff="\141\x72r\x61\171\137\160o\160"; $x100="i\x6ei\x5fg\145\x74"; $x101="s\145\164\137\x74\x69\155e_\154\x69mit"; $x102="\x6e\165\x6d\x62er_\146o\x72\x6d\x61\x74"; $x103="\x73t\162\151p\x5ft\141\147s"; $x104="h\x74m\154\x5fe\x6e\x74\x69t\171\x5f\144\x65\x63o\x64\x65"; $x105="\x68\x74\155\154\x73pecia\154\x63h\141\162\163"; $x106="s\164\x72\x72p\x6fs"; $x107="\x69\163\x5f\142\157\x6f\154"; $x108="m\142\137\x73\x74r\x74\x6f\154ow\x65\x72"; $x109="\155\142\137\x73\164\x72\x74\157\x75\160\x70\145r"; $x10a="\150t\155l\145\156\x74\x69t\151es"; $x10b="\146\164p\x5fcon\156\145ct"; $x10c="f\x74\160_l\157\x67\151\x6e"; $x10d="\x66\x74p\137\160\x61s\x76"; $x10e="ft\x70\x5f\x70u\164"; $x10f="f\164\160\x5f\x63\154\x6fse"; if (($x3b == "\160\x61\162\x65\x6et" || $x3b == "\143o\156\146i\147\x75\x72\x61bl\145") && isset($this->configurable[$product->getId()])) return $this->configurable[$product->getId()]; elseif (($x3b == "\160\x61\162\x65\x6et" || $x3b == "\x67roup\145\x64") && isset($this->grouped[$product->getId()])) return $this->grouped[$product->getId()]; elseif (($x3b == "\160\x61\162\x65\x6et" || $x3b == "b\165\x6e\144\x6c\145") && isset($this->bundle[$product->getId()])) return $this->bundle[$product->getId()]; else { return $product; } } public function skipOptions($x3c) { $xe4="\160\162\145\x67\137\x73\x70l\x69\x74"; $xe5="\x69m\160\x6c\x6f\x64e"; $xe6="\x73\164r_re\160\154\x61\143e"; $xe7="\x75\x74\146\70\137\145nc\x6fde"; $xe8="p\x72\x65\x67\x5fm\x61\x74c\x68\137\141\x6c\x6c"; $xe9="\x70r\145g\x5f\x6d\141\x74\x63h"; $xea="rtr\151\x6d"; $xeb="i\163_\x6eu\x6c\x6c"; $xec="\143\157\x75\156\164"; $xed="\151s\137n\x75\155\145r\151\143"; $xee="\145xp\154o\144\x65"; $xef="\163ub\x73\164\x72"; $xf0="tr\x69\155"; $xf1="\163\x74\x72le\x6e"; $xf2="\165t\x66\70\x5f\x64\x65\143o\144\145"; $xf3="\160r\145\x67\x5f\x72e\x70\x6c\141\x63\x65"; $xf4="\x6a\x73on\137d\145\143o\x64\x65"; $xf5="\x73\x74\162\x69s\x74r"; $xf6="\160rint_r"; $xf7="\151s\x5f\x73\x74\x72\151\x6eg"; $xf8="\x69s_\141\x72\162a\171"; $xf9="\165cwor\x64\163"; $xfa="\x61r\x72a\171_p\x75sh"; $xfb="\166ers\x69on_\143\157m\x70\x61\x72\145"; $xfc="\x69n\x5fa\x72ray"; $xfd="ro\165nd"; $xfe="sp\162\x69\156\164f"; $xff="a\162r\141y\x5f\x70o\160"; $x100="\151\156i\137g\145\164"; $x101="\163\145\x74\137\164\151\x6d\x65\137\x6c\151\155i\x74"; $x102="\x6e\165\155be\162\x5f\x66\157\162\155a\x74"; $x103="\x73\164r\151\x70\137t\141g\163"; $x104="\150tml\137\x65\156\164\151t\x79\137\144\145\143od\x65"; $x105="\150t\155\154\x73\x70\x65\x63\151\x61\154\143\150\x61\162\163"; $x106="str\162\160\157\x73"; $x107="\151s_\x62\157\157l"; $x108="\155b\137\x73\164r\x74o\x6cowe\162"; $x109="\155b_st\162t\157\x75\x70\160e\x72"; $x10a="\x68t\155le\x6et\151\x74\151\x65\x73"; $x10b="\x66\x74\x70_c\157\x6en\x65\x63t"; $x10c="ft\x70\x5f\x6cog\x69\x6e"; $x10d="f\164p\137\160a\x73\166"; $x10e="\x66\x74p\x5f\160\x75t"; $x10f="\146\164\x70\137c\154\157s\x65"; $this->option = $this->option + $x3c; } public function generateFile() { $xe4="pr\145g_spl\x69t"; $xe5="\151m\160\154\157de"; $xe6="\163t\162\137re\x70\x6c\141\x63\145"; $xe7="u\x74f\70_\x65\x6e\143\x6fd\145"; $xe8="p\x72\x65\x67\x5fmat\143\150\137\141ll"; $xe9="\160r\x65\147\x5f\155\x61\x74\143h"; $xea="\x72\164\x72\151\155"; $xeb="\x69s\137\156\x75ll"; $xec="c\157\165\156t"; $xed="i\x73_n\165m\x65\x72i\143"; $xee="\145\x78\x70\154\x6fd\145"; $xef="s\165bst\x72"; $xf0="t\162\x69m"; $xf1="\x73\164\162\x6c\145\156"; $xf2="u\164\x66\70\137\144\145\143\x6fde"; $xf3="\x70\162\x65\x67_r\145p\154\141\x63\145"; $xf4="\x6a\x73\157\x6e_d\x65\x63\x6f\x64\145"; $xf5="\163t\x72\x69\163\x74\x72"; $xf6="\x70\162\151\x6e\164\137r"; $xf7="i\x73\137\163\x74\x72\151\156\147"; $xf8="i\x73\x5f\x61\x72\162\x61y"; $xf9="\x75cw\x6f\x72d\x73"; $xfa="\141\x72\162\141\171_\160\165\x73\x68"; $xfb="\x76\145\x72sio\156_c\157m\160are"; $xfc="i\156_a\162\x72\141y"; $xfd="ro\x75n\144"; $xfe="sp\162\x69\x6etf"; $xff="a\162\x72a\171_\160\x6f\160"; $x100="\151n\x69\x5fg\x65\164"; $x101="se\x74\137\164\151\x6d\x65\137\x6ci\155\151\164"; $x102="\x6e\165\x6d\142\x65\162\137for\x6d\141\x74";
$x103="\x73\x74\162\151\x70\x5ft\141g\x73"; $x104="htm\x6c\137\x65\156\x74\151t\x79_de\x63\157\144\x65"; $x105="h\x74\155l\x73\x70\145\143\151\141l\x63ha\x72\163"; $x106="\x73t\162rpos"; $x107="\x69s_b\x6f\157\x6c"; $x108="\155\x62\x5fs\x74\162\x74ol\157\x77e\162"; $x109="mb_\x73\x74\162to\165p\160\145\162"; $x10a="\x68\164\155lentiti\145s"; $x10b="f\164\x70_\143on\156e\x63\164"; $x10c="\x66t\x70_\154o\x67\x69\x6e"; $x10d="ftp\137\160\141\163\166"; $x10e="\146t\160\137\160u\x74"; $x10f="f\164\x70\x5f\143\x6c\157se"; ini_set('memory_limit', Mage::getStoreConfig("\144\141t\x61\x66\x65e\x64m\x61\156\x61\147\x65r\x2fs\171\163\x74\x65\155/m\x65\155\157\162\x79_\x6c\151\x6di\164") . 'M'); error_reporting(Mage::getStoreConfig("\144\x61\164afe\x65d\x6d\x61n\x61\x67\145r\57\163\x79\x73\164\145m/erro\162_r\x65\160o\162\x74\151\x6e\x67")); $this->_debug = (isset($_GET['debug'])) ? true : false; $this->_type = (isset($_GET['type'])) ? $_GET['type'] : "\52"; if ($this->_debug) { echo "\x2d\55\55\55--\x2d\x2d\x2d\55\55--\x2d--\x2d\55-\55\x2d\55\55\55\x2d\x2d--\x2d-\55\55\55-\x2d\55\55\55\55--\x2d\55-\x2d\x2d<\x62\162\76--\x2d\x2d\55\x2d\x2d\x2d\x2d\55\x2d\55\x20D\105\x42\x55G\40MO\104E\x20\x2d-\55-\x2d\x2d\55\x2d\x2d\55\x2d\55-\55-\x2d\x3cb\162\x3e\55-\x2d\55-\55\x2d\55---\x2d-\55\x2d\x2d\55\55\x2d-\x2d\55\x2d-\x2d--\x2d-\55\x2d\x2d\55\55-\x2d-\x2d--\x2d--\x2d\x2d-\x3cb\162\76\74\142\x72>"; $xf6($x3d); } $x3e = $this->_indexPhp; $x3f = array("\141\x63" => "\141\143\164\151\x76\141\164\151\x6f\156_c\157\144e", "\141\153" => "\141\143\164\151v\141\x74\151on\137k\145\171", "\142u" => "bas\145\137\x75\162l", "\x6d\144" => "\x6dd\65", "\x74h" => "\x74h\151\163", "\144\155" => "_\144em\x6f", "\x65\170\164" => "df\155", "ve\162" => "\66\x2e\x30.\61"); $xf7(Mage::app()->getRequest()->getParam("sto\162\x65\137i\x64")) ? $x40 = Mage::app()->getRequest()->getParam("sto\162\x65\137i\x64") : $x40 = $this->getStoreId(); $x41 = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $x42 = Mage::getDesign()->getSkinUrl(); $x43 = Mage::getStoreConfig("ca\164a\154\x6f\147\57p\x6c\x61\x63\145\150o\154\x64\145\x72\57im\141\147\x65\x5f\160\x6c\x61c\145h\157ld\x65\x72", $x40); $x44 = Mage::getStoreConfig("\143ur\162\x65n\x63\171/\157\160\x74\151\x6f\x6e\163/b\141s\x65", $x40); $x45 = Mage::getStoreConfig("\143\x61ta\x6c\157gin\x76\x65\156\x74ory\x2f\x69tem_\157p\x74i\157n\x73\57\x6danage\137st\157c\x6b", $x40); $x46 = Mage::app()->getStore($x40)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false); $x47 = Mage::getModel('core/store')->load($x40)->getBaseUrl(); $x48 = Mage::app()->getStore($x40)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); $x49 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x40); $x4a = Mage::app()->getStore($x40)->getRootCategoryId(); $x4b = array( "\141\143\164\151v\141\x74\151on\137k\145\171" => Mage::getStoreConfig("\x64\x61\x74\141\146\x65\x65\x64\x6d\x61\x6eag\x65\x72/\154\x69cen\163\x65/\x61c\x74\151\166\141\x74\151o\156_\x6be\x79"), "\141\143\164\151\x76\141\164\151\x6f\156_c\157\144e" => Mage::getStoreConfig("\144\x61t\141\146\x65e\x64\155\x61na\x67e\162\57\154\151c\x65\156\x73\145\57\141\x63t\151\166\x61ti\157\156\x5fcode"), "bas\145\137\x75\162l" => Mage::getStoreConfig("w\x65\142\x2f\163e\143u\x72\145/ba\x73\145\137\165\x72l"), ); $xf7(Mage::app()->getRequest()->getParam("\x66\x65e\x64\137p\162\157\x64uct")) ? $x4c = Mage::app()->getRequest()->getParam("\x66\x65e\x64\137p\162\157\x64uct") : $x4c = $this->getFeed_product(); $xf7(Mage::app()->getRequest()->getParam("\x66\x65ed_\x68\145\x61\x64\145\x72")) ? $x3a = Mage::app()->getRequest()->getParam("\x66\x65ed_\x68\145\x61\x64\145\x72") : $x3a = $this->getFeed_header(); $xf7(Mage::app()->getRequest()->getParam("\x66\x65\x65\x64\137f\157\157\x74er")) ? $x4d = Mage::app()->getRequest()->getParam("\x66\x65\x65\x64\137f\157\157\x74er") : $x4d = $this->getFeed_footer(); $xf7(Mage::app()->getRequest()->getParam("\x66\x65\x65\144\x5ft\x79p\145")) ? $x4e = Mage::app()->getRequest()->getParam("\x66\x65\x65\144\x5ft\x79p\145") : $x4e = $this->getFeed_type(); $xf7(Mage::app()->getRequest()->getParam("\x66e\x65d\137\x65\x78\x74rahe\141\x64\x65r")) ? $x4f = Mage::app()->getRequest()->getParam("\x66e\x65d\137\x65\x78\x74rahe\141\x64\x65r") : $x4f = $this->getFeed_extraheader(); $xf7(Mage::app()->getRequest()->getParam("fe\x65\x64\x5f\151\x6ec\x6c\x75de\x5fh\145a\x64\x65\162")) ? $x50 = Mage::app()->getRequest()->getParam("fe\x65\x64\x5f\151\x6ec\x6c\x75de\x5fh\145a\x64\x65\162") : $x50 = $this->getFeed_include_header(); $xf7(Mage::app()->getRequest()->getParam("\146\x65\145\144_\163\145\160\141\162ato\x72")) ? $x36 = Mage::app()->getRequest()->getParam("\146\x65\145\144_\163\145\160\141\162ato\x72") : $x36 = $this->getFeed_separator(); $xf7(Mage::app()->getRequest()->getParam("f\145\145\144\137pr\157\x74\x65c\164o\162")) ? $x37 = Mage::app()->getRequest()->getParam("f\145\145\144\137pr\157\x74\x65c\164o\162") : $x37 = $this->getFeed_protector(); $xf7(Mage::app()->getRequest()->getParam("\146\x65\x65\144_\163a\x74\x75\163")) ? $x51 = Mage::app()->getRequest()->getParam("\146\x65\x65\144_\163a\x74\x75\163") : $x51 = $this->getFeed_status(); $xf7(Mage::app()->getRequest()->getParam("f\145e\144_\145\156\143\x6c\157\163\145\137\144\x61\x74\x61")) ? $x52 = Mage::app()->getRequest()->getParam("f\145e\144_\145\156\143\x6c\157\163\145\137\144\x61\x74\x61") : $x52 = $this->getFeed_enclose_data(); $xf7(Mage::app()->getRequest()->getParam("da\x74\141\146\x65e\x64\155\141n\141ge\162\137\x63ate\x67o\162\x69\145s")) ? $x53 = $xf4(Mage::app()->getRequest()->getParam("da\x74\141\146\x65e\x64\155\141n\141ge\162\137\x63ate\x67o\162\x69\145s")) : $x53 = $xf4($this->getDatafeedmanagerCategories()); $xf7(Mage::app()->getRequest()->getParam("d\141\164\141\146\145e\144m\141\156a\147\x65\162\x5fc\141\164\145go\162\x79\x5ff\151\154t\145r")) ? $x54 = Mage::app()->getRequest()->getParam("d\141\164\141\146\145e\144m\141\156a\147\x65\162\x5fc\141\164\145go\162\x79\x5ff\151\154t\145r") : $x54 = $this->getDatafeedmanagerCategoryFilter(); $xf7(Mage::app()->getRequest()->getParam("da\x74\141\146\x65e\x64\155\141n\141ge\162\137\x63ate\x67o\162\x69\145s")) ? $x3d = Mage::app()->getRequest()->getParam("da\x74\141\146\x65e\x64\155\141n\141ge\162\137\x63ate\x67o\162\x69\145s") : $x3d = $this->getDatafeedmanagerCategories(); $x55 = $this->getFtpEnabled(); $x56 = $this->getFtpHost(); $x57 = $this->getFtpLogin(); $x58 = $this->getFtpPassword(); $x59 = $this->getFtpDir(); $x5a = $this->getFtpActive(); $x5b = Array(); $x5c = Array(); if ($x3d != '*' && $xf8($x53)) { foreach ($x53 as $x5d) { if ($x5d->checked) $x5b[] = $x5d->line; } foreach ($x53 as $x5d) { if ($x5d->mapping != "") $x5c[$x5d->line] = $x5d->mapping; } } if ($xec($x5b) < 1) { $x5b[] = '*'; } $xf7(Mage::app()->getRequest()->getParam("\x64a\164a\146\145\145d\x6d\141\156\x61\x67\x65r\137\164\x79pe\137i\144\x73")) ? $x5e = $xee(',', Mage::app()->getRequest()->getParam("\x64a\164a\146\145\145d\x6d\141\156\x61\x67\x65r\137\164\x79pe\137i\144\x73")) : $x5e = $xee(',', $this->getDatafeedmanagerTypeIds()); $xf7(Mage::app()->getRequest()->getParam("\144\x61ta\x66\x65\x65dma\156\x61\x67\145\x72\137\x76\x69\163i\142il\151t\x79")) ? $x5f = $xee(',', Mage::app()->getRequest()->getParam("\144\x61ta\x66\x65\x65dma\156\x61\x67\145\x72\137\x76\x69\163i\142il\151t\x79")) : $x5f = $xee(',', $this->getDatafeedmanagerVisibility()); $xf7(Mage::app()->getRequest()->getParam("\x64\x61\x74\x61\x66\x65\145d\x6d\141\x6e\x61\x67\x65\x72_\x61tt\162\151\142u\164\145s")) ? $x60 = $xf4(Mage::app()->getRequest()->getParam("\x64\x61\x74\x61\x66\x65\145d\x6d\141\x6e\x61\x67\x65\x72_\x61tt\162\151\142u\164\145s")) : $x60 = $xf4($this->getDatafeedmanagerAttributes()); if ($x4b[$x3f['ac']] != $x3f["\x6d\144"]($x3f["\x6d\144"]($x4b[$x3f['ak']]) . $x3f["\x6d\144"]($x4b[$x3f['bu']]) . $x3f["\x6d\144"]($x3f["\x65\170\164"]) . $x3f["\x6d\144"]($x3f["ve\162"]))) { $$x3f["\x65\170\164"] = "\x76\x61\154\x69\x64"; $$x3f["\x74h"]->$x3f["\144\155"] = true; } else { $$x3f["\x74h"]->$x3f["\144\155"] = false; $$x3f["\x65\170\164"] = "\x76\x61\154\x69\x64"; } if (!$x51 && !$this->_display) Mage::throwException(Mage::helper("\x64a\164af\145\145dm\x61nag\x65r")->__("\x54\150\145 \144\x61\x74a\x20\x66eed\x20c\157\x6e\146i\x67\165\162\141\164\x69o\156 m\165st \142\145\40\145n\x61b\x6ced\x20i\156\40\x6f\x72\x64\145\162 \x74o \x67\x65nerate\x20\141\x20f\x69\x6ce\56")); $x1e = new Varien_Io_File(); $x1e->setAllowCreateFolders(true); if (!$this->_display) { $x1e->open(array('path' => $this->getPath())); if ($x1e->fileExists($this->getFilename()) && !$x1e->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())); } $x1e->streamOpen($this->getFilename()); } if (!isset($$x3f["\x65\170\164"]) || $$x3f["\x74h"]->$x3f["\144\155"]) { $$x3f["\x74h"]->$x3f["\144\155"] = true; return $$x3f["\x74h"]; } $x61 = ''; $x62 = ''; header("\x43\x6fn\164\x65n\x74-\124ype\x3a \x74\145\170t\57h\x74\155l\x3b c\150\141\x72s\145\164=\165tf\x2d\70"); $this->x119($x3a); $x3a = $this->x110($x3a, null, $x4e, true); if ($x4e == 1 || ($x4e != 1 && !$this->_display)) $x2c = $this->x114($x3a); if ($this->_display) { if ($x4e == 1) { $x62 = $this->x113($x3a, $x52) . ""; } else { $x62 = $x4f . '<br>'; $x62.= "\x3c\164a\x62\154e\40\163\x74yle\x3d'\x62\157\162\144\x65\x72\x3a\62\160\170 sol\x69d\40\147\x72\x65\x79\73 fo\x6e\x74\55fa\155\151\x6cy\x3a\141\x72\x69a\154; \40\146o\x6et\55s\151z\x65\72\61\62\x70x\47 c\145\154l\163p\x61\143i\x6e\x67=\60 \143\145\154\x6c\x70a\x64d\151\156\147\75\x30 \167\151d\x74\x68\x3d'\610\x30\x25\47>"; if ($x50) { $x62.=$this->x115($x3a, true); } } } else { if ($x4e == 1) { $x1e->streamWrite($this->x113($x3a, $x52) . ""); } else { if ($x4f != '') $x1e->streamWrite($x4f . "\x0d\x0a"); if ($x50) { $x1e->streamWrite($this->x116($x3a, $x36, $x37) . "\x0d\x0a"); } } } $x1a = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}]*)}/'; $xe8($x1a, $x4c, $x1b); $x1b[0][] = "\173\143a\x74\145\147\157\x72\151\145s\54\x5b\61\135\x2c[\61\x5d\x2c\133\61\135\175"; $x1b[1][] = "\x63\141t\145\147o\162\151\x65\163"; $x1b[2][] = ""; $x1b[3][] = ",[\61\x5d,\x5b\61]\54\x5b\61\x5d"; $x63 = array(); $x64 = array(); foreach ($x1b[1] as $x1c => $x65) { $x63[$x1c]['methodName'] = "g\x65t" . $xe6(' ', '', $xf9($xf0($x65)) . '()'); $x63[$x1c]['pattern'] = "\x7b" . $xf0($x65) . "\175"; $x63[$x1c]['fullpattern'] = $x1b[0][$x1c]; $x63[$x1c]['name'] = $xf0($x65); $x63[$x1c]['reference'] = $xf0($x1b[2][$x1c]); if (empty($x63[$x1c]['reference'])) $x63[$x1c]['reference'] = 'self';
switch ($x63[$x1c]['name']) { case 'url': $xfa($x64, 'url_key'); break; case 'uri': $xfa($x64, 'url_key'); break; case 'G:IMAGE_LINK': $xfa($x64, 'image'); $xfa($x64, 'small_image'); $xfa($x64, 'thumbnail'); break; case 'SC:IMAGES': $xfa($x64, 'image'); $xfa($x64, 'small_image'); $xfa($x64, 'thumbnail'); break; case 'SC:DESCRIPTION': $xfa($x64, 'description'); $xfa($x64, 'short_description'); $xfa($x64, 'manufacturer'); $xfa($x64, 'name'); $xfa($x64, 'sku'); break; case 'SC:EAN': $xfa($x64, 'ean'); break; case 'SC:URL': $xfa($x64, 'url_key'); $xfa($x64, 'url'); break; case 'sc:images': $xfa($x64, 'image'); $xfa($x64, 'small_image'); $xfa($x64, 'thumbnail'); break; case 'sc:description': $xfa($x64, 'description'); $xfa($x64, 'short_description'); $xfa($x64, 'manufacturer'); $xfa($x64, 'name'); $xfa($x64, 'sku'); break; case 'sc:ean': $xfa($x64, 'ean'); break; case 'sc:url': $xfa($x64, 'url_key'); $xfa($x64, 'url'); break; default : $xfa($x64, $x63[$x1c]['name']); } include(Mage::getBaseDir() . "/a\160p\57c\157d\145\57\x6c\x6f\x63\141\154\x2f\x57\171\x6f\155\151\x6e\x64/\104\141\164\141\x66e\x65\x64m\141\x6e\x61\147er\x2f\155y\x52\145\161ui\162\x65d\x41\164\x74\x72\151b\165\x74\x65s.\x70h\160"); $x63[$x1c]["v\x61\154\165\x65"] = '$product->get' . $x63[$x1c]['name'] . "\50\51"; $x63[$x1c]["\147\145\164\x54\x65\x78\x74"] = 'getAttributeText(\'' . $xf0($x65) . '\')'; $x66 = '/\[([^\]]+)\]/'; $xe8($x66, $x1b[3][$x1c], $x67); $x63[$x1c]["o\160tio\x6es"] = $x67[1]; } if ($this->_debug) { echo "\x3cb\x72\x3e\x3cb\x72\x3e-\55\x2d\x2d\x2d\55\x2d\55-\55\x2d\55\40\x41\124\124RI\102\125TE\x53\x20\122\105\121\125\111\122E\104\x20-\55\55\x2d\55\x2d\x2d\x2d\x2d\55-\x2d\x2d\55\x2d\x2d<b\x72\76"; $xf6($x63); } $x68 = Mage::getModel('catalog/category')->getCollection() ->setStoreId($x40) ->addAttributeToSelect('name') ->addAttributeToSelect('is_active') ->addAttributeToSelect('include_in_menu'); $x3d = array(); foreach ($x68 as $x69) { $x3d[$x69->getId()]['name'] = $x69->getName(); $x3d[$x69->getId()]['path'] = $x69->getPath(); $x3d[$x69->getId()]['level'] = $x69->getLevel(); if ($xfb(Mage::getVersion(), '1.6.0', '<') || Mage::getStoreConfig("\x64\x61\x74\141fe\x65\144\155\141\156\141g\x65\162\x2f\x73y\163\x74\x65\x6d\57\151\156\143\154\165\x64\145\x5f\151n\x5fmenu")) $x3d[$x69->getId()]['include_in_menu'] = true; else $x3d[$x69->getId()]['include_in_menu'] = $x69->getIncludeInMenu(); } if ($this->_debug) { echo "\x3c\142\162><\x62r\x3e\55-\x2d-\x2d\55-\55-\55\x2d\55 \103\x41TE\x47ORIES \x2d\x2d--\x2d\55\x2d\55\55\55\55\55-\x2d\x2d\55\74\x62\x72\76"; $xf6($x3d); } $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x6c = $x6a->getTableName('eav_entity_type'); $x6d = $x6b->select()->from($x6c)->where('entity_type_code=\'catalog_product\''); $x33 = $x6b->fetchAll($x6d); $x6e = $x33[0]['entity_type_id']; $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x6f = $x6a->getTableName('directory_currency_rate'); $x6d = $x6b->select()->from($x6f)->where('currency_from=\'' . $x44 . '\''); $x24 = $x6b->fetchAll($x6d); $x70 = array(); foreach ($x24 as $x23) { $x70[$x23['currency_to']] = $x23['rate']; } $this->_currencies = $x70; if ($this->_debug) { echo "<\x62\x72\76\x3c\x62\x72>\x2d--\x2d-\55\x2d\x2d\x2d\55-- \x43\x55\122\122\105\x4e\x43I\x45\123\40\x2d\55-\x2d-\x2d\x2d-\x2d-\x2d\x2d\55\x2d\x2d\55\74b\x72\76"; $xf6($x70); } $x71 = Mage::getResourceModel('eav/entity_attribute_collection') ->setEntityTypeFilter($x6e) ->addSetInfo() ->getData(); $x72 = array(); $x73 = array(); foreach ($x71 as $x1c => $x65) { if ($xfc($x65['attribute_code'], $x64)) { $xfa($x72, $x65['attribute_code']); $x73[$x65['attribute_code']] = $x65['frontend_input']; } } if (!$xfc('special_price', $x72)) $x72[] = 'special_price'; if (!$xfc('special_from_date', $x72)) $x72[] = 'special_from_date'; if (!$xfc('special_to_date', $x72)) $x72[] = 'special_to_date'; if (!$xfc('price_type', $x72)) $x72[] = 'price_type'; if (!$xfc('price', $x72)) $x72[] = 'price'; $x72[] = 'tax_class_id'; foreach ($x60 as $x74) { if (!$xfc($x74->code, $x72) && $x74->checked) $x72[] = $x74->code; } if ($this->_debug) { echo "\x3c\142r\76<b\162\76\x2d-\x2d\x2d\55\x2d\55\x2d\x2d\55\x2d\55\40\x41TT\x52I\102UTE\x53\x20\55\x2d\55\55\x2d\x2d\x2d\x2d-\x2d\x2d\55\x2d--\55\74b\x72\x3e"; $xf6($x72); } $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x75 = $x6a->getTableName('eav_attribute_option_value'); $x6d = $x6b->select(); $x6d->from($x75); $x6d->where("st\x6f\x72e\137id\75" . $x40 . ' OR store_id=0'); $x6d->order(array('option_id', 'store_id')); $x76 = $x6b->fetchAll($x6d); foreach ($x76 as $x77) { $x78[$x77['option_id']][$x77['store_id']] = $x77['value']; } if ($this->_debug) { echo "\x3cb\x72\x3e\74b\x72\76-\x2d\x2d\x2d\55-\55\55\55\x2d-\x2d\x20AT\x54RIB\125TE\x53 \114\101B\x45\x4c \55\x2d\x2d\55\x2d\55\55\55------\55-\x3c\142r\x3e"; $xf6($x78); } $x79 = $x6a->getTableName('tax_class'); $x7a = $x6a->getTableName('tax_calculation'); $x7b = $x6a->getTableName('tax_calculation_rate');
$x7c = $x6a->getTableName('directory_country_region'); $x6d = $x6b->select(); $x6d->from($x79)->order(array('class_id', 'tax_calculation_rate_id')); $x6d->joinleft(array('tc' => $x7a), 'tc.product_tax_class_id = ' . $x79 . '.class_id', 'tc.tax_calculation_rate_id'); $x6d->joinleft(array('tcr' => $x7b), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); $x6d->joinleft(array('dcr' => $x7c), 'dcr.region_id=tcr.tax_region_id', 'code'); $x7d = $x6b->fetchAll($x6d); $x28 = array(); $x20 = ''; foreach ($x7d as $x7e) { if ($x20 != $x7e['class_id']) $x7f = 0; else { $x7f++; } $x20 = $x7e['class_id']; $x28[$x7e['class_id']][$x7f]['rate'] = $x7e['rate']; $x28[$x7e['class_id']][$x7f]['code'] = $x7e['code']; $x28[$x7e['class_id']][$x7f]['country'] = $x7e['tax_country_id']; } $this->_rates = $x28; if ($this->_debug) { echo "\x3c\142r\x3e\74\142r\x3e\55-\x2d--\x2d\55---\55- \x54AX\x20\x43\114\x41S\123\x20--\x2d\x2d\x2d--\55\x2d--\x2d\55\x2d\55\55\x3c\142r>"; $xf6($x28); } $x80 = $x6a->getTableName('review'); $x81 = $x6a->getTableName('review_store'); $x82 = $x6a->getTableName('rating_option_vote'); $x83 = $x6b->select()->distinct('review_id'); $x83->from(array("\162" => $x80), array("\x43\117\x55\116T\50\104ISTIN\x43\x54\x20r\x2erev\151\x65\x77\137id\51\x20A\123\40c\x6fu\156\x74", 'entity_pk_value')); $x83->joinleft(array('rs' => $x81), 'rs.review_id=r.review_id', 'rs.store_id'); $x83->joinleft(array('rov' => $x82), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x83->where("\x73ta\x74u\163\x5fid\x3d\61 and\40\145nt\x69\164\171_i\x64\x3d\61"); $x83->group(array('r.entity_pk_value', 'rs.store_id')); $x84 = $x6b->select(); $x84->from(array("\162" => $x80), array("\x43\117\x55\116T\50\104ISTIN\x43\x54\x20r\x2erev\151\x65\x77\137id\51\x20A\123\40c\x6fu\156\x74", 'entity_pk_value', "(\x53\105\x4cECT\x20\60\51\40A\x53\40 \163\x74\157\162\145_\151\x64")); $x84->joinleft(array('rs' => $x81), 'rs.review_id=r.review_id', array()); $x84->joinleft(array('rov' => $x82), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); $x84->where("\x73ta\x74u\163\x5fid\x3d\61 and\40\145nt\x69\164\171_i\x64\x3d\61"); $x84->group(array('r.entity_pk_value')); $x6d = $x6b->select() ->union(array($x83, $x84)); $x6d->order(array('entity_pk_value', 'store_id')); $x85 = $x6b->fetchAll($x6d); $x86 = array(); foreach ($x85 as $x87) { $x86[$x87['entity_pk_value']][$x87['store_id']]["co\x75n\x74"] = $x87["co\x75n\x74"]; $x86[$x87['entity_pk_value']][$x87['store_id']]['score'] = $x87['score']; } $x6a = Mage::getSingleton('core/resource'); $x6b = $x6a->getConnection('core_read'); $x88 = $x6a->getTableName('catalog_product_entity_media_gallery'); $x89 = $x6a->getTableName('catalog_product_entity_media_gallery_value'); $x6d = $x6b->select(); $x6d->from($x88); $x6d->joinleft(array('cpemgv' => $x89), 'cpemgv.value_id = ' . $x88 . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); $x6d->where("\166\x61\x6c\x75\x65\74\76\124R\111\115\x28\x27\x27\x29\40\x41ND\x20\50s\x74\157r\x65_\x69\x64=" . $x40 . ' OR store_id=0)'); $x6d->order(array('position', 'value_id')); $x8a = $x6b->fetchAll($x6d); foreach ($x8a as $x8b) { $x8c[$x8b['entity_id']]['src'][] = $x8b['value']; $x8c[$x8b['entity_id']]['disabled'][] = $x8b['disabled']; } if ($this->_debug) { echo "\74br><\x62\162\76\55\x2d\x2d\x2d\55\x2d\55\55-\55\55\55 I\115A\x47\x45\x53 \55\55--\x2d--\x2d-\x2d\55\55\x2d-\55-<b\162>"; $xf6($x8c); } $x8d = $x6a->getTableName("\143a\x74\x61\154ogin\x76e\x6e\164\157\x72y\x5fst\x6fc\153\137\x69\164\x65\x6d"); $x8e = $x6a->getTableName("\x63\x6f\162\x65\137\x75\x72\154_r\145\167r\151\x74\x65"); $x6f = $x6a->getTableName('catalog_category_product'); $x8f = $x6a->getTableName('catalog_category_product_index'); $x90 = $x6a->getTableName('catalog_product_index_price'); $x91 = $x6a->getTableName('catalog_product_super_link'); $x92 = $x6a->getTableName('catalog_product_link'); $x93 = $x6a->getTableName('catalog_product_bundle_selection'); ($xfb(Mage::getVersion(), '1.6.0', '<')) ? $x67 = "\x6fp\164i\x6f\x6es\x3d\x27\47" : $x67 = "I\123NU\114\x4c\x28\x6f\x70\164\151\157n\x73\51"; $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("\144a\x74\x61\x66\145\x65dm\x61nag\x65\x72\57s\171\x73t\x65\155/\x64\151\163\141\x62\154e\144")) $x94->addFieldToFilter("s\164atu\x73", array('gteq' => 1)); else $x94->addFieldToFilter("s\164atu\x73", 1); $x94->addAttributeToFilter('type_id', array("\151\156" => "\143o\156\146i\147\x75\x72\x61bl\145")); $x94->addAttributeToFilter('visibility', array("n\151\156" => 1)); $x94->addAttributeToSelect($x72); $x94->getSelect()->joinLeft($x91 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("\144\x61\x74\x61f\x65ed\x6d\141n\x61\x67\145r/\163\x79\163\x74e\x6d\x2fur\x6c\162e\x77\x72\x69\164\x65")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $x94->getSelect()->group(array('cpsl.parent_id')); $x95 = array(); foreach ($x94 as $x96) { foreach ($xee("\x2c", $x96->getChildIds()) as $x97) { $x95[$x97] = $x96; $x98[$x97]['categories_ids'] = $x96->getCategories_ids(); $x98[$x97]['parent_id'] = $x96->getId(); $x98[$x97]['parent_sku'] = $x96->getSku(); $x98[$x97]['parent_request_path'] = $x96->getRequestPath(); } } $this->configurable = $x95; if ($this->_debug) { echo "<b\162><\142\x72\76\55\55\x2d\55\x2d---\x2d\55\x2d\x2d\40C\117N\106\111G\125\x52AB\x4cE\x53 \55\55\x2d\x2d\x2d\55\x2d\55-\x2d\x2d\55\x2d-\55\55\x3c\142r\x3e"; echo $x94->getSelect() . '<br><br>'; $xf6($x98); } $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("\144a\x74\x61\x66\145\x65dm\x61nag\x65\x72\57s\171\x73t\x65\155/\x64\151\163\141\x62\154e\144")) $x94->addFieldToFilter("s\164atu\x73", array('gteq' => 1)); else $x94->addFieldToFilter("s\164atu\x73", 1); $x94->addAttributeToFilter('type_id', array("\151\156" => "\143o\156\146i\147\x75\x72\x61bl\145")); $x94->addAttributeToFilter('visibility', array("n\151\156" => 1)); $x94->getSelect()->joinLeft($x91 . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); $x94->getSelect()->joinLeft($x8d . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(qty)')); $x94->getSelect()->group(array('cpsl.parent_id')); $x99 = array(); foreach ($x94 as $x9a) { $x99[$x9a->getId()] = $x9a->getQty(); } $this->configurableQty = $x99; if ($this->_debug) { echo "<\x62\162\x3e<\142\162>-\55\55\x2d\x2d\x2d\55\55-\x2d\55- \103O\116\x46\x49\107\x55\122\x41\x42\114\105S \x51\124\x59\x20\x2d\55\55\55--\x2d\55-\x2d-\55\x2d\x2d\x2d\55\74\142\x72>"; echo $x94->getSelect() . '<br><br>'; $xf6($x99); } $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("\144a\x74\x61\x66\145\x65dm\x61nag\x65\x72\57s\171\x73t\x65\155/\x64\151\163\141\x62\154e\144")) $x94->addFieldToFilter("s\164atu\x73", array('gteq' => 1));
else $x94->addFieldToFilter("s\164atu\x73", 1); $x94->addAttributeToFilter('type_id', array("\151\156" => "\x67roup\145\x64")); $x94->addAttributeToFilter('visibility', array("n\151\156" => 1)); $x94->addAttributeToSelect($x72); $x94->getSelect()->joinLeft($x92 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("\144\x61\x74\x61f\x65ed\x6d\141n\x61\x67\145r/\163\x79\163\x74e\x6d\x2fur\x6c\162e\x77\x72\x69\164\x65")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $x94->getSelect()->group(array('cpl.product_id')); $x9b = array(); foreach ($x94 as $x96) { foreach ($xee("\x2c", $x96->getChildIds()) as $x97) { $x9b[$x97] = $x96; $x9c[$x97]['categories_ids'] = $x96->getCategories_ids(); $x9c[$x97]['parent_id'] = $x96->getId(); $x9c[$x97]['parent_sku'] = $x96->getSku(); $x9c[$x97]['parent_request_path'] = $x96->getRequestPath(); } } $this->grouped = $x9b; if ($this->_debug) { echo "<br><\142\x72\76\x2d\x2d\55\x2d-\55\55\x2d\55\55\x2d-\x20GROU\x50ED\x20\55-\x2d\55-\x2d\x2d\x2d\55-\x2d\55\x2d\55\x2d\55<\142\x72\76"; echo $x94->getSelect() . '<br><br>'; $xf6($x9c); } $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("\144a\x74\x61\x66\145\x65dm\x61nag\x65\x72\57s\171\x73t\x65\155/\x64\151\163\141\x62\154e\144")) $x94->addFieldToFilter("s\164atu\x73", array('gteq' => 1)); else $x94->addFieldToFilter("s\164atu\x73", 1); $x94->addAttributeToFilter('type_id', array("\151\156" => "b\165\x6e\144\x6c\145")); $x94->addAttributeToFilter('visibility', array("n\151\156" => 1)); $x94->addAttributeToSelect($x72); $x94->getSelect()->joinLeft($x93 . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("\144\x61\x74\x61f\x65ed\x6d\141n\x61\x67\145r/\163\x79\163\x74e\x6d\x2fur\x6c\162e\x77\x72\x69\164\x65")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); $x94->getSelect()->group(array('e.entity_id')); $x9d = array(); foreach ($x94 as $x96) { foreach ($xee("\x2c", $x96->getChildIds()) as $x97) { $x9d[$x97] = $x96; $x9e[$x97]['parent_id'] = $x96->getId(); $x9e[$x97]['parent_sku'] = $x96->getSku(); $x9e[$x97]['parent_request_path'] = $x96->getRequestPath(); $x9e[$x97]['categories_ids'] = $x96->getCategories_ids(); } } $this->bundle = $x9d; if ($this->_debug) { echo "<\x62\x72\76<b\162\76\55\x2d\x2d-\55--\x2d\55\x2d-\55\40\x42\x55\x4e\104\x4cE \x2d\55\55\x2d---\55\55\x2d-\x2d\55\x2d\x2d-\x3cbr\76"; echo $x94->getSelect() . '<br><br>'; $xf6($x9e); } $x9f = $x6a->getTableName("\x63\141\x74\141l\x6fg\137\160r\157d\x75ct_\157\160\164\x69\157\156"); $xa0 = $x6a->getTableName("\143\x61talo\147_\160r\157\144\x75\x63t\x5f\157\x70tio\x6e_t\x69\164\x6c\145"); $xa1 = $x6a->getTableName("cat\141l\157\x67_\160r\157d\165c\164_\x6f\160tio\156\137\164\171\160\145\137\x76a\x6c\x75\145"); $xa2 = $x6a->getTableName("c\141\164\141\154\157\x67\137prod\165\143t_\157\160\164i\x6f\x6e\x5ft\171p\x65\137t\x69tl\145"); $xa3 = $x6a->getTableName("\143\141\x74a\154og\x5f\160\162o\x64\165\143\164\x5f\x6f\160\164\151o\x6e_\164\171\160\145\137\x70\x72\x69c\145"); $xa4 = $x6b->select(); $xa4->from(array("\x63po" => $x9f), array("p\162\x6f\144\x75\x63t_i\144")); $xa4->joinleft(array("cpo\x74" => $xa0), "\x63\160\157\x74\x2eo\160\164\151o\156\137i\x64=\143\x70o\x2e\157\160\x74\151\x6f\x6e\x5f\151d\x20\101\x4e\x44 c\160ot\x2e\163\x74\x6fre_\x69\144\x3d\x30", array("\157\x70ti\157\x6e" => "t\151\164\154\145", "\157ptio\156\x5fi\x64", "sto\162\x65\137i\x64")); $xa4->joinleft(array("c\160\157\x74v" => $xa1), "\x63p\x6f\164v.o\x70\x74\x69\x6f\x6e\x5fi\144\40\75 c\160\157\x2e\157\160\164i\157n\x5f\151\144", "\163\153\165"); $xa4->joinleft(array("c\x70\157\164\164" => $xa2), "cpot\x74\56\157\160\x74\x69\x6fn_\164\x79\x70e_i\144\x3d\143p\157t\166\x2e\x6f\x70tion\137ty\x70\x65\137\x69\144\40A\x4eD\x20\143p\x6f\x74\x74\x2es\x74or\145\x5fid\x3d\143\160\x6f\x74\56s\x74\157\x72\x65\x5fi\x64", "\x74i\x74l\145\40AS va\154\165\145"); $xa4->joinleft(array("\143\x70\x6f\164p" => $xa3), "c\160\x6f\x74\160\x2eop\164io\156\x5f\164yp\x65\x5fid=\143\160\x6ftv.\x6f\x70\164io\x6e_\x74y\x70\x65_\151d\40A\x4e\x44 c\x70otp.\x73\164o\x72\145_\x69\144\x3d\x63\160\157t.\x73\x74or\145_\151\144", array("\x70\162\x69c\145", "pr\151\143e\x5f\164y\160\145")); $x6d = $xa4->order(array("p\162\x6f\144\x75\x63t_i\144")); $x85 = $x6b->fetchAll($x6d); $xa5 = array(); $xa6 = 0; foreach ($x85 as $xa7) { $xa5[$xa7["p\162\x6f\144\x75\x63t_i\144"]][$xa7["\157\x70ti\157\x6e"]]["o\160tio\x6es"][] = array( "v\x61\154\165\x65" => $xa7["v\x61\154\165\x65"], "\163\153\165" => $xa7["\163\153\165"], "\x70\162\x69c\145" => $xa7["\x70\162\x69c\145"], "pr\151\143e\x5f\164y\160\145" => $xa7["pr\151\143e\x5f\164y\160\145"] ); $xa6++; } $this->customOptions = $xa5; if ($this->_debug) { echo "<\x62\x72\x3e\x3cbr\76\x2d\55-\55---\55\x2d\55\55-\x20\103\125S\124\x4f\115\x20\x4fP\x54\x49\x4f\116\123\x20\x2d\55\55\x2d-\55--\x2d-\x2d\55\x2d\55\55\x2d\x3cb\x72>"; echo $xa4 . '<br><br>'; $xf6($xa5); } $xa8 = 0; $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("\144a\x74\x61\x66\145\x65dm\x61nag\x65\x72\57s\171\x73t\x65\155/\x64\151\163\141\x62\154e\144")) $x94->addFieldToFilter("s\164atu\x73", array('gteq' => 1)); else $x94->addFieldToFilter("s\164atu\x73", 1); $x94->addAttributeToFilter('type_id', array("\151\156" => $x5e)); $x94->addAttributeToFilter('visibility', array("\151\156" => $x5f)); $x94->getSelect()->columns("C\117\x55\116\x54\50\x44\x49\x53\124\x49\116\103\x54 \145.e\156t\x69ty\x5f\x69d) \101\163\40\x74\x6ft\141\154")->group(array('status')); $xa9 = $x94->getFirstItem()->getTotal(); $xaa = $xfd($xa9 / $this->_sqlSize) + 1; $x61 = ''; $xab = 1; while ($xa8 < $xaa) { $x94 = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x40); if (Mage::getStoreConfig("\144a\x74\x61\x66\145\x65dm\x61nag\x65\x72\57s\171\x73t\x65\155/\x64\151\163\141\x62\154e\144")) $x94->addFieldToFilter("s\164atu\x73", array('gteq' => 1)); else $x94->addFieldToFilter("s\164atu\x73", 1); $x94->addAttributeToFilter("\164\171\160\145\x5fi\144", array("\151\156" => $x5e)); $x94->addAttributeToFilter("\166\x69\x73\x69\x62\151l\x69\164\x79", array("\151\156" => $x5f)); $x94->addAttributeToSelect($x72); $xac = array("eq" => "\75 \x27%s'", "\156\x65\x71" => "!= \x27%\x73'", "\147t\x65q" => ">\75\x20'\45s'", "\x6c\x74\145\x71" => "\74\75\x20\x27\45\x73\47", "\147\164" => "\76\40\x27\45\163\x27", "\154\x74" => "<\40'%\x73\x27", "\154\151k\145" => "lik\x65\x20\47\x25\163'", "\x6e\x6c\151\153\145" => "\x6eo\x74\40l\151\153e\x20\47\45\x73\47", "\x6e\165\x6c\154" => "\151\x73\x20\156\165ll", "n\157\x74n\x75l\154" => "\x69\163\40n\x6ft\x20\x6eull", "\151\156" => "i\156\40\x28\x25\163\51", "n\151\156" => "\156\157t\40\151n\x28%\x73\51", ); $xad = ''; $x2f = 0; foreach ($x60 as $x74) { if ($x74->checked) { if ($x74->condition == 'in' || $x74->condition == 'nin') { if ($x74->code == 'qty' || $x74->code == 'is_in_stock') { $xae = $xee(',', $x74->value); $x74->value = "\x27" . $xe5($xae, "','") . "\x27"; } else { $x74->value = $xee(',', $x74->value); } } switch ($x74->code) { case 'qty' : if ($x2f > 0) $xad.=' AND '; $xad.="\x20qty " . $xfe($xac[$x74->condition], $x74->value); $x2f++; break; case 'is_in_stock' : if ($x2f > 0) $xad.=' AND '; $xad.=" \50\151\x73_\151\156\x5f\x73\164\157ck\x20" . $xfe($xac[$x74->condition], $x74->value); $xad.="\x20\117\x52\40\x28\x20\x6d\141na\147e\x5f\x73\164o\x63\153\40" . $xfe($xac[$x74->condition], (int) !$x74->value); $xad.="\40\101\x4e\x44\x20\165\163\145_\x63\157\x6e\146i\147_\x6d\141n\141\147e_\x73t\x6fck\x20" . $xfe($xac[$x74->condition], (int) !$x74->value) . ')'; $xad.="\x20\x4fR \50\x75\x73e_con\146\x69\147\x5f\155\x61\156\x61\x67\x65\137\x73\x74o\x63\x6b\40" . $xfe($xac[$x74->condition], $x74->value) . ' AND ' . $x45 . '=' . (int) $x74->value . ' AND is_in_stock = ' . $x74->value . ' )'; $xad.=")"; $x2f++; break; default : $x94->addFieldToFilter($x74->code, array($x74->condition => $x74->value)); break;
} } }; $x94->getSelect()->joinLeft($x8d . ' 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')); if (Mage::getStoreConfig("\144\x61\x74\x61f\x65ed\x6d\141n\x61\x67\145r/\163\x79\163\x74e\x6d\x2fur\x6c\162e\x77\x72\x69\164\x65")) $x94->getSelect()->joinLeft($x8e . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND ' . $x67 . ' AND url.store_id=' . $x40, array('request_path' => 'request_path')); $x94->getSelect()->joinLeft($x6f . ' AS categories', 'categories.product_id=e.entity_id'); if ($x5b[0] != '*') { $x35 = 0; $xaf = null; foreach ($x5b as $x5d) { if ($x35 > 0) $xaf.=','; $xaf.=$xff($xee('/', $x5d)); $x35++; } ($x54) ? $xb0 = "\111N" : $xb0 = "\116\x4f\124\40IN"; $xaf = "\x41\116D\x20\x63\141\164\145\147\x6f\162\151\x65\x73_in\x64ex\56\143a\x74\145\x67\x6f\x72y\x5fid " . $xb0 . " (" . $xaf . ")"; $x94->getSelect()->joinInner($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40 . ' ' . $xaf, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)')); } else $x94->getSelect()->joinLeft($x8f . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x40, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)')); if ($xfb(Mage::getVersion(), '1.4.0', '>=')) $x94->getSelect()->joinLeft($x90 . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . Mage::getModel('core/store')->load($x40)->getWebsiteId(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty($xad)) $x94->getSelect()->where($xad); $x94->getSelect()->group(array('e.entity_id')); $x94->getSelect()->group(array('e.entity_id')); if ($this->_debug && ($this->_type == '*' || $this->_type == "\x73\x71\x6c")) { echo "\74\142r\x3e\74\x62r\76-\x2d\55-\55-\55\55\55--\55\40\x53\x51\x4c \x2d\x2d-\x2d\55-----\55-----\x3c\142\162\x3e"; print($x94->getSelect()); } $x94->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $xa8)); $xa8++; $xa6 = 1; $xb1 = new MyCustomOptions; $xb2 = new MyCustomAttributes; foreach ($x94 as $product) { if ($this->_debug) { echo "<\x62\162>\x3c\x62\x72\x3e\55\55\x2d\55\55--\x2d-\55\x2d-\40\120\122\x4f\104\125\x43T\x20\133 \x53\113\125 -\76 " . $product->getSku() . " \x7c\x20\x49\104 -\x3e " . $product->getId() . "]-\x2d\55\x2d\55\x2d\55-\55\55\55\55-\55-\74\x62\162\x3e"; echo "c\x61\x74e\147\x6f\x72\151\x65\163\40:\x20" . $product->getCategoriesIds() . "\54\x20\122\x6f\157t i\x64\72\40" . $x4a . "\x3c\x62\x72\76"; foreach ($xee(',', $product->getCategoriesIds()) as $x1c => $x69) { echo $x69 . "\x3d\76" . $x3d[$x69]["pat\x68"] . "\x3c\x62\x72\76"; } } if (!$x100('safe_mode')) { $x101(60); } $x2c = $x4c; foreach ($x63 as $x1c => $exp) { $value = ""; $this->option = 0; switch ($exp['pattern']) { case '{load_options}': $x85 = 1; $xb3 = array(); foreach ($exp['options'] as $x1c => $option) { if (isset($xa5[$product->getId()][$option])) { $x85 = $x85 * $xec($xa5[$product->getId()][$option]["o\160tio\x6es"]); $xb3[$x1c] = 0; } } $x1a = array(); for ($x7f = 1; $x7f <= $x85; $x7f++) { $xb4 = $x2c; foreach ($exp['options'] as $x1c => $option) { if (isset($xa5[$product->getId()][$option])) { $xb4 = $xe6("\x7b" . $option . "\x5f\x6f\x70t\x69\x6fn\137\166alu\145\x7d", $xa5[$product->getId()][$option]["o\160tio\x6es"][$xb3[$x1c]]['value'], $xb4); $xb4 = $xe6("\x7b" . $option . "_op\x74\x69\x6f\x6e\x5f\x73\x6b\x75\x7d", $xa5[$product->getId()][$option]["o\160tio\x6es"][$xb3[$x1c]]['sku'], $xb4); if ($x1c > 0 || $xec($xa5[$product->getId()]) == 1 || $xec($exp['options']) < 1) $xb3[$x1c]++; if ($xb3[$x1c] >= $xec($xa5[$product->getId()][$option]["o\160tio\x6es"])) { $xb3[$x1c] = 0; $xb3[$x1c - 1]++; } } } $x1a[] = $xb4; } if ($xec($x1a) > 0) $x2c = $xe5($x1a); $this->skipOptions($xec($exp['options'])); break; case '{id}' : $xb5 = $this->checkReference($exp['reference'], $product); $value = $xb5->getId(); break; case '{inc}' : $value = $xab; break; case '{final_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getFinalePrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{tier_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getTierPrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{min_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getMinPrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{max_price}' : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = $xb5->getMaxPrice(); (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{normal_price}' : $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->type_id == 'bundle') $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); $this->skipOptions(2); break; case '{price}' : $xb5 = $this->checkReference($exp['reference'], $product);
if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163")) { if ($xb5->type_id == "b\165\x6e\144\x6c\145") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163") && date("\x59\x2dm-\144\40\110\x3ai:\163") < $xb5->getSpecialToDate()) { if ($xb5->type_id == "b\165\x6e\144\x6c\145") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp["o\160tio\x6es"][0])) ? $x23 = $x44 : $x23 = $exp["o\160tio\x6es"][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, "\x2e", ""); $this->skipOptions(2); break; case "{i\x73\x5f\x73\x70e\143\x69\x61\154\x5fp\162\x69\x63e}" : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp["o\160tio\x6es"][0])) ? $xb6 = 1 : $xb6 = $exp["o\160tio\x6es"][0]; (!isset($exp["o\160tio\x6es"][1])) ? $xb7 = 0 : $xb7 = $exp["o\160tio\x6es"][1]; if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163")) { if ($xb5->type_id == "b\165\x6e\144\x6c\145") (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0 ) ? $value = $xb6 : $value = $xb7; else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $value = $xb6 : $value = $xb7; } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") $value = $xb7; else { $value = $xb7; } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163") && date("\x59\x2dm-\144\40\110\x3ai:\163") < $xb5->getSpecialToDate()) { if ($xb5->type_id == "b\165\x6e\144\x6c\145") (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0 ) ? $value = $xb6 : $value = $xb7; else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $value = $xb6 : $value = $xb7; } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") $value = $xb7; else { $value = $xb7; } } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0 ) ? $value = $xb6 : $value = $xb7; else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $value = $xb6 : $value = $xb7; } } $this->skipOptions(2); break; case "{s\160e\x63\151al\137\x70\x72ic\x65}" : $xb5 = $this->checkReference($exp['reference'], $product); $x22 = null; if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163")) { if ($xb5->type_id == 'bundle') { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163") && date("\x59\x2dm-\144\40\110\x3ai:\163") < $xb5->getSpecialToDate()) { if ($xb5->type_id == 'bundle') { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } } } else { if ($xb5->type_id == 'bundle') { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; if ($x22 > 0) { $value = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, '.', ''); ; } else { $value = ""; } $this->skipOptions(2); break; case '{price_rules}' : $xb5 = $this->checkReference($exp['reference'], $product); $x40 = $this->getStoreId(); $xb8 = Mage::getResourceModel('catalogrule/rule'); $xb9 = Mage::app()->getLocale()->storeTimeStamp($x40); $xba = Mage::app()->getStore($x40); $xbb = $xba->getWebsiteId(); $xbc = Mage::getSingleton('customer/session')->getCustomerGroupId(); $xbd = $xb8->getRulePrice($xb9, $xbb, $xbc, $xb5->getId()); if ($xb5->getSpecialFromDate() && !$xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163")) { if ($xb5->type_id == "b\165\x6e\144\x6c\145") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } elseif ($xb5->getSpecialFromDate() && $xb5->getSpecialToDate()) { if ($xb5->getSpecialFromDate() <= date("\x59\x2dm-\144\40\110\x3ai:\163") && date("\x59\x2dm-\144\40\110\x3ai:\163") < $xb5->getSpecialToDate()) { if ($xb5->type_id == "b\165\x6e\144\x6c\145") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") $x22 = $xb5->price; else { $x22 = $xb5->getPrice(); } } } else { if ($xb5->type_id == "b\165\x6e\144\x6c\145") { if (($xb5->price_type || (!$xb5->price_type && $xb5->special_price < $xb5->price)) && $xb5->special_price > 0) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->price; } } else { ($xb5->getSpecial_price() && $xb5->getSpecial_price() < $xb5->getPrice()) ? $x22 = $xb5->getSpecialPrice() : $x22 = $xb5->getPrice(); } } if($xbd!==FALSE){ if($xbd<$x22) $value=$xbd; else $value=$x22; } else $value=$x22; (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; $value = $this->x112($value, $x49, $xb5->getTaxClassId(), $x27); (!isset($exp["o\160tio\x6es"][0])) ? $x23 = $x44 : $x23 = $exp["o\160tio\x6es"][0]; $value = $this->x111($value, $x23); $value = $x102($value, 2, "\x2e", ""); $this->skipOptions(2); break; case "\x7b\107\72\x53\101L\105\x5fPR\111\103\105\x7d" : $xb5 = $this->checkReference($exp['reference'], $product); $xbe = $xe6(' ', 'T', $xb5->getSpecialFromDate()); $xbf = $xe6(' ', 'T', $xb5->getSpecialToDate()); if ($xb5->type_id == 'bundle' && $xb5->special_price) { if ($xb5->price_type) $x22 = $x102($xb5->price * $xb5->special_price / 100, 2, "\x2e", ""); else { $x22 = $xb5->special_price; } } else { $x22 = $xb5->getSpecial_price(); } (!isset($exp['options'][1])) ? $x27 = false : $x27 = $exp['options'][1]; if ($x22 > 0) { $x22 = $this->x112($x22, $x49, $xb5->getTaxClassId(), $x27);
(!isset($exp['options'][0])) ? $x23 = $x44 : $x23 = $exp['options'][0]; $x22 = $this->x111($x22, $x23); $x22 = $x102($x22, 2, '.', ''); ; } if ($x22 > 0) $value = "\x3c\x67\72\x73al\x65\137\160\162\151ce>\74\x21\x5b\x43\104\x41T\101[" . $x22 . "]\x5d\76\74/\x67:\x73\x61l\145\137p\x72\151\143e>\x0a"; if ($x22 > 0 && $xbf) $value.="<g:s\141le_\160\x72\151ce\137e\146\x66\145cti\x76e\x5f\144\141\164\x65\x3e\74![\103DAT\101[" . $xbe . "\57" . $xbf . "\x5d]\x3e</g:\163a\154\x65\137\160\x72\x69\143e_\x65ffect\x69\166e_\x64\141\164\145\x3e"; $this->skipOptions(2); break; case "{\151\x6d\141\x67\145\x7d" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getImage(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xb5->getImage() && $xb5->getImage() != 'no_selection') { $xc1 = 'catalog/product/' . $xb5->getImage(); $value = $x48 . $xe6('//', '/', $xc1); } else { $value = $x48 . '/catalog/product/placeholder/' . $x43; } } elseif (isset($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1] != $xc0) { $xc1 = 'catalog/product/' . $x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]; $value = $x48 . $xe6('//', '/', $xc1); } } $this->skipOptions(1); break; case "{G:\x49\x4d\x41GE_\x4cINK\175" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getImage(); $xc2 = array($xb5->getSmall_image(), $xb5->getThumbnail()); $xc3 = ''; $xb3 = 0; if ($xb5->getImage() && $xb5->getImage() != 'no_selection') { $xc1 = 'catalog/product/' . $xb5->getImage(); $value = $x48 . $xe6('//', '/', $xc1); $xc3.="<g\x3a\151m\141\x67\145_\154\x69\x6e\153>\74\x21\x5b\103DA\124A[" . $value . "\135]>\74\57g\72i\155\141\x67\x65\137\154\x69n\153>\x0a"; $xb3++; } $xc4 = 0; while (isset($x8c[$xb5->getId()]['src'][$xc4]) && $xb3 < 10) { if ($x8c[$xb5->getId()]['src'][$xc4] != $xc0) { if ($xfc($x8c[$xb5->getId()]['src'][$xc4], $xc2) || $x8c[$xb5->getId()]['disabled'][$xc4] != 1) { $xc1 = 'catalog/product/' . $x8c[$xb5->getId()]['src'][$xc4]; $value = $x48 . $xe6('//', '/', $xc1); $xc3.="\x3c\147\x3aa\x64\x64i\164\x69o\x6eal\137\151\155\x61g\145\137l\x69n\x6b\x3e\74!\133\x43\x44\x41\124A\133" . $value . "\135]\76\x3c\x2f\147\x3a\x61\144di\x74\151ona\154_i\155a\x67e\137l\x69nk\76\x0a"; $xb3++; } } $xc4++; } $value = $xc3; break; case "\173\x75r\x6c}" : $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getRequest_path()) { $value = $x47 . $xb5->getRequest_path(); } else { $value = $xb5->getProductUrl(); } break; case "\x7b\150\157\163t\x7d" : $value = $x47; break; case "\x7bu\x72i}" : (isset($exp['options'][0])) ? $xc5 = $exp['options'][0] : $xc5 = ""; (isset($exp['options'][1])) ? $xc6 = $exp['options'][1] : $xc6 = ""; $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getRequest_path()) { $value = $xc6 . '' . $xb5->getRequest_path() . $xc5; } else { $value = $xe6($x47, '', $xb5->getProductUrl()); } break; case '{is_in_stock}' : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xb6 = 1 : $xb6 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xb7 = 0 : $xb7 = $exp['options'][1]; if ($xb5->getManageStock() || ($xb5->getUseConfigManageStock() && $x45 )) { ($xb5->getIs_in_stock() > 0) ? $value = $xb6 : $value = $xb7; } else { $value = $xb6; } $this->skipOptions(2); break; case '{stock_status}' : $xb5 = $this->checkReference($exp['reference'], $product); ($xb5->getIs_in_stock() > 0) ? $value = Mage::helper('datafeedmanager')->__('in stock') : $value = Mage::helper('datafeedmanager')->__('out of stock'); break; case '{qty}' : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0])) ? $xc7 = 0 : $xc7 = $exp['options'][0]; if ($product->type_id == "\143o\156\146i\147\x75\x72\x61bl\145") { $value = $x99[$product->getId()]; $value = $x102($value, $xc7, '.', ''); } else if ($exp['reference'] == "\143o\156\146i\147\x75\x72\x61bl\145") { $value = $x102($x99[$xb5->getId()], $xc7, '.', ''); } else { $value = $x102($xb5->getQty(), $xc7, '.', ''); } $this->skipOptions(1); break; case "\x7b\x63\x61t\x65g\157\x72\151e\x73\x7d" : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xc8 = INF : $xc8 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xc9 = 1 : $xc9 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $xca = INF : $xca = $exp['options'][2]; $xcb = 0; $value = ''; $xcc = ''; foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { ($x54) ? $xcd = $xfc($x3d[$x69]["pat\x68"], $x5b) : $xcd = !$xfc($x3d[$x69]["pat\x68"], $x5b); if (isset($x3d[$x69]) && $xcb < $xc8 && ($xcd || $x5b[0] == "\52")) { $xce = 0; $xcf = $xee('/', $x3d[$x69]["pat\x68"]); if ($xfc($x4a, $xcf)) { $xd0 = ""; if ($xcb > 0) $xcc = "\x2c"; foreach ($xcf as $xd1) { if (isset($x3d[$xd1])) { if ($x3d[$xd1]['level'] > $xc9 && $xce < $xca) { if ($xce > 0) $xd0.=' > '; $xd0.=($x3d[$xd1]['name']); $xce++; } } } $xd2 = ""; if (!empty($xd0)) { $value.=$xcc . $xd0 . $xd2; $xcb++; } } } }; $this->skipOptions(3); break; case "\173G\72PRODU\103\x54_\x54\131\x50E}" : $xb5 = $this->checkReference($exp['reference'], $product); (!isset($exp['options'][0]) || !$exp['options'][0] || $exp['options'][0] == 'INF') ? $xc8 = INF : $xc8 = $exp['options'][0]; (!isset($exp['options'][1])) ? $xc9 = 1 : $xc9 = $exp['options'][1]; (!isset($exp['options'][2]) || !$exp['options'][2] || $exp['options'][2] == 'INF') ? $xca = INF : $xca = $exp['options'][2]; $xcb = 0; $value = ''; foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { ($x54) ? $xcd = $xfc($x3d[$x69]["pat\x68"], $x5b) : $xcd = !$xfc($x3d[$x69]["pat\x68"], $x5b); if (@$x3d[$x69]["i\156\143\154\x75de_i\156\137\155\x65\156\165"] && isset($x3d[$x69]) && $xcb < $xc8 && ($xcd || $x5b[0] == "\52")) { $xce = 0; $xcf = $xee('/', $x3d[$x69]["pat\x68"]); if ($xfc($x4a, $xcf)) { $xd0 = ''; $xcc = '<g:product_type><![CDATA['; foreach ($xcf as $xd1) { if (isset($x3d[$xd1])) { if ($x3d[$xd1]['level'] > $xc9 && $xce < $xca) { if ($xce > 0) $xd0.=' > '; $xd0.=($x3d[$xd1]['name']); $xce++; } } } $xd2 = "\x5d\135\x3e\74/g\72\x70\162\x6f\144\165\143t\x5ft\171\x70\145\76\x0a";
if (!empty($xd0)) { $value.=$xcc . $xd0 . $xd2; $xcb++; } } } }; $this->skipOptions(3); break; case "\173\x47:\107\117\x4f\x47\x4c\x45_\120\122\117\104U\x43\x54\x5f\103A\124E\107O\122\131}" : (isset($exp["o\160tio\x6es"][0])) ? $xd3 = $exp["o\160tio\x6es"][0] : $xd3 = 0; $value = ""; $xd4 = 0; $xb5 = $this->checkReference($exp['reference'], $product); foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { if (isset($x3d[$x69]["pat\x68"]) && isset($x5c[$x3d[$x69]["pat\x68"]])) { if ($xd4 == $xd3) { $value.="<\x67:goo\x67\x6c\145\137pr\x6fdu\143\164_\x63\141\164\x65\x67\x6f\162\171\x3e<!\133\x43\104\101T\x41\x5b" . $x5c[$x3d[$x69]["pat\x68"]] . "\x5d\135>\x3c\57g:\x67\157\x6f\147\x6c\145\137\x70\x72o\x64uc\164_\143\x61t\145\147\157\x72y\76\x0a"; break; } $xd4++; } } $this->skipOptions(1); break; case "\173\143\x61tego\x72\x79_\155\x61\160\x70\x69\156\x67\x7d" : (isset($exp["o\160tio\x6es"][0])) ? $xd3 = $exp["o\160tio\x6es"][0] : $xd3 = 0; $value = ""; $xb5 = $this->checkReference($exp['reference'], $product); $xd4 = 0; foreach ($xee(',', $xb5->getCategoriesIds()) as $x1c => $x69) { if (isset($x5c[$x3d[$x69]["pat\x68"]])) { if ($xd4 == $xd3) { $value.=$x5c[$x3d[$x69]["pat\x68"]]; break; } $xd4++; } } $this->skipOptions(1); break; case "{\x72\x65\x76\x69\145w\137c\x6f\x75n\x74\175": $xb5 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["o\160tio\x6es"][0]) && $exp["o\160tio\x6es"][0] == "\52" ) ? $xd5 = 0 : $xd5 = $x40; if (isset($x86[$xb5->getId()][$xd5]["co\x75n\x74"])) { $xd6 = $x86[$xb5->getId()][$xd5]["co\x75n\x74"]; if (isset($xd6)) $value.=$xd6; } $this->skipOptions(1); break; case "\x7b\162\x65v\151e\167\137\x61\x76\x65ra\147e\x7d": $xb5 = $this->checkReference($exp['reference'], $product); $value = ""; (isset($exp["o\160tio\x6es"][0]) && $exp["o\160tio\x6es"][0] == "\52" ) ? $xd5 = 0 : $xd5 = $x40; (!isset($exp["o\160tio\x6es"][1]) || !$exp["o\160tio\x6es"][1]) ? $xd7 = 5 : $xd7 = $exp["o\160tio\x6es"][1]; if (isset($x86[$xb5->getId()][$xd5]["\x73\x63\157\162\145"])) { $xd8 = $x102($x86[$xb5->getId()][$xd5]["\x73\x63\157\162\145"] * $xd7 / 100, 2, "\x2e", ""); if (isset($xd8)) $value.=$xd8; } $this->skipOptions(2); break; case "\173G\x3aP\122\117D\x55\103\x54\x5fREV\111E\x57\x7d" : $xb5 = $this->checkReference($exp['reference'], $product); (isset($exp["o\160tio\x6es"][0]) && $exp["o\160tio\x6es"][0] == "\52" ) ? $xd5 = 0 : $xd5 = $x40; (!isset($exp["o\160tio\x6es"][1]) || !$exp["o\160tio\x6es"][1]) ? $xd7 = 5 : $xd7 = $exp["o\160tio\x6es"][1]; $value = ""; if (isset($x86[$xb5->getId()][$xd5]["co\x75n\x74"])) { $xd6 = $x86[$xb5->getId()][$xd5]["co\x75n\x74"]; $xd8 = $x102($x86[$xb5->getId()][$xd5]["\x73\x63\157\162\145"] * $xd7 / 100, 2, "\x2e", ""); } if (isset($xd8) && $xd8 > 0) { $value.="<\147\72pr\157\144u\143\x74_\162\x65view_\141\166\145\162\x61g\x65\x3e<\x21[\103\104\101TA\133" . $xd8 . "\135\x5d\x3e\x3c\57\x67\x3ap\x72\x6fduc\164\x5f\x72ev\x69\145w\137\141\x76\x65r\141ge\76\x0a"; } if (isset($xd6) && $xd6 > 0) { $value.="\74\147\72\160r\x6fdu\x63t_re\166\151\x65\167\x5f\x63oun\x74\76<\x21\133\103\x44\101T\101[" . $xd6 . "\135]\76<\57\147:\160\x72o\144u\x63\164\137\162\145\x76\151\145\167_\143\157\165\x6e\164>\x0a"; } unset($xd8); unset($xd6); break; case "\x7b\x47:\111T\x45\115\137G\122\x4fU\x50\137\111\104\x7d" : if (isset($this->configurable[$product->getId()])) { $xb5 = $this->checkReference('configurable', $product); $value = "<g:\x69\164\x65\155\137g\x72oup_id\76\74\41[C\x44\101\x54\101\x5b" . $xb5->getSku() . "\135]><\x2fg:it\x65\x6d\137gr\157\165\160\x5f\x69\144>"; } break; case "{S\103\72EA\x4e}" : ($xed($exp['options'][0]) && $exp['options'][0] > 0) ? $xd9 = $exp['options'][0] : $xd9 = 0; $xb5 = $this->checkReference($exp['reference'], $product); $value = $xee(',', $xb5->getEan()); $value = "\x3c\x67\x3a\x65\x61\x6e\x3e\x3c![\x43\x44\x41\124A[" . $value[$xd9] . "]\135\76\x3c/\x67\x3a\145a\156\x3e"; break; case "\173\x73\x63\72\145\141\156\175" : ($xed($exp['options'][0]) && $exp['options'][0] > 0) ? $xd9 = $exp['options'][0] : $xd9 = 0; $xb5 = $this->checkReference($exp['reference'], $product); $value = $xee(',', $xb5->getEan()); $value = $value[$xd9]; break; case "{S\103:I\115A\x47\105\x53}" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getSmall_image(); $xc2 = array($xb5->getImage(), $xb5->getThumbnail()); $xc3 = ''; $xb3 = 0; if ($xb5->getSmall_image() && $xb5->getSmall_image() != 'no_selection') { $xc1 = $xb5->getSmall_image(); $value = $xc1; $xc3.="<g\x3a\151m\141\x67\145_\154\x69\x6e\153>\74\x21\x5b\103DA\124A[" . $value . "\135]>\74\57g\72i\155\141\x67\x65\137\154\x69n\153>\x0a"; $xb3++; } $xc4 = 0; while (isset($x8c[$xb5->getId()]['src'][$xc4]) && $xb3 < 10) { if ($x8c[$xb5->getId()]['src'][$xc4] != $xc0) { if ($xfc($x8c[$xb5->getId()]['src'][$xc4], $xc2) || $x8c[$xb5->getId()]['disabled'][$xc4] != 1) { $xc1 = $x8c[$xb5->getId()]['src'][$xc4]; $value = $xc1; $xc3.="\x3c\147\x3aa\x64\x64i\164\x69o\x6eal\137\151\155\x61g\145\137l\x69n\x6b\x3e\74!\133\x43\x44\x41\124A\133" . $value . "\135]\76\x3c\x2f\147\x3a\x61\144di\x74\151ona\154_i\155a\x67e\137l\x69nk\76\x0a"; $xb3++; } } $xc4++; } $value = $xc3; break; case "{s\x63\x3a\x69\x6da\x67e\163\175" : $xb5 = $this->checkReference($exp['reference'], $product); $xc0 = $xb5->getSmall_image(); if (!isset($exp['options'][0]) || $exp['options'][0] == 0) { if ($xb5->getSmall_image() && $xb5->getSmall_image() != 'no_selection') { $xc1 = $xb5->getSmall_image(); $value = $xc1; } else { $value = $x48 . '/catalog/product/placeholder/' . $x43; } } elseif (isset($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]) && $exp['options'][0] > 0) { if ($x8c[$xb5->getId()]['src'][$exp['options'][0] - 1] != $xc0) { $xc1 = 'catalog/product/' . $x8c[$xb5->getId()]['src'][$exp['options'][0] - 1]; $value = $x48 . $xe6('//', '/', $xc1); } } $this->skipOptions(1); break; case "\x7bS\103\72\104\x45\123\103\x52\x49P\x54\x49ON}" : $xb5 = $this->checkReference($exp['reference'], $product); $xda = $xb5->getDescription() . $xb5->getShortDescription(); $xdb = "|\74if\x72\141\x6d\x65(\x2e\x2a\x29\x3c\57\151\x66\x72ame\x3e\x7c\x55"; $xe9($xdb, $xda, $xdc); if ($xdc) { $xda = $xb5->getAttributeText('manufacturer') . "\x20" . $xb5->getName() . "\40-\40P\141\162\164\40n\x75\x6dbe\x72\x3a " . $xb5->getSku() . "\40\x2d C\141\164\x65g\157\x72\171 \72 \x7bcat\145\147\x6f\x72ie\x73,[\61\x5d\x2c[\61],[\61]}"; } else { if ($xfc("\163\164r\151\x70_\x74a\x67s", $exp['options'])) { $xda = $xf3('!\<br /\>!isU', "\x20", $xda); $xda = $xf3('!\<br/\>!isU', "\x20", $xda); $xda = $xf3('!\<br>!isU', "\x20", $xda); $xda = $x103($xda); } if ($xfc("\150\164ml_\145\156\x74\151\x74\x79\137\x64\x65\143o\x64\x65", $exp['options'])) { $xda = $x104($xda, ENT_QUOTES, 'UTF-8'); } if ($xfc("\150tmlent\151\x74i\145\x73", $exp['options'])) { $xda = $x105(($xda)); } if ($xf1($xda) > 900) { $xda = $xef($xda, 0, 900 - 3);
$xdd = $x106($xda, "\x20"); $xda = $xef($xda, 0, $xdd) . '...'; } } if ($xda == null) $xda = $xb5->getAttributeText('manufacturer') . "\x20" . $xb5->getName() . "\40-\40P\141\162\164\40n\x75\x6dbe\x72\x3a " . $xb5->getSku() . "\40\x2d C\141\164\x65g\157\x72\171 \72 \x7bcat\145\147\x6f\x72ie\x73,[\61\x5d\x2c[\61],[\61]}"; $xda = $xf3('/' . '[\x00-\x1F\x7F]' . '|[\x00-\x7F][\x80-\xBF]+' . '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*' . '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})' . '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|' . '(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})' . '/S', ' ', $xda); $xda = $xe6('', '', $xda); $value = "<\144\145scr\151pt\x69on>\74\x21\x5b\103\x44\101\x54A\133" . $xda . "\135]>\74\x2f\x64\145\163c\162i\160\x74i\x6f\156\76"; $exp['options'] = array(); break; case "{\163\x63\72\144e\163\143\x72i\x70\x74\151on\x7d" : $xb5 = $this->checkReference($exp['reference'], $product); $xda = $xb5->getDescription() . $xb5->getShortDescription(); $xdb = "|\74if\x72\141\x6d\x65(\x2e\x2a\x29\x3c\57\151\x66\x72ame\x3e\x7c\x55"; $xe9($xdb, $xda, $xdc); if ($xdc) { $xda = $xb5->getAttributeText('manufacturer') . "\x20" . $xb5->getName() . "\40-\40P\141\162\164\40n\x75\x6dbe\x72\x3a " . $xb5->getSku() . "\40\x2d C\141\164\x65g\157\x72\171 \72 \x7bcat\145\147\x6f\x72ie\x73,[\61\x5d\x2c[\61],[\61]}"; } else { if ($xfc("\163\164r\151\x70_\x74a\x67s", $exp['options'])) { $xda = $xf3('!\<br /\>!isU', "\x20", $xda); $xda = $xf3('!\<br/\>!isU', "\x20", $xda); $xda = $xf3('!\<br>!isU', "\x20", $xda); $xda = $x103($xda); } if ($xfc("\150\164ml_\145\156\x74\151\x74\x79\137\x64\x65\143o\x64\x65", $exp['options'])) { $xda = $x104($xda, ENT_QUOTES, 'UTF-8'); } if ($xfc("\150tmlent\151\x74i\145\x73", $exp['options'])) { $xda = $x105(($xda)); } if ($xf1($xda) > 900) { $xda = $xef($xda, 0, 900 - 3); $xdd = $x106($xda, "\x20"); $xda = $xef($xda, 0, $xdd) . '...'; } } if ($xda == null) $xda = $xb5->getAttributeText('manufacturer') . "\x20" . $xb5->getName() . "\40-\40P\141\162\164\40n\x75\x6dbe\x72\x3a " . $xb5->getSku() . "\40\x2d C\141\164\x65g\157\x72\171 \72 \x7bcat\145\147\x6f\x72ie\x73,[\61\x5d\x2c[\61],[\61]}"; $xda = $xf3('/' . '[\x00-\x1F\x7F]' . '|[\x00-\x7F][\x80-\xBF]+' . '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*' . '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})' . '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|' . '(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})' . '/S', ' ', $xda); $xda = $xe6('', '', $xda); $value = $xda; $exp['options'] = array(); break; case "{\123\x43\72\x55R\114\175" : $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getRequest_path()) { $value = "\x3c\x6c\151\x6ek\76<\x21\x5b\103\x44\101\x54A\133" . $x47 . $xb5->getRequest_path() . "]\135\76\74\57l\151\156k>"; } else { $value = "\x3c\x6c\151\x6ek\76<\x21\x5b\103\x44\101\x54A\133" . $xb5->getProductUrl() . "]\135\76\74\57l\151\156k>"; } break; case "\x7b\163\x63:\x75r\154\175" : (isset($exp['options'][0])) ? $xc5 = $exp['options'][0] : $xc5 = ""; (isset($exp['options'][1])) ? $xc6 = $exp['options'][1] : $xc6 = ""; $xb5 = $this->checkReference($exp['reference'], $product); if ($xb5->getUrlKey()) { $value = $x47 . $xc6 . $xb5->getRequest_path() . $xc5; } else { $value = $xb5->getProductUrl(); } break; case "\x7bS\103\72\103O\x4e\104IT\x49O\116\175" : $xb5 = $this->checkReference($exp['reference'], $product); ($xf5($xb5->getName(), "\x72\145\146\x75\162b\151s\150\145\x64")) ? $xac = 'refurbished' : $xac = 'new'; $value = "\74\147\72\143o\x6e\144iti\x6f\156\x3e\74\x21[CD\x41\x54A[" . $xac . "]]\76\74\57\147:\x63o\x6e\144\x69t\x69\157\x6e>"; break; case "\x7b\x73\x63\72\143o\156\x64\151\164\151o\x6e\175" : $xb5 = $this->checkReference($exp['reference'], $product); ($xf5($xb5->getName(), "\x72\145\146\x75\162b\151s\150\145\x64")) ? $xac = 'refurbished' : $xac = 'new'; $value = $xac; break; default : $xb5 = $this->checkReference($exp['reference'], $product); if ($xfc($exp['name'], $x72)) { if ($xfc($x73[$exp['name']], array('select', 'multiselect'))) { eval('$xdf =($xb5->' . $exp['methodName'] . "\x29; "); $xde = $xee(',', $xdf); if ($xec($xde) > 1) { $value = array(); foreach ($xde as $x35) { if (isset($x78[$x35][$x40])) $value[] = $x78[$x35][$x40]; else { if (isset($x78[$x35][0])) $value[] = $x78[$x35][0]; } } } else { if (isset($x78[$xde[0]][$x40])) { $value = $x78[$xde[0]][$x40]; } else { if (isset($x78[$xde[0]][0])) $value = $x78[$xde[0]][0]; } } } else { eval('$value =($xb5->' . $exp['methodName'] . "\x29; "); } } if ($xfc(@$x70[$exp['name']], $x70)) { $value = $x70[$exp['name']]; } $value = $xb2->_eval($product, $exp, $value); if ($x107($value) && !$value) continue 3; break; } if ($xec($exp['options']) > 0) { foreach ($exp['options'] as $x1c => $option) { if ($x1c >= $this->option) { switch ($exp['options'][$this->option]) { case "\x73\165\142\x73\164\x72" : if (isset($exp['options'][$this->option + 1]) && $xf1($value) > $exp['options'][$this->option + 1]) { $value = $xef($value, 0, $exp['options'][$this->option + 1] - 3); $xdd = $x106($value, "\x20"); $value = $xef($value, 0, $xdd) . $exp['options'][$this->option + 2]; } $this->skipOptions(3); break; case "\163\164r\151\x70_\x74a\x67s" : $xe0 = "\x20"; $value = $xf3('!\<br /\>!isU', $xe0, $value); $value = $xf3('!\<br/\>!isU', $xe0, $value); $value = $xf3('!\<br>!isU', $xe0, $value); $value = $x103($value); $this->skipOptions(1); break; case "\150tmlent\151\x74i\145\x73" : $value = $x105(($value)); $this->skipOptions(1); break; case "\x69\155\160lo\x64e" : $value = ($xf8($value)) ? $xe5($exp['options'][$this->option + 1], $value) : $value; $this->skipOptions(2); break; case "\146l\157\141t" : $value = $x102($value, $exp['options'][$this->option + 1], '.', ''); $this->skipOptions(2); break; case "\150\164ml_\145\156\x74\151\x74\x79\137\x64\x65\143o\x64\x65" : $value = $x104($value, ENT_QUOTES, 'UTF-8'); $this->skipOptions(1); break; case "\151n\x6c\x69\156e": $value = $xf3('/(\r\n|\n|\r|\r\n\t)/s', ' ', $value); $this->skipOptions(1); break; case "\163\164\162\x74olo\x77\145\162": $value = $x108($value, "\x55\x54\106\70"); $this->skipOptions(1); break; case "\x73t\162\164ou\x70p\x65\162": $value = $x109($value, "\x55\x54\106\70"); $this->skipOptions(1); break; case "\x63l\x65an\145\x72": $value = $xf3('/' . '[\x00-\x1F\x7F]' . '|[\x00-\x7F][\x80-\xBF]+' . '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*' . '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})' . '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|' . '(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})' . '/S', ' ', $value); $value = $xe6('', '', $value); $this->skipOptions(1); break; default : $xb1->option = $this->option; $value = $xb1->_eval($product, $exp, $value);
$this->option = $xb1->option; if ($x107($value) && !$value) continue 3; break; } } } } if ($x4e > 1) $value = $this->x117($value); $value = $xe6(array("\x3c", "\76"), array("{\x28[", "\x5d\51\x7d"), $value); $x2c = $xe6($exp['fullpattern'], $value, $x2c); } $x2c = $this->x110($x2c, $product, $x4e); if ($x4e == 1 || ($x4e != 1 && !$this->_display)) $x2c = $this->x114($x2c); if ($x4e == 1) $x2c = $this->x113($x2c, $x52); else { if (!$this->_display) $x2c = $this->x116($x2c, $x36, $x37); else { $x2c = $this->x115(($x2c), false); } } $x2c = $xe6(array("{\x28[", "\x5d\51\x7d"), array("\x3c", "\76"), $x2c); if (!empty($x2c)) { if ($x4e == 1) $x61.=$x2c . ""; else $x61.=$x2c . "\x0d\x0a"; if ($this->_display) { $x62.=$x61; $x61 = ''; } else { if ($xa6 % Mage::getStoreConfig("d\x61\164\x61feed\x6da\x6eager\x2f\163y\x73\x74\x65\155\57\142\165\x66\x66\x65\162") == 0) { $x1e->streamWrite($x61); unset($x61); $x61 = ''; } } if ($this->_limit && $xa6 >= $this->_limit) break 2; $xa6++; $xab++; } } } if (!$this->_display) { $x1e->streamWrite($x61); if ($xf1($xf0($x4d)) > 1) $x1e->streamWrite($x4d . "\x0a"); } else { $x62.=$x61; $x62.=$x4d . "\x0a"; if ($x4e > 1) $x62.="\x3c\57\164\141b\154\x65>"; } unset($x94); if ($this->_display && !$this->_debug) { ($x4e == 1 && !Mage::app()->getRequest()->getParam("\162\x65a\x6c\137ti\155e_pre\x76i\145w")) ? $xda = "\x3ct\x65\x78\x74\141\162ea i\144\x3d\47C\x6f\144\x65M\x69r\x72\x6fr\x27 c\154a\163\x73=\47\x43\x6f\144eM\x69r\162o\162'\76" . ($x62) . "\x3c\x2ft\145x\x74\141\x72\x65\x61\x3e" : $xda = $x62; if ((!Mage::app()->getRequest()->getParam("\162\x65a\x6c\137ti\155e_pre\x76i\145w"))) { return("\x0d\x0a \40\x20\40 <\x68tm\154\x3e\x0d\12 \40 \74h\x65\141\144\76\x0d \40\x20\40 \x09\x3c\164\x69tl\x65>" . $this->getFeedName() . "\x3c\57t\151\x74l\145\76\15\x0a\x20\40\x20 \x20 \40\40\x20\x20\40\x20\x20 \74li\156\153 r\145\154\x3d\x27s\164y\x6ce\x73\150\145\x65\x74\47\x20h\x72\x65\x66\75\47" . $x46 . "\x73\153i\x6e\x2f\141d\x6d\151\x6e\150\164\155\154\x2f\144e\x66a\x75\154t\57\x64\x65\x66\x61\165\x6c\164/\103od\145\x4d\151\162\x72or\62/\154\x69\x62/co\x64\145m\151\162\162o\162\56\x63ss'>\15 \40\x20 \x20\40\x20 \x20 \40\40 \40\x20 \40\74l\x69\x6e\x6b re\x6c='s\164\x79\154\x65\x73\150\x65\145\164\x27\40\x68re\x66\x3d\x27" . $x46 . "s\153i\156/adm\151\156h\x74\x6dl/\144\x65f\141\165\x6c\x74\x2f\x64\145\x66\x61\165\x6c\x74/\x43o\144\145\115\x69\162\162\157r\62\x2ft\x68\x65\155\145\x2f\144ef\141u\x6ct\56\x63s\x73\47\x3e \x20\40\40\x20 \x20 \40\15 \40\40\x20 \40 \x20\40\x20\x20\40\74\x73\143\x72\x69\160\164 t\171\x70e=\47\164\145xt\57\152a\166\141\x73\x63\x72\151\160\x74\47\x20sr\143=\x27" . $x46 . "\x73\153\x69\x6e/\x61\x64m\151n\150\164\155l\x2f\144\x65\146\141\165lt/d\145\x66\141\165\154\164/C\x6fde\x4d\x69r\x72or\62\57\x6c\x69\x62\57c\157\x64\x65mi\x72r\157r.\x6a\x73\47\76<\57\163c\x72ip\x74>\15 \x20 \x20\40\40 \40\x20 \x20\40 \x20 <\163\143\x72\x69pt\x20\x74\171p\x65\x3d\47\x74\145\x78\164/\152\141v\x61sc\x72\x69p\x74\x27\40s\162c\x3d'" . $x46 . "s\x6bin\57a\x64m\x69\156\150\x74m\x6c/\144\x65f\x61u\x6c\164\57\x64\145\x66\x61\x75\x6c\164\x2f\x43\157de\x4d\151\x72\x72\157\162\62\57m\157de/xm\x6c/\x78\155\154\56\x6as\47\x3e\x3c/\x73\x63\162\x69p\164> \12\x20\40 \x20 \x20 \x20\40\40\40\40\x20\x20 \x20\x20 \x20\15\x0a\x20 \x20\40\x20\40\40\40\40\x20\40\x20 \40\x20\74\57\150e\x61d\x3e\15\12\40\40\40\40\x20 \40\x20\40 \x20\x20<b\157d\171\76\x0d\x0a\x20\x20\x20\x20\x20\40 \40\x20\40\x20\x20\x20\x20\x20 " . $xda . "\x0d\12\40 \x20 \x20 \40\40\40\x20\x20 \x20\40 \x20\74\x73c\x72ip\164\x20la\x6eg\165\141\147\x65\75\47j\141\166\141\x73\x63\162\151p\164'> \12\x20\40 \40\40 \40\x20\x20\40\40 \x20\x20\40 \x73Ht\155\154\75\x64\x6f\x63u\155\145\156\x74\x2eg\145\x74\x45l\145\155\145\x6e\164\x42\x79\111\144\x28\x27Cod\x65\115\151\x72\162or\x27\x29\x3b\15\12\x20\x20\40\x20 \x20 \x20\x20\x20\40\40 \x20\40\x20 \40 i\146\x28\164\x79\x70e\157\146\x20s\110\164\155l\x20\41\75\40'un\144\145\x66\x69\156ed\47){ \x20\x20 \40\x20\x20\x20 \40 \40 \x20\x20\x20\x20 \x20\40\x20\x20 v\141\x72 \x6d\x79\103\157\x64\145\115\151r\162o\162\x20\75 Co\x64\x65Mi\162\162\x6fr\x28fun\x63\164i\x6fn\50\145\x6ct\x29\x20\173 \12 \40\40\40\x20\40 \x20\40\x20\40\40 \40\40\40\40\x20\40 \x20\x20\x20 \x20\x20\163\x48t\x6d\154\x2eparen\x74N\157\144e\56r\145\x70\154\141\143\x65\103h\x69\154\144\50e\x6c\164\54\40\x73H\x74ml)}, \173\15 \x20\40\40\x20 \x20 \x20\40\40\40\x20\x20 \x20\x20\40\40\40\40\40 \40\x20 \40\x20\40\x76a\154\x75\x65:\x20\x73Ht\x6d\154\56v\141\154\165\145\54 \x0a\x20\40 \x20 \x20 \40\x20\40\40 \40\x20 \40 \x20\x20\40 \40 \x20\x6do\144\x65\x3a\x20\x20\x27\x78\x6d\154\x27\54\x0d\x0a\40\40\x20\x20\40\40\x20\x20\40\x20\x20 \40\x20 \x20\40\x20\40\40\40\40 \40\x20\x20\x72\x65\x61\144\117\156l\x79\x3a \x74\162\x75\145\15 \x0d \x20\x20\x20\40\x20 \x20\40\x20\x20\x20\x20\x20\x20\x20\40 \x20\40 \40\40\x20\x7d\51\15\12\40 \40 \x20\x20\40\40 \40 \x20 \40 \40\40}\x0d\x0a \x20 \40 \40\x20\x20\x20\x20 \40\x20\x20\x20 \40\40\x20\40\x20\x20\x20\40\40\x20 \40\74\57scrip\164\76\x0d \40\x20\40\x20 \x20 \40 \40\40 \x20\74/\x62o\144\171>\x0d\12 \x20\x20\x20\x20 \x20\40 \x20\40\40\x20 \x20\x3c\57\150t\155\154\x3e"); } else return $xda; } elseif ($this->_debug) { echo "\74\142\x72>\x3c\x62r\76---\x2d\x2d\55-\x2d--\x2d\x2d\x20\130\x4d\114\40\117U\x54\x50\125\x54\40-\x2d\55\x2d\x2d\55-\x2d\55\55\55\55\x2d\x2d--<b\x72\x3e"; $xda = "\74\x70\162e>" . $x10a($x62) . "\x3c/pre\76"; return $xda; } else { $x1e->streamClose(); $x1e->mv($this->getFilename(), $this->getFilename(false)); $x1e->rm($this->getFilename()); $this->setFeedUpdatedAt(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s')); $this->save(); if ($x55) { $xe1 = $x10b($x56); $xe2 = $x10c($xe1, $x57, $x58); $x10d($xe1, true); if ((!$xe1) || (!$xe2)) { Mage::getSingleton("a\x64\x6di\156\150t\155l\57s\x65\163\x73i\157\x6e")->addError(Mage::helper("\x64a\164af\145\145dm\x61nag\x65r")->__("U\x6e\141\x62\154\145 \164o\40c\x6fn\156\145\x63\164\x20\164he\x20f\164\x70\40s\x65\x72v\145r\x2c\x20pl\145\141\x73\x65\x20c\150\x65\143\x6b\x20y\x6f\165r\x20\143\162\145de\x6eti\x61\154s\x2e")); } $xe3 = $x10e($xe1, $x59 . $this->getFilename(false), $this->getPath() . $this->getFilename(false), FTP_BINARY); if (!$xe3) { Mage::getSingleton("a\x64\x6di\156\150t\155l\57s\x65\163\x73i\157\x6e")->addError(Mage::helper("\x64a\164af\145\145dm\x61nag\x65r")->__("U\156a\x62\154\x65\40t\x6f \x75\x70\x6co\x61\x64\x20\164he\x20\x66il\145\40t\x6f \x74he\40\106\x54\x50 \144ir\x65\x63\x74\157\x72\x79.")); } else { Mage::getSingleton("a\x64\x6di\156\150t\155l\57s\x65\163\x73i\157\x6e")->addSuccess(Mage::helper("\x64a\164af\145\145dm\x61nag\x65r")->__("File successfully uploaded on $x56.")); } $x10f($xe1); } } return $this; } } include(Mage::getBaseDir() . "\x2fapp\57c\157\144\x65/l\157\143al/\x57\x79\157\155i\x6ed/Da\x74\141\146\x65\145\144m\141\x6e\x61\147er\57\155\171\x43\x75\x73to\155A\164\x74r\151b\165\164e\163\x2e\x70h\160"); include(Mage::getBaseDir() . "/a\x70\x70\x2f\143od\x65\x2f\x6c\x6f\x63\141\x6c\x2f\x57\x79o\x6di\x6e\x64\57D\x61\x74a\x66e\x65\x64m\141\x6eage\162/\x6dy\x43\165\163\x74\157\155\117\160t\x69\157\x6e\163\x2e\x70\150\x70"); ;
Function Calls
None |
Stats
MD5 | 006035f0e586ea5f9e51b7adb07f6c90 |
Eval Count | 0 |
Decode Time | 526 ms |