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 goto YvUwY; YvUwY: $cache_shop_by_product = array(); goto c8L9s; c8L9s: $cache_wareh..
Decoded Output download
<?php goto YvUwY; YvUwY: $cache_shop_by_product = array(); goto c8L9s; c8L9s: $cache_warehouse_by_product = array(); goto cuTQb; cuTQb: $cache_tax = array(); goto WHww0; WHww0: class SCI { protected static $scModulesInfos; public $ps_vers; public static function getDefaultCountryId() { goto drF8c; QgXZH: goto pWGVT; goto E8fc2; drF8c: $return = 0; goto Q9_TJ; xAmrI: ry1ql: goto yqSaT; XVZPZ: define("SC_CACHE_DEFAULT_COUNTRY_ID", $return); goto Eo4LS; yqSaT: $return = (int) Country::getDefaultCountryId(); goto ho5Jk; ij1_J: $return = SC_CACHE_DEFAULT_COUNTRY_ID; goto QgXZH; Lxc4g: if (version_compare(_PS_VERSION_, "1.5.0.0", "<")) { goto ry1ql; } goto nbdII; NePYr: goto GsxwX; goto xAmrI; ho5Jk: GsxwX: goto XVZPZ; nbdII: $return = (int) SCI::getConfigurationValue("PS_COUNTRY_DEFAULT", null, 0, (int) SCI::getSelectedShop()); goto NePYr; Eo4LS: pWGVT: goto anVQs; E8fc2: mYl_t: goto Lxc4g; Q9_TJ: if (!defined("SC_CACHE_DEFAULT_COUNTRY_ID")) { goto mYl_t; } goto ij1_J; anVQs: return $return; goto sPjy0; sPjy0: } public static function hookExec($hook_name, $hookArgs = array(), $id_module = null) { goto CTHBd; Umbks: H0CSi: goto Zaauz; HaJ9a: if (!array_key_exists($hook_name, $old_to_new_hook)) { goto cNXSP; } goto bXwV7; dJdHg: $alias = Hook::getAllKnownNames($hook_name); goto LWn_R; IUOvl: sN1Co: goto HyuAu; CZJKU: goto lH3yE; goto aSsW9; HyuAu: return $result; goto tTeg7; abeRu: MAXiF: goto eiTw6; Zaauz: if (!($hook_name == "actionProductUpdate")) { goto sN1Co; } goto cpeb7; aSsW9: OEOe9: goto dJdHg; LWn_R: lH3yE: goto yUhpL; eiTw6: $result = Hook::exec(sc_array_key_exists(strtolower($hook_name), $alias) ? $alias[strtolower($hook_name)] : $hook_name, $hookArgs, $id_module, false, true, false, (int) SCI::getSelectedShop()); goto Umbks; bXwV7: $hook_name = $old_to_new_hook[$hook_name]; goto yvAzB; yvAzB: cNXSP: goto i3h8d; Gnurq: Context::getContext()->currency = Currency::getDefaultCurrency(); goto aq71x; EEkfI: OcicH: goto hJLPe; hOa54: $old_value = Configuration::get("PS_SMARTY_CLEAR_CACHE"); goto ZLZnH; cpeb7: SCI::updateConfigurationValue("PS_SMARTY_CLEAR_CACHE", $old_value); goto IUOvl; yUhpL: if (!($hook_name == "actionProductUpdate")) { goto LshBs; } goto hOa54; vHAKJ: return; goto EEkfI; PVn6O: LshBs: goto Uz_Ng; Zjx2Y: $result = Hook::exec(sc_array_key_exists(strtolower($hook_name), $alias) ? $alias[strtolower($hook_name)] : $hook_name, $hookArgs, $id_module); goto unzEL; CTHBd: if (!empty(Context::getContext()->currency)) { goto jJmdD; } goto Gnurq; aq71x: jJmdD: goto p0mUV; bRnL_: $alias = Hook::getHookAliasList(); goto CZJKU; p0mUV: $old_to_new_hook = array("updateProduct" => "actionProductUpdate", "updateProductAttribute" => "actionProductAttributeUpdate", "watermark" => "actionWatermark"); goto HaJ9a; ZLZnH: SCI::updateConfigurationValue("PS_SMARTY_CLEAR_CACHE", "never"); goto PVn6O; hJLPe: if (version_compare(_PS_VERSION_, "1.7.1.0", ">=") && method_exists("Hook", "getAllKnownNames")) { goto OEOe9; } goto bRnL_; unzEL: goto H0CSi; goto abeRu; Uz_Ng: if (SCMS) { goto MAXiF; } goto Zjx2Y; i3h8d: if (!(!_s("APP_COMPAT_HOOK") || !SCI::checkUsedHook($hook_name))) { goto OcicH; } goto vHAKJ; tTeg7: } public static function checkUsedHook($hook_name) { goto XKENW; JlWok: boF2V: goto dduO8; dduO8: if (!empty($hook_list)) { goto aX7u5; } goto jTVdv; ZYsdu: aX7u5: goto EoDN7; jTVdv: return true; goto WoLE3; NG9sx: mTY10: goto ROozn; OAZ4x: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=") && isset($hook_list[SCI::getSelectedShop()])) { goto mTY10; } goto VUDmj; ROozn: $hook_list_by_shop = $hook_list[SCI::getSelectedShop()]; goto JlWok; EoDN7: return sc_array_key_exists(strtolower($hook_name), $hook_list_by_shop); goto pd1Kp; pd1Kp: AbxpX: goto IdNM5; XKENW: $hook_list = json_decode(SC_HOOK_MODULE_LIST, true); goto OAZ4x; WoLE3: goto AbxpX; goto ZYsdu; VUDmj: $hook_list_by_shop = $hook_list; goto g1Hxh; g1Hxh: goto boF2V; goto NG9sx; IdNM5: } public static function addToShops($objectTableName, $objects_id = array(), $shops = array()) { goto SRRmZ; arCi1: $newRelations = array(); goto wjs_m; I6TPQ: $relationsArray = Db::getInstance()->getValue("SELECT GROUP_CONCAT(CONCAT("(",id_shop,",",id_" . pSQL($objectTableName) . ",")") SEPARATOR "#") as relations\xa FROM " . _DB_PREFIX_ . pSQL($objectTableName) . "_shop\xa WHERE id_" . pSQL($objectTableName) . " IN (" . implode(",", $objects_id) . ")"); goto Utrzp; tDoKc: $shops = Shop::getShops(true, null, true); goto nNOyR; SRRmZ: if (!(version_compare(_PS_VERSION_, "1.5.0.0", "<") || count($objects_id) == 0)) { goto Yfht9; } goto ejbbv; aA32O: $sql = "INSERT INTO " . _DB_PREFIX_ . pSQL($objectTableName) . "_shop (id_shop,id_" . pSQL($objectTableName) . ") VALUES " . join(",", $newRelations); goto FtZ3P; XWgeW: if (!(is_array($shops) && count($shops) == 0)) { goto JJlBV; } goto tDoKc; wjs_m: foreach ($shops as $id_shop) { goto UOe1m; VfSnm: D6RWN: goto QK_fr; UOe1m: foreach ($objects_id as $id_object) { $newRelations[] = "(" . (int) $id_shop . "," . (int) $id_object . ")"; tUkUu: } goto BKgYi; BKgYi: Fwwv2: goto VfSnm; QK_fr: } goto eGWjs; eGWjs: WENa1: goto rUFl6; ejbbv: return; goto v6W9A; d9MqX: qBp5K: goto HAz6P; WrZwj: if (!count($newRelations)) { goto qBp5K; } goto aA32O; nNOyR: JJlBV: goto I6TPQ; rUFl6: $newRelations = arrayDiffEmulation($newRelations, $relationsArray); goto WrZwj; Utrzp: $relationsArray = explode("#", $relationsArray); goto arCi1; FtZ3P: Db::getInstance()->Execute($sql); goto d9MqX; v6W9A: Yfht9: goto XWgeW; HAz6P: } public static function duplicateImageToShops($object_id, $actual_shop_id, $shops = array()) { goto l9_ys; Uwm41: A190c: goto Lo5gn; ENqef: $other_shops = array(); goto emMq5; yGSvK: if (version_compare(_PS_VERSION_, "1.6.1.0", ">=")) { goto fFibB; } goto HnLa7; kdwOe: Db::getInstance()->Execute($sql); goto Uwm41; S3Fq3: $other_shops = array(); goto CpSjE; emMq5: foreach ($shops as $shop) { $other_shops[] = "(" . (int) $shop . "," . (int) $image_actual_shop["id_image"] . "," . $image_actual_shop["cover"] . ")"; RKQd_: } goto OKH4l; l9_ys: if (!(version_compare(_PS_VERSION_, "1.5.0.0", "<") || empty($object_id) || empty($actual_shop_id) || empty($shops))) { goto Te7kM; } goto d3spq; iTWwd: fFibB: goto b6ZHr; Cwmu0: $sql = "INSERT INTO " . _DB_PREFIX_ . "image_shop (id_shop,id_image" . (version_compare(_PS_VERSION_, "1.6.1.0", ">=") ? ",id_product" : '') . ",cover) VALUES " . join(",", $other_shops); goto kdwOe; O0KaH: Db::getInstance()->execute("DELETE FROM " . _DB_PREFIX_ . "image_shop WHERE id_image = '" . (int) $object_id . "' AND id_shop IN (" . pInSQL(join(",", $shops)) . ")"); goto yGSvK; b6ZHr: $image_actual_shop = Db::getInstance()->getRow("SELECT img_s.id_shop,img_s.id_image,img_s.cover, i.id_product
FROM " . _DB_PREFIX_ . "image_shop img_s\xa INNER JOIN " . _DB_PREFIX_ . "image i ON (img_s.id_image=i.id_image)\xa WHERE img_s.id_image = '" . (int) $object_id . "' AND img_s.id_shop='" . (int) $actual_shop_id . "'"); goto S3Fq3; J81mj: CWb7Q: goto MeaMC; d3spq: return; goto uKmf2; uKmf2: Te7kM: goto O0KaH; CpSjE: foreach ($shops as $shop) { goto REaTL; REaTL: if (!empty($image_actual_shop["cover"])) { goto O19d7; } goto Ucbeo; GDr50: O19d7: goto Gz3GV; JEv7P: SfcWq: goto J6cNq; Ucbeo: $image_actual_shop["cover"] = "NULL"; goto GDr50; Gz3GV: $other_shops[] = "(" . (int) $shop . "," . (int) $image_actual_shop["id_image"] . "," . (int) $image_actual_shop["id_product"] . "," . $image_actual_shop["cover"] . ")"; goto JEv7P; J6cNq: } goto Goezf; HnLa7: $image_actual_shop = Db::getInstance()->getRow("SELECT id_shop,id_image,cover FROM " . _DB_PREFIX_ . "image_shop WHERE id_image = '" . (int) $object_id . "' AND id_shop='" . (int) $actual_shop_id . "'"); goto ENqef; OKH4l: ESbTA: goto QcHpC; MeaMC: if (!count($other_shops)) { goto A190c; } goto Cwmu0; QcHpC: goto CWb7Q; goto iTWwd; Goezf: VJnU8: goto J81mj; Lo5gn: } public static function getLastPositionFromCategory($id_category, $id_shop = 1) { goto bOFAz; SqpWM: return Category::getLastPosition($id_category); goto vVstv; bkwsv: Y23II: goto SqpWM; vVstv: AHynN: goto NeMDT; d0EAJ: goto AHynN; goto bkwsv; bOFAz: if (version_compare(_PS_VERSION_, "1.5.0.0", "<")) { goto Y23II; } goto Pnl0f; Pnl0f: return Category::getLastPosition($id_category, $id_shop); goto d0EAJ; NeMDT: } public static function imageResize($sourceFile, $destFile, $destWidth = null, $destHeight = null, $fileType = "jpg") { goto tVFRh; hujC8: n734n: goto MwdKo; tVFRh: if (version_compare(_PS_VERSION_, "1.5.0.0", "<")) { goto n734n; } goto vCJre; MwdKo: return imageResize($sourceFile, $destFile, $destWidth, $destHeight, $fileType); goto A6tUq; A6tUq: HhocL: goto iqyu6; vCJre: return @ImageManager::resize($sourceFile, $destFile, $destWidth, $destHeight, $fileType); goto yNmNC; yNmNC: goto HhocL; goto hujC8; iqyu6: } public static function updateConfigurationValue($key, $values, $html = false, $id_shop_group = 0, $id_shop = 0) { goto kBpEt; m1_Ah: kz4Dq: goto ENDbl; Jvao3: return Configuration::updateValue($key, $values, $html, $id_shop_group, $id_shop); goto Xy7sN; Xy7sN: goto kz4Dq; goto rcckR; b7hTT: return Configuration::updateValue($key, $values, $html); goto m1_Ah; kBpEt: if (version_compare(_PS_VERSION_, "1.5.0.0", "<")) { goto bNT5C; } goto Jvao3; rcckR: bNT5C: goto b7hTT; ENDbl: } public static function getConfigurationValue($key, $id_lang = null, $id_shop_group = 0, $id_shop = 0) { goto FjEHQ; DHWUx: return Configuration::get($key, $id_lang, $id_shop_group, $id_shop); goto fJPDJ; V3GWH: PR9zj: goto Ul4_Q; Ul4_Q: return Configuration::get($key, $id_lang); goto J21PP; J21PP: x7J0c: goto l6wHK; fJPDJ: goto x7J0c; goto V3GWH; FjEHQ: if (version_compare(_PS_VERSION_, "1.5.0.0", "<")) { goto PR9zj; } goto DHWUx; l6wHK: } public static function getEcotaxTaxRate() { goto kidIb; kidIb: $return = 100; goto LXU0F; P5Pqs: oLcM9: goto pjM4T; mmbmU: goto GfIGu; goto Ls7sQ; Kobuq: $tax_manager = TaxManagerFactory::getManager($address, (int) Configuration::get("PS_ECOTAX_TAX_RULES_GROUP_ID", null, 0, (int) SCI::getSelectedShop())); goto i9ob4; rTKQ7: $address = Address::initialize(null); goto Kobuq; QPC8G: if (version_compare(_PS_VERSION_, "1.5.0.0", "<") && (int) SCI::getConfigurationValue("PS_USE_ECOTAX") == 0 || version_compare(_PS_VERSION_, "1.5.0.0", ">=") && (int) SCI::getConfigurationValue("PS_USE_ECOTAX", null, 0, (int) SCI::getSelectedShop()) == 0) { goto oLcM9; } goto e9Eci; gCecK: return $return; goto CXmrc; MtCHO: X2BYw: goto cLAy6; i9ob4: $tax_calculator = $tax_manager->getTaxCalculator(); goto BoHE1; IR9Y9: $return = Tax::getProductEcotaxRate() / 100 + 1; goto PjnGA; BoHE1: $return = $tax_calculator->getTotalRate() / 100 + 1; goto MtCHO; Ls7sQ: i8JgL: goto QPC8G; pjM4T: $return = 1; goto GCrDn; GCrDn: goto X2BYw; goto K3WxI; e9Eci: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto Rjd8G; } goto IR9Y9; PjnGA: goto X2BYw; goto P5Pqs; cLAy6: define("SC_CACHE_ECOTAX_RATE", $return); goto f09QH; K3WxI: Rjd8G: goto rTKQ7; f09QH: GfIGu: goto gCecK; LXU0F: if (!defined("SC_CACHE_ECOTAX_RATE")) { goto i8JgL; } goto ukbV4; ukbV4: $return = SC_CACHE_ECOTAX_RATE; goto mmbmU; CXmrc: } public static function getSelectedShopActionList($string = false, $id_product = null) { goto hqxL0; UzHtT: nfCDx: goto uvXEu; Ty5tD: $list = $list_temp; goto cb6um; gBOqE: foreach ($shops as $shop_id) { goto OTHD_; xFShM: $list_temp[] = $shop_id; goto IGQ4p; vkHA6: HxWAb: goto X0xKO; OTHD_: if (!sc_in_array($shop_id, $list, "SCISelectShopProduct")) { goto B_EyK; } goto xFShM; IGQ4p: B_EyK: goto vkHA6; X0xKO: } goto ThFh6; ksl2S: if (!empty($_COOKIE["sc_shop_list"])) { goto nfCDx; } goto vI51R; TFMtN: $shops = self::getShopsByProduct($id_product); goto gBOqE; JEXjk: return $list; goto V9iLk; nGzY0: Zk2Zs: goto LsXTT; hqxL0: $list = array(); goto ksl2S; j3dbP: $list = $string ? implode(",", $list) : $list; goto JEXjk; ThFh6: TUq_w: goto Ty5tD; cb6um: Dct9E: goto j3dbP; VRMUk: goto Zk2Zs; goto UzHtT; vI51R: $list = array(SCI::getSelectedShop()); goto VRMUk; uvXEu: $list = explode(",", $_COOKIE["sc_shop_list"]); goto nGzY0; OAik3: $list_temp = array(); goto TFMtN; LsXTT: if (empty($id_product)) { goto Dct9E; } goto OAik3; V9iLk: } public static function getSelectedShop() { goto dbR1h; SNJ0F: return isset($_COOKIE["sc_shop_selected"]) ? (int) $_COOKIE["sc_shop_selected"] : 0; goto vXf7_; mX4z9: return (int) Configuration::get("PS_SHOP_DEFAULT"); goto F3ndd; phGCI: Y8G4M: goto mX4z9; vXf7_: goto L1c9e; goto phGCI; T2J0R: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto Y8G4M; } goto ZQi0r; dbR1h: if (SCMS) { goto fgv1O; } goto T2J0R; F3ndd: L1c9e: goto Q_Ff4; ZQi0r: return 0; goto YO1MD; ai5xy: fgv1O: goto SNJ0F; YO1MD: goto L1c9e; goto ai5xy; Q_Ff4: } public static function getAllShops() { goto ZWrsd; ZWrsd: $sql = "SELECT s.*
FROM " . _DB_PREFIX_ . "shop s
WHERE s.deleted = 0"; goto AcIR6; H5Wqf: return $results; goto CdVmg; AcIR6: $results = Db::getInstance()->executeS($sql); goto H5Wqf; CdVmg: } public static function getShopsByProduct($id_product) { goto IKRgB; WNvff: foreach ($res as $value) { $list[] = $value["id_shop"]; Uvs3r: } goto YC53M; ma2eK: yqgVQ: goto IZ2K8; k6F7R: if (empty($cache)) { goto ohEe0; } goto KGsus; W_G8y: tZ3tr: goto M0783; M0783: return $list; goto cTETF; IZ2K8: $cache_shop_by_product[$id_product] = $list; goto W_G8y; IKRgB: global $cache_shop_by_product; goto ot2GK; cliTA: M5lZS: goto k6F7R; YC53M: av3nh: goto ma2eK; ot2GK: $cache = array(); goto Gg8PP; KGsus: $list = $cache; goto DtCZ0; Gg8PP: if (!sc_array_key_exists($id_product, $cache_shop_by_product)) { goto M5lZS; } goto POUdf; POUdf: $cache = $cache_shop_by_product[$id_product]; goto cliTA; XQTya: $res = Db::getInstance()->executeS("
SELECT `id_shop`\xa FROM `" . _DB_PREFIX_ . "product_shop`\xa WHERE `id_product` = " . (int) $id_product); goto byJCA; m_1sQ: $list = array(); goto XQTya; DtCZ0: goto tZ3tr; goto FThqs; FThqs: ohEe0: goto m_1sQ; byJCA: if (!(!empty($res) && count($res) > 0)) { goto yqgVQ; } goto WNvff; cTETF: } public static function getShopsByCategory($id_category) { goto KRrac; VSyc8: goto SP5f_; goto o7lBN; pHzQN: w4TFA: goto LG59v; T8F4f: if (!(is_array($cache_shop_by_category) && sc_array_key_exists($id_category, $cache_shop_by_category))) { goto Ok3Fa; } goto gwyEp; sFOzn: $list = array(); goto DxdW6; DxdW6: $res = Db::getInstance()->executeS("\xa SELECT `id_shop`\xa FROM `" . _DB_PREFIX_ . "category_shop`\xa WHERE `id_category` = " . (int) $id_category); goto ZFug9; QkAN8: if (empty($cache)) { goto lazmy; } goto jNeAk; ZFug9: if (!(!empty($res) && count($res) > 0)) { goto ufZMD; } goto KE_Kv; w0svu: Ok3Fa: goto QkAN8; lVisc: $cache_shop_by_category[$id_category] = $list; goto mqDPi; KE_Kv: foreach ($res as $value) { $list[] = $value["id_shop"]; k75T3: } goto pHzQN; TZ52x: $cache = array(); goto T8F4f; KRrac: global $cache_shop_by_category; goto TZ52x; Cxl3z: return $list; goto j0oMO; jNeAk: $list = $cache; goto VSyc8; LG59v: ufZMD: goto lVisc; o7lBN: lazmy: goto sFOzn; mqDPi: SP5f_: goto Cxl3z; gwyEp: $cache = $cache_shop_by_category[$id_category]; goto w0svu; j0oMO: } public static function qtySumStockAvailable($id_product, $specific_shop_id_list = array()) { goto mPqNA; GBie3: CYl0j: goto neOPK; iJQPY: foreach ($shops as $shop_id) { goto bFYSW; wIzX5: $query->from("stock_available"); goto fyaEw; KGcfo: RJ2SV: goto TxNp3; uWSWK: qNWHd: goto KGcfo; FddC6: SCI::setQuantity($id_product, 0, (int) $new_qty, $shop_id); goto uWSWK; Wyrie: $query->where("id_product_attribute != 0 "); goto qVVV_; bFYSW: $query = new DbQuery(); goto vPcEx; fyaEw: $query->where("id_product = " . (int) $id_product); goto Wyrie; mJOt1: $new_qty = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto fYkIV; qVVV_: $query = StockAvailable::addSqlShopRestriction($query, $shop_id); goto mJOt1; vPcEx: $query->select("SUM(quantity)"); goto wIzX5; fYkIV: if (!($new_qty !== null)) { goto qNWHd; } goto FddC6; TxNp3: } goto DlD8t; DlD8t: DLeV7: goto EvaIO; pWTfO: WLJ8_: goto iJQPY; mPqNA: if (!empty($specific_shop_id_list)) { goto CYl0j; } goto FZBDm; neOPK: $shops = $specific_shop_id_list; goto pWTfO; LSKgA: goto WLJ8_; goto GBie3; FZBDm: $shops = self::getShopsByProduct($id_product); goto LSKgA; EvaIO: } public static function getSelectedWarehouse() { goto IROc0; VuRvT: IUNvw: goto zik1T; qH9b_: return 0; goto nMnnh; kfSCR: m3HD2: goto L3b3O; nMnnh: goto m3HD2; goto VuRvT; zik1T: return isset($_COOKIE["sc_warehouse_selected"]) ? (int) $_COOKIE["sc_warehouse_selected"] : 0; goto kfSCR; IROc0: if (SCAS) { goto IUNvw; } goto qH9b_; L3b3O: } public static function getProductRealQuantities($id_product, $id_product_attribute, $ids_warehouse = null, $usable = false, $has_combination = false) { goto tRcjR; WJI7T: $qty = self::getProductPhysicalQuantities($id_product, $id_product_attribute, $ids_warehouse, $usable, $has_combination); goto AHI1J; S596D: mGtjt: goto adR3s; PY0Nf: $ids_warehouse = $temp_ids_warehouse; goto O8HsQ; d0uKd: if (empty($id_product_attribute)) { goto nnhuK; } goto gaqbi; wXBYH: $res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); goto vAiK0; VEaca: w46ME: goto E3fSo; xCGIL: YjmuY: goto T3iLp; gaqbi: $query->where("od.product_attribute_id = " . (int) $id_product_attribute); goto YIX6x; SJGvP: $query->from("order_detail", "od"); goto q8Un4; tY35d: $query->where("os.shipped != 1"); goto B_tOC; WATxS: $query->select("sod.quantity_expected, sod.quantity_received"); goto gG4dA; gG4dA: $query->from("supply_order", "so"); goto cn7Lv; KMzjh: foreach ($res as $row) { $client_orders_qty += $row["product_quantity"] - $row["product_quantity_refunded"]; Va0eE: } goto Ip8gB; pviAT: $supply_orders_qty = 0; goto hPExL; tGUxu: $ids_warehouse = array_map("intval", $ids_warehouse); goto xCGIL; Bg3xN: cF2gs: goto WJI7T; xLQAD: $query->leftJoin("order_state", "os", "os.id_order_state = oh.id_order_state"); goto tY35d; N7jFA: if (!(!is_null($ids_warehouse) && count($ids_warehouse))) { goto mGtjt; } goto KByV1; tRcjR: if (!version_compare(_PS_VERSION_, "1.6.1.0", ">=")) { goto w46ME; } goto verT_; GftWQ: Fqfam: goto tGUxu; tvBOi: $query = new DbQuery(); goto WATxS; O8HsQ: qnlO9: goto Pf8Gj; AHI1J: return $qty - $client_orders_qty + $supply_orders_qty; goto VVGAE; rnYm3: if (!count($ids_warehouse)) { goto XrLUg; } goto VxQnt; Ip8gB: JrkTZ: goto RJGNd; Z4ODl: $query->leftJoin("order_history", "oh", "oh.id_order = o.id_order AND oh.id_order_history = (SELECT MAX(oh2.id_order_history) FROM " . _DB_PREFIX_ . "order_history oh2 WHERE oh2.id_order = o.id_order)"); goto xLQAD; VxQnt: $query->where("od.id_warehouse IN(" . pInSQL(implode(", ", $ids_warehouse)) . ")"); goto KVa7f; cn9Nc: if (is_array($ids_warehouse)) { goto Fqfam; } goto Ew3Xl; KByV1: $query->where("so.id_warehouse IN(" . pInSQL(implode(", ", $ids_warehouse) . ")")); goto S596D; hPExL: foreach ($supply_orders_qties as $qty) { goto J2xJ2; QAdlO: UE4dV: goto n8Q_7; n8Q_7: suwrt: goto verGR; eu8zK: $supply_orders_qty += $qty["quantity_expected"] - $qty["quantity_received"]; goto QAdlO; J2xJ2: if (!($qty["quantity_expected"] > $qty["quantity_received"])) { goto UE4dV; } goto eu8zK; verGR: } goto Bg3xN; vAiK0: $client_orders_qty = 0; goto m1Kfn; ty4Lr: $query->where("sod.id_product = " . (int) $id_product . " AND sod.id_product_attribute = " . (int) $id_product_attribute); goto N7jFA; KVYs0: $query->where("sos.pending_receipt = 1"); goto ty4Lr; AyDza: $query->select("od.product_quantity, od.product_quantity_refunded"); goto SJGvP; r4qC3: $temp_ids_warehouse = array(); goto FLSUz; YIX6x: nnhuK: goto Z4ODl; s9ch8: Qt1OT: goto PY0Nf; verT_: return Product::getRealQuantity((int) $id_product, (int) $id_product_attribute, $ids_warehouse, (int) SCI::getSelectedShop()); goto VEaca; RJGNd: Lof8Z: goto tvBOi; WhNsb: $query->where("od.product_id = " . (int) $id_product); goto d0uKd; T3iLp: if ($has_combination) { goto qnlO9; } goto r4qC3; jO_3C: $query->groupBy("od.id_order_detail"); goto rnYm3; E3fSo: if (is_null($ids_warehouse)) { goto YjmuY; } goto cn9Nc; Ew3Xl: $ids_warehouse = array($ids_warehouse); goto GftWQ; m1Kfn: if (!count($res)) { goto Lof8Z; } goto KMzjh; B_tOC: $query->where("o.valid = 1 OR (os.id_order_state != " . (int) Configuration::get("PS_OS_ERROR") . "
AND os.id_order_state != " . (int) Configuration::get("PS_OS_CANCELED") . ")"); goto jO_3C; KVa7f: XrLUg: goto wXBYH; FLSUz: foreach ($ids_warehouse as $id_warehouse) { goto BCBLa; nyvc2: zvtTF: goto duVak; KIJuv: $temp_ids_warehouse[] = $id_warehouse; goto FTmQQ; ztNq7: if (empty($temp_check_in_warehouse)) { goto W4NHJ; } goto KIJuv; FTmQQ: W4NHJ: goto nyvc2; BCBLa: $temp_check_in_warehouse = WarehouseProductLocation::getIdByProductAndWarehouse((int) $id_product, (int) $id_product_attribute, (int) $id_warehouse); goto ztNq7; duVak: } goto s9ch8; PGraI: $query->leftjoin("supply_order_state", "sos", "sos.id_supply_order_state = so.id_supply_order_state"); goto KVYs0; q8Un4: $query->leftjoin("orders", "o", "o.id_order = od.id_order"); goto WhNsb; adR3s: $supply_orders_qties = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); goto pviAT; Pf8Gj: $query = new DbQuery(); goto AyDza; cn7Lv: $query->leftjoin("supply_order_detail", "sod", "sod.id_supply_order = so.id_supply_order"); goto PGraI; VVGAE: } public static function getProductPhysicalQuantities($id_product, $id_product_attribute, $ids_warehouse = null, $usable = false, $has_combination = false) { goto lLDfj; lLDfj: if (!is_null($ids_warehouse)) { goto lPcf9; } goto bMopd; tXo9t: if (count($ids_warehouse)) { goto k47jI; } goto YgAsx; FL5pL: $query->where("s.id_product = " . (int) $id_product); goto ZJuTT; Ak5Q4: $query->where("s.id_product_attribute = " . (int) $id_product_attribute); goto dNer9; ZJuTT: if (empty($id_product_attribute)) { goto HsyQw; } goto Ak5Q4; M_q2D: lPcf9: goto Sq635; XOiqn: $query->innerJoin("warehouse_product_location", "wpl", "(wpl.id_product = s.id_product AND wpl.id_product_attribute = s.id_product_attribute" . (count($ids_warehouse) ? " AND wpl.id_warehouse IN(" . pInSQL(implode(", ", $ids_warehouse)) . ")" : '') . ")"); goto NDVxl; YgAsx: return 0; goto LMklf; xVSQr: tpZ24: goto O56g9; BnpHA: if (!$has_combination) { goto IWR2s; } goto XOiqn; R1HGD: goto Fjpir; goto M_q2D; GV34D: $query->where("s.id_warehouse IN(" . pInSQL(implode(", ", $ids_warehouse) . ")")); goto PrMRf; LMklf: k47jI: goto gLaLL; snhfD: $query->select("SUM(" . ($usable ? "s.usable_quantity" : "s.physical_quantity") . ")"); goto WB6yD; kf4I9: if (!$has_combination) { goto tpZ24; } goto TRHal; dNer9: HsyQw: goto OYbi7; riwvy: V6MNu: goto A5KxF; ZGG7e: $query = new DbQuery(); goto snhfD; og1L3: $ids_warehouse = array($ids_warehouse); goto riwvy; WB6yD: $query->from("stock", "s"); goto BnpHA; NDVxl: IWR2s: goto FL5pL; OYbi7: if (!count($ids_warehouse)) { goto e60xQ; } goto GV34D; gLaLL: Fjpir: goto ZGG7e; bMopd: $ids_warehouse = array(); goto R1HGD; O56g9: return (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto CV93Z; A5KxF: $ids_warehouse = array_map("intval", $ids_warehouse); goto tXo9t; TRHal: $query->where("s.id_product_attribute != 0"); goto xVSQr; PrMRf: e60xQ: goto kf4I9; Sq635: if (is_array($ids_warehouse)) { goto V6MNu; } goto og1L3; CV93Z: } public static function getCustomerCartRules($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null, $free_shipping_only = false, $highlight_only = false) { goto BigT_; BigT_: if (version_compare(_PS_VERSION_, "1.7.0.0", ">=")) { goto JOkIe; } goto J2U2T; M3xla: return Discount::getCustomerDiscounts($id_lang, $id_customer, $active, $includeGeneric, $inStock); goto FEMEe; CMhjx: NGT8T: goto UyVjZ; J2U2T: if (version_compare(_PS_VERSION_, "1.5.0.1", ">=")) { goto NGT8T; } goto M3xla; tc3l0: goto aEshU; goto CMhjx; FEMEe: goto aEshU; goto o39QZ; o39QZ: JOkIe: goto BK4a_; UyVjZ: return self::_getCustomerCartRules($id_lang, $id_customer, $active, $includeGeneric, $inStock, $cart); goto Cn4oL; BK4a_: return self::_getCustomerCartRules_17($id_lang, $id_customer, $active, $includeGeneric, $inStock, $cart, $free_shipping_only, $highlight_only); goto tc3l0; Cn4oL: aEshU: goto qaljx; qaljx: } public static function _getCustomerCartRules_17($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null, $free_shipping_only = false, $highlight_only = false) { goto aGOsD; gIL_6: foreach ($result as $key => $cart_rule) { goto rL4qG; bgh04: $cartRuleShops = Db::getInstance()->executeS("SELECT id_shop FROM " . _DB_PREFIX_ . "cart_rule_shop WHERE id_cart_rule = " . (int) $cart_rule["id_cart_rule"]); goto p0hfa; SdDF1: Ia4ju: goto h15rP; qmzmF: DWnJp: goto EYoXY; p0hfa: foreach ($cartRuleShops as $cartRuleShop) { goto fu38B; cVu2X: goto bwLGF; goto q23AB; GJ_Ih: Y17ZW: goto mX5mb; q23AB: C34P6: goto GJ_Ih; fu38B: if (!(Shop::isFeatureActive() && $cartRuleShop["id_shop"] == (int) SCI::getSelectedShop())) { goto C34P6; } goto cVu2X; mX5mb: } goto qmzmF; h15rP: bwLGF: goto ksqVg; rL4qG: if (!$cart_rule["shop_restriction"]) { goto Ia4ju; } goto bgh04; EYoXY: unset($result[$key]); goto SdDF1; ksqVg: } goto vE_RX; Prj8c: $sql_part2 = " AND cr.date_from < "" . date("Y-m-d H:i:s") . ""\xa AND cr.date_to > "" . date("Y-m-d H:i:s") . ""
" . ($active ? "AND cr.`active` = 1" : '') . "\xa " . ($inStock ? "AND cr.`quantity` > 0" : ''); goto OK7jZ; IytM4: $sql .= " UNION (SELECT " . $sql_part1 . " WHERE cr.`group_restriction` = 1 " . $sql_part2 . ")"; goto DnjZJ; nlkGV: Tkymc: goto mzAEL; QvYA9: pjGF5: goto rAGD1; aE_Vd: v550F: goto fbb2T; cr0kw: $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql, true, false); goto OKn0y; EvaFr: $result = $result_bak; goto aE_Vd; fbb2T: return $result; goto AkDHd; O1wTZ: if (!(isset($cart) && isset($cart->id))) { goto OuXXH; } goto Nu2R6; vE_RX: AdzrT: goto O1wTZ; Nu2R6: foreach ($result as $key => $cart_rule) { goto Ccd8g; BEGKp: HpkwG: goto ePg1J; ePg1J: unset($result[$key]); goto fE0gt; Pe30t: goto Ti_vv; goto ZsyzL; IF2GO: rlhzJ: goto p1ANt; o0fgv: goto rlhzJ; goto BEGKp; Ccd8g: if (!$cart_rule["product_restriction"]) { goto gvOxE; } goto WnDv1; ZsyzL: ZRdAC: goto TWctc; uaptF: if (!($r !== false)) { goto HpkwG; } goto o0fgv; d4iud: Ti_vv: goto uaptF; ih8Sz: if (version_compare(_PS_VERSION_, "8.0.0", ">=")) { goto ZRdAC; } goto lxqaz; WnDv1: $cr = new CartRule((int) $cart_rule["id_cart_rule"]); goto ih8Sz; lxqaz: $r = $cr->checkProductRestrictions(Context::getContext(), false, false); goto Pe30t; TWctc: $r = $cr->checkProductRestrictionsFromCart($cart, false, false); goto d4iud; fE0gt: gvOxE: goto IF2GO; p1ANt: } goto xl2Fv; i94Y1: OuXXH: goto q12QT; oUX_3: foreach ($result_bak as $key => $cart_rule) { goto UWZkd; y3j0u: U9DQx: goto DFqZl; iZgE5: vmfwq: goto y3j0u; UWZkd: if ($cart_rule["country_restriction"]) { goto zHviU; } goto PpnNW; l71hF: $country_restriction = true; goto GrMi0; GrMi0: $countries = Db::getInstance()->ExecuteS("
SELECT `id_country`
FROM `" . _DB_PREFIX_ . "address`
WHERE `id_customer` = " . (int) $id_customer . "\xa AND `deleted` = 0"); goto hIz3o; H7FBL: foreach ($countries as $country) { goto fSUR7; W0txx: $result[] = $result_bak[$key]; goto gXRzd; tKYQP: f0ICl: goto F9Nib; fSUR7: $id_cart_rule = (bool) Db::getInstance()->getValue("\xa SELECT crc.id_cart_rule
FROM " . _DB_PREFIX_ . "cart_rule_country crc
WHERE crc.id_cart_rule = " . (int) $cart_rule["id_cart_rule"] . "
AND crc.id_country = " . (int) $country["id_country"]); goto QqAXp; HXXzn: kfXk2: goto tKYQP; QqAXp: if (!$id_cart_rule) { goto kfXk2; } goto W0txx; gXRzd: goto H3VIw; goto HXXzn; F9Nib: } goto TSsCR; hIz3o: if (!(is_array($countries) && count($countries))) { goto vmfwq; } goto H7FBL; PpnNW: $result[] = $result_bak[$key]; goto fef_s; DJgNs: zHviU: goto l71hF; TSsCR: H3VIw: goto iZgE5; fef_s: goto U9DQx; goto DJgNs; DFqZl: uOqAh: goto AkuO4; AkuO4: } goto aU5Oh; XBUZK: foreach ($result as &$cart_rule) { goto iOdc5; hd6Es: $quantity_used = Order::getDiscountsCustomer((int) $id_customer, (int) $cart_rule["id_cart_rule"]); goto dsKzf; HOU1C: goto K14lX; goto GaPZG; dsKzf: if (!(isset($cart) && isset($cart->id))) { goto ROILG; } goto PTygg; gE8nV: $cart_rule["quantity_for_user"] = $cart_rule["quantity_per_user"] - $quantity_used; goto z2RYf; z2RYf: K14lX: goto u41KY; RuZQy: ROILG: goto gE8nV; PTygg: $quantity_used += $cart->getDiscountsCustomer((int) $cart_rule["id_cart_rule"]); goto RuZQy; u41KY: mMo3G: goto YZ6EC; WnsZt: $cart_rule["quantity_for_user"] = 0; goto HOU1C; iOdc5: if ($cart_rule["quantity_per_user"]) { goto qbiUV; } goto WnsZt; GaPZG: qbiUV: goto hd6Es; YZ6EC: } goto N0e4K; jLGIi: $sql_part2 .= " AND free_shipping = 1 AND carrier_restriction = 1"; goto Wc3Fd; rAGD1: $sql_part1 = "* FROM `" . _DB_PREFIX_ . "cart_rule` cr\xa LEFT JOIN `" . _DB_PREFIX_ . "cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = " . (int) $id_lang . ")"; goto Prj8c; q12QT: $result_bak = $result; goto iynAr; DakPg: if (!$highlight_only) { goto w5hMY; } goto ly8aX; vyB42: return array(); goto nlkGV; Dwcok: return array(); goto QvYA9; waW5G: unset($cart_rule); goto gIL_6; DnjZJ: if (!($includeGeneric && (int) $id_customer != 0)) { goto VhWTF; } goto sr9jV; btdco: foreach ($result as $key => $cart_rule) { goto yIqgW; q3zPj: unset($result[$key]); goto JgQco; yIqgW: if (!$cart_rule["group_restriction"]) { goto PyALt; } goto NYjn2; uGnjc: foreach ($cartRuleGroups as $cartRuleGroup) { goto HWBmH; RQ383: rQMi5: goto ICCl3; HWBmH: if (!in_array($cartRuleGroup["id_group"], $customerGroups)) { goto bPea2; } goto mHcbs; xIU9r: bPea2: goto RQ383; mHcbs: goto lP2x4; goto xIU9r; ICCl3: } goto EJykK; NYjn2: $cartRuleGroups = Db::getInstance()->executeS("SELECT id_group FROM " . _DB_PREFIX_ . "cart_rule_group WHERE id_cart_rule = " . (int) $cart_rule["id_cart_rule"]); goto uGnjc; JgQco: PyALt: goto Nj9I6; Nj9I6: lP2x4: goto PCpLL; EJykK: zSTjj: goto q3zPj; PCpLL: } goto Z5rDs; OK7jZ: if (!$free_shipping_only) { goto KF1r_; } goto jLGIi; aGOsD: if (CartRule::isFeatureActive()) { goto pjGF5; } goto Dwcok; aU5Oh: DjexA: goto KYIlY; o0O2N: VhWTF: goto cr0kw; N0e4K: wjca3: goto waW5G; IvTxf: $sql = "(SELECT SQL_NO_CACHE " . $sql_part1 . " WHERE cr.`id_customer` = " . (int) $id_customer . " " . $sql_part2 . ")"; goto IytM4; xl2Fv: SgYSE: goto i94Y1; mzAEL: $customerGroups = Customer::getGroupsStatic($id_customer); goto btdco; Wc3Fd: KF1r_: goto DakPg; tVMcL: $country_restriction = false; goto oUX_3; sr9jV: $sql .= " UNION (SELECT " . $sql_part1 . " WHERE cr.`id_customer` = 0 " . $sql_part2 . ")"; goto o0O2N; Z5rDs: tmv47: goto XBUZK; ly8aX: $sql_part2 .= " AND highlight = 1 AND code NOT LIKE "" . pSQL(CartRule::BO_ORDER_CODE_PREFIX) . "%""; goto sgm2r; KYIlY: if ($country_restriction) { goto v550F; } goto EvaFr; sgm2r: w5hMY: goto IvTxf; iynAr: $result = array(); goto tVMcL; OKn0y: if (!empty($result)) { goto Tkymc; } goto vyB42; AkDHd: } public static function _getCustomerCartRules($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null) { goto dZ_WO; dLw3U: foreach ($result as $key => $cart_rule) { goto qwT6_; oHQDE: foreach ($cartRuleGroups as $cartRuleGroup) { goto v6HRc; v6HRc: if (!in_array($cartRuleGroup["id_group"], $customerGroups)) { goto wFPzU; } goto ZNlrk; ZNlrk: goto Oqda8; goto mowv8; mowv8: wFPzU: goto AB5IJ; AB5IJ: KFwya: goto Ldu2g; Ldu2g: } goto kfjvZ; FN3rn: $cartRuleGroups = Db::getInstance()->executeS("SELECT id_group FROM " . _DB_PREFIX_ . "cart_rule_group WHERE id_cart_rule = " . (int) $cart_rule["id_cart_rule"]); goto oHQDE; JCAx7: Oqda8: goto P5qpb; NAOiG: wNQ4p: goto JCAx7; PK1jA: unset($result[$key]); goto NAOiG; qwT6_: if (!$cart_rule["group_restriction"]) { goto wNQ4p; } goto FN3rn; kfjvZ: MG_7p: goto PK1jA; P5qpb: } goto ijTAA; t2YfK: if (!$includeGeneric) { goto WilxJ; } goto eMATg; TdhmM: lLnBU: goto X9HAm; cqYNb: return $result; goto hJ7h8; hUgVz: WilxJ: goto iN23C; r8cuZ: g8Rmf: goto TdhmM; eMATg: $customerGroups = Customer::getGroupsStatic($id_customer); goto dLw3U; KiefN: foreach ($result as $cart_rule) { goto UqM30; ZDNr6: unset($result[$key]); goto XySI8; UqM30: if (!$cart_rule["shop_restriction"]) { goto y35ta; } goto f1vcs; f1vcs: $cartRuleShops = Db::getInstance()->executeS("SELECT id_shop FROM " . _DB_PREFIX_ . "cart_rule_shop WHERE id_cart_rule = " . (int) $cart_rule["id_cart_rule"]); goto t8slv; XySI8: y35ta: goto kkGS4; t8slv: foreach ($cartRuleShops as $cartRuleShop) { goto z0rbH; z0rbH: if (!(Shop::isFeatureActive() && $cartRuleShop["id_shop"] == (int) SCI::getSelectedShop())) { goto z5sXV; } goto F6Rdz; F6Rdz: goto l6AFh; goto UOFel; UOFel: z5sXV: goto s4DTG; s4DTG: yTNfO: goto buHje; buHje: } goto S6ibI; S6ibI: DdG6c: goto ZDNr6; kkGS4: l6AFh: goto TtHW7; TtHW7: } goto r8cuZ; dAKay: if (!version_compare(_PS_VERSION_, "1.6.0.0", ">=")) { goto lLnBU; } goto Ql7Ta; ijTAA: acXl6: goto hUgVz; HwnBD: FJwm0: goto x2QXI; X9HAm: foreach ($result as $cart_rule) { goto zz2aN; U8dj7: goto CS3Rm; goto TbLMC; XT5ZV: $cart_rule["value"] = $cart_rule["reduction_amount"]; goto ujX2C; sOPSL: if ($cart_rule["reduction_percent"] > 0) { goto iBop9; } goto l31TK; e60hs: $cart_rule["id_discount_type"] = Discount::PERCENT; goto WC3Dm; l31TK: if ($cart_rule["reduction_amount"] > 0) { goto wBZd0; } goto U7Vch; zz2aN: $cart_rule["value"] = 0; goto LWcCT; BRlxT: goto CS3Rm; goto esf01; p219N: $cart_rule["id_discount_type"] = Discount::FREE_SHIPPING; goto U8dj7; ujX2C: CS3Rm: goto ipueA; LWcCT: $cart_rule["minimal"] = $cart_rule["minimum_amount"]; goto It3kK; ipueA: mKXJF: goto O8rZO; WC3Dm: $cart_rule["value"] = $cart_rule["reduction_percent"]; goto BRlxT; esf01: wBZd0: goto jl9v6; kYDxe: oHwtr: goto p219N; TbLMC: iBop9: goto e60hs; It3kK: $cart_rule["cumulable"] = !$cart_rule["cart_rule_restriction"]; goto xAPC3; xAPC3: $cart_rule["id_discount_type"] = false; goto nJ36m; U7Vch: goto CS3Rm; goto kYDxe; jl9v6: $cart_rule["id_discount_type"] = Discount::AMOUNT; goto XT5ZV; nJ36m: if ($cart_rule["free_shipping"]) { goto oHwtr; } goto sOPSL; O8rZO: } goto sYfQD; Mc_Q9: return array(); goto HwnBD; dZ_WO: if (CartRule::isFeatureActive()) { goto FJwm0; } goto Mc_Q9; iN23C: foreach ($result as $cart_rule) { goto gFSP9; h5Ad5: tjqzb: goto IGOqA; KBnzn: rj5A1: goto h5Ad5; Pzuq5: $quantity_used += $cart->getDiscountsCustomer((int) $cart_rule["id_cart_rule"]); goto sx2J0; gFSP9: if ($cart_rule["quantity_per_user"]) { goto kfrhC; } goto FiVCl; UxLPU: goto rj5A1; goto rSkXs; sx2J0: d06uE: goto YXoDH; YXoDH: $cart_rule["quantity_for_user"] = $cart_rule["quantity_per_user"] - $quantity_used; goto KBnzn; rSkXs: kfrhC: goto UVwDI; UVwDI: $quantity_used = Order::getDiscountsCustomer((int) $id_customer, (int) $cart_rule["id_cart_rule"]); goto CBnLI; FiVCl: $cart_rule["quantity_for_user"] = 0; goto UxLPU; CBnLI: if (!(isset($cart) && isset($cart->id))) { goto d06uE; } goto Pzuq5; IGOqA: } goto DxHdH; x2QXI: $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS("\xa SELECT *
FROM `" . _DB_PREFIX_ . "cart_rule` cr
LEFT JOIN `" . _DB_PREFIX_ . "cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = " . (int) $id_lang . ")
WHERE (\xa cr.`id_customer` = " . (int) $id_customer . "
" . ($includeGeneric ? "OR cr.`id_customer` = 0" : '') . "\xa )
" . ($active ? "AND cr.`active` = 1" : '') . "\xa " . ($inStock ? "AND cr.`quantity` > 0" : '')); goto t2YfK; DxHdH: cQN7m: goto dAKay; sYfQD: LrXWM: goto cqYNb; Ql7Ta: unset($cart_rule); goto KiefN; hJ7h8: } public static function days_in_month($month, $year) { return $month == 2 ? $year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29)) : (($month - 1) % 7 % 2 ? 30 : 31); } public static function getProductQty($id_product, $id_product_attribute = null, $id_warehouse = null, $id_shop = null) { goto agckG; HATM0: q_VgW: goto XK34j; zEBpN: return $return; goto HATM0; vrigQ: ST5YA: goto CQ8L7; mgNBY: agJXI: goto j8Rt0; CQ8L7: $return = self::_getProductAttributeQty($id_product, $id_product_attribute, $id_warehouse, $id_shop); goto mgNBY; HC8cV: $return = self::_getProductQty($id_product, $id_product_attribute, $id_warehouse, $id_shop); goto LMHZ2; j8Rt0: return $return; goto F22Aq; fPvRb: if (!empty($id_product)) { goto q_VgW; } goto zEBpN; LMHZ2: goto agJXI; goto vrigQ; XK34j: if (!empty($id_product_attribute)) { goto ST5YA; } goto HC8cV; agckG: $return = 0; goto fPvRb; F22Aq: } public static function _getProductQty($id_product, $id_product_attribute = null, $id_warehouse = null, $id_shop = null) { goto xVh89; pAzjW: ue88u: goto D9rGf; XIMTH: goto OlGFq; goto lPNNh; okrxV: XokgQ: goto k2BYZ; vjrsV: QeAzS: goto heIxz; zwp7f: $query->select("SUM(st.usable_quantity) as usable_quantity"); goto EZIsy; dCrCz: if (!(SCAS && empty($id_warehouse))) { goto DFSBF; } goto bnWwK; KWC7K: $query->where("id_product = " . (int) $id_product); goto FqeZ0; Gz2UC: ZGprj: goto JRRvP; BuLHi: $is_advanced_stock_management = false; goto n0GOl; e4lPj: im6ni: goto kLYo0; hO7Qz: EMz16: goto GASNa; K2oYJ: $query->from("stock_available"); goto lijx4; GASNa: $query = new DbQuery(); goto TDQDR; uOAhn: $ret = Db::getInstance()->ExecuteS($sql); goto RiuBu; kcPtB: if (version_compare(_PS_VERSION_, "1.5.0.0", "<") && $has_combination) { goto Y7wXo; } goto w_KWX; rnXXu: $query->select("SUM(quantity)"); goto K2oYJ; JHaCN: $type_advanced_stock_management = 1; goto BuLHi; XsVBF: return $return; goto zCkM2; OPikW: yg0bi: goto lL9s_; zztke: $query->where("id_product = " . (int) $id_product); goto kE1QU; heIxz: $return = 0; goto e5ocx; evglc: $query->from("stock_available"); goto KWC7K; fNm_2: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto P1YJq; PUOfb: if (!SCAS) { goto im6ni; } goto WdiWO; BKFjV: Y7wXo: goto klqqd; GOBlF: $without_warehouse = true; goto DkLvV; tp7Ni: $query->where("id_warehouse = " . (int) $id_warehouse); goto ijNxX; m4H9v: $query->where("st.id_product_attribute != 0"); goto SrcY2; lM0AT: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto DYRsk; Y6u7O: $query->where("id_product_attribute != 0"); goto m6Vp5; X9BSJ: $type_advanced_stock_management = 2; goto ymTld; zSGTh: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=") && $has_combination) { goto DbGCT; } goto Bl_ma; Ey5jy: if (version_compare(_PS_VERSION_, "1.7.0.0", ">=")) { goto EMz16; } goto zSGTh; g2p8g: return $return; goto U9ZcX; gdPUw: $return = $ret[0]["quantity"]; goto o1ItA; aowzQ: $query = new DbQuery(); goto zwp7f; CU2a2: if (!empty($return)) { goto hw2Gb; } goto neWyH; sPVd6: $product = new Product($id_product); goto a3TTn; y8835: $query->where("st.id_warehouse = " . (int) $id_warehouse); goto m4H9v; FqeZ0: $query->where("id_product_attribute = 0"); goto m4Epo; dJlGT: $return = $quantities["usable_quantity"]; goto woG4_; w_KWX: $return = $product->quantity; goto XIMTH; nwbyF: dCOXB: goto CEIrG; pdl8H: iDwBQ: goto XwiZ9; k2BYZ: $query = new DbQuery(); goto psH98; kE1QU: $query->where("id_product_attribute = 0"); goto O5oKU; CVcQJ: DFSBF: goto JHaCN; EZIsy: $query->from("stock", "st"); goto j9r3O; o1ItA: ArtLN: goto IV2hZ; lPNNh: PINV6: goto aowzQ; klqqd: $sql = "SELECT SUM(quantity) as quantity FROM " . _DB_PREFIX_ . "product_attribute WHERE id_product = " . (int) $id_product . " AND id_product_attribute != 0"; goto uOAhn; D9rGf: $product = new Product($id_product, false, null, (int) $id_shop); goto lUkCs; nMapR: if (empty($temp_check_in_warehouse)) { goto iDwBQ; } goto B1rfP; DkLvV: $usable_quantity = 0; goto PUOfb; UPT75: if (!SCMS) { goto iwOoI; } goto vOfKw; EJAGC: $has_combination = true; goto nwbyF; neWyH: $return = 0; goto wpgqi; XwiZ9: if (StockAvailable::dependsOnStock((int) $id_product, (int) SCI::getSelectedShop())) { goto yg0bi; } goto EAByM; MciEE: $query = new DbQuery(); goto kV9bz; ijNxX: $quantities = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query); goto nS5Jx; bnWwK: $id_warehouse = (int) SCI::getSelectedWarehouse(); goto CVcQJ; a3TTn: goto aUU2E; goto pAzjW; Wwf_M: $query = new DbQuery(); goto rnXXu; dcBZv: DbGCT: goto Wwf_M; dC_lA: $not_in_warehouse = true; goto GOBlF; kLYo0: if (!$product->hasAttributes()) { goto dCOXB; } goto EJAGC; m4Epo: if (!SCMS) { goto ZGprj; } goto z15aK; XASyC: if (SCAS && $type_advanced_stock_management == 2 && $not_in_warehouse) { goto QeAzS; } goto Ey5jy; EAByM: $type_advanced_stock_management = 3; goto OPikW; ymTld: $temp_check_in_warehouse = WarehouseProductLocation::getIdByProductAndWarehouse((int) $id_product, 0, (int) $id_warehouse); goto nMapR; P1YJq: KksZv: goto OoeLE; vOfKw: if (!empty($id_shop)) { goto Viv6v; } goto Llgkp; o59q_: mYANx: goto lM0AT; nS5Jx: $return = $quantities["usable_quantity"]; goto IP2X9; Tnr8w: $is_advanced_stock_management = true; goto X9BSJ; SrcY2: $quantities = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query); goto dJlGT; U2Ade: if (!empty($id_product)) { goto n8vPr; } goto XsVBF; RiuBu: if (empty($ret[0]["quantity"])) { goto ArtLN; } goto gdPUw; yqUGB: goto OlGFq; goto dcBZv; fism0: cdt90: goto MciEE; lijx4: $query->where("id_product = " . (int) $id_product); goto Y6u7O; z15aK: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto Gz2UC; lUkCs: aUU2E: goto dCrCz; TDQDR: $query->select("quantity"); goto dtMep; kV9bz: $query->select("SUM(usable_quantity) as usable_quantity"); goto Cp0Z7; Bl_ma: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=") && !$has_combination) { goto XokgQ; } goto kcPtB; lL9s_: qo89e: goto e4lPj; NC1mB: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto o59q_; WdiWO: if (!($product->advanced_stock_management == 1)) { goto qo89e; } goto Tnr8w; Cxhj1: Viv6v: goto bE1BW; m6Vp5: if (!SCMS) { goto mYANx; } goto NC1mB; zCkM2: n8vPr: goto UPT75; OoeLE: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto yqUGB; anGSU: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto ue88u; } goto sPVd6; woG4_: goto OlGFq; goto fism0; IP2X9: goto OlGFq; goto vjrsV; bE1BW: iwOoI: goto anGSU; n0GOl: $has_combination = false; goto dC_lA; O5oKU: if (!SCMS) { goto KksZv; } goto fNm_2; EEu_9: if (SCAS && $type_advanced_stock_management == 2 && !$has_combination && !$not_in_warehouse) { goto cdt90; } goto XASyC; Llgkp: $id_shop = SCI::getSelectedShop(); goto Cxhj1; psH98: $query->select("quantity"); goto evglc; wpgqi: hw2Gb: goto g2p8g; IV2hZ: OlGFq: goto CU2a2; DYRsk: goto OlGFq; goto okrxV; JRRvP: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto jXA0L; e5ocx: goto OlGFq; goto hO7Qz; B1rfP: $not_in_warehouse = false; goto pdl8H; jXA0L: goto OlGFq; goto BKFjV; xVh89: $return = 0; goto U2Ade; Cp0Z7: $query->from("stock"); goto FLfAl; FLfAl: $query->where("id_product = " . (int) $id_product); goto tp7Ni; CEIrG: if (SCAS && $type_advanced_stock_management == 2 && $has_combination && !$not_in_warehouse) { goto PINV6; } goto EEu_9; dtMep: $query->from("stock_available"); goto zztke; j9r3O: $query->where("st.id_product = " . (int) $id_product); goto y8835; U9ZcX: } public static function _getProductAttributeQty($id_product, $id_product_attribute = null, $id_warehouse = null, $id_shop = null) { goto d5lxX; d5lxX: $return = 0; goto t0K_i; Gmn6p: goto bxtux; goto EVV1y; qsctz: $query->from("stock_available"); goto J1IGn; kMn63: $query = new DbQuery(); goto Hfj6V; JQ3tY: $query->where("st.id_warehouse = " . (int) $id_warehouse); goto RIIr2; eOot3: $query = new DbQuery(); goto Mdeqa; tCO5e: return $return; goto BRdxf; CD9uQ: goto bxtux; goto uTOZH; COX6f: SzvO7: goto bpslx; uTOZH: W4tNc: goto kMn63; Mdeqa: $query->select("SUM(quantity)"); goto IHASR; BKw8P: zgHXS: goto i__0D; E6ecz: $without_warehouse = true; goto sovYl; BOGqZ: goto JyI9h; goto P8t3j; uMaNX: Em73m: goto tCO5e; sovYl: if (!SCAS) { goto SzvO7; } goto plEs9; d3oKw: goto CIX2Y; goto HvuJg; WPhGQ: Sq6Uf: goto Ks55s; co11s: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto Dep_D; Ks55s: $is_advanced_stock_management = false; goto PSLgT; MjQDX: $query->where("id_product_attribute = " . (int) $id_product_attribute); goto vHXM8; T2ocE: $is_advanced_stock_management = true; goto bAL5d; LSW90: $return = $quantities["usable_quantity"]; goto bIZfF; qIMlA: if (empty($temp_check_in_warehouse)) { goto euOLK; } goto ugtGx; vHXM8: if (!SCMS) { goto ND8x6; } goto J8qz1; P8t3j: zvwRy: goto a55fe; J1IGn: $query->where("id_product = " . (int) $id_product); goto MjQDX; xBPMN: $product = new Product($id_product, false, null, (int) $id_shop); goto elbP5; TF786: bxtux: goto eGYBL; DI93f: if (!SCMS) { goto FGjHe; } goto WE8mf; F9bj3: if ((!SCAS || SCAS && $type_advanced_stock_management == 1) && version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto s_HGi; } goto fg738; RIIr2: $query->where("st.id_product_attribute = " . (int) $id_product_attribute); goto elX3O; XupTZ: $combination->quantity = 0; goto BOGqZ; OHZLq: $not_in_warehouse = true; goto E6ecz; LscZG: if (!SCMS) { goto UKZv6; } goto zsK5o; U9r3e: rV84J: goto O00dQ; jaNIW: if (!empty($result[0]["quantity"]) && is_numeric($result[0]["quantity"])) { goto zvwRy; } goto XupTZ; U2QId: goto OfBtl; goto cZmCK; ZXKEi: if (SCAS && $type_advanced_stock_management == 2 && $not_in_warehouse) { goto Al3l5; } goto F9bj3; Ropnl: $query->from("stock", "st"); goto xOoSC; ugtGx: $not_in_warehouse = false; goto HCHD2; lcToU: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto TF786; xOoSC: $query->where("st.id_product = " . (int) $id_product); goto JQ3tY; zsK5o: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto o8CwP; bpslx: if (SCAS && $type_advanced_stock_management == 2 && !$not_in_warehouse) { goto W4tNc; } goto ZXKEi; fIniq: $product = new Product($id_product); goto U2QId; o8CwP: UKZv6: goto lcToU; VEXT1: $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS("
SELECT quantity\xa FROM `" . _DB_PREFIX_ . "product_attribute`
WHERE id_product_attribute = "" . (int) $id_product_attribute . """); goto Jk0Rw; Jk0Rw: $combination = new stdClass(); goto jaNIW; rFLOx: $return = $combination->quantity; goto d3oKw; bAL5d: $type_advanced_stock_management = 2; goto zgmmr; Dep_D: CIX2Y: goto CD9uQ; VMrcm: return $return; goto wniVJ; t0K_i: if (!empty($id_product)) { goto ktrcj; } goto VMrcm; IHASR: $query->from("stock_available"); goto x9iOw; mpBSd: $query->select("quantity"); goto qsctz; HvuJg: dntuW: goto EnIRC; PSLgT: $type_advanced_stock_management = 1; goto OHZLq; gr3Ny: $id_shop = SCI::getSelectedShop(); goto BKw8P; elX3O: $quantities = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query); goto LSW90; x9iOw: $query->where("id_product = " . (int) $id_product); goto H8IhM; kwTRL: JyI9h: goto rFLOx; WE8mf: if (!empty($id_shop)) { goto zgHXS; } goto gr3Ny; zgmmr: if (StockAvailable::dependsOnStock((int) $id_product, (int) $id_shop)) { goto rV84J; } goto lBSdu; wniVJ: ktrcj: goto DI93f; plEs9: if (!($product->advanced_stock_management == 1)) { goto Wv8qq; } goto T2ocE; J8qz1: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto ea6y2; Hfj6V: $query->select("SUM(st.usable_quantity) as usable_quantity"); goto Ropnl; eGYBL: if (!empty($return)) { goto Em73m; } goto TFLCt; bIZfF: goto bxtux; goto rrB30; TFLCt: $return = 0; goto uMaNX; a55fe: $combination->quantity = (int) $result[0]["quantity"]; goto kwTRL; GFbCY: euOLK: goto COX6f; ESvQs: $id_warehouse = (int) SCI::getSelectedWarehouse(); goto WPhGQ; H8IhM: $query->where("id_product_attribute = " . (int) $id_product_attribute); goto LscZG; eNqI3: $return = 0; goto Gmn6p; O00dQ: Wv8qq: goto zNkOm; AhyfC: if (!(SCAS && empty($id_warehouse))) { goto Sq6Uf; } goto ESvQs; lBSdu: $type_advanced_stock_management = 3; goto U9r3e; ea6y2: ND8x6: goto co11s; EVV1y: s_HGi: goto eOot3; fg738: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto dntuW; } goto VEXT1; EnIRC: $query = new DbQuery(); goto mpBSd; i__0D: FGjHe: goto JpMrg; cZmCK: dsMTp: goto xBPMN; elbP5: OfBtl: goto AhyfC; rrB30: Al3l5: goto eNqI3; JpMrg: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto dsMTp; } goto fIniq; HCHD2: $without_warehouse = false; goto GFbCY; zNkOm: $temp_check_in_warehouse = WarehouseProductLocation::getIdByProductAndWarehouse((int) $id_product, (int) $id_product_attribute, (int) $id_warehouse); goto qIMlA; BRdxf: } public static function roundPrice($price, $modif_type) { goto dPMEX; qMcCY: if ($decimal >= 75 && $decimal <= 99) { goto Dwk8t; } goto kFFTo; nhAmM: $return = str_replace(",", ".", $return * 10); goto Os9oa; XWWzA: $decimal = 5; goto c9g_S; qpueV: $return = $unite + 2; goto pIzR0; yoCSU: $decimal = 0; goto YDY6w; n92kp: goto JEO0E; goto J8lit; mkVCY: $return = round($return); goto qOI1A; JKOoR: goto tMMQK; goto Yrcnt; TBra6: C0Dkk: goto zMnzt; W4wXz: --$return; goto V42sp; AoqLF: goto FbJU2; goto bJn4U; W4bjd: if ($decimal >= 6 && $decimal <= 9) { goto E09XW; } goto m93dg; vRceK: $decimal = 5; goto oVsEv; Gh6u4: goto zpTVn; goto zmCIx; OQOpj: if ($round_type == 2) { goto lJ30y; } goto P43Zh; kIGkC: $decimal = 0; goto aU_Lp; NB83B: HGW9e: goto Axa0r; ipbxQ: SQO1G: goto oNIje; fSj_s: if (empty($round_type)) { goto F5Tl6; } goto eMss5; iECxq: if (empty($round_type)) { goto yYZKt; } goto BlLWE; grqPz: goto wiDmj; goto ybo3h; STGzg: if ($round_type == "1") { goto j1qi6; } goto rKEt5; imaRL: if ($round_type == "1") { goto Xsakx; } goto AHCeJ; Hx5ch: upthf: goto M0k8R; QCBpV: if (!(strlen($decimal) == 1)) { goto IW1_S; } goto etEXi; xcME3: if ($decimal > 90) { goto HhAMJ; } goto gGNO6; aU_Lp: goto UQ1SI; goto XKbKN; uAnHk: u0BHF: goto OAM9M; S51U7: if ($round_type == "2") { goto dJc0q; } goto dfrk4; QyTCt: goto WPuhe; goto VKiMf; X6Kkw: if (!($round_type == "1")) { goto I9gwd; } goto BDfeT; xLBCh: if (!($round_type == "1")) { goto PqT6n; } goto M4bEO; Jm3yn: $return = str_replace(",", ".", $return * 1000000); goto D6Glv; Kfggs: if ($modif_type == "9") { goto nRr7b; } goto nQrXa; zTWMu: if ($round_type == "2") { goto zrTp_; } goto ivP5m; DEqRm: oMHqP: goto Jfmu4; u5T2P: if ($decimal >= 8 && $decimal <= 9) { goto Qd3R3; } goto h1PJS; d_p5e: if (empty($round_type)) { goto LBkdM; } goto rS1te; Yrcnt: PgKj2: goto ZkdDO; APsjT: itrg7: goto S3dnW; M4bEO: $return = str_replace(",", ".", $return * 1000000); goto XEndp; BTFwE: $decimal = 0; goto kxudg; dPMEX: $return = $price; goto jp0ga; OmyyC: $decimal = $decimal . "0"; goto NMgEh; Q_sda: if (empty($round_type)) { goto jX1x5; } goto gE47D; IClxU: tMMQK: goto HqsgE; JMIX2: PqT6n: goto J4vYG; Pz0UM: ri3rb: goto UxJrI; NoCbP: goto BF3b2; goto yeLIT; d3d4V: if ($modif_type == "1") { goto Xv35k; } goto v6cWu; fRsgk: P2F76: goto dswv3; IzjAK: goto AXS3r; goto Lwpak; P1utA: goto AXS3r; goto RGacj; Ihjcg: $return = $return / 100; goto dp6PJ; nQrXa: if ($modif_type == "10") { goto oMHqP; } goto EIBDM; m4zhj: goto zpTVn; goto cWItd; VWNdj: tc0m2: goto kIGkC; hzmvD: if (empty($round_type)) { goto oiUww; } goto eaoln; fy0Y8: list($unite, $decimal) = explode(".", $return); goto zM5OU; kgvSb: goto EVZCT; goto cLx9q; Rf4VR: Dwk8t: goto p0RkU; AHCeJ: if ($round_type == "2") { goto GUlE_; } goto UYEVv; sF5l6: goto e3m5P; goto ZGVR9; zMnzt: EVZCT: goto vgKqQ; P43Zh: goto EVZCT; goto Uypll; c2z0U: $return = round($return); goto LoSJo; gYfj9: $unite = 0; goto xnIbR; Jfmu4: $decimalReturn = 0; goto EZ3rB; wtTPa: goto AXS3r; goto hhpdB; gwCqr: $return = $unite; goto qXLSC; h_JM7: $return = floor($return); goto uAnHk; U3XID: $return = $unite / 1000000; goto iXcmJ; IVvfB: goto kOrgB; goto RviCm; GjJOr: yYZKt: goto Z9Fyf; CTg5i: HLGmf: goto xLBCh; xCna1: $decimal = 0; goto goL8_; c3AHC: cPG_j: goto Pa3_J; wjrLO: goto KqLEP; goto o0bsO; etPcj: if ($round_type == "1") { goto Dnape; } goto tqlHO; AwD0i: sB44q: goto zSjac; NMgEh: QNah7: goto sbOte; J8lit: Dov34: goto qUeQ3; ScJRf: E09XW: goto E3m06; tVncs: $unite = 1; goto yoCSU; qJxcL: WqxMG: goto Q3oUD; s2DDr: list($unite, $decimal) = explode(".", $return); goto WsvlY; ogpcd: zrTp_: goto o0gOs; m0gxo: $return = str_replace(",", ".", $return * 1000000); goto MXp1Y; h9bhy: if (!($round_type == "1")) { goto NajfW; } goto m0gxo; KG55o: $decimal = 0; goto fwRnU; sU2X3: qKua0: goto x_bHV; zJAP3: if (empty($round_type)) { goto tH3OS; } goto STGzg; EsM0I: if (!($return >= 100)) { goto nRNP2; } goto zBW6H; t18gK: aCP5q: goto eB5uH; x_bHV: $return = $return / 10; goto WC45V; sclsR: goto kHji9; goto IY95F; ie48K: --$return; goto MG_g2; xMGQD: $decimal = 0; goto wp4PG; Os9oa: list($unite, $decimal) = explode(".", $return); goto d_p5e; o0gOs: if ($decimal >= 90) { goto VLtNi; } goto AKS1M; DvnAp: if (!(strlen($decimal) == 1)) { goto IYdTv; } goto tL4rz; fei6h: dUwou: goto iwQj6; aCl2A: if (!(strlen($decimal) == 1)) { goto QNah7; } goto OmyyC; pn_hc: PFiNX: goto UJJ2k; Ba9IP: $unite = 0; goto Y2NCz; CS4CY: goto VN1uh; goto rHd5j; pjtQX: list($unite, $decimal) = explode(".", $return); goto QCBpV; c3mtk: $return = $return / 100; goto fPx8O; zmCIx: C7tp3: goto vRceK; aUn2J: list($unite, $decimal) = explode(".", $return); goto zKcW6; OwA6y: if ($round_type == 1) { goto uTqlp; } goto OQOpj; KwL0z: if ($decimal >= 1 && $decimal <= 4) { goto xAKBC; } goto t36ux; yIooc: $unite = 1; goto Heusf; D4PAw: VLtNi: goto aoimd; OCXsF: if (!($round_type == "1")) { goto wBf8x; } goto Jm3yn; BMPlg: goto DH5Eh; goto fEERk; Gj1IK: if ($round_type == "2") { goto Dov34; } goto s9BZY; Lwpak: LBkdM: goto v_4EY; oNIje: $decimal = 5; goto t18gK; qYU6l: goto kHji9; goto wTqGf; pLt7H: cLHoK: goto nIBFt; p0RkU: ++$unite; goto IAxwP; fEERk: lktaP: goto Ba9IP; RjoPN: $chiffre = ($chiffre . "." . $decimal_part) * 1; goto iECxq; zpPQu: i_8qN: goto dzVgw; pOXTD: $decimalReturn = "0" . $decimalReturn; goto eQRmA; yPs4C: $return = ceil($return); goto SSFDk; EPJRk: if ($decimal >= 3 && $decimal <= 7) { goto Zza07; } goto u5T2P; K3PoQ: $return = str_replace(",", ".", $return * 1000000); goto XW6Mh; UW4Dl: if ($realDecimal > 50 && $realDecimal <= 99) { goto ZArZ7; } goto Eedd1; dswv3: return $return; goto VqUq_; xm9j5: cZEGH: goto NNzfr; N2yBK: ++$unite; goto OjH69; aoimd: $return = $unite + 1; goto WEd2f; h1PJS: goto UQ1SI; goto VWNdj; ivP5m: goto cPG_j; goto p8mNt; yO4l8: ajSIj: goto q9ZEa; k28e0: pTq3b: goto N2yBK; goL8_: wo8DW: goto c6Z_B; UYEVv: goto qKua0; goto xo8Oz; jqGK4: goto DH5Eh; goto ngm5W; s9BZY: goto JEO0E; goto k9Iw8; zBW6H: $return = str_replace(",", ".", $return); goto npjjZ; rH6IJ: if ($modif_type == "4") { goto Rf813; } goto fjVWx; icAo9: goto DH5Eh; goto vVqqX; dzVgw: $return = str_replace(",", ".", $return * 100); goto dMfN4; zjkkC: $return = str_replace(",", ".", $return * 1000000); goto fy0Y8; qMDYw: if ($round_type == "2") { goto wB9fk; } goto IYBXb; dfrk4: goto wo8DW; goto WVoiv; BlLWE: if ($round_type == "1") { goto ri3rb; } goto x1Xhs; G4Z5u: $decimal = 0; goto AwD0i; Pa3_J: $return -= 0.1; goto oaBNY; SDz_2: if ($decimal >= 5 && $decimal <= 9) { goto SQO1G; } goto HMEsg; oiXfB: if ($decimal >= 3 && $decimal <= 7) { goto C7tp3; } goto SRhUP; ybo3h: uw9yA: goto e6UEK; zM5OU: $return = $unite / 1000000; goto yO4l8; HpCfS: UQ1SI: goto wtTPa; vmxP2: $return = ceil($return); goto LLXMw; tqlHO: if ($round_type == "2") { goto h7q_4; } goto Y_She; EEp7p: goto sB44q; goto GjJOr; c51TY: xhtVO: goto xcME3; nCvzZ: ykD8V: goto h_JM7; LjTuo: if ($chiffre >= 50 && $chiffre <= 99.999999999) { goto VEyIC; } goto E0wCX; BJh1e: $return = $unite; goto JKOoR; ZJLHI: TKAXq: goto Baq2Y; QaMPx: nRr7b: goto gYfj9; S02cC: if ($decimal == 99) { goto uw9yA; } goto ttdsb; OjH69: $decimal = 0; goto HKu_P; kY195: hJEBk: goto NONeg; SAWQW: tH3OS: goto O4tA9; BegsE: $return = floor($return); goto sU2X3; XW6Mh: list($unite, $decimal) = explode(".", $return); goto nTxYJ; cLx9q: uTqlp: goto tpRdX; AFrdJ: $return = str_replace(",", ".", $return * 1000000); goto s2DDr; Nq9aj: q42Po: goto se3q1; pIzR0: hPnuv: goto BVyPo; ZkdDO: $return = $unite + 1; goto IClxU; B5vx5: $decimalReturn = 95; goto JGztf; npjjZ: list($return, $decimal_part) = explode(".", $return); goto jfGAR; E0wCX: goto WPuhe; goto nMMyT; iXcmJ: I9gwd: goto BCY0k; GaKsh: goto A12st; goto pLt7H; jURPE: $decimal = 0; goto QyTCt; sKc01: $decimal = 5; goto kIygb; N_e3j: Nc7Pf: goto yPs4C; NK3kX: if ($decimal >= 50) { goto dUwou; } goto gwCqr; xnIbR: $decimal = 0; goto EsM0I; d3f9I: if ($chiffre >= 0 && $chiffre < 5) { goto XqJrW; } goto dL3X5; r7BJw: if (empty($round_type)) { goto Axmsf; } goto GZ4pi; RasxS: $return = $return / 100; goto nhAmM; pnmjD: $return = ($unite . "." . $decimal) * 1 / 10; goto icAo9; ANGlG: $return -= 0.01; goto BMPlg; LWbLW: if ($realDecimal < 5 && $realDecimal >= 0) { goto jPxlg; } goto TznpV; YIzkh: P0PzK: goto vgo1r; xuIaU: $return = ($unite . "." . $decimal) * 1; goto I3ZFf; oJgUH: $decimal = 0; goto s_I43; HKu_P: zpTVn: goto c6_jz; UJJ2k: $decimal = 5; goto qJxcL; UUd4u: goto q42Po; goto LE0iY; IwImm: $return = $unite / 1000000; goto JMIX2; oVsEv: goto zpTVn; goto k28e0; LoSJo: goto q42Po; goto tkhKR; F4WSN: if ($round_type == "1") { goto ntPMo; } goto qMDYw; zSjac: $return = ($other + $unite . "00") * 1; goto ie48K; c9g_S: goto wg7TM; goto Rf4VR; BkBDX: goto e3m5P; goto egUzB; zEPzK: $decimalReturn = 95; goto NoCbP; Glw3Y: rHrId: goto fH4nS; YoW9p: if ($round_type == "2") { goto NO5je; } goto DrBSa; PHQy1: jPxlg: goto gwfxZ; XFWq_: wB9fk: goto kY5e7; ZGVR9: Fp_Gi: goto DXPmY; eB5uH: e3m5P: goto xuIaU; xo8Oz: w2hhY: goto IFS0I; ChqEc: goto JEO0E; goto nztRK; Y52JI: $return = $unite / 1000000; goto wUexC; S3dnW: ++$unite; goto ldDYJ; LE0iY: NO5je: goto gZfjN; oaBNY: goto DH5Eh; goto fkmv3; bJn4U: PJYEd: goto mVhYm; dRwXj: F5Tl6: goto c2z0U; DrBSa: goto q42Po; goto dRwXj; Uypll: PNH37: goto UW4Dl; qXLSC: goto ETe0r; goto fei6h; cWItd: pfbUJ: goto SRvUi; v_4EY: if ($decimal >= 0 && $decimal <= 2) { goto tc0m2; } goto EPJRk; E9ae1: if ($decimal >= 6 && $decimal <= 9) { goto XVSQz; } goto G9yA7; WVoiv: Axmsf: goto d3f9I; NNzfr: A12st: goto pHVAU; TznpV: $decimalReturn = 5; goto mmceo; pHVAU: $return -= 0.01; goto vPVQA; pOqGK: $return = ceil($return); goto bC7kE; kKheC: $decimal = 5; goto fu9XW; Wlc6C: ky2Ly: goto Wz05w; Heusf: $decimal = 0; goto xDbd2; Jp2DX: xjDQK: goto Ni9t7; egUzB: m5nBh: goto xd7Yx; H6im6: h3ylL: goto yIooc; Rq3ef: $unite = 1; goto BTFwE; kIygb: goto UQ1SI; goto LAj3t; LNQHw: goto A12st; goto SAWQW; kC60_: $decimal = 0; goto mVyWK; Axa0r: $decimal = 0; goto ajBCn; OAM9M: $return = $return / 100; goto pjtQX; kFFTo: goto wg7TM; goto YShXZ; gE47D: if ($round_type == "1") { goto evx1d; } goto Gj1IK; KUW0S: if ($round_type == "1") { goto uqIDx; } goto Rr7xn; z4UyN: xAKBC: goto oJgUH; e84lk: wiDmj: goto oo_zP; QKu4X: list($unite, $decimal) = explode(".", $return); goto U3XID; v6cWu: if ($modif_type == "2") { goto LMV3a; } goto zDQOk; wUexC: NajfW: goto aN9X1; tL4rz: $decimal = $decimal . "0"; goto bmCXa; vgKqQ: $return = ($return . "." . $decimalReturn) * 1; goto TjUgx; dMfN4: if (empty($round_type)) { goto PJYEd; } goto SyyQP; ngm5W: TvzDU: goto zFvXl; DdJt4: if ($round_type == "1") { goto wsLF4; } goto Oz7w1; RGacj: vjCbV: goto KwL0z; mVhYm: $return = round($return); goto m2JkO; xDbd2: KqLEP: goto tQPEM; m710t: $return = $unite + 1; goto xm9j5; wclb4: goto CxEoC; goto D4PAw; LAj3t: Qd3R3: goto gUFBz; DHbxw: ++$return; goto vszff; vPVQA: goto DH5Eh; goto CTg5i; qWxDb: if ($modif_type == "6") { goto DtJ8R; } goto Wm0QI; Ouxj7: if ($round_type == "2") { goto EDd8d; } goto AoqLF; DAz8J: p6olx: goto RjoPN; Oz7w1: if ($round_type == "2") { goto m5nBh; } goto sF5l6; UC1TP: $return = round($return); goto ChqEc; yBjqj: ntPMo: goto pOqGK; EIBDM: goto DH5Eh; goto MBNwA; vXxfn: $return = $unite + 1; goto GaKsh; svIXW: if ($decimal >= 0 && $decimal <= 24) { goto JxU8V; } goto PE6wm; TNWEf: if (empty($round_type)) { goto hPXJ4; } goto F4WSN; bC7kE: goto gtCVz; goto XFWq_; CKdIH: list($other, $chiffre) = explode(".", $return / 10); goto Snf9j; kxudg: goto wo8DW; goto MMXeZ; vVqqX: Rf813: goto wt_5f; fH4nS: $decimal = 5; goto FOxNe; RMxCi: $return = ceil($return); goto n92kp; V42sp: goto DH5Eh; goto QaMPx; M0k8R: $return = round($return); goto qMGm9; m8gOx: $return = $return / 10; goto jqGK4; gUFBz: ++$unite; goto fPHdf; Z8CgO: $realDecimal = substr($decimal, 0, 2); goto ZEpuo; C_jdV: $decimal = 0; goto plSW5; vJqDi: kOrgB: goto m8gOx; nIBFt: if ($decimal == 99) { goto BshUU; } goto QRgRp; FS1tB: if ($decimal >= 1 && $decimal <= 5) { goto P0PzK; } goto E9ae1; Wm0QI: if ($modif_type == "7") { goto HLGmf; } goto GX2Mb; c6_jz: goto e3m5P; goto PyW8V; t36ux: if ($decimal >= 5 && $decimal <= 9) { goto PFiNX; } goto g2oMB; fPHdf: $decimal = 0; goto HpCfS; x1Xhs: if ($round_type == "2") { goto RPX3H; } goto EEp7p; hvAVm: Dnape: goto UNcUu; Eedd1: $decimalReturn = 5; goto unO5S; WC45V: $return = str_replace(",", ".", $return); goto aUn2J; tpRdX: if ($realDecimal > 95 && $realDecimal <= 99) { goto NNdrb; } goto zEPzK; DXPmY: if ($decimal >= 0 && $decimal <= 2) { goto pfbUJ; } goto oiXfB; WjEed: IW1_S: goto zJAP3; vFcw5: list($return, $decimal_part) = explode(".", $return); goto CKdIH; YDY6w: WPuhe: goto WJPkg; qOI1A: goto gtCVz; goto yBjqj; dp6PJ: list($unite, $decimal) = explode(".", $return); goto DvnAp; gZfjN: $return = floor($return); goto Nq9aj; weo1Z: list($return, $decimal) = explode(".", $return); goto Z8CgO; plSW5: goto sB44q; goto zwq9s; vgo1r: $decimal = 5; goto UalQk; pjcPO: ++$unite; goto Lcqnb; Yep0l: $return = ceil($return); goto NAbSO; X6YJ5: rcCM0: goto XWWzA; AKS1M: $return = $unite; goto wclb4; k1R_B: P0cKP: goto P1utA; GtSCL: $return = floor($return); goto oZP9e; WJPkg: goto sB44q; goto Pz0UM; MI_QT: fbG9B: goto Rq3ef; PE6wm: if ($decimal >= 25 && $decimal <= 74) { goto rcCM0; } goto qMcCY; UNcUu: $return = ceil($return); goto IVvfB; wTqGf: oiUww: goto svIXW; EZ3rB: $return = str_replace(",", ".", $return); goto weo1Z; fu9XW: goto UAZAP; goto APsjT; IYBXb: goto gtCVz; goto Y4i0o; SSFDk: goto FbJU2; goto No3OX; Y4XsB: lJ30y: goto LWbLW; guY8z: if (empty($round_type)) { goto upthf; } goto etPcj; eI5ra: goto qKua0; goto xlGIE; XpOdn: gtCVz: goto Ihjcg; aV9Fh: $decimal = 0; goto e84lk; Fifrw: wBf8x: goto fSj_s; Dr6lZ: if ($decimal >= 0 && $decimal <= 49) { goto nwHqr; } goto FK4QW; zKcW6: if (empty($round_type)) { goto Fp_Gi; } goto DdJt4; FOxNe: goto lDCQQ; goto ScJRf; Rr7xn: if ($round_type == "2") { goto ykD8V; } goto un3Uo; m93dg: goto lDCQQ; goto Glw3Y; mVyWK: goto wg7TM; goto X6YJ5; nMMyT: ZeFn3: goto jURPE; k9Iw8: jX1x5: goto UC1TP; WEd2f: CxEoC: goto c3AHC; etEXi: $decimal = $decimal . "0"; goto WjEed; NONeg: $return = str_replace(",", ".", $return * 100); goto Q_sda; ml3HH: LMV3a: goto X6Kkw; UalQk: goto P0cKP; goto BcbaT; M31zb: JEO0E: goto c3mtk; HMEsg: goto aCP5q; goto NB83B; dL3X5: if ($chiffre >= 5 && $chiffre <= 9.999999999) { goto h3ylL; } goto wjrLO; CW2fK: goto UAZAP; goto MDA57; IFS0I: $return = round($return); goto eI5ra; iwQj6: $return = $unite + 1; goto jBbv9; SRvUi: $decimal = 0; goto Gh6u4; aNWLp: $chiffre = $chiffre . "0"; goto DAz8J; Wz05w: $return = round($return); goto JpQKC; XEndp: list($unite, $decimal) = explode(".", $return); goto IwImm; awJ6w: BshUU: goto m710t; gT5Yg: j1qi6: goto vXxfn; VTTWE: goto wiDmj; goto Jp2DX; C1PdB: $decimal = 0; goto VTTWE; q9ZEa: $return = str_replace(",", ".", $return * 10); goto cOANU; s_I43: goto WqxMG; goto pn_hc; Y2NCz: $decimal = 0; goto sW7jy; Ni9t7: $decimal = 5; goto grqPz; zwq9s: RPX3H: goto G4Z5u; IAxwP: $decimal = 0; goto BQ1MP; jK32Y: if (!($round_type == "1")) { goto hJEBk; } goto AFrdJ; jp0ga: if (!(!empty($price) && !empty($modif_type))) { goto P2F76; } goto nQ1VR; YShXZ: JxU8V: goto kC60_; hhpdB: QcfMG: goto FS1tB; NwXVo: if ($decimal >= 49 && $decimal <= 98) { goto xjDQK; } goto S02cC; fjVWx: if ($modif_type == "5") { goto NlwRY; } goto qWxDb; N3mNd: goto cPG_j; goto c51TY; xd7Yx: if ($decimal >= 1 && $decimal <= 4) { goto HGW9e; } goto SDz_2; b8z77: GBMrU: goto C1PdB; fPx8O: list($unite, $decimal) = explode(".", $return); goto aCl2A; aN9X1: $return = str_replace(",", ".", $return * 100); goto zk9Oh; gGNO6: $return = $unite + 1; goto kJX0s; RviCm: h7q_4: goto bKEQ_; t9zxg: goto C0Dkk; goto PHQy1; YRPMG: if (!(strlen($chiffre) == 1)) { goto p6olx; } goto aNWLp; Snf9j: $chiffre = ($chiffre . "." . $decimal_part) * 1; goto r7BJw; MDA57: nwHqr: goto kKheC; jBbv9: ETe0r: goto N3mNd; yeLIT: NNdrb: goto DHbxw; ttdsb: goto wiDmj; goto b8z77; cRGUM: $return = ($unite . "." . $decimal) * 1; goto ANGlG; Lcqnb: $decimal = 0; goto k1R_B; E2keR: if ($decimal >= 1 && $decimal <= 5) { goto rHrId; } goto W4bjd; sbOte: if (empty($round_type)) { goto mRtNT; } goto bdjA3; jfGAR: list($other, $chiffre) = explode(".", $return / 100); goto YRPMG; bmCXa: IYdTv: goto hzmvD; fwRnU: lDCQQ: goto BkBDX; QNZTQ: if ($round_type == "2") { goto vjCbV; } goto IzjAK; nQ1VR: $round_type = _s("CAT_ROUND_PRICE"); goto d3d4V; BQ1MP: wg7TM: goto sclsR; GX2Mb: if ($modif_type == "8") { goto lktaP; } goto Kfggs; MG_g2: nRNP2: goto Tu6lM; MBNwA: Xv35k: goto OCXsF; TjUgx: DH5Eh: goto fRsgk; VKiMf: VEyIC: goto tVncs; tRiPl: NlwRY: goto jK32Y; eMss5: if ($round_type == "1") { goto y4gHv; } goto YoW9p; iVYop: $return = $unite / 1000000; goto Fifrw; C4f4E: if ($round_type == "2") { goto TKAXq; } goto qYU6l; NAbSO: goto qKua0; goto ddZcX; E3m06: ++$unite; goto KG55o; HqsgE: goto A12st; goto gT5Yg; rjl7Y: $return = ceil($return); goto UUd4u; UxJrI: $unite = 1; goto C_jdV; tkhKR: y4gHv: goto rjl7Y; o0bsO: XqJrW: goto xMGQD; BcbaT: XVSQz: goto pjcPO; MMXeZ: dJc0q: goto xCna1; PdVfS: uqIDx: goto vmxP2; SRhUP: if ($decimal >= 8 && $decimal <= 9) { goto pTq3b; } goto m4zhj; nztRK: evx1d: goto RMxCi; PyW8V: wsLF4: goto E2keR; wqFGS: $decimalReturn = 95; goto TBra6; zk9Oh: if (empty($round_type)) { goto ky2Ly; } goto KUW0S; Y_She: goto kOrgB; goto Hx5ch; rS1te: if ($round_type == "1") { goto QcfMG; } goto QNZTQ; FK4QW: if ($decimal >= 50 && $decimal <= 99) { goto itrg7; } goto CW2fK; fkmv3: DtJ8R: goto h9bhy; oZP9e: FbJU2: goto RasxS; kY5e7: $return = floor($return); goto XpOdn; maj_s: UAZAP: goto RolOJ; nTxYJ: $return = $unite / 1000000; goto zpPQu; un3Uo: goto u0BHF; goto Wlc6C; BVyPo: goto cPG_j; goto ogpcd; Baq2Y: if ($decimal >= 0 && $decimal <= 48) { goto GBMrU; } goto NwXVo; JGztf: VN1uh: goto kgvSb; QRgRp: $return = $unite; goto n2ZjU; J4vYG: $return = str_replace(",", ".", $return * 100); goto TNWEf; LLXMw: goto u0BHF; goto nCvzZ; mmceo: $decimalReturn = "0" . $decimalReturn; goto t9zxg; Q3oUD: AXS3r: goto pnmjD; XKbKN: Zza07: goto sKc01; rKEt5: if ($round_type == "2") { goto cLHoK; } goto LNQHw; bKEQ_: $return = floor($return); goto vJqDi; Z9Fyf: if ($chiffre >= 0 && $chiffre < 50) { goto ZeFn3; } goto LjTuo; eQRmA: BF3b2: goto GiYPT; xlGIE: Xsakx: goto Yep0l; wp4PG: goto KqLEP; goto H6im6; qUeQ3: $return = floor($return); goto M31zb; G9yA7: goto P0cKP; goto YIzkh; bdjA3: if ($round_type == "1") { goto xhtVO; } goto zTWMu; tQPEM: goto wo8DW; goto MI_QT; cOANU: if (empty($round_type)) { goto w2hhY; } goto imaRL; Y4i0o: hPXJ4: goto mkVCY; RolOJ: goto kHji9; goto ZJLHI; n3Iu8: HhAMJ: goto qpueV; zDQOk: if ($modif_type == "3") { goto TvzDU; } goto rH6IJ; se3q1: goto DH5Eh; goto ml3HH; gwfxZ: --$return; goto wqFGS; D6Glv: list($unite, $decimal) = explode(".", $return); goto iVYop; SyyQP: if ($round_type == "1") { goto Nc7Pf; } goto Ouxj7; wt_5f: if (!($round_type == "1")) { goto ajSIj; } goto zjkkC; ddZcX: GUlE_: goto BegsE; unO5S: $decimalReturn = "0" . $decimalReturn; goto CS4CY; c6Z_B: $return = ($other + $unite . $decimal) * 1; goto W4wXz; zFvXl: if (!($round_type == "1")) { goto i_8qN; } goto K3PoQ; rHd5j: ZArZ7: goto B5vx5; JpQKC: goto u0BHF; goto PdVfS; WsvlY: $return = $unite / 1000000; goto kY195; GiYPT: goto EVZCT; goto Y4XsB; p8mNt: mRtNT: goto NK3kX; No3OX: EDd8d: goto GtSCL; g2oMB: goto WqxMG; goto z4UyN; MXp1Y: list($unite, $decimal) = explode(".", $return); goto Y52JI; sW7jy: $return = str_replace(",", ".", $return); goto vFcw5; BDfeT: $return = str_replace(",", ".", $return * 1000000); goto QKu4X; n2ZjU: goto cZEGH; goto awJ6w; BCY0k: $return = $return * 10; goto guY8z; ajBCn: goto aCP5q; goto ipbxQ; O4tA9: if ($decimal >= 50) { goto PgKj2; } goto BJh1e; Tu6lM: goto DH5Eh; goto DEqRm; GZ4pi: if ($round_type == "1") { goto fbG9B; } goto S51U7; qMGm9: goto kOrgB; goto hvAVm; oo_zP: kHji9: goto cRGUM; eaoln: if ($round_type == "1") { goto ykelm; } goto C4f4E; IY95F: ykelm: goto Dr6lZ; e6UEK: ++$unite; goto aV9Fh; vszff: $decimalReturn = 5; goto pOXTD; ZEpuo: if ($round_type == 0) { goto PNH37; } goto OwA6y; kJX0s: goto hPnuv; goto n3Iu8; ldDYJ: $decimal = 0; goto maj_s; m2JkO: goto FbJU2; goto N_e3j; I3ZFf: goto DH5Eh; goto tRiPl; VqUq_: } public static function usesAdvancedStockManagement($id_product, $id_shop = null) { goto OtA0f; OtA0f: if (!empty($id_shop)) { goto kzYTY; } goto oZAr_; dJwgu: $query = "SELECT product_shop.advanced_stock_management
FROM `" . _DB_PREFIX_ . "product` p
INNER JOIN " . _DB_PREFIX_ . "product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = " . ($id_shop > 0 ? (int) $id_shop : "p.id_shop_default") . ")\xa WHERE (p.id_product = " . (int) $id_product . ")"; goto EtIe7; YBDXf: kzYTY: goto dJwgu; oZAr_: $id_shop = SCI::getSelectedShop(); goto YBDXf; EtIe7: return (bool) Db::getInstance()->getValue($query); goto PNJPc; PNJPc: } public static function SendMail($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null) { goto BUBTd; lHUOb: $to_plugin = $to; goto Y7fDW; MDml9: MchRr: goto Etlbe; kFzZ_: UFD2L: goto PYqxI; m1Uro: WD3x0: goto epbeC; YNaxE: iMydn: goto ISjFK; OVV0b: return false; goto o4HG1; w2qF5: $configuration = Configuration::getMultiple(array("PS_SHOP_EMAIL", "PS_MAIL_METHOD", "PS_MAIL_SERVER", "PS_MAIL_USER", "PS_MAIL_PASSWD", "PS_SHOP_NAME", "PS_MAIL_SMTP_ENCRYPTION", "PS_MAIL_SMTP_PORT", "PS_MAIL_METHOD", "PS_MAIL_TYPE"), null, null, $id_shop); goto T60aV; ztlx1: Tools::dieOrLog(Tools::displayError("Error: invalid e-mail subject"), $die); goto Vvmyl; NPfB7: $to_list = new Swift_RecipientList(); goto CgjW9; epbeC: if (is_array($template_vars)) { goto R7y0w; } goto ttjHc; T60aV: if (isset($configuration["PS_MAIL_SMTP_ENCRYPTION"])) { goto MchRr; } goto eWvbh; PD0X3: if (Validate::isMailName($from_name)) { goto RuXIn; } goto cBPE3; Y2Xq9: yuYe4: goto PD0X3; v8jDB: AWPtD: goto WxmIr; kJzFN: $theme_name = $shop->getTheme(); goto DO00q; q1kja: $shop = new Shop((int) $id_shop); goto YW0fZ; s7H4q: apXK5: goto NPfB7; g44_C: Acxw2: goto kqeh8; WxmIr: XZkVv: goto w2qF5; JHUyO: return false; goto m1Uro; W0xEr: $to_name = $to; goto IQJ97; LshVN: mM_tq: goto gs1bn; aiMlY: AfLaQ: goto PNbqd; zX9Kp: Tools::dieOrLog(Tools::displayError("Error: invalid e-mail template"), $die); goto OVV0b; FP25r: UQQMz: goto iSQGY; zjtMg: RuXIn: goto rMiZ5; DO00q: goto UFD2L; goto HCY0b; ttjHc: $template_vars = array(); goto X22AG; Vvmyl: return false; goto LshVN; PYqxI: if (!($theme_name != _THEME_NAME_)) { goto AWPtD; } goto IU519; Etlbe: if (isset($configuration["PS_MAIL_SMTP_PORT"])) { goto KnE24; } goto pJrOw; kqeh8: if (Validate::isTplName($template)) { goto iVTpZ; } goto zX9Kp; MECA0: if (!(is_numeric($id_shop) && $id_shop)) { goto XZkVv; } goto q1kja; CNFBY: $from_name = $configuration["PS_SHOP_NAME"]; goto Y2Xq9; IQJ97: KLPCD: goto rl0Yn; PNbqd: if (Validate::isEmail($from)) { goto H4emQ; } goto tkjOi; pJrOw: $configuration["PS_MAIL_SMTP_PORT"] = "default"; goto giRlH; YW0fZ: if (version_compare(_PS_VERSION_, "8.0.0", ">=")) { goto JDryC; } goto kJzFN; giRlH: KnE24: goto H8EUQ; tkjOi: $from = null; goto SOhFQ; rl0Yn: $to = new Swift_Address($to, "=?UTF-8?B?" . base64_encode($to_name) . "?="); goto o0lOs; VK_th: if (!(!isset($from_name) || !Validate::isMailName($from_name))) { goto yuYe4; } goto CNFBY; o0lOs: goto UQQMz; goto s7H4q; tYVwF: if (!(is_string($to_name) && !empty($to_name) && !Validate::isMailName($to_name))) { goto Acxw2; } goto bCN4z; cBPE3: $from_name = null; goto zjtMg; ISjFK: $to_plugin = $to[0]; goto vLHDP; iSQGY: try { goto NYgEO; x7svc: p9ITT: goto RyhoY; p__Un: return false; goto DZJJI; U0IFU: VOwWi: goto iO6ks; mbeAD: Tools::dieOrLog(Tools::displayError("Error - The following e-mail template is missing:") . " " . $template_path . $template . ".html", $die); goto DEU6r; dmAhf: AnVV6: goto G60eJ; R8QV4: $override_mail = true; goto U0lJU; q68qN: $swift->disconnect(); goto WQxJe; xreWk: OMwAn: goto Z_hxB; gNcLW: $swift->attachPlugin(new Swift_Plugin_Decorator(array($to_plugin => $template_vars)), "decorator"); goto o3rcO; g7Tlv: $template_vars["{history_url}"] = Context::getContext()->link->getPageLink("history", true, Context::getContext()->language->id); goto DByeR; U0cVB: $template_html = file_get_contents($template_path . $template . ".html"); goto vtxWY; PNjXR: goto MKgQk; goto A3a9u; RyhoY: foreach ($file_attachment as $attachment) { goto bDZ2F; jqcA3: $message->attach(new Swift_Message_Attachment($attachment["content"], $attachment["name"], $attachment["mime"])); goto cwXj9; cwXj9: e3Ah0: goto zQgWW; bDZ2F: if (!(isset($attachment["content"]) && isset($attachment["name"]) && isset($attachment["mime"]))) { goto e3Ah0; } goto jqcA3; zQgWW: a6ALQ: goto ESEMh; ESEMh: } goto yUUsr; ot3t8: if (file_exists($theme_path . "mails/" . $template . ".txt") || file_exists($theme_path . "mails/" . $template . ".html")) { goto CHwLv; } goto dmSPG; srwI6: $message->headers->setEncoding("Q"); goto KkcdS; RQo7S: if (!(preg_match("#" . __PS_BASE_URI__ . "modules/#", $template_path) && preg_match("#modules/([a-z0-9_-]+)/#ui", $template_path, $res))) { goto DKUkZ; } goto jMeFJ; vQEcW: RKDtY: goto DclG_; bge2Q: zX8yn: goto srwI6; sni_2: if (Configuration::get("PS_LOGO_MAIL", null, null, $id_shop) !== false && file_exists(_PS_IMG_DIR_ . Configuration::get("PS_LOGO_MAIL", null, null, $id_shop))) { goto LYf7D; } goto TrUum; Htspv: $template_vars["{shop_logo}"] = ''; goto O4bFp; U0lJU: zW9kM: goto fJe2G; YP4w0: BPWuv: goto QCl82; DPJmp: Logger::addLog(Tools::displayError("Error - The lang file is missing for :") . " " . $iso, 3); goto IBOxo; qlM31: bdjwO: goto Bikgd; XW5Ji: $connection->setPassword($configuration["PS_MAIL_PASSWD"]); goto CZfEq; E0FLz: goto Q7Im7; goto ImDy8; cm00e: $template_vars = array_map(array("Tools", "htmlentitiesDecodeUTF8"), $template_vars); goto uH3p2; WQxJe: return $send; goto CJGmo; yKLNR: $template_path = $theme_path . "modules/" . $module_name . "/mails/"; goto z0qXr; YiePk: $template_vars["{guest_tracking_url}"] = Context::getContext()->link->getPageLink("guest-tracking", true, Context::getContext()->language->id); goto g7Tlv; z0qXr: DX5uP: goto U0cVB; DWEW7: include_once _PS_MAIL_DIR_ . $iso . "/lang.php"; goto D36Uo; lU792: CHwLv: goto xQGRN; uH3p2: $template_vars = array_map(array("Tools", "stripslashes"), $template_vars); goto rDZWz; ucYN4: $iso = Language::getIsoById((int) $id_lang); goto cQUK3; CZfEq: NbW9B: goto DDV4O; t3fgO: $message->attach(new Swift_Message_Part($template_html, "text/html", "8bit", "utf-8")); goto D26hn; EuYzL: $module_name = false; goto FruMG; yUUsr: IhfuU: goto pxATq; Yd6OP: $message->setId(Mail::generateId()); goto aOTSM; KkcdS: if (!version_compare(_PS_VERSION_, "1.6.0.0", ">=")) { goto s5wiF; } goto cm00e; o3rcO: if (!($configuration["PS_MAIL_TYPE"] == Mail::TYPE_BOTH || $configuration["PS_MAIL_TYPE"] == Mail::TYPE_TEXT)) { goto RKDtY; } goto JD696; gypHz: PpGhF: goto DWEW7; U_Yky: if ($connection) { goto LpzlG; } goto IZHrX; LagSv: return false; goto YP4w0; q6Oyi: $message = new Swift_Message("[" . Configuration::get("PS_SHOP_NAME", null, null, $id_shop) . "] " . $subject); goto NNxJK; C1BmN: $template_vars["{shop_logo}"] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); goto NC53S; Qb1Qr: lUhw9: goto z50q2; IjWdQ: if (is_array(current($file_attachment))) { goto p9ITT; } goto kJQbw; DEU6r: return false; goto hjP9B; AgE18: return false; goto Qb1Qr; YXH_6: Tools::dieOrLog(Tools::displayError("Error - The following e-mail template is missing:") . " " . $template_path . $template . ".txt", $die); goto zSeps; UBfen: DKUkZ: goto fC4wk; O4bFp: goto BTwg6; goto U0IFU; eGXj4: $logo = _PS_IMG_DIR_ . Configuration::get("PS_LOGO_MAIL", null, null, $id_shop); goto dmAhf; jumfS: if (file_exists(_PS_MAIL_DIR_ . $iso . "/lang.php")) { goto PpGhF; } goto DPJmp; tD9AB: if ($override_mail && file_exists($template_path . $iso . "/lang.php")) { goto vcnUj; } goto M9axB; NC53S: pF9az: goto asGjE; hQQ73: include_once $template_path . $iso . "/lang.php"; goto YP2_O; NYgEO: if ($configuration["PS_MAIL_METHOD"] == 2) { goto Vxv3T; } goto mjrC9; DDV4O: ofLI0: goto rw7jV; poSKd: $template = $iso . "/" . $template; goto EuYzL; rw7jV: if ($connection) { goto lUhw9; } goto AgE18; WBCPz: LYf7D: goto eGXj4; Txh8M: $connection->setUsername($configuration["PS_MAIL_USER"]); goto xreWk; M9axB: if ($module_name && file_exists($theme_path . "mails/" . $iso . "/lang.php")) { goto ZccH0; } goto jumfS; zZgon: goto zW9kM; goto lU792; DzPfC: if (!($file_attachment && !empty($file_attachment))) { goto vYE3K; } goto IjWdQ; vNELk: LpzlG: goto fDxV2; JD696: $message->attach(new Swift_Message_Part($template_txt, "text/plain", "8bit", "utf-8")); goto vQEcW; FyHzB: BTwg6: goto dcc_t; qsufU: Tools::dieOrLog(Tools::displayError("Error - No ISO code for email"), $die); goto p__Un; quhc9: MKgQk: goto zZgon; A3a9u: jIdMD: goto YXH_6; YP2_O: Q7Im7: goto q6Oyi; DclG_: if (!($configuration["PS_MAIL_TYPE"] == Mail::TYPE_BOTH || $configuration["PS_MAIL_TYPE"] == Mail::TYPE_HTML)) { goto FyQAd; } goto t3fgO; ImDy8: vcnUj: goto hQQ73; fC4wk: if ($module_name !== false && (file_exists($theme_path . "modules/" . $module_name . "/mails/" . $template . ".txt") || file_exists($theme_path . "modules/" . $module_name . "/mails/" . $template . ".html"))) { goto AtoNk; } goto ot3t8; Blk1C: Vxv3T: goto Xs114; NNxJK: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto bdjwO; } goto Yd6OP; D26hn: FyQAd: goto DzPfC; S_24J: goto ofLI0; goto Blk1C; fDxV2: if (empty($configuration["PS_MAIL_USER"])) { goto OMwAn; } goto Txh8M; cQUK3: if ($iso) { goto zUQEz; } goto qsufU; kJQbw: $file_attachment = array($file_attachment); goto x7svc; Xs114: if (!(empty($configuration["PS_MAIL_SERVER"]) || empty($configuration["PS_MAIL_SMTP_PORT"]))) { goto BPWuv; } goto mHHZF; RSVTX: AtoNk: goto yKLNR; D36Uo: C_zwg: goto YcK2z; DZJJI: zUQEz: goto poSKd; iO6ks: $logo = _PS_IMG_DIR_ . Configuration::get("PS_LOGO", null, null, $id_shop); goto FyHzB; IBOxo: return false; goto Ynz7b; mHHZF: Tools::dieOrLog(Tools::displayError("Error: invalid SMTP server or SMTP port"), $die); goto LagSv; z50q2: $swift = new Swift($connection, Configuration::get("PS_MAIL_DOMAIN"), null, null, $id_shop); goto ucYN4; Ru5DP: $template_vars["{shop_url}"] = Tools::getShopDomain(true, true) . __PS_BASE_URI__ . "index.php"; goto imfPw; fJe2G: goto DX5uP; goto RSVTX; Z_hxB: if (empty($configuration["PS_MAIL_PASSWD"])) { goto NbW9B; } goto XW5Ji; ufxtE: eK3lN: goto E0FLz; aD2el: ZccH0: goto hgrw2; xQGRN: $template_path = $theme_path . "mails/"; goto R8QV4; Bikgd: $message->setId(SCI::generateId()); goto bge2Q; dmSPG: if (!file_exists($template_path . $template . ".txt") && ($configuration["PS_MAIL_TYPE"] == Mail::TYPE_BOTH || $configuration["PS_MAIL_TYPE"] == Mail::TYPE_TEXT)) { goto jIdMD; } goto gfA3G; imfPw: $template_vars["{my_account_url}"] = Context::getContext()->link->getPageLink("my-account", true, Context::getContext()->language->id); goto YiePk; gfA3G: if (!(!file_exists($template_path . $template . ".html") && ($configuration["PS_MAIL_TYPE"] == Mail::TYPE_BOTH || $configuration["PS_MAIL_TYPE"] == Mail::TYPE_HTML))) { goto b2mEk; } goto mbeAD; G60eJ: if (!isset($logo)) { goto pF9az; } goto C1BmN; YcK2z: goto eK3lN; goto aD2el; vtxWY: $template_txt = strip_tags(html_entity_decode(file_get_contents($template_path . $template . ".txt"), null, "utf-8")); goto tD9AB; hgrw2: include_once $theme_path . "mails/" . $iso . "/lang.php"; goto ufxtE; DByeR: $template_vars["{color}"] = Tools::safeOutput(Configuration::get("PS_MAIL_COLOR", null, null, $id_shop)); goto gNcLW; D_OM5: $send = $swift->send($message, $to, new Swift_Address($from, $from_name)); goto q68qN; pxATq: vYE3K: goto D_OM5; TrUum: if (file_exists(_PS_IMG_DIR_ . Configuration::get("PS_LOGO", null, null, $id_shop))) { goto VOwWi; } goto Htspv; dcc_t: goto AnVV6; goto WBCPz; zSeps: return false; goto quhc9; IZHrX: return false; goto vNELk; aOTSM: goto zX8yn; goto qlM31; asGjE: $template_vars["{shop_name}"] = Tools::safeOutput(Configuration::get("PS_SHOP_NAME", null, null, $id_shop)); goto Ru5DP; rDZWz: s5wiF: goto sni_2; hjP9B: b2mEk: goto PNjXR; QCl82: $connection = new Swift_Connection_SMTP($configuration["PS_MAIL_SERVER"], $configuration["PS_MAIL_SMTP_PORT"], $configuration["PS_MAIL_SMTP_ENCRYPTION"] == "ssl" ? Swift_Connection_SMTP::ENC_SSL : ($configuration["PS_MAIL_SMTP_ENCRYPTION"] == "tls" ? Swift_Connection_SMTP::ENC_TLS : Swift_Connection_SMTP::ENC_OFF)); goto opjxN; FruMG: $override_mail = false; goto RQo7S; mjrC9: $connection = new Swift_Connection_NativeMail(); goto S_24J; jMeFJ: $module_name = $res[1]; goto UBfen; Ynz7b: goto C_zwg; goto gypHz; opjxN: $connection->setTimeout(4); goto U_Yky; CJGmo: } catch (Swift_Exception $e) { return false; } goto AZrbj; vLHDP: $to = $to_list; goto FP25r; BUBTd: $theme_path = _PS_THEME_DIR_; goto MECA0; IU519: $theme_path = _PS_ROOT_DIR_ . "/themes/" . $theme_name . "/"; goto v8jDB; gs1bn: if (is_array($to) && isset($to)) { goto apXK5; } goto lHUOb; CgjW9: foreach ($to as $key => $addr) { goto c5POS; gqVh4: if (!is_array($to_name)) { goto GloaJ; } goto q9hWq; q9hWq: if (!($to_name && is_array($to_name) && Validate::isGenericName($to_name[$key]))) { goto FgqHo; } goto gAFkM; jXdjm: if (Validate::isEmail($addr)) { goto Q25BH; } goto WOK7f; zDzoD: Q25BH: goto gqVh4; c5POS: $to_name = null; goto SA6A9; SA6A9: $addr = trim($addr); goto jXdjm; oO9Ww: QEp5h: goto vxQM1; bjTSy: FgqHo: goto iJ7T9; PoIGZ: $to_list->addTo($addr, "=?UTF-8?B?" . base64_encode($to_name) . "?="); goto oO9Ww; gAFkM: $to_name = $to_name[$key]; goto bjTSy; xUYOp: if (!($to_name == null)) { goto zzP1L; } goto BPEzC; iJ7T9: GloaJ: goto xUYOp; ac9Ik: return false; goto zDzoD; BPEzC: $to_name = $addr; goto hIjki; WOK7f: Tools::dieOrLog(Tools::displayError("Error: invalid e-mail address"), $die); goto ac9Ik; hIjki: zzP1L: goto PoIGZ; vxQM1: } goto YNaxE; rMiZ5: if (!(!is_array($to) && !Validate::isEmail($to))) { goto WD3x0; } goto kQ491; HCY0b: JDryC: goto Tv33d; X22AG: R7y0w: goto tYVwF; bCN4z: $to_name = null; goto g44_C; V4vho: if (Validate::isMailSubject($subject)) { goto mM_tq; } goto ztlx1; Y7fDW: if (!($to_name == null)) { goto KLPCD; } goto W0xEr; kQ491: Tools::dieOrLog(Tools::displayError("Error: parameter "to" is corrupted"), $die); goto JHUyO; H8EUQ: if (!(!isset($from) || !Validate::isEmail($from))) { goto AfLaQ; } goto NKtQA; eWvbh: $configuration["PS_MAIL_SMTP_ENCRYPTION"] = "off"; goto MDml9; o4HG1: iVTpZ: goto V4vho; Tv33d: $theme_name = $shop->theme->getDirectory(); goto kFzZ_; SOhFQ: H4emQ: goto VK_th; NKtQA: $from = $configuration["PS_SHOP_EMAIL"]; goto aiMlY; AZrbj: } public static function generateId($idstring = null) { $midparams = array("utctime" => gmstrftime("%Y%m%d%H%M%S"), "randint" => mt_rand(), "customstr" => preg_match("/^(?<!\.)[a-z0-9\.]+(?!\.)$/iD", $idstring) ? $idstring : "swift", "hostname" => isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : php_uname("n")); return vsprintf("<%s.%d.%s@%s>", $midparams); } public static function getGridFields($type) { goto WWyNE; mfXsk: goto ZM9Jx; goto aGXLo; P2dsE: global $langOption; goto gW4i1; mf2qc: include SC_DIR . "lib/ord/product/ord_product_data_fields.php"; goto qtECA; LajJL: include SC_DIR . "lib/cat/supplier/cat_supplier_data_fields.php"; goto vjr3g; Xe8tp: if (!empty($type) && $type == "propcustomers") { goto R3Crx; } goto uXxgp; bhN9Z: global $shops; goto OHa1L; vjr3g: goto ZM9Jx; goto pdTx0; oN6bq: global $view; goto Zga1x; jOnSI: if (!empty($type) && $type == "productsort") { goto eUnpq; } goto UkMob; zF6rE: goto ZM9Jx; goto xa9J1; aGXLo: o1UWv: goto NEx5q; RNngV: Pv6LM: goto FVQ_d; NEx5q: global $arrMsgAvailableLater; goto vG12d; OHa1L: include SC_DIR . "lib/cat/image/cat_image_data_fields.php"; goto zF6rE; eKaeo: YWJdZ: goto b_1oh; qhgpd: include SC_DIR . "lib/cat/specificprice/cat_specificprice_data_fields.php"; goto g20vW; BGOTn: include SC_DIR . "lib/cat/combination/cat_combination_data_fields.php"; goto mfXsk; R8aCN: goto ZM9Jx; goto h2yUC; AjAn2: c1bX_: goto gKhBO; I7nZi: Uknb3: goto ID1OG; g20vW: goto ZM9Jx; goto KUnhn; vG12d: include SC_DIR . "lib/cat/combinationmultiproduct/cat_combinationmultiproduct_data_fields.php"; goto Vjn71; EKF_k: sujAD: goto oN6bq; tWHmW: global $arrManufacturers, $arrSuppliers, $arrTax, $arrMsgAvailableNow, $arrMsgAvailableLater, $arrReductionPrice, $arrReductionPercent, $arrColorGroups; goto S7594; I908q: global $shops, $group_shops, $groups, $countries, $currencies; goto xDuS9; mOzHM: goto ZM9Jx; goto Gb5Gp; ID1OG: global $view, $arrPayments, $arrStatus, $orderCountry, $orderState, $arrCarrier; goto mf2qc; CV1aj: if (!empty($type) && $type == "gmapartner") { goto RyVF3; } goto lSjH0; unfrt: include SC_DIR . "lib/cat/customerbyproduct/cat_customerbyproduct_data_fields.php"; goto n8K8o; yDhjH: if (!empty($type) && $type == "order_product") { goto Uknb3; } goto xC03x; lSjH0: goto ZM9Jx; goto f1v4s; sVpGr: if (!empty($type) && $type == "combinationmultiproduct") { goto o1UWv; } goto sFZV0; b_1oh: global $view; goto oNExZ; xDuS9: include SC_DIR . "lib/cat/win-specificprice/cat_win-specificprice_data_fields.php"; goto mOzHM; BHr5D: goto ZM9Jx; goto AjAn2; hPB3l: global $arrGroupes, $arrStates, $arrCountrys, $arrGenders, $language_arr; goto iiLNU; FYHAC: if (!empty($type) && $type == "mscombination") { goto c1bX_; } goto cYoVT; A6qdt: goto ZM9Jx; goto qW_Q7; S_Ovd: goto ZM9Jx; goto RNngV; qtECA: goto ZM9Jx; goto EKF_k; NKtvW: goto ZM9Jx; goto I7nZi; Yg32w: N1Mwv: goto zM9f3; FVQ_d: global $view, $arrPayments, $arrStatus, $orderCountry, $orderState, $arrCarrier; goto j8sgC; KUnhn: R3Crx: goto c71MQ; Rf_i3: if (!empty($type) && $type == "manufacturer") { goto YWJdZ; } goto VLQ8w; xC03x: if (!empty($type) && $type == "cms") { goto sujAD; } goto Rf_i3; Ajy6D: include SC_DIR . "lib/cat/mscombination/cat_mscombination_data_fields.php"; goto A6qdt; WWyNE: global $colSettings, $cols; goto OlOp2; c71MQ: global $shops, $group_shops, $groups, $countries, $currencies; goto unfrt; zH968: if (!empty($type) && $type == "order") { goto Pv6LM; } goto yDhjH; VLQ8w: if (!empty($type) && $type == "supplier") { goto dtnZo; } goto jOnSI; f1v4s: LJjx0: goto tWHmW; FguK2: global $view; goto WlqsJ; Zga1x: include SC_DIR . "lib/cms/cms_page_data_fields.php"; goto PRdsL; WlqsJ: include SC_DIR . "lib/sup/sup_supplier_data_fields.php"; goto tl8KQ; vqcCi: if (!empty($type) && $type == "proppackproduct") { goto gSydk; } goto ZfCm5; UbN1d: global $arrMsgAvailableLater; goto BGOTn; G_5Tw: include SC_DIR . "lib/cat/msproduct/cat_msproduct_data_fields.php"; goto BHr5D; Qqg01: goto ZM9Jx; goto Yg32w; j8sgC: include SC_DIR . "lib/ord/ord_order_data_fields.php"; goto NKtvW; p1QSn: global $currencies; goto LajJL; Z0KH2: if (!empty($type) && $type == "propspeprice") { goto kbZ7_; } goto Xe8tp; zM9f3: global $shops, $arrTax; goto G_5Tw; xa9J1: kbZ7_: goto bdN0Z; wv1e0: $colSettings = array(); goto LPFow; bdN0Z: global $shops, $group_shops, $groups, $countries, $currencies; goto qhgpd; NWtOH: if (!empty($type) && $type == "combination") { goto wiNqV; } goto sVpGr; AImP_: goto ZM9Jx; goto qy8f6; Gb5Gp: gSydk: goto dTR44; iiLNU: include SC_DIR . "lib/cus/cus_customer_data_fields.php"; goto S_Ovd; LPFow: Zmv4Y: goto Hiz4J; OlOp2: if (isset($colSettings)) { goto Zmv4Y; } goto wv1e0; dTR44: include SC_DIR . "lib/cat/pack/cat_pack_data_fields.php"; goto R8aCN; clc2b: goto ZM9Jx; goto uYjJG; cYoVT: if (!empty($type) && $type == "image") { goto PybLI; } goto Z0KH2; uXxgp: if (!empty($type) && $type == "winspeprice") { goto DBjn6; } goto vqcCi; gW4i1: include SC_DIR . "lib/all/win-affiliation/manager/all_win-affiliation_manager_partner_data_fields.php"; goto gC_i1; gC_i1: ZM9Jx: goto K5roP; WrAa7: DBjn6: goto I908q; oNExZ: include SC_DIR . "lib/man/man_manufacturer_data_fields.php"; goto clc2b; sFZV0: if (!empty($type) && $type == "customer") { goto H9vK_; } goto zH968; S7594: include SC_DIR . "lib/cat/cat_product_data_fields.php"; goto AImP_; fWuL1: H9vK_: goto hPB3l; tl8KQ: goto ZM9Jx; goto uSMMj; K5roP: return $colSettings; goto ieBJA; n8K8o: goto ZM9Jx; goto WrAa7; qy8f6: wiNqV: goto UbN1d; qW_Q7: PybLI: goto bhN9Z; UkMob: if (!empty($type) && $type == "msproduct") { goto N1Mwv; } goto FYHAC; gKhBO: global $shops, $arrTax; goto Ajy6D; uSMMj: eUnpq: goto nqryp; uYjJG: dtnZo: goto FguK2; pdTx0: RyVF3: goto P2dsE; h2yUC: kB740: goto p1QSn; ZfCm5: if (!empty($type) && $type == "propsupplier") { goto kB740; } goto CV1aj; nqryp: include SC_DIR . "lib/cat/productsort/cat_productsort_data_fields.php"; goto Qqg01; Hiz4J: if (!empty($type) && $type == "product") { goto LJjx0; } goto NWtOH; PRdsL: goto ZM9Jx; goto eKaeo; Vjn71: goto ZM9Jx; goto fWuL1; ieBJA: } public static function getGridViews($type) { goto as7FO; jp5AW: if (!empty($type) && $type == "image") { goto A8bVt; } goto jLpZM; D4WWX: if (!empty($type) && $type == "propsupplier") { goto qUtxw; } goto m2GWK; I_3L3: goto GzUrE; goto amqVJ; ZMXYg: if (!empty($type) && $type == "order") { goto La58u; } goto sOM2Q; DyQI4: global $sc_active; goto zFttg; GdQgC: include SC_DIR . "lib/cms/cms_page_data_views.php"; goto RmixK; qHuvH: ZfDGF: goto YPKNh; yqDhU: include SC_DIR . "lib/cat/msproduct/cat_msproduct_data_views.php"; goto Ao9mJ; WQQk7: A3A9h: goto x13MZ; N10_h: include SC_DIR . "lib/cat/specificprice/cat_specificprice_data_views.php"; goto CSyzS; TJTOB: goto GzUrE; goto nABWE; dY4B4: oefko: goto yqDhU; YPKNh: include SC_DIR . "lib/cus/cus_customer_data_views.php"; goto MK43w; t6Imf: if (!empty($type) && $type == "combination") { goto cEVoz; } goto nPYpj; zFttg: include SC_DIR . "lib/cat/combinationmultiproduct/cat_combinationmultiproduct_data_views.php"; goto Rl1JO; IwxeW: include SC_DIR . "lib/all/win-affiliation/manager/all_win-affiliation_manager_partner_data_views.php"; goto SggBw; ykz4D: if (!empty($type) && $type == "propcustomers") { goto hVkc1; } goto Nuw_f; GMWpQ: Cj9wO: goto WHe6X; xa8Ge: goto GzUrE; goto NWuUO; as7FO: global $grids; goto ixZk_; Ik62r: goto GzUrE; goto WrjCD; a6qQF: if (!empty($type) && $type == "proppackproduct") { goto Vklwk; } goto D4WWX; Dh11r: $grids = array(); goto q_j06; ao42l: La58u: goto nYhKy; Rl1JO: goto GzUrE; goto qHuvH; q_j06: phZ1Y: goto pqz_9; WecCJ: include SC_DIR . "lib/cat/productsort/cat_productsort_data_views.php"; goto e1TX5; Ri0cQ: include SC_DIR . "lib/cat/combination/cat_combination_data_views.php"; goto FS9yw; ixZk_: if (isset($grids)) { goto phZ1Y; } goto Dh11r; SggBw: GzUrE: goto qDO4c; M2ffj: include SC_DIR . "lib/ord/product/ord_product_data_views.php"; goto Ik62r; KILSw: qUtxw: goto zQWhz; PadVD: goto GzUrE; goto Z_nSa; HlQkT: goto GzUrE; goto cLzvs; zQ5Zz: goto GzUrE; goto KILSw; W6sO1: WzeEH: goto DyQI4; Z_nSa: z4tAi: goto FqZps; nPYpj: if (!empty($type) && $type == "combinationmultiproduct") { goto WzeEH; } goto CXy62; Nuw_f: if (!empty($type) && $type == "winspeprice") { goto opdYT; } goto a6qQF; QMwJ1: if (!empty($type) && $type == "cms") { goto grQmS; } goto elHfN; amqVJ: LFTaa: goto M2ffj; Ao9mJ: goto GzUrE; goto GMWpQ; lVh30: if (!empty($type) && $type == "productsort") { goto ZFBgB; } goto RFTNk; OXZA9: goto GzUrE; goto WQQk7; FqZps: include SC_DIR . "lib/cat/cat_product_data_views.php"; goto V4mkf; spS3s: goto GzUrE; goto Hevhu; e1TX5: goto GzUrE; goto dY4B4; Q5G2p: include SC_DIR . "lib/cat/win-specificprice/cat_win-specificprice_data_views.php"; goto TJTOB; jLpZM: if (!empty($type) && $type == "propspeprice") { goto xOP8C; } goto ykz4D; TzVFa: hVkc1: goto r_R3P; WLKVf: Mo_vp: goto PDAiU; MK43w: goto GzUrE; goto ao42l; m2GWK: if (!empty($type) && $type == "gmapartner") { goto mbmxr; } goto PadVD; F0zl5: include SC_DIR . "lib/cat/image/cat_image_data_views.php"; goto spS3s; qDO4c: return $grids; goto pzjon; PDAiU: include SC_DIR . "lib/man/man_manufacturer_data_views.php"; goto OXZA9; pqz_9: if (!empty($type) && $type == "product") { goto z4tAi; } goto t6Imf; RFTNk: if (!empty($type) && $type == "msproduct") { goto oefko; } goto p0SEA; elHfN: if (!empty($type) && $type == "manufacturer") { goto Mo_vp; } goto mQA3b; r_R3P: include SC_DIR . "lib/cat/customerbyproduct/cat_customerbyproduct_data_views.php"; goto HlQkT; zQRwn: ZFBgB: goto WecCJ; nABWE: Vklwk: goto iWBuF; m2UA6: global $sc_active; goto Ri0cQ; C8JMw: goto GzUrE; goto zQRwn; sOM2Q: if (!empty($type) && $type == "order_product") { goto LFTaa; } goto QMwJ1; mQA3b: if (!empty($type) && $type == "supplier") { goto A3A9h; } goto lVh30; V4mkf: goto GzUrE; goto qxm9N; cLzvs: opdYT: goto Q5G2p; c4ZuQ: goto GzUrE; goto o4szN; p0SEA: if (!empty($type) && $type == "mscombination") { goto Cj9wO; } goto jp5AW; NWuUO: mbmxr: goto IwxeW; qxm9N: cEVoz: goto m2UA6; zka9f: include SC_DIR . "lib/cat/supplier/cat_supplier_data_views.php"; goto xa8Ge; CXy62: if (!empty($type) && $type == "customer") { goto ZfDGF; } goto ZMXYg; nYhKy: include SC_DIR . "lib/ord/ord_order_data_views.php"; goto I_3L3; WHe6X: include SC_DIR . "lib/cat/mscombination/cat_mscombination_data_views.php"; goto c4ZuQ; Hevhu: xOP8C: goto N10_h; WrjCD: grQmS: goto GdQgC; CSyzS: goto GzUrE; goto TzVFa; x13MZ: include SC_DIR . "lib/sup/sup_supplier_data_views.php"; goto C8JMw; FS9yw: goto GzUrE; goto W6sO1; zQWhz: global $multiple, $has_combi; goto zka9f; o4szN: A8bVt: goto F0zl5; RmixK: goto GzUrE; goto WLKVf; iWBuF: include SC_DIR . "lib/cat/pack/cat_pack_data_views.php"; goto zQ5Zz; pzjon: } public static function synchronizeArrayOfProducts($arrayOfIDProducts, $order_id_shop = null) { goto L8Un3; ysFth: htimW: goto PssEl; PssEl: foreach ($arrayOfIDProducts as $id_product) { SCI::synchronize($id_product, $order_id_shop); lmC2E: } goto p9RpU; kTBa1: return false; goto ysFth; L8Un3: if (!(!is_array($arrayOfIDProducts) || count($arrayOfIDProducts) == 0)) { goto htimW; } goto kTBa1; p9RpU: HsdCE: goto S1tw_; S1tw_: } public static function synchronize($id_product, $order_id_shop = null) { goto pqS5S; c9seT: wehnb: goto wE0AG; Ky8VR: GCquS: goto VUWTw; VUWTw: if (!version_compare(_PS_VERSION_, "1.6.0.0", ">=")) { goto sEJ3x; } goto KmW4E; d7Fst: MGYvi: goto c9seT; DCjvy: $order_warehouses = array(); goto Llcz_; YrpuF: Db::getInstance()->update("stock_available", array("quantity" => 0), "id_product = " . (int) $id_product); goto Ky8VR; AkIVy: hYdtQ: goto E2Jnl; Llcz_: $wh = Warehouse::getWarehouses(false, (int) $order_id_shop); goto vV10_; BO0X6: $ids_warehouse = Warehouse::getWarehousesGroupedByShops(); goto U7amh; CJ01z: foreach (Product::getProductAttributesIds($id_product) as $id_product_attribute) { $ids_product_attribute[] = $id_product_attribute["id_product_attribute"]; xxWFr: } goto AkIVy; vi2wt: foreach ($ids_warehouse as $id_shop => $warehouses) { goto OTdp2; Hm13b: Db::getInstance()->insert($query["table"], $query["data"]); goto M39UV; pBNMf: QT4RN: goto p6uKk; j0hCD: if (empty($ids_product_attribute)) { goto y2dc6; } goto mBChB; QQvEt: n1PNW: goto ZTJOj; OTdp2: $has_sa = Db::getInstance()->executeS("SELECT depends_on_stock FROM " . _DB_PREFIX_ . "stock_available
WHERE id_product = " . (int) $id_product . " AND id_product_attribute = 0" . " AND id_shop = " . (int) $id_shop); goto lLC5K; aitgv: foreach ($allowed_warehouse_for_product as $warehouse) { $allowed_warehouse_for_product_clean[] = (int) $warehouse["id_warehouse"]; JJgAG: } goto SUBrp; Fonlc: if ((int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query)) { goto n1PNW; } goto LWaOn; oyA6_: mawVD: goto YcBVI; Mpwrr: goto Hml7b; goto oyA6_; NgLI3: $product_quantity = 0; goto j0hCD; xaxPG: $allowed_warehouse_for_product_clean = array(); goto aitgv; Ann3Q: XMXKV: goto YT9Xo; DltYh: $allowed_warehouse_for_product = WareHouse::getProductWarehouseList((int) $id_product, 0, (int) $id_shop); goto xaxPG; Ka8Lv: hOGgX: goto pAC1_; RCl7E: $query->from("stock_available"); goto eimcp; eimcp: $query->where("id_product = " . (int) $id_product . " AND id_product_attribute = 0" . " AND id_shop = " . (int) $id_shop); goto Fonlc; pAC1_: TATWW: goto pBNMf; lLC5K: if (!(count($has_sa) == 0 || $has_sa[0]["depends_on_stock"] == 1)) { goto QT4RN; } goto NgLI3; M39UV: goto hOGgX; goto QQvEt; LWaOn: $query = array("table" => "stock_available", "data" => array("quantity" => $product_quantity, "depends_on_stock" => 1, "out_of_stock" => $out_of_stock, "id_product" => (int) $id_product, "id_product_attribute" => 0, "id_shop" => (int) $id_shop, "id_shop_group" => 0)); goto Hm13b; pvLs0: y2dc6: goto DltYh; BwvhX: goto TATWW; goto pvLs0; dSTN5: $query->select("COUNT(*)"); goto RCl7E; nI43V: $allowed_warehouse_for_product_clean = array_intersect($allowed_warehouse_for_product_clean, $warehouses); goto DWIvR; SUBrp: QXfrf: goto nI43V; gBlyH: Db::getInstance()->update($query["table"], $query["data"], $query["where"]); goto Ka8Lv; YT9Xo: $query = array("table" => "stock_available", "data" => array("quantity" => $product_quantity), "where" => "id_product = " . (int) $id_product . " AND id_product_attribute = 0" . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto vYV9x; zEjcb: $query = new DbQuery(); goto dSTN5; vYV9x: Db::getInstance()->update($query["table"], $query["data"], $query["where"]); goto BwvhX; mBChB: foreach ($ids_product_attribute as $id_product_attribute) { goto HoYgz; EW3kN: NzVEy: goto S93CE; V1uYN: $allowed_warehouse_for_combination_clean = array(); goto gIpM3; O9t8m: if ((int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query)) { goto connm; } goto fzwUv; PGS3V: $query->select("COUNT(*)"); goto ZlxAB; K5Jvd: $query = array("table" => "stock_available", "data" => array("quantity" => $quantity), "where" => "id_product = " . (int) $id_product . " AND id_product_attribute = " . (int) $id_product_attribute . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto O0rbV; gIpM3: foreach ($allowed_warehouse_for_combination as $warehouse) { $allowed_warehouse_for_combination_clean[] = (int) $warehouse["id_warehouse"]; MyQ2d: } goto mHggQ; iDzoz: $query = new DbQuery(); goto PGS3V; D1lSe: connm: goto K5Jvd; Kjy5v: goto NzVEy; goto D1lSe; mHggQ: rTu79: goto Xwf0T; Xwf0T: $allowed_warehouse_for_combination_clean = array_intersect($allowed_warehouse_for_combination_clean, $warehouses); goto ENORI; ta733: $query->where("id_product = " . (int) $id_product . " AND id_product_attribute = " . (int) $id_product_attribute . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto O9t8m; srszm: $quantity = $manager->getProductRealQuantities($id_product, $id_product_attribute, $allowed_warehouse_for_combination_clean, true); goto iDzoz; fzwUv: $query = array("table" => "stock_available", "data" => array("quantity" => $quantity, "depends_on_stock" => 1, "out_of_stock" => $out_of_stock, "id_product" => (int) $id_product, "id_product_attribute" => (int) $id_product_attribute, "id_shop" => (int) $id_shop, "id_shop_group" => 0)); goto Dy1kd; ckXtT: W0bKt: goto srszm; S93CE: $product_quantity += $quantity; goto Ogz5O; Dy1kd: Db::getInstance()->insert($query["table"], $query["data"]); goto Kjy5v; Ogz5O: eBT7F: goto VYP2Y; ENORI: if (!($order_id_shop != null && !count(array_intersect($allowed_warehouse_for_combination_clean, $order_warehouses)))) { goto W0bKt; } goto oltQA; oltQA: goto eBT7F; goto ckXtT; O0rbV: Db::getInstance()->update($query["table"], $query["data"], $query["where"]); goto EW3kN; ZlxAB: $query->from("stock_available"); goto ta733; HoYgz: $allowed_warehouse_for_combination = WareHouse::getProductWarehouseList((int) $id_product, (int) $id_product_attribute, (int) $id_shop); goto V1uYN; VYP2Y: } goto Ann3Q; p6uKk: Hml7b: goto b6iWG; ZTJOj: $query = array("table" => "stock_available", "data" => array("quantity" => $product_quantity), "where" => "id_product = " . (int) $id_product . " AND id_product_attribute = 0" . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto gBlyH; DWIvR: if (!($order_id_shop != null && !count(array_intersect($allowed_warehouse_for_product_clean, $order_warehouses)))) { goto mawVD; } goto Mpwrr; YcBVI: $product_quantity = $manager->getProductRealQuantities($id_product, null, $allowed_warehouse_for_product_clean, true); goto zEjcb; b6iWG: } goto lysVY; wHNTO: return false; goto Eeuk9; lysVY: YAbDr: goto p3irz; s17qO: sEJ3x: goto zZQzu; KmW4E: Cache::clean("StockAvailable::getQuantityAvailableByProduct_" . (int) $id_product . "*"); goto s17qO; E2Jnl: $out_of_stock = StockAvailable::outOfStock($id_product); goto Fgcrl; Fgcrl: $manager = StockManagerFactory::getManager(); goto vi2wt; pqS5S: if (Validate::isUnsignedId($id_product)) { goto PrsDV; } goto wHNTO; vV10_: foreach ($wh as $warehouse) { $order_warehouses[] = $warehouse["id_warehouse"]; i7Bql: } goto d7Fst; p3irz: if (!(count($ids_warehouse) == 0 && StockAvailable::dependsOnStock((int) $id_product))) { goto GCquS; } goto YrpuF; wE0AG: $ids_product_attribute = array(); goto CJ01z; Eeuk9: PrsDV: goto BO0X6; U7amh: if (!($order_id_shop !== null)) { goto wehnb; } goto DCjvy; zZQzu: } public static function updateQuantity($id_product, $id_product_attribute, $delta_quantity, $id_shop = null) { goto R0p5c; tjAeK: YR70A: goto HzmRi; u2m3U: Hook::exec("actionUpdateQuantity", array("id_product" => $id_product, "id_product_attribute" => $id_product_attribute, "quantity" => $stock_available->quantity)); goto vZvB2; RuceI: if ($id_stock_available) { goto Ymr07; } goto EueT6; xnG3v: $stock_available->update(); goto KDeyn; p2em8: $products_pack = Pack::getItems($id_product, (int) Configuration::get("PS_LANG_DEFAULT")); goto fbLvw; JvCrT: Db::getInstance()->execute("UPDATE " . _DB_PREFIX_ . "stock_available\xa SET physical_quantity = (quantity+reserved_quantity)
WHERE id_product = " . (int) $id_product . "\xa AND id_product_attribute = " . (int) $id_product_attribute . "\xa AND id_shop = " . (int) $stock_available->id_shop . "\xa AND id_shop_group = " . (int) $stock_available->id_shop_group); goto es7K2; KDeyn: if (!version_compare(_PS_VERSION_, "1.7.5.0", ">=")) { goto EeWWP; } goto JvCrT; x8xiE: G2oSf: goto tjAeK; NbP5t: return true; goto IhlFe; BkZoo: Ymr07: goto fSHhd; es7K2: EeWWP: goto u2m3U; FaHQ7: return false; goto zKu8r; IhlFe: goto K7hKP; goto EZOVt; EZOVt: IJfy6: goto KWN_T; QPRiR: $stock_available->quantity = $stock_available->quantity + $delta_quantity; goto xnG3v; HzmRi: $stock_available = new StockAvailable($id_stock_available); goto QPRiR; vZvB2: Cache::clean("StockAvailable::getQuantityAvailableByProduct_" . (int) $id_product . "*"); goto NbP5t; fbLvw: foreach ($products_pack as $product_pack) { goto A96DF; dcXKY: oLsR1: goto p6GdP; A96DF: $pack_id_product_attribute = Product::getDefaultAttribute($product_pack->id, 1); goto YUeoc; YUeoc: SCI::updateQuantity($product_pack->id, $pack_id_product_attribute, $product_pack->pack_quantity * $delta_quantity, $id_shop); goto dcXKY; p6GdP: } goto x8xiE; KWN_T: return StockAvailable::updateQuantity($id_product, $id_product_attribute, $delta_quantity, $id_shop); goto vdKIA; vdKIA: K7hKP: goto Ux8SH; fSHhd: if (!Pack::isPack($id_product)) { goto YR70A; } goto p2em8; EueT6: return false; goto BkZoo; ZVyD3: if (Validate::isUnsignedId($id_product)) { goto sXi_U; } goto FaHQ7; R0p5c: if (version_compare(_PS_VERSION_, "1.6.0.0", "<")) { goto IJfy6; } goto ZVyD3; zKu8r: sXi_U: goto LY35_; LY35_: $id_stock_available = StockAvailable::getStockAvailableIdByProductId($id_product, $id_product_attribute, $id_shop); goto RuceI; Ux8SH: } public static function setQuantity($id_product, $id_product_attribute, $quantity, $id_shop = null) { goto GJVwJ; Lu01x: $stock_available->id_shop_group = (int) $shop_group->id; goto XTwik; l42fM: $id_shop = (int) $context->shop->id; goto s92vY; gjvOj: if (!version_compare(_PS_VERSION_, "1.7.5.0", ">=")) { goto rvyHy; } goto fZROM; Q1p_M: return false; goto MjwiI; fSnxQ: $id_stock_available = (int) StockAvailable::getStockAvailableIdByProductId($id_product, $id_product_attribute, $id_shop); goto y9edE; nQo8M: if (!($id_shop === null && Shop::getContext() != Shop::CONTEXT_GROUP)) { goto dcaNz; } goto l42fM; MORNs: $shop_group = Shop::getContextShopGroup(); goto n0XWq; GJVwJ: if (Validate::isUnsignedId($id_product)) { goto TtXkr; } goto Q1p_M; znUWz: if ($depends_on_stock) { goto I72F2; } goto fSnxQ; FU8G_: $stock_available->id_product_attribute = (int) $id_product_attribute; goto h21dS; GG57d: BfrtK: goto gjvOj; zW7U3: $depends_on_stock = StockAvailable::dependsOnStock($id_product, (int) $id_shop); goto db7I7; hG9ur: YVIub: goto UclhT; gl_hX: $stock_available->add(); goto zTegS; VXblS: $stock_available->update(); goto GG57d; db7I7: CYU3u: goto znUWz; TWGXM: $stock_available->id_shop_group = 0; goto UY9Xg; EaDop: $depends_on_stock = false; goto hWRSG; InHU0: S5OE0: goto D0aIA; YvQRV: $stock_available->quantity = (int) $quantity; goto VXblS; CJ10B: if ($id_shop === null) { goto QHRhX; } goto O12cW; Elaz8: $stock_available->id_shop = (int) $id_shop; goto TWGXM; XTwik: OmW4A: goto gl_hX; fh0Jw: $stock_available->out_of_stock = (int) $out_of_stock; goto hcQQB; hcQQB: $stock_available->id_product = (int) $id_product; goto FU8G_; xDuuz: $context = Context::getContext(); goto nQo8M; UclhT: $stock_available = new StockAvailable($id_stock_available); goto YvQRV; kV2jI: rvyHy: goto g71l1; hWRSG: if (!version_compare(_PS_VERSION_, "1.7.8.0", "<")) { goto CYU3u; } goto zW7U3; n0XWq: iUVlF: goto QFlmP; MjwiI: TtXkr: goto xDuuz; wIjmM: $out_of_stock = StockAvailable::outOfStock($id_product, $id_shop); goto Sr4jc; y9edE: if ($id_stock_available) { goto YVIub; } goto wIjmM; rYSsG: goto iUVlF; goto HYT4O; s92vY: dcaNz: goto EaDop; Sr4jc: $stock_available = new StockAvailable(); goto fh0Jw; O12cW: $shop_group = new ShopGroup((int) Shop::getGroupFromShop((int) $id_shop)); goto rYSsG; D0aIA: $stock_available->id_shop = 0; goto Lu01x; UY9Xg: goto OmW4A; goto InHU0; h21dS: $stock_available->quantity = (int) $quantity; goto CJ10B; QFlmP: if ($shop_group->share_stock) { goto S5OE0; } goto Elaz8; AZOOQ: I72F2: goto aTWOW; HYT4O: QHRhX: goto MORNs; fZROM: Db::getInstance()->execute("UPDATE " . _DB_PREFIX_ . "stock_available\xa SET physical_quantity = (quantity+reserved_quantity)
WHERE id_product = " . (int) $id_product . "
AND id_product_attribute = " . (int) $id_product_attribute . "
AND id_shop = " . (int) $stock_available->id_shop . "\xa AND id_shop_group = " . (int) $stock_available->id_shop_group); goto kV2jI; g71l1: Hook::exec("actionUpdateQuantity", array("id_product" => $id_product, "id_product_attribute" => $id_product_attribute, "quantity" => $stock_available->quantity)); goto AZOOQ; zTegS: goto BfrtK; goto hG9ur; aTWOW: } public static function deleteCombinationStock($id_product_attribute, $id_product = null) { goto jweTV; q_nsr: leyIp: goto A99hE; aB10U: Db::getInstance()->Execute($sql); goto YPAxa; SLyNG: Isb4A: goto MTZ3J; jweTV: if (empty($id_product_attribute)) { goto Isb4A; } goto EPJjt; BLPc2: Db::getInstance()->Execute($sql); goto SLyNG; UDPUe: foreach ($rows as $row) { goto WgjBR; c5YbH: QreqW: goto IwIBf; Oaxs3: Db::getInstance()->Execute($sql); goto c5YbH; WgjBR: $sql = "DELETE FROM " . _DB_PREFIX_ . "stock_mvt WHERE id_stock=" . (int) $row["id_stock"]; goto Oaxs3; IwIBf: } goto q_nsr; A99hE: $sql = "DELETE FROM " . _DB_PREFIX_ . "stock WHERE id_product_attribute=" . (int) $id_product_attribute; goto BLPc2; DcPMk: $rows = Db::getInstance()->ExecuteS($sql); goto UDPUe; YPAxa: $sql = "SELECT id_stock FROM " . _DB_PREFIX_ . "stock WHERE id_product_attribute=" . (int) $id_product_attribute; goto DcPMk; EPJjt: $sql = "DELETE FROM " . _DB_PREFIX_ . "warehouse_product_location WHERE id_product_attribute=" . (int) $id_product_attribute; goto aB10U; MTZ3J: } public static function getIdPdtFromCombi($id_product) { goto Xvi1K; j2Ac2: Df7A2: goto y5gXl; A0CMa: $query->from("product_attribute", "pa"); goto XbeRR; Xvi1K: $return = 0; goto GbMBm; GbMBm: if (empty($id_product)) { goto Df7A2; } goto ooNRB; aBA_6: return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto j2Ac2; y5gXl: return $return; goto oXC78; ooNRB: $query = new DbQuery(); goto LfwxU; XbeRR: $query->where("pa.id_product = " . (int) $id_product); goto aBA_6; LfwxU: $query->select("pa.id_product"); goto A0CMa; oXC78: } public static function getPrice($id_prd, $id_prd_attr = null, $id_shop = 1, $with_reduc = false) { goto PRcfv; osi3c: $sql_specific_price = "SELECT *
FROM `" . _DB_PREFIX_ . "specific_price`\xa WHERE id_product = '" . $id_prd . "'
AND (`from` <= '" . date("Y-m-d H:i:s") . "' OR `from`='0000-00-00 00:00:00')\xa AND (`to` >= '" . date("Y-m-d H:i:s") . "' OR `to`='0000-00-00 00:00:00')
" . (SCMS ? " AND ( id_shop = '" . (int) $id_shop . "' OR id_shop = '0' ) " : '') . "\xa " . (version_compare(_PS_VERSION_, "1.5.0.0", ">=") ? "AND (id_product_attribute = 0 " . (!empty($id_prd_attr) ? " OR id_product_attribute = " . $id_prd_attr . ")" : ")") : '') . "\xa ORDER BY `id_shop` DESC,`to` DESC, id_specific_price ASC\xa LIMIT 1"; goto WiKuY; vOxA2: $actual_prices["price_reduction_wt"] = $actual_prices["price_wt"]; goto Ih5mY; kIl1e: if (!empty($taxrate)) { goto E2EZz; } goto iUBBq; cFPXC: sPmWW: goto JqSQi; ODtrt: $taxrate = $cache_tax[$id_shop][(int) $prodrow["id_tax"]]; goto gAu5E; mS3Xo: $actual_prices["price_reduction_it"] = ($attrrow["price"] * ($taxrate / 100 + 1) + $prodrow["price"] * ($taxrate / 100 + 1)) * (1 - $res_specific_price["reduction"]) + $ecotax; goto epC_A; jQfMU: EcLR6: goto Wt4Am; iL3ZU: $prodrow["id_tax"] = $prodrow["id_tax_rules_group"]; goto ODtrt; cpHmE: $inner = ''; goto tWm0p; tg3tq: $prodrow = Db::getInstance()->getRow($sql); goto NEHKG; pL6ji: $actual_prices["price_it"] = $prodrow["price"] * ($taxrate / 100 + 1) + $ecotax; goto uKi93; R_aNm: gJhSb: goto jQfMU; ueBAr: Cv5J6: goto EgjNJ; HkNaM: $inner = " INNER JOIN " . _DB_PREFIX_ . "tax_rules_group_shop trgs ON (trgs.id_tax_rules_group = trg.id_tax_rules_group AND trgs.id_shop = '" . (int) $id_shop . "')"; goto cFPXC; XunK2: $res_specific_price = $res_specific_price[0]; goto HbRYX; hvTsb: $actual_prices["price_it"] = $attrrow["price"] + $prodrow["price"] + $ecotax; goto A7DQc; q26IO: goto EXaIT; goto go2Nd; Qx_Xg: foreach ($res as $row) { goto OnoM8; uzONQ: $row["name"] .= " " . _l("(deleted)"); goto pebyq; YVCGx: $cache_tax[$id_shop][$row["id_tax_rules_group"]] = $row["rate"]; goto xw9kq; hLQeL: eeSz3: goto hdzb6; pebyq: c8S31: goto YVCGx; OnoM8: if (!($row["name"] == '')) { goto eeSz3; } goto uscVB; xw9kq: NELtE: goto dTkNR; hdzb6: if (!($row["deleted"] == "1")) { goto c8S31; } goto uzONQ; uscVB: $row["name"] = " "; goto hLQeL; dTkNR: } goto U58Km; fUgxX: $actual_prices["price_it"] = $prodrow["price"] * ($taxrate / 100 + 1) + $ecotax; goto EMflS; iUBBq: $actual_prices["price_reduction_it"] = ($attrrow["price"] + $prodrow["price"]) * (1 - $res_specific_price["reduction"]) + $ecotax; goto tSlDg; wE8Hg: $actual_prices["price_reduction_wt"] = $actual_prices["price_wt"] - $prodrow["reduction_price"] / ($taxrate / 100 + 1); goto ofpBQ; hE3Ds: $inner = " INNER JOIN " . _DB_PREFIX_ . "tax_rules_group_shop trgs ON (trgs.id_tax_rules_group = trg.id_tax_rules_group AND trgs.id_shop = '" . (int) $id_shop . "')"; goto vTEbr; J0tx5: $inner = ''; goto lxptW; DFVGp: $actual_prices["price_reduction_it"] = $actual_prices["price_it"]; goto diEN_; mw_2T: $actual_prices["price_wt"] = $prodrow["price"]; goto dfB3z; epfbD: pKl4u: goto EbHjQ; PeiyN: ZPcg1: goto R_aNm; zyDg2: $prodrow["reduction_price"] = 0; goto vpgaM; OChT9: $actual_prices["price_wt"] += $attrrow["price"]; goto Xvb65; RWDhK: m0hgQ: goto ioiyv; TX0q9: $actual_prices["price_reduction_wt"] = $actual_prices["price_wt"]; goto DFVGp; cNjoe: $taxrate = $cache_tax[$id_shop][(int) $prodrow["id_tax"]]; goto mw_2T; WiKuY: $res_specific_price = Db::getInstance()->executeS($sql_specific_price); goto Qd9Ex; go2Nd: raHkG: goto cQSap; PXVao: $prodrow["reduction_percent"] = 0; goto NMTbZ; X5PzG: TBqcc: goto PeiyN; tWm0p: if (!SCMS) { goto cVmJg; } goto hE3Ds; tSlDg: goto vYdGw; goto mHbpE; U58Km: bCXYo: goto uEyZC; EOahf: goto aaZ45; goto RWDhK; EPsev: $sql = "SELECT trg.name, trg.id_tax_rules_group,t.rate, trg.deleted\xa FROM `" . _DB_PREFIX_ . "tax_rules_group` trg
LEFT JOIN `" . _DB_PREFIX_ . "tax_rule` tr ON (trg.`id_tax_rules_group` = tr.`id_tax_rules_group` AND tr.`id_country` = " . (int) SCI::getDefaultCountryId() . " AND tr.`id_state` = 0)
LEFT JOIN `" . _DB_PREFIX_ . "tax` t ON (t.`id_tax` = tr.`id_tax`)
" . $inner . "
WHERE trg.active=1
ORDER BY trg.deleted ASC, trg.name ASC"; goto HwxV_; EbHjQ: $sql = " SELECT price,id_tax_rules_group,ecotax FROM " . _DB_PREFIX_ . "product_shop WHERE id_product='" . (int) $id_prd . "' AND id_shop='" . (int) $id_shop . "' "; goto tg3tq; HYrLs: $actual_prices["price_reduction_wt"] = ($attrrow["price"] + $prodrow["price"]) * (1 - $res_specific_price["reduction"]); goto kIl1e; Z6bWP: if (!$with_reduc) { goto EcLR6; } goto osi3c; AkeKm: $res = Db::getInstance()->ExecuteS($sql); goto n_776; vpgaM: EXaIT: goto nvtcL; dfB3z: $ecotax = _s("CAT_PROD_ECOTAXINCLUDED") ? $prodrow["ecotax"] * SCI::getEcotaxTaxRate() : 0; goto fUgxX; zCaHY: Je0gF: goto Jdsom; PRcfv: global $cache_tax; goto LLyO2; lxptW: if (!(version_compare(_PS_VERSION_, "1.6.0.0", ">=") && SCMS)) { goto sPmWW; } goto HkNaM; A7DQc: goto Je0gF; goto FkaIZ; gAu5E: $actual_prices["price_wt"] = $prodrow["price"]; goto ju5JE; Ih5mY: $actual_prices["price_reduction_it"] = $actual_prices["price_it"]; goto GvKFt; cQSap: $prodrow["reduction_percent"] = $res_specific_price["reduction"] * 100; goto zyDg2; FkaIZ: H1Huw: goto qi6eI; l6kWb: $actual_prices["price_wt"] += $attrrow["price"]; goto QSksb; QSksb: $ecotax = _s("CAT_PROD_ECOTAXINCLUDED") ? $attrrow["ecotax"] * SCI::getEcotaxTaxRate() : 0; goto Cm6td; VdDwl: goto TBqcc; goto Q3NKB; s1YCD: $sql = " SELECT price,id_tax_rules_group,ecotax FROM " . _DB_PREFIX_ . "product WHERE id_product='" . (int) $id_prd . "' "; goto fmwiL; epC_A: vYdGw: goto X5PzG; uEyZC: Z2TGf: goto jGp5q; Cm6td: if (!empty($taxrate)) { goto H1Huw; } goto hvTsb; mHbpE: E2EZz: goto mS3Xo; Xvb65: $ecotax = _s("CAT_PROD_ECOTAXINCLUDED") ? $attrrow["ecotax"] * SCI::getEcotaxTaxRate() : 0; goto b1Euk; BLaRr: if (!empty($id_prd_attr)) { goto xC70w; } goto DM5YX; fmwiL: $prodrow = Db::getInstance()->getRow($sql); goto iL3ZU; JqSQi: $sql = "SELECT trg.name, trg.id_tax_rules_group,t.rate\xa FROM `" . _DB_PREFIX_ . "tax_rules_group` trg\xa LEFT JOIN `" . _DB_PREFIX_ . "tax_rule` tr ON (trg.`id_tax_rules_group` = tr.`id_tax_rules_group` AND tr.`id_country` = " . (int) SCI::getDefaultCountryId() . " AND tr.`id_state` = 0)
LEFT JOIN `" . _DB_PREFIX_ . "tax` t ON (t.`id_tax` = tr.`id_tax`)\xa " . $inner . "\xa WHERE trg.active=1"; goto AkeKm; ju5JE: $ecotax = _s("CAT_PROD_ECOTAXINCLUDED") ? $prodrow["ecotax"] * SCI::getEcotaxTaxRate() : 0; goto pL6ji; n_776: foreach ($res as $row) { goto adgVj; cbi4A: $row["name"] = " "; goto et75y; et75y: G7_ch: goto Vs3ko; ukYjo: s4yGQ: goto qKkOG; adgVj: if (!($row["name"] == '')) { goto G7_ch; } goto cbi4A; Vs3ko: $cache_tax[$id_shop][$row["id_tax_rules_group"]] = $row["rate"]; goto ukYjo; qKkOG: } goto Lg1OU; siPew: $actual_prices["price_it"] = $attrrow["price"] + $prodrow["price"] + $ecotax; goto EOahf; Wt4Am: return $actual_prices; goto jhTB0; ofpBQ: $actual_prices["price_reduction_it"] = $actual_prices["price_it"] - $prodrow["reduction_price"]; goto ueBAr; CvRhZ: $attrrow = Db::getInstance()->getRow($sql); goto l6kWb; Jdsom: SrqBv: goto TX0q9; uKi93: if (empty($id_prd_attr)) { goto ffC4_; } goto SQnfM; NEHKG: $prodrow["id_tax"] = $prodrow["id_tax_rules_group"]; goto cNjoe; DM5YX: $actual_prices["price_reduction_wt"] = $prodrow["price"] * (1 - $res_specific_price["reduction"]); goto uPLAl; CxifY: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto pKl4u; } goto s1YCD; EgjNJ: if (!($prodrow["reduction_percent"] > 0)) { goto ZPcg1; } goto BLaRr; nvtcL: if (!($prodrow["reduction_price"] > 0)) { goto Cv5J6; } goto wE8Hg; HwxV_: $res = Db::getInstance()->ExecuteS($sql); goto Qx_Xg; Lg1OU: Q3EEA: goto cPY1Q; HbRYX: if ($res_specific_price["reduction_type"] == "percentage") { goto raHkG; } goto PXVao; Q3NKB: xC70w: goto HYrLs; SQnfM: $sql = " SELECT price,ecotax FROM " . _DB_PREFIX_ . "product_attribute WHERE id_product_attribute='" . (int) $id_prd_attr . "' "; goto xiEIi; jCvdJ: ffC4_: goto vOxA2; LLyO2: $actual_prices = array("price_wt" => 0, "price_it" => 0, "price_reduction_wt" => 0, "price_reduction_it" => 0); goto gjn_n; oE7s0: if (version_compare(_PS_VERSION_, "1.6.0.10", ">=")) { goto q0hmV; } goto J0tx5; diEN_: w5Quv: goto Z6bWP; ioiyv: $actual_prices["price_it"] = $attrrow["price"] * ($taxrate / 100 + 1) + $prodrow["price"] * ($taxrate / 100 + 1) + $ecotax; goto gIIEs; gjn_n: if (!empty($tax[$id_shop])) { goto EMCJb; } goto oE7s0; Qd9Ex: if (empty($res_specific_price[0]["id_specific_price"])) { goto gJhSb; } goto XunK2; xiEIi: $attrrow = Db::getInstance()->getRow($sql); goto OChT9; GvKFt: goto w5Quv; goto epfbD; gIIEs: aaZ45: goto jCvdJ; b_g2o: q0hmV: goto cpHmE; jGp5q: EMCJb: goto CxifY; bQZ0d: $sql = " SELECT price,ecotax FROM " . _DB_PREFIX_ . "product_attribute_shop WHERE id_product_attribute='" . (int) $id_prd_attr . "' AND id_shop='" . (int) $id_shop . "' "; goto CvRhZ; uPLAl: $actual_prices["price_reduction_it"] = $prodrow["price"] * ($taxrate / 100 + 1) * (1 - $res_specific_price["reduction"]) + $ecotax; goto VdDwl; EMflS: if (empty($id_prd_attr)) { goto SrqBv; } goto bQZ0d; NMTbZ: $prodrow["reduction_price"] = $res_specific_price["reduction"]; goto q26IO; qi6eI: $actual_prices["price_it"] = $attrrow["price"] * ($taxrate / 100 + 1) + $prodrow["price"] * ($taxrate / 100 + 1) + $ecotax; goto zCaHY; vTEbr: cVmJg: goto EPsev; cPY1Q: goto Z2TGf; goto b_g2o; b1Euk: if (!empty($taxrate)) { goto m0hgQ; } goto siPew; jhTB0: } public static function getBrightness($hex) { goto Eb5H2; BP3Ts: $g = hexdec(substr($hex, 2, 2)); goto growx; growx: $b = hexdec(substr($hex, 4, 2)); goto hGMAi; hGMAi: return ($r * 299 + $g * 587 + $b * 114) / 1000; goto PnxVl; Z7JnB: $r = hexdec(substr($hex, 0, 2)); goto BP3Ts; Eb5H2: $hex = str_replace("#", '', $hex); goto Z7JnB; PnxVl: } public static function translateSubjectMail($subject, $id_lang) { goto Sknz2; GoHZo: xFNso: goto U8eDp; jHH6Y: D17rW: goto XtKKk; U8eDp: return Mail::l($subject, (int) $id_lang); goto CmiTk; cNHrf: return $translator->trans($subject, array(), "Emails.Subject", $orderLanguage->locale); goto GoHZo; Sknz2: if (!empty($id_lang)) { goto D17rW; } goto iWyAd; XtKKk: if (!version_compare(_PS_VERSION_, "1.7.0.0", ">=")) { goto xFNso; } goto iqC0d; SaClC: $translator = Context::getContext()->getTranslator(); goto cNHrf; iWyAd: return $subject; goto jHH6Y; iqC0d: $orderLanguage = new Language((int) $id_lang); goto SaClC; CmiTk: } public static function moduleIsInstalled($module_name) { goto RMKWl; RMKWl: if (version_compare(_PS_VERSION_, "1.7.0.1", ">=")) { goto bj_JO; } goto jk8Dm; D593E: bj_JO: goto UNxhB; tasBx: goto VFBxE; goto D593E; UNxhB: return (bool) Db::getInstance()->getValue("SELECT `id_module` FROM `" . _DB_PREFIX_ . "module` WHERE `name` = "" . pSQL($module_name) . """); goto vix_G; jk8Dm: return Module::isInstalled($module_name); goto tasBx; vix_G: VFBxE: goto V0aqj; V0aqj: } public static function moduleIsEnabled($module_name) { goto pZdb_; XAx2Y: lI2Zu: goto bZVLf; pZdb_: if (version_compare(_PS_VERSION_, "1.5.1.0", "<")) { goto lI2Zu; } goto vBSOf; vBSOf: return Module::isEnabled($module_name); goto gVB_Z; gVB_Z: goto lUPgb; goto XAx2Y; bZVLf: return (bool) Db::getInstance()->getValue("SELECT `id_module` FROM `" . _DB_PREFIX_ . "module` WHERE `name` = "" . pSQL($module_name) . "" AND active = 1"); goto jXgpw; jXgpw: lUPgb: goto xNxGN; xNxGN: } public static function getModuleVersion($module_name) { return (string) Db::getInstance()->getValue("SELECT `version` FROM `" . _DB_PREFIX_ . "module` WHERE `name` = "" . pSQL($module_name) . """); } public static function cacheScModulesInfos($refresh = false) { goto Z0sL1; uDHMG: $messageActivation = _l("(Activation required in Prestashop)"); goto Aqj7i; YoCOb: $sc_module = array("scaffiliation", "scpdfcatalog"); goto e0emg; e0emg: $modules_installed = Db::getInstance()->executeS("SELECT name,active\xa FROM " . _DB_PREFIX_ . "module
WHERE name IN ("" . implode("","", $sc_module) . "")"); goto DsFTF; Me8bz: pyjdY: goto ftp3R; DsFTF: if (empty($modules_installed)) { goto NiTiP; } goto FUoWH; hmI6v: self::$scModulesInfos = $sc_module_infos; goto hcYdE; lzxgD: snnGW: goto hmI6v; oH4OB: $modules_on_disk = Module::getModulesDirOnDisk(); goto YoCOb; dlz1I: $sc_module_infos = array(); goto tbzq5; tbzq5: $messageInstallation = _l("(Installation required in Prestashop)"); goto uDHMG; FUoWH: $tmp = array(); goto DCtbS; qJhHB: HiKPe: goto Omimo; Aqj7i: foreach ($sc_module as $m_name) { goto oCKHP; CdIVG: if (!(!$sc_module_infos[$m_name]["present"] || !$sc_module_infos[$m_name]["installed"])) { goto j4MNq; } goto m880B; AMTob: RQUjq: goto n5cMa; m880B: $sc_module_infos[$m_name]["message"] = $messageInstallation; goto M8qKg; YIu07: $sc_module_infos[$m_name]["installed"] = true; goto G99yJ; G99yJ: $sc_module_infos[$m_name]["activated"] = (int) $modules_installed[$m_name]; goto dDfQE; oCKHP: $sc_module_infos[$m_name] = array("present" => false, "installed" => false, "activated" => false, "message" => ''); goto iLNwY; iLNwY: if (!in_array($m_name, $modules_on_disk)) { goto z3dLs; } goto Sod2C; M8qKg: j4MNq: goto i9beT; i9beT: if (!($sc_module_infos[$m_name]["present"] && $sc_module_infos[$m_name]["installed"] && !$sc_module_infos[$m_name]["activated"])) { goto TIeSX; } goto wnlLp; dDfQE: xpOQk: goto CdIVG; VEg0B: z3dLs: goto jFzNb; Sod2C: $sc_module_infos[$m_name]["present"] = true; goto VEg0B; jFzNb: if (!array_key_exists($m_name, $modules_installed)) { goto xpOQk; } goto YIu07; wnlLp: $sc_module_infos[$m_name]["message"] = $messageActivation; goto jCE67; jCE67: TIeSX: goto AMTob; n5cMa: } goto lzxgD; ftp3R: self::$scModulesInfos = array(); goto oH4OB; Omimo: $modules_installed = $tmp; goto fgb2m; Z0sL1: if (!(!is_null(self::$scModulesInfos) && !$refresh)) { goto pyjdY; } goto gz0d2; gz0d2: return; goto Me8bz; DCtbS: foreach ($modules_installed as $row) { $tmp[$row["name"]] = (int) $row["active"]; nCn2n: } goto qJhHB; fgb2m: NiTiP: goto dlz1I; hcYdE: } public static function getScModulesInfos($module_name = null) { goto t08uH; ynspN: return $sc_module_infos; goto vT0RG; E941V: UqDnD: goto ynspN; WIR2i: $sc_module_infos = self::$scModulesInfos; goto HjHtb; t08uH: SCI::cacheScModulesInfos(); goto WIR2i; HjHtb: if (empty($module_name)) { goto UqDnD; } goto S4wnW; S4wnW: return $sc_module_infos[$module_name]; goto E941V; vT0RG: } public static function duplicateProductImages($idProductOld, $idProductNew, $id_image = null) { goto KVjSt; KVjSt: $imagesTypes = ImageType::getImagesTypes("products"); goto JdNfk; u1mAJ: goto NT7A8; goto wv_G0; ncOfq: foreach ($result as $row) { goto PWkmZ; SoPSc: $imageNew->id_product = (int) $idProductNew; goto eHyeX; eHyeX: if ($imageNew->add()) { goto Pv3ii; } goto ApP_E; qCm0x: w2u8x: goto X5Zf8; kRsup: obqBS: goto hyyF_; alB5J: $imageNew->cover = !empty($new_product_has_cover) ? 0 : 1; goto SoPSc; PWkmZ: $imageOld = new Image($row["id_image"]); goto ZfkFb; MsJmQ: copy(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . ".jpg", $newPath . ".jpg"); goto mFPM0; X5Zf8: if (!file_exists(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . ".jpg")) { goto nlYux; } goto MsJmQ; HdYq4: $newPath = $imageNew->getPathForCreation(); goto idLzN; mFPM0: nlYux: goto H3Zcl; uEzL7: return (int) $imageNew->id; goto Beo2n; H3Zcl: $imageNew->duplicateShops($idProductOld); goto uEzL7; idLzN: foreach ($imagesTypes as $imageType) { goto nKUQY; l73Nj: copy(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "-" . $imageType["name"] . ".jpg", $newPath . "-" . $imageType["name"] . ".jpg"); goto Bna32; Sio3C: xTokb: goto nHLBd; PVLNu: $imageNew->createImgFolder(); goto d3AkK; fdmN4: copy($oldImagePath, $newPath . "-" . $imageType["name"] . "-" . Configuration::get("WATERMARK_HASH") . ".jpg"); goto V8m6i; vOXcl: $oldImagePath = _PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "-" . $imageType["name"] . "-" . Configuration::get("WATERMARK_HASH") . ".jpg"; goto uFxU9; qx0bv: if (Configuration::get("PS_LEGACY_IMAGES")) { goto hB0Q7; } goto PVLNu; nKUQY: if (!file_exists(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "-" . $imageType["name"] . ".jpg")) { goto nRmV6; } goto qx0bv; Bna32: if (!Configuration::get("WATERMARK_HASH")) { goto JiS3A; } goto vOXcl; d3AkK: hB0Q7: goto l73Nj; V8m6i: yOgbn: goto RZj8x; aDizG: nRmV6: goto Sio3C; RZj8x: JiS3A: goto aDizG; uFxU9: if (!file_exists($oldImagePath)) { goto yOgbn; } goto fdmN4; nHLBd: } goto qCm0x; Beo2n: gNssX: goto kRsup; ZfkFb: $imageNew = clone $imageOld; goto X35wB; SUPgc: goto gNssX; goto maWLc; maWLc: Pv3ii: goto HdYq4; X35wB: unset($imageNew->id); goto xQRyy; xQRyy: $new_product_has_cover = Image::getCover((int) $idProductNew); goto alB5J; ApP_E: return false; goto SUPgc; hyyF_: } goto pgmzp; wv_G0: ECBND: goto v3WZO; K5Vih: $result = Db::getInstance()->executeS("\xa SELECT i.`id_image`\xa FROM `" . _DB_PREFIX_ . "image` i\xa INNER JOIN `" . _DB_PREFIX_ . "image_shop` image_shop\xa ON (i.`id_image` = image_shop.`id_image` AND image_shop.`id_shop` = " . (int) self::getSelectedShop() . ")\xa WHERE i.`id_product` = " . (int) $idProductOld); goto u1mAJ; pgmzp: n1eJK: goto gjV7M; v3WZO: $result = array(0 => array("id_image" => $id_image)); goto z_NaR; z_NaR: NT7A8: goto ncOfq; JdNfk: if (!empty($id_image)) { goto ECBND; } goto K5Vih; gjV7M: } public static function getFeedBizAllowedMarketPlace() { goto G_Dy2; O9PcO: aWwML: goto wkJ6H; A0ZnE: foreach ($allowed as $marketplace => $value) { goto GtH_Y; DHIbp: KZGgq: goto Wzxdq; Wzxdq: QKWrP: goto S0F6Q; GtH_Y: if (!(array_key_exists($marketplace, $marketplace_tab_config) && Tools::strlen($marketplace_tab_config[$marketplace]))) { goto KZGgq; } goto ApzUz; ApzUz: $allowed[$marketplace] = true; goto DHIbp; S0F6Q: } goto YTrDF; G_Dy2: $marketplace_tab = Configuration::get("FEEDBIZ_MARKETPLACE_TAB"); goto Ict8Y; YTrDF: gm0Kq: goto O9PcO; Ict8Y: $allowed = array("amazon" => false, "cdiscount" => false); goto IYv7l; kWm2d: return $allowed; goto xynt0; IYv7l: if (!$marketplace_tab) { goto xJ68w; } goto SX0x9; UxcNz: if (!(is_array($marketplace_tab_config) && count($marketplace_tab_config))) { goto aWwML; } goto A0ZnE; SX0x9: $marketplace_tab_config = unserialize($marketplace_tab); goto UxcNz; wkJ6H: xJ68w: goto kWm2d; xynt0: } public static function getShopUrlArrayJs() { goto GNN8z; ZbU_Y: ZwqJY: goto pdXlu; o8IF1: if (empty($url)) { goto UBtWE; } goto fp2jG; E_OFJ: if (!version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto ZwqJY; } goto BFIZp; pdXlu: return $html_return; goto WkPIM; GUUvU: qv2yZ: goto ZbU_Y; jmg0a: $url = Db::getInstance()->getValue("SELECT CONCAT(domain, physical_uri, virtual_uri) AS url\xa FROM " . _DB_PREFIX_ . "shop_url
WHERE active = 1"); goto o8IF1; rKy5j: $protocol = version_compare(_PS_VERSION_, "1.5.0.2", ">=") ? Tools::getShopProtocol() : (SCI::getConfigurationValue("PS_SSL_ENABLED") ? "https://" : "http://"); goto RRYuG; HmTGN: if (!version_compare(_PS_VERSION_, "1.5.0.0", ">")) { goto kWWeU; } goto jmg0a; zVuaU: kWWeU: goto rROVg; Cy4mF: UBtWE: goto zVuaU; ST24S: $shops = Db::getInstance()->ExecuteS($sql_shop); goto ta7PR; GNN8z: $html_return = "var shopUrls = new Array();" . "
"; goto rKy5j; fp2jG: $base_url = $protocol . $url; goto Cy4mF; ta7PR: foreach ($shops as $shop) { goto cPMFI; kklnR: if (empty($url["url"])) { goto OMqbn; } goto ceaxh; ceaxh: $html_return .= "shopUrls[" . $shop["id_shop"] . "] = "" . $protocol . $url["url"] . "";" . "
"; goto Nyjda; Nyjda: OMqbn: goto dPEq5; cPMFI: $url = Db::getInstance()->getRow("SELECT *, CONCAT(domain, physical_uri, virtual_uri) AS url\xa FROM " . _DB_PREFIX_ . "shop_url\xa WHERE id_shop = " . (int) $shop["id_shop"] . "
AND active = "1"
ORDER BY main DESC"); goto kklnR; dPEq5: FH1xi: goto LtSN8; LtSN8: } goto GUUvU; RRYuG: $base_url = (SCI::getConfigurationValue("PS_SSL_ENABLED") ? $protocol . SCI::getConfigurationValue("PS_SHOP_DOMAIN_SSL") : $protocol . SCI::getConfigurationValue("PS_SHOP_DOMAIN")) . "/"; goto HmTGN; BFIZp: $sql_shop = "SELECT id_shop\xa FROM " . _DB_PREFIX_ . "shop
WHERE deleted != '1'"; goto ST24S; rROVg: $html_return .= "shopUrls[0] = "" . $base_url . "";" . "\xa"; goto E_OFJ; WkPIM: } public static function checkSpecificPriceexists($id_product, $id_product_attribute, $price, $reduction, $reduction_type, $id_shop, $id_group, $id_country, $id_currency, $id_customer, $from_quantity, $from, $to, $rule = false) { $rule = " AND `id_specific_price_rule`" . (!$rule ? "=0" : "!=0"); return (int) Db::getInstance()->getValue("SELECT `id_specific_price`
FROM " . _DB_PREFIX_ . "specific_price
WHERE `id_product`=" . (int) $id_product . " AND
`id_product_attribute`=" . (int) $id_product_attribute . " AND\xa `price`=" . (double) $price . " AND
`reduction`=" . (double) $reduction . " AND
`reduction_type`="" . pSQL($reduction_type) . "" AND
`id_shop`=" . (int) $id_shop . " AND\xa `id_group`=" . (int) $id_group . " AND\xa `id_country`=" . (int) $id_country . " AND
`id_currency`=" . (int) $id_currency . " AND\xa `id_customer`=" . (int) $id_customer . " AND
`from_quantity`=" . (int) $from_quantity . " AND\xa `from` >= '" . pSQL($from) . "' AND\xa `to` <= '" . pSQL($to) . "'" . $rule); } public static function cachingAttributeName($id_lang, $id_product_attribute = null) { goto m1G1e; d4fYw: if (empty($res_attr)) { goto sJ95w; } goto fUDwS; nlKAO: $cache_array = array(); goto d4fYw; EcQ2t: return $cache_array; goto V2a1a; kkMPD: if (is_array($id_product_attribute)) { goto kGdlX; } goto vKm9L; A94FA: $sql = "SELECT pac.id_product_attribute,agl.name as gp, al.name
FROM " . _DB_PREFIX_ . "product_attribute_combination pac
INNER JOIN " . _DB_PREFIX_ . "attribute a ON pac.id_attribute = a.id_attribute
INNER JOIN " . _DB_PREFIX_ . "attribute_group_lang agl ON a.id_attribute_group = agl.id_attribute_group\xa INNER JOIN " . _DB_PREFIX_ . "attribute_lang al ON pac.id_attribute = al.id_attribute" . (!empty($id_product_attribute) ? " WHERE pac.id_product_attribute IN (" . pSQL(implode(",", $id_product_attribute)) . ")" : '') . "AND agl.id_lang = " . (int) $id_lang . "
AND al.id_lang = " . (int) $id_lang . "\xa ORDER BY agl.name"; goto k8bPr; fUDwS: foreach ($res_attr as $row) { goto xECXQ; zunMM: vBdAU: goto yYRYz; I5aTJ: goto lQVtk; goto zunMM; yYRYz: $cache_array[$row["id_product_attribute"]] .= ", " . $attribute_name; goto dGD02; f9rPL: if (array_key_exists($row["id_product_attribute"], $cache_array)) { goto vBdAU; } goto IiOvy; Lbh_j: v_7HR: goto Jv03e; xECXQ: if (!(!empty($row["gp"]) && !empty($row["name"]))) { goto v_7HR; } goto Avx6g; IiOvy: $cache_array[$row["id_product_attribute"]] = $attribute_name; goto I5aTJ; Jv03e: ttG8d: goto lkk8d; Avx6g: $attribute_name = $row["gp"] . " : " . $row["name"]; goto f9rPL; dGD02: lQVtk: goto Lbh_j; lkk8d: } goto q6pnd; q6pnd: dNRbd: goto ZrOdh; k8bPr: $res_attr = Db::getInstance()->executeS($sql); goto nlKAO; ndabr: kGdlX: goto Y95Tu; ZrOdh: sJ95w: goto EcQ2t; Y95Tu: avBO5: goto A94FA; m1G1e: if (empty($id_product_attribute)) { goto avBO5; } goto kkMPD; vKm9L: $id_product_attribute = array($id_product_attribute); goto ndabr; V2a1a: } public static function addLog($message, $severity = 1, $errorCode = null, $objectType = null, $objectId = null, $allowDuplicate = false, $idEmployee = null) { goto KeLBW; Sl9kf: DBKbs: goto jOidc; BiVfH: uMs63: goto nzEO5; nzEO5: PrestaShopLogger::addLog($message, $severity, $errorCode, $objectType, $objectId, $allowDuplicate, $idEmployee); goto Sl9kf; KeLBW: if (version_compare(_PS_VERSION_, "1.6.0.3", ">=")) { goto uMs63; } goto S_V9y; s0_T9: goto DBKbs; goto BiVfH; S_V9y: Logger::addLog($message, $severity, $errorCode, $objectType, $objectId, $allowDuplicate); goto s0_T9; jOidc: } public static function addProductAttributeMultiple($product, $attributes, $set_default = true) { goto tTsFH; tTsFH: $return = array(); goto aSOZD; JDrYR: return $return; goto on1f_; aSOZD: $default_value = 1; goto QP3pV; Ezeww: cbTUI: goto JDrYR; QP3pV: foreach ($attributes as $attribute) { goto hNYWU; umYL1: YNz6N: goto hFuyK; D3YMf: foreach ($attribute as $key => $value) { $obj->{$key} = $value; SS_Hu: } goto tE56S; JK7vG: $id_shop_list = array(); goto sDHR2; GrEEp: $default_value = 0; goto rRDpc; ShYJ9: $obj->default_on = $default_value; goto GrEEp; hNYWU: $obj = new Combination(); goto D3YMf; cZoxm: qGV3l: goto fgGoP; fgGoP: $obj->id_shop_list = $id_shop_list; goto B1v3o; BOSJ_: C0iBR: goto VB2Ao; B1v3o: Dn7a1: goto BOSJ_; sDHR2: foreach ($id_shop_list_array as $array_shop) { $id_shop_list[] = $array_shop["id_shop"]; GU5zo: } goto cZoxm; VB2Ao: $obj->add(); goto QVVRp; DT4Tu: $id_shop_list_array = Product::getShopsByProduct($product->id); goto JK7vG; tE56S: n7Nnc: goto PdxwS; PdxwS: if (!$set_default) { goto C0iBR; } goto ShYJ9; QVVRp: $return[] = $obj->id; goto umYL1; rRDpc: if ($product->hasAttributesInOtherShops()) { goto Dn7a1; } goto DT4Tu; hFuyK: } goto Ezeww; on1f_: } public static function addAttributeCombinationMultiple($id_attributes, $combinations) { goto siAUN; oJo6u: kFu33: goto DnWUE; siAUN: $attributes_list = array(); goto GmfFo; GmfFo: foreach ($id_attributes as $nb => $id_product_attribute) { goto haQG5; qYSIj: avngW: goto RV7BH; bRuvj: foreach ($combinations[$nb] as $id_attribute) { $attributes_list[] = array("id_product_attribute" => (int) $id_product_attribute, "id_attribute" => (int) $id_attribute); vlIN6: } goto N32Pt; haQG5: if (!isset($combinations[$nb])) { goto q6HEc; } goto bRuvj; UIUNz: q6HEc: goto qYSIj; N32Pt: JZ79w: goto UIUNz; RV7BH: } goto oJo6u; DnWUE: return Db::getInstance()->insert("product_attribute_combination", $attributes_list); goto RKeb7; RKeb7: } public static function getAttributeCombinations($product, $id_lang) { goto OgRRv; GF4ZY: return $product->getAttributeCombinations($id_lang); goto UzWhj; UzWhj: Zykjb: goto GcDd5; tnOxy: goto Zykjb; goto lnk21; OgRRv: if (version_compare(_PS_VERSION_, "1.5.0.10", ">=")) { goto Xrxk9; } goto eRR1n; lnk21: Xrxk9: goto GF4ZY; eRR1n: return $product->getAttributeCombinaisons($id_lang); goto tnOxy; GcDd5: } public static function getScDisplayableOrderStates($id_lang, $filterDeleted = true) { goto BaQ21; DBlV6: if (empty($scHideOrderStatesConfigs)) { goto EJDJ0; } goto QmMjK; BaQ21: $orderStates = OrderState::getOrderStates($id_lang, $filterDeleted); goto CR3kA; M7ZLd: EJDJ0: goto odITf; D7nr2: YeuTw: goto M7ZLd; QmMjK: foreach ($orderStates as $key => $orderState) { goto BPaf_; Zedii: if (!(!empty($scHideOrderStatesConfig) && isset($scHideOrderStatesConfig["shops"]) && is_array($scHideOrderStatesConfig["shops"]) && in_array(SCI::getSelectedShop(), array_values($scHideOrderStatesConfig["shops"])))) { goto OVqWq; } goto QyPou; w6Hx_: cq8J8: goto O5R6C; O5R6C: Fz1TB: goto uZseC; LFA8V: $scHideOrderStatesConfig = $scHideOrderStatesConfigs[$orderState["id_order_state"]]; goto Zedii; BPaf_: if (!isset($scHideOrderStatesConfigs[$orderState["id_order_state"]])) { goto cq8J8; } goto LFA8V; EdaBh: OVqWq: goto w6Hx_; QyPou: unset($orderStates[$key]); goto EdaBh; uZseC: } goto D7nr2; CR3kA: $scHideOrderStatesConfigs = unserialize(SCI::getConfigurationValue("SC_HIDE_ORDER_STATES")); goto DBlV6; odITf: return $orderStates; goto ISoWH; ISoWH: } public static function getScIsDisplayableOrderState($idOrderState = null, $idShop = null) { goto z1dlZ; fzXG1: $scHideOrderStatesConfigs = unserialize(SCI::getConfigurationValue("SC_HIDE_ORDER_STATES")); goto YCOhV; Wi119: return 2; goto FUr5v; lw9QO: if (in_array($idShop, array_values($scHideOrderStatesConfigs[$idOrderState]["shops"]))) { goto sA28z; } goto bVdxd; KUsfR: return 0; goto G1hn7; FUr5v: gV2hP: goto Fiqh4; bVdxd: return 0; goto IDQnP; IDQnP: sA28z: goto HLHW2; kz3KY: HJZYu: goto auqjV; EjXDs: return 0; goto kz3KY; G1hn7: gKU_q: goto lw9QO; HLHW2: if (!($idShop == 0 && is_iterable($scHideOrderStatesConfigs[$idOrderState]["shops"]) && count($scHideOrderStatesConfigs[$idOrderState]["shops"]) > 1)) { goto gV2hP; } goto Wi119; auqjV: if (!(!is_array($scHideOrderStatesConfigs[$idOrderState]["shops"]) || !isset($scHideOrderStatesConfigs[$idOrderState]))) { goto gKU_q; } goto KUsfR; z1dlZ: $idShop = null !== $idShop ? $idShop : SCI::getSelectedShop(); goto fzXG1; YCOhV: if (!(!$idOrderState || !$scHideOrderStatesConfigs)) { goto HJZYu; } goto EjXDs; Fiqh4: return 1; goto W5b7N; W5b7N: } public static function getActiveLangForSelectedShop($field = null) { goto zJ5zD; T7PHr: HxWXD: goto gu1L0; qIXBj: goto HxWXD; goto jbTkR; zJ5zD: if (!$field) { goto CVLVT; } goto xFvGM; xFvGM: return array_map(function ($e) use($field) { return $e[$field]; }, Language::getLanguages(false, SCI::getSelectedShop())); goto qIXBj; UZxrB: return Language::getLanguages(false, SCI::getSelectedShop()); goto T7PHr; jbTkR: CVLVT: goto UZxrB; gu1L0: } public static function fixMyPSAlert($sc_agent) { goto iOhuA; HjcD8: if (!($refDateTime && $refDateTime->diff(new DateTime())->format("%d") > 7)) { goto Oph__; } goto hVKWi; hNxIR: if (!$data_add) { goto lHXDs; } goto vEFH4; K6ytm: return _l("FixMyPrestashop has not been run for at least 7 days, you should run it from the Tools > FixMyPrestashop menu to check the integrity of your shop.") . "<a style="font-weight:bold;text-decoration:underline;" onclick="onMenuClick('fixmyprestashop');">" . _l("More info") . "</a>"; goto KKoKZ; hVKWi: setcookie("FixMyPsAlert", true, time() + 24 * 60 * 60, constant("COOKIE_PATH")); goto K6ytm; maVub: oNGY6: goto HjcD8; foVSR: $refDateTime = DateTime::createFromFormat("Y-m-d", SCI::getConfigurationValue("SC_FIXMYPS_LAST_CHECK")); goto oILZz; iv209: lHXDs: goto maVub; ZF1ZJ: return false; goto VyZG2; iOhuA: if (!(_r("MEN_TOO_FIXMYPS") && !isset($_COOKIE["FixMyPsAlert"]) && defined("SC_FixMyPrestashop_ACTIVE") && SC_FixMyPrestashop_ACTIVE == "1" && _s("APP_DISABLE_FIXMYPS_NOTICE"))) { goto jlmtn; } goto foVSR; x36Wr: $sqlDAteInstalled = "SELECT date_add FROM " . _DB_PREFIX_ . "configuration WHERE name='SC_INSTALLED' AND value='1'"; goto gU5Bw; c3FG2: jlmtn: goto ZF1ZJ; oILZz: if ($refDateTime) { goto oNGY6; } goto x36Wr; gU5Bw: $data_add = Db::getInstance()->getValue($sqlDAteInstalled); goto hNxIR; KKoKZ: Oph__: goto c3FG2; vEFH4: $refDateTime = DateTime::createFromFormat("Y-m-d H:i:s", $data_add); goto iv209; VyZG2: } public static function getStockMvtEmployeeReasonId($sign) { return (int) ($sign > 0 ? self::getConfigurationValue("PS_STOCK_MVT_INC_EMPLOYEE_EDITION") : self::getConfigurationValue("PS_STOCK_MVT_DEC_EMPLOYEE_EDITION")); } public static function isAvailableWhenOutOfStockByShop($out_of_stock, $id_shop) { goto BfHD9; SDa02: if ($ps_stock_management) { goto HAk7W; } goto E52VU; n5tWH: return (int) $out_of_stock === $outOfStockTypeDefault ? (int) $ps_order_out_of_stock : (int) $out_of_stock; goto kpUn9; q82t8: SPPyW: goto XolXz; Md7Nk: HAk7W: goto aIA0M; IbGrd: XmN2P: goto n5tWH; XolXz: $outOfStockTypeDefault = PrestaShop\PrestaShop\Core\Domain\Product\Stock\ValueObject\OutOfStockType::OUT_OF_STOCK_DEFAULT; goto IbGrd; aIA0M: $ps_order_out_of_stock = self::getConfigurationValue("PS_ORDER_OUT_OF_STOCK", null, null, (int) $id_shop); goto q7T2C; BfHD9: $ps_stock_management = self::getConfigurationValue("PS_STOCK_MANAGEMENT", null, null, (int) $id_shop); goto SDa02; Hxx18: $outOfStockTypeDefault = 2; goto imqjE; imqjE: goto XmN2P; goto q82t8; q7T2C: if (version_compare(_PS_VERSION_, "1.7.8.0", ">=")) { goto SPPyW; } goto Hxx18; E52VU: return true; goto Md7Nk; kpUn9: } public static function messageNotCompatibleWithAdvancedPack($identifier) { goto I5FPy; UISnR: ZHd73: goto mOs2k; SvEWf: exitWithXmlMessageForGrid($msg); goto UISnR; I5FPy: if (!SCI::moduleIsInstalled("pm_advancedpack")) { goto mZovy; } goto HtmZS; ivY7P: $msg = _l("This pack can't be modified here because it's an Advanced Pack"); goto SvEWf; HtmZS: $is_adv_pack = (int) Db::getInstance()->getValue("SELECT COUNT(*)
FROM " . _DB_PREFIX_ . "pm_advancedpack
WHERE id_pack IN (" . pInSQL($identifier) . ")"); goto kZCzh; kZCzh: if (!$is_adv_pack) { goto ZHd73; } goto ivY7P; mOs2k: mZovy: goto SmpgY; SmpgY: } public static function encrypt($data) { goto GgIIQ; lzs6y: tBeX9: goto ukC8z; hhCwk: LDWKi: goto d1y3z; d1y3z: return $cryptEngine->encrypt($data); goto r30XB; ukC8z: $cryptEngine = new PhpEncryption(_NEW_COOKIE_KEY_); goto hhCwk; F63r1: if (!Configuration::get("PS_CIPHER_ALGORITHM") || !defined("_RIJNDAEL_KEY_")) { goto ELEcI; } goto hdzib; hdzib: $cryptEngine = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); goto dB_Zb; dB_Zb: goto GgBpv; goto D40Q4; ILNqL: GgBpv: goto XGZo5; D40Q4: ELEcI: goto I4wtd; I4wtd: $cryptEngine = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); goto ILNqL; XGZo5: goto LDWKi; goto lzs6y; GgIIQ: if (version_compare(_PS_VERSION_, "1.7.0.0", ">=")) { goto tBeX9; } goto F63r1; r30XB: } public static function decrypt($data) { goto X1sLl; E9HAb: $cryptEngine = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); goto W6Hyq; SPY2C: $cryptEngine = new PhpEncryption(_NEW_COOKIE_KEY_); goto zpwcq; X1sLl: if (version_compare(_PS_VERSION_, "1.7.0.0", ">=")) { goto I8_N2; } goto sTVk3; RvfJb: $cryptEngine = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); goto bbCVq; NTdjH: goto HrMYG; goto kGznZ; NEnnB: iWUll: goto RvfJb; kGznZ: I8_N2: goto SPY2C; bbCVq: Bdi1I: goto NTdjH; sTVk3: if (!Configuration::get("PS_CIPHER_ALGORITHM") || !defined("_RIJNDAEL_KEY_")) { goto iWUll; } goto E9HAb; W6Hyq: goto Bdi1I; goto NEnnB; WWzhd: return $cryptEngine->decrypt($data); goto btocb; zpwcq: HrMYG: goto WWzhd; btocb: } public static function getAllowedFileExtension($type) { goto Ci6u2; A70Tw: fdD8t: goto aNP14; Ci6u2: switch ($type) { case "image": goto lrSsL; ym2Af: if (!version_compare(_PS_VERSION_, "8.0", ">=")) { goto ku8J8; } goto m6SZc; lrSsL: $extensions = array("jpg", "jpeg", "png", "gif", "bmp"); goto ym2Af; AyrPp: ku8J8: goto v52rh; m6SZc: $extensions[] = "webp"; goto AyrPp; v52rh: return $extensions; goto JBls8; JBls8: case "csv": return array("csv"); default: return array(); } goto dCHdE; dCHdE: IECNd: goto A70Tw; aNP14: } public static function getForbiddenFileExtension($type) { goto qGTYW; qGTYW: switch ($type) { case "other": return array("php", "phpt", "ade", "adp", "apk", "appx", "appxbundle", "bat", "cab", "chm", "cmd", "com", "cpl", "diagcab", "diagcfg", "diagpack", "dll", "dmg", "ex", "ex_", "exe", "hta", "img", "ins", "iso", "isp", "jar", "jnlp", "js", "jse", "lib", "lnk", "mde", "msc", "msi", "msix", "msixbundle", "msp", "mst", "nsh", "pif", "ps1", "scr", "sct", "shb", "sys", "vb", "vbe", "vbs", "vhd", "vxd", "wsc", "wsf", "wsh", "xll"); default: return array(); } goto D8jt1; D8jt1: jD_iD: goto z7lda; z7lda: v_N4f: goto FnFTq; FnFTq: } }
goto rZEZd; j4D9b: if (function_exists("file_get_contents")) { goto Iilk2; } goto wKzDV; OCpKr: function checkAndGetImgExtension($file) { goto gLK2x; kOAkb: $extensions = array("png", "jpg", "jpeg", "gif"); goto qubrm; a7_YS: zfkMr: goto xPo1c; gLK2x: $return = false; goto kOAkb; qubrm: foreach ($extensions as $extension) { goto j_rw9; oTL59: goto zfkMr; goto yYCj2; JkJXs: sJgzu: goto D_3CT; LxcOb: $return = strtoupper($extension); goto oTL59; D_3CT: if (!file_exists($file . "." . strtoupper($extension))) { goto zYI8E; } goto LxcOb; oq4pT: goto zfkMr; goto JkJXs; yYCj2: zYI8E: goto DUYyf; j_rw9: if (!file_exists($file . "." . $extension)) { goto sJgzu; } goto gFrkg; gFrkg: $return = $extension; goto oq4pT; DUYyf: tWgJc: goto mbUW1; mbUW1: } goto a7_YS; xPo1c: return $return; goto pjaOD; pjaOD: } goto QqVYv; JjkEM: function cleanQuotes($str) { goto ga53z; uBzD8: return trim($str); goto PnRIK; ga53z: $str = trim($str); goto LOWvu; LOWvu: if (!(substr($str, 0, 1) == """ && substr($str, strlen($str) - 1, 1) == """)) { goto UzU8Q; } goto E_8kL; AqZMp: UzU8Q: goto uBzD8; E_8kL: $str = substr($str, 1, strlen($str) - 2); goto GbWBW; GbWBW: $str = str_replace("""", """, $str); goto AqZMp; PnRIK: } goto o0qjE; kUadj: function importConv2Int($field) { goto LKZ3T; ypcwt: return (int) $field; goto DndNF; jh_oc: $field = str_replace(",", ".", $field); goto ypcwt; LKZ3T: $field = str_replace(array("\342\202\254", " ", "%"), '', $field); goto jh_oc; DndNF: } goto stA8f; hCE9K: function dirRemove($dir) { goto ciZxs; IO_IP: reset($objects); goto FdGtH; HkDYQ: $objects = scandir($dir); goto nckAu; inFPI: mUPK8: goto G_W0s; ciZxs: if (!is_dir($dir)) { goto mUPK8; } goto HkDYQ; FdGtH: rmdir($dir); goto inFPI; qQlNP: O0kmR: goto IO_IP; nckAu: foreach ($objects as $object) { goto dMtjs; dMtjs: if (!($object != "." && $object != "..")) { goto H_WGQ; } goto NVMSH; k9HJh: krycV: goto IZ5sL; hnXbS: dirRemove($dir . "/" . $object); goto dLmRa; dMNu5: goto S1OGl; goto u7Sqa; dLmRa: S1OGl: goto Jfswe; Jfswe: H_WGQ: goto k9HJh; qUcRJ: unlink($dir . "/" . $object); goto dMNu5; u7Sqa: q3CUq: goto hnXbS; NVMSH: if (filetype($dir . "/" . $object) == "dir") { goto q3CUq; } goto qUcRJ; IZ5sL: } goto qQlNP; G_W0s: } goto O9QAc; Iwxqy: echo "curl_init : OK<br/>"; goto QBBCF; sMfaM: echo "file_get_contents : OK<br/>"; goto Rhbsj; jFniB: function formatDateTimeToDisplay($dateTime) { goto F0Fj1; dv5b7: return $date . " " . $times[0] . ":" . $times[1]; goto r6xHh; x2fqf: $times = explode(":", $time); goto dv5b7; F0Fj1: list($date, $time) = explode(" ", $dateTime); goto x2fqf; r6xHh: } goto JjkEM; RgeaQ: function addToHistory($section, $action, $object, $object_id, $lang_id, $table, $newValue, $oldValue = false, $id_shop = null) { goto DodIW; ZZYVE: $id_shop = pInSQL(SCI::getSelectedShopActionList(true)); goto Qnb6s; yptIr: return false; goto miZl0; T3HXT: if (!_s("APP_DISABLE_CHANGE_HISTORY")) { goto entHP; } goto yptIr; PQbsZ: $sql = "INSERT INTO " . _DB_PREFIX_ . "storecom_history (id_employee,section,action,object,object_id,lang_id,dbtable,oldValue,newValue,date_add)
VALUES ('" . (int) $sc_agent->id_employee . "','" . psql($section) . "','" . psql($action) . "','" . psql($object) . "','" . (int) $object_id . "','" . (int) $lang_id . "','" . psql($table) . "','" . psql($oldValue, true) . "','" . psql($newValue, true) . "',NOW())"; goto q9fWb; U0gJ7: if (!(!empty($object) && !empty($table) && !empty($tableKeys[$table]))) { goto dWL2L; } goto sCP23; sQ0pn: dWL2L: goto xj0Jc; xj0Jc: B8Ex2: goto BplHL; DqkeV: $res = Db::getInstance()->getRow($sql); goto zrxAi; ehWt9: Db::getInstance()->Execute($sql); goto Ck3k8; DodIW: global $sc_agent; goto T3HXT; zrxAi: $oldValue = $res[$object]; goto sQ0pn; o4YAB: if (!empty($id_shop)) { goto zlbB0; } goto ZZYVE; miZl0: entHP: goto dLLG7; AeU2k: $sql = "INSERT INTO " . _DB_PREFIX_ . "storecom_history (id_employee,section,action,object,object_id,lang_id,dbtable,oldValue,newValue,date_add,shops)
VALUES ('" . (int) $sc_agent->id_employee . "','" . psql($section) . "','" . psql($action) . "','" . psql($object) . "','" . (int) $object_id . "','" . (int) $lang_id . "','" . psql($table) . "','" . psql($oldValue, true) . "','" . psql($newValue, true) . "',NOW(),'," . $id_shop . ",')"; goto c8hwa; rsDou: mGCKQ: goto o4YAB; j6VKi: if (SCMS) { goto mGCKQ; } goto PQbsZ; sCP23: $sql = "SELECT `" . bqSQL($object) . "` FROM `" . bqSQL($table) . "` WHERE `" . bqSQL($tableKeys[$table]) . "`='" . (int) $object_id . "'" . (strpos($table, "_lang") > 0 ? " AND id_lang=" . (int) $lang_id : ''); goto DqkeV; q9fWb: goto M7O1k; goto rsDou; BplHL: if (!(strval($oldValue) != strval($newValue) || $oldValue === null && $newValue === null)) { goto aHHR4; } goto j6VKi; c8hwa: M7O1k: goto ehWt9; dLLG7: if (!($oldValue === false)) { goto B8Ex2; } goto JMVjW; Qnb6s: zlbB0: goto AeU2k; JMVjW: $tableKeys = array(_DB_PREFIX_ . "product" => "id_product", _DB_PREFIX_ . "product_lang" => "id_product", _DB_PREFIX_ . "image" => "id_image", _DB_PREFIX_ . "image_lang" => "id_image", _DB_PREFIX_ . "product_attribute" => "id_product_attribute", _DB_PREFIX_ . "category_product" => "0", _DB_PREFIX_ . "category" => "id_parent", _DB_PREFIX_ . "attribute_group" => "id_attribute_group", _DB_PREFIX_ . "attribute_group_lang" => "id_attribute_group", _DB_PREFIX_ . "attribute" => "id_attribute", _DB_PREFIX_ . "attribute_lang" => "id_attribute", _DB_PREFIX_ . "feature" => "id_feature", _DB_PREFIX_ . "feature_lang" => "id_feature", _DB_PREFIX_ . "feature_value" => "id_feature_value", _DB_PREFIX_ . "feature_value_lang" => "id_feature_value", _DB_PREFIX_ . "discount_quantity" => "id_discount_quantity", _DB_PREFIX_ . "storecom_product" => "id_product", _DB_PREFIX_ . "specific_price" => "id_product", _DB_PREFIX_ . "attachment" => "id_attachment", _DB_PREFIX_ . "attachment_lang" => "id_attachment", _DB_PREFIX_ . "customization_field" => "id_customization_field", _DB_PREFIX_ . "customization_field_lang" => "id_customization_field", _DB_PREFIX_ . "orders" => "id_order", _DB_PREFIX_ . "order_detail" => "id_order_detail", _DB_PREFIX_ . "product_download" => "id_product_download", _DB_PREFIX_ . "address" => "id_address"); goto U0gJ7; Ck3k8: aHHR4: goto oRgir; oRgir: } goto p6c9G; yR843: goto P0_xU; goto vr6Qw; MAHlU: function removeOldScItems() { goto KrbOs; wZ0Ar: ixSub: goto Q0Jbv; KrbOs: $oldScToolsFolderList = array("fixmyprestashop", "win_grids_editor", "win_grids_editor_pro", "pmcachemanager", "multiplefeatures", "segmentation", "segmentproperties", "affiliation"); goto HszYa; HszYa: foreach ($oldScToolsFolderList as $scToolsFolderPath) { goto Tt2Bk; bIIJV: E1n_b: goto BDUvb; TQPhk: y38Sl: goto bIIJV; Tt2Bk: if (!file_exists(SC_TOOLS_DIR . $scToolsFolderPath)) { goto y38Sl; } goto DgBW3; DgBW3: dirRemove(SC_TOOLS_DIR . $scToolsFolderPath); goto TQPhk; BDUvb: } goto wZ0Ar; Q0Jbv: } goto Fjhih; bGax0: if (!isset($_GET["time"])) { goto vybH2; } goto g2TCW; dADmh: function arr_unique($array) { return array_keys(array_flip($array)); } goto MFG0N; CJAMO: function runProcessOneTimeByDay() { goto SoS7x; cwqsV: $sc_node->appendChild($partner_node); goto NCmLb; sUnUQ: $dst = SC_PS_MODULE_PATH_DIR . $ork_folder; goto Jd8C5; XM_wA: Co2Pj: goto wRWxH; FDP1v: $sc_node->appendChild($last_check_date_node); goto kjC11; Zb1a6: U2_6c: goto hFXKV; wDDF1: wrzsI: goto yKj8K; RavtK: $k = str_replace(array(".", "/", "$"), '', crypt(uniqid($k_path, true), hash("sha256", $k_path))); goto s6VtC; xblMi: rPF6U: goto HCVNj; OgYB_: $sc_node->appendChild($name_node); goto ZGYVN; hFXKV: $sql = "SELECT GROUP_CONCAT(DISTINCT CONCAT("" . pSQL($protocol) . "",domain) SEPARATOR ",") as domain\xa FROM " . _DB_PREFIX_ . "shop_url\xa WHERE active = 1"; goto v_qUj; vN3TS: $root = $dom->createElement("modules"); goto w4ofR; NwTcX: $src = SC_DIR . "autoinstall/" . $ork_folder; goto oc4uE; ztbzq: $name_node = $dom->createElement("name", "Store Commander"); goto OgYB_; BPOAv: $dom->appendChild($root); goto y3d06; Ca2lK: $dom->save($partner_xml_file); goto tShdI; gE4M8: $partner_node->appendChild($id_node); goto OCSlj; KjWvV: $res_api = makeCallToOurApi("getPartnerId", array(), array("LICENSE" => "#")); goto LWTkG; CpBsq: $current_domain = ToolsCore::getShopDomainSsl(); goto Lw0MP; ZYruG: SCI::updateConfigurationValue("SC_UNIQUE_ID", $unique_key_exists); goto Mhc_N; YeQ22: goto rPF6U; goto Zb1a6; oc4uE: if (!file_exists($src)) { goto PbT4x; } goto sUnUQ; SoS7x: $access_details = access_details(); goto sOPu7; Lw0MP: $domains = (string) $protocol . $current_domain; goto YeQ22; GUshq: $ps_unique_id = $dom->createElement("ps_unique_id", $unique_key_exists); goto AUXEy; yKj8K: $id_node = $dom->createElement("id", $id_partner_in_node); goto gE4M8; BA0cQ: $unique_key_exists = md5(uniqid($access_details["domain"], true)); goto ZYruG; oIZk_: $partner_xml_file = SC_PS_MODULE_PATH_DIR . "module_sc.xml"; goto RbNTh; v_qUj: $domains = (string) Db::getInstance()->getValue($sql); goto xblMi; kjC11: $partner_node = $dom->createElement("partner"); goto cwqsV; OCSlj: $root->appendChild($sc_node); goto BPOAv; ak7PT: $last_used_node = $dom->createElement("date_last_used", date("Y-m-d")); goto ZPwtm; fYaMo: $id_partner_in_node = $res_api["result"]; goto wDDF1; s6VtC: SCI::updateConfigurationValue("SC_SALT", $k); goto bRIFA; sOPu7: $k_path = dirname(__FILE__); goto RavtK; wRWxH: PbT4x: goto UgR7n; AUXEy: $sc_node->appendChild($ps_unique_id); goto ak7PT; HCVNj: Configuration::updateValue("SC_CORS_DOMAINS", json_encode(explode(",", $domains)), false, 0, 0); goto emIhR; Mhc_N: vxki6: goto hBrm3; hBrm3: $localVersions = json_decode(SCI::getConfigurationValue("SC_VERSIONS_LAST", 0), true); goto dAWI4; ZGYVN: $version_node = $dom->createElement("version", $localVersions["SC-Pack1"]["version"]); goto g9ztx; y3d06: $dom->formatOutput = true; goto Ca2lK; BvDL4: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto U2_6c; } goto CpBsq; RkRPe: recursive_copy($src, $dst); goto XM_wA; MvWD0: makeCallToOurApi("Analysis/Serv", array(), array("LICENSE" => "#", "DOMAIN" => $access_details["domain"] . __PS_BASE_URI__, "SC_UNIQUE_ID" => $unique_key_exists, "timezone" => !empty($sc_timezone) ? $sc_timezone : date_default_timezone_get(), "php_exec" => (int) function_exists("exec"), "php_version" => (string) sc_phpversion(), "ps_version" => (string) _PS_VERSION_, "sc_version" => (string) $localVersions["SC-Pack1"]["version"])); goto oIZk_; o5o9k: $last_check_date_node = $dom->createElement("last_fix_check_date", SCI::getConfigurationValue("SC_FIXMYPS_LAST_CHECK")); goto FDP1v; RbNTh: $dom = new DOMDocument("1.0", "UTF-8"); goto vN3TS; ASIXw: $sub_node = $dom->createElement("is_sub", IS_SUB); goto kzxfp; LkT2_: if (!empty($unique_key_exists)) { goto vxki6; } goto BA0cQ; NCmLb: $id_partner_in_node = ''; goto KjWvV; g9ztx: $sc_node->appendChild($version_node); goto ASIXw; tShdI: $ork_folder = "ork"; goto NwTcX; LWTkG: if (!(!empty($res_api["code"]) && $res_api["code"] == "200")) { goto wrzsI; } goto fYaMo; bRIFA: $unique_key_exists = SCI::getConfigurationValue("SC_UNIQUE_ID"); goto LkT2_; UgR7n: $protocol = getShopProtocol(); goto BvDL4; ZPwtm: $sc_node->appendChild($last_used_node); goto o5o9k; kzxfp: $sc_node->appendChild($sub_node); goto GUshq; w4ofR: $sc_node = $dom->createElement("storecommander"); goto ztbzq; dAWI4: $sc_timezone = SCI::getConfigurationValue("PS_TIMEZONE"); goto MvWD0; Jd8C5: if (file_exists($dst)) { goto Co2Pj; } goto RkRPe; emIhR: } goto jZDtV; yuo8Q: function arrayDiffEmulation($arrayFrom, $arrayAgainst) { goto mrExV; mrExV: $arrayAgainst = array_flip($arrayAgainst); goto zPDsZ; aerpX: XCmvH: goto GXU_i; GXU_i: return $arrayFrom; goto A553X; zPDsZ: foreach ($arrayFrom as $key => $value) { goto A1Ri_; RxLiG: S_SaX: goto i85E7; pQD5R: unset($arrayFrom[$key]); goto RxLiG; A1Ri_: if (!isset($arrayAgainst[$value])) { goto S_SaX; } goto pQD5R; i85E7: vKt5g: goto Oobh1; Oobh1: } goto aerpX; A553X: } goto uDm_I; BDQtL: function getFileMime($filePath) { goto PwpEi; qU8_Q: return false; goto YRKmi; zneF7: goto AUe2u; goto pyKhL; qhGid: PsbVS: goto rDDd2; bVP15: dCc6K: goto SHb7u; ZT2f8: if (function_exists("exec")) { goto Z_4Ar; } goto MqXmo; nhnN6: return $mime; goto xNKHt; UQRBb: return trim(exec("file -b --mime-type " . escapeshellarg($filePath))); goto TZmGo; rDDd2: $finfo = finfo_open(FILEINFO_MIME_TYPE); goto nn33v; SHb7u: return mime_content_type($filePath); goto zneF7; PwpEi: if (function_exists("finfo_open")) { goto PsbVS; } goto xgMIV; TZmGo: AUe2u: goto qU8_Q; pyKhL: Z_4Ar: goto UQRBb; nn33v: $mime = finfo_file($finfo, $filePath); goto cLQXp; xgMIV: if (function_exists("mime_content_type")) { goto dCc6K; } goto ZT2f8; cLQXp: finfo_close($finfo); goto nhnN6; MqXmo: goto AUe2u; goto qhGid; xNKHt: goto AUe2u; goto bVP15; YRKmi: } goto C010x; C3qDV: function cleanScript($script) { goto aESbx; eug12: return str_replace($prevent_vars, '', $script); goto blyvD; NRQV4: tV89S: goto eug12; h2Q4f: foreach ($prevent_functions as $func) { $script = preg_replace("#" . $func . "\s*\(\s*(.*?)\s*\)#", '', $script); ktwmV: } goto NRQV4; aESbx: $prevent_vars = array("$_FILES", "$_ENV"); goto CfMF4; CfMF4: $prevent_functions = array("eval", "exec", "passthru", "shell_exec", "system", "proc_open", "popen", "curl_exec", "curl_multi_exec", "parse_ini_file", "show_source", "chmod", "chown", "chgrp", "rename", "mkdir", "rmdir", "unlink", "fopen", "file_put_contents", "file_get_contents"); goto h2Q4f; blyvD: } goto Aoinh; Rhbsj: Tq3es: goto YxWzI; BPmx9: function getIcon($item) { $icon_array_link = array("accept.png" => "fa fa-check-circle green", "accept_grey.png" => "fad fa-check-circle grey", "accessory.png" => "fad fa-bags-shopping blue", "add.png" => "fa fa-plus-circle green", "add_big.png" => "fa fa-plus-circle yellow", "add_dis.png" => "fad fa-plus-circle grey", "add_ps.png" => "fa fa-prestashop", "ajax-loader.gif" => "fas fa-spinner fa-pulse", "ajax-loader16.gif" => "fas fa-spinner fa-pulse", "alert.gif" => "fad fa-exclamation-triangle orange", "application_form_magnify.png" => "fa fa-search blue", "application_lightning.png" => "fa fa-bolt yellow", "application_lightning_delete.png" => "fa fa-eraser red", "application_lightning_dis.png" => "fad fa-bolt grey", "application_side_list.png" => "fad fa-th-list blue", "application_side_tree.png" => "fad fa-folder-tree blue", "application_tile_vertical.png" => "fad fa-text-height blue", "application_view_list.png" => "fad fa-list-alt blue", "arrow_divide.png" => "fad fa-folder-plus green", "arrow_down.png" => "fa fa-arrow-down red", "arrow_in.png" => "fa fa-compress-arrows-alt green", "arrow_out.png" => "fa fa-expand-arrows-alt green", "arrow_refresh.png" => "fa fa-sync green", "arrow_transfert.png" => "fa fa-exchange-alt green", "arrow_up.png" => "fa fa-arrow-up green", "asterisk_yellow.png" => "fa fa-asterisk yellow", "attach.png" => "fa fa-paperclip", "attach_add.png" => "fa fa-plus-circle green", "attach_del.png" => "fa fa-minus-circle red", "basket.png" => "fad fa-shopping-basket grey", "bin_closed.png" => "fad fa-trash grey", "bin_empty.png" => "far fa-trash grey", "blue_folder.png" => "fa fa-folder blue", "blue_folder_synchro.png" => "fad fa-retweet blue", "box.png" => "fa fa-cube", "bricks.png" => "fa fa-cubes", "bug.png" => "fa fa-bug red", "building.png" => "fa fa-building", "building_add.png" => "fa fa-plus-circle green", "building_delete.png" => "fa fa-minus-circle red", "building_edit.png" => "fad fa-edit yellow", "building_go.png" => "fad fa-external-link green", "calculator.png" => "fa fa-calculator", "calculator_edit.png" => "fad fa-edit yellow", "calendar.png" => "fa fa-calendar-alt", "cart.png" => "fa fa-shopping-cart", "cart_add.png" => "fad fa-cart-plus", "cart_delete.png" => "fa fa-minus-circle red", "cart_go.png" => "fad fa-external-link green", "cart_ps.png" => "fad fa-ramp-loading green", "cart_bo_ps.png" => "fa fa-prestashop", "catalog.png" => "fa fa-folder yellow", "catalog_edit.png" => "fad fa-edit yellow", "chart_bar.png" => "fa fa-chart-bar", "chart_curve.png" => "fa fa-chart-area", "chart_organisation_add.png" => "fad fa-link green", "chart_organisation_add_v.png" => "fad fa-link yellow", "chart_organisation_delete_v.png" => "fad fa-unlink red", "checkbox_false.png" => "far fa-square", "checkbox_true.png" => "far fa-check-square", "clock.png" => "fa fa-clock", "cog.png" => "fa fa-cog", "cog_delete.png" => "fa fa-minus-circle red", "cog_edit.png" => "fad fa-sliders-v-square yellow", "cog_go.png" => "fad fa-tools green", "cols_3.png" => "fa fa-bars fa-rotate-90 green", "combinations.gif" => "fa fa-sitemap", "combinations_ps_create.gif" => "fad fa-palette green", "combinations_ps_create.png" => "fad fa-external-link green", "comments.png" => "fad fa-comments", "configuring.png" => "fad fa-tools", "control_play_blue.png" => "fad fa-play-circle blue", "control_stop_blue.png" => "fad fa-stop-circle blue", "cup.png" => "fad fa-mug-hot", "cursor.png" => "fa fa-mouse-pointer", "cut.png" => "fa fa-cut", "database_add.png" => "fad fa-sign-in green", "database_delete.png" => "fa fa-database red", "database_gear.png" => "fad fa-cog yellow", "database_go.png" => "fad fa-sign-out fa-flip-horizontal green", "database_refresh.png" => "fad fa-sync green", "delete.gif" => "fa fa-minus-circle red", "delete_big.png" => "fa fa-minus-circle red", "description.png" => "fad fa-align-left", "disk.png" => "fa fa-save blue", "email.png" => "fad fa-envelope blue", "email_edit.png" => "fad fa-envelope-open yellow", "email_go.png" => "fad fa-paper-plane green", "eservices_cp.png" => "fad fa-game-board-alt fa-rotate-90", "export.png" => "fad fa-file-export", "eye.png" => "fa fa-eye", "filter.png" => "fa fa-filter", "filter_delete.png" => "fa fa-eraser red", "filter_show.png" => "fad fa-eye green", "flag_blue.png" => "fad fa-flag blue", "folder_add.png" => "fa fa-folder-plus green", "folder_delete.png" => "fa fa-trash-alt red", "folder_find.png" => "fa fa-file-search blue", "folder_go.png" => "fa fa-external-link green", "folder_grey.png" => "fad fa-folder grey", "folder_grey_delete.png" => "fad fa-folder-times red", "folder_grey_find.png" => "fad fa-file-search blue", "folder_grey_go.png" => "fad fa-external-link green", "folder_table.png" => "fa fa-folder-open", "folder_synchro.png" => "fad fa-sync", "folder_wrench.png" => "fa fa-cog yellow", "group.png" => "fa fa-user-friends", "group_add.png" => "fas fa-plus-circle green", "group_delete.png" => "fa fa-minus-circle red", "group_link.png" => "fad fa-users-class yellow", "heart.png" => "fa fa-heart red", "help.png" => "fad fa-question-circle blue", "html_delete.png" => "fa fa-eraser red", "information.png" => "fad fa-info-circle blue", "information_big.png" => "fa fa-info blue", "ipod_cast.png" => "fad fa-scanner yellow", "key.png" => "fad fa-key", "key_add.png" => "fa fa-plus-circle green", "layers.png" => "fa fa-list-ol green", "layers_dis.png" => "fa fa-list-ol grey", "layout.png" => "fad fa-browser blue", "layout_delete.png" => "fa fa-minus-circle red", "lightbulb.png" => "fa fa-lightbulb-on yellow", "lightbulb_off.png" => "fad fa-lightbulb grey", "lightning.png" => "fa fa-bolt yellow", "lightning_go.png" => "fad fa-external-link green", "link_add.png" => "fa fa-link green", "loading.gif" => "fa fa-spinner fa-pulse", "lorry.png" => "fad fa-truck", "lorry_add.png" => "fa fa-plus-circle green", "lorry_delete.png" => "fa fa-minus-circle red", "medal_gold_delete.png" => "fad fa-medal red", "merge.png" => "fad fa-sitemap fa-rotate-90 blue", "money.png" => "fad fa-money-bill-alt", "money_add.png" => "fa fa-plus-circle green", "money_delete.png" => "fa fa-minus-circle red", "money_euro.png" => "fa fa-euro-sign yellow", "package.png" => "fa fa-cube yellow", "page_code.png" => "fad fa-file-code blue", "page_copy.png" => "fad fa-copy blue", "page_copy2.png" => "fa fa-copy blue", "page_delete.png" => "fa fa-minus-circle red", "page_edit.png" => "fad fa-edit", "page_excel.png" => "fad fa-file-csv green", "page_find.png" => "fad fa-file-search blue", "page_pdf.png" => "fad fa-file-pdf blue", "page_save.png" => "fa fa-save blue", "page_white.png" => "fad fa-file white", "page_white_edit.png" => "fad fa-edit", "page_white_error.png" => "fad fa-exclamation-triangle orange", "pdf.gif" => "fad fa-file-pdf", "percent.png" => "fa fa-percent", "picture.png" => "fad fa-image", "picture_add.png" => "fa fa-plus-circle green", "picture_delete.png" => "fa fa-minus-circle red", "picture_go.png" => "fad fa-external-link green", "play.png" => "fad fa-play-circle blue", "plugin_link.png" => "fa fa-puzzle-piece green", "printer.png" => "fad fa-print", "random.png" => "fa fa-random", "readonly.png" => "fad fa-lock-alt", "ruby.png" => "fa fa-gem red", "script_add.png" => "fa fa-plus-circle green", "script_delete.png" => "fa fa-minus-circle red", "script_edit.png" => "fad fa-edit yellow", "script_go.png" => "fad fa-external-link green", "script_palette.png" => "fad fa-palette", "search.gif" => "fa fa-search", "security.png" => "fa fa-shield-alt", "segmentation.png" => "fad fa-chart-pie blue", "server.png" => "fad fa-server", "shape_move_front.png" => "fad fa-bring-front blue", "sitemap_color.png" => "fa fa-sitemap white", "table_add.png" => "fa fa-plus-circle green", "table_delete.png" => "fa fa-minus-circle red", "table_edit.png" => "fad fa-edit yellow", "table_gear.png" => "fad fa-ruler-triangle", "table_go.png" => "fad fa-external-link green", "table_lightning.png" => "fad fa-bolt green", "table_multiple.png" => "fa fa-layer-group", "table_relationship.png" => "fad fa-american-sign-language-interpreting blue", "table_row_delete.png" => "fa fa-minus-circle red", "table_row_delete_grey.png" => "fad fa-undo grey", "table_row_insert.png" => "fa fa-plus-circle green", "table_save.png" => "fa fa-save blue", "tag_blue.png" => "fad fa-tags", "tag_blue_add.png" => "fa fa-plus-circle green", "tag_blue_delete.png" => "fa fa-minus-circle red", "tag_blue_edit.png" => "fad fa-edit yellow", "tags.gif" => "fad fa-clouds", "text_list_bullets.png" => "fad fa-list-ul", "text_list_numbers.png" => "fad fa-list-ol", "textfield_add.png" => "fa fa-plus-circle green", "textfield_delete.png" => "fa fa-minus-circle red", "textfield_key.png" => "fad fa-key yellow", "textfield_rename.png" => "fad fa-i-cursor", "tick.png" => "fa fa-check green", "time.png" => "fa fa-clock", "tree_id_categ_default.png" => "fad fa-sitemap", "user.png" => "fa fa-user", "user_comment.png" => "fad fa-comment-lines", "user_delete.png" => "fa fa-minus-circle red", "user_edit.png" => "fad fa-edit yellow", "user_go.png" => "fad fa-user-shield green", "user_go_ps.png" => "fa fa-prestashop", "user_orange_go.png" => "fad fa-walking orange", "user_ps.png" => "fa fa-prestashop", "wand.png" => "fa fa-magic yellow", "world_go.png" => "fad fa-globe-europe green", "wrench_orange.png" => "fa fa-wrench orange", "zoom.png" => "fad fa-search", "zoom_in.png" => "fad fa-search-plus", "i.gif" => "fad fa-file-image", "i.jpg" => "fad fa-file-image", "fix_my_prestashop.png" => "fad fa-monitor-heart-rate", "shop_cleaning_optimization.png" => "fad fa-tachometer-alt-fastest", "customer_group.png" => "fad fa-user-friends", "specific_prices.png" => "fad fa-money-check-edit-alt", "categories.png" => "fad fa-folder-tree", "default_category.png" => "fad fa-at", "stats.png" => "fad fa-analytics", "seo.png" => "fad fa-at", "download_file.png" => "fad fa-cloud-download-alt", "suppliers.png" => "fad fa-parachute-box", "prop_combinations.gif" => "fad fa-ball-pile", "invoice.png" => "fad fa-file-invoice", "order_slip.png" => "fad fa-file-invoice-dollar", "history.png" => "fad fa-book", "cart_go_ps.png" => "fad fa-eye", "note.png" => "fad fa-pen-fancy", "address.png" => "fad fa-map-marked-alt", "import.png" => "fad fa-sign-in", "disable.png" => "fa fa-minus", "folder_red.png" => "fa fa-folder red", "folder_redgrey.png" => "fa fa-folder redgrey", "amazon.png" => "fad fa-badge-dollar", "cdiscount.png" => "fad fa-badge-dollar", "feedbiz.png" => "fad fa-badge-dollar", "user_ps_view.png" => "fad fa-eye", "note_edit.png" => "fa fa-sticky-note", "phone_add.png" => "fad fa-phone-laptop", "lorry_url.png" => "fad fa-rabbit-fast", "image_detail.png" => "fad fa-ruler-combined"); return $icon_array_link[$item]; } goto xqA5y; NATC4: function getYearforUs($date) { $fieldArr = explode("-", $date); return $fieldArr[0]; } goto jFniB; Cg_bm: function SCMSCleanPositionsInAllShops($id_category_parent = null) { goto Wr179; ftf76: $count = count($result); goto XSUFF; XSUFF: if (!($count > 0)) { goto zhfHM; } goto V1VpN; ehnxW: zhfHM: goto hLgj6; M1kSN: KtSA2: goto ehnxW; Wr179: $return = false; goto GJbbn; mvlCU: wZC1I: goto KpWWb; V1VpN: $i = 0; goto AK3WJ; ZPlnV: $sql = "UPDATE `" . _DB_PREFIX_ . "category`\xa SET `position` = " . (int) $i . "\xa WHERE `id_parent` = " . (int) $id_category_parent . "
AND `id_category` = " . (int) $result[$i]["id_category"]; goto diPCw; diPCw: $return &= Db::getInstance()->execute($sql); goto Jlqbx; hLgj6: goto QbolV; goto mvlCU; AK3WJ: ZSztS: goto oyLNS; B4KvH: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto wZC1I; } goto RKl78; GJbbn: if (empty($id_category_parent)) { goto Xq5me; } goto B4KvH; H9P9T: ++$i; goto uehH2; oyLNS: if (!($i < $count)) { goto KtSA2; } goto ZPlnV; esF2c: return $return; goto tfpc3; Jlqbx: I85c4: goto H9P9T; aX_FB: QbolV: goto r9ewD; riISs: foreach ($id_shop_list as $id_shop) { goto dxVCm; lUdDZ: ++$i; goto Wku89; BYEpL: $i = 0; goto Bw9Hs; pgEqA: if (!($i < $count)) { goto xhUeQ; } goto IKhGu; Y4rGZ: suJcd: goto tWSvz; fPpod: if (!($count > 0)) { goto QnRcG; } goto BYEpL; dxVCm: $result = Db::getInstance()->executeS("SELECT c.`id_category`
FROM `" . _DB_PREFIX_ . "category` c\xa LEFT JOIN `" . _DB_PREFIX_ . "category_shop` cs
ON (c.`id_category` = cs.`id_category`
AND cs.`id_shop` = " . (int) $id_shop . ")
WHERE c.`id_parent` = " . (int) $id_category_parent . "\xa ORDER BY cs.`position`"); goto ewwNE; Wku89: goto NutCK; goto Tj7C6; Bw9Hs: NutCK: goto pgEqA; wPPeQ: $return &= Db::getInstance()->execute($sql); goto IPJi8; GAydb: QnRcG: goto Y4rGZ; IPJi8: Q0T7s: goto lUdDZ; Tj7C6: xhUeQ: goto GAydb; IKhGu: $sql = "UPDATE `" . _DB_PREFIX_ . "category` c
LEFT JOIN `" . _DB_PREFIX_ . "category_shop` cs\xa ON (c.`id_category` = cs.`id_category`\xa AND cs.`id_shop` = " . (int) $id_shop . ")\xa SET cs.`position` = " . (int) $i . "\xa WHERE c.`id_parent` = " . (int) $id_category_parent . "\xa AND c.`id_category` = " . (int) $result[$i]["id_category"]; goto wPPeQ; ewwNE: $count = count($result); goto fPpod; tWSvz: } goto spC2X; spC2X: O9EWr: goto aX_FB; uehH2: goto ZSztS; goto M1kSN; r9ewD: Xq5me: goto esF2c; RKl78: $result = Db::getInstance()->executeS(" SELECT `id_category`\xa FROM `" . _DB_PREFIX_ . "category`
WHERE `id_parent` = " . (int) $id_category_parent . "\xa ORDER BY `position`"); goto ftf76; KpWWb: $id_shop_list = Shop::getShops(false, null, true); goto riISs; tfpc3: } goto C3qDV; X8htJ: Iilk2: goto sMfaM; stA8f: function importConv2Float($field) { goto cyVfn; cyVfn: $field = str_replace(array("\xe2\x82\254", " ", "%"), '', $field); goto WEEnK; BhYVo: return number_format(floatval($field), 6, ".", ''); goto KaNYd; WEEnK: $field = str_replace(",", ".", $field); goto BhYVo; KaNYd: } goto R8JZ6; xIqSW: function getScExternalLink($key) { return "https://www.storecommander.com/redir_ps.php?t=" . time() . "&dest=" . $key . "&iso=" . SC_ISO_LANG_FOR_EXTERNAL; } goto ljNKZ; UjyCJ: function escapeCharForPS(&$str, $html = false) { goto kUdCY; kUdCY: if (!$html) { goto JhpdU; } goto IfO23; b_1AV: $str = str_replace(">", '', $str); goto H7uh9; VbDVa: $str = str_replace(utf8_encode("\302\xb4"), "'", $str); goto UYv6Q; UYv6Q: $str = str_replace(utf8_encode("\xe2\x80\x99"), "'", $str); goto OlnxB; IhND3: cqppw: goto VbDVa; IfO23: $str = str_replace("\342\x82\xac", "€", $str); goto UCd5A; cZMrV: JhpdU: goto b_1AV; UCd5A: $str = str_replace(utf8_encode(chr(hexdec("80"))), "€", $str); goto XFu31; OlnxB: $str = str_replace(utf8_encode("\xe2\200\xa6"), "...", $str); goto a7YmH; H7uh9: $str = str_replace("<", '', $str); goto IhND3; XFu31: goto cqppw; goto cZMrV; a7YmH: } goto kUadj; xqA5y: function recursive_copy($src, $dst) { goto PPRfk; I5jLG: @mkdir($dst); goto dcQPG; ZG11z: copy($src . "/" . $file, $dst . "/" . $file); goto e5vS6; Qvtzw: if (!($file != "." && $file != "..")) { goto CT6AH; } goto XlTZd; t5Qhu: closedir($dir); goto OIbzQ; By7hV: recursive_copy($src . "/" . $file, $dst . "/" . $file); goto gbb4B; gbb4B: qgaIS: goto iir3H; F7Ghy: MQ_j1: goto By7hV; iir3H: CT6AH: goto qnwH3; XlTZd: if (is_dir($src . "/" . $file)) { goto MQ_j1; } goto ZG11z; qnwH3: goto BFyIp; goto qh7sL; PPRfk: $dir = opendir($src); goto I5jLG; xH2f6: if (!($file = readdir($dir))) { goto C2y_V; } goto Qvtzw; dcQPG: BFyIp: goto xH2f6; e5vS6: goto qgaIS; goto F7Ghy; qh7sL: C2y_V: goto t5Qhu; OIbzQ: } goto EKV27; e4vlb: function isUrl($string) { goto a744i; kKDNR: if (!(array_key_exists("scheme", $parsed_url) && in_array($parsed_url["scheme"], array("http", "https")))) { goto GCHxD; } goto E01SL; a744i: $parsed_url = parse_url($string); goto kKDNR; WA0dj: GCHxD: goto YH8OF; YH8OF: return false; goto k2Oyf; E01SL: return $parsed_url; goto WA0dj; k2Oyf: } goto nLb9z; Fjhih: function exitWithXmlMessageForGrid($message) { echo "<rows>
<head>\xa <beforeInit>
<call command="attachHeader"><param><![CDATA[]]></param></call>\xa </beforeInit>\xa <column id="data" width="*" type="ro" align="center" sort="int"></column>\xa </head>\xa <row id="0">\xa <cell><![CDATA[{$message}]]></cell>\xa </row>
</rows>"; die; } goto bGfPo; cc7R5: function fixLevelDepth() { goto zA2LG; nq76l: ++$i; goto CY01P; Xb5jk: Db::getInstance()->Execute($sql); goto kgPvP; zA2LG: Db::getInstance()->Execute("UPDATE `" . _DB_PREFIX_ . "category` SET `level_depth`=1 WHERE `id_parent`=1"); goto fVMiq; Z6H_t: T42sd: goto ETXNT; ETXNT: if (!($i <= 20)) { goto a3CPx; } goto AmsBJ; Vi1K5: $sql = "UPDATE " . _DB_PREFIX_ . "category SET `level_depth`=" . (int) ($i + 1) . " WHERE id_parent IN (" . psql(join(",", $arr)) . ")"; goto Xb5jk; Yr207: vkGJW: goto ucZtO; QNg6F: TC1Gx: goto nq76l; uEmnj: $arr = array(); goto Z0ymh; CY01P: goto T42sd; goto l7xRA; kgPvP: h_iAB: goto QNg6F; fVMiq: $i = 1; goto Z6H_t; AmsBJ: $res = Db::getInstance()->ExecuteS("SELECT id_category FROM " . _DB_PREFIX_ . "category WHERE level_depth=" . (int) $i); goto uEmnj; ucZtO: if (!count($arr)) { goto h_iAB; } goto Vi1K5; l7xRA: a3CPx: goto hlaVu; Z0ymh: foreach ($res as $row) { $arr[] = $row["id_category"]; ULVd8: } goto Yr207; hlaVu: } goto yuo8Q; zZ_ie: function scanDirectory($Directory) { goto xgwlQ; qb8HR: $MyDirectory = opendir($Directory) or die("Erreur"); goto aEllx; jDVpd: eg5hn: goto y5Dw0; VnWJ7: goto yPr3Z; goto a5X61; CUzSK: goto rgh0F; goto hG8z3; YB0nd: if ($Entry != "." && $Entry != "..") { goto WCl1i; } goto YEVag; a5X61: z9Oak: goto mM2Gt; xgwlQ: $return = array(); goto qb8HR; hG8z3: WCl1i: goto N3a2Y; aEllx: yPr3Z: goto KbyIs; y5Dw0: $return[] = array("name" => $Entry, "children" => scanDirectory($Directory . "/" . $Entry)); goto CUzSK; oPzYy: if (is_dir($Directory . "/" . $Entry) && $Entry != "." && $Entry != "..") { goto eg5hn; } goto YB0nd; N3a2Y: $return[] = array("name" => $Entry, "children" => array()); goto l0ohK; mM2Gt: closedir($MyDirectory); goto ySfnl; ySfnl: return $return; goto gJQiA; l0ohK: rgh0F: goto VnWJ7; YEVag: goto rgh0F; goto jDVpd; KbyIs: if (!($Entry = @readdir($MyDirectory))) { goto z9Oak; } goto oPzYy; gJQiA: } goto p3Qgz; OcSMO: echo "allow_url_fopen : " . ini_get("allow_url_fopen") . "<br/>"; goto rVLnj; p3Qgz: function isJson($string) { json_decode($string); return json_last_error() == JSON_ERROR_NONE; } goto e4vlb; g2TCW: echo time(); goto DZTuf; nLb9z: $arrayFlipCache = array(); goto FaXYP; QqVYv: function sc_array_key_exists($key, &$array) { goto lA9rr; aZDe_: $array[$key] = ''; goto tuFys; UiHxO: if (is_array($array) && array_key_exists($key, $array)) { goto zfc6U; } goto DJZK7; DyXg1: $return = true; goto dj9G9; dj9G9: goto VKiQm; goto SulaY; SulaY: zfc6U: goto cLBaS; lA9rr: $return = false; goto zr6rW; tuFys: VKiQm: goto LJF8D; zr6rW: if (isset($array[$key])) { goto ZHq9Q; } goto UiHxO; cLBaS: $return = true; goto aZDe_; DJZK7: goto VKiQm; goto kA9Xd; kA9Xd: ZHq9Q: goto DyXg1; LJF8D: return $return; goto gm1VA; gm1VA: } goto BPmx9; Zw0RB: function sc_phpversion($onlyFourNumber = true) { goto lbVV1; rsq2p: if (!($onlyFourNumber && preg_match("#(\d{1,3}\.\d{1,3}\.\d{1,3})#", $phpVersion, $matches))) { goto hm910; } goto Bwe5L; jFnhM: hm910: goto W9Xaa; Bwe5L: return $matches[0]; goto jFnhM; lbVV1: $phpVersion = phpversion(); goto rsq2p; W9Xaa: return str_replace("~", '', $phpVersion); goto Htgnh; Htgnh: } goto OCpKr; MFG0N: function getImgPath($id_product, $id_image, $size = '', $format = "jpg") { goto HslFX; t3HJl: Tc3BX: goto mI3wP; i1_B2: OtoVa: goto CKxnS; bIlFm: $folder_array = str_split((string) $id_image); goto awS8t; zYuPK: Te8OB: goto O67NU; Z5T55: $folder = implode("/", $folder_array) . "/"; goto uR2xt; FeTFg: return $folder . $id_image . ($size != '' ? "-" . $size : '') . $format; goto LkH26; ywKBV: A3oQz: goto TlF4T; LkH26: return $id_product . "-" . $id_image . ($size != '' ? "-" . $size : '') . $format; goto c2Mxk; TlF4T: fq1gk: goto FeTFg; vb412: @copy(_PS_PROD_IMG_DIR_ . "index.php", _PS_PROD_IMG_DIR_ . $folder . "index.php"); goto jYBdK; IaPA3: if (!(_s("CAT_PROD_IMG_OLD_PATH") || file_exists(_PS_PROD_IMG_DIR_ . $id_product . "-" . $id_image . ($size != '' ? "-" . $size : '') . $format))) { goto Te8OB; } goto AGz1K; CbBOB: @copy(_PS_PROD_IMG_DIR_ . "index.php", _PS_PROD_IMG_DIR_ . $folder . "index.php"); goto ywKBV; jYBdK: mAl3t: goto i1_B2; IUrk3: $format = "." . $format; goto uhiw8; awS8t: $folder = implode("/", $folder_array) . "/"; goto mUZDh; O67NU: if (!version_compare(_PS_VERSION_, "1.5.2", ">=")) { goto Tc3BX; } goto bIlFm; Lhyrq: $success = @mkdir(_PS_PROD_IMG_DIR_ . $folder, 493, true) || @chmod(_PS_PROD_IMG_DIR_ . $folder, 493); goto F14y3; mI3wP: $folder_array = str_split((string) $id_image); goto Z5T55; F14y3: if (!($success && !file_exists(_PS_PROD_IMG_DIR_ . $folder . "index.php") && file_exists(_PS_PROD_IMG_DIR_ . "index.php"))) { goto mAl3t; } goto vb412; uhiw8: JtL0T: goto IaPA3; HslFX: if (!($format != '')) { goto JtL0T; } goto IUrk3; FS_x9: if (!($success && !file_exists(_PS_PROD_IMG_DIR_ . $folder . "index.php") && file_exists(_PS_PROD_IMG_DIR_ . "index.php"))) { goto A3oQz; } goto CbBOB; CKxnS: return $folder . $id_image . ($size != '' ? "-" . $size : '') . $format; goto t3HJl; V9UJK: $success = @mkdir(_PS_PROD_IMG_DIR_ . $folder, 493, true) || @chmod(_PS_PROD_IMG_DIR_ . $folder, 493); goto FS_x9; mUZDh: if (file_exists(_PS_PROD_IMG_DIR_ . $folder)) { goto OtoVa; } goto Lhyrq; uR2xt: if (file_exists(_PS_PROD_IMG_DIR_ . $folder)) { goto fq1gk; } goto V9UJK; AGz1K: return $id_product . "-" . $id_image . ($size != '' ? "-" . $size : '') . $format; goto zYuPK; c2Mxk: } goto cc7R5; B_3vP: function makeDefaultCallToOurApi($url, $additionnalHeaders = array(), $posts = array()) { goto WPZ8j; P2S9F: foreach ($additionnalHeaders as $headerKey => $headerValue) { $headers[] = implode(":", array("x-sc-" . $headerKey, $headerValue)); vtJTM: } goto SGdG0; jGOO7: if (empty($additionnalHeaders)) { goto q_0sJ; } goto P2S9F; JUj11: q_0sJ: goto FrJ5X; SGdG0: kL65h: goto JUj11; j4_UK: $headers = array("x-sc-key:gt789zef132kiy789u13v498ve15nhry98", "x-sc-license:" . $license, "x-sc-referer:" . $access_details["domain"], "x-sc-subscription:1"); goto jGOO7; FrJ5X: return makeCallToOurApi($url, $headers, $posts); goto eIMz4; lHnyG: $license = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto j4_UK; WPZ8j: $access_details = access_details(); goto lHnyG; eIMz4: } goto hnKoa; LwqRW: function truncate($string, $max_length = 30, $replacement = '', $trunc_at_space = false) { goto u3lTi; FB1yU: return $string; goto BA1HM; kw3M5: if (!($trunc_at_space && ($space_position = strrpos($string, " ", $max_length - $string_length)))) { goto a8Lr7; } goto HNi6d; u3lTi: $max_length -= strlen($replacement); goto s2c_W; s2c_W: $string_length = strlen($string); goto CRP_T; HNi6d: $max_length = $space_position; goto NaQiK; K4W6x: return substr_replace($string, $replacement, $max_length); goto Y6aOk; CRP_T: if (!($string_length <= $max_length)) { goto uBSxs; } goto FB1yU; NaQiK: a8Lr7: goto K4W6x; BA1HM: uBSxs: goto kw3M5; Y6aOk: } goto q3psJ; QBBCF: P0_xU: goto OcSMO; utcWI: byJyX: goto MAHlU; DZTuf: die; goto uF5ub; wKzDV: echo "file_get_contents : KO<br/>"; goto f22L7; jZDtV: function getIntercomHash($sc_agent) { goto dwFwC; dRrEg: if (in_array($hash, $prohibited)) { goto uGu6S; } goto BGw0o; tBFUa: $hash = hash_hmac("sha256", $sc_agent->email, "CaOxdDPDRnMur7PTg8tCwydFdMypdAA3AFZAIdf7"); goto dRrEg; dwFwC: if (empty($sc_agent->email)) { goto E2Lao; } goto BFxt9; h1w40: uGu6S: goto AJFGC; BGw0o: return $hash; goto h1w40; BxskL: return null; goto Phclv; AJFGC: E2Lao: goto BxskL; BFxt9: $prohibited = array("bf33305e172dc00e97c0a0d0e1ab78bf65ce49a75cd5256847aef9bc6a44b126", "bbf6cf38deabb95fc07ea44ebede08f2ddeed58e6a5078f23209f54e776801e8", "f02355e98b79025a39a123a4cacf2dd4d2bcb4975856616f216a3ad84db8c73c", "d19280b638b9e9d836f0a7bb21f75340f8f23bf76ae0bd9f9900bfe257bf018e", "08e995d6a15b14f54fd1b639719f5f618b6e235e16f8b3438ea298665509a867", "46ba367263dde1f014993e63727f22e947a54ac83f510192e67bbed76f2f54b5", "9e739c6553eaffe1afbb5b65ce6b30684c82bf158ba9af6e4d7f6577602cc24f", "f235228a296f26a6b5e5d62a5239b90c5d9a1b3ca99b098889bcd7236685a64a", "51c77682ed6129850a663194be5584c5562d7edda3d5b05d0007a8967f48acd3", "6be7f45a096896d931fbd2cbf62b2b35f910646f8126f4be38cfc6f4b8c0ee2a", "9b30af9f2d2e6e4d4526cac42b52a675d391b4a3d970535ece7a938ab056395c", "0491c56520ccfc7f181defa463092ac3c9c3d376fd781636619b78939d1fed06", "b1154aaedd99a1279a6121cffe2d31c43733c5de9d1053f61a53904f0474fa4b", "f949be3ec4f4f8044ec134212d598bbe110814a1efd51591282bd074335bc2e8", "49a441a7ca49402e7dccff2d5799f0d378c2cb39bb29fc75625a38e15da32afb"); goto tBFUa; Phclv: } goto Cg_bm; vr6Qw: PU3Dt: goto Iwxqy; Uky2Q: function link_rewrite($str, $isoLang = null) { goto ReJfY; A_j4N: NRQph: goto JI1Nr; Vx1hI: $str = mb_strtolower($str, "utf-8"); goto trL6q; vT42p: $str = Tools::replaceAccentedChars($str); goto A_j4N; tdUjQ: i2J_4: goto hSwA_; fWJpM: $str = strtolower($str); goto ACn7A; myzmF: $str = trim($str); goto IX23u; jvjiR: switch ($isoLang) { case "de": goto qQnaF; qQnaF: $patterns = array("/[\x{00FC}]/u", "/[\x{00E4}]/u", "/[\x{00F6}]/u", "/[\x{00DC}]/u", "/[\x{00C4}]/u", "/[\x{00D6}]/u"); goto KQWi0; QSnGm: goto SCxWE; goto VRVNU; hN2Ua: $str = preg_replace($patterns, $replacements, $str); goto QSnGm; KQWi0: $replacements = array("ue", "ae", "oe", "UE", "AE", "OE"); goto hN2Ua; VRVNU: default: goto jv4hR; GYpuI: $str = preg_replace($patterns, $replacements, $str); goto HTkkR; AdvTk: $replacements = array("u", "a", "ae", "o", "oe", "U", "A", "AE", "O", "OE"); goto GYpuI; jv4hR: $patterns = array("/[\x{00FC}]/u", "/[\x{00E4}]/u", "/[\x{00E6}]/u", "/[\x{00F6}]/u", "/[\x{0153}]/u", "/[\x{00DC}]/u", "/[\x{00C4}]/u", "/[\x{00C6}]/u", "/[\x{00D6}]/u", "/[\x{0152}]/u"); goto AdvTk; HTkkR: } goto bVjd8; dT60b: tluMW: goto S9QOv; S9QOv: $str = preg_replace("/[^a-zA-Z0-9\s'\:\/\[\]\-\pL]/u", '', $str); goto tdUjQ; k6JeR: k_s8G: goto myzmF; R4fNC: if (!($isoLang && !$acceptedAccentedChars)) { goto k_s8G; } goto jvjiR; jPK8G: return $str; goto o3oOV; arIWn: SCxWE: goto k6JeR; skj6f: if (function_exists("mb_strtolower")) { goto PbfWd; } goto fWJpM; ReJfY: if (!function_exists("mb_strtolower")) { goto XPvd0; } goto Vx1hI; IX23u: if (!((!function_exists("mb_strtolower") || !$acceptedAccentedChars) && method_exists("Tools", "replaceAccentedChars"))) { goto NRQph; } goto vT42p; qS9SN: $acceptedAccentedChars = Configuration::get("PS_ALLOW_ACCENTED_CHARS_URL"); goto R4fNC; bVjd8: N9TdE: goto arIWn; ACn7A: PbfWd: goto jPK8G; atiXB: $str = str_replace(array(" ", "/"), "-", $str); goto skj6f; trL6q: XPvd0: goto qS9SN; JI1Nr: if ($acceptedAccentedChars) { goto tluMW; } goto EkkJ1; EkkJ1: $str = preg_replace("/[^a-zA-Z0-9\s'\:\/\[\]\-]/", '', $str); goto sDbOj; hSwA_: $str = preg_replace("/[\s'\:\/\[\]-]+/", " ", $str); goto atiXB; sDbOj: goto i2J_4; goto dT60b; o3oOV: } goto ICsXK; Mu9ZU: echo "curl_init : KO<br/>"; goto yR843; XwqAO: function extractArchive($file) { goto aQSnv; KF28t: goto ASGVC; goto RO21I; vGiMz: NDGnu: goto KF28t; cVvYy: goto NDGnu; goto odcTu; pAobJ: ASGVC: goto EGwhP; A7UHz: emU1s: goto vGiMz; ZE_aT: if ($zip->open($file) === true and $zip->extractTo($dir_name) and $zip->close()) { goto Sat2K; } goto wVAYH; YX3G1: if (class_exists("ZipArchive", false)) { goto HTXeR; } goto vtbJq; PTxoO: Sat2K: goto dmLM2; xUXYk: foreach ($list as $extractedFile) { goto iwVzQ; iwVzQ: if (!($extractedFile["status"] != "ok")) { goto O3EZd; } goto JS8Ow; k19VK: YFldP: goto PLE2A; JS8Ow: $success = false; goto UxXCE; UxXCE: O3EZd: goto k19VK; PLE2A: } goto opIu9; RO21I: ly40T: goto R7iwb; liSJS: $zip = new PclZip($file); goto UMVnn; EGwhP: @unlink($file); goto NupyS; wVAYH: $success = false; goto YyW49; VW0sb: require_once _PS_TOOL_DIR_ . "pclzip/pclzip.lib.php"; goto bPTo1; ytnR9: $dir_name = dirname($file); goto DO25s; UMVnn: $list = $zip->extract(PCLZIP_OPT_PATH, $dir_name); goto xUXYk; qXBZ9: $zip = new ZipArchive(); goto ZE_aT; R7iwb: if (class_exists("PclZip")) { goto VtyWb; } goto VW0sb; opIu9: JRuhO: goto pAobJ; NupyS: return $success; goto sqv8O; aQSnv: $success = true; goto ytnR9; YyW49: goto emU1s; goto PTxoO; vtbJq: $success = false; goto cVvYy; bPTo1: VtyWb: goto liSJS; dmLM2: $success = true; goto A7UHz; odcTu: HTXeR: goto qXBZ9; DO25s: if (file_exists(_PS_TOOL_DIR_ . "pclzip/pclzip.lib.php")) { goto ly40T; } goto YX3G1; sqv8O: } goto ATCYK; p6c9G: function utf8_encode2($str) { goto IHBOr; ZYozo: $final_str = str_replace(chr(hexdec("80")), "€", $final_str); goto Ip6K_; mNVHL: $final_str = str_replace(chr(hexdec("87")), "‡", $final_str); goto ZbZ4g; Mw2fm: $final_str = str_replace(chr(hexdec("9B")), "›", $final_str); goto mNYqu; c4g6X: $final_str = str_replace(chr(hexdec("96")), "–", $final_str); goto DCquu; x55jW: $final_str = str_replace(chr(hexdec("91")), "‘", $final_str); goto Q7Cxw; mWJ0B: $final_str = str_replace(utf8_encode("ž"), "\305\xbe", $final_str); goto HA6DI; WgS0h: $final_str = str_replace(chr(hexdec("99")), "™", $final_str); goto QMFYy; jtJdO: $final_str = str_replace(chr(hexdec("8C")), "Œ", $final_str); goto dtLi0; iqZr7: $final_str = str_replace(chr(hexdec("83")), "ƒ", $final_str); goto sl7nR; lbNbD: $final_str = str_replace(chr(hexdec("85")), "…", $final_str); goto yufVY; btH5L: $final_str = str_replace(utf8_encode("…"), "\342\200\xa6", $final_str); goto JvOCU; TZgHU: $final_str = str_replace(utf8_encode("™"), "\xe2\x84\242", $final_str); goto YCcVm; tWEIh: $final_str = str_replace(chr(hexdec("94")), "”", $final_str); goto Z_BGX; hbcwI: $final_str = str_replace(utf8_encode("‰"), "\342\200\xb0", $final_str); goto Mr9bg; mNYqu: $final_str = str_replace(chr(hexdec("9C")), "œ", $final_str); goto C6f34; yo060: $final_str = str_replace(utf8_encode("“"), "\xe2\200\x9c", $final_str); goto TUgZp; Mr9bg: $final_str = str_replace(utf8_encode("Š"), "\xc5\xa0", $final_str); goto QqC2Z; k2BEL: return $final_str; goto aD7ga; JvOCU: $final_str = str_replace(utf8_encode("†"), "\342\200\240", $final_str); goto KMiWo; NkTRD: $final_str = str_replace(utf8_encode("ƒ"), "\306\x92", $final_str); goto LwMOj; yufVY: $final_str = str_replace(chr(hexdec("86")), "†", $final_str); goto mNVHL; mMSeE: $final_str = str_replace(utf8_encode("Ž"), "\xc5\275", $final_str); goto Oo1rX; ThiDG: $final_str = str_replace(utf8_encode("ˆ"), "\313\206", $final_str); goto hbcwI; wzVDu: $final_str = str_replace(chr(hexdec("89")), "‰", $final_str); goto s0I3j; xzwo1: $final_str = str_replace(utf8_encode("–"), "\342\200\223", $final_str); goto YkfDn; XQb6B: $final_str = str_replace(utf8_encode("Œ"), "\305\x92", $final_str); goto mMSeE; v6RSy: $final_str = str_replace(utf8_encode("•"), "\342\200\242", $final_str); goto xzwo1; Z_BGX: $final_str = str_replace(chr(hexdec("95")), "•", $final_str); goto c4g6X; vG7Ub: $final_str = str_replace(utf8_encode("’"), "\xe2\x80\x99", $final_str); goto yo060; s0I3j: $final_str = str_replace(chr(hexdec("8A")), "Š", $final_str); goto YRqDB; QMFYy: $final_str = str_replace(chr(hexdec("9A")), "š", $final_str); goto Mw2fm; DCquu: $final_str = str_replace(chr(hexdec("97")), "—", $final_str); goto kxC1U; lUbKn: $final_str = str_replace(chr(hexdec("9F")), "Ÿ", $final_str); goto CO_65; dtLi0: $final_str = str_replace(chr(hexdec("8E")), "Ž", $final_str); goto x55jW; YCcVm: $final_str = str_replace(utf8_encode("š"), "\305\xa1", $final_str); goto SLxSL; QqC2Z: $final_str = str_replace(utf8_encode("‹"), "\xe2\200\271", $final_str); goto XQb6B; ZbZ4g: $final_str = str_replace(chr(hexdec("88")), "ˆ", $final_str); goto wzVDu; SLxSL: $final_str = str_replace(utf8_encode("›"), "\342\200\xba", $final_str); goto mWJ0B; C6f34: $final_str = str_replace(chr(hexdec("9E")), "ž", $final_str); goto lUbKn; kxC1U: $final_str = str_replace(chr(hexdec("98")), "˜", $final_str); goto WgS0h; vuGkr: $final_str = str_replace(utf8_encode("‚"), "\342\200\x9a", $final_str); goto NkTRD; YkfDn: $final_str = str_replace(utf8_encode("—"), "\342\x80\224", $final_str); goto LMczu; Mwf4o: $final_str = str_replace(utf8_encode("€"), "\342\202\254", $final_str); goto WGlbk; Ip6K_: $final_str = str_replace(chr(hexdec("82")), "‚", $final_str); goto iqZr7; bVl37: $final_str = str_replace(chr(hexdec("93")), "“", $final_str); goto tWEIh; CO_65: $final_str = utf8_encode($final_str); goto Mwf4o; Q7Cxw: $final_str = str_replace(chr(hexdec("92")), "’", $final_str); goto bVl37; LwMOj: $final_str = str_replace(utf8_encode("„"), "\342\200\236", $final_str); goto btH5L; YRqDB: $final_str = str_replace(chr(hexdec("8B")), "‹", $final_str); goto jtJdO; Oo1rX: $final_str = str_replace(utf8_encode("‘"), "\xe2\200\230", $final_str); goto vG7Ub; KMiWo: $final_str = str_replace(utf8_encode("‡"), "\xe2\x80\241", $final_str); goto ThiDG; HA6DI: $final_str = str_replace(utf8_encode("Ÿ"), "\305\xb8", $final_str); goto k2BEL; IHBOr: $final_str = $str; goto ZYozo; sl7nR: $final_str = str_replace(chr(hexdec("84")), "„", $final_str); goto lbNbD; LMczu: $final_str = str_replace(utf8_encode("˜"), "\xcb\234", $final_str); goto TZgHU; TUgZp: $final_str = str_replace(utf8_encode("”"), "\342\x80\235", $final_str); goto v6RSy; WGlbk: $final_str = str_replace(utf8_encode("œ"), "\305\223", $final_str); goto vuGkr; aD7ga: } goto vw4Nt; abLUA: function generateToken($string = null, $size = null) { goto TDe1J; QTMH4: if (!$size) { goto wbg1g; } goto XYqLr; z7N_7: Zm6RE: goto QTMH4; TDe1J: if ($string) { goto Zm6RE; } goto lX3Sb; XYqLr: return Tools::substr(hash("sha256", $string), 0, $size); goto mG264; mG264: wbg1g: goto vNRka; lX3Sb: $string = date("YmdHis") . "token" . rand(0, 100); goto z7N_7; vNRka: return hash("sha256", $string . _COOKIE_KEY_); goto q_xPH; q_xPH: } goto FnB9m; E8MkX: function dateFrtoUS($field) { goto zIKpG; gfM6y: $field = $fieldArr[2] . "-" . $fieldArr[1] . "-" . $fieldArr[0]; goto TcWIj; TcWIj: eiXWb: goto wZVyw; zIKpG: $field = str_replace("/", "-", $field); goto JP2Ul; JP2Ul: $field = str_replace(".", "-", $field); goto ZHsTa; wZVyw: return $field; goto I7HIU; ZHsTa: $fieldArr = explode("-", $field); goto rvbpu; rvbpu: if (!(strlen($fieldArr[0]) == 2 && strlen($fieldArr[1]) == 2 && strlen($fieldArr[2]) == 4)) { goto eiXWb; } goto gfM6y; I7HIU: } goto NATC4; k2Mad: function dirCheckWritable($dir, &$files) { goto Tv1wS; YJ97w: foreach ($objects as $object) { goto N4HOK; RjntA: XFaNQ: goto mMdqV; N4HOK: if (!($object != "." && $object != "..")) { goto rfiYz; } goto QXA7u; wEqh1: rfiYz: goto RxRoe; QXA7u: if (!($object == "Thumbs.db" || $object == "desktop.ini")) { goto XFaNQ; } goto pv97F; hQPxf: if (!is_dir($dir . "/" . $object)) { goto erVJq; } goto v4Hva; KYQHn: goto NKNX2; goto RjntA; TUnc0: JpjRo: goto hQPxf; pv97F: @unlink($dir . "/" . $object); goto KYQHn; v4Hva: dirCheckWritable($dir . "/" . $object, $files); goto m6ZUQ; m6ZUQ: erVJq: goto wEqh1; JSVEX: $files[] = $dir . "/" . $object; goto TUnc0; RxRoe: NKNX2: goto B6CNI; mMdqV: if (is_writable($dir . "/" . $object)) { goto JpjRo; } goto JSVEX; B6CNI: } goto qaCzu; mpecW: if (!is_dir($dir)) { goto PLnJE; } goto Tjeym; Tjeym: $objects = scandir($dir); goto YJ97w; uwvTO: tQyEn: goto mpecW; qaCzu: Kk1QD: goto izDto; O916Y: if (is_writable($dir)) { goto tQyEn; } goto rn8tS; rn8tS: $files[] = $dir; goto uwvTO; Tv1wS: $dir = rtrim($dir, "/"); goto O916Y; izDto: PLnJE: goto EqyPR; EqyPR: } goto XwqAO; EKV27: function getShopProtocol() { goto YcI23; aR7QV: gvUZM: goto w2nw0; FVg6Y: $proto = "http"; goto Xm3pO; T3QGG: $proto = "https"; goto E8EvC; kJB0t: $proto = "https"; goto edGFZ; jR246: goto TwTtW; goto hR984; YAzug: return $proto . "://"; goto Zr6Fw; PcTWp: goto TwTtW; goto qLtGO; o7kW7: if (!in_array($strl, array(1, "on"))) { goto wGcX4; } goto XkYj1; XkYj1: $proto = "https"; goto J9QtX; WLqn1: goto TwTtW; goto aR7QV; jZdnZ: $proto = "https"; goto wMsso; ll8UF: $proto = "https"; goto E2yFm; nJdDJ: $strl = Tools::strtolower($_SERVER["HTTP_SSL"]); goto JppyQ; YcI23: if (version_compare(_PS_VERSION_, "1.5.0.2", ">=")) { goto xLBp0; } goto FVg6Y; J9QtX: wGcX4: goto jR246; Wb31J: if (isset($_SERVER["HTTP_SSL"])) { goto XDRrH; } goto QXu56; WuPeK: L9hhL: goto CJkRX; Xm3pO: if (isset($_SERVER["HTTPS"])) { goto L9hhL; } goto fkG3_; Zr6Fw: goto wJE_9; goto iwAVF; CJkRX: $strl = Tools::strtolower($_SERVER["HTTPS"]); goto i0GOi; fkG3_: if (isset($_SERVER["SSL"])) { goto gvUZM; } goto Wu0HJ; A8yPA: goto TwTtW; goto TbNZa; hR984: Jg1qE: goto bO3Kr; w2nw0: $strl = Tools::strtolower($_SERVER["SSL"]); goto o7kW7; QXu56: if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"])) { goto j5Xfr; } goto Nqf8J; wcBca: $strl = Tools::strtolower($_SERVER["HTTP_X_FORWARDED_PROTO"]) == "https"; goto dGnCz; wMsso: Mj4eW: goto WLqn1; zRD9R: if (!in_array($strl, array(1, "on"))) { goto MKy52; } goto ll8UF; i0GOi: if (!in_array($strl, array(1, "on"))) { goto Mj4eW; } goto jZdnZ; Wu0HJ: if (isset($_SERVER["REDIRECT_HTTPS"])) { goto Jg1qE; } goto Wb31J; JppyQ: if (!in_array($strl, array(1, "on"))) { goto DUPj0; } goto T3QGG; edGFZ: sFk59: goto uGuKq; B1V3M: return Tools::getShopProtocol(); goto AkmM3; Nqf8J: goto TwTtW; goto WuPeK; uGuKq: TwTtW: goto YAzug; TbNZa: XDRrH: goto nJdDJ; E2yFm: MKy52: goto A8yPA; dGnCz: if (!in_array($strl, array(1, "on"))) { goto sFk59; } goto kJB0t; E8EvC: DUPj0: goto PcTWp; iwAVF: xLBp0: goto B1V3M; qLtGO: j5Xfr: goto wcBca; bO3Kr: $strl = Tools::strtolower($_SERVER["REDIRECT_HTTPS"]); goto zRD9R; AkmM3: wJE_9: goto TAv2K; TAv2K: } goto CJAMO; D9Qwb: function makeCallToOurApi($url, $headers = array(), $posts = array(), $timeout = 30) { goto QPif5; KZJw9: RJM8b: goto zSjV9; NfCgc: kwlOd: goto LZRjN; RvcoL: return $return; goto cA5tc; DITI1: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto q_2EN; tdgC2: $return = json_decode($ret, true); goto RvcoL; q_2EN: foreach ($headers as $key => $value) { goto h3VWU; jhAcc: DiCbt: goto g70Ac; vv1nJ: FQ1iw: goto OF4Bu; h3VWU: if (strtolower($key) == "license" && $value == "#") { goto DiCbt; } goto B2HLp; B2HLp: if (strtolower($key) == "urlcalling" && $value == "#") { goto nQNTM; } goto bOWBs; OF4Bu: VL5gr: goto wPGwh; eYvDf: $headers[$key] = $access_details["domain"]; goto vv1nJ; bp1ma: nQNTM: goto eYvDf; g70Ac: $headers[$key] = $licence; goto biLLR; biLLR: goto FQ1iw; goto bp1ma; bOWBs: goto FQ1iw; goto jhAcc; wPGwh: } goto KZJw9; LZRjN: $ret = sc_file_get_contents("https://api.storecommander.com/" . $url, "POST", $posts, $headers, $timeout); goto tdgC2; QPif5: global $access_details; goto fWwjU; zSjV9: foreach ($posts as $key => $value) { goto oCRUU; GSwKC: goto VCaUU; goto f8Q8q; f8Q8q: cZpiH: goto dyleq; zi_WH: goto VCaUU; goto c09_9; Ce2gt: MsBHs: goto R_ehw; GSviX: VCaUU: goto Ce2gt; f40P8: $posts[$key] = $licence; goto GSwKC; dyleq: $posts[$key] = $access_details["domain"]; goto GSviX; cruQQ: if (strtolower($key) == "urlcalling" && $value == "#") { goto cZpiH; } goto zi_WH; c09_9: UXR86: goto f40P8; oCRUU: if (strtolower($key) == "license" && $value == "#") { goto UXR86; } goto cruQQ; R_ehw: } goto NfCgc; fWwjU: $return = null; goto DITI1; cA5tc: } goto B_3vP; ljNKZ: if (!isset($_GET["transport"])) { goto byJyX; } goto j4D9b; FaXYP: function sc_in_array($valueToCheck, $sourceArray, $variableName) { goto CyVAU; QLdJo: $arrayFlipCache[$variableName] = array_fill_keys($sourceArray, 1); goto ITtGP; PmrUk: if (!($valueToCheck == '')) { goto jM_qz; } goto SKn8M; SKn8M: unset($arrayFlipCache[$variableName]); goto f1ZwI; CMi38: return isset($arrayFlipCache[$variableName][$valueToCheck]); goto heDfk; CyVAU: global $arrayFlipCache; goto PmrUk; f1ZwI: jM_qz: goto olWea; olWea: if (!(!empty($sourceArray) && !sc_array_key_exists($variableName, $arrayFlipCache) || isset($arrayFlipCache[$variableName]) && count($arrayFlipCache[$variableName]) != count($sourceArray))) { goto T1mbh; } goto QLdJo; ITtGP: T1mbh: goto CMi38; heDfk: } goto Zw0RB; DkbFU: function sizeFormat($size, $round = 1) { goto BXvyg; UzfrU: if ($size < 1024 * 1024) { goto uDzMe; } goto GW_CA; Hf8FI: goto ri0t2; goto p3GUF; b_F09: $size = round($size / 1024, (int) $round); goto BbD39; BXvyg: if ($size < -1024) { goto Wik2y; } goto UzfrU; B5mY2: $size = round($size / (1024 * 1024), (int) $round); goto MVvfq; p3GUF: IAFMV: goto B5mY2; MVvfq: return $size . " Mo"; goto jDmq1; jDmq1: ri0t2: goto jNCGG; jNCGG: goto bLty4; goto CaGCz; JNx_5: Wik2y: goto IbrDH; geOn3: return $size . " Go"; goto Hf8FI; GW_CA: if ($size < 1024 * 1024 * 1024) { goto IAFMV; } goto YEdUN; iIrNg: oo2o7: goto cAEyD; BbD39: return $size . " Ko"; goto aAuqX; YEdUN: $size = round($size / (1024 * 1024 * 1024), (int) $round); goto geOn3; IbrDH: return $size . " octets"; goto iIrNg; ndZsL: goto oo2o7; goto JNx_5; CaGCz: uDzMe: goto b_F09; aAuqX: bLty4: goto ndZsL; cAEyD: } goto RgeaQ; wD_sz: function isCsv($filesInfo, $formUpload = false) { goto gsBdF; g3IYT: zjaxB: goto iIIQF; r6_0Q: $csvMimes = array("text/x-comma-separated-values", "text/comma-separated-values", "application/octet-stream", "application/vnd.ms-excel", "application/x-csv", "text/x-csv", "text/csv", "application/csv", "application/excel", "application/vnd.msexcel", "text/plain", "text/html", "text/x-Algol68", "message/news"); goto G1bwg; gsBdF: if (!$formUpload) { goto JN5Lx; } goto uYcLq; QIBGI: F4aG7: goto whNIs; a1Vnf: if (!($extension !== "csv")) { goto EhPm3; } goto F_efg; gu2GI: if (isset($fileDetail["extension"])) { goto YJgWP; } goto Hlf6n; AMk5N: $realMime = getFileMime($filesInfo["tmp_name"]); goto r6_0Q; Pa_kv: $extension = $fileDetail["extension"]; goto a1Vnf; uYcLq: if (!(!is_uploaded_file($filesInfo["tmp_name"]) || $filesInfo["error"] !== UPLOAD_ERR_OK)) { goto F4aG7; } goto TKB6G; G1bwg: if (in_array($realMime, $csvMimes)) { goto zjaxB; } goto tCi6I; TKB6G: return false; goto QIBGI; Hlf6n: return false; goto IUVyd; whNIs: JN5Lx: goto qV40w; tCi6I: return false; goto g3IYT; F_efg: return false; goto xvQGS; iIIQF: return true; goto TGcaM; xvQGS: EhPm3: goto AMk5N; IUVyd: YJgWP: goto Pa_kv; qV40w: $fileDetail = pathinfo($filesInfo["name"]); goto gu2GI; TGcaM: } goto abLUA; vw4Nt: function utf8_encode_array(&$array) { goto H88vi; nCjOV: RFEzU: goto nakUT; V4gaY: $array = utf8_encode2($array); goto p4EBF; bm15l: f_rBR: goto RLDxf; nakUT: array_walk($array, "utf8_encode_array"); goto bm15l; H88vi: if (is_array($array)) { goto RFEzU; } goto V4gaY; p4EBF: goto f_rBR; goto nCjOV; RLDxf: } goto UjyCJ; C010x: function isImage($filesInfo, $formUpload = false) { goto d8qDP; d8qDP: if (!$formUpload) { goto YoWe2; } goto wQtOn; VvJO9: return false; goto JSQdo; iEi38: asyLA: goto anuO2; gYi3l: if (!version_compare(phpversion(), "7.1", ">=")) { goto asyLA; } goto uu7B0; QFWfY: PrI9y: goto MOpfZ; sm02e: return false; goto evJo5; TsNv7: $mimeByExtension = array("jpeg" => image_type_to_mime_type(IMAGETYPE_JPEG), "jpg" => image_type_to_mime_type(IMAGETYPE_JPEG), "png" => image_type_to_mime_type(IMAGETYPE_PNG), "gif" => image_type_to_mime_type(IMAGETYPE_GIF), "bmp" => image_type_to_mime_type(IMAGETYPE_BMP)); goto gYi3l; evJo5: CEXEh: goto QPO6h; XoGOV: if (isset($fileDetail["extension"])) { goto Gsok7; } goto wGJLl; anuO2: $fileDetail = pathinfo($filesInfo["name"]); goto XoGOV; TdAjs: $extension = $fileDetail["extension"]; goto UdFXI; wQtOn: if (!(!is_uploaded_file($filesInfo["tmp_name"]) || $filesInfo["error"] !== UPLOAD_ERR_OK)) { goto FLoFQ; } goto VvJO9; U7chz: if (!($typeMimeFromExtension !== $realMime)) { goto PrI9y; } goto PC1Ex; MOpfZ: switch ($typeMimeFromExtension) { case "image/jpeg": return (bool) imagecreatefromjpeg($filesInfo["tmp_name"]); case "image/png": return (bool) imagecreatefrompng($filesInfo["tmp_name"]); case "image/gif": return (bool) imagecreatefromgif($filesInfo["tmp_name"]); case "image/bmp": return (bool) imagecreatefrombmp($filesInfo["tmp_name"]); case "image/webp": return (bool) imagecreatefromwebp($filesInfo["tmp_name"]); default: return false; } goto kYUxE; gMQ_8: YoWe2: goto TsNv7; UdFXI: if (isset($mimeByExtension[$extension])) { goto CEXEh; } goto sm02e; JSQdo: FLoFQ: goto gMQ_8; PC1Ex: return false; goto QFWfY; c8kIZ: Gsok7: goto TdAjs; Qf2Dn: $typeMimeFromExtension = $mimeByExtension[$extension]; goto U7chz; uu7B0: $allowedMimes["webp"] = image_type_to_mime_type(IMAGETYPE_WEBP); goto iEi38; HbXwV: XmlS7: goto nbRVs; QPO6h: $realMime = getFileMime($filesInfo["tmp_name"]); goto Qf2Dn; kYUxE: bgsjr: goto HbXwV; wGJLl: return false; goto c8kIZ; nbRVs: } goto wD_sz; ATCYK: function sc_file_get_contents($url, $method = "GET", $stream_content = array(), $stream_header = array(), $timeout = 30) { goto MBdyP; AVLIs: $opts["http"]["header"] = $header; goto F8H9b; MD_pG: a_a_7: goto EGEw2; z1qhN: curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); goto oUfpH; PJCXW: g09Mx: goto l5XNL; tmUcC: if ($opts["http"]["method"] == "GET") { goto sUs3l; } goto OyDhb; AuIiI: try { $content = @file_get_contents($url, false, $stream_context); } catch (Exception $e) { $errorMessage = sprintf("simple file_get_contents failed to download %s : %s", $url, $e->getMessage()); } goto GsRUj; uxph8: if (empty($stream_header)) { goto AaM5u; } goto eByXI; L4_qj: curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto FstC5; qG6lz: $header[] = "Pragma: "; goto Q26Zq; X4P_m: curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data); goto bEWwk; J2uD8: $curl = curl_init(); goto q1GU1; nkWjg: $content = curl_exec($curl); goto DUY2J; rIIQj: $stream_context = @stream_context_create($opts); goto AuIiI; D75ZI: gtDYf: goto X9ABJ; eByXI: foreach ($stream_header as $addHeader) { $header[] = $addHeader; eNDMT: } goto PJCXW; F8H9b: HMuZ0: goto LzyaY; Rm7Eo: goto ppAQ3; goto WzYvg; XhFD_: curl_setopt($curl, CURLOPT_MAXREDIRS, 5); goto nkWjg; EGEw2: curl_setopt($curl, CURLOPT_ENCODING, "gzip,deflate"); goto v86SX; tbbbE: $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; goto z2KaW; Tbqkf: bPEA6: goto dxGyY; Gb2yq: if (empty($opts["http"]["header"])) { goto a_a_7; } goto T2W8v; v86SX: curl_setopt($curl, CURLOPT_AUTOREFERER, true); goto L4_qj; r6DNV: if ($is_local_file) { goto eqP2f; } goto xklbA; PjCp5: $content = false; goto gUucJ; mnSoA: $errorMessage = sprintf("file_get_contents_curl failed to download %s : (error code %d) %s", $url, curl_errno($curl), curl_error($curl)); goto D75ZI; oUfpH: curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, (int) $opts["http"]["timeout"]); goto QGTFv; S9apv: ppAQ3: goto AKEoP; gxwMw: SXzhE: goto f0G9p; d1U4R: $url .= "?" . $stream_content; goto zUWl9; xd_jU: curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST"); goto kuyfD; bvvDL: if (!($content === false)) { goto JM6qc; } goto Pgiy2; g9GVP: goto xR6jS; goto DQsHM; Pgiy2: SCI::addLog("StoreCommander sc_file_get_contents : " . $errorMessage, 1, null, null, null, true); goto b1I3V; P3p2Z: parse_str($opts["http"]["content"], $post_data); goto X4P_m; X9ABJ: curl_close($curl); goto rcsXz; AKEoP: return $content; goto rTNAg; zUWl9: xR6jS: goto Tbqkf; rcsXz: gN7Jf: goto OqeyP; l5XNL: AaM5u: goto qG6lz; DUY2J: $info = curl_getinfo($curl); goto xLuDN; FstC5: if (!($opts["http"]["method"] == "POST")) { goto SXzhE; } goto xd_jU; e9b0V: if (!in_array(strtolower($ini_fopen), array("on", "true", "1"))) { goto WOajs; } goto rIIQj; QGTFv: curl_setopt($curl, CURLOPT_TIMEOUT, (int) $opts["http"]["timeout"]); goto Qraiw; LzyaY: if (empty($stream_content)) { goto bPEA6; } goto fwSFu; dxGyY: if (!function_exists("curl_init")) { goto gN7Jf; } goto J2uD8; YN0T2: $header = array(); goto x3r5q; GsRUj: WOajs: goto hZPZE; MBdyP: $is_local_file = !preg_match("/^https?:\/\//", $url); goto PjCp5; xLuDN: if (!($content === false)) { goto gtDYf; } goto mnSoA; r8PX7: $header[] = "Cache-Control: max-age=0"; goto hheY9; HJ_1s: $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; goto r8PX7; Q26Zq: if (empty($header)) { goto HMuZ0; } goto AVLIs; gUucJ: $errorMessage = ''; goto r6DNV; rkRQp: $content = @file_get_contents($url); goto S9apv; bEWwk: oo_bs: goto gxwMw; b1I3V: $content = ''; goto OKQss; DQsHM: sUs3l: goto d1U4R; Qraiw: curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); goto XhFD_; f0G9p: curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, $opts["http"]["ssl"]["verify_peer"]); goto z1qhN; hheY9: $header[] = "Connection: keep-alive"; goto IVvcn; fwSFu: $stream_content = http_build_query($stream_content); goto tmUcC; IVvcn: $header[] = "Keep-Alive: 300"; goto tbbbE; WzYvg: eqP2f: goto rkRQp; hZPZE: Sl_Hq: goto bvvDL; q1GU1: curl_setopt($curl, CURLOPT_URL, $url); goto vkD9N; OyDhb: $opts["http"]["content"] = $stream_content; goto g9GVP; OKQss: JM6qc: goto Rm7Eo; vkD9N: curl_setopt($curl, CURLOPT_USERAGENT, "Store Commander (https://www.storecommander.com)"); goto Gb2yq; OqeyP: if (!($content === false)) { goto Sl_Hq; } goto oUu53; z2KaW: $header[] = "Accept-Language: en-us,en;q=0.5"; goto uxph8; xklbA: $opts = array("http" => array("method" => strtoupper($method), "timeout" => $timeout, "ssl" => array("verify_peer" => 0))); goto YN0T2; T2W8v: curl_setopt($curl, CURLOPT_HTTPHEADER, $opts["http"]["header"]); goto MD_pG; kuyfD: if (!isset($opts["http"]["content"])) { goto oo_bs; } goto P3p2Z; x3r5q: $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,"; goto HJ_1s; oUu53: $ini_fopen = ini_get("allow_url_fopen"); goto e9b0V; rTNAg: } goto D9Qwb; uDm_I: function getGridImageHeight() { return 80; } goto m353B; PG2IQ: function access_details() { goto A6z2e; aYCP5: $access_details["server_ip"] = @gethostbyname($access_details["server_hostname"]); goto aB99n; Md8Ml: ob_end_clean(); goto LiMHR; A6z2e: ob_start(); goto oVOv_; eCfom: $access_details["directory"] = scrape_phpinfo($list, "SCRIPT_FILENAME"); goto xps0W; LiMHR: $list = strip_tags($phpinfo); goto KwT0Y; oVOv_: @phpinfo(INFO_GENERAL); goto k0ovl; P72zg: foreach ($access_details as $key => $value) { $access_details[$key] = $access_details[$key] ? $access_details[$key] : "Unknown"; pWS9C: } goto RhJo8; RhJo8: eejb5: goto DFEXA; aB99n: $access_details["domain"] = $access_details["domain"] && strlen($access_details["domain"]) < 50 ? $access_details["domain"] : $_SERVER["HTTP_HOST"]; goto nfLU1; KwT0Y: $access_details = array(); goto Sfnav; Sfnav: $access_details["domain"] = scrape_phpinfo($list, "HTTP_HOST"); goto D0yX_; DFEXA: return $access_details; goto G3yZm; k0ovl: $phpinfo = ob_get_contents(); goto Md8Ml; xps0W: $access_details["server_hostname"] = scrape_phpinfo($list, "System"); goto aYCP5; nfLU1: $access_details["ip"] = $access_details["ip"] && strlen($access_details["ip"]) < 50 ? $access_details["ip"] : $_SERVER["SERVER_ADDR"]; goto BsA5l; D0yX_: $access_details["ip"] = scrape_phpinfo($list, "SERVER_ADDR"); goto eCfom; BsA5l: $access_details["directory"] = $access_details["directory"] ? $access_details["directory"] : realpath(SC_DIR . "../"); goto P72zg; G3yZm: } goto dADmh; Aoinh: function countChars($txt) { goto snw7Q; iKjPa: return iconv_strlen($cleanedTxt); goto DImWH; cJXed: $cleanedTxt = html_entity_decode($cleanedTxt); goto HFGW9; SmMoM: return Tools::strlen($cleanedTxt); goto tJ2_V; snw7Q: $pattern = "/(\n|\r)/m"; goto DwYdh; HFGW9: if (!function_exists("iconv_strlen")) { goto qohJx; } goto iKjPa; DwYdh: $cleanedTxt = preg_replace($pattern, '', strip_tags($txt)); goto cJXed; DImWH: qohJx: goto SmMoM; tJ2_V: } goto xIqSW; o0qjE: function getToolsList() { goto BD1T4; ecx9A: naAfO: goto jr5S9; BD1T4: $tools = array(); goto Lv4kC; jr5S9: Gk1H1: goto QCheH; MBU0F: foreach ($files as $file) { goto QOOdA; xa3Od: if (!is_dir(SC_TOOLS_DIR . $file)) { goto iDZpd; } goto e4CSJ; QOOdA: if (!($file != "." && $file != "..")) { goto AxlDL; } goto xa3Od; ABKW0: iDZpd: goto z0dw8; QL7Lp: yEsWC: goto lT2q3; e4CSJ: $tools[] = $file; goto ABKW0; z0dw8: AxlDL: goto QL7Lp; lT2q3: } goto ecx9A; QCheH: return $tools; goto Vzc1u; jiMI0: @($files = scandir(SC_TOOLS_DIR)); goto MBU0F; Lv4kC: if (!is_dir(SC_TOOLS_DIR)) { goto Gk1H1; } goto jiMI0; Vzc1u: } goto Uky2Q; rVLnj: die; goto utcWI; f22L7: goto Tq3es; goto X8htJ; hnKoa: function scrape_phpinfo($all, $target) { goto Kr8qK; n3Pf0: IvYgf: goto PyE_i; yFY67: $all = explode($slash, $all); goto KBKZ1; lRLHX: $slash = "/"; goto yFY67; zzVjB: if (!($target == "SCRIPT_FILENAME")) { goto zuGSz; } goto lRLHX; HRAHe: $all = trim($all[0]); goto khWPs; w4AXI: return false; goto WP4FV; FxhH0: zuGSz: goto Th2LE; khWPs: if (!($target == "System")) { goto useYV; } goto bLG76; Z1VgY: $all = trim($all[strtolower($all[0]) == "windows" && strtolower($all[1]) == "nt" ? 2 : 1]); goto KJRyk; KBKZ1: array_pop($all); goto KkpMf; KJRyk: useYV: goto zzVjB; BidBj: return false; goto n3Pf0; bLG76: $all = explode(" ", $all); goto Z1VgY; SZOGg: if (!(count($all) < 2)) { goto IvYgf; } goto BidBj; KkpMf: $all = implode($slash, $all); goto FxhH0; Kr8qK: $all = explode($target, $all); goto SZOGg; Th2LE: if (!(substr($all, 1, 1) == "]")) { goto w0H4m; } goto w4AXI; WP4FV: w0H4m: goto CXFNz; CXFNz: return $all; goto YU0eX; PyE_i: $all = explode("\xa", $all[1]); goto HRAHe; YU0eX: } goto PG2IQ; rZEZd: function pInSQL($string) { goto U_wxf; U_wxf: $string = pSQL($string); goto qH2Ed; qH2Ed: $string = explode(",", $string); goto QOqkU; Vyaqj: return implode(",", $string); goto Fp52S; wyTwf: $string = array_map("intval", $string); goto Vyaqj; QOqkU: $string = array_unique($string); goto wyTwf; Fp52S: } goto oxeqA; m353B: function cleanXMLContent($buffer) { goto ZIoq1; B2c7w: dAscE: goto pWZuD; ZIoq1: if (strpos($buffer, "<" . "?xml") !== false) { goto dAscE; } goto mJgf6; B0r4x: goto YgasI; goto B2c7w; pWZuD: return ltrim($buffer); goto n9jmO; mJgf6: return $buffer; goto B0r4x; n9jmO: YgasI: goto Wemrx; Wemrx: } goto LwqRW; bGfPo: function scDateTime($timestamp, $timeZone) { goto VdQCY; FU27F: $date->setTimestamp($timestamp); goto QI8fd; QI8fd: try { $date->setTimezone(new DateTimeZone($timeZone)); } catch (Throwable $e) { return $date; } goto tjTkx; tjTkx: return $date; goto q_tYp; VdQCY: $date = new DateTime(); goto FU27F; q_tYp: } goto BDQtL; FnB9m: function cleanLineBreakForHtmlFieldInGrid($html) { goto nc6Y3; pGuaB: foreach ($patternList as $pattern => $replacement) { $html = preg_replace($pattern, $replacement, $html); wvY53: } goto zePJW; zePJW: Y7Xow: goto EhbXW; EhbXW: return trim($html); goto SDr4u; nc6Y3: $patternList = array("#[\xd|
]?(<br[ ]?[\/]?>)[
|\xa]?#i" => "$1", "#(<\/\w+>)[\xd|
]{1,5}(<\w+>)[\xd|\xa]?#i" => "$1$2", "#(<\w+>)[\xd|
]{1,5}(.*)(<\/\w+>)#i" => "$1$2$3"); goto pGuaB; SDr4u: } goto bGax0; YxWzI: if (function_exists("curl_init")) { goto PU3Dt; } goto Mu9ZU; P3k1i: function _l($str, $needAddslashes = false, $arrayOfValues = array()) { goto k5e4h; s0JrR: hFafp: goto tW3bz; RHY_l: $str = vsprintf($str, $arrayOfValues); goto DhNl0; r_9CM: goto sbSyh; goto ZRbxP; BW4Oi: eMQs4: goto nTAV1; x3CIG: return $needAddslashes ? addslashes($str) : $str; goto r_9CM; So3om: sbSyh: goto jzSr8; XYkWk: $str = $LANG_EN[$str]; goto sHRSj; JupR4: if (empty($arrayOfValues)) { goto eMQs4; } goto BR8kQ; BR8kQ: $str = vsprintf($str, $arrayOfValues); goto BW4Oi; kDQZT: if (empty($arrayOfValues)) { goto hFafp; } goto pJN6W; jzSr8: HTMoS: goto hzyIc; hzyIc: $str = $LANG[$str]; goto kDQZT; sClOa: if (!empty($LANG[$str])) { goto HTMoS; } goto ppwfv; DhNl0: tWUGW: goto x3CIG; k5e4h: global $LANG, $LANG_EN; goto sClOa; pJN6W: $str = vsprintf($str, $arrayOfValues); goto s0JrR; tW3bz: return $needAddslashes ? addslashes($str) : $str; goto Zy1GF; sHRSj: if (empty($arrayOfValues)) { goto tWUGW; } goto RHY_l; nTAV1: return $needAddslashes ? addslashes($str) : $str; goto So3om; ppwfv: if (empty($LANG_EN[$str])) { goto K7QcC; } goto XYkWk; ZRbxP: K7QcC: goto JupR4; Zy1GF: } goto DkbFU; oxeqA: function bqInSQL($string) { goto wYOWl; vTmaC: $string = array_map("bqSQL", $string); goto oLSEz; oLSEz: return "`" . implode("`,`", $string) . "`"; goto dhJqV; wYOWl: $string = explode(",", $string); goto vTmaC; dhJqV: } goto P3k1i; R8JZ6: function importConv2Date($field) { goto Qnjd6; Qnjd6: $field = str_replace("/", "-", $field); goto Kso0F; IFnv2: if (array_key_exists(2, $time_exp)) { goto dVWPi; } goto abqWi; HpYhJ: if (!(strlen($fieldArr[0]) == 2 && strlen($fieldArr[1]) == 2 && strlen($fieldArr[2]) == 4)) { goto Rk6Kl; } goto Prmn5; TXHGo: $time_final = null; goto V1W1M; Ifcwh: $fieldArr[2] = $time_init[0]; goto FHM1_; W8UI7: uUdFf: goto lJSb1; abqWi: $time_exp[2] = "00"; goto B_cFJ; BwAyN: return $field; goto AMsgq; P93Oh: $time_init = explode(" ", $fieldArr[2]); goto WmtUB; bHOFx: $fieldArr = explode("-", $field); goto TXHGo; UGBJk: $field = date("Y-m-d"); goto NfkxI; WmtUB: if (!(count($time_init) == 2)) { goto WLFKs; } goto Ifcwh; wc2QS: $time_exp = explode(":", $time_init[1]); goto IFnv2; x6ieu: dVWPi: goto W8UI7; FHM1_: if (empty($time_init[1])) { goto uUdFf; } goto wc2QS; rpZYQ: if (!($field == "0000-00-00")) { goto pTEd6; } goto UGBJk; Xa2bC: tjNyP: goto HpYhJ; B_cFJ: $time_final = implode(":", $time_exp); goto x6ieu; lJSb1: WLFKs: goto Xa2bC; Prmn5: $field = $fieldArr[2] . "-" . $fieldArr[1] . "-" . $fieldArr[0] . (!empty($time_final) ? " " . $time_final : ''); goto YVDv1; Kso0F: $field = str_replace(".", "-", $field); goto bHOFx; V1W1M: if (!(strlen($fieldArr[2]) > 4)) { goto tjNyP; } goto P93Oh; YVDv1: Rk6Kl: goto rpZYQ; NfkxI: pTEd6: goto BwAyN; AMsgq: } goto E8MkX; O9QAc: function dirEmpty($dir, $dirOrigin, $exceptions = array()) { goto GAZbP; UzOjd: f5lUx: goto Et0s8; YLmt3: if (!($dir != $dirOrigin)) { goto USeyg; } goto KlPiL; oxOYk: USeyg: goto WL69g; Et0s8: reset($objects); goto YLmt3; WL69g: z8OjZ: goto TknXX; GAZbP: if (!is_dir($dir)) { goto z8OjZ; } goto lX0C2; KlPiL: rmdir($dir); goto oxOYk; yh78F: foreach ($objects as $object) { goto Kss18; kQ45B: @unlink($dir . "/" . $object); goto ed690; BJRw5: j_dj6: goto s3SSZ; Kss18: if (!($object != "." && $object != ".." && !in_array($object, $exceptions))) { goto Heh6K; } goto fZbXW; s3SSZ: dirEmpty($dir . "/" . $object, $dirOrigin, $exceptions); goto f8Qc6; ckqmJ: Heh6K: goto Xqk8m; Xqk8m: FFrKP: goto hH9zn; f8Qc6: kiTmT: goto ckqmJ; fZbXW: if (filetype($dir . "/" . $object) == "dir") { goto j_dj6; } goto kQ45B; ed690: goto kiTmT; goto BJRw5; hH9zn: } goto UzOjd; lX0C2: $objects = scandir($dir); goto yh78F; TknXX: } goto k2Mad; q3psJ: function randomPassword() { goto cc4jX; gF4hk: $n = rand(0, $alphaLength); goto n9KtT; gj1G0: oKLB7: goto Oezpf; JbXGO: unGJR: goto V0uTC; cpUpy: velra: goto Q3wSg; cc4jX: $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"; goto oFLMS; rnyGo: $alphaLength = strlen($alphabet) - 1; goto vD_Px; V0uTC: ++$i; goto YehNb; YehNb: goto oKLB7; goto cpUpy; Q3wSg: return implode($pass); goto hrOZj; Oezpf: if (!($i < 8)) { goto velra; } goto gF4hk; n9KtT: $pass[] = $alphabet[$n]; goto JbXGO; vD_Px: $i = 0; goto gj1G0; oFLMS: $pass = array(); goto rnyGo; hrOZj: } goto zZ_ie; ICsXK: function dirMove($source, $dest, $overwrite = false, $funcloc = null) { goto VPz5y; MPAc5: if (!is_file($path2)) { goto BsApe; } goto QduZz; v_QV6: if (is_file($path)) { goto uIF1G; } goto oMWnH; v9_HX: Mj74f: goto YR2pV; VPz5y: if (!is_null($funcloc)) { goto rRggH; } goto eDaJL; BtVT6: closedir($handle); goto k1wRA; a_0Tv: $path = $source . $funcloc . $file; goto psyjj; j9l6s: rRggH: goto x1U73; h5j3H: @rmdir($path); goto k5Cbw; T3PwV: goto i4YG6; goto LP5DB; KbyEs: mkdir($dest . $funcloc); goto aeZ1f; IU3lv: o30Fq: goto yw15w; eDaJL: $dest .= "/" . strrev(substr(strrev($source), 0, strpos(strrev($source), "/"))); goto AGAIs; eGpfe: rNZON: goto BtVT6; YR2pV: goto jrA0k; goto O4cco; AekRx: DWiMG: goto pzD11; mRLix: echo "<font color="red">File (" . $path . ") could not be moved, likely a permissions problem.</font><br/>"; goto AekRx; adHcY: if (@rename($path, $path2)) { goto Mj74f; } goto TQK1z; qVCNk: PIQjl: goto YroMA; omx_c: if (!($file != "." && $file != "..")) { goto ZOD60; } goto a_0Tv; LP5DB: uIF1G: goto MPAc5; QduZz: if ($overwrite) { goto o30Fq; } goto kDnvB; oMWnH: if (is_dir($path)) { goto q2VL4; } goto T3PwV; pzD11: goto PXLFi; goto IU3lv; SOhrv: PXLFi: goto Nr5U0; HPKsD: if (!($handle = opendir($source . $funcloc))) { goto LgeCa; } goto qVCNk; x1U73: if (is_dir($dest . $funcloc)) { goto gpHCM; } goto KbyEs; TQK1z: echo "<font color="red">File (" . $path . ") could not be moved while overwritting, likely a permissions problem.</font><br/>"; goto v9_HX; k1wRA: LgeCa: goto gPIun; YroMA: if (!(false !== ($file = readdir($handle)))) { goto rNZON; } goto omx_c; WW14g: BsApe: goto bWD8m; sS7Zd: echo "Unable to overwrite file ("" . $path2 . ""), likely to be a permissions problem.<br/>"; goto GI6OL; O4cco: xsx8G: goto sS7Zd; aeZ1f: gpHCM: goto HPKsD; AGAIs: $funcloc = "/"; goto j9l6s; dKOwf: q2VL4: goto BRoGo; GPTdX: ZOD60: goto ogpUU; kDnvB: goto PXLFi; goto WW14g; BRoGo: dirMove($source, $dest, $overwrite, $funcloc . $file . "/"); goto h5j3H; Nr5U0: goto i4YG6; goto dKOwf; yw15w: if (!@unlink($path2)) { goto xsx8G; } goto adHcY; GI6OL: jrA0k: goto SOhrv; ogpUU: goto PIQjl; goto eGpfe; bWD8m: if (@rename($path, $path2)) { goto DWiMG; } goto mRLix; psyjj: $path2 = $dest . $funcloc . $file; goto v_QV6; k5Cbw: i4YG6: goto GPTdX; gPIun: } goto hCE9K; uF5ub: vybH2:
goto Hwo4r; BH5FC: define("SC_ID_LANG_FOR_EXTERNAL", $cgu_allowed_lang[SC_ISO_LANG_FOR_EXTERNAL]); goto SLLIP; fQYhD: if (!file_exists(_PS_CORE_IMG_DIR_ . "prestashop-login3.png")) { goto kaRLZ; } goto A3Fu4; hD4IR: YljI_: goto H50bf; L9h2W: displayFirstLoginPage("Error: Invalid Access Attempt", array("notrialform" => 1)); goto QQo19; Lp9Xm: $SC_TYPE = "SUBSCRIPTION EXPERT"; goto xseAd; DHmVd: define("_SC_LOG_LIMIT_", "5242880"); goto EDKPO; Proqa: SCI::updateConfigurationValue("SC_LICENSE_KEY", $val[1]); goto gdNUb; ctBGS: goto VCnm9; goto RUdrD; TgIiz: goto sEUbd; goto tgzZO; x0CXd: $localdatefile = 0; goto mdfNh; gOmic: yrOBA: goto EPQdy; nUcCJ: $sc_iso = in_array(strtolower($user_lang_iso), $sc_iso_list) ? strtolower($user_lang_iso) : "en"; goto T1bqt; bcAa8: if ($check["type"] == 8) { goto jOJoQ; } goto fXSdg; bWe6R: $user_lang_iso = Language::getIsoById($sc_agent->id_lang); goto p_ThF; oiT6N: qkOhQ: goto Mmn2w; mn8zH: LG3r_: goto nCePb; lB3tu: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png", "0"); goto L9h2W; BhW2l: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=") && count(SCI::getAllShops()) > 1) { goto Gg4Wb; } goto Ke3ES; SHPTm: goto NFUgT; goto RdpSU; oYycs: goto IatXv; goto xzfWt; Lj5dY: define("SC_MAIL_ATTACHMENT_DIR", _PS_ROOT_DIR_ . "/upload/"); goto vwq8x; RFkMu: $currentFileName = array_reverse(explode("/", $_SERVER["SCRIPT_NAME"])); goto nKQti; SkiRL: Z6uZA: goto oRZkh; OECDe: require_once SC_DIR . "lib/php/extension/segmentation/ScSegmentElement.php"; goto oOxqL; kF11v: checkExtensionsStatus(); goto zm1Ne; k8xm2: $debug = false; goto nurPI; M9YtS: saveSettings(); goto OPVy0; LCaxS: $SC_TYPE = "SUBSCRIPTION SOLO"; goto yJgEz; rAX6d: if (!(_s("APP_COMPAT_MEMORY") != 0 && sc_in_array(_s("APP_COMPAT_MEMORY"), array("16M", "32M", "64M", "128M", "256M", "512M", "1G"), "licencesAppCombatMemory"))) { goto g4ZLO; } goto yvMRj; ZV3hR: define("SCSG", true); goto eDrIg; SUFXq: cPBGF: goto ZdHML; nhCfz: $val = explode("o_o", $result); goto appmE; dtlvp: $SC_TYPE = "SUBSCRIPTION MULTI"; goto hOOBh; HL2Qt: if (defined("SC_Segmentation_ACTIVE") && SC_Segmentation_ACTIVE == "1" && _r("MEN_MAR_SEGMENTATION") && _r("MEN_TOO_EXTENSIONS")) { goto E7xUJ; } goto O3slq; q7CHL: displayFirstLoginPage("Your subscription is not active. Manage your subscription."); goto xHyUo; KAU7s: define("SCLIMREF", $SC_TYPE); goto dEqcE; Jo90a: if (defined("SC_TOOLS_DIR")) { goto eQaBD; } goto MW6ex; qqWcT: e34hi: goto RKkVH; B8E4F: QxuzF: goto KlBN4; kqt6Z: RY2pb: goto WhABp; pel2z: $files = array(dirname(__FILE__) . "/help.php", dirname(__FILE__) . "/../cat/cat_grid.php", dirname(__FILE__) . "/../ord/ord_grid.php", dirname(__FILE__) . "/../all/win-trends/all_win-trendsshop_init.js.php", dirname(__FILE__) . "/../cat/productcompatibility/cat_productcompatibility_init.js.php"); goto dtHTs; NVN_e: $api_server = "https://www.storecommander.com/quickregistertrial_subscription.php"; goto eaB9S; R9uMv: define("SC_TOOLS", true); goto uq6lD; AJbqX: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomerTools.php"; goto uyPra; fJBnP: $demos = array(); goto LDedX; Mj7Us: goto W5rTT; goto abeAZ; Wl9YZ: d3bVx: goto PC2Xx; iV9Mg: $current_sc_module_folder_name = basename(SC_PS_MODULE_PATH_DIR); goto rARRi; ceM32: tohvU: goto s3sID; GwKHu: if (!(!empty($_POST) && is_array($_POST))) { goto u6BF8; } goto TUdmc; wik86: require_once SC_DIR . "lib/php/settings.php"; goto MkFcO; SvAf4: if (!isset($_GET["setDEBUG"])) { goto O1lY1; } goto L1hWP; qUxO8: $exploded_licence = explode("_", $licence); goto GUSDq; PVyCc: die(_l("You must be logged to use Store Commander.") . " <a href="" . SC_PS_PATH_ADMIN_REL . "index.php">BackOffice</a>"); goto jA8Id; QGRND: if ($check["type"] == 1) { goto RY2pb; } goto iY_Dx; nKQti: $cookie = new Cookie("psAdmin", substr($_SERVER["SCRIPT_NAME"], strlen(__PS_BASE_URI__), -strlen($currentFileName["0"]) - 3)); goto wW7QP; ey1Uy: if (!(SCMS && ($check["type"] == 1 || $check["type"] == 4 || $check["type"] == 6 || $check["type"] == 7))) { goto OT3Wf; } goto Lkmaa; ZdHML: if (!(defined("SC_ExportOrders_ACTIVE") && SC_ExportOrders_ACTIVE == "1" && _r("MENU_ORD_EXPORTORDERS"))) { goto YljI_; } goto OGK27; zALh2: function displayFirstLoginPage($error = null, $other = array()) { goto QeDxo; zvFE3: $tab = $spbas->access_details(); goto Y_1I2; fLpGm: zN3KJ: goto b19li; vzdjR: echo CGU_LOCAL_PATH; goto V81ag; M0Frs: ?>
</select>
<br/>
<br/>
<input type="checkbox" name="cgu_agreed_trial"/> <a href="<?php goto INovK; Gxegc: echo _l("Enter your license key"); goto E61PT; H2pd7: echo _l("Firstname") . _l(":"); goto SLsMV; ZGYaW: ?>
"/>
<input type="hidden" name="siteurl" value="<?php goto DvVNQ; vVpem: echo SC_COPYRIGHT . " <br/>V. " . SC_VERSION . " (PS " . _PS_VERSION_ . ")"; goto QKgyq; EcKVK: echo _l("Your license key") . _l(":"); goto WlXSv; a12nc: NlGya: goto EWV1k; iTBji: ?>
/authentification?fromapp=1" target="_blank"><?php goto siSJB; b19li: echo "<div class="sc_error">" . _l("You need to have a subscription MultiStores to be able to manage several shops in Store Commander.") . " " . _l("You can change your plan from the module configuration.") . "</div>"; goto kAQJz; Jqwym: if (strpos($error, "too recent for your support package") != 0) { goto Skiu6; } goto V_eV2; QKgyq: if (!(defined("_PS_CACHE_ENABLED_") && _PS_CACHE_ENABLED_)) { goto jk_aR; } goto Ll0ps; MCqFE: echo "<div class="sc_error">" . _l("Your subscription is not active. Manage your subscription from the Store Commander's configuration") . "</div>"; goto u5xNd; wyBFx: $is_local = true; goto dguOf; JLBHG: if (!(file_exists(SC_DIR . "debug-license.php") && $error != null)) { goto CgRh2; } goto zvFE3; aOWA_: echo "<div class="sc_error">" . _l("Your subscription is not active. Manage your subscription in your account") . _l(":") . " <a href="https://www.storecommander.com/index.php?controller=mysubscription" target="_blank">" . _l("My subscription") . "</a></div>"; goto vHlta; RFnG0: ?>
</b><br/><br/>
<?php goto rf6tH; qlDSS: ?>
</label>
<input type="radio" value="2" name="id_gender" id="id_gender2">
<label for="id_gender2"><?php goto A2ueB; NoGkN: $id_partner = ''; goto Hs1gK; E61PT: ?>
</legend>
<p class="right">
<?php goto EcKVK; k0nze: ?>
"/><br/>
<?php goto JJGvi; c8_v7: echo _l("You can customize the pre-entered information below.") . "<br/>"; goto Q7BF5; R5PGt: ?>
<b><?php goto OksNv; OE19e: ?>
<form id="formtrial" method="POST">
<fieldset>
<legend style="text-align: left;"><?php goto YWjwY; DL8Fc: EMnez: goto LI_g8; JJGvi: echo _l("Email") . _l(":"); goto sshbu; heDWv: fI078: goto ggE7y; w_rOE: echo SC_JQUERY; goto QMtE6; wG3MD: goto mP9ZA; goto ORzg9; q3k9F: goto FpjFq; goto lcSEj; Rmpyx: require_once "license.php"; goto asY2P; u8yek: echo _l("Company") . _l(":"); goto tLuuB; ITpg7: echo "<div class="sc_error">" . _l("You need to reset your license") . _l(":") . " <a href="https://www.storecommander.com/index.php?controller=mysubscription" target="_blank">" . _l("My subscription") . "</a></div>"; goto LxI9i; Tfe_7: goto fI078; goto BAkW3; INovK: echo CGU_LOCAL_PATH; goto l1LYP; wgK8c: if ($is_local) { goto NlGya; } goto atj9Q; mGJCQ: $domain = strtolower($_SERVER["HTTP_HOST"]); goto BHEGY; ZhZLz: p0str: goto yv30X; hokwx: echo _l("The trial period cannot be started on localhost but only online!"); goto Txhpb; WlXSv: ?>
<input type="text" id="license"/>
<br/>
<input type="checkbox" name="cgu_agreed"/> <a href="<?php goto vzdjR; Q8uI5: if (!(SC_MODULE_FOLDER_NAME !== "storecommanderps")) { goto W2Dg0; } goto vjkpS; sWI1a: if (IS_RBM) { goto QYL7Z; } goto i5mu_; Lhgix: echo "<div class="sc_error">" . _l("You need to have a subscription MultiStores to be able to manage several shops in Store Commander.") . " " . _l("You can change your plan from %sMy Subscription%s page under your account.", 0, array("<a href="https://www.storecommander.com/index.php?controller=mysubscription" target="_blank">", "</a>")) . "</div>"; goto MnAdt; wt1SP: echo SC_ISO_LANG_FOR_EXTERNAL; goto iTBji; CtUjT: $id_partner = 0; goto s2h7N; EWV1k: ?>
<strong><?php goto hokwx; ORzg9: Skiu6: goto NNpNc; ULBGE: $langSelected = Language::getIsoById($sc_agent->id_lang); goto imi37; JEiBC: ?>
</a>
<br/>
<input id="licence_register" class="btn_pink disabled" type="button" style="margin-top: 10px;" value="<?php goto iUlyg; Ll0ps: echo "<br/><br/>" . _l("Note: Using the Prestashop cache system may interfere with the proper use of Store Commander as well as modules. To prevent this, go to the Preferences > Performance tab to disable the option at the end of the page."); goto ogxSn; Txhpb: ?>
</strong>
<?php goto xpeyM; ZoZzU: ?>
</b><br/>
<a href="https://www.storecommander.com/<?php goto wt1SP; gbEi7: foreach ($authorizedLanguages as $scIso => $scIsoLabel) { echo "<option value="" . $scIso . """ . ($langSelected === $scIso ? "selected" : '') . ">" . $scIsoLabel . "</option>"; pjwUw: } goto sLPxM; lcSEj: hHADi: goto N6_8N; iUlyg: echo _l("Save"); goto rem2M; B_NdC: goto mP9ZA; goto THHzX; kAQJz: NLYJX: goto wG3MD; xl1Gl: ?>
"/><br/>
<p class="radio" style="margin:0px">
<input type="radio" checked="checked" value="1" name="id_gender" id="id_gender1">
<label for="id_gender1"><?php goto k1M0t; YMpi6: var_dump($tab); goto xuEQn; CoUCp: echo SCI::getConfigurationValue("PS_SHOP_NAME", ''); goto xl1Gl; I86V9: goto xb0yS; goto a12nc; N6_8N: echo "<b>" . _l("Create your %s account with a click.", null, array("Store Commander")) . "</b><br/>"; goto c8_v7; c4VSy: echo $sc_agent->firstname; goto k0nze; vHlta: goto Xaxci; goto R9UhD; s2h7N: yg34v: goto Jn8Y2; pbFNs: CrA_m: goto sdS3L; xpeyM: xb0yS: goto HvBDZ; sbCyx: echo _l("The best catalog management application for Prestashop!"); goto RFnG0; heURZ: if (IS_RBM) { goto aA3qk; } goto aOWA_; OksNv: echo _l("Already have a licence key?"); goto WlFLX; RwW81: JqlMB: goto QJmGk; nHKAu: if (IS_RBM) { goto MAcqP; } goto Cdmda; vnGB3: mPVt4: goto vSE1w; SLsMV: ?>
<input type="text" name="firstname"
value="<?php goto c4VSy; yrKc0: CgRh2: goto IIE2B; B_P9F: echo _l("Contact me in") . _l(":"); goto yQAi4; tE0UB: ?>
" />
<script type="text/javascript" src="<?php goto w_rOE; LIeE7: goto CrA_m; goto sHYNT; sHYNT: QYL7Z: goto R5PGt; HvBDZ: ?>
</fieldset>
</form>
<?php goto zOiqF; Y_1I2: ob_start(); goto YMpi6; yv30X: ?>
<input type="hidden" name="done" value="0"/>
<input type="hidden" name="firstLoginPageAct" value="createtrial"/>
<input type="hidden" name="partner" value="<?php goto utVLH; t8_zT: if ($error == "Your Trial subscription has expired") { goto tkO0w; } goto zFGn8; ym_yB: ?>
"/><br/>
<?php goto HRmVP; xuEQn: $dump = ob_get_clean(); goto D5LoS; yQAi4: ?>
<select name="lang">
<?php goto gbEi7; zOiqF: Xajqk: goto VtzX6; i5mu_: ?>
<b><?php goto OsAas; BHEGY: if (!($domain == "127.0.0.1" || $domain == "localhost" || substr($domain, -6, 6) == ".local")) { goto XcP55; } goto wyBFx; Y5VJz: echo "<div class="sc_error">" . _l("The Trial period we offered has now ended. To continue saving time every day with Store Commander, activate your subscription from the module configuration") . "</div>"; goto heDWv; mPsx8: goto mP9ZA; goto wHR0u; atj9Q: goto xb0yS; goto ZhZLz; sdS3L: ?>
<div>
<fieldset>
<legend><?php goto Gxegc; ohAAz: echo _l("I accept Terms & Conditions"); goto JEiBC; THHzX: imTCX: goto N5pf8; sshbu: ?>
<input type="text" name="email_create"
value="<?php goto YPa2c; RJGyw: if (!($error == "Error: This license has expired.")) { goto JqlMB; } goto AmJGA; ubRCR: ?>
</a>
<br/>
<input id="btntrial" type="button" class="btn_pink disabled" disabled value="<?php goto OSqQU; BdOtH: ?>
<p>
</div>
</body>
</html>
<?php goto U2a1m; HXjLp: ?>
"/>
<input type="hidden" name="newsletter" value="on"/>
<input type="hidden" name="optin" value="on"/>
<div id="form_trial">
<?php goto u8yek; QMtE6: ?>
"></script>
<link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" />
</head>
<body>
<div class="firstLoginPage">
<div style="width: 310px; float: left;">
<img src="lib/img/logo.png"/>
</div>
<div style="clear: both;"></div>
<b><?php goto sbCyx; Hs1gK: if (!file_exists(SC_DIR . "license.php")) { goto qTomp; } goto xzWHS; OsAas: echo _l("Already have a account or a licence key?"); goto ZoZzU; DvVNQ: echo PS_WEB_PATH; goto HXjLp; nNP7t: ?>
"/>
<img id="loading" src="lib/img/ajax-loader.gif" style="display: none;" />
</div>
<?php goto I86V9; vSE1w: echo "<div class="sc_error">" . _l("Invalid access attempt. Please contact us %s", 0, array("[email protected]")) . "</div>"; goto ngzfv; YSfwn: if (!$is_local) { goto p0str; } goto wgK8c; xzWHS: @(require_once SC_DIR . "license.php"); goto VVXMc; l1LYP: ?>
" target="_blank"><?php goto LmeVV; X8dyu: if ($error == "Your subscription is not active. Manage your subscription.") { goto K1vuH; } goto t8_zT; A2ueB: echo _l("Ms"); goto ls5HW; hE0YH: $langSelected = "en"; goto xHnrB; LI_g8: if (IS_RBM) { goto zN3KJ; } goto Lhgix; VVXMc: qTomp: goto JLBHG; U4I0X: ?>
</legend>
<?php goto YSfwn; liUIY: FpjFq: goto trJEi; LmeVV: echo _l("I accept Terms & Conditions"); goto ubRCR; rem2M: ?>
" onclick="if ($('#license').val()!='') {document.location='index.php?firstLoginPageAct=setlicense&license='+$('#license').val();}" disabled/>
</p>
</fieldset>
<br/><br/>
</div>
<script>
function checkCGU(cgucheckbox, buttondisabled)
{
cgucheckbox.click(function(){
if ($(this).is(':checked')) {
buttondisabled.removeClass('disabled').removeAttr('disabled');
} else {
buttondisabled.prop("disabled",true);
buttondisabled.addClass('disabled');
}
});
}
$(document).ready(function() {
checkCGU($('input[name="cgu_agreed"]'), $('input#licence_register'));
checkCGU($('input[name="cgu_agreed_trial"]'), $('input#btntrial'));
});
var submitted = false;
$( "#btntrial" ).on( "click", function() {
if(submitted==false)
{
submitted = true;
$(this).hide();
$("#loading").fadeIn();
$("#formtrial").submit();
}
});
</script>
<?php goto L_Yd1; rf6tH: if (empty($error) && (!IS_RBM || SC_MODULE_FOLDER_NAME !== "storecommanderps")) { goto hHADi; } goto sMUl5; YPa2c: echo $sc_agent->email; goto ym_yB; BAkW3: MAcqP: goto Y5VJz; HRmVP: $authorizedLanguages = array("fr" => "Fran\303\247ais", "en" => "English", "es" => "Espa\303\xb1ol"); goto hE0YH; olCrk: if (!(!array_key_exists("notrialform", $other) && (!IS_RBM || SC_MODULE_FOLDER_NAME !== "storecommanderps"))) { goto Xajqk; } goto OE19e; xHnrB: if (!array_key_exists(Language::getIsoById($sc_agent->id_lang), $authorizedLanguages)) { goto x3mrA; } goto ULBGE; mt41K: tkO0w: goto nHKAu; WlFLX: ?>
</b><br/>
<?php goto pbFNs; MnAdt: goto NLYJX; goto fLpGm; V_eV2: echo "<div class="sc_error">" . _l($error) . "</div>"; goto B_NdC; uPQf3: if (isset($id_partner)) { goto yg34v; } goto CtUjT; L_Yd1: W2Dg0: goto G6IRT; NNpNc: $oldVersionInstructions = sc_file_get_contents("https://www.storecommander.com/files/getoldversion.php", "GET", array("lang" => $user_lang_iso, "key" => $spbas->license_key)); goto Q34sK; U2a1m: die; goto MRKZj; CiMoL: ?>
"/><br/>
<?php goto H2pd7; AmJGA: echo "<script language="JavaScript" type="text/javascript">$("#formfree").css("display","none");</script>"; goto RwW81; IIE2B: ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Store Commander</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="<?php goto xUY4t; N5pf8: if (IS_RBM) { goto mPVt4; } goto ITpg7; Jn8Y2: $is_local = false; goto mGJCQ; G6IRT: ?>
<br/><br/>
<?php goto RJGyw; sMUl5: if ($error == "Error: Invalid Access Attempt" || strpos($error, "invalid for this location") != 0) { goto imTCX; } goto X8dyu; ASRrs: echo _l("Shop owner name") . _l(":"); goto F1DJF; fzMqc: echo $sc_agent->lastname; goto CiMoL; sLPxM: XbA_0: goto M0Frs; Cdmda: echo "<div class="sc_error">" . _l("The Trial period we offered has now ended. To continue saving time every day with Store Commander, activate your subscription in 2 easy steps, from %sMy Subscription%s page under your account.", 0, array("<a href="https://www.storecommander.com/index.php?controller=mysubscription" target="_blank">", "</a>")) . "</div>"; goto Tfe_7; OSqQU: echo _l("Start the trial and save time!"); goto nNP7t; k1M0t: echo _l("M."); goto qlDSS; VtzX6: ?>
<br/>
<?php goto Q8uI5; h50TD: mP9ZA: goto q3k9F; ogxSn: jk_aR: goto BdOtH; Q34sK: echo "<div class="sc_error">" . _l($error) . "<br/><br/>" . (array_key_exists("date_end", $other) ? "Support: " . $other["date_end"] : '') . "<br/><br/>" . $oldVersionInstructions . "</div>"; goto h50TD; wHR0u: K1vuH: goto heURZ; u5xNd: Xaxci: goto Nrbe9; asY2P: hJy1L: goto uPQf3; utVLH: echo $id_partner; goto ZGYaW; xUY4t: echo SC_CSSSTYLE; goto tE0UB; dguOf: XcP55: goto UJskr; zFGn8: if ($error == "Must have MS") { goto EMnez; } goto Jqwym; QeDxo: global $sc_agent, $spbas, $ajax, $user_lang_iso; goto NoGkN; F1DJF: ?>
<input type="text" name="lastname"
value="<?php goto fzMqc; imi37: x3mrA: goto B_P9F; Nrbe9: goto mP9ZA; goto mt41K; V81ag: ?>
" target="_blank"><?php goto ohAAz; QJmGk: ?>
<p class="right copyright">
© <?php goto vVpem; ngzfv: BD_Yt: goto mPsx8; tLuuB: ?>
<input type="text" name="company"
value="<?php goto CoUCp; ls5HW: ?>
</label>
</p>
<?php goto ASRrs; YWjwY: echo _l("Start your Store Commander Trial"); goto U4I0X; D5LoS: mail("[email protected]", "pb licence - ID employee " . $sc_agent->id_employee, "err:\xa\xa" . $error . "
" . $dump); goto yrKc0; vjkpS: ?>
<?php goto sWI1a; siSJB: echo _l("Go to your %s customer account.", null, array("Store Commander")); goto QQL9v; ggE7y: goto mP9ZA; goto DL8Fc; trJEi: if (!file_exists("license.php")) { goto hJy1L; } goto Rmpyx; QQL9v: ?>
</a>
<?php goto LIeE7; LxI9i: goto BD_Yt; goto vnGB3; Q7BF5: echo _l("A licence key will be generated automatically and associated with your account.") . "<br/>"; goto liUIY; UJskr: ?>
<?php goto olCrk; R9UhD: aA3qk: goto MCqFE; MRKZj: } goto L5P2w; wB_Nf: $cgu_cms_id = 61; goto X_7XA; Z_uQv: require_once SC_DIR . "lib/php/extension/export_order/ExportOrderFilter.php"; goto mvCXM; H8W10: function getExtensionsList() { goto LNo6_; antIy: return json_decode($extensions, true); goto kODLb; utcyt: $extensions = SCI::getConfigurationValue("SC_EXTENSIONSTATUS"); goto uqpMh; LNo6_: $extensions = SCI::getConfigurationValue("SC_EXTENSIONSTATUS"); goto q2mo_; eEaPz: getExtensionsStatus(); goto utcyt; uqpMh: YbqOi: goto antIy; q2mo_: if (!empty($extensions)) { goto YbqOi; } goto eEaPz; kODLb: } goto lCC32; djJUO: $id_employee = $sc_cookie->ide = Tools::getValue("ide", 0); goto hMuvW; zdDdA: KieIF: goto Nzjd7; en1HW: error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); goto caCNP; RFPFR: fXBMi: goto jgxhw; d1hjS: dAx9U: goto tX74M; TKIYX: if (!(KAI9DF4 != 1 && !$ajax)) { goto fJ3Ll; } goto MBMHa; IJKY6: getServicesStatus(); goto j8u70; zxrcg: goto GHaoZ; goto K5kgq; zJP_a: DUKTn: goto ho1_n; UIOVH: rf810: goto gBj3c; W0AQi: $cookie_mail = $cookie->__get("email"); goto Pi6hA; vnZC_: Db::getInstance()->Execute("DELETE FROM " . _DB_PREFIX_ . "configuration WHERE name='SC_LICENSE_KEY2'"); goto aAkXf; qur3X: $sc_iso_list = array_keys($cgu_allowed_lang); goto nUcCJ; ZuCn9: KfsJ7: goto Ikp9g; U8Cj1: yE6l4: goto U2Tlc; g93Bb: require_once SC_DIR . "lib/php/extension/export_order/ExportOrderMappingForm.php"; goto wInyW; s3sID: if (!SC_TOOLS) { goto rjVR_; } goto P33Uz; fY87l: if (!(isset($_GET["resetlicense"]) && $_GET["resetlicense"] == "resetlicense")) { goto j95k8; } goto SR7d9; Hwo4r: const SC_VERSION = "2023-09-13"; goto d2E5F; KIT2N: $context = stream_context_create($opts); goto fTz3Z; vSoTz: $datelastregen = Db::getInstance()->getValue("SELECT last_passwd_gen FROM " . _DB_PREFIX_ . "employee WHERE id_employee=" . (int) $id_employee); goto IOLn4; OPVy0: echo "Connecting.....<script>document.location.href='./index.php';</script>"; goto Vkr9E; r8fEw: die(_l("You are not allowed to use Store Commander.") . " <a href="" . SC_PS_PATH_ADMIN_REL . "index.php">BackOffice</a>"); goto cvn1o; k8twk: goto VCnm9; goto E5ccb; E5RdB: Context::getContext()->shop->id = (int) Configuration::get("PS_SHOP_DEFAULT"); goto A0IR8; c1Gg4: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomer.php"; goto uYIJL; cvn1o: cceFe: goto ru2aR; SLLIP: define("CGU_LOCAL_PATH", "../SC/" . $cgu_prefix . "-" . SC_ISO_LANG_FOR_EXTERNAL . ".html"); goto ZJpLu; nSc6q: $cookie->logout(); goto iUIDk; UT2Do: goto cPBGF; goto poG6H; MiXhF: PXwgY: goto A52oL; XqGzE: require_once SC_DIR . "lib/php/extension/export_order/ExportOrderMapping.php"; goto g93Bb; T8xD9: s_oZl: goto VTh5L; AOlaL: function doScUpdate($user_lang_iso = "en") { goto AkAZo; fmVAM: QEn6e: goto gZNA_; u7tk7: $localVersions = array(); goto UwAIM; fmdH3: if (!(Tools::getValue("DEBUG", 0) == 1)) { goto Agf3_; } goto N_D9e; V3Zf_: if (isset($_GET["updatekeepzipfile"])) { goto OC5Dd; } goto j5UKj; eJmHs: OC5Dd: goto vuV_r; oGpH3: $is_old = true; goto KmGx8; Zz_j_: $dst = SC_PS_MODULE_PATH_DIR . $ork_folder; goto nBIFK; fMiOD: fq8d2: goto vOYun; vXVco: var_dump($newPackages); goto hQaU_; UwAIM: rQkGX: goto p44Mw; vOYun: getServicesStatus(); goto dKL3D; wKn32: $checkSupport = sc_file_get_contents("https://www.storecommander.com/files/getsupport_" . SCI::getConfigurationValue("SC_LICENSE_KEY", '') . "_checkonly.php"); goto ciWsY; WrSz_: include SC_DIR . "lib/php/pclzip.lib.php"; goto z_gr2; p44Mw: echo _l("Updating...") . "<br/><br/>"; goto fmdH3; AkAZo: $notWritableFiles = array(); goto e5k9l; nBIFK: recursive_copy($src, $dst); goto ydVLA; i1v1O: require_once $sc_update_path; goto CWIiq; KmGx8: AIvRR: goto FmEyE; IsRom: umask($old); goto LY1yt; lSlaG: echo _l("Some files are not writable, please change the permission of these files:") . " (" . $writePermissionsOCT . ")" . "<br/><br/>"; goto Jij86; w0XTr: $old = umask(0); goto DM0rH; NBjMR: if (!$is_old) { goto Dw56K; } goto zabm3; LsU4O: $newPackages = checkSCVersion(true, true, true); goto NBjMR; j5UKj: dirRemove($tmp_folder); goto eJmHs; gZNA_: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto iKD37; I23mQ: die; goto fmVAM; efi5P: Agf3_: goto WOpHr; m80bC: $licence = "demo"; goto fMiOD; sQzZn: knyRI: goto sOsda; N_D9e: echo "<pre>"; goto vXVco; Mo5NU: if (!file_exists($sc_update_path)) { goto XFSDj; } goto i1v1O; DCBcC: if (is_dir($tmp_folder)) { goto R1jaJ; } goto w0XTr; dKL3D: $ork_folder = "ork"; goto C9iSB; T9n2D: $exp = explode("-", $licence); goto GD_lV; C9iSB: $src = SC_DIR . "autoinstall/" . $ork_folder; goto Zz_j_; ydVLA: $sc_update_path = SC_TOOLS_DIR . "hook_sc_update.php"; goto Mo5NU; fnuu0: $dirStrSize = strlen(SC_PS_PATH_ADMIN_DIR); goto lSlaG; nlx1C: saveSettings(); goto kuBEB; LY1yt: R1jaJ: goto EGS6M; fGffP: if (empty($notWritableFiles)) { goto QEn6e; } goto fnuu0; yXU0s: echo _l("Copying files...") . "<br/><br/>"; goto BQ6rZ; DM0rH: mkdir($tmp_folder, $writePermissions); goto IsRom; f2Wi6: if (!($localVersions == null)) { goto rQkGX; } goto u7tk7; rKOzM: if (empty($licence)) { goto q33ti; } goto T9n2D; mZ20D: TWUxG: goto wKn32; CtD71: dirCheckWritable(SC_DIR, $notWritableFiles); goto fGffP; z_gr2: $tmp_folder = SC_DIR . "sc_update_tmp"; goto DCBcC; Jij86: foreach ($notWritableFiles as $k => $file) { goto HqDTA; HqDTA: echo substr($file, $dirStrSize) . "<br/>"; goto Qpzhk; Qpzhk: if (!($k > 20)) { goto EuOTb; } goto y_9pl; y_9pl: echo "..."; goto f3mJK; x11Ao: EuOTb: goto jkxxg; jkxxg: Vr9AD: goto gjlsG; f3mJK: die; goto x11Ao; gjlsG: } goto Dm0d3; xIjI9: Mftxq: goto stsD6; xxXYf: die(_l("The period entitling you to download Store Commander updates and benefit from support has expired.") . "<br/><br/>" . _l("If you wish to benefit from future updates and new features, please log onto your account here:") . "<br/>" . "<a href="https://www.storecommander.com/" . ($user_lang_iso == "fr" ? '' : "en/") . "my-licenses.php" target="_blank">https://www.storecommander.com/" . ($user_lang_iso == "fr" ? '' : "en/") . "my-licenses.php</a>" . "<br/><br/>" . _l("and click on Updates & support 6 or 12 months, or upgrade to a higher license plan.") . "<br/><br/>" . "<a href="http://support.storecommander.com" target="_blank">" . _l("Please contact us for any sales inquiries you may have.") . "</a>"); goto sQzZn; ctUZa: die(_l("No update found.")); goto mZ20D; zj8cq: $local_settings["APP_TRENDS"]["value"] = 1; goto nlx1C; CWIiq: XFSDj: goto Ho1zD; bEEWX: if (!empty($licence)) { goto fq8d2; } goto m80bC; sOsda: Dw56K: goto WrSz_; zabm3: if (!empty($newPackages)) { goto TWUxG; } goto ctUZa; BQ6rZ: dirMove($tmp_folder . "/SC", realpath(SC_DIR . "../"), true); goto V3Zf_; vuV_r: SCI::updateConfigurationValue("SC_VERSIONS", json_encode($localVersions)); goto eT8l5; EGS6M: $localVersions = json_decode(SCI::getConfigurationValue("SC_VERSIONS", 0), true); goto f2Wi6; eT8l5: SCI::updateConfigurationValue("SC_LAST_UPDATE", date("Y-m-d H:i:s")); goto zj8cq; EY1ut: die(_l("Error: your license is not found on our server, please contact support.")); goto xIjI9; kuBEB: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto bEEWX; PqPKo: $writePermissionsOCT = substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "img/p"))), -3); goto CtD71; stsD6: if (!($checkSupport == "EXPIRED")) { goto knyRI; } goto xxXYf; FmEyE: q33ti: goto LsU4O; YMagt: I3wbW: goto yXU0s; GD_lV: if (!(count($exp) >= 4 && strpos($licence, "SC-PS-") === 0)) { goto AIvRR; } goto oGpH3; e5k9l: $writePermissions = octdec("0" . substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "img/p"))), -3)); goto PqPKo; WOpHr: foreach ($newPackages as $pack) { goto KL6cz; g9dVN: whK_8: goto NFxDc; y4_wg: $archive = new PclZip($tmp_folder . "/" . $pack["filename"]); goto jjYjo; M3gbI: echo _l("Opening zip archive...") . "<br/>"; goto y4_wg; RSTBr: echo _l("Error with archive (filesize = 0 Ko)") . "<br/>"; goto ulspL; ulspL: oTi4W: goto g9dVN; jUuQt: $old = umask(0); goto TCV_s; GF1x8: file_put_contents($tmp_folder . "/" . $pack["filename"], $data); goto Q0vqi; LHFEi: $localVersions[$pack["shortname"]] = $pack; goto Z0X2F; LDGsy: echo " (" . strlen($data) / 1000 . "K)<br/>"; goto GF1x8; Q0vqi: if (filesize($tmp_folder . "/" . $pack["filename"]) == 0) { goto Vf34c; } goto M3gbI; IGAIB: goto oTi4W; goto dIWMu; TCV_s: $archive->extract(PCLZIP_OPT_PATH, $tmp_folder . "/", PCLZIP_OPT_SET_CHMOD, $writePermissions); goto wlM77; dIWMu: Vf34c: goto RSTBr; erMcs: $data = sc_file_get_contents($pack["url"]); goto FdTbe; wlM77: umask($old); goto LHFEi; raQVn: echo $pack["url"] . "<br/>"; goto SdmTe; FdTbe: if (!(Tools::getValue("DEBUG", 0) == 1)) { goto eRaWE; } goto raQVn; XhVbZ: $pack["url"] = str_replace("KEY", SCI::getConfigurationValue("SC_LICENSE_KEY", '') . "_" . sc_phpversion(false) . "_" . _PS_VERSION_, $pack["url"]); goto erMcs; SdmTe: eRaWE: goto LDGsy; Z0X2F: echo _l("End of extraction") . "<br/><br/>"; goto IGAIB; jjYjo: echo _l("Extracting zip archive...") . "<br/>"; goto jUuQt; KL6cz: echo _l("Downloading pack") . " " . $pack["filename"] . "...<br/>"; goto XhVbZ; NFxDc: } goto YMagt; Dm0d3: nb76r: goto I23mQ; iKD37: $is_old = false; goto rKOzM; hQaU_: echo "</pre>"; goto efi5P; ciWsY: if (!($checkSupport == "LICENSENOTFOUND")) { goto Mftxq; } goto EY1ut; Ho1zD: } goto HfY0i; HQl5g: if (!empty($check["status"]) && $check["status"] == "1") { goto k0iWc; } goto nKmFr; SWFyu: pg12W: goto SXvdl; B7TRM: displayFirstLoginPage("Error: This license not found", array("notrialform" => 1)); goto AkL_f; k7ejv: if (strpos(PS_WEB_PATH, "storecommander.net") !== false && (!empty($demos[md5(substr(getcwd(), 0, 51))]) || !empty($demos[md5(substr(getcwd(), 0, 35))]))) { goto mL0KJ; } goto LSuo9; nkswY: $id_employee = $sc_cookie->ide; goto D97Jp; ZtbQ2: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login2.png", date("Y-m-d")); goto ecuL8; MBMHa: $wallet_amount = getWallet(); goto MTx6p; MTx6p: fJ3Ll: goto NJcWT; ueV_p: function getExtensionsStatus() { goto xCSGW; f1V0u: $extensions = json_decode($extensions, true); goto nzdCU; D5I_J: if (empty($content)) { goto yrBuC; } goto f1V0u; lMQOA: yrBuC: goto jjIez; LyZH7: if (empty($licence) && !SC_DEMO) { goto dheEG; } goto fr2Bl; Ia6LZ: $licence = "demo"; goto pWSkr; Pl23s: if (!(defined("KAI9DF4") && file_exists("license.php"))) { goto frQOg; } goto zHQH4; GPKtj: $headers = array(); goto iKD7M; zHQH4: $content = file_get_contents("license.php"); goto D5I_J; fr2Bl: goto dhVKM; goto sxspy; nzdCU: $extensions["FixMyPrestashop"]["active"] = 1; goto raI7u; sxspy: DMa1L: goto VX9oD; pWSkr: dhVKM: goto GPKtj; jjIez: frQOg: goto BkUtE; xCSGW: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto r1_mL; BkUtE: if (empty($extensions)) { goto Ea11w; } goto lqofx; r1_mL: if (empty($licence) && SC_DEMO) { goto DMa1L; } goto LyZH7; I0jIY: Ea11w: goto lzsor; lqofx: SCI::updateConfigurationValue("SC_EXTENSIONSTATUS", $extensions); goto I0jIY; Uvqdb: goto dhVKM; goto T4ztd; r023A: $extensions = sc_file_get_contents("https://api.storecommander.com/GetExtensionsStatus/" . $licence . "/all", "GET", array(), $headers); goto Pl23s; raI7u: $extensions = json_encode($extensions); goto lMQOA; T4ztd: dheEG: goto Ia6LZ; iKD7M: $headers[] = "PSVERSION: " . _PS_VERSION_; goto r023A; VX9oD: $licence = "SCdemo"; goto Uvqdb; lzsor: } goto H8W10; fXSdg: if ($check["type"] == 9) { goto AFX_Q; } goto vSZhQ; Qt64g: $ajax = Tools::getValue("ajax", 0); goto W4jBd; XvF4b: if (defined("KAI9DF4")) { goto gbqRD; } goto KAjzq; WrZC9: goto LG3r_; goto uxTNW; DxsgH: $check = checkSubsLic(); goto aW8RY; TUdmc: $postdata = http_build_query($_POST); goto qnozX; R0LUg: $license_key = SCI::getConfigurationValue("SC_LICENSE_KEY", ''); goto Rie_D; F9i2E: $CRONList = array("mapping_process", "export_process", "cat_export_process"); goto PIBr9; RTgHJ: displayFirstLoginPage("Your subscription is not active."); goto w8RO2; gwwIr: g4ZLO: goto fY87l; huQ5C: if ($allowed) { goto cceFe; } goto r8fEw; NStCo: displayFirstLoginPage("Your Trial subscription has expired", array("notrialform" => 1)); goto GA54Z; jmbYK: define("SC_PS_PATH_ADMIN_DIR", SC_PS_PATH_DIR . SCI::decrypt($sc_cookie->psap) . "/"); goto Py1jv; e5zq1: NvBuW: goto aRVYn; ojMzT: H9qtI: goto XsGO4; oOxqL: require_once SC_DIR . "lib/php/extension/segmentation/segment_hook.php"; goto VTXOD; cj2mR: goto VCnm9; goto QqbJI; ygeBN: AFX_Q: goto HC1CC; Pizsg: $local_settings["APP_TRENDS"]["value"] = 1; goto M9YtS; c51ag: if (empty($licence)) { goto N2hV7; } goto JWgKW; SkoWp: EiSC3: goto N8fvP; FOMZY: if (!(version_compare(_PS_VERSION_, "1.5.0.1", ">=") && !$ajax && !(isset($CRON) && $CRON == true && sc_in_array(Tools::getValue("action", ''), $CRONList, "licencesCronList")))) { goto EHemO; } goto xpq1I; OROCP: function checkExtensionsStatus() { goto tny7H; Y_TfN: $extensions = SCI::getConfigurationValue("SC_EXTENSIONSTATUS"); goto Hg_xy; tny7H: global $scExtensions_filesToDelete; goto Y_TfN; fMfBs: jmS3r: goto cT9lt; MXhD2: foreach (getScExtensionsHasModule() as $extension) { goto P2tvk; EQJ3R: HAfzu: goto vPiDA; S10jp: AJ43B: goto LK9ke; A72Ij: BPNfe: goto Q38bX; zpQiH: if (!defined("SC_" . $extension . "_ACTIVE")) { goto AJ43B; } goto ru9QC; QRdHQ: KQuST: goto HNoxI; HNoxI: if (!empty($extensions_decoded->{$extension}->active) || defined("FORCE" . "_" . "EXTENSION" . "_" . "ACTIVE") && FORCE_EXTENSION_ACTIVE == "1") { goto BPNfe; } goto zpQiH; iV92E: goto HAfzu; goto A72Ij; B2Zed: goto ZmGVl; goto QRdHQ; tCt7P: define("SC_" . $extension . "_ACTIVE", "1"); goto xwlgB; ru9QC: die("FATAL ERROR : Constant already defined"); goto TG07E; rzwQK: die("FATAL ERROR : Constant already defined"); goto EGYf3; vPiDA: ZmGVl: goto Vc3G6; xwlgB: r9phR: goto EQJ3R; TG07E: goto XcBAT; goto S10jp; Q38bX: if (!defined("SC_" . $extension . "_ACTIVE")) { goto Eopuc; } goto rzwQK; sdk4U: XcBAT: goto iV92E; S7pHB: Eopuc: goto tCt7P; LK9ke: define("SC_" . $extension . "_ACTIVE", "0"); goto sdk4U; EGYf3: goto r9phR; goto S7pHB; P2tvk: if (empty($scExtensions_filesToDelete[$extension])) { goto KQuST; } goto B2Zed; Vc3G6: } goto fMfBs; Q2SIK: foreach ($scExtensions_filesToDelete as $extension => $files) { goto lL20p; ohnuD: PXedI: goto u4E9n; LVReX: if (!defined("SC_" . $extension . "_ACTIVE")) { goto Ad1iu; } goto GPoRf; u4E9n: if (!defined("SC_" . $extension . "_ACTIVE")) { goto fT8yH; } goto Dx3JA; Jxq3B: checkDeletedFilesActiveExtension($extension); goto RHz7o; gnbnf: goto WcLI9; goto Gug2d; mluyV: drhFa: goto EJrKf; RHz7o: k1hE5: goto IWyM0; ey8ia: unset($scExtensions_filesToDelete["GridEditor"]); goto en35a; GsDNA: fT8yH: goto JJ17i; XidEa: if (!(defined("SC_GridEditorPro_ACTIVE") && SC_GridEditorPro_ACTIVE == "1")) { goto E_hU9; } goto ey8ia; hOiSD: goto k1hE5; goto GsDNA; JJ17i: define("SC_" . $extension . "_ACTIVE", "1"); goto XidEa; F1A9o: goto Y5v1P; goto ohnuD; U8Pad: deleteDisabledExtensionFiles($extension); goto LVReX; Ar0Xn: define("SC_" . $extension . "_ACTIVE", "0"); goto GZC6_; Gug2d: Ad1iu: goto Ar0Xn; lL20p: if (!empty($extensions_decoded->{$extension}->active) || defined("FORCE" . "_" . "EXTENSION" . "_" . "ACTIVE") && FORCE_EXTENSION_ACTIVE == "1") { goto PXedI; } goto U8Pad; Dx3JA: die("FATAL ERROR : Constant already defined"); goto hOiSD; GZC6_: WcLI9: goto F1A9o; en35a: E_hU9: goto Jxq3B; GPoRf: die("FATAL ERROR : Constant already defined"); goto gnbnf; IWyM0: Y5v1P: goto mluyV; EJrKf: } goto scN03; scN03: pL3em: goto MXhD2; Hg_xy: $extensions_decoded = json_decode($extensions); goto Q2SIK; cT9lt: } goto AB5H8; d0qdR: Context::getContext()->link = new Link($protocol_link, $protocol_content); goto bRdqq; n5r9J: Yc92j: goto u3WFt; KlBN4: if (defined("SUB9EHS4PLUS")) { goto ItCtR; } goto y1FOp; cKqpP: define("S" . "U" . "B" . "9" . "E" . "H" . "S" . "4" . "P" . "L" . "U" . "S", "1"); goto q1lxq; qnozX: u6BF8: goto AilX1; Vfgyf: $demos["7e8e243f227a11c215c904e34fc36c93"] = "Inconnu"; goto dRT2Z; PIBr9: if (SC_INSTALL_MODE == 0) { goto JjMMe; } goto XOlBr; o9uYQ: HwVvN: goto xkGPO; bUV9g: checkExtensionsStatus(); goto IJKY6; P6mPo: if ($check["type"] == 3) { goto j52sA; } goto WIr1D; Tjy_A: define("SC_SEGMENTS_DIR", SC_DIR . "lib/php/extension/segmentation/segments/"); goto ZV3hR; pHg2n: WL6vy: goto nkswY; gBj3c: require_once SC_DIR . "lib/php/extension/export_order/ExportOrder.php"; goto dBp47; jEoH3: function checkSubsLic() { goto H9FHw; yzu0K: return $return; goto nqvzx; tf_c5: $posts["scversion"] = $localVersions["SC-Pack1"]["version"]; goto hFyP0; GBL31: $posts["IP"] = $access_details["ip"]; goto hq7Ny; kjV5J: $posts["phpversion"] = sc_phpversion(); goto szIPE; IBM0D: W1ElD: goto OHjk_; KuorW: $posts["DOMAIN"] = $access_details["domain"]; goto GBL31; LkKBG: if (!empty($ret["result"]) && $ret["result"] == "ERROR" && !empty($ret["code"]) && $ret["code"] == "404") { goto W1ElD; } goto QilVb; Tv9om: $posts = array(); goto pHw40; H9FHw: global $access_details; goto LUU1i; szIPE: $posts["psversion"] = _PS_VERSION_; goto tf_c5; pHw40: $posts["LICENSE"] = "#"; goto KuorW; xUO8A: $localVersions = json_decode(SCI::getConfigurationValue("SC_VERSIONS", 0), true); goto kjV5J; LUU1i: $return = array("status" => "500", "type" => '', "isTrial" => "0"); goto Sd_K8; Z4od8: $return = array("status" => $ret["status"], "type" => $ret["type"], "isTrial" => $ret["isTrial"]); goto G7Elo; hq7Ny: $posts["PATH"] = $access_details["directory"]; goto xUO8A; KXEad: xCTxd: goto yzu0K; G7Elo: goto zZouh; goto IBM0D; hFyP0: $ret = makeCallToOurApi("Subscription/Check", $headers, $posts); goto cWhDU; JTf3U: if (empty($licence)) { goto xCTxd; } goto dGScZ; Sd_K8: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto JTf3U; eYqEB: zZouh: goto KXEad; TAMay: XyGKv: goto Z4od8; QilVb: goto zZouh; goto TAMay; OHjk_: $return = array("status" => 404, "type" => '', "isTrial" => "0"); goto eYqEB; cWhDU: if (!empty($ret["result"]) && $ret["result"] == "OK" && !empty($ret["status"])) { goto XyGKv; } goto LkKBG; dGScZ: $headers = array(); goto Tv9om; nqvzx: } goto BhW2l; IbHs9: $sc_cookie->write(); goto CTknI; jgxhw: if (!($localtrialdate != 0 && date("Ymd") > date("Ymd", strtotime($localtrialdate . " + 7 days")) || $localdatefile != 0 && date("Ymd") > date("Ymd", strtotime($localdatefile . " + 7 days")))) { goto Z6uZA; } goto doh7E; dt6qi: if (defined("SC_GridEditor_ACTIVE") && SC_GridEditor_ACTIVE == "1") { goto xVWIw; } goto JhJNU; C3a63: define("SC_CSV_EXPORT_DIR", SC_PS_MODULE_PATH_DIR . "export/"); goto QZQqG; GPIWR: $allowed = Module::getPermissionStatic($idScModule, "view", new Employee((int) $sc_agent->id_employee)); goto huQ5C; N9BGD: $SC_TYPE = "SUBSCRIPTION SOLO+"; goto ctBGS; IhpZ7: function checkDeletedFilesActiveExtension($extension) { goto OSfxZ; OSfxZ: global $scExtensions_filesToDelete; goto KDM8q; nCEOm: fRRux: goto XRi4q; Od1QH: M5l3a: goto nCEOm; KDM8q: if (!(!empty($scExtensions_filesToDelete[$extension]) && count($scExtensions_filesToDelete[$extension]) > 0)) { goto fRRux; } goto ZBtcH; ZBtcH: foreach ($scExtensions_filesToDelete[$extension] as $file) { goto qY0rZ; vkWrn: if (defined("OPEN_UPDATE_WINDOW")) { goto j2k9t; } goto JmP80; ee1KB: au7Xr: goto HxSce; JmP80: define("OPEN_UPDATE_WINDOW", "1"); goto SQ9Sz; HxSce: itjLM: goto uubib; qY0rZ: if (file_exists($file)) { goto au7Xr; } goto vkWrn; SQ9Sz: j2k9t: goto ee1KB; uubib: } goto Od1QH; XRi4q: } goto JYjd3; wrU3V: eQaBD: goto iH0fn; Fo9Rr: $cookie = new Cookie("ps"); goto o9uYQ; QqbJI: bgeS7: goto RPZA3; mincu: require SC_DIR . "lang/en.php"; goto Ojh3Z; rm06I: T8E1I: goto BsytQ; A52oL: if (!version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto djQOi; } goto IbHs9; nvx4f: require SC_DIR . "lang/" . $user_lang_iso . ".php"; goto ceM32; kzcM1: if ($same_empl_url) { goto WN622; } goto yEINd; MW6ex: define("SC_TOOLS_DIR", realpath(SC_DIR . "../SC_TOOLS") . "/"); goto wrU3V; Wq6FR: if ($check["type"] == 5) { goto Gnapn; } goto P6mPo; jef37: goto OPTNT; goto SWFyu; Nzjd7: define("SC_BETA", true); goto hvwsN; iV00t: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomerFilterForm.php"; goto lvO6E; H08oc: if (!(!isset($cookie) || !is_object($cookie))) { goto HwVvN; } goto Fo9Rr; KAjzq: define("K" . "A" . "I" . "9" . "D" . "F" . "4", "0"); goto DFxjk; pmLQz: $key = Tools::getValue("key", ''); goto hXXNR; SXvdl: define("SCAS", true); goto kStAK; Jov3V: HXxFo: goto ALb5e; iH0fn: if (file_exists(SC_TOOLS_DIR)) { goto LOVMS; } goto Zy7Le; bbh3j: sEUbd: goto HL2Qt; A2VYB: bEsLU: goto d1hjS; Je10G: if (IS_RBM) { goto H9qtI; } goto Xn7VO; FEDVp: rjVR_: goto zALh2; d2E5F: const STORE_COMMANDER = 1; goto SvAf4; TRUQr: getExtensionsStatus(); goto bUV9g; I0gh2: function deleteDisabledExtensionFiles($extension) { goto n1T4X; jAi4F: if (!(!empty($scExtensions_filesToDelete[$extension]) && count($scExtensions_filesToDelete[$extension]) > 0)) { goto iYcO2; } goto jhL7W; duWwR: iYcO2: goto DxcXc; jhL7W: foreach ($scExtensions_filesToDelete[$extension] as $file) { goto DoFmc; u6JpC: BiGWD: goto HfUxn; dwka6: @file_put_contents($file, ''); goto rj0yq; WQGJs: if (@unlink($file)) { goto ScwN2; } goto dwka6; DoFmc: if (!file_exists($file)) { goto Xq9xq; } goto WQGJs; rj0yq: ScwN2: goto sRlzb; sRlzb: Xq9xq: goto u6JpC; HfUxn: } goto mQTgt; n1T4X: global $scExtensions_filesToDelete; goto jAi4F; mQTgt: vZeyx: goto duWwR; DxcXc: } goto IhpZ7; qoR_6: $result = "StoreCommander.com cannot be reached: can you check if the fsockopen operation is allowed on your server or if your use a firewall which could block the connection to the storecommander.com server?"; goto SkoWp; fA3lh: goto cqHjt; goto E70Ti; Y59YW: goto VCnm9; goto BF_ai; UdcOm: if (!empty($localdateoutfile)) { goto NvBuW; } goto pADPC; TNXPH: qVfBt: goto kBnFZ; ru2aR: EHemO: goto TxE4g; gcMEl: if (empty($sc_cookie)) { goto bEsLU; } goto ZDMEC; NqrzL: $newLicense = Tools::getValue("license", ''); goto vPY0x; uyPra: tt3rE: goto bEkTQ; Zy7Le: define("SC_TOOLS", false); goto ZHqPG; kBnFZ: define("FORCE" . "_" . "EXTENSION" . "_" . "ACTIVE", "1"); goto VAj6u; KlVVG: ItCtR: goto AOlaL; BeT7D: $DateEndSupport = sc_file_get_contents("https://www.storecommander.com/files/getsupport_" . $newLicense . "_getdatefull.php"); goto Pizsg; H50bf: if (!(defined("SC_ExportCustomers_ACTIVE") && SC_ExportCustomers_ACTIVE == "1" && _r("MENU_CUS_EXPORTCUSTOMERS"))) { goto tt3rE; } goto XUgoz; e8SJU: $protocol_content = Tools::usingSecureMode() && Configuration::get("PS_SSL_ENABLED") ? "https://" : "http://"; goto d0qdR; hXXNR: goto qv8gZ; goto pHg2n; S7Pkw: i_Mee: goto mSMPf; oRZkh: $postdata = array(); goto xnvj3; D0lxr: WN622: goto FiNbo; L5P2w: $scExtensions_filesToDelete = array("UkooProductCompat" => array(SC_DIR . "lib/cat/productcompatibility/cat_productcompatibility_criterion_init.js.php", SC_DIR . "lib/cat/productcompatibility/cat_productcompatibility_generator_init.js.php", SC_DIR . "lib/cat/productcompatibility/cat_productcompatibility_init.js.php"), "FixMyPrestashop" => array(SC_DIR . "lib/all/win-fixmyprestashop/all_win-fixmyprestashop_init.js.php", SC_DIR . "lib/all/win-fixmyprestashop/all_win-fixmyprestashop_actions.php", SC_DIR . "lib/all/win-fixmyprestashop/all_win-fixmyprestashop_controls.php"), "MultiplesFeatures" => array(SC_DIR . "lib/cat/multiplefeatures/cat_multiplefeatures_init.js.php", SC_DIR . "lib/cat/multiplefeatures/cat_multiplefeatures_group_get.php"), "GridEditorPro" => array(SC_DIR . "lib/all/win-gridseditorpro/all_win-gridseditorpro_init.js.php", SC_DIR . "lib/all/win-gridseditorpro/all_win-gridseditorpro_win.php"), "GridEditor" => array(SC_DIR . "lib/all/win-gridseditor/all_win-gridseditor_init.js.php", SC_DIR . "lib/all/win-gridseditor/all_win-gridseditor_get.php"), "Segmentation" => array(SC_DIR . "lib/all/win-segmentation/all_win-segmentation_init.js.php", SC_DIR . "lib/all/win-segmentation/all_win-segmentation_get.php"), "TinyPNG" => array(SC_DIR . "lib/php/tinypng/lib/Tinify.php", SC_DIR . "lib/php/tinypng/lib/Tinify/Client.php", SC_DIR . "lib/php/tinypng/lib/Tinify/Source.php"), "Affiliation" => array(SC_DIR . "lib/all/win-affiliation/all_win-affiliation_init.js.php"), "Amazon" => array(SC_DIR . "lib/cat/amazon/cat_amazon_init.js.php"), "FeedBiz" => array(SC_DIR . "lib/cat/feedbiz/cat_feedbiz_init.js.php"), "Cdiscount" => array(SC_DIR . "lib/cat/cdiscount/cat_cdiscount_init.js.php"), "Terminator" => array(SC_DIR . "lib/all/win-terminator/all_win-terminator_init.js.php", SC_DIR . "lib/all/win-terminator/all_win-terminator_get.php"), "AdvancedSearchSeo" => array(SC_DIR . "lib/cat/win-advancedsearchseo/cat_win-advancedsearchseo_init.js.php"), "ExportOrders" => array(SC_DIR . "lib/ord/win-export/ord_win-export_init.js.php", SC_DIR . "lib/php/extension/export_order/ExportOrderTools.php"), "ExportCustomers" => array(SC_DIR . "lib/cus/win-export/cus_win-export_init.js.php", SC_DIR . "lib/php/extension/export_customer/ExportCustomerTools.php")); goto ypybj; u3WFt: displayFirstLoginPage("Error with our services"); goto q83E0; iUIDk: ZlFeB: goto PVyCc; AB5H8: function checkModuleAndDownload($moduleName) { goto i6ykb; jwbI_: jx5Q5: goto U21Bd; Abicr: goto Dq9dd; goto kxfPb; eBGvc: return 0; goto RVbfl; ZLN11: if (!empty($id_module)) { goto pDhGd; } goto q0eVi; Gv6jf: k_vch: goto jwbI_; U21Bd: return 0; goto EluhP; xIIBd: $id_module = SCI::moduleIsInstalled($extensions_decoded->{$moduleName}->folder_name); goto ZLN11; kxfPb: pDhGd: goto gxQxu; Dcz_s: if (!(defined("SC_" . $moduleName . "_ACTIVE") && constant("SC_" . $moduleName . "_ACTIVE") == "1")) { goto k_vch; } goto xIIBd; gXnxx: Dq9dd: goto Gv6jf; RVbfl: WU4bT: goto DgDlO; N8pjZ: if (in_array($moduleName, getScExtensionsHasModule())) { goto WU4bT; } goto eBGvc; q0eVi: return (int) getScExtensionAndExtract($extensions_decoded->{$moduleName}->folder_name); goto Abicr; DgDlO: $extensions = SCI::getConfigurationValue("SC_EXTENSIONSTATUS"); goto qoBUC; i6ykb: global $sc_alerts; goto N8pjZ; gxQxu: return 2; goto gXnxx; eSBTO: if (!(!empty($extensions_decoded->{$moduleName}->active) || defined("FORCE" . "_" . "EXTENSION" . "_" . "ACTIVE") && FORCE_EXTENSION_ACTIVE == "1")) { goto jx5Q5; } goto Dcz_s; qoBUC: $extensions_decoded = json_decode($extensions); goto eSBTO; EluhP: } goto pfnE7; wU7cq: define("IS_SUBS", "1"); goto SHPTm; YIh1W: die("All Store Commander files need to have the access rights set to " . $writePermissionsOCT . " minimum on your ftp"); goto x38CB; sHQhM: goto y0LpC; goto T8xD9; pVpAb: if (!in_array($check["type"], array(4, 5, 3, 7, 9, 10))) { goto XVoXm; } goto cKqpP; E70Ti: N2hV7: goto fJBnP; VAj6u: RGmUf: goto p5vYW; UPH5Z: $check = json_decode(base64_decode(SCI::getConfigurationValue("SC_LICENSE_DATA")), true); goto sP_ZU; IJVwN: define("SC_MODULE_FOLDER_NAME", "storecommanderps"); goto umKHu; hvwsN: error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); goto BUvka; xnvj3: $postdata["isSCMS"] = (int) SCMS; goto GwKHu; w8RO2: hKkh3: goto Ztpna; W9KjM: Ygc1D: goto OlBPM; L1hWP: if ($_GET["setDEBUG"] == 1) { goto T8E1I; } goto JT3AQ; pfoUD: define("SC_MAIL_ATTACHMENT_DIR", _PS_ROOT_DIR_ . "/upload/"); goto eLlrK; YiHDW: define("SC_CSV_EXPORT_DIR", _PS_ROOT_DIR_ . "/export/"); goto ffTD1; u7PLM: goto VCnm9; goto kqt6Z; tfQc_: VTBml: goto TRUQr; lX0X7: if (!(SCI::getConfigurationValue("SC_LICENSE_KEY", '') == '')) { goto hfMou; } goto KLD_M; JhJNU: define("SC_GRIDSEDITOR_INSTALLED", false); goto WrZC9; j4zI_: kb0J6: goto jmbYK; LL2JZ: IBOOB: goto yqrkb; vnL7W: zj3ck: goto N9BGD; y1FOp: define("S" . "U" . "B" . "9" . "E" . "H" . "S" . "4" . "P" . "L" . "U" . "S", "0"); goto KlVVG; GA54Z: goto NFUgT; goto nLsXI; D1dNV: define("SC_BETA", false); goto en1HW; YUbwI: m6WEg: goto Je10G; nt91s: goto NFUgT; goto Pak1X; Ikp9g: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png", "0"); goto NStCo; qwx6z: pyzxR: goto fA3lh; E87sM: define("SC_PS_PATH_ADMIN_REL", "../"); goto YiHDW; eDrIg: require_once SC_DIR . "lib/php/extension/segmentation/ScSegment.php"; goto OECDe; R_TLo: goto pyzxR; goto gOmic; YpzW4: $segmentHook = new SegmentHook(); goto SUFXq; mNP5i: qv8gZ: goto vSoTz; umKHu: define("SC_MODULE_ADMIN_CONTROLLER_NAME", "AdminStoreCommanderPs"); goto Wl9YZ; IPpgr: loadSettings(); goto X7AKS; JMma0: $SC_TYPE = ''; goto BLdyk; nD9Pr: define("SC_MODULE_ADMIN_CONTROLLER_NAME", "AdminStoreCommander"); goto j6XNc; cA_tK: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png", "0"); goto q7CHL; nXNx6: define("SC_DEMO", true); goto AHeLx; SR7d9: Db::getInstance()->Execute("DELETE FROM " . _DB_PREFIX_ . "configuration WHERE name='SC_LICENSE_KEY'"); goto vnZC_; pg7cq: Z9u8j: goto rPARA; aRVYn: if (empty($localdateoutfile)) { goto Yc92j; } goto AxECB; kogWo: $nblanguages = count($languages); goto bWe6R; z9cob: cqHjt: goto iV9Mg; QaG6n: LOVMS: goto R9uMv; AzIWC: vFEEi: goto dsCcy; pfnE7: function getScExtensionAndExtract($filename, $overWriteFiles = false) { goto Q1jB6; Q1jB6: $tmp_folder = SC_DIR . "sc_update_tmp"; goto p1TQG; uf9xt: uqQff: goto RV8RP; RYcH1: @unlink($tmp_folder . "/" . $filename . ".zip"); goto jOAZ5; BJpkT: if (empty($extracted)) { goto WapEt; } goto CP_G2; nU4_3: return false; goto gF283; fbJxk: require_once SC_DIR . "lib/php/pclzip.lib.php"; goto bQ_EQ; A7bxa: $old = umask(0); goto q3d97; RV8RP: $data = sc_file_get_contents($url); goto TRX_s; kGdic: $extracted = $archive->extract(PCLZIP_OPT_PATH, SC_DIR . "../../../", PCLZIP_OPT_SET_CHMOD, $writePermissions); goto Nhk2G; p1TQG: $writePermissions = octdec("0" . substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "img/p"))), -3)); goto wXdFQ; MuLTE: $extracted = Tools::ZipExtract($tempZipName, SC_DIR . "../../../"); goto uslcf; gF283: kcK60: goto PJuZc; q3d97: mkdir($tmp_folder, $writePermissions); goto Zxutk; CP_G2: umask($old); goto RYcH1; gZ99A: WapEt: goto E0VEx; Nhk2G: goto vSPSu; goto m8asT; wXdFQ: $url = "https://www.storecommander.com/files/extensions/" . md5($filename) . ".zip"; goto fbJxk; jOAZ5: return true; goto gZ99A; TRX_s: if (!empty($data)) { goto kcK60; } goto nU4_3; Zxutk: umask($old); goto uf9xt; BhgXy: $archive = new PclZip($tempZipName); goto kGdic; zsAld: $tempZipName = $tmp_folder . "/" . $filename . ".zip"; goto eAxW8; uslcf: vSPSu: goto BJpkT; m8asT: rWde2: goto MuLTE; eAxW8: if ($overWriteFiles) { goto rWde2; } goto BhgXy; PJuZc: file_put_contents($tmp_folder . "/" . $filename . ".zip", $data); goto xzx7b; xzx7b: $old = umask(0); goto zsAld; bQ_EQ: if (is_dir($tmp_folder)) { goto uqQff; } goto A7bxa; E0VEx: } goto I0gh2; PC2Xx: if (!version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto bE6zX; } goto TQK5T; WhABp: $SC_TYPE = "SUBSCRIPTION SOLO"; goto oTyay; LSuo9: define("SC_DEMO", false); goto dBkwL; D97Jp: $key = $sc_cookie->key; goto mNP5i; eaB9S: $localtrialdate = SCI::getConfigurationValue("CRONJOBS_MODULE_CDATE"); goto x0CXd; LqtYx: OT3Wf: goto mG522; IHs36: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomerMappingForm.php"; goto AJbqX; yJgEz: goto VCnm9; goto vnL7W; bCkEa: if (defined("SUB6TYP2")) { goto QxuzF; } goto aKArc; QZQqG: define("SC_CSV_IMPORT_DIR", SC_PS_MODULE_PATH_DIR . "import/"); goto Lj5dY; AkL_f: goto NFUgT; goto S7Pkw; h9HkU: jt2gF: goto ZtbQ2; p_ThF: $forceLangIso = UISettings::getSetting("forceSCLangIso"); goto pMQjM; EejJD: goto RGmUf; goto TNXPH; Vkr9E: die; goto oiT6N; s1NKQ: dBCDj: goto iddUN; JWgKW: define("SC_DEMO", false); goto qUxO8; JT3AQ: @unlink("../DEBUG"); goto Hp0Lt; mvCXM: require_once SC_DIR . "lib/php/extension/export_order/ExportOrderFilterForm.php"; goto XqGzE; RPZA3: $SC_TYPE = "SUBSCRIPTION MULTI"; goto Y59YW; p5vYW: W5rTT: goto XvF4b; WpjDL: IatXv: goto AGlMw; My8Aw: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomerFilter.php"; goto iV00t; RUdrD: jOJoQ: goto dtlvp; AxECB: if (!(date("Y-m-d") > date("Y-m-d", strtotime($localdateoutfile . " + 3 days")))) { goto hKkh3; } goto RTgHJ; uq6lD: $sc_tools_list = getToolsList(); goto bsunK; xzfWt: Gg4Wb: goto E5RdB; Xwylm: JjMMe: goto RFkMu; OCyJa: function getScSessionItemValue($item, $key) { goto n6AX2; Pax_i: dN3MH: goto q3l5Z; Hfxzh: switch ($item) { case "early_access": goto pnPCm; VRESn: $serviceValue = $scSessionCookie->{$prefix . $key}; goto jrMw3; tmcSH: J2bnH: goto rfib6; jrMw3: if (empty($serviceValue)) { goto J2bnH; } goto X5dC3; pnPCm: $prefix = "scService_"; goto VRESn; X5dC3: return is_numeric($serviceValue) ? (int) $serviceValue : (string) $serviceValue; goto tmcSH; rfib6: default: } goto Pax_i; n6AX2: $scSessionCookie = new Cookie("scSession"); goto Hfxzh; g2Qs6: return false; goto KowXe; q3l5Z: MTohE: goto g2Qs6; KowXe: } goto TKIYX; IOLn4: if (!($sc_cookie->psap == '' || Tools::isSubmit("psap") && $sc_cookie->psap != SCI::encrypt(Tools::getValue("psap", '')))) { goto PXwgY; } goto GikKM; Pak1X: k0iWc: goto McZoN; Kpafd: $SC_TYPE_NUM = $check["type"]; goto QGRND; hHq3F: j52sA: goto Lp9Xm; YoOcR: function getScExtensionsHasModule() { return array("CatalogPDF", "Affiliation"); } goto ueV_p; NJcWT: if (!$ajax) { goto VTBml; } goto kF11v; MUm7a: goto VCnm9; goto hHq3F; a6qso: if (file_exists("../DEBUG") || isset($_GET["DEBUG"]) || strpos(SC_DIR, "SCBETA") !== false) { goto KieIF; } goto D1dNV; PIlFp: if ($sc_cookie->ide != '' && $sc_cookie->key != '' && Tools::getValue("key", '') == '') { goto WL6vy; } goto djJUO; j8u70: KpfuH: goto ikjcy; tX74M: $same_empl_url = (bool) (empty($cookie_mail) || $sc_agent->email != $cookie_mail ? false : true); goto Qt64g; mdfNh: if (!file_exists(_PS_CORE_IMG_DIR_ . "prestashop-login2.png")) { goto fXBMi; } goto b220f; gJNe5: mL0KJ: goto nXNx6; yqrkb: if (!$error_access) { goto iFStC; } goto YIh1W; GiDsb: define("SC_GRIDSEDITOR_PRO_INSTALLED", true); goto bbh3j; appmE: if (count($val) == 2) { goto s_oZl; } goto TnPWh; EvtMV: define("K" . "A" . "I" . "9" . "D" . "F" . "4", "0"); goto FXtaL; ecuL8: SCI::updateConfigurationValue("CRONJOBS_MODULE_CDATE", date("Y-m-d")); goto Proqa; EPQdy: define("IS_RBM", true); goto qwx6z; GgOkB: Cj5ix: goto Jo90a; BF_ai: Gnapn: goto wrkSL; K5kgq: FBWyG: goto UPH5Z; Lkmaa: displayFirstLoginPage("Must have MS"); goto LqtYx; McZoN: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png", "0"); goto t7G3c; VnYsn: hfMou: goto R0LUg; q83E0: CMX9i: goto KAU7s; tYxym: tKLA1: goto LCaxS; XOlBr: $sc_cookie = new Cookie("scAdmin"); goto PIlFp; wW7QP: define("SC_PS_PATH_ADMIN_DIR", realpath(SC_DIR . "../") . "/"); goto E87sM; poG6H: E7xUJ: goto Tjy_A; Esyro: removeUnwantedFiles(); goto lX0X7; dblQq: $opts = array("http" => array("method" => "POST", "header" => $headers, "content" => $postdata)); goto KIT2N; xbw1Y: if (isset($locals)) { goto vFEEi; } goto CiM2a; qv0S_: if (!empty($check["status"]) && $check["status"] == "3") { goto KfsJ7; } goto Y6UK2; iY_Dx: if ($check["type"] == 4) { goto HXxFo; } goto IK6EX; CdqBa: $SC_TYPE = "SUBSCRIPTION EXPERT"; goto VQNDd; hMuvW: $sc_cookie->key = Tools::getValue("key", ''); goto pmLQz; Ztpna: goto CMX9i; goto n5r9J; rPARA: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png", "0"); goto B7TRM; TxE4g: $languages = Language::getLanguages(!_s("CAT_PROD_LANGUAGE_ALL")); goto kogWo; i3CyV: xttRg: goto xbw1Y; dBp47: require_once SC_DIR . "lib/php/extension/export_order/ExportOrderFields.php"; goto Z_uQv; TQK5T: $protocol_link = Tools::usingSecureMode() && Configuration::get("PS_SSL_ENABLED") ? "https://" : "http://"; goto e8SJU; EDKPO: P9uMX: goto c1Gg4; yvMRj: @ini_set("memory_limit", _s("APP_COMPAT_MEMORY")); goto gwwIr; QJQgl: define("SCAS", false); goto jef37; vPY0x: SCI::updateConfigurationValue("SC_LICENSE_KEY", $newLicense); goto BeT7D; Jchof: define("SC_GRIDSEDITOR_PRO_INSTALLED", false); goto TgIiz; aKArc: define("S" . "U" . "B" . "6" . "T" . "Y" . "P" . "2", "0"); goto B8E4F; rARRi: if (IS_RBM && $current_sc_module_folder_name == "storecommanderps") { goto L2IF0; } goto OAVre; CiM2a: $locals = array(); goto AzIWC; nKmFr: if (!empty($check["status"]) && $check["status"] == "2") { goto PZwmT; } goto qv0S_; iddUN: O1lY1: goto a6qso; o3J6t: die("FATAL ERROR : Constant already defined"); goto EejJD; nCePb: if (defined("SC_GridEditorPro_ACTIVE") && SC_GridEditorPro_ACTIVE == "1") { goto kGqco; } goto Jchof; q1lxq: XVoXm: goto ey1Uy; Csd6H: $cgu_cms_id = 84; goto lVqVg; O3slq: define("SCSG", false); goto UT2Do; mG522: if (empty($check["isTrial"])) { goto umTWN; } goto hGHRJ; tgzZO: kGqco: goto GiDsb; pADPC: $localdateoutfile = date("Y-m-d"); goto LSMHE; O01OZ: function checkServicesStatus() { goto M1HDO; M1HDO: return false; goto VK_02; gZ31_: $services = array("FouleFactory"); goto qOlF4; qtumS: $services_decoded = json_decode($services); goto gZ31_; VK_02: $services = SCI::getConfigurationValue("SC_SERVICESTATUS"); goto qtumS; MJKCb: GrfLP: goto ztdbz; qOlF4: foreach ($services as $service) { goto yEZ3g; lCbx_: goto IfRJZ; goto WZ1cL; mvNr6: IfRJZ: goto wWh7v; hc5PB: if (!defined("SC_" . $service . "_ACTIVE")) { goto PqdbZ; } goto i1q5Z; yEZ3g: if (!empty($services_decoded->{$service}->active)) { goto SrLDi; } goto m61c1; m61c1: if (!defined("SC_" . $service . "_ACTIVE")) { goto U3EiA; } goto vIyBK; fjKrJ: SrLDi: goto hc5PB; QbCzx: define("SC_" . $service . "_ACTIVE", "1"); goto mvNr6; BQoNp: define("SC_" . $service . "_ACTIVE", "0"); goto Yo4Yr; Yo4Yr: dYH7h: goto FR6oZ; wWh7v: JSUsw: goto PXBsj; PXBsj: SDO5T: goto QHcf0; FR6oZ: goto JSUsw; goto fjKrJ; vIyBK: die("FATAL ERROR : Constant already defined"); goto ibIjm; WZ1cL: PqdbZ: goto QbCzx; ibIjm: goto dYH7h; goto WlYd3; WlYd3: U3EiA: goto BQoNp; i1q5Z: die("FATAL ERROR : Constant already defined"); goto lCbx_; QHcf0: } goto MJKCb; ztdbz: } goto atUB1; IK6EX: if ($check["type"] == 2) { goto bgeS7; } goto Wq6FR; dEqcE: NFUgT: goto Mj7Us; RKkVH: define("S" . "U" . "B" . "6" . "T" . "Y" . "P" . "2", $SC_TYPE_NUM); goto pVpAb; ZDMEC: $cookie_mail = Db::getInstance()->getValue("SELECT email FROM " . _DB_PREFIX_ . "employee WHERE id_employee=" . (int) $sc_cookie->id_employee); goto A2VYB; UjjSu: kaRLZ: goto UdcOm; KLD_M: getServicesStatus(); goto k9KkU; b220f: @($localdatefile = file_get_contents(_PS_CORE_IMG_DIR_ . "prestashop-login2.png")); goto RFPFR; A3Fu4: @($localdateoutfile = file_get_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png")); goto UjjSu; XUgoz: if (defined("_SC_LOG_LIMIT_")) { goto P9uMX; } goto DHmVd; U2Tlc: $cgu_allowed_lang = array("en" => 1, "fr" => 2, "es" => 4); goto qur3X; A_ur9: $writePermissionsOCT = substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "img/p"))), -3); goto pel2z; twnKv: eeaKX: goto YoOcR; LPM9I: $access_details = access_details(); goto atfQR; fYFsp: $user_lang_iso = $forceLangIso; goto YUbwI; bsunK: KaD6H: goto OuDUW; PWjkd: $cgu_cms_id = 3; goto U8Cj1; mSMPf: $localdateoutfile = 0; goto fQYhD; Pi6hA: if (!empty($cookie_mail)) { goto dAx9U; } goto gcMEl; AHeLx: FGfLp: goto BjvOE; Ojh3Z: $LANG_EN = $LANG; goto mhGlR; eLlrK: define("SC_CSV_IMPORT_CONF", "import.conf.xml"); goto zJP_a; FiNbo: if (!isset($cookie)) { goto ZlFeB; } goto nSc6q; ZYZnM: if (empty($check["type"])) { goto e34hi; } goto Kpafd; Xn7VO: if (IS_SUB == "1") { goto Ygc1D; } goto CNNPh; bRdqq: bE6zX: goto rAX6d; uxTNW: xVWIw: goto HhMFp; xpq1I: $idScModule = Module::getModuleIdByName(SC_MODULE_FOLDER_NAME); goto GPIWR; km0HH: function setScSession($item, $data) { goto yITdb; O2rmz: vUdRr: goto ezPcS; bb110: $scSessionCookie->sc_date_upd = date("Y-m-d H:i:s"); goto GZ8Rq; yITdb: $scSessionCookie = new Cookie("scSession", '', time() + 604800); goto bb110; ezPcS: return $scSessionCookie->write(); goto vWdkd; ChOJp: sYZBr: goto O2rmz; GZ8Rq: switch ($item) { case "early_access": goto SjTAQ; lTFnS: t2J4V: goto epWcc; PcSSc: foreach ($data as $service => $value) { $scSessionCookie->{$prefix . $service} = $value; H1Xam: } goto Mv1Bw; ayVeH: foreach (array_keys($services) as $serviceWithPrefix) { unset($scSessionCookie->{$serviceWithPrefix}); nMc5Z: } goto prVnX; Mv1Bw: h_iNz: goto spsvQ; prVnX: rpEqM: goto lTFnS; epWcc: if (!$data) { goto HyyDG; } goto PcSSc; spsvQ: HyyDG: goto KY1Az; KY1Az: goto vUdRr; goto vJ6u_; SjTAQ: $prefix = "scService_"; goto gcqpf; gcqpf: if (!($services = $scSessionCookie->getFamily($prefix))) { goto t2J4V; } goto ayVeH; vJ6u_: } goto ChOJp; vWdkd: } goto OCyJa; gdNUb: xwKCJ: goto hNQrk; aW8RY: SCI::updateConfigurationValue("SC_LICENSE_DATA", base64_encode(json_encode($check))); goto zxrcg; Mmn2w: if (!(Tools::getValue("firstLoginPageAct", '') == "createtrial")) { goto xttRg; } goto NVN_e; OlBPM: $cgu_prefix = "terms-sub"; goto PWjkd; dtHTs: foreach ($files as $file) { goto FsZAI; Z7j3t: r0JPI: goto pnorF; PAxKR: iN5Ts: goto wEcql; pnorF: QPo0H: goto PAxKR; C_kjB: $error_access = true; goto Z7j3t; gn9K6: if (is_writable($file)) { goto r0JPI; } goto C_kjB; wEcql: NnHw3: goto s3vyC; HyOF1: if (!(strtoupper(substr(PHP_OS, 0, 3)) != "WIN")) { goto QPo0H; } goto gn9K6; FsZAI: if (!file_exists($file)) { goto iN5Ts; } goto HyOF1; s3vyC: } goto LL2JZ; BjvOE: define("IS_RBM", false); goto z9cob; Xv7E6: displayFirstLoginPage($val[1]); goto khoAL; hGHRJ: define("K" . "A" . "I" . "9" . "D" . "F" . "4", "1"); goto gKLOj; JYjd3: function getServicesStatus() { goto X3B0X; GWWs2: OyvHd: goto DGaSC; SBa9m: $posts["SUBSCRIPTION"] = "1"; goto GWWs2; g6WRn: zGg9d: goto owh7c; poMwj: if (!(defined("IS_SUBS") && IS_SUBS == "1")) { goto OyvHd; } goto SBa9m; kytrm: SCI::updateConfigurationValue("SC_SERVICESTATUS", $services); goto dDoEZ; dDoEZ: EHA7A: goto HCUqO; bG4TD: if (empty($services)) { goto EHA7A; } goto kytrm; Gk2k6: $licence = "demo"; goto JpkRL; QNE41: $headers = array(); goto Od7sC; xW7Cy: if (empty($licence) && !SC_DEMO) { goto uiSxh; } goto fqvJ0; CICxA: uiSxh: goto Gk2k6; MfGUM: if (empty($licence) && SC_DEMO) { goto zGg9d; } goto xW7Cy; JpkRL: DlxKR: goto QNE41; bNxLo: goto DlxKR; goto CICxA; fqvJ0: goto DlxKR; goto g6WRn; oculn: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto MfGUM; owh7c: $licence = "SCdemo"; goto bNxLo; X3B0X: SCI::updateConfigurationValue("SC_SERVICESTATUS", ''); goto pvBF8; pvBF8: return false; goto oculn; DGaSC: $services = sc_file_get_contents("https://api.storecommander.com/GetServiceStatus/" . $licence . "/all", "GET", $posts, $headers); goto bG4TD; Od7sC: $posts = array(); goto poMwj; HCUqO: } goto O01OZ; OAVre: define("SC_MODULE_FOLDER_NAME", "storecommander"); goto nD9Pr; x38CB: iFStC: goto wik86; VTh5L: if ($val[0] == "OK") { goto jt2gF; } goto Xv7E6; E5ccb: KW3iZ: goto CdqBa; doh7E: displayFirstLoginPage("Your Trial subscription has expired", array("notrialform" => 1)); goto SkiRL; T1bqt: define("SC_ISO_LANG_FOR_EXTERNAL", $sc_iso); goto BH5FC; aIW5t: $demos["3d8411be02faf1eb1c857579ac1bac43"] = "Inconnu"; goto wuPP4; P33Uz: foreach ($sc_tools_list as $tool) { goto BMlGe; cFz8m: fB5eN: goto u3zyu; CBMYb: PEvV4: goto cFz8m; niekZ: require_once SC_TOOLS_DIR . $tool . "/" . $user_lang_iso . ".php"; goto CBMYb; BMlGe: if (!file_exists(SC_TOOLS_DIR . $tool . "/" . $user_lang_iso . ".php")) { goto PEvV4; } goto niekZ; u3zyu: } goto l7uBL; dsCcy: if ($_SERVER["HTTP_HOST"] == "127.0.0.1" && !empty($locals[md5(getcwd())]) || SC_DEMO && substr(SCI::getConfigurationValue("SC_LICENSE_KEY"), 0, 6) != "SCFREE") { goto iTUM8; } goto Esyro; xkGPO: goto DUKTn; goto Xwylm; lVqVg: goto yE6l4; goto W9KjM; Hp0Lt: goto dBCDj; goto rm06I; vSZhQ: if ($check["type"] == 10) { goto KW3iZ; } goto u7PLM; k9KkU: displayFirstLoginPage(); goto VnYsn; t7G3c: define("SCLIMREF", $SC_TYPE); goto wU7cq; gWb40: $Kd8PY = 0; goto EvtMV; O7Rot: if (!empty($check["status"]) && $check["status"] == "404") { goto Z9u8j; } goto iv627; nurPI: goto Cj5ix; goto zdDdA; XsGO4: $cgu_prefix = "terms-sub-rbm"; goto Csd6H; j6XNc: goto d3bVx; goto RrblX; TnPWh: if (!($result == '')) { goto EiSC3; } goto qoR_6; dBkwL: goto FGfLp; goto gJNe5; GikKM: $sc_cookie->psap = SCI::encrypt(Tools::getValue("psap", '')); goto MiXhF; hNQrk: y0LpC: goto i3CyV; ZJpLu: define("CGU_EXTERNAL_URL", "https://www.storecommander.com/cgv.php?l=" . SC_ID_LANG_FOR_EXTERNAL . "&c=" . $cgu_cms_id); goto mincu; ALb5e: $SC_TYPE = "SUBSCRIPTION SOLO+"; goto cj2mR; RrblX: L2IF0: goto IJVwN; fTz3Z: $result = file_get_contents($api_server, false, $context); goto nhCfz; atUB1: function checkSCVersion($full = false, $forceCheck = false, $forceUpdate = false) { goto jR0uY; dWLo6: rnPz1: goto AL6bd; w_DJL: unset($toUpdate["SC-Pack2"]); goto OZnql; FRAlh: if ($full) { goto g2K6I; } goto ADziv; D8Fqw: SCI::updateConfigurationValue("SC_VERSIONS_LAST", json_encode($lastVersions)); goto r62QT; c_61h: SCI::updateConfigurationValue("SC_VERSIONS", json_encode($lastVersions)); goto gv1T8; IxGDV: WEXqE: goto pSGwu; gqk6I: foreach ($localVersions as $key => $lv) { goto UWmLG; pLZnt: unset($localVersions[$key]); goto v11OD; v11OD: fgoTI: goto MVIwk; UWmLG: if (!(empty($key) || !is_array($localVersions[$key]))) { goto fgoTI; } goto pLZnt; MVIwk: bH9Mi: goto DlzCk; DlzCk: } goto q1XCx; AL6bd: if (empty($officialversions)) { goto EJoic; } goto yiOjK; qKe4B: if (!(Tools::getValue("DEBUG", 0) == 1)) { goto rnPz1; } goto e6OQY; yiOjK: $officialversions_decoded = json_decode($officialversions); goto b98vH; QI2j7: return true; goto mrFJ3; ZLwtz: $toUpdate = $localVersions; goto oR6hi; jR0uY: $lastcheck = SCI::getConfigurationValue("SC_VERSIONS_LAST_CHECK", 0); goto xIIyY; Zowl6: GeruQ: goto c_61h; bPD53: goto AIl9c; goto Zowl6; q1xsE: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto e6L17; v3AnR: if (!($lastVersions == null)) { goto GiR2D; } goto x5Cvg; LYYCl: if (!($localVersions == null)) { goto L5fgR; } goto Z3X8i; pSGwu: $headers = array("x-sc-full-url:" . Tools::getShopDomainSsl(true) . __PS_BASE_URI__, "x-sc-psversion:" . _PS_VERSION_); goto w6qDg; q1XCx: Tl0vN: goto ZLwtz; f3S7L: return false; goto N8uu9; N8uu9: EnzMu: goto MltMu; tL1oD: HZ8JJ: goto RPMwt; FmKdq: EJoic: goto LOmcB; F_klz: TSCv9: goto FmKdq; KEstW: SCI::updateConfigurationValue("SC_VERSIONS_LAST_CHECK", date("Ymd")); goto FRAlh; gv1T8: AIl9c: goto KEstW; w6qDg: $officialversions = sc_file_get_contents("https://api.storecommander.com/GetServiceStatus/" . $licence . "/StoreCommander", "GET", array(), $headers); goto qKe4B; Z3X8i: $localVersions = array(); goto YSa1w; oR6hi: if ($forceCheck || $forceUpdate || (int) $lastcheck > 0 && (int) $lastcheck < date("Ymd")) { goto HZ8JJ; } goto fIIp1; acxkv: h241z: goto f3S7L; e6OQY: echo "<pre>" . $officialversions . "</pre>"; goto dWLo6; OZnql: unset($toUpdate["SC-Pack3"]); goto bPD53; kjFfF: return $toUpdate; goto ub5it; KCIQe: $lastVersions[(string) $officialversions_decoded->StoreCommander->shortname] = array("version" => (string) $officialversions_decoded->StoreCommander->version, "filename" => (string) $officialversions_decoded->StoreCommander->filename, "shortname" => (string) $officialversions_decoded->StoreCommander->shortname, "url" => (string) $officialversions_decoded->StoreCommander->url, "active" => (string) $officialversions_decoded->StoreCommander->active, "broadcastMessage" => (string) $officialversions_decoded->StoreCommander->broadcastMessage); goto F_klz; mrFJ3: goto EnzMu; goto acxkv; ADziv: if (count($toUpdate) == 0) { goto h241z; } goto QI2j7; RPMwt: $lastVersions = array(); goto q1xsE; YSa1w: L5fgR: goto gqk6I; lfDyU: $licence = "demo"; goto IxGDV; x5Cvg: $lastVersions = array(); goto c9JxT; Ia1Bf: goto xWORw; goto tL1oD; r62QT: if (count($localVersions) == 0) { goto GeruQ; } goto vUOfC; e6L17: if (!empty($licence)) { goto WEXqE; } goto lfDyU; fIIp1: $lastVersions = json_decode(SCI::getConfigurationValue("SC_VERSIONS_LAST", 0), true); goto v3AnR; LOmcB: runProcessOneTimeByDay(); goto wliJq; xIIyY: $localVersions = json_decode(SCI::getConfigurationValue("SC_VERSIONS", 0), true); goto LYYCl; c9JxT: GiR2D: goto Ia1Bf; b98vH: if (empty($officialversions_decoded->StoreCommander)) { goto TSCv9; } goto KCIQe; MltMu: g2K6I: goto kjFfF; iY0N4: fzVa5: goto w_DJL; vUOfC: foreach ($lastVersions as $key => $lv) { goto yGfNi; QIomC: $toUpdate[$key] = $lv; goto PmIDw; h7K4O: N_5i3: goto Hbrr_; Hbrr_: goto bR1bH; goto aIabL; tOlZA: XGnS8: goto A5PES; aIabL: gB0KB: goto Ygvyz; In4fN: rrFN_: goto KequH; Ygvyz: $toUpdate[$key] = $lv; goto MJIq0; yGfNi: if (!array_key_exists($key, $toUpdate)) { goto gB0KB; } goto Wtx73; PmIDw: goto N_5i3; goto In4fN; KequH: unset($toUpdate[$key]); goto h7K4O; MJIq0: bR1bH: goto tOlZA; Wtx73: if ($toUpdate[$key]["version"] >= $lv["version"] && !$forceUpdate) { goto rrFN_; } goto QIomC; A5PES: } goto iY0N4; wliJq: xWORw: goto D8Fqw; ub5it: } goto jEoH3; HC1CC: $SC_TYPE = "SUBSCRIPTION MULTI+"; goto k8twk; iv627: if (empty($check["status"]) || !empty($check["status"]) && $check["status"] == "500") { goto i_Mee; } goto nt91s; ffTD1: define("SC_CSV_IMPORT_DIR", realpath(SC_PS_PATH_ADMIN_DIR . "import/") . "/"); goto pfoUD; l7uBL: o803o: goto FEDVp; HhMFp: define("SC_GRIDSEDITOR_INSTALLED", true); goto mn8zH; WIr1D: if ($check["type"] == 6) { goto tKLA1; } goto n666L; dRT2Z: $demos["7c60b43c1ce64861e2d8f36a0ac1b554"] = "ps8"; goto k7ejv; wrkSL: $SC_TYPE = "SUBSCRIPTION MULTI+"; goto MUm7a; gKLOj: umTWN: goto HQl5g; BUvka: @ini_set("display_errors", "on"); goto gLPgC; BLdyk: $SC_TYPE_NUM = ''; goto ZYZnM; kStAK: OPTNT: goto LPM9I; oTyay: goto VCnm9; goto Jov3V; GUSDq: if (count($exploded_licence) == 2 && $exploded_licence[0] == "SC-PS-RBM") { goto yrOBA; } goto SOvt9; AilX1: $headers = "Content-type: application/x-www-form-urlencoded"; goto dblQq; Y6UK2: if (!empty($check["status"]) && $check["status"] == "4") { goto DQK5L; } goto O7Rot; nLsXI: DQK5L: goto lB3tu; xseAd: goto VCnm9; goto tYxym; ikjcy: if (!(defined("SC_TinyPNG_ACTIVE") && SC_TinyPNG_ACTIVE == "1")) { goto YX8HJ; } goto IPpgr; lvO6E: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomerMapping.php"; goto IHs36; vwq8x: define("SC_CSV_IMPORT_CONF", "import.conf.xml"); goto H08oc; abeAZ: iTUM8: goto EfTbD; HfY0i: function getWallet() { goto fR5kG; ZYvs2: $posts = array(); goto YUkoN; YUkoN: $posts["KEY"] = "gt789zef132kiy789u13v498ve15nhry98"; goto u5mNb; kbbr_: $posts["URLCALLING"] = "#"; goto tFwos; nM8RL: $return = $ret["wallet"]; goto GJuVC; Mdah7: $headers = array(); goto ZYvs2; u5mNb: $posts["LICENSE"] = "#"; goto kbbr_; GJuVC: Configuration::updateValue("SC_WALLET_AMOUNT", $return); goto ao1Bx; tFwos: $posts["SUBSCRIPTION"] = "1"; goto qvnyd; rpNUx: if (!(!empty($ret["code"]) && isset($ret["wallet"]) && $ret["code"] == "200")) { goto OReDO; } goto nM8RL; ao1Bx: OReDO: goto Ng6Kd; fR5kG: global $spbas; goto IyzPi; qvnyd: $ret = makeCallToOurApi("Fizz/getAmount", $headers, $posts); goto rpNUx; IyzPi: $return = 0; goto Ibb56; Ibb56: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto Mdah7; Ng6Kd: return $return; goto MRknS; MRknS: } goto km0HH; n666L: if ($check["type"] == 7) { goto zj3ck; } goto bcAa8; X7AKS: YX8HJ: goto dt6qi; VTXOD: require_once SC_DIR . "lib/php/extension/segmentation/segment_custom.php"; goto YpzW4; xHyUo: goto NFUgT; goto ZuCn9; CTknI: djQOi: goto hO9P3; pMQjM: if (empty($forceLangIso)) { goto m6WEg; } goto fYFsp; VQNDd: VCnm9: goto qqWcT; IkJ2p: j95k8: goto F9i2E; jA8Id: lNNPF: goto FOMZY; uYIJL: require_once SC_DIR . "lib/php/extension/export_customer/ExportCustomerFields.php"; goto My8Aw; N8fvP: displayFirstLoginPage($result); goto sHQhM; yEINd: SCI::addLog("SC - not same employee - cookie:" . $cookie_mail . " mail:" . $sc_agent->email); goto D0lxr; lCC32: function getExtensionDetail($extensionName) { goto eBUEg; H12K4: xYL8J: goto ctBH2; ctBH2: return array(); goto mYUkV; EwE_U: $extensions_foldername_version = array_column($extensionList, null, "folder_name"); goto QdT_F; QdT_F: if (!isset($extensions_foldername_version[$extensionName])) { goto xYL8J; } goto ZtSqY; ZtSqY: return $extensions_foldername_version[$extensionName]; goto H12K4; eBUEg: $extensionList = getExtensionsList(); goto EwE_U; mYUkV: } goto OROCP; EfTbD: define("SCLIMREF", "Unlimited-Special"); goto gWb40; MkFcO: require_once SC_DIR . "lib/php/permissions.php"; goto c51ag; ZHqPG: goto KaD6H; goto QaG6n; ho1_n: $sc_agent = new SC_Agent(); goto W0AQi; W4jBd: if (!(!$ajax && !(isset($CRON) && $CRON == true && sc_in_array(Tools::getValue("action", ''), $CRONList, "licencesCronList")) && (!$sc_agent->isLoggedBack() || !$same_empl_url))) { goto lNNPF; } goto kzcM1; OGK27: if (defined("_SC_LOG_LIMIT_")) { goto rf810; } goto jRB9q; zm1Ne: goto KpfuH; goto tfQc_; DFxjk: gbqRD: goto bCkEa; hO9P3: if (!(($key != md5($id_employee . $datelastregen) || $sc_cookie->psap == '') && !(isset($CRON) && $CRON == true && sc_in_array(Tools::getValue("action", ''), $CRONList, "licencesCronList")))) { goto kb0J6; } goto Jc8dJ; LSMHE: @file_put_contents(_PS_CORE_IMG_DIR_ . "prestashop-login3.png", date("Y-m-d")); goto e5zq1; LDedX: $demos["f7bb858a3afdf6c36f943fa3a553a3c0"] = "Inconnu"; goto aIW5t; Ke3ES: define("SCMS", false); goto oYycs; A0IR8: define("SCMS", true); goto WpjDL; RdpSU: PZwmT: goto cA_tK; jRB9q: define("_SC_LOG_LIMIT_", "5242880"); goto UIOVH; khoAL: goto xwKCJ; goto h9HkU; ypybj: if (!version_compare(_PS_VERSION_, "1.7.3.0", ">=")) { goto eeaKX; } goto hkEoY; AGlMw: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=") && Configuration::get("PS_ADVANCED_STOCK_MANAGEMENT") == 1) { goto pg12W; } goto QJQgl; FXtaL: if (!defined("FORCE" . "_" . "EXTENSION" . "_" . "ACTIVE")) { goto qVfBt; } goto o3J6t; Py1jv: define("SC_PS_PATH_ADMIN_REL", "../../../../" . SCI::decrypt($sc_cookie->psap) . "/"); goto C3a63; wInyW: require_once SC_DIR . "lib/php/extension/export_order/ExportOrderTools.php"; goto hD4IR; OuDUW: $error_access = false; goto A_ur9; gLPgC: $debug = true; goto GgOkB; caCNP: @ini_set("display_errors", "off"); goto k8xm2; wuPP4: $demos["f54578b0606f76b591c96200c5325410"] = "Inconnu"; goto Vfgyf; sP_ZU: GHaoZ: goto JMma0; BsytQ: @file_put_contents("../DEBUG", ''); goto s1NKQ; aAkXf: die("Reset License ok"); goto IkJ2p; hOOBh: goto VCnm9; goto ygeBN; Jc8dJ: die(_l("You must be logged to use Store Commander.") . " Please check if you use an override: /override/classes/Cookie.php which could be incompatible."); goto j4zI_; mhGlR: if (!(!empty($user_lang_iso) && file_exists(SC_DIR . "lang/" . $user_lang_iso . ".php"))) { goto tohvU; } goto nvx4f; Rie_D: if ($ajax) { goto FBWyG; } goto DxsgH; QQo19: goto NFUgT; goto pg7cq; atfQR: if (!(Tools::getValue("firstLoginPageAct", '') == "setlicense")) { goto qkOhQ; } goto NqrzL; X_7XA: goto yE6l4; goto ojMzT; hkEoY: unset($scExtensions_filesToDelete["MultiplesFeatures"]); goto twnKv; CNNPh: $cgu_prefix = "terms"; goto wB_Nf; SOvt9: define("IS_RBM", false); goto R_TLo; bEkTQ: function removeUnwantedFiles() { goto DG8MA; DG8MA: if (!is_dir(SC_DIR . "_yakpro")) { goto WRRSV; } goto o5fEH; x1F9Z: WRRSV: goto QIBg3; o5fEH: dirRemove(SC_DIR . "_yakpro"); goto x1F9Z; QIBg3: }
goto uSn4K; Xlk61: G_Uqz: goto s0SsK; A5k8T: if (defined("SC_DEMO") && SC_DEMO || defined("SUB6TYP2") && in_array(SUB6TYP2, array(3, 4, 5, 7, 9, 10))) { goto nnC0T; } goto tFaTc; K7nzO: $menu_js_action .= " window.open('" . getScExternalLink("interface_customization") . "'); "; goto m32Al; n10ox: $shops = Db::getInstance()->ExecuteS($sql_shop); goto tiA_4; KSM8E: z78bw: goto W9bfx; rdS0I: $menu_js_action .= "
if(id=='catalog_pdf_read_install') {
window.open('" . $psModuleManagementBoUrl . "', '_blank');\xa }
if(id=='catalog_pdf_read_download') {\xa $.post('index.php?ajax=1&act=ser_download',{item:'CatalogPDF'}, function(response){\xa let responseData = JSON.parse(response);\xa if(responseData.status === 'error') {\xa dhtmlx.message({text:responseData.message,type:responseData.status,expire:10000});\xa } else {\xa dhtmlx.message({text:responseData.message,type:responseData.status,expire:-1});\xa window.open('" . $psModuleManagementBoUrl . "', '_blank');
}\xa });
}"; goto VP3B1; Qxot2: Kxdat: goto dEVJc; YFssi: axCnT: goto Oolmx; uA9Qk: $menu_js_action .= " if (id=='cat_import'){"; goto auOLt; cKZe0: wOUKG: goto PhDqL; y_nfP: $menu_js_action .= "
}
if (id=='cus_tools_format_capitalize'){
setFormatData('capitalize');
}\xa if (id=='cus_tools_format_uppercase'){
setFormatData('uppercase');
}
if (id=='emailing'){\xa alert('Not yet available');
}\xa if (id=='tools_clearcookies_all'){
clearConfigCookie('all');\xa }\xa if (id=='config_ebay'){\xa if (!dhxWins.isWindow('weBay'))
{\xa weBay = dhxWins.createWindow('weBay', 50, 50, 1000, $(window).height()-75);
weBay.setText('eBay');\xa weBay.attachURL('" . SC_PS_PATH_ADMIN_REL . "index.php?tab=AdminModules&configure=ebay&tab_module=market_place&module_name=ebay&token=" . $sc_agent->getPSToken("AdminModules") . "');\xa }
}
if (id=='config_createquickaccess'){\xa $.get('index.php?ajax=1&act=core_createlink', function(data){\xa dhtmlx.message({text:data,type:'info',expire:5000});\xa });\xa }
if (id=='permissions'){\xa if (!dhxWins.isWindow('wCorePermissions'))\xa {\xa wCorePermissions = dhxWins.createWindow('wCorePermissions', 50, 50, Math.min($(window).width()-100, 1000), $(window).height()-75);\xa wCorePermissions.setText('" . _l("User permissions", 1) . "');
$.get('index.php?ajax=1&act=core_permissions_init',function(data){
$('#jsExecute').html(data);
});\xa }\xa }
if (id=='config_createcsvimportsample'){
$.get('index.php?ajax=1&act=core_install_cat_import', function(data){
dhtmlx.message({text:data,type:'info',expire:5000});\xa });
}
if (id=='config_createcsvexportsample'){
$.get('index.php?ajax=1&act=core_install_cat_export', function(data){\xa alert(data);\xa document.location='index.php';
});\xa }
if (id=='config_changehashdir'){
"; goto bP8lY; BjH4g: if (!($menuConfiguration["Tools"] != '')) { goto qyC29; } goto kDE2Y; Catah: $eval = "?" . ">" . $menuConfiguration["ToolsActions"]; goto v6rzZ; qfUF5: goto OAuP9; goto dLH2c; u2dCX: $menu_js_action .= "if (id=='teaser_quickaccounting_read'){ "; goto Ajj1A; wmdLM: if (!$scModulesInfos["scaffiliation"]["installed"]) { goto wOUKG; } goto ZlGaB; UuQ1e: $menu_js_action .= "\xa if (id=='link_psbo'){
window.open('" . SC_PS_PATH_ADMIN_REL . "index.php');\xa }
if (id=='link_ps'){
window.open('http://www.prestashop.com');
}\xa if (id=='mar_affiliation'){
wAffiliation = dhxLayout.dhxWins.createWindow('wAffiliation', 0, 25, $(window).width(), $(window).height()-25);\xa wAffiliation.setText('" . _l("Affiliation program", 1) . "');\xa $.get('index.php?ajax=2&p=affiliation/affiliation',function(data){
$('#jsExecute').html(data);
});
wAffiliation.attachEvent('onClose', function(win){
wAffiliation.hide();
});\xa }
if (id=='teaser_affiliation_read'){ "; goto Rp2gs; kn529: goto KH9JJ; goto cjjv_; Hy3tQ: $pdt_toolbar_js_action .= " open_cms_grid = false; "; goto hHEnS; rDK2O: $menu_js_action .= "\xa }
if (id=='cus_import'){"; goto FUNZZ; g9RG6: kuhcN: goto wE3QZ; kDE2Y: $menuConfiguration["Tools"] .= "'<item id="sepTools" type="separator"/>'+"; goto k4kcj; JrhBf: $menu_js_action .= "\xa if (id=='help_bug'){ "; goto IxZhQ; hd8AV: $ids = Tools::getValue("open_cms_grid", 0); goto h48o0; Qenld: if (!$scModulesInfos["scpdfcatalog"]["installed"]) { goto HWJ2z; } goto VPKF4; YcnM2: foreach ($sc_tools_list as $tool) { goto G8l5L; TodZi: if (!(file_exists(SC_TOOLS_DIR . $tool . "/manManufacturerProperties.xml") && ($op = simplexml_load_file(SC_TOOLS_DIR . $tool . "/manManufacturerProperties.xml")))) { goto qJ0VI; } goto p_mDj; sAgCY: $pluginOrderProperties["ToolbarButtons"] .= $op->Property->ToolbarButtons; goto kpOkj; b0ymq: if (!(file_exists(SC_TOOLS_DIR . $tool . "/cmsPageProperties.xml") && ($op = simplexml_load_file(SC_TOOLS_DIR . $tool . "/cmsPageProperties.xml")))) { goto XXZcZ; } goto MOTHj; hoSDw: $pluginCmsProperties["HideToolbarButtons"] .= $op->Property->HideToolbarButtons; goto bB2KY; RKp81: nLwCi: goto ljluJ; hxq7x: $pluginManufacturerProperties["ToolbarStateActions"] .= $op->Property->ToolbarStateActions; goto hfpp2; G8l5L: if (!in_array($tool, $scExtensions_toDisabledInScTools)) { goto qJqDB; } goto SLxtW; ylZoW: $pluginOrderProperties["Title"] .= $op->Property->Title; goto sAgCY; qHDIk: $pluginCustomerProperties["Title"] .= $cp->Property->Title; goto bz6F1; cqAhX: $pluginOrderProperties["DisplayPlugin"] .= $op->Property->DisplayPlugin; goto Px8Xk; bB2KY: $pluginCmsProperties["doOnCmsRowSelected"] .= $op->Property->doOnCmsRowSelected; goto gNog0; NqtWM: $pluginOrderProperties["HideToolbarButtons"] .= $op->Property->HideToolbarButtons; goto fpBue; zrB3A: $pluginCmsProperties["ToolbarStateActions"] .= $op->Property->ToolbarStateActions; goto hoSDw; fpBue: $pluginOrderProperties["doOnOrderRowSelected"] .= $op->Property->doOnOrderRowSelected; goto cqAhX; ltUue: $pluginOrderProperties["ToolbarStateActions"] .= $op->Property->ToolbarStateActions; goto NqtWM; FZb3d: $pluginProductProperties["DisplayPlugin"] .= $pp->Property->DisplayPlugin; goto RKp81; qO34k: $pluginManufacturerProperties["DisplayPlugin"] .= $op->Property->DisplayPlugin; goto nkegM; PAU6r: $pluginProductProperties["HideToolbarButtons"] .= $pp->Property->HideToolbarButtons; goto ZgXqD; BFplm: $pluginCustomerProperties["ToolbarActions"] .= $cp->Property->ToolbarActions; goto FJ70w; nkegM: qJ0VI: goto dsOl4; Oo9e3: $pluginProductProperties["ToolbarActions"] .= $pp->Property->ToolbarActions; goto MXRA5; Ortw1: $pluginCustomerProperties["DisplayPlugin"] .= $cp->Property->DisplayPlugin; goto rl7Kd; rMMPF: $pluginProductProperties["Title"] .= $pp->Property->Title; goto ftJ7T; q1JLm: $pluginCmsProperties["ToolbarButtons"] .= $op->Property->ToolbarButtons; goto IYT1v; gNog0: $pluginCmsProperties["DisplayPlugin"] .= $op->Property->DisplayPlugin; goto TMsB0; kpOkj: $pluginOrderProperties["ToolbarActions"] .= $op->Property->ToolbarActions; goto ltUue; MOTHj: $pluginCmsProperties["Title"] .= $op->Property->Title; goto q1JLm; p_mDj: $pluginManufacturerProperties["Title"] .= $op->Property->Title; goto N3Rkl; hfpp2: $pluginManufacturerProperties["HideToolbarButtons"] .= $op->Property->HideToolbarButtons; goto fiXGu; HF81F: $pluginCustomerProperties["HideToolbarButtons"] .= $cp->Property->HideToolbarButtons; goto L0XIF; xqldP: if (!(file_exists(SC_TOOLS_DIR . $tool . "/ordOrderProperties.xml") && ($op = simplexml_load_file(SC_TOOLS_DIR . $tool . "/ordOrderProperties.xml")))) { goto Esyj2; } goto ylZoW; bz6F1: $pluginCustomerProperties["ToolbarButtons"] .= $cp->Property->ToolbarButtons; goto BFplm; rl7Kd: l2bR6: goto xqldP; zxlx5: qJqDB: goto cO1sN; ZgXqD: $pluginProductProperties["doOnProductRowSelected"] .= $pp->Property->doOnProductRowSelected; goto FZb3d; SLxtW: goto g72qZ; goto zxlx5; Px8Xk: Esyj2: goto b0ymq; LwuuZ: $pluginManufacturerProperties["ToolbarActions"] .= $op->Property->ToolbarActions; goto hxq7x; IYT1v: $pluginCmsProperties["ToolbarActions"] .= $op->Property->ToolbarActions; goto zrB3A; ljluJ: if (!(file_exists(SC_TOOLS_DIR . $tool . "/cusCustomerProperties.xml") && ($cp = simplexml_load_file(SC_TOOLS_DIR . $tool . "/cusCustomerProperties.xml")))) { goto l2bR6; } goto qHDIk; fiXGu: $pluginManufacturerProperties["doOnManufacturerRowSelected"] .= $op->Property->doOnManufacturerRowSelected; goto qO34k; dsOl4: g72qZ: goto Vx0sD; ftJ7T: $pluginProductProperties["ToolbarButtons"] .= $pp->Property->ToolbarButtons; goto Oo9e3; cO1sN: if (!(file_exists(SC_TOOLS_DIR . $tool . "/catProductProperties.xml") && ($pp = simplexml_load_file(SC_TOOLS_DIR . $tool . "/catProductProperties.xml")))) { goto nLwCi; } goto rMMPF; L0XIF: $pluginCustomerProperties["doOnCustomerRowSelected"] .= $cp->Property->doOnCustomerRowSelected; goto Ortw1; N3Rkl: $pluginManufacturerProperties["ToolbarButtons"] .= $op->Property->ToolbarButtons; goto LwuuZ; TMsB0: XXZcZ: goto TodZi; FJ70w: $pluginCustomerProperties["ToolbarStateActions"] .= $cp->Property->ToolbarStateActions; goto HF81F; MXRA5: $pluginProductProperties["ToolbarStateActions"] .= $pp->Property->ToolbarStateActions; goto PAU6r; Vx0sD: } goto BWb11; m32Al: $menu_js_action .= " }\xa if (id=='win_grids_editor'){
if (!dhxWins.isWindow('toolsSCGridsEditor'))
{\xa toolsSCGridsEditor = dhxWins.createWindow('toolsSCGridsEditor', 50, 50, $(window).width()-100, $(window).height()-100);\xa toolsSCGridsEditor.setText('" . _l("Interface customization", 1) . "');\xa toolsSCGridsEditor.attachEvent('onClose', function(win){\xa toolsSCGridsEditor.hide();\xa return false;
});\xa $.get('index.php?ajax=1&act=all_win-gridseditor_init',function(data){\xa $('#jsExecute').html(data);
});\xa
}else{\xa $.get('index.php?ajax=1&act=all_win-gridseditor_init',function(data){\xa $('#jsExecute').html(data);
});\xa toolsSCGridsEditor.show();
}\xa }
if (id=='win_terminator'){
if (!dhxWins.isWindow('toolsTerminator'))
{
toolsTerminator = dhxWins.createWindow('toolsTerminator', 50, 50, $(window).width()-100, $(window).height()-100);
toolsTerminator.setText('" . _l("Shop cleaning and optimization", 1) . "');\xa toolsTerminator.attachEvent('onClose', function(win){
toolsTerminator.hide();\xa return false;\xa });\xa $.get('index.php?ajax=1&act=all_win-terminator_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa\xa }else{\xa $.get('index.php?ajax=1&act=all_win-terminator_init',function(data){
$('#jsExecute').html(data);\xa });\xa toolsTerminator.show();
}\xa }\xa if (id=='fixmyprestashop'){
if (!dhxWins.isWindow('wFixmyprestashop'))\xa {\xa wFixmyprestashop = dhxWins.createWindow('wFixmyprestashop', 50, 50, $(window).width()-100, $(window).height()-100);
wFixmyprestashop.setText('FixMyPrestashop');
wFixmyprestashop.attachEvent('onClose', function(win){
wFixmyprestashop.hide();
return false;\xa });\xa $.get('index.php?ajax=1&act=all_win-fixmyprestashop_init',function(data){
$('#jsExecute').html(data);
});\xa
}else{\xa $.get('index.php?ajax=1&act=all_win-fixmyprestashop_init',function(data){\xa $('#jsExecute').html(data);
});
wFixmyprestashop.show();
}\xa }"; goto wmdLM; mM5Fy: $menu_js_action .= "\xa if(SC_PAGE=='cus_tree')\xa {
if (casState.ctrl == true) {\xa window.open('index.php?page=cus_tree');\xa }\xa }else{
if (casState.ctrl == true) {\xa window.open('index.php?page=cus_tree');\xa } else {\xa document.location='index.php?page=cus_tree';\xa }
}"; goto GtQua; exFsa: if (!(SC_ExportOrders_ACTIVE == 1 && _r("MENU_ORD_EXPORTORDERS"))) { goto Qjien; } goto PmCRl; auOLt: $menu_js_action .= " if (!dhxWins.isWindow('wImport')) {\xa wImport = dhxWins.createWindow('wImport', 50, 50, 1100, $(window).height()-75);
wImport.setText('" . _l("Import - Backup your base before any mass update!", 1) . "');
$.get('index.php?ajax=1&act=cat_win-import_init',function(data){
$('#jsExecute').html(data);
});\xa wImport.attachEvent('onClose', function(win){
wImport.hide();\xa return false;
});
}else{
$.get('index.php?ajax=1&act=cat_win-import_init',function(data){
$('#jsExecute').html(data);\xa });\xa wImport.show();
}
"; goto NMKw9; fAWur: $menu_js_action .= "\xa }
if (id=='mar_segmentation' || id=='too_segmentation'){\xa if (!dhxWins.isWindow('toolsSegmentationWindow'))\xa {
toolsSegmentationWindow = dhxWins.createWindow('toolsSegmentationWindow', 50, 50, $(window).width()-100, $(window).height()-100);
toolsSegmentationWindow.setText('" . _l("Segmentation", 1) . "');
toolsSegmentationWindow.attachEvent('onClose', function(win){\xa toolsSegmentationWindow.hide();
return false;\xa });\xa $.get('index.php?ajax=1&act=all_win-segmentation_init',function(data){
$('#jsExecute').html(data);\xa });\xa\xa }else{
$.get('index.php?ajax=1&act=all_win-segmentation_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa toolsSegmentationWindow.show();\xa }
}\xa if (id=='teaser_segmentation_read' || id=='too_teaser_segmentation_read'){\xa if (!dhxWins.isWindow('wSegTrialWindow'))
{
wSegTrialWindow = dhxWins.createWindow('wSegTrialWindow', 50, 50, 670, 550);\xa wSegTrialWindow.setText('" . _l("Segments management", 1) . "');
}
wSegTrialWindow.attachURL('index.php?ajax=1&act=all_gettrialtime&id_lang='+SC_ID_LANG+'&item=segmentation');\xa }"; goto t4tXV; u5Ty4: $pdt_toolbar_js_action .= " open_sup_grid = false; "; goto aJf4k; zwspu: nPHlr: goto QWmiD; qyFrs: if (!empty($ids)) { goto z78bw; } goto u5Ty4; wzEuv: $pluginOrderProperties["Title"] = trim(trim($pluginOrderProperties["Title"]), ","); goto gqFya; guGkg: XyJIp: goto oHdI2; PhsY_: $pdt_toolbar_js_action .= "
open_man_grid = true;
display_man_after_cat_select = false;\xa display_man_after_select_view = false;
open_man_id_cat = " . $tmps[0] . ";
open_man_id_page = " . $tmps[1] . ";\xa open_man_id_attr = " . (!empty($tmps[2]) ? $tmps[2] : "0") . ";
man_tree.openItem(open_man_id_cat);\xa man_tree.selectItem(open_man_id_cat,false);\xa manselection=open_man_id_cat; "; goto g9RG6; pvpiA: if (!($pluginProductProperties["Title"] != '')) { goto axCnT; } goto hEGjG; hBCAv: $menu_js_action .= " }
if(id=='ord_cartrules') {\xa if (!dhxWins.isWindow('wCartRules')) {
wCartRules = dhxWins.createWindow('wCartRules', 0, 28, $(window).width(), $(window).height()-28);\xa wCartRules.setText('" . _l("Discount vouchers (cart rules)", 1) . "');\xa $.get('index.php?ajax=1&act=ord_win-cartrules_init',function(data){\xa $('#jsExecute').html(data);
});\xa wCartRules.attachEvent('onClose', function(win){
wCartRules.hide();
return false;\xa });
}else{\xa $.get('index.php?ajax=1&act=ord_win-cartrules_init',function(data){
$('#jsExecute').html(data);
});\xa wCartRules.show();\xa }
}\xa if(id=='ord_states') {
if (!dhxWins.isWindow('wOrderStates')) {
wOrderStates = dhxWins.createWindow('wOrderStates', 0, 28, $(window).width()/1.1, $(window).height()/1.1);
wOrderStates.center();\xa wOrderStates.setText('" . _l("Manage order statuses", 1) . "');\xa $.get('index.php?ajax=1&act=ord_win-states_init',function(data){
$('#jsExecute').html(data);
});\xa wOrderStates.attachEvent('onClose', function(win){
wOrderStates.hide();\xa return false;
});
}else{\xa $.get('index.php?ajax=1&act=ord_win-states_init',function(data){\xa $('#jsExecute').html(data);
});
wOrderStates.show();
}\xa }\xa if(id=='ord_win_makeorder') {"; goto A5k8T; MMTKd: $menu_js_action .= "
}
if (id=='help_updates' || id=='help_updates2'){
window.open('" . getScExternalLink("support_update_history") . "');\xa }
if (id=='version' || id=='version2'){\xa if (!dhxWins.isWindow('wCoreUpdate'))
{\xa wCoreUpdate = dhxWins.createWindow('wCoreUpdate', 50, 50, 900, $(window).height()-75);\xa wCoreUpdate.setText('" . _l("Store Commander update", 1) . "');
wCoreUpdate.attachURL('index.php?ajax=1&act=core_update');
wCoreUpdate.setModal(true);\xa }else{\xa wCoreUpdate.show();\xa }\xa }
if (id=='cat_rebuildsumstock'){
$.get('index.php?ajax=1&act=cat_rebuildsumstock',function(data){\xa dhtmlx.message({text:data,type:'info',expire:5000});
});
}\xa if (id=='cat_rebuildleveldepth'){
if (!dhxWins.isWindow('wRebuildLevelDepth'))
{\xa wRebuildLevelDepth = dhxWins.createWindow('wRebuildLevelDepth', 200, 100, 400, 250);\xa wRebuildLevelDepth.setText('" . _l("Check and fix categories", 1) . "');\xa wRebuildLevelDepth.attachEvent('onClose', function(win){
wRebuildLevelDepth.hide();
return false;\xa });
$.post('index.php?ajax=1&act=cat_win-rebuildleveldepth_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa\xa }else{
$.post('index.php?ajax=1&act=cat_win-rebuildleveldepth_init',function(data){
$('#jsExecute').html(data);
});\xa wRebuildLevelDepth.show();\xa }
}
if (id=='cat_rebuildlangfield'){\xa $.get('index.php?ajax=1&act=cat_rebuildlangfield',function(data){\xa dhtmlx.message({text:data,type:'info',expire:5000});\xa });\xa }\xa if (id=='cat_rebuildproductprice'){\xa if (confirm('" . _l("Are you sure you want to rebuild product prices?", 1) . "'))\xa $.get('index.php?ajax=1&act=cat_rebuildproductprice',function(data){\xa dhtmlx.message({text:data,type:'info',expire:5000});\xa });\xa }\xa if (id=='cat_fillcoverimage'){\xa $.get('index.php?ajax=1&act=cat_fillcoverimage',function(data){
dhtmlx.message({text:data,type:'info',expire:5000});\xa });\xa }
if (id=='help_test'){
if (!dhxWins.isWindow('wTest'))
{\xa wTest = dhxWins.createWindow('wTest', 50, 50, 750, $(window).height()-75);\xa wTest.button('park').hide();\xa wTest.button('minmax').hide();
wTest.setText('Test');
}else{
wTest.show();\xa }
wTest.attachURL('index.php?ajax=1&act=test');
wTest.attachEvent('onClose', function(win){
wTest.hide();
return false;
});\xa }\xa if (id=='trends_shop'){
if (!dhxWins.isWindow('wTrendsShop'))
{
wTrendsShop = dhxWins.createWindow('wTrendsShop', 50, 50, $(window).width()-75, $(window).height()-75);
wTrendsShop.setText('" . _l("Stats and trends", 1) . "');\xa $.get('index.php?ajax=1&act=all_win-trendsshop_init',function(data){
$('#jsExecute').html(data);
});
}else{
wTrendsShop.show();\xa }\xa wTrendsShop.attachEvent('onClose', function(win){
wTrendsShop.hide();
return false;
});
}
"; goto TR82_; FNMZe: u0Iit: goto a1zb6; FUNZZ: $menu_js_action .= "\xa if (!dhxWins.isWindow('wImportCus')) {
wImportCus = dhxWins.createWindow('wImportCus', 50, 50, 1100, $(window).height()-75);
wImportCus.setText('" . _l("Import - Backup your base before any mass update!", 1) . "');\xa $.get('index.php?ajax=1&act=cus_win-import_init',function(data){\xa $('#jsExecute').html(data);
});
wImportCus.attachEvent('onClose', function(win){\xa wImportCus.hide();
return false;
});\xa }else{\xa $.get('index.php?ajax=1&act=cus_win-import_init',function(data){\xa $('#jsExecute').html(data);\xa });
wImportCus.show();
}
"; goto h7Aee; DVu20: if (!($pluginCmsProperties["Title"] != '')) { goto y0YAN; } goto dhy70; tFaTc: $menu_js_action .= " window.open('" . getScExternalLink("support_creating_order") . "'); "; goto VqTaP; bx7ag: $menu_js_action .= " if (!dhxWins.isWindow('wCatImport')) {\xa wCatImport = dhxWins.createWindow('wCatImport', 50, 50, 1050, $(window).height()-75);\xa wCatImport.setText('" . _l("Import - Backup your base before any mass update!", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-catimport_init',function(data){\xa $('#jsExecute').html(data);
});
wCatImport.attachEvent('onClose', function(win){
wCatImport.hide();\xa return false;
});\xa }else{
$.get('index.php?ajax=1&act=cat_win-catimport_init',function(data){
$('#jsExecute').html(data);\xa });\xa wCatImport.show();\xa }\xa "; goto xN7wH; YQVoF: $menu_js_action .= " if (id=='ord_orders'){ "; goto luN2p; r9INF: $menu_js_action .= " } "; goto adVvx; YlpLM: lLZAg: goto Xlk61; xaR4L: WvaQI: goto tYr2w; UQqPM: Xx9U2: goto igNNA; RgVdZ: $pluginManufacturerProperties = array("Title" => '', "ToolbarButtons" => '', "ToolbarActions" => '', "ToolbarStateActions" => '', "HideToolbarButtons" => '', "doOnManufacturerRowSelected" => '', "DisplayPlugin" => ''); goto zPzGo; izoj4: $url = "index.php?controller=AdminTerminator&token=" . $sc_agent->getPSToken("AdminTerminator"); goto rVI6D; Oolmx: if (!($pluginCustomerProperties["Title"] != '')) { goto qvSDk; } goto V_X7q; mqz0L: $menu_js_action .= " }\xa if (id=='cat_resetpricedropreductions'){\xa if (confirm('" . _l("Are you sure you want to reset prices drop reductions?", 1) . "'))
{\xa $.get('index.php?ajax=1&act=cat_resetpricedrop&action=reductions', function(data){\xa displayProducts();
});\xa } "; goto hf0cm; xel_E: $menu_js_action .= "if (id=='cat_tree'){\xa if(SC_PAGE=='cat_tree')\xa {\xa if (casState.ctrl == true){
window.open('index.php?page=cat_tree');
} else {
tree_mode='single';
cat.cells('a').expand();
cat_tb.setItemState('withSubCateg', false, true);
cat_productPanel.setText('" . _l("Products", 1) . " " . _l("of", 1) . "'+cat_tree.getItemText(catselection));\xa }\xa }else{\xa if (casState.ctrl == true){\xa window.open('index.php?page=cat_tree');
} else {\xa document.location='index.php?page=cat_tree';
}
}
}
if (id=='cat_grid'){\xa if(SC_PAGE=='cat_tree')
{\xa if (casState.ctrl == true){\xa window.open('index.php?page=cat_tree&displayAllProducts=1');\xa } else {\xa cat.cells('a').collapse();\xa catselection=1;
cat_tree.openItem(catselection);
cat_tree.selectItem(catselection,false);
cat_tb.setItemState('withSubCateg', true, true);
cat_productPanel.setText('" . _l("Products list", 1) . "');\xa }
}else{
if (casState.ctrl == true) {
window.open('index.php?page=cat_tree&displayAllProducts=1');
} else {
document.location='index.php?page=cat_tree&displayAllProducts=1';\xa }
}
}\xa if (id=='ser_page404'){\xa if (!dhxWins.isWindow('wPageNotFound'))\xa {
wPageNotFound = dhxWins.createWindow('wPageNotFound', 50, 50, 1000, $(window).height()-75);\xa wPageNotFound.setText('" . _l("Page not found 404", 1) . "');\xa $.get('index.php?ajax=1&act=ser_win-pagenotfound404_init',function(data){
$('#jsExecute').html(data);\xa });\xa }\xa }\xa if (id=='ser_emptysmartycache'){\xa $.get('index.php?ajax=1&act=ser_emptysmartycache',function(data){\xa dhtmlx.message({text:data,type:'info',expire:5000});\xa });
}
if (id=='cat_history'){\xa if (!dhxWins.isWindow('wCatHistory'))
{\xa wCatHistory = dhxWins.createWindow('wCatHistory', 50, 50, 940, $(window).height()-75);
wCatHistory.setText('" . _l("Browse history", 1) . "'); // and cancel modifications\xa $.get('index.php?ajax=1&act=all_changehistory_init',function(data){\xa $('#jsExecute').html(data);
});
}\xa }\xa
if (id=='core_queuelogs'){\xa openQueueLogWindow();
}
if (id=='core_settings'){
openSettingsWindow();
}\xa if (id=='core_languagehelp'){\xa window.open('" . getScExternalLink("multi_language") . "');\xa }\xa if (id.substr(0,14)=='core_language_'){\xa $.post('index.php?ajax=1&act=all_uisettings_update&id_lang='+SC_ID_LANG+'&'+new Date().getTime(), {'name':'forceSCLangIso', 'data':id.substr(14,2)},function(data){\xa document.location = document.location;
});
}
if (id=='core_languageupdate'){
if (!dhxWins.isWindow('wCoreUpdateTranslations'))\xa {
wCoreUpdateTranslations = dhxWins.createWindow('wCoreUpdateTranslations', 50, 50, 900, $(window).height()-75);\xa wCoreUpdateTranslations.setText('" . _l("Store Commander translations update", 1) . "');
wCoreUpdateTranslations.attachURL('index.php?ajax=1&act=core_update_translations');
wCoreUpdateTranslations.setModal(true);
}else{
wCoreUpdateTranslations.show();\xa }
}
if (id=='cat_resetpricedropdates'){ "; goto VTfrO; OFZxk: $menu_js_action .= " }
if (id=='teaser_gridseditor_read'){ "; goto K7nzO; KaWJ_: $prop_toolbar_js_action .= ob_get_contents(); goto sjpo9; ZlGaB: $menu_js_action .= "\xa if (id=='affiliation'){\xa pushOneUsage('menu-bo-link-installed-scaffiliation');
if (!dhxWins.isWindow('wAffiliation'))
{\xa wAffiliation = dhxWins.createWindow('wAffiliation', 0, 25, $(window).width(), $(window).height()-25);
wAffiliation.setText('" . _l("Affiliation program", 1) . "');\xa wAffiliation.attachEvent('onClose', function(win){
wAffiliation.hide();\xa return false;
});\xa $.get('index.php?ajax=1&act=all_win-affiliation_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa
}else{
$.get('index.php?ajax=1&act=all_win-affiliation_init',function(data){
$('#jsExecute').html(data);
});\xa wAffiliation.show();
}
}"; goto cKZe0; fT0Zn: foreach ($shops as $shop) { goto k2Snf; x8Ps7: Tx_AF: goto f4htR; OIQFc: bN29N: goto x8Ps7; Hl5xe: $menu_js_action .= " if (id=='link_psfront_shop_" . $shop["id_shop"] . "'){
window.open('" . $url[0]["url"] . "');\xa } "; goto OIQFc; CdeeM: if (empty($url[0]["url"])) { goto bN29N; } goto Hl5xe; k2Snf: $url = Db::getInstance()->ExecuteS("SELECT *, CONCAT("http://", domain, physical_uri, virtual_uri) AS url\xa FROM " . _DB_PREFIX_ . "shop_url
WHERE id_shop = " . (int) $shop["id_shop"] . "\xa AND active = "1"\xa ORDER BY main DESC\xa LIMIT 1"); goto CdeeM; f4htR: } goto YlpLM; NpZSi: eval($eval); goto EFPfQ; TfVTL: $menu_js_action .= "
if(id=='scc_lab') {\xa if (!dhxWins.isWindow('wScclab'))\xa {\xa wScclab = dhxWins.createWindow('wScclab', 50, 50, $(window).width()-100, $(window).height()-100);
wScclab.setText('SCC Lab');
wScclab.attachEvent('onClose', function(win){
wScclab.hide();
return false;
});
$.get('index.php?ajax=1&act=all_win-scclab_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa }else{\xa $.get('index.php?ajax=1&act=all_win-scclab_init',function(data){
$('#jsExecute').html(data);\xa });
wScclab.show();\xa }\xa }"; goto ojN84; PmCRl: $menu_js_action .= "
if (id=='acc_quickaccounting')
{
if (!dhxWins.isWindow('wExportOrders'))
{\xa wExportOrders = dhxWins.createWindow('wExportOrders', 50, 50, $(window).width()-100, $(window).height()-100);\xa wExportOrders.setText('" . _l("Order Export Pro", 1) . "');
wExportOrders.attachEvent('onClose', function(win){
wExportOrders.hide();\xa return false;
});\xa $.get('index.php?ajax=1&act=ord_win-export_init',function(data){
$('#jsExecute').html(data);
});
}else{\xa $.get('index.php?ajax=1&act=ord_win-export_init',function(data){\xa $('#jsExecute').html(data);\xa });
wExportOrders.show();\xa }
} \xa "; goto OsF4y; QWmiD: $menu_js_action .= "\xa if (id=='link_pse'){
window.open('https://www.storecommander.com');
}\xa if (id=='help_help'){
window.open('" . getScExternalLink("support_home") . "');
}\xa if (id=='help_tips_display'){\xa if (!dhxWins.isWindow('wTips'))
{\xa wTips = dhxWins.createWindow('wTips', 150, 30, 800, Math.min(725,$(window).height()-30));
wTips.button('park').hide();
wTips.button('minmax').hide();
wTips.setText('" . _l("Tips", 1) . " - " . _l("Find all tips in Help > Tips", 1) . "');
wTips.attachURL('tips/index.php?disp=fronttip&lang=" . $user_lang_iso . "&id_employee=" . $sc_agent->id_employee . "', true);\xa wTips.attachEvent('onClose', function(win){
return true;\xa });\xa }else{\xa wTips.attachURL('tips/index.php?disp=fronttip&lang=" . $user_lang_iso . "&id_employee=" . $sc_agent->id_employee . "', true);
wTips.show();\xa }\xa }
if (id=='help_tips_settings'){
if (!dhxWins.isWindow('wTips'))\xa {
wTips = dhxWins.createWindow('wTips', 150, 30, 800, Math.min(725,$(window).height()-30));
wTips.button('park').hide();\xa wTips.button('minmax').hide();\xa wTips.setText('" . _l("Tips", 1) . "');\xa wTips.attachURL('tips/index.php?disp=preference&lang=" . $user_lang_iso . "&id_employee=" . $sc_agent->id_employee . "', true);
wTips.attachEvent('onClose', function(win){\xa return true;
});
}else{\xa wTips.attachURL('tips/index.php?disp=preference&lang=" . $user_lang_iso . "&id_employee=" . $sc_agent->id_employee . "', true);\xa wTips.show();\xa }
}\xa if (id=='help_enterlicense'){
if (!dhxWins.isWindow('wEnterLicense'))\xa {\xa wEnterLicense = dhxWins.createWindow('wEnterLicense', 300, 200, 600, 300);\xa wEnterLicense.setModal(true);
wEnterLicense.button('park').hide();\xa wEnterLicense.button('minmax').hide();\xa wEnterLicense.setText('" . _l("Enter your license key", 1) . "');\xa wEnterLicense.attachURL('index.php?ajax=1&act=core_license&a=displaysetform', true);
wEnterLicense.attachEvent('onClose', function(win){\xa\xa if (dhxWins.isWindow('wUpgradeLicense')) {setTimeout('wUpgradeLicense.setModal(true);',1);}\xa return true;
});
}
}"; goto JrhBf; b963k: $menu_js_action .= " wSpecificPrice = dhxWins.createWindow('wSpecificPrice', 0, 28, $(window).width(), $(window).height()-28);\xa wSpecificPrice.setText('" . _l("Specific prices", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-specificprice_init',function(data){\xa $('#jsExecute').html(data);\xa });
wSpecificPrice.attachEvent('onClose', function(win){
wSpecificPrice.hide();
return false;
});\xa }else{\xa $.get('index.php?ajax=1&act=cat_win-specificprice_init',function(data){
$('#jsExecute').html(data);
});
wSpecificPrice.show();\xa }\xa }\xa if (id=='cat_export'){ "; goto tuxsd; cq6rt: $menu_js_action .= "
if (id=='cus_groupmanagement'){\xa if (!dhxWins.isWindow('wGroupManagement'))
{
wGroupManagement = dhxWins.createWindow('wGroupManagement', 50, 50, 1050, $(window).height()-75);
wGroupManagement.setText('" . _l("Customer groups", 1) . "');
$.get('index.php?ajax=1&act=cus_win-groupmanagement_init',function(data){\xa $('#jsExecute').html(data);
});
wGroupManagement.attachEvent('onClose', function(win){
wGroupManagement.hide();
return false;\xa });
}else{\xa wGroupManagement.show();
}
} "; goto uA9Qk; K9Cv2: $menu_js_action .= "\xa if (id=='eservices_project'){
loadWindoweServicesProject();
}
if(id=='tools_links_manage'){\xa openSettingsWindow('Application','Menu');\xa }\xa
if(id=='early_access') \xa {\xa if (!dhxWins.isWindow('wEarlyAccess'))\xa {
wEarlyAccess = dhxWins.createWindow('wEarlyAccess', 50, 50, 330, 280);
dhxWins.window('wEarlyAccess').center();\xa wEarlyAccess.setText('" . _l("Early Access", 1) . "');\xa $.get('index.php?ajax=1&act=all_win-earlyaccess_init',function(data){
$('#jsExecute').html(data);\xa });
}else{
wEarlyAccess.show();\xa wEarlyAccess.bringToTop();
}
}
"; goto Catah; EFPfQ: $menu_js_action .= ob_get_contents(); goto kSxJU; tuxsd: if (!file_exists(SC_CSV_EXPORT_DIR) || !file_exists(SC_TOOLS_DIR) || !file_exists(SC_TOOLS_DIR . "cat_export/") || !file_exists(SC_TOOLS_DIR . "cat_categories_sel/")) { goto xpj1z; } goto Fy0OV; t4tXV: if (!getScSessionItemValue("early_access", "scc")) { goto ErZZ6; } goto TfVTL; W9bfx: $tmps = explode("-", $ids); goto R1Ce3; IxZhQ: $menu_js_action .= "
if (!dhxWins.isWindow('wBugReport'))
{\xa wBugReport = dhxWins.createWindow('wBugReport', 50, 50, 750, $(window).height()-75);\xa wBugReport.button('park').hide();
wBugReport.button('minmax').hide();
wBugReport.setText('Support');\xa }else{
wBugReport.show();
}\xa wBugReport.attachURL('" . getScExternalLink("contact") . "&email=" . $sc_agent->email . "&firstname=" . urlencode($sc_agent->firstname) . "&name=" . urlencode($sc_agent->lastname) . "&content_only=1');\xa wBugReport.attachEvent('onClose', function(win){\xa wBugReport.hide();\xa return false;
}); "; goto MMTKd; xm2j9: $url = "index.php?tab=AdminTerminator&token=" . $sc_agent->getPSToken("AdminTerminator"); goto kn529; k4kcj: qyC29: goto Qxot2; iq0hz: $menu_js_action .= " wVATScheduler.attachURL('" . SC_PS_PATH_ADMIN_REL . "index.php?tab=AdminModules&configure=scvatscheduler&token=" . $sc_agent->getPSToken("AdminModules") . "&tab_module=billing_invoicing&module_name=scvatscheduler'); "; goto DOqw2; dEVJc: $menu_js_action = ''; goto xel_E; IWm84: s7KE7: goto ZqXO_; Ajj1A: $menu_js_action .= " window.open('" . getScExternalLink("export_orders_pro") . "');\xa pushOneUsage('menu-bo-link-scquickaccounting'); "; goto oCut_; JFQhL: uYM9N: goto gPLRo; wVcKF: NcJae: goto nmrun; BWb11: QjI2x: goto pvpiA; kSxJU: ob_end_clean(); goto zylQi; gPLRo: $pluginProductProperties = array("Title" => '', "ToolbarButtons" => '', "ToolbarActions" => '', "ToolbarStateActions" => '', "HideToolbarButtons" => '', "doOnProductRowSelected" => '', "DisplayPlugin" => ''); goto X2wIN; EpbSY: $scModulesInfos = SCI::getScModulesInfos(); goto XzEif; tiA_4: if (!(!empty($shops) && count($shops) > 1)) { goto G_Uqz; } goto fT0Zn; mUOq5: if (!($pluginManufacturerProperties["Title"] != '')) { goto Avtux; } goto g2d0U; Gpwk4: OAuP9: goto r9INF; DrpHU: nnC0T: goto h12iG; eCy_M: $menu_js_action .= "
}
if (id=='link_psfront'){\xa window.open('" . SC_PS_PATH_REL . "index.php');
} "; goto r2RWE; PhDqL: $menu_js_action .= "\xa if(id=='affiliation_install') {
window.open('" . $psModuleManagementBoUrl . "', '_blank');
}\xa if(id=='affiliation_download') {\xa $.post('index.php?ajax=1&act=ser_download',{item:'Affiliation'}, function(response){\xa let responseData = JSON.parse(response);\xa if(responseData.status === 'error') {\xa dhtmlx.message({text:responseData.message,type:responseData.status,expire:10000});\xa } else {\xa dhtmlx.message({text:responseData.message,type:responseData.status,expire:-1});\xa window.open('" . $psModuleManagementBoUrl . "', '_blank');\xa }
});
}\xa if (id=='teaser_fixmyps_read'){ "; goto mqM83; gqFya: nWxhU: goto DVu20; yVwh6: Avtux: goto xaR4L; hEGjG: $pluginProductProperties["Title"] = trim(trim($pluginProductProperties["Title"]), ","); goto YFssi; KDERH: qIjWm: goto CdbiK; V_X7q: $pluginCustomerProperties["Title"] = trim(trim($pluginCustomerProperties["Title"]), ","); goto kDj4f; GkMzB: $pluginCmsProperties = array("Title" => '', "ToolbarButtons" => '', "ToolbarActions" => '', "ToolbarStateActions" => '', "HideToolbarButtons" => '', "doOnCmsRowSelected" => '', "DisplayPlugin" => ''); goto RgVdZ; DYy2c: $menu_js_action .= " window.open('" . getScExternalLink("export_customer_pro") . "');
pushOneUsage('menu-bo-link-scexportcustomers'); "; goto OFZxk; oKR7u: $psModuleManagementBoUrl = SC_PS_PATH_ADMIN_REL . "index.php?" . (version_compare(_PS_VERSION_, "1.5.0.0", ">=") ? "controller=AdminModules" : "tab=AdminModules") . "&token=" . $sc_agent->getPSToken("AdminModules"); goto buxPo; Rp2gs: $menu_js_action .= " window.open('" . getScExternalLink("affiliation_programm") . "'); "; goto fAWur; adVvx: $as_version = SCI::getModuleVersion("pm_advancedsearch4"); goto HpLIY; HpLIY: if (!(SCI::moduleIsInstalled("pm_advancedsearch4") && version_compare($as_version, "4.12.0", ">=") && defined("SC_AdvancedSearchSeo_ACTIVE") && SC_AdvancedSearchSeo_ACTIVE)) { goto SfQEh; } goto Y1dCs; mqM83: $menu_js_action .= " window.open('" . getScExternalLink("fixmyprestashop") . "');
pushOneUsage('menu-bo-link-scaffiliation'); "; goto nXkBW; r2RWE: $menu_js_action .= "if (id=='cms_tree'){
if(SC_PAGE=='cms_tree')
{
if (casState.ctrl == true) {\xa window.open('index.php?page=cms_tree');\xa } else {\xa tree_mode='single';
cms.cells('a').expand();
cms_tb.setItemState('withSubCateg', false, true);
cms_pagePanel.setText('" . _l("Cms", 1) . " " . _l("of", 1) . "'+cms_tree.getItemText(cmsselection));
}
}else{
if (casState.ctrl == true) {
window.open('index.php?page=cms_tree');
} else {\xa document.location='index.php?page=cms_tree';\xa }\xa }
}"; goto PlTcG; fEwAG: $menu_js_action .= "\xa if(SC_PAGE=='cusm_tree')
{\xa if (casState.ctrl == true){\xa window.open('index.php?page=cusm_tree');
}
}else{
if (casState.ctrl == true) {
window.open('index.php?page=cusm_tree');
} else {\xa document.location='index.php?page=cusm_tree';
}\xa }"; goto y_nfP; XzEif: $menuConfiguration = array("Tools" => '', "ToolsActions" => ''); goto kakUh; CdbiK: $menu_js_action .= "\xa wVATScheduler.attachEvent('onClose', function(win){\xa wVATScheduler.hide();\xa });
}"; goto YiG1M; saSEq: $menu_js_action .= " if (confirm('" . _l("Are you sure you want to reset all prices drop?", 1) . "'))
{\xa $.get('index.php?ajax=1&act=cat_resetpricedrop&action=delsales', function(data){
displayProducts();\xa });
} "; goto EZFFV; ArcYC: $menu_js_action .= " }"; goto klF2V; pg_M8: goto kuhcN; goto guGkg; yOZ15: $pdt_toolbar_js_action .= "
oldGridView=gridView;
gridView=id;
\xa // UISettings
cat_grid._uisettings_name=cat_grid._uisettings_prefix+gridView;\xa\xa cat_grid_tb.setItemText('gridview',gridnames[id]);\xa $(document).ready(function(){
displayProducts();\xa }); "; goto hd8AV; VTfrO: $menu_js_action .= " if (confirm('" . _l("Are you sure you want to reset prices drop dates?", 1) . "'))
{
$.get('index.php?ajax=1&act=cat_resetpricedrop&action=dates', function(data){\xa displayProducts();\xa });\xa } "; goto mqz0L; v6rzZ: ob_start(); goto NpZSi; ueKBE: $menu_js_action .= " if (!dhxWins.isWindow('wCatExport')) {
wCatExport = dhxWins.createWindow('wCatExport', 50, 50, 1050, $(window).height()-75);\xa wCatExport.setText('" . _l("Categories", 1) . " - " . _l("CSV Export", 1) . "');
$.get('index.php?ajax=1&act=cat_win-catexport_init',function(data){\xa $('#jsExecute').html(data);
});\xa wCatExport.attachEvent('onClose', function(win){\xa wCatExport.hide();\xa return false;
});
}else{
$.get('index.php?ajax=1&act=cat_win-catexport_init',function(data){\xa $('#jsExecute').html(data);\xa });
wCatExport.show();\xa }
"; goto rDK2O; igNNA: $menu_js_action .= " wVATScheduler.attachURL('" . SC_PS_PATH_ADMIN_REL . "index.php?controller=AdminModules&configure=scvatscheduler&token=" . $sc_agent->getPSToken("AdminModules") . "&tab_module=billing_invoicing&module_name=scvatscheduler'); "; goto KDERH; GXHWo: $eval = "?" . ">" . $pluginProductProperties["ToolbarActions"]; goto iKeiD; NMKw9: $menu_js_action .= "
}
if (id=='cat_catimport'){"; goto bx7ag; a1zb6: $tmps = explode("-", $ids); goto unoJf; X2wIN: $pluginCustomerProperties = array("Title" => '', "ToolbarButtons" => '', "ToolbarActions" => '', "ToolbarStateActions" => '', "HideToolbarButtons" => '', "doOnCustomerRowSelected" => '', "DisplayPlugin" => ''); goto fa4sT; cjjv_: jnfFD: goto izoj4; OsF4y: Qjien: goto u2dCX; tYr2w: $prop_toolbar_js_action = "prop_tb._sb.setText('');"; goto GXHWo; wE3QZ: $ids = Tools::getValue("open_sup_grid", 0); goto qyFrs; oCut_: $menu_js_action .= " }
if (id=='acc_vatscheduler'){\xa wVATScheduler = dhxLayout.dhxWins.createWindow('wVATScheduler', 0, 25, $(window).width(), $(window).height()-25);
wVATScheduler.setText('" . _l("VAT Scheduler", 1) . "'); "; goto iqkvJ; h48o0: if (!empty($ids)) { goto u0Iit; } goto Hy3tQ; nXkBW: $menu_js_action .= " }\xa\xa if (id=='teaser_terminator_read'){ window.open('" . getScExternalLink("module_terminator") . "'); }"; goto exFsa; zSoMC: QkJE3: goto BjH4g; buxPo: if ($ajax) { goto hZKah; } goto EpbSY; jYJ3q: $sql_shop = "SELECT id_shop, name
FROM " . _DB_PREFIX_ . "shop
WHERE deleted != '1'"; goto n10ox; ZqXO_: $menu_js_action .= "if (id=='teaser_cus_export_read'){ "; goto DYy2c; dPpxC: eval($eval); goto KaWJ_; YiG1M: if (!SCI::moduleIsInstalled("scterminator")) { goto nPHlr; } goto NEnM_; oHdI2: $tmps = explode("-", $ids); goto PhsY_; rVI6D: KH9JJ: goto zgCOW; nmrun: $ids = Tools::getValue("open_man_grid", 0); goto BA4oY; rEx2p: vsV5x: goto ArcYC; T9YIc: $menu_js_action .= "if (id=='cus_export')
{
if (!dhxWins.isWindow('wExportCustomers'))\xa {
wExportCustomers = dhxWins.createWindow('wExportCustomers', 50, 50, $(window).width()-100, $(window).height()-100);\xa wExportCustomers.setText('" . _l("Customer Export Pro", 1) . "');
wExportCustomers.attachEvent('onClose', function(win){
wExportCustomers.hide();\xa return false;\xa });\xa $.get('index.php?ajax=1&act=cus_win-export_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa }else{\xa $.get('index.php?ajax=1&act=cus_win-export_init',function(data){
$('#jsExecute').html(data);\xa });\xa wExportCustomers.show();\xa }\xa }"; goto IWm84; D4iCh: HWJ2z: goto rdS0I; EZFFV: $menu_js_action .= " }\xa if (id=='cat_attributes'){
if (!dhxWins.isWindow('wAttributes'))
{\xa wAttributes = dhxWins.createWindow('wAttributes', 50, 50, 900, $(window).height()-75);\xa wAttributes.setText('" . _l("Attributes and groups", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-attribute_init',function(data){
$('#jsExecute').html(data);
});\xa wAttributes.attachEvent('onClose', function(win){\xa wAttributes.hide();
return false;\xa });
}else{
wAttributes.show();
}
}
if (id=='cat_features'){\xa if (!dhxWins.isWindow('wFeatures'))
{\xa wFeatures = dhxWins.createWindow('wFeatures', 50, 50, 900, $(window).height()-75);
wFeatures.setText('" . _l("Features", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-feature_init',function(data){
$('#jsExecute').html(data);
});
wFeatures.attachEvent('onClose', function(win){
wFeatures.hide();\xa return false;\xa });\xa }else{
wFeatures.show();\xa }
}\xa
if (id=='cat_impexp_attr_translation' || id=='cat_impexp_feat_translation'){
if (!dhxWins.isWindow('wImpExpTranslation'))\xa {
wImpExpTranslation = dhxWins.createWindow('wImpExpTranslation', 50, 50, 900, $(window).height()-75);
$.get('index.php?ajax=1&act=cat_win-impexptranslation_init',function(data){\xa $('#jsExecute').html(data);
});
}else{\xa wImpExpTranslation.show();\xa }
}
if (id=='man_tree'){
if(SC_PAGE=='man_tree')
{
if (casState.ctrl == true) {
window.open('index.php?page=man_tree');\xa } else {
tree_mode='single';
man.cells('a').expand();
}\xa }else{
if (casState.ctrl == true) {
window.open('index.php?page=man_tree');
} else {\xa document.location='index.php?page=man_tree';
}
}\xa }\xa if (id == 'man_import') {\xa if (!dhxWins.isWindow('wManImport')) {\xa wManImport = dhxWins.createWindow('wManImport', 50, 50, 1100, $(window).height() - 75);\xa wManImport.setText('" . _l("Import - Backup your base before any mass update!", 1) . "');\xa $.get('index.php?ajax=1&act=man_win-import_init', function (data) {
$('#jsExecute').html(data);\xa });
wManImport.attachEvent('onClose', function (win) {
wManImport.hide();\xa return false;\xa });\xa } else {
$.get('index.php?ajax=1&act=man_win-import_init', function (data) {\xa $('#jsExecute').html(data);
});\xa wManImport.show();\xa }
}
\xa if (id=='sup_tree'){
if(SC_PAGE=='sup_tree')\xa {\xa if (casState.ctrl == true) {
window.open('index.php?page=sup_tree');\xa } else {
tree_mode='single';
sup.cells('a').expand();
}\xa }else{\xa if (casState.ctrl == true) {\xa window.open('index.php?page=sup_tree');\xa } else {
document.location='index.php?page=sup_tree';
}\xa }\xa }\xa "; goto cq6rt; VqTaP: goto vsV5x; goto DrpHU; GtQua: $menu_js_action .= "
}
if (id=='cusm_customersservice'){"; goto fEwAG; fa4sT: $pluginOrderProperties = array("Title" => '', "ToolbarButtons" => '', "ToolbarActions" => '', "ToolbarStateActions" => '', "HideToolbarButtons" => '', "doOnOrderRowSelected" => '', "DisplayPlugin" => ''); goto GkMzB; s2ePG: if (!SC_TOOLS) { goto WvaQI; } goto YcnM2; kf6HS: $prop_toolbar_js_action .= " dhxLayout.cells('b').showHeader(); "; goto jBXBw; kakUh: if (!SC_TOOLS) { goto Kxdat; } goto Zr3FC; BA4oY: if (!empty($ids)) { goto XyJIp; } goto V1bes; Fy0OV: $menu_js_action .= " if (!dhxWins.isWindow('wExport')) {\xa wExport = dhxWins.createWindow('wExport', 50, 50, 1200, $(window).height()-75);
wExport.setText('" . _l("CSV Export", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-export_init',function(data){
$('#jsExecute').html(data);\xa });\xa wExport.attachEvent('onClose', function(win){\xa wExport.hide();\xa return false;\xa });
}else{
$.get('index.php?ajax=1&act=cat_win-export_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa wExport.show();\xa } "; goto qfUF5; eUGtO: if (!($pluginOrderProperties["Title"] != '')) { goto nWxhU; } goto wzEuv; xN7wH: $menu_js_action .= "
}
if (id=='cat_catexport'){"; goto ueKBE; TR82_: $menu_js_action .= "if (id=='eservices'){\xa if (!dhxWins.isWindow('weServices'))
{
weServices = dhxWins.createWindow('weServices', 50, 50, $(window).width()-75, $(window).height()-75);
weServices.setText('" . _l("e-Services", 1) . " - " . _l("Managing your addons and services", 1) . "');\xa $.get('index.php?ajax=1&act=all_fizz_win-cart_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa }else{
weServices.show();
}
}
"; goto K9Cv2; dcSzu: y0YAN: goto mUOq5; uSn4K: $scExtensions_toDisabledInScTools = array("fixmyprestashop", "multiplefeatures", "win_grids_editor", "win_grids_editor_pro", "segmentation", "segmentproperties", "affiliation"); goto oKR7u; aJf4k: goto uYM9N; goto KSM8E; sjpo9: ob_end_clean(); goto kf6HS; zgCOW: $menu_js_action .= "
if (id=='terminator'){\xa wTerminator = dhxLayout.dhxWins.createWindow('wTerminator', 0, 25, $(window).width(), $(window).height()-25);\xa wTerminator.setText('" . _l("Database cleaning and optimization", 1) . "');\xa wTerminator.attachURL('" . SC_PS_PATH_ADMIN_REL . $url . "');
wTerminator.attachEvent('onClose', function(win){\xa wTerminator.hide();\xa });\xa } "; goto zwspu; iqkvJ: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto Xx9U2; } goto iq0hz; dhy70: $pluginCmsProperties["Title"] = trim(trim($pluginCmsProperties["Title"]), ","); goto dcSzu; s0SsK: kMIhZ: goto UuQ1e; dLH2c: xpj1z: goto NKvSi; NEnM_: if (version_compare(_PS_VERSION_, "1.5.0.0", ">=")) { goto jnfFD; } goto xm2j9; zylQi: $pdt_toolbar_js_action = ''; goto yOZ15; zPzGo: $pluginSupplierProperties = array("Title" => '', "ToolbarButtons" => '', "ToolbarActions" => '', "ToolbarStateActions" => '', "HideToolbarButtons" => '', "doOnSupplierRowSelected" => '', "DisplayPlugin" => ''); goto s2ePG; g2d0U: $pluginManufacturerProperties["Title"] = trim(trim($pluginManufacturerProperties["Title"]), ","); goto yVwh6; VP3B1: if (!(SC_ExportCustomers_ACTIVE == 1 && _r("MENU_CUS_EXPORTCUSTOMERS"))) { goto s7KE7; } goto T9YIc; luN2p: $menu_js_action .= " if(SC_PAGE=='ord_tree')\xa {\xa if (casState.ctrl == true) {\xa window.open('index.php?page=ord_tree');
}\xa } else {
if (casState.ctrl == true) {\xa window.open('index.php?page=ord_tree');\xa } else {\xa document.location='index.php?page=ord_tree';
}
}"; goto hBCAv; Zr3FC: foreach ($sc_tools_list as $tool) { goto cOeBh; ifWEZ: goto koK91; goto Sypfm; pxumD: $menuConfiguration["ToolsActions"] .= $mc->menuTools->actions; goto y2cok; gG282: $menuConfiguration["Tools"] .= $mc->menuTools->content; goto pxumD; y2cok: naS4B: goto lO4ta; Sypfm: Z4s_x: goto bf4w6; lO4ta: koK91: goto wBoi4; cOeBh: if (!in_array($tool, $scExtensions_toDisabledInScTools)) { goto Z4s_x; } goto ifWEZ; bf4w6: if (!(file_exists(SC_TOOLS_DIR . $tool . "/menu.xml") && ($mc = simplexml_load_file(SC_TOOLS_DIR . $tool . "/menu.xml")))) { goto naS4B; } goto gG282; wBoi4: } goto zSoMC; Y1dCs: $menu_js_action .= "
if (id=='cat_advancedsearchseo'){
if (!dhxWins.isWindow('wAdvancedSearchSeo')) {\xa wAdvancedSearchSeo = dhxWins.createWindow('wAdvancedSearchSeo', 50, 50, $(window).width()-100, $(window).height()-75);\xa wAdvancedSearchSeo.setText('" . _l("%s - SEO Pages", 1, array("Advanced Search")) . "');
$.get('index.php?ajax=1&act=cat_win-advancedsearchseo_init',function(data){\xa $('#jsExecute').html(data);\xa });
wAdvancedSearchSeo.attachEvent('onClose', function(win){
wAdvancedSearchSeo.hide();
return false;
});\xa }else{
$.get('index.php?ajax=1&act=cat_win-advancedsearchseo_init',function(data){
$('#jsExecute').html(data);
});
wAdvancedSearchSeo.show();\xa }
}
"; goto Onkon; Onkon: SfQEh: goto YQVoF; iKeiD: ob_start(); goto dPpxC; bP8lY: $menu_js_action .= "dhtmlx.confirm({\xa title: '" . _l("Change security key", 1) . "',\xa text: '" . _l("Changing the security key will change the name of Store Commander's security directory.<br/><br/><strong>Beware:</strong><br/>Everyone currently using SC will need to restart Store Commander from the backoffice. Please let the users know!<br/><br/>If CRON tasks are in place, remember to change the URL path in the tasks configuration files.<br/><br/><a href="%s" target="blank">Get more information</a>", 1, array(getScExternalLink("support_change_security_key"))) . "',\xa callback: function(result) {\xa if(result==true)\xa {
$.post('index.php?ajax=1&act=core_changehashdir&', {current_url: window.location.href}, function(data){\xa if(data!=undefined && data!='' && data!=null)
document.location=data;
});\xa }
}
});"; goto eCy_M; hf0cm: $menu_js_action .= " }\xa if (id=='cat_resetpricedrop'){ "; goto saSEq; kDj4f: qvSDk: goto eUGtO; hHEnS: goto NcJae; goto FNMZe; klF2V: $menu_js_action .= "\xa if (id=='cus_customers'){"; goto mM5Fy; NKvSi: $menu_js_action .= "dhtmlx.message({text:'" . _l("To run exports, you need to install samples files from Tools > Installation", 1) . "<br/><a target="_blank" href="" . getScExternalLink("support_csv_export_install") . "">" . _l("Read more", 1) . "</a>',type:'error'});"; goto Gpwk4; unoJf: $pdt_toolbar_js_action .= "
open_cms_grid = true;
display_cms_after_cat_select = true;
display_cms_after_select_view = false;
open_cms_id_cat = " . $tmps[0] . ";\xa open_cms_id_page = " . $tmps[1] . ";\xa open_cms_id_attr = " . (!empty($tmps[2]) ? $tmps[2] : "0") . ";\xa\xa cms_tree.openItem(open_cms_id_cat);
cms_tree.selectItem(open_cms_id_cat,false);
cmsselection=open_cms_id_cat; "; goto wVcKF; V1bes: $pdt_toolbar_js_action .= " open_man_grid = false; "; goto pg_M8; VPKF4: $menu_js_action .= "
if(id=='catalog_pdf_read') {\xa window.open('" . SC_PS_PATH_ADMIN_REL . "index.php?" . (version_compare(_PS_VERSION_, "1.5.0.0", ">=") ? "controller=AdminSCPDFCatalog" : "tab=AdminSCPDFCatalog") . "&token=" . $sc_agent->getPSToken("AdminSCPDFCatalog") . "');\xa pushOneUsage('menu-bo-link-installed-scpdfcatalog');
}"; goto D4iCh; ojN84: ErZZ6: goto Qenld; h7Aee: $menu_js_action .= "
}
if(id=='cat_synchro_cats_positions'){
if (!dhxWins.isWindow('wSynchroCatsPos'))\xa {
wSynchroCatsPos = dhxWins.createWindow('wSynchroCatsPos', 50, 50, 800, 500);
wSynchroCatsPos.setText('" . _l("Synchronize the categories positions on multiple shops", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-categorysynch_init',function(data){\xa $('#jsExecute').html(data);
});
wSynchroCatsPos.setModal(true);\xa }else{\xa $.get('index.php?ajax=1&act=cat_win-categorysynch_init',function(data){
$('#jsExecute').html(data);\xa });
wSynchroCatsPos.show();\xa wSynchroCatsPos.setModal(true);
}\xa }
if (id=='cat_management'){
if (!dhxWins.isWindow('wCatManagement'))\xa {
wCatManagement = dhxWins.createWindow('wCatManagement', 0, 28, $(window).width(), $(window).height()-28);
wCatManagement.setText('" . _l("Categories management", 1) . "');\xa $.get('index.php?ajax=1&act=cat_win-catmanagement_init',function(data){\xa $('#jsExecute').html(data);\xa });\xa wCatManagement.attachEvent('onClose', function(win){\xa wCatManagement.hide();\xa return false;\xa });\xa }else{
$.get('index.php?ajax=1&act=cat_win-catmanagement_init',function(data){\xa $('#jsExecute').html(data);
});
wCatManagement.show();
}
}
if (id=='cat_specificprice'){\xa if (!dhxWins.isWindow('wSpecificPrice'))
{ "; goto b963k; R1Ce3: $pdt_toolbar_js_action .= "
open_sup_grid = true;
display_sup_after_cat_select = false;\xa display_sup_after_select_view = false;\xa open_sup_id_cat = " . $tmps[0] . ";
open_sup_id_page = " . $tmps[1] . ";
open_sup_id_attr = " . (!empty($tmps[2]) ? $tmps[2] : "0") . ";\xa\xa sup_tree.openItem(open_sup_id_cat);
sup_tree.selectItem(open_sup_id_cat,false);\xa supselection=open_sup_id_cat;"; goto JFQhL; DOqw2: goto qIjWm; goto UQqPM; h12iG: $menu_js_action .= "\xa if (!dhxWins.isWindow('wMakeOrder')) {\xa wMakeOrder = dhxWins.createWindow('wMakeOrder', 50, 50, $(window).width()-75, $(window).height()-75);\xa wMakeOrder.maximize();
wMakeOrder.setText('" . _l("Create an order", 1) . "');\xa $.get('index.php?ajax=1&act=ord_win-makeorder_init',function(data){
$('#jsExecute').html(data);\xa });\xa wMakeOrder.attachEvent('onClose', function(win){
wMakeOrder.hide();
return false;
});\xa }else{\xa $.get('index.php?ajax=1&act=ord_win-makeorder_init',function(data){
$('#jsExecute').html(data);\xa });
wMakeOrder.show();
}"; goto rEx2p; PlTcG: if (!SCMS) { goto kMIhZ; } goto jYJ3q; jBXBw: hZKah:
goto nZl8T; kfA4e: class Dixit { public static $Dixit_onePerWord = 0.1; public static $Dixit_onePerWordAdvanced = 0.14; public static $Dixit_cost_onePerWord = 0.06; public static $Dixit_cost_onePerWordAdvanced = 0.09; public static function getPrice($textes, $advanced = false) { goto PrWnh; C0bJA: return $price; goto F_r7R; PrWnh: $nb_words = dixit_getTotalNbWords($textes); goto DFfco; DFfco: $price = $nb_words * ($advanced ? self::$Dixit_onePerWordAdvanced : self::$Dixit_onePerWord); goto C0bJA; F_r7R: } public static function getCost($textes, $advanced = false) { goto ke2QJ; BkBlG: $price = $nb_words * ($advanced ? self::$Dixit_cost_onePerWordAdvanced : self::$Dixit_cost_onePerWord); goto sO7po; ke2QJ: $nb_words = dixit_getTotalNbWords($textes); goto BkBlG; sO7po: return $price; goto X63cC; X63cC: } } goto P7e6B; Fs39S: class CutOut { public static $Cutout_onePerImage = 0.2; public static function getApiId() { return "6441"; } public static function getBaseUrl() { goto BR8Y4; sQfnL: return $api_url; goto IUn3M; j3W9F: $api_url = "https://" . $api_key . ":" . $api_pass . "@" . "clippingmagic.com/api/v1/"; goto sQfnL; LVmUt: $api_pass = "qhvhi44162d0n6brvgh3ohru8e1j1n3u0eogk9lmve3k7fmbghvf"; goto j3W9F; BR8Y4: $api_key = "6441"; goto LVmUt; IUn3M: } public static function getPrice($nb_images) { goto fgAWp; GlILR: return 0; goto WhxR2; Ma_5A: gAhFL: goto GlILR; T5KPr: goto JpJea; goto Ma_5A; WhxR2: JpJea: goto W3CWT; fgAWp: if (SC_DEMO || defined("SUB9EHS4PLUS") && SUB9EHS4PLUS == "1") { goto gAhFL; } goto atTDR; atTDR: return self::$Cutout_onePerImage * $nb_images; goto T5KPr; W3CWT: } public static function payment($nb_images) { goto gcZYZ; p1bYM: if (SC_DEMO || defined("SUB9EHS4PLUS") && SUB9EHS4PLUS == "1") { goto qkpsz; } goto piprB; v1jnS: vtwAS: goto eSqXk; Fx4V9: $posts["amount"] = 0; goto piVgA; uSSrZ: $posts["LICENSE"] = "#"; goto stQIs; stQIs: $posts["URLCALLING"] = "#"; goto p1bYM; nYTGx: Configuration::updateValue("SC_WALLET_AMOUNT", $ret["wallet"]); goto v1jnS; adUGI: $posts = array(); goto N5bQz; QMbvk: $posts["reason"] = "cut out image"; goto P23b1; tWbYp: $ret = makeCallToOurApi("Fizz/Transaction", $headers, $posts); goto KER4g; WdYMO: $licence = SCI::getConfigurationValue("SC_LICENSE_KEY"); goto P7EIf; d1429: goto rG6Wr; goto stlGs; gcZYZ: if (empty($nb_images)) { goto ua_Sv; } goto WdYMO; lj6_l: yBc50: goto tWbYp; N5bQz: $posts["KEY"] = "gt789zef132kiy789u13v498ve15nhry98"; goto uSSrZ; P7EIf: $headers = array(); goto adUGI; eSqXk: ua_Sv: goto crPB3; K1AUt: $posts["SUBSCRIPTION"] = "1"; goto lj6_l; P23b1: if (!(defined("IS_SUBS") && IS_SUBS == "1")) { goto yBc50; } goto K1AUt; stlGs: qkpsz: goto Fx4V9; piprB: $posts["amount"] = "-" . $nb_images * self::$Cutout_onePerImage; goto d1429; piVgA: rG6Wr: goto QMbvk; KER4g: if (!(!empty($ret["code"]) && $ret["code"] == "200")) { goto vtwAS; } goto nYTGx; crPB3: } public static function upload($image_path) { goto P5JoY; O13Fa: G9ndT: goto WxEF5; GKwSx: require_once SC_DIR . "lib/php/Requests/Requests.php"; goto a2x1D; ZQyjh: try { goto buyGn; ZNwfU: goto PVxuL; goto wVS0n; T0Sx7: $response = Requests::post($api_url, $header, $data); goto W0HLc; MS4sf: HeWlh: goto hNZX2; VQsm_: if (!empty($r["image"]["id"]) && !empty($r["image"]["secret"])) { goto yMiaJ; } goto yUgv2; VFAAw: goto nurng; goto MS4sf; DWSOA: return array("type" => "error", "message" => "error#" . $response->status_code); goto ZNwfU; buyGn: $header = array("Content-Type" => "multipart/form-data"); goto LonOo; hNZX2: return array("type" => "error", "message" => $r["error"]["message"]); goto XIkll; wVS0n: TK_U0: goto sTCC3; W0HLc: if ($response->status_code == "200" && $response->success) { goto TK_U0; } goto DWSOA; yUgv2: if (!empty($r["error"]["message"])) { goto HeWlh; } goto lgu3S; v8YiJ: yMiaJ: goto olu1I; XIkll: nurng: goto LAgCf; lgu3S: goto nurng; goto v8YiJ; olu1I: return $r["image"]; goto VFAAw; sTCC3: $r = json_decode($response->body, true); goto VQsm_; LAgCf: PVxuL: goto Wmy2j; LonOo: $data = array("image" => new Requests_File($image_path)); goto T0Sx7; Wmy2j: } catch (Exception $e) { return array("type" => "error", "message" => $e->getMessage()); } goto o8LbM; o8LbM: hzMnj: goto hnJuq; P5JoY: if (eServicesTools::checkHasFizz(self::$Cutout_onePerImage) === true || SC_DEMO || defined("SUB9EHS4PLUS") && SUB9EHS4PLUS == "1") { goto G9ndT; } goto jkzd1; jAWQ4: goto hzMnj; goto O13Fa; jkzd1: return array("type" => "error", "message" => _l("You don't have enough Fizz in your wallet for this action. Please buy Fizz in e-Services menu.")); goto jAWQ4; hnJuq: return array("type" => "error", "message" => _l("An error occured. Please contact our support.")); goto V3AQ1; WxEF5: $api_url = self::getBaseUrl() . "images"; goto GKwSx; a2x1D: Requests::register_autoloader(); goto ZQyjh; V3AQ1: } public static function download($id_image_cutout, $id_image) { goto uKlQ3; iXYMI: $headers = array(); goto dhV0Z; lT9uk: $posts = array(); goto AXZXV; Y51BQ: HkxEv: goto nevZo; ECIj6: Requests::register_autoloader(); goto J993J; vYqeL: if (!isJson($image_code)) { goto GOLfo; } goto PvMpX; nevZo: $ret = makeCallToOurApi("Fizz/Project/GetByType", $headers, $posts); goto kY4kq; Tfv1n: if (!(defined("IS_SUBS") && IS_SUBS == "1")) { goto HkxEv; } goto H5WsU; PvMpX: $return = 0; goto dcyAm; hYKPl: $posts["SUBSCRIPTION"] = "1"; goto crT9Y; gU1Go: cutout_createImage($id_image, $image_code); goto jWmLp; ncShW: $posts["URLCALLING"] = "#"; goto HxHXu; FcSM6: $posts["LICENSE"] = "#"; goto HHF54; uKlQ3: $return = 0; goto dcejr; vz8X7: require_once SC_DIR . "lib/php/Requests/Requests.php"; goto ECIj6; g19GJ: $projects = $ret["project"]; goto qHEhQ; HHF54: $posts["URLCALLING"] = "#"; goto pkfbU; jWmLp: $return = 1; goto w0GnC; F86Ld: $list_items = $projects[0]["list_items"]; goto Z4YxJ; crT9Y: i_1_A: goto oAmAr; pkfbU: $posts["type"] = "cutout"; goto Tfv1n; AXZXV: $posts["KEY"] = "gt789zef132kiy789u13v498ve15nhry98"; goto FcSM6; dcyAm: goto ZnQ82; goto tJpdg; ywLUR: $new_list_items = "-" . $new_list_items; goto J5xo1; ce4AN: $new_list_items = ''; goto hj6rL; dcejr: $api_url = self::getBaseUrl() . "images/" . $id_image_cutout; goto tsmHk; H5WsU: $posts["SUBSCRIPTION"] = "1"; goto Y51BQ; Qn9Tv: if (empty($projects)) { goto XLYF4; } goto gZwwk; g1fY0: dKChE: goto CiPg9; gZwwk: $id_project = $projects[0]["id_project"]; goto F86Ld; kY4kq: if (!(!empty($ret["code"]) && $ret["code"] == "200")) { goto UaiVp; } goto g19GJ; LdFkr: $posts["LICENSE"] = "#"; goto ncShW; CiPg9: if (empty($new_list_items)) { goto tN6cO; } goto ywLUR; dhV0Z: $posts = array(); goto kp5rB; tJpdg: GOLfo: goto SR2Zq; kYgWp: if (!(defined("IS_SUBS") && IS_SUBS == "1")) { goto i_1_A; } goto hYKPl; PcrbE: XLYF4: goto gU1Go; tsmHk: $image_code = ''; goto vz8X7; YqFLt: return $return; goto aLuiZ; oAmAr: $ret = makeCallToOurApi("Fizz/Project/Update/" . $id_project, $headers, $posts); goto PcrbE; kp5rB: $posts["KEY"] = "gt789zef132kiy789u13v498ve15nhry98"; goto LdFkr; SR2Zq: $headers = array(); goto lT9uk; HxHXu: $posts["list_items"] = $new_list_items; goto kYgWp; J5xo1: tN6cO: goto iXYMI; J993J: try { goto flb0W; KTgLe: $image_code = $response->body; goto ep2Dy; flb0W: $response = Requests::get($api_url); goto ZuKAl; ep2Dy: xz1jK: goto T_erz; ZuKAl: if (!($response->status_code == "200" && !empty($response->body))) { goto xz1jK; } goto KTgLe; T_erz: } catch (Exception $e) { } goto vYqeL; qHEhQ: UaiVp: goto Qn9Tv; Z4YxJ: $res = explode("-", trim($list_items, "-")); goto ce4AN; hj6rL: foreach ($res as $id) { goto mrGQZ; OqTaX: $new_list_items .= $id . "-"; goto jWe7g; jWe7g: IlRAG: goto Pj2kD; mrGQZ: if (!($id != $id_image)) { goto IlRAG; } goto OqTaX; Pj2kD: gvB9T: goto r0hcV; r0hcV: } goto g1fY0; w0GnC: ZnQ82: goto YqFLt; aLuiZ: } } goto kfA4e; nZl8T: class eServicesTools { public static function checkHasFizz($price) { goto dDbnx; dDbnx: $wallet_amount = getWallet(); goto Co7lg; Co7lg: if ($wallet_amount >= $price) { goto xRTGH; } goto ZnwBo; G4nz6: ainAk: goto sFBwV; w8fZG: return true; goto G4nz6; xKpaD: xRTGH: goto w8fZG; ZnwBo: return false; goto P7GYN; P7GYN: goto ainAk; goto xKpaD; sFBwV: } } goto Fs39S; P7e6B: class CompressionImg { public static function convertFizzToCredit($id_project, $params, &$fizz_amount, &$credit_amount) { goto t2BC9; PCD4P: $url_params = (array) $params["url_params"]; goto zYSnw; Lx21e: return array("error" => $error, "message" => $message); goto njIrJ; IDt2t: sLTMv: goto oqDGD; oqDGD: if (eServicesTools::checkHasFizz($nb_fizz_to_decrement)) { goto zvKmb; } goto FrMFc; r5asr: if (array_key_exists($nb_fizz_to_decrement, $lot_credit)) { goto sLTMv; } goto imd4N; imd4N: $error = true; goto rW6SJ; MPRz7: $credit_amount = (int) $project_params["allowed_image_amount"]; goto KCBpH; rSLAa: goto Z7ltx; goto mnHun; XY7iK: $transaction_params = $url_params; goto cD6RG; n6oAB: $update_project = makeCallToOurApi("Fizz/Project/Update/" . $id_project, array(), $credit_update_params); goto xZhld; AlOMW: if ($nb_fizz_to_decrement > 0) { goto AQyOP; } goto FPIID; n12ux: $error = false; goto AlOMW; ydhnG: goto C2knk; goto E9j9I; xZhld: if (!empty($update_project) && $update_project["code"] == 200) { goto utHmu; } goto bvWKc; AiYDu: if (!empty($decrement_fizz_wallet) && $decrement_fizz_wallet["code"] == 200) { goto RjEhH; } goto bcyZI; cLO3N: $message = _l("Error") . _l(":") . " " . _l("Impossible to convert %s Fizz to %s image credits.", null, array($nb_fizz_to_decrement, $lot_credit[$nb_fizz_to_decrement]["label"])) . " " . _l("Please contact our support"); goto ETW3G; FrMFc: $error = true; goto G6rkZ; GezUe: Z7ltx: goto EKhpC; DyAn4: $message = _l("Error") . _l(":") . " " . _l("This amount of Fizz is wrong") . _l(":") . "0"; goto ydhnG; PoLrM: $lot_credit = (array) $params["lot_credit"]; goto PCD4P; eyPdt: $credit_update_params = $url_params; goto GRQuN; mnHun: utHmu: goto MPRz7; zYSnw: $project_params = (array) $params["project_params"]; goto n12ux; G6rkZ: $message = _l("Error") . _l(":") . " " . _l("Not enough Fizz. Refill your wallet and re-start project") . " " . _l("Please contact our support"); goto SgvOB; Tt4eo: C2knk: goto Lx21e; bvWKc: $error = true; goto viCRv; dfgHS: zvKmb: goto XY7iK; WviFY: RjEhH: goto FYKKG; viCRv: $message = _l("Error") . _l(":") . " " . _l("Impossible to update project with %s image credits.", null, array($lot_credit[$nb_fizz_to_decrement]["label"])) . " " . _l("Please contact our support"); goto rSLAa; KCBpH: $message = $lot_credit[$nb_fizz_to_decrement]["label"] . " " . _l("image credits added to your project."); goto GezUe; rW6SJ: $message = _l("Error") . _l(":") . " " . _l("This amount of Fizz is wrong") . " (" . $nb_fizz_to_decrement . ")"; goto d4zum; fylf1: iSWXL: goto Tt4eo; FPIID: $error = true; goto DyAn4; ETW3G: goto EJxM5; goto WviFY; d4zum: goto iSWXL; goto IDt2t; t2BC9: $nb_fizz_to_decrement = (int) $params["fizz_to_decrement"]; goto PoLrM; FYKKG: $fizz_amount = (double) $decrement_fizz_wallet["wallet"]; goto eyPdt; O2Cjl: $decrement_fizz_wallet = makeCallToOurApi("Fizz/Transaction", array(), $transaction_params); goto AiYDu; SgvOB: goto pZuUn; goto dfgHS; bcyZI: $error = true; goto cLO3N; EKhpC: EJxM5: goto xReF9; cD6RG: $transaction_params["amount"] = "-" . $nb_fizz_to_decrement; goto P_B1o; GRQuN: $project_params["allowed_image_amount"] += (int) $lot_credit[$nb_fizz_to_decrement]["amount"]; goto rdIpw; P_B1o: $transaction_params["reason"] = "credit compression image"; goto O2Cjl; xReF9: pZuUn: goto fylf1; E9j9I: AQyOP: goto r5asr; rdIpw: $credit_update_params["params"] = json_encode($project_params); goto n6oAB; njIrJ: } }
?>
Did this file decode correctly?
Original Code
<?php goto YvUwY; YvUwY: $cache_shop_by_product = array(); goto c8L9s; c8L9s: $cache_warehouse_by_product = array(); goto cuTQb; cuTQb: $cache_tax = array(); goto WHww0; WHww0: class SCI { protected static $scModulesInfos; public $ps_vers; public static function getDefaultCountryId() { goto drF8c; QgXZH: goto pWGVT; goto E8fc2; drF8c: $return = 0; goto Q9_TJ; xAmrI: ry1ql: goto yqSaT; XVZPZ: define("\123\103\x5f\103\101\103\110\105\137\104\105\x46\x41\125\114\124\137\x43\117\125\x4e\x54\x52\x59\x5f\x49\104", $return); goto Eo4LS; yqSaT: $return = (int) Country::getDefaultCountryId(); goto ho5Jk; ij1_J: $return = SC_CACHE_DEFAULT_COUNTRY_ID; goto QgXZH; Lxc4g: if (version_compare(_PS_VERSION_, "\61\x2e\65\x2e\x30\56\x30", "\74")) { goto ry1ql; } goto nbdII; NePYr: goto GsxwX; goto xAmrI; ho5Jk: GsxwX: goto XVZPZ; nbdII: $return = (int) SCI::getConfigurationValue("\120\123\137\103\x4f\125\x4e\x54\122\x59\x5f\104\105\x46\101\x55\114\124", null, 0, (int) SCI::getSelectedShop()); goto NePYr; Eo4LS: pWGVT: goto anVQs; E8fc2: mYl_t: goto Lxc4g; Q9_TJ: if (!defined("\x53\103\x5f\103\101\103\110\x45\137\x44\105\106\101\x55\x4c\124\x5f\x43\117\125\x4e\x54\x52\x59\x5f\x49\x44")) { goto mYl_t; } goto ij1_J; anVQs: return $return; goto sPjy0; sPjy0: } public static function hookExec($hook_name, $hookArgs = array(), $id_module = null) { goto CTHBd; Umbks: H0CSi: goto Zaauz; HaJ9a: if (!array_key_exists($hook_name, $old_to_new_hook)) { goto cNXSP; } goto bXwV7; dJdHg: $alias = Hook::getAllKnownNames($hook_name); goto LWn_R; IUOvl: sN1Co: goto HyuAu; CZJKU: goto lH3yE; goto aSsW9; HyuAu: return $result; goto tTeg7; abeRu: MAXiF: goto eiTw6; Zaauz: if (!($hook_name == "\141\x63\x74\151\x6f\156\x50\x72\157\x64\165\143\x74\x55\x70\x64\x61\x74\145")) { goto sN1Co; } goto cpeb7; aSsW9: OEOe9: goto dJdHg; LWn_R: lH3yE: goto yUhpL; eiTw6: $result = Hook::exec(sc_array_key_exists(strtolower($hook_name), $alias) ? $alias[strtolower($hook_name)] : $hook_name, $hookArgs, $id_module, false, true, false, (int) SCI::getSelectedShop()); goto Umbks; bXwV7: $hook_name = $old_to_new_hook[$hook_name]; goto yvAzB; yvAzB: cNXSP: goto i3h8d; Gnurq: Context::getContext()->currency = Currency::getDefaultCurrency(); goto aq71x; EEkfI: OcicH: goto hJLPe; hOa54: $old_value = Configuration::get("\120\x53\x5f\123\115\x41\122\124\x59\137\x43\x4c\x45\101\122\137\x43\101\103\x48\105"); goto ZLZnH; cpeb7: SCI::updateConfigurationValue("\120\x53\137\123\115\101\122\x54\x59\137\x43\114\105\x41\122\137\103\101\103\x48\105", $old_value); goto IUOvl; yUhpL: if (!($hook_name == "\141\x63\164\151\x6f\156\120\x72\157\144\165\x63\164\125\160\x64\x61\x74\145")) { goto LshBs; } goto hOa54; vHAKJ: return; goto EEkfI; PVn6O: LshBs: goto Uz_Ng; Zjx2Y: $result = Hook::exec(sc_array_key_exists(strtolower($hook_name), $alias) ? $alias[strtolower($hook_name)] : $hook_name, $hookArgs, $id_module); goto unzEL; CTHBd: if (!empty(Context::getContext()->currency)) { goto jJmdD; } goto Gnurq; aq71x: jJmdD: goto p0mUV; bRnL_: $alias = Hook::getHookAliasList(); goto CZJKU; p0mUV: $old_to_new_hook = array("\x75\x70\144\x61\164\145\120\x72\x6f\144\165\143\164" => "\141\x63\x74\x69\157\x6e\x50\162\x6f\x64\165\x63\x74\x55\x70\144\x61\x74\x65", "\165\x70\144\141\x74\145\120\162\x6f\144\165\143\x74\101\164\164\162\x69\x62\x75\x74\x65" => "\141\143\x74\151\x6f\156\120\x72\x6f\x64\165\x63\x74\101\x74\x74\162\x69\142\165\x74\145\x55\x70\x64\x61\x74\145", "\x77\141\x74\x65\x72\x6d\x61\x72\x6b" => "\x61\x63\x74\x69\157\156\x57\141\164\x65\162\155\x61\162\153"); goto HaJ9a; ZLZnH: SCI::updateConfigurationValue("\x50\123\x5f\x53\x4d\101\122\x54\x59\x5f\x43\114\x45\101\x52\137\103\x41\103\x48\x45", "\156\145\x76\x65\162"); goto PVn6O; hJLPe: if (version_compare(_PS_VERSION_, "\x31\x2e\67\56\x31\x2e\60", "\x3e\x3d") && method_exists("\x48\157\x6f\x6b", "\x67\145\x74\101\154\154\113\x6e\x6f\x77\x6e\116\x61\155\145\163")) { goto OEOe9; } goto bRnL_; unzEL: goto H0CSi; goto abeRu; Uz_Ng: if (SCMS) { goto MAXiF; } goto Zjx2Y; i3h8d: if (!(!_s("\101\120\120\x5f\103\x4f\x4d\x50\101\124\137\x48\x4f\117\113") || !SCI::checkUsedHook($hook_name))) { goto OcicH; } goto vHAKJ; tTeg7: } public static function checkUsedHook($hook_name) { goto XKENW; JlWok: boF2V: goto dduO8; dduO8: if (!empty($hook_list)) { goto aX7u5; } goto jTVdv; ZYsdu: aX7u5: goto EoDN7; jTVdv: return true; goto WoLE3; NG9sx: mTY10: goto ROozn; OAZ4x: if (version_compare(_PS_VERSION_, "\61\x2e\65\x2e\60\56\60", "\76\x3d") && isset($hook_list[SCI::getSelectedShop()])) { goto mTY10; } goto VUDmj; ROozn: $hook_list_by_shop = $hook_list[SCI::getSelectedShop()]; goto JlWok; EoDN7: return sc_array_key_exists(strtolower($hook_name), $hook_list_by_shop); goto pd1Kp; pd1Kp: AbxpX: goto IdNM5; XKENW: $hook_list = json_decode(SC_HOOK_MODULE_LIST, true); goto OAZ4x; WoLE3: goto AbxpX; goto ZYsdu; VUDmj: $hook_list_by_shop = $hook_list; goto g1Hxh; g1Hxh: goto boF2V; goto NG9sx; IdNM5: } public static function addToShops($objectTableName, $objects_id = array(), $shops = array()) { goto SRRmZ; arCi1: $newRelations = array(); goto wjs_m; I6TPQ: $relationsArray = Db::getInstance()->getValue("\x53\105\x4c\x45\x43\124\40\107\122\117\x55\x50\137\103\117\116\103\x41\x54\50\x43\x4f\116\x43\101\x54\x28\42\x28\42\x2c\x69\144\x5f\163\x68\x6f\160\x2c\x22\x2c\42\54\x69\144\137" . pSQL($objectTableName) . "\x2c\x22\51\42\51\40\123\x45\120\101\x52\101\124\117\x52\40\42\x23\x22\51\40\141\x73\40\162\x65\x6c\141\164\x69\157\x6e\163\xa\x20\40\40\40\40\40\40\40\40\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\x46\122\x4f\x4d\40" . _DB_PREFIX_ . pSQL($objectTableName) . "\137\x73\x68\157\160\xa\x20\40\x20\40\40\40\40\x20\40\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x57\110\105\x52\105\40\x69\144\137" . pSQL($objectTableName) . "\x20\x49\116\x20\x28" . implode("\54", $objects_id) . "\51"); goto Utrzp; tDoKc: $shops = Shop::getShops(true, null, true); goto nNOyR; SRRmZ: if (!(version_compare(_PS_VERSION_, "\x31\x2e\x35\x2e\60\x2e\x30", "\x3c") || count($objects_id) == 0)) { goto Yfht9; } goto ejbbv; aA32O: $sql = "\111\x4e\x53\105\122\124\x20\x49\116\x54\117\40" . _DB_PREFIX_ . pSQL($objectTableName) . "\x5f\163\150\x6f\x70\x20\x28\151\x64\x5f\x73\150\x6f\160\54\151\x64\x5f" . pSQL($objectTableName) . "\51\40\x56\x41\114\125\x45\123\x20" . join("\54", $newRelations); goto FtZ3P; XWgeW: if (!(is_array($shops) && count($shops) == 0)) { goto JJlBV; } goto tDoKc; wjs_m: foreach ($shops as $id_shop) { goto UOe1m; VfSnm: D6RWN: goto QK_fr; UOe1m: foreach ($objects_id as $id_object) { $newRelations[] = "\x28" . (int) $id_shop . "\54" . (int) $id_object . "\x29"; tUkUu: } goto BKgYi; BKgYi: Fwwv2: goto VfSnm; QK_fr: } goto eGWjs; eGWjs: WENa1: goto rUFl6; ejbbv: return; goto v6W9A; d9MqX: qBp5K: goto HAz6P; WrZwj: if (!count($newRelations)) { goto qBp5K; } goto aA32O; nNOyR: JJlBV: goto I6TPQ; rUFl6: $newRelations = arrayDiffEmulation($newRelations, $relationsArray); goto WrZwj; Utrzp: $relationsArray = explode("\43", $relationsArray); goto arCi1; FtZ3P: Db::getInstance()->Execute($sql); goto d9MqX; v6W9A: Yfht9: goto XWgeW; HAz6P: } public static function duplicateImageToShops($object_id, $actual_shop_id, $shops = array()) { goto l9_ys; Uwm41: A190c: goto Lo5gn; ENqef: $other_shops = array(); goto emMq5; yGSvK: if (version_compare(_PS_VERSION_, "\x31\x2e\66\56\61\x2e\60", "\76\x3d")) { goto fFibB; } goto HnLa7; kdwOe: Db::getInstance()->Execute($sql); goto Uwm41; S3Fq3: $other_shops = array(); goto CpSjE; emMq5: foreach ($shops as $shop) { $other_shops[] = "\x28" . (int) $shop . "\54" . (int) $image_actual_shop["\151\144\137\x69\x6d\x61\147\145"] . "\54" . $image_actual_shop["\143\157\166\x65\x72"] . "\x29"; RKQd_: } goto OKH4l; l9_ys: if (!(version_compare(_PS_VERSION_, "\x31\x2e\x35\x2e\x30\x2e\x30", "\74") || empty($object_id) || empty($actual_shop_id) || empty($shops))) { goto Te7kM; } goto d3spq; iTWwd: fFibB: goto b6ZHr; Cwmu0: $sql = "\x49\x4e\123\105\122\124\x20\111\x4e\x54\x4f\40" . _DB_PREFIX_ . "\x69\155\x61\147\x65\x5f\x73\150\x6f\160\40\x28\151\x64\x5f\163\150\x6f\x70\54\151\144\x5f\x69\x6d\141\x67\145" . (version_compare(_PS_VERSION_, "\61\56\66\56\61\56\60", "\76\x3d") ? "\x2c\151\144\137\x70\x72\x6f\x64\x75\143\x74" : '') . "\54\x63\x6f\x76\145\162\51\x20\126\x41\114\x55\105\x53\x20" . join("\54", $other_shops); goto kdwOe; O0KaH: Db::getInstance()->execute("\104\105\x4c\x45\x54\x45\x20\106\x52\x4f\115\x20" . _DB_PREFIX_ . "\x69\155\x61\x67\145\x5f\x73\150\x6f\x70\x20\127\x48\x45\x52\x45\40\x69\x64\x5f\x69\155\141\x67\x65\40\75\x20\x27" . (int) $object_id . "\47\x20\101\116\x44\x20\151\144\137\x73\150\x6f\x70\40\x49\x4e\x20\50" . pInSQL(join("\54", $shops)) . "\x29"); goto yGSvK; b6ZHr: $image_actual_shop = Db::getInstance()->getRow("\x53\105\114\x45\x43\x54\x20\x69\155\x67\x5f\163\56\151\x64\x5f\x73\x68\x6f\160\54\x69\x6d\147\x5f\163\x2e\151\x64\137\x69\x6d\x61\147\x65\54\x69\155\x67\137\x73\56\x63\157\166\x65\162\54\40\x69\x2e\x69\x64\x5f\160\162\x6f\144\165\x63\164\12\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x46\122\117\115\x20" . _DB_PREFIX_ . "\151\x6d\x61\x67\x65\137\163\150\x6f\160\x20\151\x6d\147\x5f\163\xa\x20\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\40\x20\40\x49\116\x4e\105\x52\x20\112\x4f\111\116\x20" . _DB_PREFIX_ . "\151\155\x61\x67\145\x20\x69\x20\x4f\116\x20\x28\151\155\147\x5f\163\x2e\x69\144\137\151\155\141\147\x65\75\151\56\151\x64\x5f\151\155\141\147\x65\x29\xa\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\x57\x48\x45\x52\x45\40\x69\155\147\137\163\56\x69\144\x5f\x69\155\141\x67\145\x20\x3d\x20\47" . (int) $object_id . "\47\x20\101\x4e\x44\40\151\x6d\147\137\x73\x2e\x69\144\137\x73\x68\x6f\160\75\47" . (int) $actual_shop_id . "\47"); goto S3Fq3; J81mj: CWb7Q: goto MeaMC; d3spq: return; goto uKmf2; uKmf2: Te7kM: goto O0KaH; CpSjE: foreach ($shops as $shop) { goto REaTL; REaTL: if (!empty($image_actual_shop["\x63\157\166\x65\x72"])) { goto O19d7; } goto Ucbeo; GDr50: O19d7: goto Gz3GV; JEv7P: SfcWq: goto J6cNq; Ucbeo: $image_actual_shop["\143\x6f\166\x65\x72"] = "\x4e\125\x4c\x4c"; goto GDr50; Gz3GV: $other_shops[] = "\50" . (int) $shop . "\x2c" . (int) $image_actual_shop["\151\144\x5f\151\155\x61\147\145"] . "\x2c" . (int) $image_actual_shop["\x69\144\x5f\x70\x72\157\x64\165\x63\x74"] . "\x2c" . $image_actual_shop["\x63\x6f\166\145\162"] . "\51"; goto JEv7P; J6cNq: } goto Goezf; HnLa7: $image_actual_shop = Db::getInstance()->getRow("\123\x45\114\x45\x43\x54\40\x69\144\137\x73\150\157\160\54\x69\x64\x5f\151\155\141\x67\145\54\x63\x6f\166\145\162\40\x46\122\x4f\115\40" . _DB_PREFIX_ . "\151\155\x61\147\x65\x5f\163\150\157\160\x20\x57\x48\x45\x52\105\40\151\x64\x5f\151\155\141\x67\x65\40\x3d\40\x27" . (int) $object_id . "\x27\40\x41\116\104\x20\151\144\137\163\150\x6f\x70\75\x27" . (int) $actual_shop_id . "\47"); goto ENqef; OKH4l: ESbTA: goto QcHpC; MeaMC: if (!count($other_shops)) { goto A190c; } goto Cwmu0; QcHpC: goto CWb7Q; goto iTWwd; Goezf: VJnU8: goto J81mj; Lo5gn: } public static function getLastPositionFromCategory($id_category, $id_shop = 1) { goto bOFAz; SqpWM: return Category::getLastPosition($id_category); goto vVstv; bkwsv: Y23II: goto SqpWM; vVstv: AHynN: goto NeMDT; d0EAJ: goto AHynN; goto bkwsv; bOFAz: if (version_compare(_PS_VERSION_, "\x31\56\x35\56\60\56\x30", "\x3c")) { goto Y23II; } goto Pnl0f; Pnl0f: return Category::getLastPosition($id_category, $id_shop); goto d0EAJ; NeMDT: } public static function imageResize($sourceFile, $destFile, $destWidth = null, $destHeight = null, $fileType = "\152\160\147") { goto tVFRh; hujC8: n734n: goto MwdKo; tVFRh: if (version_compare(_PS_VERSION_, "\x31\x2e\65\56\60\56\x30", "\74")) { goto n734n; } goto vCJre; MwdKo: return imageResize($sourceFile, $destFile, $destWidth, $destHeight, $fileType); goto A6tUq; A6tUq: HhocL: goto iqyu6; vCJre: return @ImageManager::resize($sourceFile, $destFile, $destWidth, $destHeight, $fileType); goto yNmNC; yNmNC: goto HhocL; goto hujC8; iqyu6: } public static function updateConfigurationValue($key, $values, $html = false, $id_shop_group = 0, $id_shop = 0) { goto kBpEt; m1_Ah: kz4Dq: goto ENDbl; Jvao3: return Configuration::updateValue($key, $values, $html, $id_shop_group, $id_shop); goto Xy7sN; Xy7sN: goto kz4Dq; goto rcckR; b7hTT: return Configuration::updateValue($key, $values, $html); goto m1_Ah; kBpEt: if (version_compare(_PS_VERSION_, "\61\56\x35\56\x30\x2e\x30", "\x3c")) { goto bNT5C; } goto Jvao3; rcckR: bNT5C: goto b7hTT; ENDbl: } public static function getConfigurationValue($key, $id_lang = null, $id_shop_group = 0, $id_shop = 0) { goto FjEHQ; DHWUx: return Configuration::get($key, $id_lang, $id_shop_group, $id_shop); goto fJPDJ; V3GWH: PR9zj: goto Ul4_Q; Ul4_Q: return Configuration::get($key, $id_lang); goto J21PP; J21PP: x7J0c: goto l6wHK; fJPDJ: goto x7J0c; goto V3GWH; FjEHQ: if (version_compare(_PS_VERSION_, "\61\56\x35\x2e\x30\56\x30", "\x3c")) { goto PR9zj; } goto DHWUx; l6wHK: } public static function getEcotaxTaxRate() { goto kidIb; kidIb: $return = 100; goto LXU0F; P5Pqs: oLcM9: goto pjM4T; mmbmU: goto GfIGu; goto Ls7sQ; Kobuq: $tax_manager = TaxManagerFactory::getManager($address, (int) Configuration::get("\120\123\137\105\103\x4f\124\x41\130\x5f\124\x41\x58\x5f\x52\125\x4c\105\x53\x5f\107\122\x4f\125\x50\137\x49\104", null, 0, (int) SCI::getSelectedShop())); goto i9ob4; rTKQ7: $address = Address::initialize(null); goto Kobuq; QPC8G: if (version_compare(_PS_VERSION_, "\61\x2e\x35\x2e\60\56\60", "\74") && (int) SCI::getConfigurationValue("\x50\x53\137\x55\123\105\x5f\x45\103\117\x54\101\130") == 0 || version_compare(_PS_VERSION_, "\x31\x2e\x35\56\60\56\60", "\76\75") && (int) SCI::getConfigurationValue("\120\123\x5f\x55\x53\105\x5f\x45\x43\117\x54\101\130", null, 0, (int) SCI::getSelectedShop()) == 0) { goto oLcM9; } goto e9Eci; gCecK: return $return; goto CXmrc; MtCHO: X2BYw: goto cLAy6; i9ob4: $tax_calculator = $tax_manager->getTaxCalculator(); goto BoHE1; IR9Y9: $return = Tax::getProductEcotaxRate() / 100 + 1; goto PjnGA; BoHE1: $return = $tax_calculator->getTotalRate() / 100 + 1; goto MtCHO; Ls7sQ: i8JgL: goto QPC8G; pjM4T: $return = 1; goto GCrDn; GCrDn: goto X2BYw; goto K3WxI; e9Eci: if (version_compare(_PS_VERSION_, "\61\x2e\x35\56\x30\x2e\60", "\76\x3d")) { goto Rjd8G; } goto IR9Y9; PjnGA: goto X2BYw; goto P5Pqs; cLAy6: define("\x53\x43\137\103\x41\103\110\x45\137\105\x43\117\124\x41\130\x5f\122\x41\124\105", $return); goto f09QH; K3WxI: Rjd8G: goto rTKQ7; f09QH: GfIGu: goto gCecK; LXU0F: if (!defined("\x53\103\x5f\103\101\x43\x48\105\x5f\x45\x43\117\x54\101\130\137\122\101\124\105")) { goto i8JgL; } goto ukbV4; ukbV4: $return = SC_CACHE_ECOTAX_RATE; goto mmbmU; CXmrc: } public static function getSelectedShopActionList($string = false, $id_product = null) { goto hqxL0; UzHtT: nfCDx: goto uvXEu; Ty5tD: $list = $list_temp; goto cb6um; gBOqE: foreach ($shops as $shop_id) { goto OTHD_; xFShM: $list_temp[] = $shop_id; goto IGQ4p; vkHA6: HxWAb: goto X0xKO; OTHD_: if (!sc_in_array($shop_id, $list, "\x53\x43\111\123\145\154\145\x63\x74\123\x68\x6f\160\120\162\x6f\144\x75\x63\x74")) { goto B_EyK; } goto xFShM; IGQ4p: B_EyK: goto vkHA6; X0xKO: } goto ThFh6; ksl2S: if (!empty($_COOKIE["\x73\143\x5f\163\x68\157\160\x5f\154\151\163\x74"])) { goto nfCDx; } goto vI51R; TFMtN: $shops = self::getShopsByProduct($id_product); goto gBOqE; JEXjk: return $list; goto V9iLk; nGzY0: Zk2Zs: goto LsXTT; hqxL0: $list = array(); goto ksl2S; j3dbP: $list = $string ? implode("\x2c", $list) : $list; goto JEXjk; ThFh6: TUq_w: goto Ty5tD; cb6um: Dct9E: goto j3dbP; VRMUk: goto Zk2Zs; goto UzHtT; vI51R: $list = array(SCI::getSelectedShop()); goto VRMUk; uvXEu: $list = explode("\x2c", $_COOKIE["\x73\143\137\x73\x68\x6f\160\x5f\x6c\151\x73\x74"]); goto nGzY0; OAik3: $list_temp = array(); goto TFMtN; LsXTT: if (empty($id_product)) { goto Dct9E; } goto OAik3; V9iLk: } public static function getSelectedShop() { goto dbR1h; SNJ0F: return isset($_COOKIE["\163\x63\137\x73\x68\x6f\x70\x5f\x73\145\154\x65\x63\x74\x65\x64"]) ? (int) $_COOKIE["\163\x63\137\x73\x68\x6f\x70\137\x73\145\154\145\143\x74\145\144"] : 0; goto vXf7_; mX4z9: return (int) Configuration::get("\120\x53\x5f\x53\110\117\120\137\x44\x45\x46\x41\x55\x4c\x54"); goto F3ndd; phGCI: Y8G4M: goto mX4z9; vXf7_: goto L1c9e; goto phGCI; T2J0R: if (version_compare(_PS_VERSION_, "\x31\x2e\65\x2e\x30\x2e\60", "\x3e\75")) { goto Y8G4M; } goto ZQi0r; dbR1h: if (SCMS) { goto fgv1O; } goto T2J0R; F3ndd: L1c9e: goto Q_Ff4; ZQi0r: return 0; goto YO1MD; ai5xy: fgv1O: goto SNJ0F; YO1MD: goto L1c9e; goto ai5xy; Q_Ff4: } public static function getAllShops() { goto ZWrsd; ZWrsd: $sql = "\123\x45\114\105\103\124\40\x73\56\52\12\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\106\122\117\115\x20" . _DB_PREFIX_ . "\x73\x68\157\160\40\x73\12\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\x20\127\110\105\x52\105\x20\x73\56\144\x65\154\x65\164\x65\144\40\75\40\60"; goto AcIR6; H5Wqf: return $results; goto CdVmg; AcIR6: $results = Db::getInstance()->executeS($sql); goto H5Wqf; CdVmg: } public static function getShopsByProduct($id_product) { goto IKRgB; WNvff: foreach ($res as $value) { $list[] = $value["\151\x64\x5f\x73\150\x6f\160"]; Uvs3r: } goto YC53M; ma2eK: yqgVQ: goto IZ2K8; k6F7R: if (empty($cache)) { goto ohEe0; } goto KGsus; W_G8y: tZ3tr: goto M0783; M0783: return $list; goto cTETF; IZ2K8: $cache_shop_by_product[$id_product] = $list; goto W_G8y; IKRgB: global $cache_shop_by_product; goto ot2GK; cliTA: M5lZS: goto k6F7R; YC53M: av3nh: goto ma2eK; ot2GK: $cache = array(); goto Gg8PP; KGsus: $list = $cache; goto DtCZ0; Gg8PP: if (!sc_array_key_exists($id_product, $cache_shop_by_product)) { goto M5lZS; } goto POUdf; POUdf: $cache = $cache_shop_by_product[$id_product]; goto cliTA; XQTya: $res = Db::getInstance()->executeS("\12\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x53\x45\114\x45\103\x54\x20\140\151\144\x5f\163\150\x6f\x70\x60\xa\40\40\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\x46\x52\x4f\115\x20\x60" . _DB_PREFIX_ . "\160\x72\157\x64\165\143\164\137\163\x68\x6f\x70\x60\xa\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x57\x48\x45\122\x45\40\x60\x69\x64\x5f\x70\162\x6f\144\165\x63\164\140\x20\75\40" . (int) $id_product); goto byJCA; m_1sQ: $list = array(); goto XQTya; DtCZ0: goto tZ3tr; goto FThqs; FThqs: ohEe0: goto m_1sQ; byJCA: if (!(!empty($res) && count($res) > 0)) { goto yqgVQ; } goto WNvff; cTETF: } public static function getShopsByCategory($id_category) { goto KRrac; VSyc8: goto SP5f_; goto o7lBN; pHzQN: w4TFA: goto LG59v; T8F4f: if (!(is_array($cache_shop_by_category) && sc_array_key_exists($id_category, $cache_shop_by_category))) { goto Ok3Fa; } goto gwyEp; sFOzn: $list = array(); goto DxdW6; DxdW6: $res = Db::getInstance()->executeS("\xa\40\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\x53\x45\114\x45\103\x54\40\140\x69\144\x5f\163\x68\x6f\160\140\xa\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\x20\40\x20\106\x52\x4f\x4d\40\140" . _DB_PREFIX_ . "\x63\141\x74\x65\147\x6f\162\171\137\163\x68\157\x70\x60\xa\x20\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\x20\40\40\127\110\105\122\x45\40\x60\151\144\137\143\141\x74\x65\147\x6f\162\x79\x60\x20\75\x20" . (int) $id_category); goto ZFug9; QkAN8: if (empty($cache)) { goto lazmy; } goto jNeAk; ZFug9: if (!(!empty($res) && count($res) > 0)) { goto ufZMD; } goto KE_Kv; w0svu: Ok3Fa: goto QkAN8; lVisc: $cache_shop_by_category[$id_category] = $list; goto mqDPi; KE_Kv: foreach ($res as $value) { $list[] = $value["\151\144\137\x73\x68\x6f\160"]; k75T3: } goto pHzQN; TZ52x: $cache = array(); goto T8F4f; KRrac: global $cache_shop_by_category; goto TZ52x; Cxl3z: return $list; goto j0oMO; jNeAk: $list = $cache; goto VSyc8; LG59v: ufZMD: goto lVisc; o7lBN: lazmy: goto sFOzn; mqDPi: SP5f_: goto Cxl3z; gwyEp: $cache = $cache_shop_by_category[$id_category]; goto w0svu; j0oMO: } public static function qtySumStockAvailable($id_product, $specific_shop_id_list = array()) { goto mPqNA; GBie3: CYl0j: goto neOPK; iJQPY: foreach ($shops as $shop_id) { goto bFYSW; wIzX5: $query->from("\x73\164\157\x63\153\137\x61\166\x61\151\x6c\141\x62\154\145"); goto fyaEw; KGcfo: RJ2SV: goto TxNp3; uWSWK: qNWHd: goto KGcfo; FddC6: SCI::setQuantity($id_product, 0, (int) $new_qty, $shop_id); goto uWSWK; Wyrie: $query->where("\x69\144\137\x70\x72\x6f\x64\165\x63\164\x5f\x61\164\x74\162\x69\x62\165\x74\145\40\x21\x3d\40\x30\x20"); goto qVVV_; bFYSW: $query = new DbQuery(); goto vPcEx; fyaEw: $query->where("\151\x64\137\x70\x72\x6f\x64\165\x63\164\40\75\x20" . (int) $id_product); goto Wyrie; mJOt1: $new_qty = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto fYkIV; qVVV_: $query = StockAvailable::addSqlShopRestriction($query, $shop_id); goto mJOt1; vPcEx: $query->select("\123\x55\115\x28\161\165\141\x6e\164\x69\x74\171\51"); goto wIzX5; fYkIV: if (!($new_qty !== null)) { goto qNWHd; } goto FddC6; TxNp3: } goto DlD8t; DlD8t: DLeV7: goto EvaIO; pWTfO: WLJ8_: goto iJQPY; mPqNA: if (!empty($specific_shop_id_list)) { goto CYl0j; } goto FZBDm; neOPK: $shops = $specific_shop_id_list; goto pWTfO; LSKgA: goto WLJ8_; goto GBie3; FZBDm: $shops = self::getShopsByProduct($id_product); goto LSKgA; EvaIO: } public static function getSelectedWarehouse() { goto IROc0; VuRvT: IUNvw: goto zik1T; qH9b_: return 0; goto nMnnh; kfSCR: m3HD2: goto L3b3O; nMnnh: goto m3HD2; goto VuRvT; zik1T: return isset($_COOKIE["\x73\x63\x5f\167\141\x72\145\150\x6f\165\163\x65\137\x73\x65\x6c\145\x63\x74\x65\144"]) ? (int) $_COOKIE["\x73\x63\137\x77\141\162\145\x68\x6f\165\x73\145\137\x73\145\x6c\x65\143\164\145\144"] : 0; goto kfSCR; IROc0: if (SCAS) { goto IUNvw; } goto qH9b_; L3b3O: } public static function getProductRealQuantities($id_product, $id_product_attribute, $ids_warehouse = null, $usable = false, $has_combination = false) { goto tRcjR; WJI7T: $qty = self::getProductPhysicalQuantities($id_product, $id_product_attribute, $ids_warehouse, $usable, $has_combination); goto AHI1J; S596D: mGtjt: goto adR3s; PY0Nf: $ids_warehouse = $temp_ids_warehouse; goto O8HsQ; d0uKd: if (empty($id_product_attribute)) { goto nnhuK; } goto gaqbi; wXBYH: $res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); goto vAiK0; VEaca: w46ME: goto E3fSo; xCGIL: YjmuY: goto T3iLp; gaqbi: $query->where("\x6f\144\56\x70\162\157\144\165\143\x74\137\141\x74\x74\x72\x69\142\165\164\145\137\x69\144\40\75\40" . (int) $id_product_attribute); goto YIX6x; SJGvP: $query->from("\157\x72\144\x65\x72\137\144\x65\x74\x61\151\x6c", "\157\x64"); goto q8Un4; tY35d: $query->where("\157\x73\x2e\163\150\x69\x70\160\145\144\x20\x21\75\40\61"); goto B_tOC; WATxS: $query->select("\163\157\x64\56\161\x75\141\156\x74\x69\164\x79\x5f\x65\x78\x70\145\143\x74\145\144\x2c\x20\163\157\144\56\x71\165\141\156\164\151\x74\x79\x5f\x72\145\143\x65\x69\x76\x65\144"); goto gG4dA; gG4dA: $query->from("\163\165\160\160\154\x79\x5f\x6f\162\144\145\162", "\x73\x6f"); goto cn7Lv; KMzjh: foreach ($res as $row) { $client_orders_qty += $row["\160\162\157\144\x75\143\164\137\x71\x75\141\x6e\x74\x69\164\x79"] - $row["\160\162\157\144\x75\143\164\x5f\161\x75\x61\x6e\x74\x69\x74\171\x5f\x72\x65\x66\165\x6e\x64\145\144"]; Va0eE: } goto Ip8gB; pviAT: $supply_orders_qty = 0; goto hPExL; tGUxu: $ids_warehouse = array_map("\x69\156\164\x76\141\154", $ids_warehouse); goto xCGIL; Bg3xN: cF2gs: goto WJI7T; xLQAD: $query->leftJoin("\157\162\144\145\162\x5f\x73\164\141\x74\145", "\157\163", "\157\163\x2e\151\x64\137\x6f\162\144\145\162\x5f\163\x74\141\x74\145\x20\x3d\40\x6f\150\56\x69\x64\x5f\157\x72\144\x65\162\137\x73\164\141\164\x65"); goto tY35d; N7jFA: if (!(!is_null($ids_warehouse) && count($ids_warehouse))) { goto mGtjt; } goto KByV1; tRcjR: if (!version_compare(_PS_VERSION_, "\61\x2e\66\x2e\61\56\60", "\x3e\75")) { goto w46ME; } goto verT_; GftWQ: Fqfam: goto tGUxu; tvBOi: $query = new DbQuery(); goto WATxS; O8HsQ: qnlO9: goto Pf8Gj; AHI1J: return $qty - $client_orders_qty + $supply_orders_qty; goto VVGAE; rnYm3: if (!count($ids_warehouse)) { goto XrLUg; } goto VxQnt; Ip8gB: JrkTZ: goto RJGNd; Z4ODl: $query->leftJoin("\157\162\144\x65\x72\137\150\151\x73\x74\157\162\x79", "\157\x68", "\157\x68\56\x69\x64\x5f\157\162\x64\145\162\x20\x3d\x20\157\56\x69\144\x5f\157\x72\144\145\162\x20\101\x4e\104\x20\x6f\x68\x2e\x69\x64\137\157\162\x64\x65\162\137\150\151\163\164\x6f\162\x79\40\75\x20\x28\x53\105\x4c\x45\103\124\40\115\x41\130\50\x6f\150\x32\56\x69\x64\137\x6f\162\x64\x65\x72\x5f\x68\151\163\164\x6f\x72\171\x29\40\106\122\117\x4d\x20" . _DB_PREFIX_ . "\157\162\144\145\x72\x5f\150\151\163\x74\157\162\x79\x20\157\x68\x32\x20\x57\x48\105\122\x45\40\x6f\x68\62\x2e\x69\x64\137\157\162\144\145\x72\40\75\x20\157\x2e\151\144\137\x6f\162\x64\145\162\x29"); goto xLQAD; VxQnt: $query->where("\157\144\x2e\151\144\x5f\167\141\162\145\150\157\165\x73\145\40\111\x4e\x28" . pInSQL(implode("\54\40", $ids_warehouse)) . "\x29"); goto KVa7f; cn9Nc: if (is_array($ids_warehouse)) { goto Fqfam; } goto Ew3Xl; KByV1: $query->where("\163\157\56\x69\x64\137\x77\x61\x72\145\x68\x6f\x75\163\145\x20\111\x4e\50" . pInSQL(implode("\54\x20", $ids_warehouse) . "\51")); goto S596D; hPExL: foreach ($supply_orders_qties as $qty) { goto J2xJ2; QAdlO: UE4dV: goto n8Q_7; n8Q_7: suwrt: goto verGR; eu8zK: $supply_orders_qty += $qty["\x71\165\141\156\164\x69\164\171\137\x65\170\x70\145\143\164\x65\144"] - $qty["\161\165\141\156\164\151\164\171\x5f\162\145\x63\x65\x69\166\x65\x64"]; goto QAdlO; J2xJ2: if (!($qty["\x71\x75\141\156\x74\151\164\171\x5f\145\x78\x70\145\x63\x74\x65\x64"] > $qty["\x71\165\141\x6e\164\x69\164\171\x5f\x72\145\143\145\151\x76\x65\144"])) { goto UE4dV; } goto eu8zK; verGR: } goto Bg3xN; vAiK0: $client_orders_qty = 0; goto m1Kfn; ty4Lr: $query->where("\x73\x6f\x64\x2e\151\144\137\x70\x72\157\144\165\x63\x74\40\75\x20" . (int) $id_product . "\40\x41\x4e\104\40\163\157\144\56\151\144\137\160\x72\x6f\144\165\x63\164\137\x61\x74\x74\162\x69\x62\x75\x74\x65\40\75\40" . (int) $id_product_attribute); goto N7jFA; KVYs0: $query->where("\163\x6f\x73\56\x70\145\x6e\x64\151\156\x67\137\x72\145\x63\145\151\160\164\40\75\40\x31"); goto ty4Lr; AyDza: $query->select("\157\144\56\160\162\157\144\x75\x63\x74\137\x71\x75\x61\156\x74\x69\x74\x79\x2c\x20\157\144\x2e\160\x72\x6f\x64\165\143\x74\x5f\x71\165\x61\156\164\151\x74\171\x5f\162\x65\146\x75\156\144\145\x64"); goto SJGvP; r4qC3: $temp_ids_warehouse = array(); goto FLSUz; YIX6x: nnhuK: goto Z4ODl; s9ch8: Qt1OT: goto PY0Nf; verT_: return Product::getRealQuantity((int) $id_product, (int) $id_product_attribute, $ids_warehouse, (int) SCI::getSelectedShop()); goto VEaca; RJGNd: Lof8Z: goto tvBOi; WhNsb: $query->where("\157\x64\56\160\162\157\x64\165\x63\x74\x5f\x69\144\x20\75\x20" . (int) $id_product); goto d0uKd; T3iLp: if ($has_combination) { goto qnlO9; } goto r4qC3; jO_3C: $query->groupBy("\x6f\x64\56\x69\144\137\x6f\162\x64\x65\x72\137\x64\145\164\x61\151\154"); goto rnYm3; E3fSo: if (is_null($ids_warehouse)) { goto YjmuY; } goto cn9Nc; Ew3Xl: $ids_warehouse = array($ids_warehouse); goto GftWQ; m1Kfn: if (!count($res)) { goto Lof8Z; } goto KMzjh; B_tOC: $query->where("\x6f\x2e\x76\x61\x6c\151\x64\x20\75\x20\61\x20\117\x52\40\x28\x6f\x73\56\151\144\137\157\162\144\x65\x72\x5f\x73\164\141\x74\145\40\x21\x3d\40" . (int) Configuration::get("\120\x53\137\117\123\137\105\122\122\x4f\122") . "\12\x20\40\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\x41\116\104\40\157\x73\56\151\x64\x5f\x6f\x72\144\145\x72\137\x73\164\141\164\x65\x20\x21\75\x20" . (int) Configuration::get("\x50\123\137\x4f\x53\137\103\101\x4e\103\105\114\105\x44") . "\51"); goto jO_3C; KVa7f: XrLUg: goto wXBYH; FLSUz: foreach ($ids_warehouse as $id_warehouse) { goto BCBLa; nyvc2: zvtTF: goto duVak; KIJuv: $temp_ids_warehouse[] = $id_warehouse; goto FTmQQ; ztNq7: if (empty($temp_check_in_warehouse)) { goto W4NHJ; } goto KIJuv; FTmQQ: W4NHJ: goto nyvc2; BCBLa: $temp_check_in_warehouse = WarehouseProductLocation::getIdByProductAndWarehouse((int) $id_product, (int) $id_product_attribute, (int) $id_warehouse); goto ztNq7; duVak: } goto s9ch8; PGraI: $query->leftjoin("\x73\x75\160\x70\154\171\x5f\x6f\x72\x64\145\x72\137\163\164\141\164\x65", "\163\157\x73", "\x73\157\x73\x2e\x69\x64\137\x73\165\160\160\154\171\x5f\x6f\x72\x64\x65\162\137\163\x74\141\164\x65\40\75\x20\x73\157\56\x69\144\x5f\163\x75\160\x70\x6c\x79\x5f\157\x72\144\145\x72\x5f\x73\164\141\164\145"); goto KVYs0; q8Un4: $query->leftjoin("\157\x72\144\145\x72\163", "\157", "\157\56\151\144\x5f\x6f\162\144\x65\x72\40\75\x20\x6f\x64\x2e\x69\x64\137\157\162\x64\145\x72"); goto WhNsb; adR3s: $supply_orders_qties = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); goto pviAT; Pf8Gj: $query = new DbQuery(); goto AyDza; cn7Lv: $query->leftjoin("\x73\x75\160\x70\154\x79\x5f\x6f\162\144\x65\x72\137\x64\x65\164\x61\151\154", "\x73\157\144", "\163\157\144\56\x69\x64\137\x73\165\160\x70\154\171\x5f\157\162\144\145\x72\40\75\x20\163\x6f\x2e\x69\144\x5f\x73\165\x70\160\x6c\x79\x5f\157\162\144\x65\x72"); goto PGraI; VVGAE: } public static function getProductPhysicalQuantities($id_product, $id_product_attribute, $ids_warehouse = null, $usable = false, $has_combination = false) { goto lLDfj; lLDfj: if (!is_null($ids_warehouse)) { goto lPcf9; } goto bMopd; tXo9t: if (count($ids_warehouse)) { goto k47jI; } goto YgAsx; FL5pL: $query->where("\163\56\x69\x64\137\160\x72\157\x64\x75\x63\x74\x20\x3d\40" . (int) $id_product); goto ZJuTT; Ak5Q4: $query->where("\163\x2e\x69\144\137\x70\162\157\x64\165\x63\x74\x5f\x61\164\164\162\151\142\x75\164\x65\x20\x3d\40" . (int) $id_product_attribute); goto dNer9; ZJuTT: if (empty($id_product_attribute)) { goto HsyQw; } goto Ak5Q4; M_q2D: lPcf9: goto Sq635; XOiqn: $query->innerJoin("\x77\x61\162\x65\x68\x6f\x75\x73\145\x5f\160\x72\x6f\x64\x75\143\164\137\x6c\157\143\x61\x74\x69\157\x6e", "\167\x70\154", "\50\x77\x70\x6c\56\x69\144\137\160\x72\157\x64\165\x63\x74\x20\x3d\x20\163\x2e\151\x64\137\160\162\x6f\144\165\143\164\40\101\x4e\x44\40\167\x70\154\56\x69\144\137\160\162\157\144\165\143\x74\137\x61\164\x74\x72\x69\142\165\x74\x65\40\x3d\40\163\x2e\151\144\137\160\162\157\144\165\143\x74\x5f\x61\x74\x74\162\151\x62\165\164\145" . (count($ids_warehouse) ? "\40\x41\x4e\104\40\167\x70\154\x2e\x69\x64\137\x77\141\x72\145\x68\157\165\163\x65\x20\x49\116\50" . pInSQL(implode("\54\40", $ids_warehouse)) . "\x29" : '') . "\51"); goto NDVxl; YgAsx: return 0; goto LMklf; xVSQr: tpZ24: goto O56g9; BnpHA: if (!$has_combination) { goto IWR2s; } goto XOiqn; R1HGD: goto Fjpir; goto M_q2D; GV34D: $query->where("\163\56\151\x64\137\x77\x61\162\x65\x68\157\165\163\x65\40\x49\116\50" . pInSQL(implode("\x2c\40", $ids_warehouse) . "\x29")); goto PrMRf; LMklf: k47jI: goto gLaLL; snhfD: $query->select("\123\125\115\50" . ($usable ? "\x73\56\x75\x73\x61\142\x6c\145\137\161\x75\141\x6e\164\151\x74\x79" : "\163\x2e\160\x68\171\163\151\x63\x61\154\137\161\x75\141\156\164\x69\x74\171") . "\51"); goto WB6yD; kf4I9: if (!$has_combination) { goto tpZ24; } goto TRHal; dNer9: HsyQw: goto OYbi7; riwvy: V6MNu: goto A5KxF; ZGG7e: $query = new DbQuery(); goto snhfD; og1L3: $ids_warehouse = array($ids_warehouse); goto riwvy; WB6yD: $query->from("\163\x74\157\x63\x6b", "\163"); goto BnpHA; NDVxl: IWR2s: goto FL5pL; OYbi7: if (!count($ids_warehouse)) { goto e60xQ; } goto GV34D; gLaLL: Fjpir: goto ZGG7e; bMopd: $ids_warehouse = array(); goto R1HGD; O56g9: return (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto CV93Z; A5KxF: $ids_warehouse = array_map("\x69\156\x74\166\x61\x6c", $ids_warehouse); goto tXo9t; TRHal: $query->where("\163\56\151\x64\x5f\160\162\x6f\x64\x75\x63\x74\137\141\x74\164\x72\x69\x62\165\x74\x65\40\41\x3d\x20\x30"); goto xVSQr; PrMRf: e60xQ: goto kf4I9; Sq635: if (is_array($ids_warehouse)) { goto V6MNu; } goto og1L3; CV93Z: } public static function getCustomerCartRules($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null, $free_shipping_only = false, $highlight_only = false) { goto BigT_; BigT_: if (version_compare(_PS_VERSION_, "\61\56\x37\x2e\60\56\x30", "\x3e\x3d")) { goto JOkIe; } goto J2U2T; M3xla: return Discount::getCustomerDiscounts($id_lang, $id_customer, $active, $includeGeneric, $inStock); goto FEMEe; CMhjx: NGT8T: goto UyVjZ; J2U2T: if (version_compare(_PS_VERSION_, "\61\x2e\65\x2e\x30\56\61", "\x3e\75")) { goto NGT8T; } goto M3xla; tc3l0: goto aEshU; goto CMhjx; FEMEe: goto aEshU; goto o39QZ; o39QZ: JOkIe: goto BK4a_; UyVjZ: return self::_getCustomerCartRules($id_lang, $id_customer, $active, $includeGeneric, $inStock, $cart); goto Cn4oL; BK4a_: return self::_getCustomerCartRules_17($id_lang, $id_customer, $active, $includeGeneric, $inStock, $cart, $free_shipping_only, $highlight_only); goto tc3l0; Cn4oL: aEshU: goto qaljx; qaljx: } public static function _getCustomerCartRules_17($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null, $free_shipping_only = false, $highlight_only = false) { goto aGOsD; gIL_6: foreach ($result as $key => $cart_rule) { goto rL4qG; bgh04: $cartRuleShops = Db::getInstance()->executeS("\123\x45\x4c\x45\x43\124\x20\151\x64\x5f\163\x68\157\x70\x20\106\122\x4f\x4d\40" . _DB_PREFIX_ . "\143\x61\162\x74\x5f\x72\165\x6c\x65\x5f\x73\x68\x6f\x70\40\x57\x48\x45\122\x45\x20\151\x64\137\x63\141\162\x74\137\162\x75\x6c\145\40\x3d\40" . (int) $cart_rule["\151\x64\137\143\x61\162\164\x5f\x72\165\154\x65"]); goto p0hfa; SdDF1: Ia4ju: goto h15rP; qmzmF: DWnJp: goto EYoXY; p0hfa: foreach ($cartRuleShops as $cartRuleShop) { goto fu38B; cVu2X: goto bwLGF; goto q23AB; GJ_Ih: Y17ZW: goto mX5mb; q23AB: C34P6: goto GJ_Ih; fu38B: if (!(Shop::isFeatureActive() && $cartRuleShop["\151\144\x5f\163\150\157\160"] == (int) SCI::getSelectedShop())) { goto C34P6; } goto cVu2X; mX5mb: } goto qmzmF; h15rP: bwLGF: goto ksqVg; rL4qG: if (!$cart_rule["\163\x68\x6f\x70\137\162\x65\x73\x74\x72\x69\143\x74\x69\157\x6e"]) { goto Ia4ju; } goto bgh04; EYoXY: unset($result[$key]); goto SdDF1; ksqVg: } goto vE_RX; Prj8c: $sql_part2 = "\40\x41\x4e\104\40\x63\x72\x2e\144\x61\x74\145\x5f\146\x72\x6f\155\40\74\x20\42" . date("\131\55\155\x2d\144\x20\x48\72\x69\x3a\163") . "\x22\xa\x20\40\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\x20\x41\x4e\104\40\143\x72\56\144\x61\164\x65\137\x74\x6f\40\76\40\42" . date("\x59\x2d\155\x2d\144\x20\x48\x3a\x69\72\163") . "\42\12\40\40\x20\40\x20\x20\40\x20\40\40\x20\40\40\x20\40\x20" . ($active ? "\101\x4e\104\40\143\162\56\140\141\x63\x74\151\166\145\140\x20\x3d\x20\x31" : '') . "\xa\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\40\x20" . ($inStock ? "\x41\116\104\40\x63\162\56\140\161\x75\141\x6e\164\151\164\171\x60\40\x3e\x20\x30" : ''); goto OK7jZ; IytM4: $sql .= "\x20\125\116\111\x4f\116\40\x28\123\105\x4c\x45\103\124\40" . $sql_part1 . "\40\x57\x48\x45\x52\x45\40\x63\x72\x2e\140\x67\x72\157\x75\x70\137\162\145\163\x74\x72\151\x63\x74\151\157\x6e\140\x20\x3d\40\61\40" . $sql_part2 . "\51"; goto DnjZJ; nlkGV: Tkymc: goto mzAEL; QvYA9: pjGF5: goto rAGD1; aE_Vd: v550F: goto fbb2T; cr0kw: $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql, true, false); goto OKn0y; EvaFr: $result = $result_bak; goto aE_Vd; fbb2T: return $result; goto AkDHd; O1wTZ: if (!(isset($cart) && isset($cart->id))) { goto OuXXH; } goto Nu2R6; vE_RX: AdzrT: goto O1wTZ; Nu2R6: foreach ($result as $key => $cart_rule) { goto Ccd8g; BEGKp: HpkwG: goto ePg1J; ePg1J: unset($result[$key]); goto fE0gt; Pe30t: goto Ti_vv; goto ZsyzL; IF2GO: rlhzJ: goto p1ANt; o0fgv: goto rlhzJ; goto BEGKp; Ccd8g: if (!$cart_rule["\160\162\157\144\165\143\x74\137\162\145\x73\x74\x72\151\x63\x74\x69\x6f\x6e"]) { goto gvOxE; } goto WnDv1; ZsyzL: ZRdAC: goto TWctc; uaptF: if (!($r !== false)) { goto HpkwG; } goto o0fgv; d4iud: Ti_vv: goto uaptF; ih8Sz: if (version_compare(_PS_VERSION_, "\x38\56\60\56\x30", "\x3e\75")) { goto ZRdAC; } goto lxqaz; WnDv1: $cr = new CartRule((int) $cart_rule["\151\x64\137\x63\x61\162\x74\137\162\x75\x6c\145"]); goto ih8Sz; lxqaz: $r = $cr->checkProductRestrictions(Context::getContext(), false, false); goto Pe30t; TWctc: $r = $cr->checkProductRestrictionsFromCart($cart, false, false); goto d4iud; fE0gt: gvOxE: goto IF2GO; p1ANt: } goto xl2Fv; i94Y1: OuXXH: goto q12QT; oUX_3: foreach ($result_bak as $key => $cart_rule) { goto UWZkd; y3j0u: U9DQx: goto DFqZl; iZgE5: vmfwq: goto y3j0u; UWZkd: if ($cart_rule["\143\157\165\x6e\x74\162\x79\137\162\145\163\164\162\x69\x63\164\151\157\x6e"]) { goto zHviU; } goto PpnNW; l71hF: $country_restriction = true; goto GrMi0; GrMi0: $countries = Db::getInstance()->ExecuteS("\12\40\40\40\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\123\105\114\105\x43\x54\x20\x60\151\x64\137\143\x6f\x75\156\x74\x72\x79\x60\12\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x46\x52\x4f\115\x20\140" . _DB_PREFIX_ . "\x61\144\x64\x72\145\x73\163\140\12\40\x20\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\127\110\105\122\105\40\x60\x69\x64\137\143\165\163\164\x6f\155\x65\x72\x60\40\x3d\40" . (int) $id_customer . "\xa\40\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\101\x4e\x44\x20\x60\x64\x65\x6c\145\x74\145\x64\x60\x20\75\x20\x30"); goto hIz3o; H7FBL: foreach ($countries as $country) { goto fSUR7; W0txx: $result[] = $result_bak[$key]; goto gXRzd; tKYQP: f0ICl: goto F9Nib; fSUR7: $id_cart_rule = (bool) Db::getInstance()->getValue("\xa\x20\40\x20\x20\40\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\40\123\x45\x4c\105\103\x54\x20\x63\162\x63\56\151\144\x5f\x63\141\162\x74\x5f\x72\x75\x6c\x65\12\x20\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\40\106\122\x4f\115\40" . _DB_PREFIX_ . "\x63\x61\162\x74\x5f\x72\x75\x6c\x65\137\x63\157\x75\156\x74\x72\171\40\143\162\143\12\40\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\40\x20\x20\40\x20\127\110\105\122\x45\x20\143\x72\143\x2e\x69\144\x5f\x63\x61\x72\164\x5f\x72\165\154\145\x20\x3d\40" . (int) $cart_rule["\x69\144\x5f\143\x61\x72\x74\x5f\162\x75\x6c\145"] . "\12\40\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\x20\40\x41\x4e\x44\40\143\x72\143\x2e\151\144\x5f\x63\x6f\x75\156\x74\162\x79\40\x3d\40" . (int) $country["\x69\x64\137\x63\157\165\x6e\164\162\x79"]); goto QqAXp; HXXzn: kfXk2: goto tKYQP; QqAXp: if (!$id_cart_rule) { goto kfXk2; } goto W0txx; gXRzd: goto H3VIw; goto HXXzn; F9Nib: } goto TSsCR; hIz3o: if (!(is_array($countries) && count($countries))) { goto vmfwq; } goto H7FBL; PpnNW: $result[] = $result_bak[$key]; goto fef_s; DJgNs: zHviU: goto l71hF; TSsCR: H3VIw: goto iZgE5; fef_s: goto U9DQx; goto DJgNs; DFqZl: uOqAh: goto AkuO4; AkuO4: } goto aU5Oh; XBUZK: foreach ($result as &$cart_rule) { goto iOdc5; hd6Es: $quantity_used = Order::getDiscountsCustomer((int) $id_customer, (int) $cart_rule["\151\144\x5f\143\141\162\x74\x5f\x72\x75\x6c\145"]); goto dsKzf; HOU1C: goto K14lX; goto GaPZG; dsKzf: if (!(isset($cart) && isset($cart->id))) { goto ROILG; } goto PTygg; gE8nV: $cart_rule["\x71\x75\x61\x6e\x74\x69\x74\171\x5f\x66\157\162\137\x75\163\x65\162"] = $cart_rule["\161\165\141\156\x74\x69\x74\x79\x5f\160\x65\162\x5f\x75\163\x65\162"] - $quantity_used; goto z2RYf; z2RYf: K14lX: goto u41KY; RuZQy: ROILG: goto gE8nV; PTygg: $quantity_used += $cart->getDiscountsCustomer((int) $cart_rule["\x69\144\137\x63\x61\162\164\137\x72\165\x6c\145"]); goto RuZQy; u41KY: mMo3G: goto YZ6EC; WnsZt: $cart_rule["\161\x75\141\156\164\x69\164\x79\x5f\x66\x6f\x72\137\x75\163\145\x72"] = 0; goto HOU1C; iOdc5: if ($cart_rule["\x71\x75\141\156\x74\151\x74\x79\137\160\x65\x72\x5f\x75\x73\x65\162"]) { goto qbiUV; } goto WnsZt; GaPZG: qbiUV: goto hd6Es; YZ6EC: } goto N0e4K; jLGIi: $sql_part2 .= "\40\x41\x4e\104\40\146\x72\x65\145\x5f\x73\x68\x69\x70\160\x69\x6e\147\40\x3d\40\x31\40\x41\x4e\104\x20\143\x61\162\x72\x69\x65\x72\x5f\x72\145\x73\164\x72\x69\x63\164\151\x6f\x6e\40\x3d\x20\61"; goto Wc3Fd; rAGD1: $sql_part1 = "\52\40\106\x52\117\115\40\140" . _DB_PREFIX_ . "\x63\141\x72\164\x5f\162\x75\x6c\x65\140\40\x63\x72\xa\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\x4c\105\106\x54\x20\x4a\x4f\x49\116\x20\140" . _DB_PREFIX_ . "\x63\x61\x72\x74\x5f\162\165\x6c\x65\137\x6c\141\156\147\x60\x20\x63\x72\154\x20\x4f\116\x20\x28\x63\x72\56\140\x69\144\x5f\x63\x61\x72\x74\137\x72\x75\154\145\140\40\x3d\40\143\x72\154\56\x60\x69\144\137\143\x61\x72\164\137\162\165\x6c\x65\140\x20\101\x4e\x44\40\x63\x72\x6c\56\x60\151\x64\137\x6c\x61\x6e\147\140\x20\x3d\40" . (int) $id_lang . "\51"; goto Prj8c; q12QT: $result_bak = $result; goto iynAr; DakPg: if (!$highlight_only) { goto w5hMY; } goto ly8aX; vyB42: return array(); goto nlkGV; Dwcok: return array(); goto QvYA9; waW5G: unset($cart_rule); goto gIL_6; DnjZJ: if (!($includeGeneric && (int) $id_customer != 0)) { goto VhWTF; } goto sr9jV; btdco: foreach ($result as $key => $cart_rule) { goto yIqgW; q3zPj: unset($result[$key]); goto JgQco; yIqgW: if (!$cart_rule["\x67\162\x6f\165\x70\x5f\x72\145\x73\164\x72\151\x63\164\x69\x6f\x6e"]) { goto PyALt; } goto NYjn2; uGnjc: foreach ($cartRuleGroups as $cartRuleGroup) { goto HWBmH; RQ383: rQMi5: goto ICCl3; HWBmH: if (!in_array($cartRuleGroup["\151\x64\137\147\162\157\x75\x70"], $customerGroups)) { goto bPea2; } goto mHcbs; xIU9r: bPea2: goto RQ383; mHcbs: goto lP2x4; goto xIU9r; ICCl3: } goto EJykK; NYjn2: $cartRuleGroups = Db::getInstance()->executeS("\x53\x45\114\105\103\x54\x20\151\144\137\147\x72\157\165\x70\x20\x46\x52\117\x4d\x20" . _DB_PREFIX_ . "\143\x61\x72\164\137\162\165\x6c\145\x5f\147\x72\157\165\160\40\127\x48\105\122\x45\x20\151\144\x5f\143\x61\162\x74\137\x72\165\x6c\145\x20\x3d\40" . (int) $cart_rule["\151\144\x5f\143\141\x72\x74\137\162\165\154\x65"]); goto uGnjc; JgQco: PyALt: goto Nj9I6; Nj9I6: lP2x4: goto PCpLL; EJykK: zSTjj: goto q3zPj; PCpLL: } goto Z5rDs; OK7jZ: if (!$free_shipping_only) { goto KF1r_; } goto jLGIi; aGOsD: if (CartRule::isFeatureActive()) { goto pjGF5; } goto Dwcok; aU5Oh: DjexA: goto KYIlY; o0O2N: VhWTF: goto cr0kw; N0e4K: wjca3: goto waW5G; IvTxf: $sql = "\50\x53\105\114\x45\x43\124\40\123\121\114\137\x4e\x4f\x5f\x43\101\x43\x48\105\x20" . $sql_part1 . "\40\127\x48\x45\122\105\x20\143\162\x2e\140\151\x64\137\143\x75\163\164\157\155\145\x72\140\40\x3d\x20" . (int) $id_customer . "\40" . $sql_part2 . "\x29"; goto IytM4; xl2Fv: SgYSE: goto i94Y1; mzAEL: $customerGroups = Customer::getGroupsStatic($id_customer); goto btdco; Wc3Fd: KF1r_: goto DakPg; tVMcL: $country_restriction = false; goto oUX_3; sr9jV: $sql .= "\40\x55\x4e\x49\117\x4e\x20\x28\x53\105\x4c\105\x43\124\x20" . $sql_part1 . "\40\x57\110\x45\122\105\x20\x63\162\56\140\x69\x64\137\143\x75\163\x74\157\155\145\162\x60\40\x3d\x20\x30\40" . $sql_part2 . "\x29"; goto o0O2N; Z5rDs: tmv47: goto XBUZK; ly8aX: $sql_part2 .= "\x20\101\116\x44\40\x68\x69\147\x68\x6c\x69\x67\150\x74\x20\75\40\61\x20\101\116\x44\40\x63\157\x64\x65\40\116\x4f\x54\40\114\111\113\105\40\42" . pSQL(CartRule::BO_ORDER_CODE_PREFIX) . "\45\42"; goto sgm2r; KYIlY: if ($country_restriction) { goto v550F; } goto EvaFr; sgm2r: w5hMY: goto IvTxf; iynAr: $result = array(); goto tVMcL; OKn0y: if (!empty($result)) { goto Tkymc; } goto vyB42; AkDHd: } public static function _getCustomerCartRules($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null) { goto dZ_WO; dLw3U: foreach ($result as $key => $cart_rule) { goto qwT6_; oHQDE: foreach ($cartRuleGroups as $cartRuleGroup) { goto v6HRc; v6HRc: if (!in_array($cartRuleGroup["\x69\144\x5f\147\162\x6f\x75\x70"], $customerGroups)) { goto wFPzU; } goto ZNlrk; ZNlrk: goto Oqda8; goto mowv8; mowv8: wFPzU: goto AB5IJ; AB5IJ: KFwya: goto Ldu2g; Ldu2g: } goto kfjvZ; FN3rn: $cartRuleGroups = Db::getInstance()->executeS("\x53\105\x4c\105\x43\124\x20\x69\x64\137\x67\x72\x6f\x75\x70\40\106\x52\117\115\x20" . _DB_PREFIX_ . "\x63\141\162\x74\137\162\165\x6c\145\x5f\147\x72\x6f\165\160\x20\x57\110\x45\x52\x45\x20\151\x64\x5f\x63\x61\162\x74\x5f\x72\x75\x6c\x65\x20\x3d\x20" . (int) $cart_rule["\x69\x64\x5f\x63\x61\x72\x74\x5f\x72\165\154\x65"]); goto oHQDE; JCAx7: Oqda8: goto P5qpb; NAOiG: wNQ4p: goto JCAx7; PK1jA: unset($result[$key]); goto NAOiG; qwT6_: if (!$cart_rule["\x67\162\157\x75\x70\137\162\x65\163\x74\162\151\143\164\151\157\x6e"]) { goto wNQ4p; } goto FN3rn; kfjvZ: MG_7p: goto PK1jA; P5qpb: } goto ijTAA; t2YfK: if (!$includeGeneric) { goto WilxJ; } goto eMATg; TdhmM: lLnBU: goto X9HAm; cqYNb: return $result; goto hJ7h8; hUgVz: WilxJ: goto iN23C; r8cuZ: g8Rmf: goto TdhmM; eMATg: $customerGroups = Customer::getGroupsStatic($id_customer); goto dLw3U; KiefN: foreach ($result as $cart_rule) { goto UqM30; ZDNr6: unset($result[$key]); goto XySI8; UqM30: if (!$cart_rule["\x73\x68\x6f\x70\137\x72\145\x73\x74\162\x69\x63\164\151\157\156"]) { goto y35ta; } goto f1vcs; f1vcs: $cartRuleShops = Db::getInstance()->executeS("\x53\x45\x4c\105\x43\x54\40\151\144\x5f\163\x68\157\x70\40\106\x52\x4f\x4d\x20" . _DB_PREFIX_ . "\143\x61\162\x74\x5f\x72\165\x6c\145\x5f\x73\150\157\160\x20\127\x48\x45\x52\105\40\x69\144\137\x63\141\x72\164\137\x72\165\x6c\145\x20\75\x20" . (int) $cart_rule["\151\x64\137\x63\x61\x72\x74\137\162\165\154\145"]); goto t8slv; XySI8: y35ta: goto kkGS4; t8slv: foreach ($cartRuleShops as $cartRuleShop) { goto z0rbH; z0rbH: if (!(Shop::isFeatureActive() && $cartRuleShop["\x69\x64\137\163\x68\157\160"] == (int) SCI::getSelectedShop())) { goto z5sXV; } goto F6Rdz; F6Rdz: goto l6AFh; goto UOFel; UOFel: z5sXV: goto s4DTG; s4DTG: yTNfO: goto buHje; buHje: } goto S6ibI; S6ibI: DdG6c: goto ZDNr6; kkGS4: l6AFh: goto TtHW7; TtHW7: } goto r8cuZ; dAKay: if (!version_compare(_PS_VERSION_, "\61\x2e\66\56\x30\x2e\60", "\76\75")) { goto lLnBU; } goto Ql7Ta; ijTAA: acXl6: goto hUgVz; HwnBD: FJwm0: goto x2QXI; X9HAm: foreach ($result as $cart_rule) { goto zz2aN; U8dj7: goto CS3Rm; goto TbLMC; XT5ZV: $cart_rule["\x76\x61\x6c\165\x65"] = $cart_rule["\x72\145\144\165\143\164\x69\157\x6e\137\141\155\x6f\165\x6e\x74"]; goto ujX2C; sOPSL: if ($cart_rule["\162\x65\x64\x75\143\x74\151\157\156\137\x70\x65\162\143\x65\x6e\x74"] > 0) { goto iBop9; } goto l31TK; e60hs: $cart_rule["\x69\x64\x5f\144\151\x73\143\157\165\x6e\x74\x5f\x74\x79\160\x65"] = Discount::PERCENT; goto WC3Dm; l31TK: if ($cart_rule["\162\x65\x64\165\x63\x74\151\x6f\156\137\141\155\157\165\x6e\164"] > 0) { goto wBZd0; } goto U7Vch; zz2aN: $cart_rule["\x76\x61\154\165\x65"] = 0; goto LWcCT; BRlxT: goto CS3Rm; goto esf01; p219N: $cart_rule["\x69\x64\137\144\151\x73\143\157\165\x6e\164\137\x74\171\160\x65"] = Discount::FREE_SHIPPING; goto U8dj7; ujX2C: CS3Rm: goto ipueA; LWcCT: $cart_rule["\x6d\151\156\x69\x6d\x61\x6c"] = $cart_rule["\x6d\151\x6e\x69\x6d\x75\155\137\141\x6d\157\165\x6e\164"]; goto It3kK; ipueA: mKXJF: goto O8rZO; WC3Dm: $cart_rule["\x76\141\154\165\145"] = $cart_rule["\x72\145\x64\x75\143\164\151\157\x6e\x5f\160\x65\x72\x63\145\156\164"]; goto BRlxT; esf01: wBZd0: goto jl9v6; kYDxe: oHwtr: goto p219N; TbLMC: iBop9: goto e60hs; It3kK: $cart_rule["\143\x75\155\165\x6c\x61\142\x6c\145"] = !$cart_rule["\x63\141\x72\x74\x5f\162\165\x6c\145\137\162\145\x73\164\x72\x69\143\164\x69\157\156"]; goto xAPC3; xAPC3: $cart_rule["\151\144\137\144\x69\x73\143\157\165\x6e\164\137\164\x79\x70\x65"] = false; goto nJ36m; U7Vch: goto CS3Rm; goto kYDxe; jl9v6: $cart_rule["\151\144\x5f\144\151\163\143\157\x75\156\x74\137\x74\171\160\x65"] = Discount::AMOUNT; goto XT5ZV; nJ36m: if ($cart_rule["\146\162\x65\145\x5f\163\x68\x69\x70\160\151\x6e\x67"]) { goto oHwtr; } goto sOPSL; O8rZO: } goto sYfQD; Mc_Q9: return array(); goto HwnBD; dZ_WO: if (CartRule::isFeatureActive()) { goto FJwm0; } goto Mc_Q9; iN23C: foreach ($result as $cart_rule) { goto gFSP9; h5Ad5: tjqzb: goto IGOqA; KBnzn: rj5A1: goto h5Ad5; Pzuq5: $quantity_used += $cart->getDiscountsCustomer((int) $cart_rule["\x69\144\137\143\141\162\x74\137\162\x75\154\x65"]); goto sx2J0; gFSP9: if ($cart_rule["\x71\x75\141\x6e\164\151\164\171\x5f\160\x65\162\x5f\165\x73\145\162"]) { goto kfrhC; } goto FiVCl; UxLPU: goto rj5A1; goto rSkXs; sx2J0: d06uE: goto YXoDH; YXoDH: $cart_rule["\161\165\x61\x6e\164\151\164\171\137\146\x6f\x72\137\165\x73\x65\x72"] = $cart_rule["\x71\x75\x61\156\x74\x69\x74\x79\137\x70\145\x72\137\x75\163\x65\x72"] - $quantity_used; goto KBnzn; rSkXs: kfrhC: goto UVwDI; UVwDI: $quantity_used = Order::getDiscountsCustomer((int) $id_customer, (int) $cart_rule["\x69\144\x5f\143\141\x72\x74\x5f\x72\x75\x6c\x65"]); goto CBnLI; FiVCl: $cart_rule["\161\x75\141\x6e\x74\x69\x74\171\x5f\x66\157\162\137\x75\x73\x65\162"] = 0; goto UxLPU; CBnLI: if (!(isset($cart) && isset($cart->id))) { goto d06uE; } goto Pzuq5; IGOqA: } goto DxHdH; x2QXI: $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS("\xa\x20\x20\x20\40\x20\40\40\x20\123\x45\114\105\103\x54\40\52\12\40\x20\x20\x20\40\40\x20\x20\106\x52\x4f\115\40\x60" . _DB_PREFIX_ . "\143\141\162\164\x5f\x72\x75\x6c\x65\140\40\x63\162\12\40\40\x20\x20\40\x20\x20\x20\114\x45\106\124\40\112\117\x49\116\x20\140" . _DB_PREFIX_ . "\x63\141\x72\x74\137\162\x75\x6c\x65\x5f\154\x61\156\x67\140\x20\143\162\x6c\x20\x4f\116\40\50\143\162\x2e\x60\x69\144\x5f\143\141\162\164\x5f\162\165\154\x65\140\x20\x3d\x20\x63\x72\154\56\x60\151\x64\x5f\143\x61\162\x74\137\x72\165\154\x65\x60\40\x41\x4e\x44\40\143\x72\x6c\x2e\140\x69\x64\x5f\x6c\x61\156\147\x60\40\x3d\x20" . (int) $id_lang . "\51\12\x20\x20\x20\40\x20\40\x20\40\127\110\105\x52\x45\40\50\xa\40\x20\40\40\40\x20\40\x20\x20\40\x20\x20\143\x72\56\x60\x69\x64\137\143\165\x73\164\x6f\x6d\145\162\140\40\75\x20" . (int) $id_customer . "\12\40\x20\40\40\x20\40\x20\x20\x20\40\40\40" . ($includeGeneric ? "\x4f\122\x20\x63\x72\x2e\x60\x69\144\137\143\165\163\x74\x6f\x6d\x65\x72\x60\x20\x3d\x20\x30" : '') . "\xa\x20\40\x20\x20\40\40\40\40\x29\12\40\40\x20\x20\x20\40\x20\x20" . ($active ? "\x41\116\104\x20\143\162\56\140\x61\143\164\151\x76\x65\x60\40\x3d\40\x31" : '') . "\xa\x20\40\x20\40\40\x20\x20\40" . ($inStock ? "\x41\116\x44\x20\143\x72\56\140\161\x75\x61\156\x74\151\164\171\x60\x20\76\40\60" : '')); goto t2YfK; DxHdH: cQN7m: goto dAKay; sYfQD: LrXWM: goto cqYNb; Ql7Ta: unset($cart_rule); goto KiefN; hJ7h8: } public static function days_in_month($month, $year) { return $month == 2 ? $year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29)) : (($month - 1) % 7 % 2 ? 30 : 31); } public static function getProductQty($id_product, $id_product_attribute = null, $id_warehouse = null, $id_shop = null) { goto agckG; HATM0: q_VgW: goto XK34j; zEBpN: return $return; goto HATM0; vrigQ: ST5YA: goto CQ8L7; mgNBY: agJXI: goto j8Rt0; CQ8L7: $return = self::_getProductAttributeQty($id_product, $id_product_attribute, $id_warehouse, $id_shop); goto mgNBY; HC8cV: $return = self::_getProductQty($id_product, $id_product_attribute, $id_warehouse, $id_shop); goto LMHZ2; j8Rt0: return $return; goto F22Aq; fPvRb: if (!empty($id_product)) { goto q_VgW; } goto zEBpN; LMHZ2: goto agJXI; goto vrigQ; XK34j: if (!empty($id_product_attribute)) { goto ST5YA; } goto HC8cV; agckG: $return = 0; goto fPvRb; F22Aq: } public static function _getProductQty($id_product, $id_product_attribute = null, $id_warehouse = null, $id_shop = null) { goto xVh89; pAzjW: ue88u: goto D9rGf; XIMTH: goto OlGFq; goto lPNNh; okrxV: XokgQ: goto k2BYZ; vjrsV: QeAzS: goto heIxz; zwp7f: $query->select("\123\x55\115\x28\x73\x74\x2e\x75\163\141\x62\x6c\x65\x5f\x71\x75\x61\156\164\151\164\x79\51\40\141\163\40\x75\163\x61\142\x6c\x65\137\161\x75\x61\x6e\x74\151\164\171"); goto EZIsy; dCrCz: if (!(SCAS && empty($id_warehouse))) { goto DFSBF; } goto bnWwK; KWC7K: $query->where("\x69\144\137\160\162\x6f\144\165\x63\164\40\x3d\40" . (int) $id_product); goto FqeZ0; Gz2UC: ZGprj: goto JRRvP; BuLHi: $is_advanced_stock_management = false; goto n0GOl; e4lPj: im6ni: goto kLYo0; hO7Qz: EMz16: goto GASNa; K2oYJ: $query->from("\163\x74\157\x63\x6b\137\141\x76\x61\x69\154\141\142\x6c\x65"); goto lijx4; GASNa: $query = new DbQuery(); goto TDQDR; uOAhn: $ret = Db::getInstance()->ExecuteS($sql); goto RiuBu; kcPtB: if (version_compare(_PS_VERSION_, "\61\56\65\x2e\60\56\60", "\x3c") && $has_combination) { goto Y7wXo; } goto w_KWX; rnXXu: $query->select("\x53\125\x4d\x28\161\x75\141\x6e\x74\x69\x74\x79\51"); goto K2oYJ; JHaCN: $type_advanced_stock_management = 1; goto BuLHi; XsVBF: return $return; goto zCkM2; OPikW: yg0bi: goto lL9s_; zztke: $query->where("\151\x64\137\160\x72\x6f\x64\x75\x63\164\40\75\40" . (int) $id_product); goto kE1QU; heIxz: $return = 0; goto e5ocx; evglc: $query->from("\163\164\157\x63\153\x5f\141\x76\141\151\154\141\x62\154\x65"); goto KWC7K; fNm_2: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto P1YJq; PUOfb: if (!SCAS) { goto im6ni; } goto WdiWO; BKFjV: Y7wXo: goto klqqd; GOBlF: $without_warehouse = true; goto DkLvV; tp7Ni: $query->where("\x69\x64\x5f\167\141\x72\x65\x68\x6f\165\x73\x65\x20\75\x20" . (int) $id_warehouse); goto ijNxX; m4H9v: $query->where("\163\164\x2e\151\x64\x5f\x70\162\x6f\144\x75\143\x74\x5f\141\164\x74\x72\151\142\165\x74\145\40\41\75\x20\60"); goto SrcY2; lM0AT: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto DYRsk; Y6u7O: $query->where("\151\x64\x5f\160\162\x6f\x64\x75\x63\x74\x5f\141\x74\164\162\151\x62\x75\164\145\40\41\75\x20\x30"); goto m6Vp5; X9BSJ: $type_advanced_stock_management = 2; goto ymTld; zSGTh: if (version_compare(_PS_VERSION_, "\61\56\65\56\x30\56\x30", "\76\x3d") && $has_combination) { goto DbGCT; } goto Bl_ma; Ey5jy: if (version_compare(_PS_VERSION_, "\61\x2e\x37\x2e\60\56\60", "\76\x3d")) { goto EMz16; } goto zSGTh; g2p8g: return $return; goto U9ZcX; gdPUw: $return = $ret[0]["\161\x75\141\x6e\164\x69\164\x79"]; goto o1ItA; aowzQ: $query = new DbQuery(); goto zwp7f; CU2a2: if (!empty($return)) { goto hw2Gb; } goto neWyH; sPVd6: $product = new Product($id_product); goto a3TTn; y8835: $query->where("\163\x74\x2e\151\144\x5f\167\x61\162\x65\x68\157\165\x73\145\40\x3d\40" . (int) $id_warehouse); goto m4H9v; FqeZ0: $query->where("\151\x64\137\x70\162\x6f\144\165\x63\164\137\141\x74\x74\x72\151\x62\165\164\145\x20\75\x20\x30"); goto m4Epo; dJlGT: $return = $quantities["\x75\163\x61\x62\154\x65\x5f\x71\x75\141\156\164\x69\x74\171"]; goto woG4_; w_KWX: $return = $product->quantity; goto XIMTH; nwbyF: dCOXB: goto CEIrG; pdl8H: iDwBQ: goto XwiZ9; k2BYZ: $query = new DbQuery(); goto psH98; kE1QU: $query->where("\x69\x64\137\x70\x72\157\x64\165\143\164\137\141\164\x74\x72\x69\142\165\x74\x65\40\x3d\x20\x30"); goto O5oKU; CVcQJ: DFSBF: goto JHaCN; EZIsy: $query->from("\163\164\157\x63\153", "\x73\164"); goto j9r3O; o1ItA: ArtLN: goto IV2hZ; lPNNh: PINV6: goto aowzQ; klqqd: $sql = "\123\105\x4c\x45\103\124\40\123\x55\x4d\x28\x71\x75\141\x6e\x74\151\164\171\x29\40\x61\163\x20\161\165\141\x6e\x74\151\x74\x79\40\106\122\117\x4d\40" . _DB_PREFIX_ . "\160\162\157\144\x75\x63\164\x5f\x61\164\164\x72\151\142\165\x74\x65\x20\x57\110\105\x52\105\x20\151\x64\x5f\160\x72\x6f\144\165\x63\x74\x20\75\40" . (int) $id_product . "\40\x41\x4e\x44\40\x69\144\x5f\x70\162\x6f\144\165\143\164\x5f\141\164\164\x72\x69\x62\x75\x74\x65\x20\41\75\x20\60"; goto uOAhn; D9rGf: $product = new Product($id_product, false, null, (int) $id_shop); goto lUkCs; nMapR: if (empty($temp_check_in_warehouse)) { goto iDwBQ; } goto B1rfP; DkLvV: $usable_quantity = 0; goto PUOfb; UPT75: if (!SCMS) { goto iwOoI; } goto vOfKw; EJAGC: $has_combination = true; goto nwbyF; neWyH: $return = 0; goto wpgqi; XwiZ9: if (StockAvailable::dependsOnStock((int) $id_product, (int) SCI::getSelectedShop())) { goto yg0bi; } goto EAByM; MciEE: $query = new DbQuery(); goto kV9bz; ijNxX: $quantities = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query); goto nS5Jx; bnWwK: $id_warehouse = (int) SCI::getSelectedWarehouse(); goto CVcQJ; a3TTn: goto aUU2E; goto pAzjW; Wwf_M: $query = new DbQuery(); goto rnXXu; dcBZv: DbGCT: goto Wwf_M; dC_lA: $not_in_warehouse = true; goto GOBlF; kLYo0: if (!$product->hasAttributes()) { goto dCOXB; } goto EJAGC; m4Epo: if (!SCMS) { goto ZGprj; } goto z15aK; XASyC: if (SCAS && $type_advanced_stock_management == 2 && $not_in_warehouse) { goto QeAzS; } goto Ey5jy; EAByM: $type_advanced_stock_management = 3; goto OPikW; ymTld: $temp_check_in_warehouse = WarehouseProductLocation::getIdByProductAndWarehouse((int) $id_product, 0, (int) $id_warehouse); goto nMapR; P1YJq: KksZv: goto OoeLE; vOfKw: if (!empty($id_shop)) { goto Viv6v; } goto Llgkp; o59q_: mYANx: goto lM0AT; nS5Jx: $return = $quantities["\x75\163\x61\142\x6c\x65\x5f\x71\165\141\156\164\151\164\171"]; goto IP2X9; Tnr8w: $is_advanced_stock_management = true; goto X9BSJ; SrcY2: $quantities = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query); goto dJlGT; U2Ade: if (!empty($id_product)) { goto n8vPr; } goto XsVBF; RiuBu: if (empty($ret[0]["\161\x75\x61\156\164\x69\164\171"])) { goto ArtLN; } goto gdPUw; yqUGB: goto OlGFq; goto dcBZv; fism0: cdt90: goto MciEE; lijx4: $query->where("\x69\x64\137\160\x72\157\144\165\143\164\x20\75\x20" . (int) $id_product); goto Y6u7O; z15aK: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto Gz2UC; lUkCs: aUU2E: goto dCrCz; TDQDR: $query->select("\161\165\141\156\x74\151\x74\171"); goto dtMep; kV9bz: $query->select("\x53\125\115\x28\165\x73\x61\x62\154\x65\x5f\161\x75\141\156\x74\151\164\171\51\x20\141\x73\x20\x75\163\x61\x62\154\x65\x5f\161\165\x61\x6e\x74\x69\164\x79"); goto Cp0Z7; Bl_ma: if (version_compare(_PS_VERSION_, "\61\56\65\x2e\x30\x2e\60", "\76\75") && !$has_combination) { goto XokgQ; } goto kcPtB; lL9s_: qo89e: goto e4lPj; NC1mB: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto o59q_; WdiWO: if (!($product->advanced_stock_management == 1)) { goto qo89e; } goto Tnr8w; Cxhj1: Viv6v: goto bE1BW; m6Vp5: if (!SCMS) { goto mYANx; } goto NC1mB; zCkM2: n8vPr: goto UPT75; OoeLE: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto yqUGB; anGSU: if (version_compare(_PS_VERSION_, "\61\56\x35\x2e\x30\56\60", "\x3e\75")) { goto ue88u; } goto sPVd6; woG4_: goto OlGFq; goto fism0; IP2X9: goto OlGFq; goto vjrsV; bE1BW: iwOoI: goto anGSU; n0GOl: $has_combination = false; goto dC_lA; O5oKU: if (!SCMS) { goto KksZv; } goto fNm_2; EEu_9: if (SCAS && $type_advanced_stock_management == 2 && !$has_combination && !$not_in_warehouse) { goto cdt90; } goto XASyC; Llgkp: $id_shop = SCI::getSelectedShop(); goto Cxhj1; psH98: $query->select("\161\165\x61\156\164\x69\x74\x79"); goto evglc; wpgqi: hw2Gb: goto g2p8g; IV2hZ: OlGFq: goto CU2a2; DYRsk: goto OlGFq; goto okrxV; JRRvP: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto jXA0L; e5ocx: goto OlGFq; goto hO7Qz; B1rfP: $not_in_warehouse = false; goto pdl8H; jXA0L: goto OlGFq; goto BKFjV; xVh89: $return = 0; goto U2Ade; Cp0Z7: $query->from("\163\164\157\x63\x6b"); goto FLfAl; FLfAl: $query->where("\x69\x64\137\x70\162\157\144\165\143\164\x20\75\x20" . (int) $id_product); goto tp7Ni; CEIrG: if (SCAS && $type_advanced_stock_management == 2 && $has_combination && !$not_in_warehouse) { goto PINV6; } goto EEu_9; dtMep: $query->from("\x73\x74\157\143\153\x5f\x61\166\141\151\x6c\141\x62\x6c\145"); goto zztke; j9r3O: $query->where("\163\x74\x2e\x69\x64\137\x70\162\x6f\x64\x75\x63\164\x20\x3d\40" . (int) $id_product); goto y8835; U9ZcX: } public static function _getProductAttributeQty($id_product, $id_product_attribute = null, $id_warehouse = null, $id_shop = null) { goto d5lxX; d5lxX: $return = 0; goto t0K_i; Gmn6p: goto bxtux; goto EVV1y; qsctz: $query->from("\163\164\x6f\x63\x6b\x5f\141\x76\x61\151\154\141\x62\x6c\145"); goto J1IGn; kMn63: $query = new DbQuery(); goto Hfj6V; JQ3tY: $query->where("\x73\164\x2e\x69\x64\x5f\x77\x61\162\x65\x68\x6f\x75\163\145\40\75\40" . (int) $id_warehouse); goto RIIr2; eOot3: $query = new DbQuery(); goto Mdeqa; tCO5e: return $return; goto BRdxf; CD9uQ: goto bxtux; goto uTOZH; COX6f: SzvO7: goto bpslx; uTOZH: W4tNc: goto kMn63; Mdeqa: $query->select("\123\125\x4d\50\161\x75\141\156\x74\151\164\171\51"); goto IHASR; BKw8P: zgHXS: goto i__0D; E6ecz: $without_warehouse = true; goto sovYl; BOGqZ: goto JyI9h; goto P8t3j; uMaNX: Em73m: goto tCO5e; sovYl: if (!SCAS) { goto SzvO7; } goto plEs9; d3oKw: goto CIX2Y; goto HvuJg; WPhGQ: Sq6Uf: goto Ks55s; co11s: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto Dep_D; Ks55s: $is_advanced_stock_management = false; goto PSLgT; MjQDX: $query->where("\x69\x64\137\160\x72\157\144\165\143\x74\x5f\x61\164\164\x72\151\142\165\164\145\x20\x3d\x20" . (int) $id_product_attribute); goto vHXM8; T2ocE: $is_advanced_stock_management = true; goto bAL5d; LSW90: $return = $quantities["\x75\x73\x61\x62\154\x65\137\161\x75\141\x6e\164\x69\x74\x79"]; goto bIZfF; qIMlA: if (empty($temp_check_in_warehouse)) { goto euOLK; } goto ugtGx; vHXM8: if (!SCMS) { goto ND8x6; } goto J8qz1; P8t3j: zvwRy: goto a55fe; J1IGn: $query->where("\x69\144\137\160\162\157\x64\165\x63\x74\40\75\40" . (int) $id_product); goto MjQDX; xBPMN: $product = new Product($id_product, false, null, (int) $id_shop); goto elbP5; TF786: bxtux: goto eGYBL; DI93f: if (!SCMS) { goto FGjHe; } goto WE8mf; F9bj3: if ((!SCAS || SCAS && $type_advanced_stock_management == 1) && version_compare(_PS_VERSION_, "\x31\x2e\x35\x2e\60\x2e\x30", "\76\x3d")) { goto s_HGi; } goto fg738; RIIr2: $query->where("\163\x74\x2e\151\144\137\x70\x72\157\x64\x75\143\x74\x5f\x61\x74\x74\x72\x69\x62\165\x74\145\x20\x3d\40" . (int) $id_product_attribute); goto elX3O; XupTZ: $combination->quantity = 0; goto BOGqZ; OHZLq: $not_in_warehouse = true; goto E6ecz; LscZG: if (!SCMS) { goto UKZv6; } goto zsK5o; U9r3e: rV84J: goto O00dQ; jaNIW: if (!empty($result[0]["\161\x75\141\156\x74\151\x74\171"]) && is_numeric($result[0]["\x71\x75\141\x6e\x74\151\164\171"])) { goto zvwRy; } goto XupTZ; U2QId: goto OfBtl; goto cZmCK; ZXKEi: if (SCAS && $type_advanced_stock_management == 2 && $not_in_warehouse) { goto Al3l5; } goto F9bj3; Ropnl: $query->from("\163\x74\157\x63\x6b", "\163\164"); goto xOoSC; ugtGx: $not_in_warehouse = false; goto HCHD2; lcToU: $return = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto TF786; xOoSC: $query->where("\163\164\56\151\x64\x5f\160\162\157\x64\165\x63\164\40\x3d\x20" . (int) $id_product); goto JQ3tY; zsK5o: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto o8CwP; bpslx: if (SCAS && $type_advanced_stock_management == 2 && !$not_in_warehouse) { goto W4tNc; } goto ZXKEi; fIniq: $product = new Product($id_product); goto U2QId; o8CwP: UKZv6: goto lcToU; VEXT1: $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS("\12\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\123\x45\x4c\105\x43\x54\40\x71\165\141\156\164\151\x74\x79\xa\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\106\122\117\115\x20\x60" . _DB_PREFIX_ . "\x70\x72\x6f\144\x75\x63\x74\137\141\164\x74\x72\151\x62\165\x74\145\140\12\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x57\110\x45\x52\105\40\151\x64\x5f\x70\x72\157\144\x75\x63\x74\137\x61\x74\x74\162\x69\x62\165\164\145\x20\x3d\40\42" . (int) $id_product_attribute . "\42"); goto Jk0Rw; Jk0Rw: $combination = new stdClass(); goto jaNIW; rFLOx: $return = $combination->quantity; goto d3oKw; bAL5d: $type_advanced_stock_management = 2; goto zgmmr; Dep_D: CIX2Y: goto CD9uQ; VMrcm: return $return; goto wniVJ; t0K_i: if (!empty($id_product)) { goto ktrcj; } goto VMrcm; IHASR: $query->from("\x73\164\157\143\153\137\141\x76\141\x69\154\141\142\x6c\145"); goto x9iOw; mpBSd: $query->select("\161\x75\141\x6e\x74\x69\164\x79"); goto qsctz; HvuJg: dntuW: goto EnIRC; PSLgT: $type_advanced_stock_management = 1; goto OHZLq; gr3Ny: $id_shop = SCI::getSelectedShop(); goto BKw8P; elX3O: $quantities = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query); goto LSW90; x9iOw: $query->where("\151\144\x5f\160\162\157\x64\165\x63\164\40\75\40" . (int) $id_product); goto H8IhM; kwTRL: JyI9h: goto rFLOx; WE8mf: if (!empty($id_shop)) { goto zgHXS; } goto gr3Ny; zgmmr: if (StockAvailable::dependsOnStock((int) $id_product, (int) $id_shop)) { goto rV84J; } goto lBSdu; wniVJ: ktrcj: goto DI93f; plEs9: if (!($product->advanced_stock_management == 1)) { goto Wv8qq; } goto T2ocE; J8qz1: $query = StockAvailable::addSqlShopRestriction($query, (int) $id_shop); goto ea6y2; Hfj6V: $query->select("\x53\x55\115\50\163\164\x2e\x75\x73\x61\142\154\x65\x5f\161\165\x61\x6e\164\x69\164\171\x29\x20\x61\163\40\x75\163\x61\x62\154\x65\137\161\x75\x61\x6e\164\x69\164\171"); goto Ropnl; eGYBL: if (!empty($return)) { goto Em73m; } goto TFLCt; bIZfF: goto bxtux; goto rrB30; TFLCt: $return = 0; goto uMaNX; a55fe: $combination->quantity = (int) $result[0]["\161\x75\x61\x6e\164\x69\164\x79"]; goto kwTRL; GFbCY: euOLK: goto COX6f; ESvQs: $id_warehouse = (int) SCI::getSelectedWarehouse(); goto WPhGQ; H8IhM: $query->where("\151\144\x5f\160\162\157\x64\x75\143\164\137\x61\164\164\162\x69\x62\x75\164\145\x20\75\40" . (int) $id_product_attribute); goto LscZG; eNqI3: $return = 0; goto Gmn6p; O00dQ: Wv8qq: goto zNkOm; AhyfC: if (!(SCAS && empty($id_warehouse))) { goto Sq6Uf; } goto ESvQs; lBSdu: $type_advanced_stock_management = 3; goto U9r3e; ea6y2: ND8x6: goto co11s; EVV1y: s_HGi: goto eOot3; fg738: if (version_compare(_PS_VERSION_, "\61\56\x35\x2e\60\56\x30", "\x3e\x3d")) { goto dntuW; } goto VEXT1; EnIRC: $query = new DbQuery(); goto mpBSd; i__0D: FGjHe: goto JpMrg; cZmCK: dsMTp: goto xBPMN; elbP5: OfBtl: goto AhyfC; rrB30: Al3l5: goto eNqI3; JpMrg: if (version_compare(_PS_VERSION_, "\61\56\65\x2e\x30\x2e\60", "\76\x3d")) { goto dsMTp; } goto fIniq; HCHD2: $without_warehouse = false; goto GFbCY; zNkOm: $temp_check_in_warehouse = WarehouseProductLocation::getIdByProductAndWarehouse((int) $id_product, (int) $id_product_attribute, (int) $id_warehouse); goto qIMlA; BRdxf: } public static function roundPrice($price, $modif_type) { goto dPMEX; qMcCY: if ($decimal >= 75 && $decimal <= 99) { goto Dwk8t; } goto kFFTo; nhAmM: $return = str_replace("\54", "\x2e", $return * 10); goto Os9oa; XWWzA: $decimal = 5; goto c9g_S; qpueV: $return = $unite + 2; goto pIzR0; yoCSU: $decimal = 0; goto YDY6w; n92kp: goto JEO0E; goto J8lit; mkVCY: $return = round($return); goto qOI1A; JKOoR: goto tMMQK; goto Yrcnt; TBra6: C0Dkk: goto zMnzt; W4wXz: --$return; goto V42sp; AoqLF: goto FbJU2; goto bJn4U; W4bjd: if ($decimal >= 6 && $decimal <= 9) { goto E09XW; } goto m93dg; vRceK: $decimal = 5; goto oVsEv; Gh6u4: goto zpTVn; goto zmCIx; OQOpj: if ($round_type == 2) { goto lJ30y; } goto P43Zh; kIGkC: $decimal = 0; goto aU_Lp; NB83B: HGW9e: goto Axa0r; ipbxQ: SQO1G: goto oNIje; fSj_s: if (empty($round_type)) { goto F5Tl6; } goto eMss5; iECxq: if (empty($round_type)) { goto yYZKt; } goto BlLWE; grqPz: goto wiDmj; goto ybo3h; STGzg: if ($round_type == "\x31") { goto j1qi6; } goto rKEt5; imaRL: if ($round_type == "\61") { goto Xsakx; } goto AHCeJ; Hx5ch: upthf: goto M0k8R; QCBpV: if (!(strlen($decimal) == 1)) { goto IW1_S; } goto etEXi; xcME3: if ($decimal > 90) { goto HhAMJ; } goto gGNO6; aU_Lp: goto UQ1SI; goto XKbKN; uAnHk: u0BHF: goto OAM9M; S51U7: if ($round_type == "\x32") { goto dJc0q; } goto dfrk4; QyTCt: goto WPuhe; goto VKiMf; X6Kkw: if (!($round_type == "\61")) { goto I9gwd; } goto BDfeT; xLBCh: if (!($round_type == "\x31")) { goto PqT6n; } goto M4bEO; Jm3yn: $return = str_replace("\x2c", "\56", $return * 1000000); goto D6Glv; Kfggs: if ($modif_type == "\x39") { goto nRr7b; } goto nQrXa; zTWMu: if ($round_type == "\62") { goto zrTp_; } goto ivP5m; DEqRm: oMHqP: goto Jfmu4; u5T2P: if ($decimal >= 8 && $decimal <= 9) { goto Qd3R3; } goto h1PJS; d_p5e: if (empty($round_type)) { goto LBkdM; } goto rS1te; Yrcnt: PgKj2: goto ZkdDO; APsjT: itrg7: goto S3dnW; M4bEO: $return = str_replace("\54", "\56", $return * 1000000); goto XEndp; BTFwE: $decimal = 0; goto kxudg; dPMEX: $return = $price; goto jp0ga; OmyyC: $decimal = $decimal . "\60"; goto NMgEh; Q_sda: if (empty($round_type)) { goto jX1x5; } goto gE47D; IClxU: tMMQK: goto HqsgE; JMIX2: PqT6n: goto J4vYG; Pz0UM: ri3rb: goto UxJrI; NoCbP: goto BF3b2; goto yeLIT; d3d4V: if ($modif_type == "\61") { goto Xv35k; } goto v6cWu; fRsgk: P2F76: goto dswv3; IzjAK: goto AXS3r; goto Lwpak; P1utA: goto AXS3r; goto RGacj; Ihjcg: $return = $return / 100; goto dp6PJ; nQrXa: if ($modif_type == "\x31\x30") { goto oMHqP; } goto EIBDM; m4zhj: goto zpTVn; goto cWItd; VWNdj: tc0m2: goto kIGkC; hzmvD: if (empty($round_type)) { goto oiUww; } goto eaoln; fy0Y8: list($unite, $decimal) = explode("\x2e", $return); goto zM5OU; kgvSb: goto EVZCT; goto cLx9q; Rf4VR: Dwk8t: goto p0RkU; AHCeJ: if ($round_type == "\x32") { goto GUlE_; } goto UYEVv; sF5l6: goto e3m5P; goto ZGVR9; zMnzt: EVZCT: goto vgKqQ; P43Zh: goto EVZCT; goto Uypll; c2z0U: $return = round($return); goto LoSJo; gYfj9: $unite = 0; goto xnIbR; Jfmu4: $decimalReturn = 0; goto EZ3rB; wtTPa: goto AXS3r; goto hhpdB; gwCqr: $return = $unite; goto qXLSC; h_JM7: $return = floor($return); goto uAnHk; U3XID: $return = $unite / 1000000; goto iXcmJ; IVvfB: goto kOrgB; goto RviCm; GjJOr: yYZKt: goto Z9Fyf; CTg5i: HLGmf: goto xLBCh; xCna1: $decimal = 0; goto goL8_; c3AHC: cPG_j: goto Pa3_J; wjrLO: goto KqLEP; goto o0bsO; etPcj: if ($round_type == "\61") { goto Dnape; } goto tqlHO; AwD0i: sB44q: goto zSjac; NMgEh: QNah7: goto sbOte; J8lit: Dov34: goto qUeQ3; ScJRf: E09XW: goto E3m06; tVncs: $unite = 1; goto yoCSU; qJxcL: WqxMG: goto Q3oUD; s2DDr: list($unite, $decimal) = explode("\x2e", $return); goto WsvlY; ogpcd: zrTp_: goto o0gOs; m0gxo: $return = str_replace("\x2c", "\x2e", $return * 1000000); goto MXp1Y; h9bhy: if (!($round_type == "\x31")) { goto NajfW; } goto m0gxo; KG55o: $decimal = 0; goto fwRnU; sU2X3: qKua0: goto x_bHV; zJAP3: if (empty($round_type)) { goto tH3OS; } goto STGzg; EsM0I: if (!($return >= 100)) { goto nRNP2; } goto zBW6H; t18gK: aCP5q: goto eB5uH; x_bHV: $return = $return / 10; goto WC45V; sclsR: goto kHji9; goto IY95F; ie48K: --$return; goto MG_g2; xMGQD: $decimal = 0; goto wp4PG; Os9oa: list($unite, $decimal) = explode("\x2e", $return); goto d_p5e; o0gOs: if ($decimal >= 90) { goto VLtNi; } goto AKS1M; DvnAp: if (!(strlen($decimal) == 1)) { goto IYdTv; } goto tL4rz; fei6h: dUwou: goto iwQj6; aCl2A: if (!(strlen($decimal) == 1)) { goto QNah7; } goto OmyyC; pn_hc: PFiNX: goto UJJ2k; Ba9IP: $unite = 0; goto Y2NCz; CS4CY: goto VN1uh; goto rHd5j; pjtQX: list($unite, $decimal) = explode("\x2e", $return); goto QCBpV; c3mtk: $return = $return / 100; goto fPx8O; zmCIx: C7tp3: goto vRceK; aUn2J: list($unite, $decimal) = explode("\56", $return); goto zKcW6; OwA6y: if ($round_type == 1) { goto uTqlp; } goto OQOpj; KwL0z: if ($decimal >= 1 && $decimal <= 4) { goto xAKBC; } goto t36ux; yIooc: $unite = 1; goto Heusf; D4PAw: VLtNi: goto aoimd; OCXsF: if (!($round_type == "\61")) { goto wBf8x; } goto Jm3yn; BMPlg: goto DH5Eh; goto fEERk; Gj1IK: if ($round_type == "\x32") { goto Dov34; } goto s9BZY; Lwpak: LBkdM: goto v_4EY; oNIje: $decimal = 5; goto t18gK; qYU6l: goto kHji9; goto wTqGf; pLt7H: cLHoK: goto nIBFt; p0RkU: ++$unite; goto IAxwP; fEERk: lktaP: goto Ba9IP; RjoPN: $chiffre = ($chiffre . "\x2e" . $decimal_part) * 1; goto iECxq; zpPQu: i_8qN: goto dzVgw; pOXTD: $decimalReturn = "\x30" . $decimalReturn; goto eQRmA; yPs4C: $return = ceil($return); goto SSFDk; EPJRk: if ($decimal >= 3 && $decimal <= 7) { goto Zza07; } goto u5T2P; K3PoQ: $return = str_replace("\54", "\56", $return * 1000000); goto XW6Mh; UW4Dl: if ($realDecimal > 50 && $realDecimal <= 99) { goto ZArZ7; } goto Eedd1; dswv3: return $return; goto VqUq_; xm9j5: cZEGH: goto NNzfr; N2yBK: ++$unite; goto OjH69; aoimd: $return = $unite + 1; goto WEd2f; h1PJS: goto UQ1SI; goto VWNdj; ivP5m: goto cPG_j; goto p8mNt; yO4l8: ajSIj: goto q9ZEa; k28e0: pTq3b: goto N2yBK; goL8_: wo8DW: goto c6Z_B; UYEVv: goto qKua0; goto xo8Oz; jqGK4: goto DH5Eh; goto ngm5W; s9BZY: goto JEO0E; goto k9Iw8; zBW6H: $return = str_replace("\54", "\56", $return); goto npjjZ; rH6IJ: if ($modif_type == "\x34") { goto Rf813; } goto fjVWx; icAo9: goto DH5Eh; goto vVqqX; dzVgw: $return = str_replace("\x2c", "\56", $return * 100); goto dMfN4; zjkkC: $return = str_replace("\x2c", "\x2e", $return * 1000000); goto fy0Y8; qMDYw: if ($round_type == "\62") { goto wB9fk; } goto IYBXb; dfrk4: goto wo8DW; goto WVoiv; BlLWE: if ($round_type == "\61") { goto ri3rb; } goto x1Xhs; G4Z5u: $decimal = 0; goto AwD0i; Pa3_J: $return -= 0.1; goto oaBNY; SDz_2: if ($decimal >= 5 && $decimal <= 9) { goto SQO1G; } goto HMEsg; oiXfB: if ($decimal >= 3 && $decimal <= 7) { goto C7tp3; } goto SRhUP; ybo3h: uw9yA: goto e6UEK; zM5OU: $return = $unite / 1000000; goto yO4l8; HpCfS: UQ1SI: goto wtTPa; vmxP2: $return = ceil($return); goto LLXMw; tqlHO: if ($round_type == "\62") { goto h7q_4; } goto Y_She; EEp7p: goto sB44q; goto GjJOr; c51TY: xhtVO: goto xcME3; nCvzZ: ykD8V: goto h_JM7; LjTuo: if ($chiffre >= 50 && $chiffre <= 99.999999999) { goto VEyIC; } goto E0wCX; BJh1e: $return = $unite; goto JKOoR; ZJLHI: TKAXq: goto Baq2Y; QaMPx: nRr7b: goto gYfj9; S02cC: if ($decimal == 99) { goto uw9yA; } goto ttdsb; OjH69: $decimal = 0; goto HKu_P; kY195: hJEBk: goto NONeg; SAWQW: tH3OS: goto O4tA9; BegsE: $return = floor($return); goto sU2X3; XW6Mh: list($unite, $decimal) = explode("\56", $return); goto nTxYJ; cLx9q: uTqlp: goto tpRdX; AFrdJ: $return = str_replace("\x2c", "\x2e", $return * 1000000); goto s2DDr; Nq9aj: q42Po: goto se3q1; pIzR0: hPnuv: goto BVyPo; ZkdDO: $return = $unite + 1; goto IClxU; B5vx5: $decimalReturn = 95; goto JGztf; npjjZ: list($return, $decimal_part) = explode("\x2e", $return); goto jfGAR; E0wCX: goto WPuhe; goto nMMyT; iXcmJ: I9gwd: goto BCY0k; GaKsh: goto A12st; goto pLt7H; jURPE: $decimal = 0; goto QyTCt; sKc01: $decimal = 5; goto kIygb; N_e3j: Nc7Pf: goto yPs4C; NK3kX: if ($decimal >= 50) { goto dUwou; } goto gwCqr; xnIbR: $decimal = 0; goto EsM0I; d3f9I: if ($chiffre >= 0 && $chiffre < 5) { goto XqJrW; } goto dL3X5; r7BJw: if (empty($round_type)) { goto Axmsf; } goto GZ4pi; RasxS: $return = $return / 100; goto nhAmM; pnmjD: $return = ($unite . "\x2e" . $decimal) * 1 / 10; goto icAo9; ANGlG: $return -= 0.01; goto BMPlg; LWbLW: if ($realDecimal < 5 && $realDecimal >= 0) { goto jPxlg; } goto TznpV; YIzkh: P0PzK: goto vgo1r; xuIaU: $return = ($unite . "\56" . $decimal) * 1; goto I3ZFf; oJgUH: $decimal = 0; goto s_I43; HKu_P: zpTVn: goto c6_jz; UJJ2k: $decimal = 5; goto qJxcL; UUd4u: goto q42Po; goto LE0iY; IwImm: $return = $unite / 1000000; goto JMIX2; oVsEv: goto zpTVn; goto k28e0; LoSJo: goto q42Po; goto tkhKR; F4WSN: if ($round_type == "\x31") { goto ntPMo; } goto qMDYw; zSjac: $return = ($other + $unite . "\60\60") * 1; goto ie48K; c9g_S: goto wg7TM; goto Rf4VR; BkBDX: goto e3m5P; goto egUzB; zEPzK: $decimalReturn = 95; goto NoCbP; Glw3Y: rHrId: goto fH4nS; YoW9p: if ($round_type == "\x32") { goto NO5je; } goto DrBSa; PHQy1: jPxlg: goto gwfxZ; XFWq_: wB9fk: goto kY5e7; ZGVR9: Fp_Gi: goto DXPmY; eB5uH: e3m5P: goto xuIaU; xo8Oz: w2hhY: goto IFS0I; ChqEc: goto JEO0E; goto nztRK; Y52JI: $return = $unite / 1000000; goto wUexC; S3dnW: ++$unite; goto ldDYJ; LE0iY: NO5je: goto gZfjN; oaBNY: goto DH5Eh; goto fkmv3; bJn4U: PJYEd: goto mVhYm; dRwXj: F5Tl6: goto c2z0U; DrBSa: goto q42Po; goto dRwXj; Uypll: PNH37: goto UW4Dl; qXLSC: goto ETe0r; goto fei6h; cWItd: pfbUJ: goto SRvUi; v_4EY: if ($decimal >= 0 && $decimal <= 2) { goto tc0m2; } goto EPJRk; E9ae1: if ($decimal >= 6 && $decimal <= 9) { goto XVSQz; } goto G9yA7; WVoiv: Axmsf: goto d3f9I; NNzfr: A12st: goto pHVAU; TznpV: $decimalReturn = 5; goto mmceo; pHVAU: $return -= 0.01; goto vPVQA; pOqGK: $return = ceil($return); goto bC7kE; kKheC: $decimal = 5; goto fu9XW; Wlc6C: ky2Ly: goto Wz05w; Heusf: $decimal = 0; goto xDbd2; Jp2DX: xjDQK: goto Ni9t7; egUzB: m5nBh: goto xd7Yx; H6im6: h3ylL: goto yIooc; Rq3ef: $unite = 1; goto BTFwE; kIygb: goto UQ1SI; goto LAj3t; LNQHw: goto A12st; goto SAWQW; kC60_: $decimal = 0; goto mVyWK; Axa0r: $decimal = 0; goto ajBCn; OAM9M: $return = $return / 100; goto pjtQX; kFFTo: goto wg7TM; goto YShXZ; gE47D: if ($round_type == "\x31") { goto evx1d; } goto Gj1IK; KUW0S: if ($round_type == "\61") { goto uqIDx; } goto Rr7xn; z4UyN: xAKBC: goto oJgUH; e84lk: wiDmj: goto oo_zP; QKu4X: list($unite, $decimal) = explode("\56", $return); goto U3XID; v6cWu: if ($modif_type == "\62") { goto LMV3a; } goto zDQOk; wUexC: NajfW: goto aN9X1; tL4rz: $decimal = $decimal . "\60"; goto bmCXa; vgKqQ: $return = ($return . "\56" . $decimalReturn) * 1; goto TjUgx; dMfN4: if (empty($round_type)) { goto PJYEd; } goto SyyQP; ngm5W: TvzDU: goto zFvXl; DdJt4: if ($round_type == "\x31") { goto wsLF4; } goto Oz7w1; RGacj: vjCbV: goto KwL0z; mVhYm: $return = round($return); goto m2JkO; xDbd2: KqLEP: goto tQPEM; m710t: $return = $unite + 1; goto xm9j5; wclb4: goto CxEoC; goto D4PAw; LAj3t: Qd3R3: goto gUFBz; DHbxw: ++$return; goto vszff; vPVQA: goto DH5Eh; goto CTg5i; qWxDb: if ($modif_type == "\x36") { goto DtJ8R; } goto Wm0QI; Ouxj7: if ($round_type == "\62") { goto EDd8d; } goto AoqLF; DAz8J: p6olx: goto RjoPN; Oz7w1: if ($round_type == "\x32") { goto m5nBh; } goto sF5l6; UC1TP: $return = round($return); goto ChqEc; yBjqj: ntPMo: goto pOqGK; EIBDM: goto DH5Eh; goto MBNwA; vXxfn: $return = $unite + 1; goto GaKsh; svIXW: if ($decimal >= 0 && $decimal <= 24) { goto JxU8V; } goto PE6wm; TNWEf: if (empty($round_type)) { goto hPXJ4; } goto F4WSN; bC7kE: goto gtCVz; goto XFWq_; CKdIH: list($other, $chiffre) = explode("\56", $return / 10); goto Snf9j; kxudg: goto wo8DW; goto MMXeZ; vVqqX: Rf813: goto wt_5f; fH4nS: $decimal = 5; goto FOxNe; RMxCi: $return = ceil($return); goto n92kp; V42sp: goto DH5Eh; goto QaMPx; M0k8R: $return = round($return); goto qMGm9; m8gOx: $return = $return / 10; goto jqGK4; gUFBz: ++$unite; goto fPHdf; Z8CgO: $realDecimal = substr($decimal, 0, 2); goto ZEpuo; C_jdV: $decimal = 0; goto plSW5; vJqDi: kOrgB: goto m8gOx; nIBFt: if ($decimal == 99) { goto BshUU; } goto QRgRp; FS1tB: if ($decimal >= 1 && $decimal <= 5) { goto P0PzK; } goto E9ae1; Wm0QI: if ($modif_type == "\67") { goto HLGmf; } goto GX2Mb; c6_jz: goto e3m5P; goto PyW8V; t36ux: if ($decimal >= 5 && $decimal <= 9) { goto PFiNX; } goto g2oMB; fPHdf: $decimal = 0; goto HpCfS; x1Xhs: if ($round_type == "\62") { goto RPX3H; } goto EEp7p; hvAVm: Dnape: goto UNcUu; Eedd1: $decimalReturn = 5; goto unO5S; WC45V: $return = str_replace("\x2c", "\x2e", $return); goto aUn2J; tpRdX: if ($realDecimal > 95 && $realDecimal <= 99) { goto NNdrb; } goto zEPzK; DXPmY: if ($decimal >= 0 && $decimal <= 2) { goto pfbUJ; } goto oiXfB; WjEed: IW1_S: goto zJAP3; vFcw5: list($return, $decimal_part) = explode("\x2e", $return); goto CKdIH; YDY6w: WPuhe: goto WJPkg; qOI1A: goto gtCVz; goto yBjqj; dp6PJ: list($unite, $decimal) = explode("\56", $return); goto DvnAp; gZfjN: $return = floor($return); goto Nq9aj; weo1Z: list($return, $decimal) = explode("\56", $return); goto Z8CgO; plSW5: goto sB44q; goto zwq9s; vgo1r: $decimal = 5; goto UalQk; pjcPO: ++$unite; goto Lcqnb; Yep0l: $return = ceil($return); goto NAbSO; X6YJ5: rcCM0: goto XWWzA; AKS1M: $return = $unite; goto wclb4; k1R_B: P0cKP: goto P1utA; GtSCL: $return = floor($return); goto oZP9e; WJPkg: goto sB44q; goto Pz0UM; MI_QT: fbG9B: goto Rq3ef; PE6wm: if ($decimal >= 25 && $decimal <= 74) { goto rcCM0; } goto qMcCY; UNcUu: $return = ceil($return); goto IVvfB; wTqGf: oiUww: goto svIXW; EZ3rB: $return = str_replace("\x2c", "\56", $return); goto weo1Z; fu9XW: goto UAZAP; goto APsjT; IYBXb: goto gtCVz; goto Y4i0o; SSFDk: goto FbJU2; goto No3OX; Y4XsB: lJ30y: goto LWbLW; guY8z: if (empty($round_type)) { goto upthf; } goto etPcj; eI5ra: goto qKua0; goto xlGIE; XpOdn: gtCVz: goto Ihjcg; aV9Fh: $decimal = 0; goto e84lk; Fifrw: wBf8x: goto fSj_s; Dr6lZ: if ($decimal >= 0 && $decimal <= 49) { goto nwHqr; } goto FK4QW; zKcW6: if (empty($round_type)) { goto Fp_Gi; } goto DdJt4; FOxNe: goto lDCQQ; goto ScJRf; Rr7xn: if ($round_type == "\62") { goto ykD8V; } goto un3Uo; m93dg: goto lDCQQ; goto Glw3Y; mVyWK: goto wg7TM; goto X6YJ5; nMMyT: ZeFn3: goto jURPE; k9Iw8: jX1x5: goto UC1TP; WEd2f: CxEoC: goto c3AHC; etEXi: $decimal = $decimal . "\x30"; goto WjEed; NONeg: $return = str_replace("\x2c", "\56", $return * 100); goto Q_sda; ml3HH: LMV3a: goto X6Kkw; UalQk: goto P0cKP; goto BcbaT; M31zb: JEO0E: goto c3mtk; HMEsg: goto aCP5q; goto NB83B; dL3X5: if ($chiffre >= 5 && $chiffre <= 9.999999999) { goto h3ylL; } goto wjrLO; CW2fK: goto UAZAP; goto MDA57; IFS0I: $return = round($return); goto eI5ra; iwQj6: $return = $unite + 1; goto jBbv9; SRvUi: $decimal = 0; goto Gh6u4; aNWLp: $chiffre = $chiffre . "\x30"; goto DAz8J; Wz05w: $return = round($return); goto JpQKC; XEndp: list($unite, $decimal) = explode("\56", $return); goto IwImm; awJ6w: BshUU: goto m710t; gT5Yg: j1qi6: goto vXxfn; VTTWE: goto wiDmj; goto Jp2DX; C1PdB: $decimal = 0; goto VTTWE; q9ZEa: $return = str_replace("\54", "\56", $return * 10); goto cOANU; s_I43: goto WqxMG; goto pn_hc; Y2NCz: $decimal = 0; goto sW7jy; Ni9t7: $decimal = 5; goto grqPz; zwq9s: RPX3H: goto G4Z5u; IAxwP: $decimal = 0; goto BQ1MP; jK32Y: if (!($round_type == "\61")) { goto hJEBk; } goto AFrdJ; jp0ga: if (!(!empty($price) && !empty($modif_type))) { goto P2F76; } goto nQ1VR; YShXZ: JxU8V: goto kC60_; hhpdB: QcfMG: goto FS1tB; NwXVo: if ($decimal >= 49 && $decimal <= 98) { goto xjDQK; } goto S02cC; fjVWx: if ($modif_type == "\65") { goto NlwRY; } goto qWxDb; N3mNd: goto cPG_j; goto c51TY; xd7Yx: if ($decimal >= 1 && $decimal <= 4) { goto HGW9e; } goto SDz_2; b8z77: GBMrU: goto C1PdB; fPx8O: list($unite, $decimal) = explode("\x2e", $return); goto aCl2A; aN9X1: $return = str_replace("\x2c", "\x2e", $return * 100); goto zk9Oh; gGNO6: $return = $unite + 1; goto kJX0s; RviCm: h7q_4: goto bKEQ_; t9zxg: goto C0Dkk; goto PHQy1; YRPMG: if (!(strlen($chiffre) == 1)) { goto p6olx; } goto aNWLp; Snf9j: $chiffre = ($chiffre . "\56" . $decimal_part) * 1; goto r7BJw; MDA57: nwHqr: goto kKheC; jBbv9: ETe0r: goto N3mNd; yeLIT: NNdrb: goto DHbxw; ttdsb: goto wiDmj; goto b8z77; cRGUM: $return = ($unite . "\56" . $decimal) * 1; goto ANGlG; Lcqnb: $decimal = 0; goto k1R_B; E2keR: if ($decimal >= 1 && $decimal <= 5) { goto rHrId; } goto W4bjd; sbOte: if (empty($round_type)) { goto mRtNT; } goto bdjA3; jfGAR: list($other, $chiffre) = explode("\56", $return / 100); goto YRPMG; bmCXa: IYdTv: goto hzmvD; fwRnU: lDCQQ: goto BkBDX; QNZTQ: if ($round_type == "\x32") { goto vjCbV; } goto IzjAK; nQ1VR: $round_type = _s("\103\x41\124\x5f\122\x4f\x55\116\x44\137\120\122\x49\103\x45"); goto d3d4V; BQ1MP: wg7TM: goto sclsR; GX2Mb: if ($modif_type == "\x38") { goto lktaP; } goto Kfggs; MG_g2: nRNP2: goto Tu6lM; MBNwA: Xv35k: goto OCXsF; TjUgx: DH5Eh: goto fRsgk; VKiMf: VEyIC: goto tVncs; tRiPl: NlwRY: goto jK32Y; eMss5: if ($round_type == "\61") { goto y4gHv; } goto YoW9p; iVYop: $return = $unite / 1000000; goto Fifrw; C4f4E: if ($round_type == "\62") { goto TKAXq; } goto qYU6l; NAbSO: goto qKua0; goto ddZcX; E3m06: ++$unite; goto KG55o; HqsgE: goto A12st; goto gT5Yg; rjl7Y: $return = ceil($return); goto UUd4u; UxJrI: $unite = 1; goto C_jdV; tkhKR: y4gHv: goto rjl7Y; o0bsO: XqJrW: goto xMGQD; BcbaT: XVSQz: goto pjcPO; MMXeZ: dJc0q: goto xCna1; PdVfS: uqIDx: goto vmxP2; SRhUP: if ($decimal >= 8 && $decimal <= 9) { goto pTq3b; } goto m4zhj; nztRK: evx1d: goto RMxCi; PyW8V: wsLF4: goto E2keR; wqFGS: $decimalReturn = 95; goto TBra6; zk9Oh: if (empty($round_type)) { goto ky2Ly; } goto KUW0S; Y_She: goto kOrgB; goto Hx5ch; rS1te: if ($round_type == "\x31") { goto QcfMG; } goto QNZTQ; FK4QW: if ($decimal >= 50 && $decimal <= 99) { goto itrg7; } goto CW2fK; fkmv3: DtJ8R: goto h9bhy; oZP9e: FbJU2: goto RasxS; kY5e7: $return = floor($return); goto XpOdn; maj_s: UAZAP: goto RolOJ; nTxYJ: $return = $unite / 1000000; goto zpPQu; un3Uo: goto u0BHF; goto Wlc6C; BVyPo: goto cPG_j; goto ogpcd; Baq2Y: if ($decimal >= 0 && $decimal <= 48) { goto GBMrU; } goto NwXVo; JGztf: VN1uh: goto kgvSb; QRgRp: $return = $unite; goto n2ZjU; J4vYG: $return = str_replace("\x2c", "\56", $return * 100); goto TNWEf; LLXMw: goto u0BHF; goto nCvzZ; mmceo: $decimalReturn = "\60" . $decimalReturn; goto t9zxg; Q3oUD: AXS3r: goto pnmjD; XKbKN: Zza07: goto sKc01; rKEt5: if ($round_type == "\x32") { goto cLHoK; } goto LNQHw; bKEQ_: $return = floor($return); goto vJqDi; Z9Fyf: if ($chiffre >= 0 && $chiffre < 50) { goto ZeFn3; } goto LjTuo; eQRmA: BF3b2: goto GiYPT; xlGIE: Xsakx: goto Yep0l; wp4PG: goto KqLEP; goto H6im6; qUeQ3: $return = floor($return); goto M31zb; G9yA7: goto P0cKP; goto YIzkh; bdjA3: if ($round_type == "\61") { goto xhtVO; } goto zTWMu; tQPEM: goto wo8DW; goto MI_QT; cOANU: if (empty($round_type)) { goto w2hhY; } goto imaRL; Y4i0o: hPXJ4: goto mkVCY; RolOJ: goto kHji9; goto ZJLHI; n3Iu8: HhAMJ: goto qpueV; zDQOk: if ($modif_type == "\63") { goto TvzDU; } goto rH6IJ; se3q1: goto DH5Eh; goto ml3HH; gwfxZ: --$return; goto wqFGS; D6Glv: list($unite, $decimal) = explode("\56", $return); goto iVYop; SyyQP: if ($round_type == "\61") { goto Nc7Pf; } goto Ouxj7; wt_5f: if (!($round_type == "\x31")) { goto ajSIj; } goto zjkkC; ddZcX: GUlE_: goto BegsE; unO5S: $decimalReturn = "\60" . $decimalReturn; goto CS4CY; c6Z_B: $return = ($other + $unite . $decimal) * 1; goto W4wXz; zFvXl: if (!($round_type == "\61")) { goto i_8qN; } goto K3PoQ; rHd5j: ZArZ7: goto B5vx5; JpQKC: goto u0BHF; goto PdVfS; WsvlY: $return = $unite / 1000000; goto kY195; GiYPT: goto EVZCT; goto Y4XsB; p8mNt: mRtNT: goto NK3kX; No3OX: EDd8d: goto GtSCL; g2oMB: goto WqxMG; goto z4UyN; MXp1Y: list($unite, $decimal) = explode("\x2e", $return); goto Y52JI; sW7jy: $return = str_replace("\x2c", "\x2e", $return); goto vFcw5; BDfeT: $return = str_replace("\54", "\x2e", $return * 1000000); goto QKu4X; n2ZjU: goto cZEGH; goto awJ6w; BCY0k: $return = $return * 10; goto guY8z; ajBCn: goto aCP5q; goto ipbxQ; O4tA9: if ($decimal >= 50) { goto PgKj2; } goto BJh1e; Tu6lM: goto DH5Eh; goto DEqRm; GZ4pi: if ($round_type == "\61") { goto fbG9B; } goto S51U7; qMGm9: goto kOrgB; goto hvAVm; oo_zP: kHji9: goto cRGUM; eaoln: if ($round_type == "\x31") { goto ykelm; } goto C4f4E; IY95F: ykelm: goto Dr6lZ; e6UEK: ++$unite; goto aV9Fh; vszff: $decimalReturn = 5; goto pOXTD; ZEpuo: if ($round_type == 0) { goto PNH37; } goto OwA6y; kJX0s: goto hPnuv; goto n3Iu8; ldDYJ: $decimal = 0; goto maj_s; m2JkO: goto FbJU2; goto N_e3j; I3ZFf: goto DH5Eh; goto tRiPl; VqUq_: } public static function usesAdvancedStockManagement($id_product, $id_shop = null) { goto OtA0f; OtA0f: if (!empty($id_shop)) { goto kzYTY; } goto oZAr_; dJwgu: $query = "\x53\105\114\105\103\124\40\160\x72\x6f\144\x75\143\x74\137\163\x68\x6f\x70\56\x61\x64\166\141\x6e\143\x65\x64\137\163\x74\x6f\x63\x6b\x5f\x6d\141\x6e\141\x67\145\155\x65\156\x74\12\x20\x20\40\x20\x20\40\x20\40\x46\122\117\x4d\x20\140" . _DB_PREFIX_ . "\x70\x72\x6f\144\x75\x63\x74\x60\x20\x70\12\x20\40\40\x20\40\40\40\x20\x20\x49\116\116\105\122\x20\112\117\111\x4e\40" . _DB_PREFIX_ . "\x70\162\157\144\x75\143\x74\137\163\150\157\x70\x20\x70\x72\x6f\x64\x75\x63\x74\x5f\163\150\157\x70\12\x20\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\x4f\x4e\x20\50\160\162\x6f\x64\165\x63\164\137\163\150\x6f\160\x2e\x69\144\137\160\162\x6f\144\x75\143\164\40\75\x20\x70\56\x69\144\x5f\x70\162\x6f\144\165\x63\x74\40\101\x4e\104\x20\160\x72\157\x64\165\x63\x74\x5f\x73\150\157\x70\x2e\151\144\137\x73\x68\x6f\x70\40\x3d\40" . ($id_shop > 0 ? (int) $id_shop : "\x70\56\151\x64\137\x73\150\157\160\137\x64\x65\x66\x61\165\154\164") . "\51\xa\40\40\x20\x20\40\40\40\40\127\110\x45\x52\x45\x20\x28\160\56\151\144\137\160\162\157\144\x75\143\164\x20\x3d\40" . (int) $id_product . "\51"; goto EtIe7; YBDXf: kzYTY: goto dJwgu; oZAr_: $id_shop = SCI::getSelectedShop(); goto YBDXf; EtIe7: return (bool) Db::getInstance()->getValue($query); goto PNJPc; PNJPc: } public static function SendMail($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null) { goto BUBTd; lHUOb: $to_plugin = $to; goto Y7fDW; MDml9: MchRr: goto Etlbe; kFzZ_: UFD2L: goto PYqxI; m1Uro: WD3x0: goto epbeC; YNaxE: iMydn: goto ISjFK; OVV0b: return false; goto o4HG1; w2qF5: $configuration = Configuration::getMultiple(array("\x50\x53\137\x53\x48\x4f\x50\137\105\x4d\x41\111\x4c", "\120\x53\137\115\101\x49\x4c\x5f\115\105\x54\110\x4f\104", "\x50\123\137\115\101\111\x4c\137\123\105\x52\x56\x45\122", "\x50\123\x5f\x4d\101\111\x4c\x5f\x55\x53\105\122", "\120\x53\137\x4d\x41\111\x4c\137\120\x41\123\x53\x57\x44", "\x50\x53\137\x53\110\x4f\x50\x5f\x4e\x41\115\105", "\x50\x53\x5f\x4d\101\111\x4c\x5f\x53\115\x54\120\137\x45\116\103\122\131\x50\124\x49\x4f\116", "\x50\123\137\x4d\101\111\114\137\x53\x4d\x54\x50\137\x50\117\x52\124", "\x50\x53\x5f\115\101\x49\x4c\x5f\115\105\124\110\x4f\x44", "\120\123\137\115\101\x49\114\137\124\131\120\x45"), null, null, $id_shop); goto T60aV; ztlx1: Tools::dieOrLog(Tools::displayError("\105\162\162\157\162\72\x20\151\x6e\166\x61\x6c\151\x64\x20\x65\x2d\x6d\x61\151\x6c\x20\x73\x75\x62\152\145\143\x74"), $die); goto Vvmyl; NPfB7: $to_list = new Swift_RecipientList(); goto CgjW9; epbeC: if (is_array($template_vars)) { goto R7y0w; } goto ttjHc; T60aV: if (isset($configuration["\120\123\x5f\x4d\101\111\114\x5f\123\115\x54\120\x5f\105\116\103\122\131\x50\x54\x49\117\x4e"])) { goto MchRr; } goto eWvbh; PD0X3: if (Validate::isMailName($from_name)) { goto RuXIn; } goto cBPE3; Y2Xq9: yuYe4: goto PD0X3; v8jDB: AWPtD: goto WxmIr; kJzFN: $theme_name = $shop->getTheme(); goto DO00q; q1kja: $shop = new Shop((int) $id_shop); goto YW0fZ; s7H4q: apXK5: goto NPfB7; g44_C: Acxw2: goto kqeh8; WxmIr: XZkVv: goto w2qF5; JHUyO: return false; goto m1Uro; W0xEr: $to_name = $to; goto IQJ97; LshVN: mM_tq: goto gs1bn; aiMlY: AfLaQ: goto PNbqd; zX9Kp: Tools::dieOrLog(Tools::displayError("\x45\162\x72\x6f\x72\x3a\x20\151\156\x76\141\154\151\144\40\x65\55\155\x61\151\x6c\x20\x74\x65\155\x70\x6c\141\164\145"), $die); goto OVV0b; FP25r: UQQMz: goto iSQGY; zjtMg: RuXIn: goto rMiZ5; DO00q: goto UFD2L; goto HCY0b; ttjHc: $template_vars = array(); goto X22AG; Vvmyl: return false; goto LshVN; PYqxI: if (!($theme_name != _THEME_NAME_)) { goto AWPtD; } goto IU519; Etlbe: if (isset($configuration["\x50\123\x5f\x4d\x41\x49\114\137\123\x4d\x54\120\137\120\117\122\x54"])) { goto KnE24; } goto pJrOw; kqeh8: if (Validate::isTplName($template)) { goto iVTpZ; } goto zX9Kp; MECA0: if (!(is_numeric($id_shop) && $id_shop)) { goto XZkVv; } goto q1kja; CNFBY: $from_name = $configuration["\x50\123\x5f\123\110\x4f\120\137\116\x41\115\105"]; goto Y2Xq9; IQJ97: KLPCD: goto rl0Yn; PNbqd: if (Validate::isEmail($from)) { goto H4emQ; } goto tkjOi; pJrOw: $configuration["\x50\x53\x5f\115\101\111\114\137\123\115\x54\120\137\x50\117\122\x54"] = "\144\x65\x66\141\x75\154\164"; goto giRlH; YW0fZ: if (version_compare(_PS_VERSION_, "\x38\x2e\60\x2e\60", "\76\x3d")) { goto JDryC; } goto kJzFN; giRlH: KnE24: goto H8EUQ; tkjOi: $from = null; goto SOhFQ; rl0Yn: $to = new Swift_Address($to, "\x3d\x3f\125\124\x46\x2d\x38\x3f\102\x3f" . base64_encode($to_name) . "\77\75"); goto o0lOs; VK_th: if (!(!isset($from_name) || !Validate::isMailName($from_name))) { goto yuYe4; } goto CNFBY; o0lOs: goto UQQMz; goto s7H4q; tYVwF: if (!(is_string($to_name) && !empty($to_name) && !Validate::isMailName($to_name))) { goto Acxw2; } goto bCN4z; cBPE3: $from_name = null; goto zjtMg; ISjFK: $to_plugin = $to[0]; goto vLHDP; iSQGY: try { goto NYgEO; x7svc: p9ITT: goto RyhoY; p__Un: return false; goto DZJJI; U0IFU: VOwWi: goto iO6ks; mbeAD: Tools::dieOrLog(Tools::displayError("\x45\162\x72\157\x72\40\x2d\40\124\x68\145\x20\146\x6f\154\154\x6f\x77\x69\x6e\147\40\x65\x2d\x6d\141\151\x6c\40\164\x65\x6d\x70\154\x61\x74\145\40\151\x73\40\x6d\151\x73\163\151\x6e\147\x3a") . "\x20" . $template_path . $template . "\x2e\x68\x74\155\154", $die); goto DEU6r; dmAhf: AnVV6: goto G60eJ; R8QV4: $override_mail = true; goto U0lJU; q68qN: $swift->disconnect(); goto WQxJe; xreWk: OMwAn: goto Z_hxB; gNcLW: $swift->attachPlugin(new Swift_Plugin_Decorator(array($to_plugin => $template_vars)), "\144\145\143\157\162\141\x74\157\162"); goto o3rcO; g7Tlv: $template_vars["\173\x68\151\163\x74\x6f\162\x79\137\x75\162\x6c\x7d"] = Context::getContext()->link->getPageLink("\x68\151\x73\x74\x6f\x72\x79", true, Context::getContext()->language->id); goto DByeR; U0cVB: $template_html = file_get_contents($template_path . $template . "\56\x68\x74\155\154"); goto vtxWY; PNjXR: goto MKgQk; goto A3a9u; RyhoY: foreach ($file_attachment as $attachment) { goto bDZ2F; jqcA3: $message->attach(new Swift_Message_Attachment($attachment["\143\157\x6e\164\x65\x6e\164"], $attachment["\x6e\x61\155\x65"], $attachment["\155\x69\x6d\x65"])); goto cwXj9; cwXj9: e3Ah0: goto zQgWW; bDZ2F: if (!(isset($attachment["\x63\x6f\156\x74\145\x6e\x74"]) && isset($attachment["\156\x61\155\145"]) && isset($attachment["\x6d\x69\x6d\x65"]))) { goto e3Ah0; } goto jqcA3; zQgWW: a6ALQ: goto ESEMh; ESEMh: } goto yUUsr; ot3t8: if (file_exists($theme_path . "\x6d\x61\x69\154\x73\57" . $template . "\x2e\x74\170\x74") || file_exists($theme_path . "\x6d\x61\x69\x6c\x73\x2f" . $template . "\56\x68\x74\x6d\154")) { goto CHwLv; } goto dmSPG; srwI6: $message->headers->setEncoding("\121"); goto KkcdS; RQo7S: if (!(preg_match("\x23" . __PS_BASE_URI__ . "\x6d\x6f\x64\165\x6c\x65\x73\x2f\43", $template_path) && preg_match("\x23\x6d\x6f\144\165\154\x65\163\x2f\x28\x5b\141\x2d\172\60\x2d\x39\x5f\55\135\53\51\x2f\43\x75\151", $template_path, $res))) { goto DKUkZ; } goto jMeFJ; vQEcW: RKDtY: goto DclG_; bge2Q: zX8yn: goto srwI6; sni_2: if (Configuration::get("\120\x53\137\114\117\x47\x4f\x5f\x4d\x41\111\x4c", null, null, $id_shop) !== false && file_exists(_PS_IMG_DIR_ . Configuration::get("\x50\x53\x5f\x4c\x4f\107\x4f\x5f\115\101\111\x4c", null, null, $id_shop))) { goto LYf7D; } goto TrUum; Htspv: $template_vars["\173\163\x68\157\160\x5f\x6c\157\x67\x6f\x7d"] = ''; goto O4bFp; U0lJU: zW9kM: goto fJe2G; YP4w0: BPWuv: goto QCl82; DPJmp: Logger::addLog(Tools::displayError("\x45\x72\162\x6f\162\x20\x2d\x20\124\x68\145\40\154\x61\x6e\x67\40\146\151\154\145\40\x69\x73\x20\155\x69\x73\163\151\x6e\147\x20\x66\x6f\x72\40\x3a") . "\x20" . $iso, 3); goto IBOxo; qlM31: bdjwO: goto Bikgd; XW5Ji: $connection->setPassword($configuration["\x50\123\x5f\115\101\111\x4c\x5f\120\101\123\123\127\x44"]); goto CZfEq; E0FLz: goto Q7Im7; goto ImDy8; cm00e: $template_vars = array_map(array("\124\x6f\157\154\163", "\x68\164\x6d\154\x65\x6e\x74\151\x74\151\145\x73\x44\145\143\157\144\145\x55\x54\106\70"), $template_vars); goto uH3p2; WQxJe: return $send; goto CJGmo; yKLNR: $template_path = $theme_path . "\x6d\x6f\x64\x75\154\x65\x73\57" . $module_name . "\57\155\141\x69\x6c\163\x2f"; goto z0qXr; YiePk: $template_vars["\173\147\x75\x65\x73\164\x5f\x74\x72\141\143\x6b\151\x6e\x67\x5f\x75\x72\154\175"] = Context::getContext()->link->getPageLink("\x67\165\x65\163\164\x2d\x74\x72\141\143\x6b\x69\156\x67", true, Context::getContext()->language->id); goto g7Tlv; z0qXr: DX5uP: goto U0cVB; DWEW7: include_once _PS_MAIL_DIR_ . $iso . "\x2f\x6c\141\156\147\x2e\160\x68\160"; goto D36Uo; lU792: CHwLv: goto xQGRN; uH3p2: $template_vars = array_map(array("\x54\157\x6f\154\x73", "\x73\164\x72\x69\160\163\x6c\141\x73\x68\145\x73"), $template_vars); goto rDZWz; ucYN4: $iso = Language::getIsoById((int) $id_lang); goto cQUK3; CZfEq: NbW9B: goto DDV4O; t3fgO: $message->attach(new Swift_Message_Part($template_html, "\164\145\170\x74\x2f\150\x74\x6d\x6c", "\70\x62\x69\164", "\165\x74\146\x2d\70")); goto D26hn; EuYzL: $module_name = false; goto FruMG; yUUsr: IhfuU: goto pxATq; Yd6OP: $message->setId(Mail::generateId()); goto aOTSM; KkcdS: if (!version_compare(_PS_VERSION_, "\x31\x2e\66\56\x30\56\60", "\x3e\75")) { goto s5wiF; } goto cm00e; o3rcO: if (!($configuration["\x50\123\x5f\115\101\111\114\x5f\x54\131\x50\105"] == Mail::TYPE_BOTH || $configuration["\120\x53\x5f\x4d\x41\111\114\x5f\x54\131\120\x45"] == Mail::TYPE_TEXT)) { goto RKDtY; } goto JD696; gypHz: PpGhF: goto DWEW7; U_Yky: if ($connection) { goto LpzlG; } goto IZHrX; LagSv: return false; goto YP4w0; q6Oyi: $message = new Swift_Message("\x5b" . Configuration::get("\x50\x53\137\123\110\117\120\x5f\x4e\x41\x4d\x45", null, null, $id_shop) . "\135\x20" . $subject); goto NNxJK; C1BmN: $template_vars["\x7b\x73\x68\157\160\x5f\x6c\157\147\157\x7d"] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); goto NC53S; Qb1Qr: lUhw9: goto z50q2; IjWdQ: if (is_array(current($file_attachment))) { goto p9ITT; } goto kJQbw; DEU6r: return false; goto hjP9B; AgE18: return false; goto Qb1Qr; YXH_6: Tools::dieOrLog(Tools::displayError("\105\162\162\x6f\x72\x20\x2d\x20\x54\x68\145\x20\x66\x6f\x6c\x6c\x6f\167\151\156\x67\x20\x65\x2d\155\141\x69\x6c\x20\164\145\x6d\x70\x6c\x61\x74\x65\40\x69\x73\x20\x6d\x69\163\x73\151\156\x67\72") . "\40" . $template_path . $template . "\x2e\x74\x78\x74", $die); goto zSeps; UBfen: DKUkZ: goto fC4wk; O4bFp: goto BTwg6; goto U0IFU; eGXj4: $logo = _PS_IMG_DIR_ . Configuration::get("\x50\123\x5f\114\117\x47\117\x5f\x4d\x41\111\114", null, null, $id_shop); goto dmAhf; jumfS: if (file_exists(_PS_MAIL_DIR_ . $iso . "\57\x6c\141\x6e\147\x2e\x70\150\160")) { goto PpGhF; } goto DPJmp; tD9AB: if ($override_mail && file_exists($template_path . $iso . "\57\x6c\141\156\147\56\x70\150\160")) { goto vcnUj; } goto M9axB; NC53S: pF9az: goto asGjE; hQQ73: include_once $template_path . $iso . "\x2f\x6c\141\156\147\x2e\x70\x68\x70"; goto YP2_O; NYgEO: if ($configuration["\120\x53\x5f\115\101\111\114\137\115\x45\124\x48\x4f\104"] == 2) { goto Vxv3T; } goto mjrC9; DDV4O: ofLI0: goto rw7jV; poSKd: $template = $iso . "\x2f" . $template; goto EuYzL; rw7jV: if ($connection) { goto lUhw9; } goto AgE18; WBCPz: LYf7D: goto eGXj4; Txh8M: $connection->setUsername($configuration["\120\123\137\x4d\x41\111\x4c\x5f\125\x53\105\122"]); goto xreWk; M9axB: if ($module_name && file_exists($theme_path . "\155\141\151\x6c\x73\x2f" . $iso . "\x2f\154\x61\x6e\x67\56\160\150\160")) { goto ZccH0; } goto jumfS; zZgon: goto zW9kM; goto lU792; DzPfC: if (!($file_attachment && !empty($file_attachment))) { goto vYE3K; } goto IjWdQ; vNELk: LpzlG: goto fDxV2; JD696: $message->attach(new Swift_Message_Part($template_txt, "\x74\145\170\164\57\160\x6c\x61\x69\156", "\70\142\151\164", "\x75\x74\x66\x2d\70")); goto vQEcW; FyHzB: BTwg6: goto dcc_t; qsufU: Tools::dieOrLog(Tools::displayError("\x45\x72\162\x6f\162\40\55\x20\116\157\x20\111\123\x4f\x20\143\157\x64\x65\40\x66\157\x72\40\x65\x6d\x61\x69\154"), $die); goto p__Un; quhc9: MKgQk: goto zZgon; A3a9u: jIdMD: goto YXH_6; YP2_O: Q7Im7: goto q6Oyi; DclG_: if (!($configuration["\120\x53\x5f\x4d\x41\x49\x4c\x5f\x54\131\x50\105"] == Mail::TYPE_BOTH || $configuration["\120\123\x5f\115\x41\x49\114\137\x54\x59\x50\105"] == Mail::TYPE_HTML)) { goto FyQAd; } goto t3fgO; ImDy8: vcnUj: goto hQQ73; fC4wk: if ($module_name !== false && (file_exists($theme_path . "\155\x6f\144\x75\x6c\x65\163\x2f" . $module_name . "\x2f\155\x61\151\x6c\163\57" . $template . "\x2e\164\x78\x74") || file_exists($theme_path . "\x6d\157\144\165\154\x65\x73\x2f" . $module_name . "\57\x6d\x61\x69\154\163\57" . $template . "\x2e\150\164\155\x6c"))) { goto AtoNk; } goto ot3t8; Blk1C: Vxv3T: goto Xs114; NNxJK: if (version_compare(_PS_VERSION_, "\61\x2e\x35\56\60\56\60", "\x3e\x3d")) { goto bdjwO; } goto Yd6OP; D26hn: FyQAd: goto DzPfC; S_24J: goto ofLI0; goto Blk1C; fDxV2: if (empty($configuration["\x50\123\x5f\x4d\101\111\x4c\x5f\125\x53\105\x52"])) { goto OMwAn; } goto Txh8M; cQUK3: if ($iso) { goto zUQEz; } goto qsufU; kJQbw: $file_attachment = array($file_attachment); goto x7svc; Xs114: if (!(empty($configuration["\x50\x53\x5f\x4d\101\111\114\x5f\x53\105\x52\x56\105\122"]) || empty($configuration["\x50\x53\137\115\101\111\114\x5f\x53\115\x54\120\137\120\x4f\122\124"]))) { goto BPWuv; } goto mHHZF; RSVTX: AtoNk: goto yKLNR; D36Uo: C_zwg: goto YcK2z; DZJJI: zUQEz: goto poSKd; iO6ks: $logo = _PS_IMG_DIR_ . Configuration::get("\120\x53\137\x4c\x4f\107\117", null, null, $id_shop); goto FyHzB; IBOxo: return false; goto Ynz7b; mHHZF: Tools::dieOrLog(Tools::displayError("\105\x72\x72\157\162\x3a\40\x69\x6e\x76\141\154\x69\144\x20\x53\115\124\120\x20\x73\145\x72\x76\145\x72\40\x6f\162\x20\x53\x4d\x54\120\x20\160\157\x72\164"), $die); goto LagSv; z50q2: $swift = new Swift($connection, Configuration::get("\120\x53\137\x4d\x41\111\x4c\x5f\104\x4f\x4d\101\111\x4e"), null, null, $id_shop); goto ucYN4; Ru5DP: $template_vars["\173\x73\x68\157\160\x5f\x75\x72\x6c\175"] = Tools::getShopDomain(true, true) . __PS_BASE_URI__ . "\x69\156\144\x65\170\x2e\x70\150\x70"; goto imfPw; fJe2G: goto DX5uP; goto RSVTX; Z_hxB: if (empty($configuration["\x50\x53\x5f\x4d\101\x49\114\x5f\120\x41\x53\x53\x57\104"])) { goto NbW9B; } goto XW5Ji; ufxtE: eK3lN: goto E0FLz; aD2el: ZccH0: goto hgrw2; xQGRN: $template_path = $theme_path . "\x6d\x61\151\154\x73\57"; goto R8QV4; Bikgd: $message->setId(SCI::generateId()); goto bge2Q; dmSPG: if (!file_exists($template_path . $template . "\x2e\164\x78\x74") && ($configuration["\120\123\x5f\x4d\x41\x49\114\137\x54\131\x50\105"] == Mail::TYPE_BOTH || $configuration["\x50\x53\137\x4d\101\x49\x4c\137\x54\131\x50\x45"] == Mail::TYPE_TEXT)) { goto jIdMD; } goto gfA3G; imfPw: $template_vars["\x7b\x6d\x79\x5f\141\143\143\157\165\156\x74\137\165\162\x6c\x7d"] = Context::getContext()->link->getPageLink("\155\x79\55\x61\x63\143\157\165\x6e\x74", true, Context::getContext()->language->id); goto YiePk; gfA3G: if (!(!file_exists($template_path . $template . "\56\x68\164\155\x6c") && ($configuration["\x50\123\137\115\101\111\x4c\x5f\x54\131\x50\105"] == Mail::TYPE_BOTH || $configuration["\x50\123\137\115\x41\x49\114\137\124\131\120\105"] == Mail::TYPE_HTML))) { goto b2mEk; } goto mbeAD; G60eJ: if (!isset($logo)) { goto pF9az; } goto C1BmN; YcK2z: goto eK3lN; goto aD2el; vtxWY: $template_txt = strip_tags(html_entity_decode(file_get_contents($template_path . $template . "\56\x74\x78\x74"), null, "\165\164\x66\x2d\x38")); goto tD9AB; hgrw2: include_once $theme_path . "\155\141\151\154\x73\57" . $iso . "\57\x6c\141\x6e\147\x2e\x70\150\160"; goto ufxtE; DByeR: $template_vars["\173\143\x6f\x6c\157\162\175"] = Tools::safeOutput(Configuration::get("\120\x53\137\115\x41\111\x4c\x5f\103\117\x4c\x4f\x52", null, null, $id_shop)); goto gNcLW; D_OM5: $send = $swift->send($message, $to, new Swift_Address($from, $from_name)); goto q68qN; pxATq: vYE3K: goto D_OM5; TrUum: if (file_exists(_PS_IMG_DIR_ . Configuration::get("\x50\123\137\114\x4f\x47\117", null, null, $id_shop))) { goto VOwWi; } goto Htspv; dcc_t: goto AnVV6; goto WBCPz; zSeps: return false; goto quhc9; IZHrX: return false; goto vNELk; aOTSM: goto zX8yn; goto qlM31; asGjE: $template_vars["\173\x73\150\157\x70\137\x6e\141\155\145\x7d"] = Tools::safeOutput(Configuration::get("\x50\123\137\x53\x48\x4f\x50\x5f\116\101\115\x45", null, null, $id_shop)); goto Ru5DP; rDZWz: s5wiF: goto sni_2; hjP9B: b2mEk: goto PNjXR; QCl82: $connection = new Swift_Connection_SMTP($configuration["\x50\123\137\115\101\111\114\137\x53\x45\122\x56\105\122"], $configuration["\120\123\x5f\x4d\101\x49\x4c\x5f\x53\115\124\120\x5f\120\x4f\122\x54"], $configuration["\x50\123\137\115\x41\x49\x4c\x5f\x53\x4d\x54\x50\137\105\116\103\x52\x59\120\x54\x49\117\x4e"] == "\163\x73\154" ? Swift_Connection_SMTP::ENC_SSL : ($configuration["\x50\x53\137\x4d\x41\111\x4c\x5f\x53\115\124\120\137\105\x4e\x43\x52\131\x50\x54\111\x4f\116"] == "\164\154\163" ? Swift_Connection_SMTP::ENC_TLS : Swift_Connection_SMTP::ENC_OFF)); goto opjxN; FruMG: $override_mail = false; goto RQo7S; mjrC9: $connection = new Swift_Connection_NativeMail(); goto S_24J; jMeFJ: $module_name = $res[1]; goto UBfen; Ynz7b: goto C_zwg; goto gypHz; opjxN: $connection->setTimeout(4); goto U_Yky; CJGmo: } catch (Swift_Exception $e) { return false; } goto AZrbj; vLHDP: $to = $to_list; goto FP25r; BUBTd: $theme_path = _PS_THEME_DIR_; goto MECA0; IU519: $theme_path = _PS_ROOT_DIR_ . "\57\164\x68\x65\155\145\x73\57" . $theme_name . "\57"; goto v8jDB; gs1bn: if (is_array($to) && isset($to)) { goto apXK5; } goto lHUOb; CgjW9: foreach ($to as $key => $addr) { goto c5POS; gqVh4: if (!is_array($to_name)) { goto GloaJ; } goto q9hWq; q9hWq: if (!($to_name && is_array($to_name) && Validate::isGenericName($to_name[$key]))) { goto FgqHo; } goto gAFkM; jXdjm: if (Validate::isEmail($addr)) { goto Q25BH; } goto WOK7f; zDzoD: Q25BH: goto gqVh4; c5POS: $to_name = null; goto SA6A9; SA6A9: $addr = trim($addr); goto jXdjm; oO9Ww: QEp5h: goto vxQM1; bjTSy: FgqHo: goto iJ7T9; PoIGZ: $to_list->addTo($addr, "\x3d\x3f\x55\x54\106\x2d\70\77\x42\x3f" . base64_encode($to_name) . "\77\75"); goto oO9Ww; gAFkM: $to_name = $to_name[$key]; goto bjTSy; xUYOp: if (!($to_name == null)) { goto zzP1L; } goto BPEzC; iJ7T9: GloaJ: goto xUYOp; ac9Ik: return false; goto zDzoD; BPEzC: $to_name = $addr; goto hIjki; WOK7f: Tools::dieOrLog(Tools::displayError("\x45\x72\162\x6f\x72\72\40\151\156\x76\x61\154\151\144\x20\x65\55\155\x61\151\x6c\40\141\x64\144\162\x65\x73\x73"), $die); goto ac9Ik; hIjki: zzP1L: goto PoIGZ; vxQM1: } goto YNaxE; rMiZ5: if (!(!is_array($to) && !Validate::isEmail($to))) { goto WD3x0; } goto kQ491; HCY0b: JDryC: goto Tv33d; X22AG: R7y0w: goto tYVwF; bCN4z: $to_name = null; goto g44_C; V4vho: if (Validate::isMailSubject($subject)) { goto mM_tq; } goto ztlx1; Y7fDW: if (!($to_name == null)) { goto KLPCD; } goto W0xEr; kQ491: Tools::dieOrLog(Tools::displayError("\105\162\x72\x6f\x72\72\40\160\x61\162\141\155\145\164\145\162\x20\x22\x74\x6f\42\x20\x69\163\x20\143\157\x72\162\165\x70\x74\145\x64"), $die); goto JHUyO; H8EUQ: if (!(!isset($from) || !Validate::isEmail($from))) { goto AfLaQ; } goto NKtQA; eWvbh: $configuration["\120\x53\137\115\101\x49\x4c\x5f\123\x4d\124\x50\x5f\x45\x4e\103\x52\131\120\x54\111\x4f\x4e"] = "\x6f\x66\x66"; goto MDml9; o4HG1: iVTpZ: goto V4vho; Tv33d: $theme_name = $shop->theme->getDirectory(); goto kFzZ_; SOhFQ: H4emQ: goto VK_th; NKtQA: $from = $configuration["\x50\x53\x5f\123\x48\117\120\137\x45\x4d\101\x49\x4c"]; goto aiMlY; AZrbj: } public static function generateId($idstring = null) { $midparams = array("\165\x74\x63\x74\x69\x6d\x65" => gmstrftime("\x25\x59\45\155\x25\x64\x25\x48\45\x4d\x25\123"), "\x72\141\x6e\144\x69\156\x74" => mt_rand(), "\x63\165\163\x74\157\155\x73\164\x72" => preg_match("\x2f\136\50\x3f\74\41\x5c\x2e\51\133\x61\55\x7a\x30\x2d\71\134\x2e\x5d\x2b\50\x3f\41\x5c\x2e\x29\44\x2f\x69\104", $idstring) ? $idstring : "\163\x77\x69\x66\164", "\150\157\x73\164\156\141\x6d\x65" => isset($_SERVER["\123\105\122\126\105\x52\x5f\x4e\101\x4d\105"]) ? $_SERVER["\123\105\122\x56\x45\x52\x5f\x4e\x41\x4d\105"] : php_uname("\x6e")); return vsprintf("\x3c\45\x73\x2e\45\x64\56\45\x73\x40\x25\163\76", $midparams); } public static function getGridFields($type) { goto WWyNE; mfXsk: goto ZM9Jx; goto aGXLo; P2dsE: global $langOption; goto gW4i1; mf2qc: include SC_DIR . "\154\151\x62\57\x6f\x72\x64\x2f\x70\162\x6f\x64\165\x63\x74\x2f\157\x72\x64\x5f\x70\x72\x6f\x64\x75\x63\164\x5f\x64\x61\x74\141\x5f\146\151\145\x6c\x64\163\56\160\150\x70"; goto qtECA; LajJL: include SC_DIR . "\154\151\x62\57\143\141\164\x2f\163\x75\160\160\154\151\x65\x72\x2f\x63\141\x74\137\x73\165\160\x70\154\151\145\x72\x5f\144\x61\164\x61\137\x66\151\145\x6c\144\163\x2e\160\x68\160"; goto vjr3g; Xe8tp: if (!empty($type) && $type == "\x70\x72\157\x70\143\165\163\x74\x6f\x6d\145\x72\163") { goto R3Crx; } goto uXxgp; bhN9Z: global $shops; goto OHa1L; vjr3g: goto ZM9Jx; goto pdTx0; oN6bq: global $view; goto Zga1x; jOnSI: if (!empty($type) && $type == "\x70\162\157\144\165\x63\164\x73\x6f\162\x74") { goto eUnpq; } goto UkMob; zF6rE: goto ZM9Jx; goto xa9J1; aGXLo: o1UWv: goto NEx5q; RNngV: Pv6LM: goto FVQ_d; NEx5q: global $arrMsgAvailableLater; goto vG12d; OHa1L: include SC_DIR . "\x6c\x69\142\57\143\141\164\x2f\151\155\141\147\x65\x2f\x63\141\164\137\x69\155\x61\x67\x65\x5f\144\141\164\x61\137\x66\x69\x65\x6c\144\x73\x2e\x70\x68\x70"; goto zF6rE; eKaeo: YWJdZ: goto b_1oh; qhgpd: include SC_DIR . "\x6c\x69\142\57\143\x61\164\x2f\163\160\x65\143\151\146\151\x63\160\162\151\143\x65\x2f\143\x61\x74\x5f\163\160\x65\143\151\146\151\x63\160\x72\151\143\x65\x5f\144\x61\x74\141\x5f\146\x69\x65\x6c\x64\x73\x2e\160\150\x70"; goto g20vW; BGOTn: include SC_DIR . "\154\x69\x62\x2f\x63\141\164\x2f\x63\157\x6d\x62\151\156\x61\164\151\x6f\156\x2f\x63\141\164\x5f\x63\157\x6d\x62\151\x6e\141\164\151\157\156\x5f\144\141\x74\141\x5f\146\151\145\154\144\163\x2e\160\x68\x70"; goto mfXsk; R8aCN: goto ZM9Jx; goto h2yUC; AjAn2: c1bX_: goto gKhBO; I7nZi: Uknb3: goto ID1OG; g20vW: goto ZM9Jx; goto KUnhn; vG12d: include SC_DIR . "\154\x69\142\x2f\x63\x61\x74\57\143\157\155\142\151\156\x61\164\151\157\x6e\155\x75\154\164\151\160\162\x6f\144\165\143\164\57\x63\x61\164\137\143\157\155\142\x69\x6e\x61\x74\x69\x6f\x6e\155\165\154\x74\x69\160\x72\x6f\144\165\143\164\x5f\x64\141\x74\x61\137\x66\x69\x65\x6c\144\x73\x2e\160\x68\x70"; goto Vjn71; EKF_k: sujAD: goto oN6bq; tWHmW: global $arrManufacturers, $arrSuppliers, $arrTax, $arrMsgAvailableNow, $arrMsgAvailableLater, $arrReductionPrice, $arrReductionPercent, $arrColorGroups; goto S7594; I908q: global $shops, $group_shops, $groups, $countries, $currencies; goto xDuS9; mOzHM: goto ZM9Jx; goto Gb5Gp; ID1OG: global $view, $arrPayments, $arrStatus, $orderCountry, $orderState, $arrCarrier; goto mf2qc; CV1aj: if (!empty($type) && $type == "\147\x6d\141\160\x61\x72\164\156\x65\162") { goto RyVF3; } goto lSjH0; unfrt: include SC_DIR . "\x6c\x69\x62\x2f\x63\x61\x74\57\143\x75\163\164\x6f\155\x65\162\x62\171\x70\x72\157\144\165\143\164\x2f\x63\141\x74\x5f\143\165\x73\x74\x6f\x6d\145\162\142\171\x70\162\157\x64\165\x63\x74\x5f\x64\x61\164\141\137\146\x69\145\x6c\144\x73\56\x70\150\x70"; goto n8K8o; yDhjH: if (!empty($type) && $type == "\x6f\162\x64\x65\162\x5f\x70\x72\x6f\144\165\143\164") { goto Uknb3; } goto xC03x; lSjH0: goto ZM9Jx; goto f1v4s; sVpGr: if (!empty($type) && $type == "\143\157\155\x62\151\156\x61\164\x69\157\156\155\165\x6c\164\x69\x70\x72\157\144\165\x63\x74") { goto o1UWv; } goto sFZV0; b_1oh: global $view; goto oNExZ; xDuS9: include SC_DIR . "\154\151\142\x2f\x63\x61\x74\57\x77\x69\156\55\x73\x70\x65\x63\151\146\151\143\x70\x72\x69\x63\145\x2f\x63\x61\x74\137\x77\151\156\x2d\163\160\x65\143\151\x66\x69\x63\160\x72\x69\x63\145\x5f\144\141\x74\x61\137\x66\151\x65\154\144\163\56\x70\x68\160"; goto mOzHM; BHr5D: goto ZM9Jx; goto AjAn2; hPB3l: global $arrGroupes, $arrStates, $arrCountrys, $arrGenders, $language_arr; goto iiLNU; FYHAC: if (!empty($type) && $type == "\155\163\143\x6f\155\142\x69\x6e\x61\164\x69\x6f\156") { goto c1bX_; } goto cYoVT; A6qdt: goto ZM9Jx; goto qW_Q7; S_Ovd: goto ZM9Jx; goto RNngV; qtECA: goto ZM9Jx; goto EKF_k; NKtvW: goto ZM9Jx; goto I7nZi; Yg32w: N1Mwv: goto zM9f3; FVQ_d: global $view, $arrPayments, $arrStatus, $orderCountry, $orderState, $arrCarrier; goto j8sgC; KUnhn: R3Crx: goto c71MQ; Rf_i3: if (!empty($type) && $type == "\x6d\x61\x6e\165\x66\x61\x63\164\x75\162\145\162") { goto YWJdZ; } goto VLQ8w; xC03x: if (!empty($type) && $type == "\143\x6d\163") { goto sujAD; } goto Rf_i3; Ajy6D: include SC_DIR . "\x6c\x69\x62\x2f\143\x61\x74\57\x6d\163\x63\x6f\155\x62\x69\x6e\141\x74\151\157\156\x2f\x63\141\x74\137\x6d\163\143\x6f\155\x62\151\x6e\141\x74\151\157\x6e\x5f\144\141\x74\x61\x5f\x66\151\145\154\144\163\x2e\160\150\x70"; goto A6qdt; WWyNE: global $colSettings, $cols; goto OlOp2; c71MQ: global $shops, $group_shops, $groups, $countries, $currencies; goto unfrt; zH968: if (!empty($type) && $type == "\157\x72\x64\145\162") { goto Pv6LM; } goto yDhjH; VLQ8w: if (!empty($type) && $type == "\x73\165\160\160\154\151\145\162") { goto dtnZo; } goto jOnSI; f1v4s: LJjx0: goto tWHmW; FguK2: global $view; goto WlqsJ; Zga1x: include SC_DIR . "\x6c\151\x62\x2f\143\155\x73\x2f\143\155\163\137\160\141\147\x65\137\144\141\164\x61\137\x66\x69\x65\x6c\x64\x73\56\160\x68\160"; goto PRdsL; WlqsJ: include SC_DIR . "\x6c\x69\142\x2f\x73\165\x70\57\x73\165\x70\137\x73\165\160\x70\154\x69\145\162\x5f\x64\x61\164\x61\x5f\146\x69\145\154\x64\x73\x2e\160\x68\x70"; goto tl8KQ; vqcCi: if (!empty($type) && $type == "\160\162\x6f\x70\x70\x61\143\x6b\x70\x72\157\144\165\x63\164") { goto gSydk; } goto ZfCm5; UbN1d: global $arrMsgAvailableLater; goto BGOTn; G_5Tw: include SC_DIR . "\x6c\x69\142\x2f\143\x61\164\x2f\x6d\163\x70\162\157\x64\x75\143\164\x2f\x63\141\164\137\x6d\163\160\162\157\x64\165\143\x74\x5f\x64\141\164\x61\137\x66\151\145\154\144\x73\56\160\150\x70"; goto BHr5D; Qqg01: goto ZM9Jx; goto Yg32w; j8sgC: include SC_DIR . "\x6c\x69\142\x2f\157\162\x64\57\x6f\x72\144\137\157\x72\x64\145\x72\137\x64\141\164\x61\137\x66\151\145\x6c\x64\x73\x2e\x70\150\160"; goto NKtvW; p1QSn: global $currencies; goto LajJL; Z0KH2: if (!empty($type) && $type == "\160\162\x6f\160\163\x70\145\x70\x72\x69\143\145") { goto kbZ7_; } goto Xe8tp; zM9f3: global $shops, $arrTax; goto G_5Tw; xa9J1: kbZ7_: goto bdN0Z; wv1e0: $colSettings = array(); goto LPFow; bdN0Z: global $shops, $group_shops, $groups, $countries, $currencies; goto qhgpd; NWtOH: if (!empty($type) && $type == "\143\157\155\x62\x69\156\141\164\x69\x6f\156") { goto wiNqV; } goto sVpGr; AImP_: goto ZM9Jx; goto qy8f6; Gb5Gp: gSydk: goto dTR44; iiLNU: include SC_DIR . "\154\151\x62\x2f\143\165\x73\x2f\x63\165\163\137\143\x75\x73\x74\x6f\155\x65\x72\x5f\144\141\x74\141\x5f\x66\151\145\154\144\x73\56\160\150\x70"; goto S_Ovd; LPFow: Zmv4Y: goto Hiz4J; OlOp2: if (isset($colSettings)) { goto Zmv4Y; } goto wv1e0; dTR44: include SC_DIR . "\x6c\x69\142\x2f\143\141\164\57\x70\x61\x63\153\57\x63\x61\164\x5f\160\141\x63\153\137\x64\141\x74\x61\x5f\146\x69\x65\154\x64\163\56\160\150\x70"; goto R8aCN; clc2b: goto ZM9Jx; goto uYjJG; cYoVT: if (!empty($type) && $type == "\x69\155\x61\147\x65") { goto PybLI; } goto Z0KH2; uXxgp: if (!empty($type) && $type == "\167\151\x6e\x73\160\145\160\x72\151\x63\145") { goto DBjn6; } goto vqcCi; gW4i1: include SC_DIR . "\154\x69\142\57\x61\x6c\154\57\x77\x69\x6e\x2d\141\146\146\x69\154\151\x61\x74\x69\157\x6e\x2f\155\x61\x6e\141\x67\145\162\x2f\x61\154\x6c\137\167\151\156\55\x61\x66\x66\x69\154\151\x61\x74\151\157\x6e\137\x6d\141\156\x61\147\x65\x72\137\x70\141\162\x74\x6e\145\x72\137\144\141\164\x61\137\146\151\145\x6c\144\x73\x2e\160\150\x70"; goto gC_i1; gC_i1: ZM9Jx: goto K5roP; WrAa7: DBjn6: goto I908q; oNExZ: include SC_DIR . "\x6c\151\142\x2f\155\141\156\57\155\141\156\137\x6d\x61\x6e\x75\146\x61\143\x74\x75\x72\145\x72\x5f\144\x61\x74\141\137\146\x69\145\154\x64\x73\56\160\150\160"; goto clc2b; sFZV0: if (!empty($type) && $type == "\143\165\163\164\x6f\155\145\162") { goto H9vK_; } goto zH968; S7594: include SC_DIR . "\154\151\142\57\x63\x61\164\x2f\x63\141\x74\x5f\160\x72\x6f\144\x75\x63\x74\137\x64\141\164\x61\x5f\x66\151\145\154\144\163\56\x70\150\x70"; goto AImP_; fWuL1: H9vK_: goto hPB3l; tl8KQ: goto ZM9Jx; goto uSMMj; K5roP: return $colSettings; goto ieBJA; n8K8o: goto ZM9Jx; goto WrAa7; qy8f6: wiNqV: goto UbN1d; qW_Q7: PybLI: goto bhN9Z; UkMob: if (!empty($type) && $type == "\x6d\x73\x70\x72\157\x64\x75\143\164") { goto N1Mwv; } goto FYHAC; gKhBO: global $shops, $arrTax; goto Ajy6D; uSMMj: eUnpq: goto nqryp; uYjJG: dtnZo: goto FguK2; pdTx0: RyVF3: goto P2dsE; h2yUC: kB740: goto p1QSn; ZfCm5: if (!empty($type) && $type == "\160\x72\x6f\x70\163\x75\160\160\x6c\x69\145\162") { goto kB740; } goto CV1aj; nqryp: include SC_DIR . "\154\x69\142\57\143\141\x74\x2f\x70\162\x6f\x64\x75\143\x74\x73\x6f\162\164\57\143\x61\164\137\160\162\x6f\x64\x75\143\164\x73\x6f\162\x74\x5f\x64\141\164\x61\137\x66\x69\x65\154\x64\x73\x2e\160\x68\x70"; goto Qqg01; Hiz4J: if (!empty($type) && $type == "\160\162\157\144\165\x63\164") { goto LJjx0; } goto NWtOH; PRdsL: goto ZM9Jx; goto eKaeo; Vjn71: goto ZM9Jx; goto fWuL1; ieBJA: } public static function getGridViews($type) { goto as7FO; jp5AW: if (!empty($type) && $type == "\151\155\141\147\x65") { goto A8bVt; } goto jLpZM; D4WWX: if (!empty($type) && $type == "\x70\x72\x6f\x70\x73\x75\160\160\x6c\x69\x65\x72") { goto qUtxw; } goto m2GWK; I_3L3: goto GzUrE; goto amqVJ; ZMXYg: if (!empty($type) && $type == "\157\x72\x64\x65\162") { goto La58u; } goto sOM2Q; DyQI4: global $sc_active; goto zFttg; GdQgC: include SC_DIR . "\154\x69\142\x2f\143\155\x73\57\x63\x6d\x73\x5f\160\x61\147\145\x5f\x64\x61\164\x61\137\166\x69\145\x77\x73\56\x70\150\160"; goto RmixK; qHuvH: ZfDGF: goto YPKNh; yqDhU: include SC_DIR . "\x6c\151\142\x2f\x63\x61\x74\57\155\x73\x70\x72\x6f\144\x75\x63\x74\x2f\143\141\x74\137\x6d\163\x70\162\x6f\x64\165\x63\164\137\144\141\164\x61\x5f\166\x69\x65\x77\x73\56\x70\150\x70"; goto Ao9mJ; WQQk7: A3A9h: goto x13MZ; N10_h: include SC_DIR . "\154\151\x62\57\143\x61\x74\x2f\x73\x70\145\x63\x69\146\x69\143\160\x72\151\143\145\57\143\x61\164\137\x73\x70\145\143\x69\146\x69\143\x70\x72\151\143\x65\x5f\x64\x61\164\141\137\166\x69\145\167\x73\56\160\x68\x70"; goto CSyzS; TJTOB: goto GzUrE; goto nABWE; dY4B4: oefko: goto yqDhU; YPKNh: include SC_DIR . "\154\151\x62\57\143\x75\163\57\x63\165\163\137\143\x75\x73\x74\x6f\x6d\x65\162\x5f\144\x61\x74\x61\137\x76\151\145\167\x73\x2e\160\150\160"; goto MK43w; t6Imf: if (!empty($type) && $type == "\x63\157\x6d\142\x69\x6e\141\164\151\x6f\156") { goto cEVoz; } goto nPYpj; zFttg: include SC_DIR . "\x6c\x69\142\57\143\141\x74\57\143\157\155\x62\151\156\141\164\151\x6f\156\x6d\165\154\x74\151\x70\162\157\x64\x75\x63\164\x2f\x63\x61\x74\137\x63\x6f\x6d\142\151\x6e\141\164\x69\157\156\x6d\x75\x6c\x74\x69\160\162\x6f\144\x75\x63\x74\x5f\144\x61\x74\141\137\x76\151\145\167\163\56\x70\150\160"; goto Rl1JO; IwxeW: include SC_DIR . "\154\x69\142\57\x61\x6c\x6c\57\x77\x69\156\55\x61\x66\x66\x69\x6c\151\x61\x74\x69\x6f\156\57\x6d\x61\156\x61\147\x65\x72\57\x61\x6c\154\x5f\x77\151\x6e\x2d\141\x66\x66\x69\x6c\x69\x61\x74\x69\x6f\x6e\x5f\155\x61\156\x61\147\145\x72\x5f\160\141\162\164\156\145\x72\137\144\x61\164\x61\137\166\x69\145\x77\x73\x2e\x70\x68\160"; goto SggBw; ykz4D: if (!empty($type) && $type == "\160\162\157\x70\143\x75\163\x74\157\x6d\145\162\163") { goto hVkc1; } goto Nuw_f; GMWpQ: Cj9wO: goto WHe6X; xa8Ge: goto GzUrE; goto NWuUO; as7FO: global $grids; goto ixZk_; Ik62r: goto GzUrE; goto WrjCD; a6qQF: if (!empty($type) && $type == "\160\x72\x6f\160\160\x61\x63\x6b\160\162\157\x64\165\x63\x74") { goto Vklwk; } goto D4WWX; Dh11r: $grids = array(); goto q_j06; ao42l: La58u: goto nYhKy; Rl1JO: goto GzUrE; goto qHuvH; q_j06: phZ1Y: goto pqz_9; WecCJ: include SC_DIR . "\154\151\x62\x2f\143\141\164\x2f\160\162\157\144\165\x63\164\163\x6f\162\164\x2f\143\x61\164\x5f\x70\162\157\144\165\143\x74\163\157\162\x74\x5f\x64\x61\164\141\x5f\166\151\145\167\163\56\x70\150\160"; goto e1TX5; Ri0cQ: include SC_DIR . "\154\151\x62\x2f\143\x61\x74\57\143\x6f\x6d\142\151\x6e\141\x74\151\x6f\156\57\x63\x61\164\x5f\x63\x6f\155\x62\x69\156\x61\164\x69\x6f\x6e\137\144\141\x74\141\137\166\151\145\167\x73\56\x70\150\160"; goto FS9yw; ixZk_: if (isset($grids)) { goto phZ1Y; } goto Dh11r; SggBw: GzUrE: goto qDO4c; M2ffj: include SC_DIR . "\x6c\x69\x62\57\x6f\x72\x64\57\x70\x72\x6f\x64\x75\x63\164\x2f\x6f\162\144\x5f\x70\162\x6f\144\165\x63\x74\137\144\x61\x74\x61\137\x76\151\145\167\x73\56\160\150\x70"; goto Ik62r; KILSw: qUtxw: goto zQWhz; PadVD: goto GzUrE; goto Z_nSa; HlQkT: goto GzUrE; goto cLzvs; zQ5Zz: goto GzUrE; goto KILSw; W6sO1: WzeEH: goto DyQI4; Z_nSa: z4tAi: goto FqZps; nPYpj: if (!empty($type) && $type == "\x63\157\155\142\151\156\141\x74\x69\x6f\x6e\155\165\x6c\164\151\160\162\x6f\144\165\x63\x74") { goto WzeEH; } goto CXy62; Nuw_f: if (!empty($type) && $type == "\167\x69\x6e\x73\x70\145\160\x72\151\x63\x65") { goto opdYT; } goto a6qQF; QMwJ1: if (!empty($type) && $type == "\143\x6d\x73") { goto grQmS; } goto elHfN; amqVJ: LFTaa: goto M2ffj; Ao9mJ: goto GzUrE; goto GMWpQ; lVh30: if (!empty($type) && $type == "\160\x72\157\144\165\143\x74\163\x6f\162\164") { goto ZFBgB; } goto RFTNk; OXZA9: goto GzUrE; goto WQQk7; FqZps: include SC_DIR . "\154\x69\142\57\143\141\164\x2f\143\x61\164\x5f\160\162\x6f\x64\165\x63\x74\x5f\144\x61\x74\141\137\166\x69\145\167\163\56\160\x68\160"; goto V4mkf; spS3s: goto GzUrE; goto Hevhu; e1TX5: goto GzUrE; goto dY4B4; Q5G2p: include SC_DIR . "\x6c\x69\x62\x2f\x63\x61\x74\x2f\167\x69\156\x2d\x73\x70\145\x63\x69\x66\x69\x63\x70\x72\x69\143\x65\x2f\143\141\x74\x5f\167\x69\156\x2d\163\x70\145\x63\151\x66\151\143\x70\x72\x69\x63\x65\x5f\144\141\x74\141\x5f\166\151\x65\x77\x73\x2e\160\x68\160"; goto TJTOB; jLpZM: if (!empty($type) && $type == "\x70\162\157\160\163\x70\145\160\x72\x69\143\145") { goto xOP8C; } goto ykz4D; TzVFa: hVkc1: goto r_R3P; WLKVf: Mo_vp: goto PDAiU; MK43w: goto GzUrE; goto ao42l; m2GWK: if (!empty($type) && $type == "\147\x6d\141\x70\x61\x72\x74\156\x65\162") { goto mbmxr; } goto PadVD; F0zl5: include SC_DIR . "\154\151\x62\57\x63\141\x74\57\151\155\141\147\145\57\143\x61\164\137\151\x6d\x61\x67\145\137\144\141\164\x61\137\166\x69\145\x77\x73\56\x70\x68\160"; goto spS3s; qDO4c: return $grids; goto pzjon; PDAiU: include SC_DIR . "\154\151\x62\x2f\155\x61\156\x2f\155\141\x6e\x5f\x6d\x61\x6e\165\146\141\x63\164\x75\x72\145\162\137\x64\141\164\x61\137\166\151\x65\x77\163\56\160\x68\x70"; goto OXZA9; pqz_9: if (!empty($type) && $type == "\160\x72\157\144\x75\x63\164") { goto z4tAi; } goto t6Imf; RFTNk: if (!empty($type) && $type == "\155\x73\x70\x72\x6f\x64\165\x63\x74") { goto oefko; } goto p0SEA; elHfN: if (!empty($type) && $type == "\155\x61\156\x75\146\x61\x63\164\165\162\x65\162") { goto Mo_vp; } goto mQA3b; r_R3P: include SC_DIR . "\x6c\151\142\x2f\143\x61\164\57\x63\x75\163\164\x6f\x6d\x65\162\x62\x79\160\x72\157\x64\165\x63\164\x2f\143\x61\x74\x5f\143\x75\x73\x74\x6f\x6d\x65\162\142\x79\160\x72\x6f\x64\x75\143\x74\137\144\141\164\141\x5f\166\151\145\x77\x73\56\x70\x68\x70"; goto HlQkT; zQRwn: ZFBgB: goto WecCJ; nABWE: Vklwk: goto iWBuF; m2UA6: global $sc_active; goto Ri0cQ; C8JMw: goto GzUrE; goto zQRwn; sOM2Q: if (!empty($type) && $type == "\x6f\x72\144\145\162\137\x70\162\x6f\x64\x75\143\x74") { goto LFTaa; } goto QMwJ1; mQA3b: if (!empty($type) && $type == "\163\165\x70\x70\154\x69\145\x72") { goto A3A9h; } goto lVh30; V4mkf: goto GzUrE; goto qxm9N; cLzvs: opdYT: goto Q5G2p; c4ZuQ: goto GzUrE; goto o4szN; p0SEA: if (!empty($type) && $type == "\x6d\x73\143\x6f\155\x62\151\156\x61\x74\x69\157\156") { goto Cj9wO; } goto jp5AW; NWuUO: mbmxr: goto IwxeW; qxm9N: cEVoz: goto m2UA6; zka9f: include SC_DIR . "\154\x69\142\x2f\143\141\164\x2f\x73\165\160\x70\154\151\x65\162\57\143\141\x74\x5f\163\x75\x70\x70\x6c\x69\145\162\137\x64\141\164\141\x5f\x76\151\145\167\x73\x2e\160\150\x70"; goto xa8Ge; CXy62: if (!empty($type) && $type == "\143\x75\163\164\x6f\155\145\162") { goto ZfDGF; } goto ZMXYg; nYhKy: include SC_DIR . "\154\x69\142\57\157\162\x64\57\x6f\x72\x64\x5f\x6f\162\144\145\x72\x5f\x64\141\x74\x61\137\166\x69\x65\167\x73\x2e\x70\x68\160"; goto I_3L3; WHe6X: include SC_DIR . "\154\x69\x62\57\x63\x61\164\x2f\155\x73\x63\x6f\x6d\142\151\x6e\x61\164\151\x6f\156\x2f\143\x61\164\x5f\155\x73\143\157\155\142\151\156\141\164\x69\x6f\x6e\x5f\144\x61\x74\141\x5f\166\151\x65\x77\x73\56\160\150\160"; goto c4ZuQ; Hevhu: xOP8C: goto N10_h; WrjCD: grQmS: goto GdQgC; CSyzS: goto GzUrE; goto TzVFa; x13MZ: include SC_DIR . "\x6c\151\142\57\163\x75\160\x2f\163\165\x70\x5f\163\x75\x70\160\154\x69\x65\x72\x5f\144\x61\x74\x61\x5f\166\x69\x65\167\x73\56\160\x68\160"; goto C8JMw; FS9yw: goto GzUrE; goto W6sO1; zQWhz: global $multiple, $has_combi; goto zka9f; o4szN: A8bVt: goto F0zl5; RmixK: goto GzUrE; goto WLKVf; iWBuF: include SC_DIR . "\x6c\x69\x62\x2f\143\141\x74\x2f\x70\x61\143\153\x2f\143\x61\x74\x5f\160\141\x63\x6b\x5f\x64\x61\x74\141\137\x76\x69\145\x77\x73\56\160\x68\160"; goto zQ5Zz; pzjon: } public static function synchronizeArrayOfProducts($arrayOfIDProducts, $order_id_shop = null) { goto L8Un3; ysFth: htimW: goto PssEl; PssEl: foreach ($arrayOfIDProducts as $id_product) { SCI::synchronize($id_product, $order_id_shop); lmC2E: } goto p9RpU; kTBa1: return false; goto ysFth; L8Un3: if (!(!is_array($arrayOfIDProducts) || count($arrayOfIDProducts) == 0)) { goto htimW; } goto kTBa1; p9RpU: HsdCE: goto S1tw_; S1tw_: } public static function synchronize($id_product, $order_id_shop = null) { goto pqS5S; c9seT: wehnb: goto wE0AG; Ky8VR: GCquS: goto VUWTw; VUWTw: if (!version_compare(_PS_VERSION_, "\61\x2e\66\56\x30\x2e\60", "\76\75")) { goto sEJ3x; } goto KmW4E; d7Fst: MGYvi: goto c9seT; DCjvy: $order_warehouses = array(); goto Llcz_; YrpuF: Db::getInstance()->update("\x73\x74\x6f\x63\x6b\x5f\141\x76\x61\x69\154\141\142\x6c\145", array("\x71\165\x61\156\164\151\164\x79" => 0), "\x69\144\137\160\162\x6f\x64\x75\x63\164\x20\75\40" . (int) $id_product); goto Ky8VR; AkIVy: hYdtQ: goto E2Jnl; Llcz_: $wh = Warehouse::getWarehouses(false, (int) $order_id_shop); goto vV10_; BO0X6: $ids_warehouse = Warehouse::getWarehousesGroupedByShops(); goto U7amh; CJ01z: foreach (Product::getProductAttributesIds($id_product) as $id_product_attribute) { $ids_product_attribute[] = $id_product_attribute["\151\x64\137\x70\x72\x6f\144\x75\x63\164\137\141\x74\x74\x72\151\142\x75\x74\x65"]; xxWFr: } goto AkIVy; vi2wt: foreach ($ids_warehouse as $id_shop => $warehouses) { goto OTdp2; Hm13b: Db::getInstance()->insert($query["\x74\x61\142\154\145"], $query["\144\x61\x74\x61"]); goto M39UV; pBNMf: QT4RN: goto p6uKk; j0hCD: if (empty($ids_product_attribute)) { goto y2dc6; } goto mBChB; QQvEt: n1PNW: goto ZTJOj; OTdp2: $has_sa = Db::getInstance()->executeS("\123\105\x4c\105\103\x54\40\144\x65\x70\145\x6e\144\x73\137\157\156\137\x73\x74\157\x63\153\x20\x46\122\117\115\40" . _DB_PREFIX_ . "\x73\164\157\143\153\137\141\x76\x61\x69\154\x61\142\x6c\x65\12\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\127\110\105\x52\x45\x20\151\144\x5f\160\162\x6f\x64\165\143\x74\40\x3d\40" . (int) $id_product . "\40\x41\116\x44\x20\x69\x64\137\x70\x72\x6f\x64\165\x63\x74\137\x61\x74\x74\162\x69\x62\x75\164\x65\x20\75\40\x30" . "\x20\101\116\x44\40\151\144\137\x73\x68\x6f\x70\x20\75\x20" . (int) $id_shop); goto lLC5K; aitgv: foreach ($allowed_warehouse_for_product as $warehouse) { $allowed_warehouse_for_product_clean[] = (int) $warehouse["\x69\144\137\167\x61\x72\x65\x68\157\x75\163\145"]; JJgAG: } goto SUBrp; Fonlc: if ((int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query)) { goto n1PNW; } goto LWaOn; oyA6_: mawVD: goto YcBVI; Mpwrr: goto Hml7b; goto oyA6_; NgLI3: $product_quantity = 0; goto j0hCD; xaxPG: $allowed_warehouse_for_product_clean = array(); goto aitgv; Ann3Q: XMXKV: goto YT9Xo; DltYh: $allowed_warehouse_for_product = WareHouse::getProductWarehouseList((int) $id_product, 0, (int) $id_shop); goto xaxPG; Ka8Lv: hOGgX: goto pAC1_; RCl7E: $query->from("\x73\164\157\143\153\x5f\x61\166\x61\151\x6c\141\x62\154\x65"); goto eimcp; eimcp: $query->where("\151\144\x5f\160\162\x6f\x64\165\x63\164\40\x3d\x20" . (int) $id_product . "\x20\101\x4e\x44\x20\x69\x64\x5f\160\x72\x6f\x64\x75\x63\x74\x5f\x61\164\x74\162\151\x62\x75\164\145\40\x3d\x20\x30" . "\x20\x41\116\104\x20\151\x64\x5f\163\150\x6f\160\x20\x3d\40" . (int) $id_shop); goto Fonlc; pAC1_: TATWW: goto pBNMf; lLC5K: if (!(count($has_sa) == 0 || $has_sa[0]["\144\x65\160\x65\x6e\144\163\x5f\x6f\156\x5f\x73\x74\x6f\143\153"] == 1)) { goto QT4RN; } goto NgLI3; M39UV: goto hOGgX; goto QQvEt; LWaOn: $query = array("\164\141\x62\x6c\x65" => "\163\164\157\143\x6b\x5f\141\x76\x61\151\x6c\141\x62\x6c\145", "\x64\141\164\141" => array("\161\165\141\x6e\x74\151\164\x79" => $product_quantity, "\144\x65\160\145\x6e\144\163\x5f\x6f\156\137\163\x74\157\x63\x6b" => 1, "\x6f\x75\x74\x5f\x6f\x66\x5f\x73\164\x6f\x63\x6b" => $out_of_stock, "\151\x64\x5f\x70\162\157\144\x75\143\164" => (int) $id_product, "\x69\144\x5f\160\x72\x6f\144\x75\143\x74\137\x61\x74\x74\x72\151\142\165\164\145" => 0, "\x69\144\137\x73\x68\x6f\160" => (int) $id_shop, "\x69\144\x5f\x73\x68\157\x70\137\x67\x72\157\165\x70" => 0)); goto Hm13b; pvLs0: y2dc6: goto DltYh; BwvhX: goto TATWW; goto pvLs0; dSTN5: $query->select("\x43\117\125\116\124\50\x2a\51"); goto RCl7E; nI43V: $allowed_warehouse_for_product_clean = array_intersect($allowed_warehouse_for_product_clean, $warehouses); goto DWIvR; SUBrp: QXfrf: goto nI43V; gBlyH: Db::getInstance()->update($query["\164\141\142\154\x65"], $query["\x64\x61\x74\x61"], $query["\167\x68\145\x72\145"]); goto Ka8Lv; YT9Xo: $query = array("\164\141\x62\x6c\145" => "\x73\164\x6f\143\153\x5f\x61\x76\x61\x69\154\141\x62\154\x65", "\144\141\x74\x61" => array("\x71\165\x61\x6e\164\151\164\171" => $product_quantity), "\x77\x68\145\x72\145" => "\x69\x64\x5f\x70\x72\157\144\x75\143\164\x20\75\x20" . (int) $id_product . "\x20\x41\116\x44\x20\x69\x64\137\160\162\157\144\x75\143\x74\137\x61\x74\164\162\x69\x62\x75\164\x65\40\75\x20\x30" . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto vYV9x; zEjcb: $query = new DbQuery(); goto dSTN5; vYV9x: Db::getInstance()->update($query["\164\x61\142\154\145"], $query["\x64\141\x74\x61"], $query["\167\150\145\x72\145"]); goto BwvhX; mBChB: foreach ($ids_product_attribute as $id_product_attribute) { goto HoYgz; EW3kN: NzVEy: goto S93CE; V1uYN: $allowed_warehouse_for_combination_clean = array(); goto gIpM3; O9t8m: if ((int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query)) { goto connm; } goto fzwUv; PGS3V: $query->select("\103\x4f\x55\116\x54\x28\x2a\x29"); goto ZlxAB; K5Jvd: $query = array("\164\x61\142\x6c\145" => "\x73\x74\157\143\x6b\x5f\x61\x76\x61\x69\154\x61\142\154\145", "\144\141\x74\141" => array("\x71\165\x61\156\x74\151\164\x79" => $quantity), "\167\x68\x65\162\145" => "\x69\x64\137\x70\x72\157\x64\165\143\x74\40\75\40" . (int) $id_product . "\x20\101\116\104\x20\151\x64\x5f\x70\162\x6f\144\165\x63\164\x5f\141\164\164\x72\x69\142\x75\x74\145\40\x3d\x20" . (int) $id_product_attribute . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto O0rbV; gIpM3: foreach ($allowed_warehouse_for_combination as $warehouse) { $allowed_warehouse_for_combination_clean[] = (int) $warehouse["\151\144\137\x77\141\162\145\x68\157\165\x73\x65"]; MyQ2d: } goto mHggQ; iDzoz: $query = new DbQuery(); goto PGS3V; D1lSe: connm: goto K5Jvd; Kjy5v: goto NzVEy; goto D1lSe; mHggQ: rTu79: goto Xwf0T; Xwf0T: $allowed_warehouse_for_combination_clean = array_intersect($allowed_warehouse_for_combination_clean, $warehouses); goto ENORI; ta733: $query->where("\151\x64\x5f\x70\162\157\x64\165\x63\x74\x20\75\x20" . (int) $id_product . "\x20\x41\x4e\x44\40\151\144\x5f\x70\162\x6f\144\x75\x63\164\x5f\141\x74\x74\x72\151\142\x75\x74\145\x20\x3d\x20" . (int) $id_product_attribute . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto O9t8m; srszm: $quantity = $manager->getProductRealQuantities($id_product, $id_product_attribute, $allowed_warehouse_for_combination_clean, true); goto iDzoz; fzwUv: $query = array("\164\141\x62\154\x65" => "\x73\164\157\143\x6b\137\x61\x76\x61\x69\x6c\x61\x62\154\x65", "\x64\141\164\x61" => array("\x71\165\x61\156\x74\151\164\x79" => $quantity, "\144\145\x70\145\156\x64\x73\x5f\x6f\156\x5f\x73\164\157\x63\153" => 1, "\x6f\x75\x74\137\x6f\x66\137\163\x74\157\143\153" => $out_of_stock, "\x69\144\137\x70\162\x6f\x64\x75\143\x74" => (int) $id_product, "\151\x64\137\160\162\x6f\x64\x75\143\164\x5f\141\x74\x74\x72\151\x62\x75\x74\145" => (int) $id_product_attribute, "\151\x64\137\163\150\x6f\160" => (int) $id_shop, "\151\x64\137\x73\150\157\160\137\147\x72\157\165\160" => 0)); goto Dy1kd; ckXtT: W0bKt: goto srszm; S93CE: $product_quantity += $quantity; goto Ogz5O; Dy1kd: Db::getInstance()->insert($query["\x74\141\142\x6c\145"], $query["\144\x61\x74\141"]); goto Kjy5v; Ogz5O: eBT7F: goto VYP2Y; ENORI: if (!($order_id_shop != null && !count(array_intersect($allowed_warehouse_for_combination_clean, $order_warehouses)))) { goto W0bKt; } goto oltQA; oltQA: goto eBT7F; goto ckXtT; O0rbV: Db::getInstance()->update($query["\x74\x61\x62\x6c\x65"], $query["\x64\141\x74\141"], $query["\x77\150\145\162\x65"]); goto EW3kN; ZlxAB: $query->from("\163\x74\x6f\x63\153\137\x61\166\141\151\x6c\141\x62\x6c\x65"); goto ta733; HoYgz: $allowed_warehouse_for_combination = WareHouse::getProductWarehouseList((int) $id_product, (int) $id_product_attribute, (int) $id_shop); goto V1uYN; VYP2Y: } goto Ann3Q; p6uKk: Hml7b: goto b6iWG; ZTJOj: $query = array("\164\x61\142\x6c\145" => "\163\x74\157\x63\x6b\x5f\x61\x76\141\x69\x6c\x61\142\154\x65", "\144\141\x74\141" => array("\x71\165\x61\156\164\x69\x74\171" => $product_quantity), "\167\x68\145\162\x65" => "\151\144\137\160\x72\157\144\165\143\x74\x20\75\x20" . (int) $id_product . "\x20\101\116\x44\40\151\x64\137\x70\x72\157\144\165\143\164\137\x61\164\164\x72\x69\x62\x75\x74\x65\40\75\40\60" . StockAvailable::addSqlShopRestriction(null, $id_shop)); goto gBlyH; DWIvR: if (!($order_id_shop != null && !count(array_intersect($allowed_warehouse_for_product_clean, $order_warehouses)))) { goto mawVD; } goto Mpwrr; YcBVI: $product_quantity = $manager->getProductRealQuantities($id_product, null, $allowed_warehouse_for_product_clean, true); goto zEjcb; b6iWG: } goto lysVY; wHNTO: return false; goto Eeuk9; lysVY: YAbDr: goto p3irz; s17qO: sEJ3x: goto zZQzu; KmW4E: Cache::clean("\x53\x74\157\x63\153\101\166\x61\151\154\141\142\x6c\x65\72\x3a\x67\145\164\121\x75\x61\x6e\164\151\x74\171\x41\166\141\151\154\141\142\154\x65\x42\171\x50\x72\157\x64\165\x63\164\137" . (int) $id_product . "\x2a"); goto s17qO; E2Jnl: $out_of_stock = StockAvailable::outOfStock($id_product); goto Fgcrl; Fgcrl: $manager = StockManagerFactory::getManager(); goto vi2wt; pqS5S: if (Validate::isUnsignedId($id_product)) { goto PrsDV; } goto wHNTO; vV10_: foreach ($wh as $warehouse) { $order_warehouses[] = $warehouse["\151\144\137\x77\141\x72\x65\x68\x6f\165\x73\x65"]; i7Bql: } goto d7Fst; p3irz: if (!(count($ids_warehouse) == 0 && StockAvailable::dependsOnStock((int) $id_product))) { goto GCquS; } goto YrpuF; wE0AG: $ids_product_attribute = array(); goto CJ01z; Eeuk9: PrsDV: goto BO0X6; U7amh: if (!($order_id_shop !== null)) { goto wehnb; } goto DCjvy; zZQzu: } public static function updateQuantity($id_product, $id_product_attribute, $delta_quantity, $id_shop = null) { goto R0p5c; tjAeK: YR70A: goto HzmRi; u2m3U: Hook::exec("\x61\x63\x74\151\x6f\156\x55\160\x64\x61\x74\145\x51\x75\x61\156\x74\x69\x74\x79", array("\151\x64\x5f\x70\x72\x6f\144\165\x63\164" => $id_product, "\151\144\137\160\162\x6f\144\165\x63\x74\x5f\x61\164\164\162\151\x62\x75\x74\145" => $id_product_attribute, "\161\165\x61\156\x74\x69\x74\x79" => $stock_available->quantity)); goto vZvB2; RuceI: if ($id_stock_available) { goto Ymr07; } goto EueT6; xnG3v: $stock_available->update(); goto KDeyn; p2em8: $products_pack = Pack::getItems($id_product, (int) Configuration::get("\x50\x53\x5f\x4c\101\116\107\x5f\104\105\106\x41\x55\114\124")); goto fbLvw; JvCrT: Db::getInstance()->execute("\125\x50\x44\x41\x54\x45\40" . _DB_PREFIX_ . "\163\164\x6f\x63\x6b\x5f\141\166\x61\x69\154\x61\142\x6c\x65\xa\40\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x53\105\x54\x20\x70\x68\x79\163\x69\143\x61\154\137\161\165\x61\x6e\164\x69\164\x79\x20\75\40\50\161\165\x61\x6e\x74\151\x74\x79\53\162\x65\x73\x65\162\166\x65\x64\x5f\x71\x75\141\156\164\x69\164\171\51\12\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\x57\x48\105\122\x45\40\151\x64\x5f\160\x72\x6f\144\x75\x63\x74\40\x3d\40" . (int) $id_product . "\xa\x20\40\x20\40\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\40\40\101\116\104\x20\x69\x64\x5f\160\162\x6f\144\x75\x63\x74\137\141\164\x74\162\151\x62\165\164\x65\x20\75\x20" . (int) $id_product_attribute . "\xa\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\40\101\x4e\x44\x20\151\144\137\x73\150\x6f\160\x20\40\75\40" . (int) $stock_available->id_shop . "\xa\40\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\101\x4e\x44\40\151\x64\137\163\150\157\160\137\147\x72\x6f\165\x70\x20\40\x3d\x20" . (int) $stock_available->id_shop_group); goto es7K2; KDeyn: if (!version_compare(_PS_VERSION_, "\61\x2e\67\x2e\x35\x2e\60", "\76\x3d")) { goto EeWWP; } goto JvCrT; x8xiE: G2oSf: goto tjAeK; NbP5t: return true; goto IhlFe; BkZoo: Ymr07: goto fSHhd; es7K2: EeWWP: goto u2m3U; FaHQ7: return false; goto zKu8r; IhlFe: goto K7hKP; goto EZOVt; EZOVt: IJfy6: goto KWN_T; QPRiR: $stock_available->quantity = $stock_available->quantity + $delta_quantity; goto xnG3v; HzmRi: $stock_available = new StockAvailable($id_stock_available); goto QPRiR; vZvB2: Cache::clean("\123\x74\157\143\x6b\101\166\141\151\154\141\x62\154\145\x3a\x3a\x67\145\x74\121\165\141\156\164\x69\164\171\x41\166\x61\x69\x6c\141\x62\x6c\x65\x42\171\120\162\157\x64\x75\x63\x74\137" . (int) $id_product . "\x2a"); goto NbP5t; fbLvw: foreach ($products_pack as $product_pack) { goto A96DF; dcXKY: oLsR1: goto p6GdP; A96DF: $pack_id_product_attribute = Product::getDefaultAttribute($product_pack->id, 1); goto YUeoc; YUeoc: SCI::updateQuantity($product_pack->id, $pack_id_product_attribute, $product_pack->pack_quantity * $delta_quantity, $id_shop); goto dcXKY; p6GdP: } goto x8xiE; KWN_T: return StockAvailable::updateQuantity($id_product, $id_product_attribute, $delta_quantity, $id_shop); goto vdKIA; vdKIA: K7hKP: goto Ux8SH; fSHhd: if (!Pack::isPack($id_product)) { goto YR70A; } goto p2em8; EueT6: return false; goto BkZoo; ZVyD3: if (Validate::isUnsignedId($id_product)) { goto sXi_U; } goto FaHQ7; R0p5c: if (version_compare(_PS_VERSION_, "\61\56\66\56\60\x2e\60", "\x3c")) { goto IJfy6; } goto ZVyD3; zKu8r: sXi_U: goto LY35_; LY35_: $id_stock_available = StockAvailable::getStockAvailableIdByProductId($id_product, $id_product_attribute, $id_shop); goto RuceI; Ux8SH: } public static function setQuantity($id_product, $id_product_attribute, $quantity, $id_shop = null) { goto GJVwJ; Lu01x: $stock_available->id_shop_group = (int) $shop_group->id; goto XTwik; l42fM: $id_shop = (int) $context->shop->id; goto s92vY; gjvOj: if (!version_compare(_PS_VERSION_, "\61\56\67\56\x35\x2e\x30", "\x3e\75")) { goto rvyHy; } goto fZROM; Q1p_M: return false; goto MjwiI; fSnxQ: $id_stock_available = (int) StockAvailable::getStockAvailableIdByProductId($id_product, $id_product_attribute, $id_shop); goto y9edE; nQo8M: if (!($id_shop === null && Shop::getContext() != Shop::CONTEXT_GROUP)) { goto dcaNz; } goto l42fM; MORNs: $shop_group = Shop::getContextShopGroup(); goto n0XWq; GJVwJ: if (Validate::isUnsignedId($id_product)) { goto TtXkr; } goto Q1p_M; znUWz: if ($depends_on_stock) { goto I72F2; } goto fSnxQ; FU8G_: $stock_available->id_product_attribute = (int) $id_product_attribute; goto h21dS; GG57d: BfrtK: goto gjvOj; zW7U3: $depends_on_stock = StockAvailable::dependsOnStock($id_product, (int) $id_shop); goto db7I7; hG9ur: YVIub: goto UclhT; gl_hX: $stock_available->add(); goto zTegS; VXblS: $stock_available->update(); goto GG57d; db7I7: CYU3u: goto znUWz; TWGXM: $stock_available->id_shop_group = 0; goto UY9Xg; EaDop: $depends_on_stock = false; goto hWRSG; InHU0: S5OE0: goto D0aIA; YvQRV: $stock_available->quantity = (int) $quantity; goto VXblS; CJ10B: if ($id_shop === null) { goto QHRhX; } goto O12cW; Elaz8: $stock_available->id_shop = (int) $id_shop; goto TWGXM; XTwik: OmW4A: goto gl_hX; fh0Jw: $stock_available->out_of_stock = (int) $out_of_stock; goto hcQQB; hcQQB: $stock_available->id_product = (int) $id_product; goto FU8G_; xDuuz: $context = Context::getContext(); goto nQo8M; UclhT: $stock_available = new StockAvailable($id_stock_available); goto YvQRV; kV2jI: rvyHy: goto g71l1; hWRSG: if (!version_compare(_PS_VERSION_, "\x31\x2e\67\x2e\70\x2e\x30", "\x3c")) { goto CYU3u; } goto zW7U3; n0XWq: iUVlF: goto QFlmP; MjwiI: TtXkr: goto xDuuz; wIjmM: $out_of_stock = StockAvailable::outOfStock($id_product, $id_shop); goto Sr4jc; y9edE: if ($id_stock_available) { goto YVIub; } goto wIjmM; rYSsG: goto iUVlF; goto HYT4O; s92vY: dcaNz: goto EaDop; Sr4jc: $stock_available = new StockAvailable(); goto fh0Jw; O12cW: $shop_group = new ShopGroup((int) Shop::getGroupFromShop((int) $id_shop)); goto rYSsG; D0aIA: $stock_available->id_shop = 0; goto Lu01x; UY9Xg: goto OmW4A; goto InHU0; h21dS: $stock_available->quantity = (int) $quantity; goto CJ10B; QFlmP: if ($shop_group->share_stock) { goto S5OE0; } goto Elaz8; AZOOQ: I72F2: goto aTWOW; HYT4O: QHRhX: goto MORNs; fZROM: Db::getInstance()->execute("\125\x50\104\101\124\x45\40" . _DB_PREFIX_ . "\163\x74\157\143\153\137\x61\166\x61\x69\154\141\142\154\x65\xa\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\40\x20\40\40\x20\x20\x20\40\40\40\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\123\105\x54\40\x70\150\x79\x73\151\x63\141\x6c\137\x71\x75\x61\156\164\x69\x74\x79\x20\x3d\40\50\x71\165\141\x6e\x74\x69\164\x79\53\x72\x65\163\x65\162\x76\145\x64\x5f\x71\165\x61\x6e\x74\x69\164\x79\x29\12\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\40\40\x20\x57\x48\x45\x52\105\40\151\144\x5f\160\x72\x6f\x64\x75\x63\164\40\75\x20" . (int) $id_product . "\12\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x41\116\x44\40\x69\144\x5f\160\x72\157\144\x75\x63\x74\x5f\x61\x74\164\162\151\142\165\x74\145\x20\75\40" . (int) $id_product_attribute . "\12\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\101\116\x44\40\151\144\x5f\163\x68\x6f\160\x20\x20\75\40" . (int) $stock_available->id_shop . "\xa\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x41\x4e\104\40\151\144\x5f\x73\x68\x6f\160\137\x67\x72\x6f\x75\160\x20\40\75\x20" . (int) $stock_available->id_shop_group); goto kV2jI; g71l1: Hook::exec("\x61\x63\x74\x69\157\156\125\160\x64\141\164\x65\121\x75\141\156\x74\151\164\x79", array("\x69\144\x5f\160\162\x6f\x64\x75\x63\164" => $id_product, "\151\144\137\160\162\157\144\165\143\164\137\x61\164\164\x72\151\142\165\x74\145" => $id_product_attribute, "\x71\x75\x61\x6e\x74\x69\164\171" => $stock_available->quantity)); goto AZOOQ; zTegS: goto BfrtK; goto hG9ur; aTWOW: } public static function deleteCombinationStock($id_product_attribute, $id_product = null) { goto jweTV; q_nsr: leyIp: goto A99hE; aB10U: Db::getInstance()->Execute($sql); goto YPAxa; SLyNG: Isb4A: goto MTZ3J; jweTV: if (empty($id_product_attribute)) { goto Isb4A; } goto EPJjt; BLPc2: Db::getInstance()->Execute($sql); goto SLyNG; UDPUe: foreach ($rows as $row) { goto WgjBR; c5YbH: QreqW: goto IwIBf; Oaxs3: Db::getInstance()->Execute($sql); goto c5YbH; WgjBR: $sql = "\104\x45\114\105\124\105\40\x46\x52\117\115\x20" . _DB_PREFIX_ . "\x73\164\157\x63\153\x5f\x6d\166\164\40\127\x48\105\x52\x45\40\151\x64\x5f\163\164\x6f\143\x6b\75" . (int) $row["\151\x64\x5f\x73\x74\x6f\x63\153"]; goto Oaxs3; IwIBf: } goto q_nsr; A99hE: $sql = "\x44\105\114\x45\124\105\40\x46\x52\x4f\115\40" . _DB_PREFIX_ . "\x73\x74\157\x63\153\40\x57\x48\x45\x52\x45\x20\x69\144\x5f\160\162\x6f\x64\165\143\x74\137\x61\164\164\x72\x69\142\x75\x74\145\x3d" . (int) $id_product_attribute; goto BLPc2; DcPMk: $rows = Db::getInstance()->ExecuteS($sql); goto UDPUe; YPAxa: $sql = "\123\105\114\105\103\x54\x20\x69\144\x5f\163\x74\157\143\153\40\106\122\x4f\x4d\x20" . _DB_PREFIX_ . "\163\x74\x6f\143\153\x20\x57\x48\105\x52\x45\40\x69\x64\137\160\162\x6f\144\x75\143\x74\137\x61\x74\164\x72\x69\x62\x75\x74\145\75" . (int) $id_product_attribute; goto DcPMk; EPJjt: $sql = "\104\105\x4c\x45\124\105\x20\x46\x52\117\x4d\40" . _DB_PREFIX_ . "\167\141\x72\x65\150\x6f\x75\163\x65\137\160\162\x6f\x64\165\x63\164\137\x6c\157\143\141\x74\151\x6f\x6e\x20\x57\x48\105\122\105\x20\x69\x64\x5f\x70\162\157\x64\165\143\164\x5f\141\x74\164\x72\x69\142\165\164\x65\x3d" . (int) $id_product_attribute; goto aB10U; MTZ3J: } public static function getIdPdtFromCombi($id_product) { goto Xvi1K; j2Ac2: Df7A2: goto y5gXl; A0CMa: $query->from("\160\162\157\144\x75\143\164\137\141\x74\164\x72\151\x62\x75\164\145", "\x70\141"); goto XbeRR; Xvi1K: $return = 0; goto GbMBm; GbMBm: if (empty($id_product)) { goto Df7A2; } goto ooNRB; aBA_6: return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); goto j2Ac2; y5gXl: return $return; goto oXC78; ooNRB: $query = new DbQuery(); goto LfwxU; XbeRR: $query->where("\x70\x61\56\151\x64\137\x70\x72\157\144\x75\x63\x74\x20\75\40" . (int) $id_product); goto aBA_6; LfwxU: $query->select("\160\x61\x2e\151\144\x5f\160\x72\x6f\x64\165\x63\164"); goto A0CMa; oXC78: } public static function getPrice($id_prd, $id_prd_attr = null, $id_shop = 1, $with_reduc = false) { goto PRcfv; osi3c: $sql_specific_price = "\x53\x45\x4c\x45\x43\124\40\52\12\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\106\x52\117\115\x20\x60" . _DB_PREFIX_ . "\x73\x70\145\143\151\x66\151\143\x5f\x70\x72\x69\143\145\x60\xa\x20\x20\x20\x20\40\40\40\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\x20\40\x20\40\40\40\x20\x20\40\40\x57\110\105\x52\105\x20\x69\x64\137\x70\x72\x6f\x64\x75\x63\164\x20\x3d\x20\47" . $id_prd . "\x27\12\40\40\40\x20\40\40\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\101\x4e\104\40\50\140\146\x72\157\x6d\x60\x20\74\75\x20\47" . date("\131\55\x6d\x2d\x64\x20\x48\72\x69\72\x73") . "\47\40\117\x52\x20\140\x66\162\x6f\x6d\140\75\x27\x30\60\60\x30\55\60\x30\55\x30\x30\40\x30\60\x3a\x30\x30\x3a\60\60\47\x29\xa\40\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\x20\x20\40\40\101\116\x44\x20\x28\x60\x74\157\140\x20\76\75\40\47" . date("\131\x2d\x6d\x2d\x64\40\x48\72\151\x3a\x73") . "\47\x20\x4f\122\x20\x60\164\157\x60\x3d\x27\60\60\60\x30\55\x30\60\55\60\x30\x20\60\60\x3a\60\x30\72\x30\x30\47\51\12\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\40\x20\x20\40\x20\40" . (SCMS ? "\x20\101\116\104\x20\x28\40\x69\144\137\163\x68\157\160\x20\x3d\x20\x27" . (int) $id_shop . "\47\x20\x4f\122\x20\151\144\x5f\x73\x68\157\160\40\75\40\x27\x30\x27\40\x29\x20" : '') . "\xa\40\x20\40\40\40\x20\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\40" . (version_compare(_PS_VERSION_, "\61\x2e\x35\x2e\60\x2e\60", "\76\x3d") ? "\101\116\104\40\x28\151\144\x5f\x70\162\157\x64\x75\x63\164\137\x61\x74\x74\x72\151\x62\165\x74\x65\x20\75\x20\x30\40" . (!empty($id_prd_attr) ? "\x20\x4f\x52\40\x69\x64\x5f\160\x72\157\144\x75\x63\x74\x5f\141\164\x74\x72\x69\x62\165\x74\x65\40\75\x20" . $id_prd_attr . "\51" : "\51") : '') . "\xa\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\117\x52\104\x45\x52\x20\102\131\x20\140\151\x64\137\x73\150\157\160\x60\40\104\x45\x53\x43\54\x60\164\x6f\140\x20\x44\105\x53\x43\54\x20\x69\144\137\x73\160\145\x63\x69\x66\151\143\x5f\x70\162\x69\x63\x65\40\101\x53\103\xa\40\40\40\40\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\114\111\115\x49\x54\x20\x31"; goto WiKuY; vOxA2: $actual_prices["\160\162\151\x63\145\x5f\x72\145\x64\165\x63\x74\151\x6f\x6e\x5f\x77\x74"] = $actual_prices["\160\x72\x69\x63\145\x5f\167\164"]; goto Ih5mY; kIl1e: if (!empty($taxrate)) { goto E2EZz; } goto iUBBq; cFPXC: sPmWW: goto JqSQi; ODtrt: $taxrate = $cache_tax[$id_shop][(int) $prodrow["\151\x64\137\164\x61\170"]]; goto gAu5E; mS3Xo: $actual_prices["\x70\x72\x69\x63\x65\x5f\x72\145\144\165\x63\164\151\157\x6e\137\x69\x74"] = ($attrrow["\160\x72\x69\143\145"] * ($taxrate / 100 + 1) + $prodrow["\160\x72\x69\143\145"] * ($taxrate / 100 + 1)) * (1 - $res_specific_price["\162\x65\x64\165\x63\164\151\x6f\x6e"]) + $ecotax; goto epC_A; jQfMU: EcLR6: goto Wt4Am; iL3ZU: $prodrow["\151\x64\x5f\x74\141\x78"] = $prodrow["\x69\144\137\x74\141\170\x5f\x72\x75\x6c\145\x73\137\x67\162\x6f\165\x70"]; goto ODtrt; cpHmE: $inner = ''; goto tWm0p; tg3tq: $prodrow = Db::getInstance()->getRow($sql); goto NEHKG; pL6ji: $actual_prices["\x70\x72\x69\143\x65\137\x69\x74"] = $prodrow["\160\162\x69\x63\x65"] * ($taxrate / 100 + 1) + $ecotax; goto uKi93; R_aNm: gJhSb: goto jQfMU; ueBAr: Cv5J6: goto EgjNJ; HkNaM: $inner = "\40\x49\116\116\105\x52\40\x4a\x4f\111\116\x20" . _DB_PREFIX_ . "\x74\141\170\137\162\165\154\145\163\137\x67\x72\x6f\165\160\x5f\163\150\x6f\160\40\164\x72\147\x73\x20\x4f\x4e\40\x28\x74\x72\x67\x73\56\x69\x64\x5f\164\x61\170\x5f\162\165\154\145\x73\137\x67\162\157\165\160\40\x3d\x20\164\162\x67\56\x69\x64\x5f\x74\141\170\x5f\x72\165\154\145\163\137\147\162\157\x75\x70\40\x41\116\x44\x20\164\x72\147\163\56\x69\144\137\x73\x68\x6f\x70\40\75\x20\x27" . (int) $id_shop . "\47\x29"; goto cFPXC; XunK2: $res_specific_price = $res_specific_price[0]; goto HbRYX; hvTsb: $actual_prices["\160\162\x69\x63\x65\137\x69\164"] = $attrrow["\160\x72\x69\x63\145"] + $prodrow["\160\162\151\x63\x65"] + $ecotax; goto A7DQc; q26IO: goto EXaIT; goto go2Nd; Qx_Xg: foreach ($res as $row) { goto OnoM8; uzONQ: $row["\x6e\141\x6d\x65"] .= "\40" . _l("\50\144\145\154\145\x74\x65\x64\51"); goto pebyq; YVCGx: $cache_tax[$id_shop][$row["\151\144\137\164\141\x78\x5f\162\x75\154\x65\x73\137\x67\x72\x6f\x75\x70"]] = $row["\162\x61\x74\145"]; goto xw9kq; hLQeL: eeSz3: goto hdzb6; pebyq: c8S31: goto YVCGx; OnoM8: if (!($row["\x6e\141\155\x65"] == '')) { goto eeSz3; } goto uscVB; xw9kq: NELtE: goto dTkNR; hdzb6: if (!($row["\x64\x65\154\145\164\x65\144"] == "\61")) { goto c8S31; } goto uzONQ; uscVB: $row["\156\x61\155\x65"] = "\x20"; goto hLQeL; dTkNR: } goto U58Km; fUgxX: $actual_prices["\160\x72\x69\x63\x65\137\151\164"] = $prodrow["\160\x72\x69\x63\x65"] * ($taxrate / 100 + 1) + $ecotax; goto EMflS; iUBBq: $actual_prices["\x70\162\151\143\145\137\x72\145\x64\x75\x63\x74\151\157\x6e\x5f\x69\164"] = ($attrrow["\x70\162\x69\143\145"] + $prodrow["\x70\x72\151\143\145"]) * (1 - $res_specific_price["\162\145\144\165\x63\x74\151\157\156"]) + $ecotax; goto tSlDg; wE8Hg: $actual_prices["\160\x72\x69\143\x65\x5f\162\x65\x64\165\143\x74\151\157\156\137\x77\x74"] = $actual_prices["\x70\x72\x69\x63\x65\137\x77\x74"] - $prodrow["\x72\x65\144\165\143\x74\x69\x6f\x6e\137\160\162\151\x63\145"] / ($taxrate / 100 + 1); goto ofpBQ; hE3Ds: $inner = "\40\111\116\x4e\x45\x52\x20\112\117\x49\116\40" . _DB_PREFIX_ . "\164\x61\x78\137\x72\165\x6c\145\x73\137\x67\x72\x6f\x75\160\137\163\150\x6f\x70\40\164\x72\147\x73\40\x4f\x4e\x20\50\164\x72\x67\x73\x2e\151\144\x5f\x74\x61\x78\137\162\x75\154\145\163\x5f\x67\162\x6f\165\x70\x20\75\40\x74\x72\147\56\151\144\137\x74\x61\170\x5f\x72\x75\154\145\163\137\x67\x72\x6f\x75\160\x20\101\116\104\40\164\162\x67\x73\x2e\151\144\x5f\x73\x68\x6f\x70\40\x3d\x20\x27" . (int) $id_shop . "\47\x29"; goto vTEbr; J0tx5: $inner = ''; goto lxptW; DFVGp: $actual_prices["\x70\x72\151\143\145\x5f\x72\145\144\165\143\164\151\x6f\x6e\x5f\151\x74"] = $actual_prices["\x70\x72\x69\x63\x65\x5f\x69\164"]; goto diEN_; mw_2T: $actual_prices["\160\x72\x69\x63\145\137\167\164"] = $prodrow["\x70\x72\151\143\x65"]; goto dfB3z; epfbD: pKl4u: goto EbHjQ; PeiyN: ZPcg1: goto R_aNm; zyDg2: $prodrow["\x72\x65\x64\165\x63\164\151\x6f\x6e\x5f\160\x72\x69\143\x65"] = 0; goto vpgaM; OChT9: $actual_prices["\x70\x72\x69\x63\145\137\167\x74"] += $attrrow["\160\x72\x69\x63\145"]; goto Xvb65; RWDhK: m0hgQ: goto ioiyv; TX0q9: $actual_prices["\x70\x72\x69\143\x65\137\162\145\144\165\143\164\151\157\156\x5f\167\x74"] = $actual_prices["\x70\x72\x69\x63\145\137\167\x74"]; goto DFVGp; cNjoe: $taxrate = $cache_tax[$id_shop][(int) $prodrow["\151\144\x5f\164\141\x78"]]; goto mw_2T; WiKuY: $res_specific_price = Db::getInstance()->executeS($sql_specific_price); goto Qd9Ex; go2Nd: raHkG: goto cQSap; PXVao: $prodrow["\x72\x65\144\165\143\x74\151\x6f\x6e\137\160\x65\x72\x63\145\156\164"] = 0; goto NMTbZ; X5PzG: TBqcc: goto PeiyN; tWm0p: if (!SCMS) { goto cVmJg; } goto hE3Ds; tSlDg: goto vYdGw; goto mHbpE; U58Km: bCXYo: goto uEyZC; EOahf: goto aaZ45; goto RWDhK; EPsev: $sql = "\x53\105\x4c\x45\103\x54\40\164\162\x67\x2e\156\141\155\x65\54\x20\164\162\147\x2e\151\x64\x5f\164\141\x78\137\x72\165\154\145\x73\x5f\147\162\157\x75\160\x2c\164\x2e\162\141\164\145\54\x20\164\162\147\x2e\x64\145\x6c\145\x74\x65\144\xa\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\40\40\40\x20\x20\40\40\x20\40\40\40\40\x46\122\x4f\x4d\40\x60" . _DB_PREFIX_ . "\164\141\170\x5f\162\x75\154\x65\163\x5f\x67\x72\157\x75\x70\x60\40\x74\162\x67\12\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\114\105\x46\124\x20\x4a\117\x49\116\40\140" . _DB_PREFIX_ . "\164\141\170\137\162\165\x6c\145\140\x20\x74\x72\x20\x4f\x4e\40\x28\164\x72\147\x2e\x60\151\x64\137\x74\141\170\137\x72\165\154\x65\x73\x5f\147\162\157\165\x70\140\40\x3d\x20\164\162\56\140\151\144\137\164\141\x78\x5f\162\x75\x6c\x65\x73\x5f\x67\x72\157\165\160\x60\x20\101\x4e\x44\x20\x74\x72\56\140\x69\144\137\x63\157\x75\156\164\162\x79\x60\40\x3d\40" . (int) SCI::getDefaultCountryId() . "\40\101\116\x44\40\x74\x72\x2e\140\x69\x64\x5f\x73\164\x61\164\x65\140\40\75\40\60\51\12\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\114\x45\106\124\40\x4a\117\x49\116\x20\x60" . _DB_PREFIX_ . "\164\141\x78\140\x20\x74\40\x4f\x4e\x20\x28\x74\x2e\x60\151\144\137\x74\x61\x78\140\40\75\40\164\162\x2e\140\151\144\x5f\x74\x61\170\140\x29\12\40\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\x20\40" . $inner . "\12\x20\40\40\40\40\40\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\127\110\105\122\105\x20\164\x72\147\56\141\143\164\151\166\145\75\x31\12\40\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\x20\117\x52\104\x45\x52\x20\x42\x59\x20\x74\x72\x67\56\144\145\154\x65\164\145\144\x20\101\123\103\x2c\40\x74\162\147\x2e\156\x61\155\145\x20\101\x53\x43"; goto HwxV_; EbHjQ: $sql = "\x20\x53\105\x4c\105\x43\124\x20\160\162\x69\x63\145\54\x69\144\137\164\141\170\x5f\162\x75\154\x65\x73\x5f\x67\162\x6f\165\x70\x2c\x65\x63\157\164\x61\170\x20\x46\x52\117\x4d\40" . _DB_PREFIX_ . "\160\162\157\144\x75\x63\x74\137\x73\150\157\160\40\x57\x48\105\x52\105\x20\151\x64\137\160\x72\157\x64\x75\x63\x74\75\47" . (int) $id_prd . "\x27\x20\x41\116\104\x20\151\x64\x5f\x73\x68\157\160\75\x27" . (int) $id_shop . "\47\x20"; goto tg3tq; HYrLs: $actual_prices["\x70\162\x69\x63\x65\x5f\x72\x65\x64\165\143\x74\151\x6f\156\x5f\x77\164"] = ($attrrow["\x70\162\151\143\x65"] + $prodrow["\160\162\151\x63\x65"]) * (1 - $res_specific_price["\x72\x65\x64\x75\143\164\151\x6f\x6e"]); goto kIl1e; Z6bWP: if (!$with_reduc) { goto EcLR6; } goto osi3c; AkeKm: $res = Db::getInstance()->ExecuteS($sql); goto n_776; vpgaM: EXaIT: goto nvtcL; dfB3z: $ecotax = _s("\103\101\124\x5f\120\122\x4f\104\137\105\x43\x4f\124\x41\130\111\x4e\x43\x4c\x55\104\105\104") ? $prodrow["\x65\143\x6f\164\x61\170"] * SCI::getEcotaxTaxRate() : 0; goto fUgxX; zCaHY: Je0gF: goto Jdsom; PRcfv: global $cache_tax; goto LLyO2; lxptW: if (!(version_compare(_PS_VERSION_, "\61\56\x36\56\x30\x2e\60", "\x3e\x3d") && SCMS)) { goto sPmWW; } goto HkNaM; A7DQc: goto Je0gF; goto FkaIZ; gAu5E: $actual_prices["\x70\x72\151\x63\x65\x5f\167\164"] = $prodrow["\x70\x72\151\143\145"]; goto ju5JE; Ih5mY: $actual_prices["\x70\x72\151\143\145\x5f\x72\x65\144\165\143\164\151\157\x6e\x5f\x69\x74"] = $actual_prices["\x70\x72\151\143\145\x5f\x69\164"]; goto GvKFt; cQSap: $prodrow["\x72\145\x64\165\143\164\151\157\156\x5f\x70\x65\162\x63\145\156\x74"] = $res_specific_price["\162\145\144\165\x63\x74\x69\157\156"] * 100; goto zyDg2; FkaIZ: H1Huw: goto qi6eI; l6kWb: $actual_prices["\x70\162\x69\143\145\137\167\x74"] += $attrrow["\x70\x72\151\x63\x65"]; goto QSksb; QSksb: $ecotax = _s("\x43\101\124\137\120\x52\117\x44\137\x45\103\117\124\x41\x58\111\116\103\x4c\x55\x44\105\x44") ? $attrrow["\145\x63\157\x74\141\x78"] * SCI::getEcotaxTaxRate() : 0; goto Cm6td; VdDwl: goto TBqcc; goto Q3NKB; s1YCD: $sql = "\40\123\105\114\105\x43\x54\x20\x70\162\151\x63\145\x2c\151\x64\x5f\164\141\170\137\x72\165\154\x65\x73\x5f\147\162\157\x75\160\x2c\x65\x63\x6f\x74\141\170\x20\106\122\117\x4d\40" . _DB_PREFIX_ . "\160\162\157\x64\x75\x63\164\40\x57\110\105\122\105\40\x69\x64\x5f\160\x72\x6f\144\165\x63\x74\75\47" . (int) $id_prd . "\x27\x20"; goto fmwiL; epC_A: vYdGw: goto X5PzG; uEyZC: Z2TGf: goto jGp5q; Cm6td: if (!empty($taxrate)) { goto H1Huw; } goto hvTsb; mHbpE: E2EZz: goto mS3Xo; Xvb65: $ecotax = _s("\x43\x41\124\137\x50\122\117\x44\137\x45\x43\117\124\101\130\111\x4e\103\x4c\125\104\105\x44") ? $attrrow["\145\x63\157\164\141\170"] * SCI::getEcotaxTaxRate() : 0; goto b1Euk; BLaRr: if (!empty($id_prd_attr)) { goto xC70w; } goto DM5YX; fmwiL: $prodrow = Db::getInstance()->getRow($sql); goto iL3ZU; JqSQi: $sql = "\123\105\114\105\x43\x54\x20\x74\x72\x67\x2e\x6e\x61\x6d\145\x2c\40\x74\x72\x67\56\x69\x64\137\164\141\170\137\162\165\154\x65\163\137\x67\162\x6f\x75\160\54\164\56\162\x61\164\145\xa\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\40\x46\122\117\115\40\140" . _DB_PREFIX_ . "\x74\x61\x78\x5f\x72\165\154\145\x73\x5f\147\x72\157\x75\x70\x60\x20\x74\x72\x67\xa\40\40\40\40\40\40\x20\40\40\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x4c\x45\106\124\40\112\117\111\x4e\40\x60" . _DB_PREFIX_ . "\164\141\x78\137\162\x75\x6c\145\x60\x20\164\162\x20\117\116\40\50\164\x72\x67\x2e\140\x69\x64\x5f\164\x61\170\x5f\162\165\x6c\x65\x73\137\147\x72\x6f\x75\160\140\x20\75\x20\164\x72\56\140\151\x64\x5f\164\x61\x78\137\162\165\154\145\163\137\147\162\x6f\x75\160\140\40\101\116\104\40\x74\162\x2e\x60\151\x64\x5f\x63\157\x75\x6e\x74\x72\171\x60\40\75\40" . (int) SCI::getDefaultCountryId() . "\x20\x41\x4e\x44\40\x74\x72\x2e\140\x69\x64\137\x73\164\x61\164\145\x60\40\x3d\x20\x30\x29\12\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\x20\x4c\x45\x46\124\40\112\117\111\116\40\140" . _DB_PREFIX_ . "\x74\x61\170\140\40\x74\40\x4f\116\x20\50\164\56\x60\x69\x64\x5f\164\141\170\x60\x20\75\x20\x74\162\56\x60\x69\144\137\x74\141\x78\140\51\xa\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\40\40\40" . $inner . "\xa\x20\40\x20\40\40\x20\40\40\40\40\40\x20\40\40\40\40\x20\40\40\40\x20\40\x20\40\x20\x20\x20\40\x57\110\x45\x52\x45\40\x74\162\147\56\x61\143\164\x69\x76\145\x3d\61"; goto AkeKm; ju5JE: $ecotax = _s("\x43\x41\124\137\120\x52\117\x44\137\x45\x43\117\x54\x41\x58\111\x4e\103\114\125\x44\105\104") ? $prodrow["\x65\x63\157\164\x61\170"] * SCI::getEcotaxTaxRate() : 0; goto pL6ji; n_776: foreach ($res as $row) { goto adgVj; cbi4A: $row["\x6e\x61\x6d\x65"] = "\x20"; goto et75y; et75y: G7_ch: goto Vs3ko; ukYjo: s4yGQ: goto qKkOG; adgVj: if (!($row["\156\141\155\x65"] == '')) { goto G7_ch; } goto cbi4A; Vs3ko: $cache_tax[$id_shop][$row["\x69\144\x5f\164\x61\x78\x5f\x72\x75\x6c\145\163\137\x67\x72\157\x75\x70"]] = $row["\162\141\x74\145"]; goto ukYjo; qKkOG: } goto Lg1OU; siPew: $actual_prices["\160\x72\151\x63\x65\137\x69\164"] = $attrrow["\160\x72\x69\x63\145"] + $prodrow["\160\162\151\x63\145"] + $ecotax; goto EOahf; Wt4Am: return $actual_prices; goto jhTB0; ofpBQ: $actual_prices["\160\x72\151\143\145\137\162\x65\144\x75\x63\164\x69\x6f\156\x5f\151\x74"] = $actual_prices["\160\x72\x69\143\x65\137\151\x74"] - $prodrow["\x72\x65\144\165\143\x74\x69\157\156\x5f\160\x72\x69\143\x65"]; goto ueBAr; CvRhZ: $attrrow = Db::getInstance()->getRow($sql); goto l6kWb; Jdsom: SrqBv: goto TX0q9; uKi93: if (empty($id_prd_attr)) { goto ffC4_; } goto SQnfM; NEHKG: $prodrow["\151\144\137\x74\141\170"] = $prodrow["\x69\x64\x5f\164\x61\x78\x5f\x72\165\154\145\x73\137\147\x72\157\165\160"]; goto cNjoe; DM5YX: $actual_prices["\x70\162\151\143\x65\x5f\x72\145\144\x75\143\164\151\157\156\x5f\x77\164"] = $prodrow["\x70\162\x69\x63\x65"] * (1 - $res_specific_price["\162\x65\x64\165\143\164\151\x6f\x6e"]); goto uPLAl; CxifY: if (version_compare(_PS_VERSION_, "\x31\x2e\65\56\60\x2e\60", "\x3e\x3d")) { goto pKl4u; } goto s1YCD; EgjNJ: if (!($prodrow["\162\x65\144\x75\143\164\x69\157\156\x5f\160\145\162\x63\145\x6e\x74"] > 0)) { goto ZPcg1; } goto BLaRr; nvtcL: if (!($prodrow["\x72\145\144\x75\143\x74\151\157\156\137\x70\162\x69\143\x65"] > 0)) { goto Cv5J6; } goto wE8Hg; HwxV_: $res = Db::getInstance()->ExecuteS($sql); goto Qx_Xg; Lg1OU: Q3EEA: goto cPY1Q; HbRYX: if ($res_specific_price["\162\145\144\165\x63\164\151\157\156\137\164\x79\x70\145"] == "\160\145\162\143\145\x6e\164\141\x67\145") { goto raHkG; } goto PXVao; Q3NKB: xC70w: goto HYrLs; SQnfM: $sql = "\x20\123\105\x4c\105\x43\x54\40\160\x72\151\x63\x65\x2c\145\x63\x6f\164\141\x78\40\x46\x52\117\x4d\x20" . _DB_PREFIX_ . "\160\162\x6f\x64\165\143\x74\x5f\x61\x74\164\x72\151\x62\x75\164\145\x20\x57\x48\x45\x52\105\x20\151\144\137\160\x72\x6f\144\165\x63\164\x5f\x61\x74\x74\x72\x69\142\x75\x74\x65\x3d\x27" . (int) $id_prd_attr . "\x27\40"; goto xiEIi; jCvdJ: ffC4_: goto vOxA2; LLyO2: $actual_prices = array("\160\x72\x69\x63\145\x5f\167\164" => 0, "\160\162\151\143\145\x5f\151\164" => 0, "\x70\162\151\x63\145\x5f\162\x65\144\165\x63\164\151\x6f\x6e\137\x77\164" => 0, "\x70\x72\151\x63\145\x5f\162\x65\x64\x75\143\x74\x69\157\x6e\137\x69\x74" => 0); goto gjn_n; oE7s0: if (version_compare(_PS_VERSION_, "\x31\56\x36\x2e\60\56\x31\60", "\76\75")) { goto q0hmV; } goto J0tx5; diEN_: w5Quv: goto Z6bWP; ioiyv: $actual_prices["\160\162\x69\x63\145\x5f\x69\164"] = $attrrow["\160\x72\151\x63\x65"] * ($taxrate / 100 + 1) + $prodrow["\160\x72\x69\x63\145"] * ($taxrate / 100 + 1) + $ecotax; goto gIIEs; gjn_n: if (!empty($tax[$id_shop])) { goto EMCJb; } goto oE7s0; Qd9Ex: if (empty($res_specific_price[0]["\151\x64\x5f\163\x70\x65\x63\151\x66\x69\143\137\x70\162\151\x63\x65"])) { goto gJhSb; } goto XunK2; xiEIi: $attrrow = Db::getInstance()->getRow($sql); goto OChT9; GvKFt: goto w5Quv; goto epfbD; gIIEs: aaZ45: goto jCvdJ; b_g2o: q0hmV: goto cpHmE; jGp5q: EMCJb: goto CxifY; bQZ0d: $sql = "\x20\123\x45\114\105\x43\124\x20\x70\162\x69\x63\145\54\x65\x63\157\x74\x61\170\x20\x46\122\x4f\115\40" . _DB_PREFIX_ . "\x70\x72\157\144\165\143\164\137\x61\164\x74\162\x69\x62\165\164\x65\137\x73\150\x6f\160\x20\127\110\105\x52\105\x20\151\144\137\160\x72\157\x64\x75\143\x74\x5f\141\164\164\162\x69\x62\x75\164\145\x3d\47" . (int) $id_prd_attr . "\47\x20\x41\x4e\x44\x20\x69\x64\x5f\x73\150\157\x70\75\47" . (int) $id_shop . "\x27\40"; goto CvRhZ; uPLAl: $actual_prices["\x70\x72\151\x63\x65\x5f\162\145\x64\165\143\x74\x69\157\x6e\137\x69\164"] = $prodrow["\160\x72\151\143\145"] * ($taxrate / 100 + 1) * (1 - $res_specific_price["\x72\x65\x64\x75\x63\x74\x69\x6f\156"]) + $ecotax; goto VdDwl; EMflS: if (empty($id_prd_attr)) { goto SrqBv; } goto bQZ0d; NMTbZ: $prodrow["\162\145\144\165\x63\x74\151\157\156\x5f\x70\x72\x69\x63\x65"] = $res_specific_price["\x72\145\x64\165\x63\x74\x69\157\156"]; goto q26IO; qi6eI: $actual_prices["\x70\x72\x69\x63\145\137\x69\164"] = $attrrow["\160\x72\151\x63\145"] * ($taxrate / 100 + 1) + $prodrow["\160\x72\151\143\x65"] * ($taxrate / 100 + 1) + $ecotax; goto zCaHY; vTEbr: cVmJg: goto EPsev; cPY1Q: goto Z2TGf; goto b_g2o; b1Euk: if (!empty($taxrate)) { goto m0hgQ; } goto siPew; jhTB0: } public static function getBrightness($hex) { goto Eb5H2; BP3Ts: $g = hexdec(substr($hex, 2, 2)); goto growx; growx: $b = hexdec(substr($hex, 4, 2)); goto hGMAi; hGMAi: return ($r * 299 + $g * 587 + $b * 114) / 1000; goto PnxVl; Z7JnB: $r = hexdec(substr($hex, 0, 2)); goto BP3Ts; Eb5H2: $hex = str_replace("\x23", '', $hex); goto Z7JnB; PnxVl: } public static function translateSubjectMail($subject, $id_lang) { goto Sknz2; GoHZo: xFNso: goto U8eDp; jHH6Y: D17rW: goto XtKKk; U8eDp: return Mail::l($subject, (int) $id_lang); goto CmiTk; cNHrf: return $translator->trans($subject, array(), "\x45\155\x61\x69\x6c\x73\x2e\x53\165\142\152\x65\143\x74", $orderLanguage->locale); goto GoHZo; Sknz2: if (!empty($id_lang)) { goto D17rW; } goto iWyAd; XtKKk: if (!version_compare(_PS_VERSION_, "\61\x2e\x37\x2e\x30\56\x30", "\x3e\x3d")) { goto xFNso; } goto iqC0d; SaClC: $translator = Context::getContext()->getTranslator(); goto cNHrf; iWyAd: return $subject; goto jHH6Y; iqC0d: $orderLanguage = new Language((int) $id_lang); goto SaClC; CmiTk: } public static function moduleIsInstalled($module_name) { goto RMKWl; RMKWl: if (version_compare(_PS_VERSION_, "\x31\x2e\x37\56\x30\x2e\x31", "\76\x3d")) { goto bj_JO; } goto jk8Dm; D593E: bj_JO: goto UNxhB; tasBx: goto VFBxE; goto D593E; UNxhB: return (bool) Db::getInstance()->getValue("\x53\105\x4c\x45\103\124\x20\140\x69\144\137\x6d\157\144\x75\x6c\x65\140\40\106\122\x4f\x4d\40\x60" . _DB_PREFIX_ . "\155\157\144\165\x6c\x65\x60\40\127\x48\105\x52\x45\x20\140\x6e\x61\x6d\x65\x60\40\x3d\x20\42" . pSQL($module_name) . "\x22"); goto vix_G; jk8Dm: return Module::isInstalled($module_name); goto tasBx; vix_G: VFBxE: goto V0aqj; V0aqj: } public static function moduleIsEnabled($module_name) { goto pZdb_; XAx2Y: lI2Zu: goto bZVLf; pZdb_: if (version_compare(_PS_VERSION_, "\x31\x2e\65\x2e\61\56\x30", "\74")) { goto lI2Zu; } goto vBSOf; vBSOf: return Module::isEnabled($module_name); goto gVB_Z; gVB_Z: goto lUPgb; goto XAx2Y; bZVLf: return (bool) Db::getInstance()->getValue("\123\105\114\x45\103\x54\x20\140\151\144\137\x6d\x6f\144\x75\x6c\x65\140\40\x46\x52\117\115\40\x60" . _DB_PREFIX_ . "\155\157\x64\x75\154\145\140\x20\127\x48\x45\x52\x45\40\140\x6e\x61\155\x65\x60\x20\x3d\40\x22" . pSQL($module_name) . "\x22\40\101\x4e\104\x20\141\143\x74\151\x76\x65\40\75\40\61"); goto jXgpw; jXgpw: lUPgb: goto xNxGN; xNxGN: } public static function getModuleVersion($module_name) { return (string) Db::getInstance()->getValue("\x53\x45\114\x45\103\124\40\140\166\x65\x72\x73\151\x6f\x6e\x60\40\106\122\x4f\115\x20\140" . _DB_PREFIX_ . "\x6d\x6f\144\165\x6c\x65\x60\x20\x57\x48\105\122\x45\x20\140\156\141\x6d\145\x60\x20\x3d\x20\x22" . pSQL($module_name) . "\42"); } public static function cacheScModulesInfos($refresh = false) { goto Z0sL1; uDHMG: $messageActivation = _l("\50\101\x63\164\151\166\141\x74\151\157\x6e\x20\162\145\x71\165\x69\162\x65\x64\x20\151\156\x20\120\162\145\x73\x74\141\x73\150\x6f\x70\51"); goto Aqj7i; YoCOb: $sc_module = array("\x73\x63\x61\x66\146\151\x6c\151\141\x74\x69\157\156", "\163\143\x70\144\x66\143\141\164\141\x6c\x6f\147"); goto e0emg; e0emg: $modules_installed = Db::getInstance()->executeS("\123\105\x4c\x45\x43\124\x20\x6e\141\x6d\145\x2c\x61\x63\x74\151\x76\x65\xa\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\40\40\40\x20\x20\40\40\40\40\x20\40\40\106\122\x4f\115\x20" . _DB_PREFIX_ . "\155\x6f\144\165\x6c\145\12\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x57\110\105\122\x45\x20\x6e\141\x6d\145\x20\x49\116\40\50\42" . implode("\42\x2c\42", $sc_module) . "\42\51"); goto DsFTF; Me8bz: pyjdY: goto ftp3R; DsFTF: if (empty($modules_installed)) { goto NiTiP; } goto FUoWH; hmI6v: self::$scModulesInfos = $sc_module_infos; goto hcYdE; lzxgD: snnGW: goto hmI6v; oH4OB: $modules_on_disk = Module::getModulesDirOnDisk(); goto YoCOb; dlz1I: $sc_module_infos = array(); goto tbzq5; tbzq5: $messageInstallation = _l("\50\x49\x6e\x73\164\141\154\x6c\x61\x74\x69\x6f\156\x20\x72\145\x71\165\x69\x72\x65\x64\40\151\x6e\40\120\x72\x65\x73\x74\x61\x73\x68\x6f\160\x29"); goto uDHMG; FUoWH: $tmp = array(); goto DCtbS; qJhHB: HiKPe: goto Omimo; Aqj7i: foreach ($sc_module as $m_name) { goto oCKHP; CdIVG: if (!(!$sc_module_infos[$m_name]["\x70\162\145\x73\145\x6e\164"] || !$sc_module_infos[$m_name]["\151\156\x73\x74\x61\x6c\154\x65\x64"])) { goto j4MNq; } goto m880B; AMTob: RQUjq: goto n5cMa; m880B: $sc_module_infos[$m_name]["\155\145\x73\163\x61\x67\x65"] = $messageInstallation; goto M8qKg; YIu07: $sc_module_infos[$m_name]["\151\156\x73\164\x61\154\x6c\145\x64"] = true; goto G99yJ; G99yJ: $sc_module_infos[$m_name]["\x61\x63\164\151\166\141\164\x65\x64"] = (int) $modules_installed[$m_name]; goto dDfQE; oCKHP: $sc_module_infos[$m_name] = array("\x70\x72\145\x73\145\x6e\x74" => false, "\x69\156\x73\x74\141\154\x6c\145\x64" => false, "\141\143\x74\x69\x76\x61\x74\145\144" => false, "\x6d\145\163\163\x61\x67\145" => ''); goto iLNwY; iLNwY: if (!in_array($m_name, $modules_on_disk)) { goto z3dLs; } goto Sod2C; M8qKg: j4MNq: goto i9beT; i9beT: if (!($sc_module_infos[$m_name]["\160\x72\145\x73\145\x6e\164"] && $sc_module_infos[$m_name]["\151\156\x73\164\x61\154\154\145\144"] && !$sc_module_infos[$m_name]["\x61\143\164\151\x76\141\x74\145\144"])) { goto TIeSX; } goto wnlLp; dDfQE: xpOQk: goto CdIVG; VEg0B: z3dLs: goto jFzNb; Sod2C: $sc_module_infos[$m_name]["\x70\x72\145\163\145\x6e\x74"] = true; goto VEg0B; jFzNb: if (!array_key_exists($m_name, $modules_installed)) { goto xpOQk; } goto YIu07; wnlLp: $sc_module_infos[$m_name]["\155\145\163\x73\x61\147\x65"] = $messageActivation; goto jCE67; jCE67: TIeSX: goto AMTob; n5cMa: } goto lzxgD; ftp3R: self::$scModulesInfos = array(); goto oH4OB; Omimo: $modules_installed = $tmp; goto fgb2m; Z0sL1: if (!(!is_null(self::$scModulesInfos) && !$refresh)) { goto pyjdY; } goto gz0d2; gz0d2: return; goto Me8bz; DCtbS: foreach ($modules_installed as $row) { $tmp[$row["\x6e\141\155\x65"]] = (int) $row["\141\143\164\x69\166\x65"]; nCn2n: } goto qJhHB; fgb2m: NiTiP: goto dlz1I; hcYdE: } public static function getScModulesInfos($module_name = null) { goto t08uH; ynspN: return $sc_module_infos; goto vT0RG; E941V: UqDnD: goto ynspN; WIR2i: $sc_module_infos = self::$scModulesInfos; goto HjHtb; t08uH: SCI::cacheScModulesInfos(); goto WIR2i; HjHtb: if (empty($module_name)) { goto UqDnD; } goto S4wnW; S4wnW: return $sc_module_infos[$module_name]; goto E941V; vT0RG: } public static function duplicateProductImages($idProductOld, $idProductNew, $id_image = null) { goto KVjSt; KVjSt: $imagesTypes = ImageType::getImagesTypes("\160\x72\x6f\144\165\143\x74\x73"); goto JdNfk; u1mAJ: goto NT7A8; goto wv_G0; ncOfq: foreach ($result as $row) { goto PWkmZ; SoPSc: $imageNew->id_product = (int) $idProductNew; goto eHyeX; eHyeX: if ($imageNew->add()) { goto Pv3ii; } goto ApP_E; qCm0x: w2u8x: goto X5Zf8; kRsup: obqBS: goto hyyF_; alB5J: $imageNew->cover = !empty($new_product_has_cover) ? 0 : 1; goto SoPSc; PWkmZ: $imageOld = new Image($row["\x69\x64\137\151\x6d\141\x67\145"]); goto ZfkFb; MsJmQ: copy(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "\x2e\x6a\x70\x67", $newPath . "\56\x6a\x70\147"); goto mFPM0; X5Zf8: if (!file_exists(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "\56\x6a\160\147")) { goto nlYux; } goto MsJmQ; HdYq4: $newPath = $imageNew->getPathForCreation(); goto idLzN; mFPM0: nlYux: goto H3Zcl; uEzL7: return (int) $imageNew->id; goto Beo2n; H3Zcl: $imageNew->duplicateShops($idProductOld); goto uEzL7; idLzN: foreach ($imagesTypes as $imageType) { goto nKUQY; l73Nj: copy(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "\x2d" . $imageType["\156\141\x6d\x65"] . "\56\152\160\147", $newPath . "\55" . $imageType["\156\141\x6d\x65"] . "\x2e\152\x70\147"); goto Bna32; Sio3C: xTokb: goto nHLBd; PVLNu: $imageNew->createImgFolder(); goto d3AkK; fdmN4: copy($oldImagePath, $newPath . "\x2d" . $imageType["\156\141\x6d\145"] . "\x2d" . Configuration::get("\x57\x41\124\x45\122\115\x41\x52\113\x5f\110\x41\123\x48") . "\x2e\x6a\x70\147"); goto V8m6i; vOXcl: $oldImagePath = _PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "\55" . $imageType["\156\x61\155\145"] . "\x2d" . Configuration::get("\x57\x41\x54\x45\x52\115\101\122\113\x5f\110\x41\x53\110") . "\x2e\152\x70\x67"; goto uFxU9; qx0bv: if (Configuration::get("\x50\x53\137\114\x45\107\101\x43\131\x5f\x49\115\x41\x47\x45\x53")) { goto hB0Q7; } goto PVLNu; nKUQY: if (!file_exists(_PS_PROD_IMG_DIR_ . $imageOld->getExistingImgPath() . "\x2d" . $imageType["\156\x61\x6d\x65"] . "\x2e\152\160\147")) { goto nRmV6; } goto qx0bv; Bna32: if (!Configuration::get("\127\101\124\x45\x52\115\x41\x52\113\x5f\x48\x41\x53\110")) { goto JiS3A; } goto vOXcl; d3AkK: hB0Q7: goto l73Nj; V8m6i: yOgbn: goto RZj8x; aDizG: nRmV6: goto Sio3C; RZj8x: JiS3A: goto aDizG; uFxU9: if (!file_exists($oldImagePath)) { goto yOgbn; } goto fdmN4; nHLBd: } goto qCm0x; Beo2n: gNssX: goto kRsup; ZfkFb: $imageNew = clone $imageOld; goto X35wB; SUPgc: goto gNssX; goto maWLc; maWLc: Pv3ii: goto HdYq4; X35wB: unset($imageNew->id); goto xQRyy; xQRyy: $new_product_has_cover = Image::getCover((int) $idProductNew); goto alB5J; ApP_E: return false; goto SUPgc; hyyF_: } goto pgmzp; wv_G0: ECBND: goto v3WZO; K5Vih: $result = Db::getInstance()->executeS("\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\123\x45\114\x45\103\124\40\151\x2e\x60\x69\x64\137\x69\155\x61\147\x65\140\xa\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\106\x52\x4f\115\x20\x60" . _DB_PREFIX_ . "\151\155\141\147\145\x60\40\151\xa\x20\x20\40\40\x20\x20\x20\40\40\x20\40\x20\111\116\x4e\105\x52\40\112\x4f\111\x4e\x20\140" . _DB_PREFIX_ . "\x69\x6d\x61\x67\145\137\163\x68\157\x70\140\x20\151\x6d\141\147\145\137\x73\x68\157\x70\xa\x20\x20\40\40\40\40\40\40\40\40\40\40\x4f\x4e\40\50\151\56\140\151\x64\137\x69\155\x61\147\x65\140\40\75\x20\x69\x6d\x61\x67\x65\137\163\x68\157\x70\x2e\x60\151\x64\137\x69\155\141\147\145\x60\40\101\116\104\x20\151\155\x61\147\x65\x5f\x73\x68\157\x70\56\140\x69\144\x5f\x73\150\x6f\160\140\40\75\x20" . (int) self::getSelectedShop() . "\x29\xa\40\40\40\40\x20\x20\x20\40\40\x20\x20\40\x57\x48\105\122\x45\40\151\x2e\x60\151\144\137\x70\x72\x6f\144\x75\143\164\x60\x20\x3d\x20" . (int) $idProductOld); goto u1mAJ; pgmzp: n1eJK: goto gjV7M; v3WZO: $result = array(0 => array("\x69\x64\137\x69\155\141\x67\145" => $id_image)); goto z_NaR; z_NaR: NT7A8: goto ncOfq; JdNfk: if (!empty($id_image)) { goto ECBND; } goto K5Vih; gjV7M: } public static function getFeedBizAllowedMarketPlace() { goto G_Dy2; O9PcO: aWwML: goto wkJ6H; A0ZnE: foreach ($allowed as $marketplace => $value) { goto GtH_Y; DHIbp: KZGgq: goto Wzxdq; Wzxdq: QKWrP: goto S0F6Q; GtH_Y: if (!(array_key_exists($marketplace, $marketplace_tab_config) && Tools::strlen($marketplace_tab_config[$marketplace]))) { goto KZGgq; } goto ApzUz; ApzUz: $allowed[$marketplace] = true; goto DHIbp; S0F6Q: } goto YTrDF; G_Dy2: $marketplace_tab = Configuration::get("\106\x45\105\104\102\x49\132\x5f\x4d\101\122\x4b\x45\x54\120\x4c\x41\x43\105\x5f\x54\x41\102"); goto Ict8Y; YTrDF: gm0Kq: goto O9PcO; Ict8Y: $allowed = array("\141\155\x61\172\157\156" => false, "\143\144\x69\x73\143\x6f\x75\156\x74" => false); goto IYv7l; kWm2d: return $allowed; goto xynt0; IYv7l: if (!$marketplace_tab) { goto xJ68w; } goto SX0x9; UxcNz: if (!(is_array($marketplace_tab_config) && count($marketplace_tab_config))) { goto aWwML; } goto A0ZnE; SX0x9: $marketplace_tab_config = unserialize($marketplace_tab); goto UxcNz; wkJ6H: xJ68w: goto kWm2d; xynt0: } public static function getShopUrlArrayJs() { goto GNN8z; ZbU_Y: ZwqJY: goto pdXlu; o8IF1: if (empty($url)) { goto UBtWE; } goto fp2jG; E_OFJ: if (!version_compare(_PS_VERSION_, "\x31\56\x35\56\x30\56\60", "\76\x3d")) { goto ZwqJY; } goto BFIZp; pdXlu: return $html_return; goto WkPIM; GUUvU: qv2yZ: goto ZbU_Y; jmg0a: $url = Db::getInstance()->getValue("\x53\x45\x4c\x45\103\x54\x20\x43\x4f\x4e\103\101\124\50\x64\x6f\155\141\151\x6e\54\x20\x70\150\171\x73\x69\143\141\154\x5f\x75\162\x69\54\40\x76\151\162\164\165\x61\154\x5f\x75\x72\x69\51\40\101\123\40\165\162\x6c\xa\40\x20\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\40\40\40\40\x20\40\40\x20\106\122\117\x4d\x20" . _DB_PREFIX_ . "\x73\x68\x6f\x70\137\165\x72\x6c\12\40\x20\40\40\x20\x20\x20\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\40\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\127\110\105\122\x45\x20\141\143\164\151\166\145\x20\75\40\61"); goto o8IF1; rKy5j: $protocol = version_compare(_PS_VERSION_, "\61\56\65\x2e\60\56\x32", "\76\75") ? Tools::getShopProtocol() : (SCI::getConfigurationValue("\x50\123\x5f\x53\x53\114\137\105\116\x41\x42\x4c\105\104") ? "\x68\164\x74\160\163\72\57\57" : "\150\164\164\160\72\57\x2f"); goto RRYuG; HmTGN: if (!version_compare(_PS_VERSION_, "\61\x2e\x35\x2e\60\56\60", "\x3e")) { goto kWWeU; } goto jmg0a; zVuaU: kWWeU: goto rROVg; Cy4mF: UBtWE: goto zVuaU; ST24S: $shops = Db::getInstance()->ExecuteS($sql_shop); goto ta7PR; GNN8z: $html_return = "\166\x61\162\40\x73\150\x6f\160\x55\x72\154\163\40\x3d\x20\x6e\145\x77\x20\101\x72\162\141\x79\50\51\73" . "\12"; goto rKy5j; fp2jG: $base_url = $protocol . $url; goto Cy4mF; ta7PR: foreach ($shops as $shop) { goto cPMFI; kklnR: if (empty($url["\x75\x72\154"])) { goto OMqbn; } goto ceaxh; ceaxh: $html_return .= "\163\150\x6f\x70\125\162\x6c\163\133" . $shop["\151\x64\137\163\150\x6f\x70"] . "\x5d\x20\x3d\40\x22" . $protocol . $url["\x75\162\x6c"] . "\42\73" . "\12"; goto Nyjda; Nyjda: OMqbn: goto dPEq5; cPMFI: $url = Db::getInstance()->getRow("\x53\x45\114\x45\x43\124\40\x2a\x2c\x20\103\x4f\116\103\101\124\x28\x64\157\155\x61\x69\x6e\x2c\x20\x70\x68\x79\163\151\x63\x61\154\137\165\x72\x69\54\x20\x76\151\162\164\x75\x61\x6c\137\x75\162\151\x29\x20\101\x53\40\165\162\x6c\xa\40\40\40\40\40\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\40\40\40\x46\x52\117\115\40" . _DB_PREFIX_ . "\163\150\x6f\160\137\x75\x72\x6c\xa\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\40\x20\x20\40\40\x20\x20\x20\40\127\x48\105\122\x45\40\151\144\x5f\x73\150\157\160\x20\75\x20" . (int) $shop["\x69\x64\x5f\163\x68\x6f\x70"] . "\12\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\101\116\104\40\x61\143\x74\x69\166\145\40\75\40\x22\61\42\12\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\x20\40\40\x20\40\40\40\117\122\104\x45\x52\40\x42\x59\x20\x6d\x61\x69\x6e\40\104\105\123\x43"); goto kklnR; dPEq5: FH1xi: goto LtSN8; LtSN8: } goto GUUvU; RRYuG: $base_url = (SCI::getConfigurationValue("\x50\123\137\123\x53\114\x5f\x45\116\101\102\x4c\105\104") ? $protocol . SCI::getConfigurationValue("\x50\123\137\123\x48\x4f\x50\137\x44\x4f\115\x41\111\116\x5f\123\123\114") : $protocol . SCI::getConfigurationValue("\120\123\x5f\123\110\x4f\120\137\104\x4f\115\101\x49\x4e")) . "\x2f"; goto HmTGN; BFIZp: $sql_shop = "\123\x45\114\105\x43\x54\x20\x69\144\x5f\163\150\x6f\x70\xa\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\40\40\40\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x46\x52\x4f\115\40" . _DB_PREFIX_ . "\163\150\157\160\12\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\x57\x48\105\x52\x45\x20\x64\145\x6c\x65\x74\x65\x64\x20\41\x3d\x20\x27\61\47"; goto ST24S; rROVg: $html_return .= "\163\x68\x6f\160\x55\x72\x6c\163\133\60\x5d\40\75\x20\x22" . $base_url . "\42\73" . "\xa"; goto E_OFJ; WkPIM: } public static function checkSpecificPriceexists($id_product, $id_product_attribute, $price, $reduction, $reduction_type, $id_shop, $id_group, $id_country, $id_currency, $id_customer, $from_quantity, $from, $to, $rule = false) { $rule = "\x20\x41\116\x44\x20\x60\151\144\137\x73\160\145\x63\x69\x66\151\143\137\160\162\x69\x63\145\137\x72\x75\x6c\145\140" . (!$rule ? "\75\60" : "\x21\75\60"); return (int) Db::getInstance()->getValue("\123\x45\x4c\105\103\x54\40\140\151\x64\137\x73\x70\x65\x63\x69\x66\x69\x63\x5f\x70\162\151\143\145\x60\12\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\40\40\40\40\40\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\106\122\x4f\115\x20" . _DB_PREFIX_ . "\x73\160\x65\143\x69\146\x69\x63\x5f\160\x72\x69\x63\x65\12\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x57\110\x45\122\x45\x20\x60\x69\144\137\x70\162\x6f\144\x75\143\164\x60\x3d" . (int) $id_product . "\40\101\116\104\12\x20\40\40\40\40\40\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\40\40\40\40\40\x20\x20\40\x20\40\40\x20\x60\151\144\137\160\162\157\x64\165\143\x74\x5f\x61\164\164\162\x69\142\x75\164\x65\140\x3d" . (int) $id_product_attribute . "\x20\101\116\104\xa\40\40\40\40\40\x20\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\140\x70\x72\x69\x63\145\140\x3d" . (double) $price . "\x20\x41\116\x44\12\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x60\x72\145\144\x75\x63\x74\151\157\156\140\75" . (double) $reduction . "\40\101\116\x44\12\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\40\40\40\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\x60\x72\145\x64\165\143\164\151\157\x6e\x5f\164\171\x70\145\140\x3d\x22" . pSQL($reduction_type) . "\42\x20\101\116\104\12\40\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\40\x20\40\40\40\40\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\x60\x69\x64\x5f\163\150\x6f\160\140\x3d" . (int) $id_shop . "\40\x41\116\x44\xa\40\40\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\x60\x69\144\137\x67\x72\x6f\x75\160\140\x3d" . (int) $id_group . "\40\x41\116\x44\xa\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\40\40\x60\x69\x64\137\x63\157\x75\156\x74\162\x79\x60\x3d" . (int) $id_country . "\x20\x41\x4e\x44\12\x20\x20\40\40\x20\40\40\40\40\40\40\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\40\40\x20\40\40\x20\40\40\40\40\40\40\x20\x20\40\40\40\x20\x20\40\40\140\x69\x64\137\143\x75\x72\162\145\x6e\x63\171\140\75" . (int) $id_currency . "\x20\x41\116\x44\xa\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\140\151\144\x5f\143\x75\163\164\x6f\155\x65\x72\x60\75" . (int) $id_customer . "\40\x41\116\104\12\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\140\x66\162\157\155\x5f\x71\x75\141\156\x74\x69\x74\x79\140\75" . (int) $from_quantity . "\x20\x41\116\104\xa\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\140\146\162\x6f\155\140\40\76\x3d\x20\47" . pSQL($from) . "\47\40\101\x4e\104\xa\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\140\x74\x6f\x60\x20\74\75\40\47" . pSQL($to) . "\47" . $rule); } public static function cachingAttributeName($id_lang, $id_product_attribute = null) { goto m1G1e; d4fYw: if (empty($res_attr)) { goto sJ95w; } goto fUDwS; nlKAO: $cache_array = array(); goto d4fYw; EcQ2t: return $cache_array; goto V2a1a; kkMPD: if (is_array($id_product_attribute)) { goto kGdlX; } goto vKm9L; A94FA: $sql = "\x53\105\x4c\x45\x43\124\40\160\141\143\x2e\x69\x64\x5f\160\162\x6f\x64\165\x63\164\137\141\x74\x74\x72\x69\x62\165\164\x65\54\x61\147\x6c\56\x6e\141\x6d\x65\x20\141\x73\x20\147\x70\54\40\x61\x6c\56\156\141\x6d\145\12\x20\40\40\40\40\40\40\40\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\106\x52\117\x4d\40" . _DB_PREFIX_ . "\x70\162\x6f\x64\165\143\x74\x5f\141\x74\x74\x72\x69\x62\x75\x74\145\137\x63\x6f\155\x62\x69\x6e\x61\x74\x69\157\156\40\160\141\x63\12\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\40\x20\x20\111\x4e\x4e\x45\122\40\x4a\117\x49\x4e\x20" . _DB_PREFIX_ . "\141\x74\164\x72\x69\142\165\x74\x65\40\x61\40\x4f\116\40\x70\141\143\56\151\144\137\x61\x74\x74\x72\151\142\x75\164\x65\x20\x3d\40\x61\x2e\x69\144\x5f\x61\164\x74\162\x69\x62\165\x74\x65\12\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\40\111\116\x4e\105\x52\40\x4a\117\x49\x4e\40" . _DB_PREFIX_ . "\x61\x74\x74\x72\151\x62\165\164\145\x5f\x67\162\x6f\x75\x70\137\x6c\x61\156\147\x20\141\147\154\40\x4f\x4e\40\x61\56\x69\x64\137\141\164\164\x72\151\142\x75\x74\145\x5f\147\x72\x6f\165\x70\x20\x3d\40\x61\x67\x6c\x2e\x69\x64\x5f\x61\164\164\162\151\142\165\164\145\x5f\x67\162\x6f\x75\x70\xa\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\40\40\x20\40\x20\40\x20\111\x4e\116\105\122\40\x4a\x4f\111\116\40" . _DB_PREFIX_ . "\x61\x74\164\162\x69\142\x75\164\x65\x5f\154\x61\x6e\x67\40\141\x6c\x20\x4f\x4e\x20\160\141\143\x2e\151\x64\137\x61\x74\164\x72\x69\142\165\164\x65\x20\75\40\141\x6c\56\x69\144\137\141\x74\x74\x72\151\x62\x75\164\x65" . (!empty($id_product_attribute) ? "\40\x57\x48\x45\122\105\40\160\141\x63\x2e\151\x64\137\160\162\157\x64\x75\x63\x74\137\141\x74\x74\x72\151\142\165\x74\145\x20\111\x4e\x20\x28" . pSQL(implode("\x2c", $id_product_attribute)) . "\51" : '') . "\101\x4e\x44\x20\141\147\x6c\56\151\144\137\x6c\x61\x6e\x67\x20\x3d\x20" . (int) $id_lang . "\12\40\40\40\40\40\x20\40\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\40\101\x4e\104\40\141\x6c\56\151\x64\137\154\141\156\147\40\75\40" . (int) $id_lang . "\xa\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\40\40\40\40\x4f\x52\104\105\122\40\102\x59\40\141\x67\154\x2e\x6e\141\155\x65"; goto k8bPr; fUDwS: foreach ($res_attr as $row) { goto xECXQ; zunMM: vBdAU: goto yYRYz; I5aTJ: goto lQVtk; goto zunMM; yYRYz: $cache_array[$row["\151\144\137\x70\x72\x6f\144\165\143\164\137\141\x74\164\x72\x69\142\165\164\x65"]] .= "\54\x20" . $attribute_name; goto dGD02; f9rPL: if (array_key_exists($row["\151\x64\x5f\160\x72\157\x64\165\x63\164\x5f\141\x74\164\162\151\x62\165\x74\x65"], $cache_array)) { goto vBdAU; } goto IiOvy; Lbh_j: v_7HR: goto Jv03e; xECXQ: if (!(!empty($row["\x67\160"]) && !empty($row["\156\x61\x6d\x65"]))) { goto v_7HR; } goto Avx6g; IiOvy: $cache_array[$row["\x69\x64\x5f\160\x72\157\144\165\143\164\x5f\x61\x74\x74\162\x69\x62\165\164\x65"]] = $attribute_name; goto I5aTJ; Jv03e: ttG8d: goto lkk8d; Avx6g: $attribute_name = $row["\x67\160"] . "\40\72\40" . $row["\156\x61\x6d\x65"]; goto f9rPL; dGD02: lQVtk: goto Lbh_j; lkk8d: } goto q6pnd; q6pnd: dNRbd: goto ZrOdh; k8bPr: $res_attr = Db::getInstance()->executeS($sql); goto nlKAO; ndabr: kGdlX: goto Y95Tu; ZrOdh: sJ95w: goto EcQ2t; Y95Tu: avBO5: goto A94FA; m1G1e: if (empty($id_product_attribute)) { goto avBO5; } goto kkMPD; vKm9L: $id_product_attribute = array($id_product_attribute); goto ndabr; V2a1a: } public static function addLog($message, $severity = 1, $errorCode = null, $objectType = null, $objectId = null, $allowDuplicate = false, $idEmployee = null) { goto KeLBW; Sl9kf: DBKbs: goto jOidc; BiVfH: uMs63: goto nzEO5; nzEO5: PrestaShopLogger::addLog($message, $severity, $errorCode, $objectType, $objectId, $allowDuplicate, $idEmployee); goto Sl9kf; KeLBW: if (version_compare(_PS_VERSION_, "\61\x2e\66\x2e\60\56\x33", "\76\x3d")) { goto uMs63; } goto S_V9y; s0_T9: goto DBKbs; goto BiVfH; S_V9y: Logger::addLog($message, $severity, $errorCode, $objectType, $objectId, $allowDuplicate); goto s0_T9; jOidc: } public static function addProductAttributeMultiple($product, $attributes, $set_default = true) { goto tTsFH; tTsFH: $return = array(); goto aSOZD; JDrYR: return $return; goto on1f_; aSOZD: $default_value = 1; goto QP3pV; Ezeww: cbTUI: goto JDrYR; QP3pV: foreach ($attributes as $attribute) { goto hNYWU; umYL1: YNz6N: goto hFuyK; D3YMf: foreach ($attribute as $key => $value) { $obj->{$key} = $value; SS_Hu: } goto tE56S; JK7vG: $id_shop_list = array(); goto sDHR2; GrEEp: $default_value = 0; goto rRDpc; ShYJ9: $obj->default_on = $default_value; goto GrEEp; hNYWU: $obj = new Combination(); goto D3YMf; cZoxm: qGV3l: goto fgGoP; fgGoP: $obj->id_shop_list = $id_shop_list; goto B1v3o; BOSJ_: C0iBR: goto VB2Ao; B1v3o: Dn7a1: goto BOSJ_; sDHR2: foreach ($id_shop_list_array as $array_shop) { $id_shop_list[] = $array_shop["\x69\x64\137\163\150\157\160"]; GU5zo: } goto cZoxm; VB2Ao: $obj->add(); goto QVVRp; DT4Tu: $id_shop_list_array = Product::getShopsByProduct($product->id); goto JK7vG; tE56S: n7Nnc: goto PdxwS; PdxwS: if (!$set_default) { goto C0iBR; } goto ShYJ9; QVVRp: $return[] = $obj->id; goto umYL1; rRDpc: if ($product->hasAttributesInOtherShops()) { goto Dn7a1; } goto DT4Tu; hFuyK: } goto Ezeww; on1f_: } public static function addAttributeCombinationMultiple($id_attributes, $combinations) { goto siAUN; oJo6u: kFu33: goto DnWUE; siAUN: $attributes_list = array(); goto GmfFo; GmfFo: foreach ($id_attributes as $nb => $id_product_attribute) { goto haQG5; qYSIj: avngW: goto RV7BH; bRuvj: foreach ($combinations[$nb] as $id_attribute) { $attributes_list[] = array("\x69\144\x5f\160\x72\x6f\144\x75\x63\164\x5f\x61\164\x74\162\x69\x62\x75\164\x65" => (int) $id_product_attribute, "\151\x64\137\141\164\x74\162\151\x62\x75\x74\145" => (int) $id_attribute); vlIN6: } goto N32Pt; haQG5: if (!isset($combinations[$nb])) { goto q6HEc; } goto bRuvj; UIUNz: q6HEc: goto qYSIj; N32Pt: JZ79w: goto UIUNz; RV7BH: } goto oJo6u; DnWUE: return Db::getInstance()->insert("\x70\x72\157\x64\x75\143\164\137\141\164\x74\x72\x69\x62\x75\164\145\137\143\157\x6d\x62\x69\x6e\141\x74\151\x6f\x6e", $attributes_list); goto RKeb7; RKeb7: } public static function getAttributeCombinations($product, $id_lang) { goto OgRRv; GF4ZY: return $product->getAttributeCombinations($id_lang); goto UzWhj; UzWhj: Zykjb: goto GcDd5; tnOxy: goto Zykjb; goto lnk21; OgRRv: if (version_compare(_PS_VERSION_, "\x31\56\65\x2e\x30\x2e\x31\60", "\x3e\75")) { goto Xrxk9; } goto eRR1n; lnk21: Xrxk9: goto GF4ZY; eRR1n: return $product->getAttributeCombinaisons($id_lang); goto tnOxy; GcDd5: } public static function getScDisplayableOrderStates($id_lang, $filterDeleted = true) { goto BaQ21; DBlV6: if (empty($scHideOrderStatesConfigs)) { goto EJDJ0; } goto QmMjK; BaQ21: $orderStates = OrderState::getOrderStates($id_lang, $filterDeleted); goto CR3kA; M7ZLd: EJDJ0: goto odITf; D7nr2: YeuTw: goto M7ZLd; QmMjK: foreach ($orderStates as $key => $orderState) { goto BPaf_; Zedii: if (!(!empty($scHideOrderStatesConfig) && isset($scHideOrderStatesConfig["\163\x68\157\160\163"]) && is_array($scHideOrderStatesConfig["\163\150\157\x70\163"]) && in_array(SCI::getSelectedShop(), array_values($scHideOrderStatesConfig["\x73\150\157\160\x73"])))) { goto OVqWq; } goto QyPou; w6Hx_: cq8J8: goto O5R6C; O5R6C: Fz1TB: goto uZseC; LFA8V: $scHideOrderStatesConfig = $scHideOrderStatesConfigs[$orderState["\151\144\x5f\x6f\x72\144\145\162\137\x73\x74\141\x74\145"]]; goto Zedii; BPaf_: if (!isset($scHideOrderStatesConfigs[$orderState["\x69\144\x5f\157\x72\144\x65\162\x5f\163\x74\x61\x74\145"]])) { goto cq8J8; } goto LFA8V; EdaBh: OVqWq: goto w6Hx_; QyPou: unset($orderStates[$key]); goto EdaBh; uZseC: } goto D7nr2; CR3kA: $scHideOrderStatesConfigs = unserialize(SCI::getConfigurationValue("\123\x43\x5f\110\111\x44\105\x5f\117\122\104\105\122\137\123\x54\101\x54\105\123")); goto DBlV6; odITf: return $orderStates; goto ISoWH; ISoWH: } public static function getScIsDisplayableOrderState($idOrderState = null, $idShop = null) { goto z1dlZ; fzXG1: $scHideOrderStatesConfigs = unserialize(SCI::getConfigurationValue("\x53\x43\137\x48\x49\x44\x45\x5f\117\122\104\105\x52\x5f\x53\124\101\x54\x45\x53")); goto YCOhV; Wi119: return 2; goto FUr5v; lw9QO: if (in_array($idShop, array_values($scHideOrderStatesConfigs[$idOrderState]["\163\x68\157\x70\x73"]))) { goto sA28z; } goto bVdxd; KUsfR: return 0; goto G1hn7; FUr5v: gV2hP: goto Fiqh4; bVdxd: return 0; goto IDQnP; IDQnP: sA28z: goto HLHW2; kz3KY: HJZYu: goto auqjV; EjXDs: return 0; goto kz3KY; G1hn7: gKU_q: goto lw9QO; HLHW2: if (!($idShop == 0 && is_iterable($scHideOrderStatesConfigs[$idOrderState]["\x73\150\x6f\x70\163"]) && count($scHideOrderStatesConfigs[$idOrderState]["\163\150\x6f\160\x73"]) > 1)) { goto gV2hP; } goto Wi119; auqjV: if (!(!is_array($scHideOrderStatesConfigs[$idOrderState]["\163\150\157\160\163"]) || !isset($scHideOrderStatesConfigs[$idOrderState]))) { goto gKU_q; } goto KUsfR; z1dlZ: $idShop = null !== $idShop ? $idShop : SCI::getSelectedShop(); goto fzXG1; YCOhV: if (!(!$idOrderState || !$scHideOrderStatesConfigs)) { goto HJZYu; } goto EjXDs; Fiqh4: return 1; goto W5b7N; W5b7N: } public static function getActiveLangForSelectedShop($field = null) { goto zJ5zD; T7PHr: HxWXD: goto gu1L0; qIXBj: goto HxWXD; goto jbTkR; zJ5zD: if (!$field) { goto CVLVT; } goto xFvGM; xFvGM: return array_map(function ($e) use($field) { return $e[$field]; }, Language::getLanguages(false, SCI::getSelectedShop())); goto qIXBj; UZxrB: return Language::getLanguages(false, SCI::getSelectedShop()); goto T7PHr; jbTkR: CVLVT: goto UZxrB; gu1L0: } public static function fixMyPSAlert($sc_agent) { goto iOhuA; HjcD8: if (!($refDateTime && $refDateTime->diff(new DateTime())->format("\45\144") > 7)) { goto Oph__; } goto hVKWi; hNxIR: if (!$data_add) { goto lHXDs; } goto vEFH4; K6ytm: return _l("\x46\151\170\115\x79\120\162\145\x73\x74\141\163\150\157\160\x20\150\x61\x73\40\156\157\x74\x20\142\145\145\x6e\x20\162\165\x6e\40\x66\x6f\162\x20\x61\164\40\154\x65\141\163\164\40\x37\40\x64\141\171\163\x2c\40\171\157\165\40\x73\150\x6f\x75\154\144\40\x72\165\x6e\x20\x69\x74\40\x66\x72\x6f\x6d\x20\164\150\x65\40\x54\x6f\157\x6c\x73\40\76\40\x46\x69\x78\x4d\171\120\162\145\x73\164\x61\x73\150\157\x70\x20\x6d\145\x6e\165\x20\164\157\x20\x63\150\x65\x63\153\x20\x74\x68\x65\40\151\x6e\164\145\x67\x72\x69\164\x79\x20\157\146\40\x79\157\165\x72\x20\163\150\157\160\x2e") . "\x3c\x61\40\163\x74\171\x6c\x65\x3d\42\146\x6f\x6e\164\x2d\167\x65\151\147\x68\x74\72\142\157\154\x64\73\x74\x65\170\x74\x2d\144\x65\x63\x6f\162\x61\164\x69\x6f\x6e\72\165\156\x64\x65\162\x6c\x69\x6e\145\x3b\x22\40\x6f\x6e\143\x6c\x69\143\x6b\75\42\x6f\x6e\115\x65\156\165\103\x6c\x69\x63\x6b\50\47\x66\x69\170\x6d\x79\160\x72\x65\163\x74\x61\x73\x68\157\x70\x27\x29\73\x22\x3e" . _l("\115\x6f\x72\145\40\151\156\x66\x6f") . "\x3c\x2f\141\76"; goto KKoKZ; hVKWi: setcookie("\x46\x69\x78\x4d\x79\x50\x73\x41\x6c\145\162\164", true, time() + 24 * 60 * 60, constant("\x43\x4f\x4f\x4b\x49\x45\137\120\x41\124\110")); goto K6ytm; maVub: oNGY6: goto HjcD8; foVSR: $refDateTime = DateTime::createFromFormat("\131\x2d\155\55\144", SCI::getConfigurationValue("\123\x43\137\106\111\130\115\131\x50\123\137\x4c\101\123\x54\137\103\110\x45\103\113")); goto oILZz; iv209: lHXDs: goto maVub; ZF1ZJ: return false; goto VyZG2; iOhuA: if (!(_r("\115\105\x4e\137\x54\117\x4f\x5f\106\111\x58\x4d\131\x50\x53") && !isset($_COOKIE["\x46\x69\170\115\171\x50\x73\101\154\x65\x72\164"]) && defined("\123\103\137\106\151\x78\x4d\171\x50\162\145\x73\164\141\163\x68\157\160\137\101\103\x54\x49\x56\x45") && SC_FixMyPrestashop_ACTIVE == "\61" && _s("\x41\120\x50\x5f\104\x49\123\x41\x42\114\x45\137\x46\x49\x58\115\131\x50\123\x5f\116\x4f\x54\x49\103\105"))) { goto jlmtn; } goto foVSR; x36Wr: $sqlDAteInstalled = "\123\105\x4c\x45\103\x54\x20\144\x61\x74\145\x5f\141\144\144\40\106\x52\x4f\x4d\x20" . _DB_PREFIX_ . "\x63\x6f\156\x66\x69\147\x75\162\141\164\151\x6f\156\x20\127\110\105\x52\105\40\156\141\155\x65\x3d\x27\x53\x43\x5f\111\x4e\123\x54\101\x4c\x4c\105\104\x27\40\101\x4e\104\x20\166\x61\x6c\x75\145\75\47\x31\47"; goto gU5Bw; c3FG2: jlmtn: goto ZF1ZJ; oILZz: if ($refDateTime) { goto oNGY6; } goto x36Wr; gU5Bw: $data_add = Db::getInstance()->getValue($sqlDAteInstalled); goto hNxIR; KKoKZ: Oph__: goto c3FG2; vEFH4: $refDateTime = DateTime::createFromFormat("\x59\55\155\x2d\144\x20\x48\x3a\151\x3a\163", $data_add); goto iv209; VyZG2: } public static function getStockMvtEmployeeReasonId($sign) { return (int) ($sign > 0 ? self::getConfigurationValue("\120\123\137\123\x54\117\103\113\137\x4d\x56\x54\137\111\116\x43\137\x45\x4d\x50\x4c\117\131\x45\105\137\x45\x44\111\124\111\x4f\x4e") : self::getConfigurationValue("\120\x53\137\123\x54\117\103\x4b\x5f\115\x56\x54\x5f\x44\105\103\x5f\105\x4d\x50\114\117\131\105\105\137\x45\x44\x49\x54\111\x4f\x4e")); } public static function isAvailableWhenOutOfStockByShop($out_of_stock, $id_shop) { goto BfHD9; SDa02: if ($ps_stock_management) { goto HAk7W; } goto E52VU; n5tWH: return (int) $out_of_stock === $outOfStockTypeDefault ? (int) $ps_order_out_of_stock : (int) $out_of_stock; goto kpUn9; q82t8: SPPyW: goto XolXz; Md7Nk: HAk7W: goto aIA0M; IbGrd: XmN2P: goto n5tWH; XolXz: $outOfStockTypeDefault = PrestaShop\PrestaShop\Core\Domain\Product\Stock\ValueObject\OutOfStockType::OUT_OF_STOCK_DEFAULT; goto IbGrd; aIA0M: $ps_order_out_of_stock = self::getConfigurationValue("\x50\123\137\117\x52\x44\x45\x52\x5f\117\x55\124\137\x4f\x46\137\123\124\117\x43\x4b", null, null, (int) $id_shop); goto q7T2C; BfHD9: $ps_stock_management = self::getConfigurationValue("\x50\123\137\123\124\x4f\x43\113\x5f\115\101\x4e\101\107\105\x4d\105\x4e\124", null, null, (int) $id_shop); goto SDa02; Hxx18: $outOfStockTypeDefault = 2; goto imqjE; imqjE: goto XmN2P; goto q82t8; q7T2C: if (version_compare(_PS_VERSION_, "\61\56\67\56\x38\56\x30", "\76\x3d")) { goto SPPyW; } goto Hxx18; E52VU: return true; goto Md7Nk; kpUn9: } public static function messageNotCompatibleWithAdvancedPack($identifier) { goto I5FPy; UISnR: ZHd73: goto mOs2k; SvEWf: exitWithXmlMessageForGrid($msg); goto UISnR; I5FPy: if (!SCI::moduleIsInstalled("\x70\155\137\x61\x64\166\x61\x6e\x63\x65\144\160\141\143\153")) { goto mZovy; } goto HtmZS; ivY7P: $msg = _l("\124\150\151\x73\x20\x70\141\x63\x6b\40\x63\x61\156\x27\x74\40\x62\x65\x20\155\x6f\x64\x69\146\151\x65\144\40\x68\x65\x72\x65\x20\142\x65\x63\141\x75\x73\x65\40\151\164\x27\x73\40\141\156\40\101\x64\166\x61\156\x63\x65\x64\x20\x50\x61\143\x6b"); goto SvEWf; HtmZS: $is_adv_pack = (int) Db::getInstance()->getValue("\x53\x45\114\x45\103\124\40\x43\117\125\x4e\x54\50\x2a\51\12\40\40\40\40\x20\x20\40\x20\40\40\40\x20\40\x20\40\40\x20\40\40\40\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\40\40\40\106\122\x4f\115\40" . _DB_PREFIX_ . "\160\x6d\137\x61\x64\x76\141\x6e\143\x65\144\x70\x61\x63\x6b\12\40\x20\x20\40\40\40\40\40\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\40\40\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\40\127\x48\x45\x52\105\x20\x69\144\137\160\x61\x63\153\40\111\116\40\x28" . pInSQL($identifier) . "\x29"); goto kZCzh; kZCzh: if (!$is_adv_pack) { goto ZHd73; } goto ivY7P; mOs2k: mZovy: goto SmpgY; SmpgY: } public static function encrypt($data) { goto GgIIQ; lzs6y: tBeX9: goto ukC8z; hhCwk: LDWKi: goto d1y3z; d1y3z: return $cryptEngine->encrypt($data); goto r30XB; ukC8z: $cryptEngine = new PhpEncryption(_NEW_COOKIE_KEY_); goto hhCwk; F63r1: if (!Configuration::get("\x50\x53\x5f\103\x49\x50\110\x45\x52\x5f\101\114\107\117\x52\x49\x54\x48\115") || !defined("\137\122\111\x4a\x4e\x44\x41\105\114\x5f\x4b\x45\131\137")) { goto ELEcI; } goto hdzib; hdzib: $cryptEngine = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); goto dB_Zb; dB_Zb: goto GgBpv; goto D40Q4; ILNqL: GgBpv: goto XGZo5; D40Q4: ELEcI: goto I4wtd; I4wtd: $cryptEngine = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); goto ILNqL; XGZo5: goto LDWKi; goto lzs6y; GgIIQ: if (version_compare(_PS_VERSION_, "\61\56\67\x2e\60\x2e\60", "\76\75")) { goto tBeX9; } goto F63r1; r30XB: } public static function decrypt($data) { goto X1sLl; E9HAb: $cryptEngine = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); goto W6Hyq; SPY2C: $cryptEngine = new PhpEncryption(_NEW_COOKIE_KEY_); goto zpwcq; X1sLl: if (version_compare(_PS_VERSION_, "\x31\x2e\x37\x2e\x30\x2e\60", "\x3e\x3d")) { goto I8_N2; } goto sTVk3; RvfJb: $cryptEngine = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); goto bbCVq; NTdjH: goto HrMYG; goto kGznZ; NEnnB: iWUll: goto RvfJb; kGznZ: I8_N2: goto SPY2C; bbCVq: Bdi1I: goto NTdjH; sTVk3: if (!Configuration::get("\120\x53\137\x43\x49\120\x48\x45\122\137\101\x4c\x47\x4f\x52\x49\x54\x48\115") || !defined("\137\x52\x49\112\116\104\101\x45\x4c\137\113\105\x59\x5f")) { goto iWUll; } goto E9HAb; W6Hyq: goto Bdi1I; goto NEnnB; WWzhd: return $cryptEngine->decrypt($data); goto btocb; zpwcq: HrMYG: goto WWzhd; btocb: } public static function getAllowedFileExtension($type) { goto Ci6u2; A70Tw: fdD8t: goto aNP14; Ci6u2: switch ($type) { case "\x69\x6d\141\x67\145": goto lrSsL; ym2Af: if (!version_compare(_PS_VERSION_, "\70\x2e\60", "\x3e\x3d")) { goto ku8J8; } goto m6SZc; lrSsL: $extensions = array("\152\160\147", "\x6a\x70\145\147", "\160\156\147", "\x67\x69\x66", "\142\x6d\x70"); goto ym2Af; AyrPp: ku8J8: goto v52rh; m6SZc: $extensions[] = "\167\x65\x62\x70"; goto AyrPp; v52rh: return $extensions; goto JBls8; JBls8: case "\x63\x73\166": return array("\143\163\166"); default: return array(); } goto dCHdE; dCHdE: IECNd: goto A70Tw; aNP14: } public static function getForbiddenFileExtension($type) { goto qGTYW; qGTYW: switch ($type) { case "\157\x74\150\145\x72": return array("\x70\x68\x70", "\160\150\160\164", "\141\144\145", "\141\x64\160", "\141\160\153", "\x61\x70\160\x78", "\141\x70\x70\170\x62\165\x6e\144\154\145", "\142\x61\x74", "\x63\x61\x62", "\143\150\155", "\x63\155\144", "\143\157\155", "\143\160\154", "\144\151\x61\x67\143\x61\x62", "\144\x69\141\x67\143\146\x67", "\x64\x69\x61\147\x70\x61\143\153", "\144\154\154", "\144\x6d\147", "\x65\170", "\x65\x78\137", "\145\170\145", "\x68\x74\x61", "\x69\x6d\147", "\151\156\x73", "\151\163\157", "\151\163\160", "\x6a\x61\162", "\x6a\x6e\x6c\x70", "\x6a\163", "\x6a\x73\145", "\x6c\x69\x62", "\154\156\x6b", "\155\x64\x65", "\x6d\x73\143", "\155\x73\151", "\155\x73\151\x78", "\x6d\163\x69\x78\x62\x75\156\x64\x6c\x65", "\x6d\x73\160", "\x6d\163\164", "\156\163\x68", "\160\151\x66", "\160\163\61", "\x73\143\162", "\163\x63\x74", "\x73\x68\142", "\163\171\x73", "\166\x62", "\x76\142\x65", "\x76\x62\163", "\x76\150\x64", "\166\x78\x64", "\x77\163\x63", "\167\163\x66", "\167\163\x68", "\x78\154\154"); default: return array(); } goto D8jt1; D8jt1: jD_iD: goto z7lda; z7lda: v_N4f: goto FnFTq; FnFTq: } }
goto rZEZd; j4D9b: if (function_exists("\x66\151\x6c\x65\x5f\147\x65\x74\137\143\157\x6e\164\145\x6e\164\163")) { goto Iilk2; } goto wKzDV; OCpKr: function checkAndGetImgExtension($file) { goto gLK2x; kOAkb: $extensions = array("\160\156\x67", "\152\160\x67", "\152\160\x65\147", "\147\x69\x66"); goto qubrm; a7_YS: zfkMr: goto xPo1c; gLK2x: $return = false; goto kOAkb; qubrm: foreach ($extensions as $extension) { goto j_rw9; oTL59: goto zfkMr; goto yYCj2; JkJXs: sJgzu: goto D_3CT; LxcOb: $return = strtoupper($extension); goto oTL59; D_3CT: if (!file_exists($file . "\x2e" . strtoupper($extension))) { goto zYI8E; } goto LxcOb; oq4pT: goto zfkMr; goto JkJXs; yYCj2: zYI8E: goto DUYyf; j_rw9: if (!file_exists($file . "\56" . $extension)) { goto sJgzu; } goto gFrkg; gFrkg: $return = $extension; goto oq4pT; DUYyf: tWgJc: goto mbUW1; mbUW1: } goto a7_YS; xPo1c: return $return; goto pjaOD; pjaOD: } goto QqVYv; JjkEM: function cleanQuotes($str) { goto ga53z; uBzD8: return trim($str); goto PnRIK; ga53z: $str = trim($str); goto LOWvu; LOWvu: if (!(substr($str, 0, 1) == "\42" && substr($str, strlen($str) - 1, 1) == "\x22")) { goto UzU8Q; } goto E_8kL; AqZMp: UzU8Q: goto uBzD8; E_8kL: $str = substr($str, 1, strlen($str) - 2); goto GbWBW; GbWBW: $str = str_replace("\42\42", "\x22", $str); goto AqZMp; PnRIK: } goto o0qjE; kUadj: function importConv2Int($field) { goto LKZ3T; ypcwt: return (int) $field; goto DndNF; jh_oc: $field = str_replace("\x2c", "\56", $field); goto ypcwt; LKZ3T: $field = str_replace(array("\342\202\254", "\x20", "\x25"), '', $field); goto jh_oc; DndNF: } goto stA8f; hCE9K: function dirRemove($dir) { goto ciZxs; IO_IP: reset($objects); goto FdGtH; HkDYQ: $objects = scandir($dir); goto nckAu; inFPI: mUPK8: goto G_W0s; ciZxs: if (!is_dir($dir)) { goto mUPK8; } goto HkDYQ; FdGtH: rmdir($dir); goto inFPI; qQlNP: O0kmR: goto IO_IP; nckAu: foreach ($objects as $object) { goto dMtjs; dMtjs: if (!($object != "\x2e" && $object != "\x2e\x2e")) { goto H_WGQ; } goto NVMSH; k9HJh: krycV: goto IZ5sL; hnXbS: dirRemove($dir . "\57" . $object); goto dLmRa; dMNu5: goto S1OGl; goto u7Sqa; dLmRa: S1OGl: goto Jfswe; Jfswe: H_WGQ: goto k9HJh; qUcRJ: unlink($dir . "\57" . $object); goto dMNu5; u7Sqa: q3CUq: goto hnXbS; NVMSH: if (filetype($dir . "\x2f" . $object) == "\x64\151\162") { goto q3CUq; } goto qUcRJ; IZ5sL: } goto qQlNP; G_W0s: } goto O9QAc; Iwxqy: echo "\143\x75\x72\x6c\137\151\x6e\151\164\x20\x3a\x20\x4f\x4b\x3c\142\x72\57\76"; goto QBBCF; sMfaM: echo "\146\151\154\x65\137\x67\x65\x74\137\x63\157\x6e\x74\145\156\164\163\40\72\x20\117\113\74\142\x72\57\x3e"; goto Rhbsj; jFniB: function formatDateTimeToDisplay($dateTime) { goto F0Fj1; dv5b7: return $date . "\40" . $times[0] . "\x3a" . $times[1]; goto r6xHh; x2fqf: $times = explode("\72", $time); goto dv5b7; F0Fj1: list($date, $time) = explode("\x20", $dateTime); goto x2fqf; r6xHh: } goto JjkEM; RgeaQ: function addToHistory($section, $action, $object, $object_id, $lang_id, $table, $newValue, $oldValue = false, $id_shop = null) { goto DodIW; ZZYVE: $id_shop = pInSQL(SCI::getSelectedShopActionList(true)); goto Qnb6s; yptIr: return false; goto miZl0; T3HXT: if (!_s("\x41\120\120\137\x44\111\123\x41\x42\114\x45\x5f\103\110\101\x4e\107\105\137\x48\111\123\124\117\x52\x59")) { goto entHP; } goto yptIr; PQbsZ: $sql = "\111\116\x53\x45\x52\x54\x20\x49\116\x54\117\x20" . _DB_PREFIX_ . "\x73\164\x6f\162\145\x63\x6f\x6d\137\150\151\163\164\157\x72\x79\40\50\151\144\x5f\x65\155\x70\x6c\157\x79\x65\x65\54\163\145\143\x74\x69\x6f\156\54\x61\143\164\x69\x6f\x6e\54\x6f\x62\152\145\x63\x74\x2c\157\142\152\x65\143\164\137\x69\x64\54\x6c\x61\x6e\147\137\151\144\54\144\x62\x74\x61\142\x6c\x65\54\157\154\x64\126\141\154\165\x65\54\156\x65\x77\126\141\x6c\x75\145\x2c\144\x61\x74\x65\x5f\141\x64\144\51\12\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\x56\x41\x4c\x55\105\123\40\x28\47" . (int) $sc_agent->id_employee . "\47\x2c\x27" . psql($section) . "\x27\x2c\x27" . psql($action) . "\47\x2c\47" . psql($object) . "\47\x2c\x27" . (int) $object_id . "\x27\54\47" . (int) $lang_id . "\x27\54\47" . psql($table) . "\x27\54\x27" . psql($oldValue, true) . "\47\54\47" . psql($newValue, true) . "\x27\54\116\x4f\x57\50\51\x29"; goto q9fWb; U0gJ7: if (!(!empty($object) && !empty($table) && !empty($tableKeys[$table]))) { goto dWL2L; } goto sCP23; sQ0pn: dWL2L: goto xj0Jc; xj0Jc: B8Ex2: goto BplHL; DqkeV: $res = Db::getInstance()->getRow($sql); goto zrxAi; ehWt9: Db::getInstance()->Execute($sql); goto Ck3k8; DodIW: global $sc_agent; goto T3HXT; zrxAi: $oldValue = $res[$object]; goto sQ0pn; o4YAB: if (!empty($id_shop)) { goto zlbB0; } goto ZZYVE; miZl0: entHP: goto dLLG7; AeU2k: $sql = "\111\x4e\x53\x45\x52\x54\x20\x49\116\124\x4f\40" . _DB_PREFIX_ . "\x73\x74\x6f\162\145\143\x6f\155\x5f\150\151\x73\x74\157\x72\171\40\x28\151\144\137\145\x6d\x70\x6c\157\171\145\145\54\x73\145\143\164\x69\157\156\x2c\x61\143\x74\151\x6f\156\x2c\x6f\x62\152\x65\143\164\54\x6f\142\x6a\x65\x63\x74\137\151\x64\x2c\154\141\156\147\137\x69\144\x2c\144\x62\164\141\142\x6c\x65\x2c\157\154\144\126\x61\x6c\165\145\x2c\x6e\x65\x77\x56\x61\x6c\x75\145\54\x64\x61\164\145\x5f\141\144\x64\x2c\163\150\157\x70\163\x29\12\40\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x56\101\114\125\105\123\x20\x28\47" . (int) $sc_agent->id_employee . "\47\x2c\47" . psql($section) . "\x27\54\x27" . psql($action) . "\47\54\x27" . psql($object) . "\x27\x2c\47" . (int) $object_id . "\x27\x2c\47" . (int) $lang_id . "\x27\54\x27" . psql($table) . "\47\54\x27" . psql($oldValue, true) . "\x27\54\47" . psql($newValue, true) . "\47\54\116\117\x57\x28\51\x2c\x27\x2c" . $id_shop . "\54\x27\x29"; goto c8hwa; rsDou: mGCKQ: goto o4YAB; j6VKi: if (SCMS) { goto mGCKQ; } goto PQbsZ; sCP23: $sql = "\x53\x45\x4c\105\x43\x54\40\x60" . bqSQL($object) . "\x60\x20\x46\122\117\115\x20\140" . bqSQL($table) . "\140\x20\x57\110\105\122\x45\x20\140" . bqSQL($tableKeys[$table]) . "\x60\x3d\47" . (int) $object_id . "\47" . (strpos($table, "\137\154\141\156\x67") > 0 ? "\40\x41\116\x44\40\151\144\137\x6c\141\156\147\x3d" . (int) $lang_id : ''); goto DqkeV; q9fWb: goto M7O1k; goto rsDou; BplHL: if (!(strval($oldValue) != strval($newValue) || $oldValue === null && $newValue === null)) { goto aHHR4; } goto j6VKi; c8hwa: M7O1k: goto ehWt9; dLLG7: if (!($oldValue === false)) { goto B8Ex2; } goto JMVjW; Qnb6s: zlbB0: goto AeU2k; JMVjW: $tableKeys = array(_DB_PREFIX_ . "\160\162\x6f\144\x75\143\x74" => "\151\144\137\160\x72\157\x64\165\x63\x74", _DB_PREFIX_ . "\160\162\157\144\165\x63\x74\137\154\141\x6e\x67" => "\x69\x64\x5f\x70\x72\x6f\x64\165\143\x74", _DB_PREFIX_ . "\151\x6d\141\x67\x65" => "\151\144\x5f\151\155\x61\147\145", _DB_PREFIX_ . "\151\x6d\141\147\x65\137\x6c\x61\x6e\147" => "\x69\x64\137\x69\155\141\x67\145", _DB_PREFIX_ . "\160\x72\157\144\165\143\164\x5f\x61\164\164\x72\x69\142\x75\x74\x65" => "\151\x64\137\160\x72\x6f\x64\x75\x63\x74\137\141\164\164\x72\151\142\x75\x74\145", _DB_PREFIX_ . "\143\141\x74\145\x67\x6f\x72\171\137\x70\x72\x6f\x64\165\143\x74" => "\60", _DB_PREFIX_ . "\x63\x61\x74\145\147\x6f\x72\x79" => "\x69\x64\x5f\160\141\162\x65\x6e\x74", _DB_PREFIX_ . "\x61\x74\x74\x72\x69\142\165\164\145\x5f\147\x72\157\x75\x70" => "\x69\x64\x5f\141\164\164\x72\x69\x62\x75\164\x65\x5f\x67\162\157\165\160", _DB_PREFIX_ . "\x61\x74\x74\x72\151\x62\x75\164\x65\137\147\x72\157\x75\160\137\x6c\x61\156\x67" => "\x69\144\137\141\x74\x74\x72\151\x62\165\164\x65\x5f\147\x72\x6f\x75\x70", _DB_PREFIX_ . "\x61\x74\x74\162\x69\x62\165\x74\145" => "\151\144\137\x61\x74\x74\x72\151\142\x75\164\145", _DB_PREFIX_ . "\x61\x74\x74\162\151\x62\x75\164\145\137\154\141\x6e\x67" => "\x69\144\137\x61\x74\164\162\x69\142\x75\164\x65", _DB_PREFIX_ . "\x66\145\141\164\165\162\145" => "\151\144\137\146\x65\x61\x74\165\x72\x65", _DB_PREFIX_ . "\146\x65\x61\x74\x75\x72\145\137\154\141\156\x67" => "\x69\144\137\146\145\141\x74\x75\x72\145", _DB_PREFIX_ . "\146\145\x61\164\x75\162\145\x5f\x76\141\154\x75\145" => "\x69\144\x5f\146\145\x61\x74\x75\x72\145\137\x76\x61\154\x75\x65", _DB_PREFIX_ . "\146\x65\x61\164\x75\162\145\x5f\166\141\154\x75\145\137\x6c\x61\x6e\147" => "\x69\144\x5f\146\145\x61\x74\x75\162\145\137\166\x61\x6c\x75\145", _DB_PREFIX_ . "\x64\151\163\143\x6f\x75\156\x74\x5f\x71\x75\x61\x6e\164\x69\x74\x79" => "\151\x64\137\x64\151\163\x63\x6f\x75\156\164\137\x71\165\x61\x6e\164\x69\164\171", _DB_PREFIX_ . "\163\164\157\162\x65\x63\x6f\x6d\137\160\162\157\144\165\143\x74" => "\x69\144\x5f\x70\162\157\144\x75\143\164", _DB_PREFIX_ . "\163\x70\145\x63\x69\x66\151\143\137\160\162\151\x63\145" => "\x69\144\x5f\x70\x72\157\x64\x75\x63\164", _DB_PREFIX_ . "\x61\164\x74\141\x63\150\x6d\x65\x6e\164" => "\x69\144\137\x61\164\164\141\143\x68\x6d\145\x6e\x74", _DB_PREFIX_ . "\x61\x74\x74\141\143\x68\155\145\156\x74\x5f\154\x61\x6e\147" => "\151\x64\137\141\x74\164\x61\x63\150\x6d\145\156\164", _DB_PREFIX_ . "\x63\x75\x73\x74\x6f\x6d\x69\172\x61\164\151\x6f\156\137\146\x69\x65\x6c\144" => "\151\144\x5f\143\165\163\164\157\x6d\x69\172\141\164\151\157\x6e\137\x66\151\x65\154\144", _DB_PREFIX_ . "\143\x75\x73\164\157\x6d\151\x7a\x61\164\x69\157\x6e\x5f\146\151\145\154\x64\137\x6c\x61\156\x67" => "\151\x64\137\143\x75\163\x74\x6f\x6d\x69\x7a\x61\x74\x69\157\156\137\x66\x69\145\154\x64", _DB_PREFIX_ . "\x6f\x72\x64\x65\162\163" => "\151\144\x5f\157\162\x64\145\162", _DB_PREFIX_ . "\x6f\x72\x64\x65\162\x5f\x64\145\x74\x61\x69\154" => "\151\x64\x5f\157\162\x64\145\162\x5f\x64\x65\164\x61\151\154", _DB_PREFIX_ . "\160\162\157\x64\165\x63\164\x5f\x64\157\167\x6e\154\x6f\x61\144" => "\151\x64\137\160\162\x6f\x64\165\x63\164\x5f\x64\x6f\167\156\x6c\x6f\141\x64", _DB_PREFIX_ . "\x61\144\144\162\145\163\163" => "\x69\x64\137\x61\144\144\162\145\163\163"); goto U0gJ7; Ck3k8: aHHR4: goto oRgir; oRgir: } goto p6c9G; yR843: goto P0_xU; goto vr6Qw; MAHlU: function removeOldScItems() { goto KrbOs; wZ0Ar: ixSub: goto Q0Jbv; KrbOs: $oldScToolsFolderList = array("\x66\x69\170\155\x79\x70\x72\x65\163\x74\x61\163\x68\x6f\160", "\x77\151\156\x5f\147\162\x69\144\163\x5f\x65\x64\151\x74\157\x72", "\x77\x69\x6e\x5f\x67\162\x69\144\163\137\x65\x64\x69\164\157\162\137\160\162\157", "\x70\155\x63\x61\x63\150\145\x6d\141\x6e\x61\x67\145\162", "\155\x75\154\x74\151\x70\x6c\x65\146\145\141\x74\x75\162\145\x73", "\x73\x65\147\x6d\145\x6e\164\141\164\151\157\156", "\163\x65\147\x6d\145\156\164\160\x72\x6f\x70\145\162\164\x69\x65\x73", "\x61\146\x66\151\x6c\x69\x61\164\151\157\x6e"); goto HszYa; HszYa: foreach ($oldScToolsFolderList as $scToolsFolderPath) { goto Tt2Bk; bIIJV: E1n_b: goto BDUvb; TQPhk: y38Sl: goto bIIJV; Tt2Bk: if (!file_exists(SC_TOOLS_DIR . $scToolsFolderPath)) { goto y38Sl; } goto DgBW3; DgBW3: dirRemove(SC_TOOLS_DIR . $scToolsFolderPath); goto TQPhk; BDUvb: } goto wZ0Ar; Q0Jbv: } goto Fjhih; bGax0: if (!isset($_GET["\x74\x69\155\145"])) { goto vybH2; } goto g2TCW; dADmh: function arr_unique($array) { return array_keys(array_flip($array)); } goto MFG0N; CJAMO: function runProcessOneTimeByDay() { goto SoS7x; cwqsV: $sc_node->appendChild($partner_node); goto NCmLb; sUnUQ: $dst = SC_PS_MODULE_PATH_DIR . $ork_folder; goto Jd8C5; XM_wA: Co2Pj: goto wRWxH; FDP1v: $sc_node->appendChild($last_check_date_node); goto kjC11; Zb1a6: U2_6c: goto hFXKV; wDDF1: wrzsI: goto yKj8K; RavtK: $k = str_replace(array("\x2e", "\x2f", "\x24"), '', crypt(uniqid($k_path, true), hash("\x73\150\141\62\x35\x36", $k_path))); goto s6VtC; xblMi: rPF6U: goto HCVNj; OgYB_: $sc_node->appendChild($name_node); goto ZGYVN; hFXKV: $sql = "\123\105\114\105\x43\124\40\x47\x52\x4f\x55\120\x5f\x43\x4f\x4e\103\x41\124\50\x44\x49\x53\x54\111\116\103\x54\x20\103\117\x4e\x43\x41\124\50\42" . pSQL($protocol) . "\42\54\x64\157\x6d\x61\151\x6e\51\40\123\x45\120\x41\122\101\124\x4f\122\40\42\54\42\x29\40\141\163\40\144\x6f\155\x61\x69\x6e\xa\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\106\122\x4f\115\x20" . _DB_PREFIX_ . "\163\150\157\160\x5f\x75\162\x6c\xa\40\40\40\x20\40\40\40\x20\x20\40\x20\40\40\40\40\x20\127\x48\x45\122\x45\x20\141\143\164\151\166\145\x20\75\x20\61"; goto v_qUj; vN3TS: $root = $dom->createElement("\x6d\157\144\165\154\x65\163"); goto w4ofR; NwTcX: $src = SC_DIR . "\141\x75\x74\x6f\x69\156\x73\x74\x61\154\x6c\x2f" . $ork_folder; goto oc4uE; ztbzq: $name_node = $dom->createElement("\x6e\141\155\145", "\123\164\x6f\x72\145\x20\x43\x6f\155\155\141\156\x64\x65\162"); goto OgYB_; BPOAv: $dom->appendChild($root); goto y3d06; Ca2lK: $dom->save($partner_xml_file); goto tShdI; gE4M8: $partner_node->appendChild($id_node); goto OCSlj; KjWvV: $res_api = makeCallToOurApi("\x67\145\164\x50\141\x72\x74\156\145\162\111\x64", array(), array("\114\x49\103\x45\x4e\x53\x45" => "\x23")); goto LWTkG; CpBsq: $current_domain = ToolsCore::getShopDomainSsl(); goto Lw0MP; ZYruG: SCI::updateConfigurationValue("\x53\103\x5f\x55\116\x49\x51\x55\105\137\111\104", $unique_key_exists); goto Mhc_N; YeQ22: goto rPF6U; goto Zb1a6; oc4uE: if (!file_exists($src)) { goto PbT4x; } goto sUnUQ; SoS7x: $access_details = access_details(); goto sOPu7; Lw0MP: $domains = (string) $protocol . $current_domain; goto YeQ22; GUshq: $ps_unique_id = $dom->createElement("\160\x73\137\165\156\151\161\x75\145\137\x69\x64", $unique_key_exists); goto AUXEy; yKj8K: $id_node = $dom->createElement("\151\x64", $id_partner_in_node); goto gE4M8; BA0cQ: $unique_key_exists = md5(uniqid($access_details["\144\157\x6d\x61\151\156"], true)); goto ZYruG; oIZk_: $partner_xml_file = SC_PS_MODULE_PATH_DIR . "\x6d\157\144\x75\154\145\137\163\143\56\170\x6d\x6c"; goto RbNTh; v_qUj: $domains = (string) Db::getInstance()->getValue($sql); goto xblMi; kjC11: $partner_node = $dom->createElement("\160\x61\162\164\x6e\x65\162"); goto cwqsV; OCSlj: $root->appendChild($sc_node); goto BPOAv; ak7PT: $last_used_node = $dom->createElement("\144\x61\164\145\137\154\141\x73\164\x5f\165\x73\x65\x64", date("\x59\x2d\155\x2d\144")); goto ZPwtm; fYaMo: $id_partner_in_node = $res_api["\162\145\163\x75\154\164"]; goto wDDF1; s6VtC: SCI::updateConfigurationValue("\x53\x43\137\x53\x41\114\124", $k); goto bRIFA; sOPu7: $k_path = dirname(__FILE__); goto RavtK; wRWxH: PbT4x: goto UgR7n; AUXEy: $sc_node->appendChild($ps_unique_id); goto ak7PT; HCVNj: Configuration::updateValue("\x53\x43\137\103\117\122\x53\137\x44\x4f\115\x41\111\116\x53", json_encode(explode("\54", $domains)), false, 0, 0); goto emIhR; Mhc_N: vxki6: goto hBrm3; hBrm3: $localVersions = json_decode(SCI::getConfigurationValue("\123\x43\137\126\x45\122\123\111\117\x4e\123\137\x4c\x41\x53\x54", 0), true); goto dAWI4; ZGYVN: $version_node = $dom->createElement("\166\x65\x72\163\151\x6f\156", $localVersions["\x53\103\x2d\120\x61\143\153\61"]["\x76\145\x72\x73\151\157\x6e"]); goto g9ztx; y3d06: $dom->formatOutput = true; goto Ca2lK; BvDL4: if (version_compare(_PS_VERSION_, "\61\56\x35\x2e\x30\x2e\x30", "\76\x3d")) { goto U2_6c; } goto CpBsq; RkRPe: recursive_copy($src, $dst); goto XM_wA; MvWD0: makeCallToOurApi("\x41\x6e\141\x6c\171\163\x69\x73\x2f\123\x65\162\x76", array(), array("\x4c\111\103\x45\x4e\123\105" => "\x23", "\104\x4f\x4d\101\111\116" => $access_details["\144\x6f\155\141\151\156"] . __PS_BASE_URI__, "\x53\x43\x5f\125\x4e\111\x51\x55\x45\137\x49\x44" => $unique_key_exists, "\164\x69\x6d\x65\x7a\x6f\x6e\x65" => !empty($sc_timezone) ? $sc_timezone : date_default_timezone_get(), "\x70\x68\160\137\x65\x78\x65\x63" => (int) function_exists("\x65\170\x65\143"), "\x70\x68\160\x5f\166\145\x72\x73\151\157\x6e" => (string) sc_phpversion(), "\160\x73\x5f\x76\145\x72\163\151\x6f\x6e" => (string) _PS_VERSION_, "\163\x63\137\166\x65\x72\x73\x69\157\156" => (string) $localVersions["\x53\x43\55\x50\141\x63\153\61"]["\166\x65\162\163\151\157\x6e"])); goto oIZk_; o5o9k: $last_check_date_node = $dom->createElement("\x6c\x61\163\x74\x5f\x66\x69\x78\137\143\x68\145\143\x6b\137\144\x61\164\x65", SCI::getConfigurationValue("\123\103\x5f\x46\x49\130\x4d\x59\120\123\137\x4c\101\x53\x54\x5f\x43\x48\x45\x43\113")); goto FDP1v; RbNTh: $dom = new DOMDocument("\x31\56\60", "\x55\124\106\x2d\70"); goto vN3TS; ASIXw: $sub_node = $dom->createElement("\151\163\x5f\x73\165\x62", IS_SUB); goto kzxfp; LkT2_: if (!empty($unique_key_exists)) { goto vxki6; } goto BA0cQ; NCmLb: $id_partner_in_node = ''; goto KjWvV; g9ztx: $sc_node->appendChild($version_node); goto ASIXw; tShdI: $ork_folder = "\x6f\x72\153"; goto NwTcX; LWTkG: if (!(!empty($res_api["\143\157\x64\145"]) && $res_api["\x63\x6f\144\x65"] == "\x32\x30\60")) { goto wrzsI; } goto fYaMo; bRIFA: $unique_key_exists = SCI::getConfigurationValue("\x53\103\x5f\x55\x4e\x49\121\x55\105\x5f\111\x44"); goto LkT2_; UgR7n: $protocol = getShopProtocol(); goto BvDL4; ZPwtm: $sc_node->appendChild($last_used_node); goto o5o9k; kzxfp: $sc_node->appendChild($sub_node); goto GUshq; w4ofR: $sc_node = $dom->createElement("\163\x74\x6f\162\x65\143\x6f\x6d\155\x61\156\144\145\162"); goto ztbzq; dAWI4: $sc_timezone = SCI::getConfigurationValue("\120\x53\x5f\124\111\115\x45\x5a\117\x4e\105"); goto MvWD0; Jd8C5: if (file_exists($dst)) { goto Co2Pj; } goto RkRPe; emIhR: } goto jZDtV; yuo8Q: function arrayDiffEmulation($arrayFrom, $arrayAgainst) { goto mrExV; mrExV: $arrayAgainst = array_flip($arrayAgainst); goto zPDsZ; aerpX: XCmvH: goto GXU_i; GXU_i: return $arrayFrom; goto A553X; zPDsZ: foreach ($arrayFrom as $key => $value) { goto A1Ri_; RxLiG: S_SaX: goto i85E7; pQD5R: unset($arrayFrom[$key]); goto RxLiG; A1Ri_: if (!isset($arrayAgainst[$value])) { goto S_SaX; } goto pQD5R; i85E7: vKt5g: goto Oobh1; Oobh1: } goto aerpX; A553X: } goto uDm_I; BDQtL: function getFileMime($filePath) { goto PwpEi; qU8_Q: return false; goto YRKmi; zneF7: goto AUe2u; goto pyKhL; qhGid: PsbVS: goto rDDd2; bVP15: dCc6K: goto SHb7u; ZT2f8: if (function_exists("\x65\x78\145\143")) { goto Z_4Ar; } goto MqXmo; nhnN6: return $mime; goto xNKHt; UQRBb: return trim(exec("\x66\151\154\145\x20\55\142\40\x2d\55\x6d\x69\x6d\145\55\164\x79\x70\x65\40" . escapeshellarg($filePath))); goto TZmGo; rDDd2: $finfo = finfo_open(FILEINFO_MIME_TYPE); goto nn33v; SHb7u: return mime_content_type($filePath); goto zneF7; PwpEi: if (function_exists("\x66\x69\x6e\146\x6f\x5f\x6f\x70\145\x6e")) { goto PsbVS; } goto xgMIV; TZmGo: AUe2u: goto qU8_Q; pyKhL: Z_4Ar: goto UQRBb; nn33v: $mime = finfo_file($finfo, $filePath); goto cLQXp; xgMIV: if (function_exists("\x6d\x69\x6d\x65\137\x63\157\x6e\x74\145\x6e\x74\x5f\164\171\x70\x65")) { goto dCc6K; } goto ZT2f8; cLQXp: finfo_close($finfo); goto nhnN6; MqXmo: goto AUe2u; goto qhGid; xNKHt: goto AUe2u; goto bVP15; YRKmi: } goto C010x; C3qDV: function cleanScript($script) { goto aESbx; eug12: return str_replace($prevent_vars, '', $script); goto blyvD; NRQV4: tV89S: goto eug12; h2Q4f: foreach ($prevent_functions as $func) { $script = preg_replace("\43" . $func . "\x5c\163\52\134\50\x5c\x73\x2a\50\x2e\x2a\77\x29\x5c\163\52\134\x29\43", '', $script); ktwmV: } goto NRQV4; aESbx: $prevent_vars = array("\44\137\106\x49\114\x45\x53", "\44\137\x45\x4e\x56"); goto CfMF4; CfMF4: $prevent_functions = array("\x65\166\x61\x6c", "\145\170\x65\143", "\x70\x61\x73\163\x74\x68\x72\165", "\x73\150\145\154\154\137\x65\170\145\x63", "\x73\x79\x73\164\x65\155", "\x70\162\x6f\143\137\x6f\x70\145\156", "\x70\157\x70\145\x6e", "\143\x75\x72\154\137\x65\170\145\143", "\x63\x75\x72\154\x5f\155\165\154\x74\x69\x5f\145\170\145\143", "\160\x61\x72\x73\145\x5f\151\156\x69\x5f\x66\151\154\x65", "\163\x68\157\167\137\163\157\x75\162\x63\145", "\143\x68\155\157\144", "\x63\x68\x6f\167\x6e", "\x63\x68\x67\x72\160", "\x72\x65\156\x61\155\x65", "\x6d\x6b\x64\151\x72", "\x72\155\x64\x69\162", "\165\x6e\x6c\x69\x6e\153", "\x66\157\160\x65\156", "\x66\x69\154\145\x5f\160\165\x74\137\x63\157\156\x74\145\156\164\163", "\x66\x69\154\145\x5f\x67\145\x74\137\143\157\156\164\145\x6e\164\x73"); goto h2Q4f; blyvD: } goto Aoinh; Rhbsj: Tq3es: goto YxWzI; BPmx9: function getIcon($item) { $icon_array_link = array("\141\143\x63\145\x70\164\56\x70\x6e\x67" => "\146\x61\40\146\141\55\143\150\x65\x63\x6b\x2d\x63\151\162\x63\154\145\x20\x67\x72\145\145\156", "\141\143\143\x65\x70\x74\137\x67\x72\145\171\56\x70\156\147" => "\146\141\x64\40\146\x61\x2d\143\150\x65\143\153\55\143\151\162\143\x6c\x65\40\147\162\x65\x79", "\x61\143\x63\x65\163\163\157\x72\171\x2e\x70\x6e\x67" => "\146\x61\144\40\146\x61\55\142\x61\x67\163\55\163\x68\157\160\x70\151\156\147\x20\142\x6c\165\145", "\x61\144\144\x2e\x70\156\x67" => "\146\x61\x20\x66\141\x2d\x70\x6c\x75\x73\55\143\151\x72\x63\154\x65\40\x67\162\145\x65\156", "\141\x64\144\x5f\x62\x69\147\x2e\x70\156\x67" => "\146\141\x20\x66\141\55\x70\x6c\165\x73\55\x63\151\x72\x63\154\x65\x20\171\145\154\x6c\157\167", "\141\144\144\137\x64\x69\163\x2e\160\x6e\x67" => "\x66\x61\144\x20\x66\141\55\160\x6c\165\x73\55\143\x69\162\143\154\145\x20\147\x72\x65\x79", "\x61\144\144\x5f\x70\x73\56\x70\156\147" => "\146\x61\40\x66\x61\x2d\160\162\145\x73\x74\141\163\x68\x6f\x70", "\141\x6a\x61\x78\x2d\154\157\x61\x64\x65\162\x2e\147\x69\x66" => "\146\x61\x73\40\x66\x61\x2d\x73\160\x69\156\156\x65\x72\x20\146\141\x2d\160\165\x6c\x73\145", "\x61\152\x61\x78\x2d\x6c\157\x61\144\145\162\61\x36\x2e\147\151\x66" => "\x66\x61\x73\x20\146\141\55\x73\160\151\x6e\x6e\145\x72\x20\x66\x61\x2d\160\x75\154\163\x65", "\141\x6c\145\x72\164\56\x67\x69\x66" => "\x66\x61\144\40\146\141\x2d\x65\x78\x63\x6c\x61\x6d\141\x74\151\x6f\156\x2d\164\162\x69\141\x6e\x67\154\x65\40\157\162\x61\x6e\147\x65", "\x61\160\x70\154\x69\143\x61\x74\151\157\156\x5f\x66\x6f\162\155\137\x6d\x61\x67\x6e\x69\x66\171\x2e\160\x6e\x67" => "\146\141\40\x66\x61\55\x73\145\x61\162\x63\x68\x20\x62\154\x75\145", "\141\x70\160\x6c\x69\143\141\164\151\157\156\137\x6c\x69\x67\x68\x74\156\x69\x6e\147\56\x70\x6e\147" => "\x66\x61\40\146\x61\x2d\x62\x6f\154\x74\x20\x79\x65\x6c\x6c\157\x77", "\141\x70\160\x6c\151\143\141\164\x69\157\x6e\137\x6c\151\147\x68\164\x6e\151\x6e\147\137\144\145\154\x65\x74\145\56\x70\156\x67" => "\x66\x61\x20\146\x61\55\145\x72\x61\163\145\162\x20\162\145\x64", "\141\x70\160\154\x69\143\141\x74\151\157\x6e\137\154\151\147\150\x74\156\151\x6e\147\137\144\x69\163\56\160\156\x67" => "\x66\141\x64\x20\x66\141\55\x62\x6f\154\x74\40\x67\x72\x65\171", "\x61\160\160\x6c\151\143\x61\x74\x69\x6f\156\137\x73\x69\x64\x65\x5f\x6c\x69\163\164\x2e\160\156\x67" => "\146\x61\x64\x20\x66\141\x2d\164\x68\x2d\x6c\x69\163\x74\x20\142\154\165\145", "\141\160\160\154\x69\x63\x61\x74\151\x6f\x6e\137\163\151\x64\145\x5f\164\x72\x65\145\56\160\156\x67" => "\x66\141\x64\40\x66\x61\x2d\146\157\154\144\x65\162\x2d\x74\162\x65\x65\x20\142\x6c\165\x65", "\141\x70\x70\154\151\x63\141\x74\x69\x6f\156\137\164\x69\154\x65\137\166\145\x72\x74\151\x63\x61\154\56\x70\156\x67" => "\x66\141\144\x20\x66\141\x2d\x74\x65\170\164\55\150\145\x69\147\x68\164\x20\x62\154\165\145", "\x61\160\160\x6c\x69\x63\x61\x74\151\x6f\156\x5f\166\151\x65\167\137\x6c\151\163\x74\56\x70\x6e\x67" => "\x66\141\144\40\x66\141\x2d\154\x69\x73\164\55\x61\x6c\164\x20\142\x6c\x75\145", "\141\162\162\157\x77\137\x64\x69\x76\151\144\x65\x2e\x70\x6e\x67" => "\146\x61\144\40\146\x61\55\146\x6f\154\x64\145\x72\55\x70\x6c\x75\x73\x20\147\162\145\x65\x6e", "\x61\x72\162\x6f\x77\x5f\x64\x6f\167\156\x2e\160\x6e\147" => "\146\141\x20\146\x61\55\141\162\162\157\x77\x2d\144\157\167\156\40\162\x65\144", "\141\162\162\x6f\x77\x5f\151\156\x2e\x70\x6e\147" => "\146\141\x20\146\x61\x2d\143\157\x6d\160\x72\x65\163\x73\55\x61\x72\162\157\167\163\55\x61\154\164\x20\147\x72\x65\x65\156", "\141\162\x72\x6f\167\137\157\165\x74\x2e\160\156\147" => "\146\141\40\146\141\55\x65\170\160\141\156\144\55\141\162\162\x6f\x77\163\55\141\154\164\40\147\x72\x65\x65\x6e", "\141\162\x72\157\167\x5f\162\x65\x66\x72\145\163\x68\x2e\160\156\x67" => "\x66\x61\40\146\141\55\163\x79\156\x63\x20\x67\x72\145\145\156", "\x61\x72\162\157\x77\x5f\x74\x72\141\x6e\163\x66\145\x72\x74\x2e\x70\x6e\147" => "\146\x61\40\146\x61\55\145\x78\143\x68\141\x6e\147\x65\55\141\x6c\x74\40\x67\x72\145\145\156", "\x61\x72\162\x6f\167\137\165\x70\x2e\x70\156\147" => "\146\141\40\x66\141\55\141\x72\x72\x6f\x77\55\x75\x70\40\147\x72\x65\x65\156", "\141\x73\x74\145\x72\x69\x73\x6b\137\171\145\x6c\154\157\167\x2e\x70\x6e\x67" => "\146\x61\x20\146\141\x2d\x61\x73\164\x65\162\x69\163\153\x20\171\145\x6c\154\157\167", "\141\164\x74\x61\x63\x68\56\x70\x6e\147" => "\146\x61\x20\x66\141\x2d\x70\141\x70\x65\162\x63\154\x69\160", "\141\x74\x74\141\x63\x68\x5f\141\x64\x64\56\x70\156\x67" => "\146\141\40\146\x61\55\160\x6c\x75\163\x2d\143\151\x72\143\x6c\x65\x20\147\x72\x65\145\x6e", "\x61\164\x74\x61\143\150\x5f\x64\x65\x6c\x2e\160\156\x67" => "\x66\141\40\x66\x61\x2d\155\151\156\x75\163\55\x63\151\162\143\x6c\x65\x20\x72\145\x64", "\x62\141\163\x6b\145\x74\56\x70\x6e\x67" => "\x66\141\144\x20\146\x61\55\163\x68\x6f\160\x70\x69\156\147\x2d\142\x61\163\x6b\145\164\x20\147\x72\x65\x79", "\x62\151\x6e\137\143\x6c\x6f\163\145\x64\x2e\x70\156\x67" => "\x66\x61\144\x20\146\141\55\x74\x72\141\x73\150\40\147\x72\145\x79", "\142\151\156\x5f\145\x6d\x70\164\x79\56\x70\x6e\x67" => "\146\x61\162\x20\146\x61\x2d\x74\x72\141\163\x68\x20\x67\162\x65\171", "\x62\154\x75\145\x5f\146\x6f\x6c\144\145\x72\x2e\160\156\147" => "\146\x61\40\146\x61\55\146\x6f\x6c\x64\x65\x72\40\142\x6c\165\145", "\x62\154\x75\x65\137\x66\157\x6c\x64\x65\x72\137\163\x79\x6e\x63\x68\162\157\56\160\x6e\147" => "\x66\x61\144\x20\x66\141\55\x72\145\164\167\145\x65\164\40\142\x6c\165\145", "\x62\157\x78\x2e\160\x6e\x67" => "\146\141\40\146\x61\55\143\165\142\145", "\142\x72\x69\143\x6b\163\x2e\160\156\x67" => "\146\141\x20\146\x61\x2d\x63\x75\142\x65\x73", "\x62\165\147\56\x70\156\147" => "\x66\141\x20\146\x61\x2d\x62\x75\147\40\x72\145\x64", "\x62\x75\x69\x6c\144\151\156\147\x2e\x70\x6e\147" => "\x66\141\40\146\141\55\142\x75\151\154\x64\151\x6e\x67", "\x62\165\151\154\144\x69\156\147\137\141\x64\144\56\160\x6e\x67" => "\146\x61\x20\x66\141\x2d\x70\x6c\165\x73\55\x63\x69\162\x63\x6c\x65\40\147\x72\x65\x65\x6e", "\x62\165\x69\x6c\x64\x69\156\x67\137\144\145\x6c\145\164\145\x2e\x70\x6e\x67" => "\146\x61\40\146\x61\55\x6d\x69\156\x75\x73\55\143\x69\162\x63\154\145\40\x72\x65\x64", "\142\x75\x69\154\144\151\156\147\x5f\145\x64\151\164\x2e\160\x6e\x67" => "\x66\x61\144\x20\146\x61\55\145\144\x69\164\40\x79\x65\x6c\x6c\157\x77", "\142\x75\151\154\x64\151\x6e\x67\137\x67\157\56\x70\x6e\x67" => "\146\x61\144\x20\x66\141\x2d\x65\x78\164\145\x72\x6e\141\154\55\x6c\x69\x6e\x6b\x20\147\x72\x65\145\x6e", "\x63\141\x6c\x63\165\154\x61\x74\157\162\x2e\160\156\x67" => "\x66\141\40\x66\141\x2d\143\141\154\x63\x75\154\141\164\x6f\162", "\x63\141\154\x63\x75\x6c\x61\x74\157\x72\x5f\145\144\x69\x74\x2e\160\x6e\147" => "\146\x61\x64\40\146\x61\x2d\x65\x64\x69\x74\40\x79\x65\154\x6c\x6f\x77", "\x63\x61\154\145\156\x64\x61\x72\56\x70\156\x67" => "\146\x61\x20\x66\141\55\x63\141\x6c\x65\x6e\x64\x61\162\x2d\141\154\164", "\143\141\x72\164\x2e\x70\156\x67" => "\x66\141\40\x66\141\x2d\163\x68\157\160\160\x69\156\147\55\143\x61\162\164", "\x63\x61\x72\164\137\141\144\144\x2e\160\156\x67" => "\146\141\x64\x20\146\x61\x2d\x63\141\x72\x74\55\x70\x6c\x75\x73", "\143\x61\x72\x74\137\x64\x65\x6c\145\164\145\x2e\x70\156\147" => "\x66\141\x20\x66\x61\55\x6d\x69\156\165\x73\x2d\143\151\162\x63\154\x65\x20\162\x65\x64", "\143\141\x72\x74\137\147\x6f\56\160\x6e\147" => "\x66\141\144\x20\x66\x61\x2d\x65\170\164\145\x72\156\141\x6c\x2d\x6c\x69\x6e\153\40\x67\162\145\145\x6e", "\143\x61\162\164\137\x70\x73\x2e\x70\156\147" => "\146\141\144\40\146\x61\55\162\x61\155\160\55\154\x6f\141\x64\151\x6e\x67\40\147\x72\x65\x65\x6e", "\x63\141\162\164\137\x62\x6f\137\160\163\56\x70\x6e\x67" => "\146\141\40\x66\x61\x2d\160\162\x65\x73\164\x61\x73\x68\x6f\x70", "\x63\x61\164\141\x6c\157\x67\56\x70\156\x67" => "\146\x61\x20\146\141\x2d\x66\x6f\x6c\144\x65\x72\40\x79\x65\x6c\x6c\x6f\167", "\143\x61\x74\x61\154\157\x67\137\145\144\151\x74\x2e\160\x6e\x67" => "\146\141\144\40\146\x61\x2d\x65\144\x69\x74\x20\x79\x65\154\x6c\157\x77", "\143\x68\141\x72\164\137\142\141\x72\56\x70\x6e\x67" => "\x66\141\40\146\x61\55\x63\x68\141\162\164\x2d\142\141\162", "\x63\x68\141\162\x74\137\143\165\x72\x76\145\x2e\160\x6e\x67" => "\x66\141\40\146\141\x2d\x63\150\x61\162\x74\x2d\141\x72\x65\x61", "\143\x68\x61\162\x74\137\157\162\x67\141\156\x69\163\x61\164\151\x6f\x6e\x5f\x61\x64\x64\56\x70\156\147" => "\x66\x61\x64\x20\x66\141\55\x6c\x69\x6e\x6b\40\x67\x72\x65\145\x6e", "\143\x68\x61\x72\164\137\157\x72\147\x61\156\151\x73\x61\x74\x69\157\x6e\137\x61\x64\144\x5f\x76\56\160\156\x67" => "\x66\141\x64\40\146\141\x2d\x6c\151\x6e\153\x20\x79\145\154\x6c\157\x77", "\143\x68\141\162\164\137\x6f\162\147\x61\156\x69\163\141\x74\x69\x6f\156\x5f\144\x65\154\x65\x74\x65\137\166\56\x70\156\147" => "\146\x61\144\x20\146\x61\x2d\x75\156\154\151\x6e\153\x20\162\145\x64", "\x63\150\x65\x63\x6b\x62\x6f\x78\x5f\146\x61\x6c\163\145\56\x70\x6e\x67" => "\x66\141\162\40\x66\x61\55\x73\161\165\x61\x72\145", "\x63\x68\x65\143\153\x62\x6f\170\137\x74\162\x75\145\56\x70\156\147" => "\146\141\162\40\146\x61\x2d\x63\x68\x65\x63\x6b\55\163\161\165\141\162\x65", "\143\x6c\x6f\143\153\56\x70\156\147" => "\146\141\x20\146\x61\55\x63\x6c\x6f\143\x6b", "\143\x6f\147\x2e\x70\156\147" => "\x66\141\x20\146\141\x2d\143\157\x67", "\x63\157\147\x5f\144\x65\x6c\x65\x74\x65\x2e\x70\x6e\147" => "\x66\x61\40\x66\x61\55\155\x69\156\x75\163\55\143\151\x72\143\154\145\40\162\x65\144", "\143\157\147\137\x65\x64\151\164\56\160\156\x67" => "\x66\x61\x64\40\x66\141\x2d\x73\154\151\144\x65\162\163\x2d\166\x2d\x73\x71\165\141\x72\x65\40\171\x65\x6c\154\x6f\x77", "\x63\157\147\137\x67\157\x2e\160\x6e\147" => "\x66\x61\144\x20\146\x61\55\164\x6f\157\x6c\163\x20\147\162\x65\x65\x6e", "\143\x6f\x6c\163\137\x33\x2e\x70\156\x67" => "\146\141\x20\x66\x61\55\x62\141\162\163\x20\x66\x61\x2d\x72\x6f\164\x61\164\x65\x2d\71\x30\40\147\x72\145\x65\156", "\143\157\155\142\151\156\141\x74\151\157\x6e\x73\56\x67\x69\x66" => "\146\x61\40\146\x61\55\x73\x69\164\145\155\141\160", "\143\x6f\155\142\x69\x6e\141\x74\x69\x6f\156\x73\x5f\x70\163\137\143\x72\145\141\164\x65\56\147\151\x66" => "\146\x61\x64\x20\146\141\55\160\141\x6c\145\x74\x74\x65\x20\x67\x72\145\x65\x6e", "\143\x6f\x6d\142\x69\156\x61\164\x69\157\x6e\163\137\160\x73\x5f\x63\162\145\x61\164\x65\x2e\160\x6e\147" => "\x66\x61\144\x20\146\x61\55\145\x78\164\x65\x72\156\141\x6c\x2d\154\x69\x6e\x6b\x20\x67\162\145\x65\x6e", "\143\157\155\155\145\x6e\164\163\56\160\x6e\x67" => "\146\141\144\40\x66\141\55\x63\x6f\x6d\x6d\x65\x6e\164\163", "\143\157\156\146\151\x67\x75\162\x69\x6e\x67\56\x70\156\x67" => "\146\x61\144\x20\x66\141\x2d\164\157\x6f\154\163", "\x63\x6f\x6e\164\162\x6f\x6c\137\x70\154\x61\x79\x5f\142\x6c\165\145\56\x70\156\147" => "\146\x61\144\x20\146\x61\x2d\160\154\x61\171\55\x63\151\162\143\154\x65\x20\x62\154\x75\x65", "\143\x6f\156\164\162\157\154\137\x73\x74\157\x70\x5f\x62\154\x75\x65\x2e\160\156\147" => "\x66\141\144\40\146\x61\x2d\x73\x74\157\x70\x2d\x63\151\x72\143\154\145\40\142\x6c\165\x65", "\x63\165\160\56\160\x6e\147" => "\x66\141\x64\x20\x66\141\55\x6d\165\x67\x2d\150\x6f\164", "\143\x75\x72\x73\157\162\56\x70\156\x67" => "\146\x61\40\146\141\55\x6d\x6f\165\163\145\55\x70\157\151\156\164\145\162", "\143\165\x74\56\160\156\x67" => "\x66\x61\40\x66\141\x2d\143\x75\x74", "\144\141\164\141\142\141\x73\x65\137\x61\144\x64\x2e\160\x6e\147" => "\x66\141\144\x20\x66\x61\x2d\x73\x69\x67\156\55\x69\x6e\x20\147\162\x65\145\156", "\144\x61\164\x61\x62\x61\163\x65\x5f\x64\x65\154\145\164\x65\x2e\160\x6e\x67" => "\146\x61\x20\146\x61\55\144\x61\x74\x61\x62\141\x73\x65\x20\162\145\x64", "\x64\x61\x74\141\142\x61\x73\x65\137\147\x65\141\x72\x2e\x70\156\x67" => "\x66\141\144\40\x66\141\x2d\143\x6f\147\40\171\145\x6c\x6c\x6f\167", "\x64\141\164\x61\142\141\163\145\x5f\147\157\56\160\x6e\147" => "\146\141\144\x20\146\141\x2d\x73\x69\x67\156\55\157\x75\164\x20\146\x61\x2d\x66\x6c\x69\160\x2d\x68\x6f\x72\x69\x7a\x6f\156\164\x61\154\40\x67\x72\x65\x65\x6e", "\x64\141\164\x61\142\x61\x73\145\137\162\x65\x66\x72\x65\x73\x68\56\160\x6e\x67" => "\x66\141\144\40\146\x61\55\x73\171\x6e\x63\40\x67\x72\145\x65\156", "\x64\x65\x6c\145\x74\145\x2e\147\x69\146" => "\x66\x61\40\146\x61\x2d\x6d\151\x6e\x75\163\x2d\x63\151\162\143\154\145\x20\162\145\144", "\144\x65\154\145\x74\x65\x5f\142\151\147\56\x70\156\147" => "\x66\x61\40\x66\x61\x2d\155\151\156\x75\163\x2d\143\x69\162\143\x6c\x65\x20\162\145\144", "\144\x65\163\x63\x72\x69\160\x74\x69\157\x6e\x2e\160\156\x67" => "\x66\141\144\40\146\x61\x2d\x61\154\151\x67\x6e\x2d\x6c\145\x66\x74", "\x64\x69\163\153\56\x70\156\x67" => "\x66\141\x20\146\141\55\163\x61\166\x65\x20\x62\x6c\x75\145", "\145\x6d\141\151\x6c\x2e\160\156\x67" => "\146\x61\144\40\x66\x61\55\x65\x6e\166\x65\154\x6f\160\x65\40\x62\154\x75\145", "\x65\x6d\141\x69\x6c\x5f\x65\x64\x69\164\56\x70\156\147" => "\146\x61\144\40\x66\x61\x2d\x65\156\166\x65\x6c\x6f\x70\145\x2d\x6f\160\145\x6e\40\x79\145\154\154\x6f\x77", "\145\155\141\151\154\x5f\x67\157\56\160\x6e\147" => "\x66\141\x64\x20\146\x61\55\160\x61\x70\x65\x72\55\160\154\141\x6e\x65\40\x67\x72\x65\x65\x6e", "\x65\x73\145\x72\166\x69\x63\145\163\x5f\143\160\x2e\160\156\147" => "\146\141\144\x20\146\141\55\x67\x61\155\x65\55\x62\157\x61\162\x64\x2d\141\x6c\x74\x20\x66\x61\55\x72\x6f\x74\x61\x74\x65\x2d\71\60", "\x65\x78\160\x6f\x72\x74\56\x70\x6e\x67" => "\x66\x61\x64\x20\x66\141\55\x66\151\x6c\x65\55\145\x78\160\157\x72\x74", "\x65\171\x65\56\x70\x6e\147" => "\146\x61\x20\146\141\55\145\x79\145", "\146\x69\154\164\145\162\x2e\160\x6e\147" => "\x66\x61\40\x66\141\55\x66\151\x6c\x74\x65\x72", "\x66\x69\154\x74\x65\162\x5f\144\x65\x6c\x65\164\145\x2e\160\156\147" => "\146\141\40\146\x61\x2d\x65\162\141\163\145\162\x20\162\145\x64", "\146\x69\154\x74\x65\162\137\163\x68\157\x77\56\160\156\x67" => "\146\x61\x64\40\x66\141\55\145\171\x65\x20\x67\x72\145\x65\x6e", "\146\154\141\147\x5f\x62\x6c\165\x65\56\160\x6e\147" => "\x66\141\x64\x20\x66\x61\55\146\x6c\141\x67\40\142\x6c\x75\145", "\146\157\154\x64\x65\x72\137\141\144\x64\x2e\x70\x6e\x67" => "\x66\x61\x20\x66\141\x2d\x66\x6f\x6c\144\145\x72\55\x70\154\x75\x73\40\147\162\x65\x65\156", "\x66\x6f\x6c\x64\145\162\x5f\x64\145\x6c\145\164\145\x2e\x70\156\147" => "\146\x61\x20\146\141\55\x74\x72\x61\163\150\x2d\x61\x6c\164\x20\x72\x65\x64", "\146\x6f\154\144\x65\162\x5f\x66\151\156\x64\56\x70\x6e\x67" => "\146\141\40\x66\x61\x2d\x66\151\154\145\x2d\163\145\x61\x72\143\x68\40\142\x6c\165\145", "\x66\157\154\144\145\x72\x5f\x67\157\56\160\x6e\147" => "\146\x61\x20\146\x61\55\145\x78\x74\145\x72\156\141\154\x2d\154\x69\156\x6b\40\147\162\145\x65\x6e", "\x66\x6f\x6c\144\145\x72\x5f\x67\x72\145\171\56\160\x6e\x67" => "\146\x61\144\x20\146\141\x2d\146\157\x6c\x64\145\x72\x20\147\x72\x65\171", "\146\157\x6c\x64\x65\x72\x5f\147\x72\145\171\x5f\x64\145\154\145\x74\x65\x2e\x70\x6e\147" => "\146\141\x64\40\146\141\x2d\x66\x6f\154\x64\x65\x72\55\x74\x69\155\145\163\40\162\145\144", "\146\x6f\x6c\x64\145\162\137\x67\162\x65\171\137\146\x69\156\144\x2e\160\x6e\147" => "\x66\x61\144\x20\146\x61\55\146\x69\154\145\x2d\x73\x65\x61\x72\x63\150\40\x62\154\x75\145", "\x66\x6f\154\144\x65\162\x5f\147\162\145\171\137\147\157\56\x70\x6e\147" => "\x66\x61\144\x20\146\x61\55\145\x78\164\x65\x72\156\141\154\55\x6c\151\x6e\153\x20\x67\162\x65\145\x6e", "\146\x6f\154\x64\x65\x72\137\164\141\x62\x6c\x65\56\160\x6e\147" => "\x66\x61\40\146\141\x2d\x66\x6f\x6c\144\145\x72\55\x6f\160\x65\156", "\x66\x6f\154\144\x65\162\x5f\x73\171\x6e\x63\150\x72\157\x2e\x70\x6e\x67" => "\146\x61\144\x20\146\141\x2d\163\x79\156\143", "\146\157\x6c\x64\x65\162\137\167\x72\145\x6e\143\150\56\160\x6e\x67" => "\146\x61\x20\146\x61\x2d\143\157\x67\40\171\145\154\154\x6f\x77", "\x67\162\x6f\165\160\x2e\x70\156\x67" => "\x66\141\x20\146\x61\x2d\165\163\x65\x72\55\146\162\x69\x65\x6e\x64\163", "\147\x72\x6f\x75\x70\137\x61\144\x64\x2e\160\156\x67" => "\146\x61\x73\x20\146\x61\55\160\x6c\x75\163\x2d\143\151\162\x63\x6c\145\x20\147\162\x65\x65\x6e", "\x67\162\x6f\x75\160\x5f\x64\x65\154\145\x74\145\x2e\x70\156\147" => "\146\x61\40\x66\141\55\x6d\151\x6e\165\x73\55\143\151\x72\143\x6c\145\40\162\x65\144", "\x67\162\157\x75\x70\137\x6c\x69\156\x6b\56\160\156\x67" => "\x66\x61\x64\x20\146\141\55\x75\x73\x65\162\x73\x2d\143\154\141\163\x73\x20\171\145\154\154\x6f\167", "\x68\145\x61\x72\164\x2e\160\x6e\x67" => "\x66\141\x20\146\141\x2d\150\145\x61\162\x74\40\x72\x65\144", "\150\145\x6c\x70\56\x70\x6e\147" => "\x66\x61\144\x20\146\x61\55\x71\165\x65\163\x74\151\x6f\x6e\55\143\151\162\143\x6c\145\40\142\x6c\165\x65", "\x68\164\155\x6c\137\x64\145\x6c\x65\164\x65\56\x70\156\147" => "\146\141\x20\x66\x61\x2d\145\162\141\x73\145\162\40\162\x65\144", "\x69\x6e\x66\x6f\x72\155\x61\x74\x69\x6f\x6e\56\160\156\147" => "\146\141\144\40\146\x61\x2d\x69\x6e\x66\x6f\55\143\x69\162\x63\x6c\x65\x20\x62\154\x75\145", "\151\x6e\146\x6f\x72\x6d\x61\164\151\x6f\x6e\137\x62\151\147\x2e\x70\156\x67" => "\x66\141\x20\x66\141\55\151\x6e\146\157\40\x62\154\x75\145", "\151\160\157\144\137\143\141\163\x74\56\x70\156\147" => "\146\x61\144\40\146\x61\55\x73\x63\x61\156\x6e\x65\162\x20\171\x65\x6c\154\157\x77", "\153\145\x79\x2e\x70\156\x67" => "\146\141\x64\40\146\141\55\x6b\x65\x79", "\153\145\x79\x5f\141\144\x64\x2e\x70\x6e\x67" => "\x66\141\40\146\141\x2d\x70\x6c\165\x73\55\143\x69\x72\143\x6c\x65\40\147\x72\145\x65\156", "\x6c\141\171\x65\x72\x73\56\160\x6e\x67" => "\146\x61\x20\x66\141\55\x6c\151\x73\x74\55\157\154\x20\147\x72\145\x65\156", "\154\x61\171\x65\x72\163\x5f\144\151\x73\56\x70\x6e\147" => "\x66\x61\x20\x66\x61\x2d\154\x69\163\164\55\x6f\154\x20\147\162\145\x79", "\x6c\141\x79\157\165\x74\x2e\x70\156\x67" => "\146\141\x64\x20\146\x61\55\142\162\x6f\167\163\145\162\40\x62\x6c\x75\x65", "\154\141\x79\x6f\165\x74\x5f\144\x65\154\145\x74\145\x2e\x70\156\147" => "\x66\x61\40\x66\x61\x2d\155\151\156\165\x73\55\x63\x69\162\143\x6c\x65\40\x72\x65\144", "\154\x69\147\x68\x74\142\x75\x6c\142\56\x70\156\147" => "\146\141\x20\146\x61\55\x6c\151\147\150\164\142\x75\x6c\142\x2d\x6f\x6e\40\x79\x65\154\x6c\157\x77", "\x6c\151\147\x68\164\x62\x75\154\142\x5f\x6f\146\x66\56\x70\156\147" => "\x66\141\144\40\146\x61\x2d\154\x69\147\x68\164\142\165\x6c\142\40\x67\162\x65\171", "\154\x69\x67\150\164\156\151\x6e\x67\56\160\x6e\x67" => "\x66\141\x20\x66\141\x2d\142\x6f\154\x74\x20\171\x65\x6c\x6c\157\167", "\154\x69\x67\x68\164\156\151\156\147\137\147\x6f\x2e\x70\156\147" => "\x66\141\x64\x20\146\x61\x2d\x65\170\164\145\x72\156\x61\x6c\x2d\x6c\x69\x6e\153\40\147\162\x65\145\x6e", "\154\151\156\153\x5f\x61\144\144\56\x70\x6e\x67" => "\x66\141\40\x66\141\55\x6c\x69\156\x6b\x20\147\x72\145\x65\156", "\154\157\x61\x64\x69\156\147\56\x67\x69\146" => "\x66\x61\x20\x66\141\x2d\x73\160\x69\x6e\156\x65\162\x20\146\x61\x2d\160\x75\154\x73\x65", "\x6c\x6f\162\162\171\x2e\x70\156\147" => "\146\141\144\40\x66\141\55\x74\x72\x75\x63\x6b", "\154\157\162\x72\171\137\x61\144\x64\x2e\160\156\x67" => "\146\141\x20\146\141\55\x70\154\x75\163\55\x63\x69\x72\x63\x6c\145\40\x67\x72\145\x65\156", "\x6c\x6f\162\x72\x79\137\144\145\154\145\164\145\x2e\x70\x6e\x67" => "\146\x61\40\146\141\x2d\155\151\x6e\165\163\x2d\x63\x69\162\x63\x6c\145\x20\162\x65\x64", "\x6d\x65\144\x61\x6c\137\x67\157\x6c\144\x5f\144\145\154\145\x74\x65\x2e\160\156\x67" => "\146\x61\x64\40\x66\x61\x2d\155\145\x64\x61\x6c\x20\x72\x65\x64", "\x6d\x65\x72\x67\x65\56\160\x6e\147" => "\146\x61\x64\40\146\141\55\x73\151\164\145\x6d\141\160\40\146\141\x2d\x72\157\164\141\164\x65\x2d\71\60\40\142\154\165\x65", "\x6d\157\x6e\x65\x79\x2e\160\156\147" => "\146\x61\x64\x20\146\x61\55\x6d\157\156\x65\171\x2d\142\x69\154\x6c\55\x61\154\x74", "\155\157\x6e\145\171\137\x61\x64\144\x2e\160\156\147" => "\146\141\40\146\x61\55\160\154\165\163\55\143\151\162\x63\154\145\40\147\162\145\145\x6e", "\155\157\x6e\145\x79\137\x64\145\x6c\x65\x74\145\56\x70\156\147" => "\x66\141\40\146\x61\55\155\151\156\165\163\55\143\151\x72\143\154\x65\x20\162\145\144", "\155\x6f\156\145\171\137\x65\x75\x72\x6f\56\x70\x6e\x67" => "\146\141\40\146\x61\55\145\165\x72\157\55\x73\151\x67\156\40\x79\145\154\x6c\x6f\x77", "\160\141\x63\x6b\141\x67\x65\x2e\160\x6e\x67" => "\x66\x61\40\146\141\x2d\143\165\x62\145\40\171\145\154\154\x6f\167", "\160\x61\147\145\137\143\x6f\144\x65\56\x70\x6e\x67" => "\146\x61\x64\x20\x66\141\x2d\x66\151\x6c\145\x2d\143\x6f\144\x65\40\142\154\x75\x65", "\160\141\x67\x65\137\143\x6f\160\171\x2e\x70\156\x67" => "\146\x61\x64\40\146\x61\55\x63\157\x70\x79\40\142\154\x75\145", "\160\x61\147\x65\x5f\143\157\160\171\x32\56\160\x6e\x67" => "\x66\x61\x20\146\x61\55\143\x6f\160\171\x20\x62\154\x75\145", "\x70\141\147\x65\137\x64\145\154\x65\164\145\56\160\156\147" => "\146\141\40\146\x61\x2d\155\x69\x6e\x75\163\x2d\143\x69\x72\x63\x6c\145\x20\x72\145\144", "\x70\141\x67\145\x5f\145\x64\x69\164\56\x70\156\147" => "\146\x61\x64\40\146\141\55\x65\144\151\x74", "\x70\x61\147\x65\x5f\145\x78\x63\145\154\x2e\160\156\x67" => "\x66\141\x64\40\146\x61\x2d\146\151\x6c\145\55\x63\163\x76\40\x67\x72\x65\x65\156", "\x70\x61\147\145\137\146\x69\156\144\56\160\156\147" => "\146\x61\x64\x20\x66\x61\55\146\x69\x6c\145\x2d\163\x65\141\162\143\150\x20\x62\154\165\145", "\x70\x61\x67\x65\x5f\160\144\x66\56\160\156\x67" => "\x66\x61\x64\40\x66\x61\55\146\151\154\x65\x2d\160\144\146\x20\x62\x6c\x75\145", "\160\x61\147\145\x5f\163\141\166\x65\56\x70\156\147" => "\x66\x61\x20\x66\141\55\x73\141\166\x65\x20\142\154\165\145", "\160\141\147\145\x5f\167\150\151\164\x65\x2e\x70\156\147" => "\146\x61\x64\x20\146\x61\x2d\x66\x69\154\145\40\x77\150\151\x74\145", "\x70\141\147\x65\x5f\x77\150\151\x74\x65\137\145\144\x69\x74\56\x70\x6e\147" => "\146\141\x64\40\x66\141\x2d\145\144\151\164", "\x70\x61\x67\145\137\167\150\151\x74\145\137\145\x72\162\157\x72\56\x70\156\147" => "\146\x61\x64\40\146\x61\55\x65\x78\143\154\x61\x6d\x61\164\x69\157\156\x2d\164\162\x69\x61\x6e\x67\x6c\x65\40\x6f\x72\x61\x6e\147\x65", "\x70\x64\146\56\x67\151\x66" => "\146\141\x64\x20\x66\x61\x2d\x66\x69\x6c\x65\55\160\x64\146", "\x70\145\x72\x63\x65\x6e\x74\x2e\x70\156\x67" => "\146\x61\x20\x66\x61\x2d\160\x65\162\143\x65\156\164", "\160\x69\x63\164\x75\162\145\56\x70\156\x67" => "\x66\x61\x64\40\x66\x61\x2d\151\x6d\x61\147\145", "\160\151\x63\164\x75\x72\x65\x5f\x61\144\x64\x2e\x70\x6e\147" => "\x66\141\40\x66\x61\55\x70\x6c\165\163\x2d\143\x69\162\x63\154\145\40\x67\x72\145\x65\x6e", "\x70\151\143\164\165\162\x65\x5f\x64\x65\154\x65\164\x65\x2e\x70\x6e\147" => "\146\141\40\146\141\55\155\x69\156\x75\x73\x2d\143\151\x72\143\x6c\145\x20\162\x65\144", "\x70\x69\143\x74\x75\162\145\137\x67\157\56\x70\156\x67" => "\x66\141\144\x20\146\x61\55\145\170\164\145\x72\x6e\141\x6c\55\x6c\151\x6e\x6b\40\147\x72\145\145\x6e", "\x70\154\141\x79\56\x70\156\147" => "\146\141\144\40\x66\x61\55\160\x6c\x61\171\x2d\143\x69\x72\x63\154\x65\x20\142\x6c\x75\145", "\x70\154\x75\x67\151\156\x5f\154\x69\x6e\x6b\x2e\160\x6e\x67" => "\146\141\40\x66\141\x2d\160\165\x7a\x7a\x6c\x65\x2d\160\151\x65\143\x65\40\x67\162\x65\145\156", "\x70\x72\151\x6e\164\145\162\x2e\x70\x6e\x67" => "\x66\x61\144\x20\146\x61\55\160\x72\151\156\164", "\x72\x61\x6e\x64\x6f\155\x2e\160\x6e\147" => "\146\x61\40\x66\141\55\162\141\156\144\x6f\155", "\162\145\x61\x64\157\x6e\x6c\x79\x2e\x70\156\x67" => "\x66\141\144\40\x66\x61\x2d\x6c\x6f\143\153\55\141\x6c\x74", "\x72\x75\142\171\56\160\156\147" => "\146\x61\x20\146\x61\x2d\x67\145\155\40\x72\x65\144", "\163\x63\x72\151\x70\164\x5f\x61\x64\144\56\x70\156\147" => "\146\141\40\146\141\55\160\x6c\x75\163\55\x63\x69\x72\x63\x6c\145\x20\147\x72\x65\x65\x6e", "\x73\x63\x72\x69\x70\164\137\144\x65\x6c\x65\x74\x65\x2e\160\156\147" => "\x66\x61\x20\146\x61\x2d\x6d\151\156\x75\x73\x2d\x63\151\x72\143\154\x65\x20\x72\145\144", "\163\x63\162\x69\160\x74\x5f\x65\x64\x69\164\56\x70\156\147" => "\x66\141\x64\40\x66\x61\x2d\145\144\151\x74\40\171\x65\154\x6c\x6f\167", "\x73\x63\x72\x69\x70\x74\x5f\147\x6f\x2e\x70\156\x67" => "\146\141\x64\x20\146\141\55\x65\170\x74\145\162\156\141\x6c\55\154\151\156\x6b\40\x67\162\145\145\x6e", "\x73\x63\162\x69\160\164\x5f\x70\x61\x6c\x65\164\x74\145\56\160\x6e\x67" => "\146\x61\x64\40\x66\x61\55\160\141\154\145\x74\x74\x65", "\x73\145\x61\x72\143\150\x2e\x67\x69\x66" => "\146\141\40\146\x61\x2d\x73\x65\x61\x72\x63\x68", "\163\x65\x63\165\162\x69\164\x79\56\160\x6e\147" => "\146\x61\x20\x66\x61\55\163\x68\151\x65\154\x64\x2d\141\x6c\164", "\163\x65\x67\155\x65\x6e\164\x61\x74\151\157\x6e\56\x70\156\147" => "\146\141\x64\40\x66\141\55\143\x68\x61\x72\x74\x2d\160\x69\x65\x20\x62\154\165\x65", "\163\x65\162\x76\x65\162\x2e\160\156\147" => "\x66\x61\144\x20\146\141\55\x73\x65\x72\166\145\x72", "\x73\150\141\x70\145\x5f\155\157\x76\x65\137\x66\x72\x6f\x6e\x74\56\160\x6e\x67" => "\x66\x61\144\x20\x66\x61\x2d\x62\x72\x69\156\x67\x2d\146\x72\157\156\x74\x20\x62\154\x75\145", "\x73\x69\164\x65\155\141\160\x5f\143\157\154\x6f\x72\x2e\x70\156\147" => "\146\141\40\x66\x61\55\163\x69\164\x65\x6d\141\160\40\167\x68\x69\x74\x65", "\x74\141\142\x6c\x65\x5f\141\x64\x64\x2e\160\156\147" => "\146\141\40\146\x61\x2d\x70\154\165\x73\x2d\x63\x69\x72\143\154\145\40\147\x72\x65\145\156", "\x74\x61\142\154\x65\x5f\x64\145\x6c\x65\164\145\56\x70\x6e\147" => "\146\x61\x20\x66\x61\x2d\155\x69\x6e\x75\163\55\x63\x69\x72\x63\154\145\40\x72\145\144", "\x74\x61\x62\154\x65\137\145\144\151\164\x2e\x70\x6e\x67" => "\x66\x61\x64\x20\146\x61\x2d\145\x64\x69\164\40\x79\145\x6c\154\157\167", "\x74\x61\142\x6c\x65\137\147\x65\x61\162\x2e\x70\x6e\147" => "\x66\141\144\40\x66\x61\x2d\x72\x75\x6c\x65\x72\x2d\x74\x72\151\x61\156\x67\x6c\145", "\x74\141\x62\x6c\145\x5f\x67\x6f\56\x70\x6e\147" => "\146\141\144\x20\146\x61\x2d\145\170\x74\x65\162\x6e\141\x6c\55\154\151\156\153\40\147\162\145\145\156", "\164\141\142\154\x65\x5f\154\x69\x67\150\164\x6e\151\156\147\56\160\156\x67" => "\146\x61\x64\40\146\141\55\142\x6f\x6c\x74\x20\x67\162\145\x65\156", "\x74\x61\x62\154\145\x5f\155\x75\x6c\x74\151\x70\154\145\x2e\x70\156\147" => "\146\141\x20\x66\x61\x2d\154\141\171\145\162\55\147\x72\157\x75\160", "\x74\x61\142\x6c\x65\x5f\x72\x65\154\141\164\151\157\156\163\x68\x69\160\x2e\160\156\x67" => "\146\x61\144\x20\x66\x61\55\141\x6d\x65\x72\x69\143\141\x6e\55\163\151\147\x6e\x2d\x6c\x61\156\x67\x75\141\x67\145\x2d\x69\156\x74\x65\x72\x70\x72\145\x74\151\156\x67\x20\x62\x6c\165\145", "\x74\141\142\x6c\145\137\162\x6f\x77\x5f\x64\x65\x6c\x65\164\145\x2e\160\156\147" => "\x66\x61\40\x66\x61\55\155\x69\x6e\x75\163\55\143\x69\162\x63\x6c\145\x20\162\x65\x64", "\164\x61\x62\x6c\145\137\x72\157\167\137\144\x65\154\x65\x74\x65\x5f\147\162\x65\x79\56\x70\156\147" => "\x66\141\x64\40\146\141\x2d\x75\156\144\157\x20\147\x72\x65\x79", "\x74\x61\x62\x6c\145\137\162\x6f\167\137\x69\156\163\145\x72\x74\56\160\x6e\147" => "\146\141\40\x66\141\55\x70\154\165\163\x2d\143\x69\x72\x63\154\x65\40\147\x72\x65\x65\x6e", "\x74\141\x62\154\x65\137\163\141\166\x65\x2e\x70\156\x67" => "\146\x61\x20\146\x61\55\x73\141\166\145\40\142\x6c\x75\145", "\164\x61\147\137\x62\x6c\165\x65\56\x70\x6e\x67" => "\x66\141\x64\40\x66\141\x2d\164\141\x67\163", "\x74\141\x67\137\142\154\165\x65\137\141\x64\x64\56\x70\x6e\147" => "\146\x61\x20\146\141\55\160\x6c\165\163\x2d\x63\151\x72\x63\154\x65\40\147\x72\145\x65\x6e", "\164\x61\147\137\x62\x6c\165\145\137\x64\x65\x6c\145\x74\145\56\160\x6e\147" => "\x66\141\40\146\141\55\155\151\156\165\163\x2d\x63\x69\x72\x63\154\x65\40\162\145\x64", "\164\x61\147\x5f\142\x6c\x75\145\137\x65\144\151\x74\56\x70\156\x67" => "\146\141\144\x20\x66\141\55\x65\144\151\x74\40\x79\x65\x6c\x6c\157\167", "\164\x61\147\163\56\147\x69\146" => "\146\141\x64\x20\146\141\55\143\154\x6f\x75\x64\x73", "\x74\145\x78\164\x5f\x6c\151\x73\x74\x5f\142\165\x6c\154\145\164\163\56\x70\156\147" => "\146\x61\x64\x20\x66\x61\x2d\154\x69\x73\164\x2d\x75\154", "\164\145\x78\164\x5f\154\x69\x73\x74\137\x6e\x75\155\x62\x65\x72\x73\x2e\160\x6e\147" => "\146\x61\144\40\x66\141\55\154\151\x73\164\x2d\157\x6c", "\164\145\170\164\146\151\x65\x6c\x64\x5f\x61\144\144\56\160\156\x67" => "\146\x61\x20\146\x61\x2d\x70\x6c\x75\x73\x2d\x63\x69\x72\143\x6c\145\x20\x67\x72\x65\145\x6e", "\x74\x65\170\x74\146\x69\x65\x6c\x64\137\144\x65\x6c\x65\164\145\x2e\x70\156\147" => "\146\x61\x20\x66\141\55\x6d\x69\156\x75\x73\x2d\143\151\162\143\x6c\x65\x20\162\145\144", "\x74\145\170\164\146\151\145\154\x64\137\153\145\171\56\x70\x6e\x67" => "\146\x61\144\40\x66\x61\55\153\145\x79\40\x79\x65\154\x6c\x6f\x77", "\164\145\x78\x74\146\x69\145\154\x64\x5f\x72\145\156\141\155\145\56\160\156\x67" => "\x66\x61\x64\x20\x66\141\x2d\x69\x2d\143\165\162\x73\157\x72", "\x74\151\143\x6b\x2e\160\156\x67" => "\x66\x61\40\146\141\x2d\143\x68\145\x63\x6b\x20\147\162\x65\x65\x6e", "\x74\151\x6d\x65\x2e\x70\156\147" => "\146\x61\x20\x66\141\55\x63\x6c\x6f\143\153", "\x74\x72\145\x65\x5f\151\144\137\x63\141\x74\145\x67\x5f\x64\145\x66\x61\x75\x6c\x74\56\160\156\147" => "\x66\141\144\40\146\x61\x2d\163\151\x74\x65\155\x61\160", "\165\x73\145\162\56\160\156\x67" => "\146\x61\x20\x66\141\x2d\165\x73\x65\162", "\x75\x73\145\x72\x5f\x63\x6f\x6d\155\145\x6e\x74\x2e\x70\x6e\x67" => "\146\141\x64\x20\x66\x61\x2d\x63\157\155\x6d\145\156\x74\x2d\x6c\x69\x6e\x65\163", "\x75\x73\x65\162\x5f\x64\145\154\x65\164\145\56\160\156\x67" => "\x66\x61\40\x66\x61\55\155\151\x6e\165\x73\x2d\143\x69\x72\x63\154\x65\x20\162\145\x64", "\x75\x73\x65\x72\x5f\x65\x64\x69\164\56\160\x6e\147" => "\146\141\144\x20\x66\x61\x2d\145\x64\151\x74\x20\x79\x65\154\x6c\x6f\167", "\x75\163\x65\162\x5f\147\157\x2e\160\x6e\x67" => "\x66\141\x64\x20\x66\x61\55\165\x73\145\162\x2d\163\150\151\x65\x6c\144\40\x67\162\145\x65\x6e", "\x75\x73\x65\162\137\147\157\137\x70\x73\x2e\160\156\x67" => "\146\x61\x20\x66\x61\x2d\x70\x72\x65\163\164\141\163\150\157\x70", "\x75\x73\x65\162\x5f\157\x72\141\156\x67\x65\137\x67\x6f\x2e\x70\156\x67" => "\146\x61\144\40\x66\141\x2d\x77\141\x6c\x6b\x69\x6e\x67\x20\157\x72\x61\156\x67\145", "\x75\163\145\x72\x5f\160\163\56\160\156\x67" => "\146\x61\40\146\x61\55\x70\x72\x65\x73\164\x61\x73\x68\157\x70", "\x77\141\x6e\144\x2e\160\156\147" => "\146\141\40\x66\141\x2d\155\x61\147\151\x63\40\x79\145\x6c\154\157\167", "\167\157\x72\154\x64\137\147\x6f\x2e\x70\156\x67" => "\x66\141\144\x20\146\x61\55\147\x6c\x6f\142\145\55\145\x75\162\x6f\x70\145\40\147\x72\x65\145\x6e", "\167\162\x65\156\143\150\x5f\157\x72\141\x6e\147\x65\56\160\156\x67" => "\146\x61\40\146\141\x2d\167\x72\145\156\143\x68\x20\157\162\x61\x6e\147\145", "\x7a\x6f\157\155\56\x70\156\x67" => "\x66\141\144\x20\146\x61\x2d\163\145\x61\162\x63\x68", "\x7a\x6f\157\155\x5f\151\x6e\56\x70\x6e\147" => "\146\141\x64\40\146\141\55\163\145\x61\x72\x63\150\55\x70\x6c\165\x73", "\x69\x2e\x67\x69\146" => "\x66\141\144\x20\146\141\x2d\x66\x69\154\145\55\151\x6d\141\147\145", "\151\x2e\x6a\x70\147" => "\x66\141\x64\x20\146\x61\x2d\146\151\154\145\55\151\155\x61\x67\145", "\x66\x69\x78\137\x6d\x79\x5f\x70\162\145\163\164\141\163\150\157\x70\56\160\156\x67" => "\146\141\x64\40\146\x61\x2d\155\x6f\x6e\151\164\x6f\x72\x2d\x68\x65\x61\162\164\55\x72\141\x74\145", "\x73\x68\x6f\160\x5f\143\x6c\145\x61\x6e\x69\x6e\x67\x5f\157\160\164\151\x6d\x69\172\141\x74\x69\x6f\x6e\x2e\x70\156\147" => "\x66\x61\144\x20\x66\141\x2d\x74\141\143\x68\x6f\155\145\164\x65\162\55\141\154\164\x2d\146\141\x73\164\145\163\x74", "\x63\165\163\164\157\155\145\x72\x5f\147\162\157\165\x70\56\160\156\x67" => "\146\141\144\40\x66\x61\x2d\165\x73\x65\162\55\146\x72\x69\x65\156\144\163", "\x73\x70\x65\143\x69\x66\151\143\137\160\x72\x69\x63\x65\163\x2e\x70\x6e\147" => "\146\141\144\40\x66\x61\x2d\155\x6f\156\x65\171\x2d\143\150\x65\x63\x6b\x2d\x65\144\151\164\55\141\154\164", "\x63\141\x74\145\x67\x6f\162\151\x65\x73\56\160\156\x67" => "\x66\x61\144\x20\146\141\x2d\x66\157\x6c\x64\145\162\x2d\164\x72\x65\x65", "\144\x65\146\141\x75\154\164\x5f\143\141\164\145\147\157\162\171\x2e\160\x6e\x67" => "\146\x61\144\x20\146\x61\x2d\x61\x74", "\x73\x74\x61\164\x73\x2e\160\x6e\147" => "\146\141\x64\x20\x66\141\x2d\141\156\x61\154\x79\x74\151\x63\163", "\163\x65\x6f\x2e\x70\156\147" => "\x66\x61\x64\40\146\141\x2d\x61\x74", "\144\x6f\167\x6e\154\x6f\x61\144\137\146\151\154\x65\56\x70\x6e\147" => "\146\x61\x64\x20\146\x61\x2d\143\x6c\x6f\x75\x64\x2d\144\157\x77\x6e\x6c\157\141\x64\x2d\141\x6c\164", "\x73\165\x70\x70\x6c\x69\145\x72\163\x2e\160\x6e\147" => "\146\x61\x64\x20\x66\x61\x2d\160\141\162\x61\143\x68\165\x74\145\x2d\x62\157\170", "\x70\x72\x6f\x70\137\x63\157\155\142\151\156\x61\164\x69\x6f\156\163\x2e\147\x69\x66" => "\x66\x61\x64\x20\x66\x61\55\x62\x61\154\154\55\x70\x69\x6c\145", "\151\156\x76\157\151\x63\145\56\x70\156\147" => "\x66\141\144\x20\146\141\55\146\x69\154\145\55\x69\156\166\x6f\x69\143\x65", "\x6f\x72\x64\145\x72\137\x73\154\x69\160\x2e\160\156\x67" => "\x66\141\144\x20\x66\x61\55\x66\151\154\x65\x2d\151\x6e\x76\x6f\151\143\x65\55\144\x6f\x6c\154\x61\x72", "\150\151\x73\x74\157\162\x79\x2e\x70\x6e\x67" => "\x66\141\x64\40\x66\141\x2d\142\157\x6f\x6b", "\x63\x61\162\164\137\147\x6f\137\160\163\56\160\x6e\147" => "\x66\141\x64\40\146\x61\x2d\145\171\145", "\156\x6f\x74\x65\x2e\x70\x6e\x67" => "\146\x61\144\x20\146\x61\x2d\x70\145\x6e\55\146\141\156\x63\171", "\x61\144\x64\x72\x65\x73\x73\x2e\160\156\147" => "\146\x61\x64\x20\146\141\x2d\x6d\141\x70\x2d\x6d\x61\162\x6b\145\x64\x2d\141\x6c\164", "\151\155\160\157\162\x74\56\160\x6e\x67" => "\146\x61\144\x20\x66\141\x2d\x73\151\x67\156\55\x69\156", "\x64\151\x73\x61\142\154\145\x2e\160\156\x67" => "\x66\141\40\146\141\55\155\151\156\x75\x73", "\146\x6f\154\x64\145\x72\x5f\162\x65\144\56\x70\156\147" => "\146\141\x20\146\x61\55\x66\x6f\154\x64\x65\x72\40\162\145\x64", "\146\x6f\x6c\x64\145\162\x5f\162\x65\144\x67\162\x65\x79\x2e\x70\x6e\147" => "\146\x61\x20\146\141\55\x66\x6f\x6c\x64\145\x72\x20\162\145\144\x67\x72\145\x79", "\x61\x6d\141\x7a\x6f\x6e\56\160\x6e\x67" => "\146\x61\x64\40\146\x61\55\x62\x61\x64\147\145\55\x64\x6f\154\154\x61\x72", "\143\144\151\163\143\157\165\x6e\164\x2e\x70\x6e\x67" => "\x66\141\x64\40\x66\x61\x2d\x62\x61\x64\147\x65\x2d\144\x6f\154\x6c\141\x72", "\x66\145\x65\144\142\151\172\x2e\x70\x6e\x67" => "\x66\x61\144\x20\146\141\55\142\x61\x64\147\x65\55\144\157\x6c\x6c\x61\x72", "\165\x73\x65\x72\137\160\163\x5f\166\151\x65\x77\56\x70\x6e\147" => "\x66\141\x64\40\x66\141\x2d\145\171\x65", "\x6e\157\x74\145\137\145\x64\x69\x74\56\160\x6e\147" => "\146\x61\40\146\x61\55\x73\x74\151\x63\153\x79\55\156\157\x74\x65", "\160\x68\x6f\156\x65\x5f\141\144\144\x2e\x70\156\x67" => "\146\x61\144\x20\146\x61\x2d\160\150\157\156\x65\x2d\154\x61\160\x74\157\160", "\154\157\162\x72\x79\x5f\165\x72\x6c\x2e\160\156\147" => "\x66\141\144\40\x66\141\55\x72\x61\142\x62\151\x74\x2d\146\141\x73\164", "\x69\155\141\x67\x65\137\x64\x65\164\141\151\154\x2e\160\x6e\x67" => "\x66\x61\x64\40\146\141\x2d\162\165\154\x65\x72\x2d\x63\157\x6d\142\151\x6e\x65\x64"); return $icon_array_link[$item]; } goto xqA5y; NATC4: function getYearforUs($date) { $fieldArr = explode("\55", $date); return $fieldArr[0]; } goto jFniB; Cg_bm: function SCMSCleanPositionsInAllShops($id_category_parent = null) { goto Wr179; ftf76: $count = count($result); goto XSUFF; XSUFF: if (!($count > 0)) { goto zhfHM; } goto V1VpN; ehnxW: zhfHM: goto hLgj6; M1kSN: KtSA2: goto ehnxW; Wr179: $return = false; goto GJbbn; mvlCU: wZC1I: goto KpWWb; V1VpN: $i = 0; goto AK3WJ; ZPlnV: $sql = "\125\x50\x44\101\x54\x45\40\140" . _DB_PREFIX_ . "\143\141\x74\x65\x67\157\x72\x79\x60\xa\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\40\x53\105\124\40\x60\160\157\x73\151\164\x69\157\x6e\140\x20\75\x20" . (int) $i . "\xa\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\127\110\x45\122\x45\x20\140\151\x64\137\x70\x61\x72\145\x6e\164\x60\40\75\x20" . (int) $id_category_parent . "\12\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\x20\101\x4e\104\x20\140\x69\x64\137\143\141\164\x65\147\x6f\x72\171\140\40\75\40" . (int) $result[$i]["\151\x64\x5f\143\141\164\x65\x67\157\162\x79"]; goto diPCw; diPCw: $return &= Db::getInstance()->execute($sql); goto Jlqbx; hLgj6: goto QbolV; goto mvlCU; AK3WJ: ZSztS: goto oyLNS; B4KvH: if (version_compare(_PS_VERSION_, "\x31\56\65\56\60\56\60", "\76\75")) { goto wZC1I; } goto RKl78; GJbbn: if (empty($id_category_parent)) { goto Xq5me; } goto B4KvH; H9P9T: ++$i; goto uehH2; oyLNS: if (!($i < $count)) { goto KtSA2; } goto ZPlnV; esF2c: return $return; goto tfpc3; Jlqbx: I85c4: goto H9P9T; aX_FB: QbolV: goto r9ewD; riISs: foreach ($id_shop_list as $id_shop) { goto dxVCm; lUdDZ: ++$i; goto Wku89; BYEpL: $i = 0; goto Bw9Hs; pgEqA: if (!($i < $count)) { goto xhUeQ; } goto IKhGu; Y4rGZ: suJcd: goto tWSvz; fPpod: if (!($count > 0)) { goto QnRcG; } goto BYEpL; dxVCm: $result = Db::getInstance()->executeS("\123\x45\x4c\105\103\x54\x20\143\56\x60\151\144\x5f\x63\x61\164\145\x67\157\162\171\x60\12\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\40\40\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\40\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\40\40\40\40\40\x46\122\x4f\115\40\140" . _DB_PREFIX_ . "\x63\x61\164\x65\x67\157\x72\x79\140\x20\x63\xa\x20\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\114\105\106\x54\40\x4a\x4f\111\x4e\x20\x60" . _DB_PREFIX_ . "\143\x61\164\145\x67\x6f\x72\x79\x5f\163\x68\x6f\160\x60\40\x63\163\12\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\40\40\117\116\40\x28\x63\x2e\140\x69\x64\137\x63\141\164\x65\x67\157\162\171\x60\x20\75\x20\143\163\x2e\140\151\144\x5f\143\x61\164\145\x67\157\x72\171\140\12\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\40\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\x41\x4e\104\40\143\x73\x2e\x60\x69\x64\x5f\x73\150\157\160\x60\40\75\x20" . (int) $id_shop . "\x29\12\x20\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\40\40\40\40\40\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\x57\x48\x45\x52\x45\40\143\x2e\140\x69\144\137\x70\141\162\x65\156\x74\140\40\75\x20" . (int) $id_category_parent . "\xa\x20\40\x20\40\40\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\117\x52\104\105\x52\x20\x42\131\x20\x63\163\56\140\160\157\163\151\164\x69\x6f\156\x60"); goto ewwNE; Wku89: goto NutCK; goto Tj7C6; Bw9Hs: NutCK: goto pgEqA; wPPeQ: $return &= Db::getInstance()->execute($sql); goto IPJi8; GAydb: QnRcG: goto Y4rGZ; IPJi8: Q0T7s: goto lUdDZ; Tj7C6: xhUeQ: goto GAydb; IKhGu: $sql = "\125\120\x44\101\x54\x45\x20\140" . _DB_PREFIX_ . "\x63\x61\164\145\147\157\162\x79\140\40\143\12\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x4c\105\106\x54\x20\x4a\x4f\111\x4e\x20\x60" . _DB_PREFIX_ . "\143\141\x74\145\147\x6f\x72\171\x5f\x73\150\157\160\140\40\x63\x73\xa\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\40\40\40\40\x20\117\x4e\x20\50\143\56\140\x69\x64\137\x63\141\x74\145\x67\x6f\162\171\140\40\75\x20\x63\x73\x2e\140\x69\x64\137\x63\x61\164\x65\x67\157\162\x79\x60\xa\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\40\40\40\x20\x41\x4e\x44\x20\143\163\56\x60\151\x64\x5f\163\x68\x6f\160\x60\40\x3d\x20" . (int) $id_shop . "\x29\xa\40\40\40\40\40\x20\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\40\123\x45\124\40\143\x73\56\x60\160\x6f\163\151\164\x69\x6f\x6e\x60\40\75\40" . (int) $i . "\xa\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\x20\40\40\x20\40\127\110\105\122\x45\x20\143\56\x60\x69\x64\137\x70\x61\x72\x65\x6e\164\x60\x20\x3d\x20" . (int) $id_category_parent . "\xa\40\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\x20\40\40\x20\40\40\40\40\40\101\x4e\104\40\143\56\140\x69\x64\137\x63\x61\x74\x65\147\x6f\162\x79\x60\x20\x3d\x20" . (int) $result[$i]["\151\x64\x5f\x63\141\x74\x65\147\x6f\x72\x79"]; goto wPPeQ; ewwNE: $count = count($result); goto fPpod; tWSvz: } goto spC2X; spC2X: O9EWr: goto aX_FB; uehH2: goto ZSztS; goto M1kSN; r9ewD: Xq5me: goto esF2c; RKl78: $result = Db::getInstance()->executeS("\x20\123\105\x4c\105\103\x54\40\x60\151\144\137\143\x61\x74\145\x67\x6f\x72\x79\140\xa\40\x20\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\40\40\40\x46\122\117\115\x20\140" . _DB_PREFIX_ . "\143\x61\164\x65\x67\x6f\x72\x79\140\12\40\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\40\40\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x57\110\x45\122\x45\x20\x60\x69\144\137\x70\141\x72\145\156\x74\140\x20\75\40" . (int) $id_category_parent . "\xa\40\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\40\40\40\x20\x20\40\40\40\40\40\40\40\40\117\122\104\x45\122\40\x42\131\x20\140\x70\x6f\163\x69\x74\151\x6f\156\x60"); goto ftf76; KpWWb: $id_shop_list = Shop::getShops(false, null, true); goto riISs; tfpc3: } goto C3qDV; X8htJ: Iilk2: goto sMfaM; stA8f: function importConv2Float($field) { goto cyVfn; cyVfn: $field = str_replace(array("\xe2\x82\254", "\40", "\x25"), '', $field); goto WEEnK; BhYVo: return number_format(floatval($field), 6, "\x2e", ''); goto KaNYd; WEEnK: $field = str_replace("\x2c", "\56", $field); goto BhYVo; KaNYd: } goto R8JZ6; xIqSW: function getScExternalLink($key) { return "\x68\x74\x74\160\x73\72\x2f\x2f\167\x77\x77\x2e\163\164\x6f\162\145\143\157\x6d\155\141\x6e\144\x65\x72\x2e\143\x6f\155\57\x72\145\x64\x69\x72\x5f\160\x73\56\x70\150\160\x3f\x74\x3d" . time() . "\x26\x64\x65\x73\x74\75" . $key . "\46\x69\163\x6f\x3d" . SC_ISO_LANG_FOR_EXTERNAL; } goto ljNKZ; UjyCJ: function escapeCharForPS(&$str, $html = false) { goto kUdCY; kUdCY: if (!$html) { goto JhpdU; } goto IfO23; b_1AV: $str = str_replace("\76", '', $str); goto H7uh9; VbDVa: $str = str_replace(utf8_encode("\302\xb4"), "\47", $str); goto UYv6Q; UYv6Q: $str = str_replace(utf8_encode("\xe2\x80\x99"), "\x27", $str); goto OlnxB; IhND3: cqppw: goto VbDVa; IfO23: $str = str_replace("\342\x82\xac", "\46\145\x75\162\x6f\x3b", $str); goto UCd5A; cZMrV: JhpdU: goto b_1AV; UCd5A: $str = str_replace(utf8_encode(chr(hexdec("\70\x30"))), "\x26\x65\x75\x72\x6f\73", $str); goto XFu31; OlnxB: $str = str_replace(utf8_encode("\xe2\200\xa6"), "\x2e\56\x2e", $str); goto a7YmH; H7uh9: $str = str_replace("\74", '', $str); goto IhND3; XFu31: goto cqppw; goto cZMrV; a7YmH: } goto kUadj; xqA5y: function recursive_copy($src, $dst) { goto PPRfk; I5jLG: @mkdir($dst); goto dcQPG; ZG11z: copy($src . "\57" . $file, $dst . "\x2f" . $file); goto e5vS6; Qvtzw: if (!($file != "\x2e" && $file != "\56\56")) { goto CT6AH; } goto XlTZd; t5Qhu: closedir($dir); goto OIbzQ; By7hV: recursive_copy($src . "\57" . $file, $dst . "\x2f" . $file); goto gbb4B; gbb4B: qgaIS: goto iir3H; F7Ghy: MQ_j1: goto By7hV; iir3H: CT6AH: goto qnwH3; XlTZd: if (is_dir($src . "\57" . $file)) { goto MQ_j1; } goto ZG11z; qnwH3: goto BFyIp; goto qh7sL; PPRfk: $dir = opendir($src); goto I5jLG; xH2f6: if (!($file = readdir($dir))) { goto C2y_V; } goto Qvtzw; dcQPG: BFyIp: goto xH2f6; e5vS6: goto qgaIS; goto F7Ghy; qh7sL: C2y_V: goto t5Qhu; OIbzQ: } goto EKV27; e4vlb: function isUrl($string) { goto a744i; kKDNR: if (!(array_key_exists("\163\143\150\x65\x6d\x65", $parsed_url) && in_array($parsed_url["\x73\x63\150\145\x6d\145"], array("\x68\x74\x74\x70", "\x68\164\x74\160\163")))) { goto GCHxD; } goto E01SL; a744i: $parsed_url = parse_url($string); goto kKDNR; WA0dj: GCHxD: goto YH8OF; YH8OF: return false; goto k2Oyf; E01SL: return $parsed_url; goto WA0dj; k2Oyf: } goto nLb9z; Fjhih: function exitWithXmlMessageForGrid($message) { echo "\x3c\x72\157\x77\163\x3e\12\40\x20\x20\40\x3c\x68\x65\141\x64\76\xa\40\40\40\x20\40\x20\x20\40\x3c\x62\x65\x66\x6f\162\x65\x49\156\x69\164\x3e\12\40\40\40\40\40\x20\x20\40\x20\x20\40\40\x3c\143\x61\x6c\154\40\x63\157\x6d\x6d\x61\x6e\144\75\42\x61\164\164\141\143\150\x48\145\x61\x64\145\162\42\x3e\x3c\160\x61\x72\x61\x6d\76\x3c\41\133\x43\x44\x41\124\101\133\135\135\76\x3c\57\x70\141\162\x61\155\76\x3c\57\143\141\154\x6c\76\xa\40\x20\40\40\x20\x20\x20\x20\x3c\57\x62\145\146\157\162\145\111\x6e\x69\164\x3e\xa\x20\x20\40\x20\40\40\40\x20\x3c\x63\x6f\154\x75\x6d\x6e\x20\151\x64\75\x22\144\141\164\141\42\40\x77\x69\x64\x74\x68\x3d\42\x2a\42\x20\164\x79\160\x65\75\x22\162\x6f\x22\40\141\154\x69\x67\156\x3d\42\143\x65\x6e\164\145\162\x22\x20\x73\157\162\164\x3d\x22\x69\x6e\x74\42\76\x3c\x2f\143\x6f\154\165\x6d\156\x3e\xa\x20\x20\40\40\74\57\x68\x65\x61\x64\76\xa\x20\40\40\40\74\162\x6f\x77\40\x69\x64\x3d\x22\x30\x22\x3e\xa\x20\40\x20\x20\40\x20\x20\x20\74\143\145\154\154\x3e\x3c\x21\133\x43\x44\x41\x54\101\133{$message}\135\135\76\74\57\143\x65\x6c\x6c\76\xa\40\40\40\40\x3c\57\x72\157\x77\76\12\x3c\x2f\162\157\167\163\76"; die; } goto bGfPo; cc7R5: function fixLevelDepth() { goto zA2LG; nq76l: ++$i; goto CY01P; Xb5jk: Db::getInstance()->Execute($sql); goto kgPvP; zA2LG: Db::getInstance()->Execute("\x55\120\104\x41\x54\x45\40\x60" . _DB_PREFIX_ . "\x63\141\x74\x65\147\157\x72\x79\140\40\x53\105\x54\x20\x60\154\145\x76\x65\154\x5f\x64\145\160\x74\150\x60\x3d\61\40\127\110\105\x52\105\x20\x60\x69\x64\x5f\160\141\x72\145\156\164\x60\75\61"); goto fVMiq; Z6H_t: T42sd: goto ETXNT; ETXNT: if (!($i <= 20)) { goto a3CPx; } goto AmsBJ; Vi1K5: $sql = "\125\120\x44\x41\124\105\40" . _DB_PREFIX_ . "\x63\141\x74\x65\147\x6f\162\x79\x20\123\x45\x54\40\x60\154\145\166\x65\154\137\x64\145\x70\164\150\140\x3d" . (int) ($i + 1) . "\x20\127\x48\x45\122\x45\x20\151\144\x5f\x70\x61\x72\x65\x6e\164\x20\x49\116\40\x28" . psql(join("\54", $arr)) . "\51"; goto Xb5jk; Yr207: vkGJW: goto ucZtO; QNg6F: TC1Gx: goto nq76l; uEmnj: $arr = array(); goto Z0ymh; CY01P: goto T42sd; goto l7xRA; kgPvP: h_iAB: goto QNg6F; fVMiq: $i = 1; goto Z6H_t; AmsBJ: $res = Db::getInstance()->ExecuteS("\x53\105\114\105\x43\124\40\x69\x64\137\143\x61\x74\x65\147\157\x72\171\40\40\x20\x20\40\x46\x52\117\x4d\40" . _DB_PREFIX_ . "\143\141\x74\x65\x67\x6f\162\x79\x20\40\40\x20\x20\127\110\105\122\x45\40\x6c\x65\x76\145\x6c\137\144\x65\x70\x74\x68\75" . (int) $i); goto uEmnj; ucZtO: if (!count($arr)) { goto h_iAB; } goto Vi1K5; l7xRA: a3CPx: goto hlaVu; Z0ymh: foreach ($res as $row) { $arr[] = $row["\x69\144\137\143\x61\x74\x65\x67\x6f\162\171"]; ULVd8: } goto Yr207; hlaVu: } goto yuo8Q; zZ_ie: function scanDirectory($Directory) { goto xgwlQ; qb8HR: $MyDirectory = opendir($Directory) or die("\x45\162\162\145\165\x72"); goto aEllx; jDVpd: eg5hn: goto y5Dw0; VnWJ7: goto yPr3Z; goto a5X61; CUzSK: goto rgh0F; goto hG8z3; YB0nd: if ($Entry != "\56" && $Entry != "\56\56") { goto WCl1i; } goto YEVag; a5X61: z9Oak: goto mM2Gt; xgwlQ: $return = array(); goto qb8HR; hG8z3: WCl1i: goto N3a2Y; aEllx: yPr3Z: goto KbyIs; y5Dw0: $return[] = array("\156\x61\x6d\145" => $Entry, "\143\x68\151\x6c\x64\x72\145\156" => scanDirectory($Directory . "\x2f" . $Entry)); goto CUzSK; oPzYy: if (is_dir($Directory . "\x2f" . $Entry) && $Entry != "\x2e" && $Entry != "\x2e\x2e") { goto eg5hn; } goto YB0nd; N3a2Y: $return[] = array("\156\141\x6d\145" => $Entry, "\143\150\151\154\x64\x72\145\156" => array()); goto l0ohK; mM2Gt: closedir($MyDirectory); goto ySfnl; ySfnl: return $return; goto gJQiA; l0ohK: rgh0F: goto VnWJ7; YEVag: goto rgh0F; goto jDVpd; KbyIs: if (!($Entry = @readdir($MyDirectory))) { goto z9Oak; } goto oPzYy; gJQiA: } goto p3Qgz; OcSMO: echo "\x61\x6c\x6c\157\167\137\165\162\154\137\x66\x6f\x70\145\156\x20\x3a\x20" . ini_get("\141\x6c\x6c\x6f\x77\137\165\x72\x6c\x5f\x66\157\x70\145\156") . "\x3c\x62\x72\x2f\76"; goto rVLnj; p3Qgz: function isJson($string) { json_decode($string); return json_last_error() == JSON_ERROR_NONE; } goto e4vlb; g2TCW: echo time(); goto DZTuf; nLb9z: $arrayFlipCache = array(); goto FaXYP; QqVYv: function sc_array_key_exists($key, &$array) { goto lA9rr; aZDe_: $array[$key] = ''; goto tuFys; UiHxO: if (is_array($array) && array_key_exists($key, $array)) { goto zfc6U; } goto DJZK7; DyXg1: $return = true; goto dj9G9; dj9G9: goto VKiQm; goto SulaY; SulaY: zfc6U: goto cLBaS; lA9rr: $return = false; goto zr6rW; tuFys: VKiQm: goto LJF8D; zr6rW: if (isset($array[$key])) { goto ZHq9Q; } goto UiHxO; cLBaS: $return = true; goto aZDe_; DJZK7: goto VKiQm; goto kA9Xd; kA9Xd: ZHq9Q: goto DyXg1; LJF8D: return $return; goto gm1VA; gm1VA: } goto BPmx9; Zw0RB: function sc_phpversion($onlyFourNumber = true) { goto lbVV1; rsq2p: if (!($onlyFourNumber && preg_match("\43\x28\x5c\144\x7b\61\54\x33\x7d\x5c\56\134\x64\x7b\x31\x2c\x33\175\x5c\x2e\x5c\144\173\x31\x2c\63\175\x29\x23", $phpVersion, $matches))) { goto hm910; } goto Bwe5L; jFnhM: hm910: goto W9Xaa; Bwe5L: return $matches[0]; goto jFnhM; lbVV1: $phpVersion = phpversion(); goto rsq2p; W9Xaa: return str_replace("\x7e", '', $phpVersion); goto Htgnh; Htgnh: } goto OCpKr; MFG0N: function getImgPath($id_product, $id_image, $size = '', $format = "\152\x70\x67") { goto HslFX; t3HJl: Tc3BX: goto mI3wP; i1_B2: OtoVa: goto CKxnS; bIlFm: $folder_array = str_split((string) $id_image); goto awS8t; zYuPK: Te8OB: goto O67NU; Z5T55: $folder = implode("\x2f", $folder_array) . "\x2f"; goto uR2xt; FeTFg: return $folder . $id_image . ($size != '' ? "\55" . $size : '') . $format; goto LkH26; ywKBV: A3oQz: goto TlF4T; LkH26: return $id_product . "\55" . $id_image . ($size != '' ? "\55" . $size : '') . $format; goto c2Mxk; TlF4T: fq1gk: goto FeTFg; vb412: @copy(_PS_PROD_IMG_DIR_ . "\151\156\144\x65\170\x2e\160\x68\x70", _PS_PROD_IMG_DIR_ . $folder . "\151\x6e\x64\145\x78\56\160\x68\x70"); goto jYBdK; IaPA3: if (!(_s("\x43\101\124\137\x50\122\117\104\137\x49\x4d\x47\137\x4f\x4c\104\x5f\x50\101\x54\x48") || file_exists(_PS_PROD_IMG_DIR_ . $id_product . "\x2d" . $id_image . ($size != '' ? "\x2d" . $size : '') . $format))) { goto Te8OB; } goto AGz1K; CbBOB: @copy(_PS_PROD_IMG_DIR_ . "\151\x6e\144\x65\170\x2e\x70\x68\x70", _PS_PROD_IMG_DIR_ . $folder . "\x69\x6e\x64\145\170\56\x70\x68\x70"); goto ywKBV; jYBdK: mAl3t: goto i1_B2; IUrk3: $format = "\56" . $format; goto uhiw8; awS8t: $folder = implode("\57", $folder_array) . "\57"; goto mUZDh; O67NU: if (!version_compare(_PS_VERSION_, "\x31\56\65\x2e\x32", "\x3e\x3d")) { goto Tc3BX; } goto bIlFm; Lhyrq: $success = @mkdir(_PS_PROD_IMG_DIR_ . $folder, 493, true) || @chmod(_PS_PROD_IMG_DIR_ . $folder, 493); goto F14y3; mI3wP: $folder_array = str_split((string) $id_image); goto Z5T55; F14y3: if (!($success && !file_exists(_PS_PROD_IMG_DIR_ . $folder . "\151\x6e\144\145\170\56\x70\x68\x70") && file_exists(_PS_PROD_IMG_DIR_ . "\x69\156\x64\145\170\x2e\x70\x68\x70"))) { goto mAl3t; } goto vb412; uhiw8: JtL0T: goto IaPA3; HslFX: if (!($format != '')) { goto JtL0T; } goto IUrk3; FS_x9: if (!($success && !file_exists(_PS_PROD_IMG_DIR_ . $folder . "\x69\156\x64\145\170\x2e\160\x68\160") && file_exists(_PS_PROD_IMG_DIR_ . "\x69\156\x64\x65\x78\x2e\x70\150\160"))) { goto A3oQz; } goto CbBOB; CKxnS: return $folder . $id_image . ($size != '' ? "\55" . $size : '') . $format; goto t3HJl; V9UJK: $success = @mkdir(_PS_PROD_IMG_DIR_ . $folder, 493, true) || @chmod(_PS_PROD_IMG_DIR_ . $folder, 493); goto FS_x9; mUZDh: if (file_exists(_PS_PROD_IMG_DIR_ . $folder)) { goto OtoVa; } goto Lhyrq; uR2xt: if (file_exists(_PS_PROD_IMG_DIR_ . $folder)) { goto fq1gk; } goto V9UJK; AGz1K: return $id_product . "\55" . $id_image . ($size != '' ? "\55" . $size : '') . $format; goto zYuPK; c2Mxk: } goto cc7R5; B_3vP: function makeDefaultCallToOurApi($url, $additionnalHeaders = array(), $posts = array()) { goto WPZ8j; P2S9F: foreach ($additionnalHeaders as $headerKey => $headerValue) { $headers[] = implode("\72", array("\170\55\x73\143\x2d" . $headerKey, $headerValue)); vtJTM: } goto SGdG0; jGOO7: if (empty($additionnalHeaders)) { goto q_0sJ; } goto P2S9F; JUj11: q_0sJ: goto FrJ5X; SGdG0: kL65h: goto JUj11; j4_UK: $headers = array("\170\55\x73\143\55\153\145\171\72\x67\x74\67\70\x39\172\x65\x66\x31\63\62\x6b\x69\171\x37\70\71\x75\x31\63\166\64\x39\70\x76\x65\61\65\156\x68\x72\x79\x39\70", "\x78\55\163\143\x2d\x6c\151\143\x65\156\163\x65\72" . $license, "\x78\x2d\x73\x63\x2d\162\x65\x66\x65\x72\x65\162\x3a" . $access_details["\144\x6f\x6d\141\151\x6e"], "\x78\x2d\x73\x63\x2d\163\165\x62\163\143\162\x69\160\164\x69\157\x6e\72\61"); goto jGOO7; FrJ5X: return makeCallToOurApi($url, $headers, $posts); goto eIMz4; lHnyG: $license = SCI::getConfigurationValue("\123\x43\x5f\x4c\x49\103\105\116\123\105\x5f\x4b\105\x59"); goto j4_UK; WPZ8j: $access_details = access_details(); goto lHnyG; eIMz4: } goto hnKoa; LwqRW: function truncate($string, $max_length = 30, $replacement = '', $trunc_at_space = false) { goto u3lTi; FB1yU: return $string; goto BA1HM; kw3M5: if (!($trunc_at_space && ($space_position = strrpos($string, "\x20", $max_length - $string_length)))) { goto a8Lr7; } goto HNi6d; u3lTi: $max_length -= strlen($replacement); goto s2c_W; s2c_W: $string_length = strlen($string); goto CRP_T; HNi6d: $max_length = $space_position; goto NaQiK; K4W6x: return substr_replace($string, $replacement, $max_length); goto Y6aOk; CRP_T: if (!($string_length <= $max_length)) { goto uBSxs; } goto FB1yU; NaQiK: a8Lr7: goto K4W6x; BA1HM: uBSxs: goto kw3M5; Y6aOk: } goto q3psJ; QBBCF: P0_xU: goto OcSMO; utcWI: byJyX: goto MAHlU; DZTuf: die; goto uF5ub; wKzDV: echo "\146\x69\154\145\x5f\x67\x65\x74\137\x63\x6f\156\x74\145\156\x74\x73\x20\72\x20\113\x4f\x3c\x62\x72\x2f\76"; goto f22L7; jZDtV: function getIntercomHash($sc_agent) { goto dwFwC; dRrEg: if (in_array($hash, $prohibited)) { goto uGu6S; } goto BGw0o; tBFUa: $hash = hash_hmac("\163\150\141\x32\65\x36", $sc_agent->email, "\x43\x61\x4f\170\x64\x44\x50\104\122\156\115\x75\x72\67\120\124\147\70\164\x43\167\171\x64\x46\x64\115\171\160\144\101\x41\x33\101\x46\x5a\101\111\x64\x66\67"); goto dRrEg; dwFwC: if (empty($sc_agent->email)) { goto E2Lao; } goto BFxt9; h1w40: uGu6S: goto AJFGC; BGw0o: return $hash; goto h1w40; BxskL: return null; goto Phclv; AJFGC: E2Lao: goto BxskL; BFxt9: $prohibited = array("\x62\x66\63\63\63\x30\65\x65\x31\x37\x32\x64\x63\x30\60\x65\71\x37\143\x30\141\60\x64\x30\x65\61\141\142\67\70\142\146\x36\x35\x63\x65\64\71\x61\67\x35\x63\x64\65\x32\x35\x36\x38\x34\67\141\145\x66\71\142\143\66\141\64\x34\142\61\62\x36", "\x62\142\x66\66\143\146\x33\x38\x64\x65\141\x62\142\x39\x35\146\143\x30\x37\x65\x61\x34\64\145\142\x65\x64\145\x30\x38\x66\x32\x64\x64\145\x65\144\65\70\x65\x36\x61\65\x30\67\x38\146\62\x33\62\60\71\146\x35\64\x65\x37\67\66\x38\x30\61\145\x38", "\x66\x30\x32\x33\x35\65\145\x39\70\x62\x37\71\60\62\x35\x61\x33\x39\x61\61\x32\63\x61\64\x63\x61\143\x66\62\144\144\x34\x64\62\x62\143\x62\x34\x39\67\x35\70\65\66\66\61\66\146\62\61\66\x61\x33\141\x64\x38\x34\144\x62\x38\143\67\63\x63", "\x64\x31\x39\x32\70\60\x62\x36\x33\70\142\x39\145\x39\144\70\x33\x36\x66\x30\141\x37\142\142\x32\61\x66\67\65\63\x34\60\146\x38\146\x32\63\x62\146\x37\66\141\145\x30\142\144\71\146\71\x39\60\60\x62\146\x65\x32\65\x37\x62\x66\x30\x31\x38\145", "\x30\70\145\71\x39\x35\144\66\x61\61\x35\142\61\x34\146\65\64\146\144\61\x62\66\x33\71\x37\x31\x39\146\65\146\x36\x31\x38\142\x36\x65\62\63\65\x65\x31\66\x66\70\x62\x33\64\x33\70\145\141\x32\x39\70\x36\66\65\65\60\71\141\x38\x36\67", "\x34\x36\142\x61\63\x36\67\62\66\x33\x64\144\145\61\146\60\x31\x34\71\x39\x33\145\x36\63\67\62\67\146\62\x32\145\x39\x34\67\141\65\64\x61\x63\x38\63\x66\x35\61\60\61\71\x32\145\x36\x37\142\x62\145\x64\x37\66\x66\62\x66\x35\64\142\x35", "\x39\x65\67\63\71\x63\66\x35\x35\63\145\x61\146\146\145\x31\x61\146\x62\x62\x35\x62\66\65\x63\x65\x36\x62\x33\60\x36\x38\64\x63\70\62\142\x66\x31\65\70\142\141\71\141\146\66\145\x34\144\67\x66\x36\65\x37\x37\66\x30\62\143\x63\x32\64\x66", "\x66\62\x33\65\62\x32\x38\x61\62\71\x36\x66\62\66\141\x36\142\65\145\65\144\x36\x32\141\65\x32\63\71\x62\x39\60\143\x35\x64\x39\141\x31\142\x33\x63\141\x39\71\x62\x30\71\x38\70\x38\x39\x62\x63\144\67\x32\x33\66\66\70\65\141\66\x34\x61", "\65\61\x63\67\x37\x36\70\x32\145\144\66\61\x32\x39\70\x35\x30\141\66\66\63\61\x39\x34\142\x65\65\x35\70\x34\x63\65\x35\66\62\x64\67\145\x64\144\141\63\x64\65\x62\60\x35\144\60\x30\x30\67\x61\70\x39\x36\x37\x66\64\x38\x61\x63\144\x33", "\66\x62\145\67\x66\64\65\141\x30\71\x36\70\71\66\144\71\63\61\x66\x62\144\62\143\142\x66\66\x32\x62\x32\x62\63\x35\146\71\x31\x30\x36\x34\66\146\x38\61\62\x36\146\64\142\145\x33\x38\x63\x66\143\66\x66\64\x62\x38\x63\60\145\145\x32\x61", "\x39\142\63\60\x61\x66\71\146\x32\x64\62\145\x36\x65\64\x64\64\65\x32\x36\143\141\143\64\x32\x62\65\x32\141\66\x37\x35\144\x33\71\61\142\x34\x61\63\x64\x39\67\60\x35\63\65\145\x63\145\67\141\x39\63\x38\141\x62\x30\65\66\63\x39\x35\x63", "\x30\x34\x39\61\143\x35\66\x35\x32\60\143\143\146\143\x37\146\x31\70\61\x64\x65\146\x61\x34\x36\x33\60\71\62\x61\x63\63\143\x39\x63\x33\144\63\67\x36\146\x64\x37\x38\61\x36\x33\66\x36\x31\71\x62\67\70\x39\x33\71\144\x31\146\145\x64\60\66", "\x62\x31\x31\65\x34\141\x61\145\144\144\71\71\141\61\62\67\71\141\66\x31\x32\61\143\146\x66\145\x32\144\63\x31\143\x34\x33\67\63\x33\143\65\144\x65\71\144\x31\x30\x35\63\x66\66\x31\x61\65\x33\71\x30\64\146\60\x34\67\64\146\x61\x34\142", "\146\71\64\x39\142\145\x33\x65\x63\64\146\64\146\70\60\x34\64\145\143\x31\63\x34\x32\x31\62\144\x35\x39\70\x62\x62\x65\x31\61\60\x38\x31\64\x61\61\145\x66\144\65\x31\65\x39\61\62\70\x32\142\x64\x30\x37\x34\63\63\x35\142\x63\62\145\x38", "\x34\x39\x61\64\x34\61\x61\x37\143\141\x34\x39\x34\60\x32\145\67\x64\143\143\146\x66\x32\144\65\x37\x39\71\146\60\144\63\x37\x38\x63\x32\x63\x62\x33\x39\x62\x62\x32\71\x66\x63\67\65\66\x32\65\x61\x33\70\145\x31\65\144\x61\63\x32\141\146\142"); goto tBFUa; Phclv: } goto Cg_bm; vr6Qw: PU3Dt: goto Iwxqy; Uky2Q: function link_rewrite($str, $isoLang = null) { goto ReJfY; A_j4N: NRQph: goto JI1Nr; Vx1hI: $str = mb_strtolower($str, "\x75\x74\x66\x2d\70"); goto trL6q; vT42p: $str = Tools::replaceAccentedChars($str); goto A_j4N; tdUjQ: i2J_4: goto hSwA_; fWJpM: $str = strtolower($str); goto ACn7A; myzmF: $str = trim($str); goto IX23u; jvjiR: switch ($isoLang) { case "\x64\145": goto qQnaF; qQnaF: $patterns = array("\57\133\x5c\170\173\60\60\106\103\175\x5d\57\x75", "\x2f\x5b\134\x78\x7b\x30\x30\105\x34\x7d\x5d\57\165", "\57\x5b\134\x78\173\x30\x30\106\66\175\x5d\x2f\x75", "\57\x5b\x5c\x78\x7b\60\x30\104\x43\175\135\x2f\165", "\57\x5b\x5c\170\x7b\60\60\103\x34\175\135\x2f\x75", "\x2f\133\134\x78\x7b\x30\x30\104\x36\x7d\x5d\57\x75"); goto KQWi0; QSnGm: goto SCxWE; goto VRVNU; hN2Ua: $str = preg_replace($patterns, $replacements, $str); goto QSnGm; KQWi0: $replacements = array("\x75\145", "\x61\x65", "\x6f\145", "\x55\105", "\101\105", "\117\x45"); goto hN2Ua; VRVNU: default: goto jv4hR; GYpuI: $str = preg_replace($patterns, $replacements, $str); goto HTkkR; AdvTk: $replacements = array("\x75", "\x61", "\x61\145", "\157", "\x6f\x65", "\125", "\x41", "\101\105", "\117", "\x4f\105"); goto GYpuI; jv4hR: $patterns = array("\x2f\x5b\134\170\x7b\x30\x30\x46\103\x7d\135\x2f\165", "\57\x5b\x5c\x78\173\x30\60\105\x34\x7d\x5d\x2f\165", "\x2f\133\134\170\173\x30\60\105\x36\x7d\x5d\57\x75", "\57\133\x5c\x78\173\60\60\106\x36\175\135\57\x75", "\57\x5b\x5c\x78\x7b\60\61\x35\x33\x7d\x5d\57\x75", "\57\x5b\134\170\173\x30\x30\104\103\175\135\57\165", "\x2f\x5b\134\170\x7b\x30\60\x43\x34\175\135\x2f\x75", "\57\x5b\x5c\170\173\60\60\103\66\x7d\135\x2f\165", "\x2f\x5b\134\x78\x7b\x30\x30\x44\66\x7d\135\57\165", "\57\133\134\170\x7b\60\x31\x35\x32\175\135\x2f\x75"); goto AdvTk; HTkkR: } goto bVjd8; dT60b: tluMW: goto S9QOv; S9QOv: $str = preg_replace("\57\x5b\x5e\x61\55\x7a\101\55\132\x30\x2d\x39\x5c\x73\47\134\72\134\x2f\x5c\x5b\x5c\x5d\134\x2d\x5c\160\x4c\x5d\x2f\165", '', $str); goto tdUjQ; k6JeR: k_s8G: goto myzmF; R4fNC: if (!($isoLang && !$acceptedAccentedChars)) { goto k_s8G; } goto jvjiR; jPK8G: return $str; goto o3oOV; arIWn: SCxWE: goto k6JeR; skj6f: if (function_exists("\155\x62\137\x73\164\x72\164\x6f\154\157\167\x65\162")) { goto PbfWd; } goto fWJpM; ReJfY: if (!function_exists("\x6d\x62\137\x73\x74\x72\164\x6f\154\157\x77\x65\162")) { goto XPvd0; } goto Vx1hI; IX23u: if (!((!function_exists("\155\x62\x5f\163\164\x72\164\157\x6c\x6f\x77\x65\x72") || !$acceptedAccentedChars) && method_exists("\124\157\157\x6c\x73", "\162\145\160\x6c\x61\x63\x65\x41\143\143\145\156\x74\145\144\103\150\141\x72\x73"))) { goto NRQph; } goto vT42p; qS9SN: $acceptedAccentedChars = Configuration::get("\x50\x53\x5f\x41\x4c\114\x4f\x57\137\x41\x43\103\x45\x4e\124\x45\104\x5f\x43\x48\101\x52\123\x5f\125\122\x4c"); goto R4fNC; bVjd8: N9TdE: goto arIWn; ACn7A: PbfWd: goto jPK8G; atiXB: $str = str_replace(array("\x20", "\x2f"), "\x2d", $str); goto skj6f; trL6q: XPvd0: goto qS9SN; JI1Nr: if ($acceptedAccentedChars) { goto tluMW; } goto EkkJ1; EkkJ1: $str = preg_replace("\x2f\x5b\x5e\x61\x2d\x7a\x41\x2d\132\60\x2d\71\x5c\163\47\x5c\x3a\134\x2f\134\x5b\134\135\134\x2d\135\57", '', $str); goto sDbOj; hSwA_: $str = preg_replace("\x2f\x5b\x5c\x73\x27\134\72\134\57\x5c\133\x5c\x5d\55\135\x2b\57", "\x20", $str); goto atiXB; sDbOj: goto i2J_4; goto dT60b; o3oOV: } goto ICsXK; Mu9ZU: echo "\x63\x75\162\x6c\x5f\x69\x6e\x69\x74\40\x3a\40\113\x4f\x3c\x62\x72\x2f\76"; goto yR843; XwqAO: function extractArchive($file) { goto aQSnv; KF28t: goto ASGVC; goto RO21I; vGiMz: NDGnu: goto KF28t; cVvYy: goto NDGnu; goto odcTu; pAobJ: ASGVC: goto EGwhP; A7UHz: emU1s: goto vGiMz; ZE_aT: if ($zip->open($file) === true and $zip->extractTo($dir_name) and $zip->close()) { goto Sat2K; } goto wVAYH; YX3G1: if (class_exists("\x5a\151\x70\101\162\143\x68\x69\x76\145", false)) { goto HTXeR; } goto vtbJq; PTxoO: Sat2K: goto dmLM2; xUXYk: foreach ($list as $extractedFile) { goto iwVzQ; iwVzQ: if (!($extractedFile["\x73\x74\141\164\165\x73"] != "\157\153")) { goto O3EZd; } goto JS8Ow; k19VK: YFldP: goto PLE2A; JS8Ow: $success = false; goto UxXCE; UxXCE: O3EZd: goto k19VK; PLE2A: } goto opIu9; RO21I: ly40T: goto R7iwb; liSJS: $zip = new PclZip($file); goto UMVnn; EGwhP: @unlink($file); goto NupyS; wVAYH: $success = false; goto YyW49; VW0sb: require_once _PS_TOOL_DIR_ . "\x70\x63\x6c\x7a\x69\x70\x2f\x70\143\154\172\x69\x70\x2e\154\151\x62\x2e\x70\150\160"; goto bPTo1; ytnR9: $dir_name = dirname($file); goto DO25s; UMVnn: $list = $zip->extract(PCLZIP_OPT_PATH, $dir_name); goto xUXYk; qXBZ9: $zip = new ZipArchive(); goto ZE_aT; R7iwb: if (class_exists("\x50\143\x6c\x5a\151\x70")) { goto VtyWb; } goto VW0sb; opIu9: JRuhO: goto pAobJ; NupyS: return $success; goto sqv8O; aQSnv: $success = true; goto ytnR9; YyW49: goto emU1s; goto PTxoO; vtbJq: $success = false; goto cVvYy; bPTo1: VtyWb: goto liSJS; dmLM2: $success = true; goto A7UHz; odcTu: HTXeR: goto qXBZ9; DO25s: if (file_exists(_PS_TOOL_DIR_ . "\x70\143\154\172\151\x70\x2f\x70\x63\x6c\x7a\x69\x70\x2e\x6c\x69\x62\56\x70\x68\160")) { goto ly40T; } goto YX3G1; sqv8O: } goto ATCYK; p6c9G: function utf8_encode2($str) { goto IHBOr; ZYozo: $final_str = str_replace(chr(hexdec("\x38\60")), "\46\x23\x38\63\x36\x34\x3b", $final_str); goto Ip6K_; mNVHL: $final_str = str_replace(chr(hexdec("\70\67")), "\46\x23\x31\63\x35\x3b", $final_str); goto ZbZ4g; Mw2fm: $final_str = str_replace(chr(hexdec("\71\x42")), "\x26\x23\61\65\65\x3b", $final_str); goto mNYqu; c4g6X: $final_str = str_replace(chr(hexdec("\71\66")), "\x26\x23\x31\65\60\73", $final_str); goto DCquu; x55jW: $final_str = str_replace(chr(hexdec("\x39\x31")), "\x26\x23\61\64\x35\x3b", $final_str); goto Q7Cxw; mWJ0B: $final_str = str_replace(utf8_encode("\46\x23\x31\x35\70\73"), "\305\xbe", $final_str); goto HA6DI; WgS0h: $final_str = str_replace(chr(hexdec("\71\x39")), "\46\43\x31\65\x33\x3b", $final_str); goto QMFYy; jtJdO: $final_str = str_replace(chr(hexdec("\x38\x43")), "\x26\x23\x31\x34\60\73", $final_str); goto dtLi0; iqZr7: $final_str = str_replace(chr(hexdec("\x38\x33")), "\x26\x23\x31\63\61\x3b", $final_str); goto sl7nR; lbNbD: $final_str = str_replace(chr(hexdec("\x38\x35")), "\46\x23\61\63\x33\x3b", $final_str); goto yufVY; btH5L: $final_str = str_replace(utf8_encode("\46\43\61\x33\63\x3b"), "\342\200\xa6", $final_str); goto JvOCU; TZgHU: $final_str = str_replace(utf8_encode("\46\43\61\65\x33\x3b"), "\xe2\x84\242", $final_str); goto YCcVm; tWEIh: $final_str = str_replace(chr(hexdec("\x39\64")), "\x26\x23\61\x34\x38\73", $final_str); goto Z_BGX; hbcwI: $final_str = str_replace(utf8_encode("\x26\43\x31\x33\x37\73"), "\342\200\xb0", $final_str); goto Mr9bg; mNYqu: $final_str = str_replace(chr(hexdec("\x39\103")), "\x26\x23\x33\63\71\x3b", $final_str); goto C6f34; yo060: $final_str = str_replace(utf8_encode("\x26\x23\61\64\x37\73"), "\xe2\200\x9c", $final_str); goto TUgZp; Mr9bg: $final_str = str_replace(utf8_encode("\x26\x23\x31\63\70\73"), "\xc5\xa0", $final_str); goto QqC2Z; k2BEL: return $final_str; goto aD7ga; JvOCU: $final_str = str_replace(utf8_encode("\x26\43\61\63\64\73"), "\342\200\240", $final_str); goto KMiWo; NkTRD: $final_str = str_replace(utf8_encode("\46\43\61\63\61\x3b"), "\306\x92", $final_str); goto LwMOj; yufVY: $final_str = str_replace(chr(hexdec("\70\x36")), "\x26\x23\61\x33\64\x3b", $final_str); goto mNVHL; mMSeE: $final_str = str_replace(utf8_encode("\46\43\x31\x34\62\x3b"), "\xc5\275", $final_str); goto Oo1rX; ThiDG: $final_str = str_replace(utf8_encode("\x26\43\x31\63\66\x3b"), "\313\206", $final_str); goto hbcwI; wzVDu: $final_str = str_replace(chr(hexdec("\70\x39")), "\x26\43\61\63\67\73", $final_str); goto s0I3j; xzwo1: $final_str = str_replace(utf8_encode("\x26\43\61\65\60\x3b"), "\342\200\223", $final_str); goto YkfDn; XQb6B: $final_str = str_replace(utf8_encode("\46\43\x31\64\x30\x3b"), "\305\x92", $final_str); goto mMSeE; v6RSy: $final_str = str_replace(utf8_encode("\x26\x23\61\64\x39\x3b"), "\342\200\242", $final_str); goto xzwo1; Z_BGX: $final_str = str_replace(chr(hexdec("\x39\65")), "\46\x23\61\64\71\x3b", $final_str); goto c4g6X; vG7Ub: $final_str = str_replace(utf8_encode("\x26\43\61\64\x36\73"), "\xe2\x80\x99", $final_str); goto yo060; s0I3j: $final_str = str_replace(chr(hexdec("\x38\101")), "\46\x23\61\x33\70\x3b", $final_str); goto YRqDB; QMFYy: $final_str = str_replace(chr(hexdec("\x39\x41")), "\46\x23\x31\x35\x34\73", $final_str); goto Mw2fm; DCquu: $final_str = str_replace(chr(hexdec("\x39\67")), "\x26\43\61\65\x31\x3b", $final_str); goto kxC1U; lUbKn: $final_str = str_replace(chr(hexdec("\71\106")), "\46\43\x31\x35\71\x3b", $final_str); goto CO_65; dtLi0: $final_str = str_replace(chr(hexdec("\x38\x45")), "\x26\43\x31\x34\x32\73", $final_str); goto x55jW; YCcVm: $final_str = str_replace(utf8_encode("\x26\x23\x31\65\64\73"), "\305\xa1", $final_str); goto SLxSL; QqC2Z: $final_str = str_replace(utf8_encode("\46\x23\61\63\71\x3b"), "\xe2\200\271", $final_str); goto XQb6B; ZbZ4g: $final_str = str_replace(chr(hexdec("\70\70")), "\46\43\x31\63\x36\x3b", $final_str); goto wzVDu; SLxSL: $final_str = str_replace(utf8_encode("\x26\43\61\x35\x35\x3b"), "\342\200\xba", $final_str); goto mWJ0B; C6f34: $final_str = str_replace(chr(hexdec("\x39\x45")), "\46\x23\x31\65\x38\73", $final_str); goto lUbKn; kxC1U: $final_str = str_replace(chr(hexdec("\71\70")), "\x26\43\61\65\62\73", $final_str); goto WgS0h; vuGkr: $final_str = str_replace(utf8_encode("\46\43\x31\x33\60\x3b"), "\342\200\x9a", $final_str); goto NkTRD; YkfDn: $final_str = str_replace(utf8_encode("\x26\43\61\x35\x31\73"), "\342\x80\224", $final_str); goto LMczu; Mwf4o: $final_str = str_replace(utf8_encode("\x26\43\70\x33\x36\64\73"), "\342\202\254", $final_str); goto WGlbk; Ip6K_: $final_str = str_replace(chr(hexdec("\70\x32")), "\x26\x23\61\63\x30\x3b", $final_str); goto iqZr7; bVl37: $final_str = str_replace(chr(hexdec("\71\x33")), "\46\x23\x31\x34\x37\73", $final_str); goto tWEIh; CO_65: $final_str = utf8_encode($final_str); goto Mwf4o; Q7Cxw: $final_str = str_replace(chr(hexdec("\x39\62")), "\46\43\61\64\x36\x3b", $final_str); goto bVl37; LwMOj: $final_str = str_replace(utf8_encode("\46\43\61\x33\x32\x3b"), "\342\200\236", $final_str); goto btH5L; YRqDB: $final_str = str_replace(chr(hexdec("\70\102")), "\x26\43\61\63\71\x3b", $final_str); goto jtJdO; Oo1rX: $final_str = str_replace(utf8_encode("\x26\43\61\x34\x35\x3b"), "\xe2\200\230", $final_str); goto vG7Ub; KMiWo: $final_str = str_replace(utf8_encode("\x26\x23\x31\x33\65\x3b"), "\xe2\x80\241", $final_str); goto ThiDG; HA6DI: $final_str = str_replace(utf8_encode("\x26\x23\61\65\x39\x3b"), "\305\xb8", $final_str); goto k2BEL; IHBOr: $final_str = $str; goto ZYozo; sl7nR: $final_str = str_replace(chr(hexdec("\x38\64")), "\x26\43\x31\63\62\x3b", $final_str); goto lbNbD; LMczu: $final_str = str_replace(utf8_encode("\x26\43\61\65\x32\x3b"), "\xcb\234", $final_str); goto TZgHU; TUgZp: $final_str = str_replace(utf8_encode("\x26\43\x31\x34\70\73"), "\342\x80\235", $final_str); goto v6RSy; WGlbk: $final_str = str_replace(utf8_encode("\46\43\63\x33\x39\73"), "\305\223", $final_str); goto vuGkr; aD7ga: } goto vw4Nt; abLUA: function generateToken($string = null, $size = null) { goto TDe1J; QTMH4: if (!$size) { goto wbg1g; } goto XYqLr; z7N_7: Zm6RE: goto QTMH4; TDe1J: if ($string) { goto Zm6RE; } goto lX3Sb; XYqLr: return Tools::substr(hash("\x73\150\141\62\x35\66", $string), 0, $size); goto mG264; mG264: wbg1g: goto vNRka; lX3Sb: $string = date("\x59\x6d\x64\x48\x69\x73") . "\164\157\x6b\145\x6e" . rand(0, 100); goto z7N_7; vNRka: return hash("\163\150\x61\x32\65\x36", $string . _COOKIE_KEY_); goto q_xPH; q_xPH: } goto FnB9m; E8MkX: function dateFrtoUS($field) { goto zIKpG; gfM6y: $field = $fieldArr[2] . "\x2d" . $fieldArr[1] . "\x2d" . $fieldArr[0]; goto TcWIj; TcWIj: eiXWb: goto wZVyw; zIKpG: $field = str_replace("\57", "\x2d", $field); goto JP2Ul; JP2Ul: $field = str_replace("\x2e", "\55", $field); goto ZHsTa; wZVyw: return $field; goto I7HIU; ZHsTa: $fieldArr = explode("\x2d", $field); goto rvbpu; rvbpu: if (!(strlen($fieldArr[0]) == 2 && strlen($fieldArr[1]) == 2 && strlen($fieldArr[2]) == 4)) { goto eiXWb; } goto gfM6y; I7HIU: } goto NATC4; k2Mad: function dirCheckWritable($dir, &$files) { goto Tv1wS; YJ97w: foreach ($objects as $object) { goto N4HOK; RjntA: XFaNQ: goto mMdqV; N4HOK: if (!($object != "\56" && $object != "\56\56")) { goto rfiYz; } goto QXA7u; wEqh1: rfiYz: goto RxRoe; QXA7u: if (!($object == "\124\x68\165\x6d\142\163\56\x64\142" || $object == "\144\x65\x73\153\164\157\160\x2e\x69\156\151")) { goto XFaNQ; } goto pv97F; hQPxf: if (!is_dir($dir . "\x2f" . $object)) { goto erVJq; } goto v4Hva; KYQHn: goto NKNX2; goto RjntA; TUnc0: JpjRo: goto hQPxf; pv97F: @unlink($dir . "\57" . $object); goto KYQHn; v4Hva: dirCheckWritable($dir . "\57" . $object, $files); goto m6ZUQ; m6ZUQ: erVJq: goto wEqh1; JSVEX: $files[] = $dir . "\57" . $object; goto TUnc0; RxRoe: NKNX2: goto B6CNI; mMdqV: if (is_writable($dir . "\x2f" . $object)) { goto JpjRo; } goto JSVEX; B6CNI: } goto qaCzu; mpecW: if (!is_dir($dir)) { goto PLnJE; } goto Tjeym; Tjeym: $objects = scandir($dir); goto YJ97w; uwvTO: tQyEn: goto mpecW; qaCzu: Kk1QD: goto izDto; O916Y: if (is_writable($dir)) { goto tQyEn; } goto rn8tS; rn8tS: $files[] = $dir; goto uwvTO; Tv1wS: $dir = rtrim($dir, "\x2f"); goto O916Y; izDto: PLnJE: goto EqyPR; EqyPR: } goto XwqAO; EKV27: function getShopProtocol() { goto YcI23; aR7QV: gvUZM: goto w2nw0; FVg6Y: $proto = "\150\164\x74\x70"; goto Xm3pO; T3QGG: $proto = "\150\164\164\160\x73"; goto E8EvC; kJB0t: $proto = "\150\x74\x74\160\x73"; goto edGFZ; jR246: goto TwTtW; goto hR984; YAzug: return $proto . "\72\x2f\57"; goto Zr6Fw; PcTWp: goto TwTtW; goto qLtGO; o7kW7: if (!in_array($strl, array(1, "\157\x6e"))) { goto wGcX4; } goto XkYj1; XkYj1: $proto = "\x68\x74\x74\x70\163"; goto J9QtX; WLqn1: goto TwTtW; goto aR7QV; jZdnZ: $proto = "\150\x74\x74\x70\163"; goto wMsso; ll8UF: $proto = "\x68\164\x74\x70\163"; goto E2yFm; nJdDJ: $strl = Tools::strtolower($_SERVER["\x48\124\124\120\137\123\x53\114"]); goto JppyQ; YcI23: if (version_compare(_PS_VERSION_, "\x31\x2e\65\x2e\60\56\62", "\76\75")) { goto xLBp0; } goto FVg6Y; J9QtX: wGcX4: goto jR246; Wb31J: if (isset($_SERVER["\x48\x54\124\120\x5f\123\123\x4c"])) { goto XDRrH; } goto QXu56; WuPeK: L9hhL: goto CJkRX; Xm3pO: if (isset($_SERVER["\110\124\x54\x50\x53"])) { goto L9hhL; } goto fkG3_; Zr6Fw: goto wJE_9; goto iwAVF; CJkRX: $strl = Tools::strtolower($_SERVER["\x48\124\x54\120\x53"]); goto i0GOi; fkG3_: if (isset($_SERVER["\x53\123\x4c"])) { goto gvUZM; } goto Wu0HJ; A8yPA: goto TwTtW; goto TbNZa; hR984: Jg1qE: goto bO3Kr; w2nw0: $strl = Tools::strtolower($_SERVER["\123\123\x4c"]); goto o7kW7; QXu56: if (isset($_SERVER["\110\x54\x54\x50\137\130\137\106\117\x52\127\101\122\104\105\104\137\120\x52\117\x54\x4f"])) { goto j5Xfr; } goto Nqf8J; wcBca: $strl = Tools::strtolower($_SERVER["\110\x54\x54\x50\137\130\x5f\106\x4f\122\127\x41\x52\x44\105\104\137\120\122\117\x54\117"]) == "\150\x74\x74\x70\x73"; goto dGnCz; wMsso: Mj4eW: goto WLqn1; zRD9R: if (!in_array($strl, array(1, "\157\x6e"))) { goto MKy52; } goto ll8UF; i0GOi: if (!in_array($strl, array(1, "\157\x6e"))) { goto Mj4eW; } goto jZdnZ; Wu0HJ: if (isset($_SERVER["\x52\105\x44\x49\122\105\103\x54\137\110\124\x54\x50\123"])) { goto Jg1qE; } goto Wb31J; JppyQ: if (!in_array($strl, array(1, "\157\156"))) { goto DUPj0; } goto T3QGG; edGFZ: sFk59: goto uGuKq; B1V3M: return Tools::getShopProtocol(); goto AkmM3; Nqf8J: goto TwTtW; goto WuPeK; uGuKq: TwTtW: goto YAzug; TbNZa: XDRrH: goto nJdDJ; E2yFm: MKy52: goto A8yPA; dGnCz: if (!in_array($strl, array(1, "\x6f\156"))) { goto sFk59; } goto kJB0t; E8EvC: DUPj0: goto PcTWp; iwAVF: xLBp0: goto B1V3M; qLtGO: j5Xfr: goto wcBca; bO3Kr: $strl = Tools::strtolower($_SERVER["\122\x45\x44\111\x52\x45\x43\124\137\x48\124\124\120\x53"]); goto zRD9R; AkmM3: wJE_9: goto TAv2K; TAv2K: } goto CJAMO; D9Qwb: function makeCallToOurApi($url, $headers = array(), $posts = array(), $timeout = 30) { goto QPif5; KZJw9: RJM8b: goto zSjV9; NfCgc: kwlOd: goto LZRjN; RvcoL: return $return; goto cA5tc; DITI1: $licence = SCI::getConfigurationValue("\123\x43\137\114\111\x43\105\x4e\123\105\137\x4b\x45\131"); goto q_2EN; tdgC2: $return = json_decode($ret, true); goto RvcoL; q_2EN: foreach ($headers as $key => $value) { goto h3VWU; jhAcc: DiCbt: goto g70Ac; vv1nJ: FQ1iw: goto OF4Bu; h3VWU: if (strtolower($key) == "\x6c\151\143\145\x6e\x73\145" && $value == "\43") { goto DiCbt; } goto B2HLp; B2HLp: if (strtolower($key) == "\x75\x72\x6c\x63\141\154\154\x69\156\147" && $value == "\x23") { goto nQNTM; } goto bOWBs; OF4Bu: VL5gr: goto wPGwh; eYvDf: $headers[$key] = $access_details["\144\x6f\155\141\x69\x6e"]; goto vv1nJ; bp1ma: nQNTM: goto eYvDf; g70Ac: $headers[$key] = $licence; goto biLLR; biLLR: goto FQ1iw; goto bp1ma; bOWBs: goto FQ1iw; goto jhAcc; wPGwh: } goto KZJw9; LZRjN: $ret = sc_file_get_contents("\150\x74\164\160\163\72\57\x2f\x61\160\151\x2e\163\x74\x6f\162\x65\x63\x6f\155\x6d\141\156\x64\x65\x72\x2e\143\157\155\57" . $url, "\x50\x4f\x53\124", $posts, $headers, $timeout); goto tdgC2; QPif5: global $access_details; goto fWwjU; zSjV9: foreach ($posts as $key => $value) { goto oCRUU; GSwKC: goto VCaUU; goto f8Q8q; f8Q8q: cZpiH: goto dyleq; zi_WH: goto VCaUU; goto c09_9; Ce2gt: MsBHs: goto R_ehw; GSviX: VCaUU: goto Ce2gt; f40P8: $posts[$key] = $licence; goto GSwKC; dyleq: $posts[$key] = $access_details["\x64\x6f\x6d\141\x69\x6e"]; goto GSviX; cruQQ: if (strtolower($key) == "\x75\x72\154\143\141\154\x6c\x69\156\147" && $value == "\43") { goto cZpiH; } goto zi_WH; c09_9: UXR86: goto f40P8; oCRUU: if (strtolower($key) == "\154\151\143\145\156\x73\x65" && $value == "\x23") { goto UXR86; } goto cruQQ; R_ehw: } goto NfCgc; fWwjU: $return = null; goto DITI1; cA5tc: } goto B_3vP; ljNKZ: if (!isset($_GET["\164\162\x61\x6e\163\160\x6f\x72\164"])) { goto byJyX; } goto j4D9b; FaXYP: function sc_in_array($valueToCheck, $sourceArray, $variableName) { goto CyVAU; QLdJo: $arrayFlipCache[$variableName] = array_fill_keys($sourceArray, 1); goto ITtGP; PmrUk: if (!($valueToCheck == '')) { goto jM_qz; } goto SKn8M; SKn8M: unset($arrayFlipCache[$variableName]); goto f1ZwI; CMi38: return isset($arrayFlipCache[$variableName][$valueToCheck]); goto heDfk; CyVAU: global $arrayFlipCache; goto PmrUk; f1ZwI: jM_qz: goto olWea; olWea: if (!(!empty($sourceArray) && !sc_array_key_exists($variableName, $arrayFlipCache) || isset($arrayFlipCache[$variableName]) && count($arrayFlipCache[$variableName]) != count($sourceArray))) { goto T1mbh; } goto QLdJo; ITtGP: T1mbh: goto CMi38; heDfk: } goto Zw0RB; DkbFU: function sizeFormat($size, $round = 1) { goto BXvyg; UzfrU: if ($size < 1024 * 1024) { goto uDzMe; } goto GW_CA; Hf8FI: goto ri0t2; goto p3GUF; b_F09: $size = round($size / 1024, (int) $round); goto BbD39; BXvyg: if ($size < -1024) { goto Wik2y; } goto UzfrU; B5mY2: $size = round($size / (1024 * 1024), (int) $round); goto MVvfq; p3GUF: IAFMV: goto B5mY2; MVvfq: return $size . "\x20\x4d\x6f"; goto jDmq1; jDmq1: ri0t2: goto jNCGG; jNCGG: goto bLty4; goto CaGCz; JNx_5: Wik2y: goto IbrDH; geOn3: return $size . "\x20\x47\x6f"; goto Hf8FI; GW_CA: if ($size < 1024 * 1024 * 1024) { goto IAFMV; } goto YEdUN; iIrNg: oo2o7: goto cAEyD; BbD39: return $size . "\x20\x4b\157"; goto aAuqX; YEdUN: $size = round($size / (1024 * 1024 * 1024), (int) $round); goto geOn3; IbrDH: return $size . "\40\157\143\x74\145\x74\163"; goto iIrNg; ndZsL: goto oo2o7; goto JNx_5; CaGCz: uDzMe: goto b_F09; aAuqX: bLty4: goto ndZsL; cAEyD: } goto RgeaQ; wD_sz: function isCsv($filesInfo, $formUpload = false) { goto gsBdF; g3IYT: zjaxB: goto iIIQF; r6_0Q: $csvMimes = array("\164\x65\170\164\57\x78\55\143\157\155\155\x61\55\x73\145\160\x61\162\141\164\145\x64\55\166\x61\154\165\x65\163", "\x74\145\170\164\57\143\157\155\x6d\141\55\x73\x65\x70\141\162\x61\164\145\x64\55\x76\x61\x6c\x75\145\x73", "\x61\160\x70\154\x69\143\x61\164\151\x6f\x6e\57\x6f\143\x74\x65\x74\55\x73\x74\x72\145\x61\155", "\x61\x70\160\x6c\x69\143\141\x74\x69\157\156\x2f\166\x6e\144\x2e\155\x73\55\x65\x78\143\x65\x6c", "\x61\x70\x70\154\151\143\x61\x74\151\x6f\x6e\57\x78\x2d\x63\163\x76", "\x74\145\x78\x74\57\170\55\x63\x73\x76", "\164\145\170\164\57\x63\163\x76", "\141\x70\x70\x6c\151\143\x61\164\x69\x6f\x6e\x2f\143\x73\x76", "\x61\160\x70\154\x69\x63\141\164\x69\157\x6e\57\145\x78\x63\145\154", "\141\x70\x70\x6c\151\x63\141\x74\x69\157\x6e\x2f\166\156\144\56\155\x73\x65\170\143\x65\154", "\164\x65\x78\164\x2f\160\154\141\x69\156", "\x74\145\170\164\x2f\x68\164\155\x6c", "\x74\x65\x78\164\x2f\x78\55\x41\154\x67\x6f\x6c\66\70", "\x6d\x65\x73\163\141\147\145\x2f\x6e\x65\x77\x73"); goto G1bwg; gsBdF: if (!$formUpload) { goto JN5Lx; } goto uYcLq; QIBGI: F4aG7: goto whNIs; a1Vnf: if (!($extension !== "\143\163\166")) { goto EhPm3; } goto F_efg; gu2GI: if (isset($fileDetail["\145\x78\x74\x65\156\x73\x69\157\x6e"])) { goto YJgWP; } goto Hlf6n; AMk5N: $realMime = getFileMime($filesInfo["\x74\x6d\160\x5f\156\x61\155\145"]); goto r6_0Q; Pa_kv: $extension = $fileDetail["\145\170\164\145\156\163\x69\157\156"]; goto a1Vnf; uYcLq: if (!(!is_uploaded_file($filesInfo["\164\x6d\160\137\156\x61\x6d\145"]) || $filesInfo["\145\162\162\157\162"] !== UPLOAD_ERR_OK)) { goto F4aG7; } goto TKB6G; G1bwg: if (in_array($realMime, $csvMimes)) { goto zjaxB; } goto tCi6I; TKB6G: return false; goto QIBGI; Hlf6n: return false; goto IUVyd; whNIs: JN5Lx: goto qV40w; tCi6I: return false; goto g3IYT; F_efg: return false; goto xvQGS; iIIQF: return true; goto TGcaM; xvQGS: EhPm3: goto AMk5N; IUVyd: YJgWP: goto Pa_kv; qV40w: $fileDetail = pathinfo($filesInfo["\x6e\141\x6d\145"]); goto gu2GI; TGcaM: } goto abLUA; vw4Nt: function utf8_encode_array(&$array) { goto H88vi; nCjOV: RFEzU: goto nakUT; V4gaY: $array = utf8_encode2($array); goto p4EBF; bm15l: f_rBR: goto RLDxf; nakUT: array_walk($array, "\165\x74\146\x38\x5f\145\x6e\143\157\144\x65\137\141\x72\x72\x61\x79"); goto bm15l; H88vi: if (is_array($array)) { goto RFEzU; } goto V4gaY; p4EBF: goto f_rBR; goto nCjOV; RLDxf: } goto UjyCJ; C010x: function isImage($filesInfo, $formUpload = false) { goto d8qDP; d8qDP: if (!$formUpload) { goto YoWe2; } goto wQtOn; VvJO9: return false; goto JSQdo; iEi38: asyLA: goto anuO2; gYi3l: if (!version_compare(phpversion(), "\67\x2e\x31", "\76\x3d")) { goto asyLA; } goto uu7B0; QFWfY: PrI9y: goto MOpfZ; sm02e: return false; goto evJo5; TsNv7: $mimeByExtension = array("\x6a\x70\145\x67" => image_type_to_mime_type(IMAGETYPE_JPEG), "\152\x70\x67" => image_type_to_mime_type(IMAGETYPE_JPEG), "\x70\156\x67" => image_type_to_mime_type(IMAGETYPE_PNG), "\147\x69\146" => image_type_to_mime_type(IMAGETYPE_GIF), "\x62\x6d\x70" => image_type_to_mime_type(IMAGETYPE_BMP)); goto gYi3l; evJo5: CEXEh: goto QPO6h; XoGOV: if (isset($fileDetail["\145\170\x74\x65\156\163\x69\157\x6e"])) { goto Gsok7; } goto wGJLl; anuO2: $fileDetail = pathinfo($filesInfo["\x6e\x61\x6d\x65"]); goto XoGOV; TdAjs: $extension = $fileDetail["\x65\170\164\145\x6e\x73\x69\157\156"]; goto UdFXI; wQtOn: if (!(!is_uploaded_file($filesInfo["\164\155\x70\137\156\x61\x6d\x65"]) || $filesInfo["\145\162\162\157\162"] !== UPLOAD_ERR_OK)) { goto FLoFQ; } goto VvJO9; U7chz: if (!($typeMimeFromExtension !== $realMime)) { goto PrI9y; } goto PC1Ex; MOpfZ: switch ($typeMimeFromExtension) { case "\151\155\141\147\145\x2f\x6a\160\145\x67": return (bool) imagecreatefromjpeg($filesInfo["\164\155\160\137\156\x61\155\x65"]); case "\151\155\141\147\x65\57\160\156\147": return (bool) imagecreatefrompng($filesInfo["\x74\x6d\160\137\156\141\155\x65"]); case "\x69\x6d\141\x67\x65\x2f\x67\151\146": return (bool) imagecreatefromgif($filesInfo["\x74\155\x70\x5f\156\141\x6d\145"]); case "\x69\155\141\147\145\x2f\x62\155\x70": return (bool) imagecreatefrombmp($filesInfo["\x74\x6d\160\137\156\x61\x6d\145"]); case "\x69\x6d\141\147\145\57\x77\145\142\160": return (bool) imagecreatefromwebp($filesInfo["\x74\x6d\160\x5f\x6e\x61\x6d\145"]); default: return false; } goto kYUxE; gMQ_8: YoWe2: goto TsNv7; UdFXI: if (isset($mimeByExtension[$extension])) { goto CEXEh; } goto sm02e; JSQdo: FLoFQ: goto gMQ_8; PC1Ex: return false; goto QFWfY; c8kIZ: Gsok7: goto TdAjs; Qf2Dn: $typeMimeFromExtension = $mimeByExtension[$extension]; goto U7chz; uu7B0: $allowedMimes["\167\145\x62\160"] = image_type_to_mime_type(IMAGETYPE_WEBP); goto iEi38; HbXwV: XmlS7: goto nbRVs; QPO6h: $realMime = getFileMime($filesInfo["\x74\155\160\x5f\x6e\141\155\145"]); goto Qf2Dn; kYUxE: bgsjr: goto HbXwV; wGJLl: return false; goto c8kIZ; nbRVs: } goto wD_sz; ATCYK: function sc_file_get_contents($url, $method = "\107\x45\x54", $stream_content = array(), $stream_header = array(), $timeout = 30) { goto MBdyP; AVLIs: $opts["\x68\164\164\x70"]["\150\145\141\144\145\162"] = $header; goto F8H9b; MD_pG: a_a_7: goto EGEw2; z1qhN: curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); goto oUfpH; PJCXW: g09Mx: goto l5XNL; tmUcC: if ($opts["\x68\164\x74\160"]["\x6d\x65\x74\150\157\x64"] == "\x47\x45\124") { goto sUs3l; } goto OyDhb; AuIiI: try { $content = @file_get_contents($url, false, $stream_context); } catch (Exception $e) { $errorMessage = sprintf("\x73\151\x6d\160\x6c\145\40\146\151\x6c\145\x5f\x67\145\164\137\x63\x6f\156\x74\145\x6e\164\163\40\146\141\151\154\x65\x64\x20\x74\157\40\x64\x6f\x77\156\154\x6f\141\x64\40\45\x73\40\72\40\x25\163", $url, $e->getMessage()); } goto GsRUj; uxph8: if (empty($stream_header)) { goto AaM5u; } goto eByXI; L4_qj: curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto FstC5; qG6lz: $header[] = "\x50\x72\x61\147\155\x61\72\x20"; goto Q26Zq; X4P_m: curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data); goto bEWwk; J2uD8: $curl = curl_init(); goto q1GU1; nkWjg: $content = curl_exec($curl); goto DUY2J; rIIQj: $stream_context = @stream_context_create($opts); goto AuIiI; D75ZI: gtDYf: goto X9ABJ; eByXI: foreach ($stream_header as $addHeader) { $header[] = $addHeader; eNDMT: } goto PJCXW; F8H9b: HMuZ0: goto LzyaY; Rm7Eo: goto ppAQ3; goto WzYvg; XhFD_: curl_setopt($curl, CURLOPT_MAXREDIRS, 5); goto nkWjg; EGEw2: curl_setopt($curl, CURLOPT_ENCODING, "\147\172\x69\x70\54\x64\145\146\x6c\141\x74\x65"); goto v86SX; tbbbE: $header[] = "\101\x63\143\x65\x70\164\55\x43\x68\x61\x72\163\145\164\72\x20\111\123\x4f\55\x38\x38\65\71\x2d\61\54\165\x74\x66\55\x38\x3b\x71\x3d\60\x2e\x37\54\x2a\x3b\161\75\60\x2e\67"; goto z2KaW; Tbqkf: bPEA6: goto dxGyY; Gb2yq: if (empty($opts["\x68\x74\164\160"]["\150\x65\141\144\x65\162"])) { goto a_a_7; } goto T2W8v; v86SX: curl_setopt($curl, CURLOPT_AUTOREFERER, true); goto L4_qj; r6DNV: if ($is_local_file) { goto eqP2f; } goto xklbA; PjCp5: $content = false; goto gUucJ; mnSoA: $errorMessage = sprintf("\146\x69\x6c\x65\x5f\x67\145\x74\x5f\143\157\156\164\x65\156\164\x73\x5f\143\165\x72\154\x20\x66\141\x69\154\145\144\x20\x74\157\40\x64\x6f\167\156\x6c\157\x61\x64\40\45\x73\40\72\x20\x28\145\x72\x72\157\x72\x20\143\157\x64\x65\40\x25\144\x29\40\x25\x73", $url, curl_errno($curl), curl_error($curl)); goto D75ZI; oUfpH: curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, (int) $opts["\150\x74\164\x70"]["\164\151\155\x65\x6f\x75\164"]); goto QGTFv; S9apv: ppAQ3: goto AKEoP; gxwMw: SXzhE: goto f0G9p; d1U4R: $url .= "\x3f" . $stream_content; goto zUWl9; xd_jU: curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "\120\117\x53\124"); goto kuyfD; bvvDL: if (!($content === false)) { goto JM6qc; } goto Pgiy2; g9GVP: goto xR6jS; goto DQsHM; Pgiy2: SCI::addLog("\x53\x74\157\x72\x65\x43\x6f\x6d\x6d\x61\x6e\x64\x65\162\x20\163\143\137\x66\x69\154\x65\137\147\145\164\x5f\x63\157\156\x74\145\156\164\x73\40\x3a\x20" . $errorMessage, 1, null, null, null, true); goto b1I3V; P3p2Z: parse_str($opts["\x68\164\x74\160"]["\143\157\156\164\x65\x6e\x74"], $post_data); goto X4P_m; X9ABJ: curl_close($curl); goto rcsXz; AKEoP: return $content; goto rTNAg; zUWl9: xR6jS: goto Tbqkf; rcsXz: gN7Jf: goto OqeyP; l5XNL: AaM5u: goto qG6lz; DUY2J: $info = curl_getinfo($curl); goto xLuDN; FstC5: if (!($opts["\x68\164\164\160"]["\x6d\145\164\150\x6f\144"] == "\120\117\x53\124")) { goto SXzhE; } goto xd_jU; e9b0V: if (!in_array(strtolower($ini_fopen), array("\x6f\156", "\x74\x72\x75\x65", "\x31"))) { goto WOajs; } goto rIIQj; QGTFv: curl_setopt($curl, CURLOPT_TIMEOUT, (int) $opts["\x68\164\x74\x70"]["\164\x69\x6d\145\x6f\x75\x74"]); goto Qraiw; LzyaY: if (empty($stream_content)) { goto bPEA6; } goto fwSFu; dxGyY: if (!function_exists("\x63\165\162\x6c\x5f\x69\156\151\x74")) { goto gN7Jf; } goto J2uD8; YN0T2: $header = array(); goto x3r5q; GsRUj: WOajs: goto hZPZE; MBdyP: $is_local_file = !preg_match("\x2f\x5e\150\164\x74\160\163\77\72\134\x2f\x5c\57\57", $url); goto PjCp5; xLuDN: if (!($content === false)) { goto gtDYf; } goto mnSoA; r8PX7: $header[] = "\103\x61\143\x68\x65\x2d\x43\157\156\164\x72\157\x6c\72\x20\x6d\x61\x78\x2d\x61\x67\x65\75\60"; goto hheY9; HJ_1s: $header[0] .= "\x74\145\x78\x74\x2f\x68\x74\x6d\x6c\x3b\161\x3d\x30\56\x39\54\164\x65\170\164\x2f\160\x6c\141\x69\x6e\73\161\x3d\x30\56\70\54\x69\x6d\141\x67\x65\57\160\156\x67\54\52\x2f\x2a\x3b\161\x3d\60\56\65"; goto r8PX7; Q26Zq: if (empty($header)) { goto HMuZ0; } goto AVLIs; gUucJ: $errorMessage = ''; goto r6DNV; rkRQp: $content = @file_get_contents($url); goto S9apv; bEWwk: oo_bs: goto gxwMw; b1I3V: $content = ''; goto OKQss; DQsHM: sUs3l: goto d1U4R; Qraiw: curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); goto XhFD_; f0G9p: curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, $opts["\150\x74\164\160"]["\163\163\x6c"]["\x76\x65\162\151\x66\x79\137\x70\145\145\162"]); goto z1qhN; hheY9: $header[] = "\x43\157\156\156\x65\143\x74\x69\x6f\x6e\72\40\x6b\x65\145\x70\55\x61\x6c\151\x76\145"; goto IVvcn; fwSFu: $stream_content = http_build_query($stream_content); goto tmUcC; IVvcn: $header[] = "\113\x65\145\160\x2d\101\x6c\x69\x76\x65\72\x20\x33\x30\60"; goto tbbbE; WzYvg: eqP2f: goto rkRQp; hZPZE: Sl_Hq: goto bvvDL; q1GU1: curl_setopt($curl, CURLOPT_URL, $url); goto vkD9N; OyDhb: $opts["\150\164\x74\160"]["\x63\x6f\x6e\164\x65\156\164"] = $stream_content; goto g9GVP; OKQss: JM6qc: goto Rm7Eo; vkD9N: curl_setopt($curl, CURLOPT_USERAGENT, "\x53\164\x6f\x72\145\x20\103\157\x6d\155\141\x6e\x64\x65\162\40\x28\150\x74\164\x70\x73\72\57\x2f\x77\x77\x77\x2e\x73\164\x6f\162\x65\143\x6f\x6d\x6d\x61\x6e\x64\145\162\56\x63\157\x6d\x29"); goto Gb2yq; OqeyP: if (!($content === false)) { goto Sl_Hq; } goto oUu53; z2KaW: $header[] = "\101\x63\143\145\x70\164\x2d\x4c\x61\156\x67\165\x61\147\145\72\40\145\x6e\55\165\163\54\145\x6e\x3b\161\75\x30\56\x35"; goto uxph8; xklbA: $opts = array("\x68\x74\164\160" => array("\155\145\x74\150\157\x64" => strtoupper($method), "\x74\x69\155\x65\x6f\165\x74" => $timeout, "\163\x73\154" => array("\x76\145\162\151\x66\171\x5f\160\145\x65\x72" => 0))); goto YN0T2; T2W8v: curl_setopt($curl, CURLOPT_HTTPHEADER, $opts["\x68\164\164\x70"]["\150\145\141\144\145\x72"]); goto MD_pG; kuyfD: if (!isset($opts["\x68\164\164\x70"]["\143\157\x6e\x74\x65\x6e\164"])) { goto oo_bs; } goto P3p2Z; x3r5q: $header[0] = "\101\x63\143\145\x70\164\x3a\x20\164\145\170\x74\57\x78\x6d\x6c\54\x61\160\x70\x6c\x69\x63\x61\164\x69\157\x6e\x2f\x78\155\x6c\x2c\x61\x70\160\x6c\x69\143\141\x74\x69\157\x6e\x2f\170\x68\164\155\154\53\170\x6d\154\x2c"; goto HJ_1s; oUu53: $ini_fopen = ini_get("\x61\154\154\157\167\137\165\x72\x6c\x5f\146\x6f\160\x65\x6e"); goto e9b0V; rTNAg: } goto D9Qwb; uDm_I: function getGridImageHeight() { return 80; } goto m353B; PG2IQ: function access_details() { goto A6z2e; aYCP5: $access_details["\x73\145\162\x76\x65\x72\137\x69\160"] = @gethostbyname($access_details["\x73\145\x72\x76\x65\x72\137\150\x6f\x73\x74\x6e\x61\155\145"]); goto aB99n; Md8Ml: ob_end_clean(); goto LiMHR; A6z2e: ob_start(); goto oVOv_; eCfom: $access_details["\x64\151\162\145\x63\x74\157\x72\171"] = scrape_phpinfo($list, "\x53\x43\122\111\120\124\x5f\x46\x49\114\x45\116\101\115\105"); goto xps0W; LiMHR: $list = strip_tags($phpinfo); goto KwT0Y; oVOv_: @phpinfo(INFO_GENERAL); goto k0ovl; P72zg: foreach ($access_details as $key => $value) { $access_details[$key] = $access_details[$key] ? $access_details[$key] : "\x55\x6e\153\x6e\157\x77\x6e"; pWS9C: } goto RhJo8; RhJo8: eejb5: goto DFEXA; aB99n: $access_details["\144\x6f\x6d\141\x69\156"] = $access_details["\144\x6f\x6d\x61\x69\x6e"] && strlen($access_details["\144\157\x6d\141\x69\156"]) < 50 ? $access_details["\144\x6f\x6d\141\151\156"] : $_SERVER["\x48\124\x54\120\x5f\110\x4f\123\x54"]; goto nfLU1; KwT0Y: $access_details = array(); goto Sfnav; Sfnav: $access_details["\144\157\155\141\x69\x6e"] = scrape_phpinfo($list, "\x48\124\124\x50\137\110\x4f\x53\124"); goto D0yX_; DFEXA: return $access_details; goto G3yZm; k0ovl: $phpinfo = ob_get_contents(); goto Md8Ml; xps0W: $access_details["\x73\145\x72\166\145\162\x5f\150\x6f\x73\164\x6e\141\x6d\x65"] = scrape_phpinfo($list, "\123\171\163\x74\145\155"); goto aYCP5; nfLU1: $access_details["\151\160"] = $access_details["\x69\x70"] && strlen($access_details["\151\160"]) < 50 ? $access_details["\x69\160"] : $_SERVER["\123\105\122\x56\x45\122\x5f\101\104\x44\x52"]; goto BsA5l; D0yX_: $access_details["\x69\160"] = scrape_phpinfo($list, "\123\105\x52\x56\x45\122\137\101\104\x44\x52"); goto eCfom; BsA5l: $access_details["\x64\151\x72\145\143\x74\157\x72\x79"] = $access_details["\144\151\x72\x65\x63\x74\x6f\162\x79"] ? $access_details["\144\x69\x72\145\143\x74\x6f\x72\x79"] : realpath(SC_DIR . "\56\56\x2f"); goto P72zg; G3yZm: } goto dADmh; Aoinh: function countChars($txt) { goto snw7Q; iKjPa: return iconv_strlen($cleanedTxt); goto DImWH; cJXed: $cleanedTxt = html_entity_decode($cleanedTxt); goto HFGW9; SmMoM: return Tools::strlen($cleanedTxt); goto tJ2_V; snw7Q: $pattern = "\x2f\50\134\x6e\174\134\162\51\57\x6d"; goto DwYdh; HFGW9: if (!function_exists("\151\143\x6f\x6e\x76\x5f\x73\x74\x72\x6c\x65\x6e")) { goto qohJx; } goto iKjPa; DwYdh: $cleanedTxt = preg_replace($pattern, '', strip_tags($txt)); goto cJXed; DImWH: qohJx: goto SmMoM; tJ2_V: } goto xIqSW; o0qjE: function getToolsList() { goto BD1T4; ecx9A: naAfO: goto jr5S9; BD1T4: $tools = array(); goto Lv4kC; jr5S9: Gk1H1: goto QCheH; MBU0F: foreach ($files as $file) { goto QOOdA; xa3Od: if (!is_dir(SC_TOOLS_DIR . $file)) { goto iDZpd; } goto e4CSJ; QOOdA: if (!($file != "\56" && $file != "\x2e\56")) { goto AxlDL; } goto xa3Od; ABKW0: iDZpd: goto z0dw8; QL7Lp: yEsWC: goto lT2q3; e4CSJ: $tools[] = $file; goto ABKW0; z0dw8: AxlDL: goto QL7Lp; lT2q3: } goto ecx9A; QCheH: return $tools; goto Vzc1u; jiMI0: @($files = scandir(SC_TOOLS_DIR)); goto MBU0F; Lv4kC: if (!is_dir(SC_TOOLS_DIR)) { goto Gk1H1; } goto jiMI0; Vzc1u: } goto Uky2Q; rVLnj: die; goto utcWI; f22L7: goto Tq3es; goto X8htJ; hnKoa: function scrape_phpinfo($all, $target) { goto Kr8qK; n3Pf0: IvYgf: goto PyE_i; yFY67: $all = explode($slash, $all); goto KBKZ1; lRLHX: $slash = "\x2f"; goto yFY67; zzVjB: if (!($target == "\123\x43\122\111\120\x54\x5f\x46\x49\x4c\105\x4e\101\115\105")) { goto zuGSz; } goto lRLHX; HRAHe: $all = trim($all[0]); goto khWPs; w4AXI: return false; goto WP4FV; FxhH0: zuGSz: goto Th2LE; khWPs: if (!($target == "\123\x79\163\x74\145\155")) { goto useYV; } goto bLG76; Z1VgY: $all = trim($all[strtolower($all[0]) == "\167\x69\x6e\x64\x6f\167\x73" && strtolower($all[1]) == "\x6e\x74" ? 2 : 1]); goto KJRyk; KBKZ1: array_pop($all); goto KkpMf; KJRyk: useYV: goto zzVjB; BidBj: return false; goto n3Pf0; bLG76: $all = explode("\40", $all); goto Z1VgY; SZOGg: if (!(count($all) < 2)) { goto IvYgf; } goto BidBj; KkpMf: $all = implode($slash, $all); goto FxhH0; Kr8qK: $all = explode($target, $all); goto SZOGg; Th2LE: if (!(substr($all, 1, 1) == "\x5d")) { goto w0H4m; } goto w4AXI; WP4FV: w0H4m: goto CXFNz; CXFNz: return $all; goto YU0eX; PyE_i: $all = explode("\xa", $all[1]); goto HRAHe; YU0eX: } goto PG2IQ; rZEZd: function pInSQL($string) { goto U_wxf; U_wxf: $string = pSQL($string); goto qH2Ed; qH2Ed: $string = explode("\54", $string); goto QOqkU; Vyaqj: return implode("\54", $string); goto Fp52S; wyTwf: $string = array_map("\151\x6e\x74\166\141\154", $string); goto Vyaqj; QOqkU: $string = array_unique($string); goto wyTwf; Fp52S: } goto oxeqA; m353B: function cleanXMLContent($buffer) { goto ZIoq1; B2c7w: dAscE: goto pWZuD; ZIoq1: if (strpos($buffer, "\x3c" . "\77\170\x6d\x6c") !== false) { goto dAscE; } goto mJgf6; B0r4x: goto YgasI; goto B2c7w; pWZuD: return ltrim($buffer); goto n9jmO; mJgf6: return $buffer; goto B0r4x; n9jmO: YgasI: goto Wemrx; Wemrx: } goto LwqRW; bGfPo: function scDateTime($timestamp, $timeZone) { goto VdQCY; FU27F: $date->setTimestamp($timestamp); goto QI8fd; QI8fd: try { $date->setTimezone(new DateTimeZone($timeZone)); } catch (Throwable $e) { return $date; } goto tjTkx; tjTkx: return $date; goto q_tYp; VdQCY: $date = new DateTime(); goto FU27F; q_tYp: } goto BDQtL; FnB9m: function cleanLineBreakForHtmlFieldInGrid($html) { goto nc6Y3; pGuaB: foreach ($patternList as $pattern => $replacement) { $html = preg_replace($pattern, $replacement, $html); wvY53: } goto zePJW; zePJW: Y7Xow: goto EhbXW; EhbXW: return trim($html); goto SDr4u; nc6Y3: $patternList = array("\43\133\xd\174\12\x5d\x3f\50\74\x62\x72\x5b\x20\x5d\x3f\133\134\x2f\135\77\x3e\51\x5b\15\x7c\xa\135\77\43\x69" => "\x24\61", "\x23\x28\x3c\134\57\x5c\167\x2b\x3e\51\133\xd\174\12\x5d\x7b\61\x2c\x35\x7d\50\x3c\x5c\x77\x2b\x3e\x29\x5b\xd\x7c\xa\135\77\x23\x69" => "\x24\61\44\x32", "\43\x28\x3c\134\x77\x2b\76\51\133\xd\174\12\x5d\173\x31\54\65\x7d\50\56\x2a\51\50\74\x5c\x2f\134\167\x2b\x3e\51\43\x69" => "\x24\61\44\x32\x24\x33"); goto pGuaB; SDr4u: } goto bGax0; YxWzI: if (function_exists("\x63\x75\162\x6c\x5f\x69\x6e\151\x74")) { goto PU3Dt; } goto Mu9ZU; P3k1i: function _l($str, $needAddslashes = false, $arrayOfValues = array()) { goto k5e4h; s0JrR: hFafp: goto tW3bz; RHY_l: $str = vsprintf($str, $arrayOfValues); goto DhNl0; r_9CM: goto sbSyh; goto ZRbxP; BW4Oi: eMQs4: goto nTAV1; x3CIG: return $needAddslashes ? addslashes($str) : $str; goto r_9CM; So3om: sbSyh: goto jzSr8; XYkWk: $str = $LANG_EN[$str]; goto sHRSj; JupR4: if (empty($arrayOfValues)) { goto eMQs4; } goto BR8kQ; BR8kQ: $str = vsprintf($str, $arrayOfValues); goto BW4Oi; kDQZT: if (empty($arrayOfValues)) { goto hFafp; } goto pJN6W; jzSr8: HTMoS: goto hzyIc; hzyIc: $str = $LANG[$str]; goto kDQZT; sClOa: if (!empty($LANG[$str])) { goto HTMoS; } goto ppwfv; DhNl0: tWUGW: goto x3CIG; k5e4h: global $LANG, $LANG_EN; goto sClOa; pJN6W: $str = vsprintf($str, $arrayOfValues); goto s0JrR; tW3bz: return $needAddslashes ? addslashes($str) : $str; goto Zy1GF; sHRSj: if (empty($arrayOfValues)) { goto tWUGW; } goto RHY_l; nTAV1: return $needAddslashes ? addslashes($str) : $str; goto So3om; ppwfv: if (empty($LANG_EN[$str])) { goto K7QcC; } goto XYkWk; ZRbxP: K7QcC: goto JupR4; Zy1GF: } goto DkbFU; oxeqA: function bqInSQL($string) { goto wYOWl; vTmaC: $string = array_map("\142\x71\123\x51\x4c", $string); goto oLSEz; oLSEz: return "\x60" . implode("\x60\x2c\x60", $string) . "\x60"; goto dhJqV; wYOWl: $string = explode("\54", $string); goto vTmaC; dhJqV: } goto P3k1i; R8JZ6: function importConv2Date($field) { goto Qnjd6; Qnjd6: $field = str_replace("\x2f", "\x2d", $field); goto Kso0F; IFnv2: if (array_key_exists(2, $time_exp)) { goto dVWPi; } goto abqWi; HpYhJ: if (!(strlen($fieldArr[0]) == 2 && strlen($fieldArr[1]) == 2 && strlen($fieldArr[2]) == 4)) { goto Rk6Kl; } goto Prmn5; TXHGo: $time_final = null; goto V1W1M; Ifcwh: $fieldArr[2] = $time_init[0]; goto FHM1_; W8UI7: uUdFf: goto lJSb1; abqWi: $time_exp[2] = "\60\x30"; goto B_cFJ; BwAyN: return $field; goto AMsgq; P93Oh: $time_init = explode("\x20", $fieldArr[2]); goto WmtUB; bHOFx: $fieldArr = explode("\55", $field); goto TXHGo; UGBJk: $field = date("\x59\x2d\x6d\55\144"); goto NfkxI; WmtUB: if (!(count($time_init) == 2)) { goto WLFKs; } goto Ifcwh; wc2QS: $time_exp = explode("\x3a", $time_init[1]); goto IFnv2; x6ieu: dVWPi: goto W8UI7; FHM1_: if (empty($time_init[1])) { goto uUdFf; } goto wc2QS; rpZYQ: if (!($field == "\60\x30\x30\x30\55\x30\60\55\60\x30")) { goto pTEd6; } goto UGBJk; Xa2bC: tjNyP: goto HpYhJ; B_cFJ: $time_final = implode("\x3a", $time_exp); goto x6ieu; lJSb1: WLFKs: goto Xa2bC; Prmn5: $field = $fieldArr[2] . "\55" . $fieldArr[1] . "\x2d" . $fieldArr[0] . (!empty($time_final) ? "\40" . $time_final : ''); goto YVDv1; Kso0F: $field = str_replace("\56", "\x2d", $field); goto bHOFx; V1W1M: if (!(strlen($fieldArr[2]) > 4)) { goto tjNyP; } goto P93Oh; YVDv1: Rk6Kl: goto rpZYQ; NfkxI: pTEd6: goto BwAyN; AMsgq: } goto E8MkX; O9QAc: function dirEmpty($dir, $dirOrigin, $exceptions = array()) { goto GAZbP; UzOjd: f5lUx: goto Et0s8; YLmt3: if (!($dir != $dirOrigin)) { goto USeyg; } goto KlPiL; oxOYk: USeyg: goto WL69g; Et0s8: reset($objects); goto YLmt3; WL69g: z8OjZ: goto TknXX; GAZbP: if (!is_dir($dir)) { goto z8OjZ; } goto lX0C2; KlPiL: rmdir($dir); goto oxOYk; yh78F: foreach ($objects as $object) { goto Kss18; kQ45B: @unlink($dir . "\57" . $object); goto ed690; BJRw5: j_dj6: goto s3SSZ; Kss18: if (!($object != "\56" && $object != "\x2e\56" && !in_array($object, $exceptions))) { goto Heh6K; } goto fZbXW; s3SSZ: dirEmpty($dir . "\57" . $object, $dirOrigin, $exceptions); goto f8Qc6; ckqmJ: Heh6K: goto Xqk8m; Xqk8m: FFrKP: goto hH9zn; f8Qc6: kiTmT: goto ckqmJ; fZbXW: if (filetype($dir . "\x2f" . $object) == "\144\151\162") { goto j_dj6; } goto kQ45B; ed690: goto kiTmT; goto BJRw5; hH9zn: } goto UzOjd; lX0C2: $objects = scandir($dir); goto yh78F; TknXX: } goto k2Mad; q3psJ: function randomPassword() { goto cc4jX; gF4hk: $n = rand(0, $alphaLength); goto n9KtT; gj1G0: oKLB7: goto Oezpf; JbXGO: unGJR: goto V0uTC; cpUpy: velra: goto Q3wSg; cc4jX: $alphabet = "\141\x62\143\144\x65\146\147\150\151\x6a\153\154\x6d\156\x6f\x70\x71\x72\163\164\165\167\x78\x79\x7a\101\x42\103\x44\x45\x46\107\x48\x49\112\x4b\114\x4d\116\117\120\x51\122\123\124\x55\x57\x58\131\x5a\60\61\x32\63\64\x35\x36\x37\x38\x39"; goto oFLMS; rnyGo: $alphaLength = strlen($alphabet) - 1; goto vD_Px; V0uTC: ++$i; goto YehNb; YehNb: goto oKLB7; goto cpUpy; Q3wSg: return implode($pass); goto hrOZj; Oezpf: if (!($i < 8)) { goto velra; } goto gF4hk; n9KtT: $pass[] = $alphabet[$n]; goto JbXGO; vD_Px: $i = 0; goto gj1G0; oFLMS: $pass = array(); goto rnyGo; hrOZj: } goto zZ_ie; ICsXK: function dirMove($source, $dest, $overwrite = false, $funcloc = null) { goto VPz5y; MPAc5: if (!is_file($path2)) { goto BsApe; } goto QduZz; v_QV6: if (is_file($path)) { goto uIF1G; } goto oMWnH; v9_HX: Mj74f: goto YR2pV; VPz5y: if (!is_null($funcloc)) { goto rRggH; } goto eDaJL; BtVT6: closedir($handle); goto k1wRA; a_0Tv: $path = $source . $funcloc . $file; goto psyjj; j9l6s: rRggH: goto x1U73; h5j3H: @rmdir($path); goto k5Cbw; T3PwV: goto i4YG6; goto LP5DB; KbyEs: mkdir($dest . $funcloc); goto aeZ1f; IU3lv: o30Fq: goto yw15w; eDaJL: $dest .= "\57" . strrev(substr(strrev($source), 0, strpos(strrev($source), "\x2f"))); goto AGAIs; eGpfe: rNZON: goto BtVT6; YR2pV: goto jrA0k; goto O4cco; AekRx: DWiMG: goto pzD11; mRLix: echo "\74\146\157\x6e\x74\40\x63\157\154\157\162\x3d\x22\x72\x65\144\x22\76\106\x69\x6c\x65\40\x28" . $path . "\x29\x20\x63\157\165\154\144\40\156\157\x74\40\142\x65\40\155\157\166\145\x64\54\40\154\x69\153\x65\154\171\x20\141\x20\x70\145\162\x6d\x69\x73\x73\x69\x6f\156\x73\40\160\x72\x6f\x62\154\x65\155\56\74\57\x66\157\x6e\x74\76\74\142\162\x2f\x3e"; goto AekRx; adHcY: if (@rename($path, $path2)) { goto Mj74f; } goto TQK1z; qVCNk: PIQjl: goto YroMA; omx_c: if (!($file != "\56" && $file != "\x2e\56")) { goto ZOD60; } goto a_0Tv; LP5DB: uIF1G: goto MPAc5; QduZz: if ($overwrite) { goto o30Fq; } goto kDnvB; oMWnH: if (is_dir($path)) { goto q2VL4; } goto T3PwV; pzD11: goto PXLFi; goto IU3lv; SOhrv: PXLFi: goto Nr5U0; HPKsD: if (!($handle = opendir($source . $funcloc))) { goto LgeCa; } goto qVCNk; x1U73: if (is_dir($dest . $funcloc)) { goto gpHCM; } goto KbyEs; TQK1z: echo "\74\146\157\x6e\x74\x20\143\x6f\154\157\x72\x3d\x22\162\145\x64\42\x3e\106\151\154\145\40\x28" . $path . "\51\x20\x63\157\x75\x6c\144\40\156\x6f\164\40\x62\145\x20\155\157\166\145\144\x20\x77\150\x69\x6c\145\x20\157\x76\x65\162\167\162\151\x74\164\x69\x6e\147\x2c\x20\154\151\x6b\x65\154\x79\x20\x61\40\160\145\x72\155\151\x73\163\x69\x6f\156\x73\40\x70\x72\x6f\142\x6c\x65\155\x2e\74\57\x66\x6f\x6e\x74\x3e\74\x62\x72\x2f\x3e"; goto v9_HX; k1wRA: LgeCa: goto gPIun; YroMA: if (!(false !== ($file = readdir($handle)))) { goto rNZON; } goto omx_c; WW14g: BsApe: goto bWD8m; sS7Zd: echo "\x55\x6e\141\142\154\145\x20\164\x6f\x20\x6f\x76\145\162\167\162\x69\164\145\40\146\x69\154\x65\x20\50\x22" . $path2 . "\x22\51\54\x20\x6c\151\x6b\145\154\171\40\164\x6f\x20\142\145\40\x61\x20\160\145\162\x6d\151\x73\163\151\x6f\x6e\163\x20\x70\x72\157\x62\154\145\x6d\56\x3c\142\x72\57\x3e"; goto GI6OL; O4cco: xsx8G: goto sS7Zd; aeZ1f: gpHCM: goto HPKsD; AGAIs: $funcloc = "\x2f"; goto j9l6s; dKOwf: q2VL4: goto BRoGo; GPTdX: ZOD60: goto ogpUU; kDnvB: goto PXLFi; goto WW14g; BRoGo: dirMove($source, $dest, $overwrite, $funcloc . $file . "\x2f"); goto h5j3H; Nr5U0: goto i4YG6; goto dKOwf; yw15w: if (!@unlink($path2)) { goto xsx8G; } goto adHcY; GI6OL: jrA0k: goto SOhrv; ogpUU: goto PIQjl; goto eGpfe; bWD8m: if (@rename($path, $path2)) { goto DWiMG; } goto mRLix; psyjj: $path2 = $dest . $funcloc . $file; goto v_QV6; k5Cbw: i4YG6: goto GPTdX; gPIun: } goto hCE9K; uF5ub: vybH2:
goto Hwo4r; BH5FC: define("\x53\x43\137\111\104\137\x4c\x41\116\x47\137\106\x4f\122\x5f\105\130\x54\105\122\116\101\114", $cgu_allowed_lang[SC_ISO_LANG_FOR_EXTERNAL]); goto SLLIP; fQYhD: if (!file_exists(_PS_CORE_IMG_DIR_ . "\160\162\145\163\x74\141\x73\150\157\160\55\154\157\147\151\156\x33\56\160\x6e\x67")) { goto kaRLZ; } goto A3Fu4; hD4IR: YljI_: goto H50bf; L9h2W: displayFirstLoginPage("\105\162\162\157\x72\72\x20\x49\x6e\166\x61\154\x69\144\x20\x41\143\143\x65\163\163\40\101\164\164\145\x6d\160\x74", array("\x6e\157\x74\162\151\141\x6c\146\157\x72\155" => 1)); goto QQo19; Lp9Xm: $SC_TYPE = "\x53\125\x42\x53\103\122\x49\x50\124\111\x4f\116\x20\105\x58\120\105\122\x54"; goto xseAd; DHmVd: define("\137\123\103\x5f\x4c\117\107\x5f\114\111\x4d\111\x54\x5f", "\65\x32\x34\62\70\70\60"); goto EDKPO; Proqa: SCI::updateConfigurationValue("\123\x43\x5f\114\x49\x43\105\116\x53\105\137\113\x45\131", $val[1]); goto gdNUb; ctBGS: goto VCnm9; goto RUdrD; TgIiz: goto sEUbd; goto tgzZO; x0CXd: $localdatefile = 0; goto mdfNh; gOmic: yrOBA: goto EPQdy; nUcCJ: $sc_iso = in_array(strtolower($user_lang_iso), $sc_iso_list) ? strtolower($user_lang_iso) : "\145\156"; goto T1bqt; bcAa8: if ($check["\x74\171\160\x65"] == 8) { goto jOJoQ; } goto fXSdg; bWe6R: $user_lang_iso = Language::getIsoById($sc_agent->id_lang); goto p_ThF; oiT6N: qkOhQ: goto Mmn2w; mn8zH: LG3r_: goto nCePb; lB3tu: @file_put_contents(_PS_CORE_IMG_DIR_ . "\160\162\145\163\x74\x61\x73\x68\157\160\55\154\x6f\x67\151\x6e\63\56\160\x6e\x67", "\x30"); goto L9h2W; BhW2l: if (version_compare(_PS_VERSION_, "\61\x2e\65\56\60\56\x30", "\76\75") && count(SCI::getAllShops()) > 1) { goto Gg4Wb; } goto Ke3ES; SHPTm: goto NFUgT; goto RdpSU; oYycs: goto IatXv; goto xzfWt; Lj5dY: define("\123\x43\137\x4d\x41\111\114\137\x41\124\124\x41\103\x48\x4d\105\116\x54\x5f\104\x49\122", _PS_ROOT_DIR_ . "\x2f\165\x70\154\x6f\x61\x64\57"); goto vwq8x; RFkMu: $currentFileName = array_reverse(explode("\x2f", $_SERVER["\123\x43\x52\x49\120\x54\137\x4e\101\x4d\105"])); goto nKQti; SkiRL: Z6uZA: goto oRZkh; OECDe: require_once SC_DIR . "\x6c\x69\142\57\160\150\160\x2f\x65\x78\164\x65\x6e\x73\x69\157\x6e\x2f\163\x65\x67\155\145\x6e\x74\141\164\151\x6f\x6e\57\123\143\x53\x65\x67\x6d\x65\156\x74\105\154\145\155\145\156\164\x2e\x70\150\160"; goto oOxqL; kF11v: checkExtensionsStatus(); goto zm1Ne; k8xm2: $debug = false; goto nurPI; M9YtS: saveSettings(); goto OPVy0; LCaxS: $SC_TYPE = "\123\125\102\123\x43\x52\x49\x50\124\111\x4f\116\40\123\x4f\x4c\117"; goto yJgEz; rAX6d: if (!(_s("\x41\120\x50\137\103\117\115\120\x41\x54\x5f\x4d\105\x4d\117\x52\131") != 0 && sc_in_array(_s("\101\x50\x50\137\x43\x4f\x4d\x50\101\x54\x5f\x4d\x45\115\117\122\131"), array("\61\x36\x4d", "\x33\62\115", "\x36\64\115", "\x31\x32\70\x4d", "\62\x35\x36\115", "\x35\x31\62\x4d", "\61\x47"), "\x6c\151\x63\x65\x6e\x63\x65\x73\x41\160\160\103\157\x6d\x62\x61\x74\115\x65\155\x6f\162\171"))) { goto g4ZLO; } goto yvMRj; ZV3hR: define("\x53\x43\x53\x47", true); goto eDrIg; SUFXq: cPBGF: goto ZdHML; nhCfz: $val = explode("\x6f\137\x6f", $result); goto appmE; dtlvp: $SC_TYPE = "\x53\x55\102\x53\103\x52\111\120\x54\111\117\116\x20\x4d\125\x4c\x54\x49"; goto hOOBh; HL2Qt: if (defined("\123\103\x5f\123\145\x67\155\x65\156\x74\x61\164\x69\x6f\156\137\101\103\124\x49\x56\105") && SC_Segmentation_ACTIVE == "\x31" && _r("\x4d\105\116\137\115\101\x52\x5f\123\x45\107\115\105\x4e\124\101\124\x49\117\x4e") && _r("\x4d\x45\x4e\137\x54\117\117\x5f\105\x58\124\x45\x4e\123\111\117\116\123")) { goto E7xUJ; } goto O3slq; q7CHL: displayFirstLoginPage("\x59\157\x75\x72\40\163\x75\142\x73\x63\162\x69\160\164\151\x6f\156\40\151\x73\40\156\x6f\x74\40\x61\143\164\151\x76\145\x2e\40\x4d\x61\x6e\x61\147\145\40\x79\x6f\165\x72\x20\x73\165\142\163\x63\x72\x69\160\x74\151\x6f\x6e\x2e"); goto xHyUo; KAU7s: define("\x53\103\114\x49\x4d\x52\105\106", $SC_TYPE); goto dEqcE; Jo90a: if (defined("\123\x43\x5f\124\117\x4f\114\123\137\x44\111\122")) { goto eQaBD; } goto MW6ex; qqWcT: e34hi: goto RKkVH; B8E4F: QxuzF: goto KlBN4; kqt6Z: RY2pb: goto WhABp; pel2z: $files = array(dirname(__FILE__) . "\x2f\x68\x65\x6c\160\x2e\x70\x68\x70", dirname(__FILE__) . "\x2f\x2e\56\57\143\141\x74\57\x63\141\164\137\x67\162\x69\144\x2e\x70\150\x70", dirname(__FILE__) . "\57\x2e\x2e\57\157\x72\144\57\x6f\162\x64\x5f\147\x72\x69\144\x2e\160\x68\x70", dirname(__FILE__) . "\x2f\x2e\x2e\57\141\x6c\154\57\167\x69\156\x2d\164\162\x65\x6e\x64\x73\57\x61\x6c\154\x5f\x77\151\156\55\x74\x72\145\x6e\x64\x73\163\x68\157\160\137\x69\x6e\x69\164\x2e\152\163\56\160\150\x70", dirname(__FILE__) . "\57\56\56\57\143\x61\164\x2f\160\x72\x6f\144\x75\143\164\143\x6f\155\160\x61\164\151\x62\x69\x6c\151\164\x79\57\143\x61\164\x5f\x70\x72\157\144\165\143\x74\x63\157\155\160\x61\164\151\x62\151\x6c\151\x74\x79\137\151\156\x69\164\x2e\152\x73\56\160\150\x70"); goto dtHTs; NVN_e: $api_server = "\x68\164\164\x70\163\x3a\57\57\x77\x77\167\56\163\164\x6f\x72\x65\143\x6f\x6d\155\141\156\x64\x65\162\56\x63\157\155\57\x71\165\151\143\153\162\x65\x67\x69\163\x74\145\x72\x74\x72\x69\x61\x6c\137\163\165\142\163\x63\162\x69\160\x74\x69\157\x6e\56\160\x68\x70"; goto eaB9S; R9uMv: define("\123\x43\x5f\124\x4f\x4f\114\123", true); goto uq6lD; AJbqX: require_once SC_DIR . "\154\151\x62\57\x70\x68\x70\57\145\x78\x74\x65\x6e\163\x69\x6f\x6e\x2f\x65\170\x70\157\162\164\x5f\x63\x75\x73\164\x6f\x6d\145\x72\x2f\x45\170\160\x6f\162\164\103\x75\163\x74\x6f\x6d\145\162\x54\x6f\157\x6c\163\x2e\x70\150\160"; goto uyPra; fJBnP: $demos = array(); goto LDedX; Mj7Us: goto W5rTT; goto abeAZ; Wl9YZ: d3bVx: goto PC2Xx; iV9Mg: $current_sc_module_folder_name = basename(SC_PS_MODULE_PATH_DIR); goto rARRi; ceM32: tohvU: goto s3sID; GwKHu: if (!(!empty($_POST) && is_array($_POST))) { goto u6BF8; } goto TUdmc; wik86: require_once SC_DIR . "\x6c\x69\142\x2f\160\x68\160\57\x73\x65\164\x74\151\x6e\x67\163\x2e\160\150\x70"; goto MkFcO; SvAf4: if (!isset($_GET["\x73\145\164\x44\105\102\125\x47"])) { goto O1lY1; } goto L1hWP; qUxO8: $exploded_licence = explode("\x5f", $licence); goto GUSDq; PVyCc: die(_l("\x59\157\x75\40\x6d\x75\x73\164\x20\x62\x65\x20\154\x6f\147\147\145\x64\x20\164\x6f\40\165\x73\x65\40\123\164\157\162\x65\x20\103\157\x6d\x6d\x61\156\x64\145\x72\x2e") . "\40\x3c\x61\x20\x68\x72\x65\146\x3d\x22" . SC_PS_PATH_ADMIN_REL . "\x69\x6e\x64\x65\170\x2e\160\x68\x70\x22\76\x42\x61\x63\153\117\146\x66\151\x63\145\x3c\57\141\76"); goto jA8Id; QGRND: if ($check["\x74\171\x70\x65"] == 1) { goto RY2pb; } goto iY_Dx; nKQti: $cookie = new Cookie("\x70\163\101\144\155\151\156", substr($_SERVER["\x53\x43\122\x49\x50\x54\x5f\x4e\x41\x4d\x45"], strlen(__PS_BASE_URI__), -strlen($currentFileName["\x30"]) - 3)); goto wW7QP; ey1Uy: if (!(SCMS && ($check["\164\x79\x70\145"] == 1 || $check["\164\x79\x70\x65"] == 4 || $check["\164\x79\160\x65"] == 6 || $check["\x74\171\x70\145"] == 7))) { goto OT3Wf; } goto Lkmaa; ZdHML: if (!(defined("\123\x43\137\105\x78\x70\x6f\162\x74\x4f\162\x64\145\162\163\137\x41\x43\x54\111\x56\105") && SC_ExportOrders_ACTIVE == "\x31" && _r("\115\105\x4e\x55\x5f\117\x52\104\137\105\x58\120\117\122\124\x4f\x52\x44\105\122\x53"))) { goto YljI_; } goto OGK27; zALh2: function displayFirstLoginPage($error = null, $other = array()) { goto QeDxo; zvFE3: $tab = $spbas->access_details(); goto Y_1I2; fLpGm: zN3KJ: goto b19li; vzdjR: echo CGU_LOCAL_PATH; goto V81ag; M0Frs: ?>
</select>
<br/>
<br/>
<input type="checkbox" name="cgu_agreed_trial"/> <a href="<?php goto INovK; Gxegc: echo _l("\x45\156\164\145\162\40\171\157\165\x72\x20\154\x69\143\145\x6e\x73\145\x20\x6b\x65\x79"); goto E61PT; H2pd7: echo _l("\x46\x69\162\x73\x74\x6e\141\155\x65") . _l("\72"); goto SLsMV; ZGYaW: ?>
"/>
<input type="hidden" name="siteurl" value="<?php goto DvVNQ; vVpem: echo SC_COPYRIGHT . "\x20\74\x62\x72\x2f\x3e\126\56\x20" . SC_VERSION . "\x20\50\x50\x53\x20" . _PS_VERSION_ . "\51"; goto QKgyq; EcKVK: echo _l("\x59\x6f\165\162\x20\154\x69\143\x65\x6e\163\145\x20\153\x65\171") . _l("\x3a"); goto WlXSv; a12nc: NlGya: goto EWV1k; iTBji: ?>
/authentification?fromapp=1" target="_blank"><?php goto siSJB; b19li: echo "\x3c\144\151\x76\x20\143\x6c\141\x73\163\75\42\x73\x63\137\145\162\x72\157\162\x22\x3e" . _l("\131\x6f\165\40\156\x65\145\x64\x20\164\157\x20\x68\x61\166\x65\x20\x61\x20\163\165\x62\163\143\162\x69\160\164\151\x6f\x6e\x20\115\x75\154\164\151\x53\x74\x6f\162\x65\163\40\x74\x6f\x20\142\145\x20\x61\142\x6c\x65\x20\x74\157\40\155\141\156\x61\x67\145\40\163\x65\166\145\162\141\154\40\163\150\x6f\160\x73\x20\x69\156\40\123\x74\157\162\145\40\103\x6f\155\155\141\x6e\144\x65\162\x2e") . "\x20" . _l("\131\x6f\x75\x20\143\141\x6e\x20\143\150\x61\156\147\145\40\171\157\x75\162\40\160\154\141\x6e\40\x66\x72\x6f\155\40\164\x68\x65\40\155\x6f\144\x75\154\x65\40\x63\x6f\x6e\x66\x69\x67\x75\162\x61\164\x69\x6f\x6e\56") . "\x3c\x2f\x64\x69\x76\x3e"; goto kAQJz; Jqwym: if (strpos($error, "\x74\x6f\157\40\162\x65\143\x65\156\164\x20\146\x6f\162\x20\x79\x6f\x75\162\40\163\165\x70\160\x6f\162\164\x20\160\141\x63\x6b\141\147\x65") != 0) { goto Skiu6; } goto V_eV2; QKgyq: if (!(defined("\x5f\x50\x53\137\x43\101\103\x48\105\137\x45\116\x41\x42\114\105\x44\137") && _PS_CACHE_ENABLED_)) { goto jk_aR; } goto Ll0ps; MCqFE: echo "\74\144\151\x76\x20\x63\154\x61\163\x73\x3d\x22\163\x63\x5f\145\x72\162\157\162\42\76" . _l("\131\157\165\x72\x20\x73\165\x62\163\143\162\151\160\164\x69\157\156\x20\151\x73\x20\156\157\164\40\141\x63\x74\151\x76\x65\x2e\x20\115\x61\x6e\x61\147\x65\40\x79\157\x75\x72\x20\163\165\142\163\x63\x72\x69\x70\164\151\x6f\156\40\146\x72\x6f\155\x20\x74\x68\145\40\x53\164\157\162\145\x20\103\x6f\155\155\x61\156\x64\x65\162\47\163\x20\x63\x6f\x6e\x66\151\147\165\162\141\164\x69\157\156") . "\74\x2f\144\151\166\76"; goto u5xNd; wyBFx: $is_local = true; goto dguOf; JLBHG: if (!(file_exists(SC_DIR . "\144\145\142\165\147\55\154\x69\x63\x65\x6e\x73\x65\x2e\x70\150\x70") && $error != null)) { goto CgRh2; } goto zvFE3; aOWA_: echo "\74\x64\x69\166\x20\143\x6c\x61\x73\x73\75\42\163\x63\x5f\145\x72\162\157\x72\x22\76" . _l("\131\157\165\162\40\163\x75\142\163\x63\x72\151\x70\x74\151\157\x6e\x20\x69\x73\40\156\x6f\164\40\x61\x63\164\151\x76\x65\56\x20\x4d\141\156\141\x67\x65\40\171\x6f\165\x72\40\163\x75\x62\x73\143\162\x69\x70\x74\x69\157\156\40\x69\x6e\x20\x79\157\x75\x72\x20\141\x63\143\x6f\x75\x6e\x74") . _l("\72") . "\x20\74\x61\40\x68\x72\145\x66\75\42\150\164\x74\160\x73\x3a\57\x2f\x77\167\167\56\163\x74\x6f\x72\x65\143\157\x6d\x6d\x61\x6e\144\145\x72\x2e\x63\x6f\155\57\151\156\x64\x65\170\x2e\x70\150\160\77\143\x6f\156\164\x72\157\154\x6c\x65\162\75\155\x79\x73\x75\x62\x73\143\x72\x69\160\x74\151\157\156\42\x20\x74\x61\162\x67\x65\x74\x3d\42\137\x62\154\141\x6e\x6b\42\76" . _l("\x4d\x79\x20\x73\x75\142\163\143\162\x69\x70\x74\151\x6f\156") . "\x3c\x2f\141\x3e\x3c\x2f\x64\151\x76\76"; goto vHlta; RFnG0: ?>
</b><br/><br/>
<?php goto rf6tH; qlDSS: ?>
</label>
<input type="radio" value="2" name="id_gender" id="id_gender2">
<label for="id_gender2"><?php goto A2ueB; NoGkN: $id_partner = ''; goto Hs1gK; E61PT: ?>
</legend>
<p class="right">
<?php goto EcKVK; k0nze: ?>
"/><br/>
<?php goto JJGvi; c8_v7: echo _l("\x59\157\x75\x20\x63\141\156\40\143\x75\163\164\157\x6d\x69\172\145\x20\x74\x68\145\40\160\x72\145\55\x65\x6e\x74\x65\162\x65\x64\40\x69\156\x66\157\x72\155\x61\x74\x69\157\156\40\x62\145\x6c\x6f\x77\x2e") . "\74\x62\162\57\x3e"; goto Q7BF5; R5PGt: ?>
<b><?php goto OksNv; OE19e: ?>
<form id="formtrial" method="POST">
<fieldset>
<legend style="text-align: left;"><?php goto YWjwY; DL8Fc: EMnez: goto LI_g8; JJGvi: echo _l("\x45\x6d\141\151\154") . _l("\x3a"); goto sshbu; heDWv: fI078: goto ggE7y; w_rOE: echo SC_JQUERY; goto QMtE6; wG3MD: goto mP9ZA; goto ORzg9; q3k9F: goto FpjFq; goto lcSEj; Rmpyx: require_once "\x6c\151\x63\x65\156\163\x65\x2e\160\150\x70"; goto asY2P; u8yek: echo _l("\103\x6f\x6d\x70\141\156\x79") . _l("\72"); goto tLuuB; ITpg7: echo "\74\x64\x69\166\x20\143\154\x61\163\x73\75\42\163\x63\x5f\145\162\x72\x6f\162\x22\x3e" . _l("\x59\157\165\x20\x6e\145\145\144\40\164\157\x20\x72\x65\163\145\164\40\x79\157\x75\x72\40\x6c\x69\x63\145\156\x73\x65") . _l("\x3a") . "\x20\74\x61\x20\150\162\x65\146\75\x22\150\x74\164\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x73\164\157\162\145\143\157\155\155\141\x6e\x64\x65\x72\56\143\157\155\57\x69\156\144\x65\x78\x2e\x70\x68\160\x3f\143\157\x6e\164\x72\157\154\154\145\x72\x3d\155\x79\163\165\x62\163\x63\x72\151\160\164\151\x6f\x6e\x22\x20\x74\x61\x72\147\145\164\75\42\x5f\x62\x6c\x61\x6e\x6b\42\x3e" . _l("\115\171\x20\163\x75\142\x73\x63\x72\x69\160\164\151\157\156") . "\x3c\57\x61\76\74\x2f\x64\151\x76\76"; goto LxI9i; Tfe_7: goto fI078; goto BAkW3; INovK: echo CGU_LOCAL_PATH; goto l1LYP; wgK8c: if ($is_local) { goto NlGya; } goto atj9Q; mGJCQ: $domain = strtolower($_SERVER["\110\124\124\x50\x5f\110\x4f\123\x54"]); goto BHEGY; ZhZLz: p0str: goto yv30X; hokwx: echo _l("\124\x68\145\x20\x74\x72\151\141\x6c\x20\x70\x65\x72\x69\157\x64\x20\143\141\x6e\156\x6f\164\x20\142\145\x20\x73\164\x61\162\x74\x65\x64\40\x6f\156\x20\x6c\157\143\141\x6c\150\157\x73\164\x20\142\x75\164\40\x6f\x6e\x6c\x79\x20\x6f\156\x6c\151\156\145\x21"); goto Txhpb; WlXSv: ?>
<input type="text" id="license"/>
<br/>
<input type="checkbox" name="cgu_agreed"/> <a href="<?php goto vzdjR; Q8uI5: if (!(SC_MODULE_FOLDER_NAME !== "\163\x74\x6f\162\x65\143\157\x6d\x6d\x61\156\144\145\x72\x70\163")) { goto W2Dg0; } goto vjkpS; sWI1a: if (IS_RBM) { goto QYL7Z; } goto i5mu_; Lhgix: echo "\x3c\144\151\166\x20\x63\154\141\163\x73\x3d\42\163\x63\x5f\145\162\162\157\x72\x22\x3e" . _l("\131\157\x75\x20\156\x65\145\x64\40\x74\157\x20\150\141\x76\145\40\x61\x20\x73\x75\142\163\x63\x72\151\x70\x74\151\157\x6e\x20\115\x75\x6c\x74\151\123\164\157\x72\x65\163\40\164\157\40\142\x65\40\x61\x62\x6c\x65\40\x74\157\x20\x6d\x61\x6e\x61\x67\145\x20\x73\145\166\145\x72\141\x6c\40\163\x68\157\x70\x73\40\x69\156\x20\123\164\x6f\x72\x65\40\x43\157\155\x6d\141\x6e\x64\x65\x72\56") . "\x20" . _l("\x59\x6f\x75\40\x63\x61\156\x20\143\x68\x61\156\x67\145\x20\x79\157\165\x72\x20\160\154\x61\x6e\x20\146\x72\157\x6d\40\x25\x73\115\171\40\x53\165\x62\x73\143\162\x69\x70\x74\x69\157\x6e\x25\x73\x20\160\x61\x67\145\40\165\156\144\145\162\x20\x79\157\x75\162\40\141\143\143\157\x75\156\x74\56", 0, array("\74\141\x20\150\x72\145\x66\x3d\x22\x68\x74\164\160\163\x3a\57\57\x77\x77\167\x2e\163\x74\157\162\145\x63\x6f\x6d\155\x61\x6e\x64\x65\162\x2e\143\157\155\x2f\151\x6e\144\145\170\56\x70\150\x70\77\x63\157\x6e\164\162\157\x6c\x6c\145\162\x3d\x6d\171\x73\x75\x62\163\x63\162\x69\160\164\151\x6f\156\42\40\164\141\162\147\145\164\x3d\42\x5f\142\x6c\x61\x6e\153\x22\76", "\x3c\x2f\141\x3e")) . "\74\x2f\144\x69\166\x3e"; goto MnAdt; wt1SP: echo SC_ISO_LANG_FOR_EXTERNAL; goto iTBji; CtUjT: $id_partner = 0; goto s2h7N; EWV1k: ?>
<strong><?php goto hokwx; ORzg9: Skiu6: goto NNpNc; ULBGE: $langSelected = Language::getIsoById($sc_agent->id_lang); goto imi37; JEiBC: ?>
</a>
<br/>
<input id="licence_register" class="btn_pink disabled" type="button" style="margin-top: 10px;" value="<?php goto iUlyg; Ll0ps: echo "\74\x62\x72\57\76\74\x62\x72\x2f\76" . _l("\116\x6f\x74\145\72\x20\x55\x73\x69\x6e\147\x20\x74\x68\145\x20\120\162\145\x73\x74\x61\x73\150\x6f\160\40\143\x61\143\x68\x65\x20\163\171\163\164\145\x6d\x20\155\x61\171\40\x69\156\164\x65\x72\146\x65\162\145\40\167\x69\x74\x68\40\164\150\x65\x20\160\162\x6f\160\x65\162\x20\x75\163\145\40\x6f\146\40\x53\164\x6f\162\145\40\103\x6f\155\155\x61\x6e\x64\145\162\40\x61\x73\x20\x77\x65\154\154\40\141\x73\40\155\157\144\x75\154\x65\163\56\x20\124\x6f\x20\160\x72\145\x76\145\156\164\40\164\x68\151\163\x2c\40\147\157\40\164\x6f\x20\x74\150\x65\40\x50\162\145\x66\x65\162\145\x6e\x63\x65\163\40\76\x20\x50\x65\x72\146\157\x72\155\x61\156\x63\x65\40\x74\141\142\40\x74\157\x20\x64\x69\163\141\142\x6c\x65\40\164\x68\145\x20\x6f\x70\x74\x69\157\x6e\x20\x61\x74\x20\164\150\x65\x20\145\x6e\x64\x20\x6f\146\x20\x74\x68\145\40\x70\141\x67\x65\56"); goto ogxSn; Txhpb: ?>
</strong>
<?php goto xpeyM; ZoZzU: ?>
</b><br/>
<a href="https://www.storecommander.com/<?php goto wt1SP; gbEi7: foreach ($authorizedLanguages as $scIso => $scIsoLabel) { echo "\x3c\x6f\x70\x74\151\157\x6e\x20\x76\141\x6c\x75\x65\75\42" . $scIso . "\42" . ($langSelected === $scIso ? "\x73\x65\x6c\145\x63\164\x65\x64" : '') . "\x3e" . $scIsoLabel . "\x3c\x2f\157\160\x74\x69\157\x6e\76"; pjwUw: } goto sLPxM; lcSEj: hHADi: goto N6_8N; iUlyg: echo _l("\x53\141\x76\x65"); goto rem2M; B_NdC: goto mP9ZA; goto THHzX; kAQJz: NLYJX: goto wG3MD; xl1Gl: ?>
"/><br/>
<p class="radio" style="margin:0px">
<input type="radio" checked="checked" value="1" name="id_gender" id="id_gender1">
<label for="id_gender1"><?php goto k1M0t; YMpi6: var_dump($tab); goto xuEQn; CoUCp: echo SCI::getConfigurationValue("\x50\123\137\123\110\117\120\137\x4e\101\115\105", ''); goto xl1Gl; I86V9: goto xb0yS; goto a12nc; N6_8N: echo "\74\x62\x3e" . _l("\x43\162\x65\x61\164\x65\x20\171\x6f\x75\x72\x20\x25\163\40\141\x63\143\157\165\156\x74\40\167\x69\164\150\x20\x61\x20\x63\x6c\x69\x63\153\x2e", null, array("\x53\164\x6f\162\145\40\103\x6f\155\155\141\156\x64\x65\162")) . "\74\x2f\x62\x3e\74\x62\162\57\76"; goto c8_v7; c4VSy: echo $sc_agent->firstname; goto k0nze; vHlta: goto Xaxci; goto R9UhD; s2h7N: yg34v: goto Jn8Y2; pbFNs: CrA_m: goto sdS3L; xpeyM: xb0yS: goto HvBDZ; sbCyx: echo _l("\124\150\145\x20\x62\x65\x73\164\x20\x63\x61\x74\141\x6c\157\x67\40\x6d\141\156\141\147\145\x6d\x65\x6e\164\40\141\x70\x70\154\x69\143\141\x74\x69\x6f\156\x20\x66\x6f\162\40\120\x72\x65\x73\x74\x61\x73\150\157\x70\x21"); goto RFnG0; heURZ: if (IS_RBM) { goto aA3qk; } goto aOWA_; OksNv: echo _l("\x41\154\x72\x65\x61\144\x79\x20\x68\141\166\x65\x20\141\x20\154\151\x63\x65\x6e\143\x65\40\x6b\145\x79\x3f"); goto WlFLX; RwW81: JqlMB: goto QJmGk; nHKAu: if (IS_RBM) { goto MAcqP; } goto Cdmda; vnGB3: mPVt4: goto vSE1w; SLsMV: ?>
<input type="text" name="firstname"
value="<?php goto c4VSy; yrKc0: CgRh2: goto IIE2B; B_P9F: echo _l("\x43\x6f\156\164\x61\x63\x74\x20\x6d\145\40\x69\x6e") . _l("\x3a"); goto yQAi4; tE0UB: ?>
" />
<script type="text/javascript" src="<?php goto w_rOE; LIeE7: goto CrA_m; goto sHYNT; sHYNT: QYL7Z: goto R5PGt; HvBDZ: ?>
</fieldset>
</form>
<?php goto zOiqF; Y_1I2: ob_start(); goto YMpi6; yv30X: ?>
<input type="hidden" name="done" value="0"/>
<input type="hidden" name="firstLoginPageAct" value="createtrial"/>
<input type="hidden" name="partner" value="<?php goto utVLH; t8_zT: if ($error == "\131\157\165\162\40\x54\x72\x69\141\x6c\40\x73\x75\142\x73\143\x72\151\x70\x74\151\157\x6e\40\x68\141\x73\40\x65\170\160\151\x72\145\x64") { goto tkO0w; } goto zFGn8; ym_yB: ?>
"/><br/>
<?php goto HRmVP; xuEQn: $dump = ob_get_clean(); goto D5LoS; yQAi4: ?>
<select name="lang">
<?php goto gbEi7; zOiqF: Xajqk: goto VtzX6; i5mu_: ?>
<b><?php goto OsAas; BHEGY: if (!($domain == "\61\62\67\x2e\x30\x2e\x30\56\61" || $domain == "\154\157\x63\x61\x6c\x68\x6f\x73\x74" || substr($domain, -6, 6) == "\x2e\154\x6f\x63\141\154")) { goto XcP55; } goto wyBFx; Y5VJz: echo "\74\x64\151\x76\40\x63\x6c\141\x73\163\75\42\163\x63\x5f\x65\162\162\x6f\162\42\76" . _l("\x54\150\x65\x20\124\x72\x69\141\x6c\x20\x70\x65\x72\151\157\x64\x20\167\x65\x20\157\146\146\x65\162\x65\144\40\150\141\x73\x20\156\157\167\x20\145\156\x64\145\x64\x2e\40\124\157\x20\143\x6f\x6e\x74\151\x6e\x75\145\40\163\x61\x76\151\156\x67\x20\x74\x69\x6d\x65\40\145\166\x65\162\171\x20\x64\141\171\40\x77\x69\164\150\40\123\164\157\162\145\x20\x43\157\x6d\155\x61\x6e\144\145\x72\x2c\40\141\x63\164\x69\x76\141\x74\145\40\x79\x6f\165\162\x20\163\x75\142\x73\143\162\151\x70\164\151\157\156\40\146\x72\157\155\x20\164\x68\x65\x20\155\157\144\x75\x6c\x65\x20\x63\157\156\146\151\x67\x75\162\141\164\151\x6f\x6e") . "\74\57\x64\x69\166\x3e"; goto heDWv; mPsx8: goto mP9ZA; goto wHR0u; atj9Q: goto xb0yS; goto ZhZLz; sdS3L: ?>
<div>
<fieldset>
<legend><?php goto Gxegc; ohAAz: echo _l("\111\x20\x61\143\143\x65\160\x74\x20\124\x65\162\x6d\x73\40\46\x20\x43\x6f\x6e\x64\x69\164\x69\x6f\x6e\x73"); goto JEiBC; THHzX: imTCX: goto N5pf8; sshbu: ?>
<input type="text" name="email_create"
value="<?php goto YPa2c; RJGyw: if (!($error == "\x45\162\162\157\162\x3a\40\124\150\x69\x73\40\154\151\x63\x65\156\x73\x65\40\x68\141\x73\x20\145\x78\160\151\162\145\x64\56")) { goto JqlMB; } goto AmJGA; ubRCR: ?>
</a>
<br/>
<input id="btntrial" type="button" class="btn_pink disabled" disabled value="<?php goto OSqQU; BdOtH: ?>
<p>
</div>
</body>
</html>
<?php goto U2a1m; HXjLp: ?>
"/>
<input type="hidden" name="newsletter" value="on"/>
<input type="hidden" name="optin" value="on"/>
<div id="form_trial">
<?php goto u8yek; QMtE6: ?>
"></script>
<link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" />
</head>
<body>
<div class="firstLoginPage">
<div style="width: 310px; float: left;">
<img src="lib/img/logo.png"/>
</div>
<div style="clear: both;"></div>
<b><?php goto sbCyx; Hs1gK: if (!file_exists(SC_DIR . "\x6c\x69\143\x65\x6e\163\x65\56\x70\x68\160")) { goto qTomp; } goto xzWHS; OsAas: echo _l("\101\x6c\x72\x65\x61\x64\x79\x20\x68\x61\166\145\x20\x61\40\141\x63\143\157\165\x6e\x74\40\x6f\x72\40\141\40\154\x69\143\x65\x6e\x63\145\40\153\145\x79\77"); goto ZoZzU; DvVNQ: echo PS_WEB_PATH; goto HXjLp; nNP7t: ?>
"/>
<img id="loading" src="lib/img/ajax-loader.gif" style="display: none;" />
</div>
<?php goto I86V9; vSE1w: echo "\74\144\151\166\40\143\x6c\x61\x73\163\x3d\x22\163\143\137\145\162\162\x6f\162\42\x3e" . _l("\x49\156\x76\141\x6c\x69\x64\40\141\143\x63\x65\x73\163\40\x61\x74\x74\145\x6d\160\164\x2e\40\x50\x6c\145\x61\x73\x65\x20\143\157\156\x74\x61\143\x74\40\x75\163\x20\x25\x73", 0, array("\x73\x75\160\x70\157\x72\164\x40\x73\x74\x6f\162\145\143\x6f\x6d\x6d\141\156\x64\145\162\56\x63\x6f\155")) . "\74\57\144\x69\166\x3e"; goto ngzfv; YSfwn: if (!$is_local) { goto p0str; } goto wgK8c; xzWHS: @(require_once SC_DIR . "\154\x69\143\145\x6e\x73\145\x2e\160\x68\160"); goto VVXMc; l1LYP: ?>
" target="_blank"><?php goto LmeVV; X8dyu: if ($error == "\131\x6f\x75\x72\40\163\x75\x62\x73\143\162\x69\x70\x74\x69\157\x6e\x20\151\163\x20\x6e\x6f\164\40\141\x63\164\x69\x76\x65\56\40\x4d\x61\156\x61\x67\x65\x20\x79\x6f\x75\x72\40\x73\165\x62\163\x63\x72\x69\160\164\x69\157\x6e\x2e") { goto K1vuH; } goto t8_zT; A2ueB: echo _l("\x4d\x73"); goto ls5HW; hE0YH: $langSelected = "\x65\156"; goto xHnrB; LI_g8: if (IS_RBM) { goto zN3KJ; } goto Lhgix; VVXMc: qTomp: goto JLBHG; U4I0X: ?>
</legend>
<?php goto YSfwn; liUIY: FpjFq: goto trJEi; LmeVV: echo _l("\x49\40\x61\x63\143\x65\x70\164\x20\124\145\162\155\163\40\x26\x20\x43\x6f\x6e\x64\x69\x74\x69\x6f\156\163"); goto ubRCR; rem2M: ?>
" onclick="if ($('#license').val()!='') {document.location='index.php?firstLoginPageAct=setlicense&license='+$('#license').val();}" disabled/>
</p>
</fieldset>
<br/><br/>
</div>
<script>
function checkCGU(cgucheckbox, buttondisabled)
{
cgucheckbox.click(function(){
if ($(this).is(':checked')) {
buttondisabled.removeClass('disabled').removeAttr('disabled');
} else {
buttondisabled.prop("disabled",true);
buttondisabled.addClass('disabled');
}
});
}
$(document).ready(function() {
checkCGU($('input[name="cgu_agreed"]'), $('input#licence_register'));
checkCGU($('input[name="cgu_agreed_trial"]'), $('input#btntrial'));
});
var submitted = false;
$( "#btntrial" ).on( "click", function() {
if(submitted==false)
{
submitted = true;
$(this).hide();
$("#loading").fadeIn();
$("#formtrial").submit();
}
});
</script>
<?php goto L_Yd1; rf6tH: if (empty($error) && (!IS_RBM || SC_MODULE_FOLDER_NAME !== "\x73\164\x6f\162\x65\x63\157\155\155\x61\x6e\144\x65\x72\x70\x73")) { goto hHADi; } goto sMUl5; YPa2c: echo $sc_agent->email; goto ym_yB; BAkW3: MAcqP: goto Y5VJz; HRmVP: $authorizedLanguages = array("\146\162" => "\106\162\x61\x6e\303\247\141\151\x73", "\x65\x6e" => "\105\156\x67\x6c\151\163\150", "\145\x73" => "\105\163\160\x61\303\xb1\x6f\x6c"); goto hE0YH; olCrk: if (!(!array_key_exists("\x6e\x6f\x74\x72\151\x61\x6c\146\157\162\155", $other) && (!IS_RBM || SC_MODULE_FOLDER_NAME !== "\163\164\157\x72\145\x63\157\x6d\155\141\156\144\145\162\160\163"))) { goto Xajqk; } goto OE19e; xHnrB: if (!array_key_exists(Language::getIsoById($sc_agent->id_lang), $authorizedLanguages)) { goto x3mrA; } goto ULBGE; mt41K: tkO0w: goto nHKAu; WlFLX: ?>
</b><br/>
<?php goto pbFNs; MnAdt: goto NLYJX; goto fLpGm; V_eV2: echo "\74\144\x69\x76\x20\143\154\141\x73\x73\75\x22\163\x63\137\145\162\162\157\x72\x22\76" . _l($error) . "\x3c\x2f\144\151\x76\76"; goto B_NdC; uPQf3: if (isset($id_partner)) { goto yg34v; } goto CtUjT; L_Yd1: W2Dg0: goto G6IRT; NNpNc: $oldVersionInstructions = sc_file_get_contents("\150\x74\164\160\x73\72\57\57\x77\x77\167\56\163\x74\157\162\145\x63\x6f\x6d\x6d\141\x6e\144\x65\162\56\x63\x6f\155\x2f\146\x69\x6c\145\x73\57\x67\x65\x74\x6f\154\144\x76\x65\162\x73\x69\x6f\x6e\x2e\160\150\160", "\107\x45\124", array("\x6c\141\156\147" => $user_lang_iso, "\x6b\145\x79" => $spbas->license_key)); goto Q34sK; U2a1m: die; goto MRKZj; CiMoL: ?>
"/><br/>
<?php goto H2pd7; AmJGA: echo "\74\163\143\x72\151\x70\x74\40\154\x61\156\147\165\x61\x67\x65\x3d\42\112\141\x76\141\123\x63\x72\x69\160\164\42\x20\x74\171\160\145\75\42\x74\145\170\164\57\152\141\x76\x61\163\143\162\151\160\164\42\x3e\x24\50\42\x23\146\x6f\x72\155\146\x72\145\145\x22\x29\56\x63\163\x73\x28\x22\x64\151\x73\x70\x6c\141\x79\x22\54\x22\156\157\156\x65\42\x29\73\x3c\x2f\163\143\x72\x69\160\x74\x3e"; goto RwW81; IIE2B: ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Store Commander</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="<?php goto xUY4t; N5pf8: if (IS_RBM) { goto mPVt4; } goto ITpg7; Jn8Y2: $is_local = false; goto mGJCQ; G6IRT: ?>
<br/><br/>
<?php goto RJGyw; sMUl5: if ($error == "\105\x72\x72\x6f\162\72\x20\x49\156\x76\141\x6c\x69\144\40\x41\143\143\145\163\163\x20\101\164\164\x65\x6d\160\x74" || strpos($error, "\x69\x6e\166\141\x6c\151\x64\x20\x66\157\x72\x20\164\150\151\163\40\x6c\x6f\143\141\164\x69\157\x6e") != 0) { goto imTCX; } goto X8dyu; ASRrs: echo _l("\x53\x68\x6f\x70\40\157\x77\156\145\x72\40\x6e\141\155\x65") . _l("\x3a"); goto F1DJF; fzMqc: echo $sc_agent->lastname; goto CiMoL; sLPxM: XbA_0: goto M0Frs; Cdmda: echo "\x3c\144\x69\x76\x20\143\154\141\x73\163\75\x22\163\143\x5f\145\x72\162\157\x72\42\76" . _l("\x54\x68\145\x20\124\x72\151\141\x6c\40\x70\145\162\151\x6f\144\40\167\145\40\x6f\146\146\x65\162\x65\x64\x20\x68\141\x73\40\x6e\157\x77\40\x65\156\144\x65\x64\56\x20\x54\x6f\x20\x63\x6f\x6e\164\151\156\x75\x65\40\x73\141\x76\151\156\147\40\x74\151\155\x65\x20\145\166\x65\162\171\40\x64\141\x79\x20\x77\x69\164\x68\40\123\x74\x6f\x72\x65\40\103\157\x6d\x6d\141\x6e\144\145\162\54\x20\141\x63\x74\x69\166\141\164\x65\40\x79\157\165\162\x20\x73\x75\x62\x73\143\162\151\160\x74\x69\x6f\156\x20\151\x6e\x20\x32\x20\x65\x61\x73\x79\x20\x73\164\x65\x70\163\54\40\x66\162\x6f\x6d\x20\x25\163\115\171\40\123\x75\x62\x73\x63\x72\x69\x70\x74\x69\157\x6e\x25\x73\40\x70\x61\x67\x65\40\x75\156\x64\145\x72\40\171\x6f\165\162\40\141\143\x63\157\x75\x6e\x74\56", 0, array("\74\x61\x20\x68\162\x65\x66\x3d\x22\150\x74\x74\160\x73\72\x2f\x2f\x77\x77\167\56\x73\x74\x6f\x72\145\x63\x6f\x6d\155\141\x6e\x64\145\162\x2e\143\157\x6d\57\151\x6e\144\x65\x78\x2e\x70\x68\160\x3f\143\157\156\x74\x72\x6f\x6c\154\x65\x72\x3d\x6d\171\x73\x75\142\163\x63\162\x69\x70\x74\151\157\156\x22\40\164\x61\162\147\x65\x74\75\42\x5f\142\x6c\x61\x6e\153\42\x3e", "\x3c\x2f\x61\76")) . "\x3c\x2f\144\x69\166\x3e"; goto Tfe_7; OSqQU: echo _l("\123\164\x61\x72\x74\x20\x74\x68\x65\40\164\x72\151\141\x6c\x20\141\156\144\40\x73\x61\166\x65\x20\164\x69\155\x65\x21"); goto nNP7t; k1M0t: echo _l("\x4d\56"); goto qlDSS; VtzX6: ?>
<br/>
<?php goto Q8uI5; h50TD: mP9ZA: goto q3k9F; ogxSn: jk_aR: goto BdOtH; Q34sK: echo "\x3c\x64\151\166\x20\143\x6c\141\163\163\75\x22\163\x63\137\x65\162\x72\157\162\x22\x3e" . _l($error) . "\x3c\x62\162\57\76\74\142\x72\x2f\76" . (array_key_exists("\x64\141\x74\145\x5f\x65\156\x64", $other) ? "\123\165\160\x70\157\162\x74\x3a\x20" . $other["\x64\x61\x74\x65\x5f\x65\156\x64"] : '') . "\74\142\x72\x2f\x3e\x3c\x62\x72\x2f\x3e" . $oldVersionInstructions . "\x3c\x2f\144\x69\166\x3e"; goto h50TD; wHR0u: K1vuH: goto heURZ; u5xNd: Xaxci: goto Nrbe9; asY2P: hJy1L: goto uPQf3; utVLH: echo $id_partner; goto ZGYaW; xUY4t: echo SC_CSSSTYLE; goto tE0UB; dguOf: XcP55: goto UJskr; zFGn8: if ($error == "\115\165\x73\164\40\x68\141\166\145\x20\115\123") { goto EMnez; } goto Jqwym; QeDxo: global $sc_agent, $spbas, $ajax, $user_lang_iso; goto NoGkN; F1DJF: ?>
<input type="text" name="lastname"
value="<?php goto fzMqc; imi37: x3mrA: goto B_P9F; Nrbe9: goto mP9ZA; goto mt41K; V81ag: ?>
" target="_blank"><?php goto ohAAz; QJmGk: ?>
<p class="right copyright">
© <?php goto vVpem; ngzfv: BD_Yt: goto mPsx8; tLuuB: ?>
<input type="text" name="company"
value="<?php goto CoUCp; ls5HW: ?>
</label>
</p>
<?php goto ASRrs; YWjwY: echo _l("\123\x74\141\x72\164\x20\x79\157\x75\x72\x20\x53\164\x6f\162\x65\x20\103\x6f\155\x6d\x61\x6e\144\145\162\x20\124\162\151\x61\x6c"); goto U4I0X; D5LoS: mail("\151\x6e\x66\157\100\163\x74\157\162\145\x63\x6f\x6d\x6d\141\x6e\144\145\x72\x2e\143\x6f\x6d", "\160\142\40\154\x69\x63\145\x6e\x63\x65\x20\55\40\x49\x44\40\x65\155\x70\x6c\157\171\x65\x65\x20" . $sc_agent->id_employee, "\x65\162\x72\72\xa\xa" . $error . "\12\12" . $dump); goto yrKc0; vjkpS: ?>
<?php goto sWI1a; siSJB: echo _l("\107\157\40\x74\157\40\171\157\165\x72\40\45\x73\40\143\165\x73\x74\x6f\155\x65\162\x20\x61\x63\143\157\165\x6e\x74\56", null, array("\123\164\157\x72\145\x20\103\157\x6d\155\141\x6e\144\x65\162")); goto QQL9v; ggE7y: goto mP9ZA; goto DL8Fc; trJEi: if (!file_exists("\154\151\143\x65\x6e\163\145\x2e\160\150\x70")) { goto hJy1L; } goto Rmpyx; QQL9v: ?>
</a>
<?php goto LIeE7; LxI9i: goto BD_Yt; goto vnGB3; Q7BF5: echo _l("\x41\x20\x6c\151\143\145\x6e\x63\x65\x20\153\x65\x79\x20\x77\x69\x6c\x6c\40\142\x65\40\x67\145\x6e\x65\x72\141\x74\145\144\x20\141\x75\164\x6f\155\141\164\x69\x63\x61\154\154\171\x20\141\x6e\x64\40\x61\x73\x73\x6f\143\x69\141\x74\x65\x64\x20\x77\x69\164\x68\40\x79\x6f\x75\x72\x20\x61\143\x63\157\x75\x6e\x74\x2e") . "\74\142\162\57\76"; goto liUIY; UJskr: ?>
<?php goto olCrk; R9UhD: aA3qk: goto MCqFE; MRKZj: } goto L5P2w; wB_Nf: $cgu_cms_id = 61; goto X_7XA; Z_uQv: require_once SC_DIR . "\x6c\x69\142\x2f\160\150\160\x2f\x65\x78\x74\x65\156\x73\151\x6f\x6e\57\x65\170\160\x6f\x72\164\137\x6f\162\x64\x65\162\x2f\x45\x78\x70\x6f\162\x74\x4f\162\x64\145\x72\106\x69\x6c\x74\x65\162\56\160\x68\160"; goto mvCXM; H8W10: function getExtensionsList() { goto LNo6_; antIy: return json_decode($extensions, true); goto kODLb; utcyt: $extensions = SCI::getConfigurationValue("\x53\x43\137\105\130\x54\x45\x4e\123\111\x4f\x4e\x53\x54\x41\x54\125\123"); goto uqpMh; LNo6_: $extensions = SCI::getConfigurationValue("\x53\103\137\105\x58\124\x45\116\123\111\117\116\123\124\x41\124\x55\x53"); goto q2mo_; eEaPz: getExtensionsStatus(); goto utcyt; uqpMh: YbqOi: goto antIy; q2mo_: if (!empty($extensions)) { goto YbqOi; } goto eEaPz; kODLb: } goto lCC32; djJUO: $id_employee = $sc_cookie->ide = Tools::getValue("\151\x64\x65", 0); goto hMuvW; zdDdA: KieIF: goto Nzjd7; en1HW: error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); goto caCNP; RFPFR: fXBMi: goto jgxhw; d1hjS: dAx9U: goto tX74M; TKIYX: if (!(KAI9DF4 != 1 && !$ajax)) { goto fJ3Ll; } goto MBMHa; IJKY6: getServicesStatus(); goto j8u70; zxrcg: goto GHaoZ; goto K5kgq; zJP_a: DUKTn: goto ho1_n; UIOVH: rf810: goto gBj3c; W0AQi: $cookie_mail = $cookie->__get("\145\x6d\x61\151\154"); goto Pi6hA; vnZC_: Db::getInstance()->Execute("\x44\105\x4c\x45\x54\105\40\x46\x52\117\x4d\x20" . _DB_PREFIX_ . "\x63\157\156\x66\151\147\165\162\141\164\151\157\156\40\127\110\x45\122\x45\x20\x6e\141\x6d\145\x3d\x27\123\103\137\114\111\103\x45\x4e\x53\105\137\113\x45\131\x32\47"); goto aAkXf; qur3X: $sc_iso_list = array_keys($cgu_allowed_lang); goto nUcCJ; ZuCn9: KfsJ7: goto Ikp9g; U8Cj1: yE6l4: goto U2Tlc; g93Bb: require_once SC_DIR . "\x6c\x69\x62\57\160\150\160\57\145\170\x74\x65\156\x73\151\x6f\156\57\x65\x78\x70\x6f\x72\164\137\x6f\x72\144\145\x72\57\x45\x78\x70\x6f\162\x74\117\162\x64\x65\162\x4d\141\x70\x70\151\156\147\x46\157\162\x6d\56\x70\x68\160"; goto wInyW; s3sID: if (!SC_TOOLS) { goto rjVR_; } goto P33Uz; fY87l: if (!(isset($_GET["\162\x65\x73\145\164\x6c\x69\143\145\x6e\x73\x65"]) && $_GET["\162\x65\163\x65\164\154\x69\143\x65\x6e\x73\145"] == "\x72\x65\163\145\164\154\151\143\145\x6e\163\145")) { goto j95k8; } goto SR7d9; Hwo4r: const SC_VERSION = "\x32\x30\x32\63\x2d\60\71\x2d\x31\63"; goto d2E5F; KIT2N: $context = stream_context_create($opts); goto fTz3Z; vSoTz: $datelastregen = Db::getInstance()->getValue("\x53\105\x4c\105\x43\124\x20\x6c\x61\x73\164\x5f\x70\141\163\x73\167\144\x5f\147\x65\156\x20\106\x52\x4f\115\40" . _DB_PREFIX_ . "\x65\155\x70\154\157\171\x65\145\x20\127\x48\105\122\105\x20\x69\144\x5f\145\155\160\x6c\157\171\145\145\x3d" . (int) $id_employee); goto IOLn4; OPVy0: echo "\103\x6f\156\x6e\145\x63\164\x69\x6e\x67\56\56\x2e\x2e\56\74\x73\x63\162\151\x70\164\x3e\x64\x6f\x63\x75\155\x65\156\x74\x2e\x6c\157\143\141\x74\x69\157\156\56\150\162\x65\x66\x3d\47\56\x2f\151\x6e\144\145\170\56\x70\150\160\x27\73\74\x2f\x73\x63\x72\x69\160\164\x3e"; goto Vkr9E; r8fEw: die(_l("\x59\x6f\165\x20\141\162\145\40\156\x6f\x74\40\x61\x6c\154\x6f\167\145\x64\x20\x74\157\40\165\163\145\40\x53\x74\x6f\162\145\x20\x43\157\155\x6d\x61\156\x64\145\162\56") . "\40\x3c\x61\x20\x68\x72\145\x66\x3d\x22" . SC_PS_PATH_ADMIN_REL . "\151\x6e\144\x65\x78\56\x70\x68\x70\x22\x3e\102\x61\143\153\117\x66\x66\x69\x63\145\x3c\57\141\76"); goto cvn1o; k8twk: goto VCnm9; goto E5ccb; E5RdB: Context::getContext()->shop->id = (int) Configuration::get("\x50\x53\x5f\x53\110\117\x50\x5f\x44\x45\106\101\x55\114\x54"); goto A0IR8; c1Gg4: require_once SC_DIR . "\154\151\142\57\x70\150\160\x2f\145\170\164\x65\156\x73\x69\157\156\57\x65\x78\160\157\x72\x74\x5f\x63\165\x73\164\x6f\x6d\x65\x72\57\x45\x78\160\157\x72\x74\x43\165\x73\x74\x6f\155\145\x72\56\160\x68\160"; goto uYIJL; cvn1o: cceFe: goto ru2aR; SLLIP: define("\x43\x47\x55\x5f\x4c\x4f\x43\x41\x4c\x5f\x50\x41\124\x48", "\x2e\56\x2f\123\103\x2f" . $cgu_prefix . "\55" . SC_ISO_LANG_FOR_EXTERNAL . "\56\x68\x74\155\154"); goto ZJpLu; nSc6q: $cookie->logout(); goto iUIDk; UT2Do: goto cPBGF; goto poG6H; MiXhF: PXwgY: goto A52oL; XqGzE: require_once SC_DIR . "\x6c\x69\142\57\160\x68\160\x2f\145\x78\x74\145\x6e\x73\151\157\x6e\57\145\x78\x70\157\162\x74\x5f\x6f\x72\x64\x65\x72\57\x45\x78\160\157\x72\164\117\x72\144\145\x72\115\141\160\x70\151\156\x67\x2e\160\x68\160"; goto g93Bb; T8xD9: s_oZl: goto VTh5L; AOlaL: function doScUpdate($user_lang_iso = "\145\x6e") { goto AkAZo; fmVAM: QEn6e: goto gZNA_; u7tk7: $localVersions = array(); goto UwAIM; fmdH3: if (!(Tools::getValue("\104\105\102\x55\107", 0) == 1)) { goto Agf3_; } goto N_D9e; V3Zf_: if (isset($_GET["\165\160\144\x61\x74\145\153\145\x65\160\x7a\151\x70\x66\x69\x6c\x65"])) { goto OC5Dd; } goto j5UKj; eJmHs: OC5Dd: goto vuV_r; oGpH3: $is_old = true; goto KmGx8; Zz_j_: $dst = SC_PS_MODULE_PATH_DIR . $ork_folder; goto nBIFK; fMiOD: fq8d2: goto vOYun; vXVco: var_dump($newPackages); goto hQaU_; UwAIM: rQkGX: goto p44Mw; vOYun: getServicesStatus(); goto dKL3D; wKn32: $checkSupport = sc_file_get_contents("\150\x74\164\160\163\x3a\x2f\x2f\167\x77\x77\56\163\164\157\162\x65\143\x6f\x6d\155\141\156\x64\x65\x72\56\143\157\155\x2f\x66\x69\x6c\x65\163\x2f\147\145\164\163\165\x70\160\157\x72\164\137" . SCI::getConfigurationValue("\x53\x43\137\114\x49\x43\x45\x4e\x53\x45\x5f\113\105\131", '') . "\137\143\x68\x65\143\x6b\x6f\156\154\x79\x2e\x70\x68\160"); goto ciWsY; WrSz_: include SC_DIR . "\x6c\x69\142\57\160\x68\x70\x2f\160\x63\154\x7a\x69\160\56\154\151\142\56\x70\x68\160"; goto z_gr2; p44Mw: echo _l("\x55\x70\144\x61\x74\151\x6e\x67\56\56\x2e") . "\74\x62\162\57\x3e\x3c\x62\162\x2f\76"; goto fmdH3; AkAZo: $notWritableFiles = array(); goto e5k9l; nBIFK: recursive_copy($src, $dst); goto ydVLA; i1v1O: require_once $sc_update_path; goto CWIiq; KmGx8: AIvRR: goto FmEyE; IsRom: umask($old); goto LY1yt; lSlaG: echo _l("\x53\x6f\x6d\x65\x20\x66\x69\x6c\145\163\x20\141\162\145\40\x6e\157\x74\40\x77\x72\151\x74\141\x62\154\145\x2c\40\160\x6c\x65\x61\163\x65\40\x63\x68\x61\156\147\x65\x20\164\x68\145\x20\x70\145\x72\x6d\151\x73\x73\151\157\156\x20\157\146\x20\164\x68\145\163\145\x20\146\151\x6c\145\163\x3a") . "\40\x28" . $writePermissionsOCT . "\51" . "\x3c\x62\162\x2f\x3e\x3c\142\162\x2f\76"; goto Jij86; w0XTr: $old = umask(0); goto DM0rH; NBjMR: if (!$is_old) { goto Dw56K; } goto zabm3; LsU4O: $newPackages = checkSCVersion(true, true, true); goto NBjMR; j5UKj: dirRemove($tmp_folder); goto eJmHs; gZNA_: $licence = SCI::getConfigurationValue("\123\x43\137\x4c\111\x43\105\x4e\x53\105\137\x4b\x45\x59"); goto iKD37; I23mQ: die; goto fmVAM; efi5P: Agf3_: goto WOpHr; m80bC: $licence = "\144\x65\155\x6f"; goto fMiOD; sQzZn: knyRI: goto sOsda; N_D9e: echo "\x3c\160\x72\x65\76"; goto vXVco; Mo5NU: if (!file_exists($sc_update_path)) { goto XFSDj; } goto i1v1O; DCBcC: if (is_dir($tmp_folder)) { goto R1jaJ; } goto w0XTr; dKL3D: $ork_folder = "\157\x72\153"; goto C9iSB; T9n2D: $exp = explode("\x2d", $licence); goto GD_lV; C9iSB: $src = SC_DIR . "\x61\165\x74\x6f\x69\x6e\x73\164\x61\154\x6c\57" . $ork_folder; goto Zz_j_; ydVLA: $sc_update_path = SC_TOOLS_DIR . "\x68\x6f\157\153\137\x73\143\137\x75\x70\x64\141\164\x65\x2e\x70\150\160"; goto Mo5NU; fnuu0: $dirStrSize = strlen(SC_PS_PATH_ADMIN_DIR); goto lSlaG; nlx1C: saveSettings(); goto kuBEB; LY1yt: R1jaJ: goto EGS6M; fGffP: if (empty($notWritableFiles)) { goto QEn6e; } goto fnuu0; yXU0s: echo _l("\x43\x6f\160\171\151\156\147\x20\146\151\x6c\x65\163\56\56\56") . "\x3c\142\x72\x2f\76\74\142\162\x2f\x3e"; goto BQ6rZ; DM0rH: mkdir($tmp_folder, $writePermissions); goto IsRom; f2Wi6: if (!($localVersions == null)) { goto rQkGX; } goto u7tk7; rKOzM: if (empty($licence)) { goto q33ti; } goto T9n2D; mZ20D: TWUxG: goto wKn32; CtD71: dirCheckWritable(SC_DIR, $notWritableFiles); goto fGffP; z_gr2: $tmp_folder = SC_DIR . "\163\143\x5f\165\x70\144\141\164\145\x5f\x74\155\160"; goto DCBcC; Jij86: foreach ($notWritableFiles as $k => $file) { goto HqDTA; HqDTA: echo substr($file, $dirStrSize) . "\x3c\x62\x72\x2f\x3e"; goto Qpzhk; Qpzhk: if (!($k > 20)) { goto EuOTb; } goto y_9pl; y_9pl: echo "\x2e\56\x2e"; goto f3mJK; x11Ao: EuOTb: goto jkxxg; jkxxg: Vr9AD: goto gjlsG; f3mJK: die; goto x11Ao; gjlsG: } goto Dm0d3; xIjI9: Mftxq: goto stsD6; xxXYf: die(_l("\x54\x68\x65\40\160\x65\162\151\157\144\x20\145\x6e\164\151\x74\154\x69\x6e\147\x20\171\x6f\165\x20\x74\157\x20\144\157\x77\x6e\154\x6f\141\x64\x20\123\164\157\x72\145\x20\103\157\x6d\155\141\156\x64\145\x72\x20\165\x70\144\141\x74\x65\163\40\141\x6e\144\40\x62\x65\156\145\x66\151\164\40\x66\162\x6f\155\40\163\165\160\x70\157\x72\x74\40\150\141\163\x20\x65\x78\x70\x69\x72\x65\144\x2e") . "\74\x62\162\x2f\x3e\74\142\x72\x2f\x3e" . _l("\111\x66\x20\x79\157\165\40\x77\151\x73\150\x20\164\157\40\x62\x65\156\145\146\x69\x74\40\146\x72\x6f\155\x20\146\x75\164\165\162\145\40\x75\x70\144\x61\x74\145\x73\40\x61\x6e\x64\40\156\x65\x77\x20\146\x65\141\x74\x75\162\145\x73\54\40\x70\154\x65\x61\163\x65\x20\154\x6f\147\x20\157\156\164\x6f\x20\171\157\165\162\40\x61\143\x63\x6f\165\x6e\x74\x20\150\145\x72\x65\72") . "\x3c\x62\x72\x2f\x3e" . "\x3c\x61\x20\x68\x72\145\x66\75\x22\150\x74\164\160\163\72\57\57\x77\x77\167\56\163\164\x6f\162\145\x63\157\x6d\155\141\x6e\144\145\x72\x2e\x63\x6f\x6d\57" . ($user_lang_iso == "\x66\162" ? '' : "\145\x6e\x2f") . "\x6d\x79\55\x6c\x69\x63\x65\156\163\145\163\x2e\160\150\x70\42\40\x74\141\162\x67\145\164\75\x22\x5f\142\x6c\141\x6e\x6b\x22\76\x68\x74\x74\160\x73\x3a\x2f\57\167\x77\x77\56\x73\164\x6f\x72\145\x63\x6f\x6d\x6d\x61\x6e\144\x65\162\x2e\143\x6f\x6d\x2f" . ($user_lang_iso == "\x66\162" ? '' : "\x65\x6e\x2f") . "\x6d\171\55\154\x69\143\145\156\163\145\x73\56\160\x68\x70\x3c\57\x61\76" . "\74\142\162\57\76\x3c\142\x72\57\x3e" . _l("\x61\156\x64\40\143\154\x69\x63\153\40\157\156\x20\x55\160\x64\141\164\x65\163\x20\46\x20\x73\x75\x70\x70\x6f\x72\x74\40\x36\40\157\x72\40\61\62\x20\155\157\x6e\164\150\163\x2c\40\x6f\162\x20\x75\x70\147\162\x61\x64\145\x20\164\x6f\x20\x61\40\150\151\x67\150\x65\162\x20\x6c\151\143\145\x6e\x73\x65\40\x70\x6c\x61\156\56") . "\74\142\162\x2f\x3e\74\x62\162\57\x3e" . "\74\141\40\150\x72\x65\146\75\x22\x68\x74\x74\160\72\x2f\57\163\165\x70\160\x6f\x72\164\x2e\163\x74\157\162\x65\143\157\x6d\x6d\x61\x6e\144\x65\x72\56\x63\x6f\155\x22\x20\x74\x61\x72\147\x65\x74\75\42\x5f\142\x6c\x61\x6e\x6b\x22\x3e" . _l("\120\154\145\141\163\145\x20\143\157\156\164\141\143\x74\40\x75\x73\x20\x66\x6f\162\40\141\x6e\171\x20\x73\x61\x6c\145\x73\40\x69\x6e\x71\165\x69\162\x69\145\x73\40\x79\157\x75\x20\x6d\141\x79\x20\x68\141\x76\145\x2e") . "\x3c\x2f\x61\x3e"); goto sQzZn; ctUZa: die(_l("\116\157\x20\165\x70\x64\141\x74\145\x20\x66\x6f\x75\x6e\144\x2e")); goto mZ20D; zj8cq: $local_settings["\x41\x50\x50\137\x54\122\x45\x4e\x44\x53"]["\x76\141\154\165\145"] = 1; goto nlx1C; CWIiq: XFSDj: goto Ho1zD; bEEWX: if (!empty($licence)) { goto fq8d2; } goto m80bC; sOsda: Dw56K: goto WrSz_; zabm3: if (!empty($newPackages)) { goto TWUxG; } goto ctUZa; BQ6rZ: dirMove($tmp_folder . "\x2f\x53\103", realpath(SC_DIR . "\x2e\56\57"), true); goto V3Zf_; vuV_r: SCI::updateConfigurationValue("\123\x43\x5f\126\105\122\x53\x49\117\116\x53", json_encode($localVersions)); goto eT8l5; EGS6M: $localVersions = json_decode(SCI::getConfigurationValue("\x53\x43\x5f\x56\105\122\x53\111\117\x4e\123", 0), true); goto f2Wi6; eT8l5: SCI::updateConfigurationValue("\123\x43\x5f\x4c\101\x53\x54\137\x55\x50\104\x41\124\105", date("\x59\55\155\x2d\x64\x20\x48\72\x69\x3a\163")); goto zj8cq; EY1ut: die(_l("\x45\162\162\157\x72\x3a\x20\x79\157\x75\162\40\x6c\x69\143\x65\x6e\163\145\x20\151\163\40\x6e\157\164\40\146\157\165\x6e\144\x20\x6f\x6e\x20\157\x75\162\40\x73\145\162\x76\x65\162\x2c\x20\160\154\x65\x61\163\x65\40\x63\x6f\156\x74\x61\143\x74\x20\163\x75\160\160\157\162\164\x2e")); goto xIjI9; kuBEB: $licence = SCI::getConfigurationValue("\123\x43\137\114\111\103\x45\x4e\x53\105\137\113\105\131"); goto bEEWX; PqPKo: $writePermissionsOCT = substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "\151\155\147\57\160"))), -3); goto CtD71; stsD6: if (!($checkSupport == "\105\130\x50\x49\x52\105\104")) { goto knyRI; } goto xxXYf; FmEyE: q33ti: goto LsU4O; YMagt: I3wbW: goto yXU0s; GD_lV: if (!(count($exp) >= 4 && strpos($licence, "\x53\103\55\x50\123\x2d") === 0)) { goto AIvRR; } goto oGpH3; e5k9l: $writePermissions = octdec("\x30" . substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "\151\x6d\x67\57\x70"))), -3)); goto PqPKo; WOpHr: foreach ($newPackages as $pack) { goto KL6cz; g9dVN: whK_8: goto NFxDc; y4_wg: $archive = new PclZip($tmp_folder . "\57" . $pack["\x66\x69\x6c\x65\156\x61\155\x65"]); goto jjYjo; M3gbI: echo _l("\117\160\145\x6e\151\x6e\x67\x20\x7a\x69\x70\40\x61\x72\x63\x68\x69\166\145\x2e\x2e\x2e") . "\x3c\x62\162\57\76"; goto y4_wg; RSTBr: echo _l("\105\x72\x72\x6f\162\40\167\x69\164\x68\x20\141\x72\x63\x68\151\x76\x65\x20\50\x66\151\154\x65\x73\x69\172\145\x20\75\x20\60\x20\113\x6f\x29") . "\x3c\142\x72\x2f\76"; goto ulspL; ulspL: oTi4W: goto g9dVN; jUuQt: $old = umask(0); goto TCV_s; GF1x8: file_put_contents($tmp_folder . "\x2f" . $pack["\x66\x69\154\x65\156\x61\155\x65"], $data); goto Q0vqi; LHFEi: $localVersions[$pack["\163\150\157\162\x74\156\x61\155\x65"]] = $pack; goto Z0X2F; LDGsy: echo "\x20\x28" . strlen($data) / 1000 . "\113\x29\x3c\142\x72\x2f\x3e"; goto GF1x8; Q0vqi: if (filesize($tmp_folder . "\x2f" . $pack["\146\x69\x6c\x65\156\x61\155\145"]) == 0) { goto Vf34c; } goto M3gbI; IGAIB: goto oTi4W; goto dIWMu; TCV_s: $archive->extract(PCLZIP_OPT_PATH, $tmp_folder . "\57", PCLZIP_OPT_SET_CHMOD, $writePermissions); goto wlM77; dIWMu: Vf34c: goto RSTBr; erMcs: $data = sc_file_get_contents($pack["\x75\162\154"]); goto FdTbe; wlM77: umask($old); goto LHFEi; raQVn: echo $pack["\165\162\154"] . "\x3c\x62\x72\57\76"; goto SdmTe; FdTbe: if (!(Tools::getValue("\104\105\102\x55\x47", 0) == 1)) { goto eRaWE; } goto raQVn; XhVbZ: $pack["\165\x72\154"] = str_replace("\x4b\105\131", SCI::getConfigurationValue("\123\x43\137\x4c\111\103\105\116\x53\105\137\x4b\105\131", '') . "\x5f" . sc_phpversion(false) . "\x5f" . _PS_VERSION_, $pack["\x75\x72\x6c"]); goto erMcs; SdmTe: eRaWE: goto LDGsy; Z0X2F: echo _l("\105\x6e\144\x20\157\146\40\x65\170\164\x72\141\x63\x74\x69\157\x6e") . "\74\142\x72\x2f\x3e\74\x62\162\x2f\76"; goto IGAIB; jjYjo: echo _l("\105\170\164\x72\x61\143\x74\151\156\x67\x20\x7a\x69\x70\x20\x61\x72\143\150\x69\166\x65\x2e\56\x2e") . "\x3c\142\x72\57\76"; goto jUuQt; KL6cz: echo _l("\104\157\167\x6e\x6c\157\x61\144\x69\x6e\147\x20\160\141\x63\x6b") . "\40" . $pack["\146\x69\154\145\156\141\155\145"] . "\56\x2e\56\74\142\x72\x2f\76"; goto XhVbZ; NFxDc: } goto YMagt; Dm0d3: nb76r: goto I23mQ; iKD37: $is_old = false; goto rKOzM; hQaU_: echo "\74\x2f\x70\x72\x65\76"; goto efi5P; ciWsY: if (!($checkSupport == "\x4c\111\x43\105\x4e\123\x45\116\x4f\124\106\x4f\125\116\x44")) { goto Mftxq; } goto EY1ut; Ho1zD: } goto HfY0i; HQl5g: if (!empty($check["\x73\164\141\x74\x75\163"]) && $check["\163\164\141\164\165\x73"] == "\61") { goto k0iWc; } goto nKmFr; SWFyu: pg12W: goto SXvdl; B7TRM: displayFirstLoginPage("\x45\162\x72\157\162\x3a\x20\x54\150\151\x73\40\154\151\x63\145\x6e\163\x65\x20\x6e\x6f\164\x20\146\x6f\x75\x6e\144", array("\156\x6f\164\x72\151\x61\154\x66\157\162\155" => 1)); goto AkL_f; k7ejv: if (strpos(PS_WEB_PATH, "\163\164\x6f\x72\x65\x63\x6f\155\x6d\141\x6e\x64\145\162\x2e\156\x65\164") !== false && (!empty($demos[md5(substr(getcwd(), 0, 51))]) || !empty($demos[md5(substr(getcwd(), 0, 35))]))) { goto mL0KJ; } goto LSuo9; nkswY: $id_employee = $sc_cookie->ide; goto D97Jp; ZtbQ2: @file_put_contents(_PS_CORE_IMG_DIR_ . "\x70\x72\145\163\x74\141\163\x68\x6f\x70\x2d\x6c\x6f\x67\151\x6e\62\56\160\156\147", date("\131\x2d\x6d\55\x64")); goto ecuL8; MBMHa: $wallet_amount = getWallet(); goto MTx6p; MTx6p: fJ3Ll: goto NJcWT; ueV_p: function getExtensionsStatus() { goto xCSGW; f1V0u: $extensions = json_decode($extensions, true); goto nzdCU; D5I_J: if (empty($content)) { goto yrBuC; } goto f1V0u; lMQOA: yrBuC: goto jjIez; LyZH7: if (empty($licence) && !SC_DEMO) { goto dheEG; } goto fr2Bl; Ia6LZ: $licence = "\144\145\155\157"; goto pWSkr; Pl23s: if (!(defined("\113\101\111\x39\104\106\x34") && file_exists("\x6c\151\x63\145\x6e\163\145\56\x70\x68\160"))) { goto frQOg; } goto zHQH4; GPKtj: $headers = array(); goto iKD7M; zHQH4: $content = file_get_contents("\x6c\151\x63\x65\156\x73\145\56\160\x68\160"); goto D5I_J; fr2Bl: goto dhVKM; goto sxspy; nzdCU: $extensions["\x46\151\x78\x4d\171\120\x72\145\163\164\141\163\150\x6f\x70"]["\x61\x63\x74\x69\166\x65"] = 1; goto raI7u; sxspy: DMa1L: goto VX9oD; pWSkr: dhVKM: goto GPKtj; jjIez: frQOg: goto BkUtE; xCSGW: $licence = SCI::getConfigurationValue("\123\103\137\x4c\111\x43\105\x4e\x53\x45\x5f\113\105\x59"); goto r1_mL; BkUtE: if (empty($extensions)) { goto Ea11w; } goto lqofx; r1_mL: if (empty($licence) && SC_DEMO) { goto DMa1L; } goto LyZH7; I0jIY: Ea11w: goto lzsor; lqofx: SCI::updateConfigurationValue("\123\x43\137\105\130\x54\105\x4e\x53\111\x4f\116\x53\124\101\124\125\x53", $extensions); goto I0jIY; Uvqdb: goto dhVKM; goto T4ztd; r023A: $extensions = sc_file_get_contents("\x68\x74\164\160\x73\x3a\x2f\57\141\x70\x69\56\x73\x74\x6f\162\145\143\x6f\155\155\141\x6e\144\145\x72\x2e\143\157\x6d\57\x47\x65\x74\105\x78\164\145\x6e\163\151\157\156\x73\x53\x74\x61\164\165\x73\x2f" . $licence . "\57\x61\x6c\154", "\107\105\x54", array(), $headers); goto Pl23s; raI7u: $extensions = json_encode($extensions); goto lMQOA; T4ztd: dheEG: goto Ia6LZ; iKD7M: $headers[] = "\120\x53\126\105\122\x53\111\117\116\72\x20" . _PS_VERSION_; goto r023A; VX9oD: $licence = "\x53\x43\144\x65\155\x6f"; goto Uvqdb; lzsor: } goto H8W10; fXSdg: if ($check["\x74\x79\160\x65"] == 9) { goto AFX_Q; } goto vSZhQ; Qt64g: $ajax = Tools::getValue("\141\152\x61\x78", 0); goto W4jBd; XvF4b: if (defined("\x4b\101\111\x39\104\x46\x34")) { goto gbqRD; } goto KAjzq; WrZC9: goto LG3r_; goto uxTNW; DxsgH: $check = checkSubsLic(); goto aW8RY; TUdmc: $postdata = http_build_query($_POST); goto qnozX; R0LUg: $license_key = SCI::getConfigurationValue("\123\103\x5f\114\111\x43\105\x4e\x53\105\x5f\x4b\105\x59", ''); goto Rie_D; F9i2E: $CRONList = array("\155\141\x70\160\x69\156\147\x5f\160\x72\157\143\145\x73\x73", "\145\170\160\157\162\164\137\x70\x72\157\143\x65\163\163", "\143\141\x74\x5f\145\170\160\x6f\162\x74\137\160\162\x6f\x63\x65\163\x73"); goto PIBr9; RTgHJ: displayFirstLoginPage("\x59\157\165\162\40\x73\x75\x62\x73\143\162\151\160\164\151\x6f\x6e\40\x69\x73\x20\156\x6f\164\x20\x61\x63\164\151\166\x65\56"); goto w8RO2; gwwIr: g4ZLO: goto fY87l; huQ5C: if ($allowed) { goto cceFe; } goto r8fEw; NStCo: displayFirstLoginPage("\x59\x6f\165\162\x20\x54\162\x69\x61\x6c\x20\163\x75\x62\163\x63\162\x69\x70\x74\x69\157\156\40\x68\x61\163\40\x65\170\160\151\162\x65\144", array("\x6e\157\x74\x72\151\x61\x6c\146\157\162\155" => 1)); goto GA54Z; jmbYK: define("\123\x43\137\120\123\x5f\x50\101\124\x48\137\101\x44\x4d\x49\116\x5f\104\111\122", SC_PS_PATH_DIR . SCI::decrypt($sc_cookie->psap) . "\57"); goto Py1jv; e5zq1: NvBuW: goto aRVYn; ojMzT: H9qtI: goto XsGO4; oOxqL: require_once SC_DIR . "\154\151\x62\x2f\x70\150\x70\x2f\145\170\164\145\x6e\x73\151\157\156\57\163\x65\x67\155\145\x6e\164\141\x74\x69\157\156\57\163\145\147\155\x65\156\164\137\150\x6f\157\x6b\x2e\160\150\160"; goto VTXOD; cj2mR: goto VCnm9; goto QqbJI; ygeBN: AFX_Q: goto HC1CC; Pizsg: $local_settings["\101\x50\x50\x5f\124\122\105\x4e\104\123"]["\x76\x61\x6c\165\145"] = 1; goto M9YtS; c51ag: if (empty($licence)) { goto N2hV7; } goto JWgKW; SkoWp: EiSC3: goto N8fvP; FOMZY: if (!(version_compare(_PS_VERSION_, "\x31\x2e\65\56\60\56\61", "\x3e\75") && !$ajax && !(isset($CRON) && $CRON == true && sc_in_array(Tools::getValue("\141\x63\x74\151\x6f\156", ''), $CRONList, "\x6c\151\143\145\x6e\x63\x65\163\103\162\157\x6e\x4c\x69\163\164")))) { goto EHemO; } goto xpq1I; OROCP: function checkExtensionsStatus() { goto tny7H; Y_TfN: $extensions = SCI::getConfigurationValue("\123\103\137\105\130\x54\x45\116\x53\x49\x4f\116\x53\124\x41\124\125\x53"); goto Hg_xy; tny7H: global $scExtensions_filesToDelete; goto Y_TfN; fMfBs: jmS3r: goto cT9lt; MXhD2: foreach (getScExtensionsHasModule() as $extension) { goto P2tvk; EQJ3R: HAfzu: goto vPiDA; S10jp: AJ43B: goto LK9ke; A72Ij: BPNfe: goto Q38bX; zpQiH: if (!defined("\x53\x43\137" . $extension . "\137\x41\x43\x54\111\x56\x45")) { goto AJ43B; } goto ru9QC; QRdHQ: KQuST: goto HNoxI; HNoxI: if (!empty($extensions_decoded->{$extension}->active) || defined("\106\x4f\122\x43\x45" . "\137" . "\105\x58\124\105\x4e\x53\x49\117\x4e" . "\x5f" . "\101\x43\x54\x49\x56\105") && FORCE_EXTENSION_ACTIVE == "\x31") { goto BPNfe; } goto zpQiH; iV92E: goto HAfzu; goto A72Ij; B2Zed: goto ZmGVl; goto QRdHQ; tCt7P: define("\x53\x43\x5f" . $extension . "\137\101\103\124\111\126\105", "\61"); goto xwlgB; ru9QC: die("\106\101\x54\101\114\40\105\x52\122\x4f\122\40\x3a\x20\x43\157\156\163\x74\141\x6e\164\40\x61\x6c\162\145\x61\x64\171\40\144\145\x66\x69\x6e\145\x64"); goto TG07E; rzwQK: die("\106\x41\124\x41\x4c\40\105\122\x52\x4f\122\x20\x3a\x20\x43\157\x6e\x73\x74\x61\x6e\x74\x20\141\154\x72\x65\x61\x64\171\40\144\145\146\x69\x6e\x65\x64"); goto EGYf3; vPiDA: ZmGVl: goto Vc3G6; xwlgB: r9phR: goto EQJ3R; TG07E: goto XcBAT; goto S10jp; Q38bX: if (!defined("\123\103\137" . $extension . "\137\101\103\x54\111\126\105")) { goto Eopuc; } goto rzwQK; sdk4U: XcBAT: goto iV92E; S7pHB: Eopuc: goto tCt7P; LK9ke: define("\x53\x43\137" . $extension . "\137\101\103\x54\111\x56\105", "\x30"); goto sdk4U; EGYf3: goto r9phR; goto S7pHB; P2tvk: if (empty($scExtensions_filesToDelete[$extension])) { goto KQuST; } goto B2Zed; Vc3G6: } goto fMfBs; Q2SIK: foreach ($scExtensions_filesToDelete as $extension => $files) { goto lL20p; ohnuD: PXedI: goto u4E9n; LVReX: if (!defined("\123\103\137" . $extension . "\x5f\x41\103\124\x49\126\x45")) { goto Ad1iu; } goto GPoRf; u4E9n: if (!defined("\x53\103\x5f" . $extension . "\x5f\x41\103\124\111\x56\105")) { goto fT8yH; } goto Dx3JA; Jxq3B: checkDeletedFilesActiveExtension($extension); goto RHz7o; gnbnf: goto WcLI9; goto Gug2d; mluyV: drhFa: goto EJrKf; RHz7o: k1hE5: goto IWyM0; ey8ia: unset($scExtensions_filesToDelete["\107\x72\x69\x64\x45\144\x69\164\x6f\x72"]); goto en35a; GsDNA: fT8yH: goto JJ17i; XidEa: if (!(defined("\x53\x43\x5f\107\162\x69\144\105\144\151\164\157\162\x50\162\157\137\101\x43\124\x49\x56\105") && SC_GridEditorPro_ACTIVE == "\61")) { goto E_hU9; } goto ey8ia; hOiSD: goto k1hE5; goto GsDNA; JJ17i: define("\123\x43\137" . $extension . "\x5f\101\x43\x54\111\x56\x45", "\61"); goto XidEa; F1A9o: goto Y5v1P; goto ohnuD; U8Pad: deleteDisabledExtensionFiles($extension); goto LVReX; Ar0Xn: define("\123\x43\x5f" . $extension . "\x5f\101\x43\x54\111\x56\105", "\60"); goto GZC6_; Gug2d: Ad1iu: goto Ar0Xn; lL20p: if (!empty($extensions_decoded->{$extension}->active) || defined("\106\x4f\x52\103\x45" . "\x5f" . "\105\x58\x54\x45\116\123\x49\x4f\x4e" . "\137" . "\x41\103\x54\x49\x56\105") && FORCE_EXTENSION_ACTIVE == "\61") { goto PXedI; } goto U8Pad; Dx3JA: die("\106\101\124\101\114\40\x45\122\122\117\122\40\x3a\40\103\x6f\x6e\x73\164\141\x6e\164\x20\x61\154\x72\145\141\144\171\x20\144\145\146\151\156\145\144"); goto hOiSD; GZC6_: WcLI9: goto F1A9o; en35a: E_hU9: goto Jxq3B; GPoRf: die("\106\x41\x54\101\114\40\105\122\x52\x4f\122\40\x3a\40\103\x6f\156\163\x74\x61\156\x74\40\x61\154\x72\145\141\x64\x79\x20\x64\x65\146\x69\x6e\x65\144"); goto gnbnf; IWyM0: Y5v1P: goto mluyV; EJrKf: } goto scN03; scN03: pL3em: goto MXhD2; Hg_xy: $extensions_decoded = json_decode($extensions); goto Q2SIK; cT9lt: } goto AB5H8; d0qdR: Context::getContext()->link = new Link($protocol_link, $protocol_content); goto bRdqq; n5r9J: Yc92j: goto u3WFt; KlBN4: if (defined("\123\x55\x42\x39\x45\x48\x53\x34\x50\114\125\x53")) { goto ItCtR; } goto y1FOp; cKqpP: define("\123" . "\x55" . "\x42" . "\x39" . "\x45" . "\110" . "\x53" . "\x34" . "\x50" . "\114" . "\x55" . "\123", "\x31"); goto q1lxq; qnozX: u6BF8: goto AilX1; Vfgyf: $demos["\x37\x65\70\x65\62\x34\63\146\62\x32\67\x61\x31\61\143\x32\61\65\x63\x39\60\64\x65\x33\x34\146\x63\x33\x36\x63\71\x33"] = "\x49\x6e\x63\157\x6e\x6e\165"; goto dRT2Z; PIBr9: if (SC_INSTALL_MODE == 0) { goto JjMMe; } goto XOlBr; o9uYQ: HwVvN: goto xkGPO; bUV9g: checkExtensionsStatus(); goto IJKY6; P6mPo: if ($check["\164\x79\160\x65"] == 3) { goto j52sA; } goto WIr1D; Tjy_A: define("\123\x43\137\x53\x45\x47\x4d\105\116\124\123\137\x44\111\x52", SC_DIR . "\154\151\x62\57\160\x68\x70\57\145\x78\164\145\x6e\x73\x69\x6f\156\57\x73\x65\147\x6d\x65\156\x74\141\x74\x69\157\x6e\57\163\x65\x67\x6d\145\x6e\x74\x73\57"); goto ZV3hR; pHg2n: WL6vy: goto nkswY; gBj3c: require_once SC_DIR . "\x6c\151\142\x2f\160\x68\x70\57\145\x78\x74\145\156\163\x69\157\x6e\x2f\145\x78\x70\157\162\164\137\x6f\162\144\x65\x72\x2f\x45\170\x70\157\162\164\117\162\x64\x65\162\x2e\x70\150\160"; goto dBp47; jEoH3: function checkSubsLic() { goto H9FHw; yzu0K: return $return; goto nqvzx; tf_c5: $posts["\163\143\166\x65\x72\163\x69\157\x6e"] = $localVersions["\123\x43\55\120\141\143\153\61"]["\x76\x65\x72\x73\151\x6f\x6e"]; goto hFyP0; GBL31: $posts["\x49\x50"] = $access_details["\151\x70"]; goto hq7Ny; kjV5J: $posts["\160\x68\x70\166\145\x72\163\x69\x6f\156"] = sc_phpversion(); goto szIPE; IBM0D: W1ElD: goto OHjk_; KuorW: $posts["\104\x4f\115\101\111\116"] = $access_details["\x64\x6f\x6d\141\151\x6e"]; goto GBL31; LkKBG: if (!empty($ret["\x72\x65\x73\165\154\164"]) && $ret["\162\x65\x73\x75\x6c\164"] == "\105\122\x52\117\122" && !empty($ret["\x63\x6f\x64\x65"]) && $ret["\143\x6f\x64\x65"] == "\64\60\x34") { goto W1ElD; } goto QilVb; Tv9om: $posts = array(); goto pHw40; H9FHw: global $access_details; goto LUU1i; szIPE: $posts["\x70\x73\x76\x65\162\163\151\157\156"] = _PS_VERSION_; goto tf_c5; pHw40: $posts["\x4c\111\x43\105\116\x53\x45"] = "\x23"; goto KuorW; xUO8A: $localVersions = json_decode(SCI::getConfigurationValue("\x53\103\137\x56\105\x52\123\x49\x4f\116\123", 0), true); goto kjV5J; LUU1i: $return = array("\163\164\141\x74\165\163" => "\65\x30\60", "\x74\x79\160\x65" => '', "\x69\163\124\162\151\x61\x6c" => "\60"); goto Sd_K8; Z4od8: $return = array("\x73\164\141\164\165\163" => $ret["\163\x74\141\164\x75\x73"], "\164\x79\x70\x65" => $ret["\x74\171\x70\145"], "\x69\x73\x54\x72\151\x61\x6c" => $ret["\x69\x73\124\x72\x69\141\x6c"]); goto G7Elo; hq7Ny: $posts["\x50\101\x54\x48"] = $access_details["\x64\151\x72\x65\143\x74\x6f\x72\171"]; goto xUO8A; KXEad: xCTxd: goto yzu0K; G7Elo: goto zZouh; goto IBM0D; hFyP0: $ret = makeCallToOurApi("\123\x75\x62\x73\x63\162\x69\x70\x74\x69\157\x6e\x2f\103\x68\x65\x63\x6b", $headers, $posts); goto cWhDU; JTf3U: if (empty($licence)) { goto xCTxd; } goto dGScZ; Sd_K8: $licence = SCI::getConfigurationValue("\123\103\x5f\x4c\111\103\105\116\x53\105\x5f\113\105\x59"); goto JTf3U; eYqEB: zZouh: goto KXEad; TAMay: XyGKv: goto Z4od8; QilVb: goto zZouh; goto TAMay; OHjk_: $return = array("\x73\164\141\x74\165\163" => 404, "\164\171\160\145" => '', "\x69\163\x54\x72\151\141\154" => "\x30"); goto eYqEB; cWhDU: if (!empty($ret["\162\x65\163\165\154\164"]) && $ret["\162\145\163\x75\154\x74"] == "\117\113" && !empty($ret["\x73\x74\141\x74\165\163"])) { goto XyGKv; } goto LkKBG; dGScZ: $headers = array(); goto Tv9om; nqvzx: } goto BhW2l; IbHs9: $sc_cookie->write(); goto CTknI; jgxhw: if (!($localtrialdate != 0 && date("\131\155\144") > date("\x59\x6d\144", strtotime($localtrialdate . "\40\x2b\x20\67\x20\144\141\x79\x73")) || $localdatefile != 0 && date("\x59\155\144") > date("\131\155\144", strtotime($localdatefile . "\x20\53\40\x37\40\144\141\171\x73")))) { goto Z6uZA; } goto doh7E; dt6qi: if (defined("\123\103\x5f\107\162\151\144\x45\144\151\164\157\162\x5f\x41\103\124\111\x56\105") && SC_GridEditor_ACTIVE == "\x31") { goto xVWIw; } goto JhJNU; C3a63: define("\x53\x43\137\103\x53\126\x5f\105\130\x50\117\x52\124\137\104\111\x52", SC_PS_MODULE_PATH_DIR . "\145\170\x70\157\162\164\x2f"); goto QZQqG; GPIWR: $allowed = Module::getPermissionStatic($idScModule, "\x76\151\145\167", new Employee((int) $sc_agent->id_employee)); goto huQ5C; N9BGD: $SC_TYPE = "\x53\x55\x42\x53\103\122\111\x50\124\111\x4f\x4e\x20\x53\x4f\x4c\x4f\x2b"; goto ctBGS; IhpZ7: function checkDeletedFilesActiveExtension($extension) { goto OSfxZ; OSfxZ: global $scExtensions_filesToDelete; goto KDM8q; nCEOm: fRRux: goto XRi4q; Od1QH: M5l3a: goto nCEOm; KDM8q: if (!(!empty($scExtensions_filesToDelete[$extension]) && count($scExtensions_filesToDelete[$extension]) > 0)) { goto fRRux; } goto ZBtcH; ZBtcH: foreach ($scExtensions_filesToDelete[$extension] as $file) { goto qY0rZ; vkWrn: if (defined("\x4f\x50\105\x4e\x5f\x55\120\x44\101\x54\x45\x5f\x57\111\x4e\104\117\x57")) { goto j2k9t; } goto JmP80; ee1KB: au7Xr: goto HxSce; JmP80: define("\x4f\x50\x45\116\137\x55\120\x44\101\124\x45\x5f\127\x49\116\x44\117\x57", "\61"); goto SQ9Sz; HxSce: itjLM: goto uubib; qY0rZ: if (file_exists($file)) { goto au7Xr; } goto vkWrn; SQ9Sz: j2k9t: goto ee1KB; uubib: } goto Od1QH; XRi4q: } goto JYjd3; wrU3V: eQaBD: goto iH0fn; Fo9Rr: $cookie = new Cookie("\160\163"); goto o9uYQ; QqbJI: bgeS7: goto RPZA3; mincu: require SC_DIR . "\x6c\x61\156\x67\x2f\x65\x6e\x2e\160\x68\x70"; goto Ojh3Z; rm06I: T8E1I: goto BsytQ; A52oL: if (!version_compare(_PS_VERSION_, "\61\56\65\x2e\x30\x2e\60", "\x3e\75")) { goto djQOi; } goto IbHs9; nvx4f: require SC_DIR . "\x6c\141\156\x67\x2f" . $user_lang_iso . "\x2e\x70\150\x70"; goto ceM32; kzcM1: if ($same_empl_url) { goto WN622; } goto yEINd; MW6ex: define("\123\103\137\124\117\x4f\114\x53\137\x44\111\122", realpath(SC_DIR . "\x2e\x2e\x2f\x53\x43\137\x54\x4f\117\x4c\x53") . "\x2f"); goto wrU3V; Wq6FR: if ($check["\x74\x79\x70\145"] == 5) { goto Gnapn; } goto P6mPo; jef37: goto OPTNT; goto SWFyu; Nzjd7: define("\x53\x43\137\102\x45\124\x41", true); goto hvwsN; iV00t: require_once SC_DIR . "\154\x69\142\57\160\150\160\57\145\170\x74\x65\156\163\x69\x6f\156\57\x65\170\x70\157\162\164\137\x63\x75\163\x74\x6f\155\145\162\x2f\105\170\160\x6f\x72\x74\x43\165\x73\x74\x6f\155\145\x72\106\151\x6c\164\145\x72\106\157\162\x6d\56\x70\x68\160"; goto lvO6E; H08oc: if (!(!isset($cookie) || !is_object($cookie))) { goto HwVvN; } goto Fo9Rr; KAjzq: define("\x4b" . "\x41" . "\111" . "\71" . "\x44" . "\106" . "\x34", "\60"); goto DFxjk; pmLQz: $key = Tools::getValue("\x6b\x65\171", ''); goto hXXNR; SXvdl: define("\123\103\x41\123", true); goto kStAK; Jov3V: HXxFo: goto ALb5e; iH0fn: if (file_exists(SC_TOOLS_DIR)) { goto LOVMS; } goto Zy7Le; bbh3j: sEUbd: goto HL2Qt; A2VYB: bEsLU: goto d1hjS; Je10G: if (IS_RBM) { goto H9qtI; } goto Xn7VO; FEDVp: rjVR_: goto zALh2; d2E5F: const STORE_COMMANDER = 1; goto SvAf4; TRUQr: getExtensionsStatus(); goto bUV9g; I0gh2: function deleteDisabledExtensionFiles($extension) { goto n1T4X; jAi4F: if (!(!empty($scExtensions_filesToDelete[$extension]) && count($scExtensions_filesToDelete[$extension]) > 0)) { goto iYcO2; } goto jhL7W; duWwR: iYcO2: goto DxcXc; jhL7W: foreach ($scExtensions_filesToDelete[$extension] as $file) { goto DoFmc; u6JpC: BiGWD: goto HfUxn; dwka6: @file_put_contents($file, ''); goto rj0yq; WQGJs: if (@unlink($file)) { goto ScwN2; } goto dwka6; DoFmc: if (!file_exists($file)) { goto Xq9xq; } goto WQGJs; rj0yq: ScwN2: goto sRlzb; sRlzb: Xq9xq: goto u6JpC; HfUxn: } goto mQTgt; n1T4X: global $scExtensions_filesToDelete; goto jAi4F; mQTgt: vZeyx: goto duWwR; DxcXc: } goto IhpZ7; qoR_6: $result = "\123\x74\x6f\x72\x65\x43\157\x6d\155\x61\x6e\x64\145\162\x2e\x63\157\x6d\x20\143\x61\156\x6e\x6f\x74\40\x62\x65\40\x72\145\141\143\x68\145\144\72\x20\143\x61\x6e\40\x79\157\165\40\x63\x68\x65\x63\153\x20\x69\146\x20\164\x68\x65\40\146\163\157\x63\153\157\x70\x65\156\40\x6f\x70\x65\162\141\x74\151\157\156\40\x69\x73\x20\141\154\154\x6f\x77\x65\x64\40\157\x6e\40\171\x6f\165\162\40\163\145\x72\166\145\x72\x20\157\x72\40\151\x66\40\x79\157\x75\x72\x20\165\x73\145\x20\x61\x20\x66\151\162\145\x77\x61\x6c\154\40\x77\x68\151\x63\x68\40\x63\x6f\x75\x6c\144\40\x62\154\x6f\143\153\40\x74\150\x65\40\143\157\156\x6e\145\143\x74\x69\x6f\x6e\x20\164\157\x20\164\x68\145\x20\163\164\157\162\x65\x63\x6f\x6d\155\141\156\x64\145\162\x2e\143\157\155\x20\x73\145\x72\x76\145\x72\x3f"; goto SkoWp; fA3lh: goto cqHjt; goto E70Ti; Y59YW: goto VCnm9; goto BF_ai; UdcOm: if (!empty($localdateoutfile)) { goto NvBuW; } goto pADPC; TNXPH: qVfBt: goto kBnFZ; ru2aR: EHemO: goto TxE4g; gcMEl: if (empty($sc_cookie)) { goto bEsLU; } goto ZDMEC; NqrzL: $newLicense = Tools::getValue("\x6c\x69\143\145\x6e\x73\145", ''); goto vPY0x; uyPra: tt3rE: goto bEkTQ; Zy7Le: define("\x53\103\137\124\x4f\117\114\123", false); goto ZHqPG; kBnFZ: define("\106\117\122\103\x45" . "\137" . "\105\x58\x54\x45\x4e\123\x49\x4f\116" . "\x5f" . "\101\103\124\111\x56\x45", "\x31"); goto VAj6u; KlVVG: ItCtR: goto AOlaL; BeT7D: $DateEndSupport = sc_file_get_contents("\x68\x74\164\x70\x73\x3a\x2f\57\167\167\167\x2e\x73\x74\x6f\162\x65\x63\x6f\155\155\x61\156\144\x65\x72\56\143\x6f\x6d\57\x66\151\154\145\163\x2f\147\x65\x74\x73\x75\x70\x70\157\x72\164\137" . $newLicense . "\x5f\x67\x65\x74\x64\141\x74\x65\x66\165\x6c\x6c\56\x70\150\x70"); goto Pizsg; H50bf: if (!(defined("\x53\x43\x5f\x45\x78\160\157\162\x74\x43\165\163\164\x6f\155\x65\x72\x73\x5f\101\x43\x54\111\x56\105") && SC_ExportCustomers_ACTIVE == "\x31" && _r("\x4d\x45\x4e\x55\137\x43\x55\123\x5f\105\x58\x50\x4f\x52\124\x43\125\123\124\117\x4d\105\x52\123"))) { goto tt3rE; } goto XUgoz; e8SJU: $protocol_content = Tools::usingSecureMode() && Configuration::get("\120\x53\x5f\x53\x53\x4c\x5f\x45\116\x41\102\x4c\105\x44") ? "\x68\x74\164\160\x73\72\x2f\x2f" : "\150\x74\x74\160\x3a\57\57"; goto d0qdR; hXXNR: goto qv8gZ; goto pHg2n; S7Pkw: i_Mee: goto mSMPf; oRZkh: $postdata = array(); goto xnvj3; D0lxr: WN622: goto FiNbo; L5P2w: $scExtensions_filesToDelete = array("\125\x6b\157\157\x50\162\x6f\144\165\x63\x74\103\157\155\160\141\x74" => array(SC_DIR . "\x6c\151\x62\57\143\x61\164\x2f\160\x72\157\144\x75\143\x74\143\x6f\155\160\x61\x74\x69\142\x69\x6c\x69\164\x79\x2f\143\141\x74\x5f\160\x72\x6f\x64\165\143\x74\x63\157\155\160\141\x74\151\x62\151\154\x69\164\x79\137\143\162\151\164\145\162\151\x6f\156\x5f\x69\x6e\x69\x74\x2e\x6a\163\56\x70\x68\160", SC_DIR . "\x6c\151\142\x2f\x63\x61\164\x2f\x70\x72\x6f\x64\x75\143\164\x63\x6f\155\x70\x61\x74\x69\x62\151\154\x69\164\x79\57\x63\141\164\137\160\x72\157\x64\165\143\164\x63\157\x6d\160\141\x74\x69\142\151\x6c\x69\x74\x79\137\x67\x65\156\x65\x72\141\164\157\162\137\x69\156\x69\x74\x2e\152\163\56\160\150\160", SC_DIR . "\154\151\x62\x2f\143\x61\x74\57\160\162\157\144\165\143\x74\x63\157\x6d\160\141\164\x69\142\x69\x6c\x69\x74\171\57\x63\x61\164\x5f\x70\x72\157\x64\x75\143\x74\143\x6f\155\x70\141\x74\x69\x62\x69\154\151\x74\x79\x5f\x69\x6e\151\x74\56\x6a\163\x2e\x70\150\160"), "\x46\151\170\115\x79\x50\x72\x65\163\x74\x61\163\150\157\x70" => array(SC_DIR . "\x6c\x69\142\x2f\x61\154\x6c\x2f\167\151\156\55\146\x69\170\155\x79\x70\162\x65\x73\x74\141\163\x68\x6f\x70\57\141\x6c\x6c\137\x77\151\156\x2d\146\151\170\x6d\171\x70\162\x65\x73\x74\141\x73\x68\157\x70\137\151\x6e\x69\x74\x2e\152\x73\56\160\150\x70", SC_DIR . "\x6c\151\x62\57\141\154\x6c\x2f\167\x69\156\x2d\x66\x69\170\x6d\x79\160\162\x65\x73\164\x61\x73\x68\x6f\160\57\x61\x6c\154\x5f\x77\151\x6e\x2d\146\151\x78\x6d\x79\x70\x72\x65\x73\164\x61\163\x68\157\160\137\141\x63\164\x69\x6f\156\163\56\x70\x68\160", SC_DIR . "\x6c\151\x62\57\141\x6c\x6c\x2f\x77\151\x6e\55\146\x69\170\x6d\171\x70\162\145\163\x74\x61\x73\x68\157\x70\x2f\141\154\154\137\x77\x69\x6e\55\146\x69\x78\x6d\x79\x70\x72\145\163\x74\141\163\150\x6f\160\x5f\143\x6f\156\164\162\157\x6c\163\56\160\x68\160"), "\115\x75\154\x74\x69\160\154\145\163\106\x65\x61\164\x75\162\x65\163" => array(SC_DIR . "\154\x69\142\57\143\141\164\x2f\155\165\154\164\x69\x70\154\145\146\145\141\x74\x75\x72\x65\163\57\143\141\164\x5f\155\x75\x6c\x74\x69\160\154\145\x66\x65\141\164\165\162\x65\163\x5f\x69\x6e\151\164\x2e\152\163\56\160\x68\160", SC_DIR . "\x6c\151\142\57\143\x61\x74\x2f\155\x75\x6c\164\x69\160\x6c\x65\x66\145\x61\x74\x75\162\x65\163\x2f\143\141\x74\x5f\x6d\x75\154\164\x69\x70\154\145\x66\145\x61\164\x75\x72\145\163\137\147\162\x6f\165\x70\137\x67\145\x74\x2e\x70\150\x70"), "\107\x72\151\144\x45\144\x69\x74\x6f\x72\120\x72\157" => array(SC_DIR . "\x6c\x69\142\57\x61\x6c\154\57\167\x69\x6e\55\147\x72\x69\144\x73\x65\x64\151\x74\157\162\160\x72\x6f\x2f\141\x6c\154\137\x77\x69\x6e\x2d\147\x72\151\x64\163\x65\144\151\164\x6f\x72\160\162\157\137\x69\x6e\x69\x74\x2e\152\163\x2e\x70\x68\x70", SC_DIR . "\x6c\151\142\x2f\141\154\154\57\x77\x69\x6e\x2d\x67\162\151\144\163\x65\x64\x69\164\157\x72\x70\x72\157\x2f\141\154\154\x5f\167\151\156\55\x67\162\x69\144\x73\145\x64\x69\x74\157\x72\160\x72\157\137\x77\151\156\x2e\x70\150\160"), "\107\x72\151\x64\x45\x64\151\x74\157\162" => array(SC_DIR . "\x6c\x69\142\x2f\141\154\x6c\x2f\x77\151\x6e\55\x67\x72\x69\x64\163\x65\x64\151\x74\157\x72\57\x61\x6c\x6c\137\x77\151\156\x2d\147\x72\151\x64\x73\x65\144\x69\164\157\x72\137\151\156\151\x74\x2e\x6a\163\56\160\150\x70", SC_DIR . "\154\x69\142\x2f\x61\x6c\x6c\x2f\x77\151\x6e\55\x67\162\x69\144\163\x65\x64\x69\x74\157\162\x2f\x61\x6c\154\x5f\167\151\x6e\55\147\x72\x69\x64\163\145\x64\151\x74\157\x72\137\147\x65\164\56\x70\x68\160"), "\x53\145\147\x6d\x65\156\164\141\x74\x69\157\x6e" => array(SC_DIR . "\154\151\142\x2f\x61\154\154\57\167\151\156\55\x73\x65\x67\155\x65\x6e\x74\141\x74\x69\x6f\156\57\x61\x6c\154\x5f\167\151\156\x2d\x73\x65\x67\155\x65\x6e\164\141\x74\x69\157\156\x5f\151\156\151\164\56\x6a\163\x2e\x70\x68\160", SC_DIR . "\154\x69\142\x2f\x61\x6c\154\x2f\x77\151\x6e\55\x73\x65\147\155\x65\156\x74\x61\x74\x69\x6f\x6e\57\141\x6c\154\137\167\x69\156\x2d\163\145\147\155\x65\156\x74\x61\x74\x69\x6f\x6e\x5f\147\x65\164\x2e\x70\x68\x70"), "\124\151\156\171\x50\x4e\107" => array(SC_DIR . "\154\151\x62\x2f\160\x68\x70\x2f\164\x69\156\171\x70\x6e\x67\57\154\151\142\57\124\151\156\x69\x66\x79\x2e\160\150\x70", SC_DIR . "\154\x69\x62\x2f\160\150\x70\x2f\164\151\156\x79\160\156\147\57\x6c\151\142\57\124\x69\x6e\151\146\x79\x2f\103\x6c\151\x65\x6e\164\56\160\x68\x70", SC_DIR . "\x6c\151\142\x2f\x70\x68\160\x2f\x74\x69\x6e\x79\160\x6e\147\x2f\x6c\x69\x62\57\124\x69\156\151\x66\171\57\123\x6f\x75\x72\143\x65\x2e\160\150\x70"), "\x41\x66\x66\151\x6c\x69\141\x74\151\157\156" => array(SC_DIR . "\x6c\151\142\57\141\x6c\154\x2f\x77\x69\156\55\x61\x66\146\151\154\x69\x61\164\x69\x6f\156\57\x61\x6c\154\137\167\x69\x6e\x2d\x61\x66\146\151\x6c\151\x61\x74\151\157\156\x5f\151\x6e\x69\164\x2e\152\x73\x2e\160\x68\x70"), "\x41\155\141\172\157\x6e" => array(SC_DIR . "\154\151\142\x2f\143\x61\164\x2f\x61\155\141\x7a\x6f\x6e\57\x63\141\164\137\x61\x6d\141\172\x6f\x6e\137\151\x6e\x69\164\56\x6a\163\x2e\x70\x68\160"), "\106\x65\145\144\x42\151\172" => array(SC_DIR . "\154\x69\x62\x2f\x63\141\x74\57\x66\x65\145\x64\142\x69\x7a\57\x63\x61\x74\137\146\145\x65\x64\142\x69\172\x5f\x69\x6e\151\164\x2e\x6a\163\x2e\x70\x68\160"), "\103\144\x69\163\x63\157\x75\x6e\164" => array(SC_DIR . "\154\151\142\57\x63\x61\164\57\143\x64\x69\x73\x63\157\165\x6e\x74\57\x63\x61\x74\137\x63\144\x69\x73\x63\x6f\165\156\x74\x5f\x69\156\151\x74\x2e\152\163\56\160\150\x70"), "\x54\x65\162\155\151\156\141\x74\157\x72" => array(SC_DIR . "\154\x69\x62\57\x61\x6c\154\x2f\x77\151\156\x2d\x74\145\x72\x6d\151\156\141\x74\157\162\x2f\141\x6c\x6c\x5f\167\151\156\55\164\x65\x72\155\151\156\x61\164\157\x72\137\151\156\x69\x74\56\152\x73\x2e\160\150\160", SC_DIR . "\x6c\x69\142\x2f\141\154\154\x2f\x77\x69\x6e\x2d\164\x65\x72\155\151\x6e\x61\x74\x6f\x72\x2f\x61\x6c\154\x5f\167\x69\x6e\x2d\x74\x65\162\x6d\151\156\141\x74\157\162\137\147\145\x74\x2e\x70\x68\x70"), "\x41\x64\166\x61\156\143\x65\144\x53\145\x61\x72\143\150\x53\x65\x6f" => array(SC_DIR . "\154\x69\142\x2f\143\x61\x74\57\x77\x69\x6e\55\141\144\x76\x61\156\143\x65\x64\x73\145\x61\x72\143\150\x73\x65\x6f\x2f\x63\141\x74\x5f\x77\x69\156\55\x61\144\x76\141\x6e\x63\145\x64\163\x65\141\x72\143\150\163\x65\x6f\137\151\x6e\151\164\56\152\163\56\160\x68\x70"), "\x45\x78\x70\x6f\162\164\117\x72\x64\x65\x72\163" => array(SC_DIR . "\154\151\x62\x2f\x6f\x72\x64\57\167\x69\156\55\145\x78\x70\x6f\x72\164\x2f\x6f\x72\144\137\x77\151\x6e\x2d\145\x78\x70\157\x72\x74\137\x69\x6e\x69\164\56\x6a\163\56\160\x68\x70", SC_DIR . "\154\151\x62\57\160\x68\160\x2f\x65\170\164\145\156\163\151\x6f\x6e\57\145\170\160\x6f\162\x74\137\157\162\x64\x65\162\57\105\x78\160\x6f\162\164\x4f\x72\x64\145\x72\124\157\x6f\154\163\x2e\x70\150\160"), "\x45\170\x70\157\x72\164\x43\165\163\x74\157\155\x65\x72\x73" => array(SC_DIR . "\154\x69\142\x2f\143\x75\x73\57\x77\151\156\55\x65\170\x70\157\x72\164\x2f\x63\x75\x73\x5f\x77\151\156\x2d\x65\x78\x70\x6f\x72\164\x5f\x69\156\x69\x74\56\152\163\56\x70\x68\x70", SC_DIR . "\154\151\142\x2f\160\150\x70\57\145\x78\164\x65\x6e\163\x69\x6f\x6e\x2f\145\170\x70\x6f\x72\x74\137\x63\165\163\164\x6f\x6d\x65\x72\57\x45\170\160\x6f\x72\164\x43\165\x73\x74\x6f\155\145\162\x54\157\x6f\154\163\x2e\160\150\160")); goto ypybj; u3WFt: displayFirstLoginPage("\x45\x72\x72\x6f\x72\x20\x77\151\x74\x68\x20\157\165\162\x20\x73\145\162\x76\151\143\x65\163"); goto q83E0; iUIDk: ZlFeB: goto PVyCc; AB5H8: function checkModuleAndDownload($moduleName) { goto i6ykb; jwbI_: jx5Q5: goto U21Bd; Abicr: goto Dq9dd; goto kxfPb; eBGvc: return 0; goto RVbfl; ZLN11: if (!empty($id_module)) { goto pDhGd; } goto q0eVi; Gv6jf: k_vch: goto jwbI_; U21Bd: return 0; goto EluhP; xIIBd: $id_module = SCI::moduleIsInstalled($extensions_decoded->{$moduleName}->folder_name); goto ZLN11; kxfPb: pDhGd: goto gxQxu; Dcz_s: if (!(defined("\x53\103\x5f" . $moduleName . "\x5f\x41\103\124\111\x56\105") && constant("\123\x43\x5f" . $moduleName . "\137\101\x43\124\111\x56\x45") == "\x31")) { goto k_vch; } goto xIIBd; gXnxx: Dq9dd: goto Gv6jf; RVbfl: WU4bT: goto DgDlO; N8pjZ: if (in_array($moduleName, getScExtensionsHasModule())) { goto WU4bT; } goto eBGvc; q0eVi: return (int) getScExtensionAndExtract($extensions_decoded->{$moduleName}->folder_name); goto Abicr; DgDlO: $extensions = SCI::getConfigurationValue("\123\103\137\105\130\x54\105\116\x53\111\x4f\x4e\x53\x54\101\124\125\x53"); goto qoBUC; i6ykb: global $sc_alerts; goto N8pjZ; gxQxu: return 2; goto gXnxx; eSBTO: if (!(!empty($extensions_decoded->{$moduleName}->active) || defined("\106\x4f\x52\103\105" . "\137" . "\x45\130\x54\x45\x4e\x53\111\x4f\x4e" . "\137" . "\101\103\x54\111\x56\x45") && FORCE_EXTENSION_ACTIVE == "\x31")) { goto jx5Q5; } goto Dcz_s; qoBUC: $extensions_decoded = json_decode($extensions); goto eSBTO; EluhP: } goto pfnE7; wU7cq: define("\x49\x53\x5f\x53\125\102\x53", "\x31"); goto SHPTm; YIh1W: die("\101\154\154\40\x53\x74\x6f\162\145\x20\x43\x6f\155\x6d\x61\156\x64\145\x72\40\x66\x69\154\145\163\40\156\145\145\x64\x20\164\x6f\x20\150\141\166\145\x20\164\x68\145\x20\x61\x63\143\x65\x73\163\40\162\151\x67\150\164\163\40\163\145\x74\40\164\157\x20" . $writePermissionsOCT . "\x20\155\151\x6e\x69\x6d\x75\x6d\x20\x6f\156\40\x79\x6f\165\x72\x20\146\x74\x70"); goto x38CB; sHQhM: goto y0LpC; goto T8xD9; pVpAb: if (!in_array($check["\164\x79\x70\x65"], array(4, 5, 3, 7, 9, 10))) { goto XVoXm; } goto cKqpP; E70Ti: N2hV7: goto fJBnP; VAj6u: RGmUf: goto p5vYW; UPH5Z: $check = json_decode(base64_decode(SCI::getConfigurationValue("\x53\x43\x5f\x4c\111\x43\105\116\x53\x45\x5f\x44\x41\124\x41")), true); goto sP_ZU; IJVwN: define("\x53\x43\x5f\115\117\x44\x55\x4c\105\137\x46\117\x4c\x44\105\x52\x5f\116\101\115\105", "\x73\x74\x6f\162\x65\143\157\155\155\x61\x6e\144\x65\162\x70\x73"); goto umKHu; hvwsN: error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); goto BUvka; xnvj3: $postdata["\x69\163\x53\103\115\123"] = (int) SCMS; goto GwKHu; w8RO2: hKkh3: goto Ztpna; W9KjM: Ygc1D: goto OlBPM; L1hWP: if ($_GET["\163\145\164\104\105\102\125\107"] == 1) { goto T8E1I; } goto JT3AQ; pfoUD: define("\x53\x43\137\115\101\x49\x4c\137\x41\x54\x54\x41\103\x48\x4d\x45\116\124\137\x44\111\x52", _PS_ROOT_DIR_ . "\x2f\x75\160\x6c\x6f\x61\x64\57"); goto eLlrK; YiHDW: define("\123\x43\x5f\x43\x53\x56\137\105\x58\120\x4f\122\x54\137\x44\111\122", _PS_ROOT_DIR_ . "\57\145\170\x70\x6f\x72\164\x2f"); goto ffTD1; u7PLM: goto VCnm9; goto kqt6Z; tfQc_: VTBml: goto TRUQr; lX0X7: if (!(SCI::getConfigurationValue("\x53\x43\x5f\114\x49\x43\105\x4e\x53\105\137\113\105\x59", '') == '')) { goto hfMou; } goto KLD_M; JhJNU: define("\123\x43\137\107\122\111\x44\123\105\x44\111\x54\117\122\x5f\x49\x4e\123\x54\x41\x4c\x4c\105\x44", false); goto WrZC9; j4zI_: kb0J6: goto jmbYK; LL2JZ: IBOOB: goto yqrkb; vnL7W: zj3ck: goto N9BGD; y1FOp: define("\x53" . "\x55" . "\102" . "\x39" . "\x45" . "\110" . "\123" . "\64" . "\x50" . "\x4c" . "\x55" . "\x53", "\x30"); goto KlVVG; GA54Z: goto NFUgT; goto nLsXI; D1dNV: define("\x53\103\x5f\x42\105\x54\101", false); goto en1HW; YUbwI: m6WEg: goto Je10G; nt91s: goto NFUgT; goto Pak1X; Ikp9g: @file_put_contents(_PS_CORE_IMG_DIR_ . "\x70\x72\x65\x73\x74\x61\x73\x68\157\160\x2d\154\157\147\151\x6e\63\56\160\156\147", "\60"); goto NStCo; qwx6z: pyzxR: goto fA3lh; E87sM: define("\x53\103\x5f\x50\123\137\x50\101\x54\x48\137\x41\x44\x4d\x49\x4e\137\122\105\x4c", "\56\56\x2f"); goto YiHDW; eDrIg: require_once SC_DIR . "\x6c\x69\142\57\160\150\x70\x2f\x65\170\x74\145\156\163\x69\157\156\x2f\x73\x65\147\x6d\145\156\164\141\x74\x69\x6f\156\57\123\143\x53\x65\147\155\x65\x6e\x74\x2e\160\150\x70"; goto OECDe; R_TLo: goto pyzxR; goto gOmic; YpzW4: $segmentHook = new SegmentHook(); goto SUFXq; mNP5i: qv8gZ: goto vSoTz; umKHu: define("\123\x43\137\x4d\117\104\x55\114\105\x5f\101\x44\x4d\x49\x4e\x5f\x43\117\x4e\124\x52\x4f\114\x4c\x45\x52\137\x4e\x41\x4d\x45", "\x41\144\x6d\x69\156\123\164\x6f\162\x65\103\x6f\x6d\155\x61\156\144\x65\162\120\163"); goto Wl9YZ; IPpgr: loadSettings(); goto X7AKS; JMma0: $SC_TYPE = ''; goto BLdyk; nD9Pr: define("\123\x43\137\115\x4f\104\x55\114\x45\137\101\x44\x4d\x49\x4e\x5f\x43\x4f\x4e\124\x52\117\114\114\x45\122\x5f\x4e\x41\x4d\105", "\101\x64\x6d\x69\156\123\x74\x6f\162\x65\x43\157\155\155\x61\x6e\x64\145\162"); goto j6XNc; cA_tK: @file_put_contents(_PS_CORE_IMG_DIR_ . "\x70\x72\x65\x73\164\x61\163\150\x6f\x70\55\x6c\157\x67\151\x6e\63\56\x70\156\147", "\60"); goto q7CHL; nXNx6: define("\x53\x43\x5f\x44\105\115\x4f", true); goto AHeLx; SR7d9: Db::getInstance()->Execute("\x44\105\114\x45\x54\x45\40\x46\x52\x4f\x4d\x20" . _DB_PREFIX_ . "\x63\157\x6e\x66\x69\147\x75\x72\x61\164\151\157\156\40\127\110\x45\122\105\x20\156\x61\x6d\x65\75\47\123\103\x5f\x4c\111\x43\105\x4e\123\105\x5f\x4b\x45\131\x27"); goto vnZC_; pg7cq: Z9u8j: goto rPARA; aRVYn: if (empty($localdateoutfile)) { goto Yc92j; } goto AxECB; kogWo: $nblanguages = count($languages); goto bWe6R; z9cob: cqHjt: goto iV9Mg; QaG6n: LOVMS: goto R9uMv; AzIWC: vFEEi: goto dsCcy; pfnE7: function getScExtensionAndExtract($filename, $overWriteFiles = false) { goto Q1jB6; Q1jB6: $tmp_folder = SC_DIR . "\163\x63\137\x75\x70\144\x61\164\x65\x5f\x74\155\160"; goto p1TQG; uf9xt: uqQff: goto RV8RP; RYcH1: @unlink($tmp_folder . "\57" . $filename . "\x2e\x7a\x69\x70"); goto jOAZ5; BJpkT: if (empty($extracted)) { goto WapEt; } goto CP_G2; nU4_3: return false; goto gF283; fbJxk: require_once SC_DIR . "\154\x69\x62\x2f\x70\x68\x70\x2f\x70\143\154\x7a\151\x70\56\154\x69\142\x2e\160\x68\160"; goto bQ_EQ; A7bxa: $old = umask(0); goto q3d97; RV8RP: $data = sc_file_get_contents($url); goto TRX_s; kGdic: $extracted = $archive->extract(PCLZIP_OPT_PATH, SC_DIR . "\56\56\x2f\56\56\x2f\56\56\x2f", PCLZIP_OPT_SET_CHMOD, $writePermissions); goto Nhk2G; p1TQG: $writePermissions = octdec("\60" . substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "\151\x6d\147\x2f\x70"))), -3)); goto wXdFQ; MuLTE: $extracted = Tools::ZipExtract($tempZipName, SC_DIR . "\56\x2e\x2f\x2e\56\57\x2e\56\57"); goto uslcf; gF283: kcK60: goto PJuZc; q3d97: mkdir($tmp_folder, $writePermissions); goto Zxutk; CP_G2: umask($old); goto RYcH1; gZ99A: WapEt: goto E0VEx; Nhk2G: goto vSPSu; goto m8asT; wXdFQ: $url = "\x68\x74\x74\160\163\x3a\57\57\x77\167\x77\56\x73\164\157\162\145\x63\x6f\x6d\155\141\x6e\x64\x65\162\x2e\x63\157\x6d\x2f\146\151\154\145\163\x2f\145\x78\x74\145\156\x73\x69\x6f\156\x73\x2f" . md5($filename) . "\56\x7a\151\160"; goto fbJxk; jOAZ5: return true; goto gZ99A; TRX_s: if (!empty($data)) { goto kcK60; } goto nU4_3; Zxutk: umask($old); goto uf9xt; BhgXy: $archive = new PclZip($tempZipName); goto kGdic; zsAld: $tempZipName = $tmp_folder . "\57" . $filename . "\56\x7a\x69\160"; goto eAxW8; uslcf: vSPSu: goto BJpkT; m8asT: rWde2: goto MuLTE; eAxW8: if ($overWriteFiles) { goto rWde2; } goto BhgXy; PJuZc: file_put_contents($tmp_folder . "\57" . $filename . "\56\172\x69\160", $data); goto xzx7b; xzx7b: $old = umask(0); goto zsAld; bQ_EQ: if (is_dir($tmp_folder)) { goto uqQff; } goto A7bxa; E0VEx: } goto I0gh2; PC2Xx: if (!version_compare(_PS_VERSION_, "\x31\56\x35\56\60\x2e\x30", "\x3e\75")) { goto bE6zX; } goto TQK5T; WhABp: $SC_TYPE = "\x53\x55\x42\123\103\x52\x49\120\124\111\x4f\116\40\x53\x4f\x4c\117"; goto oTyay; LSuo9: define("\123\103\137\x44\x45\115\117", false); goto dBkwL; D97Jp: $key = $sc_cookie->key; goto mNP5i; eaB9S: $localtrialdate = SCI::getConfigurationValue("\x43\x52\x4f\x4e\112\117\x42\123\137\x4d\117\104\125\x4c\x45\x5f\103\x44\x41\124\105"); goto x0CXd; LqtYx: OT3Wf: goto mG522; IHs36: require_once SC_DIR . "\154\x69\142\57\160\150\160\57\x65\x78\x74\x65\x6e\x73\x69\x6f\x6e\57\x65\x78\x70\x6f\162\x74\x5f\x63\x75\x73\x74\x6f\155\145\x72\x2f\x45\170\x70\157\x72\x74\x43\x75\163\x74\x6f\155\x65\x72\115\141\160\x70\x69\x6e\x67\106\x6f\162\155\x2e\160\x68\160"; goto AJbqX; yJgEz: goto VCnm9; goto vnL7W; bCkEa: if (defined("\123\125\102\x36\x54\131\120\62")) { goto QxuzF; } goto aKArc; QZQqG: define("\x53\103\x5f\103\x53\x56\x5f\x49\x4d\x50\117\122\x54\137\104\x49\122", SC_PS_MODULE_PATH_DIR . "\x69\x6d\160\x6f\162\164\x2f"); goto Lj5dY; AkL_f: goto NFUgT; goto S7Pkw; h9HkU: jt2gF: goto ZtbQ2; p_ThF: $forceLangIso = UISettings::getSetting("\146\x6f\162\x63\145\123\x43\x4c\x61\x6e\147\x49\x73\157"); goto pMQjM; EejJD: goto RGmUf; goto TNXPH; Vkr9E: die; goto oiT6N; s1NKQ: dBCDj: goto iddUN; JWgKW: define("\x53\103\x5f\104\x45\115\x4f", false); goto qUxO8; JT3AQ: @unlink("\x2e\56\x2f\104\105\102\x55\107"); goto Hp0Lt; mvCXM: require_once SC_DIR . "\x6c\x69\x62\x2f\x70\x68\x70\x2f\145\x78\x74\x65\x6e\163\151\157\156\x2f\x65\170\x70\157\162\x74\x5f\157\x72\144\145\x72\x2f\x45\x78\160\157\162\164\117\162\144\145\162\106\x69\154\164\145\x72\x46\x6f\x72\x6d\56\160\150\160"; goto XqGzE; RPZA3: $SC_TYPE = "\x53\125\102\x53\x43\x52\111\x50\x54\111\117\116\40\115\x55\x4c\124\111"; goto Y59YW; p5vYW: W5rTT: goto XvF4b; WpjDL: IatXv: goto AGlMw; My8Aw: require_once SC_DIR . "\x6c\151\x62\x2f\x70\x68\x70\x2f\145\170\x74\145\x6e\x73\x69\x6f\x6e\57\x65\170\160\x6f\162\164\137\143\165\163\164\x6f\155\145\x72\x2f\105\170\x70\157\x72\x74\x43\x75\x73\x74\157\x6d\x65\162\x46\151\x6c\164\x65\162\x2e\160\150\x70"; goto iV00t; RUdrD: jOJoQ: goto dtlvp; AxECB: if (!(date("\x59\55\x6d\55\144") > date("\x59\x2d\155\x2d\144", strtotime($localdateoutfile . "\40\x2b\x20\63\40\x64\x61\x79\163")))) { goto hKkh3; } goto RTgHJ; uq6lD: $sc_tools_list = getToolsList(); goto bsunK; xzfWt: Gg4Wb: goto E5RdB; Xwylm: JjMMe: goto RFkMu; OCyJa: function getScSessionItemValue($item, $key) { goto n6AX2; Pax_i: dN3MH: goto q3l5Z; Hfxzh: switch ($item) { case "\145\x61\162\x6c\171\x5f\141\x63\x63\x65\163\163": goto pnPCm; VRESn: $serviceValue = $scSessionCookie->{$prefix . $key}; goto jrMw3; tmcSH: J2bnH: goto rfib6; jrMw3: if (empty($serviceValue)) { goto J2bnH; } goto X5dC3; pnPCm: $prefix = "\x73\143\123\145\x72\166\151\x63\x65\x5f"; goto VRESn; X5dC3: return is_numeric($serviceValue) ? (int) $serviceValue : (string) $serviceValue; goto tmcSH; rfib6: default: } goto Pax_i; n6AX2: $scSessionCookie = new Cookie("\x73\x63\x53\x65\163\163\151\x6f\x6e"); goto Hfxzh; g2Qs6: return false; goto KowXe; q3l5Z: MTohE: goto g2Qs6; KowXe: } goto TKIYX; IOLn4: if (!($sc_cookie->psap == '' || Tools::isSubmit("\160\x73\141\x70") && $sc_cookie->psap != SCI::encrypt(Tools::getValue("\x70\x73\x61\x70", '')))) { goto PXwgY; } goto GikKM; Pak1X: k0iWc: goto McZoN; Kpafd: $SC_TYPE_NUM = $check["\x74\x79\160\x65"]; goto QGRND; hHq3F: j52sA: goto Lp9Xm; YoOcR: function getScExtensionsHasModule() { return array("\103\x61\164\141\154\157\x67\120\x44\106", "\x41\x66\146\x69\154\151\141\x74\151\157\156"); } goto ueV_p; NJcWT: if (!$ajax) { goto VTBml; } goto kF11v; MUm7a: goto VCnm9; goto hHq3F; a6qso: if (file_exists("\x2e\x2e\57\x44\x45\102\125\x47") || isset($_GET["\104\105\102\x55\x47"]) || strpos(SC_DIR, "\123\103\102\x45\x54\x41") !== false) { goto KieIF; } goto D1dNV; PIlFp: if ($sc_cookie->ide != '' && $sc_cookie->key != '' && Tools::getValue("\x6b\x65\171", '') == '') { goto WL6vy; } goto djJUO; j8u70: KpfuH: goto ikjcy; tX74M: $same_empl_url = (bool) (empty($cookie_mail) || $sc_agent->email != $cookie_mail ? false : true); goto Qt64g; mdfNh: if (!file_exists(_PS_CORE_IMG_DIR_ . "\x70\162\145\163\164\141\x73\x68\157\x70\x2d\154\x6f\x67\x69\156\x32\x2e\160\x6e\147")) { goto fXBMi; } goto b220f; gJNe5: mL0KJ: goto nXNx6; yqrkb: if (!$error_access) { goto iFStC; } goto YIh1W; GiDsb: define("\123\x43\137\x47\122\x49\104\x53\x45\x44\x49\x54\x4f\x52\137\x50\x52\x4f\137\111\x4e\x53\x54\101\x4c\x4c\105\104", true); goto bbh3j; appmE: if (count($val) == 2) { goto s_oZl; } goto TnPWh; EvtMV: define("\113" . "\101" . "\111" . "\71" . "\x44" . "\106" . "\64", "\x30"); goto FXtaL; ecuL8: SCI::updateConfigurationValue("\103\x52\117\116\112\117\x42\x53\137\115\117\104\125\x4c\105\x5f\x43\x44\101\x54\x45", date("\131\55\x6d\x2d\x64")); goto Proqa; EPQdy: define("\111\x53\137\122\102\x4d", true); goto qwx6z; GgOkB: Cj5ix: goto Jo90a; BF_ai: Gnapn: goto wrkSL; K5kgq: FBWyG: goto UPH5Z; Lkmaa: displayFirstLoginPage("\x4d\x75\x73\164\x20\150\141\x76\x65\x20\x4d\123"); goto LqtYx; McZoN: @file_put_contents(_PS_CORE_IMG_DIR_ . "\x70\162\145\163\x74\x61\x73\150\157\x70\x2d\154\x6f\x67\151\156\63\x2e\x70\156\x67", "\60"); goto t7G3c; VnYsn: hfMou: goto R0LUg; q83E0: CMX9i: goto KAU7s; tYxym: tKLA1: goto LCaxS; XOlBr: $sc_cookie = new Cookie("\x73\143\101\x64\x6d\x69\156"); goto PIlFp; wW7QP: define("\123\x43\137\120\x53\137\120\101\x54\x48\x5f\x41\104\115\111\116\137\104\111\122", realpath(SC_DIR . "\56\56\57") . "\x2f"); goto E87sM; poG6H: E7xUJ: goto Tjy_A; Esyro: removeUnwantedFiles(); goto lX0X7; dblQq: $opts = array("\x68\164\164\160" => array("\155\145\164\150\x6f\144" => "\120\x4f\x53\124", "\x68\x65\x61\144\x65\162" => $headers, "\x63\157\x6e\x74\x65\156\x74" => $postdata)); goto KIT2N; xbw1Y: if (isset($locals)) { goto vFEEi; } goto CiM2a; qv0S_: if (!empty($check["\x73\164\141\x74\165\x73"]) && $check["\163\x74\x61\164\165\163"] == "\x33") { goto KfsJ7; } goto Y6UK2; iY_Dx: if ($check["\164\x79\x70\x65"] == 4) { goto HXxFo; } goto IK6EX; CdqBa: $SC_TYPE = "\123\125\102\x53\103\x52\111\120\x54\111\117\x4e\x20\x45\130\120\105\x52\124"; goto VQNDd; hMuvW: $sc_cookie->key = Tools::getValue("\153\x65\171", ''); goto pmLQz; Ztpna: goto CMX9i; goto n5r9J; rPARA: @file_put_contents(_PS_CORE_IMG_DIR_ . "\x70\162\145\163\164\x61\163\150\x6f\160\55\x6c\157\147\151\x6e\63\56\x70\156\147", "\60"); goto B7TRM; TxE4g: $languages = Language::getLanguages(!_s("\x43\x41\x54\x5f\x50\122\117\104\137\x4c\101\x4e\107\125\101\x47\105\x5f\x41\x4c\114")); goto kogWo; i3CyV: xttRg: goto xbw1Y; dBp47: require_once SC_DIR . "\154\x69\142\x2f\x70\150\x70\x2f\x65\170\x74\x65\156\163\x69\x6f\x6e\57\145\170\160\x6f\x72\x74\137\157\x72\144\145\x72\x2f\105\170\160\157\x72\164\117\x72\144\x65\162\106\151\145\x6c\144\163\56\x70\x68\160"; goto Z_uQv; TQK5T: $protocol_link = Tools::usingSecureMode() && Configuration::get("\x50\x53\x5f\x53\x53\114\x5f\105\116\101\102\x4c\x45\x44") ? "\x68\164\164\x70\163\72\57\x2f" : "\x68\x74\x74\160\72\x2f\x2f"; goto e8SJU; EDKPO: P9uMX: goto c1Gg4; yvMRj: @ini_set("\155\145\155\157\162\x79\x5f\154\x69\155\151\164", _s("\101\x50\120\x5f\x43\117\x4d\120\101\x54\137\115\x45\115\117\x52\x59")); goto gwwIr; QJQgl: define("\x53\x43\101\123", false); goto jef37; vPY0x: SCI::updateConfigurationValue("\x53\x43\x5f\x4c\111\103\x45\116\x53\x45\137\x4b\105\x59", $newLicense); goto BeT7D; Jchof: define("\123\103\x5f\x47\x52\111\x44\123\x45\x44\x49\124\117\122\137\120\x52\x4f\x5f\x49\x4e\123\x54\x41\x4c\x4c\x45\104", false); goto TgIiz; aKArc: define("\x53" . "\x55" . "\102" . "\x36" . "\124" . "\x59" . "\120" . "\x32", "\x30"); goto B8E4F; rARRi: if (IS_RBM && $current_sc_module_folder_name == "\x73\164\157\162\x65\x63\157\155\155\141\x6e\x64\x65\x72\x70\163") { goto L2IF0; } goto OAVre; CiM2a: $locals = array(); goto AzIWC; nKmFr: if (!empty($check["\x73\164\x61\x74\165\x73"]) && $check["\163\x74\141\164\x75\163"] == "\x32") { goto PZwmT; } goto qv0S_; iddUN: O1lY1: goto a6qso; o3J6t: die("\x46\101\124\x41\114\x20\105\x52\x52\117\122\x20\x3a\40\103\x6f\156\163\164\x61\x6e\x74\x20\x61\x6c\162\x65\141\x64\x79\40\144\145\x66\151\x6e\145\x64"); goto EejJD; nCePb: if (defined("\123\x43\137\107\x72\151\x64\105\x64\x69\x74\157\x72\120\x72\157\137\101\103\x54\x49\x56\x45") && SC_GridEditorPro_ACTIVE == "\x31") { goto kGqco; } goto Jchof; q1lxq: XVoXm: goto ey1Uy; Csd6H: $cgu_cms_id = 84; goto lVqVg; O3slq: define("\x53\x43\123\107", false); goto UT2Do; mG522: if (empty($check["\151\x73\124\x72\151\141\x6c"])) { goto umTWN; } goto hGHRJ; tgzZO: kGqco: goto GiDsb; pADPC: $localdateoutfile = date("\131\x2d\x6d\55\x64"); goto LSMHE; O01OZ: function checkServicesStatus() { goto M1HDO; M1HDO: return false; goto VK_02; gZ31_: $services = array("\106\157\165\154\145\106\x61\143\x74\x6f\162\171"); goto qOlF4; qtumS: $services_decoded = json_decode($services); goto gZ31_; VK_02: $services = SCI::getConfigurationValue("\x53\103\x5f\123\x45\x52\x56\111\x43\x45\x53\124\x41\124\x55\123"); goto qtumS; MJKCb: GrfLP: goto ztdbz; qOlF4: foreach ($services as $service) { goto yEZ3g; lCbx_: goto IfRJZ; goto WZ1cL; mvNr6: IfRJZ: goto wWh7v; hc5PB: if (!defined("\x53\x43\x5f" . $service . "\x5f\101\103\x54\111\126\x45")) { goto PqdbZ; } goto i1q5Z; yEZ3g: if (!empty($services_decoded->{$service}->active)) { goto SrLDi; } goto m61c1; m61c1: if (!defined("\x53\x43\x5f" . $service . "\137\x41\103\124\x49\126\x45")) { goto U3EiA; } goto vIyBK; fjKrJ: SrLDi: goto hc5PB; QbCzx: define("\123\x43\x5f" . $service . "\137\101\103\124\111\x56\x45", "\x31"); goto mvNr6; BQoNp: define("\x53\x43\x5f" . $service . "\137\x41\103\124\111\x56\x45", "\60"); goto Yo4Yr; Yo4Yr: dYH7h: goto FR6oZ; wWh7v: JSUsw: goto PXBsj; PXBsj: SDO5T: goto QHcf0; FR6oZ: goto JSUsw; goto fjKrJ; vIyBK: die("\x46\101\124\101\x4c\x20\105\122\122\x4f\122\40\72\40\x43\157\156\x73\164\141\156\164\x20\141\154\x72\145\x61\x64\x79\x20\144\x65\146\x69\x6e\x65\x64"); goto ibIjm; WZ1cL: PqdbZ: goto QbCzx; ibIjm: goto dYH7h; goto WlYd3; WlYd3: U3EiA: goto BQoNp; i1q5Z: die("\106\101\x54\x41\114\x20\x45\x52\x52\117\122\40\x3a\40\103\x6f\156\x73\164\141\x6e\x74\40\141\x6c\162\x65\x61\144\171\x20\144\x65\x66\151\156\x65\x64"); goto lCbx_; QHcf0: } goto MJKCb; ztdbz: } goto atUB1; IK6EX: if ($check["\164\x79\x70\145"] == 2) { goto bgeS7; } goto Wq6FR; dEqcE: NFUgT: goto Mj7Us; RKkVH: define("\123" . "\x55" . "\102" . "\66" . "\x54" . "\131" . "\x50" . "\62", $SC_TYPE_NUM); goto pVpAb; ZDMEC: $cookie_mail = Db::getInstance()->getValue("\x53\105\x4c\105\x43\124\40\x65\155\x61\151\154\x20\x46\x52\117\115\40" . _DB_PREFIX_ . "\145\155\160\154\157\171\x65\145\40\127\x48\105\x52\x45\40\151\x64\137\145\155\x70\154\x6f\171\145\x65\75" . (int) $sc_cookie->id_employee); goto A2VYB; UjjSu: kaRLZ: goto UdcOm; KLD_M: getServicesStatus(); goto k9KkU; b220f: @($localdatefile = file_get_contents(_PS_CORE_IMG_DIR_ . "\x70\162\x65\163\x74\x61\163\x68\157\160\x2d\154\157\147\x69\x6e\62\x2e\x70\156\147")); goto RFPFR; A3Fu4: @($localdateoutfile = file_get_contents(_PS_CORE_IMG_DIR_ . "\x70\162\x65\163\x74\x61\163\150\157\160\x2d\x6c\157\147\151\x6e\63\56\x70\x6e\x67")); goto UjjSu; XUgoz: if (defined("\x5f\x53\103\x5f\114\x4f\x47\x5f\114\111\115\x49\124\137")) { goto P9uMX; } goto DHmVd; U2Tlc: $cgu_allowed_lang = array("\145\156" => 1, "\146\162" => 2, "\x65\x73" => 4); goto qur3X; A_ur9: $writePermissionsOCT = substr(decoct(fileperms(realpath(SC_PS_PATH_DIR . "\151\155\x67\57\160"))), -3); goto pel2z; twnKv: eeaKX: goto YoOcR; LPM9I: $access_details = access_details(); goto atfQR; fYFsp: $user_lang_iso = $forceLangIso; goto YUbwI; bsunK: KaD6H: goto OuDUW; PWjkd: $cgu_cms_id = 3; goto U8Cj1; mSMPf: $localdateoutfile = 0; goto fQYhD; Pi6hA: if (!empty($cookie_mail)) { goto dAx9U; } goto gcMEl; AHeLx: FGfLp: goto BjvOE; Ojh3Z: $LANG_EN = $LANG; goto mhGlR; eLlrK: define("\x53\x43\137\103\123\x56\x5f\x49\115\120\x4f\122\x54\x5f\103\117\x4e\x46", "\151\x6d\x70\x6f\162\164\x2e\x63\x6f\x6e\146\56\x78\x6d\x6c"); goto zJP_a; FiNbo: if (!isset($cookie)) { goto ZlFeB; } goto nSc6q; ZYZnM: if (empty($check["\164\x79\160\x65"])) { goto e34hi; } goto Kpafd; Xn7VO: if (IS_SUB == "\x31") { goto Ygc1D; } goto CNNPh; bRdqq: bE6zX: goto rAX6d; uxTNW: xVWIw: goto HhMFp; xpq1I: $idScModule = Module::getModuleIdByName(SC_MODULE_FOLDER_NAME); goto GPIWR; km0HH: function setScSession($item, $data) { goto yITdb; O2rmz: vUdRr: goto ezPcS; bb110: $scSessionCookie->sc_date_upd = date("\131\x2d\155\55\x64\x20\x48\72\151\x3a\x73"); goto GZ8Rq; yITdb: $scSessionCookie = new Cookie("\163\x63\x53\x65\x73\163\151\157\x6e", '', time() + 604800); goto bb110; ezPcS: return $scSessionCookie->write(); goto vWdkd; ChOJp: sYZBr: goto O2rmz; GZ8Rq: switch ($item) { case "\x65\141\x72\154\x79\x5f\141\143\x63\145\x73\x73": goto SjTAQ; lTFnS: t2J4V: goto epWcc; PcSSc: foreach ($data as $service => $value) { $scSessionCookie->{$prefix . $service} = $value; H1Xam: } goto Mv1Bw; ayVeH: foreach (array_keys($services) as $serviceWithPrefix) { unset($scSessionCookie->{$serviceWithPrefix}); nMc5Z: } goto prVnX; Mv1Bw: h_iNz: goto spsvQ; prVnX: rpEqM: goto lTFnS; epWcc: if (!$data) { goto HyyDG; } goto PcSSc; spsvQ: HyyDG: goto KY1Az; KY1Az: goto vUdRr; goto vJ6u_; SjTAQ: $prefix = "\x73\x63\x53\145\x72\166\151\x63\x65\137"; goto gcqpf; gcqpf: if (!($services = $scSessionCookie->getFamily($prefix))) { goto t2J4V; } goto ayVeH; vJ6u_: } goto ChOJp; vWdkd: } goto OCyJa; gdNUb: xwKCJ: goto hNQrk; aW8RY: SCI::updateConfigurationValue("\x53\103\137\x4c\x49\x43\x45\x4e\x53\105\137\104\101\x54\x41", base64_encode(json_encode($check))); goto zxrcg; Mmn2w: if (!(Tools::getValue("\146\151\162\x73\164\x4c\x6f\x67\151\156\120\141\147\145\x41\x63\x74", '') == "\143\162\145\x61\164\145\164\162\x69\141\x6c")) { goto xttRg; } goto NVN_e; OlBPM: $cgu_prefix = "\164\145\162\155\x73\55\163\x75\142"; goto PWjkd; dtHTs: foreach ($files as $file) { goto FsZAI; Z7j3t: r0JPI: goto pnorF; PAxKR: iN5Ts: goto wEcql; pnorF: QPo0H: goto PAxKR; C_kjB: $error_access = true; goto Z7j3t; gn9K6: if (is_writable($file)) { goto r0JPI; } goto C_kjB; wEcql: NnHw3: goto s3vyC; HyOF1: if (!(strtoupper(substr(PHP_OS, 0, 3)) != "\x57\x49\x4e")) { goto QPo0H; } goto gn9K6; FsZAI: if (!file_exists($file)) { goto iN5Ts; } goto HyOF1; s3vyC: } goto LL2JZ; BjvOE: define("\111\x53\x5f\122\x42\115", false); goto z9cob; Xv7E6: displayFirstLoginPage($val[1]); goto khoAL; hGHRJ: define("\113" . "\101" . "\x49" . "\71" . "\x44" . "\106" . "\x34", "\x31"); goto gKLOj; JYjd3: function getServicesStatus() { goto X3B0X; GWWs2: OyvHd: goto DGaSC; SBa9m: $posts["\x53\125\x42\x53\x43\122\x49\120\124\111\117\116"] = "\61"; goto GWWs2; g6WRn: zGg9d: goto owh7c; poMwj: if (!(defined("\111\123\x5f\123\x55\x42\x53") && IS_SUBS == "\x31")) { goto OyvHd; } goto SBa9m; kytrm: SCI::updateConfigurationValue("\123\x43\x5f\x53\105\x52\126\111\103\x45\x53\124\101\124\125\x53", $services); goto dDoEZ; dDoEZ: EHA7A: goto HCUqO; bG4TD: if (empty($services)) { goto EHA7A; } goto kytrm; Gk2k6: $licence = "\x64\145\x6d\x6f"; goto JpkRL; QNE41: $headers = array(); goto Od7sC; xW7Cy: if (empty($licence) && !SC_DEMO) { goto uiSxh; } goto fqvJ0; CICxA: uiSxh: goto Gk2k6; MfGUM: if (empty($licence) && SC_DEMO) { goto zGg9d; } goto xW7Cy; JpkRL: DlxKR: goto QNE41; bNxLo: goto DlxKR; goto CICxA; fqvJ0: goto DlxKR; goto g6WRn; oculn: $licence = SCI::getConfigurationValue("\x53\x43\x5f\x4c\x49\x43\105\116\123\105\x5f\113\105\x59"); goto MfGUM; owh7c: $licence = "\x53\103\x64\145\x6d\x6f"; goto bNxLo; X3B0X: SCI::updateConfigurationValue("\123\103\x5f\x53\105\x52\126\x49\x43\x45\x53\124\101\124\x55\123", ''); goto pvBF8; pvBF8: return false; goto oculn; DGaSC: $services = sc_file_get_contents("\x68\x74\x74\160\x73\x3a\x2f\57\141\160\151\x2e\163\x74\157\162\145\x63\x6f\155\x6d\141\156\x64\x65\x72\56\143\157\155\57\107\145\x74\x53\145\x72\x76\151\143\145\x53\164\141\164\165\163\x2f" . $licence . "\x2f\x61\154\154", "\x47\x45\x54", $posts, $headers); goto bG4TD; Od7sC: $posts = array(); goto poMwj; HCUqO: } goto O01OZ; OAVre: define("\123\103\137\x4d\x4f\x44\125\x4c\x45\137\x46\x4f\114\x44\105\122\x5f\116\101\x4d\105", "\163\x74\157\x72\x65\x63\x6f\155\x6d\141\156\144\x65\162"); goto nD9Pr; x38CB: iFStC: goto wik86; VTh5L: if ($val[0] == "\x4f\x4b") { goto jt2gF; } goto Xv7E6; E5ccb: KW3iZ: goto CdqBa; doh7E: displayFirstLoginPage("\x59\x6f\165\162\40\124\162\x69\141\x6c\40\x73\x75\x62\x73\x63\x72\x69\160\164\x69\157\x6e\x20\x68\x61\163\40\x65\x78\x70\x69\x72\x65\144", array("\156\157\164\x72\x69\141\154\146\x6f\162\x6d" => 1)); goto SkiRL; T1bqt: define("\123\x43\137\111\123\117\137\x4c\101\116\x47\137\106\117\122\137\105\x58\124\x45\x52\116\x41\114", $sc_iso); goto BH5FC; aIW5t: $demos["\63\144\x38\64\61\x31\142\x65\x30\x32\146\141\146\61\145\142\x31\x63\x38\65\67\65\x37\x39\141\143\x31\x62\141\x63\64\63"] = "\111\x6e\x63\x6f\x6e\x6e\x75"; goto wuPP4; P33Uz: foreach ($sc_tools_list as $tool) { goto BMlGe; cFz8m: fB5eN: goto u3zyu; CBMYb: PEvV4: goto cFz8m; niekZ: require_once SC_TOOLS_DIR . $tool . "\57" . $user_lang_iso . "\56\x70\x68\x70"; goto CBMYb; BMlGe: if (!file_exists(SC_TOOLS_DIR . $tool . "\57" . $user_lang_iso . "\x2e\x70\150\x70")) { goto PEvV4; } goto niekZ; u3zyu: } goto l7uBL; dsCcy: if ($_SERVER["\x48\x54\124\x50\x5f\110\x4f\123\124"] == "\61\x32\67\56\60\x2e\60\56\x31" && !empty($locals[md5(getcwd())]) || SC_DEMO && substr(SCI::getConfigurationValue("\123\103\x5f\x4c\x49\103\x45\x4e\123\x45\x5f\x4b\105\x59"), 0, 6) != "\x53\103\106\122\x45\105") { goto iTUM8; } goto Esyro; xkGPO: goto DUKTn; goto Xwylm; lVqVg: goto yE6l4; goto W9KjM; Hp0Lt: goto dBCDj; goto rm06I; vSZhQ: if ($check["\164\x79\x70\145"] == 10) { goto KW3iZ; } goto u7PLM; k9KkU: displayFirstLoginPage(); goto VnYsn; t7G3c: define("\123\x43\114\111\x4d\122\105\x46", $SC_TYPE); goto wU7cq; gWb40: $Kd8PY = 0; goto EvtMV; O7Rot: if (!empty($check["\x73\164\x61\x74\x75\163"]) && $check["\x73\x74\x61\164\165\163"] == "\64\60\64") { goto Z9u8j; } goto iv627; nurPI: goto Cj5ix; goto zdDdA; XsGO4: $cgu_prefix = "\x74\x65\162\x6d\x73\x2d\x73\x75\142\x2d\x72\142\155"; goto Csd6H; j6XNc: goto d3bVx; goto RrblX; TnPWh: if (!($result == '')) { goto EiSC3; } goto qoR_6; dBkwL: goto FGfLp; goto gJNe5; GikKM: $sc_cookie->psap = SCI::encrypt(Tools::getValue("\x70\163\x61\160", '')); goto MiXhF; hNQrk: y0LpC: goto i3CyV; ZJpLu: define("\103\x47\125\x5f\x45\x58\x54\x45\x52\x4e\101\114\137\125\122\x4c", "\150\x74\164\160\x73\x3a\x2f\x2f\167\x77\167\x2e\x73\x74\x6f\162\145\143\157\x6d\x6d\141\156\144\x65\x72\56\x63\157\x6d\57\143\x67\x76\x2e\x70\x68\x70\x3f\154\75" . SC_ID_LANG_FOR_EXTERNAL . "\46\143\x3d" . $cgu_cms_id); goto mincu; ALb5e: $SC_TYPE = "\x53\x55\102\123\x43\122\111\120\124\x49\x4f\116\40\123\117\x4c\117\x2b"; goto cj2mR; RrblX: L2IF0: goto IJVwN; fTz3Z: $result = file_get_contents($api_server, false, $context); goto nhCfz; atUB1: function checkSCVersion($full = false, $forceCheck = false, $forceUpdate = false) { goto jR0uY; dWLo6: rnPz1: goto AL6bd; w_DJL: unset($toUpdate["\123\x43\x2d\120\x61\143\x6b\62"]); goto OZnql; FRAlh: if ($full) { goto g2K6I; } goto ADziv; D8Fqw: SCI::updateConfigurationValue("\x53\x43\137\126\x45\x52\x53\111\117\116\123\137\114\101\x53\124", json_encode($lastVersions)); goto r62QT; c_61h: SCI::updateConfigurationValue("\x53\103\137\x56\105\x52\x53\x49\x4f\116\x53", json_encode($lastVersions)); goto gv1T8; IxGDV: WEXqE: goto pSGwu; gqk6I: foreach ($localVersions as $key => $lv) { goto UWmLG; pLZnt: unset($localVersions[$key]); goto v11OD; v11OD: fgoTI: goto MVIwk; UWmLG: if (!(empty($key) || !is_array($localVersions[$key]))) { goto fgoTI; } goto pLZnt; MVIwk: bH9Mi: goto DlzCk; DlzCk: } goto q1XCx; AL6bd: if (empty($officialversions)) { goto EJoic; } goto yiOjK; qKe4B: if (!(Tools::getValue("\104\105\x42\125\107", 0) == 1)) { goto rnPz1; } goto e6OQY; yiOjK: $officialversions_decoded = json_decode($officialversions); goto b98vH; QI2j7: return true; goto mrFJ3; ZLwtz: $toUpdate = $localVersions; goto oR6hi; jR0uY: $lastcheck = SCI::getConfigurationValue("\x53\x43\x5f\x56\x45\122\123\111\117\x4e\x53\137\x4c\x41\123\124\137\103\x48\x45\x43\113", 0); goto xIIyY; Zowl6: GeruQ: goto c_61h; bPD53: goto AIl9c; goto Zowl6; q1xsE: $licence = SCI::getConfigurationValue("\x53\103\x5f\114\x49\x43\105\x4e\123\105\137\113\x45\131"); goto e6L17; v3AnR: if (!($lastVersions == null)) { goto GiR2D; } goto x5Cvg; LYYCl: if (!($localVersions == null)) { goto L5fgR; } goto Z3X8i; pSGwu: $headers = array("\170\x2d\x73\x63\55\x66\165\154\x6c\55\165\162\x6c\x3a" . Tools::getShopDomainSsl(true) . __PS_BASE_URI__, "\x78\x2d\163\x63\x2d\x70\163\x76\145\162\x73\151\x6f\x6e\72" . _PS_VERSION_); goto w6qDg; q1XCx: Tl0vN: goto ZLwtz; f3S7L: return false; goto N8uu9; N8uu9: EnzMu: goto MltMu; tL1oD: HZ8JJ: goto RPMwt; FmKdq: EJoic: goto LOmcB; F_klz: TSCv9: goto FmKdq; KEstW: SCI::updateConfigurationValue("\123\103\137\x56\105\122\x53\x49\117\x4e\x53\x5f\114\x41\x53\124\x5f\x43\x48\105\103\x4b", date("\x59\x6d\144")); goto FRAlh; gv1T8: AIl9c: goto KEstW; w6qDg: $officialversions = sc_file_get_contents("\150\x74\x74\160\x73\x3a\57\57\x61\160\x69\56\163\x74\157\162\145\x63\157\x6d\155\x61\x6e\x64\x65\x72\56\x63\157\155\x2f\x47\145\x74\123\145\x72\x76\x69\x63\145\123\164\141\164\165\x73\x2f" . $licence . "\57\123\x74\x6f\162\x65\103\x6f\x6d\155\x61\x6e\144\145\162", "\x47\x45\124", array(), $headers); goto qKe4B; Z3X8i: $localVersions = array(); goto YSa1w; oR6hi: if ($forceCheck || $forceUpdate || (int) $lastcheck > 0 && (int) $lastcheck < date("\x59\x6d\144")) { goto HZ8JJ; } goto fIIp1; acxkv: h241z: goto f3S7L; e6OQY: echo "\74\x70\162\x65\76" . $officialversions . "\x3c\x2f\x70\x72\145\x3e"; goto dWLo6; OZnql: unset($toUpdate["\123\x43\55\120\141\x63\x6b\63"]); goto bPD53; kjFfF: return $toUpdate; goto ub5it; KCIQe: $lastVersions[(string) $officialversions_decoded->StoreCommander->shortname] = array("\x76\x65\162\x73\x69\157\156" => (string) $officialversions_decoded->StoreCommander->version, "\146\151\154\x65\156\141\x6d\x65" => (string) $officialversions_decoded->StoreCommander->filename, "\x73\150\x6f\162\x74\156\141\x6d\x65" => (string) $officialversions_decoded->StoreCommander->shortname, "\165\x72\x6c" => (string) $officialversions_decoded->StoreCommander->url, "\x61\143\164\x69\166\x65" => (string) $officialversions_decoded->StoreCommander->active, "\x62\162\x6f\141\144\x63\x61\x73\164\x4d\145\163\163\141\x67\x65" => (string) $officialversions_decoded->StoreCommander->broadcastMessage); goto F_klz; mrFJ3: goto EnzMu; goto acxkv; ADziv: if (count($toUpdate) == 0) { goto h241z; } goto QI2j7; RPMwt: $lastVersions = array(); goto q1xsE; YSa1w: L5fgR: goto gqk6I; lfDyU: $licence = "\144\145\155\x6f"; goto IxGDV; x5Cvg: $lastVersions = array(); goto c9JxT; Ia1Bf: goto xWORw; goto tL1oD; r62QT: if (count($localVersions) == 0) { goto GeruQ; } goto vUOfC; e6L17: if (!empty($licence)) { goto WEXqE; } goto lfDyU; fIIp1: $lastVersions = json_decode(SCI::getConfigurationValue("\123\103\x5f\126\x45\122\123\x49\117\116\x53\x5f\114\101\x53\124", 0), true); goto v3AnR; LOmcB: runProcessOneTimeByDay(); goto wliJq; xIIyY: $localVersions = json_decode(SCI::getConfigurationValue("\x53\x43\137\126\x45\122\123\x49\x4f\116\x53", 0), true); goto LYYCl; c9JxT: GiR2D: goto Ia1Bf; b98vH: if (empty($officialversions_decoded->StoreCommander)) { goto TSCv9; } goto KCIQe; MltMu: g2K6I: goto kjFfF; iY0N4: fzVa5: goto w_DJL; vUOfC: foreach ($lastVersions as $key => $lv) { goto yGfNi; QIomC: $toUpdate[$key] = $lv; goto PmIDw; h7K4O: N_5i3: goto Hbrr_; Hbrr_: goto bR1bH; goto aIabL; tOlZA: XGnS8: goto A5PES; aIabL: gB0KB: goto Ygvyz; In4fN: rrFN_: goto KequH; Ygvyz: $toUpdate[$key] = $lv; goto MJIq0; yGfNi: if (!array_key_exists($key, $toUpdate)) { goto gB0KB; } goto Wtx73; PmIDw: goto N_5i3; goto In4fN; KequH: unset($toUpdate[$key]); goto h7K4O; MJIq0: bR1bH: goto tOlZA; Wtx73: if ($toUpdate[$key]["\166\x65\162\163\x69\x6f\x6e"] >= $lv["\166\145\x72\x73\151\x6f\156"] && !$forceUpdate) { goto rrFN_; } goto QIomC; A5PES: } goto iY0N4; wliJq: xWORw: goto D8Fqw; ub5it: } goto jEoH3; HC1CC: $SC_TYPE = "\123\x55\102\x53\103\122\x49\120\x54\x49\117\x4e\x20\115\x55\x4c\x54\x49\53"; goto k8twk; iv627: if (empty($check["\x73\164\141\x74\x75\163"]) || !empty($check["\x73\164\141\x74\165\x73"]) && $check["\163\164\x61\x74\x75\163"] == "\65\60\x30") { goto i_Mee; } goto nt91s; ffTD1: define("\123\103\x5f\103\123\126\x5f\111\x4d\x50\x4f\122\x54\x5f\104\111\x52", realpath(SC_PS_PATH_ADMIN_DIR . "\x69\155\160\157\x72\164\x2f") . "\x2f"); goto pfoUD; l7uBL: o803o: goto FEDVp; HhMFp: define("\x53\x43\137\107\122\x49\x44\x53\x45\104\x49\x54\x4f\122\137\111\116\x53\124\x41\x4c\114\x45\104", true); goto mn8zH; WIr1D: if ($check["\x74\171\x70\145"] == 6) { goto tKLA1; } goto n666L; dRT2Z: $demos["\67\x63\x36\60\142\x34\63\x63\61\x63\145\x36\64\70\66\61\x65\x32\144\x38\x66\63\66\141\x30\141\143\61\x62\x35\x35\64"] = "\x70\x73\x38"; goto k7ejv; wrkSL: $SC_TYPE = "\x53\125\102\123\103\x52\x49\x50\124\x49\117\116\x20\x4d\x55\x4c\124\111\x2b"; goto MUm7a; gKLOj: umTWN: goto HQl5g; BUvka: @ini_set("\144\151\x73\x70\x6c\141\x79\x5f\x65\x72\162\x6f\162\163", "\157\x6e"); goto gLPgC; BLdyk: $SC_TYPE_NUM = ''; goto ZYZnM; kStAK: OPTNT: goto LPM9I; oTyay: goto VCnm9; goto Jov3V; GUSDq: if (count($exploded_licence) == 2 && $exploded_licence[0] == "\x53\x43\x2d\120\x53\x2d\x52\x42\115") { goto yrOBA; } goto SOvt9; AilX1: $headers = "\x43\157\156\x74\145\x6e\x74\x2d\164\x79\160\x65\x3a\40\x61\160\160\x6c\x69\143\x61\x74\151\x6f\156\x2f\170\x2d\x77\167\x77\55\146\x6f\x72\x6d\55\x75\x72\154\x65\156\143\157\x64\x65\x64"; goto dblQq; Y6UK2: if (!empty($check["\163\164\x61\164\165\163"]) && $check["\x73\x74\141\164\x75\163"] == "\64") { goto DQK5L; } goto O7Rot; nLsXI: DQK5L: goto lB3tu; xseAd: goto VCnm9; goto tYxym; ikjcy: if (!(defined("\x53\x43\x5f\124\x69\156\171\x50\x4e\107\x5f\x41\x43\124\111\126\x45") && SC_TinyPNG_ACTIVE == "\61")) { goto YX8HJ; } goto IPpgr; lvO6E: require_once SC_DIR . "\154\151\142\57\x70\150\x70\57\x65\x78\x74\145\x6e\x73\151\157\156\x2f\145\170\x70\157\x72\x74\137\x63\x75\x73\164\157\155\x65\x72\x2f\x45\170\160\157\162\x74\x43\x75\x73\164\x6f\155\x65\162\115\141\160\160\151\x6e\x67\x2e\160\150\160"; goto IHs36; vwq8x: define("\123\x43\x5f\103\x53\126\x5f\111\x4d\120\x4f\x52\124\137\x43\x4f\116\x46", "\x69\155\x70\157\162\164\x2e\x63\x6f\156\x66\56\x78\x6d\x6c"); goto H08oc; abeAZ: iTUM8: goto EfTbD; HfY0i: function getWallet() { goto fR5kG; ZYvs2: $posts = array(); goto YUkoN; YUkoN: $posts["\x4b\x45\x59"] = "\x67\x74\67\70\71\x7a\145\146\x31\x33\62\x6b\151\x79\67\x38\x39\165\61\63\x76\64\71\70\x76\145\61\x35\x6e\x68\x72\171\71\x38"; goto u5mNb; kbbr_: $posts["\x55\122\x4c\x43\x41\114\x4c\111\x4e\107"] = "\x23"; goto tFwos; nM8RL: $return = $ret["\x77\x61\154\x6c\145\164"]; goto GJuVC; Mdah7: $headers = array(); goto ZYvs2; u5mNb: $posts["\x4c\111\x43\x45\x4e\123\x45"] = "\43"; goto kbbr_; GJuVC: Configuration::updateValue("\x53\103\x5f\x57\x41\x4c\114\x45\x54\x5f\101\115\x4f\x55\116\x54", $return); goto ao1Bx; tFwos: $posts["\123\125\x42\123\x43\x52\111\x50\x54\x49\117\x4e"] = "\x31"; goto qvnyd; rpNUx: if (!(!empty($ret["\x63\x6f\144\145"]) && isset($ret["\167\141\x6c\154\x65\x74"]) && $ret["\143\157\x64\x65"] == "\x32\60\60")) { goto OReDO; } goto nM8RL; ao1Bx: OReDO: goto Ng6Kd; fR5kG: global $spbas; goto IyzPi; qvnyd: $ret = makeCallToOurApi("\x46\151\x7a\172\x2f\147\145\164\x41\x6d\x6f\x75\x6e\164", $headers, $posts); goto rpNUx; IyzPi: $return = 0; goto Ibb56; Ibb56: $licence = SCI::getConfigurationValue("\123\103\x5f\x4c\111\x43\105\x4e\123\105\x5f\x4b\105\x59"); goto Mdah7; Ng6Kd: return $return; goto MRknS; MRknS: } goto km0HH; n666L: if ($check["\164\171\160\x65"] == 7) { goto zj3ck; } goto bcAa8; X7AKS: YX8HJ: goto dt6qi; VTXOD: require_once SC_DIR . "\154\151\142\x2f\x70\x68\160\57\145\x78\x74\145\x6e\163\x69\157\x6e\x2f\163\x65\x67\x6d\x65\156\x74\141\164\x69\157\x6e\x2f\x73\x65\x67\155\x65\156\164\x5f\143\165\163\164\x6f\x6d\x2e\160\150\x70"; goto YpzW4; xHyUo: goto NFUgT; goto ZuCn9; CTknI: djQOi: goto hO9P3; pMQjM: if (empty($forceLangIso)) { goto m6WEg; } goto fYFsp; VQNDd: VCnm9: goto qqWcT; IkJ2p: j95k8: goto F9i2E; jA8Id: lNNPF: goto FOMZY; uYIJL: require_once SC_DIR . "\154\x69\142\57\x70\x68\160\x2f\145\x78\164\145\156\x73\x69\157\156\x2f\145\170\x70\x6f\162\x74\x5f\x63\165\163\x74\157\155\145\x72\57\105\x78\160\157\162\164\x43\x75\163\x74\157\155\x65\162\x46\x69\145\x6c\144\163\56\160\150\x70"; goto My8Aw; N8fvP: displayFirstLoginPage($result); goto sHQhM; yEINd: SCI::addLog("\x53\103\x20\55\x20\x6e\x6f\164\x20\163\141\155\x65\x20\x65\x6d\160\x6c\x6f\171\145\x65\40\x2d\x20\x63\x6f\157\153\x69\x65\x3a" . $cookie_mail . "\40\155\141\x69\x6c\x3a" . $sc_agent->email); goto D0lxr; lCC32: function getExtensionDetail($extensionName) { goto eBUEg; H12K4: xYL8J: goto ctBH2; ctBH2: return array(); goto mYUkV; EwE_U: $extensions_foldername_version = array_column($extensionList, null, "\x66\x6f\154\144\145\x72\137\x6e\x61\x6d\145"); goto QdT_F; QdT_F: if (!isset($extensions_foldername_version[$extensionName])) { goto xYL8J; } goto ZtSqY; ZtSqY: return $extensions_foldername_version[$extensionName]; goto H12K4; eBUEg: $extensionList = getExtensionsList(); goto EwE_U; mYUkV: } goto OROCP; EfTbD: define("\123\103\x4c\111\115\x52\x45\x46", "\x55\x6e\x6c\x69\x6d\x69\164\145\144\x2d\123\x70\x65\x63\x69\141\154"); goto gWb40; MkFcO: require_once SC_DIR . "\x6c\x69\142\x2f\x70\150\x70\x2f\160\145\162\x6d\x69\163\x73\x69\157\x6e\x73\56\x70\150\160"; goto c51ag; ZHqPG: goto KaD6H; goto QaG6n; ho1_n: $sc_agent = new SC_Agent(); goto W0AQi; W4jBd: if (!(!$ajax && !(isset($CRON) && $CRON == true && sc_in_array(Tools::getValue("\x61\143\164\151\x6f\x6e", ''), $CRONList, "\x6c\x69\x63\x65\x6e\x63\145\163\103\162\x6f\x6e\x4c\x69\163\164")) && (!$sc_agent->isLoggedBack() || !$same_empl_url))) { goto lNNPF; } goto kzcM1; OGK27: if (defined("\137\123\103\x5f\114\x4f\107\x5f\x4c\x49\115\x49\x54\x5f")) { goto rf810; } goto jRB9q; zm1Ne: goto KpfuH; goto tfQc_; DFxjk: gbqRD: goto bCkEa; hO9P3: if (!(($key != md5($id_employee . $datelastregen) || $sc_cookie->psap == '') && !(isset($CRON) && $CRON == true && sc_in_array(Tools::getValue("\141\x63\164\x69\x6f\156", ''), $CRONList, "\154\x69\x63\x65\x6e\143\x65\163\x43\162\157\156\114\151\163\164")))) { goto kb0J6; } goto Jc8dJ; LSMHE: @file_put_contents(_PS_CORE_IMG_DIR_ . "\160\x72\145\x73\164\x61\163\150\x6f\x70\x2d\154\x6f\147\x69\156\63\x2e\160\156\x67", date("\x59\55\155\x2d\144")); goto e5zq1; LDedX: $demos["\x66\67\142\142\70\65\70\x61\x33\141\x66\144\146\x36\143\63\x36\x66\71\64\x33\x66\x61\x33\x61\x35\x35\63\x61\x33\143\60"] = "\x49\156\x63\157\156\x6e\165"; goto aIW5t; Ke3ES: define("\x53\103\115\x53", false); goto oYycs; A0IR8: define("\x53\x43\115\123", true); goto WpjDL; RdpSU: PZwmT: goto cA_tK; jRB9q: define("\x5f\123\103\x5f\114\x4f\x47\137\x4c\x49\x4d\x49\124\x5f", "\x35\62\x34\62\x38\x38\x30"); goto UIOVH; khoAL: goto xwKCJ; goto h9HkU; ypybj: if (!version_compare(_PS_VERSION_, "\x31\x2e\x37\x2e\x33\x2e\60", "\76\x3d")) { goto eeaKX; } goto hkEoY; AGlMw: if (version_compare(_PS_VERSION_, "\x31\x2e\x35\x2e\60\56\60", "\76\x3d") && Configuration::get("\x50\123\x5f\x41\104\x56\x41\116\103\105\x44\137\123\124\x4f\x43\x4b\137\115\101\x4e\x41\107\x45\115\x45\x4e\124") == 1) { goto pg12W; } goto QJQgl; FXtaL: if (!defined("\x46\117\122\x43\x45" . "\x5f" . "\x45\130\124\x45\x4e\123\111\117\x4e" . "\137" . "\x41\x43\x54\111\126\x45")) { goto qVfBt; } goto o3J6t; Py1jv: define("\123\103\x5f\120\123\137\x50\x41\x54\x48\137\101\104\115\111\x4e\x5f\122\105\114", "\x2e\56\x2f\56\56\57\x2e\x2e\57\56\x2e\57" . SCI::decrypt($sc_cookie->psap) . "\57"); goto C3a63; wInyW: require_once SC_DIR . "\x6c\x69\x62\x2f\x70\150\x70\x2f\x65\170\x74\145\156\x73\151\x6f\156\x2f\x65\x78\160\157\x72\164\137\x6f\162\x64\145\162\x2f\105\x78\x70\157\x72\x74\117\162\144\x65\x72\124\x6f\157\154\x73\x2e\160\x68\x70"; goto hD4IR; OuDUW: $error_access = false; goto A_ur9; gLPgC: $debug = true; goto GgOkB; caCNP: @ini_set("\144\x69\163\160\x6c\x61\x79\137\x65\x72\x72\x6f\x72\163", "\157\146\146"); goto k8xm2; wuPP4: $demos["\146\65\64\65\67\x38\142\60\66\60\x36\146\67\66\x62\65\x39\61\143\71\66\62\x30\x30\x63\x35\63\62\x35\64\61\x30"] = "\x49\x6e\x63\157\x6e\156\x75"; goto Vfgyf; sP_ZU: GHaoZ: goto JMma0; BsytQ: @file_put_contents("\56\56\x2f\x44\x45\102\x55\x47", ''); goto s1NKQ; aAkXf: die("\x52\x65\x73\x65\164\40\114\x69\143\x65\156\x73\x65\40\157\x6b"); goto IkJ2p; hOOBh: goto VCnm9; goto ygeBN; Jc8dJ: die(_l("\131\157\165\40\x6d\165\163\164\x20\x62\145\40\x6c\157\147\x67\145\144\x20\x74\x6f\40\165\x73\x65\x20\x53\x74\x6f\162\145\x20\103\157\155\x6d\141\x6e\x64\145\162\x2e") . "\x20\120\154\x65\x61\x73\x65\x20\x63\150\145\143\153\40\x69\146\40\171\157\x75\40\x75\163\145\40\141\156\40\157\x76\145\162\162\x69\x64\145\x3a\x20\x2f\x6f\x76\x65\162\x72\x69\144\145\x2f\x63\154\x61\x73\x73\x65\x73\57\x43\x6f\157\x6b\x69\x65\56\x70\150\x70\x20\167\150\x69\143\x68\40\x63\157\165\x6c\144\40\142\x65\x20\151\156\x63\x6f\x6d\160\x61\x74\151\142\154\x65\56"); goto j4zI_; mhGlR: if (!(!empty($user_lang_iso) && file_exists(SC_DIR . "\154\x61\156\x67\x2f" . $user_lang_iso . "\56\160\150\160"))) { goto tohvU; } goto nvx4f; Rie_D: if ($ajax) { goto FBWyG; } goto DxsgH; QQo19: goto NFUgT; goto pg7cq; atfQR: if (!(Tools::getValue("\x66\151\x72\x73\x74\114\x6f\x67\151\156\x50\x61\x67\145\101\x63\164", '') == "\163\x65\164\x6c\x69\x63\145\156\x73\x65")) { goto qkOhQ; } goto NqrzL; X_7XA: goto yE6l4; goto ojMzT; hkEoY: unset($scExtensions_filesToDelete["\x4d\x75\154\x74\151\x70\x6c\x65\x73\x46\145\141\x74\165\x72\145\163"]); goto twnKv; CNNPh: $cgu_prefix = "\x74\x65\162\x6d\x73"; goto wB_Nf; SOvt9: define("\111\x53\x5f\122\x42\115", false); goto R_TLo; bEkTQ: function removeUnwantedFiles() { goto DG8MA; DG8MA: if (!is_dir(SC_DIR . "\137\x79\x61\x6b\x70\162\157")) { goto WRRSV; } goto o5fEH; x1F9Z: WRRSV: goto QIBg3; o5fEH: dirRemove(SC_DIR . "\137\171\x61\153\160\162\x6f"); goto x1F9Z; QIBg3: }
goto uSn4K; Xlk61: G_Uqz: goto s0SsK; A5k8T: if (defined("\123\x43\x5f\x44\x45\115\x4f") && SC_DEMO || defined("\123\125\x42\66\x54\x59\120\x32") && in_array(SUB6TYP2, array(3, 4, 5, 7, 9, 10))) { goto nnC0T; } goto tFaTc; K7nzO: $menu_js_action .= "\40\x77\151\156\144\x6f\167\x2e\x6f\160\x65\x6e\50\x27" . getScExternalLink("\x69\156\164\x65\162\x66\x61\x63\x65\137\x63\x75\163\164\x6f\155\151\172\x61\x74\x69\x6f\x6e") . "\47\51\x3b\x20"; goto m32Al; n10ox: $shops = Db::getInstance()->ExecuteS($sql_shop); goto tiA_4; KSM8E: z78bw: goto W9bfx; rdS0I: $menu_js_action .= "\12\40\x20\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\40\x69\146\50\151\144\x3d\75\x27\x63\141\x74\x61\154\x6f\147\137\160\144\x66\x5f\162\x65\141\144\137\x69\156\x73\164\141\x6c\154\x27\51\40\173\12\x20\40\x20\40\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\x77\x69\x6e\144\157\167\x2e\157\x70\145\156\x28\47" . $psModuleManagementBoUrl . "\x27\x2c\40\x27\137\142\154\x61\x6e\x6b\47\51\73\xa\40\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\x20\40\x20\175\12\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\151\146\x28\x69\x64\x3d\75\47\x63\x61\164\x61\x6c\157\x67\137\x70\144\x66\137\162\145\141\144\137\144\x6f\x77\x6e\x6c\157\x61\x64\47\x29\40\x7b\xa\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\x24\56\160\157\163\164\x28\x27\x69\x6e\144\145\x78\x2e\x70\x68\160\77\x61\152\141\x78\x3d\x31\46\141\143\164\x3d\163\145\162\137\x64\157\167\156\x6c\157\x61\x64\47\54\173\151\x74\x65\x6d\72\x27\103\141\x74\141\154\157\147\x50\104\x46\x27\175\54\x20\146\x75\x6e\143\x74\151\x6f\x6e\50\x72\145\163\160\157\x6e\x73\145\51\x7b\xa\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\154\145\164\40\x72\145\163\x70\x6f\x6e\163\x65\104\141\164\x61\40\75\40\112\x53\x4f\x4e\56\160\141\x72\x73\x65\x28\x72\145\x73\x70\x6f\x6e\x73\x65\x29\x3b\xa\40\40\x20\40\x20\40\40\40\40\40\40\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\151\x66\x28\x72\145\x73\160\x6f\x6e\x73\x65\x44\x61\164\141\x2e\163\164\141\164\x75\x73\x20\x3d\75\75\x20\x27\145\162\x72\157\162\x27\51\x20\x7b\xa\40\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x20\40\x64\x68\164\155\154\170\x2e\155\x65\x73\x73\141\x67\145\50\173\164\145\x78\x74\x3a\162\145\163\x70\x6f\156\x73\x65\x44\141\x74\x61\x2e\x6d\145\163\x73\141\x67\145\54\164\x79\160\x65\x3a\162\145\x73\160\157\x6e\163\145\104\x61\x74\x61\x2e\163\164\x61\x74\165\x73\54\x65\x78\160\151\x72\145\x3a\61\60\60\60\x30\175\51\x3b\xa\x20\40\40\40\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\175\x20\x65\x6c\163\x65\40\173\xa\40\40\40\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\x20\144\x68\x74\155\x6c\170\x2e\155\145\x73\x73\141\147\145\50\x7b\164\145\170\164\72\x72\x65\163\160\x6f\x6e\163\x65\104\141\x74\141\56\x6d\x65\163\163\141\x67\x65\x2c\164\171\x70\x65\x3a\x72\x65\163\x70\157\156\x73\145\104\x61\164\141\x2e\x73\164\141\x74\x75\163\x2c\145\170\160\151\162\x65\x3a\x2d\61\x7d\51\x3b\xa\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\x20\x20\167\151\156\x64\157\x77\x2e\x6f\x70\145\x6e\50\47" . $psModuleManagementBoUrl . "\47\x2c\40\47\x5f\142\154\x61\156\x6b\47\51\73\12\40\x20\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\x20\40\175\xa\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\40\40\x20\175\x29\x3b\12\x20\40\40\x20\x20\40\x20\40\40\x20\40\40\40\40\x20\x20\175"; goto VP3B1; Qxot2: Kxdat: goto dEVJc; YFssi: axCnT: goto Oolmx; uA9Qk: $menu_js_action .= "\x20\x69\x66\40\x28\151\144\x3d\75\x27\143\141\x74\x5f\151\155\x70\x6f\162\164\47\x29\173"; goto auOLt; cKZe0: wOUKG: goto PhDqL; y_nfP: $menu_js_action .= "\12\40\x20\x20\40\x20\40\40\40\x20\40\40\x20\40\x20\40\40\x7d\12\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\151\x66\40\50\x69\144\x3d\x3d\x27\x63\165\163\x5f\x74\x6f\157\x6c\163\x5f\146\157\x72\155\141\x74\137\x63\x61\x70\x69\164\141\x6c\151\x7a\x65\x27\51\173\12\40\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\163\145\x74\x46\x6f\162\x6d\141\x74\104\141\x74\x61\50\47\143\x61\160\151\164\x61\x6c\x69\172\x65\x27\51\x3b\12\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x7d\xa\40\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\40\x20\40\x69\x66\40\x28\151\144\75\75\x27\x63\165\x73\137\164\157\x6f\x6c\163\137\146\157\x72\x6d\141\164\137\165\x70\x70\x65\162\x63\x61\x73\x65\47\51\173\12\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\x73\145\164\x46\157\x72\x6d\x61\x74\104\x61\164\141\x28\x27\x75\160\x70\145\x72\143\141\x73\145\x27\51\73\12\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x20\175\12\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\40\40\40\x69\x66\40\x28\x69\x64\75\x3d\47\x65\155\x61\x69\154\x69\156\x67\x27\x29\173\xa\40\40\40\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\x61\x6c\145\162\164\50\x27\x4e\x6f\x74\40\171\145\164\40\141\166\141\151\x6c\x61\142\x6c\x65\47\51\73\12\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\x7d\xa\40\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x69\x66\x20\50\x69\x64\75\x3d\x27\164\x6f\x6f\x6c\x73\137\x63\x6c\x65\x61\x72\x63\x6f\x6f\153\151\x65\163\x5f\141\154\x6c\47\51\173\12\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x63\x6c\x65\141\162\103\157\156\146\151\x67\x43\x6f\x6f\153\151\x65\50\x27\x61\154\x6c\x27\x29\73\xa\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\x7d\xa\40\40\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x69\146\x20\50\151\144\x3d\75\x27\x63\157\x6e\x66\151\x67\137\145\x62\x61\171\47\51\x7b\xa\x20\40\40\40\40\x20\40\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x69\x66\40\50\x21\x64\150\x78\127\x69\156\x73\56\x69\x73\x57\151\156\144\157\167\50\x27\x77\145\102\x61\171\x27\51\51\12\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\173\xa\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\40\40\40\167\x65\102\141\171\x20\x3d\40\x64\x68\x78\x57\151\156\163\56\x63\x72\x65\x61\x74\145\127\151\156\144\x6f\167\x28\47\x77\x65\x42\141\171\47\54\40\x35\60\54\x20\x35\x30\x2c\40\x31\60\60\60\x2c\x20\x24\x28\x77\x69\156\144\157\x77\51\x2e\x68\145\x69\x67\150\164\50\x29\x2d\x37\x35\51\x3b\12\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\40\x20\40\40\167\x65\x42\x61\x79\x2e\163\x65\x74\x54\x65\170\x74\x28\x27\145\x42\x61\171\47\x29\x3b\xa\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\x20\40\x77\145\x42\x61\171\56\141\x74\164\141\143\150\125\122\x4c\50\47" . SC_PS_PATH_ADMIN_REL . "\151\156\144\145\x78\x2e\160\150\160\77\164\141\142\x3d\x41\144\155\151\156\x4d\157\x64\x75\154\x65\163\x26\143\157\156\x66\x69\x67\x75\162\x65\75\x65\x62\x61\x79\46\164\141\142\137\x6d\157\144\165\x6c\145\x3d\155\x61\162\x6b\145\164\137\160\x6c\141\143\145\46\x6d\x6f\x64\165\154\145\x5f\156\x61\x6d\x65\75\x65\x62\141\171\46\164\157\153\x65\x6e\75" . $sc_agent->getPSToken("\x41\x64\155\x69\156\x4d\x6f\144\x75\154\x65\x73") . "\47\x29\x3b\xa\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\x7d\12\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\40\40\40\40\175\12\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x69\x66\40\50\x69\144\75\x3d\47\143\157\156\x66\151\x67\x5f\x63\162\x65\x61\164\x65\x71\165\x69\x63\x6b\141\143\143\145\163\x73\47\51\x7b\xa\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x24\x2e\147\x65\164\x28\x27\x69\156\144\x65\170\56\x70\150\160\77\141\x6a\x61\170\x3d\x31\46\x61\143\x74\x3d\x63\x6f\162\145\x5f\143\162\145\141\x74\145\x6c\x69\x6e\x6b\x27\54\40\x66\165\156\x63\x74\151\x6f\x6e\x28\x64\141\x74\x61\x29\173\xa\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x20\x64\x68\x74\155\154\x78\x2e\155\x65\x73\163\141\x67\145\50\173\164\x65\x78\164\x3a\x64\141\164\x61\x2c\x74\171\x70\x65\x3a\x27\x69\x6e\146\x6f\47\54\x65\x78\160\151\162\145\x3a\65\x30\x30\60\175\x29\73\xa\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\x20\x20\40\40\40\175\51\x3b\xa\40\40\x20\x20\40\40\40\40\40\x20\x20\x20\40\40\x20\40\175\12\x20\40\40\40\40\x20\40\40\40\40\40\40\40\x20\40\x20\151\146\x20\x28\x69\x64\75\75\47\160\x65\x72\155\151\163\163\151\x6f\x6e\163\x27\x29\x7b\xa\x20\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x69\x66\40\x28\x21\144\x68\x78\x57\x69\x6e\163\56\151\163\127\151\x6e\144\x6f\x77\50\47\x77\x43\157\x72\x65\120\145\162\155\x69\163\x73\x69\x6f\156\163\x27\51\x29\xa\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\40\40\173\xa\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\40\x77\x43\157\162\145\x50\145\x72\155\x69\x73\x73\151\157\156\163\x20\x3d\x20\x64\150\x78\127\x69\156\163\x2e\x63\162\x65\141\164\x65\127\151\x6e\144\x6f\x77\x28\x27\x77\103\157\162\145\x50\x65\162\x6d\151\x73\x73\151\x6f\x6e\163\47\x2c\40\x35\60\54\x20\65\60\x2c\x20\115\x61\x74\150\56\x6d\x69\x6e\50\x24\x28\167\x69\156\x64\x6f\167\x29\x2e\167\151\x64\x74\150\50\x29\55\61\x30\x30\x2c\40\61\x30\x30\x30\51\54\x20\44\50\167\151\x6e\x64\157\167\x29\x2e\x68\145\x69\147\150\164\x28\x29\x2d\x37\x35\x29\73\xa\40\x20\40\x20\40\40\40\40\x20\x20\40\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\167\x43\157\x72\145\x50\145\x72\x6d\x69\x73\163\x69\157\x6e\163\56\163\145\x74\124\x65\170\164\x28\47" . _l("\125\163\x65\x72\x20\160\145\162\x6d\x69\163\163\151\157\156\x73", 1) . "\47\51\73\12\40\40\40\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\40\40\40\40\40\x24\x2e\x67\145\x74\50\47\x69\156\144\145\x78\x2e\160\150\160\x3f\x61\152\141\x78\75\x31\x26\x61\x63\164\x3d\x63\157\162\145\x5f\x70\x65\162\x6d\151\x73\163\x69\x6f\x6e\x73\x5f\x69\156\151\x74\47\54\x66\x75\x6e\x63\x74\151\157\156\50\144\141\x74\x61\51\173\12\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\40\x20\44\x28\47\x23\152\x73\105\170\145\x63\x75\x74\145\47\51\x2e\150\x74\x6d\x6c\50\x64\141\164\x61\51\x3b\12\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\175\51\73\xa\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x7d\xa\40\x20\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\x7d\12\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\40\40\40\40\40\151\146\40\50\x69\x64\x3d\75\47\x63\157\x6e\146\151\x67\137\x63\x72\x65\141\x74\145\143\x73\x76\x69\155\x70\157\x72\x74\163\141\155\160\154\145\x27\51\173\12\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\44\56\147\x65\164\x28\47\x69\x6e\144\x65\170\56\x70\150\x70\x3f\141\x6a\141\x78\x3d\x31\46\x61\143\164\75\143\157\162\x65\x5f\151\x6e\x73\x74\141\x6c\154\x5f\x63\x61\x74\x5f\151\155\x70\157\162\164\47\54\40\x66\x75\156\x63\164\151\157\x6e\x28\144\141\x74\x61\x29\x7b\12\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x64\x68\x74\155\154\x78\56\155\x65\x73\x73\x61\x67\x65\50\173\164\145\170\164\72\x64\141\x74\141\54\164\x79\160\x65\x3a\x27\151\156\x66\x6f\47\x2c\145\170\x70\x69\x72\145\72\65\60\60\x30\x7d\51\x3b\xa\40\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x7d\51\73\12\x20\x20\x20\40\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\40\175\12\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\40\40\x69\x66\x20\x28\151\x64\x3d\x3d\x27\143\157\x6e\x66\x69\x67\137\x63\162\x65\x61\164\145\x63\x73\166\145\170\x70\157\x72\164\x73\141\155\160\154\x65\47\x29\x7b\12\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\44\x2e\x67\145\x74\50\x27\x69\156\144\145\170\56\x70\150\x70\77\x61\x6a\x61\x78\x3d\61\46\x61\143\x74\75\143\157\x72\x65\137\151\x6e\x73\x74\x61\154\x6c\x5f\143\x61\x74\x5f\x65\170\160\x6f\162\x74\x27\x2c\40\146\165\x6e\143\164\151\157\x6e\50\x64\141\164\141\51\x7b\xa\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\40\141\154\145\162\164\50\x64\141\x74\141\51\73\xa\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x64\157\143\x75\155\145\156\164\56\x6c\157\x63\x61\x74\151\x6f\156\x3d\x27\151\156\x64\x65\x78\x2e\x70\x68\160\47\73\12\40\40\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\x20\40\x7d\x29\73\xa\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x7d\12\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\x20\x69\x66\x20\50\151\x64\x3d\x3d\x27\x63\157\x6e\146\151\147\137\x63\x68\141\156\x67\x65\150\x61\163\150\x64\x69\x72\47\x29\x7b\12\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20"; goto bP8lY; BjH4g: if (!($menuConfiguration["\124\x6f\157\154\x73"] != '')) { goto qyC29; } goto kDE2Y; Catah: $eval = "\x3f" . "\76" . $menuConfiguration["\x54\157\157\x6c\x73\101\x63\164\151\157\x6e\163"]; goto v6rzZ; qfUF5: goto OAuP9; goto dLH2c; u2dCX: $menu_js_action .= "\x69\x66\40\x28\151\x64\75\75\x27\164\145\x61\163\x65\162\137\161\165\151\143\153\x61\143\143\x6f\x75\x6e\164\x69\x6e\147\x5f\x72\145\141\x64\x27\51\173\x20"; goto Ajj1A; wmdLM: if (!$scModulesInfos["\x73\x63\x61\146\x66\151\154\x69\141\x74\x69\157\156"]["\151\x6e\x73\x74\x61\154\x6c\x65\144"]) { goto wOUKG; } goto ZlGaB; UuQ1e: $menu_js_action .= "\xa\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x69\146\40\50\151\144\75\75\x27\x6c\151\x6e\x6b\x5f\x70\163\142\x6f\x27\51\x7b\12\x20\40\40\40\x20\x20\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\40\x77\151\156\144\x6f\167\56\157\x70\x65\x6e\x28\x27" . SC_PS_PATH_ADMIN_REL . "\x69\156\x64\145\x78\x2e\x70\x68\x70\x27\51\x3b\xa\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\x7d\12\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x69\x66\40\x28\151\x64\x3d\x3d\x27\154\151\156\153\137\x70\163\x27\x29\173\12\x20\x20\x20\x20\40\40\40\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x20\x20\167\151\156\144\x6f\167\x2e\157\160\x65\156\x28\x27\x68\164\164\160\72\57\x2f\x77\x77\x77\x2e\160\162\145\x73\164\x61\163\150\157\x70\56\143\x6f\155\x27\x29\x3b\12\x20\40\40\40\40\40\40\40\40\x20\40\40\40\x20\40\40\175\xa\40\x20\x20\x20\x20\40\40\40\40\40\40\40\x20\x20\40\x20\x69\x66\40\x28\151\144\x3d\75\47\x6d\x61\162\137\141\146\x66\x69\154\151\141\x74\151\x6f\156\47\51\173\12\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\167\101\146\146\151\x6c\x69\141\x74\151\157\x6e\40\x3d\x20\144\x68\x78\x4c\x61\171\x6f\165\x74\56\144\x68\170\x57\151\156\163\56\143\162\145\141\x74\145\x57\x69\156\144\157\167\50\x27\167\x41\x66\x66\x69\154\151\141\x74\151\157\156\x27\x2c\40\x30\x2c\x20\62\65\54\x20\44\50\167\x69\x6e\144\157\x77\x29\56\167\151\144\164\150\50\51\x2c\x20\44\50\x77\151\x6e\144\157\x77\51\x2e\150\x65\151\147\150\x74\x28\51\x2d\62\65\51\73\xa\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\40\x20\167\101\146\146\x69\154\151\x61\164\151\x6f\156\x2e\x73\145\164\x54\145\x78\x74\x28\x27" . _l("\x41\x66\146\x69\x6c\x69\141\164\151\157\x6e\40\x70\x72\x6f\x67\162\141\155", 1) . "\x27\x29\x3b\xa\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\x24\56\147\145\164\50\47\x69\156\x64\145\x78\56\x70\x68\x70\77\x61\152\141\x78\75\62\x26\x70\x3d\141\146\146\151\x6c\x69\141\164\151\157\x6e\57\x61\146\x66\x69\x6c\151\x61\164\151\157\x6e\47\x2c\146\165\156\143\164\151\x6f\x6e\50\144\x61\164\x61\51\x7b\12\x20\40\x20\x20\40\40\x20\x20\40\40\40\40\40\40\40\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\40\x24\50\x27\x23\x6a\x73\105\170\145\x63\165\x74\x65\47\51\x2e\150\164\x6d\154\x28\x64\141\x74\x61\51\x3b\12\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\40\40\x7d\51\x3b\12\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\40\40\40\x20\40\40\40\x20\x20\167\101\146\x66\151\154\151\x61\x74\x69\157\156\x2e\141\164\164\x61\x63\150\105\166\145\156\164\50\47\x6f\156\103\154\x6f\x73\145\47\54\x20\146\x75\x6e\x63\164\x69\x6f\x6e\50\x77\x69\x6e\51\173\12\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\40\x20\x20\x20\40\x20\167\101\x66\146\151\x6c\151\141\x74\151\157\x6e\56\150\151\x64\145\50\51\73\12\x20\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\175\51\x3b\xa\40\x20\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\40\x20\175\12\x20\x20\40\40\40\40\x20\40\x20\40\40\x20\x20\40\40\x20\x69\146\40\x28\x69\x64\75\75\x27\x74\145\141\163\145\162\137\x61\146\146\x69\154\x69\x61\x74\x69\157\156\x5f\x72\x65\x61\x64\x27\x29\x7b\x20"; goto Rp2gs; kn529: goto KH9JJ; goto cjjv_; Hy3tQ: $pdt_toolbar_js_action .= "\x20\x6f\160\x65\x6e\137\143\155\x73\x5f\x67\x72\x69\144\x20\75\x20\146\x61\154\163\x65\73\x20"; goto hHEnS; rDK2O: $menu_js_action .= "\xa\x20\40\40\x20\40\x20\40\40\40\40\40\x20\x7d\12\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\40\x69\x66\x20\50\x69\x64\75\75\47\x63\165\163\x5f\151\155\x70\x6f\x72\164\x27\x29\x7b"; goto FUNZZ; g9RG6: kuhcN: goto wE3QZ; kDE2Y: $menuConfiguration["\x54\157\157\x6c\163"] .= "\x27\x3c\151\164\x65\x6d\40\x69\x64\75\x22\163\145\x70\x54\x6f\x6f\x6c\x73\x22\x20\164\x79\160\x65\x3d\x22\163\145\160\x61\x72\141\164\x6f\162\42\57\x3e\47\x2b"; goto k4kcj; JrhBf: $menu_js_action .= "\xa\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\40\40\151\x66\40\x28\151\144\x3d\x3d\x27\x68\x65\x6c\160\137\142\165\147\47\51\173\40"; goto IxZhQ; hd8AV: $ids = Tools::getValue("\157\160\x65\156\137\143\x6d\163\137\147\162\x69\x64", 0); goto h48o0; Qenld: if (!$scModulesInfos["\163\143\160\x64\x66\x63\141\x74\x61\x6c\x6f\x67"]["\x69\156\x73\164\x61\154\154\145\x64"]) { goto HWJ2z; } goto VPKF4; YcnM2: foreach ($sc_tools_list as $tool) { goto G8l5L; TodZi: if (!(file_exists(SC_TOOLS_DIR . $tool . "\x2f\x6d\141\156\115\141\156\x75\x66\x61\143\x74\x75\162\145\162\x50\162\157\x70\x65\162\164\151\145\x73\56\x78\155\154") && ($op = simplexml_load_file(SC_TOOLS_DIR . $tool . "\57\x6d\141\156\115\x61\x6e\x75\146\141\143\x74\165\x72\x65\x72\120\x72\x6f\x70\x65\x72\164\x69\145\x73\56\x78\155\x6c")))) { goto qJ0VI; } goto p_mDj; sAgCY: $pluginOrderProperties["\x54\x6f\157\154\x62\x61\162\x42\x75\x74\x74\x6f\x6e\x73"] .= $op->Property->ToolbarButtons; goto kpOkj; b0ymq: if (!(file_exists(SC_TOOLS_DIR . $tool . "\57\143\x6d\x73\120\x61\x67\x65\120\x72\x6f\x70\145\162\164\x69\x65\x73\56\x78\155\x6c") && ($op = simplexml_load_file(SC_TOOLS_DIR . $tool . "\x2f\x63\x6d\163\120\141\x67\145\x50\162\x6f\160\145\162\164\151\145\163\56\x78\155\154")))) { goto XXZcZ; } goto MOTHj; hoSDw: $pluginCmsProperties["\110\151\144\145\x54\x6f\x6f\154\142\x61\x72\x42\165\164\x74\157\156\163"] .= $op->Property->HideToolbarButtons; goto bB2KY; RKp81: nLwCi: goto ljluJ; hxq7x: $pluginManufacturerProperties["\x54\157\157\x6c\x62\x61\162\x53\x74\141\x74\x65\x41\143\164\x69\157\156\163"] .= $op->Property->ToolbarStateActions; goto hfpp2; G8l5L: if (!in_array($tool, $scExtensions_toDisabledInScTools)) { goto qJqDB; } goto SLxtW; ylZoW: $pluginOrderProperties["\124\151\164\x6c\145"] .= $op->Property->Title; goto sAgCY; qHDIk: $pluginCustomerProperties["\x54\151\164\154\145"] .= $cp->Property->Title; goto bz6F1; cqAhX: $pluginOrderProperties["\x44\x69\163\x70\154\x61\x79\120\x6c\x75\x67\151\156"] .= $op->Property->DisplayPlugin; goto Px8Xk; bB2KY: $pluginCmsProperties["\144\x6f\x4f\156\103\155\163\x52\x6f\167\x53\x65\154\145\143\x74\145\144"] .= $op->Property->doOnCmsRowSelected; goto gNog0; NqtWM: $pluginOrderProperties["\110\151\144\x65\124\x6f\157\154\142\141\x72\x42\x75\164\x74\x6f\x6e\x73"] .= $op->Property->HideToolbarButtons; goto fpBue; zrB3A: $pluginCmsProperties["\x54\x6f\157\x6c\x62\141\162\x53\164\141\x74\145\x41\143\x74\x69\157\156\x73"] .= $op->Property->ToolbarStateActions; goto hoSDw; fpBue: $pluginOrderProperties["\144\x6f\117\x6e\117\x72\144\x65\162\x52\x6f\167\123\145\154\x65\x63\x74\145\144"] .= $op->Property->doOnOrderRowSelected; goto cqAhX; ltUue: $pluginOrderProperties["\124\x6f\x6f\x6c\x62\141\x72\123\164\141\164\145\101\143\x74\151\x6f\156\x73"] .= $op->Property->ToolbarStateActions; goto NqtWM; FZb3d: $pluginProductProperties["\x44\151\163\x70\154\x61\x79\x50\154\x75\147\x69\x6e"] .= $pp->Property->DisplayPlugin; goto RKp81; qO34k: $pluginManufacturerProperties["\x44\151\x73\160\154\141\171\120\x6c\165\147\151\156"] .= $op->Property->DisplayPlugin; goto nkegM; PAU6r: $pluginProductProperties["\110\151\x64\145\x54\x6f\x6f\x6c\x62\141\162\x42\165\x74\x74\157\156\x73"] .= $pp->Property->HideToolbarButtons; goto ZgXqD; BFplm: $pluginCustomerProperties["\x54\157\157\x6c\142\x61\162\101\143\x74\151\157\x6e\x73"] .= $cp->Property->ToolbarActions; goto FJ70w; nkegM: qJ0VI: goto dsOl4; Oo9e3: $pluginProductProperties["\x54\x6f\x6f\x6c\x62\x61\162\x41\x63\x74\151\157\x6e\163"] .= $pp->Property->ToolbarActions; goto MXRA5; Ortw1: $pluginCustomerProperties["\x44\x69\x73\160\x6c\141\x79\x50\154\x75\147\151\156"] .= $cp->Property->DisplayPlugin; goto rl7Kd; rMMPF: $pluginProductProperties["\124\x69\164\154\x65"] .= $pp->Property->Title; goto ftJ7T; q1JLm: $pluginCmsProperties["\124\157\157\x6c\x62\141\162\x42\x75\x74\x74\157\156\163"] .= $op->Property->ToolbarButtons; goto IYT1v; gNog0: $pluginCmsProperties["\x44\151\163\x70\154\141\x79\120\x6c\165\147\x69\156"] .= $op->Property->DisplayPlugin; goto TMsB0; kpOkj: $pluginOrderProperties["\124\157\x6f\x6c\x62\x61\x72\101\x63\164\151\x6f\x6e\x73"] .= $op->Property->ToolbarActions; goto ltUue; MOTHj: $pluginCmsProperties["\124\151\x74\x6c\145"] .= $op->Property->Title; goto q1JLm; p_mDj: $pluginManufacturerProperties["\x54\151\164\x6c\145"] .= $op->Property->Title; goto N3Rkl; hfpp2: $pluginManufacturerProperties["\x48\151\144\145\x54\x6f\x6f\154\142\x61\x72\102\165\x74\164\x6f\x6e\x73"] .= $op->Property->HideToolbarButtons; goto fiXGu; HF81F: $pluginCustomerProperties["\x48\151\144\x65\x54\x6f\x6f\154\x62\141\x72\102\165\x74\x74\x6f\x6e\x73"] .= $cp->Property->HideToolbarButtons; goto L0XIF; xqldP: if (!(file_exists(SC_TOOLS_DIR . $tool . "\57\x6f\x72\144\x4f\162\x64\145\162\120\x72\157\x70\145\x72\x74\151\145\163\56\x78\x6d\x6c") && ($op = simplexml_load_file(SC_TOOLS_DIR . $tool . "\x2f\157\162\x64\117\x72\144\x65\162\120\x72\x6f\x70\x65\162\164\x69\x65\x73\56\170\155\154")))) { goto Esyj2; } goto ylZoW; bz6F1: $pluginCustomerProperties["\124\157\157\154\142\x61\162\102\x75\164\164\157\156\163"] .= $cp->Property->ToolbarButtons; goto BFplm; rl7Kd: l2bR6: goto xqldP; zxlx5: qJqDB: goto cO1sN; ZgXqD: $pluginProductProperties["\x64\157\117\156\x50\x72\x6f\x64\x75\143\164\x52\x6f\x77\x53\x65\154\145\x63\164\145\x64"] .= $pp->Property->doOnProductRowSelected; goto FZb3d; SLxtW: goto g72qZ; goto zxlx5; Px8Xk: Esyj2: goto b0ymq; LwuuZ: $pluginManufacturerProperties["\124\x6f\157\154\x62\141\162\101\x63\164\x69\x6f\156\163"] .= $op->Property->ToolbarActions; goto hxq7x; IYT1v: $pluginCmsProperties["\x54\x6f\x6f\154\142\x61\162\101\x63\164\151\157\x6e\x73"] .= $op->Property->ToolbarActions; goto zrB3A; ljluJ: if (!(file_exists(SC_TOOLS_DIR . $tool . "\x2f\143\x75\163\103\x75\163\x74\x6f\155\x65\x72\x50\x72\x6f\160\145\x72\164\x69\145\163\x2e\170\155\154") && ($cp = simplexml_load_file(SC_TOOLS_DIR . $tool . "\57\x63\165\163\103\x75\x73\x74\157\155\145\162\120\162\x6f\x70\x65\x72\x74\151\x65\163\56\x78\x6d\154")))) { goto l2bR6; } goto qHDIk; fiXGu: $pluginManufacturerProperties["\x64\157\117\156\115\141\x6e\165\146\141\x63\164\165\x72\145\x72\122\x6f\167\x53\x65\154\145\143\164\145\x64"] .= $op->Property->doOnManufacturerRowSelected; goto qO34k; dsOl4: g72qZ: goto Vx0sD; ftJ7T: $pluginProductProperties["\124\157\x6f\154\x62\x61\162\102\165\164\x74\x6f\x6e\163"] .= $pp->Property->ToolbarButtons; goto Oo9e3; cO1sN: if (!(file_exists(SC_TOOLS_DIR . $tool . "\57\143\141\164\x50\162\x6f\144\165\143\164\x50\162\157\x70\145\162\164\151\145\163\x2e\x78\x6d\154") && ($pp = simplexml_load_file(SC_TOOLS_DIR . $tool . "\x2f\x63\141\x74\x50\x72\157\144\x75\143\x74\120\162\157\160\x65\x72\164\x69\145\163\56\170\155\154")))) { goto nLwCi; } goto rMMPF; L0XIF: $pluginCustomerProperties["\x64\x6f\x4f\156\x43\x75\x73\164\157\x6d\145\162\x52\157\x77\123\145\154\145\x63\x74\x65\144"] .= $cp->Property->doOnCustomerRowSelected; goto Ortw1; N3Rkl: $pluginManufacturerProperties["\x54\x6f\157\154\142\x61\162\x42\165\x74\164\x6f\x6e\163"] .= $op->Property->ToolbarButtons; goto LwuuZ; TMsB0: XXZcZ: goto TodZi; FJ70w: $pluginCustomerProperties["\x54\x6f\x6f\x6c\x62\141\x72\123\x74\141\x74\145\101\143\x74\x69\157\x6e\163"] .= $cp->Property->ToolbarStateActions; goto HF81F; MXRA5: $pluginProductProperties["\x54\157\157\x6c\142\x61\162\123\x74\x61\164\x65\101\x63\164\151\x6f\x6e\x73"] .= $pp->Property->ToolbarStateActions; goto PAU6r; Vx0sD: } goto BWb11; m32Al: $menu_js_action .= "\40\x7d\xa\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\40\40\40\x20\151\x66\x20\x28\151\144\x3d\x3d\x27\x77\151\x6e\137\x67\x72\x69\144\163\x5f\145\x64\151\164\157\x72\x27\51\173\12\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\x69\x66\40\50\41\144\x68\x78\x57\x69\x6e\163\56\151\x73\127\x69\x6e\x64\157\167\50\47\164\157\x6f\154\163\123\x43\x47\162\x69\144\163\x45\x64\151\x74\157\162\47\x29\51\12\x20\40\x20\40\x20\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\x20\40\40\x7b\xa\40\x20\40\x20\40\x20\x20\40\40\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\40\x74\157\x6f\x6c\x73\x53\103\x47\x72\151\144\x73\105\144\151\164\157\162\40\x3d\x20\144\x68\170\x57\x69\156\163\x2e\143\162\145\141\x74\145\x57\151\156\x64\157\x77\50\x27\x74\x6f\157\x6c\163\x53\x43\107\x72\x69\144\x73\x45\144\151\164\157\x72\47\x2c\x20\65\60\54\x20\x35\x30\54\40\44\50\167\151\x6e\144\157\167\51\56\167\151\x64\164\x68\x28\x29\55\61\x30\60\x2c\x20\44\x28\167\x69\156\x64\157\x77\51\x2e\150\145\151\x67\x68\164\50\x29\55\x31\60\60\x29\73\xa\x20\40\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\40\x20\164\x6f\x6f\154\163\123\x43\x47\x72\151\x64\x73\105\x64\151\x74\x6f\162\56\x73\x65\x74\x54\145\x78\x74\x28\47" . _l("\x49\156\164\145\x72\146\141\143\145\40\x63\x75\x73\164\x6f\155\151\x7a\x61\x74\x69\157\156", 1) . "\x27\x29\73\xa\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\40\40\40\40\40\x20\40\40\40\x20\40\40\164\x6f\157\x6c\x73\x53\x43\107\x72\x69\x64\x73\105\x64\x69\164\157\x72\56\141\x74\164\141\x63\x68\x45\166\x65\156\x74\x28\x27\x6f\156\x43\154\x6f\163\145\47\54\x20\x66\x75\x6e\x63\164\151\x6f\x6e\50\167\151\156\x29\173\xa\40\40\40\40\40\40\40\40\x20\40\x20\x20\40\40\40\40\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x74\x6f\157\154\163\123\x43\x47\162\151\144\x73\x45\x64\151\164\157\x72\x2e\150\151\x64\x65\50\51\73\xa\40\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\162\x65\x74\x75\x72\156\x20\146\141\154\x73\x65\73\12\x20\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\175\x29\73\xa\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x24\56\x67\x65\x74\x28\x27\x69\156\x64\x65\170\x2e\160\x68\x70\77\x61\x6a\x61\x78\x3d\x31\x26\141\143\164\x3d\x61\154\x6c\x5f\167\151\156\x2d\x67\162\151\x64\163\x65\x64\151\164\157\x72\x5f\x69\156\x69\164\47\x2c\146\165\x6e\143\164\x69\157\156\x28\x64\x61\x74\141\51\173\xa\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x24\x28\47\43\x6a\163\x45\170\145\x63\165\x74\145\47\51\x2e\150\x74\x6d\x6c\x28\144\x61\x74\141\x29\x3b\12\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\175\x29\73\xa\12\40\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\40\40\x20\40\175\145\x6c\163\145\x7b\xa\40\40\40\x20\x20\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\44\56\x67\145\x74\x28\x27\151\x6e\x64\x65\x78\x2e\x70\x68\x70\x3f\141\x6a\141\170\75\61\46\x61\143\164\75\141\154\x6c\137\x77\151\x6e\x2d\x67\x72\151\144\x73\145\x64\x69\x74\157\x72\x5f\x69\x6e\151\164\47\x2c\146\165\x6e\143\x74\151\157\x6e\x28\x64\141\x74\141\51\x7b\xa\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\44\50\47\43\152\163\x45\x78\x65\143\165\164\x65\x27\x29\56\x68\x74\155\154\50\x64\x61\x74\x61\51\73\12\40\40\40\40\40\40\40\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\40\40\40\40\x20\x7d\x29\x3b\xa\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\40\40\40\40\40\164\x6f\157\x6c\163\123\x43\x47\162\x69\144\163\105\x64\x69\x74\x6f\162\56\x73\x68\x6f\x77\50\51\73\12\40\x20\40\x20\40\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\40\175\xa\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\175\12\40\40\40\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\x20\x69\x66\x20\50\x69\144\75\x3d\x27\167\x69\156\137\x74\145\162\155\151\x6e\141\164\157\162\47\51\x7b\12\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\x20\151\x66\x20\50\41\144\150\170\x57\151\156\163\x2e\151\163\x57\151\x6e\144\x6f\167\x28\47\x74\x6f\157\x6c\x73\x54\x65\x72\x6d\151\x6e\141\x74\157\162\x27\51\x29\12\40\40\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\173\12\x20\x20\40\40\x20\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x74\157\x6f\x6c\x73\x54\x65\x72\x6d\151\x6e\141\x74\157\x72\40\75\x20\144\150\x78\x57\151\x6e\x73\56\143\x72\145\x61\164\x65\x57\x69\x6e\x64\x6f\167\x28\x27\x74\x6f\x6f\154\x73\x54\145\x72\155\x69\156\x61\164\157\162\47\x2c\x20\65\x30\x2c\x20\65\x30\54\40\x24\50\167\x69\x6e\x64\x6f\x77\51\x2e\x77\151\144\164\x68\x28\x29\55\x31\x30\x30\54\40\44\x28\x77\x69\x6e\144\157\167\x29\x2e\150\x65\x69\x67\150\x74\x28\x29\x2d\61\x30\x30\51\x3b\12\40\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\x20\40\x20\164\157\157\154\x73\124\145\x72\155\151\x6e\141\164\x6f\x72\x2e\x73\x65\164\124\x65\x78\164\x28\47" . _l("\x53\150\x6f\160\x20\143\154\145\141\x6e\x69\156\x67\40\141\x6e\144\40\x6f\160\164\x69\155\x69\172\141\164\151\157\156", 1) . "\x27\51\73\xa\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\40\164\157\157\x6c\x73\124\145\x72\155\x69\156\141\x74\x6f\162\56\141\164\x74\x61\143\150\x45\166\x65\156\164\50\47\x6f\156\103\x6c\157\163\x65\47\x2c\40\x66\165\156\x63\164\x69\157\x6e\50\167\151\156\51\173\12\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\164\157\x6f\154\163\124\x65\162\x6d\151\x6e\141\164\157\162\56\x68\x69\144\145\x28\51\x3b\xa\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\40\40\40\40\x20\x20\40\x20\40\40\40\x20\x20\x72\145\x74\x75\162\156\40\x66\141\x6c\x73\145\73\xa\x20\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x7d\x29\x3b\xa\40\40\x20\40\40\40\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\44\56\x67\145\164\x28\47\x69\x6e\144\x65\x78\56\160\x68\160\x3f\x61\x6a\141\170\x3d\61\x26\x61\x63\x74\x3d\x61\154\x6c\x5f\x77\x69\156\55\164\x65\x72\x6d\x69\156\x61\x74\157\x72\x5f\151\156\151\164\x27\x2c\x66\x75\156\143\x74\x69\x6f\156\50\144\x61\x74\141\x29\x7b\xa\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\40\44\x28\47\43\152\x73\x45\170\x65\x63\165\x74\x65\47\x29\x2e\x68\164\x6d\x6c\50\144\x61\x74\x61\51\x3b\xa\40\x20\x20\40\40\40\40\40\40\x20\40\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\40\x20\40\40\175\51\73\xa\xa\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x7d\145\154\x73\145\173\xa\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x20\44\56\147\x65\164\50\47\x69\156\x64\145\x78\x2e\160\150\160\x3f\141\152\141\170\x3d\61\x26\x61\143\x74\x3d\x61\x6c\x6c\137\167\151\156\x2d\x74\145\162\155\151\x6e\x61\164\157\162\137\x69\156\x69\164\x27\54\x66\165\156\x63\x74\151\157\x6e\50\144\141\x74\141\x29\173\12\x20\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\40\40\40\x24\x28\47\x23\152\163\105\170\145\143\x75\x74\x65\x27\x29\x2e\150\x74\155\x6c\x28\x64\141\164\x61\51\x3b\xa\40\40\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x7d\x29\73\xa\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\40\40\x74\157\157\154\x73\124\145\x72\x6d\x69\x6e\141\164\157\162\56\x73\150\x6f\167\50\x29\73\12\x20\40\40\40\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\x7d\xa\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\175\xa\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\x69\x66\40\x28\151\144\x3d\75\47\146\x69\x78\155\x79\x70\x72\145\163\x74\x61\163\x68\x6f\160\x27\51\173\12\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\x20\x20\x69\146\40\x28\41\144\x68\170\x57\151\x6e\163\x2e\151\x73\x57\x69\x6e\144\157\167\x28\47\x77\x46\x69\170\x6d\x79\x70\162\x65\x73\x74\x61\x73\x68\157\x70\47\x29\51\xa\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\x7b\xa\40\x20\40\40\x20\40\40\40\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\40\40\x77\106\x69\170\155\171\x70\162\145\x73\164\141\x73\150\157\x70\40\75\x20\144\150\170\x57\151\x6e\163\x2e\x63\162\x65\141\164\x65\127\x69\x6e\x64\157\x77\50\47\167\106\x69\170\155\171\x70\x72\x65\163\x74\141\163\150\x6f\x70\x27\54\40\65\60\x2c\x20\65\60\x2c\x20\x24\50\167\151\156\x64\157\x77\x29\x2e\167\x69\x64\164\x68\50\x29\55\61\x30\60\54\x20\x24\x28\167\151\x6e\144\x6f\167\x29\x2e\150\x65\x69\x67\150\x74\x28\51\x2d\61\60\60\51\73\12\40\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\40\40\40\x20\x20\40\40\40\40\x77\106\x69\x78\155\171\160\x72\x65\163\x74\x61\x73\x68\x6f\160\x2e\163\x65\164\x54\145\x78\x74\50\x27\106\151\x78\x4d\x79\120\x72\145\163\164\x61\x73\150\157\x70\47\51\x3b\12\x20\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\x20\40\40\40\40\x20\x20\x20\x20\x20\40\x77\x46\x69\170\155\x79\160\162\145\163\164\141\163\150\x6f\160\56\141\x74\164\141\x63\150\x45\x76\145\156\164\x28\x27\x6f\x6e\x43\x6c\x6f\163\145\x27\x2c\x20\x66\165\156\143\x74\x69\x6f\x6e\50\167\x69\x6e\x29\173\12\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\x20\40\x20\40\x20\40\40\x20\167\x46\x69\170\155\171\x70\162\x65\x73\x74\141\163\x68\x6f\160\56\x68\151\144\x65\x28\x29\73\12\40\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\40\40\40\x20\40\40\x72\145\164\165\x72\156\x20\146\141\x6c\163\x65\x3b\xa\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\175\51\x3b\xa\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\44\56\x67\x65\164\x28\x27\151\156\144\145\170\x2e\x70\150\x70\77\x61\x6a\x61\170\x3d\61\46\x61\x63\x74\x3d\x61\154\x6c\x5f\x77\x69\x6e\x2d\146\x69\x78\x6d\171\x70\162\145\163\x74\x61\163\x68\157\160\137\x69\156\x69\164\x27\54\146\165\x6e\x63\x74\x69\157\156\50\144\x61\164\x61\x29\173\12\x20\x20\40\x20\40\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\44\x28\x27\x23\152\x73\105\170\145\x63\x75\x74\145\47\x29\56\150\164\155\x6c\50\x64\x61\164\x61\51\73\12\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\40\40\40\x7d\51\73\xa\12\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\175\x65\154\x73\x65\173\xa\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\40\44\x2e\x67\145\x74\x28\x27\151\x6e\x64\x65\x78\x2e\x70\x68\x70\x3f\141\x6a\x61\170\x3d\61\46\x61\x63\164\75\141\x6c\x6c\x5f\167\151\x6e\55\x66\151\x78\x6d\x79\x70\162\145\163\x74\141\x73\x68\157\x70\137\151\156\151\164\47\x2c\x66\x75\156\x63\164\x69\x6f\x6e\50\x64\141\x74\x61\51\x7b\xa\40\40\x20\x20\x20\40\40\40\x20\40\40\40\x20\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\44\x28\47\43\x6a\163\x45\x78\145\143\x75\x74\145\x27\x29\x2e\150\164\155\154\x28\144\x61\164\141\x29\73\12\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\x20\40\40\40\x20\40\x20\x7d\x29\x3b\12\x20\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\40\167\106\x69\x78\x6d\171\x70\x72\145\x73\x74\x61\x73\150\x6f\160\x2e\163\150\157\x77\50\x29\x3b\12\40\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\175\xa\x20\40\x20\40\40\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x7d"; goto wmdLM; mM5Fy: $menu_js_action .= "\xa\40\40\x20\40\x69\x66\50\x53\x43\x5f\120\x41\107\x45\x3d\x3d\x27\143\165\x73\137\x74\162\x65\x65\x27\x29\xa\40\x20\x20\40\173\12\40\x20\x20\40\x20\x20\x20\40\x69\x66\x20\x28\143\x61\x73\123\x74\x61\x74\x65\56\x63\164\x72\x6c\x20\x3d\x3d\40\x74\x72\x75\145\x29\40\173\xa\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x77\151\x6e\x64\157\167\x2e\x6f\x70\x65\x6e\50\47\151\156\x64\145\170\x2e\160\x68\x70\x3f\160\141\147\x65\75\x63\x75\x73\x5f\x74\x72\145\145\x27\x29\x3b\xa\x20\x20\x20\x20\40\40\40\x20\x7d\xa\x20\x20\40\40\175\x65\154\163\x65\x7b\12\40\x20\40\40\40\40\x20\x20\151\146\x20\x28\143\141\x73\x53\164\x61\164\145\56\143\x74\x72\154\x20\x3d\75\x20\x74\x72\x75\x65\51\40\173\xa\40\x20\40\x20\40\40\40\40\x20\40\x20\40\x77\151\156\x64\157\x77\x2e\x6f\160\145\156\x28\47\151\156\x64\x65\x78\56\160\150\160\77\160\x61\x67\x65\75\143\x75\x73\137\164\x72\145\145\47\x29\73\xa\x20\40\x20\x20\40\x20\x20\40\175\x20\x65\x6c\163\x65\40\x7b\xa\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\144\x6f\143\x75\x6d\145\x6e\164\56\154\x6f\x63\141\x74\x69\x6f\x6e\75\x27\x69\x6e\x64\x65\x78\56\x70\150\160\x3f\x70\x61\x67\145\75\x63\x75\163\137\x74\x72\145\x65\47\73\xa\x20\40\40\x20\x20\x20\40\x20\x7d\12\x20\x20\40\x20\175"; goto GtQua; exFsa: if (!(SC_ExportOrders_ACTIVE == 1 && _r("\115\x45\x4e\x55\x5f\x4f\x52\x44\137\105\130\120\117\122\124\117\x52\104\x45\122\123"))) { goto Qjien; } goto PmCRl; auOLt: $menu_js_action .= "\x20\x69\x66\x20\50\x21\x64\150\170\x57\x69\156\163\56\151\x73\127\x69\x6e\144\157\167\x28\x27\167\111\155\160\157\162\x74\47\x29\51\x20\x7b\xa\40\40\40\40\40\40\40\40\x20\x20\x20\x20\40\40\x20\x20\40\40\40\x20\x20\40\40\40\x20\x77\111\155\x70\157\162\x74\x20\x3d\x20\144\x68\170\x57\x69\156\163\56\143\162\x65\x61\x74\145\127\151\156\x64\157\167\x28\x27\167\111\155\x70\x6f\162\164\x27\x2c\x20\65\60\x2c\x20\x35\60\54\x20\61\61\60\60\x2c\x20\x24\x28\x77\x69\156\144\x6f\x77\51\56\x68\x65\151\147\150\164\x28\51\55\x37\65\x29\x3b\12\x20\x20\x20\x20\40\40\x20\x20\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\x20\40\40\x20\167\111\x6d\x70\x6f\x72\x74\56\163\x65\164\x54\145\x78\x74\50\x27" . _l("\111\155\160\157\x72\164\x20\55\x20\x42\x61\x63\x6b\165\x70\40\x79\x6f\x75\x72\40\142\141\163\145\x20\x62\x65\x66\157\162\145\40\x61\x6e\171\x20\155\141\x73\163\40\x75\x70\144\x61\164\x65\x21", 1) . "\x27\x29\73\12\x20\x20\40\40\40\40\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\44\x2e\147\x65\164\50\47\x69\x6e\x64\x65\170\x2e\160\x68\160\77\x61\152\x61\x78\75\61\x26\x61\x63\164\75\143\141\x74\x5f\167\x69\156\55\x69\x6d\x70\157\x72\164\x5f\151\156\151\164\x27\54\146\x75\x6e\143\x74\x69\x6f\x6e\x28\x64\141\x74\x61\51\x7b\12\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\40\44\50\47\x23\x6a\163\105\x78\x65\x63\x75\x74\x65\x27\51\56\150\x74\155\154\50\144\141\x74\141\x29\x3b\12\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\x20\175\x29\73\xa\x20\40\x20\40\40\40\40\40\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\40\40\x77\111\x6d\160\157\162\164\56\141\x74\164\141\143\x68\x45\x76\145\x6e\x74\50\x27\157\156\x43\154\x6f\163\x65\47\x2c\40\x66\165\156\143\164\151\x6f\x6e\x28\167\x69\x6e\51\173\12\40\40\40\40\40\40\40\40\40\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\x20\x77\x49\x6d\160\x6f\162\x74\x2e\x68\x69\x64\145\x28\51\73\xa\40\40\x20\40\40\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\162\145\164\165\162\x6e\x20\x66\x61\154\x73\145\73\12\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\x20\175\x29\73\12\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\175\145\154\163\x65\x7b\12\x20\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\x24\56\147\x65\x74\50\47\151\x6e\144\145\x78\56\160\x68\160\x3f\x61\152\141\x78\75\61\x26\x61\x63\x74\x3d\x63\141\164\x5f\167\x69\x6e\55\151\x6d\x70\x6f\162\x74\x5f\x69\156\x69\164\x27\x2c\x66\x75\x6e\143\164\x69\157\156\50\x64\x61\164\141\x29\173\12\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\44\50\47\x23\x6a\x73\105\170\x65\x63\165\164\145\x27\x29\x2e\150\164\155\x6c\50\144\141\164\141\51\73\xa\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\40\40\x20\40\40\x20\x7d\51\73\xa\40\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\167\111\155\x70\157\162\164\56\163\x68\157\167\x28\51\x3b\12\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\x20\x20\x20\40\175\12\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\40\x20"; goto NMKw9; fAWur: $menu_js_action .= "\xa\x20\40\x20\40\40\40\x20\40\x20\40\40\40\40\40\x20\40\x7d\12\x20\40\x20\40\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\x69\x66\x20\x28\x69\x64\75\75\47\155\x61\x72\137\x73\145\147\155\x65\x6e\x74\x61\164\x69\x6f\156\47\x20\x7c\x7c\x20\151\x64\x3d\x3d\47\x74\157\x6f\x5f\x73\145\147\x6d\145\156\x74\141\x74\x69\157\156\47\51\x7b\xa\x20\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x69\146\40\x28\x21\x64\150\x78\x57\x69\156\x73\x2e\x69\x73\127\x69\x6e\x64\157\x77\50\47\x74\157\157\x6c\x73\x53\145\147\x6d\x65\x6e\164\x61\x74\x69\x6f\x6e\x57\151\156\x64\157\167\47\51\51\xa\40\40\40\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\173\12\40\40\40\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\164\x6f\x6f\x6c\x73\123\x65\x67\155\x65\x6e\x74\141\164\151\157\x6e\x57\151\x6e\144\157\x77\40\75\x20\144\150\170\x57\151\156\x73\x2e\143\162\x65\x61\164\x65\127\151\156\x64\x6f\167\x28\47\x74\x6f\x6f\154\x73\123\145\x67\155\x65\x6e\164\141\164\x69\157\x6e\127\x69\156\x64\157\x77\47\x2c\x20\65\60\54\40\65\x30\x2c\x20\x24\50\x77\151\x6e\144\157\167\51\56\x77\151\x64\x74\x68\50\x29\55\x31\60\60\x2c\x20\44\50\x77\151\156\144\x6f\x77\x29\x2e\x68\145\x69\147\x68\164\50\51\55\x31\60\x30\x29\73\12\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\40\40\40\x20\x20\40\40\x74\157\157\x6c\163\123\145\147\155\x65\156\x74\x61\x74\151\x6f\x6e\x57\151\156\x64\157\x77\56\x73\x65\x74\124\x65\170\x74\x28\47" . _l("\123\x65\x67\x6d\x65\156\164\x61\164\x69\157\x6e", 1) . "\x27\51\x3b\12\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\40\40\x74\157\157\x6c\163\x53\145\x67\155\x65\156\x74\141\164\151\x6f\156\127\x69\x6e\x64\157\167\x2e\x61\164\x74\x61\x63\150\x45\166\x65\x6e\164\50\x27\x6f\156\x43\154\157\163\145\47\x2c\x20\x66\x75\x6e\143\164\151\157\156\x28\x77\151\156\51\x7b\xa\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\x20\40\40\x20\164\157\157\154\x73\123\x65\x67\x6d\145\x6e\164\x61\x74\x69\x6f\156\x57\151\x6e\x64\157\x77\x2e\x68\151\x64\145\x28\x29\73\12\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\40\40\x20\40\40\40\40\x20\40\162\145\164\x75\x72\156\x20\x66\141\x6c\x73\x65\x3b\xa\x20\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\175\x29\x3b\xa\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\x24\x2e\x67\x65\x74\50\47\151\x6e\144\145\x78\x2e\x70\150\x70\77\141\x6a\141\x78\x3d\x31\x26\141\143\x74\x3d\x61\x6c\x6c\137\167\151\156\x2d\x73\x65\x67\x6d\x65\x6e\164\141\164\151\x6f\156\137\151\x6e\x69\x74\x27\x2c\x66\165\156\143\164\x69\157\x6e\x28\144\141\164\141\51\x7b\12\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\40\40\x20\x20\x20\40\40\x20\40\40\x24\x28\47\43\x6a\163\105\x78\145\x63\165\x74\x65\x27\x29\x2e\150\x74\x6d\154\x28\x64\x61\164\x61\51\x3b\xa\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\40\x20\175\51\x3b\xa\xa\x20\40\40\40\40\40\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\40\175\145\154\163\x65\173\12\40\x20\x20\40\40\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\40\40\x20\44\56\147\x65\x74\50\x27\x69\x6e\x64\145\x78\x2e\160\x68\x70\77\x61\152\x61\170\x3d\61\x26\141\143\x74\x3d\141\x6c\x6c\137\167\x69\x6e\55\x73\145\147\155\145\156\164\141\164\x69\157\x6e\137\151\x6e\x69\164\x27\x2c\146\165\156\143\x74\151\157\156\50\144\141\x74\141\51\x7b\xa\40\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\40\40\x20\x24\x28\47\x23\152\163\105\x78\145\143\165\164\145\x27\x29\56\150\164\155\154\50\x64\x61\x74\x61\x29\x3b\xa\40\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\x20\40\40\40\40\40\x20\40\40\40\x20\40\x20\x20\x20\x7d\51\x3b\xa\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x74\x6f\x6f\x6c\x73\x53\145\x67\x6d\x65\156\164\141\x74\151\x6f\156\x57\x69\x6e\x64\x6f\x77\x2e\163\150\157\x77\x28\51\73\xa\40\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\x7d\12\x20\40\x20\40\40\x20\40\40\x20\40\40\40\x20\40\40\x20\175\xa\x20\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\40\151\x66\40\50\151\x64\75\75\x27\x74\145\141\163\145\x72\137\163\x65\x67\155\x65\x6e\164\141\164\x69\x6f\156\x5f\x72\145\141\144\47\x20\174\174\40\x69\144\x3d\75\47\x74\157\157\137\164\x65\141\x73\145\x72\x5f\163\145\147\x6d\145\x6e\164\x61\x74\x69\157\x6e\x5f\162\145\141\144\47\51\x7b\xa\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x69\x66\40\50\41\x64\150\170\127\151\156\163\56\x69\x73\x57\x69\156\x64\x6f\x77\x28\x27\x77\x53\x65\x67\x54\x72\151\x61\x6c\x57\x69\x6e\144\157\x77\x27\51\x29\12\x20\40\x20\40\40\x20\40\40\x20\40\40\40\40\40\x20\40\x20\40\x20\40\x7b\12\40\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\167\123\145\147\x54\162\151\141\154\127\x69\x6e\x64\157\167\40\x3d\x20\x64\150\x78\127\151\156\x73\x2e\x63\162\145\141\164\x65\x57\x69\156\x64\x6f\x77\50\47\x77\123\x65\x67\124\x72\151\141\x6c\x57\151\x6e\144\157\167\x27\54\x20\x35\60\x2c\x20\x35\x30\x2c\40\66\67\60\54\x20\x35\x35\x30\x29\73\xa\40\40\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\40\167\x53\145\147\x54\162\151\x61\x6c\127\x69\x6e\144\x6f\x77\x2e\163\145\x74\124\x65\170\x74\x28\x27" . _l("\123\145\x67\155\x65\x6e\x74\163\40\155\141\156\141\x67\145\155\145\x6e\164", 1) . "\47\51\73\12\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\175\12\40\x20\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x77\x53\145\x67\124\x72\x69\141\154\x57\x69\x6e\x64\x6f\167\x2e\141\x74\x74\141\x63\x68\125\122\114\50\47\x69\x6e\x64\x65\x78\x2e\x70\x68\160\77\x61\152\x61\x78\75\61\46\x61\143\x74\75\x61\x6c\154\x5f\x67\x65\x74\164\162\151\141\x6c\164\151\x6d\x65\46\x69\x64\137\154\x61\x6e\x67\75\47\x2b\x53\103\137\111\x44\x5f\114\101\x4e\x47\53\47\x26\x69\164\x65\155\x3d\x73\145\x67\155\145\156\164\x61\x74\x69\157\156\47\x29\x3b\xa\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x7d"; goto t4tXV; u5Ty4: $pdt_toolbar_js_action .= "\40\x6f\160\x65\x6e\137\x73\165\x70\137\147\x72\151\x64\x20\x3d\x20\146\x61\x6c\x73\145\73\40"; goto aJf4k; zwspu: nPHlr: goto QWmiD; qyFrs: if (!empty($ids)) { goto z78bw; } goto u5Ty4; wzEuv: $pluginOrderProperties["\x54\x69\x74\x6c\x65"] = trim(trim($pluginOrderProperties["\124\x69\164\154\x65"]), "\54"); goto gqFya; guGkg: XyJIp: goto oHdI2; PhsY_: $pdt_toolbar_js_action .= "\12\40\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x6f\x70\145\x6e\137\x6d\x61\156\x5f\x67\162\151\144\x20\x3d\40\x74\162\x75\145\73\12\x20\40\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\144\x69\x73\160\154\x61\171\137\155\x61\156\137\141\x66\164\x65\x72\x5f\143\141\164\x5f\163\x65\154\145\143\164\40\75\40\x66\141\154\163\145\x3b\xa\40\x20\40\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\x20\x20\x64\151\x73\160\154\x61\171\137\155\x61\x6e\x5f\141\x66\164\145\162\137\x73\x65\x6c\145\x63\x74\137\x76\x69\145\x77\x20\75\x20\146\141\154\x73\145\73\12\40\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\157\x70\x65\156\137\155\x61\x6e\x5f\151\144\x5f\x63\x61\164\40\75\40" . $tmps[0] . "\x3b\12\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x6f\x70\x65\x6e\137\x6d\141\156\137\x69\144\x5f\x70\141\x67\145\x20\x3d\40" . $tmps[1] . "\73\xa\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\157\160\x65\156\x5f\x6d\x61\156\137\x69\x64\x5f\141\164\x74\x72\40\x3d\40" . (!empty($tmps[2]) ? $tmps[2] : "\x30") . "\73\12\12\40\40\40\x20\40\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\155\141\156\x5f\164\x72\x65\x65\56\157\160\145\156\x49\164\x65\155\x28\157\x70\145\x6e\137\155\x61\156\137\x69\144\137\x63\141\x74\x29\73\xa\40\40\x20\x20\40\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\155\x61\156\x5f\x74\162\145\145\x2e\163\145\x6c\145\x63\x74\111\x74\145\x6d\x28\x6f\160\x65\156\x5f\x6d\x61\x6e\137\151\144\x5f\143\x61\164\x2c\146\x61\x6c\x73\x65\51\73\xa\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\x20\40\40\40\40\x20\40\40\155\141\x6e\163\x65\x6c\x65\x63\164\151\157\x6e\x3d\157\x70\x65\156\x5f\x6d\x61\156\x5f\x69\144\x5f\x63\x61\x74\x3b\x20"; goto g9RG6; pvpiA: if (!($pluginProductProperties["\x54\151\x74\154\x65"] != '')) { goto axCnT; } goto hEGjG; hBCAv: $menu_js_action .= "\x20\x7d\12\x20\40\x20\x20\40\40\x20\x20\151\146\50\151\x64\75\x3d\47\157\162\x64\137\143\141\162\164\162\x75\154\x65\x73\x27\51\40\x7b\xa\x20\40\40\x20\40\40\x20\40\40\x20\x20\x20\x69\x66\x20\50\x21\x64\150\x78\x57\151\x6e\163\x2e\151\x73\127\x69\x6e\144\157\167\x28\47\x77\x43\141\x72\x74\x52\165\x6c\x65\163\x27\51\x29\x20\x7b\12\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\x20\167\103\141\x72\164\122\x75\154\x65\163\40\x3d\x20\144\x68\170\127\151\156\x73\56\x63\x72\145\141\164\145\x57\151\x6e\x64\x6f\167\50\47\x77\103\x61\x72\x74\122\x75\x6c\145\163\47\x2c\40\60\x2c\40\x32\x38\54\x20\x24\50\167\151\156\x64\x6f\167\51\56\x77\151\144\x74\150\50\51\54\x20\x24\50\x77\151\x6e\x64\157\167\x29\x2e\x68\x65\x69\x67\150\164\50\x29\x2d\x32\x38\x29\x3b\xa\x20\40\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\40\167\x43\x61\162\x74\122\x75\154\x65\163\56\x73\x65\x74\124\x65\170\164\x28\x27" . _l("\104\x69\x73\143\x6f\x75\156\x74\40\166\157\x75\143\x68\145\162\x73\x20\50\x63\x61\162\164\40\162\165\x6c\145\163\51", 1) . "\47\x29\x3b\xa\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\44\x2e\x67\145\164\x28\47\151\156\x64\145\170\x2e\160\x68\160\77\141\152\x61\x78\x3d\61\x26\141\143\164\x3d\157\x72\x64\x5f\x77\x69\156\x2d\143\x61\162\x74\x72\x75\x6c\x65\163\137\x69\156\x69\x74\x27\54\x66\x75\156\x63\164\151\157\x6e\x28\x64\x61\x74\141\x29\173\xa\40\40\40\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\40\40\x20\40\x24\x28\x27\x23\x6a\x73\x45\170\x65\x63\x75\164\x65\x27\51\x2e\x68\164\155\x6c\x28\144\x61\x74\141\x29\x3b\12\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\x7d\51\x3b\xa\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\40\167\103\141\x72\x74\122\x75\154\x65\163\56\x61\164\164\x61\143\150\105\166\145\156\x74\x28\x27\x6f\156\103\x6c\x6f\x73\145\47\x2c\x20\x66\165\x6e\143\x74\x69\157\x6e\50\x77\151\156\x29\x7b\12\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\40\40\x20\40\x20\x20\40\40\40\167\103\x61\162\164\x52\x75\x6c\x65\x73\x2e\150\151\x64\x65\50\x29\x3b\12\40\40\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\40\x20\x72\x65\164\x75\x72\156\x20\146\x61\x6c\163\145\73\xa\40\40\40\x20\x20\40\x20\40\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\x7d\x29\x3b\12\40\x20\x20\40\x20\40\x20\40\40\40\40\40\175\x65\x6c\163\x65\x7b\xa\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x24\x2e\147\x65\164\x28\x27\x69\x6e\x64\145\x78\56\160\x68\x70\77\141\152\141\x78\x3d\61\x26\x61\x63\164\x3d\157\162\144\137\x77\151\156\55\143\x61\x72\164\x72\x75\154\145\x73\x5f\151\156\x69\x74\x27\54\146\165\156\x63\164\x69\157\156\50\x64\x61\164\141\51\x7b\12\x20\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\44\x28\x27\x23\x6a\x73\105\170\x65\x63\x75\164\x65\47\x29\x2e\150\x74\155\x6c\50\144\141\164\x61\51\73\12\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\x7d\x29\x3b\xa\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\167\x43\141\x72\x74\x52\165\154\145\163\56\x73\x68\157\x77\x28\51\73\xa\40\40\x20\40\40\x20\x20\40\x20\40\40\40\x7d\12\x20\40\40\x20\40\40\x20\x20\x7d\xa\40\40\40\x20\x20\x20\40\x20\x69\x66\x28\x69\144\x3d\x3d\47\x6f\x72\144\x5f\163\x74\141\x74\x65\x73\x27\51\40\x7b\12\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\x69\146\40\50\41\144\150\x78\x57\151\156\x73\56\x69\x73\127\151\156\x64\x6f\167\x28\47\167\x4f\x72\x64\145\162\x53\x74\141\164\x65\163\x27\x29\51\x20\173\12\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\x20\167\117\162\x64\x65\x72\x53\164\141\164\145\x73\40\x3d\40\x64\150\170\x57\151\156\x73\x2e\x63\x72\x65\141\164\x65\127\x69\156\144\x6f\x77\50\47\x77\x4f\x72\144\145\162\123\x74\x61\164\145\x73\47\x2c\x20\x30\54\40\62\70\54\x20\44\50\167\x69\156\x64\157\x77\x29\56\x77\151\144\x74\150\50\51\57\61\56\61\x2c\x20\x24\x28\x77\151\156\144\x6f\x77\x29\56\x68\145\151\x67\150\x74\50\51\57\x31\56\61\51\x3b\12\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x77\x4f\162\x64\145\162\x53\164\141\x74\x65\163\56\143\145\x6e\164\145\x72\x28\x29\73\xa\40\40\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\167\117\x72\x64\145\162\123\164\x61\164\x65\163\56\x73\145\164\x54\x65\x78\164\50\47" . _l("\115\141\156\141\147\x65\40\x6f\162\144\x65\x72\40\x73\x74\141\x74\x75\x73\x65\163", 1) . "\x27\x29\73\xa\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\x20\44\x2e\147\145\x74\50\x27\151\x6e\144\x65\170\56\160\150\x70\x3f\x61\x6a\141\170\x3d\61\46\x61\143\164\75\x6f\x72\144\x5f\167\x69\156\55\x73\164\x61\x74\145\163\137\151\156\151\164\x27\54\x66\x75\x6e\x63\x74\151\x6f\x6e\50\144\141\164\x61\x29\173\12\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x24\50\x27\x23\x6a\163\105\170\x65\143\x75\x74\145\x27\x29\56\150\164\x6d\154\x28\x64\141\164\141\51\x3b\12\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\40\175\x29\x3b\xa\40\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\40\40\40\x77\117\162\144\145\162\123\x74\x61\164\145\163\56\141\x74\x74\x61\143\150\x45\x76\x65\156\x74\50\x27\x6f\x6e\x43\154\157\163\x65\x27\54\40\x66\x75\156\x63\164\x69\157\156\50\x77\151\156\51\x7b\12\40\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\40\40\40\40\x20\40\167\x4f\x72\x64\x65\162\123\164\x61\164\145\x73\x2e\x68\x69\x64\145\x28\51\73\xa\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\x72\145\164\165\162\156\40\x66\x61\x6c\163\x65\x3b\12\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\175\51\x3b\12\40\40\x20\x20\40\x20\40\40\40\x20\40\40\x7d\145\154\x73\x65\173\xa\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x24\x2e\147\x65\164\50\x27\x69\x6e\x64\x65\170\56\x70\x68\x70\x3f\141\x6a\141\170\x3d\x31\x26\141\x63\164\x3d\157\162\144\137\167\x69\156\x2d\x73\164\x61\x74\145\x73\137\x69\156\151\x74\47\54\146\165\156\143\164\151\x6f\x6e\x28\144\141\164\141\51\x7b\xa\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\x20\40\40\40\44\50\47\43\152\x73\105\170\x65\x63\165\x74\145\47\51\56\x68\x74\155\x6c\50\x64\x61\x74\141\x29\73\12\x20\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\x20\x20\x20\40\40\40\x7d\51\x3b\12\x20\40\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\x77\x4f\162\144\x65\162\x53\x74\141\164\x65\163\56\163\x68\157\x77\50\x29\x3b\12\40\40\x20\x20\40\40\40\40\x20\40\x20\40\x7d\xa\40\x20\40\40\x20\40\x20\40\175\xa\40\40\40\40\40\40\x20\x20\x69\x66\50\151\144\75\x3d\47\x6f\162\144\x5f\167\151\x6e\x5f\155\x61\x6b\145\157\x72\x64\x65\162\x27\x29\40\x7b"; goto A5k8T; MMTKd: $menu_js_action .= "\12\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x7d\12\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\x69\x66\40\50\x69\144\75\x3d\47\150\145\154\160\137\x75\160\x64\141\164\x65\163\47\x20\174\x7c\x20\151\x64\75\75\x27\x68\x65\x6c\x70\x5f\165\x70\x64\x61\x74\x65\163\x32\47\x29\173\12\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x77\151\x6e\x64\x6f\167\x2e\157\160\x65\x6e\x28\x27" . getScExternalLink("\163\165\x70\x70\x6f\162\x74\137\165\x70\x64\141\x74\145\137\x68\x69\163\x74\157\162\171") . "\47\51\73\xa\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\175\12\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\151\146\x20\50\151\x64\x3d\75\x27\166\x65\x72\x73\151\157\x6e\x27\x20\x7c\174\x20\151\144\75\75\47\x76\x65\x72\x73\x69\x6f\x6e\62\x27\51\173\xa\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x69\x66\x20\50\41\144\x68\170\127\151\x6e\x73\56\151\163\x57\x69\156\144\157\x77\50\47\167\x43\x6f\x72\145\125\x70\x64\x61\164\x65\47\51\51\12\x20\40\40\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\x7b\xa\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\40\x77\x43\x6f\162\145\125\x70\144\141\x74\145\40\75\40\x64\x68\170\x57\151\156\x73\x2e\x63\x72\145\x61\x74\145\x57\x69\156\144\157\x77\50\x27\167\x43\x6f\162\145\125\160\144\141\164\x65\47\x2c\40\65\60\54\40\x35\x30\x2c\40\71\60\x30\x2c\40\x24\50\x77\151\x6e\x64\x6f\167\x29\56\150\145\x69\147\150\x74\50\51\55\67\65\51\x3b\xa\40\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\x20\x20\40\40\40\x20\x77\x43\x6f\x72\x65\x55\160\x64\141\x74\145\x2e\163\145\x74\124\145\170\164\x28\47" . _l("\x53\164\x6f\x72\145\40\x43\157\155\x6d\141\156\x64\145\162\x20\x75\x70\x64\x61\164\145", 1) . "\x27\x29\73\12\40\40\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\x77\x43\157\x72\x65\x55\160\144\141\x74\145\56\x61\164\164\141\143\x68\x55\x52\114\50\x27\151\x6e\x64\x65\x78\56\x70\x68\x70\x3f\141\152\141\x78\x3d\61\x26\141\143\164\75\x63\x6f\x72\145\x5f\x75\160\x64\x61\x74\x65\x27\x29\x3b\12\40\x20\40\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x77\x43\157\162\x65\x55\x70\x64\141\164\145\56\x73\x65\164\115\157\144\141\154\x28\x74\162\x75\x65\51\73\xa\40\x20\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\175\x65\154\163\x65\173\xa\40\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\40\40\40\40\x20\40\x20\x20\x77\103\157\162\x65\125\x70\x64\x61\x74\145\x2e\x73\150\x6f\x77\x28\51\x3b\xa\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\x7d\xa\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\175\12\40\40\x20\x20\40\40\x20\40\40\x20\x20\40\40\x20\40\40\x69\146\x20\50\x69\x64\75\x3d\47\x63\141\x74\137\x72\x65\142\165\151\154\144\163\x75\155\163\x74\157\143\153\47\51\173\12\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\44\x2e\x67\x65\164\x28\47\151\156\x64\145\x78\56\x70\x68\160\x3f\141\152\x61\170\x3d\61\46\x61\143\x74\x3d\143\141\164\137\x72\x65\x62\165\151\154\144\x73\x75\x6d\163\x74\x6f\143\x6b\x27\54\146\x75\x6e\143\164\x69\157\x6e\50\144\141\x74\141\x29\173\xa\40\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\40\40\40\40\x20\40\40\x20\144\150\x74\x6d\154\x78\x2e\x6d\145\163\x73\x61\147\145\50\173\x74\145\170\164\72\144\x61\x74\x61\x2c\x74\x79\160\145\72\x27\x69\156\146\157\x27\54\145\x78\x70\151\x72\145\x3a\65\x30\x30\x30\175\x29\x3b\12\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\40\40\40\40\40\x20\40\x20\x20\x7d\x29\73\12\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\x20\40\175\xa\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\151\146\x20\50\x69\144\x3d\x3d\x27\x63\141\164\137\162\x65\142\x75\x69\154\144\x6c\145\x76\145\x6c\144\145\160\164\150\47\x29\x7b\12\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\x69\x66\x20\x28\x21\x64\150\x78\x57\x69\x6e\x73\56\151\163\127\151\x6e\144\x6f\167\x28\x27\x77\x52\145\142\165\x69\154\x64\114\x65\x76\x65\x6c\x44\145\x70\x74\x68\x27\x29\51\12\40\40\x20\40\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\173\xa\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\x20\40\x77\x52\x65\142\x75\151\154\144\x4c\145\166\x65\154\x44\145\x70\x74\x68\40\75\40\x64\150\170\x57\151\156\163\x2e\x63\162\145\x61\x74\x65\127\151\x6e\x64\157\167\50\x27\x77\122\x65\142\165\x69\154\144\114\x65\x76\x65\154\104\x65\160\164\150\47\54\40\x32\x30\x30\x2c\40\61\x30\x30\x2c\40\64\60\60\x2c\x20\x32\x35\60\x29\x3b\xa\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x77\x52\x65\142\165\151\x6c\144\114\x65\166\145\x6c\x44\145\x70\164\150\x2e\163\145\x74\124\145\170\164\x28\47" . _l("\x43\150\x65\143\x6b\40\141\x6e\144\x20\x66\151\170\40\x63\x61\164\145\x67\157\x72\151\145\163", 1) . "\47\51\73\xa\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x77\x52\x65\142\165\151\154\x64\x4c\x65\166\145\154\x44\x65\160\164\x68\56\141\x74\164\x61\x63\x68\105\x76\x65\x6e\x74\50\47\x6f\x6e\103\154\157\x73\145\x27\x2c\x20\146\x75\156\x63\164\x69\157\156\x28\x77\x69\x6e\51\x7b\12\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\40\40\40\40\x20\x20\40\x20\x20\40\x77\122\145\x62\x75\x69\x6c\144\114\x65\166\145\x6c\x44\145\x70\x74\x68\56\x68\x69\x64\145\50\51\73\12\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\40\40\40\x72\145\x74\165\x72\x6e\x20\146\141\154\163\145\73\xa\40\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\175\x29\73\12\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\44\56\x70\x6f\163\x74\50\x27\x69\156\x64\145\x78\x2e\x70\x68\160\77\141\152\141\x78\x3d\x31\x26\141\x63\164\x3d\143\141\x74\x5f\167\x69\x6e\x2d\162\145\x62\165\151\x6c\x64\154\x65\166\145\x6c\144\x65\160\x74\150\x5f\x69\x6e\x69\x74\x27\x2c\146\165\x6e\x63\x74\151\157\156\50\144\141\164\141\51\x7b\xa\40\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\40\40\40\40\40\x20\40\x20\40\40\40\40\40\40\44\50\47\43\x6a\163\105\170\145\143\165\x74\145\x27\x29\56\150\164\155\x6c\50\144\141\x74\x61\51\x3b\xa\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\x7d\51\x3b\xa\xa\40\40\40\40\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\x7d\145\x6c\163\x65\x7b\12\x20\40\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\40\40\44\x2e\160\157\x73\x74\50\x27\151\x6e\144\x65\x78\x2e\160\x68\160\77\141\152\x61\170\x3d\61\46\x61\143\164\x3d\x63\141\x74\x5f\x77\151\156\x2d\x72\x65\x62\165\x69\154\144\154\145\x76\145\x6c\x64\x65\x70\x74\150\x5f\151\156\x69\164\47\54\146\x75\x6e\143\164\x69\x6f\156\50\144\141\x74\141\51\x7b\12\x20\x20\40\40\40\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\x20\40\44\50\x27\x23\x6a\163\x45\170\x65\x63\165\164\x65\x27\x29\x2e\x68\164\x6d\x6c\50\x64\141\x74\x61\x29\x3b\12\40\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\x20\175\x29\73\xa\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\167\122\145\142\x75\x69\154\144\114\x65\166\145\154\104\x65\x70\164\150\x2e\163\150\157\x77\x28\x29\x3b\xa\40\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\x20\x20\40\x20\175\12\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\x7d\12\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\40\x20\x69\x66\x20\x28\x69\x64\x3d\75\47\143\x61\164\137\162\x65\x62\x75\151\x6c\x64\x6c\141\x6e\147\x66\x69\x65\154\x64\47\x29\x7b\xa\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\x20\44\x2e\x67\145\x74\50\47\151\156\144\145\x78\x2e\x70\150\x70\77\141\152\141\x78\75\x31\x26\x61\x63\x74\75\x63\141\164\137\162\145\142\x75\151\x6c\x64\154\141\156\147\146\x69\145\154\x64\x27\54\x66\165\x6e\143\x74\151\157\156\50\x64\x61\x74\141\51\173\xa\40\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\144\x68\164\x6d\x6c\x78\56\155\x65\x73\x73\x61\147\x65\x28\173\x74\x65\x78\164\x3a\144\x61\164\141\x2c\x74\171\160\145\x3a\x27\151\156\146\x6f\x27\x2c\145\170\x70\151\162\145\x3a\x35\x30\60\60\x7d\x29\73\xa\x20\x20\x20\x20\40\40\40\40\40\40\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\175\51\73\xa\x20\40\40\x20\x20\x20\40\40\40\40\40\40\x20\40\x20\40\x7d\xa\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x69\x66\40\50\151\144\75\75\47\143\x61\164\137\162\x65\x62\165\151\154\x64\x70\x72\x6f\144\x75\143\x74\160\x72\x69\x63\x65\x27\x29\x7b\xa\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\40\40\x20\x69\146\x20\50\x63\x6f\156\x66\x69\162\155\50\x27" . _l("\x41\162\145\40\171\157\165\x20\163\x75\162\x65\40\171\157\x75\x20\x77\x61\156\x74\40\x74\157\x20\x72\145\x62\x75\151\x6c\x64\40\160\162\x6f\144\165\143\164\40\x70\x72\x69\x63\145\x73\x3f", 1) . "\47\x29\51\xa\x20\x20\x20\40\x20\40\x20\40\x20\40\40\40\40\40\40\40\40\x20\x20\40\40\x20\x20\40\44\56\x67\x65\x74\x28\47\x69\x6e\x64\x65\x78\56\x70\x68\160\77\x61\x6a\141\170\x3d\61\x26\141\143\164\75\x63\x61\x74\x5f\162\145\x62\165\151\x6c\x64\160\x72\x6f\144\165\143\x74\160\162\x69\x63\x65\47\54\x66\165\156\143\164\151\x6f\x6e\50\x64\x61\164\x61\51\x7b\xa\40\40\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\144\150\164\155\154\170\56\155\x65\163\x73\x61\x67\145\x28\x7b\164\145\x78\164\72\x64\141\x74\x61\54\164\x79\160\145\x3a\47\151\x6e\146\x6f\x27\54\145\x78\x70\151\x72\145\72\x35\x30\x30\60\175\x29\73\xa\40\40\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\175\x29\73\xa\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\40\x20\175\xa\40\x20\40\40\40\40\40\x20\40\x20\40\x20\40\40\40\x20\151\x66\40\x28\151\x64\x3d\75\47\x63\141\x74\x5f\146\151\x6c\x6c\143\x6f\x76\x65\x72\151\x6d\x61\x67\145\47\51\173\xa\40\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\x20\44\x2e\147\x65\164\x28\x27\151\156\x64\x65\170\56\160\x68\x70\x3f\141\x6a\141\170\x3d\x31\46\x61\143\x74\x3d\x63\141\164\x5f\x66\151\154\154\143\157\x76\145\x72\151\x6d\x61\x67\x65\x27\54\146\165\x6e\143\x74\x69\157\156\50\144\x61\x74\141\51\173\12\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\144\150\x74\155\x6c\170\x2e\155\145\x73\x73\141\x67\x65\50\173\x74\x65\x78\164\x3a\144\141\x74\x61\54\164\171\x70\x65\72\x27\151\x6e\x66\x6f\47\x2c\145\170\x70\x69\x72\145\x3a\x35\x30\x30\60\x7d\51\73\xa\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\40\175\51\73\xa\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x7d\12\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\40\x69\x66\40\x28\x69\x64\x3d\75\47\x68\x65\154\x70\137\164\145\163\164\47\x29\173\12\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\x20\151\146\x20\50\41\x64\150\170\x57\151\156\x73\x2e\x69\163\x57\151\156\x64\x6f\167\50\x27\167\x54\x65\163\x74\47\x29\x29\12\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\173\xa\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\40\x20\x77\124\x65\163\x74\40\75\40\x64\150\170\127\151\156\x73\x2e\143\x72\x65\x61\164\145\127\151\x6e\x64\x6f\167\x28\x27\167\x54\145\163\x74\47\54\40\x35\60\x2c\x20\x35\x30\54\40\67\65\x30\x2c\x20\44\50\167\x69\x6e\144\x6f\167\x29\x2e\x68\x65\x69\147\x68\x74\x28\51\55\67\65\x29\73\xa\40\40\x20\40\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\40\x20\x77\124\x65\163\x74\x2e\x62\165\164\x74\x6f\156\50\x27\x70\x61\x72\153\x27\51\x2e\150\151\144\145\50\51\x3b\xa\x20\40\x20\40\40\40\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\40\40\x20\x20\x20\x77\124\145\163\x74\56\142\x75\164\164\157\156\50\x27\x6d\x69\x6e\x6d\x61\x78\x27\51\x2e\x68\151\x64\145\50\x29\73\12\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\40\167\124\145\x73\x74\56\x73\x65\164\x54\x65\170\x74\x28\47\124\x65\163\x74\x27\x29\x3b\12\x20\40\x20\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x7d\x65\154\x73\x65\173\12\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\x77\124\145\x73\164\56\x73\150\x6f\x77\x28\51\73\xa\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\40\40\175\12\x20\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\40\x77\x54\145\x73\x74\56\x61\164\x74\141\x63\150\125\122\x4c\50\x27\151\156\x64\145\x78\56\160\150\x70\x3f\141\152\141\170\x3d\61\46\141\143\164\75\x74\145\x73\x74\47\51\x3b\12\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\40\40\40\x20\40\x77\124\145\x73\164\56\141\164\x74\141\x63\150\105\166\145\156\x74\50\47\157\156\103\154\x6f\163\x65\47\x2c\40\146\165\156\x63\164\x69\x6f\156\x28\x77\151\156\51\173\12\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\40\167\x54\x65\x73\164\56\150\x69\144\x65\x28\x29\x3b\12\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\40\x20\40\40\x72\x65\164\x75\162\x6e\40\x66\141\x6c\163\145\x3b\12\40\x20\40\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\175\51\73\xa\40\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\175\xa\40\x20\40\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\151\x66\40\x28\x69\144\75\x3d\x27\164\x72\x65\156\144\x73\137\x73\x68\157\x70\47\x29\173\12\40\40\40\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\x69\x66\x20\50\41\x64\x68\170\x57\x69\156\x73\56\151\x73\x57\151\x6e\x64\x6f\167\50\x27\167\x54\162\145\156\144\163\x53\150\x6f\x70\x27\51\x29\12\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\x7b\12\40\40\x20\x20\x20\40\40\40\40\40\40\40\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\167\124\x72\x65\156\144\x73\x53\150\x6f\160\40\x3d\40\x64\x68\x78\127\151\156\x73\56\143\x72\145\x61\x74\145\127\x69\x6e\144\157\x77\x28\47\167\124\x72\x65\156\144\163\x53\x68\157\x70\x27\x2c\x20\x35\x30\54\x20\65\x30\x2c\40\x24\x28\167\x69\156\x64\x6f\167\51\x2e\x77\x69\144\x74\150\50\x29\55\x37\x35\x2c\x20\44\50\x77\151\156\144\x6f\x77\x29\x2e\150\145\x69\147\x68\x74\50\51\x2d\x37\65\x29\73\12\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\40\x20\x20\x20\167\124\162\x65\x6e\144\x73\x53\150\157\x70\x2e\x73\x65\x74\124\145\x78\x74\50\x27" . _l("\x53\x74\x61\x74\x73\40\141\156\144\40\x74\162\x65\156\144\163", 1) . "\x27\x29\73\xa\x20\x20\40\40\40\x20\40\40\40\40\40\40\40\40\40\40\x20\40\40\40\40\x20\x20\x20\44\x2e\147\x65\164\x28\x27\x69\x6e\x64\145\x78\56\x70\150\x70\77\x61\x6a\x61\x78\75\61\x26\x61\143\164\x3d\x61\x6c\x6c\137\167\x69\156\x2d\164\162\145\x6e\x64\163\163\x68\157\160\137\x69\x6e\x69\x74\x27\54\146\165\156\x63\164\x69\157\156\50\144\141\x74\141\51\x7b\12\x20\x20\40\40\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\44\50\47\x23\152\x73\105\170\145\x63\x75\164\x65\x27\51\x2e\150\164\155\154\x28\x64\x61\x74\141\x29\73\12\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\x20\175\51\x3b\12\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\40\x7d\x65\x6c\x73\x65\x7b\12\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\40\40\x20\167\124\162\145\156\x64\x73\123\x68\157\160\56\x73\x68\x6f\167\x28\51\x3b\xa\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\40\40\x20\x7d\xa\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\40\x77\x54\162\145\156\144\163\x53\150\157\x70\x2e\x61\x74\164\141\x63\150\105\166\x65\x6e\164\50\47\157\156\x43\154\157\163\x65\x27\54\40\x66\165\x6e\x63\164\x69\157\x6e\50\167\x69\x6e\51\x7b\12\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\40\40\40\x77\124\162\145\156\144\x73\123\x68\157\160\56\x68\151\x64\x65\50\51\73\12\x20\40\x20\40\x20\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\40\x20\x72\x65\164\165\162\x6e\x20\146\141\154\x73\x65\73\12\40\40\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\40\40\x20\x20\x20\40\x7d\51\73\12\40\x20\40\x20\40\40\40\40\40\40\40\40\40\40\x20\40\175\12\x20\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40"; goto TR82_; FNMZe: u0Iit: goto a1zb6; FUNZZ: $menu_js_action .= "\xa\40\40\40\x20\40\40\40\40\40\40\x20\40\40\40\40\40\151\146\x20\50\x21\144\150\170\127\x69\156\163\56\151\163\127\151\x6e\144\157\167\x28\47\x77\111\x6d\160\157\x72\x74\x43\165\163\47\51\x29\x20\x7b\12\x20\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\x20\40\40\x20\40\40\40\167\x49\x6d\160\x6f\162\x74\x43\165\x73\x20\x3d\40\x64\150\x78\x57\x69\x6e\x73\56\x63\162\x65\x61\164\x65\x57\x69\x6e\x64\x6f\167\50\47\x77\111\x6d\x70\x6f\162\164\103\165\x73\47\54\40\65\x30\54\40\65\60\x2c\x20\x31\x31\60\60\x2c\x20\x24\50\167\x69\156\x64\157\x77\51\x2e\x68\x65\151\147\150\x74\x28\x29\x2d\x37\x35\x29\x3b\12\x20\40\x20\40\x20\x20\40\40\40\40\40\40\x20\x20\40\40\x20\x20\40\40\x77\x49\x6d\x70\157\162\x74\103\165\163\56\x73\145\164\124\145\x78\164\50\x27" . _l("\x49\x6d\x70\x6f\x72\x74\40\55\40\102\141\x63\x6b\165\x70\40\x79\x6f\x75\x72\40\142\x61\x73\x65\x20\142\x65\146\157\x72\145\x20\141\156\x79\x20\155\141\x73\x73\x20\x75\160\144\141\x74\145\x21", 1) . "\x27\51\73\xa\40\40\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\40\40\x20\44\56\x67\x65\164\50\47\151\156\144\145\x78\x2e\160\150\x70\77\x61\152\141\170\x3d\x31\46\x61\x63\x74\75\143\x75\163\x5f\167\x69\x6e\55\x69\155\x70\x6f\x72\x74\137\151\156\151\x74\47\x2c\x66\165\x6e\143\x74\151\x6f\156\50\144\x61\164\x61\x29\x7b\xa\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\40\40\44\x28\x27\x23\x6a\163\105\170\145\x63\165\x74\x65\47\51\x2e\150\164\155\154\x28\x64\141\x74\141\x29\x3b\12\40\40\x20\40\40\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\175\51\x3b\12\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x77\111\x6d\x70\x6f\x72\x74\x43\165\x73\x2e\141\164\x74\x61\x63\150\105\x76\145\x6e\x74\x28\47\157\x6e\103\154\x6f\x73\x65\x27\x2c\40\146\165\x6e\143\164\151\157\156\50\x77\151\x6e\51\173\xa\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\x77\111\x6d\x70\x6f\x72\x74\x43\165\163\x2e\150\151\144\x65\50\51\73\12\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\40\40\x20\x72\x65\164\x75\162\156\x20\146\x61\x6c\x73\x65\73\12\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x7d\51\73\xa\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\175\x65\x6c\x73\x65\173\xa\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x24\56\147\x65\x74\50\47\151\x6e\x64\145\x78\x2e\x70\150\160\x3f\x61\x6a\x61\170\75\61\x26\141\143\164\75\x63\x75\x73\x5f\x77\x69\x6e\x2d\x69\x6d\x70\x6f\x72\164\137\151\156\151\164\x27\54\146\165\156\143\x74\151\157\156\x28\x64\141\x74\x61\x29\x7b\xa\x20\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\x24\x28\x27\43\x6a\163\x45\x78\x65\x63\165\x74\x65\47\x29\x2e\150\x74\x6d\x6c\50\x64\x61\x74\141\x29\x3b\xa\40\x20\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\175\51\x3b\12\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\40\x77\111\x6d\x70\157\162\164\x43\165\x73\x2e\163\150\157\x77\x28\51\x3b\12\x20\x20\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\x20\x20\175\12\x20\40\40\40\x20\40\40\x20\40\x20\x20\40"; goto h7Aee; DVu20: if (!($pluginCmsProperties["\124\x69\x74\x6c\145"] != '')) { goto y0YAN; } goto dhy70; tFaTc: $menu_js_action .= "\40\x77\151\x6e\x64\157\x77\56\157\160\x65\156\x28\x27" . getScExternalLink("\163\165\x70\x70\157\162\164\x5f\x63\162\x65\x61\x74\151\x6e\x67\x5f\157\x72\x64\145\x72") . "\47\51\73\40"; goto VqTaP; bx7ag: $menu_js_action .= "\x20\151\146\40\50\x21\x64\150\170\x57\151\156\x73\x2e\151\x73\x57\151\x6e\x64\x6f\x77\x28\x27\167\x43\141\x74\x49\x6d\x70\x6f\x72\x74\47\51\51\x20\x7b\xa\x20\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\40\x20\167\103\x61\x74\111\x6d\x70\157\162\x74\x20\75\40\144\150\x78\x57\x69\x6e\163\x2e\143\162\x65\141\164\145\127\x69\x6e\x64\x6f\167\50\x27\x77\103\x61\x74\x49\x6d\160\157\162\x74\47\x2c\40\x35\x30\x2c\40\x35\60\54\40\61\60\65\60\x2c\x20\44\x28\167\x69\x6e\144\157\x77\x29\56\150\145\151\x67\150\164\x28\x29\55\67\65\x29\73\xa\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\x20\40\x20\x20\40\40\x20\40\x20\40\167\x43\141\x74\x49\x6d\160\157\x72\164\x2e\163\x65\164\124\145\x78\x74\50\47" . _l("\111\x6d\x70\x6f\x72\x74\x20\55\x20\102\141\143\x6b\x75\x70\40\x79\x6f\x75\x72\x20\x62\141\x73\x65\40\x62\x65\146\x6f\x72\x65\40\x61\x6e\x79\40\155\141\x73\x73\40\x75\160\144\x61\164\145\41", 1) . "\x27\x29\73\xa\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x24\56\x67\x65\x74\50\x27\151\x6e\144\x65\x78\56\160\x68\x70\x3f\141\152\x61\170\x3d\x31\46\141\x63\164\75\143\141\x74\137\x77\151\156\55\x63\x61\164\x69\x6d\160\x6f\x72\164\137\151\x6e\x69\164\47\54\146\165\x6e\x63\x74\x69\x6f\156\50\x64\x61\164\141\51\x7b\xa\x20\x20\40\40\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\40\x20\40\40\40\x20\44\50\x27\43\x6a\163\x45\x78\145\143\x75\x74\145\47\51\x2e\150\164\155\154\50\x64\x61\164\141\x29\x3b\12\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\175\x29\73\12\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\167\103\x61\164\111\x6d\x70\157\x72\x74\x2e\141\x74\x74\141\x63\x68\x45\x76\x65\x6e\x74\50\47\x6f\156\103\x6c\157\163\145\x27\x2c\40\146\x75\x6e\143\x74\151\x6f\156\50\x77\151\156\x29\173\12\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\40\167\x43\141\x74\111\x6d\160\157\x72\164\56\150\151\x64\x65\50\x29\x3b\xa\x20\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x72\145\x74\165\x72\156\40\146\141\154\163\145\x3b\12\40\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\40\x20\x7d\x29\73\xa\x20\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\175\x65\x6c\x73\x65\173\12\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\44\x2e\147\145\x74\x28\x27\151\156\x64\145\170\56\x70\150\x70\77\x61\x6a\141\x78\75\61\46\141\x63\164\75\143\x61\x74\x5f\167\151\156\55\143\x61\x74\151\x6d\x70\x6f\x72\x74\137\151\156\x69\x74\47\x2c\146\x75\156\143\164\x69\x6f\156\x28\x64\x61\x74\141\51\x7b\12\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\40\40\40\x20\x24\50\x27\43\152\163\x45\170\x65\x63\x75\x74\x65\47\x29\56\x68\164\x6d\154\x28\144\x61\164\x61\x29\73\xa\x20\x20\x20\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\x7d\51\73\xa\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\167\103\x61\164\x49\x6d\x70\157\162\164\x2e\x73\150\x6f\x77\x28\x29\x3b\xa\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\175\xa\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\40"; goto xN7wH; YQVoF: $menu_js_action .= "\x20\151\146\40\50\x69\x64\75\75\47\157\162\x64\137\x6f\x72\x64\145\x72\163\x27\x29\173\x20"; goto luN2p; r9INF: $menu_js_action .= "\x20\x7d\40"; goto adVvx; YlpLM: lLZAg: goto Xlk61; xaR4L: WvaQI: goto tYr2w; UQqPM: Xx9U2: goto igNNA; RgVdZ: $pluginManufacturerProperties = array("\124\151\x74\x6c\145" => '', "\x54\157\157\154\142\141\162\102\165\164\164\x6f\x6e\x73" => '', "\124\x6f\x6f\154\x62\141\162\101\143\164\151\157\x6e\x73" => '', "\x54\157\x6f\154\x62\141\162\123\x74\141\164\x65\101\x63\x74\x69\x6f\x6e\x73" => '', "\110\151\x64\145\x54\x6f\x6f\x6c\142\141\x72\102\x75\x74\164\157\x6e\163" => '', "\144\157\x4f\156\115\141\x6e\x75\x66\141\143\164\165\x72\x65\x72\122\x6f\167\123\145\x6c\x65\143\164\145\144" => '', "\x44\151\163\160\x6c\141\171\x50\154\x75\x67\x69\156" => ''); goto zPzGo; izoj4: $url = "\x69\156\144\145\x78\x2e\160\x68\x70\77\143\x6f\156\164\162\157\x6c\154\x65\162\x3d\101\144\x6d\x69\x6e\x54\145\162\x6d\151\x6e\141\x74\157\x72\x26\x74\x6f\x6b\x65\x6e\x3d" . $sc_agent->getPSToken("\x41\144\x6d\x69\x6e\x54\x65\x72\155\x69\x6e\141\164\x6f\162"); goto rVI6D; Oolmx: if (!($pluginCustomerProperties["\x54\x69\164\x6c\145"] != '')) { goto qvSDk; } goto V_X7q; mqz0L: $menu_js_action .= "\40\175\xa\x20\40\40\x20\x69\x66\40\x28\151\x64\x3d\75\x27\x63\x61\164\137\162\145\163\145\x74\160\x72\x69\143\145\144\162\157\160\162\x65\144\165\143\x74\x69\x6f\x6e\163\x27\51\173\xa\x20\40\x20\x20\x20\x20\x20\40\40\x69\x66\x20\50\x63\157\156\x66\x69\162\x6d\x28\47" . _l("\101\162\145\40\x79\157\x75\40\163\165\x72\x65\x20\x79\157\x75\x20\x77\141\156\164\40\164\x6f\40\x72\145\163\145\x74\x20\x70\x72\151\143\145\x73\40\x64\x72\x6f\160\40\x72\x65\144\x75\143\164\151\x6f\156\x73\77", 1) . "\47\x29\x29\12\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\40\40\40\173\xa\x20\x20\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x24\x2e\147\145\164\x28\47\151\156\144\145\170\56\x70\150\160\77\141\x6a\x61\x78\75\x31\46\141\143\x74\75\143\141\x74\x5f\162\145\163\x65\x74\160\162\151\143\145\x64\162\157\160\46\141\x63\164\151\157\x6e\75\x72\145\x64\x75\143\x74\151\157\x6e\163\47\54\x20\x66\x75\156\143\x74\x69\157\x6e\x28\x64\x61\x74\141\x29\173\xa\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\40\40\40\x20\x64\x69\x73\x70\154\141\x79\120\162\157\x64\165\x63\164\163\x28\x29\x3b\12\x20\x20\40\40\x20\x20\40\40\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\175\x29\73\xa\x20\40\40\40\40\40\40\40\x20\x20\x20\40\40\x20\x20\x20\175\x20"; goto hf0cm; xel_E: $menu_js_action .= "\151\146\40\x28\x69\144\x3d\x3d\x27\143\x61\164\x5f\x74\x72\x65\x65\x27\x29\173\xa\x20\x20\x20\40\40\40\40\x20\x69\146\50\x53\103\x5f\x50\101\107\x45\x3d\x3d\x27\x63\141\x74\137\x74\162\145\145\47\51\xa\x20\x20\40\x20\x20\40\x20\x20\x7b\xa\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\151\146\x20\50\143\141\163\x53\x74\x61\164\145\56\143\164\x72\x6c\x20\75\75\x20\164\x72\x75\x65\51\173\12\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x77\x69\x6e\x64\157\167\56\x6f\x70\145\x6e\50\47\x69\156\144\145\170\x2e\x70\x68\x70\77\160\x61\147\145\75\143\x61\164\137\164\162\x65\x65\x27\x29\x3b\12\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x7d\x20\145\x6c\x73\145\x20\173\12\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\40\x20\164\x72\145\145\137\x6d\x6f\x64\145\x3d\x27\163\151\x6e\x67\x6c\x65\x27\x3b\12\40\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\143\x61\x74\x2e\143\145\x6c\154\163\50\47\x61\47\x29\x2e\145\x78\x70\x61\x6e\144\50\51\73\12\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\143\x61\164\137\164\142\x2e\163\x65\164\x49\164\x65\155\123\x74\x61\x74\x65\x28\47\167\x69\x74\150\123\x75\142\x43\141\164\x65\147\x27\54\40\x66\141\x6c\x73\x65\x2c\40\x74\x72\165\145\x29\73\12\40\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\40\143\x61\164\x5f\160\162\157\144\165\x63\x74\x50\141\x6e\145\154\56\x73\x65\x74\x54\145\x78\164\50\x27" . _l("\x50\x72\x6f\144\x75\x63\x74\163", 1) . "\x20" . _l("\157\146", 1) . "\47\53\143\141\x74\x5f\x74\162\145\145\x2e\147\145\164\111\x74\x65\155\124\x65\170\164\50\143\x61\x74\x73\145\x6c\145\x63\164\x69\157\x6e\x29\x29\x3b\xa\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\175\xa\40\x20\x20\40\40\40\40\x20\x7d\145\x6c\x73\145\173\xa\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\151\x66\x20\x28\143\141\x73\x53\164\141\x74\145\x2e\143\x74\162\154\x20\75\x3d\40\x74\162\x75\x65\x29\x7b\xa\x20\40\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\x20\40\x77\x69\x6e\144\157\167\x2e\x6f\x70\145\x6e\50\47\x69\156\144\145\x78\x2e\x70\150\x70\77\x70\x61\147\145\x3d\x63\141\x74\x5f\164\x72\145\x65\47\x29\73\12\40\40\40\40\x20\x20\x20\x20\40\40\x20\40\x7d\40\x65\x6c\x73\145\x20\173\xa\40\40\x20\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x64\x6f\143\x75\x6d\145\x6e\164\x2e\154\x6f\x63\x61\164\x69\157\x6e\x3d\47\151\156\144\x65\x78\x2e\160\x68\x70\x3f\x70\x61\x67\x65\75\143\141\164\137\x74\162\x65\145\x27\73\12\x20\40\40\40\40\x20\x20\40\x20\40\x20\x20\175\12\40\x20\40\40\40\x20\40\x20\x7d\12\x20\40\x20\40\x7d\12\x20\40\x20\40\x69\x66\40\x28\151\x64\x3d\75\47\143\141\x74\137\x67\x72\151\144\x27\x29\173\xa\x20\x20\40\x20\x20\x20\x20\x20\x69\146\50\x53\103\137\120\101\107\x45\x3d\x3d\47\x63\x61\164\x5f\x74\162\145\145\x27\x29\12\x20\x20\40\x20\x20\x20\40\x20\x7b\xa\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x69\146\x20\50\x63\141\163\123\x74\141\x74\145\x2e\x63\x74\x72\x6c\x20\75\75\40\x74\162\165\145\51\173\xa\40\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\x77\151\156\x64\157\167\56\157\160\x65\x6e\50\47\151\156\144\145\x78\56\160\x68\x70\77\160\x61\x67\145\75\143\141\164\137\164\162\x65\145\46\144\x69\163\160\154\x61\x79\x41\154\x6c\120\162\x6f\x64\165\x63\164\163\x3d\61\x27\x29\x3b\xa\40\40\40\x20\x20\40\x20\x20\40\40\x20\40\x7d\40\145\x6c\x73\145\x20\173\xa\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\143\141\x74\56\x63\145\154\x6c\163\x28\47\x61\x27\x29\x2e\143\x6f\154\x6c\141\160\163\x65\x28\x29\73\xa\40\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\143\x61\164\x73\x65\154\145\x63\x74\151\157\x6e\75\61\73\12\x20\x20\x20\40\x20\40\40\40\x20\40\40\x20\40\40\x20\40\x63\141\164\x5f\x74\162\145\x65\56\157\x70\x65\x6e\x49\x74\x65\x6d\x28\143\x61\x74\x73\145\x6c\145\143\x74\151\157\x6e\x29\73\12\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\143\x61\164\x5f\164\162\145\145\x2e\163\145\x6c\145\x63\164\111\164\145\x6d\50\143\141\x74\x73\x65\154\x65\x63\164\x69\x6f\x6e\54\x66\x61\x6c\163\x65\51\x3b\12\x20\40\40\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\143\141\x74\137\164\142\56\163\x65\164\111\164\145\x6d\123\x74\x61\164\x65\x28\47\x77\x69\x74\x68\x53\x75\142\x43\x61\x74\145\147\x27\54\x20\164\x72\x75\145\54\40\164\x72\x75\x65\51\73\12\40\40\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\40\x63\141\164\x5f\160\162\x6f\144\x75\143\164\x50\141\156\x65\154\56\x73\x65\164\124\145\x78\164\x28\x27" . _l("\x50\162\x6f\144\165\143\164\x73\x20\x6c\x69\163\164", 1) . "\47\51\73\xa\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\175\12\40\40\x20\40\x20\x20\x20\40\x7d\x65\154\x73\145\x7b\12\40\40\x20\x20\x20\x20\40\x20\40\40\x20\40\x69\x66\x20\50\143\x61\163\x53\x74\141\x74\145\x2e\x63\x74\x72\x6c\x20\75\75\40\x74\162\165\145\51\x20\173\12\40\x20\x20\40\x20\x20\40\40\x20\40\40\x20\40\x20\x20\x20\167\151\156\x64\x6f\x77\56\157\160\145\x6e\x28\x27\x69\156\x64\145\x78\x2e\x70\x68\160\77\x70\141\x67\x65\75\x63\x61\x74\x5f\164\x72\x65\145\46\144\x69\x73\x70\154\141\171\101\x6c\x6c\120\162\x6f\x64\165\143\x74\163\x3d\x31\47\x29\73\12\40\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x7d\40\x65\154\163\x65\40\173\12\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\x64\x6f\x63\165\x6d\145\x6e\164\56\x6c\157\x63\x61\164\x69\x6f\156\75\x27\x69\x6e\x64\x65\170\x2e\160\150\160\x3f\x70\x61\x67\x65\x3d\x63\141\x74\137\x74\162\145\145\46\x64\x69\163\x70\154\141\171\x41\154\x6c\x50\162\x6f\x64\x75\143\164\x73\75\61\x27\x3b\xa\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\175\12\x20\40\40\x20\x20\40\40\40\175\12\40\x20\x20\40\175\xa\x20\x20\x20\x20\151\x66\40\x28\151\x64\75\75\x27\163\145\x72\x5f\x70\141\147\145\x34\x30\x34\x27\x29\x7b\xa\40\x20\40\x20\x20\x20\40\40\x69\146\x20\x28\x21\144\x68\x78\127\151\x6e\163\56\151\x73\x57\151\x6e\x64\x6f\167\x28\x27\x77\x50\141\x67\145\116\157\164\x46\157\x75\156\x64\47\x29\51\xa\40\x20\40\x20\40\x20\x20\x20\173\12\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\167\120\x61\147\x65\x4e\157\x74\x46\x6f\x75\x6e\x64\40\75\x20\144\x68\x78\x57\x69\x6e\x73\56\x63\162\145\141\164\145\x57\x69\156\x64\x6f\x77\x28\47\x77\120\141\147\x65\116\x6f\164\106\x6f\x75\156\x64\x27\x2c\x20\x35\60\54\40\65\60\x2c\40\x31\60\60\60\54\40\x24\50\167\151\x6e\144\x6f\x77\x29\56\150\145\151\147\x68\x74\50\x29\x2d\x37\65\x29\73\xa\40\x20\40\40\40\40\x20\x20\40\x20\x20\40\167\x50\141\x67\145\116\x6f\164\x46\x6f\165\156\x64\56\x73\145\164\x54\x65\x78\164\50\x27" . _l("\x50\x61\147\145\40\x6e\157\164\x20\x66\x6f\165\x6e\x64\40\64\60\x34", 1) . "\47\51\73\xa\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\44\56\147\x65\x74\x28\x27\x69\156\144\145\170\56\160\150\160\x3f\x61\152\141\170\75\x31\46\141\143\164\x3d\x73\x65\x72\x5f\167\x69\156\55\x70\141\x67\145\x6e\157\x74\146\157\x75\156\144\64\60\x34\x5f\151\x6e\151\164\47\x2c\x66\165\156\x63\164\151\157\156\50\x64\141\164\141\x29\x7b\12\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\40\40\x20\40\44\50\47\43\152\x73\105\x78\145\143\x75\164\145\47\51\x2e\x68\164\155\x6c\x28\x64\x61\164\x61\x29\x3b\xa\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\175\51\73\xa\40\40\x20\x20\x20\x20\40\40\175\xa\40\x20\40\40\x7d\xa\x20\x20\40\x20\151\x66\x20\50\151\144\x3d\75\x27\163\145\162\137\145\155\x70\164\x79\x73\155\141\x72\x74\x79\143\x61\x63\x68\x65\47\x29\173\xa\x20\x20\40\x20\x20\x20\40\40\x24\56\x67\145\164\x28\47\151\x6e\x64\145\x78\x2e\160\150\160\x3f\x61\x6a\x61\170\x3d\x31\x26\141\143\x74\75\x73\x65\162\137\x65\155\x70\164\171\163\x6d\x61\162\x74\171\x63\141\x63\150\145\47\x2c\x66\x75\x6e\x63\164\151\157\x6e\50\144\141\x74\x61\x29\x7b\xa\40\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\144\x68\x74\155\x6c\x78\56\155\x65\x73\x73\141\147\145\x28\x7b\x74\145\x78\x74\x3a\144\141\x74\141\54\164\x79\160\145\x3a\47\x69\156\146\x6f\x27\54\145\170\x70\x69\162\145\x3a\x35\60\x30\60\175\x29\73\xa\x20\x20\40\40\40\40\40\x20\175\51\x3b\12\40\40\x20\x20\x7d\12\40\40\x20\x20\x69\146\x20\x28\151\x64\x3d\x3d\47\143\141\164\x5f\150\x69\x73\x74\157\x72\171\47\x29\x7b\xa\40\x20\x20\x20\40\40\40\40\151\146\40\x28\41\x64\150\170\x57\151\156\163\56\151\x73\127\x69\156\x64\x6f\x77\x28\47\167\x43\141\x74\x48\x69\x73\x74\157\x72\171\47\51\51\12\40\x20\40\40\x20\40\x20\40\173\xa\40\40\40\40\40\40\x20\x20\40\x20\x20\40\x77\x43\x61\164\110\151\x73\x74\x6f\x72\171\x20\75\x20\144\x68\170\x57\151\156\163\56\143\162\x65\x61\164\x65\127\151\156\144\157\167\x28\x27\167\x43\141\164\x48\x69\163\x74\157\x72\x79\47\54\40\65\x30\54\40\65\x30\x2c\x20\71\x34\60\x2c\40\x24\50\x77\151\156\x64\x6f\167\51\56\150\x65\x69\x67\150\x74\x28\51\55\x37\x35\51\x3b\12\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\167\x43\141\x74\110\x69\163\x74\x6f\162\x79\x2e\x73\145\164\x54\x65\x78\164\50\x27" . _l("\102\x72\x6f\167\163\x65\40\150\x69\x73\x74\x6f\162\171", 1) . "\47\51\x3b\40\x2f\57\40\40\x61\156\144\40\x63\x61\156\143\x65\x6c\x20\155\157\144\151\146\x69\143\x61\x74\x69\x6f\156\163\xa\40\x20\x20\x20\40\40\x20\40\40\40\40\40\44\x2e\147\145\164\x28\47\x69\x6e\x64\x65\x78\56\x70\150\160\x3f\141\x6a\141\170\75\61\46\141\143\x74\x3d\x61\x6c\x6c\137\x63\150\141\156\x67\x65\x68\x69\163\164\x6f\x72\171\x5f\151\x6e\151\x74\47\54\146\x75\x6e\143\164\x69\157\x6e\50\144\x61\164\x61\51\173\xa\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\44\50\x27\x23\x6a\x73\105\170\x65\143\165\x74\x65\x27\x29\56\150\164\155\x6c\50\144\141\x74\x61\x29\73\12\x20\x20\40\40\x20\40\x20\40\40\x20\x20\x20\175\x29\73\12\40\x20\x20\x20\40\x20\x20\40\x7d\xa\x20\40\40\x20\175\xa\12\x20\40\40\40\151\146\x20\x28\x69\144\75\75\x27\x63\157\162\x65\x5f\161\x75\x65\165\145\x6c\x6f\x67\163\47\51\x7b\xa\40\40\40\40\x20\x20\x20\x20\157\x70\145\156\121\165\145\165\x65\114\157\147\x57\x69\156\x64\x6f\x77\50\51\x3b\12\x20\40\x20\40\x7d\12\40\40\40\40\151\146\x20\50\x69\144\75\75\x27\x63\157\162\x65\x5f\x73\145\x74\164\x69\x6e\x67\163\x27\x29\173\12\x20\x20\40\x20\40\x20\x20\40\157\x70\145\x6e\123\x65\x74\x74\x69\x6e\x67\x73\x57\x69\156\x64\x6f\167\50\51\x3b\12\40\x20\x20\x20\x7d\xa\x20\x20\x20\40\151\x66\x20\50\151\x64\75\x3d\x27\x63\x6f\162\145\137\154\141\x6e\147\165\x61\147\x65\x68\145\x6c\x70\x27\x29\x7b\xa\x20\x20\40\x20\x20\x20\40\x20\167\151\x6e\144\x6f\167\56\157\x70\145\x6e\x28\x27" . getScExternalLink("\155\165\154\164\151\137\x6c\141\156\147\165\x61\147\145") . "\x27\51\x3b\xa\x20\40\40\40\x7d\xa\x20\40\40\x20\x69\x66\x20\50\x69\144\56\x73\x75\142\163\x74\x72\x28\60\54\61\64\x29\75\x3d\x27\143\x6f\x72\145\137\154\x61\156\x67\x75\x61\x67\x65\x5f\x27\x29\x7b\xa\x20\x20\40\40\40\40\x20\x20\x24\x2e\160\157\163\x74\50\47\151\x6e\x64\145\170\56\160\x68\x70\x3f\x61\152\x61\x78\x3d\61\46\141\143\x74\x3d\141\154\x6c\137\165\x69\x73\145\x74\x74\x69\156\x67\x73\137\x75\x70\144\x61\164\x65\46\151\x64\x5f\x6c\x61\156\147\x3d\47\x2b\123\103\x5f\x49\104\x5f\x4c\x41\116\107\x2b\x27\x26\x27\x2b\156\145\167\x20\x44\x61\x74\x65\50\51\56\147\x65\x74\124\x69\155\145\50\x29\x2c\40\x7b\x27\x6e\x61\155\145\47\x3a\x27\x66\x6f\162\x63\145\x53\x43\x4c\141\156\x67\x49\x73\x6f\47\x2c\40\x27\x64\141\x74\141\47\72\151\144\56\x73\x75\142\163\164\162\x28\x31\64\54\x32\51\x7d\54\x66\165\x6e\x63\x74\x69\x6f\x6e\50\144\x61\164\141\51\x7b\xa\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x64\x6f\x63\165\155\x65\x6e\x74\56\154\157\143\141\x74\x69\x6f\x6e\x20\75\x20\144\x6f\x63\165\x6d\145\x6e\x74\x2e\x6c\x6f\x63\141\x74\151\x6f\x6e\73\12\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x7d\x29\x3b\12\x20\x20\x20\x20\x7d\12\x20\x20\x20\40\x69\146\40\x28\x69\144\75\x3d\x27\143\x6f\162\x65\137\x6c\x61\156\x67\165\x61\147\145\x75\160\x64\x61\x74\x65\x27\x29\173\12\40\40\x20\40\x20\x20\40\40\151\146\x20\x28\41\x64\x68\170\127\x69\156\x73\56\x69\x73\127\x69\x6e\144\157\x77\x28\x27\167\103\x6f\x72\x65\x55\x70\144\141\x74\145\124\162\141\x6e\x73\x6c\141\164\x69\157\x6e\x73\47\x29\51\xa\40\40\40\x20\40\40\x20\40\173\12\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\x77\103\x6f\162\x65\x55\160\144\x61\x74\145\124\162\x61\x6e\x73\154\x61\x74\151\157\156\163\x20\x3d\x20\x64\150\x78\x57\151\156\x73\56\x63\162\145\141\164\145\x57\x69\156\x64\x6f\167\x28\47\167\103\157\x72\x65\x55\160\144\x61\164\x65\x54\x72\141\156\163\x6c\x61\x74\151\157\156\x73\47\54\x20\65\60\x2c\x20\65\x30\54\40\x39\60\60\54\40\x24\50\x77\x69\x6e\x64\x6f\167\51\x2e\x68\145\x69\x67\x68\x74\x28\51\x2d\x37\x35\51\x3b\xa\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\x77\x43\x6f\162\145\125\x70\x64\x61\x74\x65\x54\x72\141\x6e\163\154\x61\x74\151\157\156\x73\56\163\145\164\124\145\170\x74\50\47" . _l("\x53\164\x6f\162\x65\40\103\x6f\155\155\x61\156\144\145\162\40\164\162\x61\156\163\154\x61\x74\151\x6f\x6e\x73\x20\x75\x70\x64\x61\164\145", 1) . "\x27\51\73\12\40\40\40\x20\40\40\x20\40\x20\x20\x20\40\x77\103\x6f\162\145\x55\x70\144\x61\x74\x65\x54\x72\141\x6e\163\154\x61\x74\151\x6f\156\163\x2e\x61\164\164\x61\x63\150\x55\x52\x4c\x28\x27\151\x6e\144\x65\x78\x2e\x70\150\x70\x3f\x61\x6a\x61\170\x3d\x31\46\x61\143\x74\75\143\157\x72\x65\x5f\x75\160\x64\x61\x74\x65\x5f\x74\x72\x61\156\x73\154\x61\x74\151\157\156\x73\47\x29\x3b\12\x20\x20\40\40\40\40\40\40\40\x20\40\x20\x77\x43\157\162\145\x55\x70\x64\141\164\x65\x54\162\x61\156\163\x6c\141\x74\151\157\156\x73\56\163\x65\x74\115\x6f\x64\141\x6c\50\x74\x72\165\145\51\73\12\40\40\40\x20\40\x20\x20\x20\x7d\x65\154\163\x65\173\12\x20\x20\x20\x20\x20\40\40\x20\40\40\40\40\167\x43\157\x72\145\125\x70\144\x61\x74\x65\x54\x72\x61\x6e\x73\154\x61\164\x69\x6f\x6e\163\x2e\163\x68\x6f\x77\50\x29\x3b\xa\x20\x20\40\40\x20\x20\x20\40\175\12\40\x20\40\x20\175\12\40\40\x20\40\151\146\x20\50\x69\x64\x3d\75\47\143\x61\x74\137\162\x65\163\145\x74\x70\x72\151\x63\x65\144\x72\157\160\x64\x61\164\145\163\47\51\173\x20"; goto VTfrO; OFZxk: $menu_js_action .= "\x20\x7d\12\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x69\146\x20\x28\x69\144\75\75\x27\x74\x65\x61\163\x65\162\x5f\147\x72\151\x64\163\x65\x64\151\x74\x6f\162\x5f\x72\x65\x61\x64\47\x29\x7b\40"; goto K7nzO; KaWJ_: $prop_toolbar_js_action .= ob_get_contents(); goto sjpo9; ZlGaB: $menu_js_action .= "\xa\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x69\x66\40\50\x69\144\75\75\47\x61\146\146\151\154\151\x61\x74\151\157\x6e\47\x29\173\xa\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\x20\40\40\160\x75\163\x68\117\x6e\x65\x55\x73\141\147\x65\50\x27\x6d\145\156\x75\x2d\x62\x6f\55\x6c\x69\156\x6b\55\x69\x6e\163\164\141\x6c\x6c\x65\144\x2d\163\143\x61\146\x66\x69\154\x69\x61\164\151\157\156\47\x29\73\12\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\151\146\x20\x28\41\144\x68\170\x57\151\156\x73\x2e\151\163\x57\151\x6e\x64\157\x77\x28\x27\x77\101\146\146\x69\x6c\x69\x61\x74\x69\x6f\156\x27\x29\51\12\x20\x20\x20\40\x20\40\x20\40\40\40\40\x20\40\40\x20\40\40\40\x20\x20\x7b\xa\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\x77\101\x66\146\151\x6c\151\141\164\151\157\156\x20\x3d\40\x64\x68\x78\127\151\x6e\x73\x2e\143\x72\x65\141\x74\x65\127\x69\156\144\157\167\x28\x27\x77\x41\146\x66\151\154\x69\x61\164\151\157\156\47\x2c\40\60\x2c\40\x32\65\54\x20\x24\50\x77\x69\x6e\x64\157\167\51\x2e\167\x69\x64\164\150\50\51\54\x20\44\50\167\x69\x6e\144\x6f\x77\51\x2e\150\x65\151\x67\x68\x74\50\51\55\62\65\51\x3b\12\40\40\40\40\x20\40\40\40\40\x20\40\x20\40\40\40\40\x20\40\x20\40\40\x20\x20\x20\x77\101\146\x66\x69\154\x69\x61\x74\x69\x6f\x6e\x2e\x73\145\164\x54\x65\170\164\50\x27" . _l("\x41\146\x66\x69\x6c\151\x61\164\x69\x6f\x6e\40\160\162\157\147\162\141\x6d", 1) . "\47\x29\x3b\xa\40\x20\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x77\101\x66\x66\151\154\151\x61\164\151\x6f\156\x2e\x61\164\164\141\143\x68\105\166\145\x6e\x74\50\x27\157\x6e\x43\154\x6f\x73\145\47\54\x20\146\x75\x6e\143\164\151\157\156\x28\167\x69\x6e\51\x7b\12\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\x77\101\x66\146\151\154\151\141\x74\x69\x6f\156\x2e\150\x69\144\145\50\51\x3b\xa\x20\x20\x20\40\x20\40\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\x72\145\x74\x75\162\x6e\x20\146\141\x6c\163\145\73\12\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x7d\51\73\xa\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\x20\x24\x2e\147\x65\164\x28\x27\x69\156\144\145\x78\x2e\x70\x68\160\x3f\141\152\x61\x78\75\x31\46\141\x63\x74\x3d\x61\154\x6c\137\x77\151\x6e\55\141\x66\146\x69\154\x69\141\164\151\157\156\x5f\151\x6e\x69\x74\x27\x2c\146\165\156\x63\164\x69\157\156\x28\x64\141\164\141\x29\173\xa\40\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\x20\x20\40\x24\x28\47\x23\152\x73\x45\x78\145\143\x75\164\x65\47\x29\x2e\150\x74\x6d\x6c\50\144\x61\x74\x61\51\73\xa\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\175\51\73\xa\12\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\x20\175\145\154\x73\x65\x7b\12\40\40\x20\x20\40\40\40\40\x20\x20\40\40\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\44\56\147\145\164\50\47\151\x6e\x64\145\170\56\x70\150\160\77\x61\152\x61\170\75\x31\x26\141\x63\x74\75\x61\154\x6c\x5f\x77\151\156\x2d\x61\146\x66\x69\x6c\x69\141\x74\151\x6f\x6e\x5f\x69\156\x69\x74\x27\x2c\146\165\156\x63\x74\x69\157\x6e\50\x64\141\164\141\51\x7b\12\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x24\50\x27\43\x6a\x73\105\170\x65\143\165\164\x65\x27\x29\56\x68\164\155\154\x28\x64\x61\x74\141\51\x3b\12\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\40\40\x20\40\40\x20\40\40\x7d\x29\x3b\xa\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\167\x41\146\146\151\x6c\x69\x61\x74\151\x6f\156\x2e\x73\x68\x6f\167\50\51\73\12\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\40\x20\x20\x20\x20\x20\175\12\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\175"; goto cKZe0; fT0Zn: foreach ($shops as $shop) { goto k2Snf; x8Ps7: Tx_AF: goto f4htR; OIQFc: bN29N: goto x8Ps7; Hl5xe: $menu_js_action .= "\40\x69\x66\x20\x28\151\144\x3d\75\x27\x6c\151\x6e\153\137\160\x73\146\162\157\x6e\164\x5f\x73\x68\157\x70\x5f" . $shop["\x69\x64\x5f\x73\x68\157\160"] . "\47\x29\x7b\12\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x77\151\156\144\157\x77\x2e\x6f\x70\145\x6e\x28\x27" . $url[0]["\165\162\x6c"] . "\x27\x29\x3b\xa\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\x20\x20\40\40\40\x20\40\40\40\40\40\40\40\x7d\x20"; goto OIQFc; CdeeM: if (empty($url[0]["\x75\x72\x6c"])) { goto bN29N; } goto Hl5xe; k2Snf: $url = Db::getInstance()->ExecuteS("\x53\105\x4c\x45\x43\x54\40\52\54\x20\x43\x4f\116\103\101\124\x28\x22\x68\164\164\160\x3a\x2f\57\42\x2c\40\x64\x6f\x6d\x61\151\x6e\x2c\x20\x70\x68\171\x73\x69\143\x61\x6c\x5f\x75\162\151\54\40\x76\151\162\164\x75\141\x6c\x5f\x75\x72\151\x29\40\x41\123\x20\x75\x72\154\xa\x20\40\40\40\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\x46\122\x4f\115\40" . _DB_PREFIX_ . "\163\150\157\x70\137\165\x72\x6c\12\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\40\x57\110\105\122\105\x20\x69\144\137\163\150\157\x70\x20\x3d\x20" . (int) $shop["\x69\x64\137\x73\150\x6f\160"] . "\xa\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\101\x4e\x44\x20\x61\143\x74\151\166\145\x20\75\x20\42\61\x22\xa\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x4f\x52\x44\105\122\x20\x42\131\x20\x6d\141\x69\156\40\104\105\x53\103\xa\x20\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\114\111\115\111\124\x20\x31"); goto CdeeM; f4htR: } goto YlpLM; NpZSi: eval($eval); goto EFPfQ; TfVTL: $menu_js_action .= "\12\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\40\40\x20\x69\146\50\151\144\x3d\75\47\163\x63\x63\137\154\x61\x62\x27\x29\40\173\xa\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\151\x66\x20\50\x21\x64\150\x78\x57\x69\x6e\x73\x2e\x69\163\127\151\156\144\157\167\50\x27\x77\123\143\x63\154\x61\142\x27\51\x29\xa\40\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\173\xa\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\40\40\x20\x20\x77\123\143\143\154\x61\142\x20\x3d\40\144\150\170\x57\151\x6e\163\x2e\x63\x72\x65\141\x74\145\x57\151\156\144\157\x77\x28\x27\167\x53\143\143\x6c\141\x62\47\x2c\x20\x35\60\x2c\x20\65\x30\54\40\x24\50\x77\x69\x6e\x64\157\x77\51\x2e\167\x69\x64\164\150\50\51\x2d\x31\x30\x30\x2c\40\x24\x28\167\151\x6e\x64\157\x77\51\x2e\x68\x65\x69\x67\150\164\x28\x29\x2d\61\x30\60\51\73\12\x20\40\x20\40\x20\40\40\x20\40\40\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\40\167\123\143\x63\154\x61\x62\56\163\x65\x74\x54\x65\170\164\x28\x27\123\103\103\40\x4c\x61\x62\x27\51\73\12\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\167\x53\x63\x63\x6c\141\142\56\x61\164\x74\141\x63\150\105\166\145\x6e\164\x28\47\157\156\x43\x6c\157\163\x65\x27\54\40\x66\x75\x6e\x63\x74\151\x6f\156\50\x77\x69\156\51\173\12\40\40\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\x20\40\167\123\143\x63\154\141\x62\x2e\150\151\x64\x65\50\51\x3b\12\40\x20\40\x20\40\40\x20\x20\40\40\40\40\40\x20\x20\40\40\40\40\x20\40\x20\40\40\x20\40\40\x20\x72\x65\164\x75\x72\156\x20\146\x61\154\163\145\x3b\12\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\40\40\x20\x7d\51\x3b\12\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x24\56\147\x65\164\x28\x27\x69\x6e\144\x65\x78\56\160\150\x70\77\141\x6a\x61\170\75\61\x26\141\x63\x74\75\141\154\x6c\137\x77\151\156\55\x73\143\143\x6c\x61\142\x5f\x69\156\x69\x74\x27\x2c\x66\x75\x6e\143\164\x69\x6f\x6e\50\x64\141\164\x61\51\173\xa\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x24\50\x27\x23\x6a\163\x45\170\x65\143\165\164\145\x27\x29\x2e\150\x74\x6d\154\50\144\141\164\141\51\73\xa\40\x20\x20\40\x20\40\40\40\x20\x20\40\40\x20\40\40\40\40\40\40\40\40\x20\x20\x20\x7d\51\73\xa\40\40\40\40\x20\40\x20\x20\x20\40\40\40\40\x20\40\40\40\x20\x20\40\x7d\x65\x6c\x73\x65\173\xa\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x24\x2e\x67\x65\x74\x28\x27\x69\156\144\145\x78\56\160\150\160\x3f\141\x6a\141\170\75\x31\46\141\143\x74\75\x61\x6c\154\x5f\167\x69\x6e\x2d\163\x63\143\154\141\142\x5f\x69\156\x69\164\x27\54\x66\165\x6e\143\x74\x69\157\156\50\x64\141\x74\x61\51\x7b\12\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\40\40\40\40\40\40\x20\40\40\40\40\x24\50\x27\43\152\163\105\x78\x65\143\x75\164\x65\47\51\56\150\164\155\154\x28\144\x61\164\141\51\x3b\xa\40\40\40\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\40\40\x20\x20\40\40\x20\40\x20\175\51\x3b\12\x20\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\167\123\x63\x63\x6c\141\x62\56\x73\x68\157\167\50\x29\73\xa\x20\x20\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\40\x20\x7d\xa\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\x7d"; goto ojN84; PmCRl: $menu_js_action .= "\12\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\x20\x69\146\x20\50\x69\144\75\75\47\141\x63\143\x5f\161\165\x69\143\153\141\143\x63\157\x75\x6e\x74\x69\156\x67\x27\51\12\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\173\12\40\40\40\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\x69\146\x20\x28\41\144\x68\170\x57\x69\156\x73\56\151\163\x57\151\x6e\144\157\167\50\x27\167\105\170\160\157\162\x74\x4f\x72\x64\145\x72\163\x27\51\x29\12\40\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x7b\xa\40\x20\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\167\105\170\x70\x6f\x72\164\117\162\x64\145\x72\163\x20\75\40\144\x68\x78\x57\x69\156\x73\x2e\143\x72\145\x61\164\145\127\151\156\144\x6f\167\x28\47\x77\x45\x78\x70\x6f\x72\x74\x4f\162\x64\145\162\x73\47\x2c\40\x35\x30\54\40\x35\60\x2c\40\x24\50\167\151\x6e\144\x6f\167\x29\56\167\x69\x64\x74\x68\x28\x29\x2d\x31\60\x30\x2c\x20\44\x28\x77\151\x6e\x64\157\167\x29\x2e\150\145\151\147\x68\164\50\51\55\61\x30\60\x29\x3b\xa\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\x77\105\170\160\157\162\x74\x4f\x72\144\145\x72\x73\56\x73\x65\x74\x54\145\x78\164\50\47" . _l("\117\x72\144\x65\162\40\105\x78\x70\x6f\x72\164\40\120\x72\x6f", 1) . "\x27\51\73\12\x20\40\x20\40\40\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\167\105\x78\x70\157\x72\164\117\x72\x64\145\162\x73\56\x61\164\164\141\x63\150\105\166\145\x6e\164\x28\47\157\156\103\x6c\157\x73\x65\47\54\x20\x66\x75\156\143\164\x69\157\156\50\x77\x69\x6e\x29\173\12\40\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\x20\40\x77\105\x78\160\157\162\x74\x4f\162\x64\145\162\163\x2e\x68\x69\x64\x65\50\x29\x3b\xa\40\x20\40\40\x20\40\40\40\40\x20\40\40\40\x20\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x72\145\164\x75\162\156\40\x66\141\x6c\x73\145\73\12\40\40\40\x20\40\x20\40\40\x20\x20\x20\40\x20\40\40\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\40\40\175\x29\73\xa\40\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\x20\44\x2e\x67\145\164\50\47\x69\x6e\144\145\x78\x2e\160\x68\160\77\141\x6a\141\x78\x3d\61\x26\141\143\164\x3d\157\162\144\x5f\x77\x69\x6e\55\145\170\160\157\162\164\137\151\156\151\x74\x27\54\146\165\x6e\x63\164\151\157\x6e\x28\144\141\164\x61\x29\x7b\12\x20\40\40\40\40\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\44\50\x27\x23\x6a\163\x45\170\145\143\165\164\145\x27\x29\x2e\x68\164\x6d\x6c\x28\144\141\164\141\51\x3b\12\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\175\51\x3b\12\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\x7d\145\x6c\x73\x65\x7b\xa\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\44\56\147\x65\x74\50\x27\x69\x6e\144\145\170\56\160\150\x70\x3f\x61\x6a\x61\x78\75\x31\46\141\x63\x74\x3d\157\x72\144\137\167\x69\x6e\55\145\x78\160\157\162\x74\x5f\151\156\x69\164\47\54\146\x75\156\143\x74\x69\x6f\156\50\x64\x61\164\x61\x29\x7b\xa\x20\40\40\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x24\x28\x27\x23\x6a\163\105\x78\145\143\x75\164\145\47\x29\x2e\x68\164\x6d\154\50\144\141\x74\x61\x29\73\xa\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\175\51\73\12\40\40\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\167\105\170\x70\157\x72\x74\x4f\x72\144\145\x72\x73\56\163\x68\x6f\167\x28\x29\73\xa\x20\x20\40\40\x20\x20\40\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\40\40\40\40\x20\x7d\12\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\175\x20\40\40\xa\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\40\40\40\40\x20"; goto OsF4y; QWmiD: $menu_js_action .= "\xa\x20\x20\x20\40\40\x20\40\40\40\40\40\40\40\40\40\40\151\x66\40\x28\151\x64\75\75\47\x6c\151\156\153\x5f\x70\x73\x65\47\x29\173\12\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x77\x69\156\x64\157\167\56\x6f\160\145\156\50\47\x68\x74\x74\x70\x73\x3a\57\x2f\x77\167\x77\x2e\x73\164\x6f\x72\x65\x63\157\155\x6d\x61\x6e\144\145\162\x2e\x63\x6f\x6d\47\51\x3b\12\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\40\40\x7d\xa\x20\x20\x20\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\151\146\40\50\151\x64\x3d\75\x27\x68\145\x6c\x70\x5f\150\x65\x6c\160\47\x29\173\12\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\167\x69\156\144\157\167\x2e\157\160\145\x6e\x28\x27" . getScExternalLink("\x73\165\x70\x70\157\162\x74\x5f\150\157\155\x65") . "\x27\51\x3b\12\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\175\xa\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\x20\151\x66\x20\50\151\x64\75\75\x27\x68\145\x6c\x70\137\x74\151\x70\x73\137\x64\x69\x73\160\154\141\171\x27\51\173\xa\x20\x20\40\40\40\40\x20\x20\x20\40\x20\40\40\x20\40\40\40\x20\40\40\x69\146\40\50\x21\x64\x68\x78\x57\x69\156\163\x2e\151\x73\x57\151\156\144\x6f\167\50\x27\x77\124\x69\160\x73\x27\x29\51\12\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\40\40\x7b\xa\40\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\x20\167\124\x69\x70\163\x20\x3d\x20\144\x68\x78\x57\151\x6e\x73\x2e\x63\x72\145\x61\164\145\x57\151\156\x64\157\167\50\47\x77\x54\x69\x70\163\x27\54\x20\61\x35\x30\x2c\40\63\60\x2c\40\70\x30\x30\54\40\115\141\164\150\x2e\x6d\151\x6e\x28\67\62\x35\x2c\44\x28\167\151\x6e\x64\x6f\x77\x29\x2e\x68\145\x69\147\x68\x74\x28\51\55\x33\60\x29\51\73\12\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\40\40\40\167\124\x69\x70\163\56\x62\165\164\164\x6f\156\x28\x27\x70\141\162\153\47\51\56\150\x69\x64\145\x28\x29\x3b\12\x20\40\x20\40\40\40\x20\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\167\x54\151\160\163\x2e\142\x75\164\x74\157\156\50\47\x6d\x69\156\155\141\x78\x27\51\x2e\x68\x69\x64\145\50\51\x3b\12\x20\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\x77\x54\x69\x70\x73\x2e\x73\x65\x74\124\145\x78\x74\50\x27" . _l("\124\151\x70\x73", 1) . "\40\55\40" . _l("\106\x69\156\x64\x20\141\x6c\154\x20\x74\151\x70\163\x20\151\156\40\x48\x65\154\x70\40\x26\x67\164\73\40\124\151\160\163", 1) . "\47\51\73\12\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\40\40\40\x77\x54\151\160\163\x2e\x61\164\x74\141\143\x68\x55\122\114\x28\47\x74\x69\x70\x73\57\151\156\144\x65\x78\56\160\x68\x70\x3f\x64\151\x73\x70\x3d\146\162\157\156\x74\x74\151\x70\x26\154\x61\x6e\x67\75" . $user_lang_iso . "\46\151\x64\x5f\145\155\x70\154\x6f\x79\x65\x65\75" . $sc_agent->id_employee . "\x27\54\x20\164\x72\x75\x65\51\73\xa\40\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\167\124\151\x70\163\x2e\x61\x74\x74\141\x63\x68\105\166\145\x6e\164\50\47\x6f\x6e\103\x6c\157\x73\145\x27\x2c\x20\x66\x75\156\x63\164\x69\157\x6e\x28\167\151\156\51\173\12\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\162\145\x74\x75\x72\156\x20\x74\162\x75\145\x3b\xa\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\40\40\40\40\x20\x20\40\x20\x20\x20\x20\175\x29\x3b\xa\x20\x20\40\40\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\40\40\175\145\x6c\x73\x65\x7b\xa\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\40\40\167\x54\151\160\x73\x2e\x61\164\164\141\x63\x68\125\122\114\x28\x27\164\151\160\x73\57\151\x6e\144\145\170\56\x70\150\x70\x3f\x64\x69\163\x70\75\146\x72\157\x6e\164\x74\151\160\46\154\141\x6e\x67\75" . $user_lang_iso . "\46\151\144\137\x65\x6d\160\x6c\x6f\171\145\145\75" . $sc_agent->id_employee . "\x27\x2c\40\164\x72\165\x65\x29\x3b\12\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x77\x54\151\x70\x73\56\x73\150\x6f\167\50\51\73\xa\x20\40\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\175\xa\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\175\12\x20\40\40\40\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\151\146\x20\50\151\144\x3d\75\47\150\145\x6c\160\x5f\164\x69\x70\163\x5f\x73\145\x74\164\x69\156\x67\x73\x27\51\x7b\12\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\40\151\x66\x20\x28\41\x64\150\x78\x57\151\156\x73\56\x69\163\x57\x69\x6e\x64\x6f\167\50\47\167\124\151\x70\x73\47\x29\51\xa\40\40\x20\40\40\40\40\40\40\x20\x20\40\40\40\40\40\40\x20\x20\x20\173\12\x20\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x77\124\x69\160\163\x20\x3d\40\x64\150\x78\127\151\156\x73\x2e\143\162\145\141\164\x65\127\x69\x6e\144\157\x77\50\47\x77\124\151\160\x73\x27\54\40\61\65\60\x2c\x20\63\60\x2c\x20\x38\x30\x30\x2c\40\115\141\164\150\56\x6d\x69\156\x28\67\x32\x35\x2c\x24\x28\x77\x69\156\x64\157\167\51\56\150\145\151\147\150\x74\50\51\x2d\63\60\x29\x29\73\12\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\40\167\124\x69\x70\163\x2e\x62\165\164\x74\x6f\156\x28\47\160\x61\x72\x6b\x27\51\56\x68\151\144\x65\50\51\73\xa\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\x77\x54\x69\160\x73\x2e\x62\165\x74\x74\157\156\x28\x27\155\x69\x6e\155\141\170\x27\x29\56\150\151\x64\145\x28\51\x3b\xa\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\167\x54\151\x70\163\56\163\x65\x74\124\x65\170\164\50\x27" . _l("\x54\151\160\163", 1) . "\47\x29\73\xa\x20\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\40\40\167\124\151\160\x73\x2e\x61\x74\164\141\x63\150\x55\122\114\50\x27\164\x69\160\163\x2f\x69\x6e\x64\x65\170\56\x70\x68\x70\77\144\151\163\x70\x3d\160\x72\145\146\x65\162\145\156\143\145\x26\154\141\x6e\x67\x3d" . $user_lang_iso . "\46\x69\x64\x5f\145\x6d\160\x6c\157\x79\145\145\75" . $sc_agent->id_employee . "\x27\54\40\x74\x72\165\145\x29\73\12\x20\x20\x20\40\x20\40\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x77\x54\151\160\163\56\141\164\164\141\x63\x68\105\166\x65\156\x74\50\47\157\156\x43\154\157\x73\x65\47\54\40\x66\x75\x6e\143\x74\x69\x6f\156\50\x77\x69\x6e\51\173\xa\40\40\40\x20\40\x20\40\x20\40\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\162\145\x74\165\x72\156\x20\x74\x72\165\145\x3b\12\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\175\51\73\12\40\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\x7d\x65\x6c\x73\x65\173\xa\x20\x20\40\x20\x20\40\40\40\40\40\40\40\40\40\40\40\40\40\x20\40\x20\40\x20\x20\167\x54\x69\x70\163\56\x61\x74\164\141\x63\x68\125\x52\x4c\50\x27\x74\151\160\x73\x2f\151\156\144\x65\170\56\x70\x68\x70\x3f\x64\x69\163\x70\x3d\160\162\x65\146\x65\x72\145\156\x63\x65\46\x6c\141\156\147\x3d" . $user_lang_iso . "\46\151\144\137\145\x6d\x70\154\157\171\145\145\x3d" . $sc_agent->id_employee . "\x27\54\x20\x74\x72\165\145\51\73\xa\40\x20\x20\40\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\x20\40\40\40\40\x20\x77\124\151\160\163\56\163\x68\x6f\167\50\x29\73\xa\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\175\12\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x7d\xa\x20\40\40\40\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\151\x66\40\50\x69\x64\x3d\75\47\x68\145\x6c\x70\137\145\x6e\x74\145\x72\154\x69\143\x65\x6e\x73\x65\x27\51\x7b\12\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\151\146\40\50\41\x64\x68\x78\127\151\156\163\x2e\151\x73\127\x69\156\x64\x6f\167\x28\x27\167\x45\x6e\164\x65\x72\x4c\151\x63\145\x6e\163\145\x27\x29\51\xa\40\40\40\40\40\x20\40\40\x20\x20\40\40\40\x20\x20\40\40\40\x20\40\x7b\xa\40\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\40\40\x20\x77\105\x6e\164\145\162\114\x69\143\x65\156\x73\x65\40\75\x20\144\x68\170\x57\x69\156\163\56\x63\162\x65\141\164\145\127\151\156\x6