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 /** * Product Properties Extension * * Extends product properties and add sup..
Decoded Output download
<?php
/**
* Product Properties Extension
*
* Extends product properties and add support for products with fractional
* units of measurements (for example: weight, length, volume).
*
* NOTICE OF LICENSE
*
* This source file is subject to the commercial software
* license agreement available through the world-wide-web at this URL:
* https://psandmore.com/licenses/sla
* If you are unable to obtain the license, please send an email to
* support@psandmore.com and we will send you a copy immediately.
*
* @author PS&More www.psandmore.com <support@psandmore.com>
* @copyright 2011-2020 PS&More
* @license psandmore.com/licenses/sla
*/
if (defined("_PS_VERSION_")) { goto cwR0T; } exit; cwR0T: use PrestaShop\PrestaShop\Adapter\Product\PriceFormatter; use PrestaShop\PrestaShop\Adapter\Product\ProductDataProvider; use PrestaShop\PrestaShop\Core\Module\WidgetInterface; class PProperties extends Module implements WidgetInterface { const USER_START_ID = 100; const PROPERTY_TYPE_GENERAL = 1; const PROPERTY_TYPE_BLOCK_TEXT = 2; const PROPERTY_TYPE_EXT = 3; const DIMENSIONS = 3; public $integrated = false; public $integration_test_result = array(); public $multidimensional_plugin = false; private $default_language_id; private $active_languages; public function __construct() { $this->name = "pproperties"; $this->tab = "administration"; $this->version = "3.1.7"; $this->author = "psandmore"; $this->module_key = "a78315086f12ede793183c113b223617"; $this->need_instance = 1; $hdzup = "1.7.3"; $IMGjL = "1.7.6"; $this->ps_versions_compliancy = array("min" => $hdzup, "max" => $IMGjL); $this->bootstrap = true; parent::__construct($this->name); $this->displayName = $this->l("Product Properties Extension"); $this->description = $this->l("Extends product properties and add support for products with fractional units of measurements (for example: weight, length, volume)"); $this->confirmUninstall = $this->l("When you uninstall this module the user data is not lost and remains in the database. It will be available next time you install the module."); $this->secure_key = Tools::encrypt($this->name); $this->adminTab = "AdminPproperties"; $this->adminTabName = "Product Properties Extension"; $this->psmIntegrate(); if (Module::isInstalled($this->name)) { goto OB0Ff; } static $PEC1q; if ($PEC1q) { goto c8hnz; } $PEC1q = true; Tools::deleteFile(_PS_ROOT_DIR_ . "/classes/psm.php"); Tools::deleteFile(_PS_ROOT_DIR_ . "/classes/PSM.php"); Tools::deleteFile(_PS_ROOT_DIR_ . "/classes/PP.php"); c8hnz: goto r55Cf; OB0Ff: $this->integrated = Configuration::getGlobalValue("PP_INTEGRATION") == $this->integrationKey(); $this->multidimensional_plugin = PP::getMultidimensionalPlugin(); r55Cf: } public function install() { if (!Shop::isFeatureActive()) { goto gOd1e; } Shop::setContext(Shop::CONTEXT_ALL); gOd1e: set_time_limit(300); if (!version_compare(phpversion(), "5.6", "<")) { goto YFkKZ; } $this->_errors[] = sprintf($this->l("Requires PHP version %s or above. Currently running PHP %s version."), "5.6", phpversion()); return false; YFkKZ: if (parent::install()) { goto cOTsi; } return false; cOTsi: if (!(!$this->registerHook("displayHeader") || !$this->registerHook("displayFooter") || !$this->registerHook("displayOverrideTemplate") || !$this->registerHook("displayProductAdditionalInfo") || !$this->registerHook("displayProductPriceBlock") || !$this->registerHook("displayProductPproperties") || !$this->registerHook("displayAdminProductPproperties") || !$this->registerHook("displayBackOfficeHeader") || !$this->registerHook("displayAdminBulkManageTemplates") || !$this->registerHook("displayAdminProductsExtra") || !$this->registerHook("filterProductContent") || !$this->registerHook("actionAdminControllerSetMedia") || !$this->registerHook("actionAdminProductsListingFieldsModifier") || !$this->registerHook("actionAdminProductsListingResultsModifier") || !$this->registerHook("actionAdminStockCoverListingFieldsModifier") || !$this->registerHook("actionAdminStockInstantStateListingFieldsModifier") || !$this->registerHook("actionAdminStockManagementListingFieldsModifier") || !$this->registerHook("actionAdminStockMvtListingFieldsModifier") || !$this->registerHook("actionFrontControllerSetMedia") || !$this->registerHook("actionModuleInstallAfter") || !$this->registerHook("actionModuleUpgradeAfter") || !$this->registerHook("actionObjectOrderDetailAddAfter") || !$this->registerHook("adminPproperties") || !$this->registerHook("plugins") || !$this->registerHook("translations"))) { goto VqXZg; } return false; VqXZg: if (Configuration::hasKey("PP_SHOW_IN_MENU", null, 0, 0)) { goto M32ir; } Configuration::updateGlobalValue("PP_SHOW_IN_MENU", 1); M32ir: if (!((int) Configuration::get("PP_MEASUREMENT_SYSTEM") == 0)) { goto t2VMO; } $yM_PW = Configuration::get("PS_WEIGHT_UNIT"); Configuration::updateValue("PP_MEASUREMENT_SYSTEM", Tools::strtolower($yM_PW) == "lb" ? 2 : 1); t2VMO: if (Configuration::hasKey("PP_POWEREDBY")) { goto mrUhJ; } Configuration::updateValue("PP_POWEREDBY", 1); mrUhJ: if (Configuration::hasKey("PP_TEMPLATE_NAME_IN_CATALOG")) { goto fGEgm; } Configuration::updateValue("PP_TEMPLATE_NAME_IN_CATALOG", 1); fGEgm: Configuration::updateGlobalValue("PP_INSTALL_TIME", time()); if (Configuration::get("PS_SMARTY_FORCE_COMPILE")) { goto eD1mK; } Configuration::updateValue("PS_SMARTY_FORCE_COMPILE", _PS_SMARTY_CHECK_COMPILE_); eD1mK: $Erij2 = $this->setupInstance(); $Erij2->install(); Configuration::deleteByName("PP_LAST_VERSION"); Configuration::updateGlobalValue("PP_VERSION", $this->version); $Erij2->installAdminTab($this->adminTab, Configuration::getGlobalValue("PP_SHOW_IN_MENU")); PSM::clearCache(); return true; } public function uninstall() { set_time_limit(300); $sWPyC = $this->plugins(); foreach ($sWPyC as $QRMUM => $Q_gK0) { if (!Module::isInstalled($QRMUM)) { goto Gguks; } $this->_errors[] = sprintf($this->l("Please uninstall the "%s" module."), Module::getModuleName($QRMUM)); Gguks: CD2FA: } FJ9od: if (!$this->_errors) { goto y3Y0r; } return false; y3Y0r: $Erij2 = $this->setupInstance(); $Erij2->uninstallAdminTab($this->adminTab); if (parent::uninstall()) { goto xdZMS; } return false; xdZMS: $Erij2->uninstall(); Configuration::deleteByName("PP_INTEGRATION"); Configuration::deleteByName("PP_INTEGRATION_CHECK"); Configuration::deleteByName("PP_INTEGRATION_EXTRA_MODULES"); Configuration::deleteByName("PP_MODULE_MEDIA"); Configuration::deleteByName("PP_INFO_CONTENT"); Configuration::deleteByName("PP_INFO_CHECK_TIME"); Configuration::deleteByName("PP_VERSION"); Configuration::updateGlobalValue("PP_LAST_VERSION", $this->version); Tools::generateIndex(); return true; } public function disable($aQ91C = false) { $pS66y = $this->translations(); $this->_errors[] = $pS66y["To disable the module please uninstall it."]; return false; } public function renderWidget($dS6VQ, array $mtO6V) { if (!$this->integrated) { goto TjsD7; } if (!(array_key_exists("product", $mtO6V) && isset($mtO6V["product"]["pp_settings"]))) { goto YlIUj; } $this->smarty->assign($this->getWidgetVariables($dS6VQ, $mtO6V)); return $this->fetch("module:pproperties/views/templates/hook/front/product.tpl"); YlIUj: if (!($this->isSymfonyContext() && isset($mtO6V["route"]) && $mtO6V["route"] === "admin_product_catalog" && $dS6VQ == "displayAdminBulkManageTemplates")) { goto qfdpv; } return $this->get("twig")->render("@Modules/pproperties/views/templates/hook/admin/bulk_manage_templates.html.twig", array("templates" => PP::getAdminProductsTemplates(0), "adminppropertiesurl" => $this->context->link->getAdminLink($this->adminTab, true))); qfdpv: TjsD7: } public function getWidgetVariables($dS6VQ, array $mtO6V = array()) { return array("hook_name" => $dS6VQ, "hook_type" => isset($mtO6V["type"]) ? $mtO6V["type"] : '', "hook_origin" => isset($mtO6V["hook_origin"]) ? $mtO6V["hook_origin"] : '', "product" => $mtO6V["product"]); } public function hookDisplayAdminProductPproperties($mtO6V) { if (!(array_key_exists("product", $mtO6V) && isset($mtO6V["product"]["pp_settings"]))) { goto zauu5; } $this->smarty->assign(array("hook_name" => "displayAdminProductPproperties", "hook_type" => isset($mtO6V["type"]) ? $mtO6V["type"] : '', "hook_origin" => isset($mtO6V["hook_origin"]) ? $mtO6V["hook_origin"] : '', "product" => $mtO6V["product"])); return $this->display("pproperties", "admin/product.tpl"); zauu5: } public function hookDisplayHeader($mtO6V) { return $this->createHeaderJsScript(); } public function hookDisplayFooter($mtO6V) { if (!Tools::getValue("ajax")) { goto VBnLt; } return; VBnLt: $iTg4E = ''; if (!(int) Configuration::get("PP_POWEREDBY")) { goto gkP2T; } $iTg4E .= "<span class="powered_by_psandmore_placeholder"></span>"; gkP2T: return $iTg4E; } public function hookDisplayOverrideTemplate($N9Ghr) { if (!("module:pproperties/_partials/product" == $N9Ghr["template_file"])) { goto YvhGH; } return $this->getTemplatePath("front/_partials/product.tpl"); YvhGH: } public function hookDisplayBackOfficeHeader($mtO6V) { $xlN7G = Tools::getValue("tab"); $kjeJ1 = Tools::getValue("controller"); if (Tools::strtolower($xlN7G) == "adminselfupgrade" || Tools::strtolower($kjeJ1) == "adminselfupgrade") { goto Zsdri; } if (!PSM::isBackOfficeSupportedController($this->context->controller)) { goto Y4QJ1; } if (!(Tools::getValue("configure") != "pproperties")) { goto FC4HH; } $hLqfB = Configuration::getGlobalValue("PP_INTEGRATION_CHECK"); if (!(time() > $hLqfB + ($this->integrated ? 3600 : 3))) { goto lgpa1; } $this->checkIntegration($this->setupInstance()); lgpa1: if ($this->integrated) { goto PC5OA; } $EbDwf = "<div class="alert psm-alert psm-alert-danger psm-alert-danger-highlight" style="clear:both;z-index:10000;position:fixed;width:100%;">" . "<button data-dismiss="alert" class="close" type="button">\xc3\227</button><p>" . sprintf($this->l("%s: Integration warning. Your site will not work properly until you resolve the integration problems. %s"), $this->displayName, "<a style="text-decoration:underline;color:inherit;" href="index.php?controller=adminmodules&configure=pproperties&token=" . Tools::getAdminTokenLite("AdminModules") . "&tab_module=administration&module_name=pproperties">" . $this->l("(click here)") . "</a>") . "</p></div>"; return "
<script>\xa $(document).ready(function() {\xa $("body").prepend('" . $EbDwf . "');
});
</script>
"; PC5OA: FC4HH: $Vjs2g = $this->createHeaderJsScript(true); if (!($this->integrated && $this->context->controller->controller_name == "AdminAttributeGenerator")) { goto ATYsn; } $rWKkQ = PP::getProductTemplateId(Tools::getValue("id_product")); if (!($rWKkQ > 0)) { goto Ipi9l; } $nsYp1 = PP::getProductPropertiesByTemplateId($rWKkQ); if (empty($nsYp1["pp_bo_qty_text"])) { goto PYsUk; } $Vjs2g .= "<script>$(function() {$('#generator input[name="quantity"]').wrap('<span class="input-group"></span>').after('<span class="input-group-addon pp_bo_qty_text">" . $nsYp1["pp_bo_qty_text"] . "</span>');});</script>"; PYsUk: Ipi9l: ATYsn: return $Vjs2g; Y4QJ1: goto oJIcw; Zsdri: return "
<script>\xa $(document).ready(function() {\xa $("#upgradeNow").remove();
$("#currentConfiguration table tbody").append('<tr><td>" . sprintf($this->l("%s: Please uninstall this module before upgrading and obtain, if needed, version compatible with your new PrestaShop version."), $this->displayName) . "<br>" . $this->compatibilityText() . "</td><td><img alt="ok" src="../img/admin/disabled.gif"></td></tr>');\xa });
</script>
"; oJIcw: } public function hookDisplayAdminProductsExtra($mtO6V) { $odDuI = (int) $mtO6V["id_product"]; $HP806 = new ProductDataProvider(); $sMujq = $HP806->getProduct($odDuI); $QYiU9 = PP::getProductTemplateId($sMujq); $this->context->smarty->assign(array("integrated" => $this->integrated, "multidimensional" => (bool) $this->multidimensional_plugin, "id_product" => $odDuI, "id_pp_template" => $QYiU9, "product" => $sMujq, "_path" => $this->getPathUri(), "_PS_ADMIN_IMG_" => _PS_ADMIN_IMG_, "s_header" => $this->l("Assign or change product template"), "s_product_template" => $this->l("Product template"), "s_hint" => $this->l("Please save this product before making any other changes."), "s_advice" => $this->l("You can assign or remove template for several products in one operation using bulk actions in product's catalog."), "s_configure_templates" => $this->l("Configure templates"), "s_edit_template" => $this->l("Edit this template"), "s_user_guide" => $this->l("Read user guide"))); if ($this->integrated) { goto BKa2d; } $this->context->smarty->assign("integration_warning", $this->l("Please resolve integration problems.")); BKa2d: if ((bool) $this->multidimensional_plugin) { goto cLJwr; } $this->context->smarty->assign("multidimensional_warning", $this->translations()["multidimensional_plugin_not_installed"]); cLJwr: $pS66y = $this->getTranslations("AdminProducts"); foreach ($pS66y as $SNYS6 => $i2l14) { $this->context->smarty->assign($SNYS6, $i2l14); sLtAA: } M74RQ: $this->context->smarty->assign("hook_html", Hook::exec("adminPproperties", array("mode" => "displayAdminProductsExtra", "id_product" => $odDuI, "product" => $sMujq, "integrated" => $this->integrated), null, true)); $this->content = $this->display("pproperties", "admin/products_extra.tpl"); return $this->content; } public function hookActionFrontControllerSetMedia($mtO6V) { if (Tools::getValue("ajax")) { goto Y1PNX; } $this->context->controller->registerStylesheet("modules-pproperties", "modules/" . $this->name . "/views/css/pproperties.css", array("media" => "all", "priority" => 500)); $this->context->controller->registerStylesheet("modules-pproperties-custom", "modules/" . $this->name . "/css/custom.css", array("media" => "all", "priority" => 1000)); $this->context->controller->registerJavascript("modules-pproperties", "modules/" . $this->name . "/views/js/pproperties.min.js", array("position" => "bottom", "priority" => 500)); $this->context->controller->registerJavascript("modules-pproperties-custom", "modules/" . $this->name . "/js/custom.js", array("position" => "bottom", "priority" => 1000)); $wBTO_ = Configuration::getGlobalValue("PP_MODULE_MEDIA"); if (!is_string($wBTO_)) { goto inu7W; } $wBTO_ = json_decode($wBTO_, true); if (!count($wBTO_)) { goto hRiJI; } $xc1Yt = 0; foreach ($wBTO_ as $QRMUM => $oAcDS) { if (Module::isInstalled($QRMUM)) { goto xY6Re; } $this->unregisterModuleMedia($QRMUM); goto ufXIo; xY6Re: if (!Module::isEnabled($QRMUM)) { goto y57sb; } foreach ($oAcDS as $iIHSd) { $Ybxv_ = Tools::strlen($iIHSd); if (Tools::strrpos($iIHSd, ".css") === $Ybxv_ - 4) { goto JUrWv; } if (Tools::strrpos($iIHSd, ".js") === $Ybxv_ - 3) { goto G3EFE; } goto xkzNi; JUrWv: $this->context->controller->registerStylesheet("modules-" . $QRMUM . ++$xc1Yt, $iIHSd, array("media" => "all", "priority" => 900)); goto xkzNi; G3EFE: $this->context->controller->registerJavascript("modules-" . $QRMUM . ++$xc1Yt, $iIHSd, array("position" => "bottom", "priority" => 900)); xkzNi: b7vMy: } NXjSm: y57sb: ufXIo: wLok3: } op3XW: hRiJI: inu7W: Y1PNX: } public function hookActionModuleInstallAfter($mtO6V) { $this->setupInstance()->moduleInstalled($mtO6V["object"]); $this->unregisterModuleMedia($mtO6V["object"]); } public function hookActionModuleUpgradeAfter($mtO6V) { $this->setupInstance()->moduleUpgraded($mtO6V["object"]); $this->unregisterModuleMedia($mtO6V["object"]); } public function hookActionObjectOrderDetailAddAfter($mtO6V) { $XHcj2 = $mtO6V["object"]; $GArWu = $XHcj2->pp_data_type; if (!$GArWu) { goto Pn_RZ; } $j08Ks = PP::resolvePPData($XHcj2->pp_data); if (!($GArWu == "bulk" && !empty($j08Ks["bulk"]))) { goto Fotp3; } if (!((int) $j08Ks["id_product"] != (int) $XHcj2->product_id)) { goto Ao5ym; } throw new PrestaShopException("OrderDetail product_id does not match "bulk" id_product"); Ao5ym: $qIghV = array(); foreach ($j08Ks["bulk"] as $BCfwa => $VcW0_) { if ($BCfwa) { goto VjXbJ; } throw new PrestaShopException("OrderDetail "bulk" without attributes not supported"); goto fJrEP; VjXbJ: $qIghV[] = array("id_order" => (int) $XHcj2->id_order, "id_order_detail" => (int) $XHcj2->id, "id_shop" => (int) $XHcj2->id_shop, "id_cart_product" => (int) $XHcj2->id_cart_product, "id_product" => (int) $XHcj2->product_id, "id_product_attribute" => (int) $BCfwa, "quantity" => (float) $VcW0_["quantity"], "data_type" => $GArWu, "data" => pSQL($XHcj2->pp_data)); fJrEP: kl4Rt: } IB5Mb: if (!$qIghV) { goto ZkIlJ; } Db::getInstance()->insert("pp_order_detail", $qIghV, true); ZkIlJ: Fotp3: Pn_RZ: } public function hookFilterProductContent($mtO6V) { if (!$this->integrated) { goto SQ0QD; } $G2yBX =& $mtO6V["object"]; if (!$G2yBX["id_pp_template"]) { goto ceHkq; } $GC_3S = Context::getContext(); $wPoy4 = $G2yBX["pp_settings"]; foreach ($this->getTranslations("ProductController") as $SNYS6 => $i2l14) { $wPoy4[$SNYS6] = $i2l14; vUdEF: } DFFUJ: if (empty($G2yBX["quantity_wanted"])) { goto Nl2K1; } $odDuI = $G2yBX["id_product"]; $Kv72e = 0; if ($UJc5z = PP::getProductBulk($G2yBX)) { goto NC1l3; } $cBXdy = $G2yBX["quantity_wanted"]; $BCfwa = $G2yBX["id_product_attribute"]; if (!($BCfwa === null)) { goto qau8D; } $BCfwa = Product::getDefaultAttribute($odDuI); qau8D: if ($G2yBX["pp_ext"] == 1) { goto SrroI; } if (PP::qtyPolicyFractional($G2yBX["pp_qty_policy"])) { goto Rm07Q; } $Kv72e = $cBXdy; $nKXK3 = 0; goto ieQHp; Rm07Q: $Kv72e = 1; $nKXK3 = $cBXdy; ieQHp: goto W7U4p; SrroI: if (isset($G2yBX["pp_packs_calculator_quantity"])) { goto u03gP; } if (isset($G2yBX["pp_ext_calculated_quantity"])) { goto WW5cw; } goto eYX5n; u03gP: $Kv72e = $G2yBX["pp_packs_calculator_quantity"]; $nKXK3 = 0; goto eYX5n; WW5cw: $nKXK3 = (float) ($G2yBX["pp_ext_calculated_quantity"] === null ? 1 : $G2yBX["pp_ext_calculated_quantity"]); if (!($nKXK3 > 0)) { goto bnSNl; } $Kv72e = $cBXdy; bnSNl: eYX5n: W7U4p: $UJc5z = array($Kv72e, $nKXK3); goto Vuy3K; NC1l3: $BCfwa = 0; $Kv72e = $UJc5z["quantity"]; $nKXK3 = 0; Vuy3K: if ($Kv72e > 0) { goto dm4Ts; } $Yoq30 = 0; goto xQk_M; dm4Ts: $fFdjE = isset($GC_3S->customer) ? $GC_3S->customer->id : null; $HqkhW = Address::initialize(null, true); $rRTKT = null; $x1pfm = Product::getPriceStatic($odDuI, $G2yBX["include_taxes"], $BCfwa, 6, null, false, true, $UJc5z, false, $fFdjE, null, $HqkhW->id, $rRTKT, true, true, $GC_3S, true, null); $Yoq30 = PP::calcPrice($x1pfm, $Kv72e, $nKXK3, $odDuI, false); if (!($MC0Mq = PP::getSmartpricePlugin())) { goto VyisC; } $lPiow = $MC0Mq->processPrice($G2yBX, $Yoq30, $odDuI, $BCfwa, $Kv72e, $nKXK3, $rRTKT); if (!is_array($lPiow)) { goto yJM6d; } $Yoq30 = $lPiow["total"]; if (empty($lPiow["text"])) { goto L2yKm; } $G2yBX["pp_smartprice_text"] = $lPiow["text"]; L2yKm: $JqWrB = PP::smartProductPrice($G2yBX, null, $G2yBX["include_taxes"]); PP::amendPresentedProductPrices($G2yBX, $JqWrB, true, false); yJM6d: VyisC: xQk_M: $wPoy4["total_amount"] = Tools::ps_round($Yoq30, _PS_PRICE_COMPUTE_PRECISION_); $aahrg = new PriceFormatter(); $wPoy4["total"] = $aahrg->format($wPoy4["total_amount"]); $wPoy4["total_amount_to_display"] = $this->getTranslations("ProductController")["s_price"] . " " . $wPoy4["total"]; if (!($G2yBX["pp_price_display_mode"] == 1)) { goto TSPKh; } $G2yBX["price_to_display"] = $wPoy4["total"]; TSPKh: Nl2K1: $G2yBX["pp_settings"] = $wPoy4; ceHkq: SQ0QD: return $mtO6V; } public function hookActionAdminControllerSetMedia($mtO6V) { if (!PSM::isBackOfficeSupportedController($this->context->controller)) { goto A83kj; } if (PSM::adminControllerUsesNewTheme($mtO6V)) { goto Ohx2J; } $this->context->controller->addJquery(); Ohx2J: $JrzQO = array("views/css/pproperties_admin.css"); $zEVvW = array(); $Tgc9o = false; if (in_array($this->context->controller->controller_name, array("AdminProducts", "AdminOrders", "AdminCarts", "AdminStockManagement", "AdminStockMvt", "AdminStockInstantState", "AdminStockcOver"))) { goto ISOMU; } if ($this->context->controller->controller_name == "AdminModules" && Tools::getValue("configure") == "pproperties") { goto gINL7; } goto KxPA8; ISOMU: $Tgc9o = true; goto KxPA8; gINL7: $this->context->controller->addJqueryUI("ui.tabs", "base"); $Tgc9o = true; KxPA8: if (!(!$Tgc9o && $this->multidimensional_plugin && $this->multidimensional_plugin->hookActionAdminControllerSetMediaIsSupportedController($this->context->controller->controller_name))) { goto aSGBu; } $Tgc9o = true; aSGBu: if (!$Tgc9o) { goto rTefm; } $zEVvW[] = "views/js/pproperties_admin.min.js"; rTefm: $tfBB1 = $this->getPathUri(); foreach ($JrzQO as $iIHSd) { $this->context->controller->addCSS($tfBB1 . $iIHSd); pA5Z5: } T2cA8: foreach ($zEVvW as $iIHSd) { $this->context->controller->addJS($tfBB1 . $iIHSd); Dx9Jn: } SbdaL: A83kj: } public function hookActionAdminProductsListingFieldsModifier($mtO6V) { if ($this->integrated) { goto UF2gx; } return; UF2gx: if (!isset($mtO6V["sql_select"])) { goto HhNRw; } $mtO6V["sql_select"]["id_pp_template"] = array("table" => "p", "field" => "id_pp_template"); $mtO6V["sql_select"]["sav_quantity_remainder"] = array("table" => "sav", "field" => "quantity_remainder"); HhNRw: } public function hookActionAdminProductsListingResultsModifier($mtO6V) { if ($this->integrated) { goto MiXdW; } return; MiXdW: static $eck3t = null; static $rUo7F = null; if (!($eck3t === null)) { goto XisOF; } $eck3t = (bool) Configuration::get("PP_TEMPLATE_NAME_IN_CATALOG"); $rUo7F = Configuration::get("PS_STOCK_MANAGEMENT"); XisOF: if (!(isset($mtO6V["products"]) && is_array($mtO6V["products"]))) { goto WHyHU; } foreach ($mtO6V["products"] as &$sMujq) { if (isset($sMujq["id_pp_template"]) && (int) $sMujq["id_pp_template"]) { goto O_60k; } if (!$rUo7F) { goto aLQ8j; } $sMujq["sav_quantity_to_display"] = PP::presentQty($sMujq["sav_quantity"]) . "<span class="pp_bo_qty_text"> </span>"; aLQ8j: goto xtAes; O_60k: if (!$eck3t) { goto merRR; } $xsOc_ = PP::getTemplateName($sMujq["id_pp_template"], true); if (!($xsOc_ != '')) { goto u11Pp; } static $lVw8H = null; static $JqWIs = null; if (!($lVw8H === null)) { goto WJSzs; } $lVw8H = PP::safeOutput($this->l("This product uses Product Properties Extension template")); $JqWIs = Tools::getAdminTokenLite("AdminModules"); WJSzs: $sMujq["pp_template"] = "<br/><a class="pp_list_template" title="" . $lVw8H . "" href="index.php?controller=adminmodules&configure=pproperties&token=" . $JqWIs . "&tab_module=administration&module_name=pproperties&clickEditTemplate&mode=edit&pp=1&id=" . $sMujq["id_pp_template"] . "" target="_blank"><i class="material-icons icon-template">reorder</i><span>" . PP::safeOutputLenient($xsOc_) . "</span></a>"; u11Pp: merRR: if (!$rUo7F) { goto Y_NXN; } if (!isset($sMujq["sav_quantity_remainder"])) { goto DM9Mu; } $sMujq["sav_quantity"] = $sMujq["sav_quantity"] + $sMujq["sav_quantity_remainder"]; DM9Mu: $nsYp1 = PP::getProductPropertiesByTemplateId($sMujq["id_pp_template"]); $sMujq["sav_quantity_to_display"] = PP::presentQty($sMujq["sav_quantity"]) . "<span class="pp_bo_qty_text"> " . PP::safeOutputLenient($nsYp1["pp_bo_qty_text"]) . "</span>"; Y_NXN: xtAes: uld88: } hAbyF: WHyHU: } public function callbackSavQuantityActionAdminProductsListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "sav_quantity", "products sav"); } public function hookActionAdminStockCoverListingFieldsModifier($mtO6V) { $mtO6V["fields"]["qty_sold"]["callback"] = "callbackSoldQuantityActionAdminStockCoverListingFieldsModifier"; $mtO6V["fields"]["qty_sold"]["callback_object"] = $this; $mtO6V["fields"]["stock"]["callback"] = "callbackStockQuantityActionAdminStockCoverListingFieldsModifier"; $mtO6V["fields"]["stock"]["callback_object"] = $this; } public function callbackSoldQuantityActionAdminStockCoverListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "qty_sold", "stock-cover sold"); } public function callbackStockQuantityActionAdminStockCoverListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "stock", "stock-cover stock"); } public function hookActionAdminStockInstantStateListingFieldsModifier($mtO6V) { $mtO6V["fields"]["real_quantity"]["callback"] = "callbackSoldQuantityActionAdminStockInstantStateListingFieldsModifier"; $mtO6V["fields"]["real_quantity"]["callback_object"] = $this; } public function hookAdminPproperties($mtO6V) { $RtsEA = $mtO6V["mode"]; $b595C = isset($mtO6V["module"]) ? $mtO6V["module"] : null; $tS4GL = isset($mtO6V["version"]) ? $mtO6V["version"] : null; switch ($RtsEA) { case "ads": $vA5Ym = isset($mtO6V["summary"]) ? $mtO6V["summary"] : false; goto lIiSv; case "contact_us": goto lIiSv; } SDCsg: lIiSv: } public function hookPlugins($mtO6V) { return $this->plugins(); } public function hookTranslations($mtO6V) { return $this->translations(); } public function callbackSoldQuantityActionAdminStockInstantStateListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "real_quantity", "stock-instant-state real"); } public function hookActionAdminStockManagementListingFieldsModifier($mtO6V) { $mtO6V["fields"]["stock"]["callback"] = "callbackSoldQuantityActionAdminStockManagementListingFieldsModifier"; $mtO6V["fields"]["stock"]["callback_object"] = $this; } public function callbackSoldQuantityActionAdminStockManagementListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "stock", "stock-management stock"); } public function hookActionAdminStockMvtListingFieldsModifier($mtO6V) { $mtO6V["fields"]["physical_quantity"]["callback"] = "callbackSoldQuantityActionAdminStockMvtListingFieldsModifier"; $mtO6V["fields"]["physical_quantity"]["callback_object"] = $this; } public function callbackSoldQuantityActionAdminStockMvtListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "physical_quantity", "stock-mvt physical"); } public function adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, $SNYS6, $euE1Z = '') { if (!isset($BJD_A[$SNYS6])) { goto sJx90; } if ($SNYS6 == "real_quantity" || $SNYS6 == "qty_sold") { goto zoNnw; } if ($SNYS6 == "stock") { goto b3MA9; } $SWk7r = $SNYS6 . "_remainder"; if (!(($SNYS6 == "sav_quantity" || $SNYS6 == "physical_quantity" || $SNYS6 == "usable_quantity") && isset($BJD_A[$SWk7r]))) { goto m0uq6; } $i2l14 = $BJD_A[$SNYS6] + $BJD_A[$SWk7r]; if (isset($BJD_A["id_product"])) { goto IdF3K; } if (!isset($BJD_A["id_stock"])) { goto WsOfw; } $odDuI = (int) Db::getInstance()->getValue("SELECT `id_product` FROM `" . _DB_PREFIX_ . "stock` WHERE `id_stock` = " . (int) $BJD_A["id_stock"]); WsOfw: goto EG6GE; IdF3K: $odDuI = $BJD_A["id_product"]; EG6GE: m0uq6: goto wrSRu; zoNnw: $i2l14 = $BJD_A[$SNYS6]; $odDuI = $BJD_A["id_product"]; goto wrSRu; b3MA9: $i2l14 = $BJD_A[$SNYS6]; $odDuI = $BJD_A["id"]; wrSRu: if (!(isset($i2l14) && is_numeric($i2l14) && (float) $i2l14 != 0)) { goto vcKpi; } $nsYp1 = PP::getProductProperties($odDuI); return "<span class="pp_list_qty_wrapper " . $euE1Z . "">" . PP::presentQty($i2l14, Context::getContext()->currency) . "<span class="pp_bo_qty_text_wrapper"><span class="pp_bo_qty_text"> " . PP::safeOutputLenient($nsYp1["pp_bo_qty_text"]) . "</span></span></span>"; vcKpi: sJx90: return $pwM0H; } public function translations() { return $this->getTranslations(); } public function getTranslations($SNYS6 = null) { static $pS66y = null; static $vWnHb = null; if (!($pS66y === null)) { goto AZBCZ; } $rvm1b = Context::getContext()->getTranslator(); $pS66y = array("name" => Tools::strtolower($rvm1b->trans("Name", array(), "Admin.Global")), "description" => Tools::strtolower($rvm1b->trans("Description", array(), "Admin.Global")), "enabled" => Tools::strtolower($rvm1b->trans("Enabled", array(), "Admin.Global")), "disabled" => Tools::strtolower($rvm1b->trans("Disabled", array(), "Admin.Global")), "default" => Tools::strtolower($rvm1b->trans("Default", array(), "Admin.Global")), "or" => Tools::strtolower($rvm1b->trans("Or", array(), "Admin.Global")), "documentation" => Tools::strtolower($rvm1b->trans("Documentation", array(), "Install")), "s_multiplication" => $this->l("multiplication: dimensions in all directions are multiplied (giving area or volume)"), "s_summation" => $this->l("summation: dimensions in all directions are added"), "s_single_dimension" => $this->l("single dimension"), "s_custom_calculation" => $this->l("custom calculation"), "s_pp_explanation" => $this->l("inline explanation"), "s_pp_minimum_price_ratio" => $this->l("quantity threshold for minimum price"), "To disable the module please uninstall it." => $this->l("To disable the module please uninstall it."), "incompatible_plugin_api_version" => $this->l("Required "%s" plugin API version %s, found plugin API version %s."), "version" => Tools::strtolower($rvm1b->trans("Version", array(), "Admin.Global")), "Pro" => $this->l("Pro"), "Premium" => $this->l("Premium"), "user guide" => $this->l("user guide"), "leave blank to use default" => $this->l("leave blank to use default"), "leave blank to disable this feature" => $this->l("leave blank to disable this feature"), "item" => $this->l("item"), "items" => $this->l("items"), "in stock" => $this->l("in stock"), "out of stock" => $this->l("out of stock"), "quantity_update_not_supported" => $this->l("Quantity update not supported."), "invalid_cart_product_reference" => $this->l("Product not found in the cart (invalid cart product reference)."), "cannot_order_more_than" => $this->l("You cannot order more than %quantity% %text% for %name%."), "cannot_order_more_than_in_total" => $this->l("You cannot order more than %quantity% %text% in total for %name%."), "should_add_at_least" => $this->l("You should add at least %quantity% %text% for %name%."), "multidimensional_plugin_not_installed" => $this->l("Multidimensional plugin not installed."), "Manage templates" => $this->l("Manage templates"), "Please choose template." => $this->l("Please choose template."), "Assign template" => $this->l("Assign template"), "Remove template" => $this->l("Remove template"), "Edit template" => $this->l("Edit template"), "template" => $this->l("template"), "templates" => $this->l("templates"), "statistics" => $this->l("statistics"), "show less" => $this->l("show less"), "show more" => $this->l("show more"), "show less details" => $this->l("show less details"), "show more details" => $this->l("show more details"), "assign_or_remove_template_for_several_products_at_once" => $this->l("You can assign or remove template for several products at once. Please choose the template below and select products from the list."), "Changing template assignment" => $this->l("Changing template assignment"), "Changing product..." => $this->l("Changing product..."), "Changing template in progress..." => $this->l("Changing template in progress..."), "Changing template failed." => $this->l("Changing template failed."), "show_in_menu" => $this->l("Show module in PS&More menu section"), "upload_failed" => $this->l("File upload failed."), "error_delete_directory" => $this->l("Cannot delete "%s" directory."), "error_create_file" => $this->l("Cannot create "%s" file."), "auto" => $this->l("auto"), "visible" => $this->l("visible"), "hidden" => $this->l("hidden"), "explanation" => $this->l("explanation"), "attribute" => Tools::strtolower($rvm1b->trans("Attribute", array(), "Admin.Global")), "attributes" => Tools::strtolower($rvm1b->trans("Attributes", array(), "Admin.Global")), "text" => Tools::strtolower($rvm1b->trans("Text", array(), "Admin.Global")), "texts" => $this->l("texts"), "dimension" => $this->l("dimension"), "dimensions" => $this->l("dimensions"), "metric" => $this->l("metric"), "non metric" => $this->l("non metric"), "non metric (imperial/US)" => $this->l("non metric (imperial/US)"), "CSS classes" => $this->l("CSS classes"), "Run analysis" => $this->l("Run analysis")); if (!(!$this->multidimensional_plugin || !isset($this->multidimensional_plugin->pro))) { goto Ti3VG; } $pS66y["s_custom_calculation"] .= " " . $this->l("(requires Multidimensional plugin Pro or Premium)"); Ti3VG: $VBMXl = $this->l("The minimum quantity required to buy this product"); $EHj3B = $this->l("(set to %d to use the template default)"); $vWnHb = array(); $vWnHb["AdminProducts"] = array("s_ppMinQtyExpl_disable" => $this->l("The minimum quantity required to buy this product (set to 1 to disable this feature)"), "s_ppMinQtyExplShort_0" => sprintf($EHj3B, 1), "s_ppMinQtyExplShort_1" => sprintf($EHj3B, 0), "s_ppMinQtyExplShort_2" => sprintf($EHj3B, 0), "s_ppMinQtyExplShort_ext" => sprintf($EHj3B, 0), "s_minimum_quantity" => $this->l("minimum quantity defined in template is"), "s_pp_unity_text_expl" => $this->l("specified by template"), "s_pack_hint" => $this->l("You can only add to a pack products sold in items (cannot add products sold by weight, length, etc.)."), "s_pp_qty_policy" => $this->l("quantity policy"), "s_pp_qty_mode" => $this->l("quantity mode"), "s_pp_display_mode" => $this->l("display mode"), "s_pp_price_display_mode" => $this->l("price display mode"), "s_pp_price_text" => $this->l("price text"), "s_pp_qty_text" => $this->l("quantity text"), "s_pp_unity_text" => $this->l("unit price text"), "s_pp_unit_price_ratio" => $this->l("unit price ratio"), "s_pp_minimum_price_ratio" => $this->l("quantity threshold for minimum price"), "s_pp_minimum_quantity" => $this->l("minimum quantity"), "s_pp_maximum_quantity" => $this->l("maximum quantity"), "s_pp_total_maximum_quantity" => $this->l("total maximum quantity"), "s_pp_default_quantity" => $this->l("default quantity"), "s_pp_qty_step" => $this->l("quantity step"), "s_pp_qty_values" => $this->l("specific quantity values"), "s_pp_explanation" => $this->l("inline explanation"), "s_pp_qty_policy_0" => $this->l("items"), "s_pp_qty_policy_1" => $this->l("whole units"), "s_pp_qty_policy_2" => $this->l("fractional units"), "s_pp_qty_policy_ext" => $this->l("multidimensional"), "s_pp_qty_mode_0" => $this->l("exact quantity"), "s_pp_qty_mode_1" => $this->l("approximate quantity"), "s_pp_qty_mode_2" => $this->l("aggregate quantities"), "s_pp_qty_mode_options" => array(2), "s_pp_display_mode_0" => $this->l("normal"), "s_pp_display_mode_1" => $this->l("reversed price display (display unit price as price)"), "s_pp_display_mode_2" => $this->l("display retail price as unit price"), "s_pp_display_mode_4" => $this->l("display base unit price for all combinations"), "s_pp_display_mode_8" => $this->l("hide extra details for unit price in orders and invoices"), "s_pp_display_mode_16" => $this->l("hide extra details for quantity in orders and invoices"), "s_pp_display_mode_32" => $this->l("hide extra details for product total price in orders and invoices"), "s_pp_display_mode_64" => $this->l("display legacy product price"), "s_pp_display_mode_128" => $this->l("display unit price in orders and invoices"), "s_pp_display_mode_options" => array(2, 4, 64, 128, 8, 16, 32), "s_pp_price_display_mode_0" => $this->l("normal"), "s_pp_price_display_mode_1" => $this->l("as product price"), "s_pp_price_display_mode_16" => $this->l("hide price display")); $vWnHb["AdminProducts"]["maximum quantity"] = $vWnHb["AdminProducts"]["s_pp_maximum_quantity"]; $vWnHb["AdminProducts"]["quantity step"] = $vWnHb["AdminProducts"]["s_pp_qty_step"]; $vWnHb["AdminProducts"]["s_ppMinQtyExpl_0"] = $VBMXl . " " . $vWnHb["AdminProducts"]["s_ppMinQtyExplShort_0"]; $vWnHb["AdminProducts"]["s_ppMinQtyExpl_1"] = $VBMXl . " " . $vWnHb["AdminProducts"]["s_ppMinQtyExplShort_1"]; $vWnHb["AdminProducts"]["s_ppMinQtyExpl_2"] = $VBMXl . " " . $vWnHb["AdminProducts"]["s_ppMinQtyExplShort_2"]; $vWnHb["AdminProducts"]["s_ppMinQtyExpl_ext"] = $this->l("Minimum quantity in multidimensional template refers to the number of items") . " " . $vWnHb["AdminProducts"]["s_ppMinQtyExplShort_ext"]; $vWnHb["ProductController"] = array("s_price" => $this->l("price")); foreach ($vWnHb as $Q_gK0 => $i2l14) { $pS66y = array_merge($pS66y, $i2l14); rFkWj: } RMp2X: AZBCZ: if (!($SNYS6 !== null)) { goto yrRCS; } return $vWnHb[$SNYS6]; yrRCS: return $pS66y; } public function getContent() { if (!Configuration::get("PS_DISABLE_NON_NATIVE_MODULE")) { goto Dbdb2; } return "<div class="module_error alert alert-danger">" . $this->l("Non PrestaShop modules disabled.") . "</div>"; Dbdb2: $this->tabAccess = PSM::tabAccess($this->adminTab); $this->active_languages = $this->context->controller->getLanguages(); $this->default_language_id = PP::resolveLanguageId(); $pS66y = $this->translations(); $rvm1b = Context::getContext()->getTranslator(); $Erij2 = $this->setupInstance(); if ((int) Tools::getValue("pp")) { goto V2qnm; } $this->checkIntegration($Erij2); V2qnm: $xlN7G = "0"; $BeeE_ = $r3oOZ = $s4D2m = $fCpPT = $vowDI = ''; $VJeUd = null; $nsYp1 = null; if (Tools::isSubmit("submitRestoreDefaults")) { goto GjV3i; } if (Tools::isSubmit("cancelSaveTemplate")) { goto yS2Ad; } if (Tools::isSubmit("cancelSaveProperty")) { goto lFIKF; } if (Tools::isSubmit("submitSaveTemplate") || Tools::isSubmit("submitSaveTemplateAndStay")) { goto BFqW2; } if (Tools::isSubmit("submitSaveProperty")) { goto CJrDr; } if (Tools::isSubmit("submitConfigSettings")) { goto XtxEq; } if (Tools::isSubmit("submitSetup")) { goto wNMMq; } if (Tools::isSubmit("clickClearCache")) { goto N63tR; } if (Tools::isSubmit("submitStatistics")) { goto j1PT6; } if (Tools::isSubmit("clickEditTemplate")) { goto BPAfS; } if (Tools::isSubmit("clickDeleteTemplate")) { goto i4j4L; } if (Tools::isSubmit("clickHiddenStatusTemplate")) { goto mHgaU; } if (Tools::isSubmit("clickEditProperty")) { goto xNFFk; } if (Tools::isSubmit("clickDeleteProperty")) { goto gThfd; } goto c7rVD; GjV3i: $xlN7G = "0"; if ($this->tabAccess["edit"] === "1") { goto W9aDo; } $BeeE_ = $this->displayError($this->tabAccess["no_permission"]); goto tf5_V; W9aDo: $Erij2->insertData(true); tf5_V: goto c7rVD; yS2Ad: $xlN7G = "0"; goto c7rVD; lFIKF: $xlN7G = "1"; goto c7rVD; BFqW2: if ($this->tabAccess["edit"] === "1") { goto mpEyl; } $d5Cih = array(); $d5Cih["error"] = $this->tabAccess["no_permission"]; $d5Cih["templates"] = null; goto MTVbk; mpEyl: $d5Cih = $this->saveTemplate(); MTVbk: if ($d5Cih["error"] == '') { goto Wesmu; } $VJeUd = $d5Cih["templates"]; $vowDI = $this->displayError($d5Cih["error"]); $xlN7G = "4"; goto Jtdry; Wesmu: $xlN7G = Tools::isSubmit("submitSaveTemplateAndStay") ? "4" : "0"; Jtdry: goto c7rVD; CJrDr: if ($this->tabAccess["edit"] === "1") { goto coa0R; } $d5Cih = array(); $d5Cih["error"] = $this->tabAccess["no_permission"]; $d5Cih["properties"] = null; goto SHXBw; coa0R: $d5Cih = $this->saveProperty(); SHXBw: if ($d5Cih["error"] == '') { goto r83jO; } $nsYp1 = $d5Cih["properties"]; $vowDI = $this->displayError($d5Cih["error"]); $xlN7G = "4"; goto RJo0h; r83jO: $xlN7G = "1"; RJo0h: goto c7rVD; XtxEq: $xlN7G = "2"; if ($this->tabAccess["edit"] === "1") { goto N2JRp; } $s4D2m = $this->displayError($this->tabAccess["no_permission"]); goto q4N84; N2JRp: Configuration::updateValue("PP_MEASUREMENT_SYSTEM", PP::getIntNonNegativeValue("measurement_system", 1)); Configuration::updateValue("PP_MEASUREMENT_SYSTEM_FO", PP::getIntNonNegativeValue("measurement_system_fo", 0)); Configuration::updateValue("PP_POWEREDBY", PP::getIntNonNegativeValue("poweredby", 0)); Configuration::updateValue("PP_TEMPLATE_NAME_IN_CATALOG", PP::getIntNonNegativeValue("template_name_in_catalog", 1)); Configuration::updateGlobalValue("PP_SHOW_IN_MENU", PP::getIntNonNegativeValue("show_in_menu", 1)); $Erij2->adminTab($this->adminTab, Configuration::getGlobalValue("PP_SHOW_IN_MENU")); $s4D2m = $this->displayConfirmation($rvm1b->trans("Settings updated", array(), "Admin.Global")); q4N84: goto c7rVD; wNMMq: $xlN7G = "2"; if ($this->tabAccess["edit"] === "1") { goto cBYZP; } $s4D2m = $this->displayError($this->tabAccess["no_permission"]); goto D5l8U; cBYZP: $Erij2->runSetup(); D5l8U: goto c7rVD; N63tR: $xlN7G = "2"; Configuration::deleteByName("PP_INFO_CHECK_TIME"); PSM::clearCache(); goto c7rVD; j1PT6: $xlN7G = "3"; goto c7rVD; BPAfS: $xlN7G = "4"; goto c7rVD; i4j4L: $xlN7G = "0"; if ($this->tabAccess["edit"] === "1" && $this->tabAccess["delete"] === "1") { goto nwKA5; } $BeeE_ = $this->displayError($this->tabAccess["no_permission"]); goto HNghW; nwKA5: $this->deleteTemplate(); HNghW: goto c7rVD; mHgaU: $xlN7G = "0"; if ($this->tabAccess["edit"] === "1") { goto fltD0; } $BeeE_ = $this->displayError($this->tabAccess["no_permission"]); goto Hy2fd; fltD0: $this->changeHiddenStatus(); Hy2fd: goto c7rVD; xNFFk: $xlN7G = "4"; goto c7rVD; gThfd: $xlN7G = "1"; if ($this->tabAccess["edit"] === "1" && $this->tabAccess["delete"] === "1") { goto VylEu; } $r3oOZ = $this->displayError($this->tabAccess["no_permission"]); goto i_o9z; VylEu: $this->deleteProperty(); i_o9z: c7rVD: $Vjs2g = ''; if (!(version_compare(_PS_VERSION_, $this->ps_versions_compliancy["min"]) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy["max"]) > 0)) { goto Y64e3; } $Vjs2g .= $this->displayError($this->l("This module is not fully compatible with the installed PrestaShop version.") . " " . $this->compatibilityText() . "<br>" . $this->l("Please upgrade to the newer version.") . "<br>"); Y64e3: if (!(count($this->integration_test_result) != 0)) { goto n3jxk; } $Vjs2g .= $this->displayError($this->l("Integration test failed.")); $xlN7G = "2"; n3jxk: $svj_s = array(); $svj_s[0] = array("type" => "templates", "name" => Tools::ucfirst($pS66y["templates"]), "icon" => "<i class="material-icons icon-template">reorder</i>", "html" => $BeeE_ . $this->getTemplatesTabHtml()); $svj_s[1] = array("type" => "properties", "name" => $this->l("Properties"), "icon" => "<i class="icon-tag"></i>", "html" => $r3oOZ . $this->getPropertiesTabHtml()); $svj_s[2] = array("type" => "settings", "name" => $rvm1b->trans("Settings", array(), "Admin.Global"), "icon" => "<i class="icon-AdminAdmin"></i>", "html" => $s4D2m . $this->getSettingsTabHtml(Tools::isSubmit("submitSetup"))); $svj_s[3] = array("type" => "statistics", "name" => Tools::ucfirst($pS66y["statistics"]), "icon" => "<i class="icon-AdminParentStats"></i>", "html" => $fCpPT . $this->getStatisticsTabHtml(Tools::isSubmit("submitStatistics"))); if ($xlN7G == 4 && (Tools::isSubmit("clickEditTemplate") || Tools::isSubmit("submitSaveTemplate") || Tools::isSubmit("submitSaveTemplateAndStay"))) { goto uqdfN; } if ($xlN7G == 4 && (Tools::isSubmit("clickEditProperty") || Tools::isSubmit("submitSaveProperty"))) { goto dKE_8; } goto ddlhQ; uqdfN: $RtsEA = Tools::getValue("mode"); if ($RtsEA == "add") { goto wSI5Z; } if ($RtsEA == "copy") { goto hTc1s; } $RtsEA = "edit"; $Gkfvq = $this->l("Edit template"); goto g5eY4; wSI5Z: $Gkfvq = $this->l("Add template"); goto g5eY4; hTc1s: $Gkfvq = $this->l("Add template"); g5eY4: $svj_s[4] = array("type" => "modifyTemplate", "name" => $Gkfvq, "icon" => "<i class="icon-edit"></i>", "html" => $vowDI . $this->getEditTemplateTabHtml($VJeUd, $RtsEA, $Gkfvq)); goto ddlhQ; dKE_8: $RtsEA = Tools::getValue("mode"); if ($RtsEA == "add") { goto atUqd; } $RtsEA = "edit"; $Gkfvq = $this->l("Edit property"); goto sRJbh; atUqd: $U7zGz = (int) Tools::getValue("type"); if ($U7zGz == self::PROPERTY_TYPE_GENERAL) { goto PCwJa; } if ($U7zGz == self::PROPERTY_TYPE_BLOCK_TEXT) { goto GwU6N; } $Gkfvq = $this->l("Add property dimension"); goto aX2Y0; PCwJa: $Gkfvq = $this->l("Add property attribute"); goto aX2Y0; GwU6N: $Gkfvq = $this->l("Add property text"); aX2Y0: sRJbh: $svj_s[4] = array("type" => "modifyProperty", "name" => $Gkfvq, "icon" => "<i class="icon-edit"></i>", "html" => $vowDI . $this->getEditPropertyTabHtml($nsYp1, $RtsEA, $Gkfvq)); ddlhQ: $zw9EK = $this->createTemplate("pproperties"); $zw9EK->tpl_vars["html"] = $Vjs2g; $zw9EK->tpl_vars["tabs"] = $svj_s; $zw9EK->tpl_vars["active"] = $xlN7G; $zw9EK->tpl_vars["version"] = PSM::moduleVersion($this); $zw9EK->tpl_vars["ppe_id"] = PSM::psmId($this->name); $zw9EK->tpl_vars["_path"] = $this->getPathUri(); $zw9EK->tpl_vars["translations"] = $this->translations(); $zw9EK->tpl_vars["s_pp_info_ignore"] = $this->l("don't show this message again"); $zw9EK->tpl_vars["token_adminpproperties"] = Tools::getAdminTokenLite($this->adminTab); $zw9EK->tpl_vars["adminppropertiesurl"] = $this->context->link->getAdminLink($this->adminTab, true); $zw9EK->tpl_vars["jstranslations"] = PP::safeOutputLenientJS(array("rerun" => $this->l("Run Setup"), "integration_module_success_IntegrationModuleIgnore" => $this->l("ignored"), "integration_module_success_IntegrationModuleIntegrate" => $this->l("integation activated") . " - " . $this->l("please run setup"), "integration_module_rerun_IntegrationModuleCheckForUpdates" => $this->l("please run setup"), "integration_module_downloaded_IntegrationModuleCheckForUpdates" => $this->l("update downloaded") . " - " . $this->l("please run setup"), "integration_module_no_updates_IntegrationModuleCheckForUpdates" => $this->l("no updates available - please contact customer support"), "integration_module_error" => $this->l("error occurred"))); return $zw9EK->generate(); } private function getTemplatesTabHtml() { $pS66y = $this->translations(); $zw9EK = $this->createTemplate("templates"); if ($this->integrated) { goto A9Sa2; } $zw9EK->tpl_vars["integration_message"] = $this->getTabIntegrationWarning(); goto Kl6a1; A9Sa2: $VJeUd = PP::getTemplates($this->default_language_id); $ZDsgQ = array(); foreach ($VJeUd as &$KdYsj) { $ikjDL = array(); if (!(($KdYsj["pp_qty_mode"] & 1) == 1)) { goto hpHky; } $ikjDL[] = 1; hpHky: $zZk3L = 2; foreach ($pS66y["s_pp_qty_mode_options"] as $xc1Yt) { if (!(($KdYsj["pp_qty_mode"] & $xc1Yt) == $xc1Yt)) { goto eUt15; } $ikjDL[] = $zZk3L; eUt15: $zZk3L++; xCEAT: } fEr8E: $KdYsj["qty_mode"] = implode(",", $ikjDL); $iw1Yu = array(); if (!(($KdYsj["pp_display_mode"] & 1) == 1)) { goto E0Qoq; } $iw1Yu[] = 1; E0Qoq: $zZk3L = 2; foreach ($pS66y["s_pp_display_mode_options"] as $xc1Yt) { if (!(($KdYsj["pp_display_mode"] & $xc1Yt) == $xc1Yt)) { goto JiFhi; } $iw1Yu[] = $zZk3L; JiFhi: $zZk3L++; R2MI9: } EACqo: $KdYsj["display_mode"] = implode(",", $iw1Yu); if (!$KdYsj["auto_desc"]) { goto dRtA1; } $KdYsj["description"] = $this->generateDescription($KdYsj); dRtA1: if (!$KdYsj["pp_explanation"]) { goto wzb9c; } $ZDsgQ[$KdYsj["pp_bo_buy_block_index"]] = PP::safeOutputLenient($KdYsj["pp_explanation"]); wzb9c: esXe7: } jV3C3: ksort($ZDsgQ, SORT_NUMERIC); $zw9EK->tpl_vars["templates"] = PP::safeOutputLenient($VJeUd); $zw9EK->tpl_vars["buy_block_text"] = $ZDsgQ; $zw9EK->tpl_vars["qty_mode_text"] = array($pS66y["s_pp_qty_mode_1"]); foreach ($pS66y["s_pp_qty_mode_options"] as $xc1Yt) { $zw9EK->tpl_vars["qty_mode_text"][] = $pS66y["s_pp_qty_mode_" . $xc1Yt]; OJTtr: } J_MWi: $zw9EK->tpl_vars["display_mode_text"] = array($pS66y["s_pp_display_mode_1"]); foreach ($pS66y["s_pp_display_mode_options"] as $xc1Yt) { $zw9EK->tpl_vars["display_mode_text"][] = $pS66y["s_pp_display_mode_" . $xc1Yt]; MhARM: } Zkkhm: Kl6a1: return $zw9EK->generate(); } private function getPropertiesTabHtml() { $zw9EK = $this->createTemplate("properties"); if ($this->integrated) { goto K28vq; } $zw9EK->tpl_vars["integration_message"] = $this->getTabIntegrationWarning(); goto OgRkb; K28vq: $XsykN = $this->getAllProperties(); $qf27Z = PP::resolveMS() != 2; $zw9EK->tpl_vars["properties"] = $XsykN[$this->default_language_id]; $zw9EK->tpl_vars["property_types"] = $this->getPropertyTypes(); $zw9EK->tpl_vars["types"] = array("attributes" => array("id" => self::PROPERTY_TYPE_GENERAL, "metric" => true, "nonmetric" => true), "texts" => array("id" => self::PROPERTY_TYPE_BLOCK_TEXT, "metric" => $qf27Z, "nonmetric" => !$qf27Z), "dimensions" => $this->multidimensional_plugin ? array("id" => self::PROPERTY_TYPE_EXT, "metric" => true, "nonmetric" => true) : false); OgRkb: return $zw9EK->generate(); } private function getSettingsTabHtml($teXfM) { $rvm1b = Context::getContext()->getTranslator(); $Vjs2g = ''; if (!$this->integrated) { goto k3PbV; } $pS66y = $this->translations(); $zw9EK = $this->createHelperForm("pp_settings_form", $rvm1b->trans("Settings", array(), "Admin.Global"), "submitConfigSettings"); $X3UOe = array(array("value" => 1, "label" => $rvm1b->trans("Yes", array(), "Admin.Global")), array("value" => 0, "label" => $rvm1b->trans("No", array(), "Admin.Global"))); $bPSJx = array("input" => array(array("label" => $this->l("Measurement system"), "type" => "radio", "name" => "measurement_system", "desc" => $this->l("unit measurement system used by default (can be overridden in template)"), "values" => array(array("id" => "measurement_system_1", "value" => (int) PP::PP_MS_METRIC, "label" => $pS66y["metric"]), array("id" => "measurement_system_2", "value" => (int) PP::PP_MS_NON_METRIC, "label" => $pS66y["non metric (imperial/US)"]))), array("label" => $this->l("Display "Powered by PS&More""), "type" => "switch", "name" => "poweredby", "values" => $X3UOe), array("label" => $this->l("Show templates in the catalog"), "type" => "switch", "name" => "template_name_in_catalog", "desc" => $this->l("show or hide template names in the products catalog"), "values" => $X3UOe), array("label" => $pS66y["show_in_menu"], "type" => "switch", "name" => "show_in_menu", "values" => $X3UOe), array("type" => "clearcache", "name" => $rvm1b->trans("Clear cache", array(), "Admin.Advparameters.Feature")))); $zw9EK->fields_value["measurement_system"] = PP::getIntNonNegativeValue("measurement_system", Configuration::get("PP_MEASUREMENT_SYSTEM")); $zw9EK->fields_value["measurement_system_fo"] = (int) Configuration::get("PP_MEASUREMENT_SYSTEM_FO"); $zw9EK->fields_value["poweredby"] = (int) Configuration::get("PP_POWEREDBY"); $zw9EK->fields_value["template_name_in_catalog"] = (int) Configuration::get("PP_TEMPLATE_NAME_IN_CATALOG"); $zw9EK->fields_value["show_in_menu"] = (int) Configuration::getGlobalValue("PP_SHOW_IN_MENU"); $Vjs2g .= $this->generateForm($zw9EK, $bPSJx); k3PbV: $WFKn_ = array(); $CXzQJ = $this->setupInstance()->checkModifiedFiles(); $As2Hq = $this->setupInstance()->checkExtraModulesIntegrity(true); if (count($this->integration_test_result) == 0) { goto qonoS; } $this->integration_test_result = array_replace_recursive($this->integration_test_result, $CXzQJ); $this->integration_test_result = array_replace_recursive($this->integration_test_result, $As2Hq); if (!isset($this->integration_test_result_notes)) { goto SSpcq; } $this->integration_test_result = array_merge_recursive($this->integration_test_result, $this->integration_test_result_notes); SSpcq: $WFKn_["btn_action"] = "submitSetup"; $WFKn_["btn_title"] = $this->l("Run Setup"); $WFKn_["display"] = $this->showIntegrationTestResults($this->integration_test_result); $WFKn_["hasDesc"] = true; $WFKn_["_path"] = $this->getPathUri(); goto JKk3j; qonoS: $WFKn_["btn_action"] = "submitSetup"; $WFKn_["btn_title"] = $this->l("Run Setup"); if (!$teXfM) { goto F6DKf; } $WFKn_["confirmation"] = $this->displayConfirmation($this->l("Setup completed successfully.")); $opLe7 = $CXzQJ; $opLe7 = array_replace_recursive($opLe7, $As2Hq); if (!isset($this->integration_test_result_notes)) { goto qCo4Q; } $opLe7 = array_merge_recursive($opLe7, $this->integration_test_result_notes); qCo4Q: $WFKn_["display"] = $this->showIntegrationTestResults($opLe7); F6DKf: JKk3j: $zw9EK = $this->createTemplate("integration"); $zw9EK->tpl_vars["integration"] = $WFKn_; $zw9EK->tpl_vars["integration_instructions"] = $this->l("Integration Instructions"); $Vjs2g .= $zw9EK->generate(); return $Vjs2g; } private function getStatisticsTabHtml($teXfM) { $zw9EK = $this->createTemplate("statistics"); if ($this->integrated) { goto uZg_D; } $zw9EK->tpl_vars["integration_message"] = $this->getTabIntegrationWarning(); goto V9Tqc; uZg_D: set_time_limit(300); if (!$teXfM) { goto lTJLi; } $he7ft = Db::getInstance(); $VJeUd = PP::getTemplates(); $zvtIr = array(); $Ri9mb = array(); $aW1b2 = $he7ft->executeS("SELECT count(`id_pp_template`) as count, `id_pp_template` FROM `" . _DB_PREFIX_ . "product` WHERE `id_pp_template` > 0 group by `id_pp_template`"); foreach ($aW1b2 as $JpSqf) { $zvtIr[$JpSqf["id_pp_template"]] = $JpSqf["count"]; $Ri9mb[$JpSqf["id_pp_template"]] = $JpSqf["id_pp_template"]; Gb2ST: } tVVkz: $aW1b2 = array(); foreach ($VJeUd as $KdYsj) { $QYiU9 = $KdYsj["id_pp_template"]; unset($Ri9mb[$QYiU9]); $JpSqf = array(); $JpSqf["id"] = $QYiU9; $JpSqf["name"] = $KdYsj["name"]; $JpSqf["count"] = isset($zvtIr[$QYiU9]) ? $zvtIr[$QYiU9] : 0; if (!($JpSqf["count"] > 0)) { goto d58PV; } $AgKmr = $he7ft->executeS("SELECT DISTINCT p.`id_product`, pl.`name` FROM `" . _DB_PREFIX_ . "product` p LEFT JOIN `" . _DB_PREFIX_ . "product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = " . (int) $this->default_language_id . ") WHERE p.`id_pp_template` = " . (int) $QYiU9); foreach ($AgKmr as &$sMujq) { $sMujq["href"] = $this->context->link->getAdminLink("AdminProducts", true, array("id_product" => $sMujq["id_product"])); FO0W2: } cyqBl: $JpSqf["products"] = $AgKmr; d58PV: $aW1b2[] = $JpSqf; NniJf: } hdTP5: $zw9EK->tpl_vars["existing"] = $aW1b2; if (empty($Ri9mb)) { goto PVAam; } $AgKmr = $he7ft->executeS("SELECT DISTINCT p.`id_product`, p.`id_pp_template`, pl.`name` FROM `" . _DB_PREFIX_ . "product` p LEFT JOIN `" . _DB_PREFIX_ . "product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = " . (int) $this->default_language_id . ") WHERE p.`id_pp_template` in (" . implode(",", $Ri9mb) . ")"); if (!(is_array($AgKmr) && count($AgKmr) > 0)) { goto Tn8K2; } foreach ($AgKmr as &$sMujq) { $sMujq["href"] = $this->context->link->getAdminLink("AdminProducts", true, array("id_product" => $sMujq["id_product"])); Qrng6: } KbRI0: $zw9EK->tpl_vars["missing"] = $AgKmr; Tn8K2: PVAam: lTJLi: V9Tqc: return $zw9EK->generate(); } private function getEditTemplateTabHtml($VJeUd, $RtsEA, $Gkfvq) { if ($this->integrated) { goto KFMND; } return ''; KFMND: $rvm1b = Context::getContext()->getTranslator(); $pS66y = $this->translations(); if ($RtsEA == "add") { goto jfpvz; } $M0WV_ = PP::getIntNonNegativeValue("id"); goto zHPK0; jfpvz: $M0WV_ = 0; if (!($VJeUd == null)) { goto aVtNz; } foreach ($this->active_languages as $rDJFb) { $KdYsj = PP::getProductPropertiesByTemplateId($M0WV_); $KdYsj["name"] = ''; $KdYsj["auto_desc"] = 1; $KdYsj["description"] = ''; $VJeUd[$rDJFb["id_lang"]][$M0WV_] = $KdYsj; eF8gT: } jd40T: aVtNz: zHPK0: if (!($VJeUd == null)) { goto B7y0g; } $VJeUd = PP::getAllTemplates(); B7y0g: $KdYsj = $VJeUd[$this->default_language_id][$M0WV_]; $ezQJE = PP::resolveMS($KdYsj["pp_bo_measurement_system"]); $XsykN = $this->getAllProperties($ezQJE); $jm2G6 = $this->getPropertyTypes(); $NT0ye = array(array("title" => $rvm1b->trans("Cancel", array(), "Admin.Actions"), "type" => "submit", "name" => "cancelSaveTemplate", "icon" => "process-icon-cancel")); if (!($RtsEA == "edit")) { goto rVc2d; } $NT0ye[] = array("title" => $rvm1b->trans("Save and stay", array(), "Admin.Actions"), "type" => "submit", "name" => "submitSaveTemplateAndStay", "class" => "btn btn-default pull-right pp-action-btn" . ($this->tabAccess["edit"] === "1" ? '' : " disabled"), "icon" => "process-icon-save"); rVc2d: $LtkGe = $KdYsj["pp_ext"] == 1 ? "<br>-- " . $this->l("in multidimensional template the quantity refers to the number of items") . " --" : ''; $zjZaN = $KdYsj["pp_ext"] == 1 ? "two-lines" : ''; $zw9EK = $this->createHelperForm("pp_template_form", $Gkfvq, "submitSaveTemplate", "icon-edit"); $aHM3P = array(); foreach ($pS66y["s_pp_qty_mode_options"] as $xc1Yt) { $aHM3P[] = array("values" => array("query" => array(array("id" => $xc1Yt, "name" => $pS66y["s_pp_qty_mode_" . $xc1Yt], "val" => "1")), "id" => "id", "name" => "name"), "separate" => true); x213M: } nfRKz: $ce3UA = array(); foreach ($pS66y["s_pp_display_mode_options"] as $xc1Yt) { $ce3UA[] = array("values" => array("query" => array(array("id" => $xc1Yt, "name" => $pS66y["s_pp_display_mode_" . $xc1Yt], "val" => "1")), "id" => "id", "name" => "name"), "separate" => true); Ls1va: } Yyf9n: $bPSJx = array("input" => array(array("type" => "div", "label" => $rvm1b->trans("ID", array(), "Admin.Global"), "name" => $M0WV_, "class" => "control-text", "condition" => $RtsEA == "edit"), array("type" => "text", "label" => $pS66y["name"], "name" => "name_input", "lang" => true), array("type" => "text", "label" => $pS66y["description"], "name" => "description_input", "lang" => true, "desc" => $this->l("leave blank to use auto generated description")), array("type" => "radio", "label" => $pS66y["s_pp_qty_policy"], "name" => "pp_qty_policy", "desc" => $this->l("ordered quantity specifies number of items (pieces, packs, etc.) or one item of the specified number of whole or fractional units (kg, m, ft, etc.)"), "values" => array(array("id" => "pp_qty_policy_0", "value" => 0, "label" => $pS66y["s_pp_qty_policy_0"]), array("id" => "pp_qty_policy_1", "value" => 1, "label" => $pS66y["s_pp_qty_policy_1"]), array("id" => "pp_qty_policy_2", "value" => 2, "label" => $pS66y["s_pp_qty_policy_2"]), array("id" => "pp_qty_policy_3", "value" => 3, "label" => $pS66y["s_pp_qty_policy_ext"])), "advice" => array("type" => "label description", "class" => "pp_qty_policy_0 pp_qty_policy_1", "bind" => "[type=radio][name=pp_qty_policy]", "html" => sprintf($this->l("Learn the difference between "%s" and "%s"."), $pS66y["s_pp_qty_policy_0"], $pS66y["s_pp_qty_policy_1"]), "key" => "pp_qty_policy")), array("type" => "radio", "label" => $pS66y["s_pp_qty_mode"], "name" => "pp_qty_mode", "desc" => $this->l("product quantity can be measured exactly or only approximately (the exact amount cannot be ordered) - only if quantity policy is set to units"), "values" => array(array("id" => "pp_qty_mode_0", "value" => 0, "label" => $pS66y["s_pp_qty_mode_0"]), array("id" => "pp_qty_mode_1", "value" => 1, "label" => $pS66y["s_pp_qty_mode_1"])), "checkboxes" => $aHM3P, "advice" => $this->advice("pp_qty_mode")), array("type" => "radio", "label" => $pS66y["s_pp_display_mode"], "name" => "pp_display_mode", "values" => array(array("id" => "pp_display_mode_0", "value" => 0, "label" => $pS66y["s_pp_display_mode_0"]), array("id" => "pp_display_mode_1", "value" => 1, "label" => $pS66y["s_pp_display_mode_1"])), "checkboxes" => $ce3UA, "advice" => $this->advice("pp_display_mode")), array("type" => "radio", "label" => $pS66y["s_pp_price_display_mode"], "name" => "pp_price_display_mode", "desc" => $this->l("show calculated price separately, display it in the position of the product price or hide the calculated price"), "values" => array(array("id" => "pp_price_display_mode_0", "value" => 0, "label" => $pS66y["s_pp_price_display_mode_0"]), array("id" => "pp_price_display_mode_1", "value" => 1, "label" => $pS66y["s_pp_price_display_mode_1"]), array("id" => "pp_price_display_mode_16", "value" => 16, "label" => $pS66y["s_pp_price_display_mode_16"])), "advice" => $this->advice("pp_price_display_mode")), $this->createHelperFormSelect("pp_price_text", array("label" => $pS66y["s_pp_price_text"], "desc" => $this->l("displayed after the product's price")), self::PROPERTY_TYPE_GENERAL, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_qty_text", array("label" => $pS66y["s_pp_qty_text"], "desc" => $this->l("displayed after the product's quantity")), self::PROPERTY_TYPE_GENERAL, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_unity_text", array("label" => $pS66y["s_pp_unity_text"], "desc" => $this->l("displayed for products with unit price greater than zero")), self::PROPERTY_TYPE_GENERAL, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("type" => "text", "label" => $pS66y["s_pp_unit_price_ratio"], "name" => "unit_price_ratio", "class" => "fixed-width-xl", "desc" => $this->l("used to auto calculate unit price in product catalog"), "advice" => $this->advice("pp_unit_price_ratio")), array("type" => "text", "label" => $pS66y["s_pp_minimum_price_ratio"], "name" => "minimum_price_ratio", "class" => "fixed-width-xl", "desc" => $this->l("used to calculate minimum price for quantity less than the specified threshold"), "advice" => $this->advice("pp_minimum_price_ratio")), array("type" => "text", "label" => $pS66y["s_pp_minimum_quantity"], "name" => "minimum_quantity", "class" => "fixed-width-x]", "desc" => sprintf("%s (%s)", $this->l("minimum quantity required to buy a product"), $pS66y["leave blank to use default"]) . $LtkGe, "form_group_class" => $zjZaN, "advice" => $this->advice("pp_minimum_quantity")), array("type" => "text", "label" => $pS66y["s_pp_maximum_quantity"], "name" => "maximum_quantity", "class" => "fixed-width-x]", "desc" => sprintf("%s (%s)", $this->l("maximum quantity for a product in the order per line"), $pS66y["leave blank to disable this feature"]) . $LtkGe, "form_group_class" => $zjZaN, "advice" => $this->advice("pp_maximum_quantity")), array("type" => "text", "label" => $pS66y["s_pp_total_maximum_quantity"], "name" => "total_maximum_quantity", "class" => "fixed-width-x]", "desc" => sprintf("%s (%s)", $this->l("total maximum quantity for a product per order"), $pS66y["leave blank to disable this feature"]) . $LtkGe, "form_group_class" => $zjZaN, "advice" => $this->advice("pp_total_maximum_quantity")), array("type" => "text", "label" => $pS66y["s_pp_default_quantity"], "name" => "default_quantity", "class" => "fixed-width-xl", "desc" => sprintf("%s (%s)", $this->l("initial quantity to buy a product"), $pS66y["leave blank to use default"]), "advice" => $this->advice("pp_default_quantity")), array("type" => "text", "label" => $pS66y["quantity step"], "name" => "qty_step", "class" => "fixed-width-x]", "desc" => sprintf("%s (%s)", $pS66y["quantity step"], $pS66y["leave blank to use default"]), "advice" => $this->advice("pp_qty_step")), array("type" => "text", "label" => $pS66y["s_pp_qty_values"], "name" => "qty_values", "advice" => $this->advice("pp_qty_values")), $this->createHelperFormSelect("pp_explanation", array("label" => $pS66y["s_pp_explanation"]), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("type" => "text", "label" => $pS66y["CSS classes"], "name" => "pp_css", "desc" => $this->l("specify valid CSS classes separated by space (these classes will be added to HTML for products using this template)") . "<br/>" . sprintf($this->l("add your classes definitions in the "%s" file"), PSM::normalizePath("themes/" . _THEME_NAME_ . "/modules/pproperties/css/custom.css")), "advice" => $this->advice("pp_css")), array("type" => "radio", "label" => $this->l("display available quantities mode"), "name" => "pp_bo_qty_available_display", "desc" => $this->l("display available quantities on the product page based on the template configuration (only if enabled in preferences)") . ($KdYsj["pp_bo_qty_available_display"] == 0 ? "<br>" . ($KdYsj["pp_qty_available_display"] == 2 ? $this->l("-- available quantities will be hidden on the product page for current template --") : $this->l("-- available quantities will be displayed on the product page for current template --")) : ''), "values" => array(array("id" => "pp_bo_qty_available_display_0", "value" => 0, "label" => $pS66y["auto"]), array("id" => "pp_bo_qty_available_display_1", "value" => 1, "label" => $pS66y["visible"]), array("id" => "pp_bo_qty_available_display_2", "value" => 2, "label" => $pS66y["hidden"])), "advice" => $this->advice("pp_bo_qty_available_display")), array("type" => "radio", "label" => $this->l("measurement system"), "name" => "pp_bo_measurement_system", "desc" => $this->l("unit measurement system used by this template (default - use measurement system defined in Settings)"), "values" => array(array("id" => "pp_bo_measurement_system_0", "value" => (int) PP::PP_MS_DEFAULT, "label" => $pS66y["default"]), array("id" => "pp_bo_measurement_system_1", "value" => (int) PP::PP_MS_METRIC, "label" => $pS66y["metric"]), array("id" => "pp_bo_measurement_system_2", "value" => (int) PP::PP_MS_NON_METRIC, "label" => $pS66y["non metric"])), "advice" => $this->advice("pp_bo_measurement_system")), array("type" => "radio", "label" => $this->l("visible in catalog"), "name" => "pp_bo_hidden", "desc" => $this->l("hidden template is not visible in the product catalog, but still used in the shop"), "values" => array(array("id" => "pp_bo_hidden_0", "value" => 0, "label" => $pS66y["visible"]), array("id" => "pp_bo_hidden_1", "value" => 1, "label" => $pS66y["hidden"])), "advice" => $this->advice("pp_bo_hidden")), array("type" => "radio", "label" => $this->l("customization"), "name" => "pp_customization", "desc" => $this->l("if you do not use user defined customizations, leave this option disabled"), "values" => array(array("id" => "pp_customization_1", "value" => 1, "label" => $pS66y["enabled"]), array("id" => "pp_customization_0", "value" => 0, "label" => $pS66y["disabled"])), "advice" => $this->advice("pp_customization")), array("type" => "hidden", "name" => "id"), array("type" => "hidden", "name" => "mode")), "buttons" => $NT0ye); $zw9EK->fields_value["id"] = $M0WV_; $zw9EK->fields_value["mode"] = $RtsEA; $zw9EK->fields_value["name_input"] = array(); $zw9EK->fields_value["description_input"] = array(); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["id_lang"]; $zw9EK->fields_value["name_input"][$khNAy] = isset($VJeUd[$khNAy]) ? PP::safeOutputValue($VJeUd[$khNAy][$M0WV_]["name"]) : ''; $zw9EK->fields_value["description_input"][$khNAy] = isset($VJeUd[$khNAy]) ? PP::safeOutputValue(isset($VJeUd[$khNAy][$M0WV_]["auto_desc"]) && $VJeUd[$khNAy][$M0WV_]["auto_desc"] || $RtsEA == "copy" ? '' : $VJeUd[$khNAy][$M0WV_]["description"]) : ''; SBAA8: } dGpc6: $zw9EK->fields_value["pp_qty_mode"] = (int) (($KdYsj["pp_qty_mode"] & 1) == 1); foreach ($pS66y["s_pp_qty_mode_options"] as $xc1Yt) { $zw9EK->fields_value["pp_qty_mode_" . $xc1Yt] = (int) (($KdYsj["pp_qty_mode"] & $xc1Yt) == $xc1Yt); X7Q6F: } ovUgk: $zw9EK->fields_value["pp_display_mode"] = (int) (($KdYsj["pp_display_mode"] & 1) == 1); foreach ($pS66y["s_pp_display_mode_options"] as $xc1Yt) { $zw9EK->fields_value["pp_display_mode_" . $xc1Yt] = (int) (($KdYsj["pp_display_mode"] & $xc1Yt) == $xc1Yt); Yne5g: } Ljb6z: $zw9EK->fields_value["pp_price_display_mode"] = $KdYsj["pp_price_display_mode"]; $zw9EK->fields_value["unit_price_ratio"] = (float) $KdYsj["pp_unit_price_ratio"] > 0 ? PP::presentQty($KdYsj["pp_unit_price_ratio"]) : ''; $zw9EK->fields_value["minimum_price_ratio"] = (float) $KdYsj["pp_minimum_price_ratio"] > 0 ? PP::presentQty($KdYsj["pp_minimum_price_ratio"]) : ''; $zw9EK->fields_value["minimum_quantity"] = $KdYsj["pp_bo_minimum_quantity_customized"] ? PP::presentQty($KdYsj["pp_minimum_quantity"]) : ''; $zw9EK->fields_value["maximum_quantity"] = $KdYsj["pp_maximum_quantity"] > 0 ? PP::presentQty($KdYsj["pp_maximum_quantity"]) : ''; $zw9EK->fields_value["total_maximum_quantity"] = $KdYsj["pp_total_maximum_quantity"] > 0 ? PP::presentQty($KdYsj["pp_total_maximum_quantity"]) : ''; $zw9EK->fields_value["default_quantity"] = $KdYsj["pp_has_default_quantity"] ? PP::presentQty($KdYsj["pp_default_quantity"]) : ''; $zw9EK->fields_value["qty_step"] = (float) $KdYsj["pp_qty_step"] > 0 ? PP::presentQty($KdYsj["pp_qty_step"]) : ''; $zw9EK->fields_value["qty_values"] = $KdYsj["pp_qty_values"]; $zw9EK->fields_value["pp_css"] = $KdYsj["pp_css"]; $zw9EK->fields_value["pp_bo_qty_available_display"] = $KdYsj["pp_bo_qty_available_display"]; $zw9EK->fields_value["pp_bo_measurement_system"] = $KdYsj["pp_bo_measurement_system"]; $zw9EK->fields_value["pp_bo_hidden"] = $KdYsj["pp_bo_hidden"]; $zw9EK->fields_value["pp_customization"] = $KdYsj["pp_customization"]; $MPLIi = isset($KdYsj["pp_ext_method"]) && isset($KdYsj["pp_ext_prop"]) ? count($KdYsj["pp_ext_prop"]) : 0; if ($MPLIi == 0) { goto gzv7a; } if ($MPLIi == 1 && ($KdYsj["pp_ext_method"] == 1 || $KdYsj["pp_ext_method"] == 2)) { goto UoL21; } $i2l14 = $KdYsj["pp_ext_method"]; goto dTYVS; gzv7a: $i2l14 = 0; goto dTYVS; UoL21: $i2l14 = 3; dTYVS: $zw9EK->fields_value["pp_ext_method"] = $i2l14; $zw9EK->fields_value["pp_ext_method_fallback"] = $i2l14; $zw9EK->fields_value["pp_ext_policy"] = isset($KdYsj["pp_ext_policy"]) ? $KdYsj["pp_ext_policy"] : 0; if ($KdYsj["pp_qty_policy"] == 2 && $zw9EK->fields_value["pp_ext_method"] > 0) { goto g0zkl; } $zw9EK->fields_value["pp_qty_policy"] = $KdYsj["pp_qty_policy"]; goto e6Pg_; g0zkl: $zw9EK->fields_value["pp_qty_policy"] = 3; e6Pg_: $zw9EK->fields_value["pp_ext_minimum_quantity"] = isset($KdYsj["pp_ext_minimum_quantity"]) && $KdYsj["pp_ext_minimum_quantity"] > 0 ? PP::presentQty($KdYsj["pp_ext_minimum_quantity"]) : ''; $zw9EK->fields_value["pp_ext_maximum_quantity"] = isset($KdYsj["pp_ext_maximum_quantity"]) && $KdYsj["pp_ext_maximum_quantity"] > 0 ? PP::presentQty($KdYsj["pp_ext_maximum_quantity"]) : ''; $zw9EK->fields_value["pp_ext_total_maximum_quantity"] = isset($KdYsj["pp_ext_total_maximum_quantity"]) && $KdYsj["pp_ext_total_maximum_quantity"] > 0 ? PP::presentQty($KdYsj["pp_ext_total_maximum_quantity"]) : ''; $zw9EK->fields_value["pp_ext_minimum_quantity_text"] = isset($KdYsj["pp_ext_minimum_quantity_text"]) ? $KdYsj["pp_ext_minimum_quantity_text"] : ''; $zw9EK->fields_value["pp_ext_maximum_quantity_text"] = isset($KdYsj["pp_ext_maximum_quantity_text"]) ? $KdYsj["pp_ext_maximum_quantity_text"] : ''; $zw9EK->fields_value["pp_ext_total_maximum_quantity_text"] = isset($KdYsj["pp_ext_total_maximum_quantity_text"]) ? $KdYsj["pp_ext_total_maximum_quantity_text"] : ''; $zw9EK->fields_value["pp_ext_minimum_price_ratio"] = isset($KdYsj["pp_ext_minimum_price_ratio"]) && $KdYsj["pp_ext_minimum_price_ratio"] > 0 ? PP::presentQty($KdYsj["pp_ext_minimum_price_ratio"]) : ''; $yfYQl = array(array("id" => 0, "name" => " "), array("id" => 1, "name" => $pS66y["s_multiplication"]), array("id" => 2, "name" => $pS66y["s_summation"]), array("id" => 3, "name" => $pS66y["s_single_dimension"])); if ($this->multidimensional_plugin && isset($this->multidimensional_plugin->pro)) { goto N2qHO; } $yfYQl[] = array("id" => 99, "name" => $pS66y["s_custom_calculation"]); goto MHk_a; N2qHO: $F4o7_ = Hook::exec("adminPproperties", array("mode" => "pp_ext_method_options_query", "s_custom_calculation" => $pS66y["s_custom_calculation"]), null, true); if (!(isset($F4o7_["ppropertiesmultidimensional"]) && is_array($F4o7_["ppropertiesmultidimensional"]))) { goto JUAGr; } foreach ($F4o7_["ppropertiesmultidimensional"] as $i2l14) { $yfYQl[] = $i2l14; I_y_8: } GIy5N: JUAGr: MHk_a: $T59MV = array("legend" => array("title" => Tools::ucfirst($pS66y["dimensions"])), "multidimensional-feature" => array("text" => $this->l("this feature is disabled if calculation method is not specified"), "disabled" => $this->l("This feature is disabled. To enable this feature please install multidimensional plugin from PS&More store."), "readme_url" => $this->multidimensional_plugin ? $this->multidimensional_plugin->readmeUrl() : '', "readme_pdf" => $this->multidimensional_plugin ? PSM::translate("user guide", null, "ppropertiesmultidimensional") : ''), "input" => array(array("type" => "select", "label" => $this->l("calculation method"), "name" => "pp_ext_method", "options" => array("query" => $yfYQl, "id" => "id", "name" => "name"), "advice" => $this->advice("pp_ext_method")), array("type" => "hidden", "name" => "pp_ext_method_fallback"), $this->createHelperFormSelect("pp_ext_title", array("label" => $this->l("dimensions block title"), "desc" => $this->l("text displayed as a title of the dimensions block"), "form_group_class" => "dimensions-toggle bottom-divider"), self::DIMENSIONS, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_ext_property", array("label" => $this->l("calculation result label"), "desc" => $this->l("text displayed as a label before the calculation result (leave blank to hide the calculation result)"), "form_group_class" => "dimensions-toggle"), self::DIMENSIONS, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_ext_text", array("label" => $this->l("calculation result text"), "desc" => $this->l("text displayed after the calculation result"), "form_group_class" => "dimensions-toggle"), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_ext_explanation", array("label" => $pS66y["s_pp_explanation"], "desc" => $this->l("text displayed below the calculation result") . "<br>" . $this->l("You can use macros to substitute dynamic quantity values."), "form_group_class" => "dimensions-toggle"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("type" => "text", "label" => $this->l("calculation minimum quantity"), "name" => "pp_ext_minimum_quantity", "class" => "fixed-width-xl", "desc" => sprintf("%s (%s)", $this->l("minimum quantity for the calculated result"), $pS66y["leave blank to disable this feature"]), "form_group_class" => "dimensions-toggle top-divider", "advice" => $this->advice("pp_ext_minimum_quantity")), array("type" => "text", "label" => $this->l("calculation maximum quantity"), "name" => "pp_ext_maximum_quantity", "class" => "fixed-width-xl", "desc" => sprintf("%s (%s)", $this->l("maximum quantity for the calculated result"), $pS66y["leave blank to disable this feature"]), "form_group_class" => "dimensions-toggle", "advice" => $this->advice("pp_ext_maximum_quantity")), $this->createHelperFormSelect("pp_ext_minimum_quantity_text", array("label" => $this->l("calculated minimum quantity text"), "desc" => $this->l("text displayed when the calculated quantity is less than the specified minimum") . "<br>" . $this->l("You can use macros to substitute dynamic quantity values."), "form_group_class" => "dimensions-toggle"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_ext_maximum_quantity_text", array("label" => $this->l("calculated maximum quantity text"), "desc" => $this->l("text displayed when the calculated quantity is more than the specified maximum") . "<br>" . $this->l("You can use macros to substitute dynamic quantity values."), "form_group_class" => "dimensions-toggle"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("type" => "text", "label" => $pS66y["s_pp_minimum_price_ratio"], "name" => "pp_ext_minimum_price_ratio", "class" => "fixed-width-xl", "desc" => $this->l("used to calculate minimum price for calculated quantity less than the specified threshold"), "form_group_class" => "dimensions-toggle top-divider", "advice" => $this->advice("pp_ext_minimum_price_ratio")), array("type" => "radio", "label" => $this->l("dimensions policy"), "name" => "pp_ext_policy", "desc" => $this->l("dimensions can be specified by the customer (default) or used by the packs calculator"), "form_group_class" => "dimensions-toggle bottom-divider", "values" => array(array("id" => "pp_ext_policy_0", "value" => 0, "label" => $pS66y["default"]), array("id" => "pp_ext_policy_1", "value" => 1, "label" => $this->l("packs calculator"))), "advice" => $this->advice("pp_ext_policy"))), "buttons" => $NT0ye); if (!($this->multidimensional_plugin && isset($this->multidimensional_plugin->pro))) { goto py5cH; } $this->addToForm($T59MV, array($this->createHelperFormSelect("pp_ext_total_property", array("label" => $this->l("total calculation result label"), "desc" => $this->l("text displayed as a label before the total calculation result (leave blank to hide the total calculation result)"), "form_group_class" => "dimensions-toggle"), self::DIMENSIONS, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("pp_ext_total_text", array("label" => $this->l("total calculation result text"), "desc" => $this->l("text displayed after the total calculation result"), "form_group_class" => "dimensions-toggle"), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $KdYsj, $XsykN, $jm2G6)), "pp_ext_explanation", 0); $this->addToForm($T59MV, array(array("type" => "text", "label" => $this->l("calculation total maximum quantity"), "name" => "pp_ext_total_maximum_quantity", "class" => "fixed-width-xl", "desc" => sprintf("%s (%s)", $this->l("total maximum quantity for the calculated result"), $pS66y["leave blank to disable this feature"]), "form_group_class" => "dimensions-toggle", "advice" => $this->advice("pp_ext_total_maximum_quantity"))), "pp_ext_maximum_quantity", 1); $this->addToForm($T59MV, array($this->createHelperFormSelect("pp_ext_total_maximum_quantity_text", array("label" => $this->l("calculated total maximum quantity text"), "desc" => $this->l("text displayed when the total calculated quantity is more than the specified maximum") . "<br>" . $this->l("You can use macros to substitute dynamic quantity values."), "form_group_class" => "dimensions-toggle"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6)), "pp_ext_maximum_quantity_text", 1); foreach ($T59MV["input"] as $SNYS6 => &$i2l14) { if (!(isset($i2l14["name"]) && $i2l14["name"] == "pp_ext_explanation")) { goto ePH3Y; } $i2l14["form_group_class"] .= " top-divider"; goto F29x3; ePH3Y: l2Sy0: } F29x3: unset($SNYS6, $i2l14); py5cH: $L0eIO = Hook::exec("adminPproperties", array("mode" => "createEditTemplateFormInput", "id_pp_template" => $M0WV_, "template" => $KdYsj), null, true); if (!is_array($L0eIO)) { goto UCiEf; } foreach ($L0eIO as $lTuJl => $V5pzO) { if (!is_array($V5pzO)) { goto teN2Q; } foreach ($V5pzO as $Clb6V) { if (!isset($Clb6V["dimensions_form"])) { goto puDt5; } $this->addToForm($T59MV, $Clb6V["dimensions_form"], $Clb6V["where"]["name"], $Clb6V["where"]["offset"], $zw9EK, $Clb6V["values"]); puDt5: cDIZv: } JvXPq: teN2Q: ATMR1: } lTgSZ: UCiEf: $HGNk0 = array($this->l("dimension"), $this->l("quantity text"), $this->l("minimum quantity"), $this->l("maximum quantity"), $this->l("default quantity"), $this->l("quantity step"), $this->l("quantity ratio"), $this->l("order quantity text")); $T59MV["dimensions-table"] = array("th" => $HGNk0, "tbody" => array()); $sg3Kg = isset($KdYsj["pp_ext_prop"]) ? count($KdYsj["pp_ext_prop"]) : 3; if (!((!$this->multidimensional_plugin || !isset($this->multidimensional_plugin->pro)) && $sg3Kg < 3)) { goto vnRCg; } $sg3Kg = 3; vnRCg: $w_T2M = 1; uDgnR: if (!($w_T2M <= $sg3Kg)) { goto MqnI5; } $LagWH = array(); $i2l14 = PP::getTemplateExtProperty($KdYsj, $w_T2M, "property"); $LagWH[] = $this->createHelperFormSelect("dimension_" . $w_T2M, array("data_type" => "dimension_", "data_position" => $w_T2M), self::PROPERTY_TYPE_EXT, $zw9EK, $i2l14, $XsykN, $jm2G6); $i2l14 = PP::getTemplateExtProperty($KdYsj, $w_T2M, "text"); $LagWH[] = $this->createHelperFormSelect("dimension_text_" . $w_T2M, array("data_type" => "dimension_text_", "data_position" => $w_T2M), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $i2l14, $XsykN, $jm2G6); $LagWH[] = array("type" => "text", "name" => "dimension_minimum_quantity_" . $w_T2M, "data_type" => "dimension_minimum_quantity_", "data_position" => $w_T2M); $LagWH[] = array("type" => "text", "name" => "dimension_maximum_quantity_" . $w_T2M, "data_type" => "dimension_maximum_quantity_", "data_position" => $w_T2M); $LagWH[] = array("type" => "text", "name" => "dimension_default_quantity_" . $w_T2M, "data_type" => "dimension_default_quantity_", "data_position" => $w_T2M); $LagWH[] = array("type" => "text", "name" => "dimension_qty_step_" . $w_T2M, "data_type" => "dimension_qty_step_", "data_position" => $w_T2M); $LagWH[] = array("type" => "text", "name" => "dimension_qty_ratio_" . $w_T2M, "data_type" => "dimension_qty_ratio_", "data_position" => $w_T2M); $zw9EK->fields_value["dimension_minimum_quantity_" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "minimum_quantity") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "minimum_quantity")) : ''; $zw9EK->fields_value["dimension_maximum_quantity_" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "maximum_quantity") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "maximum_quantity")) : ''; $zw9EK->fields_value["dimension_default_quantity_" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "default_quantity") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "default_quantity")) : ''; $zw9EK->fields_value["dimension_qty_step_" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "qty_step") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "qty_step")) : ''; $zw9EK->fields_value["dimension_qty_ratio_" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "qty_ratio") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "qty_ratio")) : ''; $i2l14 = PP::getTemplateExtProperty($KdYsj, $w_T2M, "order_text"); $LagWH[] = $this->createHelperFormSelect("dimension_order_text_" . $w_T2M, array("data_type" => "dimension_order_text_", "data_position" => $w_T2M), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $i2l14, $XsykN, $jm2G6); $BJD_A = array(); $BJD_A[] = array("td" => $LagWH); $EixGS = array("tr" => $BJD_A); $EixGS["dimension_index"] = $w_T2M; if (isset($KdYsj["pp_ext_prop"])) { goto VRh4x; } $EixGS["id_ext_prop"] = $w_T2M; goto oFEc_; VRh4x: if (isset($KdYsj["pp_ext_prop"][$w_T2M]["id_ext_prop"])) { goto gkLlv; } $EixGS["id_ext_prop"] = 0; $V3n23 = true; goto CzvJU; gkLlv: $EixGS["id_ext_prop"] = (int) $KdYsj["pp_ext_prop"][$w_T2M]["id_ext_prop"]; CzvJU: oFEc_: $T59MV["dimensions-table"]["tbody"][] = $EixGS; kYM0W: $w_T2M++; goto uDgnR; MqnI5: if (!isset($V3n23)) { goto u9x9Y; } $JsUNM = array(); foreach ($T59MV["dimensions-table"]["tbody"] as $EixGS) { if (!($EixGS["id_ext_prop"] != 0)) { goto BEmM8; } $JsUNM[] = $EixGS["id_ext_prop"]; BEmM8: XbMxA: } DGXtm: $tdCY3 = array_diff(range(1, max($JsUNM)), $JsUNM); foreach ($T59MV["dimensions-table"]["tbody"] as &$EixGS) { if (!($EixGS["id_ext_prop"] == 0)) { goto LKjqX; } if ($tdCY3) { goto QIkPz; } $EixGS["id_ext_prop"] = max($JsUNM) + 1; goto yeOxO; QIkPz: $EixGS["id_ext_prop"] = array_shift($tdCY3); yeOxO: $JsUNM[] = $EixGS["id_ext_prop"]; LKjqX: H_NOh: } M2l4j: u9x9Y: $m36jf = array("form" => $bPSJx, "dimensions_form" => $T59MV); $hfoP5 = Hook::exec("adminPproperties", array("mode" => "displayEditTemplateForm", "id_pp_template" => $M0WV_), null, true); if (!is_array($hfoP5)) { goto U51bC; } foreach ($hfoP5 as $lTuJl => $ZVupB) { if (!isset($ZVupB["form"])) { goto iU0mF; } if (isset($ZVupB["form"]["buttons"])) { goto ir74x; } $ZVupB["form"]["buttons"] = $NT0ye; ir74x: $m36jf[$lTuJl . "_form"] = $ZVupB["form"]; iU0mF: PqgX1: } eM9Qa: U51bC: $Vjs2g = $this->generateForm($zw9EK, $m36jf, array("id_pp_template" => $M0WV_, "multidimensional" => $this->multidimensional_plugin, "script" => array("multidimensional"))); return $Vjs2g; } private function getEditPropertyTabHtml($nsYp1, $RtsEA, $Gkfvq) { if ($this->integrated) { goto IZyiR; } return ''; IZyiR: $rvm1b = Context::getContext()->getTranslator(); $pS66y = $this->translations(); $U7zGz = (int) Tools::getValue("type"); if ($RtsEA == "add") { goto hvPZ2; } $M0WV_ = PP::getIntNonNegativeValue("id"); if (!($nsYp1 == null)) { goto OcWOj; } $nsYp1 = $this->getAllProperties(); OcWOj: goto kOcIb; hvPZ2: $M0WV_ = 0; if (!($nsYp1 == null)) { goto vMRR4; } foreach ($this->active_languages as $rDJFb) { $r_8WB = array(); $r_8WB["id_pp_property"] = $M0WV_; $r_8WB["type"] = $U7zGz; $r_8WB["text"] = ''; $nsYp1[$rDJFb["id_lang"]][$M0WV_] = $r_8WB; WCxY9: } WUj5W: vMRR4: kOcIb: $cWWug = $U7zGz == self::PROPERTY_TYPE_BLOCK_TEXT; $zw9EK = $this->createHelperForm("pp_property_form", $Gkfvq, "submitSaveProperty", "icon-edit"); $bPSJx = array("tinymce" => $cWWug, "input" => array(array("label" => $rvm1b->trans("ID", array(), "Admin.Global"), "type" => "div", "name" => $M0WV_, "class" => "control-text", "condition" => $RtsEA == "edit"), array("label" => Tools::ucfirst($pS66y["text"]), "type" => $cWWug ? "textarea" : "text", "name" => "text_input", "autoload_rte" => $cWWug, "lang" => true, "desc" => PP::resolveMS() != 2 ? $this->l("metric (to edit non metric value change measurement system in Settings)") : $this->l("non metric (to edit metric value change measurement system in Settings)")), array("type" => "hidden", "name" => "id"), array("type" => "hidden", "name" => "mode"), array("type" => "hidden", "name" => "type")), "buttons" => array(array("title" => $rvm1b->trans("Cancel", array(), "Admin.Actions"), "type" => "submit", "name" => "cancelSaveProperty", "icon" => "process-icon-cancel"))); $zw9EK->fields_value["id"] = $M0WV_; $zw9EK->fields_value["mode"] = $RtsEA; $zw9EK->fields_value["type"] = $U7zGz; $zw9EK->fields_value["text_input"] = array(); foreach ($nsYp1[$this->default_language_id] as $CCTBZ => $r_8WB) { if (!($CCTBZ == $M0WV_)) { goto E9FpJ; } foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["id_lang"]; $zw9EK->fields_value["text_input"][$khNAy] = PP::safeOutputValue($nsYp1[$khNAy][$M0WV_]["text"]); P6Z34: } mwGLb: goto A7rQM; E9FpJ: rtIPa: } A7rQM: return $this->generateForm($zw9EK, $bPSJx); } private function getTabIntegrationWarning() { return $this->l("Please go to the "Settings" tab and resolve the integration problems."); } private function showIntegrationTestResults($wwP6l) { foreach ($wwP6l as &$i2l14) { if (!is_array($i2l14)) { goto nlZG6; } asort($i2l14); nlZG6: V__qD: } qeWqU: return $wwP6l; } private function createTemplate($QRMUM) { $zw9EK = new Helper(); $zw9EK->module = $this; $zw9EK->base_folder = "pproperties/"; $zw9EK->base_tpl = $QRMUM . ".tpl"; $zw9EK->setTpl($zw9EK->base_tpl); $JqWIs = Tools::getAdminTokenLite("AdminModules"); $aK9Sd = AdminController::$currentIndex . "&configure=" . $this->name; $zw9EK->tpl_vars["_PS_ADMIN_IMG_"] = _PS_ADMIN_IMG_; $zw9EK->tpl_vars["current"] = $aK9Sd; $zw9EK->tpl_vars["currenturl"] = $aK9Sd . "&token=" . $JqWIs . "&pp=1&"; $zw9EK->tpl_vars["token"] = $JqWIs; $zw9EK->tpl_vars["integrated"] = $this->integrated; $zw9EK->tpl_vars["access_edit"] = $this->tabAccess["edit"] === "1"; return $zw9EK; } private function createHelperForm($vsf_s, $hb2et, $eeJqu, $mdgrW = null) { static $I4SXm = true; $zw9EK = new HelperForm(); $zw9EK->first_call = $I4SXm; $I4SXm = false; $zw9EK->module = $this; $zw9EK->title = $this->displayName; $zw9EK->name_controller = $this->name; $zw9EK->base_tpl = "pproperties_form.tpl"; $zw9EK->token = Tools::getAdminTokenLite("AdminModules"); $zw9EK->languages = $this->active_languages; $zw9EK->currentIndex = AdminController::$currentIndex . "&configure=" . $this->name; $zw9EK->default_form_language = $this->default_language_id; $zw9EK->allow_employee_form_lang = $this->context->controller->allow_employee_form_lang; $zw9EK->toolbar_scroll = true; $zw9EK->submit_action = ''; $zw9EK->id_form = $vsf_s; $zw9EK->pp_form = array("legend" => array("title" => $hb2et), "submit" => array("title" => Context::getContext()->getTranslator()->trans("Save", array(), "Admin.Actions"), "id" => $vsf_s . "_submit_btn", "name" => $eeJqu, "class" => "btn btn-default pull-right pp-action-btn" . ($this->tabAccess["edit"] === "1" ? '' : " disabled"))); if (!($mdgrW !== null)) { goto oDMhL; } $zw9EK->pp_form["legend"]["icon"] = $mdgrW; oDMhL: $zw9EK->tpl_vars["s_read_more"] = $this->l("Read more"); $zw9EK->tpl_vars["s_read_explanation"] = $this->l("Read explanation"); $zw9EK->tpl_vars["access_edit"] = $this->tabAccess["edit"] === "1"; return $zw9EK; } private function createHelperFormSelect($QRMUM, $j08Ks, $U7zGz, $zw9EK, $KdYsj, $XsykN, $jm2G6) { if (!($U7zGz !== false && !is_array($U7zGz))) { goto Ckrxg; } $U7zGz = array($U7zGz); Ckrxg: $F4o7_ = array(); $zw9EK->fields_value[$QRMUM] = 0; $F4o7_[] = array("id" => 0, "name" => " "); foreach ($XsykN[$this->default_language_id] as $M0WV_ => $wyE8z) { if (!($U7zGz === false || in_array($jm2G6[$M0WV_], $U7zGz))) { goto SD32Y; } $F4o7_[] = array("id" => $M0WV_, "name" => PP::safeOutputValue($wyE8z["text"])); if (is_array($KdYsj)) { goto xbAS8; } if (!($KdYsj == $wyE8z["text"])) { goto fokFL; } $zw9EK->fields_value[$QRMUM] = $M0WV_; fokFL: goto A4Zet; xbAS8: if (!(isset($KdYsj[$QRMUM]) && $KdYsj[$QRMUM] == $wyE8z["text"])) { goto hfzWQ; } $zw9EK->fields_value[$QRMUM] = $M0WV_; hfzWQ: A4Zet: SD32Y: u8v3A: } Z7XP2: $YXSm0 = array("type" => "select", "name" => $QRMUM, "options" => array("query" => $F4o7_, "id" => "id", "name" => "name"), "advice" => $this->advice($QRMUM)); if (!is_array($j08Ks)) { goto zReE4; } foreach ($j08Ks as $SNYS6 => $i2l14) { $YXSm0[$SNYS6] = $i2l14; tPlmC: } FdOn3: zReE4: return $YXSm0; } private function addToForm(&$bPSJx, $vhci9, $tMnlM, $BfilX, $zw9EK = null, $qIghV = null) { foreach ($bPSJx["input"] as $SNYS6 => $i2l14) { if (!(isset($i2l14["name"]) && $i2l14["name"] == $tMnlM)) { goto uCnHj; } foreach ($vhci9 as &$YjZDL) { if (!isset($YjZDL["advice_key"])) { goto jYAi4; } $YjZDL["advice"] = $this->advice($YjZDL["advice_key"]); jYAi4: EXx14: } sSo5t: array_splice($bPSJx["input"], $SNYS6 + $BfilX, 0, $vhci9); goto fNZWK; uCnHj: rH5Cy: } fNZWK: if (!$qIghV) { goto KQrw6; } foreach ($qIghV as $SNYS6 => $i2l14) { $zw9EK->fields_value[$SNYS6] = $i2l14; LBK_6: } s8TBf: KQrw6: } private function generateForm($zw9EK, $bPSJx, $bljz_ = null) { $PM56v = array("form" => array()); if (isset($bPSJx["form"])) { goto NI1vF; } $bPSJx = array("form" => $bPSJx); NI1vF: if (!(!isset($bPSJx["form"]["id_form"]) && isset($zw9EK->id_form))) { goto yft0P; } $bPSJx["form"]["id_form"] = $zw9EK->id_form; yft0P: foreach ($bPSJx as $SNYS6 => $HYoXt) { $PM56v[$SNYS6] = array("form" => array_merge($zw9EK->pp_form, $HYoXt)); if (!(isset($PM56v[$SNYS6]["form"]["buttons"]) && $PM56v[$SNYS6]["form"]["buttons"] === false)) { goto P6XpL; } unset($PM56v[$SNYS6]["form"]["buttons"]); unset($PM56v[$SNYS6]["form"]["submit"]); P6XpL: Ef_Sd: } jervE: if (!is_array($bljz_)) { goto QVsHn; } foreach ($bljz_ as $SNYS6 => $i2l14) { $PM56v["form"][$SNYS6] = $i2l14; wLqLA: } CQTZl: QVsHn: $PM56v["form"]["_PS_ADMIN_IMG_"] = _PS_ADMIN_IMG_; $PM56v["form"]["access_edit"] = $this->tabAccess["edit"] === "1"; static $fGWuY = false; if ($fGWuY) { goto pYPg0; } $fGWuY = true; $PM56v["form"]["form"]["input"][] = array("type" => "hidden", "name" => "pp"); $zw9EK->fields_value["pp"] = 1; pYPg0: return $zw9EK->generateForm($PM56v); } private function saveTemplate() { $d5Cih = array(); $d5Cih["error"] = ''; $RtsEA = Tools::getValue("mode"); if ($RtsEA == "add") { goto y0OEe; } if ($RtsEA == "copy") { goto AvTeI; } $RtsEA = "edit"; $M0WV_ = PP::getIntNonNegativeValue("id"); goto ULC8F; y0OEe: $M0WV_ = 0; goto ULC8F; AvTeI: $M0WV_ = PP::getIntNonNegativeValue("id"); ULC8F: if (!($M0WV_ < 0)) { goto H9DU3; } return $d5Cih; H9DU3: $s2qQM = array(); $VJeUd = array(); $HGV6k = array(); $HGV6k["pp_explanation"] = PP::getIntNonNegativeValue("pp_explanation"); $HGV6k["pp_price_text"] = PP::getIntNonNegativeValue("pp_price_text"); $HGV6k["pp_qty_text"] = PP::getIntNonNegativeValue("pp_qty_text"); $HGV6k["pp_unity_text"] = PP::getIntNonNegativeValue("pp_unity_text"); $pS66y = $this->translations(); $cC_UV = PP::getIntNonNegativeValue("pp_price_display_mode"); if (in_array($cC_UV, array(0, 1, 16))) { goto jNAYr; } $cC_UV = 0; jNAYr: $ike0A = PP::getIntNonNegativeValue("pp_bo_qty_available_display"); if (in_array($ike0A, array(0, 1, 2))) { goto E5up4; } $ike0A = 0; E5up4: $vrLR0 = PP::getIntNonNegativeValue("pp_bo_measurement_system"); $ODS33 = PP::getFloatNonNegativeValue("unit_price_ratio"); $fmq7C = PP::getFloatNonNegativeValue("minimum_price_ratio"); $DUzX4 = PP::getIntNonNegativeValue("pp_qty_policy"); $DUzX4 = $DUzX4 == 3 ? 2 : $DUzX4; $Wh10R = PP::getIntNonNegativeValue($this->multidimensional_plugin ? "pp_ext_method" : "pp_ext_method_fallback"); if (!($Wh10R < 0)) { goto YgCkQ; } $Wh10R = 0; YgCkQ: if (!($Wh10R == 3)) { goto n8uwj; } $Wh10R = 2; n8uwj: $tVfbS = 0; if (!($Wh10R > 0)) { goto USRrt; } $tVfbS = $Wh10R != 98 && $Wh10R != 99 ? PP::getIntNonNegativeValue("pp_ext_policy") : 0; if (in_array($tVfbS, array(0, 1))) { goto ScKcF; } $tVfbS = 0; ScKcF: $DUzX4 = $tVfbS == 1 ? 0 : 2; USRrt: $ikjDL = PP::getIntNonNegativeValue("pp_qty_mode") != 0 ? 1 : 0; foreach ($pS66y["s_pp_qty_mode_options"] as $xc1Yt) { if (!(PP::getIntNonNegativeValue("pp_qty_mode_" . $xc1Yt) > 0)) { goto RJj9S; } $ikjDL += $xc1Yt; RJj9S: mi9_Y: } bnTLK: if (!($DUzX4 == 0)) { goto vlNyX; } $ikjDL &= ~1; $ikjDL &= ~2; vlNyX: $iw1Yu = PP::getIntNonNegativeValue("pp_display_mode") != 0 ? 1 : 0; foreach ($pS66y["s_pp_display_mode_options"] as $xc1Yt) { if (!(PP::getIntNonNegativeValue("pp_display_mode_" . $xc1Yt) > 0)) { goto fV27K; } $iw1Yu += $xc1Yt; fV27K: IBMOI: } zs4_9: if ($DUzX4 == 2 && $Wh10R == 0) { goto b_yqn; } $FmzGv = PP::getIntNonNegativeValue("minimum_quantity"); $z9TjL = PP::getIntNonNegativeValue("maximum_quantity"); $jKXI4 = PP::getIntNonNegativeValue("total_maximum_quantity"); $mfoP5 = PP::getIntNonNegativeValue("default_quantity"); $TCLST = PP::getIntNonNegativeValue("qty_step"); goto pzdlx; b_yqn: $FmzGv = PP::getFloatNonNegativeValue("minimum_quantity"); $z9TjL = PP::getFloatNonNegativeValue("maximum_quantity"); $jKXI4 = PP::getFloatNonNegativeValue("total_maximum_quantity"); $mfoP5 = PP::getFloatNonNegativeValue("default_quantity"); $TCLST = PP::getFloatNonNegativeValue("qty_step"); pzdlx: $zY3kj = PP::getSpecificValues("qty_values", $DUzX4); $Qdbl5 = implode("|", $zY3kj); PP::resolveQuantities($FmzGv, $z9TjL, $mfoP5, $TCLST, $DUzX4, array("total_maximum_quantity" => &$jKXI4, "specific_values" => $zY3kj, "db" => true)); if (!$zY3kj) { goto hETRD; } if (!($DUzX4 == 0)) { goto bE5nD; } $DUzX4 = 1; bE5nD: hETRD: $OaTNn = PP::getIntNonNegativeValue("pp_bo_hidden") == 1 ? 1 : 0; $Xikpz = PP::getIntNonNegativeValue("pp_customization") == 1 ? 1 : 0; $ezQJE = PP::resolveMS($vrLR0); $euE1Z = Tools::getValue("pp_css"); foreach ($this->active_languages as $rDJFb) { $j08Ks = array(); $j08Ks["id_pp_template"] = $M0WV_; $j08Ks["qty_policy"] = $DUzX4; $j08Ks["qty_mode"] = $ikjDL; $j08Ks["display_mode"] = $iw1Yu; $j08Ks["price_display_mode"] = $cC_UV; $j08Ks["measurement_system"] = $vrLR0; $j08Ks["unit_price_ratio"] = $ODS33; $j08Ks["minimal_price_ratio"] = $fmq7C; $j08Ks["minimal_quantity"] = $FmzGv; $j08Ks["maximum_quantity"] = $z9TjL; $j08Ks["total_maximum_quantity"] = $jKXI4; $j08Ks["default_quantity"] = $mfoP5; $j08Ks["qty_step"] = $TCLST; $j08Ks["qty_values"] = $Qdbl5; $j08Ks["ext"] = $Wh10R > 0 ? 1 : 0; $j08Ks["qty_available_display"] = $ike0A; $j08Ks["css"] = $euE1Z; $j08Ks["hidden"] = $OaTNn; $j08Ks["customization"] = $Xikpz; $j08Ks["template_properties"] = $HGV6k; $KdYsj = array(); PP::calcProductProperties($KdYsj, $j08Ks); $KdYsj["pp_ext"] = $Wh10R > 0 ? 1 : 0; $khNAy = $rDJFb["id_lang"]; $this->getValue($KdYsj, "name", $pS66y["name"], $s2qQM, $khNAy); $KdYsj["description"] = Tools::getValue("description_input_" . $khNAy); $VJeUd[$khNAy][$M0WV_] = $KdYsj; JDhe1: } KPzjo: if (count($s2qQM) == 0) { goto gAy8x; } $d5Cih["error"] .= $this->l("Please fix the following errors:"); foreach ($s2qQM as $pyU8L) { $d5Cih["error"] .= "\xa <div>" . $pyU8L . "</div>"; g7gR3: } CAR8b: goto bxfKb; gAy8x: $he7ft = Db::getInstance(); if ($RtsEA == "edit") { goto gN2Cs; } $QYiU9 = $this->getNextId($he7ft, "pp_template", "id_pp_template"); $he7ft->execute("INSERT INTO `" . _DB_PREFIX_ . "pp_template` (id_pp_template, version) VALUE (" . $QYiU9 . ", 0)"); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["id_lang"]; $VJeUd[$khNAy][$M0WV_]["id_pp_template"] = $QYiU9; ClODv: } KSZOx: goto K_G0V; gN2Cs: $QYiU9 = $M0WV_; K_G0V: $he7ft->update("pp_template", array("version" => PP::PP_TEMPLATE_VERSION, "qty_policy" => $KdYsj["pp_qty_policy"], "qty_mode" => $KdYsj["pp_qty_mode"], "display_mode" => $KdYsj["pp_display_mode"], "price_display_mode" => $KdYsj["pp_price_display_mode"], "measurement_system" => $KdYsj["pp_bo_measurement_system"], "unit_price_ratio" => $KdYsj["pp_unit_price_ratio"], "minimal_price_ratio" => $KdYsj["pp_minimum_price_ratio"], "minimal_quantity" => $KdYsj["db_minimum_quantity"], "maximum_quantity" => $KdYsj["db_maximum_quantity"], "total_maximum_quantity" => $KdYsj["db_total_maximum_quantity"], "default_quantity" => $KdYsj["db_default_quantity"], "qty_step" => $KdYsj["db_qty_step"], "qty_values" => $KdYsj["db_qty_values"], "ext" => $KdYsj["pp_ext"], "qty_available_display" => $KdYsj["pp_bo_qty_available_display"], "hidden" => $KdYsj["pp_bo_hidden"], "customization" => $KdYsj["pp_customization"], "css" => $KdYsj["pp_css"]), "id_pp_template = " . $QYiU9); $he7ft->delete("pp_template_property", "id_pp_template = " . $QYiU9); foreach ($HGV6k as $SNYS6 => $i2l14) { $HGV6k[$SNYS6] = "({$QYiU9},'{$SNYS6}',{$i2l14})"; lPBgI: } IOy7h: $he7ft->execute("INSERT INTO " . _DB_PREFIX_ . "pp_template_property (id_pp_template,pp_name,id_pp_property) VALUES " . implode(",", $HGV6k)); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["id_lang"]; $KdYsj = $VJeUd[$khNAy][$M0WV_]; $fauXG = $he7ft->getRow("SELECT * FROM `" . _DB_PREFIX_ . "pp_template_lang` WHERE id_pp_template = " . (int) $QYiU9 . " AND id_lang=" . (int) $khNAy); if (!($fauXG === false)) { goto juZLW; } $fauXG = array("description_1" => '', "description_2" => '', "id_pp_template" => $QYiU9, "id_lang" => $khNAy); juZLW: $ZSw74 = $KdYsj["description"] == '' ? 1 : 0; $fauXG[$ezQJE != 2 ? "description_1" : "description_2"] = pSQL($KdYsj["description"], true); $fauXG[$ezQJE != 2 ? "auto_desc_1" : "auto_desc_2"] = $ZSw74; $fauXG["name"] = pSQL($KdYsj["name"], true); $he7ft->delete("pp_template_lang", "id_pp_template = " . $QYiU9 . " AND id_lang=" . $khNAy); $he7ft->insert("pp_template_lang", $fauXG); as_JU: } B3F91: if (!$this->multidimensional_plugin) { goto ZVXJQ; } $this->multidimensional_plugin->saveTemplate($QYiU9, $Wh10R, $tVfbS); ZVXJQ: $VJeUd = null; Hook::exec("adminPproperties", array("mode" => "actionTemplateSave", "id_pp_template" => $QYiU9)); PP::resetTemplates(); bxfKb: $d5Cih["templates"] = $VJeUd; return $d5Cih; } private function saveProperty() { $d5Cih = array(); $d5Cih["error"] = ''; $RtsEA = Tools::getValue("mode"); $U7zGz = Tools::getValue("type"); if ($RtsEA == "add") { goto e_hvB; } $RtsEA = "edit"; $M0WV_ = PP::getIntNonNegativeValue("id"); goto NYAIk; e_hvB: $M0WV_ = 0; NYAIk: if (!($M0WV_ < 0)) { goto zBaUd; } return $d5Cih; zBaUd: $U7zGz = Tools::getValue("type"); $s2qQM = array(); $nsYp1 = array(); $pS66y = $this->translations(); foreach ($this->active_languages as $rDJFb) { $r_8WB = array(); $khNAy = $rDJFb["id_lang"]; $this->getValue($r_8WB, "text", $pS66y["text"], $s2qQM, $khNAy); $nsYp1[$khNAy][$M0WV_] = $r_8WB; f2lT_: } uPa6v: if (count($s2qQM) == 0) { goto BnLLU; } $d5Cih["error"] .= $this->l("Please fix the following errors:"); foreach ($s2qQM as $pyU8L) { $d5Cih["error"] .= "\xa <div>" . $pyU8L . "</div>"; kojPO: } QNI9g: goto AK7vR; BnLLU: $he7ft = Db::getInstance(); if ($RtsEA == "edit") { goto bzaDk; } $CCTBZ = $this->getNextId($he7ft, "pp_property", "id_pp_property"); $he7ft->execute("INSERT INTO `" . _DB_PREFIX_ . "pp_property` (id_pp_property, type) VALUE (" . $CCTBZ . ", " . $U7zGz . ")"); foreach ($this->active_languages as $rDJFb) { $nsYp1[$rDJFb["id_lang"]][$M0WV_]["id_pp_property"] = $CCTBZ; PUeob: } pz4WH: goto FoxxR; bzaDk: $CCTBZ = $M0WV_; FoxxR: foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["id_lang"]; $fauXG = $he7ft->getRow("SELECT * FROM `" . _DB_PREFIX_ . "pp_property_lang` WHERE id_pp_property = " . (int) $CCTBZ . " AND id_lang=" . (int) $khNAy); if (!($fauXG === false)) { goto KIGUC; } $fauXG = array("text_1" => '', "text_2" => '', "id_pp_property" => $CCTBZ, "id_lang" => $khNAy); KIGUC: $r_8WB = $nsYp1[$khNAy][$M0WV_]; $X6BQ3 = pSQL($r_8WB["text"], true); if (PP::resolveMS() != 2) { goto r2e99; } $fauXG["text_2"] = $X6BQ3; if (!($fauXG["text_1"] == '')) { goto yqwTL; } $fauXG["text_1"] = $X6BQ3; yqwTL: goto BIecx; r2e99: $fauXG["text_1"] = $X6BQ3; if (!($fauXG["text_2"] == '')) { goto i4Mrw; } $fauXG["text_2"] = $X6BQ3; i4Mrw: BIecx: $he7ft->delete("pp_property_lang", "id_pp_property = " . $CCTBZ . " AND id_lang=" . $khNAy); if (!($fauXG["text_1"] != '' || $fauXG["text_2"] != '')) { goto caiie; } $he7ft->insert("pp_property_lang", $fauXG); caiie: ejwKR: } RU2XC: AK7vR: $d5Cih["properties"] = $nsYp1; return $d5Cih; } private function deleteTemplate() { $M0WV_ = PP::getIntNonNegativeValue("id"); if (!($M0WV_ <= 0)) { goto CQxU2; } return; CQxU2: $he7ft = Db::getInstance(); $he7ft->delete("pp_template", "id_pp_template = " . $M0WV_); $he7ft->delete("pp_template_lang", "id_pp_template = " . $M0WV_); $he7ft->delete("pp_template_property", "id_pp_template = " . $M0WV_); $he7ft->delete("pp_template_ext", "id_pp_template = " . $M0WV_); $he7ft->delete("pp_template_ext_prop", "id_pp_template = " . $M0WV_); Hook::exec("adminPproperties", array("mode" => "actionTemplateDelete", "id_pp_template" => $M0WV_)); } private function deleteProperty() { $M0WV_ = PP::getIntNonNegativeValue("id"); if (!($M0WV_ > 0)) { goto lojnx; } $he7ft = Db::getInstance(); $he7ft->delete("pp_property", "id_pp_property = " . $M0WV_); $he7ft->delete("pp_property_lang", "id_pp_property = " . $M0WV_); $he7ft->delete("pp_template_property", "id_pp_property = " . $M0WV_); lojnx: } private function changeHiddenStatus() { $M0WV_ = PP::getIntNonNegativeValue("id"); if (!($M0WV_ <= 0)) { goto c39Nb; } return; c39Nb: Db::getInstance()->update("pp_template", array("hidden" => (int) Tools::getValue("show", 1) ? "0" : "1"), "`id_pp_template` = " . $M0WV_); } public function generateDescription($KdYsj) { $vpEpV = ''; if ($KdYsj["pp_qty_policy"] == 1) { goto RdCVp; } if ($KdYsj["pp_qty_policy"] == 2) { goto je00O; } $vpEpV .= $this->l("Product sold in items"); goto MTlzz; RdCVp: $vpEpV .= $this->l("Product sold in whole units"); goto MTlzz; je00O: if ($KdYsj["pp_ext"] > 0) { goto ivPE3; } $vpEpV .= $this->l("Product sold in fractional units"); goto HcZ80; ivPE3: $vpEpV .= $this->l("Product uses multidimensional feature"); HcZ80: MTlzz: if (!($KdYsj["pp_qty_mode"] && !PP::qtyPolicyLegacy($KdYsj["pp_qty_policy"]))) { goto cx_e5; } $vpEpV .= ", " . $this->l("approximate quantity and price (the exact quantity cannot be ordered)"); cx_e5: if (!(($KdYsj["pp_qty_mode"] & 1) == 1)) { goto IybR1; } $vpEpV .= ", " . $this->l("aggregate quantities"); IybR1: if (!(($KdYsj["pp_display_mode"] & 1) == 1)) { goto dLq70; } $vpEpV .= ", " . $this->l("reversed price display"); dLq70: if (!(($KdYsj["pp_display_mode"] & 2) == 2)) { goto YbZxy; } $vpEpV .= ", " . $this->l("retail price"); YbZxy: return $vpEpV; } private function getValue(&$KdYsj, $SNYS6, $QRMUM, &$s2qQM, $khNAy) { $oQS4h = Tools::getValue($SNYS6 . "_input_" . $this->default_language_id); if (!empty($oQS4h)) { goto pnPk1; } $Y0KHh = Language::getLanguage($this->default_language_id); $s2qQM[$SNYS6] = sprintf($this->l("%s cannot be empty in %s"), $QRMUM, $Y0KHh["name"]); goto VqQC9; pnPk1: $oQS4h = PP::amendTinymceText($oQS4h); VqQC9: $i2l14 = Tools::getValue($SNYS6 . "_input_" . $khNAy); if (empty($i2l14)) { goto bCa4q; } $i2l14 = PP::amendTinymceText($i2l14); if (Validate::isCleanHtml($i2l14)) { goto Mk41B; } $rDJFb = Language::getLanguage($khNAy); $s2qQM[$SNYS6] = sprintf("Invalid %s for %s language", $QRMUM, $rDJFb["name"]); Mk41B: bCa4q: $KdYsj[$SNYS6] = $i2l14; } private function getPropertyTypes() { $d5Cih = array(); $aW1b2 = Db::getInstance()->ExecuteS("SELECT * FROM `" . _DB_PREFIX_ . "pp_property`"); foreach ($aW1b2 as $JpSqf) { $d5Cih[$JpSqf["id_pp_property"]] = $JpSqf["type"]; V3R4M: } dmyr_: return $d5Cih; } private function getAllProperties($ezQJE = false) { $ezQJE = PP::resolveMS($ezQJE); $XsykN = array(); $he7ft = Db::getInstance(); $aW1b2 = $he7ft->executeS("SELECT * FROM `" . _DB_PREFIX_ . "pp_property_lang`"); $pA1F5 = $he7ft->executeS("SELECT * FROM `" . _DB_PREFIX_ . "pp_property`"); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["id_lang"]; $nsYp1 = array(); foreach ($pA1F5 as $r_8WB) { $CCTBZ = $r_8WB["id_pp_property"]; $r_8WB["text"] = ''; $r_8WB["text_1"] = ''; $r_8WB["text_2"] = ''; $hw0fC = $this->getAllPropertiesLang($r_8WB, $aW1b2, $CCTBZ, $khNAy, $ezQJE); if ($hw0fC) { goto bfsYN; } $this->getAllPropertiesLang($r_8WB, $aW1b2, $CCTBZ, 1, $ezQJE); bfsYN: $nsYp1[$CCTBZ] = $r_8WB; CoI2s: } MypWJ: $XsykN[$khNAy] = $nsYp1; vmuSx: } k4_13: return $XsykN; } private function getAllPropertiesLang(&$r_8WB, $aW1b2, $CCTBZ, $khNAy, $ezQJE = false) { foreach ($aW1b2 as $JpSqf) { if (!($JpSqf["id_pp_property"] == $CCTBZ && $JpSqf["id_lang"] == $khNAy)) { goto lqUtn; } $r_8WB["text"] = $ezQJE != 2 ? $JpSqf["text_1"] : $JpSqf["text_2"]; $r_8WB["text_1"] = $JpSqf["text_1"]; $r_8WB["text_2"] = $JpSqf["text_2"]; return true; lqUtn: ns4ks: } y04mP: return false; } public function integrationKey() { return _PS_VERSION_ . "|" . $this->integrationVersion(); } public function integrationVersion() { return $this->version; } public function setupInstance() { return PSMHelper::ppSetupInstance($this); } public function plugins() { return array("ppropertiesplugin" => array(array("3.7"), null), "ppropertiesmultidimensional" => array(array("3.6"), null), "ppropertiessmartprice" => array(array("3.5"), null)); } public function registerModuleMedia($mtO6V) { if (!(is_array($mtO6V) && Module::isInstalled($this->name))) { goto hI0K9; } $wBTO_ = Configuration::getGlobalValue("PP_MODULE_MEDIA"); $wBTO_ = is_string($wBTO_) ? json_decode($wBTO_, true) : array(); foreach ($mtO6V as $QRMUM => $oAcDS) { $wBTO_[$QRMUM] = $oAcDS; BpOtc: } wbfgs: Configuration::updateGlobalValue("PP_MODULE_MEDIA", json_encode($wBTO_)); hI0K9: } public function unregisterModuleMedia($mtO6V) { if (!Validate::isLoadedObject($mtO6V)) { goto UAR8f; } $mtO6V = array($mtO6V->name); UAR8f: if (!is_array($mtO6V)) { goto FEqXG; } $wBTO_ = Configuration::getGlobalValue("PP_MODULE_MEDIA"); if (!is_string($wBTO_)) { goto IYGNR; } $wBTO_ = json_decode($wBTO_, true); foreach ($mtO6V as $QRMUM) { if (!array_key_exists($QRMUM, $wBTO_)) { goto pgo9z; } unset($wBTO_[$QRMUM]); pgo9z: GjxmJ: } rrqld: if (count($wBTO_)) { goto SsEwm; } Configuration::deleteByName("PP_MODULE_MEDIA"); goto hZOt9; SsEwm: Configuration::updateGlobalValue("PP_MODULE_MEDIA", json_encode($wBTO_)); hZOt9: IYGNR: FEqXG: } public function advice($SNYS6, $KbDzJ = false) { static $IcfYM = null; if (!($IcfYM === null)) { goto UZWjo; } $IcfYM = array(); if (!is_file(dirname(__FILE__) . "/help/admin/help.inc")) { goto RtNGp; } $help = array(); include_once dirname(__FILE__) . "/help/admin/help.inc"; $IcfYM = $help; $IlySw = Hook::exec("adminPproperties", array("mode" => "help.inc"), null, true); if (!is_array($IlySw)) { goto fhwZJ; } foreach ($IlySw as $Q_gK0 => $help) { if (!is_array($help)) { goto SZGtc; } $IcfYM = array_merge($IcfYM, $help); SZGtc: vxo2o: } zfvYB: fhwZJ: RtNGp: UZWjo: if (!array_key_exists($SNYS6, $IcfYM)) { goto foIlM; } if ($KbDzJ === false) { goto saZoQ; } return $IcfYM[$SNYS6]; goto trTYP; saZoQ: return array("type" => "label", "key" => $SNYS6); trTYP: foIlM: return false; } private function createHeaderJsScript($UOdI4 = false) { $iTg4E = "<script type="text/javascript" data-keepinline="true">" . "if(typeof window.pp!=="object"){window.pp={};}" . "window.pp.psversion="" . _PS_VERSION_ . "";" . "window.pp.version="" . PSM::moduleVersion($this) . "";" . "window.pp.theme="" . str_replace(array(".", " "), "_", defined("_PARENT_THEME_NAME_") && _PARENT_THEME_NAME_ ? _PARENT_THEME_NAME_ : _THEME_NAME_) . "";" . "window.pp.controller="" . Tools::strtolower($this->context->controller->php_self) . "";" . "window.pp.module="" . Tools::getValue("module") . "";" . "window.pp.debug=" . (int) Configuration::getGlobalValue("PP_DEBUG") . ";" . "window.pp.cfg = {" . "amendProductDisplay: "" . (string) Configuration::getGlobalValue("PP_JS_AMENDPRODUCTDISPLAY") . ""," . "loader: "" . (string) Configuration::getGlobalValue("PP_JS_LOADER") . """ . "};"; if (!$this->integrated) { goto RR2tj; } $iTg4E .= "pp.decimalSign="" . PP::getDecimalSign() . "";"; RR2tj: if ($UOdI4 === false && (int) Configuration::get("PP_POWEREDBY")) { goto vnZhU; } if ($UOdI4 === true && PSM::isDemo()) { goto NlHiR; } goto mrQu0; vnZhU: $iTg4E .= "window.pp.psandmore_url = "" . PSM::authorUrl() . "";"; $iTg4E .= "window.pp.powered_by_psandmore_text = "" . sprintf($this->l("Powered by %s"), "PS&More™") . "";"; $iTg4E .= "window.pp.powered_by_psandmore_title = "" . sprintf($this->l("This site is using Product Properties Extension powered by %s"), "PS&More™") . "";"; goto mrQu0; NlHiR: $iTg4E .= "window.pp.demo=true;"; mrQu0: $iTg4E .= "</script>"; return $iTg4E; } private function getNextId($he7ft, $PiCTQ, $kK84u) { $b1xPL = (int) $he7ft->getValue("SELECT max(`" . $kK84u . "`) FROM `" . _DB_PREFIX_ . $PiCTQ . "`"); if (!($b1xPL < self::USER_START_ID)) { goto W1m2k; } return self::USER_START_ID; W1m2k: return ++$b1xPL; } private function compatibilityText() { if ($this->ps_versions_compliancy["min"] == $this->ps_versions_compliancy["max"]) { goto UDvrk; } return sprintf($this->l("This version of %s module works only with PrestaShop versions %s - %s."), $this->displayName, $this->ps_versions_compliancy["min"], $this->ps_versions_compliancy["max"]); goto emtQj; UDvrk: return sprintf($this->l("This version of %s module works only with PrestaShop version %s."), $this->displayName, $this->ps_versions_compliancy["min"]); emtQj: } private function checkIntegration($Erij2) { $Erij2->sanityCheck(); $Erij2->checkIntegration(); if ($this->integrated) { goto B8AGn; } $Erij2->runSetup(); B8AGn: } private function psmIntegrate() { if (defined("PSM_DIR")) { goto d0A79; } if (!is_file(dirname(__FILE__) . "/psm.config.inc")) { goto TrImK; } include_once dirname(__FILE__) . "/psm.config.inc"; $iTg4E = "if (is_file(_PS_MODULE_DIR_.'" . basename(dirname(__FILE__)) . "/psm.config.inc" . "')) {" . "include_once(_PS_MODULE_DIR_.'" . basename(dirname(__FILE__)) . "/psm.config.inc" . "');" . "}"; $phbU3 = false; if (is_file(_PS_CUSTOM_CONFIG_FILE_)) { goto AtkaJ; } $iTg4E = "<?php
" . $iTg4E; $phbU3 = true; goto ZALVc; AtkaJ: $KbDzJ = php_strip_whitespace(_PS_CUSTOM_CONFIG_FILE_); if (!(empty($KbDzJ) || strpos($KbDzJ, $iTg4E) === false)) { goto xYiwU; } $iTg4E = "\xa" . $iTg4E; $phbU3 = true; xYiwU: ZALVc: if (!$phbU3) { goto tjf1b; } file_put_contents(_PS_CUSTOM_CONFIG_FILE_, $iTg4E . "
", FILE_APPEND); if (!function_exists("opcache_invalidate")) { goto EVW06; } opcache_invalidate(_PS_CUSTOM_CONFIG_FILE_); EVW06: tjf1b: TrImK: d0A79: } }
/*
$->l('Product Properties Extension');
$->l('Extends product properties and add support for products with fractional units of measurements (for example: weight, length, volume)');
$->l('When you uninstall this module the user data is not lost and remains in the database. It will be available next time you install the module.');
$->l('Requires PHP version %s or above. Currently running PHP %s version.');
$->l('Please uninstall the "%s" module.');
$->l('%s: Please uninstall this module before upgrading and obtain, if needed, version compatible with your new PrestaShop version.');
$->l('%s: Integration warning. Your site will not work properly until you resolve the integration problems. %s');
$->l('(click here)');
$->l('Assign or change product template');
$->l('Product template');
$->l('Please save this product before making any other changes.');
$->l('You can assign or remove template for several products in one operation using bulk actions in product\'s catalog.');
$->l('Configure templates');
$->l('Edit this template');
$->l('Read user guide');
$->l('Please resolve integration problems.');
$->l('This product uses Product Properties Extension template');
$->l('multiplication: dimensions in all directions are multiplied (giving area or volume)');
$->l('summation: dimensions in all directions are added');
$->l('single dimension');
$->l('custom calculation');
$->l('inline explanation');
$->l('quantity threshold for minimum price');
$->l('To disable the module please uninstall it.');
$->l('Required "%s" plugin API version %s, found plugin API version %s.');
$->l('Pro');
$->l('Premium');
$->l('user guide');
$->l('leave blank to use default');
$->l('leave blank to disable this feature');
$->l('item');
$->l('items');
$->l('in stock');
$->l('out of stock');
$->l('Quantity update not supported.');
$->l('Product not found in the cart (invalid cart product reference).');
$->l('You cannot order more than %quantity% %text% for %name%.');
$->l('You cannot order more than %quantity% %text% in total for %name%.');
$->l('You should add at least %quantity% %text% for %name%.');
$->l('Multidimensional plugin not installed.');
$->l('Manage templates');
$->l('Please choose template.');
$->l('Assign template');
$->l('Remove template');
$->l('Edit template');
$->l('template');
$->l('templates');
$->l('statistics');
$->l('show less');
$->l('show more');
$->l('show less details');
$->l('show more details');
$->l('You can assign or remove template for several products at once. Please choose the template below and select products from the list.');
$->l('Changing template assignment');
$->l('Changing product...');
$->l('Changing template in progress...');
$->l('Changing template failed.');
$->l('Show module in PS&More menu section');
$->l('File upload failed.');
$->l('Cannot delete "%s" directory.');
$->l('Cannot create "%s" file.');
$->l('auto');
$->l('visible');
$->l('hidden');
$->l('explanation');
$->l('texts');
$->l('dimension');
$->l('dimensions');
$->l('metric');
$->l('non metric');
$->l('non metric (imperial/US)');
$->l('CSS classes');
$->l('Run analysis');
$->l('(requires Multidimensional plugin Pro or Premium)');
$->l('The minimum quantity required to buy this product');
$->l('(set to %d to use the template default)');
$->l('The minimum quantity required to buy this product (set to 1 to disable this feature)');
$->l('minimum quantity defined in template is');
$->l('specified by template');
$->l('You can only add to a pack products sold in items (cannot add products sold by weight, length, etc.).');
$->l('quantity policy');
$->l('quantity mode');
$->l('display mode');
$->l('price display mode');
$->l('price text');
$->l('quantity text');
$->l('unit price text');
$->l('unit price ratio');
$->l('minimum quantity');
$->l('maximum quantity');
$->l('total maximum quantity');
$->l('default quantity');
$->l('quantity step');
$->l('specific quantity values');
$->l('whole units');
$->l('fractional units');
$->l('multidimensional');
$->l('exact quantity');
$->l('approximate quantity');
$->l('aggregate quantities');
$->l('normal');
$->l('reversed price display (display unit price as price)');
$->l('display retail price as unit price');
$->l('display base unit price for all combinations');
$->l('hide extra details for unit price in orders and invoices');
$->l('hide extra details for quantity in orders and invoices');
$->l('hide extra details for product total price in orders and invoices');
$->l('display legacy product price');
$->l('display unit price in orders and invoices');
$->l('as product price');
$->l('hide price display');
$->l('Minimum quantity in multidimensional template refers to the number of items');
$->l('price');
$->l('Non PrestaShop modules disabled.');
$->l('This module is not fully compatible with the installed PrestaShop version.');
$->l('Please upgrade to the newer version.');
$->l('Integration test failed.');
$->l('Properties');
$->l('Add template');
$->l('Add property attribute');
$->l('Add property text');
$->l('Add property dimension');
$->l('Edit property');
$->l('Run Setup');
$->l('ignored');
$->l('integation activated');
$->l('please run setup');
$->l('update downloaded');
$->l('no updates available - please contact customer support');
$->l('error occurred');
$->l('Measurement system');
$->l('unit measurement system used by default (can be overridden in template)');
$->l('Display measurement system');
$->l('customer selected measurement system works only for templates that use the default unit measurement system');
$->l('Add a block allowing customers to choose their preferred measurement system.');
$->l('Display "Powered by PS&More"');
$->l('Show templates in the catalog');
$->l('show or hide template names in the products catalog');
$->l('Display positions');
$->l('show or hide position names on the product\'s page (use it only for testing)');
$->l('Setup completed successfully.');
$->l('Integration Instructions');
$->l('in multidimensional template the quantity refers to the number of items');
$->l('leave blank to use auto generated description');
$->l('ordered quantity specifies number of items (pieces, packs, etc.) or one item of the specified number of whole or fractional units (kg, m, ft, etc.)');
$->l('Learn the difference between "%s" and "%s".');
$->l('product quantity can be measured exactly or only approximately (the exact amount cannot be ordered) - only if quantity policy is set to units');
$->l('show calculated price separately, display it in the position of the product price or hide the calculated price');
$->l('displayed after the product\'s price');
$->l('displayed after the product\'s quantity');
$->l('displayed for products with unit price greater than zero');
$->l('used to auto calculate unit price in product catalog');
$->l('used to calculate minimum price for quantity less than the specified threshold');
$->l('minimum quantity required to buy a product');
$->l('maximum quantity for a product in the order per line');
$->l('total maximum quantity for a product per order');
$->l('initial quantity to buy a product');
$->l('specify valid CSS classes separated by space (these classes will be added to HTML for products using this template)');
$->l('add your classes definitions in the "%s" file');
$->l('display available quantities mode');
$->l('display available quantities on the product page based on the template configuration (only if enabled in preferences)');
$->l('-- available quantities will be hidden on the product page for current template --');
$->l('-- available quantities will be displayed on the product page for current template --');
$->l('measurement system');
$->l('unit measurement system used by this template (default - use measurement system defined in Settings)');
$->l('visible in catalog');
$->l('hidden template is not visible in the product catalog, but still used in the shop');
$->l('customization');
$->l('if you do not use user defined customizations, leave this option disabled');
$->l('this feature is disabled if calculation method is not specified');
$->l('This feature is disabled. To enable this feature please install multidimensional plugin from PS&More store.');
$->l('calculation method');
$->l('dimensions block title');
$->l('text displayed as a title of the dimensions block');
$->l('calculation result label');
$->l('text displayed as a label before the calculation result (leave blank to hide the calculation result)');
$->l('calculation result text');
$->l('text displayed after the calculation result');
$->l('text displayed below the calculation result');
$->l('You can use macros to substitute dynamic quantity values.');
$->l('calculation minimum quantity');
$->l('minimum quantity for the calculated result');
$->l('calculation maximum quantity');
$->l('maximum quantity for the calculated result');
$->l('calculated minimum quantity text');
$->l('text displayed when the calculated quantity is less than the specified minimum');
$->l('calculated maximum quantity text');
$->l('text displayed when the calculated quantity is more than the specified maximum');
$->l('used to calculate minimum price for calculated quantity less than the specified threshold');
$->l('dimensions policy');
$->l('dimensions can be specified by the customer (default) or used by the packs calculator');
$->l('dimensions can be specified by the customer (default) or used by the packs calculator or used as the product properties affecting price, visible in the shop and editable only in the back office');
$->l('packs calculator');
$->l('product properties');
$->l('Show in position');
$->l('specify display position of the dimensions block on the product\'s page');
$->l('To show position names enable "Display positions" options in the "Settings" tab.');
$->l('total calculation result label');
$->l('text displayed as a label before the total calculation result (leave blank to hide the total calculation result)');
$->l('total calculation result text');
$->l('text displayed after the total calculation result');
$->l('calculation total maximum quantity');
$->l('total maximum quantity for the calculated result');
$->l('calculated total maximum quantity text');
$->l('text displayed when the total calculated quantity is more than the specified maximum');
$->l('quantity ratio');
$->l('order quantity text');
$->l('metric (to edit non metric value change measurement system in Settings)');
$->l('non metric (to edit metric value change measurement system in Settings)');
$->l('Please go to the "Settings" tab and resolve the integration problems.');
$->l('Read more');
$->l('Read explanation');
$->l('Please fix the following errors:');
$->l('Product sold in whole units');
$->l('Product uses multidimensional feature');
$->l('Product sold in fractional units');
$->l('Product sold in items');
$->l('approximate quantity and price (the exact quantity cannot be ordered)');
$->l('reversed price display');
$->l('retail price');
$->l('%s cannot be empty in %s');
$->l('Powered by %s');
$->l('This site is using Product Properties Extension powered by %s');
$->l('This version of %s module works only with PrestaShop version %s.');
$->l('This version of %s module works only with PrestaShop versions %s - %s.');
*/
?>
Did this file decode correctly?
Original Code
<?php
/**
* Product Properties Extension
*
* Extends product properties and add support for products with fractional
* units of measurements (for example: weight, length, volume).
*
* NOTICE OF LICENSE
*
* This source file is subject to the commercial software
* license agreement available through the world-wide-web at this URL:
* https://psandmore.com/licenses/sla
* If you are unable to obtain the license, please send an email to
* support@psandmore.com and we will send you a copy immediately.
*
* @author PS&More www.psandmore.com <support@psandmore.com>
* @copyright 2011-2020 PS&More
* @license psandmore.com/licenses/sla
*/
if (defined("\137\x50\123\x5f\x56\105\122\123\x49\117\116\137")) { goto cwR0T; } exit; cwR0T: use PrestaShop\PrestaShop\Adapter\Product\PriceFormatter; use PrestaShop\PrestaShop\Adapter\Product\ProductDataProvider; use PrestaShop\PrestaShop\Core\Module\WidgetInterface; class PProperties extends Module implements WidgetInterface { const USER_START_ID = 100; const PROPERTY_TYPE_GENERAL = 1; const PROPERTY_TYPE_BLOCK_TEXT = 2; const PROPERTY_TYPE_EXT = 3; const DIMENSIONS = 3; public $integrated = false; public $integration_test_result = array(); public $multidimensional_plugin = false; private $default_language_id; private $active_languages; public function __construct() { $this->name = "\x70\160\x72\x6f\160\145\x72\x74\151\145\163"; $this->tab = "\x61\144\155\x69\156\x69\163\x74\x72\x61\164\x69\157\156"; $this->version = "\63\56\x31\56\67"; $this->author = "\160\163\x61\156\144\x6d\x6f\162\145"; $this->module_key = "\141\x37\70\x33\x31\x35\60\70\x36\146\x31\62\145\x64\145\x37\71\x33\61\x38\x33\143\61\x31\63\142\x32\62\x33\x36\61\67"; $this->need_instance = 1; $hdzup = "\61\56\67\56\63"; $IMGjL = "\61\x2e\67\x2e\66"; $this->ps_versions_compliancy = array("\x6d\x69\156" => $hdzup, "\x6d\x61\x78" => $IMGjL); $this->bootstrap = true; parent::__construct($this->name); $this->displayName = $this->l("\x50\x72\x6f\144\165\x63\x74\x20\120\x72\x6f\160\x65\x72\x74\151\x65\163\x20\105\170\x74\145\156\163\151\157\156"); $this->description = $this->l("\x45\x78\x74\145\156\144\x73\x20\x70\162\157\144\165\x63\x74\40\x70\162\x6f\160\x65\162\x74\x69\145\x73\x20\x61\156\x64\x20\x61\144\144\40\x73\165\160\160\x6f\162\x74\40\146\x6f\162\x20\x70\x72\x6f\144\165\143\164\x73\40\167\x69\x74\x68\x20\146\162\x61\143\164\151\157\156\141\154\40\165\x6e\x69\x74\x73\40\157\x66\x20\155\145\x61\x73\x75\x72\x65\x6d\145\156\164\x73\40\x28\146\157\162\x20\x65\x78\141\x6d\x70\x6c\145\72\40\x77\x65\x69\x67\150\x74\x2c\40\x6c\x65\156\147\164\150\54\x20\x76\x6f\154\165\x6d\x65\51"); $this->confirmUninstall = $this->l("\x57\150\145\156\x20\x79\157\x75\40\x75\156\151\x6e\163\164\x61\x6c\154\40\x74\x68\151\163\40\x6d\x6f\x64\x75\x6c\145\40\164\x68\145\40\165\x73\145\x72\x20\x64\141\164\x61\40\x69\163\x20\x6e\157\x74\40\154\157\163\164\40\141\156\144\40\162\x65\x6d\141\151\156\x73\x20\151\156\40\164\x68\x65\40\144\x61\164\141\x62\x61\x73\x65\56\x20\111\164\x20\167\x69\x6c\x6c\x20\x62\145\40\x61\166\141\151\154\141\x62\154\145\x20\x6e\145\x78\x74\x20\164\151\155\x65\40\171\157\165\x20\151\156\x73\x74\141\x6c\154\x20\164\x68\145\40\x6d\157\144\165\154\x65\56"); $this->secure_key = Tools::encrypt($this->name); $this->adminTab = "\x41\x64\155\151\156\x50\160\x72\x6f\x70\145\x72\x74\151\145\x73"; $this->adminTabName = "\x50\x72\x6f\144\165\x63\x74\x20\120\x72\x6f\160\x65\162\164\151\145\163\x20\105\x78\x74\145\x6e\x73\x69\x6f\x6e"; $this->psmIntegrate(); if (Module::isInstalled($this->name)) { goto OB0Ff; } static $PEC1q; if ($PEC1q) { goto c8hnz; } $PEC1q = true; Tools::deleteFile(_PS_ROOT_DIR_ . "\57\143\154\x61\x73\x73\145\x73\57\x70\x73\155\56\160\150\x70"); Tools::deleteFile(_PS_ROOT_DIR_ . "\57\x63\x6c\x61\x73\x73\145\x73\57\x50\x53\x4d\56\160\x68\160"); Tools::deleteFile(_PS_ROOT_DIR_ . "\57\143\154\141\x73\163\145\x73\57\120\120\x2e\160\150\160"); c8hnz: goto r55Cf; OB0Ff: $this->integrated = Configuration::getGlobalValue("\120\120\x5f\111\116\124\105\107\122\101\124\111\117\116") == $this->integrationKey(); $this->multidimensional_plugin = PP::getMultidimensionalPlugin(); r55Cf: } public function install() { if (!Shop::isFeatureActive()) { goto gOd1e; } Shop::setContext(Shop::CONTEXT_ALL); gOd1e: set_time_limit(300); if (!version_compare(phpversion(), "\65\x2e\x36", "\x3c")) { goto YFkKZ; } $this->_errors[] = sprintf($this->l("\x52\x65\161\x75\151\162\x65\163\40\x50\110\120\40\166\145\x72\163\151\157\x6e\40\x25\x73\40\157\162\40\141\x62\x6f\x76\145\x2e\40\x43\x75\162\162\145\156\x74\154\x79\x20\x72\165\156\156\151\156\147\x20\120\x48\x50\x20\45\x73\40\x76\145\x72\x73\x69\157\x6e\x2e"), "\x35\x2e\66", phpversion()); return false; YFkKZ: if (parent::install()) { goto cOTsi; } return false; cOTsi: if (!(!$this->registerHook("\x64\151\x73\160\x6c\141\171\110\145\141\144\x65\x72") || !$this->registerHook("\x64\151\163\160\154\141\171\x46\x6f\157\164\x65\x72") || !$this->registerHook("\144\x69\163\x70\x6c\141\171\117\166\145\162\x72\151\144\x65\x54\x65\155\x70\154\141\x74\145") || !$this->registerHook("\144\151\163\x70\x6c\141\171\120\x72\157\x64\x75\143\164\101\x64\x64\151\x74\151\x6f\x6e\141\x6c\111\156\x66\x6f") || !$this->registerHook("\x64\x69\163\160\154\141\x79\120\162\157\144\165\x63\x74\120\x72\151\x63\x65\x42\154\x6f\x63\x6b") || !$this->registerHook("\x64\x69\x73\x70\154\x61\x79\x50\162\x6f\x64\x75\143\x74\x50\160\162\x6f\x70\x65\x72\164\x69\145\x73") || !$this->registerHook("\144\151\163\160\154\141\171\101\x64\155\151\156\120\x72\x6f\144\x75\x63\x74\x50\160\162\157\x70\145\x72\x74\151\145\163") || !$this->registerHook("\x64\151\163\160\154\141\x79\x42\141\143\153\x4f\146\146\151\x63\145\110\x65\x61\144\145\x72") || !$this->registerHook("\x64\x69\x73\x70\x6c\141\x79\x41\144\x6d\x69\x6e\102\165\154\153\115\x61\156\141\147\145\124\x65\x6d\160\154\141\164\145\163") || !$this->registerHook("\144\x69\x73\x70\154\x61\171\101\x64\155\151\x6e\120\162\x6f\x64\x75\x63\164\x73\x45\170\x74\x72\141") || !$this->registerHook("\146\x69\x6c\164\x65\162\x50\x72\x6f\144\x75\143\164\103\x6f\x6e\164\x65\156\164") || !$this->registerHook("\x61\x63\164\x69\x6f\156\x41\144\155\151\156\x43\157\x6e\x74\162\x6f\154\154\x65\x72\123\145\164\x4d\145\x64\x69\x61") || !$this->registerHook("\141\x63\x74\151\x6f\x6e\x41\x64\155\x69\x6e\120\x72\157\x64\x75\x63\x74\163\114\x69\163\164\151\156\x67\106\x69\x65\154\x64\163\x4d\x6f\x64\151\146\151\145\x72") || !$this->registerHook("\141\143\x74\151\x6f\156\101\144\x6d\151\156\120\162\x6f\144\x75\x63\x74\163\x4c\x69\163\x74\151\156\x67\122\x65\163\165\x6c\x74\x73\x4d\157\144\151\x66\151\x65\x72") || !$this->registerHook("\141\143\164\151\157\156\x41\144\155\x69\x6e\123\x74\157\x63\153\103\x6f\x76\145\162\114\x69\163\x74\x69\156\x67\106\x69\x65\x6c\144\163\115\x6f\x64\151\146\151\145\x72") || !$this->registerHook("\141\143\164\151\x6f\x6e\x41\144\155\x69\x6e\123\164\157\143\153\111\x6e\x73\164\141\x6e\164\123\x74\x61\164\145\114\151\163\x74\151\x6e\x67\x46\151\x65\154\144\x73\115\157\144\151\146\151\x65\162") || !$this->registerHook("\x61\143\x74\151\157\156\x41\144\x6d\x69\156\x53\x74\x6f\143\153\x4d\141\x6e\x61\147\145\155\x65\156\164\x4c\151\x73\164\x69\x6e\x67\x46\x69\145\154\144\163\115\157\x64\x69\146\x69\x65\162") || !$this->registerHook("\x61\143\x74\x69\x6f\156\101\144\x6d\x69\156\x53\x74\x6f\x63\x6b\x4d\x76\164\x4c\x69\x73\x74\x69\156\147\x46\151\145\154\x64\x73\x4d\x6f\144\x69\x66\x69\145\x72") || !$this->registerHook("\x61\x63\164\151\x6f\156\x46\162\157\156\x74\103\x6f\156\164\162\157\154\x6c\145\162\x53\145\164\x4d\x65\144\x69\x61") || !$this->registerHook("\141\143\164\151\157\x6e\115\157\x64\165\x6c\145\111\x6e\163\x74\141\154\154\101\x66\164\x65\x72") || !$this->registerHook("\x61\143\x74\x69\157\x6e\115\157\x64\x75\x6c\145\x55\160\x67\x72\141\144\x65\101\146\164\145\162") || !$this->registerHook("\x61\143\164\151\x6f\x6e\x4f\x62\152\x65\x63\x74\x4f\162\144\145\x72\104\145\x74\x61\x69\x6c\x41\144\144\x41\x66\x74\145\x72") || !$this->registerHook("\x61\144\x6d\x69\x6e\120\x70\x72\x6f\160\145\x72\164\x69\145\163") || !$this->registerHook("\160\154\165\147\x69\x6e\x73") || !$this->registerHook("\x74\162\141\x6e\163\154\141\164\x69\157\x6e\x73"))) { goto VqXZg; } return false; VqXZg: if (Configuration::hasKey("\120\120\x5f\123\110\x4f\127\x5f\x49\116\x5f\x4d\105\x4e\125", null, 0, 0)) { goto M32ir; } Configuration::updateGlobalValue("\x50\120\137\123\x48\x4f\x57\137\x49\116\137\115\x45\116\125", 1); M32ir: if (!((int) Configuration::get("\x50\120\x5f\115\105\x41\x53\125\122\x45\x4d\x45\116\x54\x5f\x53\131\123\x54\105\115") == 0)) { goto t2VMO; } $yM_PW = Configuration::get("\x50\x53\x5f\x57\x45\111\107\110\124\x5f\x55\116\111\x54"); Configuration::updateValue("\120\120\137\x4d\105\x41\x53\125\x52\x45\115\x45\x4e\x54\x5f\123\x59\x53\124\x45\115", Tools::strtolower($yM_PW) == "\x6c\142" ? 2 : 1); t2VMO: if (Configuration::hasKey("\x50\120\x5f\x50\117\127\105\x52\x45\104\102\131")) { goto mrUhJ; } Configuration::updateValue("\120\x50\x5f\120\x4f\x57\105\x52\x45\104\102\131", 1); mrUhJ: if (Configuration::hasKey("\120\120\x5f\124\105\x4d\x50\x4c\x41\x54\105\137\x4e\x41\115\105\x5f\111\x4e\137\x43\x41\x54\x41\114\x4f\x47")) { goto fGEgm; } Configuration::updateValue("\120\x50\x5f\124\x45\x4d\120\114\101\x54\x45\x5f\x4e\101\x4d\105\137\x49\116\137\103\x41\124\101\114\117\107", 1); fGEgm: Configuration::updateGlobalValue("\x50\120\137\x49\116\123\x54\101\114\x4c\x5f\x54\111\115\105", time()); if (Configuration::get("\x50\123\137\x53\x4d\x41\x52\124\x59\x5f\x46\x4f\x52\x43\105\x5f\x43\x4f\115\x50\111\x4c\105")) { goto eD1mK; } Configuration::updateValue("\120\x53\137\123\x4d\101\x52\124\x59\137\x46\x4f\x52\103\105\x5f\103\x4f\115\120\x49\114\x45", _PS_SMARTY_CHECK_COMPILE_); eD1mK: $Erij2 = $this->setupInstance(); $Erij2->install(); Configuration::deleteByName("\x50\x50\137\114\x41\123\x54\x5f\126\x45\122\123\x49\117\x4e"); Configuration::updateGlobalValue("\120\120\x5f\126\105\122\x53\x49\x4f\x4e", $this->version); $Erij2->installAdminTab($this->adminTab, Configuration::getGlobalValue("\120\x50\137\123\110\117\127\137\111\116\137\115\x45\x4e\125")); PSM::clearCache(); return true; } public function uninstall() { set_time_limit(300); $sWPyC = $this->plugins(); foreach ($sWPyC as $QRMUM => $Q_gK0) { if (!Module::isInstalled($QRMUM)) { goto Gguks; } $this->_errors[] = sprintf($this->l("\120\154\145\141\163\145\x20\x75\156\x69\156\x73\x74\x61\154\154\40\164\150\x65\x20\42\45\163\42\x20\155\x6f\x64\x75\154\x65\56"), Module::getModuleName($QRMUM)); Gguks: CD2FA: } FJ9od: if (!$this->_errors) { goto y3Y0r; } return false; y3Y0r: $Erij2 = $this->setupInstance(); $Erij2->uninstallAdminTab($this->adminTab); if (parent::uninstall()) { goto xdZMS; } return false; xdZMS: $Erij2->uninstall(); Configuration::deleteByName("\120\120\x5f\111\116\124\105\x47\x52\101\x54\111\117\x4e"); Configuration::deleteByName("\120\x50\x5f\x49\116\x54\x45\x47\x52\101\x54\x49\x4f\116\x5f\103\110\105\x43\x4b"); Configuration::deleteByName("\120\x50\137\111\x4e\124\105\x47\x52\x41\124\111\117\116\x5f\x45\130\124\x52\x41\x5f\x4d\117\104\x55\114\x45\x53"); Configuration::deleteByName("\x50\x50\x5f\x4d\x4f\104\125\x4c\x45\137\115\x45\x44\111\101"); Configuration::deleteByName("\120\x50\x5f\111\116\x46\117\137\103\x4f\116\124\x45\x4e\x54"); Configuration::deleteByName("\x50\120\x5f\x49\116\x46\x4f\137\103\x48\x45\x43\x4b\137\x54\x49\x4d\x45"); Configuration::deleteByName("\120\x50\137\x56\x45\x52\123\111\117\x4e"); Configuration::updateGlobalValue("\120\x50\x5f\x4c\x41\123\x54\137\x56\105\122\123\111\117\116", $this->version); Tools::generateIndex(); return true; } public function disable($aQ91C = false) { $pS66y = $this->translations(); $this->_errors[] = $pS66y["\x54\x6f\x20\144\x69\163\141\x62\x6c\145\40\x74\x68\x65\40\155\x6f\144\165\x6c\145\40\x70\x6c\145\141\163\145\x20\165\x6e\151\x6e\163\x74\x61\154\154\x20\x69\x74\x2e"]; return false; } public function renderWidget($dS6VQ, array $mtO6V) { if (!$this->integrated) { goto TjsD7; } if (!(array_key_exists("\x70\162\157\x64\165\143\164", $mtO6V) && isset($mtO6V["\160\x72\x6f\144\x75\143\164"]["\x70\160\x5f\163\145\164\x74\x69\x6e\x67\163"]))) { goto YlIUj; } $this->smarty->assign($this->getWidgetVariables($dS6VQ, $mtO6V)); return $this->fetch("\155\x6f\x64\165\x6c\145\72\x70\160\162\x6f\160\x65\162\x74\x69\x65\163\x2f\166\151\x65\x77\x73\57\x74\x65\x6d\x70\154\141\x74\145\163\x2f\x68\x6f\x6f\x6b\x2f\146\162\x6f\x6e\x74\x2f\160\162\157\144\165\x63\164\56\164\x70\x6c"); YlIUj: if (!($this->isSymfonyContext() && isset($mtO6V["\x72\x6f\x75\x74\x65"]) && $mtO6V["\162\157\x75\x74\x65"] === "\x61\144\155\x69\156\x5f\160\162\157\144\165\143\x74\x5f\143\x61\164\x61\154\157\x67" && $dS6VQ == "\144\x69\x73\x70\x6c\x61\171\x41\x64\155\x69\156\x42\165\x6c\x6b\x4d\141\x6e\141\x67\x65\x54\145\x6d\x70\154\x61\x74\x65\x73")) { goto qfdpv; } return $this->get("\x74\167\151\147")->render("\x40\115\157\x64\x75\x6c\x65\x73\x2f\160\160\162\x6f\160\x65\x72\x74\x69\145\163\57\x76\x69\145\167\x73\57\164\145\x6d\x70\154\141\x74\145\x73\x2f\x68\157\x6f\153\x2f\x61\x64\x6d\x69\x6e\57\x62\165\154\153\137\x6d\x61\156\x61\147\x65\x5f\x74\x65\x6d\x70\x6c\141\164\x65\x73\56\150\164\155\x6c\56\164\167\x69\x67", array("\164\x65\155\x70\x6c\141\x74\x65\163" => PP::getAdminProductsTemplates(0), "\x61\x64\x6d\151\x6e\x70\160\x72\157\x70\145\x72\x74\151\x65\163\165\x72\x6c" => $this->context->link->getAdminLink($this->adminTab, true))); qfdpv: TjsD7: } public function getWidgetVariables($dS6VQ, array $mtO6V = array()) { return array("\150\157\x6f\153\137\156\x61\x6d\x65" => $dS6VQ, "\x68\157\x6f\x6b\x5f\x74\171\160\x65" => isset($mtO6V["\164\x79\160\145"]) ? $mtO6V["\x74\171\x70\145"] : '', "\150\157\157\x6b\137\x6f\x72\151\147\151\156" => isset($mtO6V["\150\x6f\x6f\x6b\x5f\x6f\x72\x69\x67\x69\x6e"]) ? $mtO6V["\150\x6f\x6f\x6b\x5f\157\x72\151\147\x69\x6e"] : '', "\160\162\x6f\x64\165\x63\164" => $mtO6V["\x70\162\x6f\144\165\143\164"]); } public function hookDisplayAdminProductPproperties($mtO6V) { if (!(array_key_exists("\160\x72\x6f\x64\x75\x63\x74", $mtO6V) && isset($mtO6V["\160\162\157\x64\165\143\164"]["\x70\160\137\163\145\164\164\x69\156\x67\x73"]))) { goto zauu5; } $this->smarty->assign(array("\x68\157\157\x6b\137\156\x61\x6d\x65" => "\144\x69\x73\160\x6c\141\171\x41\144\x6d\x69\x6e\x50\162\157\x64\x75\143\164\120\160\162\157\x70\x65\162\x74\151\145\163", "\150\x6f\157\153\x5f\x74\x79\160\145" => isset($mtO6V["\164\171\x70\x65"]) ? $mtO6V["\164\x79\160\145"] : '', "\150\157\x6f\153\137\x6f\x72\151\x67\x69\x6e" => isset($mtO6V["\x68\x6f\x6f\153\x5f\x6f\x72\151\x67\151\156"]) ? $mtO6V["\x68\157\157\x6b\x5f\157\162\x69\147\151\156"] : '', "\160\x72\x6f\x64\165\143\x74" => $mtO6V["\160\162\157\144\x75\143\x74"])); return $this->display("\x70\x70\x72\x6f\160\145\162\164\x69\x65\x73", "\141\144\155\x69\x6e\57\160\x72\157\x64\x75\x63\x74\56\x74\160\x6c"); zauu5: } public function hookDisplayHeader($mtO6V) { return $this->createHeaderJsScript(); } public function hookDisplayFooter($mtO6V) { if (!Tools::getValue("\x61\x6a\141\170")) { goto VBnLt; } return; VBnLt: $iTg4E = ''; if (!(int) Configuration::get("\120\120\137\x50\117\x57\105\122\x45\x44\x42\x59")) { goto gkP2T; } $iTg4E .= "\x3c\163\160\141\156\40\143\154\x61\x73\x73\75\x22\x70\x6f\x77\145\162\145\x64\137\142\171\x5f\x70\163\141\156\144\x6d\157\x72\145\137\x70\x6c\x61\x63\145\x68\x6f\154\x64\x65\162\x22\x3e\74\x2f\x73\x70\x61\156\x3e"; gkP2T: return $iTg4E; } public function hookDisplayOverrideTemplate($N9Ghr) { if (!("\155\157\144\x75\x6c\x65\x3a\160\160\162\x6f\x70\x65\162\164\151\x65\x73\57\x5f\x70\141\x72\164\x69\141\x6c\x73\x2f\160\x72\157\x64\165\x63\x74" == $N9Ghr["\164\145\155\160\x6c\141\x74\145\x5f\x66\x69\x6c\145"])) { goto YvhGH; } return $this->getTemplatePath("\x66\x72\x6f\156\x74\x2f\137\160\141\162\x74\x69\141\154\x73\x2f\160\162\x6f\144\x75\143\164\x2e\164\x70\154"); YvhGH: } public function hookDisplayBackOfficeHeader($mtO6V) { $xlN7G = Tools::getValue("\164\141\142"); $kjeJ1 = Tools::getValue("\143\x6f\x6e\x74\x72\x6f\154\154\145\162"); if (Tools::strtolower($xlN7G) == "\x61\144\155\x69\x6e\163\145\154\146\165\160\147\x72\141\144\145" || Tools::strtolower($kjeJ1) == "\x61\x64\155\x69\x6e\163\x65\x6c\146\165\160\147\x72\141\x64\x65") { goto Zsdri; } if (!PSM::isBackOfficeSupportedController($this->context->controller)) { goto Y4QJ1; } if (!(Tools::getValue("\143\157\x6e\146\151\147\165\162\x65") != "\160\x70\162\157\160\x65\x72\x74\x69\x65\163")) { goto FC4HH; } $hLqfB = Configuration::getGlobalValue("\120\x50\137\x49\x4e\x54\x45\x47\x52\101\124\111\x4f\116\137\x43\x48\105\x43\x4b"); if (!(time() > $hLqfB + ($this->integrated ? 3600 : 3))) { goto lgpa1; } $this->checkIntegration($this->setupInstance()); lgpa1: if ($this->integrated) { goto PC5OA; } $EbDwf = "\74\144\x69\x76\40\143\x6c\x61\163\x73\x3d\x22\x61\154\145\162\164\x20\x70\x73\155\x2d\x61\x6c\145\x72\164\x20\x70\163\155\x2d\141\x6c\x65\162\x74\x2d\144\x61\x6e\147\145\162\x20\x70\x73\155\55\x61\x6c\x65\x72\164\55\x64\141\x6e\147\x65\x72\55\x68\151\x67\150\x6c\151\x67\150\x74\42\40\163\164\x79\154\x65\75\x22\x63\x6c\x65\x61\x72\72\x62\x6f\x74\x68\x3b\172\x2d\x69\156\x64\x65\170\x3a\x31\60\60\60\x30\x3b\x70\157\163\151\164\x69\x6f\156\x3a\146\x69\170\x65\144\x3b\167\x69\x64\164\150\72\61\x30\60\x25\x3b\x22\76" . "\x3c\x62\165\164\x74\157\x6e\40\x64\x61\x74\141\55\144\151\163\155\x69\163\x73\x3d\x22\x61\154\x65\x72\x74\42\x20\x63\x6c\141\163\x73\75\42\x63\x6c\157\x73\145\x22\40\164\171\x70\x65\x3d\x22\142\165\164\164\x6f\x6e\42\x3e\xc3\227\74\x2f\x62\x75\164\164\157\156\76\74\x70\76" . sprintf($this->l("\45\x73\x3a\40\x49\x6e\x74\x65\x67\x72\141\x74\151\x6f\x6e\40\167\x61\162\x6e\151\x6e\147\x2e\40\131\x6f\x75\x72\40\163\151\164\x65\x20\x77\151\x6c\154\x20\156\157\x74\40\x77\x6f\x72\153\x20\160\162\157\x70\x65\x72\x6c\171\40\165\x6e\164\151\x6c\x20\171\x6f\165\x20\x72\145\x73\x6f\154\166\145\40\x74\x68\x65\x20\x69\x6e\x74\x65\147\x72\141\x74\151\x6f\156\40\160\x72\157\x62\154\145\x6d\163\56\x20\x25\163"), $this->displayName, "\x3c\x61\x20\163\164\171\x6c\x65\75\42\164\x65\170\164\x2d\x64\x65\x63\157\x72\141\164\x69\157\x6e\x3a\x75\156\144\x65\162\x6c\151\x6e\x65\x3b\143\x6f\x6c\157\162\x3a\151\156\x68\x65\162\x69\164\73\42\x20\150\x72\x65\146\x3d\42\151\156\x64\x65\170\56\x70\150\x70\x3f\143\x6f\x6e\164\162\x6f\154\x6c\x65\x72\75\x61\x64\155\151\x6e\155\157\x64\165\154\145\x73\x26\x63\157\x6e\146\151\147\x75\x72\x65\75\160\160\162\x6f\160\x65\162\x74\151\x65\163\46\164\157\153\x65\156\75" . Tools::getAdminTokenLite("\x41\x64\155\x69\x6e\x4d\157\x64\165\154\145\163") . "\46\164\141\142\x5f\155\157\144\165\x6c\x65\x3d\141\x64\155\151\156\x69\x73\164\x72\141\164\151\x6f\156\x26\x6d\x6f\x64\165\x6c\145\137\x6e\x61\x6d\145\x3d\x70\160\x72\157\160\145\162\x74\x69\x65\163\x22\x3e" . $this->l("\x28\143\x6c\x69\143\x6b\40\x68\145\162\x65\51") . "\x3c\57\x61\x3e") . "\74\57\x70\76\74\57\144\151\166\x3e"; return "\12\40\40\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\x3c\x73\x63\x72\151\x70\x74\x3e\xa\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\40\40\40\40\40\40\40\40\x20\x20\40\x20\x20\44\x28\144\x6f\x63\x75\155\145\156\x74\x29\x2e\162\145\141\x64\x79\50\146\165\x6e\x63\x74\151\x6f\156\50\51\40\173\xa\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\x20\x20\44\x28\42\x62\157\x64\x79\x22\51\x2e\x70\x72\145\160\x65\x6e\144\x28\47" . $EbDwf . "\47\x29\x3b\12\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\40\40\x20\x7d\51\73\12\40\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\x20\74\57\163\143\162\x69\160\164\x3e\12\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\40"; PC5OA: FC4HH: $Vjs2g = $this->createHeaderJsScript(true); if (!($this->integrated && $this->context->controller->controller_name == "\101\x64\x6d\151\x6e\101\164\164\x72\x69\x62\165\164\x65\x47\145\x6e\145\162\141\x74\x6f\162")) { goto ATYsn; } $rWKkQ = PP::getProductTemplateId(Tools::getValue("\x69\x64\137\x70\162\x6f\x64\x75\143\x74")); if (!($rWKkQ > 0)) { goto Ipi9l; } $nsYp1 = PP::getProductPropertiesByTemplateId($rWKkQ); if (empty($nsYp1["\160\160\137\142\157\x5f\x71\164\171\137\164\x65\170\x74"])) { goto PYsUk; } $Vjs2g .= "\74\163\x63\162\x69\160\x74\x3e\44\x28\146\165\156\143\x74\x69\157\x6e\50\x29\40\x7b\x24\x28\47\x23\147\x65\x6e\145\x72\x61\164\x6f\162\40\x69\x6e\x70\x75\164\133\156\141\x6d\x65\x3d\x22\x71\x75\141\x6e\164\x69\x74\x79\42\x5d\x27\x29\x2e\167\x72\x61\x70\x28\47\x3c\163\x70\141\156\x20\x63\154\141\163\x73\75\x22\151\x6e\x70\165\x74\x2d\147\162\157\x75\x70\x22\76\x3c\57\163\x70\141\156\76\47\51\56\141\x66\x74\x65\162\50\x27\74\163\x70\x61\156\x20\143\x6c\141\x73\163\75\42\x69\156\x70\165\164\x2d\147\162\157\165\x70\x2d\141\144\x64\x6f\x6e\x20\160\160\137\142\157\x5f\x71\x74\x79\137\x74\x65\x78\x74\x22\x3e" . $nsYp1["\160\x70\x5f\142\157\x5f\161\x74\171\137\164\145\170\164"] . "\x3c\57\163\160\141\x6e\76\47\x29\73\175\51\73\74\57\163\x63\x72\151\160\x74\76"; PYsUk: Ipi9l: ATYsn: return $Vjs2g; Y4QJ1: goto oJIcw; Zsdri: return "\12\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x3c\163\x63\x72\x69\160\164\x3e\xa\x20\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\40\40\44\50\144\157\x63\165\155\145\x6e\x74\x29\x2e\162\x65\141\x64\x79\x28\146\165\156\x63\164\x69\x6f\156\50\x29\x20\173\xa\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\40\44\x28\x22\x23\165\x70\147\162\x61\144\145\116\x6f\x77\x22\51\x2e\x72\x65\x6d\157\x76\x65\x28\51\73\12\x20\x20\40\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x24\50\42\x23\x63\x75\162\x72\x65\x6e\164\x43\157\x6e\x66\x69\147\165\162\141\164\151\x6f\x6e\40\x74\141\142\x6c\x65\x20\164\x62\x6f\144\171\x22\x29\56\141\160\160\x65\156\144\50\47\x3c\x74\162\x3e\74\164\144\76" . sprintf($this->l("\x25\163\72\x20\x50\x6c\x65\141\x73\145\x20\165\x6e\151\x6e\x73\164\141\x6c\154\40\x74\x68\151\163\40\155\157\144\165\x6c\x65\x20\142\145\146\157\162\x65\x20\x75\x70\147\x72\141\x64\151\156\147\40\x61\156\144\x20\x6f\x62\x74\141\x69\x6e\54\40\151\x66\x20\156\145\x65\x64\x65\144\54\x20\x76\x65\162\x73\x69\x6f\x6e\x20\143\x6f\x6d\160\141\x74\x69\x62\154\x65\40\167\x69\x74\150\x20\171\157\x75\x72\40\x6e\145\x77\x20\120\x72\x65\163\x74\x61\123\x68\157\x70\40\166\145\x72\x73\151\157\x6e\56"), $this->displayName) . "\x3c\142\162\x3e" . $this->compatibilityText() . "\74\x2f\164\x64\76\74\x74\x64\x3e\74\151\155\147\40\141\154\164\x3d\42\157\153\42\x20\x73\162\143\75\42\x2e\x2e\57\x69\155\147\x2f\141\x64\x6d\151\156\57\144\x69\163\x61\x62\154\145\144\56\147\151\146\42\76\x3c\x2f\x74\x64\x3e\x3c\57\x74\x72\x3e\47\x29\73\xa\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\40\40\40\175\51\73\12\40\x20\40\40\40\x20\40\40\x20\40\x20\40\x3c\x2f\x73\x63\x72\151\160\164\x3e\12\40\x20\40\x20\40\40\x20\40\x20\x20\40\40"; oJIcw: } public function hookDisplayAdminProductsExtra($mtO6V) { $odDuI = (int) $mtO6V["\x69\x64\137\x70\x72\157\x64\x75\x63\x74"]; $HP806 = new ProductDataProvider(); $sMujq = $HP806->getProduct($odDuI); $QYiU9 = PP::getProductTemplateId($sMujq); $this->context->smarty->assign(array("\x69\x6e\x74\145\147\162\x61\164\145\144" => $this->integrated, "\x6d\x75\x6c\164\151\144\151\155\x65\156\x73\x69\157\156\x61\x6c" => (bool) $this->multidimensional_plugin, "\151\144\x5f\x70\162\x6f\144\x75\x63\164" => $odDuI, "\151\x64\x5f\x70\x70\x5f\164\x65\155\x70\154\141\164\x65" => $QYiU9, "\x70\162\x6f\x64\x75\143\164" => $sMujq, "\137\x70\x61\x74\150" => $this->getPathUri(), "\137\120\123\137\x41\104\x4d\x49\116\137\x49\115\x47\137" => _PS_ADMIN_IMG_, "\163\x5f\150\145\141\144\x65\162" => $this->l("\x41\x73\163\x69\x67\156\40\x6f\162\x20\143\150\141\x6e\x67\145\40\x70\162\157\x64\165\x63\164\x20\x74\x65\x6d\x70\154\x61\x74\x65"), "\163\x5f\160\162\x6f\144\x75\143\164\137\x74\x65\x6d\160\154\x61\x74\145" => $this->l("\x50\162\x6f\x64\165\143\164\x20\164\x65\x6d\160\x6c\x61\164\145"), "\163\137\x68\151\x6e\164" => $this->l("\x50\154\145\x61\163\x65\x20\163\141\x76\145\40\164\150\x69\163\40\160\x72\157\144\x75\x63\x74\x20\142\145\x66\x6f\x72\145\x20\155\141\153\x69\x6e\147\40\141\156\x79\40\x6f\164\150\x65\x72\x20\143\150\141\156\x67\145\163\x2e"), "\x73\137\x61\x64\x76\151\x63\x65" => $this->l("\131\157\165\x20\x63\141\x6e\x20\x61\x73\x73\x69\147\156\x20\x6f\x72\x20\162\145\x6d\x6f\x76\x65\40\164\x65\155\x70\x6c\x61\x74\x65\40\146\x6f\x72\40\x73\x65\x76\x65\162\141\x6c\40\160\162\157\144\x75\143\164\x73\x20\x69\156\40\x6f\156\x65\40\157\160\145\x72\141\164\151\x6f\x6e\40\165\x73\x69\x6e\x67\x20\142\x75\154\153\40\141\143\164\x69\x6f\x6e\x73\40\x69\x6e\x20\x70\x72\x6f\x64\165\x63\164\47\x73\40\x63\141\x74\141\154\x6f\x67\x2e"), "\163\x5f\x63\157\156\x66\151\147\x75\x72\x65\137\x74\x65\x6d\160\154\141\164\145\163" => $this->l("\103\157\156\x66\x69\x67\x75\x72\x65\x20\x74\145\155\160\x6c\x61\x74\x65\163"), "\163\x5f\145\144\x69\164\137\x74\x65\155\160\x6c\141\x74\x65" => $this->l("\105\x64\x69\164\x20\164\x68\151\163\x20\x74\145\155\x70\x6c\141\x74\145"), "\163\x5f\x75\x73\145\162\137\x67\165\x69\144\x65" => $this->l("\x52\x65\141\144\40\165\x73\x65\x72\x20\147\x75\x69\144\145"))); if ($this->integrated) { goto BKa2d; } $this->context->smarty->assign("\x69\156\164\x65\147\x72\x61\x74\151\x6f\x6e\137\x77\x61\x72\x6e\x69\x6e\x67", $this->l("\x50\154\145\x61\163\x65\40\162\145\163\x6f\x6c\x76\145\x20\151\156\x74\145\147\x72\141\x74\151\157\156\x20\x70\162\157\142\154\x65\155\163\x2e")); BKa2d: if ((bool) $this->multidimensional_plugin) { goto cLJwr; } $this->context->smarty->assign("\x6d\x75\x6c\164\151\x64\x69\x6d\x65\x6e\163\x69\157\156\x61\x6c\137\x77\x61\x72\156\x69\x6e\147", $this->translations()["\155\x75\154\x74\x69\144\x69\155\145\x6e\x73\151\157\x6e\141\x6c\x5f\160\x6c\165\x67\151\x6e\137\156\x6f\164\137\x69\x6e\x73\x74\141\x6c\x6c\145\144"]); cLJwr: $pS66y = $this->getTranslations("\101\144\x6d\151\x6e\120\162\157\x64\165\x63\164\x73"); foreach ($pS66y as $SNYS6 => $i2l14) { $this->context->smarty->assign($SNYS6, $i2l14); sLtAA: } M74RQ: $this->context->smarty->assign("\x68\157\157\x6b\x5f\150\164\x6d\x6c", Hook::exec("\x61\144\155\151\x6e\120\x70\x72\157\x70\145\162\164\151\145\163", array("\155\157\144\x65" => "\x64\x69\163\x70\154\x61\x79\101\x64\155\x69\x6e\x50\x72\x6f\144\165\143\x74\163\105\170\164\162\141", "\x69\144\x5f\160\x72\157\144\x75\143\164" => $odDuI, "\x70\162\157\x64\x75\143\164" => $sMujq, "\x69\156\164\x65\x67\162\x61\164\x65\144" => $this->integrated), null, true)); $this->content = $this->display("\x70\x70\162\157\x70\x65\162\x74\151\x65\163", "\141\144\x6d\151\x6e\57\x70\162\x6f\144\x75\143\164\x73\x5f\145\170\164\x72\141\x2e\x74\x70\154"); return $this->content; } public function hookActionFrontControllerSetMedia($mtO6V) { if (Tools::getValue("\x61\152\x61\170")) { goto Y1PNX; } $this->context->controller->registerStylesheet("\155\157\144\165\x6c\145\x73\55\x70\160\162\157\160\145\162\164\151\x65\163", "\155\157\144\x75\154\145\x73\x2f" . $this->name . "\57\x76\151\x65\167\163\x2f\143\163\x73\x2f\x70\x70\162\x6f\160\145\x72\x74\151\145\163\56\143\163\x73", array("\155\x65\144\x69\x61" => "\141\x6c\x6c", "\160\x72\151\157\162\151\164\171" => 500)); $this->context->controller->registerStylesheet("\155\x6f\144\x75\154\145\163\55\x70\x70\162\x6f\x70\145\x72\x74\x69\x65\163\x2d\143\165\x73\164\157\155", "\x6d\x6f\x64\165\154\145\163\x2f" . $this->name . "\x2f\x63\163\163\x2f\x63\165\x73\164\157\x6d\x2e\x63\163\163", array("\155\x65\144\151\141" => "\141\154\x6c", "\x70\162\x69\157\x72\151\x74\x79" => 1000)); $this->context->controller->registerJavascript("\x6d\157\144\x75\x6c\x65\x73\55\160\160\162\157\x70\145\x72\x74\x69\145\163", "\155\157\144\165\154\x65\x73\x2f" . $this->name . "\57\x76\x69\x65\x77\x73\57\x6a\x73\x2f\160\160\x72\x6f\160\x65\x72\x74\151\x65\x73\x2e\x6d\x69\x6e\x2e\x6a\163", array("\160\x6f\x73\x69\164\x69\x6f\x6e" => "\x62\157\164\164\x6f\x6d", "\x70\x72\x69\157\162\151\x74\171" => 500)); $this->context->controller->registerJavascript("\x6d\x6f\144\165\x6c\145\x73\x2d\160\x70\162\x6f\160\x65\x72\164\x69\145\x73\55\x63\x75\163\164\157\x6d", "\155\x6f\x64\165\x6c\145\163\x2f" . $this->name . "\57\152\163\x2f\x63\165\x73\164\157\155\x2e\152\x73", array("\160\x6f\163\151\164\151\157\x6e" => "\142\157\164\164\157\155", "\x70\162\151\x6f\162\151\164\171" => 1000)); $wBTO_ = Configuration::getGlobalValue("\120\120\137\x4d\x4f\104\x55\114\x45\137\x4d\105\104\111\x41"); if (!is_string($wBTO_)) { goto inu7W; } $wBTO_ = json_decode($wBTO_, true); if (!count($wBTO_)) { goto hRiJI; } $xc1Yt = 0; foreach ($wBTO_ as $QRMUM => $oAcDS) { if (Module::isInstalled($QRMUM)) { goto xY6Re; } $this->unregisterModuleMedia($QRMUM); goto ufXIo; xY6Re: if (!Module::isEnabled($QRMUM)) { goto y57sb; } foreach ($oAcDS as $iIHSd) { $Ybxv_ = Tools::strlen($iIHSd); if (Tools::strrpos($iIHSd, "\56\143\x73\x73") === $Ybxv_ - 4) { goto JUrWv; } if (Tools::strrpos($iIHSd, "\x2e\152\163") === $Ybxv_ - 3) { goto G3EFE; } goto xkzNi; JUrWv: $this->context->controller->registerStylesheet("\155\157\x64\165\154\x65\163\55" . $QRMUM . ++$xc1Yt, $iIHSd, array("\155\145\144\x69\141" => "\x61\154\154", "\160\162\x69\x6f\162\x69\x74\171" => 900)); goto xkzNi; G3EFE: $this->context->controller->registerJavascript("\155\157\144\165\154\x65\163\x2d" . $QRMUM . ++$xc1Yt, $iIHSd, array("\160\157\x73\x69\x74\151\157\x6e" => "\x62\x6f\x74\164\157\155", "\x70\162\151\157\162\x69\164\x79" => 900)); xkzNi: b7vMy: } NXjSm: y57sb: ufXIo: wLok3: } op3XW: hRiJI: inu7W: Y1PNX: } public function hookActionModuleInstallAfter($mtO6V) { $this->setupInstance()->moduleInstalled($mtO6V["\157\x62\x6a\x65\x63\x74"]); $this->unregisterModuleMedia($mtO6V["\x6f\x62\152\145\x63\164"]); } public function hookActionModuleUpgradeAfter($mtO6V) { $this->setupInstance()->moduleUpgraded($mtO6V["\x6f\142\x6a\145\143\x74"]); $this->unregisterModuleMedia($mtO6V["\157\x62\x6a\x65\x63\164"]); } public function hookActionObjectOrderDetailAddAfter($mtO6V) { $XHcj2 = $mtO6V["\157\142\152\145\x63\x74"]; $GArWu = $XHcj2->pp_data_type; if (!$GArWu) { goto Pn_RZ; } $j08Ks = PP::resolvePPData($XHcj2->pp_data); if (!($GArWu == "\x62\165\x6c\153" && !empty($j08Ks["\x62\x75\154\153"]))) { goto Fotp3; } if (!((int) $j08Ks["\151\144\137\x70\162\157\x64\x75\x63\x74"] != (int) $XHcj2->product_id)) { goto Ao5ym; } throw new PrestaShopException("\117\162\144\x65\x72\104\x65\x74\141\x69\154\x20\x70\x72\157\x64\x75\x63\164\137\x69\144\40\x64\157\145\x73\40\x6e\x6f\x74\40\155\141\164\x63\x68\40\x22\x62\165\154\153\x22\x20\x69\x64\137\x70\x72\x6f\144\x75\143\164"); Ao5ym: $qIghV = array(); foreach ($j08Ks["\x62\x75\154\x6b"] as $BCfwa => $VcW0_) { if ($BCfwa) { goto VjXbJ; } throw new PrestaShopException("\x4f\x72\144\x65\x72\x44\x65\x74\141\151\x6c\40\42\x62\165\154\x6b\42\40\x77\x69\x74\x68\x6f\165\164\40\141\164\x74\162\x69\142\165\164\145\163\x20\x6e\157\164\x20\x73\x75\x70\x70\157\x72\x74\145\x64"); goto fJrEP; VjXbJ: $qIghV[] = array("\151\144\137\157\162\144\x65\x72" => (int) $XHcj2->id_order, "\151\144\x5f\x6f\162\144\145\x72\x5f\144\x65\164\x61\x69\x6c" => (int) $XHcj2->id, "\x69\x64\x5f\163\x68\157\160" => (int) $XHcj2->id_shop, "\x69\x64\137\143\141\x72\164\137\x70\162\157\144\x75\x63\164" => (int) $XHcj2->id_cart_product, "\151\x64\x5f\160\x72\x6f\144\x75\x63\x74" => (int) $XHcj2->product_id, "\x69\144\137\160\x72\157\144\x75\x63\x74\137\x61\x74\164\162\151\142\165\x74\145" => (int) $BCfwa, "\x71\x75\141\156\x74\x69\164\x79" => (float) $VcW0_["\161\x75\x61\156\x74\151\x74\171"], "\144\x61\x74\x61\x5f\164\x79\x70\145" => $GArWu, "\144\x61\x74\x61" => pSQL($XHcj2->pp_data)); fJrEP: kl4Rt: } IB5Mb: if (!$qIghV) { goto ZkIlJ; } Db::getInstance()->insert("\160\x70\x5f\157\x72\144\145\x72\137\144\145\164\x61\x69\x6c", $qIghV, true); ZkIlJ: Fotp3: Pn_RZ: } public function hookFilterProductContent($mtO6V) { if (!$this->integrated) { goto SQ0QD; } $G2yBX =& $mtO6V["\x6f\x62\152\145\x63\x74"]; if (!$G2yBX["\x69\x64\137\160\x70\137\x74\x65\x6d\160\154\x61\164\x65"]) { goto ceHkq; } $GC_3S = Context::getContext(); $wPoy4 = $G2yBX["\x70\160\137\163\x65\x74\164\151\156\147\163"]; foreach ($this->getTranslations("\120\162\157\x64\x75\x63\x74\x43\157\x6e\164\162\x6f\x6c\x6c\145\x72") as $SNYS6 => $i2l14) { $wPoy4[$SNYS6] = $i2l14; vUdEF: } DFFUJ: if (empty($G2yBX["\161\x75\141\156\164\x69\x74\x79\137\x77\141\x6e\x74\145\x64"])) { goto Nl2K1; } $odDuI = $G2yBX["\x69\x64\x5f\160\162\x6f\144\x75\143\164"]; $Kv72e = 0; if ($UJc5z = PP::getProductBulk($G2yBX)) { goto NC1l3; } $cBXdy = $G2yBX["\x71\x75\141\156\x74\151\164\171\x5f\167\x61\156\x74\145\144"]; $BCfwa = $G2yBX["\151\x64\137\160\x72\x6f\144\x75\143\164\x5f\x61\164\164\x72\x69\x62\165\164\x65"]; if (!($BCfwa === null)) { goto qau8D; } $BCfwa = Product::getDefaultAttribute($odDuI); qau8D: if ($G2yBX["\160\x70\137\145\170\x74"] == 1) { goto SrroI; } if (PP::qtyPolicyFractional($G2yBX["\x70\x70\x5f\x71\164\x79\x5f\160\157\154\x69\x63\171"])) { goto Rm07Q; } $Kv72e = $cBXdy; $nKXK3 = 0; goto ieQHp; Rm07Q: $Kv72e = 1; $nKXK3 = $cBXdy; ieQHp: goto W7U4p; SrroI: if (isset($G2yBX["\x70\x70\x5f\160\x61\143\153\x73\137\x63\141\154\143\165\x6c\141\164\157\162\x5f\161\165\x61\x6e\164\151\164\x79"])) { goto u03gP; } if (isset($G2yBX["\x70\160\137\145\170\x74\x5f\x63\x61\x6c\x63\165\x6c\x61\x74\145\x64\137\x71\x75\x61\x6e\164\151\164\171"])) { goto WW5cw; } goto eYX5n; u03gP: $Kv72e = $G2yBX["\160\160\137\x70\x61\x63\153\x73\137\143\x61\x6c\143\165\154\x61\164\157\x72\x5f\x71\x75\x61\156\164\x69\164\171"]; $nKXK3 = 0; goto eYX5n; WW5cw: $nKXK3 = (float) ($G2yBX["\160\x70\137\x65\x78\164\x5f\143\x61\154\x63\165\x6c\141\x74\x65\x64\x5f\x71\165\141\x6e\164\151\x74\x79"] === null ? 1 : $G2yBX["\x70\160\x5f\145\x78\x74\x5f\143\141\x6c\143\x75\154\x61\x74\x65\x64\x5f\x71\165\x61\x6e\164\x69\x74\171"]); if (!($nKXK3 > 0)) { goto bnSNl; } $Kv72e = $cBXdy; bnSNl: eYX5n: W7U4p: $UJc5z = array($Kv72e, $nKXK3); goto Vuy3K; NC1l3: $BCfwa = 0; $Kv72e = $UJc5z["\161\x75\x61\156\x74\151\164\x79"]; $nKXK3 = 0; Vuy3K: if ($Kv72e > 0) { goto dm4Ts; } $Yoq30 = 0; goto xQk_M; dm4Ts: $fFdjE = isset($GC_3S->customer) ? $GC_3S->customer->id : null; $HqkhW = Address::initialize(null, true); $rRTKT = null; $x1pfm = Product::getPriceStatic($odDuI, $G2yBX["\x69\x6e\143\x6c\x75\144\145\x5f\164\141\x78\145\x73"], $BCfwa, 6, null, false, true, $UJc5z, false, $fFdjE, null, $HqkhW->id, $rRTKT, true, true, $GC_3S, true, null); $Yoq30 = PP::calcPrice($x1pfm, $Kv72e, $nKXK3, $odDuI, false); if (!($MC0Mq = PP::getSmartpricePlugin())) { goto VyisC; } $lPiow = $MC0Mq->processPrice($G2yBX, $Yoq30, $odDuI, $BCfwa, $Kv72e, $nKXK3, $rRTKT); if (!is_array($lPiow)) { goto yJM6d; } $Yoq30 = $lPiow["\164\157\x74\x61\x6c"]; if (empty($lPiow["\x74\x65\x78\164"])) { goto L2yKm; } $G2yBX["\160\160\137\163\155\141\x72\164\160\162\151\x63\145\137\164\x65\x78\x74"] = $lPiow["\164\x65\x78\x74"]; L2yKm: $JqWrB = PP::smartProductPrice($G2yBX, null, $G2yBX["\151\156\143\x6c\x75\x64\x65\137\164\141\x78\x65\x73"]); PP::amendPresentedProductPrices($G2yBX, $JqWrB, true, false); yJM6d: VyisC: xQk_M: $wPoy4["\164\x6f\164\141\154\x5f\x61\x6d\x6f\x75\x6e\x74"] = Tools::ps_round($Yoq30, _PS_PRICE_COMPUTE_PRECISION_); $aahrg = new PriceFormatter(); $wPoy4["\x74\x6f\x74\141\x6c"] = $aahrg->format($wPoy4["\164\x6f\x74\x61\x6c\x5f\x61\155\x6f\165\156\x74"]); $wPoy4["\164\157\164\141\154\x5f\x61\x6d\x6f\x75\156\164\x5f\x74\157\137\144\x69\x73\x70\154\141\171"] = $this->getTranslations("\120\162\157\x64\165\143\x74\103\157\x6e\x74\x72\157\x6c\154\x65\162")["\163\x5f\160\x72\x69\143\x65"] . "\x20" . $wPoy4["\x74\x6f\164\x61\x6c"]; if (!($G2yBX["\160\160\137\160\x72\x69\143\145\x5f\144\151\x73\160\154\x61\x79\x5f\155\x6f\x64\x65"] == 1)) { goto TSPKh; } $G2yBX["\x70\x72\x69\143\x65\x5f\164\x6f\x5f\x64\x69\163\x70\x6c\x61\x79"] = $wPoy4["\x74\x6f\x74\x61\x6c"]; TSPKh: Nl2K1: $G2yBX["\x70\x70\x5f\163\145\164\164\x69\x6e\x67\163"] = $wPoy4; ceHkq: SQ0QD: return $mtO6V; } public function hookActionAdminControllerSetMedia($mtO6V) { if (!PSM::isBackOfficeSupportedController($this->context->controller)) { goto A83kj; } if (PSM::adminControllerUsesNewTheme($mtO6V)) { goto Ohx2J; } $this->context->controller->addJquery(); Ohx2J: $JrzQO = array("\x76\151\145\167\x73\57\143\163\x73\x2f\x70\160\x72\157\160\x65\x72\x74\151\145\163\x5f\x61\x64\x6d\x69\x6e\56\143\163\163"); $zEVvW = array(); $Tgc9o = false; if (in_array($this->context->controller->controller_name, array("\x41\x64\x6d\x69\156\120\162\157\144\165\143\x74\163", "\101\144\x6d\x69\156\117\x72\144\145\x72\x73", "\x41\144\155\151\x6e\103\141\162\164\x73", "\x41\x64\155\151\156\123\164\x6f\x63\x6b\115\x61\156\x61\x67\x65\155\145\156\x74", "\x41\x64\155\151\x6e\123\x74\157\x63\x6b\115\166\x74", "\101\144\x6d\151\x6e\123\x74\x6f\143\x6b\x49\156\x73\x74\x61\x6e\x74\123\x74\141\164\x65", "\x41\x64\155\x69\x6e\x53\x74\157\143\153\x63\117\166\145\162"))) { goto ISOMU; } if ($this->context->controller->controller_name == "\x41\144\155\x69\156\115\x6f\144\x75\154\145\163" && Tools::getValue("\x63\157\x6e\x66\151\147\x75\x72\x65") == "\x70\160\162\157\160\145\x72\164\x69\145\163") { goto gINL7; } goto KxPA8; ISOMU: $Tgc9o = true; goto KxPA8; gINL7: $this->context->controller->addJqueryUI("\x75\x69\x2e\164\x61\142\x73", "\x62\141\x73\145"); $Tgc9o = true; KxPA8: if (!(!$Tgc9o && $this->multidimensional_plugin && $this->multidimensional_plugin->hookActionAdminControllerSetMediaIsSupportedController($this->context->controller->controller_name))) { goto aSGBu; } $Tgc9o = true; aSGBu: if (!$Tgc9o) { goto rTefm; } $zEVvW[] = "\166\151\145\x77\x73\57\152\163\x2f\160\160\162\x6f\160\x65\x72\x74\x69\145\x73\x5f\141\144\x6d\151\156\56\x6d\x69\156\x2e\x6a\163"; rTefm: $tfBB1 = $this->getPathUri(); foreach ($JrzQO as $iIHSd) { $this->context->controller->addCSS($tfBB1 . $iIHSd); pA5Z5: } T2cA8: foreach ($zEVvW as $iIHSd) { $this->context->controller->addJS($tfBB1 . $iIHSd); Dx9Jn: } SbdaL: A83kj: } public function hookActionAdminProductsListingFieldsModifier($mtO6V) { if ($this->integrated) { goto UF2gx; } return; UF2gx: if (!isset($mtO6V["\163\161\x6c\137\x73\x65\154\145\143\164"])) { goto HhNRw; } $mtO6V["\x73\161\154\137\163\x65\x6c\145\143\x74"]["\151\144\x5f\160\160\137\x74\x65\155\x70\154\x61\x74\145"] = array("\164\x61\x62\x6c\145" => "\x70", "\146\x69\x65\x6c\x64" => "\x69\x64\137\x70\x70\x5f\x74\x65\155\160\154\x61\x74\145"); $mtO6V["\163\161\x6c\x5f\x73\145\154\145\x63\164"]["\x73\141\x76\x5f\161\x75\141\156\x74\151\x74\171\137\162\x65\155\141\x69\x6e\x64\145\162"] = array("\164\141\x62\x6c\145" => "\163\x61\166", "\x66\x69\x65\154\x64" => "\x71\165\141\156\164\x69\164\x79\137\162\x65\x6d\141\x69\x6e\144\x65\x72"); HhNRw: } public function hookActionAdminProductsListingResultsModifier($mtO6V) { if ($this->integrated) { goto MiXdW; } return; MiXdW: static $eck3t = null; static $rUo7F = null; if (!($eck3t === null)) { goto XisOF; } $eck3t = (bool) Configuration::get("\x50\x50\137\x54\x45\x4d\120\x4c\x41\x54\105\x5f\116\x41\x4d\105\137\111\116\x5f\x43\x41\x54\101\114\x4f\x47"); $rUo7F = Configuration::get("\120\123\x5f\123\124\117\x43\113\x5f\115\101\x4e\x41\107\x45\x4d\105\x4e\x54"); XisOF: if (!(isset($mtO6V["\160\x72\x6f\x64\165\x63\164\x73"]) && is_array($mtO6V["\160\x72\x6f\x64\165\x63\164\163"]))) { goto WHyHU; } foreach ($mtO6V["\x70\x72\157\144\x75\x63\x74\163"] as &$sMujq) { if (isset($sMujq["\151\144\x5f\x70\x70\137\164\x65\x6d\x70\x6c\x61\164\x65"]) && (int) $sMujq["\x69\144\x5f\x70\x70\x5f\164\x65\x6d\160\x6c\141\164\x65"]) { goto O_60k; } if (!$rUo7F) { goto aLQ8j; } $sMujq["\x73\141\x76\x5f\x71\165\141\x6e\164\151\164\171\x5f\164\x6f\x5f\144\151\163\160\x6c\141\171"] = PP::presentQty($sMujq["\163\x61\166\137\x71\x75\x61\x6e\164\151\x74\171"]) . "\x3c\163\x70\x61\156\x20\x63\154\141\163\x73\x3d\42\160\160\x5f\142\157\x5f\x71\164\x79\137\x74\x65\x78\164\x22\x3e\40\74\x2f\x73\160\141\156\76"; aLQ8j: goto xtAes; O_60k: if (!$eck3t) { goto merRR; } $xsOc_ = PP::getTemplateName($sMujq["\151\144\x5f\x70\160\x5f\164\x65\155\x70\x6c\141\164\145"], true); if (!($xsOc_ != '')) { goto u11Pp; } static $lVw8H = null; static $JqWIs = null; if (!($lVw8H === null)) { goto WJSzs; } $lVw8H = PP::safeOutput($this->l("\x54\150\151\163\40\x70\x72\157\144\165\x63\x74\40\x75\x73\x65\x73\x20\x50\x72\157\144\x75\143\x74\x20\x50\x72\157\160\145\162\164\151\x65\x73\x20\x45\170\164\145\x6e\x73\151\x6f\x6e\x20\164\145\155\160\x6c\141\x74\145")); $JqWIs = Tools::getAdminTokenLite("\101\144\155\151\156\115\x6f\x64\x75\154\145\163"); WJSzs: $sMujq["\x70\x70\137\x74\145\155\x70\154\141\x74\x65"] = "\x3c\x62\162\57\76\x3c\x61\x20\x63\154\x61\x73\x73\x3d\42\160\x70\x5f\154\x69\x73\x74\137\x74\145\155\x70\x6c\141\x74\145\42\x20\164\x69\x74\154\145\x3d\x22" . $lVw8H . "\42\40\x68\162\x65\x66\x3d\x22\151\x6e\144\x65\170\56\x70\150\160\77\x63\x6f\156\164\x72\157\154\x6c\145\x72\x3d\141\144\x6d\151\156\155\x6f\x64\x75\x6c\x65\x73\46\143\157\x6e\146\151\x67\165\162\x65\x3d\160\x70\162\x6f\x70\145\x72\164\x69\x65\163\x26\164\157\153\145\156\75" . $JqWIs . "\x26\x74\x61\x62\x5f\155\157\x64\165\154\x65\x3d\x61\x64\x6d\x69\x6e\x69\163\x74\x72\x61\x74\151\x6f\156\x26\155\157\x64\165\154\145\x5f\156\141\155\145\x3d\x70\160\x72\x6f\160\145\162\164\151\145\x73\46\143\154\151\143\x6b\105\144\x69\x74\x54\145\155\x70\x6c\141\x74\x65\46\x6d\x6f\x64\x65\x3d\145\x64\151\x74\x26\160\x70\75\61\46\151\144\75" . $sMujq["\x69\144\x5f\x70\x70\137\164\145\155\160\x6c\141\164\145"] . "\42\x20\164\x61\162\x67\x65\164\x3d\42\x5f\142\x6c\x61\156\153\x22\76\x3c\151\x20\143\x6c\x61\x73\163\x3d\x22\155\x61\164\145\x72\x69\x61\154\55\x69\143\157\x6e\x73\40\x69\143\157\156\55\x74\145\x6d\160\x6c\x61\164\x65\42\x3e\x72\x65\x6f\162\x64\145\x72\x3c\x2f\x69\76\x3c\x73\x70\x61\156\76" . PP::safeOutputLenient($xsOc_) . "\74\x2f\163\160\x61\x6e\76\74\x2f\141\x3e"; u11Pp: merRR: if (!$rUo7F) { goto Y_NXN; } if (!isset($sMujq["\163\x61\166\x5f\161\165\141\156\x74\x69\x74\171\137\x72\x65\x6d\x61\x69\156\144\x65\162"])) { goto DM9Mu; } $sMujq["\x73\x61\166\x5f\161\x75\141\156\x74\151\x74\171"] = $sMujq["\x73\x61\166\137\x71\x75\141\x6e\164\x69\164\x79"] + $sMujq["\163\141\166\137\x71\x75\141\x6e\x74\151\164\171\137\162\x65\155\x61\x69\x6e\x64\145\x72"]; DM9Mu: $nsYp1 = PP::getProductPropertiesByTemplateId($sMujq["\x69\x64\137\x70\x70\x5f\x74\145\x6d\x70\154\141\164\x65"]); $sMujq["\163\x61\x76\x5f\x71\165\x61\156\164\151\x74\x79\x5f\164\x6f\x5f\x64\151\x73\x70\x6c\141\171"] = PP::presentQty($sMujq["\x73\141\166\137\161\165\141\x6e\x74\x69\164\171"]) . "\74\x73\x70\141\x6e\x20\x63\154\141\163\x73\75\x22\x70\x70\x5f\x62\157\137\x71\164\171\x5f\164\145\170\164\x22\76\40" . PP::safeOutputLenient($nsYp1["\x70\160\x5f\x62\x6f\x5f\x71\164\171\137\164\145\170\164"]) . "\74\x2f\163\160\141\x6e\x3e"; Y_NXN: xtAes: uld88: } hAbyF: WHyHU: } public function callbackSavQuantityActionAdminProductsListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "\163\141\166\x5f\x71\x75\141\x6e\x74\151\x74\171", "\160\x72\157\x64\x75\143\164\x73\x20\163\x61\166"); } public function hookActionAdminStockCoverListingFieldsModifier($mtO6V) { $mtO6V["\146\x69\x65\x6c\144\163"]["\x71\x74\171\x5f\163\x6f\154\x64"]["\143\141\x6c\154\x62\x61\x63\153"] = "\143\141\154\154\x62\141\143\x6b\x53\157\x6c\x64\x51\165\141\x6e\164\151\x74\x79\101\143\x74\x69\x6f\x6e\x41\144\155\x69\156\x53\164\x6f\143\153\x43\157\166\x65\x72\114\151\x73\x74\151\156\x67\106\x69\145\154\x64\x73\115\x6f\x64\x69\146\151\x65\x72"; $mtO6V["\x66\151\145\154\144\163"]["\161\164\171\137\x73\x6f\154\x64"]["\x63\x61\154\x6c\x62\x61\143\153\x5f\x6f\x62\152\x65\x63\164"] = $this; $mtO6V["\x66\x69\145\154\x64\163"]["\163\164\157\x63\153"]["\x63\141\154\154\142\x61\x63\153"] = "\143\x61\154\154\142\141\x63\x6b\x53\x74\157\143\x6b\x51\x75\x61\x6e\x74\x69\x74\x79\x41\143\x74\151\157\156\101\x64\155\x69\156\123\x74\x6f\143\x6b\103\x6f\x76\145\162\114\x69\163\x74\151\x6e\x67\106\x69\x65\154\144\x73\x4d\x6f\144\151\x66\x69\145\x72"; $mtO6V["\x66\151\145\154\144\x73"]["\x73\x74\x6f\x63\153"]["\x63\x61\x6c\154\142\x61\x63\153\137\157\x62\152\x65\x63\x74"] = $this; } public function callbackSoldQuantityActionAdminStockCoverListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "\x71\x74\171\x5f\x73\157\154\x64", "\163\x74\157\x63\153\x2d\143\157\x76\145\x72\x20\x73\157\x6c\144"); } public function callbackStockQuantityActionAdminStockCoverListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "\x73\164\157\143\153", "\x73\164\157\143\x6b\55\x63\x6f\166\145\162\x20\x73\164\157\143\153"); } public function hookActionAdminStockInstantStateListingFieldsModifier($mtO6V) { $mtO6V["\x66\151\x65\x6c\x64\163"]["\x72\145\141\x6c\x5f\161\x75\141\x6e\164\151\x74\171"]["\143\x61\x6c\154\142\141\143\x6b"] = "\143\x61\x6c\154\x62\x61\143\x6b\x53\157\154\144\121\165\141\156\x74\x69\164\x79\x41\x63\x74\x69\157\x6e\101\x64\155\151\x6e\123\164\x6f\x63\x6b\111\156\163\164\x61\x6e\x74\x53\x74\x61\164\145\x4c\151\x73\164\x69\156\x67\106\151\145\x6c\144\x73\x4d\x6f\x64\x69\146\x69\x65\x72"; $mtO6V["\x66\151\x65\154\x64\163"]["\x72\145\x61\x6c\137\161\x75\x61\156\x74\151\164\171"]["\143\x61\x6c\154\x62\x61\x63\x6b\137\157\x62\152\x65\143\164"] = $this; } public function hookAdminPproperties($mtO6V) { $RtsEA = $mtO6V["\155\x6f\x64\145"]; $b595C = isset($mtO6V["\x6d\157\x64\165\154\x65"]) ? $mtO6V["\x6d\x6f\x64\165\x6c\x65"] : null; $tS4GL = isset($mtO6V["\x76\x65\162\x73\x69\157\156"]) ? $mtO6V["\x76\145\x72\x73\x69\157\x6e"] : null; switch ($RtsEA) { case "\x61\x64\x73": $vA5Ym = isset($mtO6V["\x73\x75\155\155\141\162\x79"]) ? $mtO6V["\163\x75\155\x6d\x61\162\171"] : false; goto lIiSv; case "\x63\x6f\156\x74\x61\143\x74\137\x75\163": goto lIiSv; } SDCsg: lIiSv: } public function hookPlugins($mtO6V) { return $this->plugins(); } public function hookTranslations($mtO6V) { return $this->translations(); } public function callbackSoldQuantityActionAdminStockInstantStateListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "\x72\x65\141\x6c\137\161\165\x61\156\164\151\164\x79", "\x73\164\157\143\153\x2d\151\156\x73\x74\x61\156\x74\55\163\x74\x61\164\x65\40\x72\x65\x61\154"); } public function hookActionAdminStockManagementListingFieldsModifier($mtO6V) { $mtO6V["\x66\151\x65\x6c\144\x73"]["\x73\x74\157\x63\153"]["\x63\x61\154\154\142\141\x63\x6b"] = "\143\x61\x6c\x6c\x62\141\143\x6b\123\157\x6c\144\x51\165\x61\x6e\164\151\164\171\101\143\164\x69\x6f\x6e\101\x64\155\151\x6e\x53\164\x6f\x63\x6b\115\141\156\141\x67\145\x6d\145\156\164\x4c\x69\x73\164\151\x6e\x67\x46\151\145\x6c\x64\x73\x4d\157\x64\x69\146\x69\145\162"; $mtO6V["\146\151\x65\x6c\144\163"]["\163\x74\157\143\153"]["\x63\141\154\154\x62\x61\x63\153\137\x6f\x62\x6a\x65\x63\164"] = $this; } public function callbackSoldQuantityActionAdminStockManagementListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "\163\x74\157\143\x6b", "\x73\x74\x6f\143\153\x2d\x6d\141\156\x61\x67\x65\x6d\x65\x6e\164\40\163\164\157\x63\153"); } public function hookActionAdminStockMvtListingFieldsModifier($mtO6V) { $mtO6V["\146\151\x65\154\144\163"]["\x70\x68\x79\x73\x69\143\141\154\x5f\x71\165\x61\x6e\164\x69\x74\171"]["\x63\x61\154\154\x62\141\143\153"] = "\143\141\154\x6c\142\x61\x63\x6b\123\157\x6c\x64\121\x75\141\x6e\x74\151\164\171\x41\143\x74\151\157\x6e\101\x64\155\151\x6e\123\164\157\143\x6b\115\x76\x74\114\x69\163\x74\151\x6e\x67\106\151\145\x6c\x64\x73\x4d\157\x64\x69\146\x69\145\x72"; $mtO6V["\146\x69\145\154\x64\163"]["\x70\x68\171\163\x69\x63\x61\154\x5f\x71\x75\x61\156\x74\151\x74\171"]["\x63\x61\x6c\154\x62\x61\x63\153\137\x6f\142\152\145\143\164"] = $this; } public function callbackSoldQuantityActionAdminStockMvtListingFieldsModifier($pwM0H, $BJD_A) { return $this->adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, "\160\150\x79\x73\x69\x63\141\154\x5f\x71\x75\x61\x6e\x74\x69\x74\x79", "\x73\x74\157\x63\153\x2d\155\166\x74\x20\x70\150\x79\x73\x69\143\x61\154"); } public function adminControllerDisplayListContentQuantity($pwM0H, $BJD_A, $SNYS6, $euE1Z = '') { if (!isset($BJD_A[$SNYS6])) { goto sJx90; } if ($SNYS6 == "\x72\145\141\154\137\x71\x75\x61\x6e\x74\151\164\x79" || $SNYS6 == "\161\x74\x79\137\x73\157\x6c\144") { goto zoNnw; } if ($SNYS6 == "\x73\164\x6f\143\153") { goto b3MA9; } $SWk7r = $SNYS6 . "\137\162\145\x6d\141\151\156\x64\145\x72"; if (!(($SNYS6 == "\163\141\166\x5f\x71\x75\x61\x6e\x74\x69\x74\x79" || $SNYS6 == "\160\x68\171\x73\151\x63\141\x6c\x5f\161\x75\141\x6e\164\x69\164\x79" || $SNYS6 == "\165\x73\141\142\154\x65\137\x71\165\141\x6e\164\151\164\171") && isset($BJD_A[$SWk7r]))) { goto m0uq6; } $i2l14 = $BJD_A[$SNYS6] + $BJD_A[$SWk7r]; if (isset($BJD_A["\151\144\137\x70\x72\157\x64\x75\x63\164"])) { goto IdF3K; } if (!isset($BJD_A["\151\x64\137\163\164\x6f\x63\x6b"])) { goto WsOfw; } $odDuI = (int) Db::getInstance()->getValue("\123\x45\114\x45\x43\x54\x20\140\x69\144\137\x70\162\x6f\144\165\143\164\x60\40\106\x52\117\x4d\x20\x60" . _DB_PREFIX_ . "\x73\x74\157\143\x6b\140\x20\x57\x48\105\x52\105\40\140\151\144\137\x73\x74\157\x63\153\140\40\75\40" . (int) $BJD_A["\x69\144\137\x73\164\157\x63\153"]); WsOfw: goto EG6GE; IdF3K: $odDuI = $BJD_A["\x69\144\x5f\160\x72\x6f\144\165\x63\164"]; EG6GE: m0uq6: goto wrSRu; zoNnw: $i2l14 = $BJD_A[$SNYS6]; $odDuI = $BJD_A["\151\x64\137\160\x72\x6f\144\x75\143\164"]; goto wrSRu; b3MA9: $i2l14 = $BJD_A[$SNYS6]; $odDuI = $BJD_A["\x69\x64"]; wrSRu: if (!(isset($i2l14) && is_numeric($i2l14) && (float) $i2l14 != 0)) { goto vcKpi; } $nsYp1 = PP::getProductProperties($odDuI); return "\74\163\x70\x61\156\x20\x63\x6c\x61\163\163\x3d\42\x70\160\x5f\x6c\x69\x73\x74\137\161\164\x79\x5f\x77\x72\x61\x70\160\145\x72\40" . $euE1Z . "\42\x3e" . PP::presentQty($i2l14, Context::getContext()->currency) . "\74\163\160\x61\156\40\x63\154\141\x73\163\75\42\160\160\137\142\157\x5f\161\x74\171\137\x74\145\170\x74\137\167\x72\141\160\160\x65\162\x22\76\x3c\x73\x70\141\x6e\40\143\154\x61\x73\163\75\42\160\x70\x5f\x62\x6f\137\161\x74\171\x5f\164\145\x78\164\x22\x3e\x20" . PP::safeOutputLenient($nsYp1["\160\x70\x5f\142\157\137\x71\164\x79\137\x74\145\x78\x74"]) . "\74\x2f\x73\x70\x61\x6e\76\74\57\x73\160\x61\156\76\74\57\x73\160\x61\156\x3e"; vcKpi: sJx90: return $pwM0H; } public function translations() { return $this->getTranslations(); } public function getTranslations($SNYS6 = null) { static $pS66y = null; static $vWnHb = null; if (!($pS66y === null)) { goto AZBCZ; } $rvm1b = Context::getContext()->getTranslator(); $pS66y = array("\156\141\x6d\x65" => Tools::strtolower($rvm1b->trans("\x4e\141\155\x65", array(), "\101\144\x6d\x69\156\x2e\x47\154\157\142\x61\x6c")), "\x64\145\163\x63\x72\151\x70\x74\x69\157\x6e" => Tools::strtolower($rvm1b->trans("\104\x65\163\143\x72\151\x70\x74\x69\x6f\x6e", array(), "\x41\x64\155\x69\156\x2e\107\x6c\157\x62\x61\154")), "\145\156\141\x62\x6c\x65\144" => Tools::strtolower($rvm1b->trans("\105\x6e\141\x62\x6c\x65\144", array(), "\x41\144\x6d\x69\x6e\x2e\x47\x6c\157\142\x61\154")), "\144\x69\163\x61\x62\154\x65\x64" => Tools::strtolower($rvm1b->trans("\x44\151\x73\x61\142\154\x65\144", array(), "\x41\144\155\x69\156\56\107\154\157\x62\x61\154")), "\x64\x65\146\x61\x75\154\x74" => Tools::strtolower($rvm1b->trans("\x44\145\146\141\x75\154\164", array(), "\101\144\x6d\x69\x6e\x2e\x47\x6c\157\x62\141\x6c")), "\x6f\162" => Tools::strtolower($rvm1b->trans("\117\162", array(), "\x41\144\155\151\156\56\107\x6c\x6f\142\x61\x6c")), "\x64\x6f\x63\165\x6d\145\156\164\141\164\x69\x6f\x6e" => Tools::strtolower($rvm1b->trans("\104\x6f\x63\165\155\x65\x6e\x74\x61\164\151\x6f\156", array(), "\x49\156\x73\164\141\x6c\x6c")), "\163\x5f\x6d\165\x6c\x74\151\x70\x6c\151\x63\x61\164\151\x6f\156" => $this->l("\x6d\x75\154\x74\x69\160\154\x69\143\141\164\x69\x6f\156\x3a\x20\144\151\x6d\x65\x6e\163\x69\x6f\156\163\x20\151\x6e\40\141\x6c\x6c\40\144\x69\162\145\x63\x74\x69\157\x6e\x73\x20\141\x72\145\40\x6d\165\154\164\x69\x70\154\x69\x65\x64\x20\x28\x67\x69\x76\x69\x6e\147\x20\141\162\145\x61\40\x6f\x72\x20\x76\157\x6c\165\x6d\x65\51"), "\163\x5f\x73\x75\155\x6d\141\x74\151\157\156" => $this->l("\x73\x75\155\x6d\x61\x74\151\x6f\x6e\x3a\x20\x64\x69\155\145\156\163\x69\157\156\x73\x20\151\156\x20\141\154\x6c\x20\144\151\x72\145\x63\164\x69\x6f\x6e\x73\40\x61\x72\x65\40\141\x64\x64\145\144"), "\x73\137\163\151\x6e\x67\x6c\145\137\144\151\155\x65\156\163\151\x6f\156" => $this->l("\x73\x69\x6e\x67\154\145\40\x64\x69\x6d\x65\x6e\x73\151\157\156"), "\x73\x5f\x63\x75\x73\x74\157\155\x5f\x63\141\154\143\165\x6c\141\x74\x69\x6f\156" => $this->l("\143\x75\163\x74\x6f\155\40\143\x61\x6c\143\x75\x6c\x61\x74\x69\x6f\156"), "\x73\x5f\160\160\137\145\x78\160\154\x61\x6e\x61\x74\151\x6f\156" => $this->l("\x69\x6e\154\151\x6e\x65\x20\145\170\160\154\141\156\141\x74\151\157\156"), "\163\137\x70\160\137\x6d\151\156\x69\x6d\165\x6d\137\160\x72\151\143\x65\x5f\162\141\x74\151\157" => $this->l("\161\x75\141\x6e\164\151\x74\x79\40\164\x68\162\x65\163\x68\157\154\144\x20\x66\x6f\162\x20\155\x69\x6e\151\155\165\x6d\x20\160\x72\x69\x63\145"), "\x54\157\x20\144\151\x73\x61\x62\154\145\40\164\x68\145\x20\155\157\144\165\x6c\x65\40\x70\154\x65\x61\163\145\x20\x75\156\x69\x6e\163\x74\x61\x6c\154\40\151\x74\56" => $this->l("\x54\157\x20\x64\151\163\141\x62\154\x65\40\x74\150\x65\x20\x6d\157\x64\165\154\145\40\x70\x6c\145\x61\163\x65\x20\x75\156\x69\x6e\163\x74\141\154\x6c\40\x69\164\x2e"), "\151\156\x63\x6f\x6d\x70\x61\x74\151\142\154\x65\x5f\x70\154\x75\147\x69\156\x5f\x61\x70\151\x5f\x76\x65\x72\x73\x69\157\156" => $this->l("\x52\145\161\x75\151\x72\x65\144\x20\x22\45\163\42\40\x70\x6c\165\x67\x69\156\x20\101\120\111\x20\x76\145\162\163\x69\x6f\x6e\x20\45\x73\54\x20\146\x6f\x75\x6e\x64\40\160\154\x75\147\x69\x6e\x20\x41\x50\111\40\166\x65\x72\163\x69\x6f\156\x20\45\x73\x2e"), "\x76\x65\x72\x73\x69\x6f\x6e" => Tools::strtolower($rvm1b->trans("\126\x65\x72\163\x69\x6f\x6e", array(), "\101\144\155\151\x6e\x2e\107\x6c\x6f\142\x61\154")), "\x50\162\x6f" => $this->l("\120\x72\x6f"), "\120\x72\x65\x6d\151\x75\x6d" => $this->l("\x50\x72\145\155\x69\165\155"), "\x75\x73\x65\162\x20\x67\x75\151\144\145" => $this->l("\x75\163\x65\162\x20\x67\165\x69\144\145"), "\154\145\x61\166\x65\x20\142\x6c\x61\156\x6b\x20\x74\157\40\x75\163\x65\40\144\x65\x66\141\165\x6c\x74" => $this->l("\x6c\145\x61\x76\x65\40\x62\154\141\156\153\x20\x74\157\40\x75\x73\x65\40\x64\x65\x66\x61\x75\154\x74"), "\x6c\145\141\166\145\40\x62\x6c\141\156\153\x20\x74\157\x20\x64\151\163\141\142\x6c\145\x20\x74\x68\x69\x73\x20\146\x65\x61\164\165\x72\145" => $this->l("\x6c\145\141\x76\x65\40\142\154\141\x6e\x6b\40\x74\157\40\x64\151\x73\141\x62\x6c\145\x20\164\150\151\x73\40\x66\145\141\164\x75\162\x65"), "\x69\164\145\x6d" => $this->l("\151\x74\145\x6d"), "\151\164\145\x6d\163" => $this->l("\x69\164\145\x6d\x73"), "\x69\156\x20\x73\x74\157\143\153" => $this->l("\151\x6e\x20\163\x74\157\x63\153"), "\x6f\165\x74\40\157\x66\40\x73\x74\x6f\143\x6b" => $this->l("\157\165\x74\x20\157\146\x20\163\x74\x6f\x63\x6b"), "\x71\165\141\x6e\164\151\x74\171\137\165\x70\x64\141\164\x65\137\156\x6f\x74\x5f\163\x75\160\160\x6f\162\x74\x65\144" => $this->l("\x51\x75\x61\156\x74\151\164\171\x20\x75\160\x64\141\164\145\40\156\x6f\x74\40\x73\165\160\x70\157\162\164\x65\x64\56"), "\x69\x6e\x76\x61\154\x69\x64\137\x63\x61\162\x74\x5f\160\x72\157\144\x75\143\164\137\x72\x65\146\x65\x72\x65\x6e\143\x65" => $this->l("\120\x72\x6f\x64\165\x63\164\x20\156\157\x74\40\146\x6f\x75\x6e\144\x20\x69\x6e\40\x74\x68\x65\40\143\x61\162\164\x20\50\x69\x6e\x76\x61\154\151\144\x20\x63\x61\162\x74\x20\160\162\x6f\x64\x75\143\164\40\162\145\146\145\162\x65\x6e\143\x65\x29\56"), "\x63\x61\156\156\x6f\164\137\x6f\162\x64\145\162\x5f\155\157\x72\145\x5f\x74\x68\x61\156" => $this->l("\x59\x6f\x75\40\x63\141\156\x6e\x6f\x74\40\x6f\162\144\x65\162\x20\x6d\x6f\162\x65\x20\164\x68\x61\156\x20\45\x71\165\x61\x6e\164\x69\164\x79\45\x20\x25\x74\x65\x78\164\45\40\x66\157\162\40\45\156\x61\155\x65\x25\x2e"), "\x63\x61\x6e\156\x6f\164\137\x6f\162\144\145\x72\x5f\155\157\x72\x65\137\164\x68\x61\156\137\x69\x6e\137\164\157\164\x61\x6c" => $this->l("\x59\x6f\165\x20\x63\141\156\x6e\157\164\40\x6f\x72\144\145\x72\40\x6d\157\162\145\40\164\x68\141\x6e\40\45\x71\x75\141\156\x74\x69\164\171\x25\40\45\164\145\x78\x74\x25\40\151\x6e\x20\164\157\164\141\x6c\x20\146\157\x72\40\45\x6e\x61\155\x65\45\x2e"), "\163\x68\x6f\x75\x6c\x64\137\x61\144\144\137\141\164\137\154\145\141\163\164" => $this->l("\x59\x6f\x75\40\x73\150\157\x75\x6c\144\x20\141\144\x64\40\x61\x74\40\154\x65\141\x73\x74\40\45\x71\165\x61\x6e\x74\151\164\171\x25\40\45\x74\x65\170\164\45\40\146\157\162\40\x25\156\141\x6d\145\45\x2e"), "\x6d\x75\x6c\164\151\144\x69\x6d\x65\x6e\x73\151\157\156\x61\154\137\160\x6c\165\x67\151\156\137\x6e\157\x74\137\x69\156\x73\x74\x61\154\x6c\x65\144" => $this->l("\115\x75\x6c\x74\151\144\x69\155\x65\156\163\151\x6f\156\141\154\x20\160\x6c\165\x67\151\x6e\x20\156\157\164\x20\151\156\163\164\x61\154\154\145\x64\56"), "\115\x61\x6e\141\147\x65\x20\x74\x65\155\x70\154\x61\x74\x65\163" => $this->l("\x4d\141\x6e\141\x67\145\40\x74\x65\155\x70\x6c\141\x74\x65\163"), "\x50\x6c\x65\x61\163\x65\40\x63\x68\x6f\157\x73\145\x20\x74\x65\155\160\154\x61\x74\x65\56" => $this->l("\120\x6c\145\x61\x73\145\x20\143\150\157\x6f\163\x65\x20\x74\145\155\x70\x6c\x61\x74\145\x2e"), "\101\163\163\151\x67\156\40\x74\145\155\x70\154\x61\x74\x65" => $this->l("\x41\163\163\151\x67\x6e\x20\164\145\155\160\x6c\x61\x74\x65"), "\x52\145\155\x6f\166\145\x20\164\145\x6d\x70\154\141\x74\x65" => $this->l("\122\x65\x6d\157\166\145\x20\x74\145\x6d\160\154\x61\164\x65"), "\x45\144\x69\164\x20\164\145\x6d\160\x6c\141\x74\145" => $this->l("\105\x64\x69\164\40\x74\x65\155\160\x6c\x61\x74\x65"), "\164\x65\x6d\160\154\141\164\x65" => $this->l("\x74\145\155\160\x6c\x61\x74\145"), "\164\x65\155\160\x6c\141\x74\145\163" => $this->l("\164\145\x6d\x70\x6c\x61\x74\145\163"), "\x73\164\x61\164\151\x73\164\151\x63\163" => $this->l("\163\x74\x61\164\x69\163\164\151\x63\163"), "\x73\150\x6f\x77\40\x6c\x65\x73\x73" => $this->l("\x73\150\x6f\x77\40\x6c\x65\x73\x73"), "\163\150\x6f\x77\40\x6d\157\162\x65" => $this->l("\163\x68\157\x77\x20\x6d\157\162\145"), "\163\x68\157\167\40\154\x65\163\163\40\x64\145\164\141\151\x6c\163" => $this->l("\163\x68\157\x77\40\154\x65\x73\163\x20\144\145\x74\x61\x69\x6c\x73"), "\x73\x68\157\167\x20\x6d\x6f\162\145\40\144\145\164\x61\151\154\163" => $this->l("\163\x68\157\167\40\155\157\162\x65\40\144\x65\x74\141\151\154\x73"), "\141\163\x73\151\x67\x6e\x5f\x6f\162\x5f\162\145\x6d\157\x76\x65\x5f\164\145\x6d\160\154\141\x74\145\x5f\x66\157\162\x5f\x73\145\x76\145\x72\141\154\x5f\x70\162\x6f\x64\x75\x63\x74\163\137\141\164\x5f\157\x6e\143\x65" => $this->l("\131\x6f\x75\40\x63\141\156\x20\141\x73\x73\x69\147\x6e\x20\x6f\162\40\x72\145\x6d\157\x76\x65\x20\164\145\155\x70\154\x61\164\x65\40\x66\x6f\162\40\x73\145\166\145\162\141\154\40\160\162\157\x64\165\143\x74\x73\40\x61\164\40\157\156\143\x65\x2e\40\x50\x6c\x65\141\163\x65\40\x63\150\157\x6f\163\145\40\164\150\x65\40\x74\x65\x6d\x70\x6c\x61\x74\145\40\x62\145\x6c\x6f\x77\40\141\156\x64\x20\163\x65\154\145\143\x74\x20\160\162\157\144\x75\x63\x74\163\40\x66\x72\157\x6d\40\164\150\145\40\154\151\x73\x74\x2e"), "\x43\150\141\156\x67\x69\156\x67\x20\x74\x65\155\160\154\x61\x74\145\x20\141\163\x73\151\x67\x6e\155\x65\156\x74" => $this->l("\x43\x68\141\156\x67\x69\x6e\147\40\x74\x65\x6d\160\x6c\x61\x74\145\x20\x61\x73\x73\x69\147\156\155\145\x6e\164"), "\103\150\141\156\147\151\x6e\x67\40\x70\162\157\144\x75\x63\x74\56\x2e\56" => $this->l("\x43\150\141\x6e\x67\151\156\x67\40\x70\162\x6f\144\x75\143\164\56\x2e\x2e"), "\x43\150\x61\x6e\147\x69\x6e\x67\x20\x74\x65\155\x70\x6c\141\164\145\x20\151\156\x20\160\x72\x6f\x67\162\x65\163\x73\x2e\56\x2e" => $this->l("\x43\150\141\x6e\147\151\x6e\147\x20\164\x65\155\x70\x6c\x61\x74\x65\x20\x69\156\40\x70\162\157\147\x72\x65\163\163\x2e\x2e\x2e"), "\x43\x68\x61\156\147\151\156\147\x20\x74\145\155\x70\154\x61\x74\145\x20\146\x61\151\154\145\x64\56" => $this->l("\103\150\141\x6e\147\x69\x6e\147\40\x74\x65\x6d\x70\x6c\x61\x74\x65\x20\146\141\x69\x6c\x65\x64\x2e"), "\163\x68\157\x77\x5f\151\156\137\x6d\x65\x6e\x75" => $this->l("\123\x68\x6f\167\40\x6d\x6f\144\x75\154\145\40\151\x6e\40\120\x53\46\115\x6f\x72\145\x20\x6d\x65\x6e\x75\x20\163\x65\x63\x74\x69\x6f\x6e"), "\165\160\x6c\x6f\141\144\137\146\141\x69\154\145\x64" => $this->l("\106\x69\x6c\x65\40\x75\x70\154\x6f\141\144\x20\x66\x61\x69\154\145\144\x2e"), "\x65\162\x72\157\x72\137\x64\x65\154\x65\x74\145\x5f\144\151\x72\145\143\x74\157\162\x79" => $this->l("\x43\x61\x6e\156\157\x74\40\x64\x65\154\145\x74\145\x20\42\x25\x73\x22\40\x64\x69\162\x65\143\164\x6f\x72\x79\x2e"), "\145\x72\162\157\162\x5f\x63\162\145\x61\164\x65\137\146\x69\x6c\x65" => $this->l("\x43\x61\156\x6e\157\x74\40\143\x72\145\x61\164\145\40\42\x25\x73\x22\x20\146\151\154\x65\56"), "\x61\x75\164\157" => $this->l("\141\165\x74\157"), "\166\x69\163\151\142\154\145" => $this->l("\166\151\163\x69\x62\154\x65"), "\150\x69\x64\144\145\156" => $this->l("\150\151\144\144\x65\156"), "\145\x78\x70\154\x61\156\x61\x74\151\157\156" => $this->l("\x65\170\160\154\x61\x6e\141\164\151\x6f\x6e"), "\x61\164\x74\162\151\x62\x75\x74\x65" => Tools::strtolower($rvm1b->trans("\x41\x74\x74\162\151\142\x75\164\x65", array(), "\x41\144\155\151\x6e\56\x47\154\157\142\141\x6c")), "\x61\x74\x74\162\151\142\x75\x74\x65\x73" => Tools::strtolower($rvm1b->trans("\x41\x74\164\x72\151\x62\x75\x74\x65\x73", array(), "\x41\144\155\x69\156\x2e\x47\x6c\x6f\142\x61\154")), "\164\x65\x78\x74" => Tools::strtolower($rvm1b->trans("\124\145\170\x74", array(), "\101\x64\x6d\x69\156\56\x47\x6c\157\x62\x61\x6c")), "\164\145\170\x74\x73" => $this->l("\164\x65\x78\164\163"), "\144\151\x6d\x65\x6e\163\x69\x6f\156" => $this->l("\144\151\x6d\145\156\x73\151\157\x6e"), "\x64\x69\x6d\145\156\163\x69\x6f\156\x73" => $this->l("\144\x69\155\145\156\x73\151\x6f\156\163"), "\x6d\145\x74\162\x69\x63" => $this->l("\x6d\x65\164\162\151\143"), "\156\157\156\x20\x6d\145\164\162\151\143" => $this->l("\x6e\x6f\156\x20\x6d\145\x74\162\151\x63"), "\156\157\x6e\x20\155\x65\x74\x72\x69\143\x20\x28\151\x6d\x70\145\162\x69\x61\154\x2f\x55\123\x29" => $this->l("\x6e\157\156\40\155\145\164\x72\x69\143\40\x28\151\155\x70\145\x72\x69\141\x6c\57\x55\123\x29"), "\103\x53\123\40\x63\x6c\141\x73\163\145\x73" => $this->l("\103\123\x53\x20\x63\154\141\x73\163\145\163"), "\x52\165\x6e\x20\x61\x6e\141\154\171\x73\151\x73" => $this->l("\122\x75\156\40\141\156\141\x6c\x79\x73\151\x73")); if (!(!$this->multidimensional_plugin || !isset($this->multidimensional_plugin->pro))) { goto Ti3VG; } $pS66y["\163\x5f\x63\x75\163\x74\157\155\137\x63\141\x6c\143\165\x6c\141\164\151\157\x6e"] .= "\40" . $this->l("\x28\x72\145\161\x75\151\x72\145\x73\40\x4d\x75\x6c\164\x69\144\151\155\x65\156\x73\151\157\156\141\x6c\40\x70\x6c\x75\147\x69\x6e\x20\x50\x72\x6f\x20\x6f\162\x20\x50\162\x65\x6d\151\x75\x6d\51"); Ti3VG: $VBMXl = $this->l("\x54\x68\x65\x20\155\151\156\x69\155\x75\x6d\40\x71\x75\x61\156\164\151\164\x79\40\162\145\161\x75\x69\x72\x65\144\40\x74\157\40\142\x75\x79\40\164\150\151\163\40\x70\x72\x6f\x64\x75\143\x74"); $EHj3B = $this->l("\50\x73\x65\164\40\x74\157\40\45\x64\x20\x74\x6f\40\165\163\x65\x20\x74\150\145\x20\164\145\x6d\x70\154\141\164\x65\x20\x64\145\146\x61\x75\154\x74\x29"); $vWnHb = array(); $vWnHb["\x41\x64\155\x69\156\x50\x72\157\x64\165\x63\164\x73"] = array("\x73\x5f\x70\160\x4d\151\156\121\164\x79\105\x78\x70\154\137\x64\151\x73\x61\142\154\145" => $this->l("\x54\x68\x65\x20\x6d\x69\156\151\155\165\x6d\40\161\x75\141\156\164\x69\164\171\x20\x72\145\161\165\x69\162\145\x64\40\164\x6f\40\142\x75\x79\40\x74\150\x69\x73\x20\x70\162\157\x64\x75\143\x74\40\x28\x73\x65\x74\x20\164\157\40\61\40\x74\x6f\40\x64\x69\163\141\x62\x6c\x65\x20\164\x68\x69\x73\40\146\145\x61\x74\165\x72\x65\51"), "\x73\137\160\160\115\x69\x6e\x51\164\x79\105\170\x70\x6c\x53\150\157\162\x74\137\x30" => sprintf($EHj3B, 1), "\163\137\160\160\115\151\156\121\164\x79\x45\170\x70\154\123\150\x6f\x72\164\137\61" => sprintf($EHj3B, 0), "\163\x5f\160\160\x4d\151\x6e\121\164\171\x45\x78\x70\x6c\x53\x68\157\162\164\x5f\62" => sprintf($EHj3B, 0), "\x73\137\x70\x70\x4d\151\x6e\x51\164\171\x45\170\160\x6c\x53\x68\x6f\x72\x74\x5f\x65\x78\x74" => sprintf($EHj3B, 0), "\163\137\155\151\x6e\151\x6d\x75\155\137\161\x75\141\156\x74\x69\x74\171" => $this->l("\155\151\156\151\x6d\165\x6d\x20\x71\165\x61\156\x74\151\164\x79\40\144\x65\146\x69\156\145\144\x20\x69\x6e\x20\x74\145\x6d\160\x6c\141\x74\x65\x20\151\x73"), "\163\137\160\x70\x5f\165\x6e\x69\164\x79\x5f\x74\x65\170\164\137\x65\170\160\x6c" => $this->l("\x73\160\x65\143\151\146\x69\145\144\40\x62\171\x20\x74\x65\x6d\x70\x6c\x61\x74\x65"), "\163\137\160\x61\x63\153\137\150\x69\x6e\x74" => $this->l("\x59\157\x75\x20\x63\141\156\x20\157\156\154\171\x20\141\x64\x64\x20\164\157\40\141\40\x70\141\143\153\40\x70\162\x6f\144\165\x63\164\x73\40\x73\157\154\x64\40\x69\156\40\x69\x74\x65\155\x73\40\x28\143\141\156\x6e\x6f\164\x20\x61\144\144\x20\160\x72\157\144\165\143\x74\x73\40\163\157\154\x64\x20\x62\171\x20\x77\145\x69\147\x68\x74\x2c\x20\x6c\x65\x6e\147\x74\150\x2c\x20\x65\x74\143\x2e\x29\x2e"), "\163\x5f\160\x70\137\161\x74\171\137\160\157\x6c\x69\143\x79" => $this->l("\x71\x75\x61\156\x74\151\x74\x79\x20\x70\x6f\x6c\x69\x63\x79"), "\163\x5f\x70\160\137\161\x74\171\137\x6d\x6f\144\x65" => $this->l("\161\165\141\x6e\x74\x69\x74\171\40\x6d\x6f\144\x65"), "\x73\137\160\160\x5f\144\x69\x73\x70\x6c\141\171\137\155\157\x64\145" => $this->l("\x64\151\x73\160\154\x61\171\40\155\157\144\145"), "\163\137\x70\160\x5f\x70\x72\151\143\x65\x5f\x64\x69\x73\x70\154\141\171\x5f\x6d\157\144\x65" => $this->l("\x70\x72\151\143\x65\x20\144\151\163\x70\154\x61\x79\x20\x6d\157\144\x65"), "\163\137\160\x70\137\160\x72\151\x63\x65\x5f\x74\x65\170\x74" => $this->l("\x70\x72\x69\143\145\x20\x74\145\170\164"), "\163\x5f\160\x70\x5f\161\164\x79\137\164\x65\170\x74" => $this->l("\161\165\x61\x6e\x74\151\x74\x79\40\164\145\170\x74"), "\163\x5f\160\x70\x5f\165\x6e\151\x74\x79\x5f\x74\145\x78\x74" => $this->l("\x75\156\151\x74\40\x70\162\151\x63\145\40\164\x65\170\x74"), "\x73\x5f\x70\x70\137\165\156\151\x74\137\160\x72\x69\x63\145\137\x72\x61\x74\x69\x6f" => $this->l("\165\x6e\151\164\40\160\162\x69\x63\x65\x20\162\x61\164\x69\157"), "\x73\137\160\160\x5f\x6d\x69\156\151\x6d\x75\x6d\x5f\x70\162\151\143\x65\137\x72\141\164\x69\157" => $this->l("\161\x75\141\x6e\x74\x69\164\171\x20\164\x68\x72\145\x73\150\x6f\154\144\40\146\x6f\162\40\x6d\x69\x6e\x69\155\165\155\x20\x70\162\151\x63\145"), "\x73\137\x70\x70\x5f\x6d\151\x6e\151\x6d\165\155\x5f\161\x75\141\x6e\x74\x69\x74\171" => $this->l("\155\x69\156\x69\155\165\x6d\40\161\165\x61\156\x74\151\x74\x79"), "\163\137\160\x70\137\x6d\141\x78\151\155\165\155\x5f\x71\165\x61\x6e\164\x69\164\x79" => $this->l("\155\x61\x78\151\155\165\x6d\40\x71\165\141\x6e\164\x69\x74\x79"), "\x73\x5f\x70\x70\137\164\157\164\141\154\137\x6d\x61\x78\151\155\165\x6d\137\161\165\141\156\164\x69\164\x79" => $this->l("\x74\x6f\x74\141\x6c\40\155\141\170\151\x6d\x75\155\x20\x71\x75\141\156\x74\x69\x74\171"), "\x73\x5f\x70\160\x5f\x64\145\x66\141\x75\154\164\137\161\165\141\156\x74\151\x74\171" => $this->l("\144\x65\x66\141\165\154\x74\x20\x71\165\141\156\x74\x69\164\171"), "\x73\137\160\x70\137\x71\164\x79\x5f\163\164\145\x70" => $this->l("\x71\x75\141\x6e\x74\151\164\171\x20\163\164\145\x70"), "\163\137\x70\x70\x5f\x71\x74\x79\137\x76\x61\154\x75\x65\x73" => $this->l("\x73\160\x65\x63\151\146\x69\x63\40\x71\165\141\x6e\164\151\x74\x79\x20\166\x61\x6c\165\145\x73"), "\163\137\x70\x70\x5f\x65\170\160\x6c\x61\156\x61\x74\x69\157\x6e" => $this->l("\151\x6e\154\x69\x6e\145\x20\x65\x78\160\154\x61\156\141\x74\151\x6f\x6e"), "\163\x5f\x70\160\137\161\x74\171\x5f\160\157\154\151\143\171\137\x30" => $this->l("\x69\164\145\155\x73"), "\163\137\160\160\x5f\161\164\x79\137\x70\x6f\154\x69\143\x79\137\61" => $this->l("\x77\150\x6f\154\145\x20\x75\x6e\151\164\163"), "\x73\x5f\160\160\x5f\161\164\171\x5f\160\157\154\151\143\x79\x5f\62" => $this->l("\146\x72\141\143\x74\151\x6f\156\141\x6c\x20\x75\x6e\x69\164\163"), "\163\x5f\x70\x70\137\161\164\x79\x5f\x70\157\x6c\x69\143\x79\137\x65\170\164" => $this->l("\155\x75\x6c\164\x69\x64\x69\155\x65\x6e\163\x69\x6f\156\141\154"), "\x73\x5f\160\160\x5f\x71\164\x79\137\x6d\x6f\144\145\137\x30" => $this->l("\145\170\x61\x63\x74\40\x71\x75\141\x6e\x74\151\x74\171"), "\x73\137\x70\160\137\161\x74\x79\x5f\155\x6f\144\x65\x5f\x31" => $this->l("\141\x70\x70\x72\157\170\151\x6d\x61\164\145\x20\161\165\x61\156\x74\x69\x74\171"), "\163\x5f\160\x70\137\x71\164\x79\137\x6d\x6f\144\x65\137\x32" => $this->l("\141\147\147\x72\x65\x67\x61\x74\145\40\161\165\141\x6e\164\151\164\x69\145\163"), "\x73\x5f\x70\x70\137\161\164\171\137\155\x6f\144\145\x5f\157\x70\x74\151\157\156\163" => array(2), "\x73\137\x70\x70\x5f\x64\151\x73\x70\x6c\x61\x79\x5f\155\x6f\144\145\x5f\60" => $this->l("\x6e\157\x72\155\141\x6c"), "\163\x5f\160\x70\x5f\x64\x69\163\160\x6c\141\x79\x5f\x6d\157\144\x65\137\x31" => $this->l("\162\145\x76\x65\x72\x73\x65\x64\x20\160\162\x69\x63\x65\x20\144\151\x73\160\154\x61\x79\40\50\x64\151\163\160\x6c\x61\171\x20\165\x6e\x69\164\40\160\162\x69\143\145\40\141\x73\x20\x70\x72\151\x63\145\x29"), "\163\x5f\160\160\137\x64\151\x73\x70\x6c\141\x79\137\x6d\x6f\x64\145\137\62" => $this->l("\x64\x69\x73\x70\x6c\141\x79\x20\162\x65\164\x61\151\x6c\40\160\162\x69\x63\145\x20\x61\x73\40\x75\156\x69\x74\x20\160\162\x69\143\145"), "\163\137\160\160\x5f\144\151\163\x70\154\x61\171\137\155\157\x64\145\x5f\x34" => $this->l("\x64\x69\x73\x70\x6c\141\x79\x20\142\x61\x73\145\40\165\156\x69\164\x20\x70\162\151\143\x65\x20\146\157\x72\x20\141\154\x6c\x20\143\x6f\155\x62\151\156\x61\x74\151\157\156\x73"), "\163\137\x70\160\x5f\x64\x69\163\x70\x6c\x61\171\x5f\155\x6f\144\145\137\x38" => $this->l("\x68\x69\x64\145\x20\145\x78\x74\x72\x61\40\x64\x65\164\141\x69\154\x73\x20\x66\157\162\x20\x75\x6e\151\x74\40\160\162\151\x63\x65\40\x69\x6e\40\x6f\162\144\145\162\163\x20\141\156\x64\x20\x69\x6e\166\x6f\151\x63\x65\x73"), "\163\x5f\160\x70\x5f\x64\151\163\160\x6c\141\x79\x5f\155\157\144\145\x5f\x31\x36" => $this->l("\150\151\x64\145\40\x65\x78\x74\162\141\x20\x64\145\x74\x61\x69\x6c\163\x20\x66\157\162\x20\161\165\x61\156\x74\x69\x74\x79\40\x69\156\40\x6f\x72\x64\x65\x72\163\40\141\156\x64\40\151\x6e\x76\157\x69\x63\145\163"), "\163\x5f\160\x70\x5f\144\x69\x73\160\154\x61\x79\x5f\155\x6f\x64\145\x5f\63\62" => $this->l("\x68\151\144\x65\40\145\170\x74\162\x61\40\144\x65\164\x61\x69\x6c\x73\40\146\157\x72\x20\160\x72\x6f\144\165\143\164\40\x74\x6f\x74\x61\154\x20\160\x72\151\143\145\x20\x69\156\x20\x6f\x72\x64\x65\162\x73\x20\141\x6e\x64\x20\x69\x6e\x76\x6f\x69\143\145\163"), "\163\137\160\x70\x5f\144\151\163\160\154\141\x79\x5f\155\x6f\x64\x65\137\66\64" => $this->l("\x64\x69\163\x70\x6c\x61\171\x20\x6c\x65\147\141\143\x79\40\x70\162\x6f\x64\x75\143\164\40\x70\162\x69\143\x65"), "\163\x5f\160\x70\137\144\151\x73\x70\x6c\141\171\x5f\x6d\157\x64\145\137\61\62\x38" => $this->l("\144\x69\163\x70\x6c\141\171\x20\165\156\x69\x74\40\160\162\x69\143\145\x20\x69\156\40\157\162\144\145\162\163\40\141\x6e\144\40\x69\x6e\166\157\x69\143\145\163"), "\x73\137\160\x70\137\144\x69\163\160\x6c\x61\171\x5f\155\157\x64\x65\x5f\157\160\x74\x69\157\x6e\x73" => array(2, 4, 64, 128, 8, 16, 32), "\163\137\160\160\137\160\x72\151\x63\x65\137\x64\x69\x73\160\x6c\141\171\x5f\155\x6f\144\145\137\60" => $this->l("\156\157\x72\x6d\141\x6c"), "\x73\137\160\160\x5f\x70\x72\151\x63\145\137\x64\x69\x73\x70\154\141\171\137\155\x6f\144\145\x5f\61" => $this->l("\141\x73\40\x70\x72\157\x64\165\143\164\40\160\162\x69\143\x65"), "\163\137\160\160\x5f\160\x72\151\x63\145\x5f\144\x69\x73\160\154\141\x79\137\155\x6f\x64\x65\x5f\x31\66" => $this->l("\x68\151\x64\145\x20\160\x72\x69\x63\x65\x20\144\x69\x73\160\x6c\141\171")); $vWnHb["\x41\x64\155\151\x6e\120\162\157\x64\x75\x63\x74\x73"]["\155\141\x78\x69\x6d\165\155\40\161\165\x61\156\164\x69\x74\171"] = $vWnHb["\x41\144\x6d\151\156\x50\162\157\x64\x75\x63\164\x73"]["\163\137\160\x70\137\155\141\x78\151\155\x75\155\137\x71\x75\x61\156\x74\x69\x74\171"]; $vWnHb["\x41\x64\x6d\x69\156\120\162\x6f\144\165\x63\x74\163"]["\x71\x75\141\156\164\x69\164\171\x20\163\164\x65\160"] = $vWnHb["\101\144\155\x69\x6e\120\x72\157\144\165\x63\x74\x73"]["\163\x5f\x70\160\x5f\x71\164\x79\137\163\164\x65\160"]; $vWnHb["\101\x64\x6d\151\156\120\x72\x6f\144\165\143\x74\163"]["\x73\x5f\x70\x70\x4d\151\156\121\164\171\x45\170\160\x6c\x5f\60"] = $VBMXl . "\x20" . $vWnHb["\x41\x64\155\x69\156\120\162\157\x64\x75\143\x74\163"]["\x73\137\x70\x70\115\151\x6e\121\164\x79\x45\x78\x70\154\123\x68\x6f\162\x74\137\x30"]; $vWnHb["\x41\x64\155\x69\x6e\x50\162\157\x64\165\143\164\163"]["\163\x5f\160\x70\115\151\156\121\x74\171\105\170\160\154\x5f\x31"] = $VBMXl . "\x20" . $vWnHb["\x41\x64\x6d\x69\156\120\162\x6f\x64\165\x63\x74\x73"]["\163\137\160\160\x4d\151\x6e\x51\x74\171\105\170\x70\x6c\x53\x68\x6f\x72\x74\137\61"]; $vWnHb["\x41\x64\155\151\156\x50\162\157\144\x75\x63\164\163"]["\163\x5f\160\160\x4d\x69\x6e\x51\164\171\x45\170\x70\x6c\137\x32"] = $VBMXl . "\x20" . $vWnHb["\101\x64\155\151\156\120\x72\x6f\144\165\x63\164\163"]["\x73\x5f\160\x70\x4d\x69\x6e\x51\x74\x79\x45\170\x70\154\x53\x68\157\162\164\x5f\62"]; $vWnHb["\101\144\x6d\x69\156\120\x72\x6f\144\x75\x63\164\163"]["\163\x5f\x70\x70\x4d\x69\156\121\x74\x79\105\x78\160\154\x5f\145\170\x74"] = $this->l("\115\x69\x6e\151\x6d\165\x6d\x20\161\x75\141\x6e\x74\151\x74\171\x20\x69\x6e\x20\155\165\x6c\x74\x69\x64\151\x6d\145\x6e\x73\x69\157\x6e\x61\154\40\x74\x65\x6d\160\x6c\141\164\x65\40\162\x65\x66\x65\162\x73\40\164\157\x20\x74\x68\x65\x20\156\x75\x6d\142\145\x72\x20\x6f\x66\40\x69\164\145\x6d\163") . "\40" . $vWnHb["\x41\x64\x6d\151\x6e\x50\162\x6f\x64\165\x63\x74\163"]["\x73\137\160\160\115\x69\156\x51\164\171\105\170\x70\154\123\150\x6f\x72\164\x5f\x65\x78\164"]; $vWnHb["\x50\162\157\144\165\x63\x74\103\x6f\x6e\x74\162\x6f\154\154\145\x72"] = array("\163\x5f\160\162\x69\143\x65" => $this->l("\x70\162\151\x63\x65")); foreach ($vWnHb as $Q_gK0 => $i2l14) { $pS66y = array_merge($pS66y, $i2l14); rFkWj: } RMp2X: AZBCZ: if (!($SNYS6 !== null)) { goto yrRCS; } return $vWnHb[$SNYS6]; yrRCS: return $pS66y; } public function getContent() { if (!Configuration::get("\120\x53\137\x44\x49\x53\x41\x42\114\x45\137\x4e\117\x4e\137\x4e\101\124\111\126\x45\x5f\x4d\x4f\x44\125\x4c\105")) { goto Dbdb2; } return "\x3c\144\x69\166\x20\x63\154\x61\163\x73\x3d\42\155\x6f\x64\x75\154\145\137\145\x72\162\157\x72\40\x61\x6c\x65\x72\x74\40\141\154\x65\162\x74\55\144\x61\x6e\x67\x65\162\x22\x3e" . $this->l("\116\x6f\x6e\40\120\x72\145\163\x74\x61\x53\x68\157\x70\40\x6d\x6f\144\165\154\145\163\40\144\151\163\x61\142\x6c\x65\144\56") . "\x3c\x2f\x64\x69\166\x3e"; Dbdb2: $this->tabAccess = PSM::tabAccess($this->adminTab); $this->active_languages = $this->context->controller->getLanguages(); $this->default_language_id = PP::resolveLanguageId(); $pS66y = $this->translations(); $rvm1b = Context::getContext()->getTranslator(); $Erij2 = $this->setupInstance(); if ((int) Tools::getValue("\x70\x70")) { goto V2qnm; } $this->checkIntegration($Erij2); V2qnm: $xlN7G = "\60"; $BeeE_ = $r3oOZ = $s4D2m = $fCpPT = $vowDI = ''; $VJeUd = null; $nsYp1 = null; if (Tools::isSubmit("\163\x75\x62\x6d\x69\164\122\145\163\x74\x6f\162\145\104\x65\146\x61\x75\x6c\x74\x73")) { goto GjV3i; } if (Tools::isSubmit("\x63\x61\x6e\x63\x65\154\123\141\166\x65\124\145\x6d\160\x6c\x61\164\x65")) { goto yS2Ad; } if (Tools::isSubmit("\143\x61\156\x63\x65\x6c\123\x61\166\145\120\162\x6f\160\x65\x72\164\x79")) { goto lFIKF; } if (Tools::isSubmit("\x73\165\x62\x6d\151\164\123\141\x76\145\x54\x65\x6d\160\x6c\141\x74\x65") || Tools::isSubmit("\x73\x75\142\155\151\164\x53\x61\x76\145\124\x65\x6d\160\154\141\x74\145\x41\156\144\123\164\x61\x79")) { goto BFqW2; } if (Tools::isSubmit("\x73\165\142\x6d\x69\164\123\x61\166\145\120\162\x6f\160\145\162\x74\x79")) { goto CJrDr; } if (Tools::isSubmit("\163\x75\x62\155\151\164\x43\157\156\146\x69\x67\123\x65\x74\x74\x69\156\x67\163")) { goto XtxEq; } if (Tools::isSubmit("\x73\x75\x62\x6d\151\164\x53\145\x74\x75\x70")) { goto wNMMq; } if (Tools::isSubmit("\x63\x6c\151\143\153\x43\154\145\141\x72\x43\x61\x63\x68\145")) { goto N63tR; } if (Tools::isSubmit("\163\x75\x62\x6d\x69\164\123\x74\141\164\x69\x73\x74\x69\x63\163")) { goto j1PT6; } if (Tools::isSubmit("\x63\x6c\151\143\153\x45\x64\x69\164\x54\x65\x6d\160\154\141\164\145")) { goto BPAfS; } if (Tools::isSubmit("\143\x6c\151\x63\153\104\x65\x6c\145\164\x65\124\145\155\x70\154\x61\164\145")) { goto i4j4L; } if (Tools::isSubmit("\x63\154\151\x63\x6b\x48\151\x64\x64\145\x6e\123\x74\x61\164\x75\x73\124\145\x6d\160\154\141\x74\x65")) { goto mHgaU; } if (Tools::isSubmit("\143\x6c\x69\143\x6b\x45\144\x69\x74\x50\162\x6f\x70\145\x72\x74\x79")) { goto xNFFk; } if (Tools::isSubmit("\x63\154\151\x63\153\x44\145\x6c\145\x74\145\x50\x72\157\x70\x65\162\164\x79")) { goto gThfd; } goto c7rVD; GjV3i: $xlN7G = "\x30"; if ($this->tabAccess["\x65\144\x69\x74"] === "\61") { goto W9aDo; } $BeeE_ = $this->displayError($this->tabAccess["\x6e\x6f\137\x70\x65\x72\155\151\163\163\151\x6f\x6e"]); goto tf5_V; W9aDo: $Erij2->insertData(true); tf5_V: goto c7rVD; yS2Ad: $xlN7G = "\x30"; goto c7rVD; lFIKF: $xlN7G = "\61"; goto c7rVD; BFqW2: if ($this->tabAccess["\x65\x64\x69\164"] === "\x31") { goto mpEyl; } $d5Cih = array(); $d5Cih["\145\x72\162\157\x72"] = $this->tabAccess["\x6e\x6f\x5f\160\145\162\x6d\x69\163\x73\x69\157\x6e"]; $d5Cih["\164\145\155\x70\154\141\x74\x65\x73"] = null; goto MTVbk; mpEyl: $d5Cih = $this->saveTemplate(); MTVbk: if ($d5Cih["\x65\x72\162\x6f\x72"] == '') { goto Wesmu; } $VJeUd = $d5Cih["\x74\145\x6d\160\154\x61\x74\x65\x73"]; $vowDI = $this->displayError($d5Cih["\145\x72\x72\157\x72"]); $xlN7G = "\64"; goto Jtdry; Wesmu: $xlN7G = Tools::isSubmit("\x73\165\x62\x6d\151\164\x53\x61\x76\145\124\x65\x6d\160\x6c\141\x74\145\101\156\144\x53\x74\141\171") ? "\64" : "\60"; Jtdry: goto c7rVD; CJrDr: if ($this->tabAccess["\145\x64\151\x74"] === "\x31") { goto coa0R; } $d5Cih = array(); $d5Cih["\145\x72\x72\157\162"] = $this->tabAccess["\x6e\x6f\137\160\145\x72\x6d\x69\163\x73\x69\157\x6e"]; $d5Cih["\x70\x72\157\160\x65\162\x74\151\145\163"] = null; goto SHXBw; coa0R: $d5Cih = $this->saveProperty(); SHXBw: if ($d5Cih["\x65\x72\162\x6f\x72"] == '') { goto r83jO; } $nsYp1 = $d5Cih["\x70\162\157\160\x65\x72\x74\x69\x65\x73"]; $vowDI = $this->displayError($d5Cih["\145\x72\162\x6f\x72"]); $xlN7G = "\x34"; goto RJo0h; r83jO: $xlN7G = "\x31"; RJo0h: goto c7rVD; XtxEq: $xlN7G = "\x32"; if ($this->tabAccess["\145\144\x69\164"] === "\x31") { goto N2JRp; } $s4D2m = $this->displayError($this->tabAccess["\156\157\x5f\160\145\162\x6d\x69\163\163\x69\x6f\x6e"]); goto q4N84; N2JRp: Configuration::updateValue("\120\x50\137\x4d\x45\101\123\125\122\105\115\105\x4e\x54\137\123\x59\x53\x54\105\x4d", PP::getIntNonNegativeValue("\155\145\141\x73\x75\162\145\155\x65\x6e\164\x5f\163\x79\163\164\145\x6d", 1)); Configuration::updateValue("\120\x50\x5f\115\x45\x41\x53\125\122\105\115\x45\x4e\x54\x5f\123\x59\123\124\x45\115\137\x46\x4f", PP::getIntNonNegativeValue("\155\x65\141\163\x75\x72\145\155\145\156\x74\x5f\x73\171\x73\164\x65\155\137\x66\157", 0)); Configuration::updateValue("\120\x50\137\120\117\x57\x45\122\105\x44\102\131", PP::getIntNonNegativeValue("\160\157\x77\x65\162\x65\x64\x62\171", 0)); Configuration::updateValue("\x50\x50\x5f\x54\x45\115\120\x4c\101\124\105\137\x4e\x41\115\x45\137\111\116\x5f\x43\x41\x54\101\x4c\x4f\x47", PP::getIntNonNegativeValue("\164\x65\155\x70\154\141\164\145\137\x6e\141\x6d\x65\x5f\151\156\x5f\x63\x61\x74\x61\x6c\x6f\x67", 1)); Configuration::updateGlobalValue("\120\120\x5f\123\x48\x4f\x57\x5f\x49\116\x5f\115\105\x4e\x55", PP::getIntNonNegativeValue("\x73\x68\x6f\x77\137\151\x6e\137\155\145\156\165", 1)); $Erij2->adminTab($this->adminTab, Configuration::getGlobalValue("\x50\x50\137\x53\x48\117\x57\x5f\x49\116\x5f\115\x45\116\125")); $s4D2m = $this->displayConfirmation($rvm1b->trans("\123\x65\164\164\x69\156\147\163\40\165\160\144\x61\164\x65\x64", array(), "\x41\144\155\151\x6e\x2e\x47\x6c\x6f\x62\x61\x6c")); q4N84: goto c7rVD; wNMMq: $xlN7G = "\x32"; if ($this->tabAccess["\x65\144\x69\164"] === "\x31") { goto cBYZP; } $s4D2m = $this->displayError($this->tabAccess["\156\157\x5f\x70\x65\162\x6d\x69\x73\x73\x69\x6f\156"]); goto D5l8U; cBYZP: $Erij2->runSetup(); D5l8U: goto c7rVD; N63tR: $xlN7G = "\62"; Configuration::deleteByName("\x50\x50\x5f\111\x4e\x46\117\x5f\103\x48\x45\103\x4b\x5f\x54\111\x4d\105"); PSM::clearCache(); goto c7rVD; j1PT6: $xlN7G = "\x33"; goto c7rVD; BPAfS: $xlN7G = "\64"; goto c7rVD; i4j4L: $xlN7G = "\x30"; if ($this->tabAccess["\x65\x64\151\x74"] === "\x31" && $this->tabAccess["\144\x65\154\x65\x74\x65"] === "\61") { goto nwKA5; } $BeeE_ = $this->displayError($this->tabAccess["\156\157\x5f\x70\x65\x72\x6d\x69\163\x73\x69\x6f\156"]); goto HNghW; nwKA5: $this->deleteTemplate(); HNghW: goto c7rVD; mHgaU: $xlN7G = "\x30"; if ($this->tabAccess["\145\144\151\164"] === "\x31") { goto fltD0; } $BeeE_ = $this->displayError($this->tabAccess["\x6e\157\x5f\x70\x65\162\155\151\x73\163\151\157\x6e"]); goto Hy2fd; fltD0: $this->changeHiddenStatus(); Hy2fd: goto c7rVD; xNFFk: $xlN7G = "\x34"; goto c7rVD; gThfd: $xlN7G = "\x31"; if ($this->tabAccess["\x65\144\151\164"] === "\x31" && $this->tabAccess["\x64\x65\x6c\x65\164\x65"] === "\x31") { goto VylEu; } $r3oOZ = $this->displayError($this->tabAccess["\x6e\157\x5f\x70\x65\162\155\x69\x73\x73\x69\x6f\x6e"]); goto i_o9z; VylEu: $this->deleteProperty(); i_o9z: c7rVD: $Vjs2g = ''; if (!(version_compare(_PS_VERSION_, $this->ps_versions_compliancy["\x6d\x69\x6e"]) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy["\155\x61\170"]) > 0)) { goto Y64e3; } $Vjs2g .= $this->displayError($this->l("\124\150\x69\163\x20\x6d\157\x64\x75\154\145\40\151\x73\x20\x6e\x6f\x74\x20\x66\165\154\x6c\x79\40\143\157\155\160\141\164\151\142\x6c\x65\x20\167\151\x74\x68\x20\164\150\x65\40\x69\x6e\163\164\141\154\x6c\x65\144\x20\120\x72\145\163\x74\x61\x53\x68\x6f\x70\x20\166\145\x72\x73\x69\x6f\x6e\56") . "\x20" . $this->compatibilityText() . "\x3c\142\162\x3e" . $this->l("\120\x6c\x65\141\x73\145\x20\165\160\x67\162\x61\144\x65\40\164\157\x20\164\x68\145\x20\156\x65\x77\x65\x72\x20\166\x65\162\x73\151\x6f\156\56") . "\x3c\x62\162\76"); Y64e3: if (!(count($this->integration_test_result) != 0)) { goto n3jxk; } $Vjs2g .= $this->displayError($this->l("\111\x6e\164\145\147\x72\141\164\151\x6f\156\x20\x74\145\163\164\40\x66\141\x69\154\x65\x64\x2e")); $xlN7G = "\62"; n3jxk: $svj_s = array(); $svj_s[0] = array("\x74\171\x70\x65" => "\x74\145\x6d\160\x6c\x61\164\x65\x73", "\x6e\x61\155\x65" => Tools::ucfirst($pS66y["\x74\x65\155\160\x6c\141\164\145\x73"]), "\x69\x63\x6f\x6e" => "\74\151\40\x63\x6c\141\163\x73\75\42\x6d\x61\x74\x65\x72\151\141\154\x2d\x69\x63\x6f\x6e\163\x20\151\143\157\x6e\55\164\x65\x6d\160\154\x61\x74\x65\x22\x3e\x72\x65\x6f\162\144\x65\162\x3c\x2f\x69\x3e", "\150\164\x6d\154" => $BeeE_ . $this->getTemplatesTabHtml()); $svj_s[1] = array("\x74\171\160\145" => "\160\x72\157\x70\x65\162\164\x69\145\163", "\156\x61\155\x65" => $this->l("\120\162\157\x70\145\x72\x74\x69\x65\x73"), "\x69\x63\x6f\156" => "\x3c\x69\x20\x63\154\141\163\163\x3d\42\151\143\157\x6e\55\164\141\147\42\x3e\74\x2f\x69\76", "\x68\164\x6d\154" => $r3oOZ . $this->getPropertiesTabHtml()); $svj_s[2] = array("\164\171\160\x65" => "\163\x65\x74\164\x69\156\147\163", "\x6e\x61\155\x65" => $rvm1b->trans("\x53\145\x74\x74\x69\x6e\x67\163", array(), "\101\144\155\151\156\56\x47\154\x6f\x62\x61\154"), "\x69\x63\x6f\156" => "\74\151\x20\x63\154\x61\163\163\75\x22\x69\x63\x6f\x6e\x2d\x41\x64\x6d\151\156\101\x64\155\x69\x6e\42\x3e\x3c\x2f\151\x3e", "\150\x74\x6d\154" => $s4D2m . $this->getSettingsTabHtml(Tools::isSubmit("\163\165\x62\x6d\x69\164\123\x65\164\x75\x70"))); $svj_s[3] = array("\164\x79\x70\x65" => "\163\164\141\164\x69\x73\x74\x69\x63\163", "\156\141\155\x65" => Tools::ucfirst($pS66y["\x73\x74\x61\x74\151\163\164\151\143\163"]), "\x69\143\x6f\x6e" => "\x3c\151\x20\143\x6c\141\163\x73\75\42\151\143\157\x6e\x2d\101\x64\x6d\151\156\120\141\162\145\156\164\123\164\141\164\163\x22\76\74\57\x69\x3e", "\150\x74\155\x6c" => $fCpPT . $this->getStatisticsTabHtml(Tools::isSubmit("\163\x75\x62\x6d\x69\x74\123\164\x61\x74\x69\x73\x74\151\143\x73"))); if ($xlN7G == 4 && (Tools::isSubmit("\143\154\x69\143\x6b\105\x64\x69\164\124\x65\155\x70\x6c\x61\164\x65") || Tools::isSubmit("\x73\165\142\155\x69\x74\123\x61\x76\x65\x54\x65\x6d\x70\x6c\x61\x74\x65") || Tools::isSubmit("\x73\165\142\155\x69\164\x53\141\x76\145\124\x65\x6d\x70\154\141\164\x65\101\156\144\123\x74\141\x79"))) { goto uqdfN; } if ($xlN7G == 4 && (Tools::isSubmit("\143\x6c\151\143\153\105\144\x69\164\120\162\157\x70\x65\162\164\171") || Tools::isSubmit("\x73\x75\142\x6d\151\164\x53\x61\x76\145\x50\162\x6f\160\145\x72\164\171"))) { goto dKE_8; } goto ddlhQ; uqdfN: $RtsEA = Tools::getValue("\x6d\157\x64\x65"); if ($RtsEA == "\141\x64\x64") { goto wSI5Z; } if ($RtsEA == "\x63\157\x70\x79") { goto hTc1s; } $RtsEA = "\145\x64\151\164"; $Gkfvq = $this->l("\x45\x64\151\x74\x20\x74\x65\155\160\154\141\x74\145"); goto g5eY4; wSI5Z: $Gkfvq = $this->l("\101\x64\144\40\164\145\x6d\x70\154\x61\x74\x65"); goto g5eY4; hTc1s: $Gkfvq = $this->l("\x41\x64\144\40\x74\145\155\x70\154\141\164\145"); g5eY4: $svj_s[4] = array("\164\x79\x70\145" => "\155\157\144\x69\x66\x79\x54\x65\155\160\154\141\x74\x65", "\x6e\x61\x6d\x65" => $Gkfvq, "\x69\143\x6f\156" => "\74\x69\x20\143\154\x61\x73\163\x3d\x22\x69\143\157\x6e\x2d\x65\x64\x69\x74\x22\76\x3c\x2f\x69\76", "\150\164\x6d\x6c" => $vowDI . $this->getEditTemplateTabHtml($VJeUd, $RtsEA, $Gkfvq)); goto ddlhQ; dKE_8: $RtsEA = Tools::getValue("\155\x6f\x64\x65"); if ($RtsEA == "\141\144\144") { goto atUqd; } $RtsEA = "\x65\x64\x69\164"; $Gkfvq = $this->l("\x45\144\x69\164\x20\x70\162\157\160\145\162\164\x79"); goto sRJbh; atUqd: $U7zGz = (int) Tools::getValue("\164\171\x70\x65"); if ($U7zGz == self::PROPERTY_TYPE_GENERAL) { goto PCwJa; } if ($U7zGz == self::PROPERTY_TYPE_BLOCK_TEXT) { goto GwU6N; } $Gkfvq = $this->l("\x41\x64\144\40\x70\162\157\160\x65\x72\x74\171\x20\x64\151\155\x65\x6e\163\151\157\156"); goto aX2Y0; PCwJa: $Gkfvq = $this->l("\x41\144\144\x20\x70\162\157\x70\145\162\164\x79\40\x61\x74\164\162\151\142\x75\x74\145"); goto aX2Y0; GwU6N: $Gkfvq = $this->l("\x41\x64\x64\x20\x70\x72\x6f\x70\145\162\x74\x79\40\x74\145\170\x74"); aX2Y0: sRJbh: $svj_s[4] = array("\x74\171\160\x65" => "\x6d\x6f\144\151\x66\171\120\162\x6f\160\x65\162\x74\171", "\156\141\155\x65" => $Gkfvq, "\x69\143\157\156" => "\74\151\40\143\x6c\141\163\x73\x3d\x22\151\x63\x6f\156\x2d\x65\144\x69\x74\x22\76\74\x2f\x69\76", "\x68\164\x6d\x6c" => $vowDI . $this->getEditPropertyTabHtml($nsYp1, $RtsEA, $Gkfvq)); ddlhQ: $zw9EK = $this->createTemplate("\x70\160\x72\157\160\x65\162\164\x69\x65\x73"); $zw9EK->tpl_vars["\150\x74\155\154"] = $Vjs2g; $zw9EK->tpl_vars["\164\141\x62\x73"] = $svj_s; $zw9EK->tpl_vars["\x61\143\164\x69\x76\x65"] = $xlN7G; $zw9EK->tpl_vars["\166\145\162\163\151\x6f\156"] = PSM::moduleVersion($this); $zw9EK->tpl_vars["\x70\x70\x65\x5f\x69\x64"] = PSM::psmId($this->name); $zw9EK->tpl_vars["\137\x70\141\x74\x68"] = $this->getPathUri(); $zw9EK->tpl_vars["\x74\162\x61\x6e\x73\154\141\164\x69\157\x6e\x73"] = $this->translations(); $zw9EK->tpl_vars["\163\x5f\160\160\x5f\151\x6e\x66\157\x5f\x69\x67\156\157\x72\x65"] = $this->l("\144\x6f\156\x27\x74\x20\163\150\x6f\x77\x20\164\150\x69\x73\40\155\145\163\163\141\x67\x65\x20\x61\147\141\x69\x6e"); $zw9EK->tpl_vars["\164\x6f\x6b\145\156\137\x61\x64\x6d\151\x6e\160\x70\162\157\x70\145\162\164\x69\145\x73"] = Tools::getAdminTokenLite($this->adminTab); $zw9EK->tpl_vars["\141\x64\x6d\151\x6e\x70\160\x72\157\x70\x65\162\x74\x69\145\x73\x75\x72\154"] = $this->context->link->getAdminLink($this->adminTab, true); $zw9EK->tpl_vars["\x6a\163\x74\x72\141\156\163\154\x61\164\151\157\x6e\x73"] = PP::safeOutputLenientJS(array("\162\x65\x72\165\x6e" => $this->l("\122\x75\x6e\x20\x53\x65\164\165\x70"), "\151\x6e\x74\x65\147\162\x61\164\151\157\156\x5f\x6d\157\144\165\154\145\x5f\x73\x75\143\143\x65\x73\x73\137\x49\x6e\x74\x65\147\162\141\x74\151\157\156\115\x6f\x64\165\154\x65\x49\x67\x6e\157\162\x65" => $this->l("\151\147\x6e\x6f\x72\x65\144"), "\151\156\164\x65\147\x72\x61\164\151\157\x6e\137\x6d\x6f\144\165\x6c\x65\137\163\x75\x63\x63\x65\163\163\x5f\111\x6e\x74\x65\x67\162\141\x74\x69\x6f\x6e\x4d\x6f\x64\165\x6c\145\x49\156\x74\x65\147\162\141\164\145" => $this->l("\x69\156\164\x65\x67\x61\164\151\x6f\x6e\40\x61\143\x74\x69\166\141\x74\145\x64") . "\x20\x2d\40" . $this->l("\x70\154\145\141\x73\145\40\x72\165\x6e\x20\163\x65\164\165\x70"), "\x69\156\164\x65\147\x72\x61\x74\x69\157\156\x5f\155\x6f\x64\x75\x6c\x65\x5f\162\x65\162\165\156\137\111\x6e\164\145\147\162\141\164\x69\157\156\x4d\x6f\x64\x75\154\145\103\150\145\143\153\x46\157\x72\x55\x70\144\x61\x74\145\x73" => $this->l("\x70\154\x65\x61\x73\145\40\x72\165\x6e\x20\163\x65\164\165\160"), "\x69\156\x74\x65\x67\162\x61\164\151\x6f\x6e\x5f\x6d\x6f\x64\165\154\145\x5f\x64\157\167\156\154\x6f\141\x64\x65\144\x5f\x49\x6e\164\x65\147\162\141\x74\x69\x6f\156\115\157\x64\x75\154\145\x43\x68\x65\143\153\106\x6f\x72\x55\x70\x64\x61\164\x65\163" => $this->l("\x75\x70\144\x61\x74\145\x20\x64\157\167\x6e\x6c\157\x61\144\x65\x64") . "\40\55\x20" . $this->l("\160\154\x65\141\x73\x65\40\162\x75\x6e\x20\x73\145\164\165\x70"), "\x69\x6e\164\x65\147\x72\141\x74\x69\157\x6e\137\155\157\144\165\x6c\145\137\x6e\x6f\x5f\x75\x70\144\x61\164\x65\163\x5f\111\x6e\x74\145\147\162\x61\164\x69\x6f\156\115\157\x64\165\x6c\x65\x43\x68\x65\x63\x6b\x46\x6f\162\125\160\x64\141\164\145\x73" => $this->l("\156\x6f\40\165\x70\x64\141\164\145\x73\x20\x61\x76\141\151\x6c\x61\x62\154\145\x20\x2d\x20\160\x6c\x65\x61\163\x65\x20\x63\157\156\x74\141\143\x74\x20\143\x75\x73\164\157\x6d\145\x72\40\x73\x75\x70\160\157\162\164"), "\151\x6e\x74\145\x67\162\141\x74\x69\x6f\x6e\137\155\x6f\x64\x75\154\145\137\145\162\162\x6f\162" => $this->l("\145\162\162\x6f\162\40\x6f\143\x63\x75\x72\x72\145\x64"))); return $zw9EK->generate(); } private function getTemplatesTabHtml() { $pS66y = $this->translations(); $zw9EK = $this->createTemplate("\164\x65\155\160\154\141\164\145\163"); if ($this->integrated) { goto A9Sa2; } $zw9EK->tpl_vars["\151\156\x74\145\147\162\141\x74\151\x6f\x6e\137\155\145\x73\163\x61\147\x65"] = $this->getTabIntegrationWarning(); goto Kl6a1; A9Sa2: $VJeUd = PP::getTemplates($this->default_language_id); $ZDsgQ = array(); foreach ($VJeUd as &$KdYsj) { $ikjDL = array(); if (!(($KdYsj["\160\160\137\161\x74\x79\137\x6d\157\144\x65"] & 1) == 1)) { goto hpHky; } $ikjDL[] = 1; hpHky: $zZk3L = 2; foreach ($pS66y["\x73\x5f\160\160\137\161\164\x79\137\x6d\x6f\x64\145\x5f\157\x70\x74\x69\x6f\x6e\163"] as $xc1Yt) { if (!(($KdYsj["\x70\x70\137\x71\x74\171\x5f\x6d\157\x64\x65"] & $xc1Yt) == $xc1Yt)) { goto eUt15; } $ikjDL[] = $zZk3L; eUt15: $zZk3L++; xCEAT: } fEr8E: $KdYsj["\x71\164\x79\137\x6d\x6f\x64\145"] = implode("\54", $ikjDL); $iw1Yu = array(); if (!(($KdYsj["\x70\x70\x5f\x64\151\163\x70\x6c\141\171\137\x6d\x6f\x64\x65"] & 1) == 1)) { goto E0Qoq; } $iw1Yu[] = 1; E0Qoq: $zZk3L = 2; foreach ($pS66y["\x73\x5f\x70\x70\137\x64\x69\x73\160\x6c\x61\171\x5f\x6d\157\144\x65\x5f\157\160\x74\x69\x6f\x6e\163"] as $xc1Yt) { if (!(($KdYsj["\x70\x70\137\x64\151\x73\x70\154\x61\x79\137\155\x6f\x64\x65"] & $xc1Yt) == $xc1Yt)) { goto JiFhi; } $iw1Yu[] = $zZk3L; JiFhi: $zZk3L++; R2MI9: } EACqo: $KdYsj["\144\x69\x73\160\154\141\x79\x5f\x6d\x6f\x64\x65"] = implode("\54", $iw1Yu); if (!$KdYsj["\141\x75\x74\x6f\137\144\145\x73\143"]) { goto dRtA1; } $KdYsj["\x64\145\x73\143\162\151\160\164\x69\157\x6e"] = $this->generateDescription($KdYsj); dRtA1: if (!$KdYsj["\160\x70\x5f\x65\x78\x70\154\141\156\141\164\x69\157\x6e"]) { goto wzb9c; } $ZDsgQ[$KdYsj["\160\x70\137\x62\157\x5f\142\165\x79\137\142\x6c\x6f\x63\153\137\x69\x6e\144\x65\x78"]] = PP::safeOutputLenient($KdYsj["\x70\160\137\x65\x78\x70\x6c\x61\x6e\x61\x74\151\157\156"]); wzb9c: esXe7: } jV3C3: ksort($ZDsgQ, SORT_NUMERIC); $zw9EK->tpl_vars["\164\x65\x6d\160\154\x61\x74\x65\163"] = PP::safeOutputLenient($VJeUd); $zw9EK->tpl_vars["\142\x75\x79\x5f\142\154\x6f\143\x6b\x5f\164\145\x78\164"] = $ZDsgQ; $zw9EK->tpl_vars["\x71\164\171\137\x6d\157\144\145\137\x74\145\170\164"] = array($pS66y["\163\x5f\x70\x70\137\x71\164\x79\137\155\x6f\x64\145\x5f\61"]); foreach ($pS66y["\x73\x5f\x70\160\137\161\164\x79\137\155\x6f\144\x65\137\157\160\164\151\157\x6e\x73"] as $xc1Yt) { $zw9EK->tpl_vars["\x71\164\x79\137\x6d\x6f\144\x65\137\164\145\170\164"][] = $pS66y["\x73\137\x70\160\137\161\x74\x79\x5f\x6d\157\x64\145\x5f" . $xc1Yt]; OJTtr: } J_MWi: $zw9EK->tpl_vars["\144\x69\163\x70\x6c\141\x79\x5f\x6d\x6f\x64\145\137\x74\145\x78\164"] = array($pS66y["\163\137\160\160\x5f\x64\151\x73\160\154\141\171\137\155\157\144\145\137\x31"]); foreach ($pS66y["\x73\137\160\160\x5f\x64\x69\163\x70\x6c\141\x79\x5f\x6d\157\144\x65\x5f\x6f\160\x74\x69\x6f\156\163"] as $xc1Yt) { $zw9EK->tpl_vars["\x64\151\x73\x70\154\141\171\x5f\x6d\157\144\145\x5f\x74\145\170\x74"][] = $pS66y["\x73\137\160\x70\137\x64\x69\163\x70\x6c\141\171\x5f\155\x6f\x64\145\x5f" . $xc1Yt]; MhARM: } Zkkhm: Kl6a1: return $zw9EK->generate(); } private function getPropertiesTabHtml() { $zw9EK = $this->createTemplate("\x70\x72\x6f\x70\x65\x72\164\x69\x65\163"); if ($this->integrated) { goto K28vq; } $zw9EK->tpl_vars["\x69\x6e\164\x65\147\x72\141\164\151\157\x6e\x5f\x6d\145\x73\x73\x61\x67\x65"] = $this->getTabIntegrationWarning(); goto OgRkb; K28vq: $XsykN = $this->getAllProperties(); $qf27Z = PP::resolveMS() != 2; $zw9EK->tpl_vars["\x70\x72\x6f\x70\145\162\164\x69\145\x73"] = $XsykN[$this->default_language_id]; $zw9EK->tpl_vars["\160\162\157\160\x65\162\164\171\137\x74\171\x70\x65\163"] = $this->getPropertyTypes(); $zw9EK->tpl_vars["\164\x79\x70\x65\163"] = array("\x61\164\164\x72\151\142\165\164\145\163" => array("\x69\x64" => self::PROPERTY_TYPE_GENERAL, "\155\x65\164\x72\x69\143" => true, "\156\x6f\x6e\x6d\145\x74\162\151\x63" => true), "\x74\x65\170\x74\x73" => array("\151\x64" => self::PROPERTY_TYPE_BLOCK_TEXT, "\155\x65\164\162\151\143" => $qf27Z, "\x6e\157\x6e\155\x65\x74\162\x69\x63" => !$qf27Z), "\x64\x69\155\145\156\x73\x69\x6f\156\163" => $this->multidimensional_plugin ? array("\x69\144" => self::PROPERTY_TYPE_EXT, "\x6d\x65\164\162\151\x63" => true, "\156\x6f\x6e\x6d\x65\x74\x72\x69\x63" => true) : false); OgRkb: return $zw9EK->generate(); } private function getSettingsTabHtml($teXfM) { $rvm1b = Context::getContext()->getTranslator(); $Vjs2g = ''; if (!$this->integrated) { goto k3PbV; } $pS66y = $this->translations(); $zw9EK = $this->createHelperForm("\160\x70\137\x73\x65\164\164\151\x6e\147\x73\137\146\157\162\155", $rvm1b->trans("\123\145\164\x74\151\x6e\x67\163", array(), "\101\x64\x6d\151\x6e\x2e\x47\x6c\157\142\141\154"), "\163\165\x62\155\151\x74\103\157\156\x66\151\147\x53\145\164\164\151\x6e\147\163"); $X3UOe = array(array("\166\141\154\x75\145" => 1, "\x6c\141\142\145\x6c" => $rvm1b->trans("\131\x65\x73", array(), "\101\144\x6d\151\x6e\56\107\x6c\x6f\x62\141\154")), array("\x76\x61\154\165\x65" => 0, "\154\141\142\x65\154" => $rvm1b->trans("\116\x6f", array(), "\x41\144\x6d\x69\156\x2e\107\154\157\x62\x61\154"))); $bPSJx = array("\x69\156\160\165\x74" => array(array("\x6c\141\142\145\x6c" => $this->l("\115\x65\x61\x73\165\162\x65\155\145\x6e\164\x20\x73\x79\163\x74\x65\155"), "\164\x79\x70\x65" => "\162\x61\x64\151\x6f", "\x6e\x61\155\145" => "\x6d\x65\x61\163\x75\162\x65\155\x65\156\164\137\x73\x79\x73\x74\x65\x6d", "\x64\145\x73\143" => $this->l("\x75\156\151\164\40\x6d\x65\141\x73\x75\162\145\x6d\x65\156\x74\x20\x73\x79\163\x74\x65\155\x20\165\x73\x65\144\40\x62\x79\x20\x64\x65\x66\141\x75\x6c\x74\40\50\x63\141\156\40\142\x65\x20\x6f\x76\x65\x72\162\x69\x64\x64\145\156\x20\151\x6e\40\x74\145\x6d\x70\154\141\x74\x65\51"), "\166\x61\x6c\165\x65\163" => array(array("\x69\x64" => "\x6d\145\x61\x73\x75\x72\x65\155\x65\156\164\x5f\x73\x79\163\x74\145\x6d\137\x31", "\x76\141\x6c\x75\x65" => (int) PP::PP_MS_METRIC, "\x6c\x61\x62\x65\154" => $pS66y["\155\x65\164\x72\x69\143"]), array("\x69\144" => "\x6d\145\x61\163\x75\x72\145\155\x65\x6e\x74\x5f\163\x79\163\x74\x65\155\x5f\x32", "\166\x61\154\165\145" => (int) PP::PP_MS_NON_METRIC, "\x6c\141\142\x65\x6c" => $pS66y["\x6e\x6f\156\x20\x6d\x65\x74\x72\151\143\x20\x28\x69\x6d\x70\x65\x72\x69\x61\154\x2f\x55\x53\51"]))), array("\x6c\141\x62\x65\154" => $this->l("\104\x69\x73\160\154\x61\171\x20\42\x50\x6f\167\145\x72\145\x64\x20\142\171\x20\120\x53\x26\115\x6f\x72\145\42"), "\164\x79\160\145" => "\x73\x77\x69\x74\x63\150", "\x6e\x61\155\145" => "\160\157\x77\145\162\145\x64\x62\171", "\166\141\x6c\x75\x65\163" => $X3UOe), array("\154\x61\142\145\154" => $this->l("\x53\x68\157\x77\40\x74\x65\x6d\160\x6c\141\x74\x65\x73\x20\x69\x6e\40\x74\150\x65\x20\143\141\164\x61\x6c\x6f\147"), "\x74\171\x70\x65" => "\163\167\x69\x74\143\x68", "\156\x61\155\x65" => "\164\145\x6d\x70\154\x61\x74\145\x5f\x6e\141\155\x65\x5f\x69\x6e\137\143\141\x74\141\154\x6f\x67", "\144\x65\163\x63" => $this->l("\x73\150\x6f\167\x20\x6f\162\x20\150\x69\x64\x65\x20\x74\x65\155\x70\154\x61\x74\x65\x20\x6e\x61\x6d\x65\x73\40\151\x6e\40\164\x68\145\x20\160\x72\x6f\x64\165\x63\x74\163\x20\143\141\x74\x61\154\157\147"), "\x76\x61\154\x75\145\x73" => $X3UOe), array("\x6c\x61\x62\x65\x6c" => $pS66y["\x73\x68\x6f\167\x5f\151\156\137\155\145\156\x75"], "\164\x79\160\x65" => "\x73\x77\151\164\143\x68", "\156\141\x6d\x65" => "\163\x68\x6f\x77\137\x69\156\137\x6d\x65\x6e\165", "\x76\141\154\165\145\x73" => $X3UOe), array("\164\171\x70\145" => "\143\x6c\145\141\162\143\141\143\x68\x65", "\x6e\141\155\x65" => $rvm1b->trans("\x43\154\x65\x61\162\40\x63\141\x63\150\x65", array(), "\101\x64\155\x69\x6e\56\101\144\166\x70\x61\162\x61\155\x65\164\x65\x72\x73\56\x46\x65\x61\x74\x75\x72\x65")))); $zw9EK->fields_value["\x6d\x65\x61\x73\x75\162\145\x6d\145\x6e\x74\x5f\163\171\163\164\145\x6d"] = PP::getIntNonNegativeValue("\x6d\145\x61\x73\x75\x72\x65\155\x65\x6e\164\137\163\x79\x73\x74\x65\x6d", Configuration::get("\120\x50\x5f\115\105\101\x53\x55\x52\x45\115\105\x4e\x54\137\x53\131\123\x54\105\115")); $zw9EK->fields_value["\155\x65\141\163\x75\162\145\x6d\x65\x6e\x74\137\x73\x79\163\164\145\155\x5f\x66\157"] = (int) Configuration::get("\x50\120\137\115\x45\101\x53\x55\122\105\x4d\x45\x4e\x54\137\x53\131\x53\124\105\x4d\137\106\117"); $zw9EK->fields_value["\160\x6f\x77\145\x72\x65\144\142\171"] = (int) Configuration::get("\x50\x50\137\x50\x4f\x57\105\x52\x45\x44\102\x59"); $zw9EK->fields_value["\x74\145\155\160\154\141\164\x65\x5f\156\x61\155\x65\x5f\x69\x6e\137\143\141\164\141\x6c\x6f\147"] = (int) Configuration::get("\120\120\x5f\124\105\x4d\120\114\101\124\x45\x5f\116\x41\x4d\105\x5f\111\116\137\x43\x41\x54\101\114\117\x47"); $zw9EK->fields_value["\x73\150\x6f\167\137\x69\156\x5f\155\x65\156\x75"] = (int) Configuration::getGlobalValue("\x50\x50\137\123\x48\x4f\x57\137\x49\116\x5f\115\x45\116\125"); $Vjs2g .= $this->generateForm($zw9EK, $bPSJx); k3PbV: $WFKn_ = array(); $CXzQJ = $this->setupInstance()->checkModifiedFiles(); $As2Hq = $this->setupInstance()->checkExtraModulesIntegrity(true); if (count($this->integration_test_result) == 0) { goto qonoS; } $this->integration_test_result = array_replace_recursive($this->integration_test_result, $CXzQJ); $this->integration_test_result = array_replace_recursive($this->integration_test_result, $As2Hq); if (!isset($this->integration_test_result_notes)) { goto SSpcq; } $this->integration_test_result = array_merge_recursive($this->integration_test_result, $this->integration_test_result_notes); SSpcq: $WFKn_["\x62\164\x6e\x5f\141\x63\x74\151\x6f\x6e"] = "\x73\165\142\x6d\x69\x74\123\145\164\x75\160"; $WFKn_["\142\x74\156\137\164\x69\x74\154\145"] = $this->l("\122\x75\156\40\123\145\x74\165\160"); $WFKn_["\144\x69\x73\x70\154\x61\x79"] = $this->showIntegrationTestResults($this->integration_test_result); $WFKn_["\x68\141\163\104\145\x73\x63"] = true; $WFKn_["\137\x70\x61\164\150"] = $this->getPathUri(); goto JKk3j; qonoS: $WFKn_["\x62\x74\156\x5f\141\x63\x74\151\x6f\x6e"] = "\x73\x75\142\x6d\x69\x74\x53\145\x74\x75\x70"; $WFKn_["\142\164\x6e\137\x74\151\164\x6c\145"] = $this->l("\x52\165\156\x20\x53\145\164\x75\160"); if (!$teXfM) { goto F6DKf; } $WFKn_["\x63\157\156\146\151\x72\x6d\x61\164\x69\x6f\156"] = $this->displayConfirmation($this->l("\x53\145\x74\165\160\x20\x63\157\155\160\154\x65\x74\x65\x64\x20\163\x75\x63\143\x65\x73\163\x66\165\154\154\171\56")); $opLe7 = $CXzQJ; $opLe7 = array_replace_recursive($opLe7, $As2Hq); if (!isset($this->integration_test_result_notes)) { goto qCo4Q; } $opLe7 = array_merge_recursive($opLe7, $this->integration_test_result_notes); qCo4Q: $WFKn_["\x64\151\163\x70\154\141\x79"] = $this->showIntegrationTestResults($opLe7); F6DKf: JKk3j: $zw9EK = $this->createTemplate("\151\x6e\x74\x65\147\162\141\164\151\x6f\x6e"); $zw9EK->tpl_vars["\151\x6e\164\145\147\162\141\x74\x69\x6f\156"] = $WFKn_; $zw9EK->tpl_vars["\151\x6e\x74\x65\x67\x72\x61\x74\151\x6f\x6e\137\x69\156\x73\164\162\165\143\x74\x69\x6f\156\163"] = $this->l("\x49\156\x74\x65\x67\162\141\x74\151\x6f\x6e\40\111\156\163\x74\x72\x75\143\x74\x69\x6f\x6e\x73"); $Vjs2g .= $zw9EK->generate(); return $Vjs2g; } private function getStatisticsTabHtml($teXfM) { $zw9EK = $this->createTemplate("\163\x74\141\164\x69\x73\164\x69\143\163"); if ($this->integrated) { goto uZg_D; } $zw9EK->tpl_vars["\151\x6e\x74\145\x67\x72\141\x74\x69\x6f\x6e\137\155\x65\x73\163\141\x67\145"] = $this->getTabIntegrationWarning(); goto V9Tqc; uZg_D: set_time_limit(300); if (!$teXfM) { goto lTJLi; } $he7ft = Db::getInstance(); $VJeUd = PP::getTemplates(); $zvtIr = array(); $Ri9mb = array(); $aW1b2 = $he7ft->executeS("\x53\105\114\105\x43\x54\x20\143\157\165\156\164\50\140\151\144\x5f\160\x70\x5f\x74\145\x6d\x70\x6c\141\164\x65\x60\x29\40\141\x73\40\143\157\165\x6e\164\x2c\x20\x60\151\x64\137\160\x70\x5f\x74\145\155\x70\x6c\141\164\145\140\x20\106\x52\117\x4d\40\x60" . _DB_PREFIX_ . "\x70\162\157\x64\x75\x63\164\140\x20\127\x48\x45\122\105\40\x60\151\x64\x5f\160\x70\137\164\x65\x6d\160\x6c\x61\164\145\140\40\x3e\40\x30\x20\147\x72\x6f\165\160\40\142\x79\40\x60\x69\x64\137\160\160\137\164\145\155\x70\154\141\164\x65\x60"); foreach ($aW1b2 as $JpSqf) { $zvtIr[$JpSqf["\x69\x64\137\160\160\137\x74\x65\155\160\154\141\x74\x65"]] = $JpSqf["\143\x6f\x75\x6e\164"]; $Ri9mb[$JpSqf["\151\x64\x5f\x70\160\137\164\145\x6d\160\154\141\x74\x65"]] = $JpSqf["\151\x64\137\x70\160\x5f\x74\145\155\160\x6c\141\x74\x65"]; Gb2ST: } tVVkz: $aW1b2 = array(); foreach ($VJeUd as $KdYsj) { $QYiU9 = $KdYsj["\151\x64\137\x70\160\137\164\145\155\x70\x6c\x61\164\x65"]; unset($Ri9mb[$QYiU9]); $JpSqf = array(); $JpSqf["\151\x64"] = $QYiU9; $JpSqf["\156\x61\x6d\x65"] = $KdYsj["\x6e\141\x6d\145"]; $JpSqf["\143\157\165\x6e\x74"] = isset($zvtIr[$QYiU9]) ? $zvtIr[$QYiU9] : 0; if (!($JpSqf["\x63\157\165\156\x74"] > 0)) { goto d58PV; } $AgKmr = $he7ft->executeS("\123\105\114\105\103\124\x20\104\x49\123\124\x49\x4e\103\x54\40\160\x2e\x60\151\x64\137\x70\x72\x6f\x64\165\143\x74\x60\x2c\x20\160\154\x2e\140\156\141\x6d\145\x60\x20\x46\x52\117\115\x20\x60" . _DB_PREFIX_ . "\x70\162\x6f\144\165\143\x74\140\40\x70\x20\x4c\105\x46\124\x20\x4a\117\111\x4e\x20\x60" . _DB_PREFIX_ . "\x70\x72\x6f\x64\165\x63\x74\137\154\141\x6e\x67\x60\40\160\154\40\x4f\116\40\x28\x70\56\140\x69\144\137\x70\162\x6f\144\x75\x63\x74\140\40\75\40\x70\x6c\56\140\151\144\137\160\x72\157\144\x75\143\x74\x60\40\x41\x4e\104\x20\160\154\x2e\140\x69\x64\137\154\x61\x6e\147\140\x20\x3d\x20" . (int) $this->default_language_id . "\51\x20\127\x48\x45\x52\105\x20\160\56\140\151\x64\137\160\160\x5f\x74\x65\155\x70\x6c\x61\x74\145\140\40\75\40" . (int) $QYiU9); foreach ($AgKmr as &$sMujq) { $sMujq["\x68\162\x65\146"] = $this->context->link->getAdminLink("\101\x64\x6d\151\x6e\120\162\157\144\x75\143\164\163", true, array("\x69\x64\x5f\160\162\157\x64\x75\143\x74" => $sMujq["\x69\144\137\160\162\x6f\x64\165\143\x74"])); FO0W2: } cyqBl: $JpSqf["\x70\x72\157\144\165\x63\x74\x73"] = $AgKmr; d58PV: $aW1b2[] = $JpSqf; NniJf: } hdTP5: $zw9EK->tpl_vars["\145\x78\x69\163\x74\151\156\x67"] = $aW1b2; if (empty($Ri9mb)) { goto PVAam; } $AgKmr = $he7ft->executeS("\x53\x45\114\x45\x43\x54\40\x44\x49\123\x54\x49\x4e\103\124\40\160\56\x60\151\x64\137\160\x72\x6f\144\x75\143\164\x60\x2c\40\x70\56\140\151\144\x5f\160\x70\x5f\164\x65\155\160\x6c\x61\164\x65\140\x2c\40\x70\x6c\56\140\156\141\155\x65\140\40\106\122\x4f\115\40\x60" . _DB_PREFIX_ . "\x70\162\x6f\144\165\x63\164\x60\x20\x70\40\x4c\105\106\x54\40\112\117\111\116\40\140" . _DB_PREFIX_ . "\160\x72\157\x64\x75\143\x74\137\154\x61\156\147\x60\x20\160\x6c\x20\117\116\40\50\160\x2e\x60\x69\144\137\x70\162\x6f\144\x75\143\164\x60\40\75\40\160\154\x2e\x60\151\x64\x5f\160\162\x6f\144\165\x63\x74\140\x20\x41\x4e\x44\40\160\x6c\x2e\140\x69\144\x5f\x6c\141\x6e\147\140\x20\x3d\x20" . (int) $this->default_language_id . "\x29\x20\127\110\x45\122\x45\x20\x70\x2e\x60\151\x64\137\160\x70\x5f\x74\145\155\x70\154\141\164\x65\x60\40\151\x6e\x20\x28" . implode("\x2c", $Ri9mb) . "\x29"); if (!(is_array($AgKmr) && count($AgKmr) > 0)) { goto Tn8K2; } foreach ($AgKmr as &$sMujq) { $sMujq["\150\162\145\x66"] = $this->context->link->getAdminLink("\x41\144\155\151\156\x50\x72\x6f\144\165\143\164\x73", true, array("\151\x64\x5f\x70\x72\x6f\144\x75\x63\164" => $sMujq["\151\144\137\x70\162\x6f\x64\165\x63\x74"])); Qrng6: } KbRI0: $zw9EK->tpl_vars["\x6d\x69\x73\x73\151\156\147"] = $AgKmr; Tn8K2: PVAam: lTJLi: V9Tqc: return $zw9EK->generate(); } private function getEditTemplateTabHtml($VJeUd, $RtsEA, $Gkfvq) { if ($this->integrated) { goto KFMND; } return ''; KFMND: $rvm1b = Context::getContext()->getTranslator(); $pS66y = $this->translations(); if ($RtsEA == "\x61\x64\144") { goto jfpvz; } $M0WV_ = PP::getIntNonNegativeValue("\151\x64"); goto zHPK0; jfpvz: $M0WV_ = 0; if (!($VJeUd == null)) { goto aVtNz; } foreach ($this->active_languages as $rDJFb) { $KdYsj = PP::getProductPropertiesByTemplateId($M0WV_); $KdYsj["\x6e\141\155\x65"] = ''; $KdYsj["\141\x75\164\x6f\x5f\x64\145\x73\143"] = 1; $KdYsj["\144\145\163\143\162\x69\x70\164\151\157\156"] = ''; $VJeUd[$rDJFb["\151\144\137\x6c\x61\156\x67"]][$M0WV_] = $KdYsj; eF8gT: } jd40T: aVtNz: zHPK0: if (!($VJeUd == null)) { goto B7y0g; } $VJeUd = PP::getAllTemplates(); B7y0g: $KdYsj = $VJeUd[$this->default_language_id][$M0WV_]; $ezQJE = PP::resolveMS($KdYsj["\x70\160\x5f\x62\157\137\x6d\x65\x61\x73\165\162\145\155\145\156\164\x5f\163\171\163\164\145\155"]); $XsykN = $this->getAllProperties($ezQJE); $jm2G6 = $this->getPropertyTypes(); $NT0ye = array(array("\x74\x69\164\x6c\x65" => $rvm1b->trans("\103\141\x6e\x63\145\154", array(), "\x41\144\x6d\x69\x6e\x2e\101\x63\x74\151\x6f\156\163"), "\x74\171\x70\x65" => "\x73\x75\142\155\x69\164", "\156\x61\x6d\x65" => "\x63\141\x6e\143\145\x6c\123\x61\x76\x65\x54\145\155\160\x6c\x61\164\145", "\151\143\x6f\156" => "\x70\x72\x6f\x63\145\163\x73\55\x69\x63\157\156\55\x63\x61\156\x63\x65\x6c")); if (!($RtsEA == "\x65\x64\x69\164")) { goto rVc2d; } $NT0ye[] = array("\x74\151\x74\x6c\x65" => $rvm1b->trans("\123\141\166\x65\40\x61\x6e\x64\x20\163\164\x61\171", array(), "\x41\x64\x6d\151\x6e\56\101\x63\164\x69\x6f\156\163"), "\x74\x79\x70\145" => "\163\165\142\155\151\164", "\156\x61\155\145" => "\x73\165\x62\x6d\x69\164\123\x61\166\145\x54\x65\155\160\x6c\x61\164\x65\101\156\x64\x53\164\141\171", "\143\154\x61\x73\163" => "\x62\x74\156\40\142\x74\x6e\x2d\144\x65\146\x61\x75\154\164\x20\x70\x75\154\x6c\x2d\x72\151\x67\x68\164\40\160\x70\x2d\141\143\x74\151\x6f\156\x2d\x62\164\x6e" . ($this->tabAccess["\145\144\151\x74"] === "\61" ? '' : "\x20\144\x69\x73\141\142\x6c\145\x64"), "\151\x63\157\x6e" => "\160\x72\157\143\x65\163\x73\x2d\x69\x63\x6f\x6e\x2d\x73\141\x76\x65"); rVc2d: $LtkGe = $KdYsj["\x70\160\137\x65\x78\x74"] == 1 ? "\74\x62\x72\76\55\55\x20" . $this->l("\151\x6e\x20\x6d\x75\154\164\x69\x64\x69\x6d\145\156\x73\151\157\x6e\x61\154\x20\164\x65\x6d\x70\154\141\164\x65\40\164\x68\x65\x20\x71\165\141\156\x74\x69\x74\171\40\162\x65\146\x65\x72\x73\x20\164\x6f\40\164\150\x65\40\156\165\x6d\x62\145\x72\40\x6f\x66\x20\x69\x74\x65\155\163") . "\x20\x2d\55" : ''; $zjZaN = $KdYsj["\x70\160\x5f\x65\170\x74"] == 1 ? "\x74\x77\x6f\x2d\154\x69\156\145\163" : ''; $zw9EK = $this->createHelperForm("\160\160\x5f\164\x65\x6d\160\x6c\x61\x74\x65\137\146\x6f\x72\155", $Gkfvq, "\163\x75\x62\155\151\x74\x53\x61\x76\145\x54\145\x6d\160\154\x61\x74\145", "\151\143\157\156\55\145\144\x69\x74"); $aHM3P = array(); foreach ($pS66y["\x73\x5f\160\x70\x5f\x71\164\171\137\x6d\x6f\x64\x65\x5f\157\x70\x74\x69\157\156\163"] as $xc1Yt) { $aHM3P[] = array("\x76\x61\x6c\x75\x65\x73" => array("\x71\x75\145\x72\x79" => array(array("\151\144" => $xc1Yt, "\x6e\141\155\145" => $pS66y["\163\x5f\160\160\137\161\164\171\x5f\155\157\x64\145\137" . $xc1Yt], "\166\141\154" => "\61")), "\x69\x64" => "\x69\144", "\x6e\141\155\x65" => "\x6e\141\x6d\145"), "\x73\145\160\141\162\141\164\145" => true); x213M: } nfRKz: $ce3UA = array(); foreach ($pS66y["\163\x5f\x70\160\x5f\x64\x69\163\160\154\x61\x79\137\x6d\157\144\145\137\157\x70\x74\x69\x6f\x6e\163"] as $xc1Yt) { $ce3UA[] = array("\x76\141\154\165\145\163" => array("\x71\165\145\162\x79" => array(array("\x69\x64" => $xc1Yt, "\156\141\x6d\145" => $pS66y["\x73\x5f\160\160\137\x64\x69\163\160\x6c\x61\x79\x5f\x6d\157\144\x65\x5f" . $xc1Yt], "\x76\x61\x6c" => "\x31")), "\151\144" => "\151\x64", "\156\x61\155\x65" => "\x6e\x61\155\x65"), "\x73\x65\x70\x61\x72\141\x74\145" => true); Ls1va: } Yyf9n: $bPSJx = array("\x69\156\x70\x75\164" => array(array("\x74\171\160\145" => "\x64\x69\166", "\154\141\x62\145\154" => $rvm1b->trans("\x49\104", array(), "\x41\144\155\151\x6e\x2e\107\x6c\x6f\x62\x61\154"), "\156\x61\155\145" => $M0WV_, "\x63\154\x61\163\x73" => "\143\x6f\x6e\164\162\157\154\x2d\164\145\x78\x74", "\143\x6f\x6e\144\151\164\x69\x6f\156" => $RtsEA == "\x65\x64\x69\x74"), array("\x74\171\160\145" => "\164\145\170\x74", "\x6c\141\142\x65\154" => $pS66y["\156\141\155\145"], "\156\141\155\145" => "\x6e\x61\x6d\x65\137\x69\156\x70\165\164", "\x6c\141\156\x67" => true), array("\164\x79\x70\145" => "\x74\x65\170\x74", "\x6c\141\x62\145\x6c" => $pS66y["\x64\x65\x73\143\x72\x69\x70\x74\151\x6f\x6e"], "\156\x61\x6d\x65" => "\x64\145\x73\143\x72\x69\160\164\x69\x6f\156\x5f\151\156\160\165\164", "\154\141\156\x67" => true, "\x64\145\x73\143" => $this->l("\x6c\x65\141\166\145\x20\142\x6c\x61\156\153\x20\164\x6f\x20\x75\163\x65\x20\141\165\x74\157\40\147\145\156\145\162\141\x74\x65\x64\40\x64\x65\x73\x63\x72\151\x70\164\151\157\x6e")), array("\x74\171\160\145" => "\162\x61\x64\151\x6f", "\154\141\142\x65\x6c" => $pS66y["\163\x5f\x70\x70\137\x71\164\171\137\160\x6f\154\x69\x63\171"], "\156\x61\155\145" => "\160\160\x5f\161\x74\x79\137\x70\157\154\x69\143\x79", "\144\145\x73\143" => $this->l("\x6f\x72\144\x65\162\x65\144\40\161\165\141\x6e\x74\151\164\x79\40\163\160\x65\143\x69\146\x69\145\163\x20\156\x75\x6d\142\x65\162\x20\x6f\146\40\151\164\145\155\163\40\x28\160\151\x65\x63\145\x73\54\x20\160\x61\143\153\163\54\x20\145\x74\143\56\51\40\157\x72\40\x6f\156\145\40\151\164\x65\155\x20\157\146\x20\164\150\x65\40\x73\x70\x65\x63\151\x66\151\x65\x64\40\x6e\x75\155\x62\145\x72\x20\157\146\x20\x77\150\x6f\x6c\x65\40\157\162\x20\146\x72\x61\x63\x74\x69\x6f\156\141\x6c\40\165\156\x69\164\x73\40\50\153\x67\x2c\x20\x6d\54\40\x66\164\x2c\x20\x65\164\x63\56\51"), "\x76\141\x6c\x75\145\x73" => array(array("\x69\x64" => "\x70\160\x5f\161\x74\x79\137\160\157\x6c\151\143\x79\137\60", "\166\x61\154\x75\145" => 0, "\x6c\x61\x62\x65\154" => $pS66y["\x73\x5f\x70\x70\x5f\x71\x74\x79\x5f\160\x6f\154\151\143\x79\137\60"]), array("\x69\144" => "\160\x70\137\161\164\171\137\160\x6f\x6c\151\143\171\x5f\61", "\166\141\154\165\x65" => 1, "\154\x61\142\x65\154" => $pS66y["\163\137\160\x70\137\x71\164\x79\x5f\160\x6f\154\x69\x63\x79\x5f\x31"]), array("\x69\x64" => "\x70\x70\x5f\x71\x74\171\x5f\160\157\154\x69\x63\171\x5f\62", "\166\x61\x6c\165\145" => 2, "\x6c\x61\142\145\x6c" => $pS66y["\x73\x5f\160\x70\x5f\161\164\x79\x5f\x70\x6f\x6c\151\x63\171\137\x32"]), array("\151\x64" => "\160\160\137\161\164\171\x5f\x70\x6f\x6c\x69\x63\x79\x5f\63", "\x76\141\154\165\x65" => 3, "\x6c\141\142\x65\154" => $pS66y["\x73\137\160\x70\x5f\161\164\x79\x5f\160\157\x6c\151\x63\171\x5f\x65\x78\164"])), "\141\144\x76\151\143\x65" => array("\x74\171\160\x65" => "\154\141\x62\x65\x6c\x20\x64\x65\163\x63\162\x69\160\x74\x69\157\156", "\143\x6c\x61\x73\x73" => "\160\160\x5f\161\x74\x79\x5f\x70\x6f\x6c\x69\x63\171\x5f\x30\x20\160\160\x5f\161\164\x79\137\x70\157\154\151\x63\x79\x5f\61", "\142\151\x6e\x64" => "\x5b\164\171\x70\x65\x3d\162\x61\x64\151\157\135\x5b\156\x61\155\145\x3d\x70\160\137\x71\x74\x79\137\160\x6f\154\151\143\171\135", "\150\x74\155\x6c" => sprintf($this->l("\114\145\141\162\x6e\40\x74\x68\145\40\144\x69\x66\x66\x65\162\145\156\143\145\40\x62\x65\164\x77\x65\x65\156\x20\42\45\163\x22\x20\141\156\x64\x20\42\45\163\x22\x2e"), $pS66y["\163\x5f\x70\160\137\161\x74\x79\137\160\x6f\x6c\151\x63\171\x5f\x30"], $pS66y["\x73\137\x70\x70\137\x71\164\171\x5f\160\157\154\x69\143\x79\137\x31"]), "\x6b\x65\x79" => "\x70\160\x5f\x71\x74\x79\x5f\160\157\154\151\143\171")), array("\x74\171\160\x65" => "\162\x61\144\151\157", "\154\141\142\x65\x6c" => $pS66y["\x73\137\160\x70\x5f\x71\164\x79\x5f\155\157\x64\145"], "\156\141\x6d\145" => "\160\160\x5f\x71\x74\171\x5f\155\x6f\144\x65", "\144\x65\163\143" => $this->l("\160\162\157\144\165\143\x74\x20\x71\x75\x61\x6e\x74\151\164\x79\40\x63\141\156\40\142\145\x20\x6d\x65\141\x73\x75\162\x65\x64\40\x65\170\141\x63\x74\x6c\171\x20\157\x72\x20\157\x6e\x6c\171\40\x61\160\x70\162\157\170\151\155\x61\164\145\x6c\171\40\x28\x74\x68\145\x20\145\170\x61\x63\164\x20\x61\x6d\x6f\165\x6e\164\40\x63\141\x6e\156\157\164\x20\x62\145\x20\157\162\x64\145\162\145\144\x29\40\55\x20\157\x6e\x6c\x79\40\151\x66\x20\x71\x75\141\156\164\x69\x74\171\x20\160\157\x6c\x69\x63\171\40\x69\163\x20\163\145\164\x20\x74\x6f\x20\x75\x6e\151\164\163"), "\166\141\154\165\x65\x73" => array(array("\151\x64" => "\160\x70\137\x71\x74\x79\x5f\155\157\144\145\137\60", "\166\141\x6c\165\145" => 0, "\154\141\x62\x65\x6c" => $pS66y["\x73\137\x70\x70\x5f\161\x74\x79\137\x6d\157\144\x65\x5f\x30"]), array("\151\144" => "\x70\x70\x5f\x71\164\171\x5f\x6d\x6f\144\x65\x5f\61", "\x76\x61\154\165\x65" => 1, "\154\141\x62\145\154" => $pS66y["\x73\137\x70\160\x5f\x71\x74\x79\x5f\x6d\157\144\145\137\61"])), "\x63\150\x65\x63\153\x62\x6f\x78\145\163" => $aHM3P, "\x61\x64\166\151\x63\145" => $this->advice("\160\x70\137\x71\x74\171\x5f\x6d\157\144\x65")), array("\x74\x79\x70\x65" => "\162\x61\144\x69\x6f", "\154\x61\142\145\x6c" => $pS66y["\x73\x5f\x70\x70\137\144\151\163\160\154\141\x79\137\155\x6f\x64\145"], "\156\x61\x6d\x65" => "\x70\160\137\144\151\163\x70\154\141\x79\x5f\x6d\157\x64\x65", "\166\141\154\x75\145\163" => array(array("\151\x64" => "\x70\160\137\x64\x69\x73\160\x6c\x61\x79\137\x6d\x6f\x64\145\137\60", "\x76\141\x6c\165\x65" => 0, "\x6c\141\142\x65\154" => $pS66y["\x73\137\x70\160\x5f\144\151\163\160\x6c\141\x79\x5f\155\157\144\145\x5f\x30"]), array("\x69\x64" => "\x70\x70\137\144\x69\x73\x70\x6c\141\171\137\x6d\x6f\144\145\x5f\x31", "\x76\x61\154\165\x65" => 1, "\x6c\141\142\x65\x6c" => $pS66y["\x73\137\160\160\137\x64\151\163\160\154\x61\x79\x5f\x6d\x6f\x64\x65\137\61"])), "\143\150\145\x63\x6b\142\157\170\x65\163" => $ce3UA, "\x61\x64\x76\x69\x63\145" => $this->advice("\160\x70\x5f\144\x69\x73\x70\x6c\141\171\137\155\x6f\144\x65")), array("\x74\x79\x70\x65" => "\162\141\144\x69\x6f", "\x6c\x61\142\x65\154" => $pS66y["\x73\x5f\160\160\x5f\x70\162\151\143\x65\x5f\x64\151\x73\160\154\141\x79\137\155\157\144\145"], "\156\141\155\145" => "\160\160\137\x70\x72\151\x63\x65\137\x64\151\x73\x70\x6c\141\171\137\155\x6f\x64\145", "\144\x65\x73\x63" => $this->l("\163\x68\x6f\167\x20\143\x61\154\143\x75\154\141\164\x65\x64\40\160\x72\151\x63\145\x20\163\145\x70\141\162\141\164\x65\154\x79\54\x20\144\151\163\x70\x6c\x61\x79\x20\151\164\40\x69\x6e\x20\x74\150\145\x20\160\157\x73\151\164\x69\x6f\156\x20\157\x66\x20\x74\150\145\x20\160\162\x6f\x64\165\x63\x74\40\160\x72\151\143\145\x20\157\162\40\x68\x69\x64\145\x20\164\x68\x65\40\143\141\154\x63\165\154\141\x74\x65\x64\x20\160\162\151\143\145"), "\x76\x61\154\x75\x65\x73" => array(array("\x69\x64" => "\x70\160\x5f\160\x72\151\x63\145\x5f\x64\x69\163\x70\154\x61\171\x5f\155\x6f\x64\x65\x5f\60", "\x76\141\154\x75\x65" => 0, "\154\x61\x62\145\154" => $pS66y["\x73\x5f\x70\160\x5f\160\x72\x69\x63\145\137\144\151\163\160\154\141\171\137\155\157\x64\x65\137\60"]), array("\151\144" => "\160\160\x5f\x70\162\x69\x63\145\137\x64\x69\163\x70\154\x61\x79\137\155\x6f\x64\145\137\61", "\166\x61\x6c\165\145" => 1, "\x6c\141\x62\145\x6c" => $pS66y["\163\137\x70\160\x5f\x70\x72\151\x63\x65\x5f\x64\x69\x73\160\x6c\x61\x79\x5f\155\157\144\x65\137\x31"]), array("\x69\144" => "\x70\x70\137\160\x72\151\x63\x65\x5f\144\x69\163\x70\x6c\141\171\x5f\155\157\x64\145\x5f\61\x36", "\166\x61\x6c\165\145" => 16, "\x6c\141\x62\145\154" => $pS66y["\163\137\x70\160\137\160\162\151\x63\x65\x5f\144\x69\x73\x70\154\141\x79\137\155\x6f\144\x65\137\61\x36"])), "\141\x64\166\x69\143\145" => $this->advice("\160\x70\x5f\160\x72\151\x63\145\137\144\x69\163\160\x6c\x61\x79\x5f\x6d\157\144\145")), $this->createHelperFormSelect("\x70\x70\x5f\160\162\151\143\145\x5f\164\x65\x78\x74", array("\x6c\141\142\145\x6c" => $pS66y["\x73\x5f\160\x70\137\160\x72\151\x63\145\137\x74\x65\x78\x74"], "\x64\145\x73\x63" => $this->l("\x64\x69\163\160\154\141\171\x65\x64\x20\x61\x66\x74\145\x72\x20\x74\150\145\x20\160\x72\x6f\144\165\143\164\47\163\40\160\x72\x69\143\x65")), self::PROPERTY_TYPE_GENERAL, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\x70\160\137\x71\x74\x79\137\x74\145\170\x74", array("\154\x61\142\x65\154" => $pS66y["\163\137\x70\160\137\x71\164\171\x5f\164\x65\170\x74"], "\x64\145\163\143" => $this->l("\x64\x69\x73\160\154\141\171\x65\x64\x20\141\146\x74\145\x72\40\x74\x68\x65\x20\x70\162\157\144\x75\143\164\47\x73\x20\x71\165\141\x6e\164\x69\x74\171")), self::PROPERTY_TYPE_GENERAL, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\160\160\x5f\165\156\151\164\171\137\x74\x65\x78\x74", array("\154\x61\x62\145\154" => $pS66y["\x73\137\160\160\x5f\165\156\151\x74\x79\137\164\145\170\x74"], "\x64\145\x73\x63" => $this->l("\x64\x69\163\x70\154\141\171\145\x64\40\x66\x6f\162\40\160\x72\x6f\144\x75\143\x74\x73\40\x77\x69\164\x68\x20\x75\156\x69\164\40\x70\x72\151\x63\x65\x20\x67\162\x65\141\x74\x65\162\40\x74\150\141\156\x20\172\145\x72\x6f")), self::PROPERTY_TYPE_GENERAL, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("\x74\x79\x70\x65" => "\164\x65\x78\164", "\x6c\x61\x62\145\154" => $pS66y["\163\137\160\160\x5f\x75\156\x69\164\x5f\160\x72\151\x63\x65\x5f\x72\x61\x74\x69\x6f"], "\156\x61\x6d\x65" => "\x75\x6e\x69\164\x5f\x70\162\151\143\x65\x5f\x72\x61\x74\151\157", "\143\x6c\141\163\163" => "\x66\151\170\145\x64\x2d\x77\151\144\x74\150\55\x78\154", "\x64\x65\x73\x63" => $this->l("\x75\163\x65\144\40\164\x6f\x20\141\x75\x74\157\40\x63\x61\154\143\165\154\x61\x74\x65\x20\x75\x6e\151\x74\40\x70\x72\151\143\145\40\x69\156\x20\x70\x72\157\144\x75\x63\164\x20\x63\141\164\141\154\x6f\x67"), "\141\x64\166\x69\143\145" => $this->advice("\160\x70\137\165\x6e\x69\x74\137\160\x72\151\143\x65\137\x72\x61\x74\x69\157")), array("\164\171\x70\145" => "\x74\x65\170\x74", "\154\x61\142\145\x6c" => $pS66y["\163\x5f\160\x70\x5f\155\151\x6e\151\x6d\x75\x6d\x5f\x70\x72\151\143\145\137\x72\141\x74\x69\x6f"], "\x6e\141\x6d\x65" => "\155\x69\x6e\x69\x6d\x75\x6d\137\x70\x72\151\143\x65\x5f\162\x61\164\151\x6f", "\143\x6c\141\163\163" => "\x66\x69\170\x65\144\x2d\x77\x69\144\x74\x68\55\170\x6c", "\144\145\163\x63" => $this->l("\165\163\145\144\x20\164\x6f\x20\x63\141\154\143\165\x6c\x61\x74\145\x20\x6d\x69\x6e\151\x6d\x75\x6d\40\x70\162\151\x63\145\x20\x66\x6f\x72\x20\x71\165\x61\156\164\151\164\171\x20\154\145\163\x73\x20\164\x68\x61\x6e\x20\164\x68\x65\x20\163\160\x65\x63\151\146\x69\145\x64\40\x74\x68\162\145\163\x68\x6f\154\144"), "\141\144\x76\151\143\x65" => $this->advice("\x70\160\x5f\x6d\151\x6e\x69\x6d\x75\155\137\160\x72\x69\143\x65\137\162\141\164\x69\157")), array("\164\x79\160\x65" => "\164\145\x78\164", "\154\x61\x62\x65\x6c" => $pS66y["\163\x5f\x70\160\137\155\151\156\x69\155\165\155\x5f\x71\165\x61\156\x74\151\164\171"], "\156\x61\155\x65" => "\x6d\x69\x6e\x69\x6d\x75\155\137\161\165\141\156\164\151\164\x79", "\x63\x6c\141\163\163" => "\146\x69\170\145\x64\55\167\151\x64\x74\150\x2d\x78\135", "\144\x65\163\x63" => sprintf("\45\x73\40\x28\x25\163\x29", $this->l("\155\151\x6e\x69\155\165\155\40\161\x75\x61\156\164\x69\x74\x79\40\162\x65\x71\x75\x69\162\x65\144\x20\164\x6f\40\x62\165\x79\40\x61\40\160\x72\157\x64\165\143\x74"), $pS66y["\x6c\x65\141\x76\145\40\142\x6c\x61\156\153\40\x74\x6f\40\x75\163\x65\40\144\145\x66\x61\165\154\164"]) . $LtkGe, "\x66\x6f\162\x6d\137\x67\162\157\x75\160\x5f\143\x6c\141\163\x73" => $zjZaN, "\141\x64\x76\x69\x63\x65" => $this->advice("\x70\x70\x5f\155\x69\x6e\x69\x6d\x75\x6d\x5f\x71\x75\x61\156\x74\x69\164\x79")), array("\164\x79\160\x65" => "\164\x65\x78\x74", "\x6c\141\x62\145\154" => $pS66y["\163\x5f\x70\160\137\155\x61\x78\x69\x6d\165\x6d\x5f\x71\x75\141\156\x74\151\x74\x79"], "\156\141\155\145" => "\155\141\x78\x69\155\165\155\x5f\161\165\141\156\x74\151\x74\x79", "\143\154\141\x73\163" => "\x66\x69\170\145\144\55\x77\151\144\x74\x68\x2d\170\x5d", "\x64\x65\x73\x63" => sprintf("\45\163\x20\x28\45\163\x29", $this->l("\x6d\141\x78\151\x6d\165\155\40\161\x75\141\x6e\x74\151\164\171\x20\x66\157\x72\x20\x61\x20\x70\x72\x6f\x64\x75\143\164\40\x69\x6e\x20\164\150\145\40\157\x72\x64\145\162\40\160\x65\162\x20\x6c\151\156\x65"), $pS66y["\154\x65\141\166\x65\40\x62\x6c\141\156\x6b\40\164\x6f\40\x64\x69\163\141\142\154\145\40\x74\x68\x69\x73\x20\x66\145\141\164\x75\162\145"]) . $LtkGe, "\146\157\x72\155\137\147\x72\x6f\x75\160\137\143\x6c\x61\x73\x73" => $zjZaN, "\141\144\x76\151\x63\x65" => $this->advice("\160\x70\137\155\x61\x78\x69\155\x75\x6d\x5f\x71\165\x61\x6e\x74\151\x74\x79")), array("\164\x79\x70\x65" => "\x74\145\x78\x74", "\x6c\x61\142\x65\154" => $pS66y["\163\137\x70\160\x5f\x74\157\164\x61\x6c\x5f\155\x61\x78\x69\155\165\x6d\137\161\x75\141\x6e\x74\151\x74\171"], "\x6e\x61\x6d\x65" => "\164\157\164\x61\154\137\x6d\x61\x78\x69\x6d\x75\155\x5f\161\165\141\156\164\151\164\171", "\143\x6c\141\x73\163" => "\146\x69\x78\x65\x64\55\167\x69\144\x74\150\x2d\x78\135", "\144\145\163\x63" => sprintf("\45\x73\40\x28\x25\x73\x29", $this->l("\x74\157\164\141\154\x20\155\141\x78\151\155\165\155\40\161\165\141\x6e\x74\x69\164\171\x20\146\x6f\x72\40\141\40\160\162\157\x64\165\143\164\40\160\x65\x72\x20\157\x72\x64\145\x72"), $pS66y["\154\x65\x61\166\145\x20\142\154\141\156\153\40\x74\x6f\40\144\151\x73\x61\142\x6c\x65\40\x74\150\151\x73\40\146\145\x61\x74\165\x72\145"]) . $LtkGe, "\x66\157\x72\155\137\x67\162\x6f\x75\x70\137\x63\x6c\x61\163\163" => $zjZaN, "\x61\144\x76\x69\143\x65" => $this->advice("\x70\x70\x5f\x74\157\164\x61\154\x5f\155\141\170\151\x6d\165\x6d\x5f\x71\165\141\x6e\164\151\x74\171")), array("\164\x79\160\x65" => "\164\145\170\164", "\154\141\x62\x65\x6c" => $pS66y["\x73\x5f\x70\x70\x5f\x64\145\x66\141\x75\154\164\x5f\x71\165\x61\156\x74\151\164\x79"], "\x6e\x61\x6d\x65" => "\144\x65\146\141\x75\154\x74\137\161\x75\141\156\164\x69\164\171", "\143\x6c\141\163\163" => "\x66\151\170\145\144\55\x77\x69\144\x74\x68\55\170\154", "\144\145\163\x63" => sprintf("\x25\163\x20\x28\45\x73\x29", $this->l("\151\x6e\x69\x74\151\141\154\x20\161\165\141\x6e\164\x69\164\x79\x20\x74\157\40\142\x75\171\x20\x61\x20\x70\162\157\144\165\143\164"), $pS66y["\154\145\x61\x76\x65\40\x62\x6c\141\156\x6b\x20\x74\x6f\40\x75\x73\x65\40\x64\145\x66\141\x75\154\x74"]), "\x61\x64\166\x69\x63\x65" => $this->advice("\x70\160\137\x64\145\146\x61\165\154\x74\x5f\161\165\x61\156\164\151\x74\171")), array("\164\171\160\x65" => "\x74\145\x78\164", "\x6c\141\142\x65\154" => $pS66y["\161\165\x61\x6e\x74\151\x74\171\40\163\164\x65\160"], "\156\x61\x6d\x65" => "\x71\x74\171\137\x73\164\x65\160", "\x63\x6c\141\x73\163" => "\146\151\170\x65\x64\55\x77\x69\144\x74\150\x2d\170\135", "\144\x65\x73\143" => sprintf("\x25\x73\x20\50\x25\x73\51", $pS66y["\161\165\141\156\164\151\x74\171\40\163\164\x65\160"], $pS66y["\x6c\x65\141\x76\x65\x20\142\x6c\x61\x6e\153\x20\x74\157\40\165\x73\x65\40\x64\145\x66\141\x75\x6c\x74"]), "\141\144\x76\x69\143\145" => $this->advice("\x70\x70\137\161\x74\x79\x5f\163\164\145\x70")), array("\x74\x79\160\x65" => "\x74\145\170\164", "\154\141\142\x65\154" => $pS66y["\163\x5f\160\160\137\161\x74\171\137\166\141\x6c\165\x65\x73"], "\x6e\x61\155\145" => "\161\x74\x79\x5f\166\141\x6c\x75\145\163", "\x61\x64\x76\x69\x63\x65" => $this->advice("\x70\x70\137\x71\164\x79\x5f\x76\141\154\x75\145\163")), $this->createHelperFormSelect("\x70\x70\137\x65\170\x70\154\x61\x6e\x61\x74\x69\x6f\156", array("\x6c\141\x62\145\154" => $pS66y["\x73\137\x70\x70\137\145\170\160\x6c\x61\x6e\141\164\x69\x6f\x6e"]), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("\x74\x79\160\x65" => "\x74\x65\x78\164", "\154\x61\142\145\x6c" => $pS66y["\103\123\x53\40\x63\x6c\141\x73\163\x65\163"], "\156\141\x6d\x65" => "\160\x70\x5f\143\163\x73", "\x64\145\x73\143" => $this->l("\163\x70\145\x63\x69\x66\x79\40\166\141\x6c\151\x64\40\103\123\123\x20\x63\154\x61\x73\163\145\x73\x20\x73\x65\160\x61\x72\141\x74\x65\144\40\142\171\40\x73\x70\x61\143\145\x20\50\164\x68\145\163\x65\x20\x63\x6c\x61\x73\x73\x65\163\40\x77\x69\154\154\x20\142\x65\x20\141\144\x64\145\144\40\164\157\x20\x48\124\115\x4c\40\x66\157\x72\x20\x70\x72\157\144\x75\x63\164\163\x20\x75\x73\151\156\x67\x20\x74\150\151\163\40\x74\x65\155\x70\x6c\x61\164\145\51") . "\x3c\x62\162\x2f\76" . sprintf($this->l("\141\x64\144\40\x79\157\x75\x72\40\x63\x6c\141\x73\163\145\x73\40\x64\145\146\151\x6e\x69\x74\151\157\156\163\x20\151\156\40\164\x68\145\40\42\45\x73\x22\40\x66\x69\x6c\x65"), PSM::normalizePath("\x74\x68\145\x6d\145\163\57" . _THEME_NAME_ . "\x2f\x6d\x6f\x64\x75\154\x65\x73\57\x70\160\162\157\160\145\162\x74\x69\145\163\x2f\143\163\163\x2f\143\165\163\x74\157\x6d\x2e\x63\x73\163")), "\x61\x64\x76\151\143\145" => $this->advice("\160\x70\137\x63\x73\163")), array("\164\171\160\145" => "\162\141\x64\151\157", "\154\x61\x62\145\x6c" => $this->l("\144\x69\x73\160\x6c\141\x79\40\141\166\141\151\154\141\142\x6c\145\x20\x71\165\x61\156\164\x69\x74\151\145\x73\x20\x6d\x6f\144\145"), "\156\141\x6d\145" => "\x70\160\x5f\x62\157\137\x71\x74\171\x5f\141\166\x61\151\154\x61\x62\x6c\x65\x5f\144\151\163\x70\x6c\141\x79", "\x64\x65\163\x63" => $this->l("\x64\x69\163\160\154\141\x79\x20\141\166\x61\x69\x6c\141\142\154\145\40\x71\x75\141\156\x74\151\x74\x69\x65\163\40\x6f\156\x20\164\150\x65\40\160\x72\x6f\144\165\143\164\40\x70\141\x67\x65\x20\142\x61\163\145\144\40\157\x6e\40\x74\x68\x65\x20\x74\145\x6d\160\x6c\141\164\145\40\143\157\156\146\x69\147\165\162\141\164\151\x6f\156\40\50\157\x6e\154\x79\40\x69\146\x20\145\156\x61\x62\x6c\145\144\x20\x69\156\x20\160\162\x65\146\x65\x72\x65\x6e\x63\x65\x73\x29") . ($KdYsj["\x70\160\137\142\157\137\x71\x74\x79\x5f\141\x76\x61\151\154\x61\x62\154\145\x5f\x64\x69\x73\x70\154\x61\x79"] == 0 ? "\74\x62\x72\76" . ($KdYsj["\160\160\x5f\x71\x74\171\x5f\141\166\141\151\x6c\141\142\x6c\x65\x5f\144\151\163\x70\154\141\x79"] == 2 ? $this->l("\55\55\x20\x61\166\x61\151\x6c\141\x62\x6c\x65\x20\161\165\141\x6e\164\151\164\151\145\163\40\167\x69\x6c\154\40\142\x65\x20\x68\151\x64\x64\x65\x6e\40\x6f\156\x20\164\x68\145\40\160\162\x6f\x64\x75\x63\164\x20\160\141\x67\x65\40\x66\x6f\x72\40\143\165\162\162\x65\156\164\x20\164\x65\155\x70\x6c\141\x74\145\x20\x2d\x2d") : $this->l("\55\55\40\141\x76\x61\151\154\141\x62\x6c\x65\x20\x71\165\141\x6e\x74\x69\164\151\145\x73\40\167\151\x6c\x6c\40\142\x65\40\144\x69\163\x70\154\x61\x79\145\x64\x20\x6f\x6e\40\x74\150\x65\x20\160\x72\x6f\x64\165\143\164\40\160\x61\147\145\x20\146\157\162\x20\x63\x75\162\162\x65\156\x74\40\164\145\x6d\160\154\141\x74\x65\40\x2d\55")) : ''), "\x76\x61\x6c\x75\x65\163" => array(array("\151\x64" => "\160\160\137\142\x6f\137\161\164\x79\x5f\141\166\x61\151\154\x61\x62\154\145\137\144\151\163\160\x6c\141\171\x5f\x30", "\166\141\154\x75\145" => 0, "\x6c\x61\142\x65\x6c" => $pS66y["\x61\165\164\157"]), array("\x69\x64" => "\160\160\x5f\142\157\x5f\x71\164\x79\137\x61\x76\x61\x69\154\141\x62\154\x65\137\x64\151\x73\x70\154\141\x79\137\x31", "\166\141\x6c\x75\x65" => 1, "\x6c\141\142\x65\154" => $pS66y["\x76\151\163\x69\142\x6c\x65"]), array("\151\x64" => "\160\x70\137\142\x6f\x5f\161\x74\171\137\x61\x76\x61\151\x6c\141\142\x6c\x65\x5f\144\x69\163\x70\154\141\x79\x5f\62", "\166\x61\154\165\145" => 2, "\154\141\x62\x65\x6c" => $pS66y["\x68\x69\144\x64\x65\x6e"])), "\141\144\166\151\x63\145" => $this->advice("\x70\160\137\142\x6f\137\161\164\x79\137\141\x76\x61\151\154\141\x62\154\x65\137\x64\151\x73\160\x6c\141\171")), array("\164\171\x70\145" => "\162\x61\x64\151\157", "\154\x61\142\x65\x6c" => $this->l("\155\145\141\x73\x75\162\x65\155\145\156\164\40\x73\171\x73\x74\145\155"), "\156\141\155\x65" => "\x70\160\x5f\142\x6f\137\155\145\x61\163\x75\x72\x65\155\145\156\164\x5f\163\171\163\164\145\x6d", "\144\x65\x73\143" => $this->l("\x75\156\151\164\x20\155\x65\x61\x73\165\x72\145\155\145\x6e\x74\x20\x73\171\x73\x74\x65\155\x20\x75\163\145\x64\40\142\171\x20\x74\x68\151\163\40\x74\x65\155\x70\x6c\x61\164\145\40\x28\x64\x65\x66\141\165\154\x74\x20\x2d\x20\165\163\145\x20\x6d\x65\x61\163\165\162\145\x6d\145\156\164\x20\163\x79\x73\164\145\155\40\144\145\x66\x69\156\145\x64\40\151\156\x20\x53\x65\164\x74\151\x6e\x67\163\x29"), "\x76\x61\x6c\x75\145\163" => array(array("\151\144" => "\x70\x70\x5f\142\157\x5f\x6d\x65\141\x73\165\162\x65\x6d\x65\x6e\164\x5f\x73\x79\x73\164\145\x6d\x5f\x30", "\166\141\154\165\x65" => (int) PP::PP_MS_DEFAULT, "\154\x61\142\145\x6c" => $pS66y["\144\x65\146\x61\165\x6c\164"]), array("\151\x64" => "\x70\x70\137\x62\157\x5f\x6d\x65\141\x73\x75\162\x65\155\145\156\x74\x5f\163\x79\163\164\x65\x6d\x5f\61", "\x76\x61\x6c\165\x65" => (int) PP::PP_MS_METRIC, "\x6c\x61\142\145\154" => $pS66y["\155\x65\164\x72\151\143"]), array("\x69\144" => "\160\160\137\x62\x6f\137\x6d\x65\141\x73\x75\162\x65\x6d\145\156\164\x5f\x73\171\x73\164\x65\x6d\137\62", "\x76\141\x6c\165\145" => (int) PP::PP_MS_NON_METRIC, "\x6c\x61\142\145\154" => $pS66y["\156\x6f\156\x20\155\x65\x74\x72\151\143"])), "\141\x64\x76\151\x63\x65" => $this->advice("\160\160\137\x62\157\x5f\155\x65\x61\163\165\x72\145\x6d\145\x6e\164\x5f\x73\x79\163\x74\x65\155")), array("\164\x79\160\x65" => "\162\141\x64\151\157", "\x6c\141\142\145\154" => $this->l("\166\x69\163\x69\x62\154\145\x20\151\156\x20\x63\141\164\141\154\x6f\x67"), "\x6e\141\155\x65" => "\160\160\x5f\x62\x6f\x5f\150\151\144\144\x65\x6e", "\144\x65\x73\x63" => $this->l("\150\151\144\144\x65\156\x20\164\x65\155\x70\x6c\141\164\145\x20\x69\x73\40\x6e\x6f\164\40\x76\151\x73\151\x62\x6c\x65\x20\151\x6e\40\164\x68\145\x20\x70\162\157\144\x75\x63\164\x20\143\141\164\141\154\157\x67\54\x20\142\165\x74\x20\x73\x74\151\154\154\x20\165\x73\145\144\x20\x69\156\x20\x74\x68\145\x20\163\x68\157\x70"), "\x76\x61\154\x75\145\163" => array(array("\151\x64" => "\160\x70\137\x62\x6f\137\x68\x69\x64\144\145\x6e\137\60", "\x76\141\154\x75\x65" => 0, "\154\141\x62\x65\x6c" => $pS66y["\166\x69\163\x69\142\154\x65"]), array("\151\x64" => "\160\x70\137\142\x6f\x5f\150\151\144\144\145\x6e\x5f\61", "\x76\x61\x6c\165\145" => 1, "\154\141\x62\145\x6c" => $pS66y["\150\151\x64\x64\145\156"])), "\x61\x64\166\x69\143\x65" => $this->advice("\x70\x70\137\142\157\x5f\150\151\x64\x64\145\x6e")), array("\164\x79\x70\x65" => "\x72\141\x64\x69\x6f", "\154\141\x62\x65\154" => $this->l("\x63\x75\x73\164\157\155\151\x7a\141\x74\x69\x6f\156"), "\156\141\155\145" => "\x70\x70\137\x63\x75\x73\x74\x6f\x6d\151\172\x61\164\151\x6f\x6e", "\144\x65\163\143" => $this->l("\151\x66\x20\171\157\165\40\x64\157\40\x6e\x6f\164\40\165\163\x65\x20\165\x73\145\162\40\x64\x65\x66\151\156\x65\144\40\x63\165\163\x74\157\155\151\172\141\164\x69\157\156\163\x2c\40\x6c\x65\x61\x76\145\x20\x74\x68\x69\x73\40\x6f\160\x74\151\157\x6e\40\144\151\163\x61\142\154\x65\144"), "\x76\141\154\x75\x65\x73" => array(array("\151\x64" => "\160\x70\137\143\165\163\164\157\x6d\x69\x7a\x61\x74\151\157\156\137\61", "\x76\141\x6c\165\x65" => 1, "\154\x61\x62\x65\x6c" => $pS66y["\145\156\x61\142\154\x65\x64"]), array("\x69\x64" => "\160\160\137\x63\x75\163\x74\157\x6d\x69\x7a\141\164\151\x6f\x6e\x5f\x30", "\x76\141\154\165\145" => 0, "\x6c\x61\142\x65\x6c" => $pS66y["\144\151\163\x61\x62\154\x65\144"])), "\x61\144\166\151\143\x65" => $this->advice("\x70\x70\137\143\x75\x73\164\157\x6d\x69\172\x61\x74\x69\157\156")), array("\164\x79\160\145" => "\150\151\x64\144\x65\x6e", "\156\141\155\145" => "\151\x64"), array("\164\x79\160\145" => "\150\151\x64\x64\145\156", "\x6e\141\155\x65" => "\155\x6f\x64\x65")), "\x62\x75\x74\x74\x6f\156\163" => $NT0ye); $zw9EK->fields_value["\151\x64"] = $M0WV_; $zw9EK->fields_value["\x6d\x6f\x64\145"] = $RtsEA; $zw9EK->fields_value["\x6e\x61\x6d\145\x5f\151\156\160\165\164"] = array(); $zw9EK->fields_value["\x64\145\x73\143\162\151\160\x74\151\x6f\x6e\137\151\156\160\x75\164"] = array(); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["\151\144\137\154\x61\156\x67"]; $zw9EK->fields_value["\156\141\x6d\x65\137\x69\156\x70\165\x74"][$khNAy] = isset($VJeUd[$khNAy]) ? PP::safeOutputValue($VJeUd[$khNAy][$M0WV_]["\156\x61\155\145"]) : ''; $zw9EK->fields_value["\144\145\x73\x63\x72\151\x70\x74\151\157\x6e\137\151\x6e\x70\165\164"][$khNAy] = isset($VJeUd[$khNAy]) ? PP::safeOutputValue(isset($VJeUd[$khNAy][$M0WV_]["\x61\165\x74\x6f\x5f\144\x65\x73\143"]) && $VJeUd[$khNAy][$M0WV_]["\141\165\x74\157\137\144\x65\163\x63"] || $RtsEA == "\143\157\x70\171" ? '' : $VJeUd[$khNAy][$M0WV_]["\x64\145\163\x63\x72\151\160\164\151\157\156"]) : ''; SBAA8: } dGpc6: $zw9EK->fields_value["\x70\160\x5f\161\x74\x79\x5f\155\157\x64\x65"] = (int) (($KdYsj["\x70\x70\137\161\x74\171\137\x6d\x6f\x64\x65"] & 1) == 1); foreach ($pS66y["\163\x5f\160\x70\137\x71\164\x79\137\155\x6f\144\x65\x5f\157\x70\164\151\157\156\x73"] as $xc1Yt) { $zw9EK->fields_value["\x70\160\137\x71\x74\x79\137\155\x6f\144\145\137" . $xc1Yt] = (int) (($KdYsj["\x70\x70\x5f\x71\164\x79\x5f\x6d\157\144\145"] & $xc1Yt) == $xc1Yt); X7Q6F: } ovUgk: $zw9EK->fields_value["\x70\160\137\x64\151\163\160\154\x61\x79\137\155\x6f\144\x65"] = (int) (($KdYsj["\x70\160\137\144\151\x73\160\154\x61\x79\x5f\x6d\157\144\x65"] & 1) == 1); foreach ($pS66y["\x73\137\x70\160\137\x64\151\x73\x70\154\x61\171\137\155\x6f\144\145\137\x6f\x70\164\151\157\156\x73"] as $xc1Yt) { $zw9EK->fields_value["\160\160\137\x64\151\163\160\x6c\141\171\x5f\155\x6f\144\x65\137" . $xc1Yt] = (int) (($KdYsj["\x70\x70\137\144\x69\163\x70\154\141\x79\137\155\157\x64\x65"] & $xc1Yt) == $xc1Yt); Yne5g: } Ljb6z: $zw9EK->fields_value["\x70\160\137\160\x72\151\143\145\x5f\x64\x69\x73\x70\154\x61\171\x5f\155\157\x64\x65"] = $KdYsj["\x70\160\x5f\x70\x72\x69\x63\x65\x5f\x64\151\x73\160\x6c\141\171\x5f\155\157\144\145"]; $zw9EK->fields_value["\x75\x6e\151\x74\137\x70\x72\151\143\145\x5f\x72\141\164\x69\x6f"] = (float) $KdYsj["\160\x70\137\165\156\151\164\x5f\x70\162\x69\143\x65\x5f\162\141\x74\151\157"] > 0 ? PP::presentQty($KdYsj["\160\160\x5f\x75\x6e\151\164\137\160\162\151\143\x65\x5f\x72\141\x74\151\157"]) : ''; $zw9EK->fields_value["\x6d\x69\156\151\155\165\x6d\x5f\x70\162\151\x63\145\137\162\141\x74\x69\157"] = (float) $KdYsj["\160\160\137\155\151\x6e\x69\x6d\x75\155\x5f\160\162\151\x63\145\x5f\x72\x61\x74\x69\157"] > 0 ? PP::presentQty($KdYsj["\160\x70\137\155\151\x6e\151\155\x75\155\137\x70\x72\x69\x63\145\x5f\x72\141\164\x69\157"]) : ''; $zw9EK->fields_value["\x6d\151\x6e\151\155\x75\155\x5f\x71\165\x61\156\x74\x69\x74\x79"] = $KdYsj["\x70\x70\x5f\142\x6f\x5f\x6d\151\156\151\x6d\165\155\x5f\x71\x75\x61\x6e\164\x69\164\171\x5f\x63\x75\x73\x74\157\x6d\x69\x7a\x65\144"] ? PP::presentQty($KdYsj["\x70\160\137\155\x69\x6e\x69\155\165\155\x5f\161\165\141\x6e\x74\x69\164\x79"]) : ''; $zw9EK->fields_value["\x6d\141\170\x69\155\x75\x6d\137\x71\x75\141\x6e\164\151\164\x79"] = $KdYsj["\x70\160\137\x6d\141\170\151\155\165\x6d\x5f\161\165\141\x6e\164\151\x74\171"] > 0 ? PP::presentQty($KdYsj["\x70\160\x5f\155\x61\170\151\x6d\x75\x6d\x5f\161\x75\141\156\164\151\x74\x79"]) : ''; $zw9EK->fields_value["\164\157\x74\x61\x6c\x5f\x6d\x61\x78\151\155\x75\155\137\x71\x75\x61\x6e\164\x69\x74\171"] = $KdYsj["\160\160\137\164\x6f\x74\x61\154\x5f\x6d\141\170\x69\x6d\x75\x6d\x5f\161\165\141\x6e\x74\151\164\x79"] > 0 ? PP::presentQty($KdYsj["\x70\160\137\164\157\x74\141\154\137\155\141\x78\x69\155\165\x6d\x5f\x71\x75\x61\x6e\164\151\164\x79"]) : ''; $zw9EK->fields_value["\x64\145\146\x61\x75\x6c\x74\x5f\161\x75\141\x6e\164\151\x74\x79"] = $KdYsj["\160\160\137\x68\x61\x73\x5f\144\x65\146\141\x75\x6c\x74\137\x71\x75\141\156\164\x69\x74\171"] ? PP::presentQty($KdYsj["\x70\x70\x5f\144\x65\x66\x61\165\154\164\x5f\161\x75\x61\156\164\151\x74\x79"]) : ''; $zw9EK->fields_value["\161\164\x79\x5f\x73\x74\x65\160"] = (float) $KdYsj["\160\x70\137\161\x74\171\x5f\x73\x74\145\160"] > 0 ? PP::presentQty($KdYsj["\160\160\x5f\161\164\x79\x5f\x73\164\x65\160"]) : ''; $zw9EK->fields_value["\161\x74\171\137\166\x61\154\x75\145\163"] = $KdYsj["\x70\160\x5f\x71\x74\x79\137\x76\141\x6c\x75\145\163"]; $zw9EK->fields_value["\x70\x70\x5f\143\163\x73"] = $KdYsj["\x70\x70\x5f\143\163\x73"]; $zw9EK->fields_value["\x70\160\x5f\x62\x6f\x5f\161\164\171\x5f\x61\166\x61\x69\154\x61\x62\x6c\145\137\144\x69\x73\160\154\141\171"] = $KdYsj["\160\x70\x5f\142\x6f\x5f\x71\x74\171\137\x61\x76\x61\151\154\141\x62\x6c\145\x5f\144\151\x73\x70\x6c\x61\x79"]; $zw9EK->fields_value["\160\160\x5f\142\157\137\x6d\145\x61\x73\165\x72\145\x6d\x65\x6e\x74\137\163\171\x73\164\x65\155"] = $KdYsj["\160\160\x5f\x62\157\137\155\145\x61\163\165\x72\x65\x6d\x65\x6e\x74\x5f\163\x79\x73\164\x65\x6d"]; $zw9EK->fields_value["\160\x70\137\142\157\x5f\150\151\144\144\145\x6e"] = $KdYsj["\x70\160\137\142\157\137\x68\x69\x64\x64\145\156"]; $zw9EK->fields_value["\x70\x70\x5f\143\165\x73\x74\x6f\155\151\x7a\141\x74\x69\x6f\x6e"] = $KdYsj["\x70\160\x5f\143\165\163\164\157\155\151\172\141\x74\x69\157\x6e"]; $MPLIi = isset($KdYsj["\x70\x70\137\145\x78\x74\137\155\x65\164\x68\x6f\144"]) && isset($KdYsj["\160\x70\137\145\170\164\x5f\x70\162\157\160"]) ? count($KdYsj["\x70\x70\x5f\145\x78\x74\x5f\160\x72\157\160"]) : 0; if ($MPLIi == 0) { goto gzv7a; } if ($MPLIi == 1 && ($KdYsj["\160\160\x5f\x65\170\164\137\155\x65\164\x68\x6f\x64"] == 1 || $KdYsj["\160\x70\137\x65\170\164\137\155\x65\164\150\x6f\x64"] == 2)) { goto UoL21; } $i2l14 = $KdYsj["\x70\x70\x5f\x65\170\164\137\x6d\145\164\x68\x6f\x64"]; goto dTYVS; gzv7a: $i2l14 = 0; goto dTYVS; UoL21: $i2l14 = 3; dTYVS: $zw9EK->fields_value["\160\x70\137\145\x78\x74\x5f\155\x65\164\150\157\144"] = $i2l14; $zw9EK->fields_value["\160\x70\x5f\145\x78\x74\137\155\145\164\150\x6f\x64\137\x66\141\154\x6c\x62\x61\x63\153"] = $i2l14; $zw9EK->fields_value["\160\160\137\x65\170\x74\x5f\160\157\154\x69\143\x79"] = isset($KdYsj["\x70\160\137\x65\x78\164\137\160\x6f\x6c\x69\x63\171"]) ? $KdYsj["\x70\x70\137\145\x78\164\x5f\160\x6f\154\x69\x63\x79"] : 0; if ($KdYsj["\x70\160\137\x71\164\x79\x5f\160\x6f\x6c\151\143\171"] == 2 && $zw9EK->fields_value["\160\x70\137\x65\x78\164\137\155\145\164\150\x6f\x64"] > 0) { goto g0zkl; } $zw9EK->fields_value["\160\x70\137\161\x74\x79\137\160\x6f\154\x69\x63\171"] = $KdYsj["\x70\x70\137\161\x74\x79\x5f\x70\157\154\151\143\171"]; goto e6Pg_; g0zkl: $zw9EK->fields_value["\160\x70\137\161\164\171\x5f\x70\157\x6c\x69\x63\171"] = 3; e6Pg_: $zw9EK->fields_value["\x70\160\x5f\145\x78\164\x5f\x6d\151\156\151\155\165\155\137\x71\165\141\x6e\x74\151\164\x79"] = isset($KdYsj["\x70\x70\x5f\145\x78\x74\137\155\x69\x6e\x69\x6d\x75\155\137\x71\165\141\156\164\151\164\x79"]) && $KdYsj["\160\x70\137\145\x78\x74\x5f\x6d\151\x6e\151\x6d\x75\x6d\x5f\161\165\x61\x6e\164\151\x74\x79"] > 0 ? PP::presentQty($KdYsj["\x70\x70\x5f\145\x78\x74\x5f\x6d\151\156\x69\155\165\155\137\x71\165\x61\156\164\151\x74\x79"]) : ''; $zw9EK->fields_value["\x70\x70\137\x65\x78\164\137\x6d\141\x78\x69\155\x75\155\137\x71\165\x61\156\164\x69\x74\x79"] = isset($KdYsj["\x70\160\137\145\x78\x74\x5f\155\141\170\151\155\165\x6d\x5f\x71\x75\141\x6e\x74\x69\x74\171"]) && $KdYsj["\160\x70\137\145\x78\164\x5f\155\x61\170\x69\155\165\x6d\x5f\x71\x75\141\x6e\164\151\x74\x79"] > 0 ? PP::presentQty($KdYsj["\160\x70\137\x65\170\x74\137\x6d\141\170\151\155\165\155\137\161\x75\x61\156\x74\151\x74\x79"]) : ''; $zw9EK->fields_value["\160\x70\137\145\170\164\x5f\164\157\x74\141\154\x5f\x6d\x61\170\151\155\x75\155\x5f\x71\165\141\156\x74\151\x74\x79"] = isset($KdYsj["\x70\160\x5f\x65\x78\164\x5f\x74\157\x74\141\x6c\x5f\155\141\x78\x69\155\165\x6d\137\161\165\141\x6e\x74\x69\x74\171"]) && $KdYsj["\x70\160\137\145\x78\164\137\164\157\164\141\x6c\137\x6d\x61\x78\x69\x6d\165\155\x5f\161\165\141\156\x74\x69\x74\x79"] > 0 ? PP::presentQty($KdYsj["\160\160\x5f\145\170\164\137\x74\x6f\164\x61\x6c\137\155\x61\170\x69\x6d\x75\155\x5f\161\165\141\156\164\x69\164\171"]) : ''; $zw9EK->fields_value["\x70\x70\x5f\145\170\164\137\155\151\156\x69\x6d\165\x6d\x5f\161\165\x61\156\164\151\x74\x79\x5f\164\x65\x78\x74"] = isset($KdYsj["\x70\160\x5f\x65\170\x74\x5f\x6d\x69\156\151\x6d\x75\155\137\x71\x75\141\156\x74\151\x74\171\137\x74\145\170\x74"]) ? $KdYsj["\x70\x70\x5f\145\170\164\x5f\x6d\151\156\x69\155\165\x6d\x5f\x71\x75\x61\156\164\x69\164\x79\x5f\x74\x65\170\x74"] : ''; $zw9EK->fields_value["\x70\x70\x5f\145\170\164\x5f\155\x61\x78\151\155\165\155\x5f\161\x75\x61\156\x74\x69\x74\x79\x5f\164\x65\x78\x74"] = isset($KdYsj["\x70\160\x5f\145\170\x74\x5f\155\141\x78\151\x6d\x75\155\137\x71\165\x61\156\x74\x69\164\x79\x5f\164\145\170\x74"]) ? $KdYsj["\160\160\x5f\x65\x78\x74\x5f\x6d\x61\170\151\155\165\155\137\x71\x75\x61\x6e\164\x69\x74\171\137\x74\145\x78\x74"] : ''; $zw9EK->fields_value["\x70\x70\x5f\145\x78\164\137\x74\x6f\x74\x61\x6c\137\x6d\x61\170\x69\155\x75\155\x5f\161\165\x61\156\x74\151\x74\171\x5f\x74\145\x78\x74"] = isset($KdYsj["\160\x70\137\145\170\164\x5f\x74\157\x74\141\x6c\137\155\x61\170\x69\x6d\x75\155\137\161\165\x61\156\164\151\x74\x79\137\164\x65\x78\164"]) ? $KdYsj["\160\x70\137\x65\x78\x74\x5f\x74\x6f\x74\x61\154\137\x6d\141\x78\x69\155\165\155\137\161\x75\141\156\164\x69\x74\x79\x5f\164\x65\170\x74"] : ''; $zw9EK->fields_value["\x70\160\x5f\x65\170\164\137\155\x69\x6e\151\x6d\165\x6d\x5f\x70\x72\x69\143\x65\x5f\162\x61\x74\x69\x6f"] = isset($KdYsj["\x70\x70\x5f\145\x78\x74\137\x6d\151\156\x69\155\165\155\x5f\x70\162\151\x63\145\137\162\141\x74\x69\157"]) && $KdYsj["\x70\x70\137\145\170\x74\x5f\x6d\151\x6e\x69\x6d\165\x6d\137\160\162\x69\143\145\x5f\x72\141\164\x69\x6f"] > 0 ? PP::presentQty($KdYsj["\x70\160\x5f\x65\x78\164\x5f\155\151\x6e\x69\x6d\x75\x6d\137\x70\x72\x69\x63\145\x5f\162\141\164\x69\157"]) : ''; $yfYQl = array(array("\x69\144" => 0, "\x6e\x61\155\x65" => "\46\156\x62\x73\160\x3b"), array("\x69\144" => 1, "\156\x61\155\145" => $pS66y["\x73\x5f\155\x75\x6c\164\151\160\x6c\151\x63\x61\164\151\x6f\156"]), array("\151\x64" => 2, "\x6e\x61\155\x65" => $pS66y["\163\x5f\x73\165\x6d\155\x61\x74\151\157\156"]), array("\151\144" => 3, "\x6e\141\155\x65" => $pS66y["\x73\137\163\151\x6e\147\x6c\145\137\x64\x69\x6d\x65\156\163\151\157\x6e"])); if ($this->multidimensional_plugin && isset($this->multidimensional_plugin->pro)) { goto N2qHO; } $yfYQl[] = array("\x69\144" => 99, "\156\x61\x6d\145" => $pS66y["\163\x5f\x63\x75\163\164\157\x6d\x5f\143\141\154\143\165\154\141\164\x69\157\156"]); goto MHk_a; N2qHO: $F4o7_ = Hook::exec("\141\144\155\x69\156\x50\160\162\157\160\145\162\164\x69\x65\163", array("\x6d\157\x64\145" => "\x70\160\137\145\x78\164\137\155\145\164\x68\157\x64\x5f\x6f\160\164\151\157\x6e\x73\x5f\161\165\145\162\171", "\163\x5f\143\165\x73\x74\x6f\155\x5f\x63\x61\x6c\x63\165\154\x61\164\x69\x6f\x6e" => $pS66y["\163\137\143\165\x73\164\157\155\137\x63\x61\x6c\x63\165\x6c\x61\164\151\157\156"]), null, true); if (!(isset($F4o7_["\x70\160\162\x6f\160\145\x72\164\x69\145\163\x6d\165\x6c\164\x69\x64\x69\x6d\145\x6e\163\151\157\x6e\x61\154"]) && is_array($F4o7_["\x70\160\x72\x6f\160\x65\162\x74\x69\x65\x73\155\165\154\164\x69\x64\151\x6d\x65\156\163\x69\x6f\x6e\141\154"]))) { goto JUAGr; } foreach ($F4o7_["\x70\x70\x72\x6f\x70\x65\x72\x74\x69\145\x73\x6d\165\x6c\x74\x69\144\x69\x6d\x65\x6e\x73\x69\157\x6e\x61\x6c"] as $i2l14) { $yfYQl[] = $i2l14; I_y_8: } GIy5N: JUAGr: MHk_a: $T59MV = array("\x6c\145\147\x65\156\144" => array("\164\151\x74\154\145" => Tools::ucfirst($pS66y["\144\151\155\145\x6e\x73\x69\x6f\x6e\163"])), "\155\x75\154\x74\151\144\151\x6d\x65\x6e\x73\x69\x6f\x6e\141\154\x2d\x66\145\x61\x74\165\162\145" => array("\164\145\x78\164" => $this->l("\164\150\151\x73\x20\x66\145\x61\164\165\x72\x65\40\x69\163\x20\x64\151\x73\x61\x62\154\145\144\x20\151\146\x20\143\x61\154\x63\x75\154\x61\x74\x69\x6f\156\40\x6d\x65\164\150\157\x64\40\151\163\40\156\157\x74\x20\163\x70\x65\x63\x69\x66\151\x65\144"), "\x64\151\163\141\142\x6c\x65\144" => $this->l("\124\x68\x69\x73\x20\x66\x65\141\164\x75\162\145\40\151\x73\40\144\151\163\x61\x62\x6c\x65\144\56\40\x54\x6f\40\145\156\x61\x62\x6c\x65\40\x74\150\x69\163\40\x66\145\141\x74\165\162\x65\x20\x70\154\x65\141\x73\x65\x20\151\x6e\x73\x74\141\x6c\154\x20\x6d\x75\154\164\x69\x64\x69\155\145\x6e\163\x69\x6f\156\141\x6c\x20\x70\x6c\x75\x67\151\x6e\x20\146\162\x6f\155\40\x50\123\x26\x4d\x6f\x72\x65\x20\x73\164\157\x72\145\56"), "\x72\145\141\144\155\x65\x5f\165\162\154" => $this->multidimensional_plugin ? $this->multidimensional_plugin->readmeUrl() : '', "\x72\145\141\x64\155\x65\137\x70\144\146" => $this->multidimensional_plugin ? PSM::translate("\165\163\145\162\40\x67\165\x69\x64\145", null, "\160\160\162\157\160\145\x72\x74\x69\x65\x73\155\x75\154\164\151\144\151\155\x65\156\x73\x69\x6f\x6e\141\x6c") : ''), "\x69\x6e\x70\165\x74" => array(array("\x74\x79\x70\145" => "\x73\145\x6c\145\143\x74", "\154\x61\x62\x65\x6c" => $this->l("\x63\x61\x6c\143\165\154\x61\164\151\157\x6e\x20\x6d\145\164\x68\x6f\144"), "\156\141\x6d\x65" => "\160\x70\137\x65\170\x74\x5f\155\x65\164\x68\157\x64", "\x6f\x70\x74\x69\x6f\156\x73" => array("\x71\x75\x65\x72\171" => $yfYQl, "\x69\144" => "\151\144", "\x6e\141\155\x65" => "\156\x61\155\x65"), "\141\x64\x76\x69\143\145" => $this->advice("\x70\x70\x5f\145\x78\164\137\x6d\145\164\x68\x6f\144")), array("\164\x79\x70\145" => "\150\151\144\144\x65\x6e", "\x6e\141\x6d\x65" => "\x70\160\137\x65\170\164\137\155\145\164\x68\x6f\144\137\146\x61\x6c\x6c\x62\x61\143\153"), $this->createHelperFormSelect("\x70\160\x5f\x65\170\x74\x5f\x74\151\164\x6c\145", array("\154\141\x62\145\x6c" => $this->l("\144\151\x6d\x65\156\x73\x69\x6f\156\x73\x20\x62\154\x6f\143\x6b\x20\x74\x69\164\x6c\x65"), "\x64\x65\x73\x63" => $this->l("\x74\145\170\164\40\x64\x69\x73\x70\154\x61\171\145\x64\x20\141\x73\x20\141\x20\164\151\164\x6c\145\40\157\146\x20\x74\150\x65\x20\x64\x69\155\145\156\163\151\157\156\163\40\142\154\157\143\x6b"), "\146\157\x72\x6d\137\x67\162\157\165\x70\137\x63\154\x61\163\163" => "\x64\x69\155\145\156\163\x69\157\x6e\x73\55\164\157\147\147\154\x65\x20\142\x6f\164\x74\157\x6d\55\x64\x69\166\151\x64\145\162"), self::DIMENSIONS, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\x70\160\x5f\145\x78\x74\x5f\x70\x72\x6f\160\x65\162\x74\x79", array("\x6c\x61\142\x65\x6c" => $this->l("\143\x61\x6c\143\165\154\141\164\x69\157\x6e\40\x72\x65\x73\x75\x6c\164\40\x6c\x61\x62\x65\154"), "\x64\x65\163\x63" => $this->l("\x74\145\170\x74\x20\x64\151\163\160\x6c\141\171\145\144\40\x61\x73\x20\141\x20\154\x61\142\145\154\40\x62\x65\x66\157\x72\x65\40\164\150\x65\x20\x63\141\154\x63\x75\154\x61\164\151\x6f\x6e\40\162\145\x73\165\154\164\x20\x28\x6c\145\141\166\145\40\x62\154\x61\x6e\153\40\x74\157\40\x68\x69\144\145\40\164\150\145\40\143\x61\154\143\165\154\141\164\151\x6f\156\x20\162\145\163\165\x6c\164\51"), "\x66\157\162\155\x5f\147\162\x6f\x75\x70\x5f\x63\x6c\x61\x73\x73" => "\x64\x69\155\145\156\163\x69\157\x6e\x73\55\164\x6f\x67\x67\154\x65"), self::DIMENSIONS, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\160\160\137\x65\x78\164\x5f\x74\145\x78\164", array("\154\141\x62\x65\154" => $this->l("\x63\141\x6c\x63\165\x6c\x61\164\x69\157\156\40\x72\145\x73\x75\x6c\x74\x20\164\145\x78\x74"), "\x64\x65\163\143" => $this->l("\164\145\x78\x74\x20\144\x69\163\x70\x6c\141\171\x65\144\x20\141\x66\164\x65\x72\x20\x74\x68\x65\x20\143\x61\154\x63\165\154\x61\x74\151\x6f\x6e\40\x72\x65\x73\x75\154\x74"), "\146\x6f\162\x6d\x5f\147\162\x6f\165\x70\137\x63\x6c\141\163\x73" => "\144\x69\x6d\x65\156\163\x69\157\x6e\163\55\164\x6f\147\x67\154\x65"), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\160\160\x5f\x65\170\x74\x5f\x65\x78\x70\x6c\141\x6e\x61\164\x69\x6f\x6e", array("\154\141\142\145\x6c" => $pS66y["\x73\x5f\x70\160\137\x65\170\x70\154\x61\156\x61\164\151\x6f\156"], "\x64\x65\x73\143" => $this->l("\164\145\170\164\x20\x64\151\x73\x70\x6c\141\171\145\x64\40\x62\x65\154\x6f\x77\40\164\150\145\40\143\141\x6c\x63\x75\154\141\x74\x69\x6f\x6e\x20\x72\145\163\x75\x6c\164") . "\74\x62\x72\76" . $this->l("\x59\157\x75\x20\x63\x61\156\x20\165\x73\x65\40\x6d\x61\x63\162\157\x73\40\164\x6f\40\163\165\x62\x73\164\x69\164\x75\x74\145\40\144\x79\156\141\155\151\x63\40\x71\x75\x61\156\164\x69\x74\x79\x20\166\x61\154\165\x65\163\x2e"), "\146\157\x72\x6d\137\147\x72\x6f\165\160\137\x63\154\141\163\163" => "\144\x69\155\145\x6e\163\151\157\156\163\x2d\x74\157\x67\147\x6c\145"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("\164\171\160\145" => "\164\x65\170\164", "\154\141\x62\145\154" => $this->l("\143\141\154\x63\x75\154\x61\x74\x69\157\x6e\40\155\151\x6e\x69\155\x75\x6d\40\161\165\x61\156\164\x69\x74\171"), "\156\141\155\145" => "\x70\160\137\x65\x78\164\x5f\155\151\x6e\x69\155\x75\x6d\137\161\x75\x61\156\164\x69\x74\x79", "\x63\154\x61\x73\x73" => "\146\x69\x78\145\x64\x2d\x77\x69\144\164\150\x2d\170\154", "\144\x65\x73\x63" => sprintf("\x25\x73\x20\50\45\163\51", $this->l("\155\151\x6e\x69\x6d\x75\x6d\x20\x71\165\x61\x6e\164\x69\x74\x79\40\146\157\x72\40\x74\x68\x65\x20\x63\x61\154\x63\x75\154\141\164\145\x64\x20\162\x65\x73\165\154\x74"), $pS66y["\x6c\x65\x61\x76\x65\40\142\x6c\x61\x6e\x6b\x20\164\157\x20\144\151\163\x61\x62\x6c\145\40\164\150\x69\163\x20\146\145\x61\x74\165\162\x65"]), "\x66\157\x72\155\x5f\x67\162\157\x75\160\x5f\x63\154\141\x73\x73" => "\144\151\155\145\x6e\163\151\157\x6e\x73\x2d\x74\157\147\147\154\145\40\x74\157\160\55\x64\151\166\151\144\145\162", "\141\144\x76\x69\143\x65" => $this->advice("\x70\x70\x5f\145\170\x74\x5f\x6d\151\x6e\151\x6d\165\x6d\137\x71\165\141\156\164\x69\x74\171")), array("\x74\x79\x70\145" => "\164\145\x78\164", "\154\x61\x62\145\x6c" => $this->l("\x63\141\x6c\x63\x75\x6c\141\164\151\x6f\156\40\155\141\170\151\x6d\165\155\40\161\x75\x61\156\164\151\x74\x79"), "\x6e\141\x6d\145" => "\x70\x70\137\x65\170\164\x5f\155\x61\170\x69\x6d\165\155\x5f\161\165\x61\156\164\151\x74\x79", "\x63\x6c\x61\163\x73" => "\x66\151\x78\145\144\x2d\167\151\144\x74\150\55\x78\154", "\144\x65\163\143" => sprintf("\45\x73\x20\x28\x25\163\x29", $this->l("\155\x61\x78\151\155\x75\x6d\x20\161\x75\x61\156\x74\151\164\171\40\146\157\162\x20\x74\x68\145\x20\x63\x61\x6c\x63\165\154\141\164\145\144\x20\162\x65\163\165\154\x74"), $pS66y["\154\145\x61\x76\x65\40\142\x6c\141\156\x6b\40\164\x6f\x20\x64\151\x73\x61\x62\x6c\x65\40\164\x68\x69\163\x20\x66\x65\x61\x74\165\162\x65"]), "\x66\x6f\x72\155\137\x67\162\157\x75\x70\x5f\x63\x6c\x61\x73\x73" => "\144\151\155\145\x6e\163\x69\x6f\156\x73\x2d\164\x6f\147\147\154\x65", "\141\144\x76\151\143\x65" => $this->advice("\x70\x70\137\145\170\164\x5f\155\141\x78\x69\x6d\x75\x6d\x5f\x71\x75\x61\156\164\x69\164\x79")), $this->createHelperFormSelect("\x70\160\x5f\x65\x78\164\137\155\x69\x6e\x69\x6d\x75\x6d\137\161\165\141\156\x74\x69\x74\171\137\x74\x65\x78\164", array("\x6c\x61\x62\145\x6c" => $this->l("\143\141\x6c\143\165\x6c\x61\x74\x65\144\40\155\151\x6e\x69\x6d\x75\x6d\40\161\x75\x61\x6e\164\x69\164\x79\40\x74\145\170\x74"), "\144\x65\x73\143" => $this->l("\x74\145\170\x74\x20\x64\151\163\160\154\x61\x79\x65\144\40\167\150\145\156\x20\164\150\x65\x20\x63\x61\x6c\x63\165\x6c\x61\164\145\144\x20\x71\x75\x61\156\164\x69\x74\x79\x20\x69\163\x20\x6c\x65\x73\163\x20\x74\150\141\x6e\40\x74\x68\145\40\163\x70\145\x63\151\x66\151\x65\144\x20\155\x69\156\151\155\x75\x6d") . "\x3c\142\x72\76" . $this->l("\131\x6f\x75\40\143\141\x6e\x20\165\163\145\40\155\141\143\162\157\x73\40\x74\157\x20\x73\165\x62\163\164\x69\x74\165\164\145\40\144\x79\156\141\155\151\x63\x20\161\x75\x61\x6e\x74\151\164\x79\40\166\x61\x6c\x75\145\163\56"), "\146\x6f\x72\155\137\x67\x72\x6f\165\160\137\143\x6c\x61\x73\163" => "\x64\x69\155\x65\156\163\x69\157\x6e\x73\55\164\157\147\147\154\145"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\160\160\x5f\x65\170\164\137\155\141\x78\151\x6d\165\155\137\x71\x75\141\x6e\164\151\164\171\x5f\x74\145\170\164", array("\154\141\142\145\154" => $this->l("\143\141\x6c\143\165\x6c\141\164\x65\x64\40\155\x61\x78\x69\155\x75\155\x20\x71\x75\141\x6e\x74\151\x74\171\40\164\x65\170\164"), "\x64\x65\x73\143" => $this->l("\x74\x65\170\x74\x20\x64\x69\x73\x70\x6c\x61\x79\x65\144\40\167\150\x65\156\x20\164\150\x65\40\143\x61\x6c\143\165\x6c\x61\164\x65\144\x20\x71\x75\141\156\x74\x69\x74\x79\40\151\163\x20\x6d\x6f\162\145\40\x74\150\x61\156\x20\164\150\145\40\x73\160\145\x63\151\146\151\145\x64\40\x6d\141\170\151\x6d\x75\x6d") . "\x3c\142\x72\76" . $this->l("\131\x6f\165\40\x63\x61\156\40\165\163\x65\40\155\141\x63\x72\x6f\163\40\164\157\x20\x73\x75\142\163\164\x69\164\165\x74\x65\x20\x64\171\x6e\141\155\151\x63\x20\x71\165\x61\156\x74\151\164\171\40\166\141\154\165\x65\163\56"), "\146\x6f\x72\x6d\x5f\147\x72\157\165\160\x5f\x63\x6c\x61\163\163" => "\144\x69\155\145\x6e\163\151\x6f\156\x73\x2d\164\157\147\147\154\x65"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6), array("\x74\x79\x70\145" => "\x74\145\x78\x74", "\x6c\x61\142\x65\154" => $pS66y["\163\137\160\160\137\x6d\x69\156\151\x6d\x75\155\137\160\x72\151\143\x65\137\162\x61\164\x69\x6f"], "\156\x61\x6d\145" => "\160\160\137\145\170\x74\137\x6d\x69\156\x69\x6d\x75\x6d\x5f\160\162\x69\143\x65\137\162\x61\x74\151\x6f", "\x63\154\141\x73\x73" => "\146\151\170\x65\x64\55\x77\x69\x64\164\x68\55\170\154", "\x64\145\163\143" => $this->l("\x75\x73\145\x64\x20\164\x6f\x20\143\x61\x6c\143\165\154\141\164\145\40\x6d\x69\156\x69\x6d\x75\155\x20\160\x72\x69\143\x65\x20\146\157\162\x20\x63\x61\x6c\143\165\x6c\141\164\x65\144\40\161\x75\141\x6e\x74\x69\x74\171\x20\x6c\x65\x73\x73\x20\164\x68\141\156\x20\164\x68\145\40\163\x70\145\143\x69\146\151\x65\144\x20\164\x68\162\x65\163\x68\157\x6c\x64"), "\146\x6f\x72\x6d\137\147\x72\157\165\x70\137\143\154\141\x73\163" => "\x64\151\x6d\x65\x6e\x73\x69\x6f\156\x73\x2d\x74\x6f\x67\x67\x6c\x65\40\x74\x6f\x70\55\x64\151\x76\x69\x64\145\162", "\141\x64\x76\x69\x63\145" => $this->advice("\x70\160\x5f\145\170\x74\x5f\x6d\151\x6e\151\155\165\155\137\x70\162\151\143\x65\137\x72\x61\x74\151\157")), array("\164\171\160\x65" => "\x72\x61\144\x69\157", "\x6c\x61\142\145\154" => $this->l("\144\151\155\x65\156\x73\151\x6f\x6e\163\40\x70\157\x6c\x69\x63\x79"), "\156\x61\155\145" => "\160\x70\137\x65\170\x74\137\160\157\x6c\151\x63\x79", "\x64\x65\x73\x63" => $this->l("\x64\151\x6d\145\x6e\163\151\157\156\x73\x20\143\x61\x6e\x20\x62\145\40\163\160\145\x63\x69\x66\151\x65\x64\x20\x62\171\40\164\150\x65\40\x63\165\163\164\157\x6d\x65\x72\x20\50\x64\x65\146\x61\165\154\x74\51\x20\x6f\162\x20\x75\163\x65\144\40\x62\171\40\x74\x68\x65\40\160\x61\143\x6b\x73\40\x63\141\154\143\165\154\x61\164\x6f\x72"), "\x66\x6f\x72\155\x5f\x67\162\157\x75\160\137\x63\154\x61\x73\x73" => "\x64\151\x6d\x65\x6e\163\x69\x6f\156\x73\x2d\164\157\x67\x67\154\x65\x20\x62\x6f\164\164\x6f\155\55\144\151\166\x69\144\x65\x72", "\x76\141\154\165\145\x73" => array(array("\151\144" => "\x70\160\137\x65\x78\x74\x5f\160\x6f\154\151\143\x79\x5f\60", "\166\x61\154\165\145" => 0, "\x6c\141\x62\x65\154" => $pS66y["\x64\145\146\x61\165\x6c\x74"]), array("\151\144" => "\x70\x70\137\145\x78\x74\137\160\157\x6c\151\143\171\x5f\x31", "\166\141\x6c\165\145" => 1, "\154\141\x62\145\x6c" => $this->l("\160\141\143\x6b\x73\40\143\x61\x6c\x63\165\x6c\x61\x74\157\x72"))), "\141\144\x76\151\143\145" => $this->advice("\x70\x70\137\x65\170\164\137\160\x6f\x6c\151\x63\x79"))), "\x62\165\164\x74\157\156\163" => $NT0ye); if (!($this->multidimensional_plugin && isset($this->multidimensional_plugin->pro))) { goto py5cH; } $this->addToForm($T59MV, array($this->createHelperFormSelect("\160\x70\137\x65\x78\x74\137\164\157\164\x61\x6c\137\160\162\x6f\160\x65\x72\164\x79", array("\x6c\x61\x62\145\154" => $this->l("\x74\x6f\x74\x61\154\x20\x63\141\x6c\x63\165\154\x61\x74\x69\157\156\x20\x72\x65\163\165\154\x74\40\154\x61\142\145\x6c"), "\144\x65\x73\143" => $this->l("\x74\x65\170\x74\40\x64\151\x73\x70\x6c\x61\171\145\x64\x20\x61\x73\x20\141\40\154\x61\142\145\154\40\142\x65\x66\x6f\x72\x65\40\x74\x68\x65\40\x74\x6f\164\x61\x6c\x20\x63\141\154\x63\165\154\141\x74\151\157\156\x20\162\x65\163\x75\154\x74\x20\x28\x6c\145\141\166\x65\40\x62\154\141\x6e\153\40\x74\x6f\x20\x68\151\144\x65\40\164\x68\145\x20\x74\x6f\x74\x61\x6c\x20\x63\x61\154\x63\x75\154\141\x74\x69\157\156\x20\162\x65\x73\x75\x6c\164\51"), "\x66\x6f\x72\x6d\x5f\x67\162\157\165\x70\x5f\143\x6c\x61\x73\163" => "\144\x69\x6d\x65\156\163\151\x6f\x6e\x73\55\164\x6f\147\x67\x6c\x65"), self::DIMENSIONS, $zw9EK, $KdYsj, $XsykN, $jm2G6), $this->createHelperFormSelect("\160\160\137\145\170\164\x5f\x74\157\x74\x61\x6c\137\164\145\170\x74", array("\x6c\x61\x62\x65\154" => $this->l("\164\157\x74\x61\154\40\x63\141\154\x63\165\154\x61\x74\151\x6f\156\40\x72\145\x73\165\x6c\164\40\164\x65\x78\164"), "\144\x65\163\x63" => $this->l("\164\145\170\x74\x20\144\x69\x73\160\x6c\141\171\x65\144\x20\141\x66\x74\145\x72\x20\x74\x68\x65\x20\164\157\x74\x61\154\40\143\141\x6c\143\165\154\141\x74\151\x6f\x6e\40\162\x65\x73\165\154\164"), "\146\157\162\155\137\147\162\x6f\165\160\x5f\143\154\141\x73\x73" => "\144\x69\x6d\145\x6e\x73\x69\x6f\156\x73\55\x74\x6f\147\147\x6c\x65"), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $KdYsj, $XsykN, $jm2G6)), "\160\160\137\x65\170\x74\x5f\145\x78\160\x6c\x61\x6e\x61\x74\151\x6f\156", 0); $this->addToForm($T59MV, array(array("\x74\171\160\145" => "\x74\145\x78\164", "\x6c\x61\142\x65\x6c" => $this->l("\x63\141\154\143\x75\154\x61\x74\x69\157\x6e\40\164\157\x74\x61\154\40\155\141\x78\151\x6d\165\155\40\161\165\x61\x6e\x74\151\x74\x79"), "\x6e\x61\x6d\145" => "\x70\x70\137\145\x78\x74\137\x74\x6f\164\141\154\137\x6d\141\x78\151\x6d\165\155\137\161\x75\141\156\164\151\164\x79", "\143\154\141\163\163" => "\146\151\x78\145\x64\x2d\x77\151\x64\x74\150\x2d\x78\154", "\144\145\x73\x63" => sprintf("\x25\163\40\50\45\x73\x29", $this->l("\x74\x6f\x74\x61\154\40\x6d\141\x78\x69\155\x75\x6d\40\x71\165\x61\x6e\x74\x69\x74\171\40\146\x6f\162\40\164\150\145\40\143\x61\154\143\x75\x6c\141\x74\145\144\x20\162\145\163\x75\154\164"), $pS66y["\x6c\145\x61\166\x65\40\x62\x6c\x61\156\x6b\40\164\x6f\x20\144\x69\x73\141\142\x6c\x65\x20\164\x68\x69\x73\x20\x66\x65\141\164\165\162\x65"]), "\x66\157\162\155\137\x67\162\x6f\x75\x70\137\143\154\141\163\163" => "\x64\x69\x6d\x65\156\x73\x69\x6f\156\163\x2d\x74\157\147\x67\154\145", "\x61\x64\166\151\143\x65" => $this->advice("\160\x70\137\x65\x78\164\137\164\157\164\x61\x6c\137\x6d\x61\x78\151\x6d\x75\155\x5f\x71\x75\x61\156\164\151\x74\x79"))), "\160\x70\137\x65\170\x74\137\155\x61\170\151\155\165\155\137\161\165\141\x6e\x74\151\x74\x79", 1); $this->addToForm($T59MV, array($this->createHelperFormSelect("\x70\x70\137\145\170\x74\x5f\164\x6f\164\141\154\x5f\155\x61\x78\151\155\165\155\137\x71\165\x61\156\164\151\x74\171\137\x74\145\170\x74", array("\154\141\142\145\x6c" => $this->l("\x63\x61\154\143\165\154\x61\x74\145\144\40\x74\x6f\164\141\154\40\155\141\x78\x69\155\165\x6d\40\161\x75\x61\x6e\164\151\164\x79\40\x74\145\170\x74"), "\x64\x65\x73\x63" => $this->l("\x74\145\x78\164\40\144\151\163\x70\x6c\x61\x79\145\x64\x20\167\x68\145\156\x20\x74\150\x65\x20\x74\157\164\x61\x6c\x20\x63\141\x6c\143\x75\154\x61\164\145\144\40\161\165\141\156\164\151\x74\171\40\151\x73\40\x6d\157\x72\145\40\x74\150\141\156\x20\x74\x68\x65\x20\x73\160\x65\x63\151\146\x69\x65\x64\x20\155\141\170\151\155\x75\x6d") . "\x3c\x62\162\76" . $this->l("\131\157\x75\40\x63\x61\156\x20\x75\x73\x65\x20\x6d\141\x63\x72\157\x73\x20\x74\157\x20\163\165\142\163\164\151\164\x75\x74\x65\40\144\x79\156\x61\155\x69\x63\x20\x71\165\141\x6e\164\151\x74\x79\x20\166\141\x6c\165\145\163\x2e"), "\x66\x6f\x72\x6d\x5f\x67\x72\x6f\x75\x70\x5f\143\x6c\x61\163\x73" => "\x64\x69\155\145\156\x73\x69\x6f\x6e\163\55\164\x6f\147\x67\x6c\x65"), self::PROPERTY_TYPE_BLOCK_TEXT, $zw9EK, $KdYsj, $XsykN, $jm2G6)), "\160\160\x5f\x65\170\x74\137\155\141\170\151\155\x75\155\137\161\165\x61\x6e\x74\151\164\171\x5f\164\x65\170\x74", 1); foreach ($T59MV["\x69\156\x70\x75\x74"] as $SNYS6 => &$i2l14) { if (!(isset($i2l14["\156\141\x6d\145"]) && $i2l14["\156\141\x6d\x65"] == "\x70\160\x5f\x65\x78\x74\x5f\x65\x78\x70\x6c\141\156\141\164\x69\157\x6e")) { goto ePH3Y; } $i2l14["\x66\157\162\155\137\147\162\x6f\x75\160\137\x63\154\141\163\x73"] .= "\40\164\x6f\160\x2d\144\151\166\151\144\x65\162"; goto F29x3; ePH3Y: l2Sy0: } F29x3: unset($SNYS6, $i2l14); py5cH: $L0eIO = Hook::exec("\141\144\x6d\151\x6e\120\x70\x72\157\x70\x65\162\x74\x69\x65\x73", array("\x6d\157\144\x65" => "\143\162\x65\141\164\x65\105\x64\151\164\x54\145\x6d\x70\x6c\141\x74\145\106\x6f\162\155\111\156\x70\x75\164", "\151\x64\137\160\x70\x5f\x74\145\x6d\x70\x6c\x61\x74\x65" => $M0WV_, "\x74\145\x6d\x70\154\141\x74\x65" => $KdYsj), null, true); if (!is_array($L0eIO)) { goto UCiEf; } foreach ($L0eIO as $lTuJl => $V5pzO) { if (!is_array($V5pzO)) { goto teN2Q; } foreach ($V5pzO as $Clb6V) { if (!isset($Clb6V["\x64\x69\155\x65\x6e\163\x69\157\x6e\163\137\x66\157\162\x6d"])) { goto puDt5; } $this->addToForm($T59MV, $Clb6V["\x64\151\x6d\x65\156\x73\x69\x6f\156\163\137\x66\157\162\x6d"], $Clb6V["\x77\150\x65\162\x65"]["\156\x61\155\145"], $Clb6V["\x77\150\x65\x72\x65"]["\157\146\x66\163\x65\x74"], $zw9EK, $Clb6V["\x76\141\154\165\145\x73"]); puDt5: cDIZv: } JvXPq: teN2Q: ATMR1: } lTgSZ: UCiEf: $HGNk0 = array($this->l("\x64\x69\x6d\145\x6e\163\151\157\156"), $this->l("\x71\165\141\x6e\164\151\164\x79\x20\164\x65\x78\x74"), $this->l("\x6d\x69\156\151\155\165\x6d\40\161\165\x61\156\x74\x69\x74\x79"), $this->l("\x6d\141\x78\x69\x6d\x75\155\x20\161\x75\141\x6e\164\x69\164\171"), $this->l("\144\145\146\141\x75\x6c\x74\40\x71\x75\x61\156\164\x69\x74\x79"), $this->l("\161\x75\x61\x6e\x74\x69\164\171\x20\163\164\145\160"), $this->l("\161\165\x61\156\x74\151\164\x79\x20\162\141\x74\151\x6f"), $this->l("\x6f\x72\144\x65\162\40\x71\165\141\156\x74\x69\x74\x79\40\164\145\x78\164")); $T59MV["\x64\151\x6d\x65\x6e\x73\x69\157\156\163\55\x74\x61\x62\x6c\x65"] = array("\x74\x68" => $HGNk0, "\164\x62\x6f\x64\x79" => array()); $sg3Kg = isset($KdYsj["\160\x70\x5f\145\x78\164\x5f\x70\x72\x6f\x70"]) ? count($KdYsj["\x70\160\137\145\x78\164\137\160\162\x6f\160"]) : 3; if (!((!$this->multidimensional_plugin || !isset($this->multidimensional_plugin->pro)) && $sg3Kg < 3)) { goto vnRCg; } $sg3Kg = 3; vnRCg: $w_T2M = 1; uDgnR: if (!($w_T2M <= $sg3Kg)) { goto MqnI5; } $LagWH = array(); $i2l14 = PP::getTemplateExtProperty($KdYsj, $w_T2M, "\160\x72\x6f\160\x65\162\x74\171"); $LagWH[] = $this->createHelperFormSelect("\x64\151\155\145\x6e\163\x69\x6f\x6e\137" . $w_T2M, array("\x64\141\x74\141\x5f\164\x79\x70\x65" => "\144\x69\x6d\145\156\163\151\157\156\137", "\144\x61\x74\x61\x5f\x70\x6f\163\x69\164\x69\157\x6e" => $w_T2M), self::PROPERTY_TYPE_EXT, $zw9EK, $i2l14, $XsykN, $jm2G6); $i2l14 = PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x74\x65\170\x74"); $LagWH[] = $this->createHelperFormSelect("\144\x69\x6d\145\156\x73\151\x6f\156\x5f\164\145\170\x74\137" . $w_T2M, array("\144\141\x74\x61\x5f\164\x79\160\145" => "\x64\151\155\145\x6e\163\151\157\x6e\x5f\x74\145\x78\164\x5f", "\144\x61\x74\x61\137\160\x6f\163\151\x74\x69\x6f\x6e" => $w_T2M), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $i2l14, $XsykN, $jm2G6); $LagWH[] = array("\164\171\160\145" => "\164\145\x78\x74", "\156\x61\x6d\145" => "\x64\x69\155\145\x6e\163\x69\157\x6e\x5f\155\x69\156\x69\155\x75\155\137\161\165\141\156\164\151\164\171\x5f" . $w_T2M, "\x64\141\x74\x61\x5f\x74\x79\160\145" => "\144\151\x6d\145\156\x73\151\157\156\x5f\x6d\x69\156\x69\x6d\x75\155\x5f\x71\165\x61\156\164\151\164\171\137", "\x64\141\x74\141\x5f\x70\157\x73\x69\164\x69\157\x6e" => $w_T2M); $LagWH[] = array("\x74\x79\x70\x65" => "\x74\x65\170\x74", "\156\x61\x6d\x65" => "\x64\x69\x6d\x65\x6e\163\x69\x6f\x6e\x5f\x6d\x61\170\151\155\165\x6d\137\161\165\x61\156\x74\x69\x74\x79\137" . $w_T2M, "\144\141\x74\x61\137\164\x79\160\x65" => "\144\151\x6d\x65\x6e\163\151\157\156\137\x6d\x61\x78\x69\155\x75\x6d\137\161\165\141\156\x74\151\x74\x79\x5f", "\x64\x61\x74\141\137\160\x6f\163\x69\164\151\157\x6e" => $w_T2M); $LagWH[] = array("\x74\x79\160\145" => "\x74\x65\x78\x74", "\x6e\x61\155\x65" => "\144\x69\155\x65\x6e\163\x69\x6f\156\x5f\x64\145\x66\x61\x75\154\164\x5f\161\165\x61\156\164\x69\x74\171\137" . $w_T2M, "\x64\141\x74\x61\137\x74\171\160\145" => "\x64\151\x6d\x65\x6e\163\151\x6f\156\137\144\x65\146\x61\x75\x6c\164\137\x71\x75\x61\156\164\151\164\x79\x5f", "\144\x61\x74\141\x5f\x70\157\x73\x69\x74\x69\x6f\x6e" => $w_T2M); $LagWH[] = array("\164\x79\160\145" => "\x74\145\x78\x74", "\156\141\x6d\x65" => "\144\151\155\x65\x6e\x73\x69\157\x6e\x5f\x71\164\171\137\163\164\x65\x70\137" . $w_T2M, "\144\x61\x74\141\x5f\x74\x79\160\145" => "\144\x69\x6d\145\x6e\x73\x69\x6f\156\x5f\x71\164\171\137\163\x74\145\x70\137", "\144\141\x74\141\x5f\x70\x6f\163\x69\164\151\157\x6e" => $w_T2M); $LagWH[] = array("\x74\171\160\145" => "\164\x65\x78\164", "\x6e\141\x6d\145" => "\x64\x69\x6d\x65\x6e\163\x69\157\x6e\x5f\x71\x74\x79\x5f\x72\141\164\x69\157\x5f" . $w_T2M, "\144\141\164\141\x5f\x74\x79\x70\145" => "\x64\x69\x6d\145\x6e\x73\x69\x6f\x6e\137\x71\164\171\137\162\x61\x74\x69\157\137", "\144\x61\x74\x61\137\160\157\x73\151\x74\151\157\156" => $w_T2M); $zw9EK->fields_value["\x64\x69\155\145\x6e\x73\151\x6f\156\137\155\x69\156\x69\x6d\x75\155\x5f\161\165\x61\156\x74\x69\164\171\137" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "\155\x69\x6e\x69\x6d\165\x6d\137\x71\x75\141\156\x74\x69\x74\x79") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x6d\x69\x6e\x69\x6d\165\x6d\137\161\165\141\x6e\x74\151\164\x79")) : ''; $zw9EK->fields_value["\x64\x69\x6d\x65\156\x73\x69\157\x6e\x5f\x6d\141\170\x69\155\x75\x6d\x5f\161\x75\141\x6e\164\151\x74\171\x5f" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x6d\141\x78\x69\x6d\x75\x6d\137\x71\165\x61\156\164\x69\164\171") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "\155\141\170\151\155\165\155\x5f\161\165\x61\x6e\164\151\164\x79")) : ''; $zw9EK->fields_value["\x64\x69\x6d\x65\156\x73\151\x6f\x6e\137\x64\x65\146\x61\x75\x6c\x74\137\161\165\141\156\x74\151\x74\x79\137" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x64\x65\146\141\165\x6c\x74\x5f\x71\x75\x61\156\x74\151\164\171") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x64\145\x66\141\x75\x6c\x74\x5f\x71\x75\x61\x6e\164\x69\x74\171")) : ''; $zw9EK->fields_value["\144\151\x6d\x65\x6e\x73\x69\x6f\x6e\x5f\x71\164\x79\137\x73\x74\x65\x70\137" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "\161\164\x79\x5f\x73\x74\x65\x70") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x71\164\x79\x5f\x73\164\x65\x70")) : ''; $zw9EK->fields_value["\144\151\155\x65\156\x73\x69\x6f\156\137\x71\x74\171\137\162\x61\164\x69\x6f\x5f" . $w_T2M] = (float) PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x71\164\171\137\162\x61\x74\x69\x6f") > 0 ? PP::presentQty(PP::getTemplateExtProperty($KdYsj, $w_T2M, "\x71\164\171\137\x72\141\164\x69\157")) : ''; $i2l14 = PP::getTemplateExtProperty($KdYsj, $w_T2M, "\157\162\x64\145\x72\137\x74\145\170\x74"); $LagWH[] = $this->createHelperFormSelect("\144\x69\x6d\x65\x6e\163\151\x6f\x6e\x5f\157\162\144\145\x72\137\164\x65\170\164\137" . $w_T2M, array("\144\x61\x74\141\x5f\164\x79\x70\x65" => "\x64\151\x6d\145\x6e\163\151\157\x6e\137\157\162\x64\x65\162\137\164\x65\170\164\x5f", "\144\141\164\x61\137\x70\x6f\163\x69\x74\x69\x6f\x6e" => $w_T2M), array(self::PROPERTY_TYPE_GENERAL, self::DIMENSIONS), $zw9EK, $i2l14, $XsykN, $jm2G6); $BJD_A = array(); $BJD_A[] = array("\164\x64" => $LagWH); $EixGS = array("\x74\162" => $BJD_A); $EixGS["\x64\151\155\145\x6e\x73\x69\157\156\x5f\x69\156\144\x65\170"] = $w_T2M; if (isset($KdYsj["\x70\x70\137\145\170\164\137\x70\162\x6f\160"])) { goto VRh4x; } $EixGS["\x69\x64\x5f\x65\170\164\x5f\160\162\x6f\160"] = $w_T2M; goto oFEc_; VRh4x: if (isset($KdYsj["\x70\160\x5f\145\170\164\137\x70\x72\157\x70"][$w_T2M]["\x69\x64\137\145\x78\x74\x5f\x70\162\x6f\160"])) { goto gkLlv; } $EixGS["\151\x64\137\145\170\x74\137\160\162\157\x70"] = 0; $V3n23 = true; goto CzvJU; gkLlv: $EixGS["\151\144\x5f\145\170\164\x5f\160\162\x6f\x70"] = (int) $KdYsj["\160\160\x5f\145\x78\x74\x5f\160\162\157\x70"][$w_T2M]["\x69\144\137\x65\x78\x74\137\x70\x72\x6f\160"]; CzvJU: oFEc_: $T59MV["\144\151\x6d\145\x6e\163\151\x6f\x6e\x73\x2d\164\141\x62\x6c\x65"]["\x74\142\157\144\x79"][] = $EixGS; kYM0W: $w_T2M++; goto uDgnR; MqnI5: if (!isset($V3n23)) { goto u9x9Y; } $JsUNM = array(); foreach ($T59MV["\x64\151\x6d\x65\156\x73\151\x6f\x6e\163\x2d\164\141\142\x6c\145"]["\164\142\x6f\144\x79"] as $EixGS) { if (!($EixGS["\151\x64\137\x65\170\164\x5f\160\162\157\160"] != 0)) { goto BEmM8; } $JsUNM[] = $EixGS["\x69\x64\x5f\x65\x78\x74\x5f\160\162\x6f\160"]; BEmM8: XbMxA: } DGXtm: $tdCY3 = array_diff(range(1, max($JsUNM)), $JsUNM); foreach ($T59MV["\144\151\x6d\x65\x6e\x73\x69\x6f\x6e\163\55\164\x61\142\154\x65"]["\164\x62\x6f\144\x79"] as &$EixGS) { if (!($EixGS["\x69\x64\137\145\x78\164\x5f\x70\x72\157\160"] == 0)) { goto LKjqX; } if ($tdCY3) { goto QIkPz; } $EixGS["\x69\x64\137\145\170\164\x5f\x70\x72\157\x70"] = max($JsUNM) + 1; goto yeOxO; QIkPz: $EixGS["\151\x64\137\145\170\164\x5f\160\162\157\x70"] = array_shift($tdCY3); yeOxO: $JsUNM[] = $EixGS["\151\x64\137\145\x78\x74\x5f\x70\162\157\160"]; LKjqX: H_NOh: } M2l4j: u9x9Y: $m36jf = array("\146\157\162\x6d" => $bPSJx, "\x64\151\x6d\145\156\x73\x69\x6f\x6e\x73\137\x66\157\162\155" => $T59MV); $hfoP5 = Hook::exec("\x61\x64\155\x69\x6e\x50\x70\162\157\x70\x65\162\x74\x69\x65\163", array("\155\x6f\144\x65" => "\x64\151\163\160\x6c\141\171\x45\x64\x69\164\x54\145\x6d\160\x6c\141\x74\145\x46\x6f\x72\x6d", "\x69\144\x5f\x70\x70\137\x74\145\155\160\x6c\x61\x74\x65" => $M0WV_), null, true); if (!is_array($hfoP5)) { goto U51bC; } foreach ($hfoP5 as $lTuJl => $ZVupB) { if (!isset($ZVupB["\x66\157\x72\x6d"])) { goto iU0mF; } if (isset($ZVupB["\x66\x6f\162\x6d"]["\x62\x75\164\164\x6f\156\163"])) { goto ir74x; } $ZVupB["\x66\x6f\162\x6d"]["\142\165\x74\x74\x6f\156\163"] = $NT0ye; ir74x: $m36jf[$lTuJl . "\x5f\146\x6f\162\x6d"] = $ZVupB["\146\x6f\162\x6d"]; iU0mF: PqgX1: } eM9Qa: U51bC: $Vjs2g = $this->generateForm($zw9EK, $m36jf, array("\x69\x64\137\x70\x70\x5f\x74\145\155\x70\154\x61\164\145" => $M0WV_, "\x6d\x75\x6c\164\x69\x64\151\155\145\x6e\163\151\157\156\x61\x6c" => $this->multidimensional_plugin, "\163\x63\x72\151\x70\x74" => array("\155\x75\x6c\x74\x69\144\151\155\x65\156\x73\x69\157\x6e\x61\x6c"))); return $Vjs2g; } private function getEditPropertyTabHtml($nsYp1, $RtsEA, $Gkfvq) { if ($this->integrated) { goto IZyiR; } return ''; IZyiR: $rvm1b = Context::getContext()->getTranslator(); $pS66y = $this->translations(); $U7zGz = (int) Tools::getValue("\x74\x79\x70\x65"); if ($RtsEA == "\x61\x64\x64") { goto hvPZ2; } $M0WV_ = PP::getIntNonNegativeValue("\151\144"); if (!($nsYp1 == null)) { goto OcWOj; } $nsYp1 = $this->getAllProperties(); OcWOj: goto kOcIb; hvPZ2: $M0WV_ = 0; if (!($nsYp1 == null)) { goto vMRR4; } foreach ($this->active_languages as $rDJFb) { $r_8WB = array(); $r_8WB["\151\x64\x5f\160\x70\x5f\x70\x72\x6f\160\145\x72\164\x79"] = $M0WV_; $r_8WB["\164\171\160\145"] = $U7zGz; $r_8WB["\x74\x65\170\164"] = ''; $nsYp1[$rDJFb["\151\144\137\154\141\156\x67"]][$M0WV_] = $r_8WB; WCxY9: } WUj5W: vMRR4: kOcIb: $cWWug = $U7zGz == self::PROPERTY_TYPE_BLOCK_TEXT; $zw9EK = $this->createHelperForm("\x70\x70\x5f\x70\162\x6f\160\x65\162\164\x79\137\146\157\x72\x6d", $Gkfvq, "\163\165\x62\x6d\x69\x74\123\141\166\145\120\162\x6f\x70\145\x72\x74\171", "\x69\x63\157\x6e\x2d\x65\144\151\x74"); $bPSJx = array("\x74\x69\156\x79\x6d\x63\145" => $cWWug, "\x69\156\160\165\x74" => array(array("\154\x61\x62\145\154" => $rvm1b->trans("\x49\104", array(), "\x41\x64\155\x69\x6e\x2e\107\154\x6f\142\x61\154"), "\x74\171\160\x65" => "\144\151\166", "\x6e\141\x6d\145" => $M0WV_, "\143\154\141\163\163" => "\143\x6f\156\164\162\x6f\154\x2d\164\x65\x78\164", "\x63\x6f\x6e\144\x69\x74\x69\157\156" => $RtsEA == "\145\x64\151\164"), array("\154\141\x62\145\x6c" => Tools::ucfirst($pS66y["\x74\x65\170\164"]), "\164\x79\x70\145" => $cWWug ? "\164\x65\x78\164\x61\162\145\x61" : "\x74\x65\x78\x74", "\156\141\x6d\145" => "\x74\x65\x78\x74\137\x69\x6e\x70\165\164", "\x61\x75\164\157\x6c\157\x61\x64\x5f\x72\164\x65" => $cWWug, "\154\x61\156\x67" => true, "\x64\x65\163\143" => PP::resolveMS() != 2 ? $this->l("\x6d\x65\164\x72\151\x63\40\x28\164\157\40\x65\144\x69\164\x20\x6e\157\156\x20\x6d\x65\164\x72\x69\x63\x20\166\x61\154\x75\x65\40\x63\x68\x61\x6e\147\145\40\x6d\x65\x61\x73\165\162\145\x6d\x65\156\x74\40\x73\x79\163\x74\x65\155\x20\151\x6e\40\123\145\164\x74\x69\x6e\x67\x73\51") : $this->l("\156\157\x6e\40\x6d\145\164\162\151\x63\40\50\164\x6f\x20\x65\x64\x69\x74\x20\155\145\x74\162\x69\143\40\166\141\154\x75\145\40\x63\150\141\x6e\147\145\40\155\145\x61\163\165\162\145\155\145\x6e\164\x20\163\171\163\164\145\x6d\x20\x69\156\40\x53\145\x74\x74\151\x6e\147\163\51")), array("\164\171\160\x65" => "\150\x69\144\144\145\156", "\x6e\141\x6d\x65" => "\151\144"), array("\164\171\x70\145" => "\150\x69\144\x64\145\x6e", "\x6e\x61\155\145" => "\x6d\x6f\144\x65"), array("\x74\171\160\x65" => "\150\x69\144\144\145\156", "\156\x61\x6d\145" => "\164\171\160\x65")), "\x62\x75\164\x74\157\x6e\163" => array(array("\x74\151\164\154\x65" => $rvm1b->trans("\x43\x61\x6e\143\145\x6c", array(), "\101\x64\x6d\x69\x6e\x2e\x41\x63\x74\x69\157\x6e\x73"), "\x74\x79\x70\145" => "\163\165\x62\155\151\x74", "\x6e\141\155\145" => "\x63\x61\156\x63\145\x6c\x53\141\166\145\120\162\x6f\160\x65\x72\164\x79", "\151\x63\157\156" => "\x70\162\157\x63\x65\163\x73\55\151\x63\x6f\156\x2d\x63\x61\156\143\145\154"))); $zw9EK->fields_value["\x69\144"] = $M0WV_; $zw9EK->fields_value["\155\x6f\144\x65"] = $RtsEA; $zw9EK->fields_value["\164\x79\160\145"] = $U7zGz; $zw9EK->fields_value["\164\x65\170\x74\137\x69\156\x70\x75\164"] = array(); foreach ($nsYp1[$this->default_language_id] as $CCTBZ => $r_8WB) { if (!($CCTBZ == $M0WV_)) { goto E9FpJ; } foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["\x69\x64\137\154\141\156\147"]; $zw9EK->fields_value["\x74\x65\170\x74\x5f\151\156\160\165\164"][$khNAy] = PP::safeOutputValue($nsYp1[$khNAy][$M0WV_]["\164\145\x78\x74"]); P6Z34: } mwGLb: goto A7rQM; E9FpJ: rtIPa: } A7rQM: return $this->generateForm($zw9EK, $bPSJx); } private function getTabIntegrationWarning() { return $this->l("\x50\154\x65\x61\x73\x65\40\147\157\x20\x74\x6f\40\164\150\x65\x20\42\123\x65\164\x74\151\156\x67\x73\42\x20\x74\141\142\x20\141\x6e\144\40\162\145\163\157\154\166\x65\40\164\150\x65\x20\x69\x6e\164\x65\x67\162\141\164\x69\x6f\x6e\40\x70\x72\157\x62\154\145\x6d\x73\x2e"); } private function showIntegrationTestResults($wwP6l) { foreach ($wwP6l as &$i2l14) { if (!is_array($i2l14)) { goto nlZG6; } asort($i2l14); nlZG6: V__qD: } qeWqU: return $wwP6l; } private function createTemplate($QRMUM) { $zw9EK = new Helper(); $zw9EK->module = $this; $zw9EK->base_folder = "\160\160\x72\x6f\160\x65\x72\x74\151\145\x73\x2f"; $zw9EK->base_tpl = $QRMUM . "\56\164\160\154"; $zw9EK->setTpl($zw9EK->base_tpl); $JqWIs = Tools::getAdminTokenLite("\x41\x64\155\151\x6e\x4d\157\x64\x75\x6c\145\x73"); $aK9Sd = AdminController::$currentIndex . "\x26\143\x6f\x6e\146\x69\147\165\162\145\75" . $this->name; $zw9EK->tpl_vars["\137\x50\123\x5f\101\104\115\111\116\137\111\x4d\x47\x5f"] = _PS_ADMIN_IMG_; $zw9EK->tpl_vars["\x63\x75\x72\162\145\156\x74"] = $aK9Sd; $zw9EK->tpl_vars["\143\165\x72\162\x65\156\x74\165\x72\x6c"] = $aK9Sd . "\x26\x74\157\x6b\x65\156\75" . $JqWIs . "\46\x70\160\75\x31\x26"; $zw9EK->tpl_vars["\164\x6f\153\145\156"] = $JqWIs; $zw9EK->tpl_vars["\151\156\164\x65\x67\x72\x61\164\x65\144"] = $this->integrated; $zw9EK->tpl_vars["\x61\143\x63\x65\x73\163\137\145\x64\151\164"] = $this->tabAccess["\145\x64\x69\164"] === "\x31"; return $zw9EK; } private function createHelperForm($vsf_s, $hb2et, $eeJqu, $mdgrW = null) { static $I4SXm = true; $zw9EK = new HelperForm(); $zw9EK->first_call = $I4SXm; $I4SXm = false; $zw9EK->module = $this; $zw9EK->title = $this->displayName; $zw9EK->name_controller = $this->name; $zw9EK->base_tpl = "\x70\x70\162\x6f\160\x65\162\164\151\145\x73\137\146\157\162\x6d\x2e\x74\x70\154"; $zw9EK->token = Tools::getAdminTokenLite("\x41\x64\x6d\x69\x6e\x4d\157\x64\x75\154\x65\163"); $zw9EK->languages = $this->active_languages; $zw9EK->currentIndex = AdminController::$currentIndex . "\x26\x63\157\156\x66\151\x67\165\x72\145\x3d" . $this->name; $zw9EK->default_form_language = $this->default_language_id; $zw9EK->allow_employee_form_lang = $this->context->controller->allow_employee_form_lang; $zw9EK->toolbar_scroll = true; $zw9EK->submit_action = ''; $zw9EK->id_form = $vsf_s; $zw9EK->pp_form = array("\x6c\145\147\145\x6e\x64" => array("\164\151\x74\x6c\x65" => $hb2et), "\163\x75\x62\x6d\151\x74" => array("\164\151\x74\x6c\x65" => Context::getContext()->getTranslator()->trans("\x53\141\x76\145", array(), "\101\x64\155\151\x6e\x2e\x41\143\164\151\157\156\163"), "\x69\x64" => $vsf_s . "\137\163\165\142\155\x69\164\x5f\142\164\156", "\x6e\x61\x6d\x65" => $eeJqu, "\x63\154\x61\x73\163" => "\x62\x74\x6e\40\x62\x74\156\x2d\144\145\x66\141\x75\x6c\164\x20\160\x75\154\154\55\x72\x69\x67\150\x74\x20\160\160\55\x61\x63\x74\x69\157\x6e\55\142\x74\156" . ($this->tabAccess["\x65\x64\151\x74"] === "\61" ? '' : "\40\144\151\163\141\x62\x6c\145\144"))); if (!($mdgrW !== null)) { goto oDMhL; } $zw9EK->pp_form["\154\x65\147\x65\156\144"]["\151\143\x6f\156"] = $mdgrW; oDMhL: $zw9EK->tpl_vars["\x73\x5f\x72\145\141\x64\x5f\x6d\x6f\162\x65"] = $this->l("\122\145\141\x64\x20\x6d\x6f\x72\145"); $zw9EK->tpl_vars["\163\x5f\x72\x65\x61\144\x5f\145\170\160\154\141\x6e\141\x74\151\x6f\x6e"] = $this->l("\x52\145\141\x64\x20\x65\170\x70\x6c\x61\x6e\x61\x74\151\157\156"); $zw9EK->tpl_vars["\x61\143\143\145\163\163\x5f\x65\144\151\164"] = $this->tabAccess["\145\x64\x69\164"] === "\x31"; return $zw9EK; } private function createHelperFormSelect($QRMUM, $j08Ks, $U7zGz, $zw9EK, $KdYsj, $XsykN, $jm2G6) { if (!($U7zGz !== false && !is_array($U7zGz))) { goto Ckrxg; } $U7zGz = array($U7zGz); Ckrxg: $F4o7_ = array(); $zw9EK->fields_value[$QRMUM] = 0; $F4o7_[] = array("\x69\144" => 0, "\156\x61\155\x65" => "\x26\x6e\x62\163\x70\73"); foreach ($XsykN[$this->default_language_id] as $M0WV_ => $wyE8z) { if (!($U7zGz === false || in_array($jm2G6[$M0WV_], $U7zGz))) { goto SD32Y; } $F4o7_[] = array("\151\144" => $M0WV_, "\156\x61\155\x65" => PP::safeOutputValue($wyE8z["\164\x65\x78\164"])); if (is_array($KdYsj)) { goto xbAS8; } if (!($KdYsj == $wyE8z["\x74\145\170\164"])) { goto fokFL; } $zw9EK->fields_value[$QRMUM] = $M0WV_; fokFL: goto A4Zet; xbAS8: if (!(isset($KdYsj[$QRMUM]) && $KdYsj[$QRMUM] == $wyE8z["\x74\145\x78\164"])) { goto hfzWQ; } $zw9EK->fields_value[$QRMUM] = $M0WV_; hfzWQ: A4Zet: SD32Y: u8v3A: } Z7XP2: $YXSm0 = array("\x74\x79\160\145" => "\163\145\154\x65\143\164", "\156\141\155\145" => $QRMUM, "\157\160\164\151\157\x6e\163" => array("\161\x75\145\x72\171" => $F4o7_, "\151\144" => "\x69\x64", "\x6e\141\x6d\x65" => "\156\141\155\x65"), "\141\x64\166\x69\x63\x65" => $this->advice($QRMUM)); if (!is_array($j08Ks)) { goto zReE4; } foreach ($j08Ks as $SNYS6 => $i2l14) { $YXSm0[$SNYS6] = $i2l14; tPlmC: } FdOn3: zReE4: return $YXSm0; } private function addToForm(&$bPSJx, $vhci9, $tMnlM, $BfilX, $zw9EK = null, $qIghV = null) { foreach ($bPSJx["\x69\x6e\160\x75\x74"] as $SNYS6 => $i2l14) { if (!(isset($i2l14["\156\141\x6d\145"]) && $i2l14["\156\x61\155\145"] == $tMnlM)) { goto uCnHj; } foreach ($vhci9 as &$YjZDL) { if (!isset($YjZDL["\x61\144\166\x69\x63\x65\137\153\x65\171"])) { goto jYAi4; } $YjZDL["\x61\x64\x76\151\143\145"] = $this->advice($YjZDL["\141\144\x76\x69\143\145\x5f\x6b\x65\171"]); jYAi4: EXx14: } sSo5t: array_splice($bPSJx["\151\x6e\x70\x75\x74"], $SNYS6 + $BfilX, 0, $vhci9); goto fNZWK; uCnHj: rH5Cy: } fNZWK: if (!$qIghV) { goto KQrw6; } foreach ($qIghV as $SNYS6 => $i2l14) { $zw9EK->fields_value[$SNYS6] = $i2l14; LBK_6: } s8TBf: KQrw6: } private function generateForm($zw9EK, $bPSJx, $bljz_ = null) { $PM56v = array("\x66\x6f\162\x6d" => array()); if (isset($bPSJx["\x66\157\162\155"])) { goto NI1vF; } $bPSJx = array("\x66\157\162\155" => $bPSJx); NI1vF: if (!(!isset($bPSJx["\x66\157\x72\155"]["\151\144\137\x66\x6f\x72\x6d"]) && isset($zw9EK->id_form))) { goto yft0P; } $bPSJx["\x66\157\162\x6d"]["\151\x64\137\x66\x6f\x72\155"] = $zw9EK->id_form; yft0P: foreach ($bPSJx as $SNYS6 => $HYoXt) { $PM56v[$SNYS6] = array("\x66\x6f\162\155" => array_merge($zw9EK->pp_form, $HYoXt)); if (!(isset($PM56v[$SNYS6]["\x66\x6f\162\155"]["\142\x75\x74\164\x6f\156\163"]) && $PM56v[$SNYS6]["\x66\157\162\x6d"]["\x62\x75\164\164\x6f\x6e\163"] === false)) { goto P6XpL; } unset($PM56v[$SNYS6]["\x66\x6f\162\x6d"]["\x62\x75\164\x74\x6f\x6e\163"]); unset($PM56v[$SNYS6]["\x66\x6f\162\155"]["\163\165\142\155\x69\164"]); P6XpL: Ef_Sd: } jervE: if (!is_array($bljz_)) { goto QVsHn; } foreach ($bljz_ as $SNYS6 => $i2l14) { $PM56v["\146\157\162\x6d"][$SNYS6] = $i2l14; wLqLA: } CQTZl: QVsHn: $PM56v["\146\x6f\x72\155"]["\137\x50\123\x5f\101\x44\x4d\111\x4e\x5f\x49\115\107\137"] = _PS_ADMIN_IMG_; $PM56v["\x66\x6f\x72\x6d"]["\141\x63\x63\145\x73\x73\x5f\x65\x64\x69\164"] = $this->tabAccess["\x65\144\x69\164"] === "\x31"; static $fGWuY = false; if ($fGWuY) { goto pYPg0; } $fGWuY = true; $PM56v["\x66\157\162\x6d"]["\x66\157\x72\x6d"]["\151\156\x70\x75\x74"][] = array("\x74\x79\160\145" => "\150\x69\x64\x64\145\x6e", "\x6e\141\155\x65" => "\x70\x70"); $zw9EK->fields_value["\x70\x70"] = 1; pYPg0: return $zw9EK->generateForm($PM56v); } private function saveTemplate() { $d5Cih = array(); $d5Cih["\145\x72\162\157\162"] = ''; $RtsEA = Tools::getValue("\155\x6f\x64\145"); if ($RtsEA == "\141\x64\144") { goto y0OEe; } if ($RtsEA == "\143\x6f\160\x79") { goto AvTeI; } $RtsEA = "\145\144\151\164"; $M0WV_ = PP::getIntNonNegativeValue("\151\x64"); goto ULC8F; y0OEe: $M0WV_ = 0; goto ULC8F; AvTeI: $M0WV_ = PP::getIntNonNegativeValue("\151\x64"); ULC8F: if (!($M0WV_ < 0)) { goto H9DU3; } return $d5Cih; H9DU3: $s2qQM = array(); $VJeUd = array(); $HGV6k = array(); $HGV6k["\160\160\137\145\x78\160\x6c\x61\x6e\x61\x74\x69\157\x6e"] = PP::getIntNonNegativeValue("\x70\160\137\145\170\x70\154\x61\156\141\x74\x69\x6f\x6e"); $HGV6k["\160\160\x5f\160\x72\151\143\145\137\164\145\x78\164"] = PP::getIntNonNegativeValue("\160\x70\x5f\160\162\151\x63\145\x5f\x74\145\x78\164"); $HGV6k["\160\x70\x5f\161\x74\171\137\x74\x65\x78\x74"] = PP::getIntNonNegativeValue("\x70\160\137\161\x74\x79\x5f\x74\x65\x78\x74"); $HGV6k["\160\x70\x5f\x75\156\x69\164\171\137\164\x65\x78\x74"] = PP::getIntNonNegativeValue("\x70\x70\137\x75\156\x69\x74\171\x5f\x74\x65\x78\164"); $pS66y = $this->translations(); $cC_UV = PP::getIntNonNegativeValue("\x70\x70\137\x70\162\x69\143\x65\137\x64\x69\x73\x70\x6c\141\x79\137\155\157\144\x65"); if (in_array($cC_UV, array(0, 1, 16))) { goto jNAYr; } $cC_UV = 0; jNAYr: $ike0A = PP::getIntNonNegativeValue("\x70\160\137\142\x6f\137\161\164\x79\x5f\x61\x76\141\151\x6c\x61\142\x6c\x65\x5f\x64\x69\163\160\x6c\x61\x79"); if (in_array($ike0A, array(0, 1, 2))) { goto E5up4; } $ike0A = 0; E5up4: $vrLR0 = PP::getIntNonNegativeValue("\160\x70\137\x62\x6f\137\x6d\145\x61\x73\165\162\x65\155\x65\x6e\x74\x5f\163\x79\x73\164\x65\155"); $ODS33 = PP::getFloatNonNegativeValue("\165\156\x69\164\137\x70\162\x69\143\x65\x5f\162\141\164\151\x6f"); $fmq7C = PP::getFloatNonNegativeValue("\155\151\156\151\x6d\x75\x6d\137\x70\x72\x69\143\x65\137\162\x61\164\x69\x6f"); $DUzX4 = PP::getIntNonNegativeValue("\x70\160\137\x71\164\171\137\160\157\x6c\x69\143\171"); $DUzX4 = $DUzX4 == 3 ? 2 : $DUzX4; $Wh10R = PP::getIntNonNegativeValue($this->multidimensional_plugin ? "\160\x70\137\145\x78\x74\137\x6d\x65\x74\x68\157\144" : "\x70\160\x5f\x65\170\x74\x5f\155\x65\164\x68\x6f\x64\x5f\146\x61\x6c\154\x62\141\x63\x6b"); if (!($Wh10R < 0)) { goto YgCkQ; } $Wh10R = 0; YgCkQ: if (!($Wh10R == 3)) { goto n8uwj; } $Wh10R = 2; n8uwj: $tVfbS = 0; if (!($Wh10R > 0)) { goto USRrt; } $tVfbS = $Wh10R != 98 && $Wh10R != 99 ? PP::getIntNonNegativeValue("\160\160\x5f\x65\x78\x74\x5f\x70\x6f\x6c\151\143\171") : 0; if (in_array($tVfbS, array(0, 1))) { goto ScKcF; } $tVfbS = 0; ScKcF: $DUzX4 = $tVfbS == 1 ? 0 : 2; USRrt: $ikjDL = PP::getIntNonNegativeValue("\160\x70\137\x71\x74\171\x5f\x6d\157\144\x65") != 0 ? 1 : 0; foreach ($pS66y["\x73\x5f\x70\160\x5f\161\164\171\137\x6d\157\x64\145\137\157\160\164\x69\x6f\156\x73"] as $xc1Yt) { if (!(PP::getIntNonNegativeValue("\x70\160\x5f\x71\x74\x79\x5f\x6d\x6f\144\x65\137" . $xc1Yt) > 0)) { goto RJj9S; } $ikjDL += $xc1Yt; RJj9S: mi9_Y: } bnTLK: if (!($DUzX4 == 0)) { goto vlNyX; } $ikjDL &= ~1; $ikjDL &= ~2; vlNyX: $iw1Yu = PP::getIntNonNegativeValue("\x70\x70\137\x64\x69\x73\x70\x6c\x61\171\137\155\x6f\x64\145") != 0 ? 1 : 0; foreach ($pS66y["\x73\x5f\160\160\137\144\151\163\x70\154\141\171\137\x6d\157\144\145\137\157\x70\164\x69\x6f\x6e\163"] as $xc1Yt) { if (!(PP::getIntNonNegativeValue("\x70\x70\x5f\144\x69\163\x70\154\x61\x79\x5f\155\157\144\x65\137" . $xc1Yt) > 0)) { goto fV27K; } $iw1Yu += $xc1Yt; fV27K: IBMOI: } zs4_9: if ($DUzX4 == 2 && $Wh10R == 0) { goto b_yqn; } $FmzGv = PP::getIntNonNegativeValue("\x6d\x69\156\x69\155\165\155\x5f\161\x75\141\x6e\x74\x69\164\171"); $z9TjL = PP::getIntNonNegativeValue("\x6d\141\x78\x69\x6d\165\x6d\x5f\161\165\x61\156\164\x69\x74\171"); $jKXI4 = PP::getIntNonNegativeValue("\164\x6f\164\x61\x6c\137\155\x61\170\x69\155\165\x6d\137\161\x75\x61\156\164\x69\x74\171"); $mfoP5 = PP::getIntNonNegativeValue("\x64\x65\146\141\x75\154\x74\137\x71\x75\141\156\164\151\x74\171"); $TCLST = PP::getIntNonNegativeValue("\x71\164\171\137\163\164\145\160"); goto pzdlx; b_yqn: $FmzGv = PP::getFloatNonNegativeValue("\x6d\151\x6e\x69\x6d\165\155\137\161\165\x61\x6e\x74\151\x74\171"); $z9TjL = PP::getFloatNonNegativeValue("\x6d\141\x78\151\155\165\x6d\x5f\x71\x75\x61\x6e\164\x69\164\x79"); $jKXI4 = PP::getFloatNonNegativeValue("\x74\157\164\141\x6c\137\155\141\170\x69\x6d\x75\x6d\x5f\x71\x75\141\x6e\164\151\x74\x79"); $mfoP5 = PP::getFloatNonNegativeValue("\x64\x65\146\141\x75\154\x74\x5f\161\165\x61\156\x74\151\x74\x79"); $TCLST = PP::getFloatNonNegativeValue("\x71\x74\171\137\x73\x74\x65\160"); pzdlx: $zY3kj = PP::getSpecificValues("\x71\164\171\137\x76\141\x6c\165\x65\x73", $DUzX4); $Qdbl5 = implode("\174", $zY3kj); PP::resolveQuantities($FmzGv, $z9TjL, $mfoP5, $TCLST, $DUzX4, array("\x74\157\164\141\154\x5f\155\141\170\x69\x6d\x75\x6d\x5f\161\165\x61\156\164\151\x74\171" => &$jKXI4, "\x73\160\x65\x63\x69\146\151\x63\137\x76\x61\x6c\x75\145\x73" => $zY3kj, "\x64\142" => true)); if (!$zY3kj) { goto hETRD; } if (!($DUzX4 == 0)) { goto bE5nD; } $DUzX4 = 1; bE5nD: hETRD: $OaTNn = PP::getIntNonNegativeValue("\160\x70\x5f\142\x6f\x5f\x68\151\144\x64\x65\156") == 1 ? 1 : 0; $Xikpz = PP::getIntNonNegativeValue("\160\160\x5f\143\165\163\164\x6f\x6d\x69\x7a\141\x74\x69\157\156") == 1 ? 1 : 0; $ezQJE = PP::resolveMS($vrLR0); $euE1Z = Tools::getValue("\160\160\x5f\143\x73\x73"); foreach ($this->active_languages as $rDJFb) { $j08Ks = array(); $j08Ks["\x69\x64\137\160\160\137\164\x65\155\x70\x6c\141\164\x65"] = $M0WV_; $j08Ks["\x71\x74\x79\137\x70\157\x6c\151\143\171"] = $DUzX4; $j08Ks["\161\164\x79\x5f\155\157\x64\145"] = $ikjDL; $j08Ks["\x64\151\163\x70\x6c\141\171\x5f\x6d\x6f\144\145"] = $iw1Yu; $j08Ks["\160\x72\x69\x63\x65\137\144\151\163\x70\x6c\141\x79\137\155\x6f\x64\x65"] = $cC_UV; $j08Ks["\x6d\145\141\x73\x75\x72\145\x6d\145\156\x74\x5f\163\x79\163\x74\145\x6d"] = $vrLR0; $j08Ks["\165\x6e\151\x74\x5f\160\162\151\143\x65\137\x72\141\164\x69\x6f"] = $ODS33; $j08Ks["\x6d\x69\156\x69\x6d\x61\x6c\x5f\x70\162\x69\143\x65\x5f\x72\x61\164\x69\x6f"] = $fmq7C; $j08Ks["\x6d\151\x6e\151\155\141\154\x5f\x71\165\x61\156\164\x69\x74\171"] = $FmzGv; $j08Ks["\155\x61\x78\151\x6d\x75\x6d\x5f\x71\x75\141\x6e\164\151\164\x79"] = $z9TjL; $j08Ks["\x74\x6f\x74\141\x6c\x5f\155\x61\170\x69\x6d\165\155\x5f\161\x75\x61\x6e\164\x69\x74\171"] = $jKXI4; $j08Ks["\x64\x65\146\x61\165\154\x74\x5f\x71\165\x61\x6e\164\x69\164\171"] = $mfoP5; $j08Ks["\161\x74\x79\137\x73\164\145\160"] = $TCLST; $j08Ks["\x71\x74\171\x5f\x76\x61\x6c\x75\145\x73"] = $Qdbl5; $j08Ks["\145\x78\x74"] = $Wh10R > 0 ? 1 : 0; $j08Ks["\161\x74\171\137\x61\166\x61\151\154\141\142\154\x65\137\144\151\163\160\x6c\141\x79"] = $ike0A; $j08Ks["\143\x73\x73"] = $euE1Z; $j08Ks["\150\151\144\144\145\156"] = $OaTNn; $j08Ks["\143\165\163\x74\x6f\x6d\x69\172\141\164\151\x6f\156"] = $Xikpz; $j08Ks["\x74\x65\155\x70\154\141\x74\x65\x5f\160\162\x6f\x70\145\x72\x74\151\x65\x73"] = $HGV6k; $KdYsj = array(); PP::calcProductProperties($KdYsj, $j08Ks); $KdYsj["\160\160\x5f\145\170\164"] = $Wh10R > 0 ? 1 : 0; $khNAy = $rDJFb["\151\x64\x5f\x6c\141\156\147"]; $this->getValue($KdYsj, "\156\x61\x6d\145", $pS66y["\x6e\x61\x6d\x65"], $s2qQM, $khNAy); $KdYsj["\x64\145\163\143\162\151\x70\x74\x69\x6f\x6e"] = Tools::getValue("\144\145\x73\x63\x72\151\x70\x74\x69\157\x6e\x5f\151\156\160\x75\164\x5f" . $khNAy); $VJeUd[$khNAy][$M0WV_] = $KdYsj; JDhe1: } KPzjo: if (count($s2qQM) == 0) { goto gAy8x; } $d5Cih["\145\x72\x72\157\162"] .= $this->l("\x50\154\x65\141\x73\145\x20\x66\151\x78\x20\164\x68\145\40\146\157\x6c\154\157\x77\x69\156\147\x20\145\x72\x72\x6f\162\x73\x3a"); foreach ($s2qQM as $pyU8L) { $d5Cih["\145\x72\162\x6f\x72"] .= "\xa\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\x3c\144\x69\x76\x3e" . $pyU8L . "\x3c\x2f\144\x69\x76\76"; g7gR3: } CAR8b: goto bxfKb; gAy8x: $he7ft = Db::getInstance(); if ($RtsEA == "\x65\x64\151\164") { goto gN2Cs; } $QYiU9 = $this->getNextId($he7ft, "\160\160\x5f\164\x65\x6d\x70\154\x61\164\x65", "\x69\x64\x5f\x70\160\137\164\x65\x6d\x70\154\x61\x74\145"); $he7ft->execute("\111\116\123\105\122\124\x20\111\x4e\124\117\x20\x60" . _DB_PREFIX_ . "\160\x70\x5f\x74\x65\x6d\x70\154\141\164\x65\140\x20\x28\x69\x64\137\160\160\x5f\164\x65\x6d\x70\154\141\164\x65\54\40\166\x65\x72\163\151\x6f\x6e\x29\x20\x56\101\x4c\125\x45\x20\50" . $QYiU9 . "\x2c\40\60\x29"); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["\151\x64\137\154\x61\156\x67"]; $VJeUd[$khNAy][$M0WV_]["\x69\144\x5f\160\x70\137\x74\x65\155\x70\154\141\x74\x65"] = $QYiU9; ClODv: } KSZOx: goto K_G0V; gN2Cs: $QYiU9 = $M0WV_; K_G0V: $he7ft->update("\x70\160\x5f\x74\x65\155\x70\154\141\164\x65", array("\166\x65\162\x73\x69\x6f\156" => PP::PP_TEMPLATE_VERSION, "\161\x74\171\137\160\157\154\151\x63\x79" => $KdYsj["\x70\160\137\x71\164\x79\x5f\x70\157\x6c\151\x63\x79"], "\x71\164\x79\x5f\x6d\x6f\144\145" => $KdYsj["\x70\x70\137\161\164\x79\137\155\x6f\x64\x65"], "\144\151\163\x70\154\141\x79\137\x6d\x6f\x64\x65" => $KdYsj["\160\160\137\144\x69\x73\160\x6c\x61\171\x5f\x6d\x6f\144\145"], "\160\x72\x69\x63\x65\x5f\144\151\x73\160\154\141\171\137\x6d\157\x64\x65" => $KdYsj["\x70\160\137\160\x72\x69\143\145\137\144\x69\163\x70\154\141\171\137\155\157\144\145"], "\155\x65\141\163\165\162\145\x6d\145\156\x74\137\163\171\x73\164\145\x6d" => $KdYsj["\x70\160\x5f\142\157\137\x6d\x65\x61\x73\x75\x72\145\x6d\145\x6e\x74\x5f\x73\171\x73\x74\x65\155"], "\165\156\x69\x74\137\x70\x72\151\x63\x65\x5f\x72\141\164\151\157" => $KdYsj["\x70\x70\137\165\156\151\x74\137\160\x72\151\143\x65\137\162\x61\164\151\x6f"], "\155\x69\x6e\x69\x6d\x61\x6c\137\160\x72\151\143\x65\137\x72\141\x74\x69\157" => $KdYsj["\160\x70\x5f\155\x69\x6e\151\x6d\x75\155\137\160\162\151\x63\145\x5f\x72\141\x74\x69\157"], "\155\151\x6e\x69\x6d\141\x6c\137\x71\165\141\x6e\164\x69\x74\x79" => $KdYsj["\144\142\137\155\151\x6e\x69\155\165\x6d\x5f\x71\x75\x61\x6e\x74\x69\x74\171"], "\x6d\x61\170\151\x6d\x75\155\137\x71\165\x61\x6e\164\151\x74\x79" => $KdYsj["\x64\142\x5f\x6d\141\x78\x69\155\165\155\x5f\x71\165\x61\156\x74\x69\x74\x79"], "\x74\157\164\141\154\137\155\x61\170\151\x6d\165\155\137\161\x75\x61\x6e\x74\x69\164\x79" => $KdYsj["\144\x62\137\x74\157\164\x61\x6c\137\x6d\141\170\151\155\x75\x6d\137\161\165\141\x6e\164\151\164\x79"], "\x64\x65\146\x61\165\154\x74\x5f\x71\165\141\x6e\x74\x69\164\x79" => $KdYsj["\144\x62\x5f\144\145\146\141\x75\x6c\x74\137\x71\x75\x61\156\x74\151\x74\x79"], "\x71\164\171\x5f\x73\x74\x65\x70" => $KdYsj["\x64\142\x5f\x71\x74\x79\137\x73\164\145\160"], "\x71\164\171\137\166\x61\154\165\145\x73" => $KdYsj["\144\x62\137\161\164\x79\x5f\x76\141\x6c\165\x65\163"], "\x65\170\x74" => $KdYsj["\160\x70\x5f\145\x78\164"], "\161\x74\171\x5f\x61\166\x61\151\154\x61\142\x6c\145\137\144\x69\163\x70\154\x61\x79" => $KdYsj["\x70\160\137\142\x6f\x5f\161\x74\x79\x5f\x61\166\x61\x69\154\x61\142\x6c\x65\x5f\x64\151\x73\160\x6c\x61\x79"], "\x68\x69\x64\144\145\156" => $KdYsj["\160\160\137\142\157\137\150\x69\144\144\x65\x6e"], "\143\x75\x73\164\x6f\155\151\x7a\x61\x74\x69\x6f\x6e" => $KdYsj["\160\160\137\143\165\163\x74\x6f\155\x69\172\141\x74\x69\x6f\x6e"], "\x63\x73\x73" => $KdYsj["\160\160\137\143\x73\x73"]), "\x69\144\x5f\x70\160\137\x74\145\x6d\160\x6c\141\x74\145\x20\75\40" . $QYiU9); $he7ft->delete("\x70\160\x5f\x74\145\155\160\154\x61\x74\145\x5f\160\162\157\160\145\162\x74\171", "\x69\x64\x5f\160\x70\x5f\x74\145\155\x70\154\141\164\145\x20\75\x20" . $QYiU9); foreach ($HGV6k as $SNYS6 => $i2l14) { $HGV6k[$SNYS6] = "\x28{$QYiU9}\x2c\x27{$SNYS6}\x27\54{$i2l14}\x29"; lPBgI: } IOy7h: $he7ft->execute("\x49\116\x53\105\122\124\x20\111\116\124\x4f\x20" . _DB_PREFIX_ . "\160\x70\x5f\x74\x65\x6d\x70\154\141\164\145\137\x70\x72\157\x70\145\x72\164\x79\x20\50\151\x64\x5f\160\x70\137\x74\x65\155\160\x6c\x61\164\145\54\160\160\x5f\x6e\141\x6d\145\x2c\x69\x64\137\x70\160\x5f\160\162\157\x70\145\162\164\171\x29\40\126\x41\x4c\125\105\123\40" . implode("\54", $HGV6k)); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["\x69\x64\x5f\154\141\x6e\x67"]; $KdYsj = $VJeUd[$khNAy][$M0WV_]; $fauXG = $he7ft->getRow("\123\x45\x4c\x45\103\124\x20\x2a\40\106\122\x4f\x4d\40\x60" . _DB_PREFIX_ . "\x70\160\x5f\x74\145\155\160\x6c\141\x74\145\x5f\154\x61\156\x67\x60\40\127\x48\105\122\x45\40\x69\x64\137\160\160\x5f\x74\x65\x6d\x70\154\141\x74\x65\40\75\x20" . (int) $QYiU9 . "\x20\101\x4e\x44\40\151\144\137\154\x61\156\147\75" . (int) $khNAy); if (!($fauXG === false)) { goto juZLW; } $fauXG = array("\x64\145\x73\143\162\x69\x70\x74\151\x6f\156\137\61" => '', "\x64\x65\163\143\x72\x69\160\164\151\157\156\137\x32" => '', "\151\144\x5f\x70\x70\x5f\164\x65\155\160\154\x61\x74\145" => $QYiU9, "\151\x64\x5f\154\x61\x6e\147" => $khNAy); juZLW: $ZSw74 = $KdYsj["\x64\x65\x73\143\x72\151\x70\164\x69\157\156"] == '' ? 1 : 0; $fauXG[$ezQJE != 2 ? "\x64\x65\x73\143\x72\x69\x70\x74\151\157\x6e\137\x31" : "\x64\145\163\143\x72\151\160\x74\x69\157\x6e\x5f\x32"] = pSQL($KdYsj["\x64\x65\163\x63\x72\x69\160\x74\x69\157\x6e"], true); $fauXG[$ezQJE != 2 ? "\x61\x75\x74\157\x5f\144\145\x73\x63\137\61" : "\x61\165\164\157\137\144\x65\163\143\137\x32"] = $ZSw74; $fauXG["\x6e\141\x6d\x65"] = pSQL($KdYsj["\x6e\x61\x6d\145"], true); $he7ft->delete("\x70\x70\x5f\164\x65\x6d\x70\154\141\164\x65\137\154\141\156\147", "\x69\x64\137\160\160\x5f\164\x65\155\x70\x6c\141\164\x65\40\75\x20" . $QYiU9 . "\x20\x41\116\x44\40\x69\x64\137\x6c\x61\x6e\147\x3d" . $khNAy); $he7ft->insert("\x70\160\137\x74\145\x6d\160\x6c\141\x74\145\x5f\x6c\x61\156\x67", $fauXG); as_JU: } B3F91: if (!$this->multidimensional_plugin) { goto ZVXJQ; } $this->multidimensional_plugin->saveTemplate($QYiU9, $Wh10R, $tVfbS); ZVXJQ: $VJeUd = null; Hook::exec("\x61\x64\x6d\151\156\120\160\162\157\160\x65\162\x74\x69\145\163", array("\x6d\157\x64\x65" => "\141\143\164\151\x6f\x6e\x54\x65\x6d\x70\154\x61\164\x65\x53\x61\x76\145", "\151\x64\x5f\x70\160\x5f\x74\145\x6d\x70\154\x61\164\145" => $QYiU9)); PP::resetTemplates(); bxfKb: $d5Cih["\x74\x65\x6d\x70\154\x61\x74\x65\163"] = $VJeUd; return $d5Cih; } private function saveProperty() { $d5Cih = array(); $d5Cih["\x65\x72\162\157\x72"] = ''; $RtsEA = Tools::getValue("\155\x6f\x64\145"); $U7zGz = Tools::getValue("\x74\x79\x70\x65"); if ($RtsEA == "\x61\144\x64") { goto e_hvB; } $RtsEA = "\145\144\151\164"; $M0WV_ = PP::getIntNonNegativeValue("\x69\x64"); goto NYAIk; e_hvB: $M0WV_ = 0; NYAIk: if (!($M0WV_ < 0)) { goto zBaUd; } return $d5Cih; zBaUd: $U7zGz = Tools::getValue("\164\171\160\x65"); $s2qQM = array(); $nsYp1 = array(); $pS66y = $this->translations(); foreach ($this->active_languages as $rDJFb) { $r_8WB = array(); $khNAy = $rDJFb["\x69\144\x5f\154\141\x6e\147"]; $this->getValue($r_8WB, "\164\x65\x78\x74", $pS66y["\164\x65\170\x74"], $s2qQM, $khNAy); $nsYp1[$khNAy][$M0WV_] = $r_8WB; f2lT_: } uPa6v: if (count($s2qQM) == 0) { goto BnLLU; } $d5Cih["\x65\162\162\157\x72"] .= $this->l("\x50\154\x65\141\x73\145\40\x66\151\170\40\x74\x68\145\x20\146\x6f\154\154\x6f\167\x69\156\147\x20\x65\162\162\x6f\x72\x73\x3a"); foreach ($s2qQM as $pyU8L) { $d5Cih["\x65\x72\x72\x6f\162"] .= "\xa\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\x20\x3c\x64\151\166\x3e" . $pyU8L . "\x3c\x2f\x64\x69\166\x3e"; kojPO: } QNI9g: goto AK7vR; BnLLU: $he7ft = Db::getInstance(); if ($RtsEA == "\145\x64\x69\164") { goto bzaDk; } $CCTBZ = $this->getNextId($he7ft, "\160\x70\x5f\x70\x72\157\160\x65\x72\164\x79", "\151\144\137\160\x70\137\160\x72\157\160\x65\x72\x74\171"); $he7ft->execute("\111\x4e\123\x45\122\x54\40\x49\x4e\124\x4f\x20\x60" . _DB_PREFIX_ . "\160\x70\x5f\160\x72\x6f\x70\x65\x72\164\x79\140\40\50\151\x64\137\x70\x70\137\160\162\157\x70\145\162\164\x79\54\40\x74\x79\x70\x65\x29\40\x56\x41\114\x55\105\40\50" . $CCTBZ . "\x2c\40" . $U7zGz . "\x29"); foreach ($this->active_languages as $rDJFb) { $nsYp1[$rDJFb["\151\x64\137\x6c\141\156\x67"]][$M0WV_]["\x69\x64\x5f\160\x70\x5f\160\x72\x6f\x70\145\x72\x74\171"] = $CCTBZ; PUeob: } pz4WH: goto FoxxR; bzaDk: $CCTBZ = $M0WV_; FoxxR: foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["\x69\x64\137\154\x61\x6e\147"]; $fauXG = $he7ft->getRow("\123\105\x4c\x45\103\x54\x20\x2a\40\x46\122\x4f\x4d\x20\x60" . _DB_PREFIX_ . "\x70\160\x5f\x70\x72\x6f\x70\145\162\164\x79\x5f\x6c\141\x6e\x67\x60\x20\127\110\105\x52\105\x20\x69\x64\x5f\x70\160\x5f\160\162\157\160\x65\x72\x74\x79\x20\75\40" . (int) $CCTBZ . "\40\101\116\x44\x20\x69\144\x5f\x6c\141\x6e\147\75" . (int) $khNAy); if (!($fauXG === false)) { goto KIGUC; } $fauXG = array("\x74\x65\x78\164\x5f\x31" => '', "\x74\145\x78\164\x5f\62" => '', "\x69\144\x5f\160\x70\x5f\160\x72\x6f\160\x65\x72\164\171" => $CCTBZ, "\x69\144\x5f\x6c\141\x6e\147" => $khNAy); KIGUC: $r_8WB = $nsYp1[$khNAy][$M0WV_]; $X6BQ3 = pSQL($r_8WB["\x74\145\x78\164"], true); if (PP::resolveMS() != 2) { goto r2e99; } $fauXG["\x74\145\170\x74\x5f\x32"] = $X6BQ3; if (!($fauXG["\164\145\x78\164\x5f\x31"] == '')) { goto yqwTL; } $fauXG["\164\145\x78\x74\137\61"] = $X6BQ3; yqwTL: goto BIecx; r2e99: $fauXG["\164\145\170\x74\137\61"] = $X6BQ3; if (!($fauXG["\x74\145\x78\164\x5f\62"] == '')) { goto i4Mrw; } $fauXG["\164\145\x78\x74\137\x32"] = $X6BQ3; i4Mrw: BIecx: $he7ft->delete("\160\160\137\x70\162\157\x70\x65\x72\x74\x79\x5f\x6c\141\156\x67", "\151\x64\x5f\x70\x70\x5f\160\x72\x6f\160\145\x72\164\171\40\x3d\40" . $CCTBZ . "\40\101\116\x44\40\x69\144\x5f\154\x61\x6e\147\x3d" . $khNAy); if (!($fauXG["\164\145\170\x74\x5f\x31"] != '' || $fauXG["\x74\145\x78\164\x5f\x32"] != '')) { goto caiie; } $he7ft->insert("\x70\x70\137\160\x72\x6f\x70\145\x72\x74\171\137\154\x61\x6e\x67", $fauXG); caiie: ejwKR: } RU2XC: AK7vR: $d5Cih["\160\162\157\x70\145\162\164\x69\145\x73"] = $nsYp1; return $d5Cih; } private function deleteTemplate() { $M0WV_ = PP::getIntNonNegativeValue("\151\x64"); if (!($M0WV_ <= 0)) { goto CQxU2; } return; CQxU2: $he7ft = Db::getInstance(); $he7ft->delete("\x70\160\137\164\x65\155\160\154\141\x74\x65", "\x69\x64\x5f\x70\160\x5f\164\x65\155\160\154\x61\x74\145\40\75\x20" . $M0WV_); $he7ft->delete("\x70\x70\x5f\164\145\155\x70\154\141\164\x65\137\154\x61\x6e\x67", "\151\144\137\160\x70\137\164\x65\155\x70\154\x61\164\x65\x20\75\x20" . $M0WV_); $he7ft->delete("\160\160\x5f\x74\145\x6d\160\154\x61\x74\145\x5f\x70\x72\x6f\x70\x65\162\x74\x79", "\151\x64\137\x70\160\137\x74\x65\x6d\x70\x6c\x61\164\x65\40\75\40" . $M0WV_); $he7ft->delete("\160\x70\x5f\164\x65\x6d\x70\154\x61\x74\x65\137\145\x78\164", "\151\144\137\x70\160\x5f\164\x65\155\x70\154\141\x74\x65\40\75\40" . $M0WV_); $he7ft->delete("\x70\160\x5f\x74\x65\155\x70\x6c\x61\164\x65\137\x65\170\164\137\160\x72\x6f\160", "\151\x64\137\x70\x70\x5f\164\145\155\x70\154\141\x74\145\x20\75\x20" . $M0WV_); Hook::exec("\x61\x64\155\151\x6e\120\160\162\x6f\160\x65\162\x74\151\x65\x73", array("\155\x6f\x64\x65" => "\141\x63\164\151\x6f\156\x54\145\x6d\160\154\141\164\145\104\145\x6c\x65\x74\145", "\x69\x64\137\x70\160\x5f\164\145\x6d\160\x6c\x61\x74\x65" => $M0WV_)); } private function deleteProperty() { $M0WV_ = PP::getIntNonNegativeValue("\x69\144"); if (!($M0WV_ > 0)) { goto lojnx; } $he7ft = Db::getInstance(); $he7ft->delete("\x70\160\137\160\x72\x6f\160\x65\x72\x74\x79", "\151\x64\x5f\160\160\137\160\162\157\160\x65\x72\x74\171\40\75\x20" . $M0WV_); $he7ft->delete("\160\x70\x5f\160\x72\157\160\x65\162\x74\x79\137\154\x61\x6e\147", "\x69\x64\x5f\160\160\137\x70\x72\157\160\145\x72\x74\x79\x20\75\40" . $M0WV_); $he7ft->delete("\x70\x70\137\x74\145\155\160\154\141\x74\145\x5f\160\x72\157\x70\145\162\164\x79", "\x69\x64\137\x70\x70\137\x70\x72\157\160\145\x72\x74\171\40\75\40" . $M0WV_); lojnx: } private function changeHiddenStatus() { $M0WV_ = PP::getIntNonNegativeValue("\x69\144"); if (!($M0WV_ <= 0)) { goto c39Nb; } return; c39Nb: Db::getInstance()->update("\160\x70\x5f\164\145\155\x70\x6c\141\x74\145", array("\150\x69\144\144\145\156" => (int) Tools::getValue("\x73\x68\x6f\x77", 1) ? "\x30" : "\x31"), "\x60\151\x64\x5f\160\x70\137\164\145\x6d\160\x6c\141\164\x65\140\x20\x3d\40" . $M0WV_); } public function generateDescription($KdYsj) { $vpEpV = ''; if ($KdYsj["\x70\x70\x5f\x71\164\171\137\x70\x6f\x6c\151\x63\171"] == 1) { goto RdCVp; } if ($KdYsj["\x70\x70\137\x71\164\171\137\160\157\154\151\x63\171"] == 2) { goto je00O; } $vpEpV .= $this->l("\x50\x72\157\x64\x75\x63\x74\40\x73\157\154\144\40\x69\156\40\x69\164\x65\155\x73"); goto MTlzz; RdCVp: $vpEpV .= $this->l("\x50\x72\x6f\144\x75\143\164\x20\x73\x6f\154\x64\40\151\x6e\x20\x77\x68\157\154\x65\40\165\x6e\x69\x74\x73"); goto MTlzz; je00O: if ($KdYsj["\x70\x70\137\x65\x78\x74"] > 0) { goto ivPE3; } $vpEpV .= $this->l("\x50\x72\x6f\x64\165\x63\x74\x20\x73\157\x6c\144\40\151\156\40\146\x72\x61\143\x74\x69\157\x6e\x61\x6c\40\165\x6e\x69\x74\x73"); goto HcZ80; ivPE3: $vpEpV .= $this->l("\120\162\x6f\x64\x75\143\x74\x20\x75\163\x65\163\x20\x6d\x75\x6c\x74\151\144\151\155\x65\x6e\x73\151\157\156\x61\x6c\40\146\145\x61\164\x75\x72\x65"); HcZ80: MTlzz: if (!($KdYsj["\x70\x70\137\x71\x74\x79\x5f\155\157\x64\x65"] && !PP::qtyPolicyLegacy($KdYsj["\160\160\137\161\x74\x79\x5f\x70\x6f\x6c\x69\x63\171"]))) { goto cx_e5; } $vpEpV .= "\54\x20" . $this->l("\141\x70\x70\x72\x6f\170\151\x6d\x61\x74\145\40\161\x75\141\x6e\x74\x69\164\x79\x20\x61\x6e\144\40\x70\x72\151\143\x65\x20\x28\164\150\145\x20\145\170\x61\143\164\40\x71\x75\x61\x6e\x74\x69\164\x79\x20\x63\x61\x6e\156\x6f\164\40\x62\x65\x20\x6f\x72\144\145\x72\145\144\51"); cx_e5: if (!(($KdYsj["\160\x70\x5f\x71\164\x79\137\155\x6f\x64\145"] & 1) == 1)) { goto IybR1; } $vpEpV .= "\x2c\40" . $this->l("\x61\147\147\x72\x65\x67\141\164\x65\x20\x71\165\x61\x6e\x74\151\164\151\145\163"); IybR1: if (!(($KdYsj["\x70\x70\x5f\x64\151\x73\x70\x6c\x61\x79\137\155\x6f\x64\145"] & 1) == 1)) { goto dLq70; } $vpEpV .= "\x2c\x20" . $this->l("\162\145\x76\x65\162\163\x65\x64\x20\x70\x72\151\x63\145\40\x64\x69\163\160\x6c\141\x79"); dLq70: if (!(($KdYsj["\x70\x70\x5f\144\x69\163\160\154\x61\x79\137\155\157\144\145"] & 2) == 2)) { goto YbZxy; } $vpEpV .= "\x2c\x20" . $this->l("\162\145\164\141\151\x6c\x20\160\162\x69\143\145"); YbZxy: return $vpEpV; } private function getValue(&$KdYsj, $SNYS6, $QRMUM, &$s2qQM, $khNAy) { $oQS4h = Tools::getValue($SNYS6 . "\x5f\x69\156\x70\165\164\x5f" . $this->default_language_id); if (!empty($oQS4h)) { goto pnPk1; } $Y0KHh = Language::getLanguage($this->default_language_id); $s2qQM[$SNYS6] = sprintf($this->l("\45\x73\x20\143\141\156\x6e\157\x74\40\142\145\40\x65\155\160\x74\171\40\151\156\40\45\163"), $QRMUM, $Y0KHh["\156\141\x6d\x65"]); goto VqQC9; pnPk1: $oQS4h = PP::amendTinymceText($oQS4h); VqQC9: $i2l14 = Tools::getValue($SNYS6 . "\137\151\x6e\x70\x75\164\137" . $khNAy); if (empty($i2l14)) { goto bCa4q; } $i2l14 = PP::amendTinymceText($i2l14); if (Validate::isCleanHtml($i2l14)) { goto Mk41B; } $rDJFb = Language::getLanguage($khNAy); $s2qQM[$SNYS6] = sprintf("\x49\156\166\x61\154\151\x64\x20\x25\163\40\x66\157\x72\40\45\163\40\154\141\156\147\165\x61\x67\x65", $QRMUM, $rDJFb["\x6e\141\x6d\145"]); Mk41B: bCa4q: $KdYsj[$SNYS6] = $i2l14; } private function getPropertyTypes() { $d5Cih = array(); $aW1b2 = Db::getInstance()->ExecuteS("\123\x45\114\105\103\x54\x20\x2a\x20\106\x52\x4f\115\40\x60" . _DB_PREFIX_ . "\160\x70\x5f\x70\x72\157\160\145\x72\x74\x79\140"); foreach ($aW1b2 as $JpSqf) { $d5Cih[$JpSqf["\151\144\x5f\x70\x70\137\160\x72\x6f\x70\145\162\x74\171"]] = $JpSqf["\164\171\160\145"]; V3R4M: } dmyr_: return $d5Cih; } private function getAllProperties($ezQJE = false) { $ezQJE = PP::resolveMS($ezQJE); $XsykN = array(); $he7ft = Db::getInstance(); $aW1b2 = $he7ft->executeS("\x53\105\114\105\x43\x54\40\x2a\x20\106\x52\117\115\x20\x60" . _DB_PREFIX_ . "\160\160\x5f\160\x72\x6f\x70\x65\162\x74\x79\137\154\141\x6e\147\140"); $pA1F5 = $he7ft->executeS("\123\105\x4c\x45\x43\124\x20\52\40\106\x52\117\x4d\x20\x60" . _DB_PREFIX_ . "\160\160\x5f\x70\x72\157\x70\145\x72\164\x79\x60"); foreach ($this->active_languages as $rDJFb) { $khNAy = $rDJFb["\151\144\137\154\141\x6e\x67"]; $nsYp1 = array(); foreach ($pA1F5 as $r_8WB) { $CCTBZ = $r_8WB["\151\144\x5f\160\x70\x5f\160\x72\x6f\x70\145\162\164\171"]; $r_8WB["\164\145\170\x74"] = ''; $r_8WB["\x74\x65\x78\x74\137\x31"] = ''; $r_8WB["\x74\145\x78\x74\x5f\x32"] = ''; $hw0fC = $this->getAllPropertiesLang($r_8WB, $aW1b2, $CCTBZ, $khNAy, $ezQJE); if ($hw0fC) { goto bfsYN; } $this->getAllPropertiesLang($r_8WB, $aW1b2, $CCTBZ, 1, $ezQJE); bfsYN: $nsYp1[$CCTBZ] = $r_8WB; CoI2s: } MypWJ: $XsykN[$khNAy] = $nsYp1; vmuSx: } k4_13: return $XsykN; } private function getAllPropertiesLang(&$r_8WB, $aW1b2, $CCTBZ, $khNAy, $ezQJE = false) { foreach ($aW1b2 as $JpSqf) { if (!($JpSqf["\151\x64\137\x70\x70\137\160\162\x6f\160\x65\x72\x74\171"] == $CCTBZ && $JpSqf["\x69\144\137\x6c\141\156\147"] == $khNAy)) { goto lqUtn; } $r_8WB["\164\x65\170\x74"] = $ezQJE != 2 ? $JpSqf["\x74\x65\170\164\x5f\x31"] : $JpSqf["\164\145\x78\164\x5f\x32"]; $r_8WB["\x74\145\170\x74\x5f\61"] = $JpSqf["\x74\x65\170\x74\x5f\61"]; $r_8WB["\164\145\x78\x74\137\x32"] = $JpSqf["\164\145\170\164\137\62"]; return true; lqUtn: ns4ks: } y04mP: return false; } public function integrationKey() { return _PS_VERSION_ . "\x7c" . $this->integrationVersion(); } public function integrationVersion() { return $this->version; } public function setupInstance() { return PSMHelper::ppSetupInstance($this); } public function plugins() { return array("\160\x70\162\x6f\160\x65\x72\164\x69\x65\x73\160\154\165\x67\151\x6e" => array(array("\63\56\67"), null), "\x70\x70\162\x6f\160\145\162\x74\151\x65\163\155\165\x6c\164\151\144\x69\155\x65\x6e\x73\151\x6f\x6e\141\154" => array(array("\x33\56\66"), null), "\160\160\162\157\160\x65\162\164\151\x65\x73\163\x6d\x61\162\164\x70\x72\x69\x63\145" => array(array("\x33\x2e\x35"), null)); } public function registerModuleMedia($mtO6V) { if (!(is_array($mtO6V) && Module::isInstalled($this->name))) { goto hI0K9; } $wBTO_ = Configuration::getGlobalValue("\120\x50\x5f\115\x4f\104\x55\114\105\x5f\x4d\105\x44\111\x41"); $wBTO_ = is_string($wBTO_) ? json_decode($wBTO_, true) : array(); foreach ($mtO6V as $QRMUM => $oAcDS) { $wBTO_[$QRMUM] = $oAcDS; BpOtc: } wbfgs: Configuration::updateGlobalValue("\120\120\x5f\115\x4f\x44\125\114\105\x5f\115\105\x44\x49\x41", json_encode($wBTO_)); hI0K9: } public function unregisterModuleMedia($mtO6V) { if (!Validate::isLoadedObject($mtO6V)) { goto UAR8f; } $mtO6V = array($mtO6V->name); UAR8f: if (!is_array($mtO6V)) { goto FEqXG; } $wBTO_ = Configuration::getGlobalValue("\120\x50\x5f\115\117\104\125\114\x45\x5f\x4d\x45\104\111\101"); if (!is_string($wBTO_)) { goto IYGNR; } $wBTO_ = json_decode($wBTO_, true); foreach ($mtO6V as $QRMUM) { if (!array_key_exists($QRMUM, $wBTO_)) { goto pgo9z; } unset($wBTO_[$QRMUM]); pgo9z: GjxmJ: } rrqld: if (count($wBTO_)) { goto SsEwm; } Configuration::deleteByName("\120\x50\137\115\x4f\x44\125\x4c\105\137\x4d\105\x44\x49\101"); goto hZOt9; SsEwm: Configuration::updateGlobalValue("\x50\x50\137\115\x4f\x44\125\x4c\105\137\115\105\104\111\101", json_encode($wBTO_)); hZOt9: IYGNR: FEqXG: } public function advice($SNYS6, $KbDzJ = false) { static $IcfYM = null; if (!($IcfYM === null)) { goto UZWjo; } $IcfYM = array(); if (!is_file(dirname(__FILE__) . "\57\150\x65\154\x70\57\141\x64\x6d\151\x6e\x2f\150\x65\154\x70\56\x69\x6e\143")) { goto RtNGp; } $help = array(); include_once dirname(__FILE__) . "\x2f\x68\145\x6c\160\x2f\141\x64\155\x69\x6e\x2f\150\145\x6c\x70\56\151\156\x63"; $IcfYM = $help; $IlySw = Hook::exec("\x61\x64\x6d\151\156\x50\160\x72\157\x70\x65\x72\x74\x69\x65\x73", array("\155\x6f\144\x65" => "\x68\x65\154\x70\x2e\x69\156\x63"), null, true); if (!is_array($IlySw)) { goto fhwZJ; } foreach ($IlySw as $Q_gK0 => $help) { if (!is_array($help)) { goto SZGtc; } $IcfYM = array_merge($IcfYM, $help); SZGtc: vxo2o: } zfvYB: fhwZJ: RtNGp: UZWjo: if (!array_key_exists($SNYS6, $IcfYM)) { goto foIlM; } if ($KbDzJ === false) { goto saZoQ; } return $IcfYM[$SNYS6]; goto trTYP; saZoQ: return array("\x74\x79\x70\x65" => "\154\141\142\x65\154", "\153\x65\171" => $SNYS6); trTYP: foIlM: return false; } private function createHeaderJsScript($UOdI4 = false) { $iTg4E = "\x3c\x73\143\162\151\x70\164\x20\164\x79\x70\145\x3d\x22\x74\145\x78\164\57\152\x61\166\141\x73\143\162\x69\x70\164\x22\x20\144\141\x74\x61\55\153\145\x65\160\x69\156\x6c\x69\x6e\x65\x3d\42\x74\162\165\145\x22\x3e" . "\x69\146\50\164\x79\160\x65\x6f\146\40\167\151\x6e\144\157\x77\x2e\160\x70\41\75\75\x22\157\x62\x6a\145\143\164\x22\x29\173\x77\151\x6e\x64\157\167\56\160\x70\x3d\173\175\x3b\x7d" . "\x77\x69\x6e\x64\x6f\x77\56\160\x70\x2e\160\x73\166\145\x72\x73\x69\157\x6e\x3d\x22" . _PS_VERSION_ . "\x22\x3b" . "\x77\151\156\x64\157\x77\x2e\160\160\x2e\166\145\162\x73\151\x6f\x6e\75\42" . PSM::moduleVersion($this) . "\42\x3b" . "\167\151\x6e\144\157\167\56\160\160\x2e\x74\x68\145\x6d\145\75\x22" . str_replace(array("\x2e", "\x20"), "\137", defined("\x5f\120\101\x52\x45\x4e\x54\137\x54\x48\x45\115\105\x5f\116\101\x4d\105\137") && _PARENT_THEME_NAME_ ? _PARENT_THEME_NAME_ : _THEME_NAME_) . "\x22\x3b" . "\167\x69\x6e\x64\157\x77\56\160\160\56\143\x6f\156\x74\162\157\x6c\x6c\x65\x72\x3d\42" . Tools::strtolower($this->context->controller->php_self) . "\x22\73" . "\x77\x69\x6e\144\157\x77\x2e\x70\x70\x2e\x6d\x6f\144\x75\x6c\x65\x3d\42" . Tools::getValue("\x6d\157\x64\165\x6c\x65") . "\x22\73" . "\x77\151\x6e\144\157\x77\x2e\160\160\x2e\144\145\142\165\x67\75" . (int) Configuration::getGlobalValue("\x50\120\137\x44\105\102\125\x47") . "\73" . "\x77\151\x6e\x64\157\x77\x2e\160\160\56\143\146\147\40\75\x20\x7b" . "\141\155\145\x6e\144\x50\x72\x6f\144\x75\x63\x74\x44\x69\163\x70\154\x61\171\x3a\x20\x22" . (string) Configuration::getGlobalValue("\x50\120\137\x4a\123\x5f\101\115\105\116\104\x50\122\117\x44\x55\103\x54\104\x49\x53\x50\x4c\101\x59") . "\42\x2c" . "\154\x6f\141\144\x65\162\x3a\40\42" . (string) Configuration::getGlobalValue("\x50\120\137\x4a\x53\x5f\x4c\x4f\101\104\105\122") . "\x22" . "\175\x3b"; if (!$this->integrated) { goto RR2tj; } $iTg4E .= "\160\x70\x2e\x64\145\143\151\x6d\x61\154\x53\x69\x67\x6e\x3d\42" . PP::getDecimalSign() . "\42\x3b"; RR2tj: if ($UOdI4 === false && (int) Configuration::get("\x50\120\137\x50\x4f\127\x45\122\105\104\102\x59")) { goto vnZhU; } if ($UOdI4 === true && PSM::isDemo()) { goto NlHiR; } goto mrQu0; vnZhU: $iTg4E .= "\167\151\x6e\x64\x6f\167\x2e\160\x70\56\x70\x73\141\x6e\x64\155\157\x72\145\137\165\x72\154\40\x3d\x20\42" . PSM::authorUrl() . "\x22\73"; $iTg4E .= "\167\x69\156\x64\157\167\56\x70\x70\56\160\157\x77\145\162\145\144\x5f\142\x79\x5f\x70\x73\141\156\144\x6d\157\162\x65\x5f\164\x65\170\164\40\x3d\40\x22" . sprintf($this->l("\120\x6f\x77\145\162\145\x64\40\142\171\40\x25\x73"), "\x50\x53\46\x61\155\x70\73\115\157\x72\x65\x26\x74\162\141\144\x65\73") . "\42\x3b"; $iTg4E .= "\167\151\x6e\144\x6f\x77\56\160\x70\56\160\157\167\x65\162\x65\144\x5f\x62\x79\137\160\x73\x61\156\144\x6d\157\x72\145\x5f\x74\151\164\x6c\x65\x20\x3d\x20\42" . sprintf($this->l("\124\x68\151\x73\40\x73\x69\164\145\x20\x69\x73\x20\165\163\151\156\147\40\120\162\157\144\x75\143\164\x20\120\x72\x6f\x70\x65\x72\x74\x69\145\x73\40\105\x78\x74\x65\156\x73\151\x6f\x6e\40\x70\157\167\145\162\x65\x64\40\x62\171\x20\45\163"), "\x50\x53\46\141\x6d\160\x3b\115\x6f\x72\x65\46\164\x72\141\144\145\x3b") . "\x22\x3b"; goto mrQu0; NlHiR: $iTg4E .= "\x77\151\156\x64\x6f\x77\56\x70\x70\56\x64\145\155\157\x3d\x74\162\x75\145\73"; mrQu0: $iTg4E .= "\74\x2f\x73\x63\162\151\160\164\76"; return $iTg4E; } private function getNextId($he7ft, $PiCTQ, $kK84u) { $b1xPL = (int) $he7ft->getValue("\x53\105\x4c\105\x43\124\40\155\141\170\x28\x60" . $kK84u . "\x60\x29\x20\x46\122\117\x4d\40\140" . _DB_PREFIX_ . $PiCTQ . "\x60"); if (!($b1xPL < self::USER_START_ID)) { goto W1m2k; } return self::USER_START_ID; W1m2k: return ++$b1xPL; } private function compatibilityText() { if ($this->ps_versions_compliancy["\x6d\x69\x6e"] == $this->ps_versions_compliancy["\155\141\x78"]) { goto UDvrk; } return sprintf($this->l("\124\x68\x69\x73\x20\166\145\x72\x73\x69\x6f\156\x20\157\146\40\45\163\40\155\x6f\144\x75\154\x65\40\167\x6f\x72\x6b\163\40\157\156\x6c\x79\x20\167\x69\x74\x68\40\120\162\145\163\164\141\x53\150\x6f\160\40\166\x65\x72\x73\151\x6f\x6e\163\x20\x25\x73\x20\55\40\45\x73\56"), $this->displayName, $this->ps_versions_compliancy["\155\151\156"], $this->ps_versions_compliancy["\155\141\x78"]); goto emtQj; UDvrk: return sprintf($this->l("\124\x68\151\163\40\166\145\x72\163\151\157\156\x20\157\x66\40\45\163\40\x6d\x6f\144\165\154\x65\40\x77\157\162\153\x73\40\x6f\x6e\x6c\171\x20\x77\x69\164\150\x20\x50\x72\145\x73\164\141\x53\150\x6f\x70\x20\x76\x65\162\163\x69\x6f\156\x20\x25\163\56"), $this->displayName, $this->ps_versions_compliancy["\x6d\151\156"]); emtQj: } private function checkIntegration($Erij2) { $Erij2->sanityCheck(); $Erij2->checkIntegration(); if ($this->integrated) { goto B8AGn; } $Erij2->runSetup(); B8AGn: } private function psmIntegrate() { if (defined("\x50\123\115\x5f\x44\111\x52")) { goto d0A79; } if (!is_file(dirname(__FILE__) . "\x2f\160\x73\155\x2e\143\x6f\156\x66\x69\147\x2e\151\x6e\143")) { goto TrImK; } include_once dirname(__FILE__) . "\57\x70\163\x6d\x2e\143\x6f\156\x66\x69\147\x2e\x69\x6e\x63"; $iTg4E = "\x69\146\x20\50\151\x73\137\146\151\154\145\x28\137\x50\x53\x5f\x4d\117\x44\125\x4c\105\x5f\x44\111\x52\x5f\56\x27" . basename(dirname(__FILE__)) . "\x2f\160\163\x6d\56\143\x6f\x6e\146\x69\147\56\151\156\x63" . "\x27\51\x29\x20\173" . "\151\156\143\x6c\165\x64\145\x5f\x6f\x6e\x63\145\50\x5f\120\x53\137\x4d\117\104\125\114\105\x5f\x44\x49\x52\x5f\56\x27" . basename(dirname(__FILE__)) . "\x2f\160\163\155\56\143\157\x6e\146\151\x67\56\151\x6e\143" . "\x27\x29\x3b" . "\x7d"; $phbU3 = false; if (is_file(_PS_CUSTOM_CONFIG_FILE_)) { goto AtkaJ; } $iTg4E = "\74\77\x70\x68\160\12" . $iTg4E; $phbU3 = true; goto ZALVc; AtkaJ: $KbDzJ = php_strip_whitespace(_PS_CUSTOM_CONFIG_FILE_); if (!(empty($KbDzJ) || strpos($KbDzJ, $iTg4E) === false)) { goto xYiwU; } $iTg4E = "\xa" . $iTg4E; $phbU3 = true; xYiwU: ZALVc: if (!$phbU3) { goto tjf1b; } file_put_contents(_PS_CUSTOM_CONFIG_FILE_, $iTg4E . "\12", FILE_APPEND); if (!function_exists("\157\x70\143\x61\x63\150\145\137\151\x6e\166\x61\x6c\x69\144\x61\x74\145")) { goto EVW06; } opcache_invalidate(_PS_CUSTOM_CONFIG_FILE_); EVW06: tjf1b: TrImK: d0A79: } }
/*
$->l('Product Properties Extension');
$->l('Extends product properties and add support for products with fractional units of measurements (for example: weight, length, volume)');
$->l('When you uninstall this module the user data is not lost and remains in the database. It will be available next time you install the module.');
$->l('Requires PHP version %s or above. Currently running PHP %s version.');
$->l('Please uninstall the "%s" module.');
$->l('%s: Please uninstall this module before upgrading and obtain, if needed, version compatible with your new PrestaShop version.');
$->l('%s: Integration warning. Your site will not work properly until you resolve the integration problems. %s');
$->l('(click here)');
$->l('Assign or change product template');
$->l('Product template');
$->l('Please save this product before making any other changes.');
$->l('You can assign or remove template for several products in one operation using bulk actions in product\'s catalog.');
$->l('Configure templates');
$->l('Edit this template');
$->l('Read user guide');
$->l('Please resolve integration problems.');
$->l('This product uses Product Properties Extension template');
$->l('multiplication: dimensions in all directions are multiplied (giving area or volume)');
$->l('summation: dimensions in all directions are added');
$->l('single dimension');
$->l('custom calculation');
$->l('inline explanation');
$->l('quantity threshold for minimum price');
$->l('To disable the module please uninstall it.');
$->l('Required "%s" plugin API version %s, found plugin API version %s.');
$->l('Pro');
$->l('Premium');
$->l('user guide');
$->l('leave blank to use default');
$->l('leave blank to disable this feature');
$->l('item');
$->l('items');
$->l('in stock');
$->l('out of stock');
$->l('Quantity update not supported.');
$->l('Product not found in the cart (invalid cart product reference).');
$->l('You cannot order more than %quantity% %text% for %name%.');
$->l('You cannot order more than %quantity% %text% in total for %name%.');
$->l('You should add at least %quantity% %text% for %name%.');
$->l('Multidimensional plugin not installed.');
$->l('Manage templates');
$->l('Please choose template.');
$->l('Assign template');
$->l('Remove template');
$->l('Edit template');
$->l('template');
$->l('templates');
$->l('statistics');
$->l('show less');
$->l('show more');
$->l('show less details');
$->l('show more details');
$->l('You can assign or remove template for several products at once. Please choose the template below and select products from the list.');
$->l('Changing template assignment');
$->l('Changing product...');
$->l('Changing template in progress...');
$->l('Changing template failed.');
$->l('Show module in PS&More menu section');
$->l('File upload failed.');
$->l('Cannot delete "%s" directory.');
$->l('Cannot create "%s" file.');
$->l('auto');
$->l('visible');
$->l('hidden');
$->l('explanation');
$->l('texts');
$->l('dimension');
$->l('dimensions');
$->l('metric');
$->l('non metric');
$->l('non metric (imperial/US)');
$->l('CSS classes');
$->l('Run analysis');
$->l('(requires Multidimensional plugin Pro or Premium)');
$->l('The minimum quantity required to buy this product');
$->l('(set to %d to use the template default)');
$->l('The minimum quantity required to buy this product (set to 1 to disable this feature)');
$->l('minimum quantity defined in template is');
$->l('specified by template');
$->l('You can only add to a pack products sold in items (cannot add products sold by weight, length, etc.).');
$->l('quantity policy');
$->l('quantity mode');
$->l('display mode');
$->l('price display mode');
$->l('price text');
$->l('quantity text');
$->l('unit price text');
$->l('unit price ratio');
$->l('minimum quantity');
$->l('maximum quantity');
$->l('total maximum quantity');
$->l('default quantity');
$->l('quantity step');
$->l('specific quantity values');
$->l('whole units');
$->l('fractional units');
$->l('multidimensional');
$->l('exact quantity');
$->l('approximate quantity');
$->l('aggregate quantities');
$->l('normal');
$->l('reversed price display (display unit price as price)');
$->l('display retail price as unit price');
$->l('display base unit price for all combinations');
$->l('hide extra details for unit price in orders and invoices');
$->l('hide extra details for quantity in orders and invoices');
$->l('hide extra details for product total price in orders and invoices');
$->l('display legacy product price');
$->l('display unit price in orders and invoices');
$->l('as product price');
$->l('hide price display');
$->l('Minimum quantity in multidimensional template refers to the number of items');
$->l('price');
$->l('Non PrestaShop modules disabled.');
$->l('This module is not fully compatible with the installed PrestaShop version.');
$->l('Please upgrade to the newer version.');
$->l('Integration test failed.');
$->l('Properties');
$->l('Add template');
$->l('Add property attribute');
$->l('Add property text');
$->l('Add property dimension');
$->l('Edit property');
$->l('Run Setup');
$->l('ignored');
$->l('integation activated');
$->l('please run setup');
$->l('update downloaded');
$->l('no updates available - please contact customer support');
$->l('error occurred');
$->l('Measurement system');
$->l('unit measurement system used by default (can be overridden in template)');
$->l('Display measurement system');
$->l('customer selected measurement system works only for templates that use the default unit measurement system');
$->l('Add a block allowing customers to choose their preferred measurement system.');
$->l('Display "Powered by PS&More"');
$->l('Show templates in the catalog');
$->l('show or hide template names in the products catalog');
$->l('Display positions');
$->l('show or hide position names on the product\'s page (use it only for testing)');
$->l('Setup completed successfully.');
$->l('Integration Instructions');
$->l('in multidimensional template the quantity refers to the number of items');
$->l('leave blank to use auto generated description');
$->l('ordered quantity specifies number of items (pieces, packs, etc.) or one item of the specified number of whole or fractional units (kg, m, ft, etc.)');
$->l('Learn the difference between "%s" and "%s".');
$->l('product quantity can be measured exactly or only approximately (the exact amount cannot be ordered) - only if quantity policy is set to units');
$->l('show calculated price separately, display it in the position of the product price or hide the calculated price');
$->l('displayed after the product\'s price');
$->l('displayed after the product\'s quantity');
$->l('displayed for products with unit price greater than zero');
$->l('used to auto calculate unit price in product catalog');
$->l('used to calculate minimum price for quantity less than the specified threshold');
$->l('minimum quantity required to buy a product');
$->l('maximum quantity for a product in the order per line');
$->l('total maximum quantity for a product per order');
$->l('initial quantity to buy a product');
$->l('specify valid CSS classes separated by space (these classes will be added to HTML for products using this template)');
$->l('add your classes definitions in the "%s" file');
$->l('display available quantities mode');
$->l('display available quantities on the product page based on the template configuration (only if enabled in preferences)');
$->l('-- available quantities will be hidden on the product page for current template --');
$->l('-- available quantities will be displayed on the product page for current template --');
$->l('measurement system');
$->l('unit measurement system used by this template (default - use measurement system defined in Settings)');
$->l('visible in catalog');
$->l('hidden template is not visible in the product catalog, but still used in the shop');
$->l('customization');
$->l('if you do not use user defined customizations, leave this option disabled');
$->l('this feature is disabled if calculation method is not specified');
$->l('This feature is disabled. To enable this feature please install multidimensional plugin from PS&More store.');
$->l('calculation method');
$->l('dimensions block title');
$->l('text displayed as a title of the dimensions block');
$->l('calculation result label');
$->l('text displayed as a label before the calculation result (leave blank to hide the calculation result)');
$->l('calculation result text');
$->l('text displayed after the calculation result');
$->l('text displayed below the calculation result');
$->l('You can use macros to substitute dynamic quantity values.');
$->l('calculation minimum quantity');
$->l('minimum quantity for the calculated result');
$->l('calculation maximum quantity');
$->l('maximum quantity for the calculated result');
$->l('calculated minimum quantity text');
$->l('text displayed when the calculated quantity is less than the specified minimum');
$->l('calculated maximum quantity text');
$->l('text displayed when the calculated quantity is more than the specified maximum');
$->l('used to calculate minimum price for calculated quantity less than the specified threshold');
$->l('dimensions policy');
$->l('dimensions can be specified by the customer (default) or used by the packs calculator');
$->l('dimensions can be specified by the customer (default) or used by the packs calculator or used as the product properties affecting price, visible in the shop and editable only in the back office');
$->l('packs calculator');
$->l('product properties');
$->l('Show in position');
$->l('specify display position of the dimensions block on the product\'s page');
$->l('To show position names enable "Display positions" options in the "Settings" tab.');
$->l('total calculation result label');
$->l('text displayed as a label before the total calculation result (leave blank to hide the total calculation result)');
$->l('total calculation result text');
$->l('text displayed after the total calculation result');
$->l('calculation total maximum quantity');
$->l('total maximum quantity for the calculated result');
$->l('calculated total maximum quantity text');
$->l('text displayed when the total calculated quantity is more than the specified maximum');
$->l('quantity ratio');
$->l('order quantity text');
$->l('metric (to edit non metric value change measurement system in Settings)');
$->l('non metric (to edit metric value change measurement system in Settings)');
$->l('Please go to the "Settings" tab and resolve the integration problems.');
$->l('Read more');
$->l('Read explanation');
$->l('Please fix the following errors:');
$->l('Product sold in whole units');
$->l('Product uses multidimensional feature');
$->l('Product sold in fractional units');
$->l('Product sold in items');
$->l('approximate quantity and price (the exact quantity cannot be ordered)');
$->l('reversed price display');
$->l('retail price');
$->l('%s cannot be empty in %s');
$->l('Powered by %s');
$->l('This site is using Product Properties Extension powered by %s');
$->l('This version of %s module works only with PrestaShop version %s.');
$->l('This version of %s module works only with PrestaShop versions %s - %s.');
*/
Function Calls
None |
Stats
MD5 | 53ab8526e5a2dc331b4a1d7c8a5e8a7b |
Eval Count | 0 |
Decode Time | 157 ms |