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:
* http://psandmore.com/licenses/sla
* If you are unable to obtain the license through the
* world-wide-web, please send an email to
* [email protected] so we can send you a copy immediately.
*
* @author PS&More www.psandmore.com <[email protected]>
* @copyright 2011-2015 PS&More
* @license psandmore.com/licenses/sla
* [PSM_OBFUSCATED]
*/
if (!defined('_PS_VERSION_'))
exit;
${"GLOBALS"}["smljvksln"] = "max_id";
${"GLOBALS"}["hgfvztsxoxr"] = "table";
${"GLOBALS"}["shnaopp"] = "column";
${"GLOBALS"}["vvddfhobeek"] = "found";
${"GLOBALS"}["jsvhedpiv"] = "desc";
${"GLOBALS"}["xgujmbljqvn"] = "text";
${"GLOBALS"}["ckuomitbxip"] = "error";
${"GLOBALS"}["ludnfxw"] = "ext_property";
${"GLOBALS"}["tphvkkcbq"] = "ext_title";
${"GLOBALS"}["gmtbqoaxdsio"] = "ext_text";
${"GLOBALS"}["ysaiath"] = "auto_desc";
${"GLOBALS"}["rsaduvhe"] = "hidden";
${"GLOBALS"}["nfysqouy"] = "unit_price_ratio";
${"GLOBALS"}["esrnlxhgm"] = "qty_step";
${"GLOBALS"}["wfiacasbx"] = "minimal_quantity";
${"GLOBALS"}["fkxhhpgqrh"] = "ext_policy";
${"GLOBALS"}["hltnrfg"] = "qty_policy";
${"GLOBALS"}["mlwdvypzyt"] = "minimal_price_ratio";
${"GLOBALS"}["nnemhhnkit"] = "measurement_system";
${"GLOBALS"}["gqhtrwyjugyc"] = "pp_bo_qty_available_display";
${"GLOBALS"}["odmumgrv"] = "price_display_mode";
${"GLOBALS"}["gonnrijqlsq"] = "ext_method";
${"GLOBALS"}["tgxhyezjcr"] = "template_properties";
${"GLOBALS"}["kvgnhsw"] = "errors";
${"GLOBALS"}["tbdgkcksxxp"] = "tpl_vars";
${"GLOBALS"}["qbdszvuv"] = "f";
${"GLOBALS"}["tdkemojv"] = "vars";
${"GLOBALS"}["pwmmlgrhvofw"] = "select";
${"GLOBALS"}["ggpipj"] = "data";
${"GLOBALS"}["wifjgbmr"] = "prop";
${"GLOBALS"}["ufejmefru"] = "options";
${"GLOBALS"}["xjosinwbslmm"] = "icon";
${"GLOBALS"}["jvvmklqgy"] = "form_title";
${"GLOBALS"}["aropukwbbww"] = "id_form";
${"GLOBALS"}["jtqeusnc"] = "first_call";
${"GLOBALS"}["lbuxhzitih"] = "token";
${"GLOBALS"}["oeyteiuq"] = "currentIndex";
${"GLOBALS"}["nplpidymecvc"] = "current";
${"GLOBALS"}["ngbhewlvcvdt"] = "results";
${"GLOBALS"}["lnyrlhvbyj"] = "id_pp_property";
${"GLOBALS"}["cxkdyuz"] = "property";
${"GLOBALS"}["muzvpniy"] = "forms";
${"GLOBALS"}["qntborjqec"] = "hook_form";
${"GLOBALS"}["wrcdlexlywx"] = "hook_module";
${"GLOBALS"}["tgvrjwvlmo"] = "hook_forms";
${"GLOBALS"}["qiehvqxkpjd"] = "dimensions_form";
${"GLOBALS"}["tidrgusborv"] = "td";
${"GLOBALS"}["ppabgxvyddij"] = "dimension_index";
${"GLOBALS"}["ytdfwuijoqb"] = "max_dimensions";
${"GLOBALS"}["bdyzbjnxv"] = "dimensions";
${"GLOBALS"}["spzqlh"] = "id_lang";
${"GLOBALS"}["fcvjuubrjy"] = "buttons";
${"GLOBALS"}["eitmqnhh"] = "property_types";
${"GLOBALS"}["vnpzqawf"] = "ms";
${"GLOBALS"}["gfzancjl"] = "language";
${"GLOBALS"}["wxvtdcjnurn"] = "id";
${"GLOBALS"}["efndgenbt"] = "products";
${"GLOBALS"}["mehqvr"] = "row";
${"GLOBALS"}["gioeixkr"] = "rows";
${"GLOBALS"}["gpeyoihrs"] = "used_templates";
${"GLOBALS"}["gwoeyurd"] = "statistics";
${"GLOBALS"}["ndgywhnftekw"] = "db";
${"GLOBALS"}["jsrgfuhrny"] = "res";
${"GLOBALS"}["edoqjzmq"] = "display";
${"GLOBALS"}["slgtmmkhg"] = "integration";
${"GLOBALS"}["avfywftychvo"] = "form";
${"GLOBALS"}["pfwdptxorrfn"] = "metric";
${"GLOBALS"}["blzlcdre"] = "all_properties";
${"GLOBALS"}["wqvdphv"] = "display_mode";
${"GLOBALS"}["xdgtgabuy"] = "template";
${"GLOBALS"}["tdyecpibwv"] = "helper";
${"GLOBALS"}["sfnigiukwgfk"] = "title";
${"GLOBALS"}["jtzrsenlstcd"] = "mode";
${"GLOBALS"}["iijpat"] = "output3";
${"GLOBALS"}["vahwfhfcfmr"] = "output0";
${"GLOBALS"}["lvufqdmgddg"] = "tabs";
${"GLOBALS"}["jfzrwspqudr"] = "result";
${"GLOBALS"}["qnopirypksdy"] = "templates";
${"GLOBALS"}["zuzwshucpf"] = "output4";
${"GLOBALS"}["bhuxbbixayh"] = "output2";
${"GLOBALS"}["bfsgywccgqw"] = "output1";
${"GLOBALS"}["slvbijholgs"] = "ext_prop";
${"GLOBALS"}["vtjpfwycjr"] = "r";
${"GLOBALS"}["pxmlbrsq"] = "id_pp_template";
${"GLOBALS"}["bcsdjgcvdd"] = "assign";
${"GLOBALS"}["dubjmw"] = "manageTemplates";
${"GLOBALS"}["ierlzpfp"] = "object";
${"GLOBALS"}["tcwyodij"] = "delete_all_attributes";
${"GLOBALS"}["zmejvg"] = "id_product_attribute";
${"GLOBALS"}["rdnlcximdnrh"] = "id_product";
${"GLOBALS"}["haprgnm"] = "translations";
${"GLOBALS"}["fsomgbs"] = "js_files";
${"GLOBALS"}["mpisduweg"] = "file";
${"GLOBALS"}["ojtzgeoz"] = "css_files";
${"GLOBALS"}["yjwrsfxqsk"] = "properties";
${"GLOBALS"}["ghwtsumsj"] = "template_id";
${"GLOBALS"}["cyhxcwi"] = "add_extra";
${"GLOBALS"}["kudlaywxu"] = "html";
${"GLOBALS"}["yobojdolwbw"] = "warn";
${"GLOBALS"}["qsbrwyuoqt"] = "controller";
${"GLOBALS"}["fpyrvilfedx"] = "tab";
${"GLOBALS"}["isukhcyfp"] = "has_discounts";
${"GLOBALS"}["mygciryyrw"] = "actions";
${"GLOBALS"}["bscogemz"] = "arr";
${"GLOBALS"}["ccsxroo"] = "s";
${"GLOBALS"}["yjheioj"] = "position";
${"GLOBALS"}["innzatv"] = "script";
${"GLOBALS"}["vcdotpoow"] = "pp_product_properties";
${"GLOBALS"}["wihlrbmq"] = "value";
${"GLOBALS"}["nzemrj"] = "key";
${"GLOBALS"}["ttylznmpnj"] = "product_properties";
${"GLOBALS"}["hlbbmqhabnp"] = "quotes";
${"GLOBALS"}["wrrvedhoqj"] = "type";
${"GLOBALS"}["bzsaxofowdk"] = "ret";
${"GLOBALS"}["kucjxgof"] = "product";
${"GLOBALS"}["rgfxgdyl"] = "s_product";
${"GLOBALS"}["xgblti"] = "params";
${"GLOBALS"}["ktdqdg"] = "str";
${"GLOBALS"}["rugyobxkk"] = "pp_version";
${"GLOBALS"}["cdczwgeyjpjm"] = "measurement_systems";
${"GLOBALS"}["lcgtbrxdmxl"] = "api_version";
${"GLOBALS"}["szvkmljg"] = "plugins";
${"GLOBALS"}["icincmib"] = "w";
${"GLOBALS"}["gqtxkiigbdt"] = "setup";
${"GLOBALS"}["seqsmybqtys"] = "count";
${"GLOBALS"}["ysdkbjdeh"] = "content";
${"GLOBALS"}["zmoohzfwc"] = "done";
${"GLOBALS"}["afkajse"] = "name";
class PProperties extends Module
{
const USER_START_ID = 100;
const PROPERTY_TYPE_GENERAL = 1;
const PROPERTY_TYPE_BUY_BLOCK_TEXT = 2;
const PROPERTY_TYPE_EXT = 3;
const DIMENSIONS = 3;
public $integrated = false;
public $integration_test_result = null;
private $default_language_id;
private $multidimensional_plugin = false;
private $active_languages;
private static $hook_id = 0;
public function __construct($name = null, Context $context = null)
{
$this->name = "pproperties";
$this->tab = "administration";
$this->version = "2.14";
$this->author = "psandmore";
$this->module_key = "a78315086f12ede793183c113b223617";
$this->need_instance = 1;
$this->ps_versions_compliancy = array(
"min" => "1.6.0.14",
"max" => "1.6.0.14"
);
$this->bootstrap = true;
$qvsnezxztntt = "context";
parent::__construct(${${"GLOBALS"}["afkajse"]}, ${$qvsnezxztntt});
$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. Are you sure you want to remove the Product Properties Extension module?");
$this->secure_key = Tools::encrypt($this->name);
if (Module::isInstalled($this->name)) {
require_once(dirname(__FILE__) . "/psm_helper.php");
$this->integrated = (Configuration::get("PP_INTEGRATION") == $this->integrationKey());
if (PP::multidimensionalEnabled())
$this->multidimensional_plugin = PSM::getPlugin("ppropertiesmultidimensional");
} else {
static $done;
if (!${${"GLOBALS"}["zmoohzfwc"]}) {
$btiltkvpaz = "done";
${$btiltkvpaz} = true;
${"GLOBALS"}["aytftkppm"] = "content";
require_once(dirname(__FILE__) . "/psm_helper_integrate.php");
${"GLOBALS"}["ljmdspawxmwo"] = "content";
${"GLOBALS"}["wufzqruu"] = "filename";
$yqtzgjiqbis = "filename";
${"GLOBALS"}["tpqgoqfk"] = "filename";
$ynidskxpfpb = "count";
psmHelperIntegrate(array(
$this->name
));
${${"GLOBALS"}["tpqgoqfk"]} = _PS_ROOT_DIR_ . "/classes/module/Module.php";
${${"GLOBALS"}["aytftkppm"]} = Tools::file_get_contents(${$yqtzgjiqbis});
${${"GLOBALS"}["ysdkbjdeh"]} = str_replace(array(
"?(?:php)?\s#",
"array(' ',"
), array(
"?php#",
"array('',"
), ${${"GLOBALS"}["ljmdspawxmwo"]}, ${${"GLOBALS"}["seqsmybqtys"]});
if (${$ynidskxpfpb} > 0)
@file_put_contents(${${"GLOBALS"}["wufzqruu"]}, ${${"GLOBALS"}["ysdkbjdeh"]});
require_once(dirname(__FILE__) . "/psm_helper.php");
psmIntegrateCore($this, dirname(__FILE__) . "/psm.php", $this->_errors);
if (function_exists("psmPrepare"))
psmPrepare($this);
}
}
}
public function install()
{
set_time_limit(0);
if (version_compare(phpversion(), "5.3", "<")) {
$this->_errors[] = sprintf($this->l("Requres PHP version %s or above. Currently running PHP %s version."), "5.3", phpversion());
return false;
}
psmHelperIntegrate(array(
$this->name
));
if (function_exists("psmPrepare"))
psmPrepare($this);
Tools::deleteFile(_PS_ROOT_DIR_ . "/classes/PP.php");
if (!psmIntegrateCore($this, dirname(__FILE__) . "/psm.php", $this->_errors) || !psmIntegrateCore($this, dirname(__FILE__) . "/PP.php", $this->_errors, "PP_VERSION["))
return false;
if (Shop::isFeatureActive())
Shop::setContext(Shop::CONTEXT_ALL);
${${"GLOBALS"}["gqtxkiigbdt"]} = $this->setupInstance();
$setup->cleanupOverriddenFiles();
if (!parent::install() || !$setup->installAdminTab("AdminPproperties"))
return false;
if (!$this->registerHook("displayNav") || !$this->registerHook("displayHeader") || !$this->registerHook("displayFooter") || !$this->registerHook("displayProductPriceBlock") || !$this->registerHook("displayPpropertiesProduct") || !$this->registerHook("displayBackOfficeHeader") || !$this->registerHook("displayAdminProductsExtra") || !$this->registerHook("displayProductsListLeadin") || !$this->registerHook("actionModuleInstallAfter") || !$this->registerHook("actionModuleUpgradeAfter") || !$this->registerHook("actionProductAdd") || !$this->registerHook("actionProductUpdate") || !$this->registerHook("actionProductDelete") || !$this->registerHook("actionProductAttributeDelete") || !$this->registerHook("actionObjectCombinationDeleteAfter"))
return false;
if ((int) Configuration::get("PP_MEASUREMENT_SYSTEM") == 0) {
$yexjfxv = "w";
${$yexjfxv} = Configuration::get("PS_WEIGHT_UNIT");
Configuration::updateValue("PP_MEASUREMENT_SYSTEM", (Tools::strtolower(${${"GLOBALS"}["icincmib"]}) == "lb") ? 2 : 1);
}
if (!Configuration::hasKey("PP_POWEREDBY"))
Configuration::updateValue("PP_POWEREDBY", 1);
if (!Configuration::hasKey("PP_TEMPLATE_NAME_IN_CATALOG"))
Configuration::updateValue("PP_TEMPLATE_NAME_IN_CATALOG", 1);
Configuration::updateValue("PP_INSTALL_TIME", time());
$setup->install();
Configuration::deleteByName("PP_LAST_VERSION");
Configuration::updateValue("PP_VERSION", $this->version);
psmClearCache();
return true;
}
public function uninstall()
{
${"GLOBALS"}["wfllhdveeys"] = "setup";
$gumkgsgcu = "plugins";
set_time_limit(0);
${${"GLOBALS"}["szvkmljg"]} = $this->plugins();
foreach (${$gumkgsgcu} as ${${"GLOBALS"}["afkajse"]} => ${${"GLOBALS"}["lcgtbrxdmxl"]}) {
if (Module::isInstalled(${${"GLOBALS"}["afkajse"]}))
$this->_errors[] = sprintf($this->l("Please uninstall the "%s\" module."), Module::getModuleName(${${"GLOBALS"}["afkajse"]}));
}
if ($this->_errors)
return false;
${${"GLOBALS"}["wfllhdveeys"]} = $this->setupInstance();
$setup->cleanupOverriddenFiles();
if (!parent::uninstall() || !$setup->uninstallAdminTab("AdminPproperties"))
return false;
$setup->uninstall();
Configuration::deleteByName("PP_INTEGRATION");
Configuration::deleteByName("PP_INTEGRATION_CHECK");
Configuration::deleteByName("PP_INTEGRATION_EXTRA_MODULES");
Configuration::deleteByName("PP_INFO_CONTENT");
Configuration::deleteByName("PP_INFO_CHECK_TIME");
Configuration::deleteByName("PP_VERSION");
Configuration::updateValue("PP_LAST_VERSION", $this->version);
PrestaShopAutoload::getInstance()->generateIndex();
return true;
}
public function hookDisplayNav($params)
{
if (Tools::getValue("ajax") || Configuration::get("PS_CATALOG_MODE"))
return;
if (PP::isMeasurementSystemFOActivated()) {
${"GLOBALS"}["obghwgxiim"] = "measurement_systems";
${${"GLOBALS"}["obghwgxiim"]} = array(
PP::PP_MS_METRIC => array(
"name" => $this->l("Metric"),
"title" => $this->l("Metric measurement system")
),
PP::PP_MS_NON_METRIC => array(
"name" => $this->l("Imperial/US"),
"title" => $this->l("Imperial/US measurement system")
)
);
$this->smarty->assign("measurement_systems", ${${"GLOBALS"}["cdczwgeyjpjm"]});
return $this->display(__FILE__, "front/measurement_system.tpl");
}
}
public function hookDisplayHeader($params)
{
${"GLOBALS"}["hppppmjuu"] = "pp_version";
if (Tools::getValue("ajax") || Configuration::get("PS_CATALOG_MODE"))
return;
$this->context->controller->addCSS($this->getPathUri() . "views/css/pp_theme_pproperties.css");
$this->context->controller->addCSS($this->getPathUri() . "custom.css");
$this->context->controller->addJquery();
$vqkhyrdxm = "pp_version";
$this->context->controller->addJS($this->getPathUri() . "views/js/pproperties.js");
$this->context->controller->addJS($this->getPathUri() . "views/js/pp_theme_pproperties.js");
if ($this->context->controller instanceof ProductController) {
$this->context->controller->addJqueryPlugin("typewatch");
$this->context->controller->addJS($this->getPathUri() . "views/js/pp_theme_product.js");
$this->context->controller->addJS($this->getPathUri() . "custom_product.js");
}
$this->context->controller->addJS($this->getPathUri() . "custom.js");
${${"GLOBALS"}["rugyobxkk"]} = "\"pp-" . str_replace(array(
".",
"-"
), "", $this->version) . """;
return "
<script type="text/javascript">
var pp_version = " . ${${"GLOBALS"}["hppppmjuu"]} . ";
pp.decimalSign="" . PP::getDecimalSign() . "";
\$(document).ready(function() {
\$("body\").addClass(" . ${$vqkhyrdxm} . ");
});
</script>";
}
public function hookDisplayFooter($params)
{
if (Tools::getValue("ajax") || Configuration::get("PS_CATALOG_MODE"))
return;
${${"GLOBALS"}["ktdqdg"]} = "<noscript>Please enable javascript in order to use Product Properties Extension <a href=\"http://psandmore.com" title=\"Product Properties Extension powered by PS&More™">Powered by PS&More™</a></noscript>";
if ((int) Configuration::get("PP_POWEREDBY")) {
${${"GLOBALS"}["ktdqdg"]} .= "<span id=\"powered_by_psandmore" class=\"solo"><a href="http://psandmore.com" target="_blank" title=\"" . sprintf($this->l("This site is using Product Properties Extension powered by %s"), "PS&More™") . "">" . sprintf($this->l("Powered by %s"), "PS&More™") . "</a></span>";
${${"GLOBALS"}["ktdqdg"]} .= "
<script type="text/javascript">
\$(document).ready(function() {
var bottom_footer = \$(\"section.bottom-footer > div");
if (bottom_footer.length) {
var powered_by_psandmore = \$(\"#powered_by_psandmore");
powered_by_psandmore.removeClass(\"solo\");
bottom_footer.append(powered_by_psandmore.detach());
}
});
</script>";
}
return ${${"GLOBALS"}["ktdqdg"]};
}
public function hookDisplayProductPriceBlock($params)
{
$surctnbvchig = "params";
$hcgjreqwygn = "product";
${"GLOBALS"}["bxginhmxqtr"] = "ret";
$tqmbitpuhkyz = "params";
if (!$this->integrated)
return;
static $s_product = null;
${"GLOBALS"}["emdppo"] = "product";
${"GLOBALS"}["uvcblkixd"] = "params";
if (isset(${$tqmbitpuhkyz}["product"]))
${$hcgjreqwygn} = ${${"GLOBALS"}["xgblti"]}["product"];
elseif (isset(${$surctnbvchig}["id_product"])) {
${"GLOBALS"}["buqyyogzwtf"] = "product";
$xensyjnvysc = "params";
if (${${"GLOBALS"}["rgfxgdyl"]} !== null && $s_product->id == ${$xensyjnvysc}["id_product"])
${${"GLOBALS"}["buqyyogzwtf"]} = ${${"GLOBALS"}["rgfxgdyl"]};
else
${${"GLOBALS"}["kucjxgof"]} = new Product(${${"GLOBALS"}["xgblti"]}["id_product"], true, $this->context->language->id);
} else
${${"GLOBALS"}["emdppo"]} = null;
if (!Validate::isLoadedObject(${${"GLOBALS"}["kucjxgof"]}))
return;
${${"GLOBALS"}["rgfxgdyl"]} = ${${"GLOBALS"}["kucjxgof"]};
${${"GLOBALS"}["bzsaxofowdk"]} = "";
$rurvscdmk = "type";
${$rurvscdmk} = ${${"GLOBALS"}["uvcblkixd"]}["type"];
switch (${${"GLOBALS"}["wrrvedhoqj"]}) {
case "price":
break;
case "unit_price":
break;
case "old_price":
break;
case "weight":
break;
default:
break;
}
return ${${"GLOBALS"}["bxginhmxqtr"]};
}
public function hookDisplayPpropertiesProduct($params)
{
$jmojxfnsokr = "product_properties";
${"GLOBALS"}["xdbdstcoou"] = "product_properties";
$rgskaxeuas = "script";
${"GLOBALS"}["xtoqqnoczpi"] = "pp_product_properties";
${"GLOBALS"}["neoureb"] = "product";
$lpqqmolr = "params";
${"GLOBALS"}["iwptzzppjei"] = "quotes";
${"GLOBALS"}["hkynnlzrw"] = "product_properties";
${"GLOBALS"}["ezqbelk"] = "pp_product_properties";
$onrulvowf = "pp_product_properties";
${"GLOBALS"}["bvobpvh"] = "value";
$adedwa = "actions";
${"GLOBALS"}["rhjqtjc"] = "key";
${"GLOBALS"}["ktkkhsto"] = "key";
${"GLOBALS"}["coxfjlpnsvh"] = "pp_product_properties";
${"GLOBALS"}["uikkdby"] = "product_properties";
if (!$this->integrated)
return;
${"GLOBALS"}["rvpnjqt"] = "pp_product_properties";
$kgkjwewdi = "has_discounts";
${"GLOBALS"}["pavthowiqa"] = "params";
${${"GLOBALS"}["kucjxgof"]} = ${$lpqqmolr}["product"];
$tmhlcuj = "params";
if (!Validate::isLoadedObject(${${"GLOBALS"}["neoureb"]}))
return;
$drpvjmugjsw = "script";
$orhfptbwismo = "product_properties";
${"GLOBALS"}["lkodcuvamg"] = "pp_product_properties";
${$kgkjwewdi} = (isset(${$tmhlcuj}["ppDiscounts"]) && (bool) ${${"GLOBALS"}["pavthowiqa"]}["ppDiscounts"]);
${$orhfptbwismo} = $product->productProperties();
${"GLOBALS"}["slndxdj"] = "product";
${${"GLOBALS"}["ezqbelk"]} = array();
${"GLOBALS"}["wzcurc"] = "value";
${${"GLOBALS"}["hlbbmqhabnp"]} = array();
foreach (${${"GLOBALS"}["ttylznmpnj"]} as ${${"GLOBALS"}["nzemrj"]} => ${${"GLOBALS"}["bvobpvh"]}) {
$mcsglxa = "key";
if (strpos(${$mcsglxa}, "pp_") === 0 && strpos(${${"GLOBALS"}["nzemrj"]}, "pp_bo_") !== 0 && strpos(${${"GLOBALS"}["nzemrj"]}, "_text") > 0) {
$nyukyikifea = "quotes";
${"GLOBALS"}["iicpypfn"] = "key";
$qywntpmsihh = "pp_product_properties";
${$qywntpmsihh}[${${"GLOBALS"}["iicpypfn"]}] = ${${"GLOBALS"}["wihlrbmq"]};
${$nyukyikifea}[${${"GLOBALS"}["nzemrj"]}] = true;
}
}
$vtwoinbetn = "pp_product_properties";
foreach ($this->getTranslations("ProductController") as ${${"GLOBALS"}["ktkkhsto"]} => ${${"GLOBALS"}["wzcurc"]}) {
${"GLOBALS"}["uujzzurusrh"] = "value";
$owhjow = "pp_product_properties";
${$owhjow}[${${"GLOBALS"}["nzemrj"]}] = ${${"GLOBALS"}["uujzzurusrh"]};
${${"GLOBALS"}["hlbbmqhabnp"]}[${${"GLOBALS"}["nzemrj"]}] = true;
}
${$vtwoinbetn} = PP::safeOutputJS(${${"GLOBALS"}["rvpnjqt"]});
${$onrulvowf}["id_pp_template"] = ${${"GLOBALS"}["ttylznmpnj"]}["id_pp_template"];
${${"GLOBALS"}["vcdotpoow"]}["pp_qty_policy"] = ${${"GLOBALS"}["ttylznmpnj"]}["pp_qty_policy"];
$giumiben = "pp_product_properties";
$cwrgtplci = "product_properties";
${${"GLOBALS"}["vcdotpoow"]}["pp_display_mode"] = ${${"GLOBALS"}["ttylznmpnj"]}["pp_display_mode"];
${${"GLOBALS"}["vcdotpoow"]}["pp_price_display_mode"] = ${$jmojxfnsokr}["pp_price_display_mode"];
${${"GLOBALS"}["vcdotpoow"]}["pp_minimal_price_ratio"] = ${${"GLOBALS"}["hkynnlzrw"]}["pp_minimal_price_ratio"];
${"GLOBALS"}["txgxucppcrl"] = "value";
${${"GLOBALS"}["vcdotpoow"]}["pp_qty_step"] = ${${"GLOBALS"}["ttylznmpnj"]}["pp_qty_step"];
${${"GLOBALS"}["vcdotpoow"]}["minQty"] = $product->minQty();
${${"GLOBALS"}["vcdotpoow"]}["defaultQty"] = (isset($this->context->smarty->tpl_vars["quantityBackup"]) ? $this->context->smarty->tpl_vars["quantityBackup"] : $product->defaultQty());
${${"GLOBALS"}["xtoqqnoczpi"]}["explanation"] = PP::safeOutputLenientJS(${${"GLOBALS"}["ttylznmpnj"]}["pp_explanation"]);
${${"GLOBALS"}["iwptzzppjei"]}["explanation"] = true;
${${"GLOBALS"}["vcdotpoow"]}["pp_css"] = PP::safeOutputJS(${$cwrgtplci}["pp_css"]);
${${"GLOBALS"}["hlbbmqhabnp"]}["pp_css"] = true;
if ((int) ((${${"GLOBALS"}["ttylznmpnj"]}["pp_display_mode"] & 2) == 2))
${$giumiben}["display_mode_retail_price"] = Product::getRetailPrice(${${"GLOBALS"}["slndxdj"]});
if (!$this->multidimensional_plugin)
${${"GLOBALS"}["ttylznmpnj"]}["pp_ext"] = 0;
${${"GLOBALS"}["lkodcuvamg"]}["pp_ext"] = ${${"GLOBALS"}["xdbdstcoou"]}["pp_ext"];
${$drpvjmugjsw} = "
<script type="text/javascript">
\$(\"body").addClass("" . ${${"GLOBALS"}["uikkdby"]}["pp_css"] . " pp_template_" . ${${"GLOBALS"}["ttylznmpnj"]}["id_pp_template"] . (Configuration::get("PP_SHOW_POSITIONS") ? " pp-positions-visible" : "") . "");
var ppProductProperties = [];";
foreach (${${"GLOBALS"}["coxfjlpnsvh"]} as ${${"GLOBALS"}["rhjqtjc"]} => ${${"GLOBALS"}["txgxucppcrl"]}) {
${"GLOBALS"}["dplibwoagtp"] = "key";
${"GLOBALS"}["fwykscti"] = "key";
$tzedpvze = "quotes";
$ctqpfiqsped = "script";
if (isset(${$tzedpvze}[${${"GLOBALS"}["dplibwoagtp"]}]))
${${"GLOBALS"}["wihlrbmq"]} = """ . ${${"GLOBALS"}["wihlrbmq"]} . "\"";
${$ctqpfiqsped} .= "
ppProductProperties[\"" . ${${"GLOBALS"}["fwykscti"]} . ""] = " . ${${"GLOBALS"}["wihlrbmq"]} . ";";
}
if (${${"GLOBALS"}["ttylznmpnj"]}["pp_ext"] == 1) {
${"GLOBALS"}["elnpqbohyx"] = "script";
$wyhnlsgdjuas = "product_properties";
${"GLOBALS"}["aonrese"] = "product_properties";
${"GLOBALS"}["welolncnrl"] = "product_properties";
${"GLOBALS"}["bagfwkepgo"] = "script";
${${"GLOBALS"}["elnpqbohyx"]} .= "
ppProductProperties[\"pp_ext_policy"] = " . ${$wyhnlsgdjuas}["pp_ext_policy"] . ";";
$njxnfhv = "script";
${${"GLOBALS"}["bagfwkepgo"]} .= "
ppProductProperties["pp_ext_method\"] = " . ${${"GLOBALS"}["ttylznmpnj"]}["pp_ext_method"] . ";";
${${"GLOBALS"}["innzatv"]} .= "
ppProductProperties["pp_ext_title\"] = \"" . PP::safeOutputLenientJS(${${"GLOBALS"}["aonrese"]}["pp_ext_title"]) . "\";";
${"GLOBALS"}["nllpxuaxgs"] = "product_properties";
${"GLOBALS"}["bdaklbclmb"] = "arr";
${${"GLOBALS"}["innzatv"]} .= "
ppProductProperties["pp_ext_property"] = \"" . PP::safeOutputLenientJS(${${"GLOBALS"}["ttylznmpnj"]}["pp_ext_property"]) . "";";
${$njxnfhv} .= "
ppProductProperties[\"pp_ext_text"] = "" . PP::safeOutputLenientJS(${${"GLOBALS"}["welolncnrl"]}["pp_ext_text"]) . "\";";
${${"GLOBALS"}["innzatv"]} .= "
ppProductProperties[\"pp_ext_prop\"] = [];";
foreach (${${"GLOBALS"}["ttylznmpnj"]}["pp_ext_prop"] as ${${"GLOBALS"}["yjheioj"]} => ${${"GLOBALS"}["bdaklbclmb"]}) {
${"GLOBALS"}["olztssqwdqwv"] = "s";
${"GLOBALS"}["negdcnsvx"] = "arr";
${"GLOBALS"}["kgebfcqstt"] = "s";
$uczlvtsglrt = "s";
$hebinexps = "arr";
${"GLOBALS"}["jelodrumk"] = "arr";
$etvlvxkh = "arr";
${"GLOBALS"}["jtimgrdbj"] = "s";
${${"GLOBALS"}["olztssqwdqwv"]} = "{";
${"GLOBALS"}["mfvofhxzrqr"] = "arr";
${${"GLOBALS"}["ccsxroo"]} .= "property:"" . PP::safeOutputLenientJS(${${"GLOBALS"}["bscogemz"]}["property"]) . """;
${${"GLOBALS"}["kgebfcqstt"]} .= ",text:"" . PP::safeOutputLenientJS(${$hebinexps}["text"]) . "\"";
$kmqkiyvxg = "script";
${${"GLOBALS"}["ccsxroo"]} .= ",minimum_quantity:" . (float) ${${"GLOBALS"}["negdcnsvx"]}["minimum_quantity"];
${${"GLOBALS"}["ccsxroo"]} .= ",maximum_quantity:" . (float) ${${"GLOBALS"}["mfvofhxzrqr"]}["maximum_quantity"];
${$uczlvtsglrt} .= ",default_quantity:" . (float) ${${"GLOBALS"}["jelodrumk"]}["default_quantity"];
${${"GLOBALS"}["ccsxroo"]} .= ",qty_step:" . (float) ${${"GLOBALS"}["bscogemz"]}["qty_step"];
${${"GLOBALS"}["ccsxroo"]} .= ",qty_ratio:" . (float) ${$etvlvxkh}["qty_ratio"];
${${"GLOBALS"}["jtimgrdbj"]} .= "}";
${$kmqkiyvxg} .= "
ppProductProperties["pp_ext_prop"][" . ${${"GLOBALS"}["yjheioj"]} . "] = " . ${${"GLOBALS"}["ccsxroo"]} . ";";
}
if (${${"GLOBALS"}["nllpxuaxgs"]}["pp_ext_policy"] == 2) {
$hxgnkdjt = "script";
${$hxgnkdjt} .= "
ppProduct.fallback_ext_quantity = 1;
ppProduct.prop = " . Tools::jsonEncode($product->productProp()) . ";";
}
}
${${"GLOBALS"}["mygciryyrw"]} = array(
"price" => $this->context->link->getModuleLink($this->name, "product", array(
"process" => "price"
))
);
${${"GLOBALS"}["innzatv"]} .= "
ppProduct.actions = " . Tools::jsonEncode(${$adedwa}) . ";
ppProduct.hasAttributes = " . ($product->hasAttributes() ? "true" : "false") . ";
ppProduct.priceObserver = " . (${${"GLOBALS"}["isukhcyfp"]} || PSM::getPlugin("ppropertiessmartprice") ? "true" : "false") . ";";
${${"GLOBALS"}["innzatv"]} .= "
</script>";
return ${$rgskaxeuas};
}
public function hookDisplayBackOfficeHeader($params)
{
$wmnxxuj = "controller";
${${"GLOBALS"}["fpyrvilfedx"]} = Tools::getValue("tab");
${$wmnxxuj} = Tools::getValue("controller");
if (Tools::strtolower(${${"GLOBALS"}["fpyrvilfedx"]}) == "adminselfupgrade" || Tools::strtolower(${${"GLOBALS"}["qsbrwyuoqt"]}) == "adminselfupgrade") {
${"GLOBALS"}["kktjlkcfnh"] = "warn";
$njvfobxtcobq = "warn";
${$njvfobxtcobq} = "<div class=\"alert alert-danger\"><button data-dismiss=\"alert\" class="close\" type="button\"></button>" . 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() . "</div>";
return "
<script type=\"text/javascript">
\$(document).ready(function() {
\$("#content .bootstrap").prepend('" . ${${"GLOBALS"}["kktjlkcfnh"]} . "');
\$("#upgradeNow").remove();
\$(\"#currentConfiguration table tbody").append('<tr><td>" . sprintf($this->l("%s module uninstalled"), $this->displayName) . "<br>" . $this->compatibilityText() . "</td><td><img alt="ok" src=\"../img/admin/disabled.gif"></td></tr>');
});
</script>
";
} else {
if ($this->context->controller instanceof Controller) {
${"GLOBALS"}["ckahgb"] = "css_files";
${"GLOBALS"}["elhdssdk"] = "add_extra";
${"GLOBALS"}["ikvfeew"] = "add_extra";
if (Tools::getValue("configure") != "pproperties") {
if (!(int) Tools::getValue("ajax")) {
${"GLOBALS"}["fsfsoreyljn"] = "last_integration_check";
$xvmyxoiylf = "last_integration_check";
${$xvmyxoiylf} = Configuration::get("PP_INTEGRATION_CHECK");
if (time() > (${${"GLOBALS"}["fsfsoreyljn"]} + ($this->integrated ? 3600 : 3))) {
${"GLOBALS"}["ynzxjofjnnwy"] = "setup";
${${"GLOBALS"}["ynzxjofjnnwy"]} = $this->setupInstance();
$setup->checkIntegration();
$this->integrated = (count($this->integration_test_result) == 0);
}
}
if (!$this->integrated) {
${"GLOBALS"}["ehyogpxzqq"] = "warn";
${${"GLOBALS"}["ehyogpxzqq"]} = "<div class=\"alert alert-danger" style=\"clear:both;\">" . "<button data-dismiss=\"alert\" class=\"close\" type="button"></button>" . sprintf($this->l("%s: Integration warning. Your site will not work properly until you %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("resolve the integration problems") . "</a>") . "</div>";
return "
<script type="text/javascript\">
\$(document).ready(function() {
\$(\"#content.bootstrap\").prepend('" . ${${"GLOBALS"}["yobojdolwbw"]} . "');
});
</script>
";
}
}
$vdwdudvuxwc = "css_files";
$dekessxt = "add_extra";
$hwkojaiguu = "js_files";
${${"GLOBALS"}["kudlaywxu"]} = "";
$eiguejqa = "js_files";
${${"GLOBALS"}["ikvfeew"]} = false;
$this->context->controller->addJquery();
${$vdwdudvuxwc} = array();
${$eiguejqa} = array();
if (in_array(Tools::strtolower(${${"GLOBALS"}["qsbrwyuoqt"]}), array(
"adminproducts",
"adminorders",
"admincarts",
"adminstockmanagement",
"adminstockmvt",
"adminstockinstantstate",
"adminstockcover"
)))
${$dekessxt} = true;
elseif (strcasecmp(${${"GLOBALS"}["qsbrwyuoqt"]}, "AdminModules") == 0) {
if (Tools::getValue("configure") == "pproperties") {
$this->context->controller->addJqueryUI("ui.tabs", "base");
${${"GLOBALS"}["cyhxcwi"]} = true;
}
}
if (${${"GLOBALS"}["elhdssdk"]}) {
$thxkohjb = "js_files";
$rtowqmbqum = "css_files";
${$rtowqmbqum}[] = "views/css/pproperties_admin.css";
$desqrlsckht = "js_files";
${$desqrlsckht}[] = "views/js/pproperties.js";
${$thxkohjb}[] = "views/js/pproperties_admin.js";
if ($this->integrated)
${${"GLOBALS"}["kudlaywxu"]} .= "<script type=\"text/javascript">pp.decimalSign='" . PP::getDecimalSign() . "';</script>";
}
if ($this->integrated && strcasecmp(${${"GLOBALS"}["qsbrwyuoqt"]}, "AdminAttributeGenerator") == 0) {
${${"GLOBALS"}["ghwtsumsj"]} = PP::getProductTemplateId(Tools::getValue("id_product"));
if (${${"GLOBALS"}["ghwtsumsj"]} > 0) {
${"GLOBALS"}["vtqzvvk"] = "template_id";
${${"GLOBALS"}["yjwrsfxqsk"]} = PP::getProductPropertiesByTemplateId(${${"GLOBALS"}["vtqzvvk"]});
if (!empty(${${"GLOBALS"}["yjwrsfxqsk"]}["pp_bo_qty_text"])) {
${"GLOBALS"}["somfgpime"] = "css_files";
$ljkxwl = "properties";
${${"GLOBALS"}["somfgpime"]}[] = "css/pproperties_admin.css";
${${"GLOBALS"}["kudlaywxu"]} .= "<script type=\"text/javascript\">\$(function() {\$('#generator input[name="quantity\"]').after(' " . ${$ljkxwl}["pp_bo_qty_text"] . "');});</script>";
}
}
}
if (${${"GLOBALS"}["ckahgb"]}) {
${"GLOBALS"}["cggnyowetu"] = "file";
foreach (${${"GLOBALS"}["ojtzgeoz"]} as ${${"GLOBALS"}["mpisduweg"]})
$this->context->controller->addCSS($this->getPathUri() . ${${"GLOBALS"}["cggnyowetu"]});
PSM::amendCSS($this->context->controller->css_files, ${${"GLOBALS"}["ojtzgeoz"]});
}
if (${$hwkojaiguu}) {
$qtvvvsmfr = "file";
foreach (${${"GLOBALS"}["fsomgbs"]} as ${$qtvvvsmfr})
$this->context->controller->addJS($this->getPathUri() . ${${"GLOBALS"}["mpisduweg"]});
PSM::amendJS($this->context->controller->js_files, ${${"GLOBALS"}["fsomgbs"]});
}
return ${${"GLOBALS"}["kudlaywxu"]};
}
}
}
public function hookDisplayAdminProductsExtra($params)
{
$yqjzwrfkavvz = "id_product";
${"GLOBALS"}["idyxynpdyia"] = "id_product";
${"GLOBALS"}["tiqoyyws"] = "value";
${$yqjzwrfkavvz} = Tools::getValue("id_product");
$ixetqajgph = "translations";
$this->context->smarty->assign(array(
"integrated" => $this->integrated,
"multidimensional" => (bool) $this->multidimensional_plugin,
"id_product" => ${${"GLOBALS"}["idyxynpdyia"]},
"_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)
$this->context->smarty->assign("integration_warning", $this->l("Please resolve integration problems."));
$ajmtpvccqb = "key";
if (!(bool) $this->multidimensional_plugin)
$this->context->smarty->assign("multidimensional_warning", $this->l("Multidimensional plugin not installed."));
${$ixetqajgph} = $this->getTranslations("AdminProductsExtra");
foreach (${${"GLOBALS"}["haprgnm"]} as ${${"GLOBALS"}["nzemrj"]} => ${${"GLOBALS"}["tiqoyyws"]})
$this->context->smarty->assign(${$ajmtpvccqb}, ${${"GLOBALS"}["wihlrbmq"]});
$this->context->smarty->assign("hook_html", Hook::exec("ppropertiesAdmin", array(
"mode" => "displayAdminProductsExtra",
"id_product" => ${${"GLOBALS"}["rdnlcximdnrh"]}
), null, true));
return $this->display(__FILE__, "admin/product.tpl");
}
public function hookActionModuleInstallAfter($params)
{
$this->setupInstance()->moduleInstalled(${${"GLOBALS"}["xgblti"]}["object"]);
}
public function hookActionModuleUpgradeAfter($params)
{
$this->setupInstance()->moduleUpgraded(${${"GLOBALS"}["xgblti"]}["object"]);
}
public function hookActionProductAdd($params)
{
$this->updateProductProp(${${"GLOBALS"}["xgblti"]});
}
public function hookActionProductUpdate($params)
{
${"GLOBALS"}["euznferew"] = "params";
$this->updateProductProp(${${"GLOBALS"}["euznferew"]});
}
public function hookActionProductDelete($params)
{
if ($this->multidimensional_plugin) {
$yjvwpfycjc = "product";
${"GLOBALS"}["hpbqoivfuw"] = "product";
$kjkndzk = "params";
${$yjvwpfycjc} = ${$kjkndzk}["product"];
if (Validate::isLoadedObject(${${"GLOBALS"}["hpbqoivfuw"]}))
Db::getInstance()->delete(_DB_PREFIX_ . "pp_product_prop", "id_product = " . $product->id);
}
}
public function hookActionProductAttributeDelete($params)
{
if ($this->multidimensional_plugin) {
$cqhqxey = "id_product";
${"GLOBALS"}["cmbnncfti"] = "delete_all_attributes";
${$cqhqxey} = ${${"GLOBALS"}["xgblti"]}["id_product"];
$lefibyqpt = "id_product";
$lcgevblwh = "params";
${"GLOBALS"}["bmmrqbkr"] = "id_product_attribute";
${${"GLOBALS"}["zmejvg"]} = ${${"GLOBALS"}["xgblti"]}["id_product_attribute"];
${${"GLOBALS"}["cmbnncfti"]} = ${$lcgevblwh}["deleteAllAttributes"];
Db::getInstance()->delete(_DB_PREFIX_ . "pp_product_prop", "id_product = " . ${$lefibyqpt} . (${${"GLOBALS"}["tcwyodij"]} ? "" : " AND id_product_attribute=" . ${${"GLOBALS"}["bmmrqbkr"]}));
}
}
public function hookActionObjectCombinationDeleteAfter($params)
{
if ($this->multidimensional_plugin) {
$bofyprz = "params";
${"GLOBALS"}["veyopbxsbmj"] = "object";
${${"GLOBALS"}["ierlzpfp"]} = ${$bofyprz}["object"];
if (Validate::isLoadedObject(${${"GLOBALS"}["veyopbxsbmj"]}))
Db::getInstance()->delete(_DB_PREFIX_ . "pp_product_prop", "id_product = " . $object->id_product . " AND id_product_attribute=" . $object->id);
}
}
public function hookDisplayProductsListLeadin($params)
{
if (!$this->integrated)
return;
if (Tools::isSubmit("submitBulkmanageTemplatesproduct")) {
${"GLOBALS"}["ueexgjt"] = "assign";
if (Tools::getIsset("cancel"))
Tools::redirectAdmin($this->context->link->getAdminLink("AdminProducts"));
if ((${${"GLOBALS"}["ueexgjt"]} = Tools::getIsset("submitAssignTemplate")) || Tools::getIsset("submitRemoveTemplate")) {
${"GLOBALS"}["grvyyxqc"] = "id_pp_template";
${${"GLOBALS"}["grvyyxqc"]} = (int) Tools::getValue("id_pp_template");
$psmynsdy = "id_pp_template";
if (${$psmynsdy} > 0) {
${"GLOBALS"}["nyrfpgxvprf"] = "manageTemplates";
if ((${${"GLOBALS"}["dubjmw"]} = Tools::getValue("manageTemplates")) && is_array(${${"GLOBALS"}["nyrfpgxvprf"]})) {
$fxgwubsjf = "id_pp_template";
$eemstwuqm = "sql";
$gojiltg = "manageTemplates";
${"GLOBALS"}["dgwbyhniqp"] = "assign";
${"GLOBALS"}["oduellwmkv"] = "sql";
${${"GLOBALS"}["oduellwmkv"]} = "UPDATE `" . _DB_PREFIX_ . "product` SET `id_pp_template` = " . (${${"GLOBALS"}["bcsdjgcvdd"]} ? ${$fxgwubsjf} : 0) . " WHERE `id_product` in (" . implode(",", ${$gojiltg}) . ") and " . (${${"GLOBALS"}["dgwbyhniqp"]} ? "(`id_pp_template` = 0 or `id_pp_template` is NULL)" : "`id_pp_template` = " . ${${"GLOBALS"}["pxmlbrsq"]});
DB::getInstance()->execute(${$eemstwuqm});
}
return;
} else
$this->context->smarty->assign("error_no_template", true);
}
$this->context->smarty->assign(array(
"REQUEST_URI" => $_SERVER["REQUEST_URI"]
));
return $this->display(__FILE__, "admin/products_list_header.tpl");
}
}
private function updateProductProp($params)
{
if ($this->multidimensional_plugin) {
${${"GLOBALS"}["kucjxgof"]} = (isset(${${"GLOBALS"}["xgblti"]}["product"]) ? ${${"GLOBALS"}["xgblti"]}["product"] : PP::productAsObject(${${"GLOBALS"}["xgblti"]}));
if (Validate::isLoadedObject(${${"GLOBALS"}["kucjxgof"]})) {
${"GLOBALS"}["xycmlxbqak"] = "properties";
${"GLOBALS"}["kczttqr"] = "properties";
${${"GLOBALS"}["xycmlxbqak"]} = $product->productProperties();
if (${${"GLOBALS"}["yjwrsfxqsk"]}["pp_ext"] == 1 && ${${"GLOBALS"}["kczttqr"]}["pp_ext_policy"] == 2) {
${"GLOBALS"}["nwysthhjru"] = "id_product_attribute";
$jxipuunv = "has_attributes";
$qniuxdy = "id_product_attribute";
${$qniuxdy} = 0;
${"GLOBALS"}["sgvxobj"] = "has_attributes";
${$jxipuunv} = $product->hasAttributes();
if (${${"GLOBALS"}["sgvxobj"]}) {
$ysxrzg = "id_product_attribute";
$djkorbpu = "id_product_attribute";
${${"GLOBALS"}["zmejvg"]} = (int) Tools::getValue("id_product_attribute");
if (${$djkorbpu} <= 0)
${$ysxrzg} = false;
}
if (${${"GLOBALS"}["nwysthhjru"]} !== false) {
${"GLOBALS"}["liilfobi"] = "db";
${"GLOBALS"}["llefmtn"] = "has_attributes";
${"GLOBALS"}["ignfpmrn"] = "id_product_attribute";
${${"GLOBALS"}["liilfobi"]} = Db::getInstance();
${"GLOBALS"}["atbxdkdpsutj"] = "properties";
$db->delete(_DB_PREFIX_ . "pp_product_prop", "id_product = " . $product->id . (${${"GLOBALS"}["llefmtn"]} ? " AND (id_product_attribute=0 OR id_product_attribute=" . ${${"GLOBALS"}["zmejvg"]} . ")" : ""));
${${"GLOBALS"}["vtjpfwycjr"]} = array(
"id_product" => $product->id,
"id_product_attribute" => ${${"GLOBALS"}["ignfpmrn"]}
);
foreach (${${"GLOBALS"}["atbxdkdpsutj"]}["pp_ext_prop"] as ${${"GLOBALS"}["yjheioj"]} => ${${"GLOBALS"}["slvbijholgs"]}) {
${"GLOBALS"}["vnflvneitrwi"] = "ext_prop_quantity";
$qrcibsbsp = "ext_prop_quantity";
${"GLOBALS"}["yuruioteaoe"] = "r";
${"GLOBALS"}["moqpgahueyax"] = "ext_prop";
${"GLOBALS"}["ssxnjggoffo"] = "ext_prop_quantity";
${${"GLOBALS"}["vnflvneitrwi"]} = (float) str_replace(",", ".", Tools::getValue("pp_ext_prop_quantity_" . ${${"GLOBALS"}["yjheioj"]}));
${${"GLOBALS"}["vtjpfwycjr"]}["position"] = ${${"GLOBALS"}["yjheioj"]};
${${"GLOBALS"}["yuruioteaoe"]}["quantity"] = (${$qrcibsbsp} > 0 ? ${${"GLOBALS"}["ssxnjggoffo"]} : ((float) ${${"GLOBALS"}["moqpgahueyax"]}["default_quantity"] > 0 ? (float) ${${"GLOBALS"}["slvbijholgs"]}["default_quantity"] : 1));
$db->autoExecute(_DB_PREFIX_ . "pp_product_prop", ${${"GLOBALS"}["vtjpfwycjr"]}, "INSERT");
}
}
}
}
}
}
public function getTranslations($key, &$translations = null)
{
$gefpjdfi = "translations";
if (${${"GLOBALS"}["haprgnm"]} === null)
${$gefpjdfi} = array();
$tbhjohoebze = "key";
${"GLOBALS"}["psofyecho"] = "key";
$wypsmmwsvku = "key";
${"GLOBALS"}["jpdnsie"] = "translations";
${"GLOBALS"}["dfhduktny"] = "key";
${"GLOBALS"}["vjfxktcorfrm"] = "translations";
if (${${"GLOBALS"}["nzemrj"]} == "AdminProducts") {
$cqewegnj = "translations";
${"GLOBALS"}["jjkaqe"] = "translations";
$akecdqsej = "translations";
${"GLOBALS"}["adocediw"] = "s";
${"GLOBALS"}["jtbwbnxyoi"] = "translations";
${$akecdqsej}["s_ID"] = $this->l("ID:");
${${"GLOBALS"}["jtbwbnxyoi"]}["s_ppMinQtyExpl_disable"] = $this->l("The minimum quantity to buy this product (set to 1 to disable this feature)");
${"GLOBALS"}["crbgliyfcib"] = "s";
${"GLOBALS"}["nzqsquxlrvxi"] = "s";
${${"GLOBALS"}["adocediw"]} = $this->l("The minimum quantity to buy this product (set to %d to use the template default)");
${${"GLOBALS"}["haprgnm"]}["s_ppMinQtyExpl_0"] = sprintf(${${"GLOBALS"}["nzqsquxlrvxi"]}, 1);
$jsjnymz = "translations";
${${"GLOBALS"}["haprgnm"]}["s_ppMinQtyExpl_1"] = sprintf(${${"GLOBALS"}["crbgliyfcib"]}, 0);
${$jsjnymz}["s_ppMinQtyExpl_2"] = sprintf(${${"GLOBALS"}["ccsxroo"]}, 0);
${${"GLOBALS"}["haprgnm"]}["s_minimal_quantity"] = $this->l("the minimum quantity defined in template is");
${${"GLOBALS"}["jjkaqe"]}["s_pp_unity_text_expl"] = $this->l("specified by template");
${${"GLOBALS"}["haprgnm"]}["s_pack_hint"] = $this->l("You can only add to a pack products sold in items (cannot add products sold by weight, length, etc.).");
${$cqewegnj}["s_ppe_title"] = sprintf($this->l("%s properties"), $this->displayName);
return $this->getTranslations("AdminProductsExtra", ${${"GLOBALS"}["haprgnm"]});
} elseif (${$tbhjohoebze} == "AdminProductsController")
${${"GLOBALS"}["jpdnsie"]}["template_title"] = $this->l("This product uses Product Properties Extension template");
elseif (${${"GLOBALS"}["nzemrj"]} == "ProductController") {
${${"GLOBALS"}["haprgnm"]}["priceTxt"] = $this->l("price");
${${"GLOBALS"}["haprgnm"]}["qtyAvailableTxt"] = $this->l("in stock");
} elseif (${${"GLOBALS"}["dfhduktny"]} == "EditTemplate" || ${${"GLOBALS"}["psofyecho"]} == "AdminProductsExtra") {
$gfkfbrzxnr = "translations";
${"GLOBALS"}["uqbzyytv"] = "translations";
${"GLOBALS"}["ygwowen"] = "translations";
$lenyhigotb = "translations";
${"GLOBALS"}["xidfnakwrds"] = "translations";
${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy"] = $this->l("quantity policy");
${"GLOBALS"}["ravjijp"] = "translations";
$rguprsoitg = "translations";
$jiepyh = "translations";
${$rguprsoitg}["s_pp_qty_mode"] = $this->l("quantity mode");
${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode"] = $this->l("display mode");
${"GLOBALS"}["vahftuy"] = "translations";
${"GLOBALS"}["kvrtrsul"] = "translations";
${${"GLOBALS"}["haprgnm"]}["s_pp_price_display_mode"] = $this->l("price display mode");
${$gfkfbrzxnr}["s_pp_price_text"] = $this->l("price text");
${${"GLOBALS"}["uqbzyytv"]}["s_pp_qty_text"] = $this->l("quantity text");
$unfhrwsko = "translations";
${${"GLOBALS"}["haprgnm"]}["s_pp_unity_text"] = $this->l("unit price text");
${"GLOBALS"}["aulmivojqi"] = "translations";
$hibivqlqfcd = "translations";
${${"GLOBALS"}["xidfnakwrds"]}["s_pp_unit_price_ratio"] = $this->l("unit price ratio");
${${"GLOBALS"}["kvrtrsul"]}["s_pp_minimal_price_ratio"] = $this->l("quantity threshold for minimum price");
${${"GLOBALS"}["ygwowen"]}["s_pp_minimal_quantity"] = $this->l("minimum quantity");
${$unfhrwsko}["s_pp_default_quantity"] = $this->l("default quantity");
${$lenyhigotb}["s_pp_qty_step"] = $this->l("quantity step");
${${"GLOBALS"}["ravjijp"]}["s_pp_explanation"] = $this->l("inline explanation");
${"GLOBALS"}["hmkopipbq"] = "translations";
${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy_0"] = $this->l("items");
${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy_1"] = $this->l("whole units");
${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy_2"] = $this->l("fractional units");
${"GLOBALS"}["xyfglfw"] = "translations";
${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy_ext"] = $this->l("multidimensional");
${${"GLOBALS"}["haprgnm"]}["s_pp_qty_mode_0"] = $this->l("exact quantity");
${$jiepyh}["s_pp_qty_mode_1"] = $this->l("approximate quantity");
${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode_0"] = $this->l("normal");
${$hibivqlqfcd}["s_pp_display_mode_1"] = $this->l("reversed price display");
${${"GLOBALS"}["xyfglfw"]}["s_pp_display_mode_1_long"] = $this->l("display unit price as price (reversed price display)");
${${"GLOBALS"}["vahftuy"]}["s_pp_display_mode_2"] = $this->l("display retail price as unit price");
${${"GLOBALS"}["hmkopipbq"]}["s_pp_display_mode_4"] = $this->l("display base unit price for all combinations");
${${"GLOBALS"}["haprgnm"]}["s_pp_price_display_mode_0"] = $this->l("normal");
${${"GLOBALS"}["aulmivojqi"]}["s_pp_price_display_mode_1"] = $this->l("as product price");
${${"GLOBALS"}["haprgnm"]}["s_pp_price_display_mode_16"] = $this->l("hide price display");
} elseif (${$wypsmmwsvku} == "ppExt") {
${"GLOBALS"}["ppneqsreb"] = "translations";
${${"GLOBALS"}["ppneqsreb"]}["s_single_dimension"] = $this->l("single dimension");
${${"GLOBALS"}["haprgnm"]}["s_multiplication"] = $this->l("multiplication: dimensions in all directions are multiplied (giving area or volume)");
${${"GLOBALS"}["haprgnm"]}["s_summation"] = $this->l("summation: dimensions in all directions are added (giving perimeter)");
}
return ${${"GLOBALS"}["vjfxktcorfrm"]};
}
public function getContent()
{
$mpbohdiz = "tab";
$kppargr = "output0";
if (Configuration::get("PS_DISABLE_NON_NATIVE_MODULE"))
return "<div class=\"module_error alert alert-danger\">" . $this->l("Non PrestaShop modules disabled.") . "</div>";
$lgzzkqt = "tab";
${"GLOBALS"}["xxpriwvy"] = "setup";
${"GLOBALS"}["kdqixihrf"] = "output3";
$this->active_languages = $this->context->controller->getLanguages();
$bwbryyrkph = "tabs";
$this->default_language_id = $this->context->controller->default_form_language;
${${"GLOBALS"}["xxpriwvy"]} = $this->setupInstance();
if (!(int) Tools::getValue("pp"))
$setup->checkIntegration();
${"GLOBALS"}["ecrgltss"] = "properties";
${$lgzzkqt} = "0";
$tgjolgnixtgg = "tabs";
${$kppargr} = ${${"GLOBALS"}["bfsgywccgqw"]} = ${${"GLOBALS"}["bhuxbbixayh"]} = ${${"GLOBALS"}["kdqixihrf"]} = ${${"GLOBALS"}["zuzwshucpf"]} = "";
${${"GLOBALS"}["qnopirypksdy"]} = null;
${${"GLOBALS"}["ecrgltss"]} = null;
${"GLOBALS"}["mgwdwkumtp"] = "html";
$xbndkbslkbaj = "tab";
$efqtxgfpqi = "tabs";
$vnvpdtilps = "output2";
if (Tools::isSubmit("submitRestoreDefaults")) {
${${"GLOBALS"}["fpyrvilfedx"]} = "0";
$setup->insertData(true);
} elseif (Tools::isSubmit("cancelSaveTemplate"))
${${"GLOBALS"}["fpyrvilfedx"]} = "0";
elseif (Tools::isSubmit("cancelSaveProperty"))
${${"GLOBALS"}["fpyrvilfedx"]} = "1";
elseif (Tools::isSubmit("submitSaveTemplate")) {
${"GLOBALS"}["wfeyxkkxddy"] = "result";
${${"GLOBALS"}["wfeyxkkxddy"]} = $this->saveTemplate();
if (${${"GLOBALS"}["jfzrwspqudr"]}["error"] == "")
${${"GLOBALS"}["fpyrvilfedx"]} = "0";
else {
${"GLOBALS"}["wmtnkef"] = "templates";
${"GLOBALS"}["mcfyewix"] = "result";
${${"GLOBALS"}["wmtnkef"]} = ${${"GLOBALS"}["mcfyewix"]}["templates"];
${${"GLOBALS"}["zuzwshucpf"]} = $this->displayError(${${"GLOBALS"}["jfzrwspqudr"]}["error"]);
${${"GLOBALS"}["fpyrvilfedx"]} = "4";
}
} elseif (Tools::isSubmit("submitSaveProperty")) {
${"GLOBALS"}["dhspmjazvj"] = "tab";
${"GLOBALS"}["clwujjuk"] = "result";
${${"GLOBALS"}["jfzrwspqudr"]} = $this->saveProperty();
if (${${"GLOBALS"}["clwujjuk"]}["error"] == "")
${${"GLOBALS"}["dhspmjazvj"]} = "1";
else {
$wabgqsvjromk = "properties";
${"GLOBALS"}["kngwjw"] = "result";
${"GLOBALS"}["oghuyi"] = "result";
$uzjudyc = "tab";
${$wabgqsvjromk} = ${${"GLOBALS"}["oghuyi"]}["properties"];
${${"GLOBALS"}["zuzwshucpf"]} = $this->displayError(${${"GLOBALS"}["kngwjw"]}["error"]);
${$uzjudyc} = "4";
}
} elseif (Tools::isSubmit("submitConfigSettings")) {
$qigkdua = "output2";
${"GLOBALS"}["lwggrm"] = "tab";
${${"GLOBALS"}["lwggrm"]} = "2";
Configuration::updateValue("PP_MEASUREMENT_SYSTEM", (int) Tools::getValue("measurement_system", 1));
Configuration::updateValue("PP_MEASUREMENT_SYSTEM_FO", (int) Tools::getValue("measurement_system_fo", 0));
Configuration::updateValue("PP_POWEREDBY", (int) Tools::getValue("poweredby", 0));
Configuration::updateValue("PP_TEMPLATE_NAME_IN_CATALOG", (int) Tools::getValue("template_name_in_catalog", 1));
Configuration::updateValue("PP_SHOW_POSITIONS", (int) Tools::getValue("show_positions", 0));
${$qigkdua} = $this->displayConfirmation($this->l("Settings updated"));
} elseif (Tools::isSubmit("submitSetup")) {
${${"GLOBALS"}["fpyrvilfedx"]} = "2";
$setup->runSetup();
} elseif (Tools::isSubmit("submitIntegration")) {
${${"GLOBALS"}["fpyrvilfedx"]} = "2";
$setup->runIntegrationTest();
} elseif (Tools::isSubmit("clickClearCache")) {
${${"GLOBALS"}["fpyrvilfedx"]} = "2";
PSM::clearCache();
} elseif (Tools::isSubmit("submitStatistics"))
${${"GLOBALS"}["fpyrvilfedx"]} = "3";
elseif (Tools::isSubmit("clickEditTemplate"))
${$mpbohdiz} = "4";
elseif (Tools::isSubmit("clickDeleteTemplate")) {
$lnxolu = "tab";
${$lnxolu} = "0";
$this->deleteTemplate();
} elseif (Tools::isSubmit("clickHiddenStatusTemplate")) {
${${"GLOBALS"}["fpyrvilfedx"]} = "0";
$this->changeHiddenStatus();
} elseif (Tools::isSubmit("clickEditProperty"))
${$xbndkbslkbaj} = "4";
elseif (Tools::isSubmit("clickDeleteProperty")) {
${"GLOBALS"}["eaigagdvcv"] = "tab";
${${"GLOBALS"}["eaigagdvcv"]} = "1";
$this->deleteProperty();
}
${${"GLOBALS"}["mgwdwkumtp"]} = "";
if (version_compare(_PS_VERSION_, $this->ps_versions_compliancy["min"]) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy["max"]) > 0) {
${${"GLOBALS"}["kudlaywxu"]} .= $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>");
}
$jqjxuqlchzj = "html";
if (count($this->integration_test_result) != 0) {
$ccrnxylu = "html";
${"GLOBALS"}["hfrjgnrdgp"] = "tab";
${$ccrnxylu} .= $this->displayError($this->l("Integration test failed."));
${${"GLOBALS"}["hfrjgnrdgp"]} = "2";
}
${${"GLOBALS"}["lvufqdmgddg"]} = array();
${${"GLOBALS"}["lvufqdmgddg"]}[0] = array(
"type" => "templates",
"name" => $this->l("Templates"),
"html" => ${${"GLOBALS"}["vahwfhfcfmr"]} . $this->getTemplatesTabHtml()
);
${$tgjolgnixtgg}[1] = array(
"type" => "properties",
"name" => $this->l("Properties"),
"html" => ${${"GLOBALS"}["bfsgywccgqw"]} . $this->getPropertiesTabHtml()
);
${$efqtxgfpqi}[2] = array(
"type" => "settings",
"name" => $this->l("Settings"),
"html" => ${$vnvpdtilps} . $this->getSettingsTabHtml(Tools::isSubmit("submitIntegration") || Tools::isSubmit("submitSetup"))
);
${${"GLOBALS"}["lvufqdmgddg"]}[3] = array(
"type" => "statistics",
"name" => $this->l("Statistics"),
"html" => ${${"GLOBALS"}["iijpat"]} . $this->getStatisticsTabHtml(Tools::isSubmit("submitStatistics"))
);
if ((${${"GLOBALS"}["fpyrvilfedx"]} == 4) && (Tools::isSubmit("clickEditTemplate") || Tools::isSubmit("submitSaveTemplate"))) {
$whgjcsc = "mode";
${"GLOBALS"}["ywrxnthp"] = "title";
${${"GLOBALS"}["jtzrsenlstcd"]} = Tools::getValue("mode");
$lcbceqdvfq = "mode";
${"GLOBALS"}["lcbrcc"] = "title";
$dwcphvgu = "title";
$lxrlsfnjko = "output4";
if (${$whgjcsc} == "add")
${${"GLOBALS"}["sfnigiukwgfk"]} = $this->l("Add template");
elseif (${$lcbceqdvfq} == "copy")
${${"GLOBALS"}["ywrxnthp"]} = $this->l("Add template");
else {
${${"GLOBALS"}["jtzrsenlstcd"]} = "edit";
${${"GLOBALS"}["sfnigiukwgfk"]} = $this->l("Edit template");
}
${${"GLOBALS"}["lvufqdmgddg"]}[4] = array(
"type" => "modifyTemplate",
"name" => ${$dwcphvgu},
"html" => ${$lxrlsfnjko} . $this->getEditTemplateTabHtml(${${"GLOBALS"}["qnopirypksdy"]}, ${${"GLOBALS"}["jtzrsenlstcd"]}, ${${"GLOBALS"}["lcbrcc"]})
);
} elseif ((${${"GLOBALS"}["fpyrvilfedx"]} == 4) && (Tools::isSubmit("clickEditProperty") || Tools::isSubmit("submitSaveProperty"))) {
${"GLOBALS"}["aunonfems"] = "title";
$eakmzlzdoqo = "title";
${${"GLOBALS"}["jtzrsenlstcd"]} = Tools::getValue("mode");
${"GLOBALS"}["eaxuqfgru"] = "properties";
if (${${"GLOBALS"}["jtzrsenlstcd"]} == "add") {
$hffwbxi = "type";
$gbcyslkbi = "title";
$lofwas = "title";
${${"GLOBALS"}["wrrvedhoqj"]} = (int) Tools::getValue("type");
if (${${"GLOBALS"}["wrrvedhoqj"]} == self::PROPERTY_TYPE_GENERAL)
${$lofwas} = $this->l("Add property attribute");
elseif (${$hffwbxi} == self::PROPERTY_TYPE_BUY_BLOCK_TEXT)
${$gbcyslkbi} = $this->l("Add property text");
else
${${"GLOBALS"}["sfnigiukwgfk"]} = $this->l("Add property dimension");
} else {
${"GLOBALS"}["bjmszkne"] = "mode";
$vgtwqihu = "title";
${${"GLOBALS"}["bjmszkne"]} = "edit";
${$vgtwqihu} = $this->l("Edit property");
}
${${"GLOBALS"}["lvufqdmgddg"]}[4] = array(
"type" => "modifyProperty",
"name" => ${${"GLOBALS"}["aunonfems"]},
"html" => ${${"GLOBALS"}["zuzwshucpf"]} . $this->getEditPropertyTabHtml(${${"GLOBALS"}["eaxuqfgru"]}, ${${"GLOBALS"}["jtzrsenlstcd"]}, ${$eakmzlzdoqo})
);
}
${${"GLOBALS"}["tdyecpibwv"]} = $this->createTemplate("pproperties");
$helper->tpl_vars["html"] = ${$jqjxuqlchzj};
$helper->tpl_vars["tabs"] = ${$bwbryyrkph};
$helper->tpl_vars["active"] = ${${"GLOBALS"}["fpyrvilfedx"]};
$helper->tpl_vars["version"] = $this->version;
$helper->tpl_vars["ppe_id"] = PSM::getPSMId($this);
$helper->tpl_vars["_path"] = $this->getPathUri();
$helper->tpl_vars["s_user_guide"] = $this->l("user guide");
$helper->tpl_vars["s_version"] = $this->l("Version");
$helper->tpl_vars["s_pp_info_ignore"] = $this->l("don't show this message again");
$helper->tpl_vars["token_adminpproperties"] = Tools::getAdminTokenLite("AdminPproperties");
$helper->tpl_vars["jstranslations"] = PP::safeOutputJS(array(
"rerun" => $this->l("Re-run Setup"),
"integration_module_success_IntegrationModuleIgnore" => $this->l("ignored - please re-run setup"),
"integration_module_success_IntegrationModuleIntegrate" => $this->l("integation activated - please re-run setup"),
"integration_module_rerun_IntegrationModuleCheckForUpdates" => $this->l("please re-run setup"),
"integration_module_downloaded_IntegrationModuleCheckForUpdates" => $this->l("update downloaded - please re-run setup"),
"integration_module_no_updates_IntegrationModuleCheckForUpdates" => $this->l("no updates available - please contact customer support"),
"integration_module_error" => $this->l("error occurred")
));
if (!Module::isInstalled("psmextmanager") && Module::getInstanceByName("psmextmanager"))
$helper->tpl_vars["psmextmanager_install"] = $this->context->link->getAdminLink("AdminModules") . "&install=psmextmanager&tab_module=administration&module_name=psmextmanager&anchor=Psmextmanager";
return $helper->generate();
}
private function getTemplatesTabHtml()
{
${${"GLOBALS"}["tdyecpibwv"]} = $this->createTemplate("templates");
$helper->tpl_vars["integrated"] = $this->integrated;
if ($this->integrated) {
$pahlrds = "buy_block_text";
${${"GLOBALS"}["qnopirypksdy"]} = PP::getTemplates();
${"GLOBALS"}["efsbpexpxklq"] = "templates";
$wsfqaupvwgyb = "templates";
${$pahlrds} = array();
$vosqnxh = "template";
$dezvqyrzkfi = "buy_block_text";
${"GLOBALS"}["ngrnhpc"] = "buy_block_text";
foreach (${${"GLOBALS"}["efsbpexpxklq"]} as &${$vosqnxh}) {
${"GLOBALS"}["jzkkbfxkb"] = "display_mode";
${"GLOBALS"}["bxlavpg"] = "display_mode";
$yxvwvqwuyjy = "template";
$inqnorqg = "display_mode";
${"GLOBALS"}["wklxsykr"] = "template";
$qxvqtsawbwer = "buy_block_text";
${"GLOBALS"}["tojjrfpdht"] = "template";
${$inqnorqg} = array();
if ((${${"GLOBALS"}["wklxsykr"]}["pp_display_mode"] & 1) == 1)
${${"GLOBALS"}["bxlavpg"]}[] = 1;
if ((${${"GLOBALS"}["xdgtgabuy"]}["pp_display_mode"] & 2) == 2)
${${"GLOBALS"}["wqvdphv"]}[] = 2;
$uivtttgfmr = "template";
if ((${${"GLOBALS"}["xdgtgabuy"]}["pp_display_mode"] & 4) == 4)
${${"GLOBALS"}["wqvdphv"]}[] = 3;
${$uivtttgfmr}["display_mode"] = implode(",", ${${"GLOBALS"}["jzkkbfxkb"]});
if (${$yxvwvqwuyjy}["pp_explanation"])
${$qxvqtsawbwer}[${${"GLOBALS"}["tojjrfpdht"]}["pp_bo_buy_block_index"]] = PP::safeOutputLenient(${${"GLOBALS"}["xdgtgabuy"]}["pp_explanation"]);
}
ksort(${${"GLOBALS"}["ngrnhpc"]}, SORT_NUMERIC);
$hmmkvrirrwv = "translations";
$guigyxxvbir = "translations";
$helper->tpl_vars["templates"] = PP::safeOutput(${$wsfqaupvwgyb});
$helper->tpl_vars["buy_block_text"] = ${$dezvqyrzkfi};
${${"GLOBALS"}["haprgnm"]} = $this->getTranslations("EditTemplate");
$helper->tpl_vars["display_mode_text"] = array(
${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode_1_long"],
${$guigyxxvbir}["s_pp_display_mode_2"],
${$hmmkvrirrwv}["s_pp_display_mode_4"]
);
} else
$helper->tpl_vars["integration_message"] = $this->getTabIntegrationWarning();
return $helper->generate();
}
private function getPropertiesTabHtml()
{
${"GLOBALS"}["yhekpuequmo"] = "helper";
${${"GLOBALS"}["yhekpuequmo"]} = $this->createTemplate("properties");
$helper->tpl_vars["integrated"] = $this->integrated;
if ($this->integrated) {
${${"GLOBALS"}["blzlcdre"]} = $this->getAllProperties();
${"GLOBALS"}["hymtaco"] = "metric";
${"GLOBALS"}["dyorne"] = "all_properties";
${${"GLOBALS"}["pfwdptxorrfn"]} = (PP::resolveMS() != 2);
$helper->tpl_vars["properties"] = ${${"GLOBALS"}["dyorne"]}[$this->default_language_id];
$helper->tpl_vars["property_types"] = $this->getPropertyTypes();
$helper->tpl_vars["types"] = array(
"attributes" => array(
"id" => self::PROPERTY_TYPE_GENERAL,
"metric" => true,
"nonmetric" => true
),
"texts" => array(
"id" => self::PROPERTY_TYPE_BUY_BLOCK_TEXT,
"metric" => ${${"GLOBALS"}["pfwdptxorrfn"]},
"nonmetric" => !${${"GLOBALS"}["hymtaco"]}
),
"dimensions" => ($this->multidimensional_plugin ? array(
"id" => self::PROPERTY_TYPE_EXT,
"metric" => true,
"nonmetric" => true
) : false)
);
} else
$helper->tpl_vars["integration_message"] = $this->getTabIntegrationWarning();
return $helper->generate();
}
private function getSettingsTabHtml($display)
{
${"GLOBALS"}["ofdoche"] = "integration";
$mpkduvhapzbw = "integration";
${"GLOBALS"}["ajqpkoi"] = "extra_modules";
$opwyblrj = "html";
${"GLOBALS"}["lnxqjjxf"] = "modified_files";
${$opwyblrj} = "";
if ($this->integrated) {
$qyipzg = "helper";
$klqwlhmh = "form";
${$qyipzg} = $this->createHelperForm("pp_settings_form", $this->l("Settings"), "submitConfigSettings", "icon-AdminAdmin");
$bhympvrrko = "helper";
${"GLOBALS"}["rsljuqmuxin"] = "html";
${${"GLOBALS"}["avfywftychvo"]} = 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" => $this->l("metric")
),
array(
"id" => "measurement_system_2",
"value" => (int) PP::PP_MS_NON_METRIC,
"label" => $this->l("non metric (imperial/US)")
)
)
),
array(
"label" => $this->l("Display \"Powered by PS&More""),
"type" => "switch",
"name" => "poweredby",
"values" => array(
array(
"id" => "psandmore_on",
"value" => 1
),
array(
"id" => "psandmore_off",
"value" => 0
)
)
),
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" => array(
array(
"id" => "on",
"value" => 1
),
array(
"id" => "off",
"value" => 0
)
)
),
array(
"type" => "clearcache",
"name" => $this->l("Clear cache")
)
)
);
$helper->fields_value["measurement_system"] = (int) Tools::getValue("measurement_system", Configuration::get("PP_MEASUREMENT_SYSTEM"));
$helper->fields_value["measurement_system_fo"] = (int) Configuration::get("PP_MEASUREMENT_SYSTEM_FO");
$helper->fields_value["poweredby"] = (int) Configuration::get("PP_POWEREDBY");
$helper->fields_value["template_name_in_catalog"] = (int) Configuration::get("PP_TEMPLATE_NAME_IN_CATALOG");
$helper->fields_value["show_positions"] = (int) Configuration::get("PP_SHOW_POSITIONS");
${${"GLOBALS"}["rsljuqmuxin"]} .= $this->generateForm(${$bhympvrrko}, ${$klqwlhmh});
}
${${"GLOBALS"}["ofdoche"]} = array();
${${"GLOBALS"}["lnxqjjxf"]} = $this->setupInstance()->checkModifiedFiles();
${${"GLOBALS"}["ajqpkoi"]} = $this->setupInstance()->checkExtraModulesIntegrity(true);
$jzrujydvh = "html";
if (count($this->integration_test_result) == 0) {
${${"GLOBALS"}["slgtmmkhg"]}["btn_action"] = "submitIntegration";
${${"GLOBALS"}["slgtmmkhg"]}["btn_title"] = $this->l("Perform integration test");
if (${${"GLOBALS"}["edoqjzmq"]}) {
${"GLOBALS"}["eyijfrltxc"] = "res";
${"GLOBALS"}["uapoxatuctc"] = "modified_files";
${${"GLOBALS"}["slgtmmkhg"]}["confirmation"] = $this->displayConfirmation($this->l("Integration test completed successfully."));
${"GLOBALS"}["fscbohz"] = "extra_modules";
${"GLOBALS"}["ngoyeo"] = "res";
${${"GLOBALS"}["jsrgfuhrny"]} = ${${"GLOBALS"}["uapoxatuctc"]};
${${"GLOBALS"}["eyijfrltxc"]} = array_replace_recursive(${${"GLOBALS"}["jsrgfuhrny"]}, ${${"GLOBALS"}["fscbohz"]});
if (isset($this->integration_test_result_notes))
${${"GLOBALS"}["ngoyeo"]} = array_merge_recursive(${${"GLOBALS"}["jsrgfuhrny"]}, $this->integration_test_result_notes);
${${"GLOBALS"}["slgtmmkhg"]}["display"] = $this->showIntegrationTestResults(${${"GLOBALS"}["jsrgfuhrny"]});
}
} else {
${"GLOBALS"}["lgengcbp"] = "extra_modules";
${"GLOBALS"}["icjqpjgbqx"] = "integration";
${"GLOBALS"}["pnmjjlnt"] = "modified_files";
$this->integration_test_result = array_replace_recursive($this->integration_test_result, ${${"GLOBALS"}["pnmjjlnt"]});
$xosarq = "integration";
$this->integration_test_result = array_replace_recursive($this->integration_test_result, ${${"GLOBALS"}["lgengcbp"]});
${"GLOBALS"}["bjyhdouqv"] = "integration";
if (isset($this->integration_test_result_notes))
$this->integration_test_result = array_merge_recursive($this->integration_test_result, $this->integration_test_result_notes);
${$xosarq}["btn_action"] = "submitSetup";
${${"GLOBALS"}["bjyhdouqv"]}["btn_title"] = $this->l("Run Setup");
${${"GLOBALS"}["slgtmmkhg"]}["display"] = $this->showIntegrationTestResults($this->integration_test_result);
${${"GLOBALS"}["slgtmmkhg"]}["hasDesc"] = true;
${${"GLOBALS"}["icjqpjgbqx"]}["_path"] = $this->getPathUri();
}
${${"GLOBALS"}["tdyecpibwv"]} = $this->createTemplate("integration");
$helper->tpl_vars["integration"] = ${$mpkduvhapzbw};
$helper->tpl_vars["integration_instructions"] = $this->l("Integration Instructions");
${${"GLOBALS"}["kudlaywxu"]} .= $helper->generate();
return ${$jzrujydvh};
}
private function getStatisticsTabHtml($display)
{
$tvymosltghe = "helper";
${$tvymosltghe} = $this->createTemplate("statistics");
$helper->tpl_vars["integrated"] = $this->integrated;
if ($this->integrated) {
${"GLOBALS"}["vrszylqlpsoo"] = "display";
set_time_limit(0);
if (${${"GLOBALS"}["vrszylqlpsoo"]}) {
$jlqpcje = "rows";
$vqfbobhy = "template";
${${"GLOBALS"}["ndgywhnftekw"]} = Db::getInstance();
${"GLOBALS"}["lilvykqrrfgw"] = "templates";
${${"GLOBALS"}["qnopirypksdy"]} = PP::getTemplates();
${${"GLOBALS"}["gwoeyurd"]} = array();
${${"GLOBALS"}["gpeyoihrs"]} = array();
${${"GLOBALS"}["gioeixkr"]} = $db->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`");
${"GLOBALS"}["ulidku"] = "rows";
foreach (${${"GLOBALS"}["ulidku"]} as ${${"GLOBALS"}["mehqvr"]}) {
$srmczrm = "statistics";
${"GLOBALS"}["vqpyecyqbiv"] = "used_templates";
${$srmczrm}[${${"GLOBALS"}["mehqvr"]}["id_pp_template"]] = ${${"GLOBALS"}["mehqvr"]}["count"];
${${"GLOBALS"}["vqpyecyqbiv"]}[${${"GLOBALS"}["mehqvr"]}["id_pp_template"]] = ${${"GLOBALS"}["mehqvr"]}["id_pp_template"];
}
${${"GLOBALS"}["gioeixkr"]} = array();
foreach (${${"GLOBALS"}["lilvykqrrfgw"]} as ${$vqfbobhy}) {
${"GLOBALS"}["ehjecg"] = "row";
${"GLOBALS"}["uflenxyb"] = "row";
$prbrxsoelb = "row";
$ngikwernhr = "template";
${"GLOBALS"}["hixrgiyolqua"] = "row";
$ytsyqdcruufl = "id_pp_template";
$gamyjoupf = "id_pp_template";
${"GLOBALS"}["henhlmvci"] = "id_pp_template";
$bncwngj = "template";
${${"GLOBALS"}["henhlmvci"]} = ${$ngikwernhr}["id_pp_template"];
unset(${${"GLOBALS"}["gpeyoihrs"]}[${$ytsyqdcruufl}]);
${${"GLOBALS"}["uflenxyb"]} = array();
${${"GLOBALS"}["ehjecg"]}["id"] = ${${"GLOBALS"}["pxmlbrsq"]};
$wohxpfnnf = "row";
${${"GLOBALS"}["hixrgiyolqua"]}["name"] = ${$bncwngj}["name"];
${$prbrxsoelb}["count"] = (isset(${${"GLOBALS"}["gwoeyurd"]}[${$gamyjoupf}]) ? ${${"GLOBALS"}["gwoeyurd"]}[${${"GLOBALS"}["pxmlbrsq"]}] : 0);
if (${${"GLOBALS"}["mehqvr"]}["count"] > 0) {
${${"GLOBALS"}["efndgenbt"]} = $db->executeS("SELECT 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` = " . $this->default_language_id . ") WHERE p.`id_pp_template` = " . ${${"GLOBALS"}["pxmlbrsq"]});
${"GLOBALS"}["bnytcgtbyq"] = "row";
${${"GLOBALS"}["bnytcgtbyq"]}["products"] = ${${"GLOBALS"}["efndgenbt"]};
}
${${"GLOBALS"}["gioeixkr"]}[] = ${$wohxpfnnf};
}
$helper->tpl_vars["existing"] = ${$jlqpcje};
if (!empty(${${"GLOBALS"}["gpeyoihrs"]})) {
$bhvskpvbvu = "products";
$efntdeich = "used_templates";
${"GLOBALS"}["ewgekx"] = "products";
${$bhvskpvbvu} = $db->executeS("SELECT 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` = " . $this->default_language_id . ") WHERE p.`id_pp_template` in (" . implode(",", ${$efntdeich}) . ")");
if (is_array(${${"GLOBALS"}["ewgekx"]}) && count(${${"GLOBALS"}["efndgenbt"]}) > 0)
$helper->tpl_vars["missing"] = ${${"GLOBALS"}["efndgenbt"]};
}
$helper->tpl_vars["linkAdminProducts"] = $this->context->link->getAdminLink("AdminProducts");
}
} else
$helper->tpl_vars["integration_message"] = $this->getTabIntegrationWarning();
return $helper->generate();
}
private function getEditTemplateTabHtml($templates, $mode, $title)
{
$eylckjmvh = "all_properties";
${"GLOBALS"}["buxnjqlshmi"] = "translations";
$fktpmheu = "translations";
$pkjrnbqw = "dimension_index";
$mhyxvli = "translations";
$vnppfeiatm = "template";
${"GLOBALS"}["vowekrma"] = "template";
$lidsvatfdh = "translations";
${"GLOBALS"}["ooesulklah"] = "translations";
$rhgfapyn = "mode";
$fucsngoiowhb = "template";
$kqsnyaooobdl = "template";
if (!$this->integrated)
return "";
${"GLOBALS"}["qtoyhfti"] = "template";
$xucglbu = "translations";
${"GLOBALS"}["pmdntvy"] = "all_properties";
${"GLOBALS"}["xcikibqvcxo"] = "dimensions_form";
${"GLOBALS"}["moexbd"] = "template";
$bekkkhpyg = "ms";
${"GLOBALS"}["kdwzpvrg"] = "template";
$ybpfxpmins = "helper";
${"GLOBALS"}["fauzwrvqgfhl"] = "template";
$bluenmfkel = "template";
$uhkuuqc = "template";
$soyakiovrklu = "translations";
$cryzvlcjfn = "property_types";
if (${$rhgfapyn} == "add") {
${${"GLOBALS"}["wxvtdcjnurn"]} = 0;
if (${${"GLOBALS"}["qnopirypksdy"]} == null) {
foreach ($this->active_languages as ${${"GLOBALS"}["gfzancjl"]}) {
${"GLOBALS"}["qixwlxvpv"] = "template";
$ymocjyuhvni = "templates";
${${"GLOBALS"}["qixwlxvpv"]} = PP::getProductPropertiesByTemplateId(${${"GLOBALS"}["wxvtdcjnurn"]});
$hnvmknkzgm = "language";
${${"GLOBALS"}["xdgtgabuy"]}["name"] = "";
${${"GLOBALS"}["xdgtgabuy"]}["auto_desc"] = 1;
$wrqpyycxsqc = "template";
${$wrqpyycxsqc}["description"] = "";
${$ymocjyuhvni}[${$hnvmknkzgm}["id_lang"]][${${"GLOBALS"}["wxvtdcjnurn"]}] = ${${"GLOBALS"}["xdgtgabuy"]};
}
}
} else
${${"GLOBALS"}["wxvtdcjnurn"]} = (int) Tools::getValue("id");
$sjjyex = "template";
${"GLOBALS"}["xxxtdymqvauj"] = "translations";
${"GLOBALS"}["gmfohcc"] = "hook_forms";
$inwlnfsy = "value";
$odtdtgtpf = "max_dimensions";
$fsqwlplybmr = "value";
$yuplocd = "translations";
$vyusvy = "template";
${"GLOBALS"}["jdkjeiy"] = "id";
$lqgrvherlokl = "template";
$tkzruipge = "all_properties";
$uqwjgggh = "template";
$zoungekg = "template";
${"GLOBALS"}["fummjiqqg"] = "property_types";
${"GLOBALS"}["cfyqao"] = "templates";
if (${${"GLOBALS"}["cfyqao"]} == null)
${${"GLOBALS"}["qnopirypksdy"]} = PP::getAllTemplates();
$hrbvtef = "template";
${"GLOBALS"}["indyuetd"] = "helper";
${"GLOBALS"}["rjtweympny"] = "template";
${"GLOBALS"}["gmffsaicyseq"] = "translations";
$wehcpja = "translations";
$hdihulgsmqt = "buttons";
${"GLOBALS"}["tofaadf"] = "template";
$ukpubad = "translations";
$uhdrlpetlnh = "template";
${"GLOBALS"}["kexpentgpyfm"] = "dimensions_form";
${"GLOBALS"}["qciujy"] = "template";
${$fucsngoiowhb} = ${${"GLOBALS"}["qnopirypksdy"]}[$this->default_language_id][${${"GLOBALS"}["jdkjeiy"]}];
${"GLOBALS"}["euhlgmq"] = "max_dimensions";
$zshdzgukjj = "template";
$umiaewjmnj = "value";
${$bekkkhpyg} = PP::resolveMS(${$lqgrvherlokl}["pp_bo_measurement_system"]);
${"GLOBALS"}["uwrrrkmydvl"] = "template";
${"GLOBALS"}["akgcblqq"] = "translations";
${"GLOBALS"}["mlgmhteny"] = "helper";
${"GLOBALS"}["wflgczcfxyuj"] = "forms";
${$eylckjmvh} = $this->getAllProperties(${${"GLOBALS"}["vnpzqawf"]});
$wxpcaxyowg = "translations";
${${"GLOBALS"}["eitmqnhh"]} = $this->getPropertyTypes();
$mdgspt = "html";
${"GLOBALS"}["rhfzsbxfov"] = "mode";
${${"GLOBALS"}["haprgnm"]} = $this->getTranslations("EditTemplate");
${"GLOBALS"}["pwbjnuuhz"] = "helper";
${"GLOBALS"}["ktxjnqjyv"] = "property_types";
${"GLOBALS"}["zgqpnmsxyav"] = "all_properties";
${${"GLOBALS"}["fcvjuubrjy"]} = array(
array(
"title" => $this->l("Cancel"),
"type" => "submit",
"name" => "cancelSaveTemplate",
"icon" => "process-icon-cancel"
)
);
${"GLOBALS"}["vfkdgrr"] = "translations";
${"GLOBALS"}["ciuwzbfaee"] = "language";
$bkpryklkb = "template";
${${"GLOBALS"}["tdyecpibwv"]} = $this->createHelperForm("pp_template_form", ${${"GLOBALS"}["sfnigiukwgfk"]}, "submitSaveTemplate", "icon-edit");
${"GLOBALS"}["yxggsusyg"] = "max_dimensions";
${"GLOBALS"}["nzxkutavxvo"] = "value";
${${"GLOBALS"}["avfywftychvo"]} = array(
"input" => array(
array(
"type" => "div",
"label" => $this->l("ID"),
"name" => ${${"GLOBALS"}["wxvtdcjnurn"]},
"class" => "control-text",
"condition" => (${${"GLOBALS"}["rhfzsbxfov"]} == "edit")
),
array(
"type" => "text",
"label" => $this->l("name"),
"name" => "name_input",
"lang" => true
),
array(
"type" => "text",
"label" => $this->l("description"),
"name" => "description_input",
"lang" => true,
"desc" => $this->l("leave blank to use auto generated description")
),
array(
"type" => "radio",
"label" => ${${"GLOBALS"}["haprgnm"]}["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" => ${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy_0"]
),
array(
"id" => "pp_qty_policy_1",
"value" => 1,
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_qty_policy_1"]
),
array(
"id" => "pp_qty_policy_2",
"value" => 2,
"label" => ${${"GLOBALS"}["buxnjqlshmi"]}["s_pp_qty_policy_2"]
),
array(
"id" => "pp_qty_policy_3",
"value" => 3,
"label" => ${$ukpubad}["s_pp_qty_policy_ext"]
)
)
),
array(
"type" => "radio",
"label" => ${$wxpcaxyowg}["s_pp_qty_mode"],
"name" => "pp_qty_mode",
"desc" => $this->l("product quantity can be exactly measured 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" => ${${"GLOBALS"}["haprgnm"]}["s_pp_qty_mode_0"]
),
array(
"id" => "pp_qty_mode_1",
"value" => 1,
"label" => ${${"GLOBALS"}["vfkdgrr"]}["s_pp_qty_mode_1"]
)
)
),
array(
"type" => "radio",
"label" => ${$lidsvatfdh}["s_pp_display_mode"],
"name" => "pp_display_mode",
"desc" => ${${"GLOBALS"}["gmffsaicyseq"]}["s_pp_display_mode_1_long"],
"values" => array(
array(
"id" => "pp_display_mode_0",
"value" => 0,
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode_0"]
),
array(
"id" => "pp_display_mode_1",
"value" => 1,
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode_1"]
)
),
"checkboxes" => array(
array(
"values" => array(
"query" => array(
array(
"id" => "retail_price",
"name" => ${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode_2"],
"val" => "1"
)
),
"id" => "id",
"name" => "name"
)
),
array(
"values" => array(
"query" => array(
array(
"id" => "base_unit_price",
"name" => ${${"GLOBALS"}["haprgnm"]}["s_pp_display_mode_4"],
"val" => "1"
)
),
"id" => "id",
"name" => "name"
)
)
)
),
array(
"type" => "radio",
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_price_display_mode"],
"name" => "pp_price_display_mode",
"desc" => $this->l("show calculated price separately, display it the position of the product price or hide the calculated price"),
"values" => array(
array(
"id" => "pp_price_display_mode_0",
"value" => 0,
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_price_display_mode_0"]
),
array(
"id" => "pp_price_display_mode_1",
"value" => 1,
"label" => ${$wehcpja}["s_pp_price_display_mode_1"]
),
array(
"id" => "pp_price_display_mode_16",
"value" => 16,
"label" => ${${"GLOBALS"}["xxxtdymqvauj"]}["s_pp_price_display_mode_16"]
)
)
),
$this->createHelperFormSelect("pp_price_text", array(
"label" => ${$fktpmheu}["s_pp_price_text"],
"desc" => $this->l("displayed after the product's price")
), self::PROPERTY_TYPE_GENERAL, ${${"GLOBALS"}["mlgmhteny"]}, ${${"GLOBALS"}["xdgtgabuy"]}, ${${"GLOBALS"}["pmdntvy"]}, ${${"GLOBALS"}["ktxjnqjyv"]}),
$this->createHelperFormSelect("pp_qty_text", array(
"label" => ${$mhyxvli}["s_pp_qty_text"],
"desc" => $this->l("displayed after the product's quantity")
), self::PROPERTY_TYPE_GENERAL, ${${"GLOBALS"}["tdyecpibwv"]}, ${$vyusvy}, ${$tkzruipge}, ${${"GLOBALS"}["eitmqnhh"]}),
$this->createHelperFormSelect("pp_unity_text", array(
"label" => ${$yuplocd}["s_pp_unity_text"],
"desc" => $this->l("displayed for products with unit price greater than zero")
), self::PROPERTY_TYPE_GENERAL, ${${"GLOBALS"}["tdyecpibwv"]}, ${$bluenmfkel}, ${${"GLOBALS"}["blzlcdre"]}, ${${"GLOBALS"}["fummjiqqg"]}),
array(
"type" => "text",
"label" => ${${"GLOBALS"}["haprgnm"]}["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")
),
array(
"type" => "text",
"label" => ${${"GLOBALS"}["ooesulklah"]}["s_pp_minimal_price_ratio"],
"name" => "minimal_price_ratio",
"class" => "fixed-width-xl",
"desc" => $this->l("used to calculate minimum price for quantity less than the specified threshold")
),
array(
"type" => "text",
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_minimal_quantity"],
"name" => "minimal_quantity",
"class" => "fixed-width-xl",
"desc" => $this->l("the minimum quantity to buy a product (leave blank to use default)")
),
array(
"type" => "text",
"label" => ${${"GLOBALS"}["akgcblqq"]}["s_pp_default_quantity"],
"name" => "default_quantity",
"class" => "fixed-width-xl",
"desc" => $this->l("the initial quantity to buy a product (leave blank to use default)")
),
array(
"type" => "text",
"label" => ${$xucglbu}["s_pp_qty_step"],
"name" => "qty_step",
"class" => "fixed-width-xl",
"desc" => $this->l("quantity step (leave blank to use default)")
),
$this->createHelperFormSelect("pp_explanation", array(
"label" => ${${"GLOBALS"}["haprgnm"]}["s_pp_explanation"]
), self::PROPERTY_TYPE_BUY_BLOCK_TEXT, ${$ybpfxpmins}, ${$uqwjgggh}, ${${"GLOBALS"}["blzlcdre"]}, ${${"GLOBALS"}["eitmqnhh"]}),
array(
"type" => "text",
"label" => $this->l("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_ . "/css/modules/pproperties/custom.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)") . (${$bkpryklkb}["pp_bo_qty_available_display"] == 0 ? "<br>" . (${${"GLOBALS"}["xdgtgabuy"]}["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" => $this->l("auto")
),
array(
"id" => "pp_bo_qty_available_display_1",
"value" => 1,
"label" => $this->l("visible")
),
array(
"id" => "pp_bo_qty_available_display_2",
"value" => 2,
"label" => $this->l("hidden")
)
)
),
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" => $this->l("default")
),
array(
"id" => "pp_bo_measurement_system_1",
"value" => (int) PP::PP_MS_METRIC,
"label" => $this->l("metric")
),
array(
"id" => "pp_bo_measurement_system_2",
"value" => (int) PP::PP_MS_NON_METRIC,
"label" => $this->l("non metric")
)
)
),
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" => $this->l("visible")
),
array(
"id" => "pp_bo_hidden_1",
"value" => 1,
"label" => $this->l("hidden")
)
)
),
array(
"type" => "hidden",
"name" => "id"
),
array(
"type" => "hidden",
"name" => "mode"
)
),
"buttons" => ${$hdihulgsmqt}
);
$helper->fields_value["id"] = ${${"GLOBALS"}["wxvtdcjnurn"]};
$helper->fields_value["mode"] = ${${"GLOBALS"}["jtzrsenlstcd"]};
$helper->fields_value["name_input"] = array();
$helper->fields_value["description_input"] = array();
${"GLOBALS"}["exjgnupkx"] = "buttons";
$fwtkclixry = "template";
foreach ($this->active_languages as ${${"GLOBALS"}["ciuwzbfaee"]}) {
$hiymfklfcsro = "language";
${"GLOBALS"}["hmpqmwtqct"] = "id";
${"GLOBALS"}["slbmltgj"] = "templates";
${"GLOBALS"}["pvjfxdghk"] = "id_lang";
$zayhuyeqonjs = "templates";
${"GLOBALS"}["dgjtrqmhjtb"] = "id";
${${"GLOBALS"}["spzqlh"]} = ${$hiymfklfcsro}["id_lang"];
${"GLOBALS"}["upybmtnrf"] = "id";
$helper->fields_value["name_input"][${${"GLOBALS"}["spzqlh"]}] = (isset(${$zayhuyeqonjs}[${${"GLOBALS"}["spzqlh"]}]) ? PP::safeOutputValue(${${"GLOBALS"}["qnopirypksdy"]}[${${"GLOBALS"}["spzqlh"]}][${${"GLOBALS"}["dgjtrqmhjtb"]}]["name"]) : "");
$helper->fields_value["description_input"][${${"GLOBALS"}["spzqlh"]}] = (isset(${${"GLOBALS"}["qnopirypksdy"]}[${${"GLOBALS"}["spzqlh"]}]) ? PP::safeOutputValue(${${"GLOBALS"}["qnopirypksdy"]}[${${"GLOBALS"}["pvjfxdghk"]}][${${"GLOBALS"}["upybmtnrf"]}]["auto_desc"] || (${${"GLOBALS"}["jtzrsenlstcd"]} == "copy") ? "" : ${${"GLOBALS"}["slbmltgj"]}[${${"GLOBALS"}["spzqlh"]}][${${"GLOBALS"}["hmpqmwtqct"]}]["description"]) : "");
}
$helper->fields_value["pp_qty_mode"] = ${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_mode"];
${"GLOBALS"}["spphabip"] = "id";
${"GLOBALS"}["plxnmaj"] = "helper";
$helper->fields_value["pp_display_mode"] = (int) ((${${"GLOBALS"}["tofaadf"]}["pp_display_mode"] & 1) == 1);
${"GLOBALS"}["zucnntm"] = "template";
$avnkgehspgu = "dimensions_form";
$helper->fields_value["pp_display_mode_retail_price"] = (int) ((${${"GLOBALS"}["qtoyhfti"]}["pp_display_mode"] & 2) == 2);
$helper->fields_value["pp_display_mode_base_unit_price"] = (int) ((${${"GLOBALS"}["rjtweympny"]}["pp_display_mode"] & 4) == 4);
$helper->fields_value["pp_price_display_mode"] = ${${"GLOBALS"}["qciujy"]}["pp_price_display_mode"];
$helper->fields_value["unit_price_ratio"] = ((float) ${${"GLOBALS"}["fauzwrvqgfhl"]}["pp_unit_price_ratio"] > 0 ? PP::formatQty(${${"GLOBALS"}["xdgtgabuy"]}["pp_unit_price_ratio"]) : "");
$helper->fields_value["minimal_price_ratio"] = ((float) ${$vnppfeiatm}["pp_minimal_price_ratio"] > 0 ? PP::formatQty(${${"GLOBALS"}["moexbd"]}["pp_minimal_price_ratio"]) : "");
$helper->fields_value["minimal_quantity"] = ((float) ${${"GLOBALS"}["kdwzpvrg"]}["pp_minimal_quantity"] > 0 ? PP::formatQty(${${"GLOBALS"}["xdgtgabuy"]}["pp_minimal_quantity"]) : "");
$helper->fields_value["default_quantity"] = ((float) ${$uhkuuqc}["pp_default_quantity"] > 0 ? PP::formatQty(${$zoungekg}["pp_default_quantity"]) : "");
$helper->fields_value["qty_step"] = ((float) ${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_step"] > 0 ? PP::formatQty(${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_step"]) : "");
$helper->fields_value["pp_css"] = ${${"GLOBALS"}["vowekrma"]}["pp_css"];
$helper->fields_value["pp_bo_qty_available_display"] = ${${"GLOBALS"}["xdgtgabuy"]}["pp_bo_qty_available_display"];
$helper->fields_value["pp_bo_measurement_system"] = ${${"GLOBALS"}["xdgtgabuy"]}["pp_bo_measurement_system"];
$helper->fields_value["pp_bo_hidden"] = ${${"GLOBALS"}["xdgtgabuy"]}["pp_bo_hidden"];
${${"GLOBALS"}["bdyzbjnxv"]} = (isset(${$kqsnyaooobdl}["pp_ext_method"]) && isset(${${"GLOBALS"}["xdgtgabuy"]}["pp_ext_prop"]) ? count(${$hrbvtef}["pp_ext_prop"]) : 0);
if (${${"GLOBALS"}["bdyzbjnxv"]} == 0)
${${"GLOBALS"}["nzxkutavxvo"]} = 0;
elseif (${${"GLOBALS"}["bdyzbjnxv"]} == 1)
${$umiaewjmnj} = 3;
else
${${"GLOBALS"}["wihlrbmq"]} = ${$fwtkclixry}["pp_ext_method"];
$helper->fields_value["pp_ext_method"] = ${$inwlnfsy};
$helper->fields_value["pp_ext_method_fallback"] = ${$fsqwlplybmr};
${"GLOBALS"}["hqrkps"] = "template";
$helper->fields_value["pp_ext_policy"] = (isset(${${"GLOBALS"}["xdgtgabuy"]}["pp_ext_policy"]) ? ${${"GLOBALS"}["xdgtgabuy"]}["pp_ext_policy"] : 0);
$ueoumpjqwcn = "all_properties";
if (${${"GLOBALS"}["uwrrrkmydvl"]}["pp_qty_policy"] == 2 && $helper->fields_value["pp_ext_method"] > 0)
$helper->fields_value["pp_qty_policy"] = 3;
else
$helper->fields_value["pp_qty_policy"] = ${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_policy"];
${${"GLOBALS"}["haprgnm"]} = $this->getTranslations("ppExt");
$frsbmykid = "hook_forms";
${$avnkgehspgu} = array(
"legend" => array(
"title" => $this->l("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 the multidimensional plugin from"),
"readme_url" => ($this->multidimensional_plugin ? $this->multidimensional_plugin->readme_url() : ""),
"readme_pdf" => $this->l("Multidimensional plugin user guide")
),
"input" => array(
array(
"type" => "select",
"label" => $this->l("calculation method"),
"name" => "pp_ext_method",
"options" => array(
"query" => array(
array(
"id" => 0,
"name" => " "
),
array(
"id" => 1,
"name" => ${$soyakiovrklu}["s_multiplication"]
),
array(
"id" => 2,
"name" => ${${"GLOBALS"}["haprgnm"]}["s_summation"]
),
array(
"id" => 3,
"name" => ${${"GLOBALS"}["haprgnm"]}["s_single_dimension"]
)
),
"id" => "id",
"name" => "name"
)
),
array(
"type" => "hidden",
"name" => "pp_ext_method_fallback"
),
$this->createHelperFormSelect("pp_ext_title", array(
"label" => $this->l("dimensions block title"),
"form_group_class" => "dimensions-toggle"
), self::DIMENSIONS, ${${"GLOBALS"}["indyuetd"]}, ${$uhdrlpetlnh}, ${${"GLOBALS"}["zgqpnmsxyav"]}, ${${"GLOBALS"}["eitmqnhh"]}),
$this->createHelperFormSelect("pp_ext_property", array(
"label" => $this->l("calculation result label"),
"desc" => $this->l("leave blank to hide calculation result"),
"form_group_class" => "dimensions-toggle"
), self::DIMENSIONS, ${${"GLOBALS"}["tdyecpibwv"]}, ${$sjjyex}, ${$ueoumpjqwcn}, ${${"GLOBALS"}["eitmqnhh"]}),
$this->createHelperFormSelect("pp_ext_text", array(
"label" => $this->l("calculation result text"),
"form_group_class" => "dimensions-toggle"
), array(
self::PROPERTY_TYPE_GENERAL,
self::DIMENSIONS
), ${${"GLOBALS"}["pwbjnuuhz"]}, ${${"GLOBALS"}["zucnntm"]}, ${${"GLOBALS"}["blzlcdre"]}, ${$cryzvlcjfn}),
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 or used as the product properties affecting price, visible in the shop and editable only in the back office"),
"form_group_class" => "dimensions-toggle",
"values" => array(
array(
"id" => "pp_ext_policy_0",
"value" => 0,
"label" => $this->l("default")
),
array(
"id" => "pp_ext_policy_1",
"value" => 1,
"label" => $this->l("packs calculator")
),
array(
"id" => "pp_ext_policy_2",
"value" => 2,
"label" => $this->l("product properties")
)
)
)
),
"buttons" => ${${"GLOBALS"}["exjgnupkx"]}
);
${${"GLOBALS"}["kexpentgpyfm"]}["dimensions-table"] = array(
"th" => 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 **")
),
"tbody" => array()
);
${${"GLOBALS"}["ytdfwuijoqb"]} = (isset(${${"GLOBALS"}["hqrkps"]}["pp_ext_prop"]) ? count(${$zshdzgukjj}["pp_ext_prop"]) : 3);
if (${${"GLOBALS"}["yxggsusyg"]} < 3)
${${"GLOBALS"}["euhlgmq"]} = 3;
for (${$pkjrnbqw} = 1; ${${"GLOBALS"}["ppabgxvyddij"]} <= ${$odtdtgtpf}; ${${"GLOBALS"}["ppabgxvyddij"]}++) {
$uwwlfibc = "td";
${"GLOBALS"}["rfukduucy"] = "td";
$mwctfuhgxn = "template";
$qqqkoofrzpqv = "property_types";
${"GLOBALS"}["mvnqkvk"] = "dimension_index";
$ugnkoljgev = "template";
$jvrbjwip = "dimension_index";
$ervftpzumv = "helper";
$stdjepxygc = "dimension_index";
${$uwwlfibc} = array();
$vnqvkwiys = "dimension_index";
${"GLOBALS"}["pehtqj"] = "td";
${"GLOBALS"}["bypylektwi"] = "template";
${"GLOBALS"}["mpiedqvjjkv"] = "td";
$wqljrtxjezm = "template";
${"GLOBALS"}["igxucfjq"] = "property_types";
$hpvizjudp = "td";
$yhwaphcktmm = "dimension_index";
${"GLOBALS"}["wnxyehdoox"] = "td";
${"GLOBALS"}["bmavmdfmt"] = "value";
${${"GLOBALS"}["bmavmdfmt"]} = PP::getTemplateExtProperty(${${"GLOBALS"}["bypylektwi"]}, ${${"GLOBALS"}["ppabgxvyddij"]}, "property");
$bqrulcdvqmvi = "dimension_index";
${"GLOBALS"}["vqwcgjkmbks"] = "dimension_index";
${"GLOBALS"}["ykmldxj"] = "all_properties";
$xrstvrhmrrtn = "dimension_index";
${"GLOBALS"}["veglpqntx"] = "dimension_index";
$soesyvmrc = "dimension_index";
$nschjf = "dimension_index";
${"GLOBALS"}["bxosjpfgcf"] = "property_types";
${"GLOBALS"}["cgcbhcbt"] = "dimension_index";
${"GLOBALS"}["plffkdm"] = "dimension_index";
${"GLOBALS"}["ypwgdry"] = "dimension_index";
${"GLOBALS"}["wehguiwgn"] = "dimension_index";
$mpvmthkmcmk = "dimension_index";
$ypnbnxc = "dimension_index";
${${"GLOBALS"}["mpiedqvjjkv"]}[] = $this->createHelperFormSelect("dimension_" . ${$bqrulcdvqmvi}, array(
"data_type" => "dimension_",
"data_position" => ${$vnqvkwiys}
), self::PROPERTY_TYPE_EXT, ${$ervftpzumv}, ${${"GLOBALS"}["wihlrbmq"]}, ${${"GLOBALS"}["blzlcdre"]}, ${${"GLOBALS"}["bxosjpfgcf"]});
$rmrlemm = "template";
$giwnoznwre = "value";
${"GLOBALS"}["cluldmntm"] = "value";
$hcgpdgpv = "template";
${"GLOBALS"}["ilthfgi"] = "dimension_index";
$icfqdnw = "dimension_index";
${"GLOBALS"}["dsvnpohowk"] = "dimension_index";
${${"GLOBALS"}["cluldmntm"]} = PP::getTemplateExtProperty(${$rmrlemm}, ${${"GLOBALS"}["ppabgxvyddij"]}, "text");
${"GLOBALS"}["bshkrsrrebo"] = "template";
$mlywyoyqf = "dimension_index";
$nawqdx = "value";
${${"GLOBALS"}["rfukduucy"]}[] = $this->createHelperFormSelect("dimension_text_" . ${${"GLOBALS"}["ilthfgi"]}, array(
"data_type" => "dimension_text_",
"data_position" => ${${"GLOBALS"}["cgcbhcbt"]}
), array(
self::PROPERTY_TYPE_GENERAL,
self::DIMENSIONS
), ${${"GLOBALS"}["tdyecpibwv"]}, ${$nawqdx}, ${${"GLOBALS"}["blzlcdre"]}, ${${"GLOBALS"}["igxucfjq"]});
$gudpossjyxrh = "dimension_index";
${"GLOBALS"}["lxugygih"] = "helper";
${${"GLOBALS"}["pehtqj"]}[] = array(
"type" => "text",
"name" => "dimension_minimum_quantity_" . ${$mpvmthkmcmk},
"data_type" => "dimension_minimum_quantity_",
"data_position" => ${$gudpossjyxrh}
);
${$hpvizjudp}[] = array(
"type" => "text",
"name" => "dimension_maximum_quantity_" . ${${"GLOBALS"}["plffkdm"]},
"data_type" => "dimension_maximum_quantity_",
"data_position" => ${$ypnbnxc}
);
${${"GLOBALS"}["tidrgusborv"]}[] = array(
"type" => "text",
"name" => "dimension_default_quantity_" . ${$stdjepxygc},
"data_type" => "dimension_default_quantity_",
"data_position" => ${${"GLOBALS"}["ppabgxvyddij"]}
);
${${"GLOBALS"}["wnxyehdoox"]}[] = array(
"type" => "text",
"name" => "dimension_qty_step_" . ${${"GLOBALS"}["ppabgxvyddij"]},
"data_type" => "dimension_qty_step_",
"data_position" => ${${"GLOBALS"}["ppabgxvyddij"]}
);
$pxhdklmwtb = "template";
${"GLOBALS"}["nbmkwjfsybuo"] = "td";
${${"GLOBALS"}["nbmkwjfsybuo"]}[] = array(
"type" => "text",
"name" => "dimension_qty_ratio_" . ${$jvrbjwip},
"data_type" => "dimension_qty_ratio_",
"data_position" => ${$icfqdnw}
);
$helper->fields_value["dimension_minimum_quantity_" . ${$mlywyoyqf}] = ((float) PP::getTemplateExtProperty(${$ugnkoljgev}, ${${"GLOBALS"}["ppabgxvyddij"]}, "minimum_quantity") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${$pxhdklmwtb}, ${${"GLOBALS"}["ppabgxvyddij"]}, "minimum_quantity")) : "");
$helper->fields_value["dimension_maximum_quantity_" . ${${"GLOBALS"}["ppabgxvyddij"]}] = ((float) PP::getTemplateExtProperty(${${"GLOBALS"}["xdgtgabuy"]}, ${${"GLOBALS"}["ppabgxvyddij"]}, "maximum_quantity") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${${"GLOBALS"}["xdgtgabuy"]}, ${${"GLOBALS"}["dsvnpohowk"]}, "maximum_quantity")) : "");
$helper->fields_value["dimension_default_quantity_" . ${${"GLOBALS"}["ppabgxvyddij"]}] = ((float) PP::getTemplateExtProperty(${${"GLOBALS"}["xdgtgabuy"]}, ${${"GLOBALS"}["ypwgdry"]}, "default_quantity") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${${"GLOBALS"}["xdgtgabuy"]}, ${${"GLOBALS"}["wehguiwgn"]}, "default_quantity")) : "");
$helper->fields_value["dimension_qty_step_" . ${${"GLOBALS"}["vqwcgjkmbks"]}] = ((float) PP::getTemplateExtProperty(${$hcgpdgpv}, ${${"GLOBALS"}["ppabgxvyddij"]}, "qty_step") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${$mwctfuhgxn}, ${$nschjf}, "qty_step")) : "");
$helper->fields_value["dimension_qty_ratio_" . ${$yhwaphcktmm}] = ((float) PP::getTemplateExtProperty(${${"GLOBALS"}["bshkrsrrebo"]}, ${$soesyvmrc}, "qty_ratio") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${${"GLOBALS"}["xdgtgabuy"]}, ${${"GLOBALS"}["veglpqntx"]}, "qty_ratio")) : "");
${$giwnoznwre} = PP::getTemplateExtProperty(${$wqljrtxjezm}, ${${"GLOBALS"}["ppabgxvyddij"]}, "order_text");
${${"GLOBALS"}["tidrgusborv"]}[] = $this->createHelperFormSelect("dimension_order_text_" . ${${"GLOBALS"}["mvnqkvk"]}, array(
"data_type" => "dimension_order_text_",
"data_position" => ${$xrstvrhmrrtn}
), array(
self::PROPERTY_TYPE_GENERAL,
self::DIMENSIONS
), ${${"GLOBALS"}["lxugygih"]}, ${${"GLOBALS"}["wihlrbmq"]}, ${${"GLOBALS"}["ykmldxj"]}, ${$qqqkoofrzpqv});
${${"GLOBALS"}["qiehvqxkpjd"]}["dimensions-table"]["tbody"][] = array(
"tr" => array(
"td" => ${${"GLOBALS"}["tidrgusborv"]}
)
);
}
${${"GLOBALS"}["qiehvqxkpjd"]}["help-block"] = array(
"class" => "dimensions-toggle",
"text" => array(
"* " . $this->l("quantity text is used on the product page in the shop"),
"** " . $this->l("order quantity text is used in order and invoice")
)
);
if ($this->multidimensional_plugin)
${${"GLOBALS"}["qiehvqxkpjd"]}["multidimensionalAdmin"] = "multidimensionalAdmin";
${${"GLOBALS"}["wflgczcfxyuj"]} = array(
"form" => ${${"GLOBALS"}["avfywftychvo"]},
"dimensions_form" => ${${"GLOBALS"}["xcikibqvcxo"]}
);
${${"GLOBALS"}["gmfohcc"]} = Hook::exec("ppropertiesAdmin", array(
"mode" => "displayEditTemplateForm",
"id_pp_template" => ${${"GLOBALS"}["wxvtdcjnurn"]}
), null, true);
if (is_array(${$frsbmykid})) {
foreach (${${"GLOBALS"}["tgvrjwvlmo"]} as ${${"GLOBALS"}["wrcdlexlywx"]} => ${${"GLOBALS"}["qntborjqec"]}) {
if (isset(${${"GLOBALS"}["qntborjqec"]}["form"])) {
${"GLOBALS"}["eucveek"] = "hook_form";
if (!isset(${${"GLOBALS"}["eucveek"]}["form"]["buttons"]))
${${"GLOBALS"}["qntborjqec"]}["form"]["buttons"] = ${${"GLOBALS"}["fcvjuubrjy"]};
$xkkcvbo = "hook_form";
${${"GLOBALS"}["muzvpniy"]}[${${"GLOBALS"}["wrcdlexlywx"]} . "_form"] = ${$xkkcvbo}["form"];
}
}
}
${${"GLOBALS"}["kudlaywxu"]} = $this->generateForm(${${"GLOBALS"}["plxnmaj"]}, ${${"GLOBALS"}["muzvpniy"]}, array(
"id_pp_template" => ${${"GLOBALS"}["spphabip"]},
"multidimensional" => $this->multidimensional_plugin,
"script" => array(
"multidimensional"
)
));
return ${$mdgspt};
}
private function getEditPropertyTabHtml($properties, $mode, $title)
{
$kqdyunkrso = "mode";
$cwnmcdsiowe = "type";
$ttodvsoxa = "id";
${"GLOBALS"}["rpoonef"] = "id";
${"GLOBALS"}["ascxxalmbytu"] = "form";
if (!$this->integrated)
return "";
$ggkkwwvf = "helper";
$awqlwhislpo = "mode";
${${"GLOBALS"}["wrrvedhoqj"]} = (int) Tools::getValue("type");
if (${$kqdyunkrso} == "add") {
${${"GLOBALS"}["wxvtdcjnurn"]} = 0;
if (${${"GLOBALS"}["yjwrsfxqsk"]} == null) {
$rumreyy = "language";
foreach ($this->active_languages as ${$rumreyy}) {
${"GLOBALS"}["dpnbein"] = "property";
$oobbeabydb = "property";
${"GLOBALS"}["sgkyoooxrsmf"] = "type";
$okhchlfltr = "property";
${$oobbeabydb} = array();
$xfhulivjed = "property";
${${"GLOBALS"}["cxkdyuz"]}["id_pp_property"] = ${${"GLOBALS"}["wxvtdcjnurn"]};
$gvxkplu = "properties";
${${"GLOBALS"}["dpnbein"]}["type"] = ${${"GLOBALS"}["sgkyoooxrsmf"]};
${"GLOBALS"}["ujmowqyic"] = "id";
${$okhchlfltr}["text"] = "";
${$gvxkplu}[${${"GLOBALS"}["gfzancjl"]}["id_lang"]][${${"GLOBALS"}["ujmowqyic"]}] = ${$xfhulivjed};
}
}
} else {
${"GLOBALS"}["pyplmvmedbq"] = "id";
${"GLOBALS"}["ruvgytip"] = "properties";
${${"GLOBALS"}["pyplmvmedbq"]} = (int) Tools::getValue("id");
if (${${"GLOBALS"}["ruvgytip"]} == null)
${${"GLOBALS"}["yjwrsfxqsk"]} = $this->getAllProperties();
}
${${"GLOBALS"}["tdyecpibwv"]} = $this->createHelperForm("pp_property_form", ${${"GLOBALS"}["sfnigiukwgfk"]}, "submitSaveProperty", "icon-edit");
${${"GLOBALS"}["avfywftychvo"]} = array(
"input" => array(
array(
"label" => $this->l("ID"),
"type" => "div",
"name" => ${$ttodvsoxa},
"class" => "control-text",
"condition" => (${${"GLOBALS"}["jtzrsenlstcd"]} == "edit")
),
array(
"label" => $this->l("Text"),
"type" => "text",
"name" => "text_input",
"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" => $this->l("Cancel"),
"type" => "submit",
"name" => "cancelSaveProperty",
"icon" => "process-icon-cancel"
)
)
);
$zlxwwafu = "id_pp_property";
$helper->fields_value["id"] = ${${"GLOBALS"}["rpoonef"]};
$helper->fields_value["mode"] = ${$awqlwhislpo};
$helper->fields_value["type"] = ${$cwnmcdsiowe};
$helper->fields_value["text_input"] = array();
foreach (${${"GLOBALS"}["yjwrsfxqsk"]}[$this->default_language_id] as ${$zlxwwafu} => ${${"GLOBALS"}["cxkdyuz"]}) {
if (${${"GLOBALS"}["lnyrlhvbyj"]} == ${${"GLOBALS"}["wxvtdcjnurn"]}) {
foreach ($this->active_languages as ${${"GLOBALS"}["gfzancjl"]}) {
${${"GLOBALS"}["spzqlh"]} = ${${"GLOBALS"}["gfzancjl"]}["id_lang"];
$zoufqydxwra = "id";
$helper->fields_value["text_input"][${${"GLOBALS"}["spzqlh"]}] = PP::safeOutputValue(${${"GLOBALS"}["yjwrsfxqsk"]}[${${"GLOBALS"}["spzqlh"]}][${$zoufqydxwra}]["text"]);
}
break;
}
}
return $this->generateForm(${$ggkkwwvf}, ${${"GLOBALS"}["ascxxalmbytu"]});
}
private function getTabIntegrationWarning()
{
return $this->l("Please go to the "Settings" tab and resolve the integration problems.");
}
private function showIntegrationTestResults($results)
{
${"GLOBALS"}["lhlwtydj"] = "results";
${"GLOBALS"}["usxcbjfy"] = "value";
foreach (${${"GLOBALS"}["ngbhewlvcvdt"]} as &${${"GLOBALS"}["usxcbjfy"]}) {
$nskdvvonjmk = "value";
if (is_array(${${"GLOBALS"}["wihlrbmq"]}))
asort(${$nskdvvonjmk});
}
return ${${"GLOBALS"}["lhlwtydj"]};
}
private function tplVars()
{
${"GLOBALS"}["iquywpualzm"] = "current";
$prbdcxwj = "token";
${"GLOBALS"}["tqwfguyr"] = "token";
$vntgbwyxmsu = "token";
${${"GLOBALS"}["tqwfguyr"]} = Tools::getAdminTokenLite("AdminModules");
${${"GLOBALS"}["nplpidymecvc"]} = AdminController::${${"GLOBALS"}["oeyteiuq"]} . "&configure=" . $this->name;
$fnatslj = "current";
return array(
"_PS_ADMIN_IMG_" => _PS_ADMIN_IMG_,
"current" => ${${"GLOBALS"}["iquywpualzm"]},
"currenturl" => ${$fnatslj} . "&token=" . ${$vntgbwyxmsu} . "&pp=1&",
"token" => ${$prbdcxwj}
);
}
private function createTemplate($name)
{
${${"GLOBALS"}["tdyecpibwv"]} = new Helper();
$helper->module = $this;
$helper->base_folder = "pproperties/";
${"GLOBALS"}["cmdlmkiiyu"] = "current";
$helper->base_tpl = ${${"GLOBALS"}["afkajse"]} . ".tpl";
$helper->setTpl($helper->base_tpl);
${${"GLOBALS"}["lbuxhzitih"]} = Tools::getAdminTokenLite("AdminModules");
${"GLOBALS"}["ccoporko"] = "token";
${"GLOBALS"}["agvsytokp"] = "helper";
${${"GLOBALS"}["nplpidymecvc"]} = AdminController::${${"GLOBALS"}["oeyteiuq"]} . "&configure=" . $this->name;
$helper->tpl_vars["_PS_ADMIN_IMG_"] = _PS_ADMIN_IMG_;
$helper->tpl_vars["current"] = ${${"GLOBALS"}["nplpidymecvc"]};
$helper->tpl_vars["currenturl"] = ${${"GLOBALS"}["cmdlmkiiyu"]} . "&token=" . ${${"GLOBALS"}["ccoporko"]} . "&pp=1&";
$helper->tpl_vars["token"] = ${${"GLOBALS"}["lbuxhzitih"]};
return ${${"GLOBALS"}["agvsytokp"]};
}
private function createHelperForm($id_form, $form_title, $submit_action, $icon = null)
{
$cptwbtm = "first_call";
$fwyptf = "helper";
static $first_call = true;
${$fwyptf} = new HelperForm();
$helper->first_call = ${${"GLOBALS"}["jtqeusnc"]};
${$cptwbtm} = false;
$helper->module = $this;
$helper->title = $this->displayName;
$okznmoirg = "currentIndex";
${"GLOBALS"}["vhnnoxdvvj"] = "icon";
$helper->name_controller = $this->name;
$helper->base_tpl = "pproperties_form.tpl";
$helper->token = Tools::getAdminTokenLite("AdminModules");
$helper->languages = $this->active_languages;
$lyivintdcey = "submit_action";
$helper->currentIndex = AdminController::${$okznmoirg} . "&configure=" . $this->name;
$helper->default_form_language = $this->default_language_id;
$helper->allow_employee_form_lang = $this->context->controller->allow_employee_form_lang;
$helper->toolbar_scroll = true;
$helper->submit_action = "";
$helper->id_form = ${${"GLOBALS"}["aropukwbbww"]};
$ugzmoltyqby = "helper";
$helper->pp_form = array(
"legend" => array(
"title" => ${${"GLOBALS"}["jvvmklqgy"]}
),
"submit" => array(
"title" => $this->l("Save"),
"id" => ${${"GLOBALS"}["aropukwbbww"]} . "_submit_btn",
"name" => ${$lyivintdcey},
"class" => "btn btn-default pull-right pp-action-btn"
)
);
if (${${"GLOBALS"}["xjosinwbslmm"]} !== null)
$helper->pp_form["legend"]["icon"] = ${${"GLOBALS"}["vhnnoxdvvj"]};
return ${$ugzmoltyqby};
}
private function createHelperFormSelect($name, $data, $type, $helper, $template, $all_properties, $property_types)
{
${"GLOBALS"}["wpzmkvhtje"] = "select";
${"GLOBALS"}["qdstabb"] = "type";
${"GLOBALS"}["goxexotg"] = "type";
${"GLOBALS"}["lpnishvjb"] = "options";
if (${${"GLOBALS"}["goxexotg"]} !== false && !is_array(${${"GLOBALS"}["wrrvedhoqj"]}))
${${"GLOBALS"}["qdstabb"]} = array(
${${"GLOBALS"}["wrrvedhoqj"]}
);
$bomnvglecvfd = "id";
${${"GLOBALS"}["lpnishvjb"]} = array();
${"GLOBALS"}["hcyjixplxpan"] = "select";
$helper->fields_value[${${"GLOBALS"}["afkajse"]}] = 0;
${${"GLOBALS"}["ufejmefru"]}[] = array(
"id" => 0,
"name" => " "
);
foreach (${${"GLOBALS"}["blzlcdre"]}[$this->default_language_id] as ${$bomnvglecvfd} => ${${"GLOBALS"}["wifjgbmr"]}) {
$aynlhqcuqnn = "type";
if (${$aynlhqcuqnn} === false || in_array(${${"GLOBALS"}["eitmqnhh"]}[${${"GLOBALS"}["wxvtdcjnurn"]}], ${${"GLOBALS"}["wrrvedhoqj"]})) {
$pknxtsp = "prop";
${${"GLOBALS"}["ufejmefru"]}[] = array(
"id" => ${${"GLOBALS"}["wxvtdcjnurn"]},
"name" => PP::safeOutputValue(${$pknxtsp}["text"])
);
if (is_array(${${"GLOBALS"}["xdgtgabuy"]})) {
${"GLOBALS"}["eoyxfmwoi"] = "template";
$efyjughlwa = "id";
if (isset(${${"GLOBALS"}["xdgtgabuy"]}[${${"GLOBALS"}["afkajse"]}]) && ${${"GLOBALS"}["eoyxfmwoi"]}[${${"GLOBALS"}["afkajse"]}] == ${${"GLOBALS"}["wifjgbmr"]}["text"])
$helper->fields_value[${${"GLOBALS"}["afkajse"]}] = ${$efyjughlwa};
} else {
$yssjyvhju = "id";
${"GLOBALS"}["rmcoviowlfs"] = "name";
$ctddumhcfj = "template";
if (${$ctddumhcfj} == ${${"GLOBALS"}["wifjgbmr"]}["text"])
$helper->fields_value[${${"GLOBALS"}["rmcoviowlfs"]}] = ${$yssjyvhju};
}
}
}
${${"GLOBALS"}["wpzmkvhtje"]} = array(
"type" => "select",
"name" => ${${"GLOBALS"}["afkajse"]},
"options" => array(
"query" => ${${"GLOBALS"}["ufejmefru"]},
"id" => "id",
"name" => "name"
)
);
if (is_array(${${"GLOBALS"}["ggpipj"]})) {
${"GLOBALS"}["cyiqsh"] = "value";
$gnspeqpbku = "data";
$sojbqdqv = "value";
foreach (${$gnspeqpbku} as ${${"GLOBALS"}["nzemrj"]} => ${${"GLOBALS"}["cyiqsh"]})
${${"GLOBALS"}["pwmmlgrhvofw"]}[${${"GLOBALS"}["nzemrj"]}] = ${$sojbqdqv};
}
return ${${"GLOBALS"}["hcyjixplxpan"]};
}
private function generateForm($helper, $form, $tpl_vars = null)
{
$biorpqfi = "form";
${"GLOBALS"}["fumobbs"] = "form";
${"GLOBALS"}["tqvvxpigi"] = "form";
$wymeiktkqelp = "form";
${${"GLOBALS"}["tdkemojv"]} = array(
"form" => array()
);
${"GLOBALS"}["wppabbhcco"] = "form";
$trgdjs = "form";
${"GLOBALS"}["enxawvllbxu"] = "key";
if (!isset(${${"GLOBALS"}["fumobbs"]}["form"]))
${${"GLOBALS"}["wppabbhcco"]} = array(
"form" => ${${"GLOBALS"}["tqvvxpigi"]}
);
if (!isset(${$biorpqfi}["form"]["id_form"]) && isset($helper->id_form))
${$wymeiktkqelp}["form"]["id_form"] = $helper->id_form;
foreach (${$trgdjs} as ${${"GLOBALS"}["enxawvllbxu"]} => ${${"GLOBALS"}["qbdszvuv"]}) {
$rmoobmnv = "key";
$mwkyjvk = "f";
${${"GLOBALS"}["tdkemojv"]}[${$rmoobmnv}] = array(
"form" => array_merge($helper->pp_form, ${$mwkyjvk})
);
$rmyznlexvb = "vars";
if (isset(${$rmyznlexvb}[${${"GLOBALS"}["nzemrj"]}]["form"]["buttons"]) && ${${"GLOBALS"}["tdkemojv"]}[${${"GLOBALS"}["nzemrj"]}]["form"]["buttons"] === false) {
$ubdxebl = "key";
$jnaxvhz = "vars";
unset(${${"GLOBALS"}["tdkemojv"]}[${$ubdxebl}]["form"]["buttons"]);
unset(${$jnaxvhz}[${${"GLOBALS"}["nzemrj"]}]["form"]["submit"]);
}
}
if (is_array(${${"GLOBALS"}["tbdgkcksxxp"]})) {
${"GLOBALS"}["usdobshdv"] = "value";
${"GLOBALS"}["qfjibwlf"] = "value";
${"GLOBALS"}["ufbftpm"] = "tpl_vars";
foreach (${${"GLOBALS"}["ufbftpm"]} as ${${"GLOBALS"}["nzemrj"]} => ${${"GLOBALS"}["usdobshdv"]})
${${"GLOBALS"}["tdkemojv"]}["form"][${${"GLOBALS"}["nzemrj"]}] = ${${"GLOBALS"}["qfjibwlf"]};
}
$ndgmtvymr = "vars";
${$ndgmtvymr}["form"]["_PS_ADMIN_IMG_"] = _PS_ADMIN_IMG_;
${${"GLOBALS"}["tdkemojv"]}["form"]["form"]["input"][] = array(
"type" => "hidden",
"name" => "pp"
);
$helper->fields_value["pp"] = 1;
return $helper->generateForm(${${"GLOBALS"}["tdkemojv"]});
}
private function saveTemplate()
{
$rddlkjvkay = "result";
$tnqjxxmnke = "ext_method";
$emsemrbj = "unit_price_ratio";
${$rddlkjvkay} = array();
${${"GLOBALS"}["jfzrwspqudr"]}["error"] = "";
$rzxfnmo = "hidden";
$tmlgdt = "mode";
$irpcclv = "mode";
$ieyhygndymx = "pp_bo_qty_available_display";
${"GLOBALS"}["whjlucoyef"] = "qty_policy";
${$irpcclv} = Tools::getValue("mode");
${"GLOBALS"}["tvnspp"] = "qty_mode";
$wfkocui = "id";
$tmcbwyolnr = "result";
if (${${"GLOBALS"}["jtzrsenlstcd"]} == "add")
${${"GLOBALS"}["wxvtdcjnurn"]} = 0;
elseif (${$tmlgdt} == "copy")
${${"GLOBALS"}["wxvtdcjnurn"]} = (int) Tools::getValue("id");
else {
${"GLOBALS"}["ddlpgyt"] = "mode";
${${"GLOBALS"}["ddlpgyt"]} = "edit";
${${"GLOBALS"}["wxvtdcjnurn"]} = (int) Tools::getValue("id");
}
$mgcadncn = "template_properties";
$gfkkklqukobk = "qty_policy";
$upcadlqbd = "qty_policy";
$lugzexbn = "templates";
${"GLOBALS"}["njvfynu"] = "display_mode";
if (${$wfkocui} < 0)
return ${$tmcbwyolnr};
$wkuhfcb = "display_mode";
${${"GLOBALS"}["kvgnhsw"]} = array();
${"GLOBALS"}["dxbhntjvmxn"] = "display_mode";
${$lugzexbn} = array();
${${"GLOBALS"}["tgxhyezjcr"]} = array();
$jedije = "language";
${"GLOBALS"}["cvbfrmf"] = "ext_method";
${${"GLOBALS"}["tgxhyezjcr"]}["pp_explanation"] = (int) Tools::getValue("pp_explanation");
${${"GLOBALS"}["tgxhyezjcr"]}["pp_price_text"] = (int) Tools::getValue("pp_price_text");
$jsigjnuw = "qty_policy";
${"GLOBALS"}["jyimwbirssg"] = "errors";
${$mgcadncn}["pp_qty_text"] = (int) Tools::getValue("pp_qty_text");
$pbswokrfrylj = "price_display_mode";
${${"GLOBALS"}["tgxhyezjcr"]}["pp_unity_text"] = (int) Tools::getValue("pp_unity_text");
${"GLOBALS"}["vlxfreothpc"] = "qty_policy";
${$tnqjxxmnke} = (int) Tools::getValue($this->multidimensional_plugin ? "pp_ext_method" : "pp_ext_method_fallback");
if (${${"GLOBALS"}["cvbfrmf"]} == 3)
${${"GLOBALS"}["gonnrijqlsq"]} = 2;
${${"GLOBALS"}["dxbhntjvmxn"]} = ((int) Tools::getValue("pp_display_mode") != 0 ? 1 : 0);
$kythxtvzju = "qty_policy";
if ((int) Tools::getValue("pp_display_mode_retail_price", 0) > 0)
${$wkuhfcb} += 2;
if ((int) Tools::getValue("pp_display_mode_base_unit_price", 0) > 0)
${${"GLOBALS"}["njvfynu"]} += 4;
${${"GLOBALS"}["odmumgrv"]} = (int) Tools::getValue("pp_price_display_mode");
if (!in_array(${$pbswokrfrylj}, array(
0,
1,
16
)))
${${"GLOBALS"}["odmumgrv"]} = 0;
${$rzxfnmo} = ((int) Tools::getValue("pp_bo_hidden", 0) == 1 ? 1 : 0);
${"GLOBALS"}["nfqdqkhngx"] = "result";
${"GLOBALS"}["aohtzby"] = "default_quantity";
${${"GLOBALS"}["gqhtrwyjugyc"]} = (int) Tools::getValue("pp_bo_qty_available_display");
if (!in_array(${$ieyhygndymx}, array(
0,
1,
2
)))
${${"GLOBALS"}["gqhtrwyjugyc"]} = 0;
${${"GLOBALS"}["nnemhhnkit"]} = (int) Tools::getValue("pp_bo_measurement_system");
${$emsemrbj} = $this->getFloatValue("unit_price_ratio");
${${"GLOBALS"}["mlwdvypzyt"]} = $this->getFloatValue("minimal_price_ratio");
${${"GLOBALS"}["hltnrfg"]} = (int) Tools::getValue("pp_qty_policy", 0);
${$jsigjnuw} = (${$kythxtvzju} == 3 ? 2 : ${${"GLOBALS"}["vlxfreothpc"]});
if (${${"GLOBALS"}["gonnrijqlsq"]} > 0) {
${"GLOBALS"}["vvvdypl"] = "qty_policy";
${"GLOBALS"}["rommwltjgxs"] = "ext_policy";
${${"GLOBALS"}["fkxhhpgqrh"]} = (int) Tools::getValue("pp_ext_policy", 0);
if (!in_array(${${"GLOBALS"}["fkxhhpgqrh"]}, array(
0,
1,
2
)))
${${"GLOBALS"}["fkxhhpgqrh"]} = 0;
${${"GLOBALS"}["vvvdypl"]} = (${${"GLOBALS"}["rommwltjgxs"]} == 1 ? 0 : 2);
}
${${"GLOBALS"}["tvnspp"]} = (${$gfkkklqukobk} ? ((int) Tools::getValue("pp_qty_mode") != 0 ? 1 : 0) : 0);
${${"GLOBALS"}["wfiacasbx"]} = (${${"GLOBALS"}["whjlucoyef"]} == 2 ? $this->getFloatValue("minimal_quantity") : (int) Tools::getValue("minimal_quantity"));
${${"GLOBALS"}["aohtzby"]} = (${$upcadlqbd} == 2 ? $this->getFloatValue("default_quantity") : (int) Tools::getValue("default_quantity"));
${${"GLOBALS"}["esrnlxhgm"]} = (${${"GLOBALS"}["hltnrfg"]} == 2 ? $this->getFloatValue("qty_step") : (int) Tools::getValue("qty_step"));
${${"GLOBALS"}["vnpzqawf"]} = PP::resolveMS(${${"GLOBALS"}["nnemhhnkit"]});
foreach ($this->active_languages as ${$jedije}) {
${"GLOBALS"}["uvtwgtvlqeri"] = "data";
$nmihmj = "qty_mode";
${"GLOBALS"}["rhzxskdx"] = "data";
$qaybtp = "data";
${"GLOBALS"}["pqkjkumrd"] = "default_quantity";
$fxnhppucudb = "language";
$hmgjbwxj = "price_display_mode";
${"GLOBALS"}["ufywcbtx"] = "id_lang";
$oeeclzx = "data";
$ytrfxhbqcug = "data";
$nvfheuiu = "data";
${${"GLOBALS"}["ufywcbtx"]} = ${$fxnhppucudb}["id_lang"];
${${"GLOBALS"}["xdgtgabuy"]} = array();
${"GLOBALS"}["pxjfprwapd"] = "data";
${${"GLOBALS"}["rhzxskdx"]} = array();
${${"GLOBALS"}["ggpipj"]}["id_pp_template"] = ${${"GLOBALS"}["wxvtdcjnurn"]};
${"GLOBALS"}["zihcelkzsh"] = "templates";
$ojfvwen = "template";
${${"GLOBALS"}["pxjfprwapd"]}["qty_policy"] = ${${"GLOBALS"}["hltnrfg"]};
$juxoxx = "minimal_price_ratio";
${${"GLOBALS"}["ggpipj"]}["qty_mode"] = ${$nmihmj};
${${"GLOBALS"}["uvtwgtvlqeri"]}["display_mode"] = ${${"GLOBALS"}["wqvdphv"]};
${"GLOBALS"}["byspfsimb"] = "id_lang";
${$oeeclzx}["price_display_mode"] = ${$hmgjbwxj};
$mafxhd = "data";
${${"GLOBALS"}["ggpipj"]}["measurement_system"] = ${${"GLOBALS"}["nnemhhnkit"]};
$nlcupq = "id";
${"GLOBALS"}["xtwgsyqa"] = "data";
${${"GLOBALS"}["ggpipj"]}["unit_price_ratio"] = ${${"GLOBALS"}["nfysqouy"]};
${"GLOBALS"}["lfoqyoyf"] = "template";
${${"GLOBALS"}["ggpipj"]}["minimal_price_ratio"] = ${$juxoxx};
${"GLOBALS"}["wfpsrpwnyw"] = "data";
${${"GLOBALS"}["ggpipj"]}["minimal_quantity"] = ${${"GLOBALS"}["wfiacasbx"]};
${$qaybtp}["default_quantity"] = ${${"GLOBALS"}["pqkjkumrd"]};
${$mafxhd}["qty_step"] = ${${"GLOBALS"}["esrnlxhgm"]};
${${"GLOBALS"}["xtwgsyqa"]}["ext"] = (${${"GLOBALS"}["gonnrijqlsq"]} > 0 ? 1 : 0);
${$nvfheuiu}["qty_available_display"] = ${${"GLOBALS"}["gqhtrwyjugyc"]};
${${"GLOBALS"}["ggpipj"]}["hidden"] = ${${"GLOBALS"}["rsaduvhe"]};
${${"GLOBALS"}["ggpipj"]}["css"] = Tools::getValue("pp_css");
${$ytrfxhbqcug}["template_properties"] = ${${"GLOBALS"}["tgxhyezjcr"]};
PP::calcProductProperties(${$ojfvwen}, ${${"GLOBALS"}["wfpsrpwnyw"]});
$this->getValue(${${"GLOBALS"}["xdgtgabuy"]}, "name", $this->l("name:"), ${${"GLOBALS"}["kvgnhsw"]}, ${${"GLOBALS"}["spzqlh"]});
${${"GLOBALS"}["lfoqyoyf"]}["description"] = Tools::getValue("description_input_" . ${${"GLOBALS"}["spzqlh"]});
${${"GLOBALS"}["zihcelkzsh"]}[${${"GLOBALS"}["byspfsimb"]}][${$nlcupq}] = ${${"GLOBALS"}["xdgtgabuy"]};
}
if (count(${${"GLOBALS"}["jyimwbirssg"]}) == 0) {
$jsrgghujugi = "template";
${"GLOBALS"}["lfoxnpyd"] = "template";
$iqxdtuswfmw = "template";
${"GLOBALS"}["csytjm"] = "template";
${"GLOBALS"}["gfnchotc"] = "language";
$yieghj = "template";
${${"GLOBALS"}["ndgywhnftekw"]} = Db::getInstance();
$yfgmogghmr = "template";
${"GLOBALS"}["xfgxirve"] = "id_pp_template";
$shtyhspsm = "id_pp_template";
${"GLOBALS"}["ucaxikuowmt"] = "template";
$pwhhhrfldk = "template";
if (${${"GLOBALS"}["jtzrsenlstcd"]} == "edit")
${${"GLOBALS"}["pxmlbrsq"]} = ${${"GLOBALS"}["wxvtdcjnurn"]};
else {
${${"GLOBALS"}["pxmlbrsq"]} = $this->getNextId(${${"GLOBALS"}["ndgywhnftekw"]}, "pp_template", "id_pp_template");
$zncoygsa = "language";
${"GLOBALS"}["pguyteuul"] = "language";
$db->execute("INSERT INTO `" . _DB_PREFIX_ . "pp_template` (id_pp_template, version) VALUE (" . ${${"GLOBALS"}["pxmlbrsq"]} . ", 0)");
$afsvjkz = "id";
foreach ($this->active_languages as ${$zncoygsa})
${${"GLOBALS"}["qnopirypksdy"]}[${${"GLOBALS"}["pguyteuul"]}["id_lang"]][${$afsvjkz}]["id_pp_template"] = ${${"GLOBALS"}["pxmlbrsq"]};
}
$db->autoExecute(_DB_PREFIX_ . "pp_template", array(
"version" => PP::PP_TEMPLATE_VERSION,
"qty_policy" => ${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_policy"],
"qty_mode" => ${${"GLOBALS"}["lfoxnpyd"]}["pp_qty_mode"],
"display_mode" => ${${"GLOBALS"}["csytjm"]}["pp_display_mode"],
"price_display_mode" => ${${"GLOBALS"}["xdgtgabuy"]}["pp_price_display_mode"],
"measurement_system" => ${${"GLOBALS"}["xdgtgabuy"]}["pp_bo_measurement_system"],
"unit_price_ratio" => ${${"GLOBALS"}["xdgtgabuy"]}["pp_unit_price_ratio"],
"minimal_price_ratio" => ${${"GLOBALS"}["ucaxikuowmt"]}["pp_minimal_price_ratio"],
"minimal_quantity" => ${${"GLOBALS"}["xdgtgabuy"]}["db_minimal_quantity"],
"default_quantity" => ${${"GLOBALS"}["xdgtgabuy"]}["db_default_quantity"],
"qty_step" => ${$yieghj}["db_qty_step"],
"ext" => ${$yfgmogghmr}["pp_ext"],
"qty_available_display" => ${${"GLOBALS"}["xdgtgabuy"]}["pp_bo_qty_available_display"],
"hidden" => ${$jsrgghujugi}["pp_bo_hidden"],
"css" => ${$pwhhhrfldk}["pp_css"]
), "UPDATE", "id_pp_template = " . ${${"GLOBALS"}["pxmlbrsq"]});
$db->delete(_DB_PREFIX_ . "pp_template_property", "id_pp_template = " . ${$shtyhspsm});
array_walk(${${"GLOBALS"}["tgxhyezjcr"]}, create_function("&\$value, \$key, \$id_pp_template", "\$value = "(\".\$id_pp_template.",'\".\$key."',".\$value.")\";"), ${${"GLOBALS"}["pxmlbrsq"]});
$db->execute("INSERT INTO " . _DB_PREFIX_ . "pp_template_property (id_pp_template,pp_name,id_pp_property) VALUES " . implode(",", ${${"GLOBALS"}["tgxhyezjcr"]}));
foreach ($this->active_languages as ${${"GLOBALS"}["gfnchotc"]}) {
$ldfjmikld = "templates";
${${"GLOBALS"}["spzqlh"]} = ${${"GLOBALS"}["gfzancjl"]}["id_lang"];
${"GLOBALS"}["vhbhrbvjgsv"] = "auto_desc";
$jbxeanrcd = "auto_desc";
$nthkemjss = "r";
$khesvx = "id_lang";
${"GLOBALS"}["waowssslid"] = "r";
$uwtoelui = "id_lang";
$kkxuzvp = "id";
${${"GLOBALS"}["xdgtgabuy"]} = ${$ldfjmikld}[${$uwtoelui}][${$kkxuzvp}];
$vrgnnuogf = "template";
${${"GLOBALS"}["vtjpfwycjr"]} = $db->getRow("SELECT * FROM `" . _DB_PREFIX_ . "pp_template_lang` WHERE id_pp_template = " . ${${"GLOBALS"}["pxmlbrsq"]} . " AND id_lang=" . ${${"GLOBALS"}["spzqlh"]});
if (${${"GLOBALS"}["waowssslid"]} === false)
${$nthkemjss} = array(
"description_1" => "",
"description_2" => "",
"id_pp_template" => ${${"GLOBALS"}["pxmlbrsq"]},
"id_lang" => ${$khesvx}
);
$dbjnmdgiw = "r";
$xlydycvs = "id_pp_template";
${"GLOBALS"}["lvigaoiei"] = "template";
$nlwohbynon = "r";
${${"GLOBALS"}["vhbhrbvjgsv"]} = 0;
$fhsbmmefzm = "ms";
if (${$vrgnnuogf}["description"] == "") {
${"GLOBALS"}["fdkubxbe"] = "template";
$jxbckscl = "id_lang";
${${"GLOBALS"}["ysaiath"]} = 1;
${${"GLOBALS"}["fdkubxbe"]}["description"] = self::generateDescription(${${"GLOBALS"}["xdgtgabuy"]}, ${$jxbckscl});
}
${${"GLOBALS"}["vtjpfwycjr"]}[${${"GLOBALS"}["vnpzqawf"]} != 2 ? "description_1" : "description_2"] = pSQL(${${"GLOBALS"}["lvigaoiei"]}["description"], true);
${$dbjnmdgiw}[${$fhsbmmefzm} != 2 ? "auto_desc_1" : "auto_desc_2"] = ${$jbxeanrcd};
${${"GLOBALS"}["vtjpfwycjr"]}["name"] = pSQL(${${"GLOBALS"}["xdgtgabuy"]}["name"], true);
$db->delete(_DB_PREFIX_ . "pp_template_lang", "id_pp_template = " . ${$xlydycvs} . " AND id_lang=" . ${${"GLOBALS"}["spzqlh"]});
$db->autoExecute(_DB_PREFIX_ . "pp_template_lang", ${$nlwohbynon}, "INSERT");
}
$db->delete(_DB_PREFIX_ . "pp_template_ext", "id_pp_template = " . ${${"GLOBALS"}["xfgxirve"]});
$db->delete(_DB_PREFIX_ . "pp_template_ext_prop", "id_pp_template = " . ${${"GLOBALS"}["pxmlbrsq"]});
if (${$iqxdtuswfmw}["pp_ext"] == 1) {
${"GLOBALS"}["pxpbdbyp"] = "s";
${"GLOBALS"}["fayoezps"] = "ext_title";
${${"GLOBALS"}["fayoezps"]} = (int) Tools::getValue("pp_ext_title", 0);
${"GLOBALS"}["ewwnqnkpwxt"] = "id_pp_template";
$rfqyvhfnxl = "s";
${"GLOBALS"}["lzcoqggkh"] = "ext_policy";
${"GLOBALS"}["vcydmyovuc"] = "ext_property";
$yujolvhqs = "s";
${${"GLOBALS"}["vcydmyovuc"]} = (int) Tools::getValue("pp_ext_property", 0);
${${"GLOBALS"}["gmtbqoaxdsio"]} = (int) Tools::getValue("pp_ext_text", 0);
${${"GLOBALS"}["ccsxroo"]} = (string) ${${"GLOBALS"}["ewwnqnkpwxt"]};
${"GLOBALS"}["oiogzi"] = "id_pp_template";
${${"GLOBALS"}["ccsxroo"]} .= ",1";
${${"GLOBALS"}["ccsxroo"]} .= "," . ${${"GLOBALS"}["lzcoqggkh"]};
${$yujolvhqs} .= "," . ${${"GLOBALS"}["gonnrijqlsq"]};
${${"GLOBALS"}["pxpbdbyp"]} .= "," . ${${"GLOBALS"}["tphvkkcbq"]};
${$rfqyvhfnxl} .= "," . ${${"GLOBALS"}["ludnfxw"]};
${${"GLOBALS"}["ccsxroo"]} .= "," . ${${"GLOBALS"}["gmtbqoaxdsio"]};
$db->execute("INSERT INTO " . _DB_PREFIX_ . "pp_template_ext (id_pp_template,type,policy,method,title,property,text) VALUES (" . ${${"GLOBALS"}["ccsxroo"]} . ")");
if ($this->multidimensional_plugin)
$this->multidimensional_plugin->saveTemplate(${${"GLOBALS"}["oiogzi"]}, self::DIMENSIONS);
}
Hook::exec("ppropertiesAdmin", array(
"mode" => "actionTemplateSave",
"id_pp_template" => ${${"GLOBALS"}["wxvtdcjnurn"]}
));
${"GLOBALS"}["dcwdptumvues"] = "templates";
${${"GLOBALS"}["dcwdptumvues"]} = null;
PP::resetTemplates();
} else {
${"GLOBALS"}["veutljy"] = "error";
${${"GLOBALS"}["jfzrwspqudr"]}["error"] .= $this->l("Please fix the following errors:");
foreach (${${"GLOBALS"}["kvgnhsw"]} as ${${"GLOBALS"}["veutljy"]}) {
$mognhmfxewv = "result";
${$mognhmfxewv}["error"] .= "
<div>" . ${${"GLOBALS"}["ckuomitbxip"]} . "</div>";
}
}
${${"GLOBALS"}["jfzrwspqudr"]}["templates"] = ${${"GLOBALS"}["qnopirypksdy"]};
return ${${"GLOBALS"}["nfqdqkhngx"]};
}
private function saveProperty()
{
$fktvmmhwkq = "mode";
${"GLOBALS"}["uylowfosnik"] = "language";
$utdxnltgk = "result";
${$utdxnltgk} = array();
${"GLOBALS"}["bhnwyvo"] = "id";
${"GLOBALS"}["zixqchztn"] = "result";
${${"GLOBALS"}["zixqchztn"]}["error"] = "";
${${"GLOBALS"}["jtzrsenlstcd"]} = Tools::getValue("mode");
$lcqzvmbtnp = "properties";
${"GLOBALS"}["ijvgonxsl"] = "result";
$ymfwnpttt = "type";
${$ymfwnpttt} = Tools::getValue("type");
${"GLOBALS"}["wbrkbgulqx"] = "id";
if (${$fktvmmhwkq} == "add")
${${"GLOBALS"}["bhnwyvo"]} = 0;
else {
${${"GLOBALS"}["jtzrsenlstcd"]} = "edit";
${${"GLOBALS"}["wxvtdcjnurn"]} = (int) Tools::getValue("id");
}
$kklejtbgt = "properties";
if (${${"GLOBALS"}["wbrkbgulqx"]} < 0)
return ${${"GLOBALS"}["jfzrwspqudr"]};
${${"GLOBALS"}["wrrvedhoqj"]} = Tools::getValue("type");
${${"GLOBALS"}["kvgnhsw"]} = array();
${$lcqzvmbtnp} = array();
foreach ($this->active_languages as ${${"GLOBALS"}["uylowfosnik"]}) {
${"GLOBALS"}["pmbbjy"] = "id_lang";
$zdfsilxlmun = "id_lang";
$ytkqwhnyohqr = "property";
${${"GLOBALS"}["pmbbjy"]} = ${${"GLOBALS"}["gfzancjl"]}["id_lang"];
$pykoamnxnj = "id";
${${"GLOBALS"}["cxkdyuz"]} = array();
$rqxloqgqsk = "property";
$this->getValue(${$ytkqwhnyohqr}, "text", $this->l("Text:"), ${${"GLOBALS"}["kvgnhsw"]}, ${$zdfsilxlmun});
${"GLOBALS"}["abclxogfg"] = "properties";
${${"GLOBALS"}["abclxogfg"]}[${${"GLOBALS"}["spzqlh"]}][${$pykoamnxnj}] = ${$rqxloqgqsk};
}
$ygqjihtjrb = "result";
if (count(${${"GLOBALS"}["kvgnhsw"]}) == 0) {
${${"GLOBALS"}["ndgywhnftekw"]} = Db::getInstance();
${"GLOBALS"}["tzbtqq"] = "language";
if (${${"GLOBALS"}["jtzrsenlstcd"]} == "edit")
${${"GLOBALS"}["lnyrlhvbyj"]} = ${${"GLOBALS"}["wxvtdcjnurn"]};
else {
$rnhoeepchypt = "db";
${"GLOBALS"}["tfpned"] = "id";
$ebyyyxq = "type";
${${"GLOBALS"}["lnyrlhvbyj"]} = $this->getNextId(${$rnhoeepchypt}, "pp_property", "id_pp_property");
$vveykwsr = "language";
${"GLOBALS"}["tncmmnyvw"] = "properties";
$db->execute("INSERT INTO `" . _DB_PREFIX_ . "pp_property` (id_pp_property, type) VALUE (" . ${${"GLOBALS"}["lnyrlhvbyj"]} . ", " . ${$ebyyyxq} . ")");
foreach ($this->active_languages as ${$vveykwsr})
${${"GLOBALS"}["tncmmnyvw"]}[${${"GLOBALS"}["gfzancjl"]}["id_lang"]][${${"GLOBALS"}["tfpned"]}]["id_pp_property"] = ${${"GLOBALS"}["lnyrlhvbyj"]};
}
foreach ($this->active_languages as ${${"GLOBALS"}["tzbtqq"]}) {
${"GLOBALS"}["eagrihyrwkux"] = "property";
$uhgjsqwpkkp = "r";
$hwdfej = "id_lang";
$leelropbl = "id_lang";
${"GLOBALS"}["burpmxqo"] = "text";
${"GLOBALS"}["bynqfvhhcks"] = "r";
${"GLOBALS"}["uktibripi"] = "r";
${"GLOBALS"}["ptqudvgfn"] = "id_lang";
$yetbcfr = "language";
${"GLOBALS"}["xicgwo"] = "id_pp_property";
${$hwdfej} = ${$yetbcfr}["id_lang"];
${${"GLOBALS"}["vtjpfwycjr"]} = $db->getRow("SELECT * FROM `" . _DB_PREFIX_ . "pp_property_lang` WHERE id_pp_property = " . ${${"GLOBALS"}["xicgwo"]} . " AND id_lang=" . ${$leelropbl});
$dpwfnczxpc = "properties";
if (${${"GLOBALS"}["vtjpfwycjr"]} === false)
${${"GLOBALS"}["bynqfvhhcks"]} = array(
"text_1" => "",
"text_2" => "",
"id_pp_property" => ${${"GLOBALS"}["lnyrlhvbyj"]},
"id_lang" => ${${"GLOBALS"}["spzqlh"]}
);
${${"GLOBALS"}["eagrihyrwkux"]} = ${$dpwfnczxpc}[${${"GLOBALS"}["ptqudvgfn"]}][${${"GLOBALS"}["wxvtdcjnurn"]}];
${${"GLOBALS"}["burpmxqo"]} = pSQL(${${"GLOBALS"}["cxkdyuz"]}["text"], true);
if (PP::resolveMS() != 2) {
$pfrqrd = "r";
$nodivdqxtof = "r";
${"GLOBALS"}["qknfpxpn"] = "text";
${$pfrqrd}["text_1"] = ${${"GLOBALS"}["xgujmbljqvn"]};
if (${$nodivdqxtof}["text_2"] == "")
${${"GLOBALS"}["vtjpfwycjr"]}["text_2"] = ${${"GLOBALS"}["qknfpxpn"]};
} else {
${"GLOBALS"}["jtkhrermfuy"] = "text";
${"GLOBALS"}["gwqmlkfilwr"] = "text";
${"GLOBALS"}["pixfsp"] = "r";
${${"GLOBALS"}["vtjpfwycjr"]}["text_2"] = ${${"GLOBALS"}["jtkhrermfuy"]};
if (${${"GLOBALS"}["vtjpfwycjr"]}["text_1"] == "")
${${"GLOBALS"}["pixfsp"]}["text_1"] = ${${"GLOBALS"}["gwqmlkfilwr"]};
}
$db->delete(_DB_PREFIX_ . "pp_property_lang", "id_pp_property = " . ${${"GLOBALS"}["lnyrlhvbyj"]} . " AND id_lang=" . ${${"GLOBALS"}["spzqlh"]});
if (${${"GLOBALS"}["uktibripi"]}["text_1"] != "" || ${$uhgjsqwpkkp}["text_2"] != "")
$db->autoExecute(_DB_PREFIX_ . "pp_property_lang", ${${"GLOBALS"}["vtjpfwycjr"]}, "INSERT");
}
} else {
${"GLOBALS"}["uimqhbygt"] = "result";
${${"GLOBALS"}["uimqhbygt"]}["error"] .= $this->l("Please fix the following errors:");
foreach (${${"GLOBALS"}["kvgnhsw"]} as ${${"GLOBALS"}["ckuomitbxip"]}) {
$yzksviw = "error";
${${"GLOBALS"}["jfzrwspqudr"]}["error"] .= "
<div>" . ${$yzksviw} . "</div>";
}
}
${$ygqjihtjrb}["properties"] = ${$kklejtbgt};
return ${${"GLOBALS"}["ijvgonxsl"]};
}
private function deleteTemplate()
{
${${"GLOBALS"}["wxvtdcjnurn"]} = (int) Tools::getValue("id");
${"GLOBALS"}["cfnywfrvsdb"] = "db";
if (${${"GLOBALS"}["wxvtdcjnurn"]} <= 0)
return;
${${"GLOBALS"}["cfnywfrvsdb"]} = Db::getInstance();
$db->delete(_DB_PREFIX_ . "pp_template", "id_pp_template = " . ${${"GLOBALS"}["wxvtdcjnurn"]});
$db->delete(_DB_PREFIX_ . "pp_template_lang", "id_pp_template = " . ${${"GLOBALS"}["wxvtdcjnurn"]});
$db->delete(_DB_PREFIX_ . "pp_template_property", "id_pp_template = " . ${${"GLOBALS"}["wxvtdcjnurn"]});
}
private function deleteProperty()
{
${"GLOBALS"}["ddcdki"] = "id";
${${"GLOBALS"}["ddcdki"]} = (int) Tools::getValue("id");
${"GLOBALS"}["nwgktngc"] = "id";
if (${${"GLOBALS"}["nwgktngc"]} > 0) {
$erttopivksos = "id";
${"GLOBALS"}["ijijlqs"] = "id";
${"GLOBALS"}["mqlnlxwylys"] = "db";
${${"GLOBALS"}["mqlnlxwylys"]} = Db::getInstance();
$db->delete(_DB_PREFIX_ . "pp_property", "id_pp_property = " . ${$erttopivksos});
$db->delete(_DB_PREFIX_ . "pp_property_lang", "id_pp_property = " . ${${"GLOBALS"}["wxvtdcjnurn"]});
$db->delete(_DB_PREFIX_ . "pp_template_property", "id_pp_property = " . ${${"GLOBALS"}["ijijlqs"]});
}
}
private function changeHiddenStatus()
{
${"GLOBALS"}["ifuktbg"] = "id";
${${"GLOBALS"}["wxvtdcjnurn"]} = (int) Tools::getValue("id");
if (${${"GLOBALS"}["ifuktbg"]} <= 0)
return;
Db::getInstance()->AutoExecute(_DB_PREFIX_ . "pp_template", array(
"hidden" => ((int) Tools::getValue("show", 1) ? "0" : "1")
), "UPDATE", "`id_pp_template` = " . ${${"GLOBALS"}["wxvtdcjnurn"]});
}
private function generateDescription($template, $id_lang)
{
$myqriaonpba = "desc";
$iuqbhvbegsdq = "id_lang";
${"GLOBALS"}["hcvtnil"] = "template";
${"GLOBALS"}["cstqctppqk"] = "template";
$lzenivrml = "id_lang";
$eqvpuqvp = "template";
$hwfgmflvu = "desc";
$ztllpzwmkkap = "id_lang";
${"GLOBALS"}["rfakmcpnduve"] = "desc";
${$myqriaonpba} = "";
${"GLOBALS"}["fmvljaiavv"] = "desc";
${"GLOBALS"}["peggimeex"] = "id_lang";
if (${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_policy"] == 1)
${$hwfgmflvu} .= $this->l("Product sold in whole units", false, ${$ztllpzwmkkap});
elseif (${${"GLOBALS"}["hcvtnil"]}["pp_qty_policy"] == 2) {
${"GLOBALS"}["vlyoxewb"] = "id_lang";
$vtkwpwkrf = "desc";
$wkbdjjvmw = "id_lang";
if (${${"GLOBALS"}["xdgtgabuy"]}["pp_ext"] > 0)
${${"GLOBALS"}["jsvhedpiv"]} .= $this->l("Product uses multidimensional feature", false, ${${"GLOBALS"}["vlyoxewb"]});
else
${$vtkwpwkrf} .= $this->l("Product sold in fractional units", false, ${$wkbdjjvmw});
} else
${${"GLOBALS"}["rfakmcpnduve"]} .= $this->l("Product sold in items", false, ${$iuqbhvbegsdq});
if (${${"GLOBALS"}["xdgtgabuy"]}["pp_qty_mode"] && !PP::qtyPolicyLegacy(${${"GLOBALS"}["cstqctppqk"]}["pp_qty_policy"]))
${${"GLOBALS"}["jsvhedpiv"]} .= ", " . $this->l("approximate quantity and price (the exact quantity cannot be ordered)", false, ${${"GLOBALS"}["spzqlh"]});
switch (${$eqvpuqvp}["pp_display_mode"]) {
case 1:
${${"GLOBALS"}["fmvljaiavv"]} .= ", " . $this->l("reversed price display", false, ${${"GLOBALS"}["spzqlh"]});
break;
case 2:
${${"GLOBALS"}["jsvhedpiv"]} .= ", " . $this->l("retail price", false, ${${"GLOBALS"}["spzqlh"]});
break;
case 3:
${${"GLOBALS"}["jsvhedpiv"]} .= ", " . $this->l("retail price", false, ${$lzenivrml}) . ", " . $this->l("reversed price display", false, ${${"GLOBALS"}["peggimeex"]});
break;
default:
break;
}
return ${${"GLOBALS"}["jsvhedpiv"]};
}
private function getValue(&$template, $key, $name, &$errors, $id_lang)
{
$dywdumyhaqb = "template";
${"GLOBALS"}["ltgbpwvqztd"] = "id_lang";
${"GLOBALS"}["xvqowgsuy"] = "default_value";
${${"GLOBALS"}["xvqowgsuy"]} = Tools::getValue(${${"GLOBALS"}["nzemrj"]} . "_input_" . $this->default_language_id);
${"GLOBALS"}["urthggeiqro"] = "default_value";
$digfvjyn = "key";
if (empty(${${"GLOBALS"}["urthggeiqro"]})) {
${"GLOBALS"}["qqpeghqf"] = "name";
$vxdwrbvqk = "key";
${"GLOBALS"}["grvoubvk"] = "default_language";
$heuzzrrreo = "default_language";
${${"GLOBALS"}["grvoubvk"]} = Language::getLanguage($this->default_language_id);
${${"GLOBALS"}["kvgnhsw"]}[${$vxdwrbvqk}] = ${${"GLOBALS"}["qqpeghqf"]} . " " . $this->l("cannot be empty in") . " " . ${$heuzzrrreo}["name"];
}
${$dywdumyhaqb}[${$digfvjyn}] = Tools::getValue(${${"GLOBALS"}["nzemrj"]} . "_input_" . ${${"GLOBALS"}["ltgbpwvqztd"]});
}
private function getFloatValue($key)
{
${"GLOBALS"}["tlcwopwvv"] = "key";
$seglhcubk = "key";
${"GLOBALS"}["ficmqbfeix"] = "value";
${${"GLOBALS"}["ficmqbfeix"]} = Tools::getValue(${${"GLOBALS"}["tlcwopwvv"]});
return (float) (empty(${${"GLOBALS"}["wihlrbmq"]}) ? "0" : str_replace(",", ".", Tools::getValue(${$seglhcubk})));
}
private function getPropertyTypes()
{
${"GLOBALS"}["erbtkjvbdl"] = "row";
${"GLOBALS"}["fgmvnkkq"] = "result";
$exywwhwoq = "result";
${${"GLOBALS"}["fgmvnkkq"]} = array();
$tctiygarn = "result";
${${"GLOBALS"}["gioeixkr"]} = Db::getInstance()->ExecuteS("SELECT * FROM `" . _DB_PREFIX_ . "pp_property`");
foreach (${${"GLOBALS"}["gioeixkr"]} as ${${"GLOBALS"}["erbtkjvbdl"]})
${$tctiygarn}[${${"GLOBALS"}["mehqvr"]}["id_pp_property"]] = ${${"GLOBALS"}["mehqvr"]}["type"];
return ${$exywwhwoq};
}
private function getAllProperties($ms = false)
{
${"GLOBALS"}["mxkcbjem"] = "pp_property";
$jmvhkpqgto = "ms";
${$jmvhkpqgto} = PP::resolveMS(${${"GLOBALS"}["vnpzqawf"]});
$qmptljxtr = "all_properties";
${$qmptljxtr} = array();
${${"GLOBALS"}["ndgywhnftekw"]} = Db::getInstance();
${${"GLOBALS"}["gioeixkr"]} = $db->executeS("SELECT * FROM `" . _DB_PREFIX_ . "pp_property_lang`");
${${"GLOBALS"}["mxkcbjem"]} = $db->executeS("SELECT * FROM `" . _DB_PREFIX_ . "pp_property`");
foreach ($this->active_languages as ${${"GLOBALS"}["gfzancjl"]}) {
$wmtsurslcziq = "language";
$ixjhdrq = "id_lang";
$eiitcexptu = "properties";
$exfgspvc = "pp_property";
${${"GLOBALS"}["spzqlh"]} = ${$wmtsurslcziq}["id_lang"];
${$eiitcexptu} = array();
foreach (${$exfgspvc} as ${${"GLOBALS"}["cxkdyuz"]}) {
$wppfmiprqme = "found";
${"GLOBALS"}["wryeer"] = "property";
$gxqicnotcyl = "property";
${"GLOBALS"}["zqbbehxdyl"] = "property";
${"GLOBALS"}["qzjvbci"] = "id_pp_property";
${${"GLOBALS"}["qzjvbci"]} = ${$gxqicnotcyl}["id_pp_property"];
$dygjbottuxy = "ms";
${${"GLOBALS"}["cxkdyuz"]}["text"] = "";
$qzbwkmsjn = "id_pp_property";
${"GLOBALS"}["ynkmare"] = "ms";
$lvxgfxx = "property";
${"GLOBALS"}["gkzjrouez"] = "property";
$yflnsrxn = "rows";
${${"GLOBALS"}["zqbbehxdyl"]}["text_1"] = "";
$rswynlvkfgy = "id_pp_property";
${${"GLOBALS"}["gkzjrouez"]}["text_2"] = "";
${${"GLOBALS"}["vvddfhobeek"]} = $this->getAllPropertiesLang(${${"GLOBALS"}["cxkdyuz"]}, ${${"GLOBALS"}["gioeixkr"]}, ${$qzbwkmsjn}, ${${"GLOBALS"}["spzqlh"]}, ${$dygjbottuxy});
$ifgbdeeuco = "properties";
if (!${$wppfmiprqme})
$this->getAllPropertiesLang(${$lvxgfxx}, ${$yflnsrxn}, ${${"GLOBALS"}["lnyrlhvbyj"]}, 1, ${${"GLOBALS"}["ynkmare"]});
${$ifgbdeeuco}[${$rswynlvkfgy}] = ${${"GLOBALS"}["wryeer"]};
}
${${"GLOBALS"}["blzlcdre"]}[${$ixjhdrq}] = ${${"GLOBALS"}["yjwrsfxqsk"]};
}
return ${${"GLOBALS"}["blzlcdre"]};
}
private function getAllPropertiesLang(&$property, $rows, $id_pp_property, $id_lang, $ms = false)
{
${"GLOBALS"}["tpijxawje"] = "row";
foreach (${${"GLOBALS"}["gioeixkr"]} as ${${"GLOBALS"}["tpijxawje"]}) {
${"GLOBALS"}["rykekaz"] = "id_pp_property";
${"GLOBALS"}["lvzmcxscmo"] = "id_lang";
$isbwsryx = "row";
if ((${${"GLOBALS"}["mehqvr"]}["id_pp_property"] == ${${"GLOBALS"}["rykekaz"]}) && (${$isbwsryx}["id_lang"] == ${${"GLOBALS"}["lvzmcxscmo"]})) {
${"GLOBALS"}["titcqfjq"] = "row";
$pjvfss = "property";
$vyhvdoaf = "ms";
${$pjvfss}["text"] = (${$vyhvdoaf} != 2 ? ${${"GLOBALS"}["mehqvr"]}["text_1"] : ${${"GLOBALS"}["mehqvr"]}["text_2"]);
$mhxfsas = "property";
${$mhxfsas}["text_1"] = ${${"GLOBALS"}["titcqfjq"]}["text_1"];
${${"GLOBALS"}["cxkdyuz"]}["text_2"] = ${${"GLOBALS"}["mehqvr"]}["text_2"];
return true;
}
}
return false;
}
public function integrationKey()
{
return _PS_VERSION_ . "|" . $this->integrationVersion();
}
public function integrationVersion()
{
return $this->ps_versions_compliancy["max"];
}
public function setupInstance()
{
return psmPPsetup($this);
}
public function plugins()
{
return array(
"ppropertiesmultidimensional" => 1.6,
"ppropertiessmartprice" => 1.1
);
}
private function getNextId($db, $table, $column)
{
$xtsttcvuhhk = "max_id";
${$xtsttcvuhhk} = (int) $db->getValue("SELECT max(`" . ${${"GLOBALS"}["shnaopp"]} . "`) FROM `" . _DB_PREFIX_ . ${${"GLOBALS"}["hgfvztsxoxr"]} . "`");
${"GLOBALS"}["gketdlifps"] = "max_id";
if (${${"GLOBALS"}["gketdlifps"]} < self::USER_START_ID)
return self::USER_START_ID;
return ++${${"GLOBALS"}["smljvksln"]};
}
private function compatibilityText()
{
if ($this->ps_versions_compliancy["min"] == $this->ps_versions_compliancy["max"])
return sprintf($this->l("This version of %s module works only with PrestaShop version %s."), $this->displayName, $this->ps_versions_compliancy["min"]);
else
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"]);
}
}
?>
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:
* http://psandmore.com/licenses/sla
* If you are unable to obtain the license through the
* world-wide-web, please send an email to
* [email protected] so we can send you a copy immediately.
*
* @author PS&More www.psandmore.com <[email protected]>
* @copyright 2011-2015 PS&More
* @license psandmore.com/licenses/sla
* [PSM_OBFUSCATED]
*/
if (!defined('_PS_VERSION_'))
exit;
${"G\x4cOBA\x4c\x53"}["\x73m\x6c\x6a\x76\x6b\x73ln"] = "\x6d\x61\x78\x5f\x69\x64";
${"\x47LOBA\x4c\x53"}["\x68g\x66v\x7a\x74s\x78\x6f\x78\x72"] = "t\x61\x62\x6c\x65";
${"GL\x4fB\x41\x4c\x53"}["\x73h\x6eao\x70p"] = "\x63o\x6c\x75\x6d\x6e";
${"\x47L\x4fB\x41\x4c\x53"}["\x76v\x64\x64\x66h\x6f\x62\x65\x65\x6b"] = "found";
${"G\x4c\x4fB\x41\x4c\x53"}["\x6as\x76\x68\x65\x64\x70i\x76"] = "\x64\x65\x73c";
${"\x47LOB\x41LS"}["\x78\x67\x75\x6am\x62\x6c\x6a\x71\x76\x6e"] = "\x74ex\x74";
${"GL\x4f\x42\x41\x4c\x53"}["ck\x75\x6f\x6di\x74\x62\x78\x69p"] = "\x65\x72\x72\x6f\x72";
${"\x47LOBA\x4c\x53"}["\x6cu\x64\x6ef\x78\x77"] = "\x65\x78\x74\x5f\x70\x72o\x70\x65\x72\x74y";
${"\x47LO\x42\x41\x4c\x53"}["t\x70\x68\x76kk\x63\x62\x71"] = "\x65x\x74\x5f\x74\x69t\x6ce";
${"GL\x4f\x42\x41\x4c\x53"}["\x67\x6d\x74\x62\x71\x6fa\x78\x64\x73\x69\x6f"] = "\x65\x78t_t\x65x\x74";
${"G\x4c\x4f\x42\x41L\x53"}["\x79\x73\x61\x69a\x74h"] = "\x61\x75\x74o_\x64es\x63";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x73\x61duv\x68e"] = "\x68\x69d\x64\x65\x6e";
${"G\x4c\x4fBAL\x53"}["\x6e\x66\x79sq\x6f\x75y"] = "\x75n\x69t\x5f\x70\x72i\x63e\x5f\x72\x61t\x69o";
${"\x47\x4cOB\x41\x4c\x53"}["\x65\x73\x72nl\x78\x68\x67m"] = "\x71\x74y_s\x74\x65\x70";
${"G\x4c\x4f\x42\x41\x4cS"}["w\x66\x69a\x63\x61\x73\x62\x78"] = "\x6d\x69\x6e\x69\x6dal\x5fqu\x61nt\x69\x74\x79";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x6b\x78h\x68pgq\x72\x68"] = "\x65\x78\x74_pol\x69\x63y";
${"GLO\x42ALS"}["\x68lt\x6e\x72\x66g"] = "\x71\x74\x79\x5f\x70\x6flic\x79";
${"\x47\x4c\x4fBA\x4c\x53"}["m\x6c\x77\x64vy\x70z\x79\x74"] = "\x6d\x69\x6e\x69\x6d\x61l_\x70r\x69c\x65\x5f\x72\x61\x74\x69\x6f";
${"G\x4c\x4f\x42\x41L\x53"}["\x6ene\x6d\x68\x68n\x6b\x69\x74"] = "\x6de\x61\x73u\x72\x65me\x6et\x5fs\x79\x73\x74\x65\x6d";
${"GL\x4fB\x41\x4c\x53"}["\x67q\x68tr\x77\x79ju\x67yc"] = "p\x70\x5f\x62o_\x71ty\x5f\x61\x76\x61i\x6c\x61\x62\x6c\x65_\x64\x69spla\x79";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x6f\x64\x6du\x6d\x67\x72v"] = "pr\x69c\x65\x5f\x64\x69sp\x6c\x61\x79\x5fm\x6f\x64\x65";
${"\x47LO\x42A\x4c\x53"}["\x67\x6f\x6en\x72\x69\x6a\x71\x6cs\x71"] = "e\x78t\x5f\x6d\x65\x74\x68\x6f\x64";
${"\x47\x4cOBA\x4cS"}["\x74g\x78\x68\x79\x65\x7a\x6a\x63r"] = "t\x65\x6d\x70\x6cat\x65_p\x72\x6f\x70e\x72\x74\x69\x65s";
${"\x47\x4cO\x42\x41\x4cS"}["\x6b\x76\x67\x6e\x68\x73\x77"] = "\x65r\x72\x6f\x72\x73";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x62\x64\x67kc\x6b\x73xx\x70"] = "\x74p\x6c_v\x61\x72\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["q\x62\x64\x73\x7a\x76\x75\x76"] = "\x66";
${"GLO\x42A\x4c\x53"}["\x74d\x6b\x65m\x6f\x6av"] = "\x76\x61r\x73";
${"\x47\x4c\x4fB\x41L\x53"}["p\x77\x6dm\x6c\x67\x72\x68\x76\x6ff\x77"] = "\x73\x65le\x63\x74";
${"\x47\x4c\x4fB\x41\x4c\x53"}["gg\x70\x69\x70\x6a"] = "\x64a\x74a";
${"\x47L\x4f\x42\x41\x4cS"}["w\x69\x66\x6ag\x62m\x72"] = "p\x72\x6fp";
${"G\x4cO\x42\x41LS"}["\x75f\x65j\x6d\x65fru"] = "\x6f\x70\x74\x69\x6f\x6e\x73";
${"\x47\x4c\x4f\x42A\x4cS"}["\x78\x6a\x6f\x73\x69\x6e\x77\x62s\x6cm\x6d"] = "\x69\x63on";
${"\x47L\x4f\x42A\x4c\x53"}["\x6a\x76vm\x6bl\x71\x67y"] = "f\x6f\x72\x6d\x5ftit\x6c\x65";
${"\x47\x4c\x4fBA\x4cS"}["\x61\x72\x6f\x70\x75\x6bw\x62b\x77w"] = "\x69\x64\x5ff\x6f\x72m";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6at\x71\x65\x75\x73\x6e\x63"] = "\x66\x69rs\x74\x5f\x63\x61\x6cl";
${"\x47L\x4f\x42A\x4c\x53"}["\x6cb\x75\x78\x68\x7a\x69\x74\x69\x68"] = "\x74\x6fk\x65\x6e";
${"GL\x4fB\x41\x4c\x53"}["\x6fe\x79\x74\x65\x69uq"] = "\x63urr\x65n\x74\x49\x6ed\x65\x78";
${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x70\x6cp\x69\x64\x79m\x65\x63vc"] = "\x63\x75r\x72e\x6e\x74";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["n\x67\x62\x68\x65wlv\x63\x76\x64\x74"] = "\x72\x65su\x6cts";
${"\x47L\x4f\x42A\x4cS"}["\x6cnyr\x6c\x68vby\x6a"] = "\x69\x64\x5fp\x70\x5f\x70\x72o\x70\x65r\x74\x79";
${"G\x4c\x4f\x42\x41LS"}["\x63\x78\x6bdy\x75z"] = "\x70\x72\x6f\x70\x65\x72\x74\x79";
${"GL\x4f\x42\x41L\x53"}["\x6du\x7av\x70\x6e\x69\x79"] = "\x66orm\x73";
${"\x47\x4c\x4f\x42A\x4cS"}["qn\x74b\x6fr\x6a\x71ec"] = "\x68\x6f\x6f\x6b\x5f\x66\x6f\x72\x6d";
${"GLO\x42\x41L\x53"}["\x77\x72c\x64\x6ce\x78\x6c\x79\x77x"] = "h\x6fo\x6b\x5fm\x6f\x64\x75\x6ce";
${"G\x4cO\x42ALS"}["\x74g\x76\x72j\x77\x76l\x6d\x6f"] = "\x68\x6f\x6f\x6b\x5f\x66\x6f\x72m\x73";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71\x69\x65\x68\x76\x71\x78\x6bpjd"] = "\x64\x69\x6de\x6e\x73\x69\x6f\x6e\x73\x5f\x66\x6f\x72m";
${"\x47L\x4f\x42A\x4c\x53"}["t\x69d\x72\x67\x75s\x62\x6f\x72\x76"] = "\x74\x64";
${"\x47L\x4fB\x41\x4c\x53"}["pp\x61\x62g\x78\x76\x79\x64di\x6a"] = "d\x69mensi\x6f\x6e_i\x6ed\x65x";
${"\x47LO\x42\x41\x4cS"}["y\x74d\x66wu\x69\x6ao\x71\x62"] = "max_d\x69\x6densi\x6f\x6e\x73";
${"\x47L\x4f\x42ALS"}["\x62\x64yzbj\x6ex\x76"] = "\x64\x69m\x65\x6e\x73io\x6es";
${"\x47\x4c\x4fBA\x4c\x53"}["\x73pz\x71\x6ch"] = "\x69d_l\x61\x6eg";
${"G\x4cO\x42\x41L\x53"}["\x66cvjuu\x62rj\x79"] = "b\x75\x74\x74o\x6es";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x69\x74\x6dq\x6e\x68\x68"] = "\x70\x72op\x65\x72\x74\x79_\x74\x79pes";
${"\x47\x4c\x4f\x42A\x4cS"}["\x76\x6e\x70\x7a\x71\x61\x77f"] = "m\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x66\x7a\x61\x6e\x63\x6a\x6c"] = "l\x61\x6e\x67\x75\x61\x67e";
${"\x47L\x4fB\x41\x4cS"}["w\x78\x76\x74\x64\x63\x6a\x6e\x75r\x6e"] = "i\x64";
${"GL\x4f\x42\x41L\x53"}["e\x66\x6e\x64g\x65\x6e\x62\x74"] = "\x70\x72\x6f\x64\x75\x63\x74\x73";
${"\x47\x4c\x4f\x42\x41L\x53"}["m\x65\x68\x71\x76\x72"] = "\x72\x6f\x77";
${"G\x4c\x4f\x42A\x4c\x53"}["\x67\x69\x6f\x65i\x78\x6b\x72"] = "\x72\x6f\x77\x73";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x70e\x79\x6fi\x68\x72s"] = "\x75\x73e\x64_\x74\x65\x6d\x70\x6ca\x74e\x73";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x67w\x6fe\x79u\x72\x64"] = "\x73ta\x74\x69\x73t\x69\x63s";
${"G\x4cO\x42ALS"}["\x6e\x64\x67\x79w\x68\x6e\x66\x74e\x6b\x77"] = "d\x62";
${"GLO\x42\x41L\x53"}["\x6as\x72\x67\x66u\x68rny"] = "\x72\x65\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65d\x6f\x71\x6azm\x71"] = "\x64is\x70\x6c\x61y";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x6cg\x74\x6d\x6d\x6bh\x67"] = "\x69\x6e\x74\x65\x67\x72a\x74i\x6f\x6e";
${"\x47L\x4fB\x41L\x53"}["\x61v\x66\x79\x77\x66ty\x63\x68\x76\x6f"] = "\x66o\x72m";
${"GL\x4f\x42\x41\x4c\x53"}["pf\x77\x64\x70t\x78\x6frrfn"] = "\x6d\x65\x74\x72i\x63";
${"\x47L\x4f\x42\x41L\x53"}["b\x6c\x7a\x6c\x63d\x72\x65"] = "\x61\x6c\x6c\x5f\x70\x72\x6f\x70e\x72t\x69e\x73";
${"G\x4c\x4fB\x41\x4c\x53"}["\x77q\x76\x64p\x68\x76"] = "\x64\x69\x73\x70\x6c\x61y\x5f\x6d\x6fd\x65";
${"G\x4c\x4fB\x41\x4cS"}["\x78\x64g\x74\x67a\x62uy"] = "\x74\x65mp\x6c\x61\x74\x65";
${"\x47\x4c\x4f\x42AL\x53"}["t\x64\x79\x65\x63\x70i\x62\x77\x76"] = "\x68\x65\x6cp\x65\x72";
${"\x47L\x4f\x42AL\x53"}["\x73f\x6e\x69g\x69\x75\x6bw\x67fk"] = "\x74\x69tle";
${"\x47L\x4f\x42A\x4cS"}["\x6at\x7a\x72\x73\x65\x6e\x6c\x73\x74c\x64"] = "\x6do\x64\x65";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x69\x69jp\x61\x74"] = "output\x33";
${"\x47LO\x42AL\x53"}["\x76\x61h\x77\x66\x68\x66\x63\x66\x6d\x72"] = "\x6f\x75\x74\x70\x75t0";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x6c\x76u\x66\x71\x64\x6dg\x64\x64g"] = "t\x61b\x73";
${"G\x4c\x4fBA\x4cS"}["\x6af\x7ar\x77s\x70\x71\x75\x64\x72"] = "\x72\x65\x73\x75l\x74";
${"GLOB\x41\x4c\x53"}["\x71\x6eo\x70i\x72\x79\x70k\x73\x64\x79"] = "\x74e\x6d\x70\x6c\x61\x74\x65\x73";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x7a\x75\x7a\x77\x73\x68\x75\x63\x70\x66"] = "\x6futp\x75\x74\x34";
${"\x47\x4c\x4fBAL\x53"}["b\x68\x75\x78\x62\x62\x69xa\x79h"] = "\x6fu\x74p\x75\x74\x32";
${"G\x4c\x4fB\x41\x4c\x53"}["b\x66\x73\x67\x79w\x63\x63g\x71w"] = "\x6f\x75tp\x75t\x31";
${"G\x4c\x4f\x42\x41L\x53"}["\x73\x6c\x76b\x69\x6a\x68\x6f\x6cg\x73"] = "\x65\x78\x74_pr\x6fp";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x76t\x6apfw\x79\x63\x6ar"] = "\x72";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x78\x6d\x6c\x62\x72sq"] = "id\x5f\x70\x70\x5f\x74\x65\x6d\x70\x6c\x61\x74\x65";
${"G\x4cOBA\x4cS"}["\x62csdj\x67\x63\x76dd"] = "a\x73si\x67n";
${"\x47\x4cO\x42\x41\x4c\x53"}["d\x75bjmw"] = "\x6d\x61\x6e\x61g\x65T\x65\x6dplat\x65s";
${"\x47\x4c\x4f\x42AL\x53"}["\x69e\x72\x6cz\x70\x66p"] = "\x6f\x62je\x63t";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x63\x77\x79o\x64i\x6a"] = "de\x6c\x65\x74e\x5fa\x6cl\x5f\x61\x74\x74r\x69\x62u\x74e\x73";
${"\x47L\x4fB\x41\x4cS"}["z\x6dejvg"] = "i\x64\x5f\x70\x72o\x64\x75\x63\x74_at\x74\x72\x69\x62u\x74\x65";
${"\x47L\x4f\x42\x41LS"}["r\x64nl\x63x\x69\x6d\x64nr\x68"] = "\x69d\x5f\x70\x72\x6fd\x75c\x74";
${"GL\x4f\x42\x41LS"}["\x68\x61\x70\x72gn\x6d"] = "\x74\x72\x61ns\x6c\x61\x74i\x6f\x6e\x73";
${"G\x4cOB\x41LS"}["f\x73o\x6d\x67\x62\x73"] = "j\x73\x5ff\x69l\x65s";
${"G\x4c\x4fBA\x4cS"}["\x6d\x70\x69\x73d\x75\x77\x65g"] = "\x66i\x6ce";
${"\x47L\x4f\x42\x41\x4cS"}["oj\x74\x7ag\x65o\x7a"] = "\x63s\x73\x5f\x66\x69\x6ce\x73";
${"\x47\x4cOBA\x4c\x53"}["y\x6a\x77\x72\x73f\x78\x71s\x6b"] = "p\x72\x6fpe\x72\x74ie\x73";
${"\x47\x4c\x4f\x42\x41L\x53"}["g\x68w\x74\x73\x75m\x73\x6a"] = "\x74em\x70\x6c\x61te\x5f\x69\x64";
${"\x47\x4c\x4f\x42A\x4cS"}["\x63\x79\x68\x78\x63\x77\x69"] = "a\x64\x64\x5fe\x78\x74\x72\x61";
${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6bud\x6c\x61y\x77\x78u"] = "\x68\x74\x6dl";
${"\x47\x4c\x4f\x42A\x4cS"}["y\x6fbo\x6a\x64\x6f\x6cw\x62\x77"] = "\x77\x61\x72\x6e";
${"G\x4cOBA\x4c\x53"}["\x71\x73\x62\x72\x77y\x75o\x71\x74"] = "\x63\x6fnt\x72\x6f\x6c\x6c\x65r";
${"GL\x4f\x42AL\x53"}["fp\x79rvilf\x65d\x78"] = "t\x61\x62";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x69s\x75\x6bh\x63\x79\x66\x70"] = "\x68\x61s\x5f\x64\x69\x73\x63\x6fun\x74\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x79gci\x72y\x79\x72\x77"] = "\x61\x63t\x69\x6f\x6e\x73";
${"G\x4c\x4fBALS"}["\x62\x73c\x6fg\x65\x6d\x7a"] = "\x61\x72\x72";
${"G\x4cO\x42ALS"}["\x63\x63s\x78\x72\x6f\x6f"] = "s";
${"\x47L\x4fB\x41\x4c\x53"}["y\x6a\x68e\x69\x6fj"] = "\x70\x6f\x73it\x69o\x6e";
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x69\x6e\x6ez\x61\x74\x76"] = "\x73c\x72\x69pt";
${"GLOB\x41L\x53"}["v\x63\x64\x6f\x74\x70\x6fo\x77"] = "p\x70\x5fp\x72o\x64uct\x5f\x70\x72o\x70er\x74i\x65\x73";
${"\x47LO\x42\x41\x4cS"}["\x77\x69\x68l\x72\x62\x6d\x71"] = "va\x6c\x75\x65";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x7ae\x6dr\x6a"] = "\x6bey";
${"GLO\x42AL\x53"}["\x74tyl\x7anm\x70\x6ej"] = "\x70\x72\x6f\x64\x75\x63\x74_p\x72o\x70\x65r\x74\x69es";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68l\x62\x62\x6d\x71hab\x6e\x70"] = "q\x75ot\x65\x73";
${"\x47\x4cO\x42\x41L\x53"}["\x77r\x72\x76\x65\x64h\x6fqj"] = "ty\x70\x65";
${"\x47\x4c\x4fB\x41L\x53"}["\x62zs\x61\x78\x6f\x66\x6f\x77dk"] = "\x72\x65\x74";
${"\x47LO\x42AL\x53"}["\x6b\x75c\x6a\x78\x67\x6f\x66"] = "\x70\x72\x6fdu\x63\x74";
${"\x47\x4cO\x42\x41L\x53"}["\x72gf\x78\x67\x64\x79\x6c"] = "\x73\x5f\x70\x72\x6f\x64\x75\x63t";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x78g\x62l\x74\x69"] = "\x70ara\x6d\x73";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x74\x64q\x64g"] = "\x73\x74\x72";
${"\x47L\x4f\x42A\x4cS"}["\x72\x75g\x79\x6f\x62\x78k\x6b"] = "p\x70\x5f\x76\x65\x72\x73i\x6f\x6e";
${"\x47\x4cO\x42\x41\x4c\x53"}["c\x64\x63z\x77\x67ey\x6a\x70\x6a\x6d"] = "m\x65\x61\x73\x75\x72e\x6de\x6e\x74\x5f\x73y\x73t\x65\x6d\x73";
${"\x47LOB\x41L\x53"}["lc\x67\x74\x62\x72\x78\x64\x6d\x78\x6c"] = "\x61\x70i\x5f\x76e\x72\x73\x69\x6f\x6e";
${"G\x4c\x4fB\x41L\x53"}["\x73z\x76k\x6d\x6c\x6a\x67"] = "\x70l\x75gi\x6e\x73";
${"\x47\x4cO\x42AL\x53"}["\x69\x63i\x6ecm\x69b"] = "\x77";
${"GL\x4f\x42A\x4c\x53"}["\x67q\x74x\x6bi\x69\x67\x62\x64\x74"] = "\x73\x65\x74\x75p";
${"\x47L\x4fBA\x4cS"}["s\x65\x71sm\x79bqt\x79s"] = "\x63ou\x6et";
${"G\x4cO\x42\x41\x4cS"}["\x79s\x64k\x62j\x64e\x68"] = "\x63\x6f\x6e\x74\x65n\x74";
${"\x47\x4cO\x42AL\x53"}["z\x6d\x6f\x6fhzfw\x63"] = "\x64\x6f\x6e\x65";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x61\x66kaj\x73\x65"] = "\x6ea\x6de";
class PProperties extends Module
{
const USER_START_ID = 100;
const PROPERTY_TYPE_GENERAL = 1;
const PROPERTY_TYPE_BUY_BLOCK_TEXT = 2;
const PROPERTY_TYPE_EXT = 3;
const DIMENSIONS = 3;
public $integrated = false;
public $integration_test_result = null;
private $default_language_id;
private $multidimensional_plugin = false;
private $active_languages;
private static $hook_id = 0;
public function __construct($name = null, Context $context = null)
{
$this->name = "\x70\x70r\x6f\x70\x65\x72\x74ie\x73";
$this->tab = "a\x64m\x69\x6eis\x74\x72\x61ti\x6f\x6e";
$this->version = "2.14";
$this->author = "\x70\x73\x61n\x64\x6d\x6fre";
$this->module_key = "a783\x315\x3086\x66\x312ede\x37\x39\x33\x318\x33c1\x313b2\x32\x33\x36\x31\x37";
$this->need_instance = 1;
$this->ps_versions_compliancy = array(
"\x6d\x69\x6e" => "1.\x36.\x30.1\x34",
"ma\x78" => "\x31.6\x2e0.14"
);
$this->bootstrap = true;
$qvsnezxztntt = "c\x6f\x6et\x65x\x74";
parent::__construct(${${"\x47L\x4f\x42\x41L\x53"}["\x61\x66\x6ba\x6a\x73e"]}, ${$qvsnezxztntt});
$this->displayName = $this->l("P\x72\x6fduct Pr\x6fp\x65\x72ti\x65s\x20E\x78t\x65n\x73ion");
$this->description = $this->l("Ex\x74end\x73 \x70r\x6f\x64u\x63\x74 p\x72\x6f\x70\x65r\x74i\x65\x73 a\x6ed\x20\x61\x64d\x20su\x70po\x72\x74\x20fo\x72 \x70r\x6fd\x75\x63\x74s\x20\x77ith f\x72a\x63t\x69o\x6ea\x6c \x75\x6e\x69\x74\x73 \x6f\x66\x20\x6de\x61s\x75\x72\x65men\x74s\x20(f\x6f\x72 ex\x61\x6d\x70le: \x77\x65i\x67\x68\x74,\x20len\x67\x74\x68,\x20v\x6f\x6c\x75me)");
$this->confirmUninstall = $this->l("When yo\x75 \x75\x6ein\x73tal\x6c\x20this\x20m\x6fdu\x6c\x65 \x74\x68e user da\x74a\x20\x69s\x20no\x74 \x6c\x6f\x73t \x61n\x64 \x72\x65\x6da\x69ns\x20in \x74\x68\x65 \x64a\x74a\x62ase.\x20It\x20\x77il\x6c\x20\x62e \x61\x76a\x69lable\x20ne\x78t \x74\x69\x6d\x65\x20y\x6fu \x69\x6esta\x6c\x6c the m\x6fd\x75le\x2e\x20Are \x79\x6fu \x73u\x72e \x79ou\x20wan\x74 \x74o\x20re\x6d\x6fv\x65 t\x68e \x50\x72\x6fd\x75ct\x20P\x72\x6fper\x74i\x65\x73\x20\x45\x78\x74\x65\x6e\x73\x69on \x6d\x6fdu\x6ce?");
$this->secure_key = Tools::encrypt($this->name);
if (Module::isInstalled($this->name)) {
require_once(dirname(__FILE__) . "/ps\x6d_h\x65l\x70er\x2e\x70h\x70");
$this->integrated = (Configuration::get("PP\x5fINTEG\x52AT\x49O\x4e") == $this->integrationKey());
if (PP::multidimensionalEnabled())
$this->multidimensional_plugin = PSM::getPlugin("pp\x72op\x65\x72t\x69\x65\x73mult\x69\x64imen\x73i\x6f\x6eal");
} else {
static $done;
if (!${${"\x47\x4c\x4f\x42AL\x53"}["\x7a\x6do\x6f\x68\x7afw\x63"]}) {
$btiltkvpaz = "\x64\x6f\x6ee";
${$btiltkvpaz} = true;
${"GL\x4fB\x41\x4c\x53"}["\x61yt\x66t\x6bpp\x6d"] = "\x63\x6f\x6et\x65nt";
require_once(dirname(__FILE__) . "/psm\x5fhelpe\x72_\x69\x6et\x65gr\x61\x74e\x2ep\x68\x70");
${"\x47LO\x42A\x4c\x53"}["l\x6am\x64s\x70a\x77\x78\x6d\x77\x6f"] = "\x63on\x74\x65n\x74";
${"\x47\x4c\x4fBA\x4c\x53"}["\x77uf\x7a\x71ru\x75"] = "\x66\x69\x6c\x65\x6ea\x6de";
$yqtzgjiqbis = "f\x69l\x65\x6eam\x65";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x74p\x71\x67\x6f\x71fk"] = "f\x69le\x6ea\x6de";
$ynidskxpfpb = "\x63\x6f\x75\x6et";
psmHelperIntegrate(array(
$this->name
));
${${"\x47L\x4f\x42\x41LS"}["\x74pq\x67\x6fq\x66\x6b"]} = _PS_ROOT_DIR_ . "/\x63l\x61\x73se\x73/\x6d\x6fd\x75l\x65/M\x6fd\x75\x6c\x65.\x70\x68p";
${${"\x47\x4cOB\x41\x4c\x53"}["\x61\x79\x74\x66\x74k\x70\x70m"]} = Tools::file_get_contents(${$yqtzgjiqbis});
${${"\x47L\x4f\x42ALS"}["y\x73\x64\x6b\x62\x6a\x64eh"]} = str_replace(array(
"?(?:\x70\x68p)?\x5cs\x23",
"\x61\x72ray(\x27\x20',"
), array(
"?\x70h\x70\x23",
"ar\x72ay(\x27\x27,"
), ${${"\x47L\x4fB\x41L\x53"}["lj\x6d\x64\x73paw\x78\x6d\x77o"]}, ${${"\x47LO\x42\x41\x4c\x53"}["\x73\x65q\x73\x6dy\x62q\x74y\x73"]});
if (${$ynidskxpfpb} > 0)
@file_put_contents(${${"GL\x4f\x42\x41L\x53"}["\x77\x75fz\x71\x72\x75\x75"]}, ${${"\x47\x4cO\x42\x41L\x53"}["\x79\x73d\x6b\x62\x6ad\x65\x68"]});
require_once(dirname(__FILE__) . "/p\x73m\x5fhe\x6cp\x65r\x2eph\x70");
psmIntegrateCore($this, dirname(__FILE__) . "/\x70s\x6d\x2e\x70hp", $this->_errors);
if (function_exists("\x70\x73\x6dPr\x65\x70\x61r\x65"))
psmPrepare($this);
}
}
}
public function install()
{
set_time_limit(0);
if (version_compare(phpversion(), "\x35.\x33", "\x3c")) {
$this->_errors[] = sprintf($this->l("Requr\x65\x73 P\x48P\x20ve\x72\x73\x69\x6f\x6e\x20\x25\x73\x20\x6fr \x61bo\x76e\x2e \x43ur\x72e\x6etl\x79 \x72\x75nn\x69\x6e\x67\x20P\x48\x50 %\x73 \x76\x65r\x73\x69o\x6e\x2e"), "5\x2e\x33", phpversion());
return false;
}
psmHelperIntegrate(array(
$this->name
));
if (function_exists("\x70smPrepar\x65"))
psmPrepare($this);
Tools::deleteFile(_PS_ROOT_DIR_ . "/c\x6c\x61\x73\x73\x65s/\x50\x50\x2e\x70h\x70");
if (!psmIntegrateCore($this, dirname(__FILE__) . "/p\x73\x6d.\x70\x68\x70", $this->_errors) || !psmIntegrateCore($this, dirname(__FILE__) . "/\x50\x50.\x70hp", $this->_errors, "P\x50_VE\x52SI\x4f\x4e["))
return false;
if (Shop::isFeatureActive())
Shop::setContext(Shop::CONTEXT_ALL);
${${"GLOB\x41L\x53"}["\x67qt\x78\x6bii\x67\x62\x64\x74"]} = $this->setupInstance();
$setup->cleanupOverriddenFiles();
if (!parent::install() || !$setup->installAdminTab("\x41dmi\x6ePpr\x6fpert\x69e\x73"))
return false;
if (!$this->registerHook("\x64\x69\x73\x70l\x61y\x4ea\x76") || !$this->registerHook("d\x69s\x70\x6cayHea\x64\x65r") || !$this->registerHook("d\x69\x73\x70\x6cayF\x6fo\x74e\x72") || !$this->registerHook("\x64\x69\x73\x70layPro\x64\x75ctP\x72ic\x65B\x6c\x6fck") || !$this->registerHook("\x64\x69\x73pl\x61yPp\x72\x6f\x70\x65rt\x69\x65\x73P\x72od\x75c\x74") || !$this->registerHook("\x64\x69\x73\x70l\x61\x79Ba\x63kO\x66\x66ic\x65\x48ea\x64er") || !$this->registerHook("d\x69s\x70la\x79\x41dm\x69\x6e\x50ro\x64\x75ct\x73Ext\x72a") || !$this->registerHook("\x64ispla\x79\x50r\x6f\x64\x75\x63ts\x4c\x69\x73\x74\x4c\x65ad\x69n") || !$this->registerHook("a\x63t\x69\x6fn\x4d\x6f\x64u\x6c\x65\x49ns\x74\x61\x6c\x6c\x41ft\x65r") || !$this->registerHook("ac\x74\x69on\x4do\x64u\x6ceUpgra\x64e\x41\x66t\x65r") || !$this->registerHook("ac\x74i\x6f\x6e\x50\x72\x6f\x64u\x63\x74\x41dd") || !$this->registerHook("act\x69\x6fn\x50\x72od\x75\x63t\x55pdat\x65") || !$this->registerHook("act\x69\x6fn\x50\x72odu\x63\x74\x44\x65\x6cete") || !$this->registerHook("\x61c\x74i\x6f\x6e\x50r\x6f\x64\x75\x63\x74Attr\x69\x62uteDe\x6c\x65te") || !$this->registerHook("\x61\x63\x74\x69o\x6eO\x62\x6a\x65\x63t\x43\x6f\x6db\x69\x6eatio\x6e\x44e\x6ce\x74eA\x66\x74\x65\x72"))
return false;
if ((int) Configuration::get("\x50P_ME\x41\x53URE\x4d\x45\x4eT\x5f\x53YSTEM") == 0) {
$yexjfxv = "\x77";
${$yexjfxv} = Configuration::get("\x50S\x5f\x57E\x49GH\x54_U\x4e\x49\x54");
Configuration::updateValue("PP_ME\x41S\x55REM\x45\x4e\x54_SYS\x54EM", (Tools::strtolower(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["icin\x63\x6dib"]}) == "l\x62") ? 2 : 1);
}
if (!Configuration::hasKey("\x50\x50_\x50\x4fWE\x52EDBY"))
Configuration::updateValue("\x50\x50\x5fP\x4f\x57ERE\x44\x42\x59", 1);
if (!Configuration::hasKey("P\x50_\x54EMPL\x41T\x45\x5f\x4e\x41M\x45_I\x4e_CATAL\x4fG"))
Configuration::updateValue("\x50\x50_T\x45MPLA\x54E_NA\x4d\x45\x5fI\x4e\x5fC\x41T\x41\x4cOG", 1);
Configuration::updateValue("\x50\x50_\x49N\x53TA\x4c\x4c\x5fTIM\x45", time());
$setup->install();
Configuration::deleteByName("\x50\x50\x5f\x4c\x41S\x54_V\x45R\x53I\x4f\x4e");
Configuration::updateValue("\x50\x50_\x56E\x52S\x49\x4fN", $this->version);
psmClearCache();
return true;
}
public function uninstall()
{
${"\x47\x4c\x4f\x42\x41\x4cS"}["w\x66\x6c\x6ch\x64\x76\x65\x65\x79s"] = "\x73\x65\x74u\x70";
$gumkgsgcu = "\x70\x6c\x75g\x69\x6es";
set_time_limit(0);
${${"G\x4c\x4f\x42\x41\x4cS"}["\x73\x7av\x6bm\x6c\x6ag"]} = $this->plugins();
foreach (${$gumkgsgcu} as ${${"GL\x4fBA\x4cS"}["\x61\x66\x6b\x61\x6a\x73e"]} => ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x63\x67t\x62r\x78d\x6d\x78\x6c"]}) {
if (Module::isInstalled(${${"\x47\x4c\x4fBA\x4cS"}["a\x66\x6ba\x6as\x65"]}))
$this->_errors[] = sprintf($this->l("\x50\x6c\x65\x61se\x20un\x69\x6e\x73\x74\x61l\x6c t\x68e \x22\x25\x73\"\x20mo\x64ule."), Module::getModuleName(${${"G\x4c\x4f\x42\x41L\x53"}["a\x66k\x61\x6a\x73e"]}));
}
if ($this->_errors)
return false;
${${"G\x4c\x4fB\x41L\x53"}["w\x66l\x6ch\x64\x76\x65\x65\x79\x73"]} = $this->setupInstance();
$setup->cleanupOverriddenFiles();
if (!parent::uninstall() || !$setup->uninstallAdminTab("Ad\x6d\x69\x6ePpr\x6fper\x74\x69es"))
return false;
$setup->uninstall();
Configuration::deleteByName("PP_I\x4eT\x45\x47\x52A\x54IO\x4e");
Configuration::deleteByName("PP_\x49N\x54\x45G\x52A\x54ION_\x43\x48\x45C\x4b");
Configuration::deleteByName("\x50P\x5f\x49\x4e\x54EGR\x41TION_EX\x54\x52\x41_\x4dOD\x55\x4cES");
Configuration::deleteByName("\x50\x50\x5fI\x4e\x46O\x5f\x43O\x4eT\x45\x4e\x54");
Configuration::deleteByName("P\x50_I\x4eFO_C\x48E\x43K\x5f\x54\x49ME");
Configuration::deleteByName("PP_\x56\x45R\x53\x49\x4fN");
Configuration::updateValue("PP_L\x41S\x54_\x56ER\x53\x49O\x4e", $this->version);
PrestaShopAutoload::getInstance()->generateIndex();
return true;
}
public function hookDisplayNav($params)
{
if (Tools::getValue("a\x6a\x61x") || Configuration::get("\x50S\x5fC\x41T\x41L\x4f\x47\x5fM\x4fD\x45"))
return;
if (PP::isMeasurementSystemFOActivated()) {
${"\x47\x4c\x4f\x42AL\x53"}["\x6f\x62ghwgxi\x69\x6d"] = "mea\x73\x75\x72\x65\x6de\x6e\x74_\x73ys\x74em\x73";
${${"\x47\x4c\x4fB\x41\x4cS"}["\x6f\x62\x67h\x77\x67\x78i\x69m"]} = array(
PP::PP_MS_METRIC => array(
"n\x61m\x65" => $this->l("\x4d\x65\x74\x72ic"),
"ti\x74\x6ce" => $this->l("M\x65\x74r\x69\x63\x20m\x65a\x73\x75r\x65ment \x73\x79\x73te\x6d")
),
PP::PP_MS_NON_METRIC => array(
"\x6e\x61\x6de" => $this->l("Im\x70\x65\x72i\x61\x6c/U\x53"),
"\x74itle" => $this->l("Imp\x65r\x69\x61\x6c/US\x20\x6dea\x73\x75\x72em\x65n\x74\x20s\x79st\x65\x6d")
)
);
$this->smarty->assign("\x6d\x65\x61s\x75\x72\x65me\x6et\x5f\x73\x79\x73te\x6d\x73", ${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63d\x63\x7a\x77\x67e\x79jp\x6am"]});
return $this->display(__FILE__, "\x66\x72o\x6e\x74/\x6de\x61\x73urement\x5fsys\x74e\x6d.tpl");
}
}
public function hookDisplayHeader($params)
{
${"\x47\x4cO\x42\x41L\x53"}["\x68\x70\x70\x70\x70\x6d\x6au\x75"] = "pp\x5f\x76\x65\x72\x73\x69\x6f\x6e";
if (Tools::getValue("ajax") || Configuration::get("\x50S_\x43\x41T\x41\x4cOG_MO\x44\x45"))
return;
$this->context->controller->addCSS($this->getPathUri() . "\x76ie\x77s/c\x73\x73/\x70p\x5f\x74heme_\x70proper\x74i\x65s\x2e\x63\x73\x73");
$this->context->controller->addCSS($this->getPathUri() . "c\x75\x73\x74\x6f\x6d\x2ec\x73\x73");
$this->context->controller->addJquery();
$vqkhyrdxm = "\x70\x70\x5f\x76e\x72\x73i\x6f\x6e";
$this->context->controller->addJS($this->getPathUri() . "\x76iews/j\x73/p\x70ro\x70\x65\x72\x74\x69\x65s\x2e\x6a\x73");
$this->context->controller->addJS($this->getPathUri() . "\x76\x69\x65\x77\x73/js/p\x70\x5f\x74h\x65\x6d\x65_p\x70rope\x72ti\x65\x73.j\x73");
if ($this->context->controller instanceof ProductController) {
$this->context->controller->addJqueryPlugin("ty\x70ewatch");
$this->context->controller->addJS($this->getPathUri() . "\x76\x69\x65w\x73/j\x73/\x70p\x5f\x74h\x65me\x5fp\x72o\x64uc\x74\x2ejs");
$this->context->controller->addJS($this->getPathUri() . "\x63\x75s\x74\x6fm\x5fp\x72\x6fd\x75ct.\x6as");
}
$this->context->controller->addJS($this->getPathUri() . "cus\x74\x6f\x6d\x2ej\x73");
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x75gy\x6f\x62\x78kk"]} = "\"pp-" . str_replace(array(
".",
"-"
), "", $this->version) . "\x22";
return "\n\t\t\t\x3csc\x72\x69pt\x20t\x79\x70\x65\x3d\x22t\x65x\x74/\x6aa\x76a\x73c\x72ip\x74\x22>\n\t\t\t\tva\x72\x20p\x70_\x76e\x72s\x69o\x6e = " . ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x70\x70p\x70m\x6a\x75\x75"]} . ";\n\t\t\t\t\x70\x70\x2ed\x65ci\x6dal\x53\x69g\x6e=\x22" . PP::getDecimalSign() . "\x22\x3b\n\t\t\t\t\$(doc\x75m\x65\x6et).re\x61dy(fu\x6ect\x69\x6f\x6e()\x20{\n\t\t\t\t\t\$(\x22\x62\x6f\x64\x79\").\x61d\x64\x43la\x73s(" . ${$vqkhyrdxm} . ");\n\t\t\t\t});\n\t\t\t\x3c/scri\x70t>";
}
public function hookDisplayFooter($params)
{
if (Tools::getValue("a\x6aax") || Configuration::get("P\x53_\x43\x41T\x41\x4c\x4fG\x5fMO\x44\x45"))
return;
${${"G\x4c\x4f\x42\x41L\x53"}["\x6btd\x71dg"]} = "\x3cn\x6f\x73\x63ript>P\x6c\x65\x61s\x65 \x65\x6e\x61ble\x20\x6aav\x61\x73cr\x69\x70t\x20\x69\x6e\x20\x6fr\x64e\x72 to\x20\x75\x73e \x50r\x6fdu\x63\x74\x20P\x72operti\x65s Exte\x6e\x73io\x6e\x20\x3c\x61 hr\x65f=\"\x68t\x74p://\x70s\x61ndm\x6f\x72e.\x63om\x22 ti\x74\x6c\x65\x3d\"\x50r\x6fd\x75\x63t\x20Pro\x70e\x72ti\x65\x73 Exten\x73ion\x20p\x6fwere\x64\x20b\x79 \x50S&\x61m\x70\x3b\x4do\x72\x65\x26t\x72ade\x3b\x22>Po\x77\x65r\x65d\x20\x62y\x20PS&\x61\x6d\x70\x3bMo\x72\x65&\x74\x72\x61\x64\x65;</a\x3e\x3c/n\x6f\x73\x63\x72\x69p\x74>";
if ((int) Configuration::get("\x50\x50_PO\x57\x45R\x45\x44B\x59")) {
${${"G\x4c\x4f\x42\x41\x4c\x53"}["k\x74\x64\x71dg"]} .= "<\x73pan\x20\x69\x64\x3d\"p\x6f\x77\x65\x72e\x64\x5f\x62\x79_\x70\x73\x61nd\x6do\x72\x65\x22 cl\x61ss\x3d\"\x73\x6fl\x6f\x22><a\x20\x68r\x65f\x3d\x22\x68\x74\x74\x70://\x70s\x61n\x64more\x2e\x63\x6fm\x22 \x74\x61r\x67e\x74=\x22_bl\x61\x6ek\x22\x20t\x69tle=\"" . sprintf($this->l("\x54h\x69s\x20site i\x73\x20\x75sing Pro\x64u\x63\x74 P\x72o\x70\x65r\x74\x69e\x73 Ex\x74\x65n\x73ion \x70owe\x72ed\x20\x62\x79\x20%\x73"), "P\x53&a\x6dp\x3bM\x6fr\x65&\x74ra\x64\x65;") . "\x22>" . sprintf($this->l("Powe\x72\x65\x64\x20\x62y\x20\x25\x73"), "\x50\x53&\x3b\x4do\x72\x65&\x74rade\x3b") . "</\x61\x3e</\x73p\x61\x6e>";
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x74\x64\x71dg"]} .= "\n\t\t\t\x3c\x73c\x72\x69p\x74 t\x79\x70e\x3d\x22\x74\x65xt/\x6aav\x61sc\x72\x69pt\x22>\n\t\t\t\t\$(\x64o\x63\x75\x6d\x65nt)\x2ere\x61d\x79(fun\x63tio\x6e() {\n\t\t\t\t\t\x76ar\x20b\x6f\x74tom_f\x6f\x6ft\x65\x72 = \$(\"\x73ec\x74\x69\x6f\x6e.\x62\x6ft\x74\x6fm-f\x6fot\x65r \x3e \x64\x69v\x22)\x3b\n\t\t\t\t\t\x69f (\x62o\x74to\x6d\x5f\x66o\x6ft\x65\x72.len\x67t\x68)\x20{\n\t\t\t\t\t\t\x76ar\x20\x70owere\x64_by_p\x73andm\x6fr\x65 \x3d\x20\$(\"#po\x77\x65red\x5f\x62y\x5fp\x73\x61\x6e\x64\x6d\x6fr\x65\x22);\n\t\t\t\t\t\tpo\x77\x65\x72\x65\x64_by_p\x73a\x6ed\x6d\x6fre.\x72emo\x76e\x43\x6ca\x73s(\"\x73\x6f\x6co\")\x3b\n\t\t\t\t\t\tb\x6f\x74tom\x5ff\x6f\x6f\x74\x65r.a\x70\x70\x65nd(powe\x72\x65d_b\x79\x5fp\x73\x61\x6e\x64mo\x72\x65.d\x65t\x61ch());\n\t\t\t\t\t}\n\t\t\t\t})\x3b\n\t\t\t</s\x63rip\x74\x3e";
}
return ${${"\x47L\x4fB\x41LS"}["k\x74d\x71d\x67"]};
}
public function hookDisplayProductPriceBlock($params)
{
$surctnbvchig = "\x70\x61ram\x73";
$hcgjreqwygn = "\x70\x72odu\x63\x74";
${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62\x78g\x69n\x68\x6d\x78\x71\x74\x72"] = "\x72et";
$tqmbitpuhkyz = "p\x61ra\x6ds";
if (!$this->integrated)
return;
static $s_product = null;
${"\x47\x4c\x4f\x42AL\x53"}["\x65\x6ddppo"] = "\x70r\x6f\x64\x75\x63t";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75\x76cb\x6c\x6b\x69x\x64"] = "\x70\x61r\x61\x6ds";
if (isset(${$tqmbitpuhkyz}["\x70\x72\x6fduct"]))
${$hcgjreqwygn} = ${${"\x47\x4c\x4fBAL\x53"}["\x78\x67\x62\x6ct\x69"]}["\x70r\x6f\x64\x75ct"];
elseif (isset(${$surctnbvchig}["\x69\x64_prod\x75ct"])) {
${"\x47\x4c\x4fBAL\x53"}["b\x75\x71\x79\x79o\x67zwtf"] = "\x70\x72\x6f\x64\x75\x63\x74";
$xensyjnvysc = "\x70\x61ra\x6d\x73";
if (${${"G\x4c\x4fB\x41L\x53"}["\x72\x67\x66\x78g\x64yl"]} !== null && $s_product->id == ${$xensyjnvysc}["id_\x70ro\x64uc\x74"])
${${"\x47LO\x42\x41LS"}["b\x75\x71\x79\x79\x6fg\x7a\x77\x74f"]} = ${${"\x47\x4c\x4f\x42AL\x53"}["\x72\x67f\x78g\x64\x79\x6c"]};
else
${${"\x47\x4c\x4fBAL\x53"}["\x6b\x75c\x6a\x78\x67\x6f\x66"]} = new Product(${${"G\x4cO\x42\x41\x4cS"}["xgbl\x74\x69"]}["\x69\x64\x5f\x70r\x6fduc\x74"], true, $this->context->language->id);
} else
${${"\x47L\x4f\x42ALS"}["\x65\x6d\x64\x70po"]} = null;
if (!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6buc\x6a\x78\x67\x6f\x66"]}))
return;
${${"\x47L\x4f\x42ALS"}["\x72\x67f\x78\x67\x64\x79l"]} = ${${"\x47LO\x42\x41\x4c\x53"}["\x6b\x75\x63j\x78\x67o\x66"]};
${${"G\x4cO\x42\x41\x4cS"}["\x62\x7as\x61xo\x66\x6f\x77\x64\x6b"]} = "";
$rurvscdmk = "\x74y\x70\x65";
${$rurvscdmk} = ${${"G\x4c\x4fB\x41\x4c\x53"}["\x75vcb\x6c\x6bi\x78d"]}["\x74y\x70\x65"];
switch (${${"GL\x4f\x42\x41\x4c\x53"}["w\x72rve\x64\x68\x6fq\x6a"]}) {
case "\x70r\x69\x63e":
break;
case "unit\x5f\x70ri\x63e":
break;
case "o\x6cd\x5f\x70r\x69ce":
break;
case "w\x65\x69\x67\x68t":
break;
default:
break;
}
return ${${"G\x4cO\x42\x41\x4c\x53"}["b\x78\x67\x69n\x68\x6dx\x71\x74r"]};
}
public function hookDisplayPpropertiesProduct($params)
{
$jmojxfnsokr = "pr\x6f\x64u\x63t\x5f\x70\x72\x6f\x70\x65rtie\x73";
${"GLOBA\x4c\x53"}["x\x64\x62dst\x63\x6f\x6fu"] = "\x70\x72\x6fd\x75\x63\x74_\x70\x72o\x70\x65\x72t\x69\x65\x73";
$rgskaxeuas = "\x73\x63\x72\x69p\x74";
${"G\x4cO\x42\x41\x4cS"}["xt\x6f\x71q\x6e\x6fc\x7a\x70\x69"] = "\x70\x70\x5fpr\x6fd\x75\x63\x74\x5f\x70\x72\x6fp\x65\x72\x74\x69e\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ne\x6f\x75r\x65b"] = "\x70r\x6f\x64\x75\x63t";
$lpqqmolr = "par\x61m\x73";
${"\x47\x4c\x4f\x42\x41\x4cS"}["i\x77\x70\x74zz\x70\x70j\x65\x69"] = "\x71\x75o\x74\x65\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68ky\x6e\x6e\x6c\x7a\x72\x77"] = "\x70r\x6f\x64\x75ct\x5f\x70r\x6f\x70er\x74\x69\x65\x73";
${"GL\x4f\x42A\x4c\x53"}["\x65z\x71\x62e\x6ck"] = "\x70p_p\x72\x6fd\x75c\x74\x5fp\x72\x6f\x70e\x72\x74\x69\x65\x73";
$onrulvowf = "pp\x5fp\x72\x6f\x64uc\x74\x5f\x70\x72\x6fp\x65r\x74\x69\x65\x73";
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x62\x76\x6f\x62\x70\x76h"] = "\x76a\x6c\x75\x65";
$adedwa = "\x61\x63\x74\x69\x6f\x6e\x73";
${"G\x4cO\x42\x41\x4c\x53"}["\x72\x68\x6aqt\x6a\x63"] = "k\x65y";
${"G\x4c\x4fB\x41\x4c\x53"}["\x6b\x74\x6b\x6b\x68\x73\x74\x6f"] = "\x6b\x65\x79";
${"\x47\x4c\x4fB\x41\x4cS"}["c\x6f\x78\x66\x6a\x6cp\x6esvh"] = "\x70p\x5fprodu\x63t\x5fp\x72\x6fp\x65r\x74ie\x73";
${"GL\x4fBAL\x53"}["u\x69\x6b\x6b\x64\x62\x79"] = "\x70\x72\x6fdu\x63\x74_\x70r\x6fp\x65r\x74\x69e\x73";
if (!$this->integrated)
return;
${"\x47\x4c\x4fB\x41\x4c\x53"}["r\x76p\x6e\x6aq\x74"] = "pp\x5f\x70\x72o\x64\x75c\x74\x5fp\x72o\x70e\x72\x74\x69\x65\x73";
$kgkjwewdi = "h\x61\x73_\x64\x69s\x63\x6f\x75n\x74\x73";
${"G\x4c\x4fB\x41\x4c\x53"}["pa\x76\x74\x68o\x77\x69\x71\x61"] = "p\x61ram\x73";
${${"GLO\x42\x41\x4cS"}["k\x75c\x6a\x78g\x6f\x66"]} = ${$lpqqmolr}["\x70\x72\x6fd\x75\x63t"];
$tmhlcuj = "p\x61r\x61\x6d\x73";
if (!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42A\x4cS"}["neo\x75\x72\x65b"]}))
return;
$drpvjmugjsw = "\x73\x63\x72\x69\x70t";
$orhfptbwismo = "\x70\x72\x6fduc\x74_\x70\x72\x6f\x70e\x72\x74\x69\x65\x73";
${"\x47\x4c\x4fB\x41\x4cS"}["l\x6bo\x64\x63\x75vamg"] = "\x70p\x5f\x70ro\x64u\x63\x74\x5f\x70\x72\x6f\x70e\x72\x74i\x65s";
${$kgkjwewdi} = (isset(${$tmhlcuj}["\x70\x70Disc\x6f\x75\x6e\x74s"]) && (bool) ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70a\x76\x74\x68\x6f\x77\x69\x71a"]}["\x70\x70Di\x73c\x6f\x75\x6ets"]);
${$orhfptbwismo} = $product->productProperties();
${"\x47\x4cOB\x41\x4cS"}["\x73lnd\x78d\x6a"] = "\x70\x72\x6f\x64\x75c\x74";
${${"G\x4c\x4f\x42\x41L\x53"}["ez\x71\x62\x65l\x6b"]} = array();
${"G\x4c\x4fB\x41\x4cS"}["w\x7a\x63u\x72\x63"] = "\x76\x61\x6c\x75\x65";
${${"\x47L\x4fBAL\x53"}["h\x6c\x62b\x6dqh\x61bn\x70"]} = array();
foreach (${${"G\x4c\x4fB\x41\x4cS"}["\x74ty\x6c\x7a\x6e\x6d\x70\x6ej"]} as ${${"\x47LO\x42A\x4c\x53"}["\x6e\x7ae\x6d\x72\x6a"]} => ${${"\x47\x4c\x4f\x42AL\x53"}["\x62\x76\x6f\x62p\x76\x68"]}) {
$mcsglxa = "k\x65y";
if (strpos(${$mcsglxa}, "p\x70\x5f") === 0 && strpos(${${"GLOB\x41\x4c\x53"}["\x6eze\x6d\x72j"]}, "\x70p_bo\x5f") !== 0 && strpos(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x7a\x65m\x72\x6a"]}, "\x5f\x74\x65xt") > 0) {
$nyukyikifea = "\x71\x75\x6f\x74\x65\x73";
${"\x47\x4c\x4fB\x41\x4cS"}["i\x69\x63\x70\x79p\x66\x6e"] = "ke\x79";
$qywntpmsihh = "\x70\x70\x5f\x70\x72\x6fd\x75\x63t_p\x72\x6f\x70\x65r\x74i\x65\x73";
${$qywntpmsihh}[${${"\x47\x4c\x4f\x42\x41LS"}["\x69\x69\x63\x70\x79\x70\x66\x6e"]}] = ${${"\x47LO\x42AL\x53"}["wih\x6cr\x62m\x71"]};
${$nyukyikifea}[${${"GLO\x42\x41L\x53"}["\x6e\x7a\x65\x6d\x72\x6a"]}] = true;
}
}
$vtwoinbetn = "\x70\x70\x5fpr\x6f\x64u\x63\x74\x5fpro\x70e\x72\x74\x69\x65s";
foreach ($this->getTranslations("P\x72od\x75c\x74Cont\x72\x6f\x6c\x6c\x65\x72") as ${${"G\x4cO\x42A\x4c\x53"}["\x6b\x74\x6b\x6b\x68\x73\x74\x6f"]} => ${${"\x47\x4c\x4fB\x41\x4c\x53"}["w\x7a\x63\x75r\x63"]}) {
${"\x47LO\x42AL\x53"}["\x75\x75j\x7a\x7a\x75\x72usrh"] = "v\x61\x6c\x75\x65";
$owhjow = "\x70\x70\x5f\x70\x72od\x75\x63\x74\x5fp\x72\x6f\x70\x65\x72\x74\x69\x65\x73";
${$owhjow}[${${"\x47LO\x42A\x4c\x53"}["n\x7a\x65\x6d\x72\x6a"]}] = ${${"\x47L\x4f\x42A\x4cS"}["\x75\x75j\x7az\x75\x72usrh"]};
${${"\x47\x4c\x4fBA\x4c\x53"}["\x68\x6c\x62b\x6d\x71h\x61\x62np"]}[${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6e\x7a\x65m\x72\x6a"]}] = true;
}
${$vtwoinbetn} = PP::safeOutputJS(${${"GL\x4fB\x41LS"}["\x72\x76\x70\x6ej\x71\x74"]});
${$onrulvowf}["\x69\x64\x5f\x70\x70_\x74\x65m\x70l\x61\x74\x65"] = ${${"\x47L\x4fB\x41L\x53"}["\x74\x74\x79l\x7anm\x70\x6e\x6a"]}["i\x64\x5f\x70p_\x74\x65mp\x6ca\x74e"];
${${"\x47L\x4fB\x41\x4c\x53"}["\x76\x63\x64\x6f\x74po\x6f\x77"]}["\x70\x70\x5f\x71\x74\x79_\x70\x6f\x6c\x69c\x79"] = ${${"GL\x4f\x42\x41\x4c\x53"}["\x74\x74\x79\x6cz\x6e\x6d\x70\x6e\x6a"]}["p\x70_\x71ty\x5fp\x6fl\x69c\x79"];
$giumiben = "\x70p\x5f\x70rod\x75\x63\x74_\x70\x72\x6fp\x65r\x74\x69\x65s";
$cwrgtplci = "\x70\x72\x6f\x64\x75\x63\x74\x5fp\x72o\x70\x65rt\x69\x65\x73";
${${"\x47L\x4fB\x41\x4cS"}["vc\x64o\x74\x70\x6f\x6f\x77"]}["\x70p\x5fdi\x73p\x6cay\x5fm\x6f\x64e"] = ${${"G\x4c\x4f\x42A\x4c\x53"}["\x74\x74y\x6c\x7a\x6emp\x6ej"]}["\x70p\x5fdi\x73p\x6ca\x79\x5fmod\x65"];
${${"\x47L\x4f\x42\x41\x4c\x53"}["v\x63d\x6f\x74p\x6f\x6fw"]}["pp\x5fp\x72i\x63e\x5f\x64\x69spl\x61\x79\x5fmo\x64e"] = ${$jmojxfnsokr}["p\x70_\x70\x72\x69\x63\x65\x5fdisp\x6c\x61y_\x6dode"];
${${"\x47\x4cO\x42\x41LS"}["v\x63\x64o\x74\x70o\x6f\x77"]}["p\x70\x5fmin\x69m\x61l\x5f\x70rice\x5f\x72at\x69o"] = ${${"\x47\x4c\x4fB\x41LS"}["h\x6b\x79n\x6e\x6c\x7a\x72\x77"]}["p\x70_\x6d\x69\x6e\x69mal\x5f\x70\x72\x69\x63e\x5f\x72\x61\x74\x69\x6f"];
${"\x47\x4cO\x42A\x4c\x53"}["\x74\x78\x67\x78\x75\x63\x70\x70\x63\x72\x6c"] = "\x76\x61\x6cu\x65";
${${"G\x4c\x4fB\x41L\x53"}["v\x63\x64ot\x70o\x6f\x77"]}["\x70p\x5fqt\x79_ste\x70"] = ${${"\x47L\x4f\x42A\x4c\x53"}["\x74\x74y\x6c\x7an\x6d\x70\x6e\x6a"]}["pp_q\x74y\x5f\x73\x74\x65\x70"];
${${"\x47\x4c\x4fBAL\x53"}["\x76\x63\x64\x6f\x74\x70\x6f\x6f\x77"]}["mi\x6eQ\x74\x79"] = $product->minQty();
${${"G\x4cO\x42\x41L\x53"}["vcd\x6ftp\x6f\x6f\x77"]}["\x64e\x66\x61\x75l\x74\x51t\x79"] = (isset($this->context->smarty->tpl_vars["\x71\x75a\x6eti\x74\x79\x42ac\x6b\x75p"]) ? $this->context->smarty->tpl_vars["\x71\x75\x61\x6eti\x74\x79\x42a\x63\x6b\x75p"] : $product->defaultQty());
${${"\x47\x4cOB\x41\x4cS"}["\x78t\x6fq\x71n\x6fczpi"]}["\x65\x78pla\x6e\x61\x74i\x6f\x6e"] = PP::safeOutputLenientJS(${${"\x47\x4cO\x42A\x4c\x53"}["\x74\x74\x79\x6czn\x6d\x70n\x6a"]}["\x70p_\x65xpl\x61\x6e\x61\x74i\x6f\x6e"]);
${${"\x47LO\x42\x41\x4cS"}["\x69w\x70\x74\x7a\x7ap\x70\x6a\x65\x69"]}["e\x78pl\x61nati\x6f\x6e"] = true;
${${"\x47LO\x42\x41\x4c\x53"}["v\x63d\x6f\x74\x70\x6f\x6f\x77"]}["p\x70\x5fcss"] = PP::safeOutputJS(${$cwrgtplci}["\x70\x70_cs\x73"]);
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68\x6c\x62\x62m\x71h\x61b\x6ep"]}["pp_c\x73s"] = true;
if ((int) ((${${"\x47L\x4f\x42A\x4c\x53"}["\x74\x74y\x6c\x7a\x6e\x6dp\x6ej"]}["\x70p\x5f\x64i\x73pl\x61y\x5f\x6d\x6f\x64\x65"] & 2) == 2))
${$giumiben}["dis\x70l\x61y_\x6d\x6f\x64\x65_\x72e\x74\x61il\x5f\x70r\x69ce"] = Product::getRetailPrice(${${"\x47L\x4f\x42\x41L\x53"}["\x73\x6c\x6edx\x64j"]});
if (!$this->multidimensional_plugin)
${${"\x47\x4c\x4f\x42\x41L\x53"}["tt\x79\x6c\x7a\x6e\x6d\x70\x6ej"]}["\x70p\x5fe\x78t"] = 0;
${${"\x47\x4c\x4f\x42\x41\x4cS"}["l\x6bodcu\x76a\x6d\x67"]}["pp\x5f\x65\x78t"] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x64\x62ds\x74\x63\x6fo\x75"]}["\x70p_e\x78\x74"];
${$drpvjmugjsw} = "\n\t\t\x3c\x73cri\x70\x74\x20\x74\x79\x70\x65=\x22\x74ex\x74/java\x73\x63\x72\x69\x70\x74\x22\x3e\n\t\t\t\$(\"\x62o\x64y\x22).\x61ddCla\x73s(\x22" . ${${"G\x4c\x4f\x42\x41\x4cS"}["u\x69kk\x64\x62\x79"]}["p\x70\x5f\x63\x73\x73"] . " pp_\x74em\x70la\x74e\x5f" . ${${"GL\x4f\x42\x41\x4c\x53"}["\x74t\x79\x6cz\x6e\x6d\x70\x6e\x6a"]}["i\x64_pp_\x74\x65mp\x6c\x61\x74\x65"] . (Configuration::get("PP\x5fS\x48\x4f\x57\x5f\x50\x4fS\x49TI\x4f\x4e\x53") ? "\x20p\x70-p\x6fs\x69\x74i\x6f\x6es-vis\x69\x62l\x65" : "") . "\x22);\n\t\t\t\x76\x61r p\x70P\x72\x6f\x64uctP\x72oper\x74\x69\x65\x73\x20\x3d []\x3b";
foreach (${${"\x47\x4c\x4f\x42\x41L\x53"}["\x63\x6fx\x66\x6a\x6cp\x6e\x73\x76\x68"]} as ${${"\x47L\x4f\x42A\x4c\x53"}["r\x68\x6aq\x74\x6a\x63"]} => ${${"\x47\x4c\x4fBA\x4c\x53"}["\x74x\x67x\x75\x63\x70\x70c\x72\x6c"]}) {
${"G\x4c\x4fB\x41L\x53"}["d\x70\x6ci\x62woag\x74p"] = "k\x65\x79";
${"GLO\x42\x41\x4cS"}["fw\x79\x6b\x73\x63\x74i"] = "\x6b\x65y";
$tzedpvze = "\x71u\x6f\x74e\x73";
$ctqpfiqsped = "s\x63r\x69\x70\x74";
if (isset(${$tzedpvze}[${${"G\x4cO\x42\x41\x4c\x53"}["\x64\x70li\x62w\x6f\x61\x67\x74\x70"]}]))
${${"\x47LOB\x41\x4c\x53"}["\x77\x69\x68\x6cr\x62\x6dq"]} = "\x22" . ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x77i\x68l\x72b\x6d\x71"]} . "\"";
${$ctqpfiqsped} .= "\n\t\t\tp\x70\x50\x72\x6f\x64\x75\x63\x74\x50\x72\x6f\x70erti\x65\x73[\"" . ${${"G\x4c\x4f\x42A\x4c\x53"}["\x66\x77y\x6bsct\x69"]} . "\x22]\x20\x3d " . ${${"G\x4c\x4fBAL\x53"}["w\x69\x68\x6c\x72\x62\x6dq"]} . "\x3b";
}
if (${${"\x47\x4c\x4fB\x41\x4cS"}["\x74\x74\x79lz\x6e\x6d\x70n\x6a"]}["p\x70_\x65xt"] == 1) {
${"\x47L\x4f\x42\x41L\x53"}["e\x6cn\x70qb\x6f\x68\x79x"] = "\x73\x63\x72i\x70\x74";
$wyhnlsgdjuas = "\x70r\x6f\x64\x75\x63\x74_pr\x6f\x70er\x74i\x65\x73";
${"\x47L\x4f\x42\x41\x4cS"}["aonre\x73e"] = "\x70\x72\x6fd\x75ct\x5f\x70r\x6f\x70\x65\x72t\x69es";
${"\x47LO\x42A\x4c\x53"}["\x77\x65l\x6f\x6cn\x63nr\x6c"] = "p\x72\x6f\x64\x75\x63\x74\x5f\x70r\x6f\x70e\x72\x74\x69\x65\x73";
${"\x47\x4c\x4f\x42\x41\x4cS"}["b\x61\x67\x66\x77\x6be\x70\x67\x6f"] = "\x73\x63\x72i\x70\x74";
${${"\x47\x4cO\x42\x41LS"}["\x65\x6c\x6e\x70\x71boh\x79\x78"]} .= "\n\t\t\tp\x70\x50\x72od\x75ctPr\x6fp\x65rti\x65s[\"p\x70\x5f\x65xt\x5fp\x6flic\x79\x22] = " . ${$wyhnlsgdjuas}["\x70\x70\x5fext_p\x6f\x6ci\x63\x79"] . "\x3b";
$njxnfhv = "s\x63r\x69p\x74";
${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x61\x67f\x77\x6b\x65\x70\x67\x6f"]} .= "\n\t\t\tp\x70P\x72o\x64\x75c\x74\x50r\x6f\x70\x65r\x74i\x65\x73[\x22\x70p\x5fex\x74_m\x65\x74hod\"] =\x20" . ${${"G\x4c\x4f\x42A\x4c\x53"}["\x74ty\x6cz\x6e\x6dp\x6e\x6a"]}["pp_ext_m\x65\x74ho\x64"] . ";";
${${"GLO\x42\x41L\x53"}["\x69\x6e\x6eza\x74\x76"]} .= "\n\t\t\tpp\x50\x72\x6fd\x75\x63tP\x72\x6fpe\x72t\x69\x65\x73[\x22p\x70_ex\x74\x5ft\x69tle\"]\x20=\x20\"" . PP::safeOutputLenientJS(${${"GLOBA\x4c\x53"}["\x61\x6f\x6er\x65\x73\x65"]}["p\x70\x5fext\x5f\x74itle"]) . "\"\x3b";
${"\x47L\x4fB\x41L\x53"}["\x6e\x6cl\x70xua\x78\x67\x73"] = "p\x72\x6f\x64\x75\x63\x74_\x70\x72\x6fp\x65\x72\x74\x69\x65\x73";
${"G\x4cO\x42\x41\x4cS"}["b\x64\x61k\x6c\x62\x63\x6c\x6db"] = "\x61r\x72";
${${"\x47\x4c\x4fB\x41LS"}["i\x6e\x6e\x7a\x61\x74v"]} .= "\n\t\t\tp\x70P\x72\x6f\x64\x75\x63tPr\x6f\x70e\x72\x74\x69\x65s[\x22\x70\x70\x5fext_\x70\x72\x6f\x70erty\x22]\x20=\x20\"" . PP::safeOutputLenientJS(${${"\x47\x4cOB\x41\x4c\x53"}["\x74\x74y\x6c\x7a\x6e\x6d\x70\x6e\x6a"]}["\x70\x70_\x65\x78\x74\x5f\x70r\x6fpe\x72\x74\x79"]) . "\x22\x3b";
${$njxnfhv} .= "\n\t\t\t\x70p\x50\x72odu\x63t\x50\x72o\x70\x65r\x74ie\x73[\"p\x70_e\x78t_t\x65xt\x22] =\x20\x22" . PP::safeOutputLenientJS(${${"G\x4cO\x42\x41LS"}["\x77el\x6fl\x6e\x63nr\x6c"]}["pp\x5fext\x5f\x74\x65x\x74"]) . "\"\x3b";
${${"\x47\x4cO\x42AL\x53"}["\x69\x6e\x6e\x7a\x61tv"]} .= "\n\t\t\tpp\x50\x72\x6f\x64\x75c\x74\x50ro\x70ert\x69\x65\x73[\"\x70p_e\x78\x74_\x70\x72\x6f\x70\"] \x3d\x20[]\x3b";
foreach (${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x74ylz\x6em\x70\x6ej"]}["pp_\x65\x78t_\x70r\x6f\x70"] as ${${"\x47\x4cO\x42\x41LS"}["\x79\x6aheio\x6a"]} => ${${"G\x4cOB\x41\x4c\x53"}["bdak\x6c\x62\x63\x6c\x6db"]}) {
${"\x47L\x4f\x42\x41L\x53"}["\x6flzt\x73\x73\x71w\x64qwv"] = "s";
${"\x47\x4cOB\x41L\x53"}["\x6eegd\x63\x6es\x76x"] = "\x61\x72\x72";
${"\x47LO\x42\x41\x4cS"}["\x6b\x67\x65\x62fc\x71\x73t\x74"] = "\x73";
$uczlvtsglrt = "\x73";
$hebinexps = "\x61\x72\x72";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x65\x6cod\x72\x75mk"] = "\x61r\x72";
$etvlvxkh = "\x61\x72\x72";
${"G\x4c\x4f\x42A\x4c\x53"}["j\x74\x69\x6d\x67r\x64bj"] = "\x73";
${${"G\x4cO\x42\x41\x4c\x53"}["o\x6c\x7a\x74s\x73\x71\x77\x64\x71\x77v"]} = "{";
${"GL\x4f\x42A\x4cS"}["\x6dfvo\x66h\x78\x7ar\x71\x72"] = "\x61r\x72";
${${"\x47\x4cOBA\x4c\x53"}["\x63c\x73\x78\x72o\x6f"]} .= "prope\x72\x74y:\x22" . PP::safeOutputLenientJS(${${"G\x4cO\x42A\x4c\x53"}["\x62s\x63\x6f\x67e\x6dz"]}["\x70rop\x65rty"]) . "\x22";
${${"G\x4cOB\x41LS"}["kge\x62\x66cq\x73\x74\x74"]} .= ",\x74\x65xt:\x22" . PP::safeOutputLenientJS(${$hebinexps}["t\x65\x78\x74"]) . "\"";
$kmqkiyvxg = "s\x63\x72\x69pt";
${${"\x47L\x4f\x42\x41LS"}["\x63\x63s\x78r\x6fo"]} .= ",min\x69mum_\x71\x75\x61n\x74\x69\x74\x79:" . (float) ${${"GL\x4f\x42\x41\x4cS"}["\x6e\x65g\x64c\x6e\x73vx"]}["mi\x6e\x69\x6dum\x5f\x71\x75\x61n\x74\x69ty"];
${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x63\x63\x73x\x72\x6f\x6f"]} .= ",ma\x78i\x6dum\x5f\x71\x75an\x74\x69\x74y:" . (float) ${${"\x47L\x4fBA\x4cS"}["mf\x76\x6f\x66\x68\x78z\x72\x71r"]}["m\x61\x78im\x75\x6d\x5f\x71ua\x6etit\x79"];
${$uczlvtsglrt} .= ",defaul\x74_quantit\x79:" . (float) ${${"\x47\x4cOBAL\x53"}["\x6a\x65\x6c\x6fd\x72\x75\x6dk"]}["d\x65fault_\x71\x75a\x6e\x74\x69ty"];
${${"\x47\x4cO\x42\x41LS"}["\x63\x63s\x78r\x6f\x6f"]} .= ",qt\x79_\x73t\x65\x70:" . (float) ${${"\x47LOB\x41LS"}["\x62s\x63\x6f\x67\x65\x6d\x7a"]}["\x71ty_\x73\x74ep"];
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63c\x73\x78r\x6f\x6f"]} .= ",q\x74\x79_\x72atio:" . (float) ${$etvlvxkh}["\x71\x74y\x5fr\x61ti\x6f"];
${${"\x47\x4c\x4fB\x41\x4cS"}["\x6at\x69m\x67\x72dbj"]} .= "}";
${$kmqkiyvxg} .= "\n\t\t\t\t\x70\x70\x50\x72\x6fdu\x63t\x50r\x6fpert\x69e\x73[\x22p\x70\x5fext\x5fpr\x6f\x70\x22][" . ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x79\x6a\x68\x65i\x6f\x6a"]} . "]\x20\x3d " . ${${"\x47\x4c\x4fB\x41L\x53"}["\x63\x63\x73\x78\x72\x6f\x6f"]} . ";";
}
if (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["n\x6clp\x78uaxg\x73"]}["p\x70_ext\x5fp\x6f\x6ci\x63y"] == 2) {
$hxgnkdjt = "sc\x72\x69\x70\x74";
${$hxgnkdjt} .= "\n\t\t\t\t\x70\x70Pr\x6fd\x75\x63t.\x66\x61\x6c\x6c\x62a\x63k_e\x78t_\x71uant\x69\x74\x79 =\x20\x31\x3b\n\t\t\t\tppPr\x6fd\x75\x63t\x2ep\x72\x6f\x70\x20\x3d " . Tools::jsonEncode($product->productProp()) . ";";
}
}
${${"\x47\x4c\x4fBA\x4c\x53"}["m\x79\x67c\x69r\x79yrw"]} = array(
"p\x72\x69\x63\x65" => $this->context->link->getModuleLink($this->name, "pro\x64\x75c\x74", array(
"\x70\x72\x6fc\x65s\x73" => "\x70\x72i\x63e"
))
);
${${"\x47L\x4f\x42\x41\x4cS"}["\x69n\x6eza\x74\x76"]} .= "\n\t\t\t\x70\x70Prod\x75\x63t\x2ea\x63t\x69o\x6es \x3d " . Tools::jsonEncode(${$adedwa}) . ";\n\t\t\t\x70\x70P\x72\x6f\x64\x75c\x74.\x68\x61sA\x74t\x72ib\x75t\x65s = " . ($product->hasAttributes() ? "t\x72u\x65" : "\x66a\x6cs\x65") . "\x3b\n\t\t\t\x70\x70P\x72o\x64uc\x74\x2e\x70\x72\x69ceOb\x73erver\x20\x3d\x20" . (${${"GL\x4fB\x41\x4cS"}["i\x73\x75\x6bhcyf\x70"]} || PSM::getPlugin("ppr\x6f\x70e\x72\x74\x69essm\x61rt\x70\x72\x69\x63e") ? "\x74r\x75\x65" : "\x66\x61l\x73e") . "\x3b";
${${"GL\x4fB\x41\x4c\x53"}["\x69nn\x7a\x61tv"]} .= "\n\t\t</sc\x72\x69pt\x3e";
return ${$rgskaxeuas};
}
public function hookDisplayBackOfficeHeader($params)
{
$wmnxxuj = "\x63\x6f\x6et\x72olle\x72";
${${"GL\x4fBA\x4c\x53"}["f\x70\x79\x72\x76\x69\x6cfe\x64x"]} = Tools::getValue("t\x61\x62");
${$wmnxxuj} = Tools::getValue("\x63\x6fntroll\x65r");
if (Tools::strtolower(${${"\x47\x4c\x4f\x42AL\x53"}["\x66\x70\x79\x72\x76\x69\x6c\x66\x65\x64\x78"]}) == "adm\x69\x6e\x73\x65lfupg\x72a\x64\x65" || Tools::strtolower(${${"GL\x4f\x42\x41\x4c\x53"}["\x71\x73\x62\x72\x77y\x75\x6f\x71\x74"]}) == "ad\x6d\x69\x6e\x73\x65lf\x75\x70gr\x61d\x65") {
${"\x47\x4cOB\x41\x4cS"}["k\x6bt\x6alk\x63f\x6e\x68"] = "\x77\x61\x72\x6e";
$njvfobxtcobq = "\x77\x61r\x6e";
${$njvfobxtcobq} = "<\x64iv\x20c\x6c\x61s\x73\x3d\"a\x6c\x65\x72t\x20\x61l\x65\x72\x74-dang\x65\x72\"\x3e\x3c\x62\x75\x74t\x6fn dat\x61-\x64\x69s\x6dis\x73\x3d\"a\x6c\x65rt\"\x20cl\x61s\x73=\x22clos\x65\"\x20ty\x70e\x3d\x22\x62utto\x6e\"\x3e</\x62u\x74to\x6e>" . sprintf($this->l("%s:\x20P\x6cea\x73\x65\x20\x75\x6e\x69nst\x61l\x6c\x20\x74\x68is\x20\x6do\x64\x75\x6c\x65\x20b\x65fore\x20\x75\x70\x67\x72\x61\x64\x69ng\x20\x61\x6e\x64\x20o\x62ta\x69\x6e,\x20if \x6ee\x65\x64\x65\x64, \x76e\x72s\x69\x6f\x6e \x63\x6fmp\x61ti\x62le w\x69t\x68 yo\x75r n\x65\x77 Pre\x73\x74\x61\x53\x68\x6f\x70 v\x65r\x73i\x6f\x6e."), $this->displayName) . "<\x62r>" . $this->compatibilityText() . "</\x64i\x76>";
return "\n\t\t\t\x3c\x73cr\x69pt t\x79\x70\x65\x3d\"\x74ext/jav\x61\x73\x63r\x69pt\x22>\n\t\t\t\t\$(\x64\x6f\x63\x75\x6de\x6e\x74).rea\x64\x79(\x66u\x6e\x63\x74\x69on() {\n\t\t\t\t\t\$(\x22\x23\x63o\x6e\x74en\x74\x20.b\x6fots\x74\x72ap\x22).p\x72ep\x65\x6ed('" . ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6bk\x74jlkcfn\x68"]} . "')\x3b\n\t\t\t\t\t\$(\x22\x23up\x67rad\x65\x4e\x6f\x77\x22)\x2e\x72\x65move();\n\t\t\t\t\t\$(\"#c\x75\x72r\x65n\x74\x43\x6f\x6efi\x67u\x72\x61\x74ion \x74ab\x6c\x65 \x74b\x6f\x64y\x22).\x61\x70p\x65n\x64('<t\x72>\x3ct\x64\x3e" . sprintf($this->l("\x25s mo\x64\x75l\x65\x20unin\x73tal\x6ce\x64"), $this->displayName) . "<b\x72\x3e" . $this->compatibilityText() . "</t\x64><td>\x3cimg\x20alt=\x22\x6fk\x22 \x73\x72\x63=\"\x2e./\x69mg/\x61d\x6din/\x64\x69\x73\x61\x62\x6ced.g\x69\x66\x22\x3e</t\x64>\x3c/tr\x3e')\x3b\n\t\t\t\t})\x3b\n\t\t\t</s\x63\x72\x69p\x74>\n\t\t\t";
} else {
if ($this->context->controller instanceof Controller) {
${"GL\x4f\x42\x41\x4cS"}["c\x6ba\x68g\x62"] = "\x63\x73s\x5f\x66il\x65\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65l\x68\x64s\x73\x64k"] = "\x61\x64\x64\x5f\x65\x78\x74r\x61";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x6b\x76f\x65ew"] = "a\x64\x64\x5fe\x78tr\x61";
if (Tools::getValue("c\x6f\x6e\x66\x69gure") != "p\x70ro\x70e\x72\x74\x69\x65s") {
if (!(int) Tools::getValue("ajax")) {
${"GLO\x42\x41LS"}["f\x73\x66\x73o\x72\x65\x79\x6c\x6a\x6e"] = "\x6c\x61s\x74\x5f\x69n\x74e\x67\x72\x61t\x69\x6fn_c\x68e\x63k";
$xvmyxoiylf = "l\x61\x73\x74\x5f\x69\x6e\x74\x65\x67\x72a\x74ion\x5fc\x68\x65\x63\x6b";
${$xvmyxoiylf} = Configuration::get("P\x50\x5fI\x4eTE\x47R\x41\x54\x49\x4fN\x5f\x43\x48E\x43K");
if (time() > (${${"\x47\x4c\x4fB\x41L\x53"}["f\x73\x66\x73\x6f\x72\x65\x79l\x6a\x6e"]} + ($this->integrated ? 3600 : 3))) {
${"\x47\x4cO\x42\x41LS"}["\x79\x6e\x7ax\x6a\x6f\x66jn\x6ewy"] = "se\x74\x75\x70";
${${"\x47LO\x42\x41L\x53"}["\x79n\x7a\x78j\x6f\x66j\x6en\x77\x79"]} = $this->setupInstance();
$setup->checkIntegration();
$this->integrated = (count($this->integration_test_result) == 0);
}
}
if (!$this->integrated) {
${"G\x4c\x4fBA\x4c\x53"}["\x65h\x79\x6f\x67\x70xz\x71q"] = "\x77a\x72\x6e";
${${"G\x4cO\x42\x41L\x53"}["\x65h\x79\x6f\x67\x70xz\x71q"]} = "<\x64\x69v\x20\x63l\x61\x73s=\"\x61l\x65\x72t \x61\x6cert-\x64\x61\x6eg\x65r\x22 sty\x6ce=\"cl\x65\x61r:\x62o\x74h;\"\x3e" . "<\x62\x75\x74\x74\x6f\x6e d\x61\x74\x61-di\x73m\x69s\x73\x3d\"a\x6ce\x72t\" \x63\x6c\x61s\x73=\"\x63\x6co\x73e\"\x20\x74\x79p\x65=\x22button\x22></\x62\x75t\x74on\x3e" . sprintf($this->l("%\x73: Integr\x61t\x69\x6fn\x20w\x61r\x6eing\x2e \x59our \x73\x69te w\x69l\x6c\x20n\x6ft\x20w\x6frk \x70rop\x65\x72\x6cy u\x6e\x74\x69l yo\x75 %\x73."), $this->displayName, "<\x61\x20s\x74yle\x3d\"tex\x74-\x64ec\x6f\x72\x61\x74\x69\x6f\x6e:\x75nde\x72l\x69\x6ee;c\x6flor:inhe\x72\x69\x74\x3b\" \x68re\x66\x3d\"in\x64ex.php?\x63\x6fntroll\x65\x72=ad\x6d\x69\x6emo\x64ule\x73&c\x6f\x6ef\x69gu\x72e=ppr\x6fpe\x72ti\x65s\x26t\x6fken\x3d" . Tools::getAdminTokenLite("\x41d\x6d\x69\x6e\x4d\x6f\x64ule\x73") . "\x26ta\x62\x5f\x6d\x6fdule\x3d\x61\x64m\x69nist\x72\x61\x74\x69on\x26m\x6fdu\x6ce_n\x61\x6d\x65=p\x70r\x6f\x70\x65rt\x69es\"\x3e" . $this->l("r\x65\x73\x6fl\x76e t\x68\x65\x20i\x6et\x65g\x72\x61\x74io\x6e\x20pro\x62\x6c\x65ms") . "\x3c/a\x3e") . "</\x64\x69v\x3e";
return "\n\t\t\t\t\t\t\x3c\x73\x63r\x69\x70\x74 ty\x70\x65=\x22tex\x74/\x6a\x61vasc\x72\x69\x70\x74\"\x3e\n\t\t\t\t\t\t\t\$(\x64\x6f\x63\x75\x6d\x65n\x74).\x72eady(fun\x63\x74\x69on()\x20{\n\t\t\t\t\t\t\t\t\$(\"#\x63\x6f\x6etent.b\x6fo\x74\x73t\x72\x61p\")\x2epr\x65\x70\x65n\x64('" . ${${"\x47\x4cOB\x41\x4c\x53"}["y\x6f\x62\x6f\x6a\x64\x6fl\x77\x62w"]} . "');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\x3c/s\x63\x72ipt>\n\t\t\t\t\t\t";
}
}
$vdwdudvuxwc = "\x63ss_\x66i\x6ces";
$dekessxt = "\x61d\x64_\x65xt\x72\x61";
$hwkojaiguu = "\x6a\x73\x5ff\x69le\x73";
${${"G\x4cOB\x41\x4c\x53"}["k\x75\x64\x6c\x61\x79\x77\x78u"]} = "";
$eiguejqa = "\x6a\x73\x5f\x66\x69l\x65\x73";
${${"\x47LO\x42\x41L\x53"}["\x69kvf\x65\x65w"]} = false;
$this->context->controller->addJquery();
${$vdwdudvuxwc} = array();
${$eiguejqa} = array();
if (in_array(Tools::strtolower(${${"\x47\x4cO\x42A\x4cS"}["q\x73\x62rw\x79\x75\x6fq\x74"]}), array(
"\x61\x64\x6dinp\x72o\x64ucts",
"\x61d\x6dino\x72\x64\x65\x72s",
"adm\x69n\x63\x61\x72ts",
"\x61d\x6di\x6es\x74\x6f\x63km\x61\x6ea\x67\x65\x6dent",
"admins\x74o\x63k\x6d\x76t",
"a\x64\x6d\x69\x6est\x6f\x63k\x69\x6e\x73\x74\x61\x6et\x73t\x61t\x65",
"adm\x69\x6esto\x63kcove\x72"
)))
${$dekessxt} = true;
elseif (strcasecmp(${${"GLO\x42\x41L\x53"}["\x71\x73\x62r\x77y\x75\x6f\x71\x74"]}, "\x41\x64\x6d\x69\x6eM\x6f\x64u\x6ce\x73") == 0) {
if (Tools::getValue("c\x6f\x6ef\x69\x67u\x72\x65") == "pp\x72op\x65r\x74\x69\x65\x73") {
$this->context->controller->addJqueryUI("u\x69.\x74\x61\x62s", "ba\x73e");
${${"GL\x4f\x42\x41L\x53"}["\x63y\x68x\x63\x77\x69"]} = true;
}
}
if (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65l\x68\x64\x73\x73\x64\x6b"]}) {
$thxkohjb = "\x6as\x5f\x66\x69\x6c\x65\x73";
$rtowqmbqum = "\x63\x73\x73_\x66\x69\x6c\x65\x73";
${$rtowqmbqum}[] = "v\x69\x65ws/c\x73\x73/ppr\x6fpe\x72\x74\x69e\x73_\x61\x64\x6din.\x63ss";
$desqrlsckht = "j\x73\x5f\x66iles";
${$desqrlsckht}[] = "v\x69e\x77s/j\x73/\x70pr\x6fp\x65rti\x65\x73.\x6as";
${$thxkohjb}[] = "v\x69\x65\x77\x73/j\x73/p\x70rope\x72t\x69\x65s\x5fad\x6di\x6e\x2ej\x73";
if ($this->integrated)
${${"\x47LOBALS"}["k\x75\x64\x6cay\x77\x78\x75"]} .= "<s\x63\x72\x69\x70t \x74\x79pe=\"t\x65xt/\x6a\x61va\x73c\x72\x69p\x74\x22\x3e\x70p\x2ede\x63\x69\x6dal\x53ig\x6e=\x27" . PP::getDecimalSign() . "';</sc\x72i\x70t>";
}
if ($this->integrated && strcasecmp(${${"\x47\x4c\x4fB\x41L\x53"}["qsb\x72\x77y\x75\x6fq\x74"]}, "\x41d\x6d\x69n\x41\x74\x74ri\x62\x75\x74e\x47\x65n\x65\x72at\x6f\x72") == 0) {
${${"\x47L\x4fBALS"}["\x67h\x77\x74\x73u\x6d\x73j"]} = PP::getProductTemplateId(Tools::getValue("\x69\x64\x5fp\x72o\x64\x75\x63\x74"));
if (${${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x68wt\x73\x75m\x73j"]} > 0) {
${"\x47L\x4f\x42\x41\x4c\x53"}["v\x74q\x7av\x76k"] = "\x74\x65m\x70\x6c\x61\x74\x65\x5fi\x64";
${${"GL\x4f\x42\x41\x4cS"}["\x79j\x77r\x73\x66\x78\x71\x73k"]} = PP::getProductPropertiesByTemplateId(${${"\x47LO\x42\x41\x4c\x53"}["\x76\x74q\x7avv\x6b"]});
if (!empty(${${"\x47\x4cO\x42AL\x53"}["\x79\x6a\x77\x72sf\x78\x71\x73k"]}["\x70\x70\x5f\x62o_q\x74y_\x74ex\x74"])) {
${"G\x4cO\x42\x41LS"}["\x73o\x6d\x66\x67\x70im\x65"] = "\x63\x73s\x5f\x66\x69\x6ce\x73";
$ljkxwl = "p\x72\x6fp\x65\x72\x74\x69\x65\x73";
${${"\x47LOB\x41L\x53"}["\x73\x6f\x6d\x66\x67p\x69\x6de"]}[] = "css/pp\x72op\x65r\x74\x69e\x73\x5fa\x64mi\x6e.\x63\x73\x73";
${${"GL\x4f\x42\x41L\x53"}["\x6b\x75dl\x61\x79\x77\x78u"]} .= "\x3c\x73c\x72i\x70t\x20t\x79\x70\x65=\"\x74\x65\x78\x74/\x6aava\x73c\x72\x69p\x74\">\$(fu\x6ection() {\$('#\x67en\x65r\x61\x74\x6fr in\x70\x75\x74[na\x6d\x65\x3d\x22quan\x74\x69\x74\x79\"]').\x61\x66\x74\x65r(\x27\x20" . ${$ljkxwl}["\x70p\x5f\x62\x6f\x5fqt\x79_\x74\x65xt"] . "')\x3b});\x3c/\x73c\x72i\x70\x74>";
}
}
}
if (${${"GL\x4f\x42\x41\x4c\x53"}["\x63\x6b\x61\x68\x67\x62"]}) {
${"\x47\x4c\x4f\x42A\x4cS"}["\x63\x67\x67\x6ey\x6f\x77\x65t\x75"] = "\x66i\x6ce";
foreach (${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6f\x6a\x74\x7age\x6f\x7a"]} as ${${"\x47\x4cO\x42A\x4c\x53"}["\x6d\x70\x69s\x64\x75\x77eg"]})
$this->context->controller->addCSS($this->getPathUri() . ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63\x67\x67\x6e\x79\x6f\x77e\x74u"]});
PSM::amendCSS($this->context->controller->css_files, ${${"G\x4cO\x42\x41\x4c\x53"}["\x6f\x6a\x74\x7a\x67e\x6fz"]});
}
if (${$hwkojaiguu}) {
$qtvvvsmfr = "\x66i\x6c\x65";
foreach (${${"\x47\x4cO\x42\x41L\x53"}["\x66s\x6fm\x67\x62\x73"]} as ${$qtvvvsmfr})
$this->context->controller->addJS($this->getPathUri() . ${${"\x47L\x4f\x42\x41\x4c\x53"}["m\x70\x69\x73\x64uw\x65\x67"]});
PSM::amendJS($this->context->controller->js_files, ${${"\x47L\x4fB\x41\x4c\x53"}["\x66\x73\x6f\x6d\x67bs"]});
}
return ${${"\x47LO\x42\x41\x4cS"}["\x6b\x75\x64\x6cay\x77\x78\x75"]};
}
}
}
public function hookDisplayAdminProductsExtra($params)
{
$yqjzwrfkavvz = "\x69\x64\x5f\x70\x72\x6f\x64uc\x74";
${"GL\x4fB\x41\x4c\x53"}["\x69\x64yxy\x6e\x70\x64y\x69\x61"] = "id_p\x72o\x64\x75c\x74";
${"\x47L\x4fB\x41\x4c\x53"}["\x74i\x71\x6f\x79\x79\x77s"] = "\x76a\x6c\x75\x65";
${$yqjzwrfkavvz} = Tools::getValue("i\x64_pr\x6fduct");
$ixetqajgph = "tr\x61\x6es\x6c\x61\x74\x69\x6f\x6e\x73";
$this->context->smarty->assign(array(
"int\x65\x67ra\x74\x65\x64" => $this->integrated,
"\x6du\x6c\x74idime\x6es\x69\x6fnal" => (bool) $this->multidimensional_plugin,
"i\x64_\x70\x72odu\x63\x74" => ${${"\x47\x4cO\x42\x41LS"}["\x69dy\x78y\x6e\x70\x64yi\x61"]},
"_\x70ath" => $this->getPathUri(),
"_\x50\x53\x5f\x41\x44\x4d\x49N_\x49\x4d\x47\x5f" => _PS_ADMIN_IMG_,
"\x73_\x68e\x61de\x72" => $this->l("\x41ss\x69\x67\x6e\x20o\x72\x20c\x68a\x6e\x67\x65 \x70\x72\x6f\x64\x75c\x74 t\x65mp\x6c\x61\x74e"),
"s_\x70r\x6f\x64uc\x74\x5f\x74e\x6d\x70la\x74\x65" => $this->l("\x50rodu\x63t \x74\x65mp\x6ca\x74\x65"),
"s\x5f\x68in\x74" => $this->l("Pl\x65\x61\x73\x65\x20s\x61\x76e \x74\x68\x69\x73\x20\x70\x72\x6fduc\x74\x20b\x65\x66ore \x6d\x61ki\x6e\x67 \x61\x6ey \x6ft\x68er ch\x61\x6eg\x65\x73\x2e"),
"\x73\x5fad\x76i\x63e" => $this->l("\x59\x6f\x75 c\x61n\x20a\x73\x73i\x67\x6e\x20\x6f\x72\x20\x72\x65\x6do\x76\x65 tem\x70\x6c\x61\x74\x65\x20\x66\x6f\x72 s\x65v\x65\x72\x61\x6c\x20\x70rod\x75\x63\x74\x73 \x69n\x20o\x6ee o\x70e\x72at\x69\x6fn\x20\x75\x73ing \x62\x75\x6ck\x20\x61c\x74\x69\x6f\x6e\x73 i\x6e p\x72odu\x63\x74\x27s\x20cat\x61\x6c\x6fg."),
"\x73\x5f\x63\x6fnfi\x67\x75re\x5f\x74empla\x74es" => $this->l("\x43\x6fn\x66\x69\x67\x75\x72\x65 \x74\x65m\x70l\x61tes"),
"s_\x65\x64i\x74\x5f\x74em\x70late" => $this->l("\x45\x64it \x74hi\x73 \x74\x65\x6dpl\x61\x74\x65"),
"\x73\x5f\x75\x73e\x72_\x67\x75\x69\x64e" => $this->l("Read \x75s\x65r\x20g\x75\x69d\x65")
));
if (!$this->integrated)
$this->context->smarty->assign("\x69\x6e\x74e\x67r\x61tion\x5fw\x61\x72ni\x6e\x67", $this->l("\x50\x6cease \x72e\x73o\x6c\x76e\x20\x69\x6e\x74\x65\x67\x72a\x74io\x6e\x20\x70r\x6f\x62\x6cem\x73\x2e"));
$ajmtpvccqb = "k\x65\x79";
if (!(bool) $this->multidimensional_plugin)
$this->context->smarty->assign("mult\x69dimen\x73io\x6eal_w\x61\x72\x6e\x69n\x67", $this->l("\x4dult\x69dimen\x73\x69o\x6e\x61l\x20plugin \x6e\x6ft\x20i\x6e\x73\x74\x61\x6cled\x2e"));
${$ixetqajgph} = $this->getTranslations("A\x64mi\x6e\x50\x72o\x64\x75ct\x73Ext\x72a");
foreach (${${"\x47\x4c\x4f\x42AL\x53"}["\x68\x61\x70r\x67\x6em"]} as ${${"G\x4c\x4f\x42\x41\x4c\x53"}["n\x7a\x65\x6d\x72\x6a"]} => ${${"GLOB\x41\x4cS"}["\x74\x69\x71\x6f\x79\x79\x77\x73"]})
$this->context->smarty->assign(${$ajmtpvccqb}, ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77ih\x6cr\x62m\x71"]});
$this->context->smarty->assign("hook\x5fh\x74\x6dl", Hook::exec("pp\x72\x6f\x70er\x74iesAd\x6d\x69n", array(
"m\x6f\x64\x65" => "\x64\x69s\x70\x6ca\x79\x41\x64\x6d\x69n\x50\x72oduc\x74s\x45x\x74\x72a",
"id_p\x72\x6f\x64uct" => ${${"\x47LO\x42\x41\x4c\x53"}["\x72dnlcx\x69md\x6e\x72\x68"]}
), null, true));
return $this->display(__FILE__, "admin/\x70r\x6f\x64\x75c\x74.\x74\x70l");
}
public function hookActionModuleInstallAfter($params)
{
$this->setupInstance()->moduleInstalled(${${"\x47\x4c\x4fBA\x4cS"}["x\x67\x62\x6c\x74\x69"]}["\x6f\x62je\x63\x74"]);
}
public function hookActionModuleUpgradeAfter($params)
{
$this->setupInstance()->moduleUpgraded(${${"\x47\x4c\x4f\x42ALS"}["\x78g\x62\x6cti"]}["\x6fbj\x65\x63t"]);
}
public function hookActionProductAdd($params)
{
$this->updateProductProp(${${"G\x4cOBA\x4c\x53"}["x\x67\x62lt\x69"]});
}
public function hookActionProductUpdate($params)
{
${"G\x4c\x4fBAL\x53"}["\x65\x75\x7a\x6e\x66\x65r\x65\x77"] = "\x70\x61\x72a\x6d\x73";
$this->updateProductProp(${${"\x47LO\x42A\x4c\x53"}["eu\x7a\x6ef\x65\x72\x65w"]});
}
public function hookActionProductDelete($params)
{
if ($this->multidimensional_plugin) {
$yjvwpfycjc = "p\x72\x6f\x64\x75\x63\x74";
${"\x47LO\x42\x41\x4c\x53"}["\x68\x70bq\x6f\x69\x76f\x75\x77"] = "\x70\x72\x6f\x64\x75\x63t";
$kjkndzk = "\x70\x61\x72a\x6d\x73";
${$yjvwpfycjc} = ${$kjkndzk}["\x70r\x6fduct"];
if (Validate::isLoadedObject(${${"\x47\x4cO\x42\x41\x4cS"}["h\x70b\x71\x6fi\x76\x66\x75w"]}))
Db::getInstance()->delete(_DB_PREFIX_ . "\x70p_\x70r\x6fduct_\x70\x72\x6f\x70", "i\x64\x5f\x70\x72od\x75\x63\x74 = " . $product->id);
}
}
public function hookActionProductAttributeDelete($params)
{
if ($this->multidimensional_plugin) {
$cqhqxey = "i\x64\x5fp\x72o\x64u\x63\x74";
${"G\x4cOB\x41L\x53"}["\x63\x6d\x62\x6e\x6e\x63ft\x69"] = "\x64e\x6c\x65\x74\x65\x5f\x61\x6cl_\x61\x74\x74ri\x62\x75\x74\x65s";
${$cqhqxey} = ${${"\x47LOB\x41\x4c\x53"}["\x78\x67\x62\x6ct\x69"]}["\x69\x64_p\x72oduc\x74"];
$lefibyqpt = "\x69\x64_\x70\x72\x6f\x64uc\x74";
$lcgevblwh = "p\x61\x72am\x73";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62m\x6d\x72\x71bk\x72"] = "\x69\x64_p\x72od\x75\x63\x74\x5f\x61t\x74r\x69\x62\x75t\x65";
${${"\x47\x4cO\x42\x41\x4c\x53"}["\x7a\x6dej\x76\x67"]} = ${${"\x47LO\x42\x41\x4c\x53"}["\x78\x67\x62\x6c\x74\x69"]}["id\x5fp\x72o\x64u\x63\x74\x5f\x61\x74\x74rib\x75te"];
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x63\x6d\x62\x6e\x6ec\x66\x74i"]} = ${$lcgevblwh}["de\x6c\x65t\x65A\x6cl\x41\x74t\x72i\x62u\x74\x65s"];
Db::getInstance()->delete(_DB_PREFIX_ . "\x70\x70_prod\x75\x63t\x5fpro\x70", "i\x64\x5f\x70\x72o\x64uc\x74\x20=\x20" . ${$lefibyqpt} . (${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x63w\x79o\x64i\x6a"]} ? "" : " \x41\x4e\x44\x20\x69\x64_\x70rod\x75ct\x5f\x61t\x74\x72\x69\x62\x75t\x65=" . ${${"\x47\x4cOB\x41\x4c\x53"}["\x62\x6d\x6dr\x71b\x6b\x72"]}));
}
}
public function hookActionObjectCombinationDeleteAfter($params)
{
if ($this->multidimensional_plugin) {
$bofyprz = "\x70\x61\x72\x61\x6d\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x65\x79o\x70\x62xs\x62\x6dj"] = "\x6f\x62\x6a\x65\x63\x74";
${${"G\x4c\x4fB\x41L\x53"}["\x69\x65\x72\x6c\x7a\x70\x66p"]} = ${$bofyprz}["\x6fb\x6aec\x74"];
if (Validate::isLoadedObject(${${"G\x4cO\x42\x41L\x53"}["\x76\x65\x79op\x62\x78s\x62mj"]}))
Db::getInstance()->delete(_DB_PREFIX_ . "p\x70\x5fpr\x6f\x64\x75\x63t\x5f\x70r\x6fp", "\x69\x64\x5f\x70ro\x64\x75\x63\x74 \x3d\x20" . $object->id_product . "\x20A\x4eD\x20\x69\x64\x5fpro\x64\x75c\x74_\x61tt\x72ibu\x74\x65\x3d" . $object->id);
}
}
public function hookDisplayProductsListLeadin($params)
{
if (!$this->integrated)
return;
if (Tools::isSubmit("\x73\x75b\x6d\x69\x74\x42\x75l\x6b\x6d\x61\x6e\x61\x67\x65T\x65\x6d\x70l\x61\x74esprod\x75ct")) {
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75\x65\x65\x78gj\x74"] = "as\x73i\x67\x6e";
if (Tools::getIsset("\x63an\x63el"))
Tools::redirectAdmin($this->context->link->getAdminLink("A\x64m\x69\x6ePr\x6f\x64\x75\x63\x74\x73"));
if ((${${"G\x4c\x4f\x42\x41LS"}["u\x65e\x78\x67j\x74"]} = Tools::getIsset("\x73\x75\x62m\x69\x74\x41\x73\x73\x69\x67\x6eT\x65mpl\x61\x74\x65")) || Tools::getIsset("s\x75bm\x69\x74R\x65\x6d\x6f\x76\x65Tem\x70\x6cat\x65")) {
${"G\x4c\x4f\x42A\x4c\x53"}["g\x72\x76\x79\x79xqc"] = "id\x5fpp\x5ft\x65\x6d\x70\x6c\x61\x74\x65";
${${"GL\x4f\x42\x41L\x53"}["\x67\x72\x76\x79\x79x\x71\x63"]} = (int) Tools::getValue("\x69d\x5f\x70p_t\x65\x6d\x70\x6cate");
$psmynsdy = "\x69d\x5f\x70\x70_\x74\x65\x6dp\x6c\x61\x74\x65";
if (${$psmynsdy} > 0) {
${"\x47\x4cO\x42\x41L\x53"}["\x6e\x79r\x66\x70\x67\x78\x76\x70\x72\x66"] = "\x6da\x6e\x61g\x65\x54\x65mp\x6ca\x74e\x73";
if ((${${"\x47L\x4f\x42AL\x53"}["d\x75b\x6a\x6d\x77"]} = Tools::getValue("\x6danageT\x65m\x70\x6cat\x65s")) && is_array(${${"\x47\x4cO\x42\x41\x4c\x53"}["n\x79\x72\x66p\x67x\x76\x70\x72\x66"]})) {
$fxgwubsjf = "\x69d\x5f\x70\x70\x5f\x74\x65\x6d\x70lat\x65";
$eemstwuqm = "s\x71\x6c";
$gojiltg = "\x6d\x61\x6ea\x67\x65\x54e\x6d\x70\x6c\x61t\x65s";
${"GL\x4f\x42ALS"}["\x64\x67\x77\x62yh\x6e\x69\x71\x70"] = "as\x73\x69g\x6e";
${"GLO\x42\x41\x4c\x53"}["\x6f\x64\x75\x65\x6c\x6cwmkv"] = "\x73\x71\x6c";
${${"\x47L\x4f\x42\x41\x4c\x53"}["od\x75\x65\x6clwm\x6bv"]} = "\x55PDAT\x45 \x60" . _DB_PREFIX_ . "p\x72od\x75\x63t\x60 S\x45T `\x69\x64\x5fpp_\x74e\x6dplat\x65`\x20\x3d " . (${${"\x47\x4c\x4fBAL\x53"}["b\x63\x73\x64\x6agcv\x64d"]} ? ${$fxgwubsjf} : 0) . " W\x48ERE\x20`\x69\x64\x5fp\x72od\x75\x63\x74\x60 i\x6e (" . implode(",", ${$gojiltg}) . ")\x20a\x6e\x64\x20" . (${${"\x47\x4c\x4f\x42AL\x53"}["\x64\x67w\x62y\x68\x6ei\x71\x70"]} ? "(`\x69d\x5fp\x70_t\x65\x6d\x70\x6c\x61te\x60 \x3d\x200 \x6fr\x20\x60\x69d\x5fpp\x5f\x74\x65\x6dpl\x61\x74\x65`\x20\x69\x73 \x4eU\x4cL)" : "\x60\x69\x64\x5fp\x70\x5ftem\x70\x6c\x61t\x65` = " . ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x78mlbr\x73\x71"]});
DB::getInstance()->execute(${$eemstwuqm});
}
return;
} else
$this->context->smarty->assign("\x65\x72r\x6f\x72_no\x5ft\x65\x6d\x70l\x61t\x65", true);
}
$this->context->smarty->assign(array(
"\x52EQU\x45ST\x5fU\x52\x49" => $_SERVER["R\x45\x51\x55\x45\x53T\x5fU\x52\x49"]
));
return $this->display(__FILE__, "a\x64\x6d\x69\x6e/pr\x6f\x64\x75c\x74\x73_list_he\x61der\x2etp\x6c");
}
}
private function updateProductProp($params)
{
if ($this->multidimensional_plugin) {
${${"G\x4c\x4f\x42A\x4c\x53"}["k\x75\x63jx\x67\x6f\x66"]} = (isset(${${"\x47\x4c\x4f\x42\x41L\x53"}["x\x67\x62l\x74i"]}["\x70r\x6fdu\x63t"]) ? ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78gb\x6ct\x69"]}["pr\x6fduc\x74"] : PP::productAsObject(${${"\x47\x4c\x4f\x42AL\x53"}["\x78\x67\x62\x6c\x74\x69"]}));
if (Validate::isLoadedObject(${${"\x47LOB\x41\x4c\x53"}["\x6b\x75c\x6a\x78\x67\x6f\x66"]})) {
${"\x47\x4c\x4fBALS"}["xy\x63\x6dl\x78\x62\x71ak"] = "\x70\x72o\x70e\x72\x74\x69\x65\x73";
${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6bcz\x74t\x71r"] = "\x70\x72o\x70\x65\x72\x74\x69e\x73";
${${"\x47\x4c\x4f\x42A\x4c\x53"}["x\x79c\x6d\x6cx\x62\x71\x61\x6b"]} = $product->productProperties();
if (${${"G\x4c\x4fB\x41L\x53"}["\x79\x6aw\x72\x73\x66x\x71\x73k"]}["p\x70\x5f\x65xt"] == 1 && ${${"GL\x4f\x42A\x4c\x53"}["kcztt\x71\x72"]}["pp\x5f\x65x\x74\x5fp\x6f\x6c\x69cy"] == 2) {
${"\x47L\x4f\x42ALS"}["\x6ewy\x73\x74h\x68\x6a\x72\x75"] = "id_p\x72\x6f\x64uc\x74\x5f\x61\x74\x74r\x69\x62\x75\x74\x65";
$jxipuunv = "\x68\x61\x73\x5f\x61\x74\x74r\x69\x62u\x74\x65\x73";
$qniuxdy = "\x69\x64_\x70\x72\x6f\x64\x75\x63\x74\x5fa\x74\x74rib\x75\x74\x65";
${$qniuxdy} = 0;
${"G\x4cOBAL\x53"}["sg\x76xo\x62\x6a"] = "h\x61\x73\x5fa\x74\x74\x72\x69\x62\x75t\x65\x73";
${$jxipuunv} = $product->hasAttributes();
if (${${"\x47\x4cOB\x41\x4c\x53"}["\x73gvx\x6fbj"]}) {
$ysxrzg = "i\x64\x5fp\x72\x6fd\x75ct\x5fa\x74\x74\x72\x69\x62\x75t\x65";
$djkorbpu = "i\x64\x5fp\x72\x6f\x64\x75ct\x5fa\x74\x74ribute";
${${"\x47\x4c\x4fB\x41\x4c\x53"}["z\x6de\x6a\x76g"]} = (int) Tools::getValue("i\x64\x5f\x70r\x6fd\x75c\x74_\x61\x74t\x72ib\x75t\x65");
if (${$djkorbpu} <= 0)
${$ysxrzg} = false;
}
if (${${"G\x4c\x4f\x42\x41L\x53"}["\x6e\x77\x79\x73t\x68h\x6a\x72u"]} !== false) {
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6ciil\x66\x6fb\x69"] = "\x64b";
${"G\x4c\x4f\x42\x41\x4c\x53"}["l\x6ce\x66\x6dt\x6e"] = "h\x61\x73\x5f\x61\x74t\x72\x69b\x75\x74es";
${"\x47\x4cO\x42\x41L\x53"}["i\x67\x6efpm\x72n"] = "\x69d_pr\x6f\x64u\x63t_\x61\x74tri\x62\x75t\x65";
${${"\x47L\x4f\x42\x41\x4c\x53"}["l\x69\x69l\x66\x6f\x62i"]} = Db::getInstance();
${"GL\x4f\x42A\x4c\x53"}["a\x74\x62xdk\x64\x70s\x75\x74j"] = "\x70r\x6fpe\x72\x74\x69e\x73";
$db->delete(_DB_PREFIX_ . "p\x70_\x70r\x6f\x64\x75ct\x5fpro\x70", "\x69\x64_prod\x75ct =\x20" . $product->id . (${${"GLO\x42AL\x53"}["\x6c\x6c\x65\x66\x6d\x74\x6e"]} ? "\x20A\x4eD\x20(id_\x70\x72\x6fd\x75ct_att\x72\x69\x62ute\x3d\x30\x20\x4f\x52 id\x5f\x70r\x6f\x64uct\x5fat\x74\x72\x69but\x65\x3d" . ${${"GL\x4f\x42\x41\x4c\x53"}["\x7amejv\x67"]} . ")" : ""));
${${"\x47\x4cO\x42\x41L\x53"}["\x76\x74\x6a\x70\x66\x77\x79cjr"]} = array(
"\x69d_\x70ro\x64uc\x74" => $product->id,
"\x69\x64\x5f\x70\x72od\x75ct\x5f\x61t\x74r\x69b\x75\x74e" => ${${"\x47\x4cO\x42A\x4c\x53"}["ig\x6ef\x70\x6d\x72\x6e"]}
);
foreach (${${"G\x4c\x4fB\x41\x4c\x53"}["a\x74b\x78dkd\x70\x73\x75\x74j"]}["p\x70\x5f\x65xt\x5f\x70rop"] as ${${"\x47\x4c\x4f\x42A\x4cS"}["\x79\x6a\x68\x65\x69\x6fj"]} => ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x73l\x76\x62\x69j\x68\x6f\x6cg\x73"]}) {
${"\x47\x4c\x4fBA\x4c\x53"}["\x76\x6ef\x6cv\x6e\x65itrw\x69"] = "\x65\x78\x74\x5f\x70\x72op\x5f\x71\x75\x61\x6e\x74\x69t\x79";
$qrcibsbsp = "e\x78t\x5f\x70\x72\x6f\x70\x5f\x71\x75\x61n\x74\x69\x74y";
${"\x47LOBA\x4c\x53"}["\x79\x75\x72\x75\x69\x6ft\x65\x61o\x65"] = "\x72";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x6fqp\x67a\x68ue\x79\x61\x78"] = "\x65x\x74\x5f\x70\x72\x6f\x70";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x73\x73xn\x6a\x67\x67\x6ff\x66\x6f"] = "e\x78t_p\x72\x6fp\x5f\x71u\x61\x6e\x74\x69\x74\x79";
${${"GL\x4fB\x41\x4c\x53"}["\x76\x6e\x66\x6cv\x6ee\x69t\x72\x77i"]} = (float) str_replace(",", ".", Tools::getValue("pp_\x65\x78\x74_p\x72\x6f\x70\x5f\x71\x75\x61\x6eti\x74y_" . ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x79\x6a\x68\x65i\x6fj"]}));
${${"\x47\x4c\x4f\x42A\x4c\x53"}["v\x74jpfw\x79\x63\x6a\x72"]}["\x70ositio\x6e"] = ${${"GL\x4f\x42\x41\x4cS"}["yj\x68ei\x6f\x6a"]};
${${"GL\x4fB\x41\x4cS"}["\x79u\x72ui\x6f\x74\x65\x61\x6f\x65"]}["qu\x61\x6et\x69t\x79"] = (${$qrcibsbsp} > 0 ? ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73sx\x6e\x6a\x67\x67\x6fff\x6f"]} : ((float) ${${"GL\x4f\x42\x41\x4c\x53"}["m\x6f\x71p\x67a\x68ue\x79\x61\x78"]}["d\x65\x66\x61\x75lt_\x71u\x61\x6et\x69\x74\x79"] > 0 ? (float) ${${"\x47\x4cO\x42\x41\x4c\x53"}["s\x6c\x76bij\x68\x6fl\x67s"]}["\x64\x65\x66ault\x5fq\x75ant\x69ty"] : 1));
$db->autoExecute(_DB_PREFIX_ . "\x70p_produ\x63\x74\x5fp\x72\x6fp", ${${"\x47\x4c\x4fB\x41\x4c\x53"}["vt\x6a\x70\x66\x77y\x63\x6a\x72"]}, "\x49\x4e\x53\x45RT");
}
}
}
}
}
}
public function getTranslations($key, &$translations = null)
{
$gefpjdfi = "\x74r\x61\x6e\x73lat\x69\x6f\x6es";
if (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68a\x70\x72gn\x6d"]} === null)
${$gefpjdfi} = array();
$tbhjohoebze = "\x6b\x65y";
${"\x47\x4c\x4fB\x41L\x53"}["\x70\x73of\x79\x65c\x68o"] = "\x6b\x65\x79";
$wypsmmwsvku = "k\x65\x79";
${"GL\x4f\x42\x41\x4c\x53"}["j\x70d\x6es\x69\x65"] = "\x74\x72\x61nslati\x6f\x6e\x73";
${"\x47\x4c\x4fB\x41\x4c\x53"}["\x64\x66h\x64uk\x74n\x79"] = "\x6be\x79";
${"\x47LOBA\x4cS"}["vj\x66xk\x74\x63or\x66\x72\x6d"] = "\x74r\x61\x6e\x73\x6c\x61\x74\x69o\x6e\x73";
if (${${"\x47\x4cO\x42\x41\x4cS"}["\x6ez\x65\x6dr\x6a"]} == "Admi\x6e\x50\x72o\x64u\x63t\x73") {
$cqewegnj = "\x74\x72a\x6e\x73lat\x69\x6f\x6es";
${"GLO\x42\x41\x4c\x53"}["j\x6a\x6b\x61\x71\x65"] = "t\x72\x61\x6esl\x61\x74\x69\x6f\x6e\x73";
$akecdqsej = "\x74ransl\x61\x74\x69\x6fn\x73";
${"\x47\x4cO\x42\x41L\x53"}["a\x64\x6f\x63e\x64\x69\x77"] = "\x73";
${"\x47LO\x42AL\x53"}["\x6at\x62wbn\x78yo\x69"] = "\x74\x72ans\x6c\x61\x74\x69\x6fn\x73";
${$akecdqsej}["s\x5fID"] = $this->l("\x49D:");
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x74b\x77\x62\x6e\x78\x79\x6f\x69"]}["\x73_p\x70\x4di\x6e\x51\x74\x79\x45\x78p\x6c_\x64isab\x6c\x65"] = $this->l("\x54h\x65\x20\x6d\x69n\x69m\x75\x6d\x20q\x75\x61nt\x69\x74y\x20to\x20\x62\x75\x79\x20t\x68\x69\x73 pr\x6f\x64uc\x74 (set\x20\x74o \x31 t\x6f \x64i\x73\x61\x62le\x20\x74h\x69\x73\x20f\x65\x61tu\x72\x65)");
${"\x47\x4cO\x42\x41\x4c\x53"}["cr\x62g\x6ciy\x66\x63ib"] = "\x73";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ezqs\x71\x75xl\x72\x76\x78\x69"] = "s";
${${"\x47LOB\x41\x4cS"}["\x61d\x6f\x63\x65\x64\x69\x77"]} = $this->l("\x54\x68e\x20\x6d\x69n\x69\x6d\x75m\x20qu\x61n\x74\x69\x74\x79 t\x6f b\x75y\x20\x74hi\x73 \x70\x72od\x75c\x74 (s\x65t \x74\x6f %d \x74\x6f \x75se \x74he \x74\x65\x6d\x70\x6c\x61\x74e\x20\x64efaul\x74)");
${${"G\x4cOBAL\x53"}["h\x61\x70rg\x6e\x6d"]}["s_p\x70M\x69\x6eQ\x74\x79Ex\x70\x6c\x5f\x30"] = sprintf(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6e\x7a\x71\x73\x71u\x78\x6c\x72vx\x69"]}, 1);
$jsjnymz = "\x74\x72a\x6esl\x61t\x69\x6f\x6e\x73";
${${"GL\x4fB\x41\x4c\x53"}["\x68a\x70\x72gn\x6d"]}["\x73_\x70pM\x69\x6e\x51ty\x45x\x70l\x5f1"] = sprintf(${${"G\x4cO\x42A\x4cS"}["crb\x67l\x69yfc\x69\x62"]}, 0);
${$jsjnymz}["s_p\x70M\x69n\x51\x74yEx\x70\x6c\x5f2"] = sprintf(${${"\x47\x4cO\x42\x41LS"}["c\x63\x73\x78\x72\x6f\x6f"]}, 0);
${${"G\x4cO\x42A\x4c\x53"}["\x68\x61\x70\x72\x67\x6e\x6d"]}["s_\x6d\x69\x6ei\x6dal_q\x75\x61\x6etity"] = $this->l("t\x68\x65 mi\x6e\x69\x6du\x6d\x20quan\x74\x69\x74\x79\x20\x64e\x66i\x6ee\x64\x20\x69\x6e \x74empl\x61\x74\x65 \x69\x73");
${${"GLOB\x41LS"}["j\x6a\x6ba\x71\x65"]}["s\x5f\x70p\x5f\x75\x6eity\x5f\x74e\x78t_\x65x\x70l"] = $this->l("\x73pecif\x69ed b\x79 t\x65m\x70\x6c\x61\x74\x65");
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x61\x70\x72\x67n\x6d"]}["\x73_\x70\x61\x63k_\x68in\x74"] = $this->l("\x59\x6fu \x63a\x6e \x6f\x6e\x6cy a\x64\x64 \x74\x6f\x20\x61\x20\x70a\x63k p\x72odu\x63ts \x73\x6fld\x20\x69\x6e \x69te\x6ds\x20(\x63\x61\x6e\x6e\x6f\x74 \x61d\x64\x20\x70\x72o\x64u\x63\x74\x73\x20sold b\x79 w\x65i\x67\x68\x74,\x20\x6c\x65\x6eg\x74h, e\x74c\x2e).");
${$cqewegnj}["\x73_p\x70e\x5ftit\x6c\x65"] = sprintf($this->l("%s\x20prop\x65\x72\x74ies"), $this->displayName);
return $this->getTranslations("Ad\x6dinPr\x6fd\x75\x63\x74\x73\x45xt\x72\x61", ${${"\x47\x4c\x4fBAL\x53"}["\x68\x61\x70\x72g\x6e\x6d"]});
} elseif (${$tbhjohoebze} == "\x41d\x6din\x50\x72\x6f\x64u\x63\x74\x73\x43o\x6et\x72\x6f\x6c\x6ce\x72")
${${"GL\x4fBALS"}["j\x70d\x6es\x69\x65"]}["tem\x70la\x74e_\x74i\x74le"] = $this->l("\x54\x68is\x20\x70\x72\x6f\x64uct u\x73e\x73\x20\x50r\x6fdu\x63\x74\x20P\x72\x6f\x70\x65r\x74\x69\x65\x73 \x45xte\x6esi\x6f\x6e \x74\x65\x6d\x70l\x61te");
elseif (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x7a\x65\x6d\x72j"]} == "\x50\x72\x6fd\x75ct\x43\x6f\x6e\x74\x72o\x6cler") {
${${"GL\x4f\x42\x41\x4c\x53"}["h\x61\x70\x72g\x6e\x6d"]}["p\x72ic\x65Txt"] = $this->l("pr\x69c\x65");
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ha\x70\x72\x67\x6e\x6d"]}["qt\x79\x41\x76\x61ilableTx\x74"] = $this->l("i\x6e s\x74\x6fc\x6b");
} elseif (${${"\x47\x4c\x4fB\x41L\x53"}["\x64\x66h\x64\x75\x6b\x74\x6ey"]} == "\x45d\x69\x74\x54\x65\x6dp\x6c\x61t\x65" || ${${"\x47LO\x42\x41\x4cS"}["\x70\x73of\x79echo"]} == "\x41d\x6d\x69n\x50ro\x64uc\x74s\x45\x78\x74\x72a") {
$gfkfbrzxnr = "\x74ra\x6es\x6c\x61t\x69\x6fn\x73";
${"\x47L\x4f\x42AL\x53"}["\x75\x71b\x7a\x79\x79\x74v"] = "\x74\x72\x61\x6e\x73\x6c\x61t\x69\x6f\x6e\x73";
${"G\x4c\x4f\x42\x41L\x53"}["y\x67w\x6f\x77\x65n"] = "\x74\x72\x61\x6e\x73\x6ca\x74\x69\x6f\x6e\x73";
$lenyhigotb = "\x74r\x61nsl\x61t\x69\x6f\x6e\x73";
${"\x47L\x4f\x42\x41L\x53"}["\x78id\x66\x6e\x61\x6b\x77r\x64\x73"] = "tra\x6e\x73\x6c\x61\x74\x69\x6f\x6e\x73";
${${"GLO\x42A\x4c\x53"}["\x68a\x70r\x67\x6e\x6d"]}["\x73\x5f\x70p_qt\x79\x5f\x70ol\x69c\x79"] = $this->l("q\x75\x61\x6e\x74\x69ty\x20p\x6f\x6c\x69\x63\x79");
${"\x47\x4cOB\x41\x4cS"}["r\x61v\x6aij\x70"] = "\x74\x72a\x6e\x73la\x74i\x6f\x6e\x73";
$rguprsoitg = "t\x72\x61\x6e\x73\x6c\x61t\x69\x6fn\x73";
$jiepyh = "\x74ran\x73\x6c\x61ti\x6f\x6e\x73";
${$rguprsoitg}["\x73\x5f\x70p_q\x74\x79_m\x6f\x64e"] = $this->l("quanti\x74y \x6do\x64e");
${${"G\x4c\x4f\x42AL\x53"}["\x68\x61\x70\x72\x67\x6e\x6d"]}["\x73\x5f\x70\x70\x5f\x64isp\x6ca\x79\x5f\x6dode"] = $this->l("\x64\x69spla\x79\x20\x6do\x64e");
${"GL\x4fB\x41LS"}["\x76a\x68\x66t\x75\x79"] = "\x74r\x61\x6es\x6c\x61\x74\x69\x6fn\x73";
${"G\x4c\x4fBAL\x53"}["\x6b\x76\x72\x74r\x73\x75\x6c"] = "\x74\x72\x61\x6e\x73l\x61t\x69\x6f\x6es";
${${"GLO\x42\x41L\x53"}["\x68\x61p\x72gn\x6d"]}["s\x5f\x70p_p\x72i\x63e_\x64is\x70\x6ca\x79_\x6dod\x65"] = $this->l("p\x72i\x63e\x20dis\x70l\x61y m\x6fde");
${$gfkfbrzxnr}["s_\x70\x70\x5fpri\x63e_\x74ex\x74"] = $this->l("pr\x69ce text");
${${"\x47LO\x42AL\x53"}["\x75q\x62\x7a\x79y\x74\x76"]}["s\x5fpp_\x71ty_te\x78t"] = $this->l("qu\x61nt\x69ty \x74\x65\x78\x74");
$unfhrwsko = "\x74\x72\x61n\x73\x6c\x61\x74i\x6f\x6es";
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x61pr\x67\x6e\x6d"]}["s_pp_\x75nit\x79\x5ft\x65\x78t"] = $this->l("uni\x74\x20p\x72i\x63\x65\x20t\x65xt");
${"\x47LO\x42\x41L\x53"}["\x61\x75l\x6di\x76\x6f\x6a\x71\x69"] = "\x74\x72\x61\x6e\x73la\x74\x69ons";
$hibivqlqfcd = "\x74\x72\x61\x6e\x73\x6ca\x74ions";
${${"\x47\x4c\x4f\x42\x41L\x53"}["x\x69\x64\x66\x6e\x61\x6bw\x72ds"]}["s\x5f\x70p\x5fu\x6eit\x5fp\x72i\x63e_ra\x74i\x6f"] = $this->l("\x75\x6e\x69\x74 \x70ric\x65\x20\x72\x61\x74\x69o");
${${"\x47L\x4f\x42\x41LS"}["k\x76\x72\x74r\x73u\x6c"]}["\x73_\x70p\x5f\x6d\x69\x6e\x69m\x61\x6c\x5f\x70\x72\x69ce_rati\x6f"] = $this->l("\x71u\x61\x6e\x74i\x74y \x74\x68\x72e\x73h\x6f\x6cd\x20\x66o\x72 \x6d\x69\x6e\x69\x6d\x75\x6d\x20p\x72i\x63e");
${${"\x47\x4cO\x42\x41\x4c\x53"}["yg\x77\x6f\x77\x65n"]}["s_p\x70_minimal\x5fqu\x61n\x74\x69\x74\x79"] = $this->l("m\x69n\x69mu\x6d q\x75an\x74i\x74y");
${$unfhrwsko}["s_\x70p\x5f\x64e\x66\x61u\x6c\x74_qu\x61n\x74\x69\x74\x79"] = $this->l("def\x61u\x6c\x74\x20\x71\x75a\x6eti\x74y");
${$lenyhigotb}["\x73\x5fpp_qty\x5f\x73tep"] = $this->l("qu\x61n\x74\x69\x74y ste\x70");
${${"GLO\x42ALS"}["ra\x76\x6ai\x6a\x70"]}["\x73_\x70p\x5fex\x70lana\x74\x69\x6fn"] = $this->l("in\x6ci\x6e\x65\x20\x65xp\x6ca\x6e\x61\x74io\x6e");
${"GLO\x42\x41\x4cS"}["\x68\x6dk\x6f\x70\x69\x70\x62\x71"] = "translatio\x6e\x73";
${${"GLO\x42\x41\x4c\x53"}["\x68\x61p\x72\x67\x6e\x6d"]}["s_p\x70_q\x74y_\x70\x6fli\x63\x79_\x30"] = $this->l("ite\x6ds");
${${"\x47\x4cO\x42A\x4cS"}["\x68\x61p\x72\x67\x6e\x6d"]}["s\x5fpp_\x71\x74y\x5f\x70\x6f\x6c\x69\x63\x79_1"] = $this->l("who\x6c\x65\x20u\x6eit\x73");
${${"\x47\x4cOB\x41L\x53"}["\x68a\x70\x72\x67\x6e\x6d"]}["s\x5f\x70\x70\x5fq\x74\x79\x5f\x70oli\x63\x79_2"] = $this->l("f\x72a\x63ti\x6fna\x6c\x20u\x6e\x69ts");
${"G\x4cOBA\x4c\x53"}["x\x79\x66gl\x66\x77"] = "\x74\x72\x61n\x73\x6c\x61t\x69\x6f\x6e\x73";
${${"\x47L\x4f\x42\x41\x4cS"}["\x68apr\x67\x6e\x6d"]}["\x73\x5f\x70p_q\x74y_\x70\x6f\x6ci\x63y_\x65\x78t"] = $this->l("mu\x6c\x74id\x69\x6de\x6es\x69\x6f\x6e\x61\x6c");
${${"\x47\x4c\x4fBA\x4c\x53"}["ha\x70rg\x6e\x6d"]}["s_pp\x5fq\x74y_m\x6fd\x65\x5f0"] = $this->l("exact qua\x6e\x74ity");
${$jiepyh}["\x73_\x70\x70_qty\x5f\x6do\x64\x65\x5f\x31"] = $this->l("\x61\x70\x70\x72ox\x69\x6dat\x65\x20q\x75\x61nt\x69\x74y");
${${"\x47\x4cO\x42\x41\x4cS"}["\x68\x61\x70\x72\x67n\x6d"]}["s\x5fp\x70\x5f\x64i\x73pl\x61\x79\x5fmo\x64\x65\x5f0"] = $this->l("n\x6f\x72mal");
${$hibivqlqfcd}["\x73\x5fp\x70\x5fdis\x70\x6c\x61y_\x6do\x64e\x5f\x31"] = $this->l("reversed\x20\x70ri\x63\x65\x20\x64is\x70\x6c\x61\x79");
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x79\x66g\x6c\x66\x77"]}["s_\x70\x70_di\x73\x70\x6c\x61y\x5f\x6dode\x5f\x31_\x6con\x67"] = $this->l("di\x73pla\x79\x20\x75n\x69\x74 \x70ric\x65 as\x20pric\x65\x20(r\x65\x76e\x72sed\x20\x70ric\x65\x20disp\x6ca\x79)");
${${"\x47\x4cOB\x41\x4c\x53"}["\x76\x61\x68\x66\x74uy"]}["\x73\x5f\x70p\x5fd\x69spl\x61\x79\x5fm\x6fd\x65_2"] = $this->l("d\x69s\x70\x6ca\x79\x20retai\x6c\x20pri\x63\x65\x20a\x73 u\x6eit\x20pr\x69\x63e");
${${"G\x4c\x4f\x42\x41LS"}["\x68mk\x6f\x70\x69\x70\x62\x71"]}["\x73_\x70p\x5f\x64i\x73pl\x61y\x5fm\x6f\x64\x65_\x34"] = $this->l("d\x69s\x70\x6c\x61\x79 \x62ase\x20u\x6ei\x74\x20p\x72i\x63\x65\x20f\x6f\x72\x20\x61l\x6c \x63\x6fmb\x69\x6e\x61t\x69\x6fns");
${${"G\x4c\x4f\x42A\x4c\x53"}["\x68\x61p\x72\x67\x6e\x6d"]}["\x73_p\x70\x5fpri\x63e\x5fdisp\x6ca\x79\x5fmod\x65_\x30"] = $this->l("\x6e\x6f\x72\x6dal");
${${"\x47LO\x42\x41\x4c\x53"}["\x61\x75lmivoj\x71i"]}["s_p\x70\x5f\x70\x72\x69c\x65_d\x69s\x70la\x79\x5f\x6dode_1"] = $this->l("a\x73\x20\x70rodu\x63\x74 pric\x65");
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x68a\x70r\x67n\x6d"]}["s\x5fp\x70\x5fpr\x69c\x65\x5f\x64i\x73p\x6cay_m\x6fde_16"] = $this->l("hid\x65 \x70\x72i\x63\x65 \x64\x69spla\x79");
} elseif (${$wypsmmwsvku} == "p\x70\x45\x78\x74") {
${"\x47\x4c\x4fBA\x4cS"}["\x70\x70n\x65\x71sr\x65b"] = "\x74r\x61\x6es\x6c\x61\x74\x69ons";
${${"\x47\x4c\x4f\x42A\x4cS"}["\x70\x70\x6e\x65\x71\x73\x72e\x62"]}["\x73_\x73i\x6egle_\x64i\x6d\x65\x6e\x73ion"] = $this->l("s\x69n\x67\x6c\x65\x20\x64i\x6de\x6es\x69on");
${${"\x47\x4c\x4f\x42\x41LS"}["hapr\x67\x6e\x6d"]}["s\x5f\x6d\x75lt\x69\x70\x6cicat\x69\x6f\x6e"] = $this->l("m\x75lti\x70li\x63a\x74\x69\x6fn:\x20\x64i\x6den\x73\x69\x6fns\x20i\x6e \x61\x6c\x6c\x20d\x69\x72\x65\x63\x74io\x6es \x61\x72e m\x75\x6ct\x69\x70\x6c\x69e\x64 (\x67iv\x69n\x67\x20\x61\x72e\x61\x20\x6fr \x76\x6fl\x75m\x65)");
${${"\x47\x4c\x4f\x42\x41L\x53"}["h\x61p\x72gnm"]}["\x73\x5f\x73u\x6dm\x61t\x69\x6fn"] = $this->l("s\x75\x6d\x6d\x61\x74io\x6e: d\x69\x6d\x65nsions\x20i\x6e \x61ll d\x69r\x65ct\x69\x6fn\x73\x20\x61r\x65\x20ad\x64e\x64 (gi\x76\x69\x6e\x67\x20\x70\x65r\x69me\x74er)");
}
return ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76\x6afxkt\x63o\x72\x66\x72m"]};
}
public function getContent()
{
$mpbohdiz = "ta\x62";
$kppargr = "\x6f\x75\x74\x70ut0";
if (Configuration::get("\x50\x53_\x44\x49\x53\x41BLE_N\x4f\x4e_\x4e\x41\x54\x49\x56\x45\x5f\x4d\x4fD\x55\x4c\x45"))
return "<\x64i\x76\x20\x63l\x61\x73\x73=\"\x6d\x6f\x64\x75\x6ce\x5fe\x72r\x6fr al\x65rt \x61\x6ce\x72\x74-da\x6eg\x65\x72\">" . $this->l("\x4eon \x50\x72e\x73\x74\x61\x53\x68o\x70 mo\x64ules \x64i\x73\x61bl\x65d\x2e") . "\x3c/\x64\x69\x76>";
$lgzzkqt = "\x74\x61b";
${"G\x4c\x4fBAL\x53"}["\x78\x78\x70\x72\x69wv\x79"] = "\x73\x65\x74\x75p";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x64\x71\x69\x78i\x68\x72f"] = "\x6fu\x74p\x75t\x33";
$this->active_languages = $this->context->controller->getLanguages();
$bwbryyrkph = "\x74\x61\x62\x73";
$this->default_language_id = $this->context->controller->default_form_language;
${${"\x47\x4cOB\x41L\x53"}["\x78\x78\x70\x72\x69\x77v\x79"]} = $this->setupInstance();
if (!(int) Tools::getValue("\x70\x70"))
$setup->checkIntegration();
${"\x47\x4c\x4f\x42A\x4cS"}["e\x63\x72\x67l\x74\x73\x73"] = "p\x72\x6f\x70\x65\x72\x74i\x65\x73";
${$lgzzkqt} = "\x30";
$tgjolgnixtgg = "t\x61bs";
${$kppargr} = ${${"GL\x4f\x42A\x4c\x53"}["\x62\x66\x73\x67\x79\x77\x63\x63\x67\x71\x77"]} = ${${"\x47L\x4f\x42A\x4c\x53"}["b\x68uxbbi\x78a\x79\x68"]} = ${${"\x47\x4cO\x42\x41LS"}["kd\x71i\x78\x69h\x72f"]} = ${${"\x47\x4c\x4fB\x41\x4c\x53"}["z\x75\x7aw\x73\x68\x75c\x70f"]} = "";
${${"G\x4c\x4fB\x41L\x53"}["q\x6e\x6f\x70ir\x79\x70ks\x64y"]} = null;
${${"GL\x4fB\x41L\x53"}["\x65c\x72\x67\x6cts\x73"]} = null;
${"\x47\x4cO\x42\x41LS"}["\x6dg\x77dw\x6bumtp"] = "ht\x6d\x6c";
$xbndkbslkbaj = "t\x61\x62";
$efqtxgfpqi = "t\x61bs";
$vnvpdtilps = "out\x70\x75t\x32";
if (Tools::isSubmit("s\x75\x62m\x69tRes\x74or\x65\x44\x65\x66aults")) {
${${"\x47\x4c\x4fB\x41L\x53"}["\x66\x70yrv\x69\x6c\x66\x65dx"]} = "0";
$setup->insertData(true);
} elseif (Tools::isSubmit("\x63an\x63elS\x61\x76\x65Tem\x70\x6c\x61te"))
${${"G\x4c\x4fBAL\x53"}["\x66\x70\x79r\x76\x69\x6c\x66\x65d\x78"]} = "0";
elseif (Tools::isSubmit("\x63\x61\x6e\x63\x65\x6cS\x61ve\x50\x72\x6f\x70\x65\x72t\x79"))
${${"G\x4c\x4fB\x41\x4c\x53"}["\x66pyrv\x69lfe\x64x"]} = "\x31";
elseif (Tools::isSubmit("s\x75b\x6d\x69t\x53\x61\x76\x65\x54e\x6d\x70l\x61te")) {
${"\x47L\x4fBALS"}["\x77\x66e\x79\x78k\x6b\x78d\x64y"] = "r\x65\x73\x75l\x74";
${${"\x47\x4c\x4f\x42AL\x53"}["\x77fe\x79\x78\x6b\x6b\x78dd\x79"]} = $this->saveTemplate();
if (${${"\x47\x4cO\x42\x41\x4c\x53"}["j\x66\x7a\x72w\x73pq\x75\x64r"]}["\x65rr\x6fr"] == "")
${${"\x47L\x4f\x42AL\x53"}["\x66\x70\x79\x72vi\x6cf\x65dx"]} = "\x30";
else {
${"\x47\x4c\x4f\x42A\x4cS"}["w\x6d\x74nk\x65\x66"] = "\x74e\x6d\x70l\x61t\x65s";
${"\x47LOBA\x4c\x53"}["\x6d\x63\x66\x79e\x77\x69x"] = "\x72e\x73u\x6c\x74";
${${"G\x4cO\x42AL\x53"}["w\x6d\x74\x6ek\x65\x66"]} = ${${"G\x4c\x4fB\x41\x4c\x53"}["\x6dcf\x79ew\x69\x78"]}["temp\x6c\x61tes"];
${${"G\x4c\x4f\x42\x41LS"}["\x7a\x75\x7a\x77s\x68\x75\x63p\x66"]} = $this->displayError(${${"\x47\x4c\x4fB\x41\x4c\x53"}["j\x66z\x72\x77\x73\x70qu\x64r"]}["er\x72\x6fr"]);
${${"G\x4c\x4fB\x41LS"}["\x66p\x79\x72\x76\x69\x6cf\x65d\x78"]} = "4";
}
} elseif (Tools::isSubmit("subm\x69t\x53av\x65\x50\x72\x6f\x70\x65r\x74y")) {
${"G\x4c\x4fB\x41\x4cS"}["\x64h\x73\x70\x6djaz\x76j"] = "ta\x62";
${"\x47L\x4fB\x41\x4c\x53"}["\x63l\x77\x75j\x6au\x6b"] = "\x72\x65\x73\x75lt";
${${"\x47L\x4f\x42AL\x53"}["\x6af\x7ar\x77\x73pq\x75\x64r"]} = $this->saveProperty();
if (${${"\x47\x4cO\x42\x41\x4cS"}["c\x6c\x77\x75\x6aj\x75k"]}["\x65r\x72\x6fr"] == "")
${${"\x47LOB\x41\x4cS"}["\x64\x68\x73\x70\x6d\x6a\x61zv\x6a"]} = "\x31";
else {
$wabgqsvjromk = "\x70\x72\x6f\x70\x65r\x74\x69\x65\x73";
${"G\x4cO\x42\x41\x4c\x53"}["k\x6e\x67\x77\x6a\x77"] = "\x72esu\x6ct";
${"\x47\x4c\x4fBA\x4c\x53"}["\x6f\x67\x68u\x79\x69"] = "\x72\x65su\x6c\x74";
$uzjudyc = "t\x61\x62";
${$wabgqsvjromk} = ${${"\x47LO\x42\x41\x4c\x53"}["\x6f\x67h\x75\x79\x69"]}["pr\x6f\x70erti\x65s"];
${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x7a\x75\x7a\x77\x73h\x75c\x70\x66"]} = $this->displayError(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x6e\x67w\x6a\x77"]}["er\x72o\x72"]);
${$uzjudyc} = "\x34";
}
} elseif (Tools::isSubmit("s\x75bm\x69\x74\x43on\x66i\x67\x53et\x74ings")) {
$qigkdua = "o\x75\x74\x70\x75t\x32";
${"\x47\x4c\x4fBA\x4c\x53"}["\x6cwg\x67\x72\x6d"] = "\x74a\x62";
${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6c\x77\x67\x67\x72\x6d"]} = "\x32";
Configuration::updateValue("\x50P_MEASUREMEN\x54_SYSTE\x4d", (int) Tools::getValue("me\x61\x73u\x72\x65\x6d\x65nt_\x73y\x73\x74\x65\x6d", 1));
Configuration::updateValue("PP\x5f\x4dEA\x53\x55\x52EMEN\x54\x5f\x53\x59\x53\x54\x45M\x5f\x46\x4f", (int) Tools::getValue("m\x65asurem\x65\x6et\x5fsy\x73te\x6d\x5ff\x6f", 0));
Configuration::updateValue("\x50\x50_\x50OWERE\x44B\x59", (int) Tools::getValue("po\x77e\x72e\x64by", 0));
Configuration::updateValue("\x50\x50\x5fTE\x4d\x50LA\x54E\x5f\x4e\x41\x4d\x45_\x49N\x5fC\x41TAL\x4f\x47", (int) Tools::getValue("\x74\x65\x6dpla\x74\x65\x5f\x6eam\x65_i\x6e_\x63\x61talog", 1));
Configuration::updateValue("P\x50\x5fSHOW_POSI\x54ION\x53", (int) Tools::getValue("sh\x6f\x77_\x70o\x73i\x74\x69ons", 0));
${$qigkdua} = $this->displayConfirmation($this->l("\x53\x65t\x74\x69\x6eg\x73\x20u\x70\x64a\x74ed"));
} elseif (Tools::isSubmit("sub\x6d\x69tSet\x75\x70")) {
${${"\x47\x4c\x4f\x42A\x4c\x53"}["fp\x79\x72\x76\x69l\x66\x65dx"]} = "\x32";
$setup->runSetup();
} elseif (Tools::isSubmit("s\x75b\x6d\x69t\x49\x6eteg\x72\x61ti\x6fn")) {
${${"\x47\x4c\x4fB\x41\x4cS"}["\x66\x70y\x72\x76\x69l\x66\x65\x64\x78"]} = "2";
$setup->runIntegrationTest();
} elseif (Tools::isSubmit("clic\x6b\x43lear\x43ac\x68\x65")) {
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x70\x79\x72\x76\x69\x6cf\x65\x64x"]} = "\x32";
PSM::clearCache();
} elseif (Tools::isSubmit("\x73u\x62m\x69\x74Statist\x69c\x73"))
${${"\x47\x4c\x4f\x42\x41LS"}["fpy\x72vi\x6cfe\x64\x78"]} = "\x33";
elseif (Tools::isSubmit("\x63li\x63k\x45\x64it\x54\x65\x6d\x70\x6c\x61\x74\x65"))
${$mpbohdiz} = "4";
elseif (Tools::isSubmit("c\x6ci\x63\x6b\x44el\x65t\x65\x54em\x70late")) {
$lnxolu = "\x74\x61b";
${$lnxolu} = "\x30";
$this->deleteTemplate();
} elseif (Tools::isSubmit("\x63lick\x48\x69\x64d\x65nS\x74\x61\x74u\x73\x54\x65m\x70lat\x65")) {
${${"\x47\x4cO\x42\x41L\x53"}["\x66\x70y\x72v\x69l\x66\x65d\x78"]} = "\x30";
$this->changeHiddenStatus();
} elseif (Tools::isSubmit("cl\x69c\x6bE\x64itP\x72\x6fpe\x72\x74\x79"))
${$xbndkbslkbaj} = "\x34";
elseif (Tools::isSubmit("c\x6ci\x63kDe\x6c\x65\x74\x65Pro\x70er\x74\x79")) {
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x61\x69g\x61\x67d\x76\x63v"] = "t\x61\x62";
${${"G\x4cO\x42\x41\x4cS"}["\x65\x61\x69\x67a\x67\x64\x76\x63v"]} = "1";
$this->deleteProperty();
}
${${"G\x4cOB\x41L\x53"}["m\x67w\x64\x77k\x75mtp"]} = "";
if (version_compare(_PS_VERSION_, $this->ps_versions_compliancy["mi\x6e"]) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy["m\x61x"]) > 0) {
${${"\x47LOBA\x4cS"}["\x6bu\x64\x6c\x61yw\x78u"]} .= $this->displayError($this->l("T\x68\x69\x73\x20mo\x64ule\x20is\x20\x6e\x6f\x74 f\x75\x6c\x6cy co\x6d\x70\x61tible \x77\x69t\x68\x20\x74\x68\x65\x20instal\x6ce\x64\x20\x50\x72e\x73\x74\x61\x53hop\x20v\x65rsi\x6fn\x2e") . "\x20" . $this->compatibilityText() . "<br\x3e" . $this->l("\x50\x6cea\x73e u\x70\x67\x72\x61de t\x6f t\x68\x65 \x6eew\x65\x72 \x76\x65\x72si\x6fn.") . "\x3cbr>");
}
$jqjxuqlchzj = "htm\x6c";
if (count($this->integration_test_result) != 0) {
$ccrnxylu = "\x68\x74\x6d\x6c";
${"\x47\x4c\x4f\x42A\x4c\x53"}["h\x66\x72\x6ag\x6e\x72\x64\x67p"] = "t\x61\x62";
${$ccrnxylu} .= $this->displayError($this->l("I\x6e\x74eg\x72ation\x20\x74\x65s\x74 \x66a\x69led\x2e"));
${${"GLOBAL\x53"}["\x68\x66rj\x67\x6e\x72d\x67p"]} = "2";
}
${${"\x47LO\x42AL\x53"}["lv\x75f\x71\x64\x6d\x67\x64\x64g"]} = array();
${${"\x47\x4cO\x42\x41\x4cS"}["\x6c\x76\x75\x66\x71\x64\x6d\x67\x64d\x67"]}[0] = array(
"\x74ype" => "te\x6dplat\x65\x73",
"\x6eam\x65" => $this->l("Tem\x70l\x61\x74e\x73"),
"\x68tm\x6c" => ${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x76\x61h\x77\x66\x68f\x63\x66\x6dr"]} . $this->getTemplatesTabHtml()
);
${$tgjolgnixtgg}[1] = array(
"\x74y\x70e" => "\x70\x72ope\x72t\x69e\x73",
"\x6e\x61\x6de" => $this->l("\x50\x72op\x65\x72ti\x65s"),
"h\x74\x6dl" => ${${"\x47\x4c\x4fB\x41\x4cS"}["bf\x73\x67\x79w\x63\x63gqw"]} . $this->getPropertiesTabHtml()
);
${$efqtxgfpqi}[2] = array(
"\x74yp\x65" => "\x73e\x74\x74i\x6e\x67\x73",
"na\x6d\x65" => $this->l("\x53\x65\x74ti\x6eg\x73"),
"\x68tm\x6c" => ${$vnvpdtilps} . $this->getSettingsTabHtml(Tools::isSubmit("s\x75\x62m\x69t\x49\x6e\x74e\x67rat\x69\x6fn") || Tools::isSubmit("subm\x69\x74Set\x75\x70"))
);
${${"\x47\x4c\x4fB\x41\x4c\x53"}["l\x76\x75f\x71\x64m\x67d\x64g"]}[3] = array(
"\x74\x79pe" => "\x73tat\x69s\x74\x69\x63\x73",
"\x6e\x61me" => $this->l("\x53tatistic\x73"),
"ht\x6d\x6c" => ${${"G\x4c\x4fBAL\x53"}["\x69i\x6ap\x61\x74"]} . $this->getStatisticsTabHtml(Tools::isSubmit("\x73u\x62\x6d\x69\x74Stat\x69stics"))
);
if ((${${"\x47\x4c\x4f\x42\x41LS"}["\x66p\x79\x72\x76\x69\x6cf\x65\x64x"]} == 4) && (Tools::isSubmit("cl\x69ckEd\x69\x74T\x65\x6dpla\x74e") || Tools::isSubmit("\x73ubmit\x53\x61\x76eT\x65\x6dp\x6ca\x74e"))) {
$whgjcsc = "\x6d\x6fd\x65";
${"\x47L\x4f\x42A\x4c\x53"}["yw\x72\x78\x6e\x74\x68\x70"] = "\x74\x69\x74l\x65";
${${"\x47\x4c\x4fBALS"}["j\x74\x7a\x72s\x65\x6e\x6cs\x74c\x64"]} = Tools::getValue("\x6d\x6fde");
$lcbceqdvfq = "\x6d\x6f\x64\x65";
${"\x47LO\x42\x41\x4cS"}["\x6c\x63\x62\x72\x63\x63"] = "t\x69\x74\x6ce";
$dwcphvgu = "\x74\x69t\x6c\x65";
$lxrlsfnjko = "ou\x74pu\x74\x34";
if (${$whgjcsc} == "\x61d\x64")
${${"\x47\x4cO\x42\x41L\x53"}["\x73\x66\x6e\x69g\x69\x75\x6bw\x67f\x6b"]} = $this->l("\x41d\x64\x20t\x65\x6d\x70\x6c\x61te");
elseif (${$lcbceqdvfq} == "\x63op\x79")
${${"G\x4c\x4fB\x41LS"}["\x79\x77\x72\x78\x6e\x74h\x70"]} = $this->l("Add \x74\x65mp\x6ca\x74\x65");
else {
${${"G\x4c\x4f\x42\x41\x4cS"}["\x6a\x74\x7a\x72\x73en\x6cs\x74\x63d"]} = "\x65\x64it";
${${"\x47\x4c\x4f\x42A\x4cS"}["s\x66\x6e\x69\x67\x69\x75\x6bw\x67\x66\x6b"]} = $this->l("E\x64i\x74 \x74\x65\x6dp\x6c\x61\x74\x65");
}
${${"\x47\x4c\x4fBAL\x53"}["\x6c\x76\x75\x66\x71d\x6d\x67\x64d\x67"]}[4] = array(
"typ\x65" => "m\x6f\x64\x69\x66y\x54\x65\x6d\x70\x6cat\x65",
"\x6e\x61m\x65" => ${$dwcphvgu},
"\x68tm\x6c" => ${$lxrlsfnjko} . $this->getEditTemplateTabHtml(${${"\x47\x4cO\x42A\x4cS"}["\x71n\x6f\x70i\x72\x79\x70k\x73\x64\x79"]}, ${${"\x47L\x4f\x42A\x4c\x53"}["\x6at\x7a\x72\x73e\x6e\x6c\x73\x74c\x64"]}, ${${"\x47\x4cO\x42A\x4c\x53"}["l\x63\x62\x72\x63\x63"]})
);
} elseif ((${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x70\x79r\x76\x69l\x66e\x64x"]} == 4) && (Tools::isSubmit("\x63\x6ci\x63\x6b\x45d\x69\x74Prop\x65\x72t\x79") || Tools::isSubmit("\x73u\x62\x6di\x74Save\x50r\x6f\x70\x65rt\x79"))) {
${"\x47LO\x42\x41\x4cS"}["\x61\x75\x6eo\x6e\x66\x65m\x73"] = "\x74\x69\x74le";
$eakmzlzdoqo = "\x74\x69\x74\x6c\x65";
${${"\x47L\x4fB\x41\x4c\x53"}["\x6a\x74\x7arsen\x6c\x73\x74\x63d"]} = Tools::getValue("mo\x64\x65");
${"\x47\x4cOB\x41LS"}["\x65\x61\x78\x75q\x66g\x72\x75"] = "p\x72o\x70\x65\x72\x74\x69e\x73";
if (${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6at\x7ar\x73e\x6e\x6cs\x74\x63d"]} == "ad\x64") {
$hffwbxi = "\x74y\x70\x65";
$gbcyslkbi = "\x74\x69\x74\x6c\x65";
$lofwas = "ti\x74\x6ce";
${${"\x47L\x4f\x42\x41L\x53"}["w\x72\x72\x76ed\x68\x6f\x71\x6a"]} = (int) Tools::getValue("\x74ype");
if (${${"GLO\x42\x41\x4c\x53"}["wrr\x76e\x64\x68o\x71\x6a"]} == self::PROPERTY_TYPE_GENERAL)
${$lofwas} = $this->l("Ad\x64\x20\x70r\x6f\x70\x65\x72\x74\x79 at\x74\x72\x69but\x65");
elseif (${$hffwbxi} == self::PROPERTY_TYPE_BUY_BLOCK_TEXT)
${$gbcyslkbi} = $this->l("Ad\x64 pro\x70erty tex\x74");
else
${${"\x47\x4c\x4fB\x41L\x53"}["\x73f\x6e\x69\x67\x69\x75kwgfk"]} = $this->l("A\x64\x64 prop\x65\x72ty \x64\x69m\x65ns\x69\x6fn");
} else {
${"\x47\x4cOB\x41\x4c\x53"}["\x62\x6a\x6d\x73z\x6bn\x65"] = "\x6d\x6f\x64e";
$vgtwqihu = "\x74\x69t\x6c\x65";
${${"\x47\x4c\x4f\x42ALS"}["\x62\x6am\x73zkn\x65"]} = "\x65\x64\x69\x74";
${$vgtwqihu} = $this->l("Edi\x74\x20\x70r\x6fp\x65\x72\x74\x79");
}
${${"G\x4cO\x42A\x4c\x53"}["\x6c\x76u\x66\x71d\x6d\x67\x64\x64g"]}[4] = array(
"t\x79p\x65" => "m\x6f\x64\x69f\x79P\x72o\x70er\x74y",
"\x6ea\x6d\x65" => ${${"\x47\x4c\x4fB\x41\x4c\x53"}["a\x75n\x6f\x6ef\x65m\x73"]},
"\x68tm\x6c" => ${${"\x47LO\x42\x41\x4cS"}["z\x75\x7a\x77s\x68\x75c\x70\x66"]} . $this->getEditPropertyTabHtml(${${"G\x4c\x4f\x42AL\x53"}["e\x61xuq\x66g\x72\x75"]}, ${${"\x47\x4c\x4f\x42AL\x53"}["j\x74\x7ar\x73\x65\x6e\x6c\x73\x74\x63\x64"]}, ${$eakmzlzdoqo})
);
}
${${"\x47\x4c\x4f\x42\x41LS"}["\x74d\x79e\x63\x70\x69\x62w\x76"]} = $this->createTemplate("\x70\x70ro\x70erties");
$helper->tpl_vars["h\x74m\x6c"] = ${$jqjxuqlchzj};
$helper->tpl_vars["t\x61b\x73"] = ${$bwbryyrkph};
$helper->tpl_vars["act\x69v\x65"] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["f\x70y\x72\x76i\x6cfed\x78"]};
$helper->tpl_vars["v\x65\x72s\x69\x6fn"] = $this->version;
$helper->tpl_vars["p\x70e\x5f\x69d"] = PSM::getPSMId($this);
$helper->tpl_vars["\x5fp\x61t\x68"] = $this->getPathUri();
$helper->tpl_vars["s\x5fu\x73er_\x67uide"] = $this->l("\x75s\x65r\x20gu\x69\x64\x65");
$helper->tpl_vars["s_ve\x72\x73\x69\x6f\x6e"] = $this->l("V\x65rsio\x6e");
$helper->tpl_vars["\x73\x5fp\x70_i\x6ef\x6f_ig\x6e\x6fre"] = $this->l("\x64\x6f\x6e\x27\x74\x20s\x68ow t\x68\x69s \x6d\x65s\x73\x61ge aga\x69n");
$helper->tpl_vars["\x74\x6fk\x65n\x5f\x61dm\x69\x6e\x70pr\x6fp\x65\x72t\x69es"] = Tools::getAdminTokenLite("\x41\x64\x6din\x50\x70\x72op\x65\x72\x74i\x65\x73");
$helper->tpl_vars["j\x73tr\x61\x6es\x6ca\x74\x69o\x6es"] = PP::safeOutputJS(array(
"\x72e\x72un" => $this->l("\x52e-\x72un S\x65\x74u\x70"),
"\x69\x6e\x74\x65grati\x6f\x6e_\x6do\x64u\x6ce\x5f\x73ucces\x73\x5fInt\x65g\x72ati\x6fn\x4d\x6fd\x75\x6ceIgnore" => $this->l("ig\x6eor\x65\x64 - \x70l\x65\x61\x73e\x20\x72e-run \x73\x65t\x75\x70"),
"\x69n\x74\x65\x67rati\x6fn_modu\x6c\x65\x5f\x73uc\x63\x65\x73s_\x49n\x74\x65gra\x74ionMod\x75leIn\x74\x65grate" => $this->l("in\x74\x65\x67\x61t\x69o\x6e\x20\x61ct\x69\x76\x61\x74\x65d -\x20\x70\x6ce\x61\x73e re-r\x75n \x73et\x75\x70"),
"\x69n\x74e\x67\x72\x61tio\x6e_\x6do\x64ul\x65_r\x65\x72u\x6e\x5f\x49n\x74e\x67ra\x74ionM\x6fd\x75\x6ce\x43\x68\x65\x63\x6bFo\x72\x55pd\x61te\x73" => $this->l("\x70l\x65as\x65\x20r\x65-\x72\x75n\x20s\x65t\x75p"),
"i\x6eteg\x72a\x74io\x6e\x5fm\x6f\x64\x75le\x5f\x64\x6f\x77\x6e\x6co\x61d\x65d_\x49n\x74\x65\x67\x72\x61tionMo\x64\x75\x6c\x65Chec\x6b\x46orU\x70da\x74\x65s" => $this->l("up\x64at\x65\x20\x64\x6f\x77nlo\x61\x64ed\x20-\x20\x70\x6ceas\x65 \x72e-\x72\x75\x6e\x20\x73etup"),
"in\x74eg\x72a\x74\x69o\x6e\x5f\x6d\x6fd\x75\x6ce\x5f\x6eo\x5fu\x70dat\x65\x73\x5f\x49n\x74\x65\x67\x72atio\x6eMo\x64u\x6c\x65\x43heckForU\x70da\x74es" => $this->l("n\x6f \x75\x70da\x74e\x73 av\x61il\x61\x62\x6ce\x20- p\x6c\x65\x61\x73e c\x6fn\x74\x61\x63t\x20\x63us\x74\x6f\x6d\x65r suppo\x72t"),
"in\x74\x65\x67ra\x74io\x6e\x5f\x6d\x6fdu\x6c\x65_\x65r\x72or" => $this->l("\x65\x72ror \x6fcc\x75rr\x65\x64")
));
if (!Module::isInstalled("ps\x6d\x65xt\x6da\x6eag\x65\x72") && Module::getInstanceByName("p\x73mextm\x61\x6e\x61\x67er"))
$helper->tpl_vars["\x70sme\x78\x74man\x61g\x65r\x5f\x69\x6e\x73t\x61l\x6c"] = $this->context->link->getAdminLink("Adm\x69\x6eMo\x64\x75l\x65\x73") . "&i\x6e\x73ta\x6c\x6c\x3d\x70smextm\x61\x6eage\x72\x26\x74\x61b_\x6do\x64u\x6c\x65=\x61\x64\x6din\x69st\x72\x61\x74i\x6fn\x26\x6d\x6f\x64\x75\x6ce\x5f\x6ea\x6d\x65\x3d\x70\x73\x6d\x65\x78\x74\x6da\x6e\x61\x67\x65\x72&an\x63h\x6f\x72=P\x73m\x65\x78\x74\x6d\x61\x6e\x61g\x65r";
return $helper->generate();
}
private function getTemplatesTabHtml()
{
${${"\x47L\x4f\x42\x41\x4cS"}["\x74d\x79\x65\x63\x70\x69bw\x76"]} = $this->createTemplate("t\x65mpl\x61\x74\x65s");
$helper->tpl_vars["\x69nt\x65gr\x61ted"] = $this->integrated;
if ($this->integrated) {
$pahlrds = "b\x75\x79\x5f\x62lo\x63k\x5ft\x65\x78\x74";
${${"\x47\x4c\x4fBA\x4c\x53"}["q\x6e\x6fp\x69\x72\x79pk\x73\x64y"]} = PP::getTemplates();
${"\x47\x4c\x4fBA\x4cS"}["ef\x73\x62\x70e\x78px\x6b\x6cq"] = "\x74e\x6d\x70\x6c\x61\x74\x65\x73";
$wsfqaupvwgyb = "t\x65\x6d\x70l\x61\x74\x65\x73";
${$pahlrds} = array();
$vosqnxh = "\x74\x65\x6d\x70\x6c\x61te";
$dezvqyrzkfi = "\x62u\x79\x5fb\x6c\x6f\x63\x6b\x5f\x74\x65\x78\x74";
${"\x47\x4cO\x42A\x4cS"}["ngrn\x68\x70\x63"] = "\x62uy\x5fb\x6c\x6fc\x6b\x5ftext";
foreach (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x66sb\x70exp\x78\x6blq"]} as &${$vosqnxh}) {
${"\x47\x4cO\x42\x41LS"}["\x6a\x7akk\x62\x66\x78\x6b\x62"] = "\x64\x69\x73p\x6c\x61\x79_\x6do\x64\x65";
${"G\x4cOB\x41\x4cS"}["\x62\x78la\x76p\x67"] = "d\x69\x73\x70\x6c\x61\x79_mo\x64\x65";
$yxvwvqwuyjy = "t\x65\x6dp\x6ca\x74\x65";
$inqnorqg = "di\x73\x70\x6c\x61y\x5f\x6d\x6fde";
${"\x47\x4cO\x42\x41L\x53"}["\x77k\x6c\x78sy\x6b\x72"] = "\x74em\x70\x6ca\x74e";
$qxvqtsawbwer = "\x62u\x79_\x62\x6c\x6f\x63\x6b\x5ft\x65x\x74";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x6f\x6a\x6a\x72\x66p\x64\x68t"] = "\x74e\x6d\x70\x6cate";
${$inqnorqg} = array();
if ((${${"G\x4c\x4fB\x41\x4c\x53"}["\x77kl\x78sy\x6b\x72"]}["\x70p_\x64\x69\x73\x70\x6c\x61\x79_m\x6fd\x65"] & 1) == 1)
${${"\x47\x4cOB\x41\x4c\x53"}["b\x78la\x76\x70\x67"]}[] = 1;
if ((${${"GL\x4fBA\x4c\x53"}["x\x64\x67tg\x61\x62\x75\x79"]}["\x70\x70_dis\x70\x6c\x61\x79_\x6dod\x65"] & 2) == 2)
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x71\x76d\x70hv"]}[] = 2;
$uivtttgfmr = "te\x6d\x70l\x61\x74\x65";
if ((${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x64gt\x67abuy"]}["\x70p\x5fdi\x73pl\x61y\x5f\x6d\x6f\x64\x65"] & 4) == 4)
${${"GL\x4f\x42\x41LS"}["w\x71\x76\x64p\x68\x76"]}[] = 3;
${$uivtttgfmr}["d\x69\x73\x70la\x79_m\x6fd\x65"] = implode(",", ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6az\x6bk\x62f\x78\x6bb"]});
if (${$yxvwvqwuyjy}["\x70p_e\x78\x70lan\x61\x74\x69on"])
${$qxvqtsawbwer}[${${"\x47\x4cOB\x41\x4c\x53"}["\x74\x6f\x6a\x6ar\x66\x70\x64\x68t"]}["\x70\x70\x5f\x62o\x5f\x62uy\x5f\x62lo\x63\x6b_i\x6e\x64\x65x"]] = PP::safeOutputLenient(${${"GL\x4f\x42\x41\x4cS"}["\x78\x64gt\x67\x61\x62\x75\x79"]}["\x70p\x5fe\x78pl\x61n\x61\x74\x69\x6fn"]);
}
ksort(${${"\x47LO\x42\x41\x4c\x53"}["\x6e\x67r\x6e\x68\x70\x63"]}, SORT_NUMERIC);
$hmmkvrirrwv = "t\x72a\x6e\x73\x6c\x61tion\x73";
$guigyxxvbir = "t\x72\x61n\x73\x6cat\x69on\x73";
$helper->tpl_vars["\x74empla\x74e\x73"] = PP::safeOutput(${$wsfqaupvwgyb});
$helper->tpl_vars["bu\x79\x5f\x62lock\x5ft\x65\x78\x74"] = ${$dezvqyrzkfi};
${${"GL\x4fB\x41\x4c\x53"}["h\x61\x70\x72\x67\x6e\x6d"]} = $this->getTranslations("E\x64\x69t\x54\x65m\x70l\x61\x74e");
$helper->tpl_vars["\x64i\x73play\x5fm\x6f\x64e\x5f\x74ex\x74"] = array(
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68ap\x72\x67\x6e\x6d"]}["\x73\x5fpp\x5fd\x69\x73\x70\x6cay_mode\x5f1_l\x6f\x6eg"],
${$guigyxxvbir}["s_\x70\x70\x5f\x64\x69\x73pl\x61\x79_mode\x5f2"],
${$hmmkvrirrwv}["s_p\x70_dis\x70\x6c\x61y_\x6dod\x65\x5f\x34"]
);
} else
$helper->tpl_vars["\x69n\x74\x65grati\x6f\x6e_\x6de\x73\x73age"] = $this->getTabIntegrationWarning();
return $helper->generate();
}
private function getPropertiesTabHtml()
{
${"G\x4c\x4fB\x41\x4c\x53"}["\x79\x68\x65\x6bp\x75e\x71\x75\x6d\x6f"] = "h\x65l\x70\x65\x72";
${${"\x47LOB\x41\x4c\x53"}["\x79he\x6b\x70\x75\x65q\x75\x6do"]} = $this->createTemplate("\x70\x72o\x70\x65r\x74ie\x73");
$helper->tpl_vars["\x69\x6et\x65\x67ra\x74e\x64"] = $this->integrated;
if ($this->integrated) {
${${"\x47L\x4fBA\x4c\x53"}["\x62\x6c\x7alc\x64\x72\x65"]} = $this->getAllProperties();
${"\x47\x4c\x4f\x42\x41L\x53"}["\x68\x79\x6dta\x63\x6f"] = "\x6d\x65\x74ri\x63";
${"\x47\x4c\x4fB\x41\x4c\x53"}["\x64y\x6f\x72n\x65"] = "a\x6c\x6c_\x70\x72\x6fp\x65\x72t\x69\x65\x73";
${${"GLOB\x41\x4cS"}["p\x66w\x64\x70\x74xorr\x66\x6e"]} = (PP::resolveMS() != 2);
$helper->tpl_vars["\x70r\x6fpe\x72\x74\x69\x65s"] = ${${"GL\x4f\x42A\x4c\x53"}["\x64\x79or\x6e\x65"]}[$this->default_language_id];
$helper->tpl_vars["\x70\x72ope\x72\x74y_\x74\x79\x70\x65s"] = $this->getPropertyTypes();
$helper->tpl_vars["\x74ypes"] = array(
"a\x74\x74ri\x62\x75\x74\x65s" => array(
"id" => self::PROPERTY_TYPE_GENERAL,
"\x6det\x72ic" => true,
"\x6e\x6fn\x6detric" => true
),
"\x74\x65xts" => array(
"\x69\x64" => self::PROPERTY_TYPE_BUY_BLOCK_TEXT,
"met\x72i\x63" => ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x66wdp\x74\x78\x6f\x72\x72f\x6e"]},
"n\x6f\x6emetri\x63" => !${${"\x47\x4cO\x42\x41LS"}["\x68ym\x74a\x63\x6f"]}
),
"dime\x6esi\x6fn\x73" => ($this->multidimensional_plugin ? array(
"\x69d" => self::PROPERTY_TYPE_EXT,
"\x6d\x65tr\x69\x63" => true,
"non\x6det\x72i\x63" => true
) : false)
);
} else
$helper->tpl_vars["i\x6et\x65gr\x61t\x69\x6fn_me\x73sage"] = $this->getTabIntegrationWarning();
return $helper->generate();
}
private function getSettingsTabHtml($display)
{
${"\x47\x4cO\x42A\x4c\x53"}["\x6f\x66\x64\x6f\x63\x68\x65"] = "i\x6e\x74\x65\x67r\x61t\x69on";
$mpkduvhapzbw = "i\x6ete\x67\x72a\x74\x69\x6f\x6e";
${"\x47\x4c\x4f\x42A\x4cS"}["\x61\x6aq\x70\x6b\x6f\x69"] = "e\x78tra\x5fm\x6f\x64\x75\x6ce\x73";
$opwyblrj = "h\x74\x6d\x6c";
${"GL\x4f\x42\x41L\x53"}["\x6c\x6e\x78qjjx\x66"] = "\x6dodi\x66\x69\x65d\x5f\x66\x69\x6ces";
${$opwyblrj} = "";
if ($this->integrated) {
$qyipzg = "h\x65\x6c\x70\x65\x72";
$klqwlhmh = "f\x6f\x72\x6d";
${$qyipzg} = $this->createHelperForm("\x70\x70_\x73et\x74\x69\x6e\x67\x73_f\x6f\x72m", $this->l("\x53ett\x69\x6eg\x73"), "s\x75bmitC\x6fn\x66\x69gSetti\x6eg\x73", "i\x63\x6f\x6e-\x41\x64\x6dinAd\x6di\x6e");
$bhympvrrko = "\x68\x65l\x70\x65r";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x73\x6cju\x71\x6du\x78in"] = "\x68\x74\x6d\x6c";
${${"\x47L\x4f\x42\x41L\x53"}["\x61\x76f\x79\x77\x66t\x79\x63\x68\x76o"]} = array(
"inp\x75t" => array(
array(
"l\x61b\x65\x6c" => $this->l("M\x65as\x75r\x65\x6d\x65\x6et\x20\x73y\x73\x74\x65m"),
"t\x79\x70\x65" => "radi\x6f",
"name" => "\x6dea\x73ur\x65\x6d\x65nt_s\x79\x73tem",
"de\x73\x63" => $this->l("\x75n\x69t\x20m\x65as\x75r\x65men\x74\x20sys\x74\x65m \x75s\x65d \x62y \x64\x65\x66ault\x20(\x63an\x20b\x65\x20\x6f\x76e\x72rid\x64\x65\x6e\x20i\x6e \x74\x65\x6dpl\x61te)"),
"v\x61lues" => array(
array(
"\x69d" => "me\x61\x73\x75r\x65me\x6et\x5f\x73\x79\x73tem_\x31",
"\x76a\x6cue" => (int) PP::PP_MS_METRIC,
"l\x61\x62el" => $this->l("m\x65\x74r\x69c")
),
array(
"id" => "m\x65asur\x65m\x65\x6et\x5f\x73ys\x74\x65m_\x32",
"\x76alu\x65" => (int) PP::PP_MS_NON_METRIC,
"\x6c\x61be\x6c" => $this->l("n\x6f\x6e me\x74ric\x20(\x69m\x70er\x69\x61\x6c/\x55\x53)")
)
)
),
array(
"la\x62e\x6c" => $this->l("Di\x73\x70l\x61y\x20\"\x50ow\x65\x72\x65d \x62y\x20\x50S\x26\x4do\x72\x65\x22"),
"t\x79\x70\x65" => "s\x77i\x74ch",
"n\x61\x6de" => "\x70o\x77ere\x64\x62\x79",
"va\x6cues" => array(
array(
"\x69\x64" => "psa\x6e\x64mo\x72e\x5f\x6fn",
"\x76a\x6cu\x65" => 1
),
array(
"\x69\x64" => "psa\x6e\x64m\x6fre\x5fof\x66",
"\x76al\x75\x65" => 0
)
)
),
array(
"la\x62e\x6c" => $this->l("Sho\x77\x20tem\x70\x6ca\x74\x65s i\x6e t\x68\x65\x20cata\x6co\x67"),
"typ\x65" => "\x73wi\x74\x63h",
"\x6ea\x6de" => "te\x6d\x70l\x61\x74e\x5fnam\x65_in_catal\x6fg",
"d\x65s\x63" => $this->l("\x73ho\x77\x20or\x20\x68\x69de tem\x70\x6c\x61te n\x61\x6d\x65s i\x6e the\x20\x70\x72\x6f\x64\x75\x63\x74s\x20c\x61t\x61\x6c\x6f\x67"),
"\x76\x61lue\x73" => array(
array(
"id" => "on",
"val\x75\x65" => 1
),
array(
"\x69\x64" => "off",
"v\x61\x6c\x75\x65" => 0
)
)
),
array(
"t\x79p\x65" => "cl\x65a\x72\x63\x61\x63\x68e",
"\x6e\x61\x6d\x65" => $this->l("\x43le\x61\x72 \x63a\x63he")
)
)
);
$helper->fields_value["\x6de\x61s\x75re\x6d\x65\x6et\x5f\x73y\x73t\x65\x6d"] = (int) Tools::getValue("\x6de\x61s\x75r\x65m\x65n\x74_system", Configuration::get("\x50\x50_\x4d\x45\x41SUR\x45MENT_\x53\x59S\x54E\x4d"));
$helper->fields_value["me\x61sure\x6d\x65n\x74\x5f\x73\x79stem_fo"] = (int) Configuration::get("P\x50_M\x45AS\x55RE\x4d\x45N\x54\x5fSY\x53\x54E\x4d_FO");
$helper->fields_value["\x70\x6fwer\x65db\x79"] = (int) Configuration::get("\x50\x50\x5fPO\x57E\x52E\x44\x42Y");
$helper->fields_value["\x74e\x6dpla\x74e\x5fn\x61me_in_\x63\x61tal\x6f\x67"] = (int) Configuration::get("P\x50_TE\x4dP\x4c\x41\x54\x45\x5fN\x41ME_\x49\x4e\x5fCAT\x41L\x4f\x47");
$helper->fields_value["sh\x6fw_po\x73\x69t\x69\x6f\x6e\x73"] = (int) Configuration::get("P\x50_S\x48\x4fW_\x50OS\x49\x54\x49ONS");
${${"GLO\x42\x41\x4c\x53"}["\x72\x73\x6c\x6au\x71\x6duxi\x6e"]} .= $this->generateForm(${$bhympvrrko}, ${$klqwlhmh});
}
${${"G\x4c\x4f\x42ALS"}["\x6ff\x64\x6f\x63\x68\x65"]} = array();
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6cn\x78\x71\x6a\x6a\x78\x66"]} = $this->setupInstance()->checkModifiedFiles();
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x61\x6a\x71\x70k\x6fi"]} = $this->setupInstance()->checkExtraModulesIntegrity(true);
$jzrujydvh = "\x68t\x6dl";
if (count($this->integration_test_result) == 0) {
${${"G\x4cO\x42\x41\x4cS"}["sl\x67t\x6d\x6dkh\x67"]}["\x62t\x6e\x5f\x61\x63\x74\x69\x6fn"] = "s\x75\x62\x6di\x74\x49ntegr\x61ti\x6f\x6e";
${${"\x47L\x4f\x42\x41\x4cS"}["\x73l\x67\x74\x6d\x6dk\x68\x67"]}["b\x74n_\x74i\x74l\x65"] = $this->l("Pe\x72for\x6d int\x65\x67ra\x74\x69\x6fn\x20\x74e\x73\x74");
if (${${"\x47\x4cO\x42\x41LS"}["\x65\x64\x6f\x71j\x7am\x71"]}) {
${"\x47L\x4fB\x41LS"}["\x65\x79\x69\x6a\x66\x72lt\x78c"] = "\x72e\x73";
${"G\x4c\x4f\x42A\x4c\x53"}["\x75a\x70\x6f\x78\x61\x74u\x63tc"] = "\x6d\x6f\x64\x69\x66\x69e\x64\x5f\x66\x69l\x65s";
${${"\x47L\x4f\x42\x41\x4cS"}["\x73\x6c\x67t\x6d\x6dkh\x67"]}["\x63on\x66\x69rma\x74i\x6f\x6e"] = $this->displayConfirmation($this->l("In\x74eg\x72\x61\x74\x69on\x20\x74e\x73t \x63om\x70l\x65te\x64\x20\x73u\x63c\x65s\x73\x66\x75\x6cl\x79\x2e"));
${"\x47\x4cOB\x41\x4cS"}["\x66s\x63\x62oh\x7a"] = "\x65xt\x72\x61\x5f\x6d\x6f\x64u\x6ces";
${"G\x4c\x4f\x42A\x4cS"}["\x6ego\x79\x65o"] = "r\x65\x73";
${${"\x47\x4cO\x42\x41\x4cS"}["j\x73\x72gf\x75h\x72\x6ey"]} = ${${"\x47L\x4f\x42\x41\x4cS"}["\x75a\x70\x6f\x78\x61\x74\x75c\x74c"]};
${${"G\x4c\x4fBA\x4cS"}["ey\x69j\x66\x72\x6c\x74\x78c"]} = array_replace_recursive(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6as\x72\x67\x66u\x68\x72\x6ey"]}, ${${"\x47\x4c\x4fBAL\x53"}["\x66\x73c\x62\x6f\x68\x7a"]});
if (isset($this->integration_test_result_notes))
${${"G\x4cOB\x41\x4c\x53"}["\x6e\x67oy\x65\x6f"]} = array_merge_recursive(${${"\x47\x4cOB\x41\x4cS"}["j\x73\x72\x67\x66u\x68r\x6e\x79"]}, $this->integration_test_result_notes);
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6cg\x74\x6d\x6d\x6bhg"]}["di\x73p\x6ca\x79"] = $this->showIntegrationTestResults(${${"\x47L\x4fB\x41L\x53"}["j\x73rgfu\x68rny"]});
}
} else {
${"\x47L\x4fB\x41L\x53"}["l\x67\x65ng\x63\x62\x70"] = "\x65\x78\x74\x72\x61_\x6do\x64\x75le\x73";
${"\x47LO\x42\x41\x4c\x53"}["\x69cj\x71\x70\x6a\x67\x62q\x78"] = "i\x6e\x74\x65\x67ra\x74\x69\x6fn";
${"\x47L\x4fBAL\x53"}["\x70\x6em\x6aj\x6c\x6e\x74"] = "mo\x64i\x66\x69\x65d\x5f\x66\x69\x6ce\x73";
$this->integration_test_result = array_replace_recursive($this->integration_test_result, ${${"\x47L\x4f\x42A\x4c\x53"}["\x70\x6em\x6a\x6a\x6c\x6e\x74"]});
$xosarq = "\x69\x6e\x74\x65\x67r\x61\x74\x69\x6f\x6e";
$this->integration_test_result = array_replace_recursive($this->integration_test_result, ${${"G\x4cO\x42A\x4c\x53"}["\x6c\x67\x65\x6e\x67c\x62p"]});
${"GLO\x42AL\x53"}["b\x6ay\x68\x64o\x75\x71\x76"] = "i\x6et\x65gr\x61\x74\x69\x6f\x6e";
if (isset($this->integration_test_result_notes))
$this->integration_test_result = array_merge_recursive($this->integration_test_result, $this->integration_test_result_notes);
${$xosarq}["\x62\x74\x6e_\x61\x63tion"] = "s\x75\x62mi\x74\x53e\x74\x75\x70";
${${"\x47LO\x42A\x4cS"}["\x62jyhd\x6f\x75\x71\x76"]}["b\x74n_t\x69t\x6ce"] = $this->l("Ru\x6e\x20S\x65t\x75p");
${${"\x47L\x4f\x42\x41L\x53"}["\x73\x6c\x67\x74\x6d\x6d\x6bh\x67"]}["\x64\x69\x73p\x6c\x61\x79"] = $this->showIntegrationTestResults($this->integration_test_result);
${${"\x47\x4cO\x42A\x4c\x53"}["s\x6c\x67t\x6d\x6dk\x68\x67"]}["h\x61s\x44\x65\x73c"] = true;
${${"\x47L\x4f\x42\x41L\x53"}["\x69cjqp\x6ag\x62\x71x"]}["\x5f\x70\x61\x74h"] = $this->getPathUri();
}
${${"\x47\x4c\x4fB\x41L\x53"}["\x74d\x79\x65\x63\x70\x69b\x77\x76"]} = $this->createTemplate("int\x65\x67r\x61t\x69\x6f\x6e");
$helper->tpl_vars["\x69\x6e\x74\x65\x67rat\x69o\x6e"] = ${$mpkduvhapzbw};
$helper->tpl_vars["\x69\x6et\x65\x67\x72a\x74ion_ins\x74ruc\x74i\x6f\x6e\x73"] = $this->l("\x49\x6etegrat\x69o\x6e Ins\x74\x72uction\x73");
${${"\x47\x4c\x4f\x42AL\x53"}["\x6b\x75\x64\x6c\x61\x79\x77x\x75"]} .= $helper->generate();
return ${$jzrujydvh};
}
private function getStatisticsTabHtml($display)
{
$tvymosltghe = "h\x65\x6c\x70\x65\x72";
${$tvymosltghe} = $this->createTemplate("\x73\x74\x61tistic\x73");
$helper->tpl_vars["\x69\x6etegr\x61\x74ed"] = $this->integrated;
if ($this->integrated) {
${"\x47\x4cO\x42\x41LS"}["\x76\x72s\x7a\x79\x6c\x71\x6c\x70\x73\x6f\x6f"] = "d\x69spl\x61\x79";
set_time_limit(0);
if (${${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x72sz\x79\x6c\x71l\x70\x73\x6f\x6f"]}) {
$jlqpcje = "r\x6f\x77\x73";
$vqfbobhy = "t\x65\x6dp\x6c\x61\x74\x65";
${${"GL\x4fB\x41LS"}["nd\x67\x79\x77\x68n\x66\x74\x65\x6b\x77"]} = Db::getInstance();
${"\x47\x4cO\x42AL\x53"}["l\x69l\x76y\x6b\x71\x72\x72\x66g\x77"] = "\x74emp\x6ca\x74\x65s";
${${"\x47\x4c\x4f\x42AL\x53"}["qn\x6f\x70\x69\x72\x79\x70\x6b\x73\x64\x79"]} = PP::getTemplates();
${${"\x47\x4cO\x42\x41\x4cS"}["\x67\x77o\x65y\x75\x72\x64"]} = array();
${${"\x47\x4c\x4fB\x41L\x53"}["\x67\x70\x65\x79o\x69h\x72\x73"]} = array();
${${"\x47\x4cO\x42A\x4c\x53"}["\x67\x69\x6fe\x69\x78\x6br"]} = $db->executeS("\x53E\x4cE\x43\x54 cou\x6e\x74(\x60\x69\x64\x5f\x70p_te\x6d\x70\x6c\x61te`) \x61s co\x75\x6et, `i\x64\x5f\x70p\x5fte\x6dpl\x61t\x65\x60 \x46RO\x4d\x20\x60" . _DB_PREFIX_ . "p\x72odu\x63t\x60\x20WHE\x52E\x20`i\x64_p\x70_templa\x74\x65` >\x200 \x67\x72\x6fup \x62\x79 `i\x64_\x70p\x5fte\x6d\x70la\x74e\x60");
${"\x47\x4cOB\x41\x4c\x53"}["\x75l\x69\x64\x6bu"] = "\x72\x6f\x77\x73";
foreach (${${"\x47L\x4fB\x41\x4c\x53"}["\x75l\x69\x64\x6b\x75"]} as ${${"\x47L\x4f\x42\x41\x4c\x53"}["m\x65h\x71\x76\x72"]}) {
$srmczrm = "\x73\x74\x61\x74i\x73t\x69\x63\x73";
${"\x47\x4c\x4f\x42AL\x53"}["\x76qp\x79\x65\x63y\x71b\x69v"] = "\x75\x73\x65\x64_\x74emp\x6c\x61t\x65\x73";
${$srmczrm}[${${"\x47\x4c\x4fB\x41L\x53"}["m\x65\x68\x71v\x72"]}["\x69\x64\x5f\x70p\x5ft\x65mpl\x61\x74e"]] = ${${"GLOB\x41\x4cS"}["mehqv\x72"]}["\x63o\x75\x6et"];
${${"G\x4cO\x42\x41L\x53"}["\x76\x71\x70\x79\x65\x63yq\x62iv"]}[${${"G\x4c\x4f\x42A\x4c\x53"}["\x6d\x65h\x71\x76\x72"]}["\x69\x64\x5f\x70\x70\x5ftemplat\x65"]] = ${${"G\x4cOBA\x4c\x53"}["\x6d\x65\x68qvr"]}["i\x64\x5f\x70p\x5fte\x6dplate"];
}
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x69\x6f\x65\x69\x78\x6br"]} = array();
foreach (${${"G\x4c\x4fB\x41\x4c\x53"}["\x6c\x69lv\x79\x6b\x71r\x72\x66\x67w"]} as ${$vqfbobhy}) {
${"GLO\x42A\x4cS"}["\x65h\x6ae\x63\x67"] = "\x72ow";
${"\x47\x4cOB\x41\x4c\x53"}["u\x66\x6cen\x78\x79b"] = "\x72o\x77";
$prbrxsoelb = "\x72\x6f\x77";
$ngikwernhr = "\x74\x65m\x70la\x74\x65";
${"G\x4c\x4f\x42A\x4c\x53"}["\x68\x69\x78\x72gi\x79\x6fl\x71\x75\x61"] = "\x72\x6fw";
$ytsyqdcruufl = "\x69\x64\x5fp\x70\x5f\x74\x65m\x70\x6cate";
$gamyjoupf = "\x69d\x5f\x70\x70\x5f\x74\x65mp\x6ca\x74\x65";
${"\x47\x4cO\x42AL\x53"}["\x68\x65n\x68\x6cm\x76\x63\x69"] = "i\x64\x5fp\x70\x5f\x74\x65\x6dp\x6c\x61\x74\x65";
$bncwngj = "\x74e\x6dpl\x61t\x65";
${${"\x47L\x4f\x42\x41L\x53"}["\x68\x65\x6e\x68\x6cm\x76\x63i"]} = ${$ngikwernhr}["id\x5fpp\x5f\x74em\x70\x6c\x61te"];
unset(${${"G\x4cO\x42\x41\x4c\x53"}["\x67\x70e\x79o\x69\x68\x72s"]}[${$ytsyqdcruufl}]);
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x75\x66\x6c\x65\x6ex\x79b"]} = array();
${${"\x47\x4c\x4fB\x41\x4cS"}["e\x68\x6a\x65\x63\x67"]}["\x69\x64"] = ${${"\x47\x4cO\x42\x41\x4cS"}["\x70\x78m\x6cbrs\x71"]};
$wohxpfnnf = "r\x6fw";
${${"GLO\x42A\x4c\x53"}["\x68ix\x72\x67\x69\x79\x6f\x6cq\x75\x61"]}["\x6e\x61\x6d\x65"] = ${$bncwngj}["n\x61\x6d\x65"];
${$prbrxsoelb}["\x63\x6fun\x74"] = (isset(${${"G\x4cO\x42\x41\x4c\x53"}["\x67\x77\x6f\x65\x79\x75r\x64"]}[${$gamyjoupf}]) ? ${${"\x47\x4cO\x42\x41\x4cS"}["\x67w\x6f\x65y\x75\x72\x64"]}[${${"G\x4cO\x42\x41L\x53"}["p\x78ml\x62\x72\x73\x71"]}] : 0);
if (${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6deh\x71v\x72"]}["\x63\x6funt"] > 0) {
${${"G\x4c\x4fB\x41L\x53"}["\x65\x66\x6edg\x65n\x62\x74"]} = $db->executeS("\x53E\x4c\x45\x43\x54 p\x2e\x60\x69\x64\x5f\x70\x72\x6fduct`, \x70\x6c.\x60\x6ea\x6d\x65` \x46\x52\x4fM\x20\x60" . _DB_PREFIX_ . "\x70\x72o\x64\x75c\x74\x60\x20\x70\x20\x4cEFT \x4a\x4f\x49\x4e `" . _DB_PREFIX_ . "\x70r\x6fd\x75c\x74_\x6can\x67`\x20pl\x20\x4fN\x20(p\x2e\x60id_\x70roduct\x60 \x3d \x70\x6c\x2e\x60\x69\x64\x5fp\x72\x6fdu\x63t\x60 AND\x20\x70\x6c.`id_lang`\x20\x3d\x20" . $this->default_language_id . ")\x20\x57\x48E\x52\x45\x20\x70\x2e\x60\x69\x64_\x70p\x5fte\x6dp\x6c\x61t\x65\x60\x20=\x20" . ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x78mlb\x72\x73q"]});
${"GL\x4fB\x41\x4cS"}["\x62\x6e\x79t\x63\x67\x74\x62yq"] = "\x72\x6fw";
${${"\x47\x4c\x4f\x42A\x4cS"}["\x62n\x79\x74\x63\x67t\x62\x79q"]}["p\x72\x6fdu\x63\x74\x73"] = ${${"\x47LOB\x41\x4c\x53"}["\x65\x66n\x64\x67\x65n\x62\x74"]};
}
${${"GLO\x42\x41\x4c\x53"}["\x67\x69\x6fe\x69x\x6b\x72"]}[] = ${$wohxpfnnf};
}
$helper->tpl_vars["ex\x69s\x74in\x67"] = ${$jlqpcje};
if (!empty(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67p\x65\x79\x6f\x69h\x72\x73"]})) {
$bhvskpvbvu = "\x70\x72odu\x63\x74\x73";
$efntdeich = "\x75\x73\x65\x64\x5f\x74e\x6d\x70\x6c\x61\x74e\x73";
${"\x47L\x4f\x42A\x4cS"}["e\x77\x67e\x6b\x78"] = "\x70\x72\x6f\x64\x75c\x74\x73";
${$bhvskpvbvu} = $db->executeS("S\x45L\x45\x43T p\x2e\x60i\x64\x5f\x70rod\x75c\x74`, \x70.\x60id_p\x70\x5ftem\x70\x6c\x61\x74\x65\x60,\x20\x70\x6c.\x60\x6ea\x6de\x60\x20\x46R\x4f\x4d \x60" . _DB_PREFIX_ . "p\x72\x6fd\x75ct`\x20p\x20\x4c\x45F\x54\x20\x4a\x4f\x49\x4e\x20`" . _DB_PREFIX_ . "p\x72\x6fdu\x63t_\x6can\x67\x60 \x70l\x20\x4f\x4e (p\x2e`\x69d\x5f\x70\x72\x6fdu\x63t\x60\x20=\x20p\x6c.`id\x5fp\x72\x6fduct` A\x4eD pl.`i\x64_\x6ca\x6eg`\x20=\x20" . $this->default_language_id . ") W\x48\x45R\x45\x20p\x2e`\x69\x64\x5f\x70\x70\x5f\x74\x65\x6dp\x6cat\x65`\x20\x69n\x20(" . implode(",", ${$efntdeich}) . ")");
if (is_array(${${"GL\x4f\x42\x41\x4cS"}["\x65\x77\x67\x65kx"]}) && count(${${"G\x4c\x4fB\x41\x4c\x53"}["\x65\x66\x6e\x64\x67\x65n\x62\x74"]}) > 0)
$helper->tpl_vars["\x6di\x73s\x69ng"] = ${${"\x47L\x4f\x42\x41\x4cS"}["\x65\x66n\x64g\x65\x6eb\x74"]};
}
$helper->tpl_vars["\x6ci\x6ekAd\x6din\x50\x72\x6fd\x75\x63ts"] = $this->context->link->getAdminLink("Ad\x6d\x69nP\x72\x6f\x64u\x63ts");
}
} else
$helper->tpl_vars["\x69nte\x67\x72\x61\x74ion\x5f\x6des\x73\x61g\x65"] = $this->getTabIntegrationWarning();
return $helper->generate();
}
private function getEditTemplateTabHtml($templates, $mode, $title)
{
$eylckjmvh = "al\x6c_\x70\x72\x6fp\x65\x72\x74\x69es";
${"\x47\x4cOB\x41\x4cS"}["bux\x6ej\x71l\x73h\x6d\x69"] = "\x74\x72\x61\x6e\x73la\x74ions";
$fktpmheu = "\x74\x72ansl\x61tion\x73";
$pkjrnbqw = "\x64\x69\x6d\x65n\x73ion\x5f\x69\x6ed\x65\x78";
$mhyxvli = "\x74\x72a\x6esla\x74\x69o\x6e\x73";
$vnppfeiatm = "\x74e\x6dplate";
${"\x47\x4c\x4fB\x41L\x53"}["v\x6f\x77\x65k\x72\x6da"] = "\x74em\x70\x6c\x61t\x65";
$lidsvatfdh = "t\x72a\x6e\x73\x6c\x61ti\x6fns";
${"G\x4c\x4f\x42ALS"}["\x6f\x6f\x65s\x75l\x6b\x6cah"] = "t\x72\x61n\x73l\x61ti\x6fn\x73";
$rhgfapyn = "\x6d\x6f\x64\x65";
$fucsngoiowhb = "\x74\x65m\x70\x6c\x61\x74\x65";
$kqsnyaooobdl = "t\x65mpla\x74\x65";
if (!$this->integrated)
return "";
${"\x47L\x4fBA\x4c\x53"}["\x71\x74o\x79\x68f\x74i"] = "t\x65mp\x6c\x61\x74\x65";
$xucglbu = "t\x72\x61n\x73\x6ca\x74\x69\x6fn\x73";
${"G\x4c\x4f\x42\x41L\x53"}["\x70\x6d\x64\x6e\x74vy"] = "a\x6cl\x5f\x70\x72\x6fpe\x72t\x69\x65\x73";
${"\x47\x4c\x4f\x42ALS"}["xc\x69\x6bi\x62q\x76c\x78o"] = "di\x6d\x65\x6es\x69\x6f\x6e\x73_\x66\x6f\x72\x6d";
${"G\x4c\x4fB\x41\x4c\x53"}["\x6doe\x78bd"] = "\x74\x65\x6dp\x6c\x61\x74\x65";
$bekkkhpyg = "\x6d\x73";
${"\x47\x4c\x4fBA\x4cS"}["k\x64\x77\x7a\x70vrg"] = "tem\x70\x6c\x61t\x65";
$ybpfxpmins = "\x68\x65\x6cp\x65\x72";
${"\x47\x4c\x4fB\x41L\x53"}["\x66\x61\x75zwr\x76\x71\x67\x66h\x6c"] = "tem\x70\x6c\x61\x74e";
$bluenmfkel = "\x74\x65\x6d\x70\x6c\x61\x74\x65";
$uhkuuqc = "\x74\x65m\x70\x6cat\x65";
$soyakiovrklu = "\x74\x72\x61\x6esl\x61t\x69\x6f\x6e\x73";
$cryzvlcjfn = "pr\x6f\x70\x65r\x74\x79\x5f\x74y\x70\x65\x73";
if (${$rhgfapyn} == "ad\x64") {
${${"\x47\x4cO\x42A\x4cS"}["\x77\x78\x76\x74d\x63j\x6e\x75\x72\x6e"]} = 0;
if (${${"\x47\x4cOBA\x4c\x53"}["qn\x6f\x70i\x72y\x70\x6b\x73\x64\x79"]} == null) {
foreach ($this->active_languages as ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67f\x7a\x61nc\x6a\x6c"]}) {
${"G\x4cO\x42\x41\x4c\x53"}["qix\x77l\x78v\x70\x76"] = "\x74\x65\x6d\x70\x6cat\x65";
$ymocjyuhvni = "\x74\x65mpl\x61t\x65\x73";
${${"G\x4c\x4fB\x41\x4c\x53"}["\x71i\x78wl\x78\x76\x70\x76"]} = PP::getProductPropertiesByTemplateId(${${"GLO\x42\x41\x4c\x53"}["\x77x\x76\x74\x64\x63\x6an\x75\x72\x6e"]});
$hnvmknkzgm = "\x6c\x61n\x67u\x61g\x65";
${${"GLO\x42\x41\x4c\x53"}["x\x64\x67\x74\x67a\x62\x75y"]}["n\x61me"] = "";
${${"GL\x4f\x42AL\x53"}["xd\x67\x74\x67\x61\x62\x75\x79"]}["a\x75t\x6f\x5f\x64\x65s\x63"] = 1;
$wrqpyycxsqc = "\x74e\x6d\x70\x6c\x61t\x65";
${$wrqpyycxsqc}["\x64\x65\x73\x63rip\x74i\x6fn"] = "";
${$ymocjyuhvni}[${$hnvmknkzgm}["i\x64_\x6ca\x6e\x67"]][${${"\x47\x4c\x4f\x42\x41L\x53"}["\x77x\x76\x74dc\x6anu\x72\x6e"]}] = ${${"\x47LO\x42\x41\x4c\x53"}["\x78dg\x74\x67\x61\x62u\x79"]};
}
}
} else
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77\x78v\x74d\x63j\x6e\x75\x72\x6e"]} = (int) Tools::getValue("\x69\x64");
$sjjyex = "\x74em\x70la\x74\x65";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x78\x78\x74\x64\x79\x6d\x71vau\x6a"] = "\x74\x72a\x6e\x73\x6c\x61\x74\x69\x6f\x6es";
${"\x47LO\x42A\x4c\x53"}["\x67\x6d\x66\x6f\x68\x63\x63"] = "\x68\x6fo\x6b_\x66\x6fr\x6d\x73";
$inwlnfsy = "\x76\x61\x6c\x75e";
$odtdtgtpf = "\x6d\x61\x78\x5f\x64im\x65\x6e\x73ion\x73";
$fsqwlplybmr = "v\x61l\x75\x65";
$yuplocd = "\x74\x72\x61\x6es\x6cat\x69\x6f\x6e\x73";
$vyusvy = "\x74\x65mp\x6c\x61t\x65";
${"\x47L\x4f\x42A\x4cS"}["\x6a\x64\x6b\x6a\x65\x69\x79"] = "\x69\x64";
$lqgrvherlokl = "\x74\x65\x6d\x70l\x61\x74\x65";
$tkzruipge = "all\x5f\x70\x72o\x70e\x72t\x69\x65s";
$uqwjgggh = "\x74\x65m\x70\x6c\x61t\x65";
$zoungekg = "\x74e\x6d\x70l\x61t\x65";
${"G\x4c\x4f\x42\x41\x4cS"}["\x66\x75m\x6d\x6a\x69q\x71\x67"] = "p\x72o\x70\x65\x72\x74\x79\x5f\x74yp\x65\x73";
${"\x47L\x4f\x42\x41LS"}["\x63f\x79q\x61\x6f"] = "tem\x70la\x74es";
if (${${"\x47\x4c\x4fBAL\x53"}["\x63f\x79qao"]} == null)
${${"\x47\x4cOBAL\x53"}["q\x6eo\x70\x69\x72\x79\x70\x6bs\x64\x79"]} = PP::getAllTemplates();
$hrbvtef = "t\x65m\x70\x6c\x61t\x65";
${"\x47\x4cO\x42A\x4c\x53"}["in\x64\x79ue\x74\x64"] = "\x68el\x70\x65r";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x72\x6atw\x65\x79\x6d\x70ny"] = "t\x65m\x70\x6c\x61\x74e";
${"G\x4cO\x42AL\x53"}["gm\x66\x66s\x61\x69c\x79\x73e\x71"] = "t\x72ans\x6ca\x74i\x6fn\x73";
$wehcpja = "\x74\x72\x61\x6e\x73l\x61t\x69\x6f\x6es";
$hdihulgsmqt = "bu\x74\x74\x6f\x6es";
${"G\x4c\x4fB\x41\x4cS"}["\x74\x6f\x66aadf"] = "\x74\x65m\x70la\x74\x65";
$ukpubad = "\x74r\x61\x6e\x73\x6c\x61\x74\x69\x6f\x6e\x73";
$uhdrlpetlnh = "\x74\x65m\x70\x6c\x61t\x65";
${"\x47\x4c\x4fB\x41\x4c\x53"}["k\x65\x78\x70en\x74\x67p\x79\x66m"] = "\x64\x69\x6de\x6e\x73\x69\x6f\x6es_f\x6f\x72m";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x63\x69u\x6ay"] = "t\x65m\x70\x6ca\x74e";
${$fucsngoiowhb} = ${${"GL\x4fB\x41L\x53"}["\x71\x6e\x6fp\x69\x72\x79\x70\x6b\x73\x64y"]}[$this->default_language_id][${${"\x47\x4cO\x42A\x4cS"}["\x6a\x64\x6b\x6a\x65\x69\x79"]}];
${"GL\x4f\x42ALS"}["eu\x68\x6c\x67\x6d\x71"] = "\x6dax\x5f\x64i\x6de\x6e\x73i\x6f\x6es";
$zshdzgukjj = "\x74em\x70\x6c\x61\x74\x65";
$umiaewjmnj = "va\x6cu\x65";
${$bekkkhpyg} = PP::resolveMS(${$lqgrvherlokl}["p\x70\x5fb\x6f_m\x65a\x73\x75\x72\x65me\x6et\x5fsy\x73\x74em"]);
${"\x47L\x4f\x42AL\x53"}["\x75\x77\x72\x72\x72\x6bmy\x64\x76\x6c"] = "t\x65m\x70l\x61t\x65";
${"\x47\x4c\x4f\x42\x41\x4cS"}["a\x6bgc\x62\x6c\x71\x71"] = "t\x72\x61\x6e\x73\x6c\x61\x74i\x6fn\x73";
${"\x47\x4cOBA\x4cS"}["\x6dl\x67\x6d\x68ten\x79"] = "\x68el\x70\x65\x72";
${"\x47\x4c\x4fB\x41L\x53"}["\x77\x66\x6cg\x63\x7ac\x66x\x79\x75j"] = "f\x6fr\x6d\x73";
${$eylckjmvh} = $this->getAllProperties(${${"G\x4c\x4fB\x41L\x53"}["\x76\x6e\x70\x7a\x71a\x77\x66"]});
$wxpcaxyowg = "t\x72\x61\x6es\x6c\x61\x74ion\x73";
${${"G\x4cOB\x41LS"}["\x65i\x74\x6d\x71\x6e\x68h"]} = $this->getPropertyTypes();
$mdgspt = "\x68\x74\x6d\x6c";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x68f\x7a\x73b\x78\x66o\x76"] = "\x6d\x6f\x64\x65";
${${"\x47L\x4fBAL\x53"}["h\x61\x70\x72gnm"]} = $this->getTranslations("\x45d\x69\x74\x54\x65\x6dpla\x74\x65");
${"\x47LO\x42\x41\x4cS"}["\x70w\x62\x6a\x6e\x75u\x68z"] = "\x68\x65\x6cp\x65\x72";
${"G\x4cOB\x41LS"}["\x6b\x74xj\x6eqjy\x76"] = "p\x72\x6f\x70e\x72t\x79_\x74\x79\x70es";
${"G\x4cO\x42\x41\x4c\x53"}["z\x67\x71\x70\x6e\x6d\x73\x78y\x61\x76"] = "\x61\x6c\x6c_p\x72o\x70\x65\x72\x74\x69\x65\x73";
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x63\x76\x6a\x75u\x62rj\x79"]} = array(
array(
"\x74i\x74\x6ce" => $this->l("\x43\x61nc\x65l"),
"\x74y\x70e" => "\x73\x75bm\x69t",
"\x6ea\x6d\x65" => "c\x61nc\x65\x6c\x53\x61v\x65\x54\x65mpl\x61t\x65",
"ic\x6fn" => "pr\x6f\x63\x65\x73s-ic\x6fn-can\x63e\x6c"
)
);
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x66\x6b\x64\x67\x72\x72"] = "\x74\x72\x61\x6es\x6c\x61\x74\x69\x6f\x6e\x73";
${"\x47L\x4f\x42ALS"}["\x63\x69\x75w\x7ab\x66\x61\x65e"] = "\x6c\x61ngu\x61\x67\x65";
$bkpryklkb = "t\x65\x6dp\x6ca\x74e";
${${"G\x4cOB\x41\x4cS"}["\x74\x64\x79\x65\x63\x70i\x62\x77\x76"]} = $this->createHelperForm("p\x70_t\x65mpl\x61t\x65\x5ff\x6f\x72m", ${${"\x47\x4c\x4f\x42\x41\x4cS"}["s\x66n\x69g\x69u\x6b\x77\x67f\x6b"]}, "\x73\x75\x62\x6ditSa\x76\x65\x54em\x70la\x74e", "i\x63o\x6e-\x65\x64\x69t");
${"\x47\x4cOB\x41L\x53"}["y\x78\x67\x67\x73\x75\x73yg"] = "\x6d\x61\x78_\x64\x69m\x65\x6e\x73i\x6fns";
${"G\x4c\x4f\x42\x41\x4c\x53"}["nz\x78k\x75t\x61\x76\x78\x76\x6f"] = "\x76\x61\x6c\x75\x65";
${${"\x47\x4c\x4fB\x41LS"}["\x61\x76\x66\x79\x77\x66\x74\x79\x63\x68\x76o"]} = array(
"\x69\x6epu\x74" => array(
array(
"\x74\x79\x70e" => "d\x69v",
"l\x61\x62\x65l" => $this->l("\x49D"),
"\x6e\x61\x6de" => ${${"G\x4c\x4f\x42\x41\x4cS"}["\x77\x78\x76t\x64\x63\x6an\x75r\x6e"]},
"\x63l\x61s\x73" => "\x63o\x6e\x74\x72\x6fl-t\x65x\x74",
"c\x6f\x6e\x64\x69ti\x6f\x6e" => (${${"\x47\x4cO\x42\x41\x4cS"}["\x72\x68\x66\x7as\x62\x78f\x6f\x76"]} == "\x65d\x69t")
),
array(
"\x74\x79p\x65" => "\x74ext",
"l\x61\x62\x65\x6c" => $this->l("\x6ea\x6d\x65"),
"\x6e\x61\x6d\x65" => "na\x6d\x65\x5f\x69nput",
"l\x61\x6eg" => true
),
array(
"typ\x65" => "t\x65\x78\x74",
"labe\x6c" => $this->l("d\x65\x73\x63ri\x70tion"),
"\x6eame" => "\x64\x65\x73c\x72\x69pt\x69o\x6e\x5finp\x75\x74",
"la\x6eg" => true,
"\x64\x65sc" => $this->l("l\x65\x61ve\x20\x62l\x61n\x6b\x20t\x6f \x75se \x61\x75\x74o g\x65n\x65\x72\x61t\x65d d\x65sc\x72iption")
),
array(
"t\x79pe" => "ra\x64\x69o",
"\x6c\x61b\x65\x6c" => ${${"\x47\x4cO\x42A\x4c\x53"}["\x68a\x70rgnm"]}["s\x5f\x70\x70\x5fqty\x5f\x70\x6f\x6cicy"],
"na\x6d\x65" => "\x70p\x5fq\x74\x79\x5f\x70\x6flic\x79",
"de\x73c" => $this->l("or\x64\x65red \x71uan\x74\x69\x74y \x73p\x65\x63\x69f\x69es n\x75\x6dber\x20\x6ff\x20i\x74e\x6d\x73\x20(\x70\x69\x65c\x65s, pa\x63\x6b\x73,\x20e\x74\x63.) or o\x6ee\x20i\x74\x65m\x20of \x74\x68\x65 \x73\x70\x65ci\x66\x69\x65d n\x75mb\x65\x72\x20of\x20\x77h\x6fl\x65\x20\x6f\x72\x20fractional u\x6eit\x73\x20(\x6bg,\x20\x6d, \x66t, \x65\x74\x63.)"),
"v\x61lue\x73" => array(
array(
"i\x64" => "p\x70_qty_\x70o\x6c\x69\x63y\x5f\x30",
"\x76a\x6cue" => 0,
"\x6c\x61\x62\x65\x6c" => ${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x61\x70\x72g\x6em"]}["s\x5f\x70\x70_\x71ty_po\x6ci\x63y_\x30"]
),
array(
"\x69\x64" => "pp_\x71\x74y\x5f\x70\x6fli\x63y\x5f1",
"v\x61l\x75e" => 1,
"l\x61\x62e\x6c" => ${${"\x47\x4c\x4f\x42A\x4c\x53"}["h\x61pr\x67n\x6d"]}["s_p\x70\x5f\x71\x74y_\x70\x6fl\x69\x63\x79_1"]
),
array(
"i\x64" => "\x70\x70\x5f\x71\x74\x79_pol\x69c\x79\x5f2",
"\x76\x61\x6cu\x65" => 2,
"\x6ca\x62\x65l" => ${${"G\x4c\x4f\x42AL\x53"}["\x62\x75\x78\x6e\x6aq\x6cs\x68mi"]}["s\x5f\x70\x70\x5f\x71\x74y\x5f\x70\x6fl\x69\x63\x79_2"]
),
array(
"id" => "\x70\x70_\x71t\x79\x5f\x70ol\x69\x63y_\x33",
"\x76\x61l\x75e" => 3,
"l\x61bel" => ${$ukpubad}["\x73\x5f\x70\x70\x5fq\x74y_\x70o\x6cic\x79\x5f\x65\x78t"]
)
)
),
array(
"\x74\x79\x70\x65" => "radi\x6f",
"\x6ca\x62\x65l" => ${$wxpcaxyowg}["\x73\x5fpp_\x71ty_mod\x65"],
"\x6e\x61\x6de" => "pp_q\x74\x79\x5f\x6dod\x65",
"desc" => $this->l("\x70\x72o\x64uc\x74\x20\x71\x75an\x74\x69\x74y \x63an\x20\x62\x65 \x65\x78a\x63\x74ly\x20\x6d\x65\x61\x73\x75\x72\x65\x64 \x6fr\x20\x6fnly\x20\x61\x70\x70\x72oxim\x61tel\x79\x20(t\x68\x65 \x65\x78\x61\x63\x74\x20\x61\x6d\x6fun\x74\x20ca\x6en\x6ft\x20b\x65\x20\x6frde\x72ed)\x20-\x20on\x6c\x79 if\x20q\x75\x61\x6etit\x79 \x70o\x6ci\x63\x79\x20is\x20\x73et t\x6f\x20un\x69ts"),
"\x76alue\x73" => array(
array(
"\x69d" => "\x70\x70\x5fq\x74y_m\x6fde_0",
"v\x61\x6c\x75e" => 0,
"\x6ca\x62\x65l" => ${${"\x47LO\x42\x41\x4cS"}["\x68\x61\x70r\x67\x6em"]}["s\x5fpp_\x71\x74\x79\x5f\x6dod\x65_\x30"]
),
array(
"id" => "pp_qt\x79\x5f\x6dod\x65_\x31",
"value" => 1,
"lab\x65l" => ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x66kd\x67\x72\x72"]}["s_p\x70\x5fq\x74\x79\x5f\x6d\x6f\x64e\x5f1"]
)
)
),
array(
"t\x79p\x65" => "\x72\x61dio",
"\x6cabe\x6c" => ${$lidsvatfdh}["\x73\x5fp\x70\x5f\x64ispl\x61y_m\x6fd\x65"],
"\x6e\x61\x6de" => "\x70p\x5fdi\x73pl\x61y_\x6dod\x65",
"\x64\x65\x73c" => ${${"G\x4c\x4fB\x41\x4cS"}["\x67\x6d\x66\x66\x73a\x69cy\x73\x65q"]}["\x73_\x70p_d\x69sp\x6c\x61y\x5f\x6d\x6f\x64e\x5f\x31\x5f\x6c\x6f\x6eg"],
"\x76\x61\x6c\x75\x65\x73" => array(
array(
"id" => "\x70\x70_displ\x61\x79_m\x6f\x64\x65\x5f\x30",
"v\x61l\x75e" => 0,
"l\x61\x62el" => ${${"\x47L\x4f\x42ALS"}["h\x61pr\x67n\x6d"]}["s_\x70\x70\x5fd\x69\x73pla\x79_mo\x64e_\x30"]
),
array(
"\x69d" => "\x70\x70_di\x73\x70\x6cay\x5f\x6dode\x5f\x31",
"\x76al\x75e" => 1,
"l\x61b\x65\x6c" => ${${"G\x4cO\x42\x41\x4c\x53"}["h\x61\x70r\x67n\x6d"]}["s_p\x70\x5f\x64\x69s\x70la\x79_\x6do\x64\x65\x5f\x31"]
)
),
"ch\x65\x63\x6b\x62\x6fxe\x73" => array(
array(
"\x76\x61lue\x73" => array(
"\x71u\x65\x72y" => array(
array(
"\x69d" => "\x72\x65tai\x6c\x5fp\x72\x69\x63e",
"n\x61m\x65" => ${${"G\x4c\x4f\x42\x41L\x53"}["h\x61\x70\x72\x67\x6em"]}["\x73_\x70\x70_\x64\x69s\x70lay_\x6d\x6f\x64\x65_\x32"],
"\x76al" => "\x31"
)
),
"\x69\x64" => "\x69d",
"n\x61\x6de" => "\x6eame"
)
),
array(
"v\x61\x6cues" => array(
"q\x75\x65r\x79" => array(
array(
"id" => "\x62\x61se\x5f\x75\x6e\x69t_p\x72\x69ce",
"na\x6de" => ${${"\x47\x4c\x4f\x42A\x4cS"}["h\x61p\x72\x67n\x6d"]}["s_pp\x5fd\x69\x73p\x6c\x61y_\x6d\x6fd\x65_4"],
"v\x61\x6c" => "1"
)
),
"id" => "i\x64",
"\x6ea\x6de" => "\x6ea\x6de"
)
)
)
),
array(
"type" => "r\x61d\x69\x6f",
"\x6ca\x62el" => ${${"\x47L\x4fB\x41\x4cS"}["ha\x70rg\x6e\x6d"]}["\x73\x5fpp_\x70rice_\x64\x69s\x70l\x61y\x5f\x6do\x64e"],
"\x6e\x61m\x65" => "p\x70\x5fp\x72ice\x5f\x64i\x73pl\x61y_\x6dode",
"\x64\x65\x73c" => $this->l("\x73\x68\x6fw\x20\x63a\x6cc\x75\x6cat\x65d \x70\x72\x69\x63\x65 sep\x61r\x61tel\x79, d\x69s\x70l\x61\x79 \x69\x74 the \x70o\x73\x69t\x69on of\x20\x74he \x70\x72oduct p\x72\x69c\x65 or\x20\x68\x69\x64\x65\x20\x74\x68\x65\x20c\x61\x6c\x63u\x6ca\x74ed \x70r\x69\x63e"),
"value\x73" => array(
array(
"\x69d" => "pp_p\x72ic\x65\x5f\x64i\x73p\x6cay_\x6d\x6fd\x65_\x30",
"\x76\x61\x6cue" => 0,
"\x6cabe\x6c" => ${${"\x47\x4cO\x42\x41\x4c\x53"}["ha\x70\x72\x67n\x6d"]}["s_pp_\x70\x72\x69\x63e\x5f\x64i\x73play\x5fmo\x64e_\x30"]
),
array(
"id" => "\x70p_pr\x69\x63e\x5fd\x69sp\x6ca\x79\x5f\x6d\x6fd\x65_\x31",
"v\x61lue" => 1,
"\x6cab\x65l" => ${$wehcpja}["s_p\x70\x5f\x70ric\x65_\x64\x69\x73\x70la\x79\x5fmo\x64e_\x31"]
),
array(
"\x69d" => "p\x70_pr\x69\x63\x65_disp\x6ca\x79\x5f\x6dod\x65_\x31\x36",
"v\x61\x6cu\x65" => 16,
"\x6c\x61be\x6c" => ${${"\x47\x4cOBA\x4c\x53"}["\x78x\x78\x74\x64\x79mq\x76\x61u\x6a"]}["\x73\x5f\x70p\x5f\x70\x72ic\x65_di\x73pla\x79\x5f\x6d\x6f\x64e\x5f16"]
)
)
),
$this->createHelperFormSelect("pp_\x70\x72ice\x5f\x74ext", array(
"\x6cab\x65l" => ${$fktpmheu}["s\x5fp\x70_pr\x69\x63e\x5f\x74\x65xt"],
"\x64\x65sc" => $this->l("d\x69\x73p\x6ca\x79\x65d\x20\x61\x66\x74\x65r \x74\x68e\x20pro\x64uct's pri\x63\x65")
), self::PROPERTY_TYPE_GENERAL, ${${"\x47LO\x42\x41\x4cS"}["\x6d\x6c\x67m\x68\x74\x65\x6ey"]}, ${${"\x47\x4c\x4f\x42AL\x53"}["xdgtg\x61\x62\x75y"]}, ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x6ddnt\x76\x79"]}, ${${"GL\x4fBALS"}["\x6bt\x78\x6a\x6e\x71\x6a\x79\x76"]}),
$this->createHelperFormSelect("\x70p\x5fqt\x79\x5ftex\x74", array(
"l\x61bel" => ${$mhyxvli}["s\x5fp\x70\x5fq\x74y_tex\x74"],
"des\x63" => $this->l("\x64isp\x6c\x61y\x65d\x20\x61\x66te\x72 \x74\x68e \x70\x72\x6f\x64u\x63\x74\x27s\x20\x71ua\x6e\x74ity")
), self::PROPERTY_TYPE_GENERAL, ${${"\x47\x4c\x4f\x42\x41\x4cS"}["t\x64\x79ec\x70ibw\x76"]}, ${$vyusvy}, ${$tkzruipge}, ${${"G\x4c\x4fB\x41\x4c\x53"}["\x65\x69\x74\x6d\x71\x6e\x68\x68"]}),
$this->createHelperFormSelect("p\x70_uni\x74\x79_\x74ex\x74", array(
"\x6ca\x62\x65l" => ${$yuplocd}["s_\x70p\x5fu\x6ei\x74y\x5ft\x65x\x74"],
"\x64\x65sc" => $this->l("\x64\x69s\x70\x6c\x61yed\x20f\x6f\x72 pr\x6fducts \x77i\x74\x68\x20\x75\x6ei\x74\x20\x70r\x69\x63\x65 g\x72ea\x74\x65r\x20than\x20z\x65r\x6f")
), self::PROPERTY_TYPE_GENERAL, ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x74dy\x65\x63\x70\x69\x62\x77\x76"]}, ${$bluenmfkel}, ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x62\x6c\x7alc\x64re"]}, ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x75\x6d\x6d\x6a\x69q\x71\x67"]}),
array(
"\x74yp\x65" => "\x74\x65x\x74",
"l\x61\x62\x65l" => ${${"G\x4c\x4f\x42A\x4c\x53"}["\x68a\x70\x72gn\x6d"]}["s_pp_\x75\x6eit_\x70\x72\x69ce_rat\x69\x6f"],
"\x6e\x61\x6de" => "unit\x5fp\x72\x69\x63e_ra\x74i\x6f",
"cla\x73\x73" => "f\x69\x78e\x64-\x77\x69\x64\x74\x68-x\x6c",
"\x64e\x73c" => $this->l("u\x73e\x64 to a\x75\x74o ca\x6ccu\x6c\x61\x74e un\x69t \x70\x72\x69\x63\x65\x20\x69n\x20\x70r\x6f\x64u\x63t\x20\x63a\x74alog")
),
array(
"t\x79pe" => "\x74\x65xt",
"lab\x65\x6c" => ${${"G\x4c\x4f\x42A\x4cS"}["ooe\x73\x75\x6c\x6b\x6c\x61\x68"]}["s_p\x70\x5fm\x69\x6eima\x6c_\x70\x72ice\x5f\x72\x61\x74i\x6f"],
"na\x6d\x65" => "mi\x6ei\x6d\x61l_p\x72\x69\x63e_\x72a\x74io",
"c\x6ca\x73\x73" => "f\x69\x78\x65\x64-wid\x74\x68-xl",
"\x64\x65\x73c" => $this->l("\x75\x73\x65d \x74o\x20\x63al\x63ul\x61t\x65\x20mi\x6eimu\x6d \x70\x72i\x63\x65\x20\x66o\x72\x20qu\x61\x6eti\x74y\x20l\x65s\x73\x20t\x68a\x6e\x20the \x73\x70e\x63if\x69\x65\x64\x20\x74\x68r\x65\x73hold")
),
array(
"typ\x65" => "tex\x74",
"l\x61\x62\x65\x6c" => ${${"\x47\x4c\x4f\x42\x41\x4cS"}["hapr\x67\x6e\x6d"]}["s\x5f\x70p\x5f\x6d\x69\x6e\x69\x6da\x6c_\x71u\x61n\x74it\x79"],
"\x6e\x61me" => "mi\x6eima\x6c\x5f\x71\x75\x61n\x74\x69\x74y",
"c\x6cas\x73" => "f\x69xed-\x77idth-\x78\x6c",
"\x64e\x73c" => $this->l("t\x68e\x20\x6di\x6e\x69\x6d\x75m \x71ua\x6etit\x79\x20t\x6f\x20\x62uy\x20\x61\x20\x70\x72o\x64uc\x74 (l\x65av\x65 bl\x61\x6e\x6b\x20\x74\x6f\x20\x75se\x20d\x65faul\x74)")
),
array(
"\x74y\x70\x65" => "\x74ext",
"l\x61\x62\x65l" => ${${"\x47\x4c\x4fBA\x4c\x53"}["\x61\x6bg\x63bl\x71\x71"]}["\x73\x5f\x70\x70\x5f\x64e\x66au\x6c\x74_q\x75\x61\x6e\x74it\x79"],
"\x6ea\x6de" => "def\x61u\x6c\x74\x5f\x71\x75an\x74i\x74\x79",
"\x63\x6ca\x73\x73" => "\x66\x69\x78e\x64-wid\x74\x68-xl",
"de\x73\x63" => $this->l("\x74h\x65\x20in\x69\x74ia\x6c q\x75a\x6et\x69ty\x20\x74o\x20buy\x20\x61 p\x72\x6f\x64u\x63\x74 (l\x65\x61ve\x20\x62\x6ca\x6e\x6b t\x6f\x20use\x20d\x65\x66ault)")
),
array(
"t\x79pe" => "\x74\x65xt",
"\x6ca\x62e\x6c" => ${$xucglbu}["\x73\x5f\x70p_\x71\x74y\x5fs\x74\x65p"],
"\x6e\x61\x6de" => "\x71\x74y\x5f\x73t\x65\x70",
"c\x6c\x61s\x73" => "\x66\x69xe\x64-\x77\x69\x64t\x68-x\x6c",
"desc" => $this->l("q\x75\x61ntity\x20\x73te\x70 (\x6ce\x61\x76\x65\x20\x62\x6c\x61n\x6b\x20\x74o\x20\x75s\x65 d\x65f\x61u\x6c\x74)")
),
$this->createHelperFormSelect("\x70p_ex\x70\x6c\x61na\x74i\x6f\x6e", array(
"\x6c\x61b\x65l" => ${${"G\x4cO\x42\x41\x4cS"}["\x68\x61pr\x67\x6em"]}["\x73_\x70\x70_explan\x61\x74io\x6e"]
), self::PROPERTY_TYPE_BUY_BLOCK_TEXT, ${$ybpfxpmins}, ${$uqwjgggh}, ${${"\x47\x4c\x4f\x42\x41L\x53"}["b\x6c\x7alcdre"]}, ${${"GL\x4fB\x41LS"}["\x65\x69\x74\x6d\x71\x6e\x68\x68"]}),
array(
"t\x79\x70e" => "te\x78t",
"\x6ca\x62\x65l" => $this->l("\x43\x53S \x63lasse\x73"),
"\x6e\x61\x6de" => "\x70\x70_cs\x73",
"\x64esc" => $this->l("specify \x76\x61l\x69d CS\x53 c\x6ca\x73s\x65s\x20\x73ep\x61r\x61\x74\x65d\x20b\x79 \x73pa\x63e\x20(th\x65s\x65 c\x6cas\x73e\x73\x20\x77i\x6cl be \x61\x64\x64\x65\x64 \x74\x6f\x20H\x54\x4dL \x66or pr\x6fd\x75c\x74\x73 u\x73i\x6eg\x20thi\x73 te\x6dpl\x61t\x65)") . "\n\t\t\t\t\t\t\t\x20 \x3cb\x72/>" . sprintf($this->l("ad\x64\x20yo\x75r c\x6c\x61\x73s\x65\x73\x20d\x65\x66\x69\x6eiti\x6fn\x73\x20in \x74h\x65\x20\x22\x25\x73\"\x20fi\x6c\x65"), PSM::normalizePath("\x74\x68\x65m\x65\x73/" . _THEME_NAME_ . "/\x63ss/\x6dodules/\x70\x70r\x6f\x70e\x72\x74i\x65s/c\x75\x73t\x6f\x6d.c\x73s"))
),
array(
"t\x79\x70\x65" => "\x72a\x64i\x6f",
"lab\x65\x6c" => $this->l("d\x69\x73pla\x79 \x61\x76\x61i\x6c\x61b\x6ce q\x75\x61\x6et\x69\x74ie\x73\x20\x6dode"),
"n\x61m\x65" => "\x70p_bo_\x71t\x79_\x61va\x69\x6cable_dis\x70\x6c\x61\x79",
"de\x73\x63" => $this->l("di\x73pla\x79\x20availabl\x65\x20quanti\x74\x69\x65\x73 o\x6e t\x68e\x20pro\x64u\x63\x74\x20\x70\x61ge \x62ased\x20on\x20t\x68\x65\x20\x74em\x70la\x74\x65 \x63\x6fnf\x69\x67u\x72\x61tion (\x6f\x6el\x79 if \x65\x6ea\x62l\x65\x64\x20\x69\x6e\x20pre\x66\x65\x72en\x63\x65s)") . (${$bkpryklkb}["p\x70_\x62\x6f_\x71\x74\x79\x5fa\x76ail\x61\x62\x6c\x65\x5f\x64i\x73\x70\x6ca\x79"] == 0 ? "<\x62r>" . (${${"\x47\x4c\x4fB\x41L\x53"}["\x78d\x67\x74\x67ab\x75\x79"]}["\x70p_\x71\x74y\x5fava\x69la\x62\x6ce\x5fd\x69s\x70\x6cay"] == 2 ? $this->l("-- a\x76\x61i\x6cable\x20\x71u\x61ntities\x20\x77ill \x62\x65 \x68\x69\x64den\x20o\x6e th\x65\x20pr\x6f\x64u\x63\x74 p\x61ge \x66or\x20\x63u\x72r\x65nt\x20\x74e\x6d\x70\x6c\x61\x74e\x20--") : $this->l("--\x20a\x76a\x69\x6c\x61b\x6ce qu\x61\x6eti\x74\x69\x65\x73 \x77i\x6c\x6c\x20\x62\x65\x20di\x73pl\x61y\x65d o\x6e\x20t\x68e \x70\x72\x6f\x64\x75c\x74 \x70\x61\x67\x65 f\x6fr\x20\x63ur\x72e\x6e\x74 \x74\x65m\x70\x6cate\x20--")) : ""),
"v\x61\x6c\x75es" => array(
array(
"\x69\x64" => "pp_\x62o\x5fqt\x79\x5fava\x69\x6ca\x62le\x5fdi\x73p\x6ca\x79_\x30",
"val\x75\x65" => 0,
"\x6cabel" => $this->l("a\x75\x74o")
),
array(
"i\x64" => "\x70\x70\x5f\x62\x6f\x5f\x71t\x79\x5fava\x69\x6c\x61b\x6ce_dis\x70lay\x5f1",
"v\x61\x6cu\x65" => 1,
"\x6c\x61b\x65\x6c" => $this->l("\x76i\x73i\x62\x6c\x65")
),
array(
"i\x64" => "pp\x5fb\x6f\x5f\x71\x74\x79\x5f\x61v\x61il\x61b\x6ce\x5fdi\x73pl\x61y_\x32",
"\x76\x61\x6cue" => 2,
"\x6c\x61\x62\x65\x6c" => $this->l("\x68id\x64en")
)
)
),
array(
"\x74y\x70e" => "\x72adi\x6f",
"\x6c\x61b\x65l" => $this->l("\x6d\x65\x61s\x75re\x6d\x65\x6et\x20s\x79\x73\x74em"),
"\x6e\x61me" => "\x70\x70_b\x6f_\x6d\x65a\x73urem\x65\x6et\x5f\x73y\x73\x74\x65m",
"\x64\x65\x73\x63" => $this->l("un\x69t m\x65a\x73u\x72\x65m\x65\x6e\x74 \x73ys\x74\x65m\x20used\x20\x62\x79 th\x69s t\x65\x6d\x70\x6cat\x65\x20(d\x65\x66\x61\x75\x6ct\x20-\x20use\x20m\x65a\x73\x75re\x6de\x6et\x20\x73\x79\x73\x74\x65m\x20\x64ef\x69\x6e\x65d i\x6e\x20\x53\x65\x74\x74\x69ng\x73)"),
"\x76\x61l\x75es" => array(
array(
"\x69d" => "\x70\x70_b\x6f_m\x65\x61su\x72\x65me\x6et_\x73\x79\x73t\x65\x6d_0",
"v\x61l\x75e" => (int) PP::PP_MS_DEFAULT,
"\x6c\x61b\x65\x6c" => $this->l("\x64\x65f\x61\x75l\x74")
),
array(
"id" => "\x70p_\x62o_\x6d\x65asu\x72\x65me\x6e\x74\x5f\x73\x79s\x74em_\x31",
"\x76\x61lue" => (int) PP::PP_MS_METRIC,
"la\x62e\x6c" => $this->l("met\x72\x69c")
),
array(
"\x69\x64" => "\x70p\x5f\x62o\x5fmeas\x75\x72\x65\x6de\x6et\x5fsystem_\x32",
"va\x6c\x75e" => (int) PP::PP_MS_NON_METRIC,
"\x6c\x61bel" => $this->l("no\x6e m\x65\x74r\x69\x63")
)
)
),
array(
"type" => "\x72\x61dio",
"l\x61be\x6c" => $this->l("v\x69s\x69\x62l\x65\x20i\x6e \x63\x61\x74\x61\x6co\x67"),
"\x6e\x61\x6d\x65" => "pp\x5f\x62o\x5f\x68\x69\x64d\x65n",
"d\x65sc" => $this->l("\x68\x69\x64de\x6e templ\x61te\x20\x69s\x20no\x74\x20vis\x69\x62\x6ce i\x6e\x20the\x20\x70ro\x64u\x63\x74 c\x61ta\x6c\x6fg,\x20\x62\x75\x74\x20s\x74i\x6cl used\x20in\x20\x74he\x20s\x68\x6fp"),
"\x76al\x75\x65s" => array(
array(
"\x69d" => "\x70p\x5fb\x6f\x5f\x68\x69dd\x65\x6e\x5f0",
"\x76a\x6c\x75\x65" => 0,
"l\x61\x62\x65\x6c" => $this->l("v\x69sib\x6ce")
),
array(
"id" => "pp\x5fb\x6f\x5fhid\x64\x65\x6e_1",
"\x76alu\x65" => 1,
"\x6cabe\x6c" => $this->l("hid\x64\x65\x6e")
)
)
),
array(
"\x74\x79pe" => "h\x69dd\x65\x6e",
"nam\x65" => "id"
),
array(
"\x74yp\x65" => "h\x69d\x64en",
"\x6ea\x6d\x65" => "mod\x65"
)
),
"\x62\x75tt\x6fns" => ${$hdihulgsmqt}
);
$helper->fields_value["\x69\x64"] = ${${"\x47\x4c\x4f\x42AL\x53"}["\x77\x78\x76\x74\x64\x63j\x6e\x75\x72\x6e"]};
$helper->fields_value["\x6dode"] = ${${"GL\x4f\x42\x41L\x53"}["\x6a\x74z\x72\x73\x65\x6e\x6cs\x74\x63d"]};
$helper->fields_value["n\x61\x6de_\x69n\x70\x75\x74"] = array();
$helper->fields_value["d\x65scrip\x74i\x6f\x6e\x5fin\x70\x75t"] = array();
${"\x47LO\x42\x41\x4c\x53"}["\x65x\x6a\x67\x6eu\x70kx"] = "\x62ut\x74o\x6e\x73";
$fwtkclixry = "\x74\x65mp\x6c\x61\x74\x65";
foreach ($this->active_languages as ${${"\x47\x4cO\x42A\x4cS"}["\x63\x69\x75\x77\x7a\x62\x66\x61\x65e"]}) {
$hiymfklfcsro = "l\x61ngu\x61\x67\x65";
${"\x47L\x4f\x42\x41LS"}["\x68\x6dp\x71\x6dw\x74\x71\x63\x74"] = "i\x64";
${"\x47\x4c\x4f\x42A\x4cS"}["s\x6c\x62mlt\x67j"] = "\x74\x65\x6d\x70l\x61\x74\x65s";
${"\x47\x4c\x4f\x42\x41LS"}["p\x76\x6af\x78d\x67\x68\x6b"] = "i\x64_\x6c\x61\x6eg";
$zayhuyeqonjs = "\x74e\x6d\x70\x6c\x61t\x65s";
${"\x47\x4c\x4fB\x41L\x53"}["\x64\x67j\x74\x72\x71\x6dh\x6at\x62"] = "i\x64";
${${"\x47L\x4fBALS"}["\x73\x70z\x71l\x68"]} = ${$hiymfklfcsro}["\x69d_l\x61\x6e\x67"];
${"\x47\x4c\x4fB\x41LS"}["\x75p\x79bm\x74\x6e\x72f"] = "\x69\x64";
$helper->fields_value["\x6e\x61m\x65\x5fi\x6e\x70ut"][${${"\x47\x4cO\x42\x41\x4c\x53"}["s\x70\x7aq\x6ch"]}] = (isset(${$zayhuyeqonjs}[${${"\x47L\x4fB\x41LS"}["s\x70\x7aq\x6c\x68"]}]) ? PP::safeOutputValue(${${"G\x4cOBA\x4c\x53"}["q\x6e\x6fp\x69\x72\x79\x70\x6bs\x64y"]}[${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73p\x7a\x71\x6c\x68"]}][${${"\x47\x4cO\x42\x41\x4c\x53"}["dgjt\x72q\x6dh\x6a\x74\x62"]}]["na\x6d\x65"]) : "");
$helper->fields_value["\x64es\x63rip\x74\x69\x6fn\x5finpu\x74"][${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73p\x7a\x71l\x68"]}] = (isset(${${"G\x4c\x4f\x42\x41LS"}["\x71\x6e\x6f\x70\x69r\x79\x70\x6bsd\x79"]}[${${"\x47\x4cO\x42A\x4c\x53"}["\x73\x70z\x71\x6ch"]}]) ? PP::safeOutputValue(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71n\x6f\x70\x69\x72y\x70\x6b\x73dy"]}[${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x76\x6afx\x64\x67h\x6b"]}][${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x75\x70\x79\x62\x6dt\x6e\x72\x66"]}]["\x61uto_\x64e\x73c"] || (${${"\x47LOB\x41\x4cS"}["\x6at\x7a\x72\x73\x65n\x6c\x73tc\x64"]} == "cop\x79") ? "" : ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73l\x62ml\x74\x67\x6a"]}[${${"\x47LO\x42AL\x53"}["\x73\x70\x7a\x71\x6ch"]}][${${"\x47\x4c\x4f\x42\x41\x4cS"}["h\x6d\x70\x71mwtqc\x74"]}]["de\x73cr\x69\x70\x74\x69on"]) : "");
}
$helper->fields_value["\x70p_\x71ty_\x6d\x6f\x64\x65"] = ${${"\x47LOBA\x4c\x53"}["\x78d\x67t\x67\x61\x62u\x79"]}["pp_\x71t\x79\x5f\x6d\x6fde"];
${"\x47L\x4fB\x41\x4cS"}["s\x70p\x68\x61\x62\x69p"] = "i\x64";
${"GLOB\x41\x4cS"}["p\x6c\x78n\x6daj"] = "help\x65\x72";
$helper->fields_value["p\x70\x5fd\x69\x73pl\x61y_mo\x64\x65"] = (int) ((${${"GL\x4f\x42\x41\x4c\x53"}["t\x6f\x66\x61\x61\x64\x66"]}["p\x70\x5fd\x69sp\x6ca\x79_\x6d\x6f\x64\x65"] & 1) == 1);
${"\x47\x4c\x4fBA\x4c\x53"}["\x7a\x75c\x6e\x6e\x74\x6d"] = "\x74e\x6dp\x6ca\x74e";
$avnkgehspgu = "\x64i\x6d\x65ns\x69on\x73_\x66\x6f\x72\x6d";
$helper->fields_value["\x70p_d\x69\x73play\x5f\x6do\x64\x65\x5fr\x65\x74\x61\x69\x6c_price"] = (int) ((${${"GLO\x42\x41\x4c\x53"}["\x71\x74\x6f\x79\x68f\x74i"]}["\x70\x70\x5fdis\x70l\x61\x79_mode"] & 2) == 2);
$helper->fields_value["\x70p_d\x69sp\x6cay_m\x6f\x64\x65_b\x61se_unit\x5fp\x72\x69\x63e"] = (int) ((${${"\x47\x4cO\x42\x41\x4c\x53"}["\x72\x6at\x77e\x79\x6d\x70\x6ey"]}["pp\x5f\x64\x69sp\x6cay_\x6do\x64\x65"] & 4) == 4);
$helper->fields_value["\x70\x70_p\x72ic\x65\x5f\x64i\x73\x70\x6c\x61y_mo\x64e"] = ${${"G\x4c\x4f\x42\x41L\x53"}["\x71ci\x75\x6a\x79"]}["pp_\x70\x72i\x63e_di\x73pl\x61y_\x6dode"];
$helper->fields_value["\x75\x6e\x69t_p\x72i\x63e\x5fr\x61tio"] = ((float) ${${"\x47\x4c\x4fBAL\x53"}["\x66au\x7a\x77\x72\x76q\x67\x66\x68\x6c"]}["p\x70\x5fu\x6eit_p\x72ic\x65\x5fr\x61\x74i\x6f"] > 0 ? PP::formatQty(${${"\x47\x4c\x4f\x42A\x4c\x53"}["x\x64g\x74\x67ab\x75y"]}["pp_u\x6e\x69\x74_p\x72\x69\x63e_rati\x6f"]) : "");
$helper->fields_value["m\x69nim\x61\x6c_\x70\x72\x69\x63\x65_\x72\x61\x74i\x6f"] = ((float) ${$vnppfeiatm}["p\x70\x5fmi\x6eima\x6c_p\x72i\x63e_\x72at\x69o"] > 0 ? PP::formatQty(${${"\x47\x4cOBAL\x53"}["\x6d\x6fex\x62\x64"]}["\x70p\x5f\x6di\x6eim\x61l_\x70r\x69\x63e_\x72\x61\x74i\x6f"]) : "");
$helper->fields_value["\x6di\x6eim\x61l_\x71ua\x6etity"] = ((float) ${${"\x47L\x4f\x42AL\x53"}["k\x64\x77\x7a\x70\x76rg"]}["pp\x5fm\x69\x6e\x69\x6da\x6c\x5fquant\x69\x74y"] > 0 ? PP::formatQty(${${"G\x4c\x4f\x42AL\x53"}["x\x64g\x74gab\x75y"]}["\x70\x70\x5f\x6di\x6ei\x6da\x6c\x5f\x71\x75a\x6etity"]) : "");
$helper->fields_value["d\x65faul\x74_\x71u\x61n\x74\x69t\x79"] = ((float) ${$uhkuuqc}["\x70\x70\x5f\x64efau\x6ct\x5f\x71ua\x6et\x69ty"] > 0 ? PP::formatQty(${$zoungekg}["\x70p\x5fd\x65\x66au\x6ct_q\x75\x61\x6et\x69t\x79"]) : "");
$helper->fields_value["\x71t\x79_\x73\x74ep"] = ((float) ${${"\x47LO\x42AL\x53"}["\x78d\x67\x74\x67\x61bu\x79"]}["pp\x5f\x71ty_\x73tep"] > 0 ? PP::formatQty(${${"\x47LOBA\x4c\x53"}["x\x64gt\x67\x61\x62\x75y"]}["p\x70_\x71\x74\x79_\x73\x74\x65\x70"]) : "");
$helper->fields_value["pp\x5f\x63ss"] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76o\x77e\x6b\x72\x6d\x61"]}["\x70\x70\x5f\x63\x73s"];
$helper->fields_value["pp_\x62o\x5fqt\x79_av\x61\x69lab\x6c\x65\x5fdis\x70\x6c\x61\x79"] = ${${"\x47\x4c\x4f\x42A\x4c\x53"}["x\x64\x67t\x67a\x62\x75\x79"]}["\x70p\x5f\x62\x6f_\x71\x74y\x5f\x61v\x61i\x6ca\x62l\x65\x5f\x64\x69s\x70\x6c\x61y"];
$helper->fields_value["p\x70\x5fbo_m\x65\x61sureme\x6e\x74\x5f\x73yste\x6d"] = ${${"\x47\x4c\x4f\x42A\x4c\x53"}["xd\x67\x74\x67\x61\x62uy"]}["p\x70_\x62o_\x6d\x65a\x73\x75\x72em\x65\x6e\x74\x5fsys\x74\x65\x6d"];
$helper->fields_value["\x70p_b\x6f\x5fhid\x64e\x6e"] = ${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78d\x67\x74\x67\x61b\x75y"]}["p\x70\x5f\x62o\x5fh\x69\x64\x64\x65\x6e"];
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62dy\x7ab\x6a\x6e\x78v"]} = (isset(${$kqsnyaooobdl}["\x70p_e\x78\x74_method"]) && isset(${${"G\x4cOBA\x4cS"}["\x78\x64g\x74\x67\x61b\x75\x79"]}["pp\x5f\x65\x78\x74_\x70rop"]) ? count(${$hrbvtef}["p\x70\x5fe\x78t_\x70r\x6f\x70"]) : 0);
if (${${"G\x4cO\x42\x41\x4c\x53"}["\x62d\x79\x7a\x62\x6a\x6e\x78\x76"]} == 0)
${${"\x47LO\x42A\x4cS"}["n\x7a\x78k\x75\x74\x61\x76\x78\x76o"]} = 0;
elseif (${${"\x47\x4c\x4f\x42\x41LS"}["b\x64\x79z\x62j\x6e\x78\x76"]} == 1)
${$umiaewjmnj} = 3;
else
${${"G\x4c\x4f\x42\x41L\x53"}["\x77i\x68l\x72\x62\x6d\x71"]} = ${$fwtkclixry}["\x70p_\x65\x78t\x5f\x6d\x65th\x6fd"];
$helper->fields_value["pp\x5fext_m\x65\x74ho\x64"] = ${$inwlnfsy};
$helper->fields_value["pp_\x65\x78\x74\x5fm\x65tho\x64_f\x61llba\x63k"] = ${$fsqwlplybmr};
${"\x47\x4c\x4fB\x41L\x53"}["hqr\x6bps"] = "\x74\x65m\x70\x6ca\x74e";
$helper->fields_value["p\x70\x5fe\x78\x74_\x70\x6f\x6c\x69\x63\x79"] = (isset(${${"\x47\x4c\x4f\x42\x41\x4cS"}["x\x64\x67t\x67\x61\x62\x75\x79"]}["\x70\x70\x5f\x65x\x74\x5f\x70\x6f\x6ci\x63y"]) ? ${${"G\x4cO\x42\x41\x4cS"}["\x78\x64g\x74gab\x75\x79"]}["p\x70_ext_p\x6fl\x69c\x79"] : 0);
$ueoumpjqwcn = "all\x5fp\x72\x6fp\x65\x72\x74\x69e\x73";
if (${${"GLO\x42\x41\x4cS"}["\x75\x77\x72\x72\x72km\x79d\x76l"]}["\x70p\x5f\x71\x74y\x5f\x70o\x6ci\x63y"] == 2 && $helper->fields_value["pp_\x65xt_\x6det\x68od"] > 0)
$helper->fields_value["\x70p_qt\x79_pol\x69\x63y"] = 3;
else
$helper->fields_value["\x70p_\x71t\x79\x5f\x70olic\x79"] = ${${"GL\x4fBA\x4c\x53"}["x\x64\x67t\x67a\x62\x75\x79"]}["p\x70\x5f\x71\x74\x79\x5fpo\x6c\x69\x63\x79"];
${${"GLO\x42\x41\x4cS"}["h\x61\x70\x72\x67\x6em"]} = $this->getTranslations("p\x70E\x78t");
$frsbmykid = "hook\x5f\x66\x6f\x72\x6d\x73";
${$avnkgehspgu} = array(
"lege\x6ed" => array(
"\x74i\x74le" => $this->l("Dim\x65\x6esio\x6es")
),
"\x6dultid\x69\x6d\x65n\x73ional-\x66\x65\x61\x74\x75\x72e" => array(
"\x74\x65xt" => $this->l("this\x20f\x65\x61t\x75\x72e\x20is \x64\x69\x73a\x62l\x65\x64\x20i\x66\x20ca\x6ccula\x74io\x6e \x6de\x74ho\x64 is no\x74\x20\x73\x70ecifi\x65\x64"),
"\x64\x69\x73\x61\x62l\x65d" => $this->l("Th\x69\x73\x20f\x65a\x74u\x72e\x20\x69\x73 d\x69\x73able\x64.\x20To e\x6e\x61\x62\x6ce t\x68\x69s f\x65\x61\x74ure plea\x73\x65\x20i\x6es\x74a\x6c\x6c t\x68\x65 mult\x69di\x6densi\x6f\x6e\x61l pl\x75g\x69n from"),
"\x72\x65adme\x5f\x75\x72\x6c" => ($this->multidimensional_plugin ? $this->multidimensional_plugin->readme_url() : ""),
"re\x61dm\x65_pd\x66" => $this->l("M\x75\x6ct\x69\x64ime\x6esio\x6ea\x6c plugi\x6e use\x72 g\x75i\x64\x65")
),
"i\x6epu\x74" => array(
array(
"\x74\x79\x70e" => "\x73ele\x63t",
"\x6c\x61\x62el" => $this->l("ca\x6c\x63u\x6c\x61t\x69\x6f\x6e m\x65t\x68o\x64"),
"na\x6de" => "\x70\x70\x5fe\x78\x74_me\x74hod",
"\x6f\x70t\x69ons" => array(
"\x71\x75\x65ry" => array(
array(
"\x69\x64" => 0,
"na\x6de" => "&n\x62s\x70\x3b"
),
array(
"\x69\x64" => 1,
"n\x61m\x65" => ${$soyakiovrklu}["s_multi\x70li\x63\x61\x74\x69\x6f\x6e"]
),
array(
"id" => 2,
"name" => ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x68\x61\x70\x72g\x6em"]}["\x73\x5fs\x75m\x6d\x61\x74i\x6fn"]
),
array(
"i\x64" => 3,
"\x6e\x61\x6de" => ${${"\x47L\x4f\x42A\x4c\x53"}["h\x61\x70r\x67\x6e\x6d"]}["\x73\x5fs\x69\x6egl\x65\x5f\x64i\x6dens\x69o\x6e"]
)
),
"id" => "id",
"\x6ea\x6d\x65" => "\x6e\x61m\x65"
)
),
array(
"t\x79p\x65" => "hi\x64\x64e\x6e",
"na\x6d\x65" => "\x70\x70\x5fex\x74_\x6d\x65t\x68\x6f\x64_f\x61\x6clba\x63k"
),
$this->createHelperFormSelect("\x70p\x5fe\x78\x74_t\x69tle", array(
"\x6cabel" => $this->l("dimensi\x6f\x6es\x20b\x6cock tit\x6c\x65"),
"\x66\x6f\x72\x6d_\x67\x72oup_\x63\x6cas\x73" => "\x64i\x6d\x65n\x73io\x6e\x73-to\x67\x67\x6c\x65"
), self::DIMENSIONS, ${${"G\x4cO\x42\x41L\x53"}["\x69n\x64\x79u\x65\x74d"]}, ${$uhdrlpetlnh}, ${${"GL\x4f\x42\x41\x4c\x53"}["\x7a\x67\x71p\x6e\x6d\x73\x78\x79a\x76"]}, ${${"\x47\x4cOB\x41\x4c\x53"}["\x65\x69\x74mq\x6e\x68\x68"]}),
$this->createHelperFormSelect("p\x70_e\x78t\x5fp\x72\x6fpe\x72\x74y", array(
"lab\x65l" => $this->l("\x63\x61\x6c\x63ulat\x69on\x20r\x65\x73\x75\x6ct \x6ca\x62\x65l"),
"desc" => $this->l("l\x65a\x76e b\x6c\x61\x6ek\x20\x74\x6f\x20hide\x20c\x61lcu\x6ca\x74\x69o\x6e r\x65\x73u\x6c\x74"),
"fo\x72m_gr\x6fu\x70\x5fcl\x61s\x73" => "d\x69\x6de\x6esi\x6f\x6es-togg\x6ce"
), self::DIMENSIONS, ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74\x64\x79\x65\x63p\x69\x62\x77\x76"]}, ${$sjjyex}, ${$ueoumpjqwcn}, ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x69\x74m\x71\x6eh\x68"]}),
$this->createHelperFormSelect("\x70\x70\x5fe\x78t\x5ft\x65xt", array(
"lab\x65l" => $this->l("\x63\x61l\x63\x75\x6cati\x6fn res\x75l\x74\x20\x74\x65x\x74"),
"for\x6d\x5fgr\x6f\x75\x70\x5f\x63l\x61ss" => "\x64imens\x69o\x6e\x73-togg\x6ce"
), array(
self::PROPERTY_TYPE_GENERAL,
self::DIMENSIONS
), ${${"GL\x4f\x42\x41L\x53"}["\x70\x77\x62\x6a\x6e\x75uhz"]}, ${${"\x47LO\x42\x41L\x53"}["\x7auc\x6e\x6et\x6d"]}, ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x6czl\x63\x64\x72\x65"]}, ${$cryzvlcjfn}),
array(
"type" => "r\x61d\x69o",
"\x6c\x61\x62el" => $this->l("di\x6densi\x6f\x6es\x20polic\x79"),
"\x6e\x61me" => "pp\x5fex\x74\x5fpo\x6c\x69\x63y",
"\x64esc" => $this->l("di\x6d\x65\x6esi\x6f\x6es can \x62e\x20\x73p\x65ci\x66\x69\x65d b\x79\x20\x74h\x65 cu\x73\x74\x6fme\x72 (\x64\x65f\x61ul\x74)\x20\x6f\x72\x20us\x65d by t\x68e packs\x20calc\x75\x6c\x61to\x72\x20\x6fr\x20u\x73ed \x61\x73\x20\x74h\x65 \x70\x72od\x75\x63\x74 \x70ro\x70\x65\x72t\x69e\x73\x20a\x66fecti\x6e\x67\x20\x70ric\x65,\x20vi\x73\x69\x62le\x20\x69n\x20\x74h\x65\x20\x73\x68\x6fp\x20\x61\x6e\x64 \x65di\x74\x61b\x6c\x65 o\x6e\x6c\x79\x20i\x6e th\x65 \x62a\x63\x6b\x20offic\x65"),
"\x66\x6f\x72\x6d_\x67\x72\x6fup_c\x6c\x61\x73\x73" => "\x64i\x6d\x65\x6e\x73\x69\x6fns-t\x6f\x67\x67\x6ce",
"\x76a\x6cu\x65\x73" => array(
array(
"i\x64" => "\x70\x70_\x65x\x74_\x70o\x6cic\x79_\x30",
"v\x61\x6c\x75e" => 0,
"l\x61\x62\x65\x6c" => $this->l("d\x65f\x61\x75lt")
),
array(
"\x69d" => "\x70p\x5f\x65\x78\x74\x5fpo\x6ci\x63\x79\x5f\x31",
"\x76al\x75e" => 1,
"\x6ca\x62e\x6c" => $this->l("\x70acks\x20c\x61\x6c\x63\x75\x6ca\x74or")
),
array(
"\x69d" => "p\x70\x5f\x65\x78\x74_\x70\x6fl\x69cy_2",
"\x76alue" => 2,
"l\x61\x62e\x6c" => $this->l("\x70\x72oduct \x70r\x6fp\x65\x72t\x69\x65s")
)
)
)
),
"b\x75t\x74ons" => ${${"\x47L\x4f\x42AL\x53"}["\x65x\x6a\x67n\x75\x70\x6b\x78"]}
);
${${"\x47\x4c\x4fBA\x4c\x53"}["\x6b\x65xp\x65n\x74\x67p\x79f\x6d"]}["\x64\x69men\x73\x69\x6fn\x73-\x74\x61b\x6c\x65"] = array(
"\x74\x68" => array(
$this->l("\x64\x69\x6d\x65\x6es\x69\x6fn"),
$this->l("q\x75\x61n\x74\x69ty t\x65xt *"),
$this->l("mi\x6eim\x75\x6d q\x75a\x6eti\x74y"),
$this->l("\x6da\x78\x69m\x75\x6d\x20q\x75anti\x74y"),
$this->l("\x64\x65\x66ault \x71\x75\x61\x6et\x69t\x79"),
$this->l("qu\x61n\x74it\x79 st\x65p"),
$this->l("\x71u\x61nt\x69\x74y\x20\x72at\x69o"),
$this->l("o\x72der\x20\x71uantity tex\x74 **")
),
"tb\x6f\x64\x79" => array()
);
${${"\x47\x4cOB\x41\x4c\x53"}["\x79\x74\x64fw\x75\x69\x6a\x6f\x71b"]} = (isset(${${"\x47LOB\x41\x4cS"}["\x68\x71\x72\x6b\x70\x73"]}["\x70\x70\x5f\x65xt\x5f\x70r\x6f\x70"]) ? count(${$zshdzgukjj}["p\x70_e\x78\x74_\x70ro\x70"]) : 3);
if (${${"\x47L\x4f\x42\x41\x4c\x53"}["yxgg\x73\x75syg"]} < 3)
${${"\x47L\x4f\x42\x41L\x53"}["\x65u\x68\x6c\x67\x6dq"]} = 3;
for (${$pkjrnbqw} = 1; ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x70a\x62\x67xv\x79\x64\x64\x69\x6a"]} <= ${$odtdtgtpf}; ${${"\x47LOB\x41\x4c\x53"}["\x70\x70\x61bgxvy\x64\x64\x69\x6a"]}++) {
$uwwlfibc = "\x74\x64";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["rf\x75kd\x75\x75\x63\x79"] = "t\x64";
$mwctfuhgxn = "\x74\x65\x6d\x70\x6c\x61\x74e";
$qqqkoofrzpqv = "\x70\x72\x6f\x70\x65r\x74y_\x74\x79\x70es";
${"\x47\x4cO\x42AL\x53"}["\x6d\x76\x6e\x71\x6b\x76\x6b"] = "d\x69\x6d\x65n\x73io\x6e\x5f\x69\x6edex";
$ugnkoljgev = "\x74e\x6d\x70la\x74\x65";
$jvrbjwip = "\x64\x69m\x65n\x73\x69\x6f\x6e_\x69\x6e\x64\x65\x78";
$ervftpzumv = "\x68e\x6c\x70\x65\x72";
$stdjepxygc = "\x64\x69\x6d\x65n\x73\x69o\x6e\x5f\x69ndex";
${$uwwlfibc} = array();
$vnqvkwiys = "\x64\x69\x6d\x65nsi\x6f\x6e\x5fi\x6e\x64\x65\x78";
${"\x47\x4c\x4fB\x41L\x53"}["\x70\x65\x68tq\x6a"] = "t\x64";
${"\x47\x4cO\x42\x41\x4c\x53"}["b\x79p\x79\x6c\x65\x6bt\x77i"] = "\x74\x65\x6d\x70\x6c\x61\x74e";
${"\x47\x4cO\x42AL\x53"}["\x6d\x70ie\x64q\x76\x6a\x6a\x6b\x76"] = "t\x64";
$wqljrtxjezm = "t\x65\x6dp\x6c\x61te";
${"\x47LOBA\x4c\x53"}["\x69\x67\x78\x75c\x66\x6a\x71"] = "\x70\x72\x6fpe\x72\x74\x79_\x74\x79\x70\x65s";
$hpvizjudp = "td";
$yhwaphcktmm = "d\x69\x6de\x6e\x73i\x6fn\x5f\x69\x6edex";
${"G\x4c\x4fBA\x4cS"}["\x77n\x78\x79\x65\x68\x64\x6fox"] = "\x74d";
${"\x47\x4cOBA\x4c\x53"}["\x62m\x61\x76\x6d\x64f\x6d\x74"] = "\x76\x61\x6cue";
${${"\x47\x4cO\x42\x41\x4c\x53"}["b\x6da\x76\x6d\x64\x66m\x74"]} = PP::getTemplateExtProperty(${${"\x47\x4c\x4f\x42\x41L\x53"}["bypy\x6ce\x6b\x74\x77\x69"]}, ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70pab\x67\x78\x76\x79\x64\x64\x69\x6a"]}, "prop\x65\x72\x74\x79");
$bqrulcdvqmvi = "\x64\x69m\x65\x6e\x73io\x6e\x5f\x69n\x64\x65\x78";
${"\x47LOBA\x4c\x53"}["\x76\x71\x77c\x67\x6a\x6bm\x62k\x73"] = "\x64\x69me\x6e\x73\x69\x6fn\x5fi\x6ed\x65\x78";
${"\x47L\x4f\x42\x41L\x53"}["\x79\x6b\x6dld\x78\x6a"] = "a\x6c\x6c_p\x72\x6f\x70er\x74\x69\x65\x73";
$xrstvrhmrrtn = "\x64\x69\x6d\x65ns\x69\x6f\x6e\x5f\x69n\x64\x65\x78";
${"\x47\x4c\x4fB\x41L\x53"}["v\x65\x67\x6c\x70\x71\x6e\x74\x78"] = "d\x69\x6d\x65\x6e\x73\x69\x6fn\x5f\x69\x6e\x64\x65\x78";
$soesyvmrc = "d\x69\x6d\x65\x6e\x73\x69\x6f\x6e\x5f\x69\x6e\x64\x65\x78";
$nschjf = "\x64ime\x6e\x73\x69o\x6e\x5f\x69\x6e\x64e\x78";
${"\x47\x4cOB\x41\x4c\x53"}["\x62x\x6f\x73jp\x66\x67\x63\x66"] = "\x70\x72oper\x74\x79\x5f\x74\x79\x70\x65\x73";
${"G\x4cOB\x41LS"}["c\x67c\x62\x68c\x62\x74"] = "\x64\x69\x6d\x65\x6e\x73\x69on\x5f\x69nd\x65\x78";
${"G\x4cOBA\x4c\x53"}["\x70\x6c\x66\x66\x6bd\x6d"] = "\x64i\x6d\x65\x6e\x73\x69\x6f\x6e\x5f\x69nd\x65x";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["y\x70\x77\x67\x64\x72\x79"] = "\x64im\x65\x6es\x69o\x6e\x5f\x69\x6ed\x65x";
${"\x47\x4c\x4fBA\x4c\x53"}["w\x65\x68\x67\x75\x69wg\x6e"] = "\x64\x69\x6d\x65n\x73\x69\x6f\x6e\x5fi\x6e\x64e\x78";
$mpvmthkmcmk = "d\x69\x6den\x73\x69\x6fn_\x69\x6ede\x78";
$ypnbnxc = "\x64i\x6den\x73\x69\x6f\x6e_i\x6e\x64\x65x";
${${"G\x4cO\x42\x41L\x53"}["\x6d\x70ie\x64\x71\x76\x6aj\x6b\x76"]}[] = $this->createHelperFormSelect("di\x6d\x65\x6e\x73\x69o\x6e\x5f" . ${$bqrulcdvqmvi}, array(
"data_type" => "\x64i\x6de\x6e\x73io\x6e\x5f",
"d\x61ta_\x70\x6fsition" => ${$vnqvkwiys}
), self::PROPERTY_TYPE_EXT, ${$ervftpzumv}, ${${"G\x4c\x4fBA\x4c\x53"}["\x77\x69\x68\x6c\x72\x62m\x71"]}, ${${"\x47\x4c\x4fB\x41LS"}["\x62l\x7a\x6c\x63d\x72\x65"]}, ${${"\x47\x4cOBA\x4c\x53"}["\x62\x78\x6fsj\x70\x66g\x63\x66"]});
$rmrlemm = "te\x6d\x70l\x61\x74\x65";
$giwnoznwre = "v\x61\x6c\x75e";
${"\x47\x4c\x4f\x42\x41\x4cS"}["c\x6cu\x6cd\x6d\x6e\x74\x6d"] = "v\x61\x6c\x75\x65";
$hcgpdgpv = "\x74\x65\x6d\x70\x6ca\x74\x65";
${"G\x4cO\x42\x41\x4c\x53"}["i\x6c\x74\x68\x66\x67\x69"] = "d\x69\x6d\x65ns\x69\x6f\x6e_\x69n\x64e\x78";
$icfqdnw = "d\x69men\x73\x69\x6fn_i\x6e\x64ex";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x64s\x76\x6ep\x6f\x68\x6f\x77\x6b"] = "\x64ime\x6e\x73\x69\x6fn_i\x6e\x64ex";
${${"GLOB\x41L\x53"}["\x63l\x75l\x64\x6d\x6e\x74m"]} = PP::getTemplateExtProperty(${$rmrlemm}, ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70pabg\x78v\x79\x64\x64\x69\x6a"]}, "\x74ex\x74");
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62sh\x6brs\x72\x72\x65\x62o"] = "\x74\x65mp\x6c\x61\x74\x65";
$mlywyoyqf = "\x64im\x65n\x73\x69\x6f\x6e\x5fi\x6ede\x78";
$nawqdx = "\x76\x61l\x75e";
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x66\x75\x6b\x64\x75\x75cy"]}[] = $this->createHelperFormSelect("\x64\x69mensio\x6e_\x74e\x78t_" . ${${"\x47L\x4f\x42AL\x53"}["\x69lt\x68f\x67\x69"]}, array(
"d\x61\x74\x61_ty\x70\x65" => "d\x69me\x6e\x73i\x6f\x6e_t\x65x\x74\x5f",
"\x64\x61ta_\x70\x6fsiti\x6fn" => ${${"\x47LO\x42A\x4cS"}["c\x67\x63\x62hcb\x74"]}
), array(
self::PROPERTY_TYPE_GENERAL,
self::DIMENSIONS
), ${${"\x47L\x4f\x42\x41\x4cS"}["td\x79\x65\x63p\x69\x62w\x76"]}, ${$nawqdx}, ${${"GL\x4fB\x41\x4cS"}["\x62\x6c\x7a\x6c\x63\x64\x72e"]}, ${${"GLO\x42\x41\x4c\x53"}["\x69\x67x\x75\x63f\x6aq"]});
$gudpossjyxrh = "\x64i\x6densi\x6f\x6e\x5fi\x6ede\x78";
${"\x47\x4c\x4fB\x41\x4cS"}["\x6c\x78\x75\x67\x79\x67\x69\x68"] = "h\x65\x6c\x70e\x72";
${${"\x47L\x4fBA\x4c\x53"}["p\x65\x68t\x71\x6a"]}[] = array(
"\x74\x79\x70\x65" => "t\x65\x78\x74",
"n\x61\x6d\x65" => "dime\x6es\x69\x6f\x6e\x5fm\x69\x6e\x69\x6d\x75m\x5fq\x75\x61\x6e\x74\x69ty\x5f" . ${$mpvmthkmcmk},
"\x64\x61ta_\x74\x79pe" => "di\x6dens\x69\x6f\x6e\x5fmi\x6eim\x75m_\x71u\x61n\x74\x69t\x79_",
"\x64ata\x5f\x70\x6fs\x69ti\x6fn" => ${$gudpossjyxrh}
);
${$hpvizjudp}[] = array(
"\x74ype" => "\x74\x65\x78\x74",
"\x6e\x61me" => "\x64\x69\x6den\x73\x69on\x5f\x6d\x61\x78i\x6dum\x5f\x71\x75antity\x5f" . ${${"G\x4c\x4f\x42\x41L\x53"}["\x70\x6c\x66\x66k\x64\x6d"]},
"\x64\x61\x74\x61_\x74\x79\x70e" => "\x64\x69me\x6esi\x6f\x6e\x5fmax\x69\x6dum_\x71uan\x74\x69\x74y\x5f",
"\x64at\x61_\x70\x6fs\x69\x74\x69\x6fn" => ${$ypnbnxc}
);
${${"GL\x4f\x42\x41LS"}["\x74\x69\x64\x72\x67\x75\x73\x62\x6f\x72\x76"]}[] = array(
"\x74y\x70\x65" => "tex\x74",
"n\x61m\x65" => "\x64\x69m\x65nsio\x6e_d\x65\x66a\x75lt_q\x75a\x6e\x74i\x74y\x5f" . ${$stdjepxygc},
"\x64\x61t\x61_ty\x70e" => "\x64im\x65ns\x69o\x6e\x5f\x64efa\x75\x6ct_\x71\x75anti\x74\x79_",
"\x64\x61t\x61\x5f\x70\x6f\x73\x69\x74\x69on" => ${${"GL\x4f\x42A\x4c\x53"}["\x70\x70\x61bg\x78v\x79\x64\x64i\x6a"]}
);
${${"\x47\x4c\x4fBA\x4c\x53"}["\x77\x6exy\x65hdo\x6f\x78"]}[] = array(
"ty\x70e" => "t\x65\x78\x74",
"\x6ea\x6de" => "\x64i\x6d\x65\x6e\x73io\x6e\x5f\x71t\x79\x5f\x73\x74ep\x5f" . ${${"G\x4c\x4f\x42\x41L\x53"}["ppab\x67x\x76yddi\x6a"]},
"data\x5f\x74\x79\x70\x65" => "\x64ime\x6esio\x6e_qt\x79\x5f\x73t\x65\x70_",
"d\x61\x74\x61_\x70o\x73iti\x6f\x6e" => ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x70a\x62\x67xv\x79\x64\x64\x69\x6a"]}
);
$pxhdklmwtb = "\x74\x65\x6dp\x6c\x61\x74e";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["n\x62m\x6bw\x6afs\x79bu\x6f"] = "\x74\x64";
${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6e\x62m\x6b\x77\x6a\x66s\x79\x62\x75\x6f"]}[] = array(
"ty\x70\x65" => "t\x65x\x74",
"n\x61m\x65" => "\x64imen\x73\x69\x6f\x6e_qt\x79\x5f\x72ati\x6f\x5f" . ${$jvrbjwip},
"data_t\x79\x70e" => "\x64ime\x6e\x73io\x6e_q\x74\x79_\x72at\x69\x6f\x5f",
"data\x5fposit\x69o\x6e" => ${$icfqdnw}
);
$helper->fields_value["\x64\x69m\x65\x6esion_mini\x6dum_qu\x61\x6e\x74\x69\x74y_" . ${$mlywyoyqf}] = ((float) PP::getTemplateExtProperty(${$ugnkoljgev}, ${${"G\x4c\x4fB\x41L\x53"}["p\x70a\x62\x67x\x76\x79\x64d\x69\x6a"]}, "m\x69n\x69\x6d\x75\x6d\x5fqu\x61\x6et\x69\x74\x79") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${$pxhdklmwtb}, ${${"G\x4cO\x42\x41L\x53"}["p\x70\x61bgx\x76\x79d\x64ij"]}, "\x6di\x6eim\x75m\x5fqua\x6e\x74i\x74\x79")) : "");
$helper->fields_value["\x64i\x6den\x73i\x6fn_\x6da\x78\x69m\x75\x6d_qu\x61\x6e\x74it\x79\x5f" . ${${"\x47\x4cO\x42AL\x53"}["\x70\x70a\x62gxvyd\x64i\x6a"]}] = ((float) PP::getTemplateExtProperty(${${"\x47LO\x42AL\x53"}["\x78dg\x74\x67ab\x75y"]}, ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70\x70\x61\x62\x67xvy\x64dij"]}, "ma\x78\x69\x6dum_\x71\x75a\x6e\x74\x69\x74\x79") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${${"\x47LOB\x41L\x53"}["\x78d\x67tg\x61\x62u\x79"]}, ${${"\x47L\x4f\x42\x41L\x53"}["d\x73v\x6e\x70o\x68o\x77k"]}, "m\x61\x78\x69\x6du\x6d\x5f\x71\x75an\x74\x69ty")) : "");
$helper->fields_value["\x64imens\x69o\x6e_d\x65\x66\x61\x75\x6c\x74_q\x75a\x6et\x69ty_" . ${${"\x47\x4c\x4f\x42A\x4c\x53"}["p\x70\x61\x62gxv\x79\x64\x64\x69j"]}] = ((float) PP::getTemplateExtProperty(${${"G\x4c\x4f\x42\x41LS"}["\x78d\x67t\x67\x61b\x75\x79"]}, ${${"G\x4c\x4f\x42\x41LS"}["\x79\x70\x77\x67\x64r\x79"]}, "d\x65f\x61\x75lt\x5fquan\x74\x69\x74\x79") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${${"G\x4cOBA\x4c\x53"}["\x78\x64\x67\x74\x67a\x62uy"]}, ${${"GLOB\x41\x4c\x53"}["we\x68\x67\x75\x69\x77\x67\x6e"]}, "default\x5fq\x75antit\x79")) : "");
$helper->fields_value["d\x69m\x65n\x73ion\x5fqty_\x73t\x65p\x5f" . ${${"\x47\x4cOBA\x4c\x53"}["v\x71\x77c\x67\x6a\x6b\x6d\x62\x6b\x73"]}] = ((float) PP::getTemplateExtProperty(${$hcgpdgpv}, ${${"\x47\x4cO\x42ALS"}["\x70p\x61bgx\x76\x79\x64\x64\x69j"]}, "\x71ty\x5fs\x74\x65\x70") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${$mwctfuhgxn}, ${$nschjf}, "q\x74\x79_\x73\x74\x65\x70")) : "");
$helper->fields_value["\x64\x69\x6d\x65n\x73\x69o\x6e_\x71\x74\x79_r\x61tio_" . ${$yhwaphcktmm}] = ((float) PP::getTemplateExtProperty(${${"\x47\x4cO\x42\x41\x4c\x53"}["b\x73hkr\x73r\x72\x65\x62\x6f"]}, ${$soesyvmrc}, "\x71\x74\x79\x5f\x72ati\x6f") > 0 ? PP::formatQty(PP::getTemplateExtProperty(${${"G\x4c\x4f\x42ALS"}["\x78d\x67t\x67\x61\x62\x75\x79"]}, ${${"\x47\x4cOB\x41L\x53"}["v\x65\x67lp\x71\x6e\x74\x78"]}, "\x71\x74y_\x72\x61\x74\x69\x6f")) : "");
${$giwnoznwre} = PP::getTemplateExtProperty(${$wqljrtxjezm}, ${${"\x47\x4c\x4f\x42\x41LS"}["\x70\x70\x61\x62g\x78\x76y\x64\x64i\x6a"]}, "\x6fr\x64\x65\x72\x5f\x74ex\x74");
${${"\x47\x4c\x4fBA\x4c\x53"}["ti\x64\x72gus\x62\x6frv"]}[] = $this->createHelperFormSelect("dim\x65\x6esio\x6e_or\x64\x65r\x5f\x74\x65\x78\x74_" . ${${"G\x4c\x4f\x42A\x4c\x53"}["\x6d\x76\x6eq\x6b\x76\x6b"]}, array(
"dat\x61\x5f\x74\x79\x70\x65" => "\x64i\x6d\x65ns\x69\x6fn_\x6f\x72\x64er_text_",
"dat\x61_po\x73\x69t\x69o\x6e" => ${$xrstvrhmrrtn}
), array(
self::PROPERTY_TYPE_GENERAL,
self::DIMENSIONS
), ${${"G\x4c\x4f\x42\x41\x4c\x53"}["l\x78\x75g\x79\x67\x69\x68"]}, ${${"GLO\x42\x41L\x53"}["wihl\x72\x62m\x71"]}, ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6b\x6d\x6c\x64\x78\x6a"]}, ${$qqqkoofrzpqv});
${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x71\x69\x65\x68\x76q\x78k\x70\x6a\x64"]}["\x64i\x6d\x65n\x73i\x6fns-t\x61b\x6ce"]["t\x62od\x79"][] = array(
"t\x72" => array(
"\x74\x64" => ${${"\x47\x4c\x4fBA\x4c\x53"}["t\x69\x64rg\x75\x73\x62o\x72\x76"]}
)
);
}
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71iehvq\x78\x6b\x70\x6ad"]}["hel\x70-blo\x63k"] = array(
"c\x6c\x61ss" => "\x64\x69\x6dens\x69on\x73-toggl\x65",
"t\x65\x78\x74" => array(
"*\x26n\x62\x73p;\x26n\x62s\x70\x3b\x26\x6ebs\x70\x3b" . $this->l("\x71\x75anti\x74\x79 te\x78t is\x20\x75sed\x20\x6f\x6e t\x68\x65 pr\x6fd\x75ct\x20p\x61\x67\x65\x20in \x74he\x20\x73\x68\x6fp"),
"**&nb\x73p;\x26\x6eb\x73p\x3b" . $this->l("o\x72der q\x75an\x74i\x74\x79 tex\x74 i\x73\x20\x75s\x65\x64\x20\x69\x6e or\x64\x65r\x20\x61\x6ed\x20\x69\x6e\x76o\x69c\x65")
)
);
if ($this->multidimensional_plugin)
${${"G\x4c\x4fB\x41\x4cS"}["qiehvq\x78kp\x6a\x64"]}["\x6dultid\x69m\x65n\x73\x69\x6f\x6ea\x6cA\x64\x6di\x6e"] = "\x6dult\x69\x64\x69\x6de\x6e\x73\x69\x6f\x6e\x61\x6c\x41d\x6di\x6e";
${${"\x47\x4cOB\x41\x4c\x53"}["w\x66\x6cg\x63zcf\x78\x79u\x6a"]} = array(
"\x66or\x6d" => ${${"\x47L\x4f\x42A\x4c\x53"}["\x61vf\x79\x77ft\x79\x63\x68\x76\x6f"]},
"\x64i\x6dens\x69\x6f\x6es_for\x6d" => ${${"G\x4c\x4f\x42\x41L\x53"}["\x78\x63\x69\x6b\x69b\x71v\x63xo"]}
);
${${"\x47\x4c\x4f\x42A\x4cS"}["\x67\x6df\x6f\x68\x63\x63"]} = Hook::exec("p\x70r\x6f\x70er\x74i\x65s\x41\x64m\x69\x6e", array(
"mode" => "\x64i\x73pl\x61\x79EditTe\x6dpla\x74\x65For\x6d",
"\x69d_p\x70_\x74\x65m\x70\x6ca\x74e" => ${${"\x47\x4c\x4fBALS"}["\x77\x78v\x74\x64\x63\x6a\x6e\x75rn"]}
), null, true);
if (is_array(${$frsbmykid})) {
foreach (${${"\x47L\x4f\x42\x41\x4cS"}["\x74\x67\x76\x72j\x77\x76\x6cm\x6f"]} as ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x72\x63\x64\x6c\x65x\x6cy\x77\x78"]} => ${${"\x47\x4c\x4f\x42\x41L\x53"}["q\x6etb\x6frjqe\x63"]}) {
if (isset(${${"\x47\x4c\x4f\x42A\x4c\x53"}["qn\x74\x62\x6f\x72\x6a\x71\x65\x63"]}["\x66o\x72m"])) {
${"G\x4c\x4fB\x41L\x53"}["\x65\x75\x63\x76\x65\x65k"] = "\x68o\x6f\x6b\x5ff\x6f\x72\x6d";
if (!isset(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65\x75c\x76\x65\x65\x6b"]}["\x66o\x72\x6d"]["\x62ut\x74\x6fn\x73"]))
${${"\x47LO\x42\x41\x4c\x53"}["\x71\x6e\x74\x62\x6fr\x6aq\x65\x63"]}["f\x6fr\x6d"]["bu\x74\x74\x6f\x6es"] = ${${"\x47\x4cO\x42\x41LS"}["\x66c\x76\x6auu\x62r\x6ay"]};
$xkkcvbo = "\x68o\x6fk\x5f\x66o\x72\x6d";
${${"GL\x4f\x42\x41\x4c\x53"}["\x6d\x75\x7a\x76\x70n\x69\x79"]}[${${"\x47\x4cO\x42\x41\x4cS"}["w\x72\x63\x64l\x65x\x6c\x79w\x78"]} . "\x5ffo\x72m"] = ${$xkkcvbo}["fo\x72m"];
}
}
}
${${"\x47\x4c\x4f\x42\x41L\x53"}["k\x75\x64\x6c\x61\x79w\x78\x75"]} = $this->generateForm(${${"\x47\x4c\x4f\x42\x41LS"}["\x70\x6cx\x6em\x61j"]}, ${${"\x47LO\x42\x41\x4cS"}["muz\x76\x70n\x69\x79"]}, array(
"id\x5f\x70\x70_t\x65mp\x6cat\x65" => ${${"G\x4cO\x42AL\x53"}["sp\x70\x68\x61\x62i\x70"]},
"m\x75\x6c\x74\x69\x64im\x65nsi\x6f\x6e\x61l" => $this->multidimensional_plugin,
"\x73\x63\x72ip\x74" => array(
"\x6d\x75\x6c\x74i\x64im\x65\x6es\x69on\x61l"
)
));
return ${$mdgspt};
}
private function getEditPropertyTabHtml($properties, $mode, $title)
{
$kqdyunkrso = "m\x6fd\x65";
$cwnmcdsiowe = "\x74y\x70e";
$ttodvsoxa = "\x69\x64";
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72\x70\x6f\x6fn\x65f"] = "\x69\x64";
${"\x47\x4cOB\x41\x4c\x53"}["as\x63\x78xa\x6cmby\x74u"] = "f\x6frm";
if (!$this->integrated)
return "";
$ggkkwwvf = "\x68e\x6c\x70\x65\x72";
$awqlwhislpo = "\x6d\x6f\x64\x65";
${${"G\x4c\x4fB\x41\x4cS"}["\x77\x72rv\x65\x64\x68\x6f\x71\x6a"]} = (int) Tools::getValue("\x74ype");
if (${$kqdyunkrso} == "\x61dd") {
${${"G\x4cOB\x41\x4cS"}["\x77x\x76td\x63\x6a\x6e\x75rn"]} = 0;
if (${${"G\x4c\x4f\x42\x41L\x53"}["y\x6a\x77r\x73\x66\x78\x71s\x6b"]} == null) {
$rumreyy = "\x6ca\x6e\x67u\x61\x67e";
foreach ($this->active_languages as ${$rumreyy}) {
${"\x47\x4c\x4f\x42\x41L\x53"}["\x64p\x6e\x62ei\x6e"] = "\x70\x72\x6f\x70\x65r\x74\x79";
$oobbeabydb = "\x70\x72\x6f\x70e\x72\x74y";
${"G\x4c\x4f\x42\x41L\x53"}["\x73gk\x79o\x6f\x6f\x78\x72\x73\x6d\x66"] = "\x74\x79pe";
$okhchlfltr = "p\x72o\x70\x65r\x74\x79";
${$oobbeabydb} = array();
$xfhulivjed = "pr\x6fp\x65\x72\x74\x79";
${${"GL\x4f\x42\x41\x4c\x53"}["\x63x\x6bd\x79u\x7a"]}["id\x5f\x70\x70_pr\x6fp\x65\x72\x74y"] = ${${"\x47\x4c\x4f\x42\x41\x4cS"}["w\x78v\x74dc\x6a\x6eu\x72n"]};
$gvxkplu = "p\x72\x6f\x70e\x72\x74i\x65s";
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64\x70nb\x65i\x6e"]}["\x74y\x70e"] = ${${"\x47L\x4fBA\x4c\x53"}["\x73\x67\x6b\x79\x6f\x6f\x6fxr\x73\x6d\x66"]};
${"G\x4c\x4f\x42\x41LS"}["\x75\x6a\x6d\x6fwq\x79i\x63"] = "\x69d";
${$okhchlfltr}["tex\x74"] = "";
${$gvxkplu}[${${"\x47\x4cO\x42A\x4cS"}["gf\x7a\x61\x6ecj\x6c"]}["\x69d_\x6c\x61n\x67"]][${${"\x47L\x4f\x42AL\x53"}["\x75\x6a\x6dow\x71yi\x63"]}] = ${$xfhulivjed};
}
}
} else {
${"\x47\x4c\x4fB\x41\x4c\x53"}["p\x79\x70\x6c\x6d\x76\x6d\x65\x64\x62q"] = "\x69\x64";
${"G\x4c\x4fB\x41L\x53"}["\x72\x75\x76g\x79\x74\x69\x70"] = "p\x72\x6f\x70ert\x69\x65\x73";
${${"\x47\x4cO\x42\x41\x4c\x53"}["\x70ypl\x6d\x76m\x65\x64\x62\x71"]} = (int) Tools::getValue("i\x64");
if (${${"GL\x4f\x42\x41\x4c\x53"}["ru\x76gytip"]} == null)
${${"\x47LO\x42A\x4c\x53"}["\x79\x6a\x77rs\x66\x78q\x73\x6b"]} = $this->getAllProperties();
}
${${"\x47\x4c\x4fB\x41\x4cS"}["\x74\x64y\x65c\x70i\x62\x77\x76"]} = $this->createHelperForm("p\x70\x5f\x70\x72o\x70\x65r\x74y_\x66\x6f\x72m", ${${"\x47\x4c\x4f\x42\x41\x4cS"}["sf\x6e\x69g\x69\x75\x6bw\x67\x66k"]}, "subm\x69\x74Save\x50\x72op\x65\x72\x74y", "ic\x6fn-ed\x69\x74");
${${"\x47\x4c\x4f\x42\x41\x4cS"}["av\x66\x79w\x66t\x79\x63\x68\x76\x6f"]} = array(
"\x69n\x70ut" => array(
array(
"\x6c\x61\x62e\x6c" => $this->l("\x49\x44"),
"ty\x70e" => "\x64iv",
"n\x61me" => ${$ttodvsoxa},
"\x63\x6cass" => "\x63o\x6etrol-t\x65\x78t",
"\x63on\x64it\x69\x6fn" => (${${"\x47L\x4f\x42A\x4c\x53"}["\x6a\x74\x7a\x72s\x65\x6el\x73\x74c\x64"]} == "\x65\x64\x69\x74")
),
array(
"\x6ca\x62\x65\x6c" => $this->l("Te\x78t"),
"t\x79p\x65" => "t\x65\x78t",
"nam\x65" => "t\x65\x78t_inpu\x74",
"\x6cang" => true,
"d\x65sc" => (PP::resolveMS() != 2 ? $this->l("\x6d\x65\x74r\x69\x63 (to e\x64\x69\x74 non m\x65t\x72\x69c v\x61lu\x65\x20ch\x61\x6ege \x6d\x65\x61su\x72e\x6d\x65n\x74 \x73\x79\x73tem i\x6e Set\x74\x69\x6egs)") : $this->l("\x6eon\x20\x6det\x72\x69c (\x74o e\x64\x69\x74 m\x65\x74ri\x63\x20va\x6cue\x20\x63h\x61\x6ege\x20me\x61\x73\x75\x72\x65\x6d\x65n\x74 \x73\x79\x73\x74\x65\x6d\x20in S\x65\x74\x74\x69\x6eg\x73)"))
),
array(
"t\x79\x70\x65" => "\x68idde\x6e",
"\x6eam\x65" => "id"
),
array(
"\x74\x79p\x65" => "\x68i\x64\x64en",
"\x6e\x61\x6d\x65" => "m\x6fd\x65"
),
array(
"\x74y\x70e" => "\x68idde\x6e",
"\x6e\x61\x6de" => "typ\x65"
)
),
"butto\x6e\x73" => array(
array(
"\x74it\x6ce" => $this->l("\x43\x61\x6e\x63el"),
"\x74\x79p\x65" => "su\x62\x6d\x69\x74",
"\x6eam\x65" => "\x63a\x6ec\x65\x6c\x53av\x65Pro\x70erty",
"\x69con" => "\x70r\x6fcess-\x69c\x6fn-\x63\x61\x6e\x63\x65l"
)
)
);
$zlxwwafu = "i\x64\x5f\x70p\x5fpr\x6f\x70e\x72\x74\x79";
$helper->fields_value["\x69\x64"] = ${${"\x47LO\x42\x41\x4c\x53"}["\x72\x70o\x6fn\x65\x66"]};
$helper->fields_value["\x6d\x6fde"] = ${$awqlwhislpo};
$helper->fields_value["\x74y\x70\x65"] = ${$cwnmcdsiowe};
$helper->fields_value["\x74e\x78t\x5f\x69\x6e\x70u\x74"] = array();
foreach (${${"\x47LO\x42A\x4cS"}["\x79\x6aw\x72\x73\x66\x78qs\x6b"]}[$this->default_language_id] as ${$zlxwwafu} => ${${"\x47LOBA\x4c\x53"}["c\x78\x6b\x64\x79\x75\x7a"]}) {
if (${${"\x47\x4c\x4fBA\x4c\x53"}["l\x6e\x79rlhv\x62\x79j"]} == ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x77\x78\x76td\x63\x6an\x75r\x6e"]}) {
foreach ($this->active_languages as ${${"\x47L\x4f\x42A\x4c\x53"}["g\x66\x7a\x61nc\x6a\x6c"]}) {
${${"G\x4c\x4f\x42\x41L\x53"}["\x73p\x7a\x71\x6c\x68"]} = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x66\x7aa\x6e\x63\x6al"]}["i\x64_\x6c\x61\x6e\x67"];
$zoufqydxwra = "\x69\x64";
$helper->fields_value["\x74\x65\x78t_\x69np\x75\x74"][${${"\x47\x4cO\x42\x41\x4c\x53"}["\x73p\x7a\x71\x6c\x68"]}] = PP::safeOutputValue(${${"G\x4c\x4f\x42A\x4c\x53"}["\x79\x6a\x77\x72\x73\x66\x78\x71\x73k"]}[${${"\x47L\x4fB\x41L\x53"}["s\x70z\x71l\x68"]}][${$zoufqydxwra}]["t\x65xt"]);
}
break;
}
}
return $this->generateForm(${$ggkkwwvf}, ${${"GL\x4f\x42AL\x53"}["\x61s\x63xxa\x6c\x6d\x62\x79\x74\x75"]});
}
private function getTabIntegrationWarning()
{
return $this->l("\x50lea\x73\x65\x20g\x6f\x20\x74\x6f t\x68e \x22S\x65\x74\x74i\x6eg\x73\x22\x20\x74\x61\x62\x20and\x20reso\x6c\x76e\x20t\x68\x65\x20\x69n\x74\x65g\x72a\x74\x69\x6fn pr\x6fblem\x73.");
}
private function showIntegrationTestResults($results)
{
${"GL\x4f\x42\x41\x4cS"}["\x6ch\x6c\x77\x74yd\x6a"] = "\x72\x65\x73\x75\x6c\x74s";
${"\x47\x4cOB\x41L\x53"}["\x75\x73\x78\x63\x62\x6a\x66y"] = "\x76\x61\x6c\x75\x65";
foreach (${${"\x47LO\x42A\x4c\x53"}["\x6e\x67\x62he\x77\x6c\x76cv\x64\x74"]} as &${${"G\x4c\x4fB\x41LS"}["u\x73\x78c\x62jf\x79"]}) {
$nskdvvonjmk = "v\x61lue";
if (is_array(${${"\x47\x4cOBA\x4cS"}["\x77\x69\x68l\x72\x62mq"]}))
asort(${$nskdvvonjmk});
}
return ${${"G\x4c\x4f\x42A\x4cS"}["\x6ch\x6c\x77t\x79\x64\x6a"]};
}
private function tplVars()
{
${"G\x4c\x4fB\x41\x4c\x53"}["i\x71\x75y\x77pu\x61l\x7am"] = "\x63\x75rre\x6e\x74";
$prbdcxwj = "\x74o\x6ben";
${"\x47\x4c\x4f\x42\x41LS"}["\x74qwf\x67\x75\x79\x72"] = "tok\x65\x6e";
$vntgbwyxmsu = "t\x6f\x6b\x65\x6e";
${${"\x47\x4cO\x42\x41LS"}["tqw\x66\x67u\x79\x72"]} = Tools::getAdminTokenLite("\x41\x64\x6d\x69n\x4dod\x75l\x65s");
${${"\x47L\x4f\x42\x41L\x53"}["np\x6c\x70\x69dy\x6d\x65\x63\x76c"]} = AdminController::${${"\x47L\x4fB\x41L\x53"}["oey\x74\x65\x69\x75\x71"]} . "&\x63o\x6e\x66\x69gu\x72e=" . $this->name;
$fnatslj = "\x63\x75\x72\x72\x65n\x74";
return array(
"\x5f\x50S\x5f\x41\x44MI\x4e\x5fI\x4dG\x5f" => _PS_ADMIN_IMG_,
"cur\x72en\x74" => ${${"GL\x4f\x42\x41\x4c\x53"}["iq\x75\x79\x77\x70\x75\x61\x6cz\x6d"]},
"\x63\x75r\x72\x65n\x74url" => ${$fnatslj} . "\x26\x74\x6f\x6b\x65n=" . ${$vntgbwyxmsu} . "&pp\x3d\x31&",
"\x74\x6fk\x65n" => ${$prbdcxwj}
);
}
private function createTemplate($name)
{
${${"\x47L\x4fB\x41\x4c\x53"}["t\x64y\x65\x63\x70\x69b\x77\x76"]} = new Helper();
$helper->module = $this;
$helper->base_folder = "p\x70\x72\x6fpe\x72\x74\x69\x65s/";
${"GL\x4fB\x41LS"}["cm\x64\x6cm\x6bi\x69yu"] = "\x63u\x72\x72\x65n\x74";
$helper->base_tpl = ${${"GL\x4fB\x41\x4cS"}["\x61fk\x61j\x73\x65"]} . ".t\x70l";
$helper->setTpl($helper->base_tpl);
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6cb\x75\x78h\x7a\x69\x74\x69\x68"]} = Tools::getAdminTokenLite("\x41d\x6d\x69\x6eModules");
${"G\x4cOB\x41\x4cS"}["\x63\x63\x6f\x70\x6fr\x6b\x6f"] = "\x74\x6f\x6b\x65\x6e";
${"\x47\x4c\x4f\x42A\x4cS"}["\x61g\x76\x73yt\x6f\x6b\x70"] = "h\x65\x6c\x70\x65r";
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x70\x6c\x70\x69\x64\x79\x6decv\x63"]} = AdminController::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x65\x79\x74\x65\x69\x75\x71"]} . "&\x63\x6fn\x66ig\x75re=" . $this->name;
$helper->tpl_vars["\x5fP\x53_\x41DMI\x4e_I\x4dG\x5f"] = _PS_ADMIN_IMG_;
$helper->tpl_vars["\x63u\x72\x72ent"] = ${${"\x47L\x4fB\x41\x4cS"}["n\x70lpid\x79\x6de\x63\x76\x63"]};
$helper->tpl_vars["\x63urr\x65n\x74\x75\x72\x6c"] = ${${"\x47\x4cOBAL\x53"}["c\x6d\x64\x6cm\x6bi\x69\x79\x75"]} . "&\x74\x6fk\x65n=" . ${${"\x47LO\x42\x41LS"}["\x63\x63\x6fp\x6f\x72\x6b\x6f"]} . "&\x70\x70\x3d1\x26";
$helper->tpl_vars["t\x6fk\x65n"] = ${${"\x47LO\x42\x41LS"}["l\x62\x75\x78\x68z\x69\x74\x69h"]};
return ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x61\x67\x76s\x79t\x6f\x6b\x70"]};
}
private function createHelperForm($id_form, $form_title, $submit_action, $icon = null)
{
$cptwbtm = "fi\x72s\x74\x5f\x63\x61\x6cl";
$fwyptf = "h\x65\x6cp\x65r";
static $first_call = true;
${$fwyptf} = new HelperForm();
$helper->first_call = ${${"\x47\x4c\x4f\x42AL\x53"}["\x6a\x74qeu\x73\x6ec"]};
${$cptwbtm} = false;
$helper->module = $this;
$helper->title = $this->displayName;
$okznmoirg = "\x63\x75\x72\x72\x65\x6e\x74I\x6e\x64\x65x";
${"G\x4c\x4fB\x41\x4cS"}["v\x68nn\x6f\x78\x64vv\x6a"] = "\x69\x63\x6f\x6e";
$helper->name_controller = $this->name;
$helper->base_tpl = "\x70p\x72\x6f\x70\x65\x72t\x69e\x73_fo\x72m\x2etpl";
$helper->token = Tools::getAdminTokenLite("A\x64\x6di\x6e\x4dodu\x6ces");
$helper->languages = $this->active_languages;
$lyivintdcey = "s\x75b\x6d\x69\x74_act\x69\x6f\x6e";
$helper->currentIndex = AdminController::${$okznmoirg} . "\x26co\x6e\x66\x69gure=" . $this->name;
$helper->default_form_language = $this->default_language_id;
$helper->allow_employee_form_lang = $this->context->controller->allow_employee_form_lang;
$helper->toolbar_scroll = true;
$helper->submit_action = "";
$helper->id_form = ${${"G\x4c\x4f\x42A\x4c\x53"}["\x61\x72o\x70\x75k\x77b\x62\x77\x77"]};
$ugzmoltyqby = "h\x65l\x70\x65\x72";
$helper->pp_form = array(
"\x6c\x65ge\x6e\x64" => array(
"\x74\x69\x74\x6c\x65" => ${${"\x47\x4c\x4fBAL\x53"}["j\x76\x76mk\x6c\x71\x67\x79"]}
),
"\x73\x75bmit" => array(
"\x74\x69\x74le" => $this->l("\x53a\x76\x65"),
"i\x64" => ${${"G\x4c\x4fBA\x4c\x53"}["a\x72\x6fpuk\x77\x62b\x77\x77"]} . "\x5fsub\x6d\x69\x74\x5fbtn",
"\x6ea\x6d\x65" => ${$lyivintdcey},
"\x63l\x61ss" => "\x62\x74\x6e\x20\x62tn-\x64e\x66\x61u\x6c\x74\x20\x70\x75\x6cl-\x72i\x67\x68t \x70\x70-a\x63tio\x6e-\x62\x74n"
)
);
if (${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78\x6aos\x69\x6e\x77bs\x6c\x6dm"]} !== null)
$helper->pp_form["l\x65\x67\x65n\x64"]["\x69c\x6fn"] = ${${"GL\x4f\x42AL\x53"}["\x76\x68nn\x6fx\x64\x76\x76\x6a"]};
return ${$ugzmoltyqby};
}
private function createHelperFormSelect($name, $data, $type, $helper, $template, $all_properties, $property_types)
{
${"G\x4c\x4f\x42A\x4c\x53"}["w\x70z\x6d\x6bv\x68\x74\x6a\x65"] = "\x73\x65l\x65\x63\x74";
${"G\x4c\x4f\x42AL\x53"}["\x71\x64\x73\x74a\x62b"] = "ty\x70\x65";
${"\x47\x4cOB\x41LS"}["\x67\x6f\x78\x65\x78\x6ft\x67"] = "\x74\x79\x70\x65";
${"\x47\x4c\x4f\x42A\x4c\x53"}["lp\x6e\x69\x73\x68\x76jb"] = "\x6fpt\x69o\x6e\x73";
if (${${"\x47L\x4fB\x41\x4c\x53"}["g\x6fx\x65\x78\x6f\x74\x67"]} !== false && !is_array(${${"GL\x4fB\x41\x4cS"}["wr\x72\x76\x65\x64h\x6fq\x6a"]}))
${${"\x47L\x4fB\x41L\x53"}["q\x64\x73t\x61b\x62"]} = array(
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77\x72r\x76edh\x6fqj"]}
);
$bomnvglecvfd = "\x69\x64";
${${"\x47L\x4fB\x41L\x53"}["\x6c\x70\x6eis\x68\x76\x6a\x62"]} = array();
${"\x47L\x4f\x42\x41L\x53"}["h\x63\x79\x6ai\x78\x70\x6c\x78\x70\x61\x6e"] = "\x73ele\x63t";
$helper->fields_value[${${"\x47\x4c\x4f\x42\x41LS"}["\x61\x66\x6ba\x6as\x65"]}] = 0;
${${"\x47\x4cO\x42ALS"}["\x75\x66\x65jm\x65\x66\x72\x75"]}[] = array(
"id" => 0,
"\x6eame" => "&n\x62\x73\x70;"
);
foreach (${${"G\x4cO\x42\x41\x4c\x53"}["\x62\x6cz\x6cc\x64\x72e"]}[$this->default_language_id] as ${$bomnvglecvfd} => ${${"\x47\x4cO\x42AL\x53"}["\x77\x69\x66jg\x62\x6dr"]}) {
$aynlhqcuqnn = "t\x79\x70\x65";
if (${$aynlhqcuqnn} === false || in_array(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x69\x74\x6dqn\x68\x68"]}[${${"\x47LO\x42A\x4c\x53"}["\x77\x78\x76\x74dc\x6a\x6eu\x72n"]}], ${${"\x47\x4c\x4fB\x41\x4c\x53"}["w\x72r\x76e\x64\x68o\x71\x6a"]})) {
$pknxtsp = "\x70\x72\x6f\x70";
${${"\x47LO\x42A\x4c\x53"}["\x75\x66\x65\x6a\x6d\x65\x66\x72\x75"]}[] = array(
"i\x64" => ${${"G\x4c\x4f\x42AL\x53"}["\x77\x78v\x74d\x63\x6a\x6e\x75\x72\x6e"]},
"\x6eame" => PP::safeOutputValue(${$pknxtsp}["te\x78\x74"])
);
if (is_array(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x64gt\x67\x61\x62\x75\x79"]})) {
${"\x47\x4cO\x42\x41\x4c\x53"}["e\x6fyx\x66\x6d\x77\x6f\x69"] = "t\x65\x6d\x70l\x61t\x65";
$efyjughlwa = "\x69\x64";
if (isset(${${"G\x4c\x4fB\x41L\x53"}["\x78d\x67\x74\x67ab\x75\x79"]}[${${"\x47\x4cO\x42A\x4cS"}["a\x66k\x61j\x73\x65"]}]) && ${${"\x47\x4c\x4f\x42AL\x53"}["eoy\x78\x66\x6dw\x6f\x69"]}[${${"GLO\x42\x41\x4cS"}["\x61\x66\x6b\x61j\x73\x65"]}] == ${${"GLO\x42\x41L\x53"}["\x77\x69\x66\x6a\x67\x62\x6dr"]}["\x74ex\x74"])
$helper->fields_value[${${"GL\x4f\x42\x41\x4cS"}["\x61\x66\x6ba\x6a\x73\x65"]}] = ${$efyjughlwa};
} else {
$yssjyvhju = "\x69\x64";
${"\x47L\x4fB\x41\x4cS"}["\x72\x6d\x63\x6f\x76i\x6f\x77\x6c\x66\x73"] = "\x6ea\x6d\x65";
$ctddumhcfj = "t\x65\x6d\x70\x6ca\x74\x65";
if (${$ctddumhcfj} == ${${"GL\x4f\x42\x41\x4c\x53"}["w\x69\x66\x6a\x67\x62\x6d\x72"]}["t\x65\x78\x74"])
$helper->fields_value[${${"GLO\x42\x41\x4cS"}["\x72\x6d\x63ov\x69o\x77l\x66\x73"]}] = ${$yssjyvhju};
}
}
}
${${"G\x4c\x4f\x42A\x4c\x53"}["\x77pzm\x6b\x76\x68\x74\x6a\x65"]} = array(
"type" => "\x73e\x6c\x65c\x74",
"nam\x65" => ${${"\x47\x4c\x4fBA\x4c\x53"}["af\x6baj\x73\x65"]},
"\x6f\x70t\x69\x6fn\x73" => array(
"\x71\x75\x65\x72\x79" => ${${"\x47L\x4fB\x41LS"}["\x75\x66\x65\x6a\x6de\x66\x72u"]},
"i\x64" => "\x69\x64",
"n\x61m\x65" => "\x6ea\x6de"
)
);
if (is_array(${${"\x47\x4cOB\x41\x4cS"}["\x67g\x70\x69\x70\x6a"]})) {
${"\x47\x4cOB\x41LS"}["\x63\x79\x69\x71\x73h"] = "v\x61\x6cu\x65";
$gnspeqpbku = "\x64\x61\x74\x61";
$sojbqdqv = "\x76\x61\x6c\x75\x65";
foreach (${$gnspeqpbku} as ${${"GLOBA\x4c\x53"}["\x6e\x7ae\x6dr\x6a"]} => ${${"GLO\x42\x41\x4c\x53"}["\x63\x79\x69\x71\x73h"]})
${${"G\x4cOB\x41L\x53"}["\x70w\x6d\x6d\x6cgr\x68\x76\x6f\x66\x77"]}[${${"G\x4c\x4f\x42AL\x53"}["\x6e\x7a\x65m\x72j"]}] = ${$sojbqdqv};
}
return ${${"\x47\x4c\x4f\x42AL\x53"}["\x68\x63\x79j\x69\x78\x70\x6cx\x70a\x6e"]};
}
private function generateForm($helper, $form, $tpl_vars = null)
{
$biorpqfi = "\x66\x6f\x72\x6d";
${"\x47L\x4fB\x41\x4c\x53"}["\x66u\x6d\x6f\x62\x62s"] = "\x66\x6fr\x6d";
${"\x47\x4cO\x42\x41\x4cS"}["t\x71\x76\x76x\x70ig\x69"] = "\x66\x6f\x72\x6d";
$wymeiktkqelp = "for\x6d";
${${"G\x4c\x4f\x42A\x4cS"}["\x74\x64\x6b\x65\x6d\x6fj\x76"]} = array(
"\x66\x6fr\x6d" => array()
);
${"\x47\x4c\x4f\x42A\x4cS"}["w\x70\x70\x61\x62b\x68\x63\x63\x6f"] = "f\x6fr\x6d";
$trgdjs = "\x66\x6f\x72\x6d";
${"G\x4c\x4f\x42A\x4cS"}["\x65\x6e\x78\x61\x77\x76\x6c\x6c\x62xu"] = "\x6be\x79";
if (!isset(${${"\x47\x4cO\x42A\x4cS"}["\x66\x75m\x6f\x62\x62s"]}["\x66o\x72\x6d"]))
${${"G\x4c\x4f\x42\x41\x4cS"}["\x77pp\x61b\x62hc\x63\x6f"]} = array(
"f\x6f\x72\x6d" => ${${"\x47LO\x42\x41\x4c\x53"}["\x74q\x76\x76xp\x69gi"]}
);
if (!isset(${$biorpqfi}["\x66orm"]["i\x64_\x66orm"]) && isset($helper->id_form))
${$wymeiktkqelp}["form"]["i\x64\x5ff\x6f\x72m"] = $helper->id_form;
foreach (${$trgdjs} as ${${"\x47L\x4fB\x41\x4c\x53"}["e\x6exawv\x6c\x6cbx\x75"]} => ${${"G\x4cO\x42\x41L\x53"}["\x71\x62\x64\x73\x7a\x76uv"]}) {
$rmoobmnv = "k\x65\x79";
$mwkyjvk = "\x66";
${${"\x47\x4c\x4fB\x41L\x53"}["\x74dke\x6d\x6f\x6a\x76"]}[${$rmoobmnv}] = array(
"form" => array_merge($helper->pp_form, ${$mwkyjvk})
);
$rmyznlexvb = "\x76\x61\x72s";
if (isset(${$rmyznlexvb}[${${"G\x4c\x4fB\x41L\x53"}["\x6e\x7a\x65\x6d\x72\x6a"]}]["\x66\x6f\x72\x6d"]["\x62\x75t\x74o\x6es"]) && ${${"\x47L\x4fBA\x4cS"}["\x74\x64\x6b\x65\x6d\x6f\x6av"]}[${${"G\x4cO\x42A\x4cS"}["\x6ez\x65\x6d\x72\x6a"]}]["fo\x72m"]["\x62\x75tt\x6fn\x73"] === false) {
$ubdxebl = "\x6b\x65\x79";
$jnaxvhz = "\x76\x61\x72\x73";
unset(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x64\x6b\x65\x6d\x6fj\x76"]}[${$ubdxebl}]["\x66or\x6d"]["b\x75\x74t\x6f\x6es"]);
unset(${$jnaxvhz}[${${"G\x4c\x4fBA\x4c\x53"}["n\x7a\x65\x6d\x72\x6a"]}]["f\x6f\x72m"]["\x73\x75bmi\x74"]);
}
}
if (is_array(${${"GL\x4f\x42\x41\x4c\x53"}["\x74bdg\x6b\x63\x6b\x73\x78\x78p"]})) {
${"\x47\x4c\x4fB\x41\x4c\x53"}["u\x73\x64\x6f\x62\x73\x68d\x76"] = "\x76al\x75\x65";
${"\x47\x4c\x4fBA\x4c\x53"}["\x71fj\x69\x62\x77\x6c\x66"] = "\x76\x61\x6c\x75\x65";
${"\x47\x4cO\x42\x41\x4cS"}["u\x66\x62\x66\x74p\x6d"] = "\x74p\x6c_\x76a\x72s";
foreach (${${"\x47\x4cO\x42\x41L\x53"}["\x75\x66\x62\x66tpm"]} as ${${"G\x4c\x4f\x42\x41L\x53"}["\x6e\x7aem\x72\x6a"]} => ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75\x73\x64\x6f\x62s\x68\x64\x76"]})
${${"\x47\x4cO\x42\x41\x4cS"}["\x74\x64\x6be\x6d\x6f\x6a\x76"]}["f\x6f\x72m"][${${"G\x4c\x4f\x42\x41\x4cS"}["\x6e\x7aem\x72j"]}] = ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x71f\x6ai\x62\x77lf"]};
}
$ndgmtvymr = "va\x72s";
${$ndgmtvymr}["f\x6f\x72\x6d"]["_PS_A\x44\x4d\x49\x4e\x5fI\x4dG\x5f"] = _PS_ADMIN_IMG_;
${${"\x47\x4cO\x42AL\x53"}["td\x6bem\x6f\x6av"]}["form"]["fo\x72\x6d"]["i\x6eput"][] = array(
"ty\x70e" => "hidd\x65n",
"na\x6de" => "\x70\x70"
);
$helper->fields_value["\x70p"] = 1;
return $helper->generateForm(${${"\x47LO\x42AL\x53"}["td\x6b\x65m\x6f\x6a\x76"]});
}
private function saveTemplate()
{
$rddlkjvkay = "\x72\x65\x73\x75\x6c\x74";
$tnqjxxmnke = "\x65\x78t\x5f\x6d\x65\x74\x68o\x64";
$emsemrbj = "u\x6ei\x74_p\x72i\x63e\x5f\x72\x61\x74io";
${$rddlkjvkay} = array();
${${"G\x4c\x4fB\x41\x4c\x53"}["\x6a\x66\x7ar\x77\x73\x70\x71u\x64\x72"]}["\x65\x72\x72o\x72"] = "";
$rzxfnmo = "\x68i\x64\x64\x65n";
$tmlgdt = "mod\x65";
$irpcclv = "\x6d\x6f\x64\x65";
$ieyhygndymx = "\x70p\x5f\x62o\x5fq\x74\x79_a\x76\x61\x69\x6c\x61\x62\x6c\x65_\x64i\x73\x70l\x61\x79";
${"GL\x4fB\x41LS"}["\x77\x68\x6a\x6c\x75\x63\x6f\x79e\x66"] = "\x71\x74\x79\x5f\x70\x6f\x6c\x69c\x79";
${$irpcclv} = Tools::getValue("\x6dode");
${"\x47\x4cO\x42\x41\x4cS"}["\x74vns\x70p"] = "qty_\x6d\x6fd\x65";
$wfkocui = "\x69\x64";
$tmcbwyolnr = "\x72\x65\x73\x75\x6c\x74";
if (${${"\x47\x4cOBA\x4c\x53"}["j\x74zr\x73\x65\x6e\x6c\x73\x74cd"]} == "\x61d\x64")
${${"\x47L\x4fB\x41\x4cS"}["\x77xvtd\x63\x6a\x6e\x75\x72n"]} = 0;
elseif (${$tmlgdt} == "\x63opy")
${${"GLO\x42A\x4c\x53"}["w\x78\x76\x74dc\x6an\x75\x72n"]} = (int) Tools::getValue("id");
else {
${"\x47L\x4f\x42\x41\x4cS"}["\x64\x64\x6cp\x67\x79\x74"] = "\x6do\x64\x65";
${${"\x47L\x4fBAL\x53"}["\x64\x64l\x70\x67\x79t"]} = "\x65\x64i\x74";
${${"G\x4cO\x42\x41\x4c\x53"}["\x77\x78v\x74d\x63jn\x75rn"]} = (int) Tools::getValue("\x69\x64");
}
$mgcadncn = "\x74\x65\x6d\x70\x6c\x61\x74e\x5fp\x72\x6f\x70er\x74\x69e\x73";
$gfkkklqukobk = "q\x74\x79_\x70\x6fl\x69c\x79";
$upcadlqbd = "\x71t\x79\x5f\x70\x6f\x6ci\x63\x79";
$lugzexbn = "\x74\x65m\x70l\x61\x74\x65\x73";
${"G\x4c\x4f\x42A\x4c\x53"}["n\x6a\x76f\x79\x6e\x75"] = "\x64\x69\x73p\x6ca\x79\x5f\x6dod\x65";
if (${$wfkocui} < 0)
return ${$tmcbwyolnr};
$wkuhfcb = "\x64\x69\x73\x70\x6cay\x5f\x6d\x6fd\x65";
${${"\x47\x4c\x4f\x42AL\x53"}["kvg\x6eh\x73w"]} = array();
${"G\x4c\x4f\x42\x41\x4c\x53"}["dx\x62\x68\x6e\x74j\x76\x6d\x78\x6e"] = "d\x69\x73\x70l\x61\x79\x5f\x6do\x64\x65";
${$lugzexbn} = array();
${${"GL\x4f\x42\x41LS"}["tg\x78h\x79\x65zjc\x72"]} = array();
$jedije = "\x6c\x61n\x67u\x61ge";
${"G\x4cO\x42\x41\x4c\x53"}["\x63v\x62\x66\x72\x6d\x66"] = "ex\x74_\x6d\x65\x74\x68\x6fd";
${${"\x47\x4c\x4f\x42A\x4c\x53"}["tg\x78\x68\x79\x65\x7a\x6acr"]}["\x70p\x5f\x65\x78p\x6cana\x74i\x6f\x6e"] = (int) Tools::getValue("p\x70\x5f\x65\x78p\x6cana\x74i\x6fn");
${${"\x47L\x4fB\x41\x4c\x53"}["\x74\x67\x78\x68\x79\x65z\x6ac\x72"]}["\x70\x70_\x70rice_te\x78t"] = (int) Tools::getValue("pp\x5fp\x72i\x63e\x5ftext");
$jsigjnuw = "\x71\x74\x79_\x70\x6f\x6c\x69\x63\x79";
${"\x47LO\x42\x41L\x53"}["\x6ay\x69\x6d\x77bi\x72\x73s\x67"] = "\x65r\x72\x6f\x72\x73";
${$mgcadncn}["pp\x5fqt\x79_\x74e\x78\x74"] = (int) Tools::getValue("\x70p\x5f\x71\x74\x79\x5fte\x78\x74");
$pbswokrfrylj = "\x70ri\x63e\x5f\x64\x69\x73\x70\x6c\x61\x79\x5f\x6d\x6f\x64\x65";
${${"\x47\x4c\x4fB\x41\x4cS"}["tgxh\x79e\x7aj\x63r"]}["p\x70\x5f\x75nity_\x74\x65x\x74"] = (int) Tools::getValue("\x70\x70\x5fu\x6eit\x79\x5f\x74\x65x\x74");
${"\x47\x4cOBA\x4c\x53"}["\x76l\x78\x66\x72\x65o\x74\x68\x70\x63"] = "\x71\x74\x79\x5fp\x6f\x6c\x69c\x79";
${$tnqjxxmnke} = (int) Tools::getValue($this->multidimensional_plugin ? "pp\x5fex\x74_\x6d\x65\x74\x68o\x64" : "\x70p_\x65\x78\x74\x5f\x6d\x65\x74\x68o\x64_\x66a\x6c\x6c\x62\x61\x63k");
if (${${"\x47L\x4fB\x41\x4c\x53"}["c\x76\x62f\x72m\x66"]} == 3)
${${"\x47L\x4f\x42\x41\x4c\x53"}["g\x6f\x6e\x6er\x69\x6a\x71\x6c\x73\x71"]} = 2;
${${"\x47\x4cOB\x41\x4cS"}["\x64\x78bh\x6et\x6av\x6d\x78n"]} = ((int) Tools::getValue("\x70\x70_d\x69\x73\x70lay_m\x6f\x64\x65") != 0 ? 1 : 0);
$kythxtvzju = "qty\x5fpo\x6cicy";
if ((int) Tools::getValue("p\x70_d\x69s\x70l\x61y_\x6d\x6f\x64e\x5fre\x74ai\x6c_p\x72i\x63e", 0) > 0)
${$wkuhfcb} += 2;
if ((int) Tools::getValue("pp_d\x69\x73\x70\x6cay_\x6d\x6fde\x5f\x62\x61se_uni\x74\x5fpr\x69c\x65", 0) > 0)
${${"\x47L\x4f\x42AL\x53"}["\x6ej\x76f\x79\x6e\x75"]} += 4;
${${"\x47L\x4fB\x41\x4c\x53"}["\x6f\x64\x6d\x75m\x67\x72\x76"]} = (int) Tools::getValue("pp\x5f\x70\x72\x69\x63\x65\x5f\x64\x69\x73\x70\x6c\x61\x79_mo\x64e");
if (!in_array(${$pbswokrfrylj}, array(
0,
1,
16
)))
${${"G\x4c\x4f\x42A\x4cS"}["\x6f\x64\x6d\x75m\x67\x72\x76"]} = 0;
${$rzxfnmo} = ((int) Tools::getValue("\x70\x70_b\x6f\x5fhid\x64\x65n", 0) == 1 ? 1 : 0);
${"\x47\x4c\x4f\x42\x41LS"}["\x6e\x66\x71\x64qk\x68ngx"] = "res\x75lt";
${"G\x4c\x4f\x42A\x4c\x53"}["\x61o\x68\x74\x7a\x62\x79"] = "\x64e\x66a\x75\x6c\x74_\x71u\x61nt\x69\x74\x79";
${${"\x47\x4cO\x42\x41\x4cS"}["\x67qh\x74\x72\x77\x79\x6a\x75\x67y\x63"]} = (int) Tools::getValue("\x70\x70\x5f\x62o\x5fqt\x79\x5f\x61vai\x6cable\x5f\x64\x69\x73pl\x61y");
if (!in_array(${$ieyhygndymx}, array(
0,
1,
2
)))
${${"\x47LO\x42\x41\x4c\x53"}["\x67\x71\x68trw\x79\x6a\x75\x67\x79\x63"]} = 0;
${${"\x47\x4c\x4f\x42\x41LS"}["\x6e\x6e\x65m\x68hnk\x69t"]} = (int) Tools::getValue("\x70p\x5fbo_measu\x72\x65ment\x5fsyst\x65\x6d");
${$emsemrbj} = $this->getFloatValue("u\x6ei\x74\x5fp\x72i\x63e_r\x61\x74i\x6f");
${${"\x47L\x4f\x42\x41L\x53"}["m\x6c\x77d\x76yp\x7a\x79t"]} = $this->getFloatValue("\x6d\x69\x6eim\x61l_pr\x69ce\x5fra\x74i\x6f");
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x68\x6c\x74\x6e\x72\x66\x67"]} = (int) Tools::getValue("\x70\x70\x5fq\x74y\x5f\x70ol\x69\x63\x79", 0);
${$jsigjnuw} = (${$kythxtvzju} == 3 ? 2 : ${${"G\x4c\x4f\x42ALS"}["\x76\x6c\x78f\x72\x65o\x74h\x70\x63"]});
if (${${"\x47\x4cO\x42\x41\x4c\x53"}["g\x6f\x6en\x72\x69\x6aq\x6c\x73q"]} > 0) {
${"G\x4c\x4f\x42\x41\x4c\x53"}["v\x76\x76\x64y\x70\x6c"] = "\x71\x74y_\x70\x6f\x6c\x69\x63\x79";
${"G\x4cO\x42\x41\x4cS"}["rom\x6dw\x6ct\x6ag\x78s"] = "\x65xt_\x70\x6fl\x69\x63y";
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x6b\x78\x68hpgqr\x68"]} = (int) Tools::getValue("\x70\x70\x5fe\x78t\x5f\x70olicy", 0);
if (!in_array(${${"\x47\x4cO\x42A\x4c\x53"}["\x66kxh\x68\x70\x67\x71\x72\x68"]}, array(
0,
1,
2
)))
${${"G\x4c\x4f\x42A\x4c\x53"}["\x66\x6b\x78\x68h\x70\x67q\x72\x68"]} = 0;
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x76v\x64\x79\x70\x6c"]} = (${${"\x47\x4cO\x42AL\x53"}["r\x6f\x6d\x6d\x77l\x74\x6a\x67\x78\x73"]} == 1 ? 0 : 2);
}
${${"GL\x4f\x42A\x4c\x53"}["tv\x6es\x70\x70"]} = (${$gfkkklqukobk} ? ((int) Tools::getValue("p\x70_\x71ty\x5fmod\x65") != 0 ? 1 : 0) : 0);
${${"\x47\x4c\x4f\x42A\x4c\x53"}["w\x66\x69\x61\x63\x61\x73b\x78"]} = (${${"G\x4c\x4fBA\x4cS"}["\x77\x68\x6al\x75\x63\x6f\x79\x65f"]} == 2 ? $this->getFloatValue("m\x69\x6eimal\x5f\x71u\x61\x6etit\x79") : (int) Tools::getValue("\x6d\x69n\x69mal\x5f\x71u\x61\x6eti\x74\x79"));
${${"\x47\x4c\x4f\x42\x41L\x53"}["a\x6f\x68\x74\x7aby"]} = (${$upcadlqbd} == 2 ? $this->getFloatValue("\x64\x65f\x61\x75lt_q\x75\x61nt\x69ty") : (int) Tools::getValue("\x64e\x66au\x6ct_\x71u\x61\x6e\x74\x69t\x79"));
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65\x73\x72n\x6cx\x68\x67m"]} = (${${"G\x4cO\x42\x41\x4c\x53"}["h\x6ctn\x72\x66\x67"]} == 2 ? $this->getFloatValue("\x71\x74y_s\x74ep") : (int) Tools::getValue("qty_\x73\x74\x65\x70"));
${${"\x47\x4cO\x42\x41\x4cS"}["v\x6ep\x7aq\x61\x77f"]} = PP::resolveMS(${${"G\x4c\x4fB\x41\x4c\x53"}["n\x6e\x65\x6d\x68\x68\x6e\x6b\x69\x74"]});
foreach ($this->active_languages as ${$jedije}) {
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x76tw\x67tvl\x71\x65r\x69"] = "\x64\x61\x74\x61";
$nmihmj = "qty_\x6d\x6f\x64\x65";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x72h\x7a\x78\x73k\x64x"] = "\x64\x61\x74a";
$qaybtp = "dat\x61";
${"GL\x4f\x42\x41\x4c\x53"}["\x70\x71\x6b\x6aku\x6d\x72d"] = "def\x61\x75\x6c\x74\x5f\x71ua\x6e\x74\x69\x74\x79";
$fxnhppucudb = "la\x6e\x67\x75a\x67\x65";
$hmgjbwxj = "\x70r\x69c\x65\x5f\x64i\x73pl\x61y\x5f\x6dode";
${"\x47\x4cO\x42\x41LS"}["\x75\x66\x79\x77\x63b\x74\x78"] = "\x69\x64\x5f\x6c\x61\x6eg";
$oeeclzx = "\x64\x61\x74a";
$ytrfxhbqcug = "\x64\x61\x74a";
$nvfheuiu = "\x64a\x74\x61";
${${"G\x4cO\x42\x41\x4c\x53"}["\x75\x66ywcb\x74x"]} = ${$fxnhppucudb}["\x69d\x5f\x6c\x61\x6eg"];
${${"\x47LO\x42\x41\x4c\x53"}["\x78dgtga\x62\x75\x79"]} = array();
${"GL\x4f\x42\x41\x4c\x53"}["\x70x\x6a\x66pr\x77a\x70\x64"] = "da\x74a";
${${"\x47\x4cO\x42\x41\x4c\x53"}["\x72\x68z\x78\x73kd\x78"]} = array();
${${"G\x4c\x4f\x42\x41\x4c\x53"}["ggp\x69p\x6a"]}["i\x64_pp_\x74e\x6d\x70lat\x65"] = ${${"\x47LOB\x41\x4c\x53"}["\x77\x78\x76\x74d\x63j\x6eur\x6e"]};
${"\x47L\x4f\x42\x41LS"}["\x7a\x69\x68\x63\x65\x6c\x6b\x7as\x68"] = "t\x65\x6d\x70\x6c\x61t\x65s";
$ojfvwen = "\x74\x65\x6dp\x6c\x61\x74e";
${${"\x47\x4c\x4fBAL\x53"}["\x70xj\x66\x70r\x77\x61\x70\x64"]}["q\x74y\x5f\x70\x6f\x6cicy"] = ${${"\x47\x4cO\x42\x41\x4c\x53"}["h\x6ctn\x72\x66\x67"]};
$juxoxx = "\x6d\x69\x6e\x69m\x61\x6c_p\x72\x69\x63e\x5fr\x61t\x69o";
${${"\x47\x4c\x4fBA\x4c\x53"}["\x67\x67\x70\x69pj"]}["\x71\x74\x79_\x6d\x6fd\x65"] = ${$nmihmj};
${${"GL\x4f\x42A\x4cS"}["\x75\x76t\x77\x67\x74\x76lq\x65\x72i"]}["\x64i\x73\x70\x6ca\x79\x5fm\x6fde"] = ${${"\x47\x4cO\x42\x41L\x53"}["w\x71\x76\x64p\x68v"]};
${"\x47L\x4f\x42\x41\x4c\x53"}["\x62\x79\x73\x70\x66\x73\x69\x6d\x62"] = "id_l\x61\x6e\x67";
${$oeeclzx}["\x70\x72ic\x65_\x64ispl\x61y\x5fmode"] = ${$hmgjbwxj};
$mafxhd = "d\x61\x74a";
${${"\x47\x4c\x4fB\x41\x4cS"}["\x67gp\x69\x70\x6a"]}["me\x61\x73ure\x6de\x6e\x74\x5fs\x79\x73\x74e\x6d"] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x6ee\x6d\x68hn\x6bit"]};
$nlcupq = "\x69\x64";
${"\x47L\x4fBA\x4c\x53"}["x\x74\x77g\x73y\x71\x61"] = "\x64a\x74\x61";
${${"\x47LO\x42\x41\x4c\x53"}["\x67\x67\x70ip\x6a"]}["\x75\x6eit_p\x72ice_rati\x6f"] = ${${"\x47\x4c\x4f\x42ALS"}["\x6ef\x79\x73qo\x75\x79"]};
${"G\x4c\x4f\x42\x41\x4c\x53"}["lf\x6f\x71\x79oy\x66"] = "\x74e\x6d\x70\x6c\x61\x74\x65";
${${"G\x4c\x4f\x42\x41LS"}["\x67\x67\x70\x69pj"]}["\x6dini\x6dal_p\x72\x69ce\x5f\x72a\x74\x69o"] = ${$juxoxx};
${"G\x4cOB\x41\x4c\x53"}["w\x66\x70\x73r\x70\x77\x6ey\x77"] = "\x64ata";
${${"\x47\x4c\x4f\x42A\x4cS"}["g\x67pi\x70\x6a"]}["m\x69n\x69m\x61\x6c\x5f\x71uan\x74ity"] = ${${"G\x4cO\x42\x41\x4c\x53"}["\x77f\x69\x61\x63\x61\x73bx"]};
${$qaybtp}["\x64\x65\x66\x61u\x6ct\x5fq\x75a\x6etity"] = ${${"\x47\x4cO\x42\x41L\x53"}["\x70\x71\x6b\x6a\x6bum\x72d"]};
${$mafxhd}["q\x74\x79_s\x74ep"] = ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65s\x72nl\x78\x68\x67\x6d"]};
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x74w\x67sy\x71\x61"]}["e\x78t"] = (${${"G\x4c\x4f\x42A\x4c\x53"}["g\x6fn\x6e\x72\x69\x6a\x71\x6c\x73\x71"]} > 0 ? 1 : 0);
${$nvfheuiu}["qty_av\x61\x69\x6c\x61ble\x5f\x64\x69\x73p\x6ca\x79"] = ${${"\x47\x4cOB\x41\x4c\x53"}["\x67\x71\x68\x74r\x77\x79\x6a\x75g\x79\x63"]};
${${"\x47\x4c\x4fB\x41L\x53"}["\x67g\x70\x69\x70j"]}["h\x69\x64de\x6e"] = ${${"\x47\x4c\x4f\x42A\x4c\x53"}["r\x73a\x64\x75\x76\x68\x65"]};
${${"GLO\x42\x41\x4cS"}["\x67g\x70\x69\x70j"]}["\x63ss"] = Tools::getValue("p\x70\x5f\x63\x73s");
${$ytrfxhbqcug}["t\x65mp\x6cat\x65_p\x72\x6f\x70ert\x69\x65\x73"] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x67\x78\x68y\x65z\x6a\x63\x72"]};
PP::calcProductProperties(${$ojfvwen}, ${${"\x47L\x4f\x42A\x4cS"}["\x77\x66\x70s\x72\x70w\x6ey\x77"]});
$this->getValue(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78d\x67\x74\x67\x61b\x75\x79"]}, "n\x61m\x65", $this->l("\x6e\x61\x6d\x65:"), ${${"\x47\x4c\x4f\x42ALS"}["k\x76\x67n\x68\x73\x77"]}, ${${"\x47\x4c\x4f\x42\x41LS"}["\x73\x70\x7a\x71l\x68"]});
${${"GL\x4f\x42\x41\x4c\x53"}["\x6c\x66\x6fqy\x6f\x79f"]}["\x64e\x73\x63\x72i\x70\x74\x69\x6f\x6e"] = Tools::getValue("\x64\x65s\x63r\x69\x70ti\x6fn\x5f\x69\x6e\x70u\x74_" . ${${"G\x4c\x4f\x42AL\x53"}["\x73\x70z\x71l\x68"]});
${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x7a\x69\x68\x63e\x6c\x6b\x7a\x73\x68"]}[${${"\x47\x4c\x4f\x42\x41LS"}["bys\x70f\x73i\x6d\x62"]}][${$nlcupq}] = ${${"\x47\x4cO\x42\x41LS"}["\x78d\x67\x74g\x61\x62\x75\x79"]};
}
if (count(${${"\x47L\x4f\x42AL\x53"}["jyim\x77\x62i\x72\x73\x73\x67"]}) == 0) {
$jsrgghujugi = "\x74empla\x74\x65";
${"\x47\x4cOBA\x4c\x53"}["\x6c\x66\x6f\x78\x6e\x70y\x64"] = "t\x65mp\x6c\x61\x74e";
$iqxdtuswfmw = "\x74\x65\x6d\x70\x6c\x61t\x65";
${"\x47\x4c\x4f\x42\x41L\x53"}["c\x73\x79\x74\x6am"] = "te\x6d\x70l\x61te";
${"\x47\x4c\x4f\x42AL\x53"}["\x67\x66n\x63h\x6ft\x63"] = "l\x61\x6eg\x75a\x67e";
$yieghj = "\x74\x65\x6d\x70\x6c\x61\x74\x65";
${${"\x47LOB\x41\x4cS"}["n\x64g\x79\x77\x68n\x66\x74\x65\x6bw"]} = Db::getInstance();
$yfgmogghmr = "\x74\x65\x6d\x70\x6c\x61\x74\x65";
${"\x47\x4c\x4fBAL\x53"}["x\x66\x67\x78\x69\x72\x76\x65"] = "\x69d\x5f\x70\x70\x5f\x74\x65m\x70l\x61te";
$shtyhspsm = "\x69\x64\x5fpp\x5fte\x6dp\x6cat\x65";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75\x63\x61\x78\x69\x6b\x75o\x77\x6dt"] = "\x74\x65\x6d\x70\x6ca\x74\x65";
$pwhhhrfldk = "\x74\x65m\x70\x6ca\x74\x65";
if (${${"\x47\x4c\x4f\x42ALS"}["\x6a\x74\x7a\x72\x73en\x6c\x73t\x63d"]} == "\x65di\x74")
${${"\x47L\x4fB\x41\x4c\x53"}["\x70x\x6dlb\x72\x73\x71"]} = ${${"\x47\x4c\x4fB\x41L\x53"}["w\x78v\x74\x64\x63\x6anu\x72\x6e"]};
else {
${${"G\x4cOBA\x4cS"}["\x70\x78\x6d\x6c\x62\x72\x73\x71"]} = $this->getNextId(${${"\x47\x4cOB\x41\x4c\x53"}["\x6e\x64gy\x77hn\x66\x74\x65kw"]}, "\x70\x70\x5fte\x6dp\x6c\x61te", "\x69d\x5f\x70\x70_\x74empl\x61t\x65");
$zncoygsa = "\x6ca\x6e\x67\x75\x61\x67\x65";
${"\x47L\x4fB\x41\x4cS"}["\x70\x67u\x79\x74\x65\x75ul"] = "\x6c\x61n\x67u\x61\x67\x65";
$db->execute("\x49NSER\x54\x20\x49N\x54O\x20`" . _DB_PREFIX_ . "p\x70_temp\x6cate`\x20(\x69d\x5f\x70p_t\x65m\x70l\x61\x74\x65, ver\x73i\x6f\x6e)\x20\x56ALUE\x20(" . ${${"\x47L\x4fB\x41\x4cS"}["\x70x\x6dl\x62\x72\x73\x71"]} . ", 0)");
$afsvjkz = "\x69d";
foreach ($this->active_languages as ${$zncoygsa})
${${"GLOB\x41LS"}["\x71\x6e\x6fp\x69r\x79\x70k\x73d\x79"]}[${${"G\x4c\x4f\x42\x41LS"}["\x70\x67u\x79t\x65\x75\x75l"]}["\x69\x64_\x6ca\x6eg"]][${$afsvjkz}]["id\x5f\x70p_\x74empla\x74e"] = ${${"G\x4cO\x42A\x4cS"}["\x70\x78m\x6c\x62\x72\x73\x71"]};
}
$db->autoExecute(_DB_PREFIX_ . "p\x70_t\x65mp\x6ca\x74\x65", array(
"\x76e\x72\x73i\x6fn" => PP::PP_TEMPLATE_VERSION,
"\x71\x74\x79\x5f\x70\x6f\x6c\x69\x63y" => ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x64\x67t\x67\x61b\x75\x79"]}["\x70p_\x71\x74y_po\x6c\x69\x63\x79"],
"\x71\x74y_mode" => ${${"\x47LO\x42\x41\x4c\x53"}["\x6cfox\x6e\x70y\x64"]}["p\x70\x5fqt\x79_\x6d\x6fde"],
"d\x69s\x70la\x79\x5f\x6dode" => ${${"GL\x4f\x42A\x4c\x53"}["\x63s\x79tj\x6d"]}["p\x70_\x64\x69s\x70\x6c\x61\x79_mo\x64\x65"],
"\x70r\x69c\x65_\x64i\x73\x70lay_m\x6fd\x65" => ${${"G\x4c\x4f\x42\x41LS"}["xd\x67\x74g\x61\x62\x75\x79"]}["\x70p\x5fp\x72ic\x65\x5fdis\x70la\x79\x5fmod\x65"],
"me\x61\x73\x75\x72\x65\x6d\x65\x6et\x5fsystem" => ${${"GL\x4f\x42\x41L\x53"}["\x78\x64\x67tg\x61\x62\x75y"]}["pp\x5f\x62\x6f\x5f\x6d\x65a\x73\x75r\x65\x6d\x65nt\x5fsystem"],
"unit\x5fpr\x69\x63\x65\x5f\x72a\x74\x69\x6f" => ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x64\x67\x74\x67\x61\x62\x75y"]}["pp_u\x6e\x69\x74\x5f\x70ri\x63\x65\x5frat\x69\x6f"],
"minim\x61\x6c\x5fp\x72\x69\x63\x65_r\x61t\x69\x6f" => ${${"\x47L\x4f\x42\x41LS"}["u\x63\x61x\x69\x6b\x75\x6fw\x6d\x74"]}["pp_m\x69n\x69mal_pric\x65\x5fra\x74io"],
"m\x69\x6ei\x6dal_q\x75a\x6e\x74ity" => ${${"G\x4c\x4f\x42AL\x53"}["\x78\x64\x67\x74g\x61\x62uy"]}["\x64\x62_\x6d\x69\x6ei\x6dal\x5fqua\x6e\x74ity"],
"\x64\x65fa\x75lt_qua\x6eti\x74\x79" => ${${"G\x4cO\x42\x41L\x53"}["\x78\x64g\x74g\x61b\x75\x79"]}["db_\x64ef\x61\x75\x6ct_quan\x74\x69t\x79"],
"\x71t\x79\x5fst\x65p" => ${$yieghj}["db\x5fqty_st\x65p"],
"ex\x74" => ${$yfgmogghmr}["p\x70\x5fext"],
"\x71\x74\x79_ava\x69la\x62\x6ce\x5fd\x69spla\x79" => ${${"G\x4c\x4f\x42\x41L\x53"}["x\x64\x67t\x67\x61bu\x79"]}["\x70p_\x62o_\x71ty\x5favai\x6ca\x62le_\x64i\x73pl\x61\x79"],
"h\x69\x64de\x6e" => ${$jsrgghujugi}["\x70p_b\x6f\x5fh\x69d\x64en"],
"c\x73\x73" => ${$pwhhhrfldk}["pp_\x63ss"]
), "U\x50\x44\x41\x54E", "\x69d_\x70p_\x74e\x6d\x70late\x20\x3d\x20" . ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x78mlb\x72sq"]});
$db->delete(_DB_PREFIX_ . "\x70p\x5ft\x65m\x70\x6ca\x74e\x5f\x70r\x6fpe\x72ty", "\x69d\x5fpp_\x74\x65\x6dp\x6c\x61\x74\x65\x20= " . ${$shtyhspsm});
array_walk(${${"G\x4c\x4f\x42\x41LS"}["\x74g\x78hye\x7a\x6a\x63\x72"]}, create_function("&\$val\x75\x65,\x20\$k\x65y, \$\x69\x64_\x70\x70\x5ft\x65m\x70late", "\$v\x61\x6c\x75\x65 =\x20\x22(\".\$\x69\x64\x5fpp\x5ft\x65\x6d\x70\x6ca\x74e.\x22,'\".\$\x6b\x65\x79.\x22',\x22\x2e\$\x76\x61lue\x2e\x22)\"\x3b"), ${${"\x47\x4c\x4fB\x41LS"}["\x70\x78m\x6c\x62\x72s\x71"]});
$db->execute("\x49\x4e\x53\x45\x52T\x20\x49\x4eTO " . _DB_PREFIX_ . "\x70p_\x74\x65\x6d\x70la\x74\x65\x5fpr\x6f\x70e\x72\x74\x79 (\x69\x64_p\x70\x5f\x74\x65m\x70\x6c\x61t\x65,\x70p_name,id_p\x70_\x70\x72ope\x72t\x79) \x56ALU\x45\x53\x20" . implode(",", ${${"\x47\x4cOB\x41\x4c\x53"}["t\x67\x78\x68\x79\x65z\x6a\x63\x72"]}));
foreach ($this->active_languages as ${${"\x47L\x4f\x42A\x4cS"}["\x67\x66\x6e\x63\x68\x6f\x74c"]}) {
$ldfjmikld = "\x74\x65\x6d\x70l\x61tes";
${${"\x47LO\x42A\x4c\x53"}["\x73p\x7aq\x6c\x68"]} = ${${"\x47\x4c\x4fB\x41L\x53"}["\x67\x66z\x61n\x63j\x6c"]}["\x69\x64_l\x61ng"];
${"G\x4cO\x42A\x4cS"}["vh\x62h\x72bv\x6a\x67\x73v"] = "\x61u\x74o\x5f\x64e\x73\x63";
$jbxeanrcd = "au\x74\x6f\x5fd\x65\x73c";
$nthkemjss = "\x72";
$khesvx = "\x69\x64\x5f\x6c\x61\x6e\x67";
${"\x47LO\x42\x41L\x53"}["w\x61\x6f\x77\x73\x73\x73\x6ci\x64"] = "\x72";
$uwtoelui = "\x69\x64\x5flan\x67";
$kkxuzvp = "\x69d";
${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78\x64g\x74g\x61\x62\x75\x79"]} = ${$ldfjmikld}[${$uwtoelui}][${$kkxuzvp}];
$vrgnnuogf = "\x74\x65\x6dpla\x74\x65";
${${"\x47LOBA\x4c\x53"}["\x76t\x6a\x70f\x77\x79cjr"]} = $db->getRow("\x53ELEC\x54 * \x46RO\x4d\x20`" . _DB_PREFIX_ . "pp\x5ftemp\x6cat\x65_lan\x67\x60\x20\x57H\x45R\x45 \x69d\x5f\x70p_\x74\x65\x6dp\x6ca\x74e\x20= " . ${${"\x47\x4cO\x42A\x4c\x53"}["\x70\x78\x6d\x6cb\x72\x73q"]} . "\x20\x41ND id_l\x61n\x67=" . ${${"\x47\x4c\x4fB\x41LS"}["sp\x7a\x71l\x68"]});
if (${${"G\x4c\x4fB\x41\x4c\x53"}["wao\x77\x73\x73\x73\x6c\x69\x64"]} === false)
${$nthkemjss} = array(
"\x64esc\x72\x69p\x74ion\x5f\x31" => "",
"descri\x70\x74i\x6fn_2" => "",
"i\x64\x5fp\x70_tem\x70\x6c\x61te" => ${${"\x47L\x4f\x42\x41L\x53"}["p\x78\x6dlbrs\x71"]},
"i\x64_la\x6e\x67" => ${$khesvx}
);
$dbjnmdgiw = "\x72";
$xlydycvs = "i\x64_\x70\x70_\x74\x65\x6d\x70\x6ca\x74e";
${"\x47L\x4f\x42\x41\x4cS"}["lvig\x61\x6fiei"] = "\x74\x65m\x70\x6ca\x74e";
$nlwohbynon = "r";
${${"\x47L\x4f\x42\x41L\x53"}["v\x68bh\x72bv\x6a\x67\x73v"]} = 0;
$fhsbmmefzm = "\x6ds";
if (${$vrgnnuogf}["descripti\x6f\x6e"] == "") {
${"\x47\x4c\x4fB\x41L\x53"}["\x66d\x6b\x75b\x78\x62\x65"] = "\x74\x65\x6dpla\x74\x65";
$jxbckscl = "i\x64\x5f\x6c\x61n\x67";
${${"\x47L\x4f\x42A\x4cS"}["ys\x61\x69a\x74h"]} = 1;
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x64\x6b\x75\x62x\x62e"]}["\x64\x65scri\x70\x74i\x6f\x6e"] = self::generateDescription(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78dg\x74\x67\x61\x62\x75\x79"]}, ${$jxbckscl});
}
${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x74j\x70\x66w\x79\x63\x6a\x72"]}[${${"G\x4c\x4f\x42\x41L\x53"}["\x76n\x70\x7a\x71a\x77\x66"]} != 2 ? "\x64escri\x70t\x69o\x6e_1" : "de\x73cr\x69\x70t\x69on_\x32"] = pSQL(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6cv\x69ga\x6f\x69\x65\x69"]}["\x64e\x73\x63r\x69\x70\x74io\x6e"], true);
${$dbjnmdgiw}[${$fhsbmmefzm} != 2 ? "a\x75to\x5fd\x65sc\x5f\x31" : "\x61uto\x5f\x64\x65sc_\x32"] = ${$jbxeanrcd};
${${"G\x4c\x4f\x42A\x4c\x53"}["\x76tj\x70fw\x79\x63\x6a\x72"]}["\x6eam\x65"] = pSQL(${${"\x47\x4c\x4f\x42A\x4c\x53"}["xdg\x74\x67abu\x79"]}["\x6ea\x6d\x65"], true);
$db->delete(_DB_PREFIX_ . "p\x70\x5f\x74\x65\x6dp\x6ca\x74\x65_\x6c\x61\x6eg", "\x69\x64\x5fp\x70\x5f\x74\x65\x6dp\x6c\x61te\x20= " . ${$xlydycvs} . "\x20\x41ND \x69d\x5fl\x61n\x67\x3d" . ${${"\x47L\x4f\x42A\x4c\x53"}["\x73p\x7aq\x6c\x68"]});
$db->autoExecute(_DB_PREFIX_ . "\x70p_tem\x70late_l\x61n\x67", ${$nlwohbynon}, "IN\x53ERT");
}
$db->delete(_DB_PREFIX_ . "\x70p_t\x65mpl\x61t\x65\x5f\x65xt", "id\x5f\x70p_\x74\x65\x6d\x70l\x61t\x65\x20= " . ${${"\x47\x4cO\x42A\x4cS"}["x\x66\x67\x78i\x72\x76\x65"]});
$db->delete(_DB_PREFIX_ . "\x70\x70\x5ftem\x70l\x61t\x65\x5f\x65\x78\x74_\x70\x72\x6f\x70", "\x69\x64_pp_t\x65m\x70l\x61t\x65\x20=\x20" . ${${"\x47\x4c\x4fB\x41LS"}["\x70\x78\x6d\x6c\x62\x72\x73q"]});
if (${$iqxdtuswfmw}["pp_\x65xt"] == 1) {
${"\x47\x4c\x4fBA\x4c\x53"}["\x70\x78\x70\x62\x64\x62\x79p"] = "\x73";
${"\x47\x4c\x4f\x42\x41LS"}["\x66\x61y\x6f\x65z\x70\x73"] = "e\x78\x74\x5f\x74\x69\x74le";
${${"G\x4c\x4f\x42\x41\x4cS"}["fa\x79\x6f\x65\x7a\x70s"]} = (int) Tools::getValue("pp_ex\x74_\x74itle", 0);
${"\x47\x4c\x4f\x42A\x4cS"}["\x65w\x77nq\x6e\x6b\x70w\x78\x74"] = "i\x64\x5f\x70\x70_\x74\x65\x6d\x70\x6c\x61\x74\x65";
$rfqyvhfnxl = "s";
${"\x47\x4cO\x42\x41L\x53"}["\x6c\x7ac\x6fq\x67gk\x68"] = "ex\x74\x5f\x70o\x6c\x69c\x79";
${"\x47L\x4f\x42\x41L\x53"}["v\x63yd\x6d\x79\x6fvu\x63"] = "\x65\x78\x74\x5fp\x72\x6f\x70\x65r\x74\x79";
$yujolvhqs = "\x73";
${${"\x47\x4cO\x42\x41LS"}["\x76\x63y\x64\x6dy\x6f\x76\x75c"]} = (int) Tools::getValue("pp_e\x78t_p\x72\x6f\x70\x65r\x74y", 0);
${${"\x47\x4c\x4fBA\x4c\x53"}["g\x6d\x74\x62\x71\x6fax\x64\x73i\x6f"]} = (int) Tools::getValue("pp_\x65\x78t_\x74e\x78t", 0);
${${"\x47\x4c\x4f\x42AL\x53"}["cc\x73\x78\x72\x6fo"]} = (string) ${${"G\x4c\x4f\x42\x41\x4cS"}["ew\x77\x6e\x71\x6e\x6b\x70\x77\x78\x74"]};
${"GL\x4f\x42\x41\x4cS"}["\x6f\x69\x6fg\x7a\x69"] = "\x69\x64\x5fp\x70_\x74\x65\x6d\x70\x6c\x61\x74e";
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x63c\x73\x78\x72\x6f\x6f"]} .= ",\x31";
${${"G\x4c\x4fB\x41\x4c\x53"}["\x63c\x73\x78\x72o\x6f"]} .= "," . ${${"G\x4cOB\x41\x4c\x53"}["\x6c\x7aco\x71g\x67\x6b\x68"]};
${$yujolvhqs} .= "," . ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67onn\x72i\x6aq\x6c\x73\x71"]};
${${"\x47L\x4fBA\x4cS"}["\x70x\x70\x62\x64b\x79\x70"]} .= "," . ${${"\x47\x4cO\x42\x41\x4cS"}["\x74\x70h\x76\x6b\x6b\x63bq"]};
${$rfqyvhfnxl} .= "," . ${${"\x47L\x4f\x42A\x4c\x53"}["lu\x64\x6e\x66x\x77"]};
${${"\x47L\x4fB\x41L\x53"}["\x63c\x73\x78\x72\x6f\x6f"]} .= "," . ${${"G\x4c\x4f\x42\x41L\x53"}["\x67\x6d\x74\x62qoa\x78\x64\x73i\x6f"]};
$db->execute("INSE\x52T \x49\x4eTO " . _DB_PREFIX_ . "p\x70\x5f\x74e\x6d\x70\x6cat\x65\x5f\x65xt\x20(id_\x70\x70_t\x65m\x70\x6cat\x65,t\x79\x70\x65,\x70o\x6cicy,met\x68o\x64,ti\x74\x6ce,\x70rop\x65rty,\x74\x65\x78t) \x56A\x4cUES (" . ${${"\x47\x4cOBALS"}["\x63\x63\x73\x78\x72\x6f\x6f"]} . ")");
if ($this->multidimensional_plugin)
$this->multidimensional_plugin->saveTemplate(${${"G\x4c\x4fB\x41LS"}["\x6f\x69o\x67\x7a\x69"]}, self::DIMENSIONS);
}
Hook::exec("\x70pr\x6f\x70e\x72ti\x65s\x41d\x6din", array(
"m\x6fd\x65" => "\x61c\x74\x69o\x6eT\x65\x6d\x70lateSa\x76e",
"\x69\x64_p\x70\x5ft\x65m\x70l\x61\x74e" => ${${"G\x4cO\x42\x41\x4c\x53"}["wx\x76\x74\x64\x63\x6an\x75r\x6e"]}
));
${"\x47\x4c\x4f\x42\x41LS"}["dc\x77d\x70\x74u\x6dv\x75\x65\x73"] = "\x74\x65m\x70l\x61\x74es";
${${"\x47\x4c\x4f\x42\x41L\x53"}["d\x63\x77\x64\x70\x74\x75m\x76\x75\x65s"]} = null;
PP::resetTemplates();
} else {
${"\x47\x4cO\x42\x41L\x53"}["\x76\x65utl\x6a\x79"] = "\x65\x72\x72\x6f\x72";
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6af\x7a\x72\x77\x73pq\x75\x64r"]}["err\x6f\x72"] .= $this->l("\x50\x6ce\x61s\x65 f\x69\x78 \x74h\x65\x20f\x6f\x6cl\x6fw\x69\x6eg \x65rr\x6f\x72\x73:");
foreach (${${"\x47\x4cO\x42\x41\x4c\x53"}["kvg\x6eh\x73w"]} as ${${"\x47L\x4f\x42\x41\x4cS"}["\x76e\x75tl\x6ay"]}) {
$mognhmfxewv = "\x72e\x73\x75lt";
${$mognhmfxewv}["erro\x72"] .= "\n\t\t\t\t<\x64\x69v\x3e" . ${${"\x47\x4cO\x42A\x4cS"}["\x63\x6b\x75\x6f\x6d\x69\x74\x62\x78\x69\x70"]} . "\x3c/\x64i\x76>";
}
}
${${"\x47\x4c\x4f\x42\x41\x4cS"}["j\x66z\x72ws\x70q\x75dr"]}["t\x65\x6dpl\x61tes"] = ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x71\x6e\x6f\x70\x69\x72\x79\x70\x6b\x73\x64y"]};
return ${${"GL\x4f\x42\x41\x4c\x53"}["nf\x71\x64q\x6bh\x6e\x67\x78"]};
}
private function saveProperty()
{
$fktvmmhwkq = "m\x6fd\x65";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["uy\x6c\x6f\x77\x66o\x73\x6e\x69\x6b"] = "\x6c\x61\x6egu\x61ge";
$utdxnltgk = "r\x65\x73u\x6ct";
${$utdxnltgk} = array();
${"\x47\x4cOB\x41LS"}["\x62\x68n\x77\x79v\x6f"] = "\x69d";
${"\x47\x4cO\x42A\x4cS"}["\x7a\x69\x78\x71c\x68z\x74\x6e"] = "\x72\x65\x73ul\x74";
${${"\x47\x4c\x4fB\x41\x4c\x53"}["z\x69\x78\x71\x63h\x7a\x74\x6e"]}["error"] = "";
${${"\x47L\x4fB\x41L\x53"}["\x6a\x74z\x72\x73\x65n\x6c\x73\x74\x63\x64"]} = Tools::getValue("mo\x64\x65");
$lcqzvmbtnp = "\x70r\x6f\x70e\x72\x74ies";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x6a\x76gon\x78s\x6c"] = "\x72\x65s\x75\x6c\x74";
$ymfwnpttt = "\x74\x79p\x65";
${$ymfwnpttt} = Tools::getValue("\x74ype");
${"G\x4cO\x42A\x4c\x53"}["\x77\x62r\x6b\x62\x67ulqx"] = "i\x64";
if (${$fktvmmhwkq} == "\x61d\x64")
${${"GL\x4f\x42A\x4c\x53"}["\x62h\x6e\x77\x79\x76\x6f"]} = 0;
else {
${${"\x47\x4cO\x42\x41\x4c\x53"}["j\x74\x7a\x72\x73e\x6e\x6cs\x74c\x64"]} = "\x65\x64\x69t";
${${"\x47LOB\x41\x4c\x53"}["wx\x76td\x63\x6a\x6eu\x72\x6e"]} = (int) Tools::getValue("\x69d");
}
$kklejtbgt = "\x70ro\x70\x65\x72\x74\x69\x65\x73";
if (${${"\x47\x4c\x4fBA\x4c\x53"}["\x77b\x72\x6b\x62\x67\x75l\x71x"]} < 0)
return ${${"\x47L\x4fBA\x4c\x53"}["\x6af\x7a\x72\x77s\x70q\x75\x64\x72"]};
${${"\x47\x4c\x4fBA\x4c\x53"}["\x77\x72\x72v\x65\x64\x68o\x71j"]} = Tools::getValue("type");
${${"\x47L\x4f\x42\x41L\x53"}["\x6bv\x67\x6e\x68\x73\x77"]} = array();
${$lcqzvmbtnp} = array();
foreach ($this->active_languages as ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x79\x6c\x6f\x77\x66\x6f\x73n\x69\x6b"]}) {
${"G\x4c\x4f\x42ALS"}["\x70m\x62\x62jy"] = "i\x64\x5f\x6c\x61\x6e\x67";
$zdfsilxlmun = "\x69\x64\x5f\x6ca\x6e\x67";
$ytkqwhnyohqr = "\x70\x72o\x70\x65\x72\x74\x79";
${${"GL\x4f\x42\x41\x4c\x53"}["\x70m\x62\x62j\x79"]} = ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x66\x7a\x61\x6e\x63\x6a\x6c"]}["i\x64\x5fl\x61n\x67"];
$pykoamnxnj = "\x69\x64";
${${"\x47\x4c\x4fBA\x4c\x53"}["\x63\x78\x6b\x64\x79u\x7a"]} = array();
$rqxloqgqsk = "\x70ro\x70\x65r\x74\x79";
$this->getValue(${$ytkqwhnyohqr}, "tex\x74", $this->l("T\x65\x78\x74:"), ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6bvgn\x68\x73\x77"]}, ${$zdfsilxlmun});
${"\x47\x4cO\x42\x41\x4c\x53"}["a\x62cl\x78o\x67f\x67"] = "p\x72\x6fper\x74\x69e\x73";
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x61\x62c\x6c\x78o\x67f\x67"]}[${${"\x47LO\x42A\x4cS"}["\x73p\x7a\x71\x6c\x68"]}][${$pykoamnxnj}] = ${$rqxloqgqsk};
}
$ygqjihtjrb = "\x72\x65\x73\x75\x6c\x74";
if (count(${${"\x47L\x4f\x42\x41\x4c\x53"}["k\x76\x67\x6ehs\x77"]}) == 0) {
${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6edg\x79\x77h\x6e\x66\x74\x65\x6bw"]} = Db::getInstance();
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74\x7ab\x74\x71\x71"] = "\x6ca\x6eg\x75age";
if (${${"\x47L\x4f\x42AL\x53"}["\x6a\x74\x7a\x72\x73\x65\x6e\x6c\x73\x74c\x64"]} == "e\x64it")
${${"G\x4c\x4f\x42A\x4cS"}["\x6cn\x79\x72lhv\x62\x79\x6a"]} = ${${"G\x4c\x4fB\x41L\x53"}["\x77\x78vt\x64\x63\x6an\x75r\x6e"]};
else {
$rnhoeepchypt = "\x64\x62";
${"\x47L\x4fBAL\x53"}["\x74\x66\x70\x6ee\x64"] = "\x69d";
$ebyyyxq = "\x74y\x70e";
${${"G\x4cO\x42\x41L\x53"}["\x6c\x6e\x79r\x6c\x68vby\x6a"]} = $this->getNextId(${$rnhoeepchypt}, "p\x70\x5fpr\x6fper\x74\x79", "id\x5f\x70p_\x70ro\x70\x65\x72\x74y");
$vveykwsr = "la\x6eg\x75\x61\x67\x65";
${"GL\x4f\x42A\x4c\x53"}["\x74\x6e\x63\x6dmny\x76\x77"] = "pr\x6f\x70\x65\x72\x74ie\x73";
$db->execute("I\x4eSE\x52T INTO `" . _DB_PREFIX_ . "\x70\x70\x5f\x70r\x6fper\x74y\x60 (\x69\x64_pp_pro\x70erty, t\x79\x70e)\x20VA\x4c\x55\x45 (" . ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x6e\x79\x72lh\x76\x62\x79\x6a"]} . ", " . ${$ebyyyxq} . ")");
foreach ($this->active_languages as ${$vveykwsr})
${${"G\x4cOB\x41\x4cS"}["\x74\x6ecm\x6d\x6ey\x76\x77"]}[${${"\x47\x4cOBA\x4cS"}["\x67\x66\x7aa\x6e\x63j\x6c"]}["id\x5fla\x6eg"]][${${"G\x4cO\x42\x41\x4c\x53"}["\x74fp\x6e\x65d"]}]["i\x64_\x70\x70\x5f\x70\x72\x6fpe\x72t\x79"] = ${${"\x47\x4cO\x42\x41\x4cS"}["\x6cn\x79\x72\x6ch\x76\x62\x79j"]};
}
foreach ($this->active_languages as ${${"\x47L\x4f\x42\x41L\x53"}["\x74z\x62\x74\x71\x71"]}) {
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65\x61\x67\x72i\x68\x79\x72\x77k\x75\x78"] = "\x70\x72o\x70\x65\x72t\x79";
$uhgjsqwpkkp = "\x72";
$hwdfej = "i\x64\x5flang";
$leelropbl = "i\x64\x5f\x6c\x61\x6e\x67";
${"\x47L\x4f\x42\x41\x4cS"}["\x62\x75\x72\x70\x6d\x78q\x6f"] = "t\x65x\x74";
${"GL\x4f\x42\x41L\x53"}["by\x6e\x71\x66\x76\x68hc\x6b\x73"] = "\x72";
${"\x47LO\x42\x41\x4c\x53"}["\x75\x6b\x74ib\x72i\x70i"] = "\x72";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x70\x74q\x75\x64vg\x66n"] = "id\x5f\x6can\x67";
$yetbcfr = "\x6c\x61\x6e\x67\x75a\x67e";
${"GL\x4fB\x41\x4cS"}["x\x69c\x67w\x6f"] = "\x69d_\x70\x70\x5f\x70\x72o\x70erty";
${$hwdfej} = ${$yetbcfr}["\x69\x64\x5fla\x6e\x67"];
${${"GLOBA\x4cS"}["\x76\x74\x6apf\x77\x79c\x6a\x72"]} = $db->getRow("\x53\x45\x4cECT * \x46RO\x4d\x20\x60" . _DB_PREFIX_ . "p\x70_p\x72o\x70er\x74y_l\x61n\x67\x60\x20\x57\x48\x45\x52\x45 i\x64_\x70p_\x70\x72\x6fpe\x72\x74\x79 = " . ${${"\x47\x4c\x4fBAL\x53"}["\x78i\x63\x67\x77\x6f"]} . " A\x4e\x44\x20\x69\x64\x5fl\x61ng\x3d" . ${$leelropbl});
$dpwfnczxpc = "\x70\x72\x6f\x70\x65\x72\x74\x69e\x73";
if (${${"GLOB\x41\x4cS"}["\x76t\x6apfw\x79\x63\x6a\x72"]} === false)
${${"GL\x4f\x42\x41\x4cS"}["\x62\x79\x6e\x71\x66\x76\x68\x68\x63ks"]} = array(
"\x74\x65x\x74\x5f1" => "",
"t\x65x\x74\x5f\x32" => "",
"i\x64\x5fpp\x5fp\x72op\x65\x72ty" => ${${"GL\x4fB\x41L\x53"}["\x6c\x6eyr\x6ch\x76\x62\x79\x6a"]},
"i\x64\x5fla\x6eg" => ${${"\x47\x4cOB\x41\x4c\x53"}["\x73\x70\x7a\x71lh"]}
);
${${"G\x4c\x4fB\x41L\x53"}["\x65\x61\x67\x72i\x68\x79rw\x6b\x75x"]} = ${$dpwfnczxpc}[${${"\x47\x4c\x4f\x42\x41\x4cS"}["pt\x71udv\x67f\x6e"]}][${${"\x47\x4c\x4f\x42ALS"}["\x77\x78\x76t\x64c\x6a\x6e\x75\x72\x6e"]}];
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x75rpmxq\x6f"]} = pSQL(${${"G\x4c\x4f\x42\x41\x4cS"}["\x63\x78\x6b\x64yuz"]}["te\x78t"], true);
if (PP::resolveMS() != 2) {
$pfrqrd = "\x72";
$nodivdqxtof = "\x72";
${"\x47LO\x42\x41\x4c\x53"}["\x71k\x6e\x66\x70\x78\x70n"] = "t\x65x\x74";
${$pfrqrd}["\x74e\x78t\x5f1"] = ${${"\x47L\x4f\x42AL\x53"}["\x78\x67\x75j\x6d\x62\x6c\x6a\x71\x76n"]};
if (${$nodivdqxtof}["\x74e\x78t_\x32"] == "")
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x74j\x70\x66\x77\x79\x63\x6a\x72"]}["te\x78\x74_2"] = ${${"G\x4c\x4f\x42\x41\x4c\x53"}["qk\x6ef\x70\x78p\x6e"]};
} else {
${"G\x4cOBA\x4c\x53"}["jtk\x68r\x65\x72\x6d\x66\x75\x79"] = "t\x65\x78\x74";
${"\x47\x4c\x4f\x42A\x4c\x53"}["g\x77q\x6d\x6ck\x66\x69\x6c\x77\x72"] = "\x74\x65\x78t";
${"G\x4c\x4f\x42\x41\x4cS"}["pix\x66\x73\x70"] = "r";
${${"\x47L\x4f\x42\x41L\x53"}["\x76\x74\x6a\x70\x66\x77\x79c\x6a\x72"]}["\x74e\x78t_\x32"] = ${${"G\x4c\x4f\x42A\x4c\x53"}["j\x74\x6b\x68\x72erm\x66\x75\x79"]};
if (${${"GL\x4f\x42\x41\x4c\x53"}["\x76t\x6a\x70\x66w\x79\x63\x6a\x72"]}["\x74e\x78\x74_1"] == "")
${${"G\x4c\x4f\x42A\x4c\x53"}["\x70i\x78f\x73p"]}["\x74e\x78\x74\x5f1"] = ${${"\x47L\x4f\x42\x41L\x53"}["\x67w\x71\x6d\x6c\x6b\x66il\x77\x72"]};
}
$db->delete(_DB_PREFIX_ . "pp\x5f\x70\x72op\x65\x72ty\x5fl\x61\x6e\x67", "i\x64\x5fpp\x5fp\x72oper\x74y \x3d\x20" . ${${"\x47L\x4fBA\x4cS"}["\x6cn\x79rl\x68vby\x6a"]} . "\x20\x41\x4eD\x20i\x64_\x6c\x61\x6e\x67\x3d" . ${${"G\x4c\x4f\x42\x41L\x53"}["\x73\x70\x7aq\x6c\x68"]});
if (${${"\x47L\x4fB\x41\x4cS"}["ukti\x62ripi"]}["text_1"] != "" || ${$uhgjsqwpkkp}["\x74e\x78t_2"] != "")
$db->autoExecute(_DB_PREFIX_ . "pp\x5fpr\x6fper\x74y\x5fla\x6eg", ${${"\x47\x4cO\x42\x41\x4cS"}["\x76\x74j\x70\x66\x77\x79\x63jr"]}, "\x49\x4e\x53ERT");
}
} else {
${"\x47L\x4fBA\x4c\x53"}["\x75\x69\x6dq\x68\x62\x79\x67t"] = "r\x65\x73\x75\x6c\x74";
${${"\x47\x4cO\x42\x41\x4cS"}["\x75\x69m\x71\x68\x62yg\x74"]}["\x65\x72\x72o\x72"] .= $this->l("P\x6c\x65\x61\x73e f\x69x the f\x6fl\x6cow\x69ng\x20\x65r\x72\x6f\x72\x73:");
foreach (${${"\x47L\x4f\x42A\x4c\x53"}["\x6b\x76\x67\x6ehs\x77"]} as ${${"G\x4c\x4f\x42\x41L\x53"}["c\x6b\x75\x6fm\x69t\x62x\x69\x70"]}) {
$yzksviw = "\x65\x72\x72\x6f\x72";
${${"G\x4c\x4f\x42AL\x53"}["\x6a\x66\x7ar\x77\x73\x70\x71\x75\x64\x72"]}["err\x6fr"] .= "\n\t\t\t\t<\x64i\x76\x3e" . ${$yzksviw} . "\x3c/d\x69v>";
}
}
${$ygqjihtjrb}["pr\x6f\x70\x65r\x74i\x65\x73"] = ${$kklejtbgt};
return ${${"\x47\x4cOB\x41L\x53"}["\x69\x6a\x76\x67\x6f\x6ex\x73\x6c"]};
}
private function deleteTemplate()
{
${${"GLO\x42\x41\x4c\x53"}["wxvtd\x63jn\x75\x72\x6e"]} = (int) Tools::getValue("i\x64");
${"G\x4cOBA\x4c\x53"}["\x63fnyw\x66r\x76s\x64\x62"] = "\x64\x62";
if (${${"\x47\x4cO\x42\x41LS"}["w\x78v\x74d\x63\x6a\x6eu\x72n"]} <= 0)
return;
${${"\x47\x4cO\x42\x41\x4cS"}["\x63\x66\x6e\x79\x77f\x72\x76s\x64b"]} = Db::getInstance();
$db->delete(_DB_PREFIX_ . "p\x70_templ\x61\x74e", "\x69d_\x70\x70_tem\x70\x6ca\x74e =\x20" . ${${"\x47\x4c\x4fBA\x4cS"}["w\x78\x76t\x64\x63j\x6e\x75\x72\x6e"]});
$db->delete(_DB_PREFIX_ . "pp\x5f\x74\x65\x6d\x70\x6ca\x74e\x5f\x6can\x67", "\x69d\x5fpp\x5f\x74e\x6d\x70\x6c\x61t\x65 =\x20" . ${${"\x47\x4cO\x42A\x4cS"}["\x77\x78v\x74\x64\x63\x6an\x75rn"]});
$db->delete(_DB_PREFIX_ . "\x70p_\x74\x65mpl\x61\x74\x65\x5fp\x72op\x65r\x74\x79", "\x69d\x5fp\x70\x5ft\x65mpl\x61\x74\x65 = " . ${${"\x47LO\x42\x41L\x53"}["\x77\x78v\x74\x64\x63j\x6e\x75\x72\x6e"]});
}
private function deleteProperty()
{
${"GL\x4f\x42\x41\x4c\x53"}["\x64\x64\x63\x64\x6b\x69"] = "i\x64";
${${"\x47\x4c\x4f\x42AL\x53"}["\x64\x64\x63d\x6b\x69"]} = (int) Tools::getValue("\x69d");
${"\x47\x4cO\x42\x41L\x53"}["\x6e\x77\x67\x6bt\x6eg\x63"] = "\x69d";
if (${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6ewg\x6b\x74n\x67c"]} > 0) {
$erttopivksos = "\x69\x64";
${"\x47\x4c\x4f\x42AL\x53"}["i\x6a\x69j\x6cq\x73"] = "i\x64";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x6d\x71\x6c\x6e\x6cx\x77\x79\x6c\x79\x73"] = "\x64\x62";
${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x71l\x6e\x6c\x78w\x79\x6c\x79\x73"]} = Db::getInstance();
$db->delete(_DB_PREFIX_ . "pp\x5fp\x72op\x65\x72ty", "id\x5f\x70p_\x70\x72oper\x74\x79 = " . ${$erttopivksos});
$db->delete(_DB_PREFIX_ . "pp_\x70\x72\x6fpert\x79\x5f\x6c\x61\x6eg", "id_p\x70_p\x72\x6fper\x74\x79 \x3d " . ${${"\x47LOBA\x4c\x53"}["\x77\x78vt\x64\x63\x6an\x75\x72\x6e"]});
$db->delete(_DB_PREFIX_ . "p\x70_te\x6d\x70\x6c\x61\x74e\x5fp\x72o\x70\x65\x72\x74\x79", "id\x5fpp\x5f\x70r\x6f\x70\x65\x72\x74y\x20\x3d\x20" . ${${"\x47\x4c\x4f\x42ALS"}["i\x6a\x69jlq\x73"]});
}
}
private function changeHiddenStatus()
{
${"\x47\x4c\x4f\x42AL\x53"}["\x69\x66\x75\x6b\x74\x62\x67"] = "\x69d";
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x78\x76t\x64c\x6an\x75\x72\x6e"]} = (int) Tools::getValue("i\x64");
if (${${"\x47L\x4f\x42\x41L\x53"}["i\x66\x75k\x74\x62\x67"]} <= 0)
return;
Db::getInstance()->AutoExecute(_DB_PREFIX_ . "\x70p_tem\x70\x6ca\x74\x65", array(
"\x68id\x64e\x6e" => ((int) Tools::getValue("s\x68ow", 1) ? "\x30" : "\x31")
), "UPDA\x54\x45", "\x60\x69\x64_\x70p_t\x65\x6dp\x6c\x61te` \x3d\x20" . ${${"\x47\x4c\x4fB\x41L\x53"}["\x77\x78\x76\x74\x64\x63j\x6e\x75\x72\x6e"]});
}
private function generateDescription($template, $id_lang)
{
$myqriaonpba = "\x64\x65\x73\x63";
$iuqbhvbegsdq = "\x69\x64\x5fl\x61\x6e\x67";
${"G\x4c\x4f\x42A\x4c\x53"}["hc\x76t\x6e\x69\x6c"] = "\x74\x65\x6d\x70\x6c\x61\x74\x65";
${"\x47\x4c\x4fB\x41LS"}["c\x73\x74\x71c\x74p\x70q\x6b"] = "\x74e\x6d\x70\x6c\x61t\x65";
$lzenivrml = "\x69\x64_l\x61\x6e\x67";
$eqvpuqvp = "\x74\x65\x6d\x70la\x74\x65";
$hwfgmflvu = "des\x63";
$ztllpzwmkkap = "\x69d\x5f\x6c\x61\x6eg";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x72f\x61k\x6d\x63\x70\x6e\x64u\x76\x65"] = "d\x65\x73\x63";
${$myqriaonpba} = "";
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x6d\x76\x6c\x6a\x61i\x61vv"] = "\x64\x65\x73\x63";
${"G\x4c\x4f\x42\x41L\x53"}["\x70\x65g\x67i\x6d\x65ex"] = "\x69\x64\x5f\x6c\x61n\x67";
if (${${"\x47\x4cOB\x41L\x53"}["x\x64g\x74\x67\x61\x62uy"]}["\x70p\x5fq\x74\x79\x5fp\x6fli\x63\x79"] == 1)
${$hwfgmflvu} .= $this->l("\x50\x72od\x75ct sold \x69\x6e \x77ho\x6c\x65 \x75\x6e\x69t\x73", false, ${$ztllpzwmkkap});
elseif (${${"\x47\x4cOB\x41L\x53"}["\x68\x63\x76\x74n\x69\x6c"]}["p\x70\x5f\x71ty\x5f\x70\x6fli\x63\x79"] == 2) {
${"\x47\x4c\x4fB\x41\x4c\x53"}["v\x6c\x79o\x78e\x77b"] = "i\x64_lang";
$vtkwpwkrf = "\x64e\x73\x63";
$wkbdjjvmw = "\x69\x64_\x6c\x61n\x67";
if (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x64\x67\x74g\x61bu\x79"]}["p\x70\x5f\x65x\x74"] > 0)
${${"\x47\x4cO\x42\x41\x4cS"}["\x6as\x76\x68\x65\x64p\x69\x76"]} .= $this->l("Pr\x6f\x64\x75\x63\x74\x20\x75s\x65s \x6du\x6c\x74id\x69\x6d\x65\x6e\x73\x69on\x61\x6c\x20f\x65atur\x65", false, ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76ly\x6fxew\x62"]});
else
${$vtkwpwkrf} .= $this->l("\x50\x72o\x64\x75\x63\x74 s\x6fld \x69n fract\x69\x6fnal \x75n\x69\x74s", false, ${$wkbdjjvmw});
} else
${${"\x47L\x4fB\x41\x4c\x53"}["r\x66\x61\x6b\x6dc\x70\x6edu\x76\x65"]} .= $this->l("P\x72\x6fdu\x63t\x20s\x6f\x6cd\x20in\x20i\x74\x65\x6ds", false, ${$iuqbhvbegsdq});
if (${${"\x47LO\x42A\x4cS"}["x\x64g\x74g\x61\x62u\x79"]}["\x70\x70\x5f\x71t\x79_m\x6fde"] && !PP::qtyPolicyLegacy(${${"\x47\x4cOBA\x4cS"}["\x63s\x74\x71\x63\x74p\x70\x71\x6b"]}["p\x70_q\x74y_\x70\x6fli\x63y"]))
${${"\x47\x4cOBA\x4cS"}["\x6as\x76h\x65d\x70\x69\x76"]} .= ",\x20" . $this->l("\x61\x70\x70ro\x78\x69ma\x74e\x20\x71\x75an\x74\x69ty\x20a\x6e\x64\x20p\x72\x69\x63e\x20(the\x20\x65\x78\x61c\x74 \x71\x75ant\x69ty cannot \x62e\x20\x6fr\x64\x65\x72e\x64)", false, ${${"\x47\x4c\x4f\x42\x41L\x53"}["sp\x7a\x71\x6c\x68"]});
switch (${$eqvpuqvp}["\x70\x70\x5fdi\x73p\x6ca\x79\x5f\x6do\x64\x65"]) {
case 1:
${${"G\x4c\x4fB\x41\x4c\x53"}["\x66\x6dvl\x6a\x61\x69\x61vv"]} .= ",\x20" . $this->l("\x72\x65\x76e\x72\x73\x65\x64\x20p\x72\x69\x63e d\x69s\x70l\x61\x79", false, ${${"\x47L\x4fB\x41L\x53"}["\x73\x70\x7aql\x68"]});
break;
case 2:
${${"\x47LO\x42\x41LS"}["\x6a\x73\x76\x68\x65\x64p\x69\x76"]} .= ", " . $this->l("re\x74\x61i\x6c\x20\x70r\x69\x63\x65", false, ${${"G\x4c\x4fBA\x4cS"}["s\x70\x7a\x71\x6c\x68"]});
break;
case 3:
${${"\x47\x4cO\x42\x41\x4cS"}["\x6a\x73\x76h\x65\x64\x70\x69\x76"]} .= ", " . $this->l("r\x65\x74\x61\x69\x6c p\x72\x69ce", false, ${$lzenivrml}) . ",\x20" . $this->l("rev\x65\x72\x73\x65\x64 \x70\x72i\x63e \x64\x69s\x70\x6c\x61y", false, ${${"\x47\x4cOB\x41LS"}["pe\x67\x67i\x6d\x65\x65\x78"]});
break;
default:
break;
}
return ${${"\x47\x4c\x4fBA\x4cS"}["\x6as\x76\x68\x65d\x70\x69v"]};
}
private function getValue(&$template, $key, $name, &$errors, $id_lang)
{
$dywdumyhaqb = "te\x6d\x70\x6c\x61t\x65";
${"G\x4cO\x42\x41LS"}["l\x74g\x62p\x77vq\x7at\x64"] = "\x69\x64\x5fl\x61n\x67";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x76q\x6f\x77\x67\x73\x75y"] = "\x64\x65\x66\x61u\x6ct_\x76\x61\x6cu\x65";
${${"GLO\x42A\x4c\x53"}["\x78vq\x6fw\x67su\x79"]} = Tools::getValue(${${"G\x4c\x4f\x42\x41\x4cS"}["\x6e\x7a\x65m\x72\x6a"]} . "_\x69np\x75\x74_" . $this->default_language_id);
${"\x47\x4cO\x42\x41LS"}["ur\x74\x68\x67ge\x69\x71\x72o"] = "d\x65\x66\x61ul\x74_v\x61\x6cu\x65";
$digfvjyn = "k\x65\x79";
if (empty(${${"\x47\x4c\x4fB\x41\x4cS"}["\x75r\x74\x68\x67\x67e\x69\x71r\x6f"]})) {
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x71p\x65\x67\x68q\x66"] = "\x6e\x61\x6de";
$vxdwrbvqk = "k\x65\x79";
${"\x47\x4cOB\x41\x4cS"}["\x67\x72\x76\x6f\x75\x62\x76k"] = "d\x65\x66\x61\x75\x6c\x74\x5f\x6c\x61ngua\x67\x65";
$heuzzrrreo = "\x64e\x66\x61\x75\x6c\x74\x5fl\x61\x6eg\x75a\x67e";
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67\x72\x76\x6fu\x62\x76\x6b"]} = Language::getLanguage($this->default_language_id);
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x76g\x6e\x68sw"]}[${$vxdwrbvqk}] = ${${"\x47\x4c\x4f\x42\x41LS"}["\x71\x71p\x65ghq\x66"]} . " " . $this->l("\x63\x61\x6e\x6eot\x20b\x65\x20\x65mpt\x79 \x69n") . " " . ${$heuzzrrreo}["\x6eam\x65"];
}
${$dywdumyhaqb}[${$digfvjyn}] = Tools::getValue(${${"\x47\x4c\x4f\x42\x41LS"}["\x6e\x7a\x65\x6d\x72\x6a"]} . "\x5f\x69np\x75\x74_" . ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6ctg\x62\x70\x77v\x71\x7a\x74\x64"]});
}
private function getFloatValue($key)
{
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x6ccwo\x70w\x76\x76"] = "\x6b\x65\x79";
$seglhcubk = "k\x65\x79";
${"\x47\x4cO\x42A\x4c\x53"}["\x66\x69\x63\x6dqb\x66\x65i\x78"] = "v\x61lu\x65";
${${"\x47L\x4f\x42A\x4c\x53"}["\x66\x69\x63\x6d\x71\x62\x66e\x69x"]} = Tools::getValue(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x6c\x63\x77\x6fp\x77\x76\x76"]});
return (float) (empty(${${"\x47LOBAL\x53"}["w\x69\x68lr\x62\x6dq"]}) ? "0" : str_replace(",", ".", Tools::getValue(${$seglhcubk})));
}
private function getPropertyTypes()
{
${"GLO\x42\x41\x4cS"}["e\x72\x62\x74k\x6av\x62\x64\x6c"] = "\x72\x6f\x77";
${"\x47L\x4f\x42\x41L\x53"}["fgmv\x6e\x6b\x6b\x71"] = "r\x65su\x6c\x74";
$exywwhwoq = "\x72\x65s\x75\x6c\x74";
${${"GL\x4f\x42\x41L\x53"}["f\x67\x6dv\x6ek\x6bq"]} = array();
$tctiygarn = "\x72e\x73ul\x74";
${${"\x47\x4cO\x42\x41\x4c\x53"}["g\x69\x6fe\x69\x78kr"]} = Db::getInstance()->ExecuteS("\x53\x45\x4c\x45\x43T\x20* \x46RO\x4d `" . _DB_PREFIX_ . "pp\x5f\x70r\x6fp\x65\x72\x74y\x60");
foreach (${${"\x47\x4cOB\x41\x4c\x53"}["\x67\x69\x6fe\x69x\x6b\x72"]} as ${${"GLO\x42\x41LS"}["\x65\x72\x62\x74\x6bj\x76\x62\x64\x6c"]})
${$tctiygarn}[${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x65\x68\x71\x76r"]}["i\x64_\x70p_\x70ro\x70e\x72\x74\x79"]] = ${${"\x47\x4cO\x42\x41\x4c\x53"}["me\x68\x71\x76\x72"]}["\x74yp\x65"];
return ${$exywwhwoq};
}
private function getAllProperties($ms = false)
{
${"\x47\x4c\x4fB\x41\x4c\x53"}["m\x78\x6b\x63\x62\x6a\x65\x6d"] = "\x70\x70\x5f\x70\x72\x6fp\x65\x72\x74\x79";
$jmvhkpqgto = "\x6d\x73";
${$jmvhkpqgto} = PP::resolveMS(${${"\x47LO\x42\x41\x4c\x53"}["v\x6e\x70\x7aqa\x77\x66"]});
$qmptljxtr = "\x61\x6c\x6c\x5fp\x72\x6fp\x65\x72\x74\x69es";
${$qmptljxtr} = array();
${${"\x47\x4c\x4fB\x41\x4c\x53"}["n\x64\x67y\x77\x68\x6e\x66\x74ek\x77"]} = Db::getInstance();
${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67\x69\x6f\x65\x69\x78\x6b\x72"]} = $db->executeS("\x53ELEC\x54\x20*\x20FR\x4fM\x20\x60" . _DB_PREFIX_ . "pp_\x70ro\x70\x65\x72ty\x5f\x6c\x61n\x67`");
${${"G\x4c\x4fB\x41\x4c\x53"}["mxk\x63b\x6a\x65\x6d"]} = $db->executeS("\x53E\x4c\x45\x43T\x20*\x20FRO\x4d\x20`" . _DB_PREFIX_ . "p\x70\x5fpro\x70\x65r\x74y`");
foreach ($this->active_languages as ${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x66\x7a\x61\x6e\x63\x6a\x6c"]}) {
$wmtsurslcziq = "l\x61\x6e\x67\x75\x61\x67\x65";
$ixjhdrq = "\x69d_\x6c\x61ng";
$eiitcexptu = "\x70ro\x70e\x72\x74\x69\x65\x73";
$exfgspvc = "\x70\x70_\x70\x72\x6f\x70er\x74\x79";
${${"\x47\x4cO\x42A\x4c\x53"}["\x73\x70\x7a\x71l\x68"]} = ${$wmtsurslcziq}["id_l\x61n\x67"];
${$eiitcexptu} = array();
foreach (${$exfgspvc} as ${${"G\x4c\x4fBAL\x53"}["\x63\x78\x6b\x64y\x75z"]}) {
$wppfmiprqme = "\x66o\x75\x6e\x64";
${"G\x4cO\x42\x41\x4c\x53"}["w\x72\x79\x65\x65\x72"] = "\x70\x72\x6fp\x65rt\x79";
$gxqicnotcyl = "p\x72\x6f\x70\x65r\x74\x79";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x7a\x71\x62b\x65hx\x64\x79\x6c"] = "\x70\x72\x6f\x70er\x74\x79";
${"\x47\x4cO\x42\x41\x4cS"}["\x71\x7a\x6a\x76bci"] = "id\x5f\x70\x70_pr\x6f\x70\x65rty";
${${"\x47\x4c\x4fBAL\x53"}["q\x7a\x6avbc\x69"]} = ${$gxqicnotcyl}["id\x5f\x70p_p\x72o\x70\x65rt\x79"];
$dygjbottuxy = "\x6d\x73";
${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x78\x6b\x64\x79\x75\x7a"]}["\x74e\x78t"] = "";
$qzbwkmsjn = "\x69\x64\x5f\x70\x70_p\x72\x6fp\x65\x72\x74\x79";
${"\x47LO\x42\x41\x4cS"}["\x79\x6ek\x6d\x61r\x65"] = "\x6d\x73";
$lvxgfxx = "\x70r\x6f\x70\x65\x72ty";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x67k\x7a\x6a\x72\x6f\x75\x65\x7a"] = "pr\x6fp\x65\x72\x74\x79";
$yflnsrxn = "\x72\x6fws";
${${"GL\x4f\x42\x41\x4c\x53"}["\x7a\x71\x62b\x65\x68\x78\x64y\x6c"]}["t\x65x\x74_1"] = "";
$rswynlvkfgy = "i\x64\x5f\x70p\x5f\x70r\x6f\x70e\x72\x74\x79";
${${"G\x4c\x4f\x42\x41LS"}["\x67k\x7aj\x72\x6f\x75\x65\x7a"]}["\x74\x65\x78\x74\x5f2"] = "";
${${"G\x4cO\x42\x41LS"}["\x76\x76\x64d\x66h\x6f\x62\x65\x65k"]} = $this->getAllPropertiesLang(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x78\x6bd\x79\x75\x7a"]}, ${${"G\x4cO\x42AL\x53"}["\x67\x69\x6f\x65\x69\x78\x6br"]}, ${$qzbwkmsjn}, ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73\x70zql\x68"]}, ${$dygjbottuxy});
$ifgbdeeuco = "\x70\x72o\x70\x65r\x74i\x65s";
if (!${$wppfmiprqme})
$this->getAllPropertiesLang(${$lvxgfxx}, ${$yflnsrxn}, ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x6e\x79\x72\x6c\x68v\x62\x79j"]}, 1, ${${"G\x4c\x4f\x42\x41L\x53"}["y\x6e\x6bm\x61\x72\x65"]});
${$ifgbdeeuco}[${$rswynlvkfgy}] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["wr\x79\x65e\x72"]};
}
${${"\x47L\x4f\x42AL\x53"}["\x62l\x7a\x6ccd\x72e"]}[${$ixjhdrq}] = ${${"\x47L\x4fB\x41\x4c\x53"}["\x79j\x77\x72\x73f\x78q\x73k"]};
}
return ${${"\x47\x4c\x4fBA\x4c\x53"}["\x62\x6c\x7a\x6c\x63\x64\x72\x65"]};
}
private function getAllPropertiesLang(&$property, $rows, $id_pp_property, $id_lang, $ms = false)
{
${"\x47\x4c\x4fBA\x4c\x53"}["\x74\x70\x69\x6ax\x61\x77je"] = "r\x6fw";
foreach (${${"\x47\x4cO\x42\x41\x4cS"}["\x67\x69\x6fe\x69x\x6b\x72"]} as ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x70i\x6a\x78\x61\x77\x6a\x65"]}) {
${"\x47\x4c\x4f\x42A\x4c\x53"}["r\x79k\x65\x6ba\x7a"] = "id_\x70p_\x70\x72\x6f\x70e\x72\x74\x79";
${"G\x4c\x4f\x42\x41L\x53"}["lv\x7am\x63\x78\x73\x63mo"] = "id\x5fl\x61\x6e\x67";
$isbwsryx = "\x72o\x77";
if ((${${"G\x4c\x4fB\x41\x4c\x53"}["\x6d\x65\x68qv\x72"]}["\x69d_\x70p_\x70\x72op\x65r\x74\x79"] == ${${"\x47LO\x42ALS"}["\x72\x79kek\x61\x7a"]}) && (${$isbwsryx}["id\x5fl\x61\x6e\x67"] == ${${"G\x4c\x4f\x42A\x4c\x53"}["\x6c\x76\x7am\x63xs\x63\x6d\x6f"]})) {
${"\x47L\x4fB\x41\x4c\x53"}["\x74\x69tcq\x66j\x71"] = "r\x6f\x77";
$pjvfss = "\x70ro\x70e\x72t\x79";
$vyhvdoaf = "\x6d\x73";
${$pjvfss}["t\x65\x78\x74"] = (${$vyhvdoaf} != 2 ? ${${"\x47\x4cOBA\x4c\x53"}["m\x65\x68\x71\x76r"]}["\x74ex\x74\x5f\x31"] : ${${"G\x4c\x4fBA\x4cS"}["m\x65h\x71\x76\x72"]}["\x74e\x78\x74_\x32"]);
$mhxfsas = "\x70\x72\x6f\x70e\x72\x74y";
${$mhxfsas}["t\x65\x78t_1"] = ${${"\x47LO\x42A\x4c\x53"}["\x74\x69\x74\x63\x71\x66j\x71"]}["\x74\x65\x78t_1"];
${${"G\x4cO\x42\x41\x4c\x53"}["\x63\x78k\x64\x79u\x7a"]}["text_\x32"] = ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x65hqv\x72"]}["tex\x74\x5f\x32"];
return true;
}
}
return false;
}
public function integrationKey()
{
return _PS_VERSION_ . "|" . $this->integrationVersion();
}
public function integrationVersion()
{
return $this->ps_versions_compliancy["ma\x78"];
}
public function setupInstance()
{
return psmPPsetup($this);
}
public function plugins()
{
return array(
"\x70\x70\x72\x6fp\x65\x72t\x69e\x73multidimen\x73ion\x61l" => 1.6,
"pp\x72\x6f\x70e\x72t\x69es\x73m\x61\x72t\x70\x72\x69\x63\x65" => 1.1
);
}
private function getNextId($db, $table, $column)
{
$xtsttcvuhhk = "\x6da\x78_\x69\x64";
${$xtsttcvuhhk} = (int) $db->getValue("\x53\x45L\x45C\x54\x20m\x61\x78(\x60" . ${${"GLO\x42AL\x53"}["\x73h\x6ea\x6f\x70\x70"]} . "\x60) \x46\x52OM\x20\x60" . _DB_PREFIX_ . ${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x67\x66\x76z\x74\x73\x78\x6fxr"]} . "\x60");
${"\x47\x4c\x4f\x42\x41LS"}["g\x6b\x65\x74\x64lifp\x73"] = "\x6d\x61\x78\x5fid";
if (${${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x6bet\x64\x6c\x69\x66\x70\x73"]} < self::USER_START_ID)
return self::USER_START_ID;
return ++${${"G\x4cOBAL\x53"}["\x73\x6dljv\x6b\x73\x6c\x6e"]};
}
private function compatibilityText()
{
if ($this->ps_versions_compliancy["mi\x6e"] == $this->ps_versions_compliancy["\x6dax"])
return sprintf($this->l("T\x68\x69s\x20\x76\x65\x72\x73\x69\x6fn\x20\x6f\x66 \x25s\x20\x6d\x6f\x64u\x6ce\x20w\x6f\x72\x6bs\x20\x6fnly \x77\x69\x74h\x20P\x72est\x61S\x68op\x20\x76\x65\x72s\x69\x6fn\x20\x25\x73."), $this->displayName, $this->ps_versions_compliancy["min"]);
else
return sprintf($this->l("T\x68\x69\x73 ve\x72s\x69\x6f\x6e \x6ff\x20%s m\x6fdu\x6ce w\x6f\x72ks\x20\x6fnl\x79 wi\x74\x68\x20Pr\x65\x73t\x61\x53\x68op \x76e\x72si\x6f\x6e\x73 \x25s\x20- \x25\x73\x2e"), $this->displayName, $this->ps_versions_compliancy["mi\x6e"], $this->ps_versions_compliancy["ma\x78"]);
}
}
Function Calls
None |
Stats
MD5 | 7f32e0e3adf77035e76be0430176e720 |
Eval Count | 0 |
Decode Time | 296 ms |