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 use Tygh\Registry; use Tygh\Settings; use Tygh\SoftSolid\SsOmnibus\LoggerAddons; u..
Decoded Output download
<?php
use Tygh\Registry; use Tygh\Settings; use Tygh\SoftSolid\SsOmnibus\LoggerAddons; use Tygh\SoftSolid\SsOmnibus\LicenseAddons; use Tygh\Providers\StorefrontProvider; use Tygh\SoftSolid\SsOmnibus\SettingsExtended; use Tygh\Domain\SoftwareProduct\Version; goto f_Fmv; MupyL: function fn_ss_omnibus_get_settings_objects($addon_id) { goto WU3RO; X4vJ8: $settings_serialize = serialize($settings); goto E3UU6; y7YGQ: foreach ($settings_objects as $object) { goto QnXBy; u_ZXv: P_MhG: goto KJjEU; jzvRH: $records = db_get_array("SELECT * FROM ?:settings_vendor_values WHERE object_id = ?i", $object["object_id"]); goto P4Ihn; KJjEU: VL4Uf: goto zIsQN; QnXBy: $condition = db_get_field("SELECT COUNT(*) FROM ?:settings_vendor_values WHERE object_id = ?i", $object["object_id"]); goto j2XH7; j2XH7: if (!$condition) { goto VL4Uf; } goto jzvRH; P4Ihn: foreach ($records as $record) { goto ncGFn; M5qAf: $settings[] = $record; goto SFiq7; ncGFn: $record["name"] = $object["name"]; goto M5qAf; SFiq7: zH_pp: goto oQvD7; oQvD7: } goto u_ZXv; zIsQN: PxYWS: goto uEGy9; uEGy9: } goto EbEAh; mra7I: $settings_objects = db_get_array("SELECT * FROM ?:settings_objects WHERE name LIKE ?l", $addon_id . "%"); goto Lq1Or; EbEAh: NuSVO: goto X4vJ8; E3UU6: $_REQUEST["settings_serialize"] = $settings_serialize; goto QQY8D; QQY8D: IbYvY: goto fSy2c; Lq1Or: $settings = array(); goto y7YGQ; WU3RO: if (!(fn_allowed_for("MULTIVENDOR") || fn_allowed_for("ULTIMATE"))) { goto IbYvY; } goto mra7I; fSy2c: } goto G4gVj; f_Fmv: require_once "hooks.php"; goto JIYEI; pz1zP: die("Access denied"); goto iKBo0; eWxSN: function fn_ss_omnibus_get_lowest_price($product) { goto PQIwA; BIjeT: vmRT3: goto gSoRB; CYkor: $product_id = $product["product_id"]; goto HAFOu; WNZ_E: $lowest_price = $price; goto r0lZ6; ELxEk: $lowest_price = db_get_field("SELECT price FROM ?:product_prices WHERE product_id = ?i AND lower_limit = ?i", $product_id, 1); goto O5XV9; GKaeF: if (!(isset($addon_params["ss_omnibus_info_use_promotions"]) && $addon_params["ss_omnibus_info_use_promotions"] == "Y")) { goto vmRT3; } goto Kcdvn; i6l4c: if ($product > 0) { goto z2_Nx; } goto jLABo; dZ_PJ: oel8k: goto CYkor; eZ3B8: aNMNZ: goto uHPsy; ml2Cf: if (!fn_allowed_for("ULTIMATE")) { goto aNMNZ; } goto DTbc5; uHPsy: if (isset($addon_params["ss_omnibus_full_history"]) && $addon_params["ss_omnibus_full_history"] == "Y") { goto huX0G; } goto ylh2W; j8XLu: $product = db_get_row("SELECT product_id, price AS base_price FROM ?:product_prices WHERE product_id = ?i AND lower_limit = ?i", $product_id, 1); goto OXA0Z; Ino8_: huX0G: goto jqG_K; iXvX9: goto bUcJH; goto Ino8_; wzGHP: $product_id = $product; goto j8XLu; xL0b3: return $lowest_price; goto UD0yu; HAFOu: goto pBw7N; goto H8m9r; ylh2W: $price[] = db_get_field("SELECT MIN(price_old) FROM ?:ss_omnibus WHERE product_id = ?i AND type = ?s {$condition}", $product_id, "price"); goto DjQJD; jqG_K: $ss_omnibus_period = $addon_params["ss_omnibus_period"] ? $addon_params["ss_omnibus_period"] : DEFAULT_PERIOD; goto IsEee; s0PKa: bUcJH: goto Yt3dX; gSoRB: $lowest_price = number_format(fn_format_price_by_currency($lowest_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 2, ".", '') . " " . CART_SECONDARY_CURRENCY; goto xL0b3; O5XV9: eo8Oa: goto GKaeF; Kcdvn: fn_ss_omnibus_info_promotion($lowest_price, $product); goto BIjeT; j4W4f: $addon_params = fn_ss_omnibus_get_options($company_id); goto bYDqf; QzocU: $price[] = db_get_field("SELECT MIN(price_new) FROM ?:ss_omnibus WHERE product_id = ?i AND type = ?s AND timestamp > ?i {$condition}", $product_id, "price", $period); goto s0PKa; OXA0Z: pBw7N: goto GPR6O; jLABo: goto pBw7N; goto dZ_PJ; PQIwA: if (is_array($product) && !empty($product)) { goto oel8k; } goto i6l4c; bYDqf: $lowest_price = 0; goto pyjht; r0lZ6: dkf9Y: goto zxFNS; GPR6O: $company_id = db_get_field("SELECT company_id FROM ?:products WHERE product_id = ?i", $product_id); goto j4W4f; NzgLe: $condition = ''; goto ml2Cf; H8m9r: z2_Nx: goto wzGHP; DjQJD: $price[] = db_get_field("SELECT MIN(price_new) FROM ?:ss_omnibus WHERE product_id = ?i AND type = ?s {$condition}", $product_id, "price"); goto iXvX9; DTbc5: $company_id = Registry::get("runtime.company_id") ? Registry::get("runtime.company_id") : Registry::get("runtime.forced_company_id"); goto vFPT0; zxFNS: if (!($lowest_price == 0 && $addon_params["ss_omnibus_display_if_no_records"] == "Y")) { goto eo8Oa; } goto ELxEk; vFPT0: $condition .= db_quote(" AND company_id = ?i", $company_id); goto eZ3B8; Yt3dX: $price = min($price); goto B_HEw; pyjht: $price = array(); goto NzgLe; B_HEw: if (!($price > 0)) { goto dkf9Y; } goto WNZ_E; IsEee: $period = time() - 86400 * $ss_omnibus_period; goto R5FV1; R5FV1: $price[] = db_get_field("SELECT MIN(price_old) FROM ?:ss_omnibus WHERE product_id = ?i AND type = ?s AND timestamp > ?i {$condition}", $product_id, "price", $period); goto QzocU; UD0yu: } goto P9FB0; kHyCu: function fn_ss_omnibus_get_options($company_id = 0) { goto ltl38; GIeqr: eVB4j: goto K1s17; uICfE: $company_id = Registry::get("runtime.company_id") ? Registry::get("runtime.company_id") : Registry::get("runtime.forced_company_id"); goto RHM7x; OnT3o: return $options; goto HzUbf; RHM7x: s244x: goto jhyqx; Mn3QO: $options["ss_omnibus_display_button_style"] = SettingsExtended::instance()->getValue("ss_omnibus_display_button_style", "ss_omnibus", $company_id); goto Mx10X; MpbdB: $options["ss_omnibus_info_font_size_popup"] = SettingsExtended::instance()->getValue("ss_omnibus_info_font_size_popup", "ss_omnibus", $company_id); goto u1ZYz; u1ZYz: $options["ss_omnibus_display_info_kind"] = SettingsExtended::instance()->getValue("ss_omnibus_display_info_kind", "ss_omnibus", $company_id); goto Mn3QO; ltl38: if (!fn_allowed_for("ULTIMATE")) { goto s244x; } goto uICfE; jhyqx: $options = Registry::get("addons.ss_omnibus"); goto hNmCN; Mx10X: $options["ss_omnibus_sort_table"] = SettingsExtended::instance()->getValue("ss_omnibus_sort_table", "ss_omnibus", $company_id); goto uycDu; RMEA0: $options["ss_omnibus_info_font_size"] = SettingsExtended::instance()->getValue("ss_omnibus_info_font_size", "ss_omnibus", $company_id); goto MpbdB; hNmCN: if (!fn_allowed_for("MULTIVENDOR")) { goto eVB4j; } goto uC_G5; uycDu: Y93N9: goto GIeqr; K1s17: $options["ss_omnibus_period"] = $options["ss_omnibus_period"] ? $options["ss_omnibus_period"] : DEFAULT_PERIOD; goto OnT3o; uC_G5: if (!(isset($company_id) && $company_id > 0)) { goto Y93N9; } goto FjAOt; FjAOt: $options["ss_omnibus_display_kind"] = SettingsExtended::instance()->getValue("ss_omnibus_display_kind", "ss_omnibus", $company_id); goto RMEA0; HzUbf: } goto d4Fqd; d4Fqd: function fn_ss_omnibus_check_if_changes_present($product_id = 0, $c_id = 0) { goto AUEu3; lrj1e: $company_id = $c_id; goto K94qs; ED7mv: if (!(isset($c_id) && $c_id > 0)) { goto E9k0h; } goto lrj1e; PAn9_: $ss_omnibus_period = $addon_params["ss_omnibus_period"] ? $addon_params["ss_omnibus_period"] : DEFAULT_PERIOD; goto pPPRF; jyRGX: $condition = ''; goto ED7mv; pPPRF: $period = time() - 86400 * $ss_omnibus_period; goto iyFg8; rtWxs: $records = array(); goto PAn9_; yfVsD: foreach ($records as &$record) { goto OGir5; kpHA0: CInVd: goto Wip9K; OGir5: $record["price_old"] = number_format(fn_format_price_by_currency($record["price_old"], CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 2, ".", '') . " " . CART_SECONDARY_CURRENCY; goto qWXSr; qWXSr: $record["price_new"] = number_format(fn_format_price_by_currency($record["price_new"], CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 2, ".", '') . " " . CART_SECONDARY_CURRENCY; goto kpHA0; Wip9K: } goto JCbEz; K94qs: $condition .= db_quote(" AND company_id = ?i", $company_id); goto LmTO4; LmTO4: E9k0h: goto EgrBU; EgrBU: $addon_params = fn_ss_omnibus_get_options($company_id); goto rtWxs; AUEu3: $company_id = db_get_field("SELECT company_id FROM ?:products WHERE product_id = ?i", $product_id); goto jyRGX; kOjHL: return $records; goto gTMCZ; JCbEz: zYvC7: goto kOjHL; iyFg8: $records = db_get_array("SELECT * FROM ?:ss_omnibus WHERE product_id = ?i AND type = ?s AND timestamp > ?i {$condition} ORDER BY timestamp " . $addon_params["ss_omnibus_sort_table"], $product_id, "price", $period); goto yfVsD; gTMCZ: } goto eWxSN; cvlQa: function fn_ss_omnibus_install() { goto Azgpk; Ts5O9: ypMml: goto VjqYA; wDEsG: L4Ui9: goto LVlhx; xErgj: db_query("REPLACE INTO ?:privileges (privilege, is_default, section_id, group_id, is_view) VALUES ('ss_omnibus_logger.show', 'Y', 'ss_addons', 'ss_omnibus', 'Y')"); goto wDEsG; taQeM: db_query("REPLACE INTO ?:privileges (privilege, is_default, section_id) VALUES ('ss_omnibus_logger.manage', 'Y', 'ss_addons')"); goto S_Vky; Azgpk: LicenseAddons::instance()->checkLicense("INSTALLED"); goto QPjm0; S_Vky: db_query("REPLACE INTO ?:privileges (privilege, is_default, section_id) VALUES ('ss_omnibus_logger.show', 'Y', 'ss_addons')"); goto FTR9m; QPjm0: if (fn_ss_omnibus_check_version("4.10.1", "<")) { goto ypMml; } goto taQeM; VjqYA: db_query("REPLACE INTO ?:privileges (privilege, is_default, section_id, group_id, is_view) VALUES ('ss_omnibus_logger.manage', 'Y', 'ss_addons', 'ss_omnibus', 'Y')"); goto xErgj; FTR9m: goto L4Ui9; goto Ts5O9; LVlhx: } goto Kfn3J; P9FB0: function fn_ss_omnibus_info_promotion(&$lowest_price, $product = array()) { goto p1_QQ; eGFo9: foreach ($promotions as $promotion_data) { goto ttvVW; Ki79k: foreach ($conditions["conditions"] as $condition) { goto WP4QD; iZFZa: goto tL2Ga; goto XmbAp; SYXnv: zi6v4: goto iZFZa; XmbAp: gLYPq: goto KZ1m1; YUZrJ: tL2Ga: goto n06uh; UA8K2: UohYa: goto fjSY2; fjSY2: ZyTSx: goto YUZrJ; pnvDR: CT5aR: goto SYXnv; WP4QD: if (!($condition["condition"] == "products")) { goto Z4Vlk; } goto EXCg9; n06uh: Z4Vlk: goto NkfB2; tnlg4: if ($condition["operator"] == "in") { goto VkRs3; } goto lkDft; VXqFp: goto tL2Ga; goto fTx1E; lkDft: if ($condition["operator"] == "nin") { goto gLYPq; } goto VXqFp; wYMfi: if (!in_array($product["product_id"], $condition_product_ids)) { goto zi6v4; } goto BCuS7; Nsdm1: foreach ($bonuses as $bonus) { goto D6jhC; XgSiS: WY_jm: goto elB24; cNA3R: $status = true; goto Ieh3e; EzoCC: IeKSa: goto XgSiS; D6jhC: if (!($bonus["bonus"] == "product_discount" && $bonus["discount_bonus"] == "by_percentage")) { goto IeKSa; } goto cNA3R; Ieh3e: goto UohYa; goto EzoCC; elB24: } goto UA8K2; EXCg9: $condition_product_ids = explode(",", $condition["value"]); goto tnlg4; BCuS7: foreach ($bonuses as $bonus) { goto L6nax; pGkSE: goto CT5aR; goto ZoVQ4; xrVDZ: tTnCq: goto xzl2y; ZoVQ4: Ob4GG: goto xrVDZ; L6nax: if (!($bonus["bonus"] == "product_discount" && $bonus["discount_bonus"] == "by_percentage")) { goto Ob4GG; } goto hl611; hl611: $status = true; goto pGkSE; xzl2y: } goto pnvDR; KZ1m1: if (in_array($product["product_id"], $condition_product_ids)) { goto ZyTSx; } goto Nsdm1; fTx1E: VkRs3: goto wYMfi; NkfB2: ONZ6E: goto YJWJr; YJWJr: } goto Pwskp; JgXhX: UKCGN: goto oHIR5; ttvVW: $bonuses = unserialize($promotion_data["bonuses"]); goto vcsym; vcsym: $conditions = unserialize($promotion_data["conditions"]); goto Ki79k; Pwskp: qkLd1: goto JgXhX; oHIR5: } goto nnF8X; UeXQx: bAgRL: goto eYL8g; p1_QQ: $status = false; goto lZcKF; eYL8g: Ytacp: goto lLxHo; nnF8X: Of5Bq: goto GpWeN; lZcKF: $promotions = db_get_array("SELECT * FROM ?:promotions WHERE ss_omnibus_apply = ?s AND status = ?s", "Y", "A"); goto BgP7C; GpWeN: if (!($lowest_price == 0 && $status)) { goto bAgRL; } goto b0i8_; BgP7C: if (!(isset($promotions) && is_array($promotions))) { goto Ytacp; } goto eGFo9; b0i8_: $lowest_price = $product["base_price"]; goto UeXQx; lLxHo: } goto zpwFK; W165G: if (defined("BOOTSTRAP")) { goto C9qkE; } goto pz1zP; KHgOB: function fn_ss_omnibus_check_promotion_on_product($product = array()) { goto dKM51; ify9v: $promotions = db_get_array("SELECT * FROM ?:promotions WHERE ss_omnibus_apply = ?s AND status = ?s", "Y", "A"); goto zRaCW; zCWmV: return $status; goto ZXNrp; zRaCW: if (!(isset($promotions) && is_array($promotions))) { goto d8UZh; } goto iKp_w; HbvTF: d8UZh: goto zCWmV; uy6VZ: Zxptf: goto HbvTF; dKM51: $status = false; goto ify9v; iKp_w: foreach ($promotions as $promotion_data) { goto n4r6Y; VocXM: $conditions = unserialize($promotion_data["conditions"]); goto xunF9; fFntI: dUZix: goto W8e84; xunF9: foreach ($conditions["conditions"] as $condition) { goto kEuPh; QBGYS: if ($condition["operator"] == "in") { goto jmpy2; } goto yk3hc; P3yM2: TRVaX: goto E0yW5; uDxUd: FRlfh: goto t2Dng; WydJR: mSvJP: goto f35Dy; RrICp: KYNLE: goto QFWxT; E0yW5: if (in_array($product["product_id"], $condition_product_ids)) { goto gNYjk; } goto BUI8u; yk3hc: if ($condition["operator"] == "nin") { goto TRVaX; } goto ysklZ; I0gbW: $condition_product_ids = explode(",", $condition["value"]); goto QBGYS; BUI8u: foreach ($bonuses as $bonus) { goto e3C6o; vsJt3: goto FRlfh; goto pXta5; O403Y: t4y8X: goto d1Qpy; e3C6o: if (!($bonus["bonus"] == "product_discount" && $bonus["discount_bonus"] == "by_percentage")) { goto OziRB; } goto iA5LG; iA5LG: $status = true; goto vsJt3; pXta5: OziRB: goto O403Y; d1Qpy: } goto uDxUd; ysklZ: goto lVEb2; goto ODkdc; ODkdc: jmpy2: goto lQUUj; kEuPh: if (!($condition["condition"] == "products")) { goto qEafr; } goto I0gbW; nUjnn: lVEb2: goto f8vq3; EvK5I: foreach ($bonuses as $bonus) { goto Jf8jw; P2ADO: goto t6Kro; goto P5Ud6; dZXHF: mnuZK: goto fK3WZ; Jf8jw: if (!($bonus["bonus"] == "product_discount" && $bonus["discount_bonus"] == "by_percentage")) { goto WeX13; } goto dUR2s; P5Ud6: WeX13: goto dZXHF; dUR2s: $status = true; goto P2ADO; fK3WZ: } goto sgOIQ; f35Dy: goto lVEb2; goto P3yM2; lQUUj: if (!in_array($product["product_id"], $condition_product_ids)) { goto mSvJP; } goto EvK5I; f8vq3: qEafr: goto RrICp; t2Dng: gNYjk: goto nUjnn; sgOIQ: t6Kro: goto WydJR; QFWxT: } goto fFntI; n4r6Y: $bonuses = unserialize($promotion_data["bonuses"]); goto VocXM; W8e84: V5Qka: goto NIQy8; NIQy8: } goto uy6VZ; ZXNrp: } goto rAaLo; iKBo0: C9qkE: goto kHyCu; arndi: function fn_ss_omnibus_check_display($product = array()) { goto XVI1F; Pntw0: nBRo5: goto pVdjR; pVdjR: yKo0x: goto rEKJO; VkYfW: if (!(isset($addon_params["ss_omnibus_only_discounted_products"]) && $addon_params["ss_omnibus_only_discounted_products"] == "Y")) { goto yKo0x; } goto AqZkt; s6__5: $status = fn_ss_omnibus_check_promotion_on_product($product); goto W28mN; OzmeX: if (!($addon_params["ss_omnibus_display_kind"] == "info" && $addon_params["ss_omnibus_display_if_no_records"] == "Y")) { goto QbQvz; } goto dfI8Q; W28mN: IefSk: goto GxDHy; GxDHy: return $status; goto piF3Q; GhWxl: $status = true; goto Pntw0; dfI8Q: $status = true; goto RAycT; AqZkt: if (!($product["price"] < $product["list_price"])) { goto nBRo5; } goto GhWxl; RAycT: QbQvz: goto vFqKZ; vFqKZ: wPpQn: goto VkYfW; J9lC8: $status = false; goto sHaUw; sHaUw: $count = db_get_field("SELECT COUNT(*) FROM ?:ss_omnibus WHERE product_id = ?i AND price_old > ?i", $product["product_id"], 0); goto b8zAn; b8zAn: if ($count) { goto wPpQn; } goto OzmeX; XVI1F: $addon_params = Registry::get("addons.ss_omnibus"); goto J9lC8; rEKJO: if (!(isset($addon_params["ss_omnibus_info_use_promotions"]) && $addon_params["ss_omnibus_info_use_promotions"] == "Y")) { goto IefSk; } goto s6__5; piF3Q: } goto KHgOB; JIYEI: require_once "ss_omnibus_logger.php"; goto W165G; Rf7GY: function fn_ss_omnibus_get_stats() { goto WHY2U; WimEz: return $stats; goto VCARe; hn9Ei: if (class_exists("\Tygh\SoftSolid\SsOmnibus\LicenseAddons")) { goto pbTSn; } goto rXy9W; rXy9W: $stats = "<div style="float:center;font-size:16px">" . __("ss_omnibus_stats_no_activity") . "</div>"; goto lWQVf; yHJiI: pbTSn: goto GkATY; lWQVf: goto ffpNT; goto yHJiI; GkATY: $stats = LicenseAddons::instance()->getStats(); goto TcC64; WHY2U: $stats = array(); goto hn9Ei; TcC64: ffpNT: goto WimEz; VCARe: } goto cvlQa; rAaLo: function fn_settings_actions_addons_post_ss_omnibus($status) { goto O3hx4; Ai0aQ: xtKkS: goto I_mWD; njZaq: $_SESSION[$_REQUEST["id"]] = "A"; goto Ai0aQ; O3hx4: if (!($status == "A")) { goto xtKkS; } goto njZaq; I_mWD: } goto MupyL; G4gVj: function fn_ss_omnibus_check_version($checked_version = '', $operator = "=") { goto t91cs; BOCfT: ekqWb: goto gfW7E; jhb_1: $compare_version = $checked_version; goto Lxzq7; jCN4i: if (class_exists("\Tygh\Domain\SoftwareProduct\Version")) { goto ntBph; } goto PUesB; gfW7E: return $result; goto h_x41; eeAbK: ntBph: goto kvHxA; cx5Bq: $version = new Version(PRODUCT_VERSION); goto DP5A_; EaDPE: $result = $compare_version->compareWith($version, $operator); goto xJw8w; KDoDV: goto TCkFv; goto eeAbK; kvHxA: $status = 1; goto cx5Bq; PUesB: $status = 2; goto Q1L1m; xJw8w: TCkFv: goto BOCfT; qaHXi: if (!(isset($checked_version) && !empty($checked_version))) { goto ekqWb; } goto jCN4i; t91cs: $result = false; goto qaHXi; Q1L1m: $version = PRODUCT_VERSION; goto jhb_1; DP5A_: $compare_version = new Version($checked_version); goto EaDPE; Lxzq7: $result = version_compare($checked_version, $version, $operator); goto KDoDV; h_x41: } goto Rf7GY; zpwFK: function fn_ss_omnibus_delete_price($product_id = 0) { goto IlfZO; kGIbQ: if (empty($records)) { goto xeRkx; } goto RgDoA; V4oko: if (isset($addon_params["ss_omnibus_period"]) && $addon_params["ss_omnibus_period"] > 0) { goto SVhD2; } goto wZjhh; aD2ZC: if (!(isset($addon_params["ss_omnibus_full_history"]) && $addon_params["ss_omnibus_full_history"] == "N")) { goto xIjWN; } goto mj7kh; Oq_Mm: lSVgB: goto t4p1s; wZjhh: $ss_omnibus_period = DEFAULT_PERIOD; goto b9MU1; t4p1s: $timestamp = strtotime("-" . $ss_omnibus_period . " days", time()); goto b8tMN; kzgoe: LoggerAddons::instance()->log("Omnibus - delete", "INFO", $product_id, "products", serialize(array("condition" => $condition, "records" => $records))); goto pjK38; IlfZO: $addon_params = fn_ss_omnibus_get_options(); goto aD2ZC; yazYV: if (!(isset($product_id) && $product_id > 0)) { goto XLe5_; } goto wH5J4; IWD1r: xIjWN: goto R0Z2u; E99dY: DJBOJ: goto mpDJT; wH5J4: $condition .= db_quote(" AND product_id = ?i", $product_id); goto pSGh0; mpDJT: xeRkx: goto IWD1r; sMlCu: $records = db_get_array("SELECT * FROM ?:ss_omnibus WHERE 1 {$condition}"); goto kGIbQ; pSGh0: XLe5_: goto V4oko; NYFp0: $ss_omnibus_period = $addon_params["ss_omnibus_period"]; goto Oq_Mm; RgDoA: $count = db_query("DELETE FROM ?:ss_omnibus WHERE 1 {$condition}"); goto Je92a; b8tMN: $condition .= db_quote(" AND timestamp < ?i", $timestamp); goto sMlCu; b9MU1: goto lSVgB; goto xw3CO; mj7kh: $condition = ''; goto yazYV; xw3CO: SVhD2: goto NYFp0; pjK38: fn_clear_cache("registry"); goto E99dY; Je92a: if (!($product_id == 0)) { goto DJBOJ; } goto kzgoe; R0Z2u: } goto arndi; Kfn3J: function fn_ss_omnibus_uninstall() { goto Kiq2V; I9EwN: VPnxW: goto FrLOu; o9hix: db_query("DELETE FROM ?:privileges WHERE privilege LIKE ?l", "ss_omnibus_logger" . "%"); goto mvTrS; FrLOu: db_query("DELETE FROM ?:privileges WHERE group_id = ?s", "ss_omnibus"); goto KJBYG; Gb6FX: if (fn_ss_omnibus_check_version("4.10.1", "<")) { goto VPnxW; } goto o9hix; Kiq2V: LicenseAddons::instance()->checkLicense("UNINSTALLED"); goto Gb6FX; mvTrS: goto p4wOH; goto I9EwN; KJBYG: p4wOH: goto Gvazf; Gvazf: } ?>
Did this file decode correctly?
Original Code
<?php
use Tygh\Registry; use Tygh\Settings; use Tygh\SoftSolid\SsOmnibus\LoggerAddons; use Tygh\SoftSolid\SsOmnibus\LicenseAddons; use Tygh\Providers\StorefrontProvider; use Tygh\SoftSolid\SsOmnibus\SettingsExtended; use Tygh\Domain\SoftwareProduct\Version; goto f_Fmv; MupyL: function fn_ss_omnibus_get_settings_objects($addon_id) { goto WU3RO; X4vJ8: $settings_serialize = serialize($settings); goto E3UU6; y7YGQ: foreach ($settings_objects as $object) { goto QnXBy; u_ZXv: P_MhG: goto KJjEU; jzvRH: $records = db_get_array("\123\105\x4c\105\x43\124\x20\x2a\x20\106\x52\x4f\x4d\x20\x3f\x3a\163\x65\x74\x74\151\x6e\147\x73\x5f\166\145\x6e\144\157\162\137\166\141\154\165\x65\163\40\127\x48\105\122\105\40\x6f\142\x6a\145\143\x74\x5f\151\144\40\75\40\77\x69", $object["\157\x62\x6a\x65\x63\x74\x5f\x69\144"]); goto P4Ihn; KJjEU: VL4Uf: goto zIsQN; QnXBy: $condition = db_get_field("\x53\x45\x4c\x45\103\124\40\103\117\x55\x4e\124\50\x2a\51\40\x46\122\117\115\x20\77\x3a\x73\x65\164\x74\x69\156\147\163\x5f\x76\145\156\144\157\162\137\166\x61\x6c\165\145\x73\40\x57\x48\105\122\105\40\157\x62\152\145\x63\164\137\151\144\x20\x3d\40\77\x69", $object["\157\142\152\145\x63\x74\x5f\151\x64"]); goto j2XH7; j2XH7: if (!$condition) { goto VL4Uf; } goto jzvRH; P4Ihn: foreach ($records as $record) { goto ncGFn; M5qAf: $settings[] = $record; goto SFiq7; ncGFn: $record["\156\x61\x6d\x65"] = $object["\x6e\141\155\x65"]; goto M5qAf; SFiq7: zH_pp: goto oQvD7; oQvD7: } goto u_ZXv; zIsQN: PxYWS: goto uEGy9; uEGy9: } goto EbEAh; mra7I: $settings_objects = db_get_array("\x53\105\x4c\105\x43\124\x20\52\x20\106\x52\117\x4d\x20\77\72\x73\x65\164\x74\151\156\x67\163\x5f\157\142\152\145\x63\x74\x73\40\127\x48\105\122\105\x20\156\141\155\145\x20\114\111\113\105\x20\x3f\154", $addon_id . "\x25"); goto Lq1Or; EbEAh: NuSVO: goto X4vJ8; E3UU6: $_REQUEST["\x73\145\x74\x74\x69\156\147\163\x5f\x73\145\162\151\x61\154\151\172\x65"] = $settings_serialize; goto QQY8D; QQY8D: IbYvY: goto fSy2c; Lq1Or: $settings = array(); goto y7YGQ; WU3RO: if (!(fn_allowed_for("\115\125\x4c\x54\x49\126\105\116\104\x4f\x52") || fn_allowed_for("\125\114\x54\111\115\101\124\105"))) { goto IbYvY; } goto mra7I; fSy2c: } goto G4gVj; f_Fmv: require_once "\x68\157\157\153\163\56\160\x68\x70"; goto JIYEI; pz1zP: die("\101\x63\x63\145\x73\x73\x20\x64\x65\156\x69\145\144"); goto iKBo0; eWxSN: function fn_ss_omnibus_get_lowest_price($product) { goto PQIwA; BIjeT: vmRT3: goto gSoRB; CYkor: $product_id = $product["\x70\162\x6f\144\165\143\164\x5f\151\x64"]; goto HAFOu; WNZ_E: $lowest_price = $price; goto r0lZ6; ELxEk: $lowest_price = db_get_field("\123\105\x4c\105\103\x54\x20\160\x72\151\x63\x65\x20\106\122\x4f\x4d\x20\x3f\72\160\x72\x6f\144\x75\x63\164\x5f\x70\x72\151\x63\145\x73\40\127\110\x45\x52\x45\x20\x70\x72\x6f\x64\165\143\164\137\151\x64\x20\x3d\40\77\x69\x20\101\116\x44\x20\x6c\x6f\x77\145\162\x5f\x6c\151\x6d\151\x74\40\75\x20\x3f\x69", $product_id, 1); goto O5XV9; GKaeF: if (!(isset($addon_params["\x73\163\137\157\x6d\x6e\151\142\x75\x73\137\x69\156\146\x6f\137\165\163\x65\137\160\x72\x6f\155\157\x74\151\x6f\x6e\x73"]) && $addon_params["\163\163\x5f\x6f\155\x6e\151\142\x75\163\x5f\x69\x6e\x66\x6f\x5f\x75\x73\145\137\x70\x72\x6f\x6d\x6f\x74\x69\x6f\x6e\x73"] == "\x59")) { goto vmRT3; } goto Kcdvn; i6l4c: if ($product > 0) { goto z2_Nx; } goto jLABo; dZ_PJ: oel8k: goto CYkor; eZ3B8: aNMNZ: goto uHPsy; ml2Cf: if (!fn_allowed_for("\x55\114\124\x49\x4d\x41\124\x45")) { goto aNMNZ; } goto DTbc5; uHPsy: if (isset($addon_params["\163\x73\x5f\157\155\156\151\142\x75\x73\x5f\146\165\154\154\137\x68\x69\163\164\157\162\171"]) && $addon_params["\x73\163\x5f\157\155\x6e\151\142\x75\x73\x5f\146\x75\154\154\x5f\x68\x69\x73\x74\x6f\x72\171"] == "\x59") { goto huX0G; } goto ylh2W; j8XLu: $product = db_get_row("\x53\x45\114\x45\x43\124\x20\160\x72\157\x64\x75\143\164\x5f\151\x64\x2c\x20\160\x72\x69\x63\145\40\101\123\x20\142\x61\163\145\137\x70\162\x69\143\x65\x20\x46\122\x4f\115\40\x3f\72\x70\x72\x6f\144\x75\x63\x74\x5f\160\x72\151\x63\145\163\x20\x57\x48\x45\122\105\40\x70\x72\157\x64\x75\143\164\137\x69\x64\40\x3d\x20\x3f\x69\x20\x41\116\x44\40\x6c\157\167\x65\162\x5f\154\151\x6d\x69\x74\x20\75\40\77\151", $product_id, 1); goto OXA0Z; Ino8_: huX0G: goto jqG_K; iXvX9: goto bUcJH; goto Ino8_; wzGHP: $product_id = $product; goto j8XLu; xL0b3: return $lowest_price; goto UD0yu; HAFOu: goto pBw7N; goto H8m9r; ylh2W: $price[] = db_get_field("\123\x45\x4c\x45\x43\x54\40\115\x49\x4e\x28\160\162\x69\x63\x65\137\x6f\x6c\x64\x29\x20\x46\x52\x4f\x4d\40\x3f\72\163\163\x5f\x6f\x6d\x6e\151\142\165\163\x20\127\x48\x45\122\x45\x20\160\162\157\144\165\x63\164\x5f\151\144\x20\x3d\40\77\151\x20\x41\116\x44\40\164\171\160\145\x20\x3d\x20\x3f\163\40{$condition}", $product_id, "\x70\x72\x69\x63\x65"); goto DjQJD; jqG_K: $ss_omnibus_period = $addon_params["\163\163\137\157\155\156\x69\x62\165\x73\x5f\160\x65\162\151\157\x64"] ? $addon_params["\x73\163\137\x6f\155\x6e\151\x62\165\x73\137\160\x65\162\x69\157\x64"] : DEFAULT_PERIOD; goto IsEee; s0PKa: bUcJH: goto Yt3dX; gSoRB: $lowest_price = number_format(fn_format_price_by_currency($lowest_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 2, "\x2e", '') . "\40" . CART_SECONDARY_CURRENCY; goto xL0b3; O5XV9: eo8Oa: goto GKaeF; Kcdvn: fn_ss_omnibus_info_promotion($lowest_price, $product); goto BIjeT; j4W4f: $addon_params = fn_ss_omnibus_get_options($company_id); goto bYDqf; QzocU: $price[] = db_get_field("\x53\105\114\x45\x43\124\x20\x4d\x49\x4e\x28\x70\x72\151\143\145\137\x6e\145\x77\51\x20\x46\x52\117\x4d\40\77\x3a\163\163\x5f\157\x6d\156\x69\x62\x75\x73\x20\x57\x48\x45\x52\x45\x20\160\162\157\144\x75\x63\x74\137\151\x64\x20\75\x20\77\151\x20\101\x4e\104\x20\164\171\160\x65\40\x3d\x20\77\163\40\101\116\104\x20\164\x69\155\x65\163\x74\x61\x6d\x70\x20\x3e\x20\x3f\x69\40{$condition}", $product_id, "\x70\162\x69\x63\x65", $period); goto s0PKa; OXA0Z: pBw7N: goto GPR6O; jLABo: goto pBw7N; goto dZ_PJ; PQIwA: if (is_array($product) && !empty($product)) { goto oel8k; } goto i6l4c; bYDqf: $lowest_price = 0; goto pyjht; r0lZ6: dkf9Y: goto zxFNS; GPR6O: $company_id = db_get_field("\x53\105\x4c\105\103\x54\x20\143\157\x6d\160\141\156\171\x5f\x69\x64\40\106\122\x4f\x4d\x20\77\x3a\160\x72\x6f\x64\x75\143\x74\x73\40\127\x48\105\x52\x45\x20\x70\162\157\x64\165\143\x74\137\x69\144\x20\x3d\40\x3f\151", $product_id); goto j4W4f; NzgLe: $condition = ''; goto ml2Cf; H8m9r: z2_Nx: goto wzGHP; DjQJD: $price[] = db_get_field("\123\105\114\105\103\124\40\115\111\116\x28\160\162\x69\x63\x65\137\156\145\x77\x29\x20\x46\122\x4f\115\40\77\72\163\x73\137\x6f\155\156\151\x62\x75\x73\x20\127\110\105\x52\105\x20\160\x72\157\144\165\143\164\x5f\151\x64\x20\75\x20\x3f\x69\40\x41\116\x44\x20\164\x79\x70\145\x20\x3d\40\x3f\163\40{$condition}", $product_id, "\160\x72\x69\x63\x65"); goto iXvX9; DTbc5: $company_id = Registry::get("\x72\165\156\x74\x69\x6d\x65\56\143\157\155\x70\141\156\x79\x5f\151\144") ? Registry::get("\162\165\156\164\x69\x6d\x65\x2e\143\157\155\160\141\x6e\x79\137\151\x64") : Registry::get("\x72\165\156\164\x69\x6d\145\x2e\146\157\162\x63\145\144\137\143\157\x6d\160\x61\x6e\171\137\151\144"); goto vFPT0; zxFNS: if (!($lowest_price == 0 && $addon_params["\x73\x73\x5f\x6f\x6d\156\x69\142\x75\x73\137\x64\151\x73\160\x6c\x61\171\x5f\151\146\x5f\156\157\137\162\145\x63\157\x72\x64\163"] == "\131")) { goto eo8Oa; } goto ELxEk; vFPT0: $condition .= db_quote("\x20\x41\x4e\x44\40\143\157\155\160\x61\x6e\x79\x5f\151\x64\x20\75\40\77\151", $company_id); goto eZ3B8; Yt3dX: $price = min($price); goto B_HEw; pyjht: $price = array(); goto NzgLe; B_HEw: if (!($price > 0)) { goto dkf9Y; } goto WNZ_E; IsEee: $period = time() - 86400 * $ss_omnibus_period; goto R5FV1; R5FV1: $price[] = db_get_field("\x53\x45\x4c\105\x43\x54\x20\115\x49\x4e\x28\160\162\x69\x63\145\137\x6f\154\144\x29\x20\x46\122\117\115\40\77\x3a\x73\163\137\157\x6d\156\151\x62\165\x73\x20\127\110\x45\122\105\x20\160\x72\x6f\144\x75\143\x74\137\x69\x64\40\75\40\77\x69\40\x41\116\104\40\164\171\x70\145\40\x3d\x20\x3f\x73\40\101\x4e\x44\x20\164\151\155\145\x73\164\141\155\160\40\76\x20\x3f\x69\40{$condition}", $product_id, "\160\x72\151\143\145", $period); goto QzocU; UD0yu: } goto P9FB0; kHyCu: function fn_ss_omnibus_get_options($company_id = 0) { goto ltl38; GIeqr: eVB4j: goto K1s17; uICfE: $company_id = Registry::get("\x72\x75\156\x74\151\x6d\x65\56\143\157\x6d\x70\141\x6e\x79\x5f\x69\x64") ? Registry::get("\x72\165\x6e\164\x69\155\x65\56\143\x6f\x6d\160\x61\156\x79\137\x69\x64") : Registry::get("\x72\x75\x6e\164\151\155\x65\x2e\x66\x6f\x72\143\145\144\137\x63\157\155\x70\141\156\x79\137\x69\144"); goto RHM7x; OnT3o: return $options; goto HzUbf; RHM7x: s244x: goto jhyqx; Mn3QO: $options["\x73\x73\x5f\157\x6d\156\x69\x62\165\x73\137\x64\x69\x73\160\154\141\x79\137\142\x75\164\x74\x6f\156\137\x73\x74\171\154\145"] = SettingsExtended::instance()->getValue("\x73\163\x5f\157\x6d\156\x69\142\165\x73\x5f\x64\151\163\x70\154\141\x79\137\142\x75\x74\164\157\156\x5f\163\x74\x79\154\x65", "\x73\163\137\x6f\155\x6e\x69\142\165\163", $company_id); goto Mx10X; MpbdB: $options["\163\x73\137\x6f\155\x6e\151\142\165\x73\x5f\x69\156\146\x6f\137\146\157\156\x74\x5f\163\x69\x7a\x65\137\x70\157\160\165\160"] = SettingsExtended::instance()->getValue("\x73\163\x5f\157\155\156\x69\x62\x75\x73\137\x69\156\146\157\137\146\157\156\164\137\x73\151\x7a\x65\x5f\160\157\160\x75\x70", "\163\x73\137\x6f\x6d\x6e\151\x62\x75\x73", $company_id); goto u1ZYz; u1ZYz: $options["\163\x73\137\x6f\x6d\x6e\151\x62\x75\x73\x5f\144\151\163\160\x6c\x61\171\x5f\x69\156\146\x6f\x5f\153\x69\x6e\144"] = SettingsExtended::instance()->getValue("\x73\x73\x5f\x6f\x6d\x6e\151\142\165\163\137\144\151\163\x70\154\141\171\137\x69\156\146\x6f\x5f\x6b\x69\x6e\x64", "\x73\x73\137\157\x6d\x6e\151\142\x75\x73", $company_id); goto Mn3QO; ltl38: if (!fn_allowed_for("\125\114\x54\x49\x4d\101\124\x45")) { goto s244x; } goto uICfE; jhyqx: $options = Registry::get("\141\144\x64\x6f\156\x73\x2e\x73\163\x5f\157\155\156\x69\x62\165\163"); goto hNmCN; Mx10X: $options["\x73\x73\137\x6f\x6d\156\151\142\165\163\x5f\x73\157\x72\164\137\164\x61\142\x6c\145"] = SettingsExtended::instance()->getValue("\x73\163\x5f\157\x6d\x6e\x69\x62\165\163\x5f\x73\157\x72\164\137\x74\141\x62\x6c\x65", "\163\163\x5f\x6f\x6d\156\151\142\165\163", $company_id); goto uycDu; RMEA0: $options["\x73\x73\x5f\x6f\x6d\x6e\151\x62\165\x73\x5f\151\156\146\x6f\x5f\146\x6f\x6e\x74\x5f\x73\151\x7a\x65"] = SettingsExtended::instance()->getValue("\163\x73\137\x6f\155\x6e\x69\142\165\x73\137\x69\156\146\x6f\137\x66\157\156\x74\x5f\163\151\172\145", "\x73\x73\x5f\x6f\x6d\x6e\151\x62\x75\x73", $company_id); goto MpbdB; hNmCN: if (!fn_allowed_for("\x4d\x55\114\x54\x49\126\105\x4e\x44\117\122")) { goto eVB4j; } goto uC_G5; uycDu: Y93N9: goto GIeqr; K1s17: $options["\163\163\x5f\x6f\x6d\156\x69\142\165\x73\x5f\x70\145\162\151\x6f\144"] = $options["\x73\x73\137\157\155\156\151\142\165\163\137\160\x65\x72\151\157\x64"] ? $options["\163\163\137\x6f\155\156\151\142\165\x73\137\160\145\x72\151\x6f\144"] : DEFAULT_PERIOD; goto OnT3o; uC_G5: if (!(isset($company_id) && $company_id > 0)) { goto Y93N9; } goto FjAOt; FjAOt: $options["\x73\163\137\x6f\x6d\x6e\151\x62\165\163\137\144\151\x73\x70\x6c\x61\x79\x5f\x6b\151\x6e\144"] = SettingsExtended::instance()->getValue("\163\163\137\157\x6d\156\x69\x62\165\163\x5f\x64\151\x73\x70\154\x61\171\137\153\x69\156\x64", "\x73\x73\x5f\x6f\x6d\x6e\151\142\165\x73", $company_id); goto RMEA0; HzUbf: } goto d4Fqd; d4Fqd: function fn_ss_omnibus_check_if_changes_present($product_id = 0, $c_id = 0) { goto AUEu3; lrj1e: $company_id = $c_id; goto K94qs; ED7mv: if (!(isset($c_id) && $c_id > 0)) { goto E9k0h; } goto lrj1e; PAn9_: $ss_omnibus_period = $addon_params["\163\163\137\157\x6d\x6e\x69\142\165\163\137\x70\145\x72\151\157\144"] ? $addon_params["\x73\x73\x5f\x6f\155\156\x69\142\x75\163\137\160\x65\162\x69\157\144"] : DEFAULT_PERIOD; goto pPPRF; jyRGX: $condition = ''; goto ED7mv; pPPRF: $period = time() - 86400 * $ss_omnibus_period; goto iyFg8; rtWxs: $records = array(); goto PAn9_; yfVsD: foreach ($records as &$record) { goto OGir5; kpHA0: CInVd: goto Wip9K; OGir5: $record["\160\162\151\143\145\137\157\x6c\144"] = number_format(fn_format_price_by_currency($record["\160\162\x69\x63\x65\x5f\157\154\144"], CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 2, "\56", '') . "\40" . CART_SECONDARY_CURRENCY; goto qWXSr; qWXSr: $record["\x70\162\151\x63\145\x5f\156\x65\x77"] = number_format(fn_format_price_by_currency($record["\x70\x72\151\x63\x65\x5f\x6e\145\167"], CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 2, "\x2e", '') . "\x20" . CART_SECONDARY_CURRENCY; goto kpHA0; Wip9K: } goto JCbEz; K94qs: $condition .= db_quote("\40\x41\116\104\x20\x63\157\155\160\141\156\x79\x5f\151\x64\40\x3d\40\77\151", $company_id); goto LmTO4; LmTO4: E9k0h: goto EgrBU; EgrBU: $addon_params = fn_ss_omnibus_get_options($company_id); goto rtWxs; AUEu3: $company_id = db_get_field("\123\105\x4c\x45\x43\x54\40\143\x6f\155\160\x61\156\171\x5f\151\x64\40\106\122\x4f\x4d\x20\x3f\72\x70\162\157\x64\165\x63\164\163\x20\127\x48\x45\122\x45\40\160\x72\x6f\144\x75\x63\164\137\x69\x64\40\75\40\x3f\x69", $product_id); goto jyRGX; kOjHL: return $records; goto gTMCZ; JCbEz: zYvC7: goto kOjHL; iyFg8: $records = db_get_array("\123\x45\114\105\x43\124\x20\52\x20\x46\122\x4f\x4d\40\x3f\72\x73\x73\137\157\155\x6e\151\142\165\163\x20\127\x48\x45\x52\x45\x20\160\x72\x6f\x64\165\x63\x74\x5f\151\x64\x20\75\x20\x3f\151\x20\101\116\104\40\164\171\160\x65\x20\75\x20\x3f\x73\40\x41\116\x44\x20\164\x69\x6d\145\163\x74\141\x6d\160\x20\x3e\40\77\151\x20{$condition}\x20\117\x52\x44\x45\x52\40\102\x59\x20\164\x69\x6d\145\x73\164\141\155\x70\40" . $addon_params["\x73\x73\137\157\155\x6e\151\142\165\163\137\163\x6f\x72\x74\137\x74\141\142\x6c\145"], $product_id, "\160\162\151\143\145", $period); goto yfVsD; gTMCZ: } goto eWxSN; cvlQa: function fn_ss_omnibus_install() { goto Azgpk; Ts5O9: ypMml: goto VjqYA; wDEsG: L4Ui9: goto LVlhx; xErgj: db_query("\x52\x45\x50\x4c\x41\103\x45\x20\111\116\124\x4f\40\x3f\x3a\160\x72\151\166\151\x6c\145\x67\x65\163\x20\50\x70\x72\151\166\x69\x6c\x65\x67\145\54\x20\151\163\137\144\145\x66\141\x75\154\x74\x2c\x20\x73\x65\x63\164\151\x6f\156\x5f\151\x64\54\x20\x67\162\x6f\x75\x70\x5f\x69\144\54\x20\151\163\x5f\x76\x69\145\167\x29\x20\126\101\114\125\x45\123\40\x28\47\x73\x73\x5f\157\155\156\x69\142\165\x73\x5f\x6c\157\x67\x67\x65\x72\x2e\x73\150\157\x77\47\54\x20\x27\x59\47\x2c\40\x27\163\163\137\141\144\x64\157\156\163\x27\x2c\x20\x27\163\163\137\x6f\x6d\156\x69\142\165\x73\x27\54\40\47\131\x27\x29"); goto wDEsG; taQeM: db_query("\x52\x45\120\114\x41\x43\105\40\x49\x4e\x54\x4f\x20\x3f\x3a\x70\162\151\x76\151\x6c\x65\x67\x65\163\x20\x28\160\x72\151\x76\x69\154\145\x67\x65\54\40\151\x73\137\x64\x65\146\x61\165\154\x74\x2c\x20\163\145\x63\x74\151\x6f\156\137\x69\x64\51\x20\126\x41\114\125\105\123\40\50\x27\x73\x73\137\x6f\x6d\x6e\151\x62\x75\163\137\154\x6f\x67\x67\145\162\x2e\155\x61\x6e\x61\147\145\47\x2c\40\x27\131\47\x2c\40\47\163\163\x5f\141\x64\x64\x6f\156\163\47\51"); goto S_Vky; Azgpk: LicenseAddons::instance()->checkLicense("\111\116\x53\x54\101\114\x4c\105\104"); goto QPjm0; S_Vky: db_query("\x52\x45\120\114\101\103\x45\x20\111\116\124\117\x20\x3f\x3a\x70\x72\151\166\x69\154\x65\147\145\x73\x20\50\160\162\151\x76\151\154\145\147\145\54\40\151\x73\x5f\144\145\146\141\165\x6c\164\x2c\40\163\x65\x63\164\151\157\x6e\x5f\x69\144\x29\x20\x56\101\114\125\x45\x53\x20\x28\47\x73\163\137\157\x6d\156\x69\x62\x75\x73\x5f\154\x6f\147\147\145\x72\x2e\x73\x68\x6f\x77\x27\x2c\40\x27\x59\x27\x2c\40\47\163\163\137\x61\x64\144\x6f\156\163\47\x29"); goto FTR9m; QPjm0: if (fn_ss_omnibus_check_version("\x34\x2e\x31\60\x2e\61", "\74")) { goto ypMml; } goto taQeM; VjqYA: db_query("\122\x45\120\x4c\x41\x43\x45\40\111\x4e\124\117\x20\x3f\x3a\x70\162\x69\x76\151\x6c\x65\x67\145\x73\40\50\160\x72\151\x76\x69\154\145\x67\x65\54\40\151\163\x5f\144\x65\146\x61\x75\154\164\x2c\40\163\x65\143\164\151\x6f\x6e\x5f\x69\144\x2c\x20\x67\162\157\x75\x70\137\151\144\54\40\151\x73\x5f\x76\x69\x65\167\51\x20\126\101\x4c\125\105\123\40\50\x27\163\163\137\157\x6d\x6e\x69\142\x75\163\137\x6c\157\147\x67\x65\162\56\155\141\x6e\141\x67\145\47\x2c\40\47\131\x27\54\x20\x27\163\163\137\141\144\144\x6f\x6e\x73\47\x2c\x20\x27\x73\x73\x5f\157\x6d\x6e\x69\142\165\163\x27\x2c\x20\47\x59\47\x29"); goto xErgj; FTR9m: goto L4Ui9; goto Ts5O9; LVlhx: } goto Kfn3J; P9FB0: function fn_ss_omnibus_info_promotion(&$lowest_price, $product = array()) { goto p1_QQ; eGFo9: foreach ($promotions as $promotion_data) { goto ttvVW; Ki79k: foreach ($conditions["\143\157\x6e\144\151\x74\151\x6f\x6e\163"] as $condition) { goto WP4QD; iZFZa: goto tL2Ga; goto XmbAp; SYXnv: zi6v4: goto iZFZa; XmbAp: gLYPq: goto KZ1m1; YUZrJ: tL2Ga: goto n06uh; UA8K2: UohYa: goto fjSY2; fjSY2: ZyTSx: goto YUZrJ; pnvDR: CT5aR: goto SYXnv; WP4QD: if (!($condition["\143\x6f\156\144\x69\x74\x69\x6f\156"] == "\x70\x72\157\x64\165\143\x74\163")) { goto Z4Vlk; } goto EXCg9; n06uh: Z4Vlk: goto NkfB2; tnlg4: if ($condition["\157\160\145\162\x61\164\157\x72"] == "\151\x6e") { goto VkRs3; } goto lkDft; VXqFp: goto tL2Ga; goto fTx1E; lkDft: if ($condition["\x6f\x70\x65\162\141\164\x6f\162"] == "\156\151\x6e") { goto gLYPq; } goto VXqFp; wYMfi: if (!in_array($product["\x70\x72\x6f\x64\165\143\164\137\151\x64"], $condition_product_ids)) { goto zi6v4; } goto BCuS7; Nsdm1: foreach ($bonuses as $bonus) { goto D6jhC; XgSiS: WY_jm: goto elB24; cNA3R: $status = true; goto Ieh3e; EzoCC: IeKSa: goto XgSiS; D6jhC: if (!($bonus["\x62\x6f\x6e\165\163"] == "\x70\x72\157\x64\x75\143\x74\137\x64\151\163\143\x6f\x75\156\x74" && $bonus["\144\x69\x73\143\157\165\x6e\164\x5f\x62\157\156\165\x73"] == "\x62\x79\x5f\x70\x65\x72\143\145\156\x74\141\x67\x65")) { goto IeKSa; } goto cNA3R; Ieh3e: goto UohYa; goto EzoCC; elB24: } goto UA8K2; EXCg9: $condition_product_ids = explode("\x2c", $condition["\166\x61\x6c\165\145"]); goto tnlg4; BCuS7: foreach ($bonuses as $bonus) { goto L6nax; pGkSE: goto CT5aR; goto ZoVQ4; xrVDZ: tTnCq: goto xzl2y; ZoVQ4: Ob4GG: goto xrVDZ; L6nax: if (!($bonus["\142\x6f\x6e\165\163"] == "\160\x72\x6f\x64\165\x63\x74\x5f\144\x69\x73\143\157\165\156\x74" && $bonus["\144\151\163\x63\x6f\165\x6e\x74\x5f\142\157\156\x75\163"] == "\142\171\137\160\x65\x72\x63\145\x6e\164\141\147\x65")) { goto Ob4GG; } goto hl611; hl611: $status = true; goto pGkSE; xzl2y: } goto pnvDR; KZ1m1: if (in_array($product["\160\162\x6f\144\165\143\164\137\151\144"], $condition_product_ids)) { goto ZyTSx; } goto Nsdm1; fTx1E: VkRs3: goto wYMfi; NkfB2: ONZ6E: goto YJWJr; YJWJr: } goto Pwskp; JgXhX: UKCGN: goto oHIR5; ttvVW: $bonuses = unserialize($promotion_data["\142\x6f\x6e\x75\x73\x65\163"]); goto vcsym; vcsym: $conditions = unserialize($promotion_data["\143\157\156\x64\151\164\x69\157\156\x73"]); goto Ki79k; Pwskp: qkLd1: goto JgXhX; oHIR5: } goto nnF8X; UeXQx: bAgRL: goto eYL8g; p1_QQ: $status = false; goto lZcKF; eYL8g: Ytacp: goto lLxHo; nnF8X: Of5Bq: goto GpWeN; lZcKF: $promotions = db_get_array("\x53\x45\x4c\105\x43\124\x20\x2a\40\x46\122\117\115\40\77\x3a\x70\x72\157\x6d\157\x74\x69\157\156\x73\x20\127\110\105\122\x45\x20\x73\163\137\157\x6d\x6e\x69\142\x75\x73\137\141\x70\x70\154\x79\40\75\x20\77\x73\40\x41\116\104\40\x73\164\x61\164\x75\163\40\x3d\40\x3f\163", "\131", "\101"); goto BgP7C; GpWeN: if (!($lowest_price == 0 && $status)) { goto bAgRL; } goto b0i8_; BgP7C: if (!(isset($promotions) && is_array($promotions))) { goto Ytacp; } goto eGFo9; b0i8_: $lowest_price = $product["\142\141\x73\x65\137\x70\x72\x69\x63\145"]; goto UeXQx; lLxHo: } goto zpwFK; W165G: if (defined("\102\x4f\x4f\124\x53\124\122\101\120")) { goto C9qkE; } goto pz1zP; KHgOB: function fn_ss_omnibus_check_promotion_on_product($product = array()) { goto dKM51; ify9v: $promotions = db_get_array("\x53\x45\114\105\103\124\x20\52\x20\106\122\117\x4d\40\77\72\160\162\157\155\x6f\x74\x69\x6f\156\x73\x20\127\x48\105\x52\x45\x20\163\163\x5f\x6f\x6d\156\x69\x62\165\x73\x5f\x61\x70\x70\x6c\171\x20\75\x20\77\163\40\x41\116\x44\40\x73\164\x61\x74\165\163\x20\x3d\40\x3f\x73", "\131", "\x41"); goto zRaCW; zCWmV: return $status; goto ZXNrp; zRaCW: if (!(isset($promotions) && is_array($promotions))) { goto d8UZh; } goto iKp_w; HbvTF: d8UZh: goto zCWmV; uy6VZ: Zxptf: goto HbvTF; dKM51: $status = false; goto ify9v; iKp_w: foreach ($promotions as $promotion_data) { goto n4r6Y; VocXM: $conditions = unserialize($promotion_data["\x63\x6f\156\144\x69\x74\x69\157\x6e\x73"]); goto xunF9; fFntI: dUZix: goto W8e84; xunF9: foreach ($conditions["\143\157\x6e\x64\151\x74\151\x6f\x6e\163"] as $condition) { goto kEuPh; QBGYS: if ($condition["\x6f\160\145\162\141\x74\157\162"] == "\x69\156") { goto jmpy2; } goto yk3hc; P3yM2: TRVaX: goto E0yW5; uDxUd: FRlfh: goto t2Dng; WydJR: mSvJP: goto f35Dy; RrICp: KYNLE: goto QFWxT; E0yW5: if (in_array($product["\x70\x72\157\144\x75\x63\164\x5f\x69\x64"], $condition_product_ids)) { goto gNYjk; } goto BUI8u; yk3hc: if ($condition["\157\x70\x65\162\x61\164\157\162"] == "\x6e\151\156") { goto TRVaX; } goto ysklZ; I0gbW: $condition_product_ids = explode("\x2c", $condition["\x76\x61\x6c\165\145"]); goto QBGYS; BUI8u: foreach ($bonuses as $bonus) { goto e3C6o; vsJt3: goto FRlfh; goto pXta5; O403Y: t4y8X: goto d1Qpy; e3C6o: if (!($bonus["\x62\x6f\x6e\x75\163"] == "\x70\162\x6f\144\165\143\164\137\144\x69\x73\x63\x6f\x75\156\164" && $bonus["\144\151\x73\143\157\165\156\164\137\142\157\156\165\163"] == "\142\171\x5f\x70\145\162\x63\145\156\164\141\x67\145")) { goto OziRB; } goto iA5LG; iA5LG: $status = true; goto vsJt3; pXta5: OziRB: goto O403Y; d1Qpy: } goto uDxUd; ysklZ: goto lVEb2; goto ODkdc; ODkdc: jmpy2: goto lQUUj; kEuPh: if (!($condition["\143\x6f\156\x64\x69\164\151\x6f\x6e"] == "\160\162\x6f\144\165\x63\x74\163")) { goto qEafr; } goto I0gbW; nUjnn: lVEb2: goto f8vq3; EvK5I: foreach ($bonuses as $bonus) { goto Jf8jw; P2ADO: goto t6Kro; goto P5Ud6; dZXHF: mnuZK: goto fK3WZ; Jf8jw: if (!($bonus["\142\157\156\165\163"] == "\x70\x72\157\144\x75\x63\x74\x5f\144\x69\x73\x63\x6f\x75\x6e\x74" && $bonus["\x64\151\x73\x63\157\x75\x6e\164\137\x62\157\156\165\163"] == "\x62\x79\137\160\x65\x72\x63\145\x6e\164\x61\x67\145")) { goto WeX13; } goto dUR2s; P5Ud6: WeX13: goto dZXHF; dUR2s: $status = true; goto P2ADO; fK3WZ: } goto sgOIQ; f35Dy: goto lVEb2; goto P3yM2; lQUUj: if (!in_array($product["\160\x72\x6f\x64\x75\x63\x74\x5f\151\x64"], $condition_product_ids)) { goto mSvJP; } goto EvK5I; f8vq3: qEafr: goto RrICp; t2Dng: gNYjk: goto nUjnn; sgOIQ: t6Kro: goto WydJR; QFWxT: } goto fFntI; n4r6Y: $bonuses = unserialize($promotion_data["\142\157\156\x75\163\145\163"]); goto VocXM; W8e84: V5Qka: goto NIQy8; NIQy8: } goto uy6VZ; ZXNrp: } goto rAaLo; iKBo0: C9qkE: goto kHyCu; arndi: function fn_ss_omnibus_check_display($product = array()) { goto XVI1F; Pntw0: nBRo5: goto pVdjR; pVdjR: yKo0x: goto rEKJO; VkYfW: if (!(isset($addon_params["\163\x73\x5f\157\155\156\x69\x62\165\x73\137\x6f\x6e\154\171\x5f\144\x69\163\143\x6f\x75\156\164\x65\x64\137\160\162\x6f\x64\165\x63\164\x73"]) && $addon_params["\163\163\x5f\x6f\155\156\151\142\165\163\x5f\157\156\154\171\x5f\x64\x69\163\143\x6f\x75\156\x74\x65\144\x5f\160\162\157\x64\x75\143\x74\163"] == "\131")) { goto yKo0x; } goto AqZkt; s6__5: $status = fn_ss_omnibus_check_promotion_on_product($product); goto W28mN; OzmeX: if (!($addon_params["\x73\x73\x5f\x6f\x6d\x6e\151\x62\165\x73\x5f\x64\x69\163\x70\154\141\x79\x5f\x6b\151\156\x64"] == "\151\x6e\146\x6f" && $addon_params["\x73\163\x5f\157\x6d\x6e\151\x62\165\163\x5f\x64\x69\163\160\154\x61\x79\137\x69\x66\137\156\x6f\137\x72\145\x63\x6f\162\144\163"] == "\x59")) { goto QbQvz; } goto dfI8Q; W28mN: IefSk: goto GxDHy; GxDHy: return $status; goto piF3Q; GhWxl: $status = true; goto Pntw0; dfI8Q: $status = true; goto RAycT; AqZkt: if (!($product["\x70\162\151\143\x65"] < $product["\x6c\151\163\x74\x5f\160\x72\x69\x63\145"])) { goto nBRo5; } goto GhWxl; RAycT: QbQvz: goto vFqKZ; vFqKZ: wPpQn: goto VkYfW; J9lC8: $status = false; goto sHaUw; sHaUw: $count = db_get_field("\x53\x45\114\105\x43\124\x20\x43\x4f\x55\116\x54\50\x2a\51\x20\x46\122\x4f\115\x20\77\72\x73\163\137\157\155\x6e\x69\142\x75\x73\40\x57\x48\x45\x52\105\x20\160\162\x6f\144\x75\143\x74\x5f\151\x64\40\x3d\x20\x3f\x69\x20\101\116\x44\x20\x70\162\151\143\x65\137\x6f\154\x64\40\76\40\x3f\151", $product["\160\162\157\144\165\143\164\x5f\151\x64"], 0); goto b8zAn; b8zAn: if ($count) { goto wPpQn; } goto OzmeX; XVI1F: $addon_params = Registry::get("\x61\x64\x64\x6f\156\163\56\163\x73\x5f\x6f\155\156\x69\x62\x75\x73"); goto J9lC8; rEKJO: if (!(isset($addon_params["\163\x73\137\x6f\x6d\156\151\x62\165\x73\137\151\x6e\146\x6f\137\165\x73\x65\x5f\160\162\157\x6d\x6f\x74\151\157\156\x73"]) && $addon_params["\x73\x73\137\x6f\x6d\x6e\151\x62\x75\x73\x5f\x69\x6e\x66\x6f\137\x75\x73\145\x5f\x70\x72\x6f\x6d\x6f\164\151\x6f\x6e\163"] == "\x59")) { goto IefSk; } goto s6__5; piF3Q: } goto KHgOB; JIYEI: require_once "\x73\163\x5f\157\155\156\x69\142\x75\x73\x5f\x6c\157\x67\x67\x65\162\x2e\160\150\160"; goto W165G; Rf7GY: function fn_ss_omnibus_get_stats() { goto WHY2U; WimEz: return $stats; goto VCARe; hn9Ei: if (class_exists("\134\x54\x79\x67\x68\x5c\123\157\x66\x74\x53\157\x6c\151\x64\x5c\x53\163\117\x6d\x6e\151\142\165\163\x5c\114\x69\x63\145\156\163\145\101\144\144\157\x6e\163")) { goto pbTSn; } goto rXy9W; rXy9W: $stats = "\74\144\151\x76\x20\163\164\171\x6c\145\75\42\x66\x6c\x6f\141\x74\x3a\x63\x65\156\164\145\x72\73\x66\x6f\x6e\x74\x2d\163\151\172\x65\x3a\x31\66\160\x78\42\x3e" . __("\x73\163\x5f\157\x6d\156\x69\x62\165\163\x5f\163\x74\141\x74\x73\x5f\156\x6f\x5f\x61\x63\x74\x69\166\x69\x74\x79") . "\74\57\144\151\166\x3e"; goto lWQVf; yHJiI: pbTSn: goto GkATY; lWQVf: goto ffpNT; goto yHJiI; GkATY: $stats = LicenseAddons::instance()->getStats(); goto TcC64; WHY2U: $stats = array(); goto hn9Ei; TcC64: ffpNT: goto WimEz; VCARe: } goto cvlQa; rAaLo: function fn_settings_actions_addons_post_ss_omnibus($status) { goto O3hx4; Ai0aQ: xtKkS: goto I_mWD; njZaq: $_SESSION[$_REQUEST["\151\x64"]] = "\101"; goto Ai0aQ; O3hx4: if (!($status == "\101")) { goto xtKkS; } goto njZaq; I_mWD: } goto MupyL; G4gVj: function fn_ss_omnibus_check_version($checked_version = '', $operator = "\75") { goto t91cs; BOCfT: ekqWb: goto gfW7E; jhb_1: $compare_version = $checked_version; goto Lxzq7; jCN4i: if (class_exists("\134\x54\x79\147\150\134\104\157\155\141\151\156\134\x53\157\x66\164\x77\141\x72\x65\x50\x72\157\x64\x75\x63\164\x5c\126\x65\162\163\151\157\x6e")) { goto ntBph; } goto PUesB; gfW7E: return $result; goto h_x41; eeAbK: ntBph: goto kvHxA; cx5Bq: $version = new Version(PRODUCT_VERSION); goto DP5A_; EaDPE: $result = $compare_version->compareWith($version, $operator); goto xJw8w; KDoDV: goto TCkFv; goto eeAbK; kvHxA: $status = 1; goto cx5Bq; PUesB: $status = 2; goto Q1L1m; xJw8w: TCkFv: goto BOCfT; qaHXi: if (!(isset($checked_version) && !empty($checked_version))) { goto ekqWb; } goto jCN4i; t91cs: $result = false; goto qaHXi; Q1L1m: $version = PRODUCT_VERSION; goto jhb_1; DP5A_: $compare_version = new Version($checked_version); goto EaDPE; Lxzq7: $result = version_compare($checked_version, $version, $operator); goto KDoDV; h_x41: } goto Rf7GY; zpwFK: function fn_ss_omnibus_delete_price($product_id = 0) { goto IlfZO; kGIbQ: if (empty($records)) { goto xeRkx; } goto RgDoA; V4oko: if (isset($addon_params["\x73\x73\x5f\x6f\155\156\151\142\x75\x73\137\160\145\x72\x69\x6f\144"]) && $addon_params["\x73\x73\x5f\x6f\155\x6e\x69\x62\165\163\137\160\145\x72\x69\x6f\144"] > 0) { goto SVhD2; } goto wZjhh; aD2ZC: if (!(isset($addon_params["\x73\x73\137\157\x6d\x6e\x69\x62\x75\x73\x5f\x66\165\154\x6c\x5f\150\151\x73\164\157\x72\171"]) && $addon_params["\163\x73\137\x6f\155\x6e\x69\142\165\163\x5f\x66\165\154\154\x5f\x68\151\163\164\x6f\x72\x79"] == "\116")) { goto xIjWN; } goto mj7kh; Oq_Mm: lSVgB: goto t4p1s; wZjhh: $ss_omnibus_period = DEFAULT_PERIOD; goto b9MU1; t4p1s: $timestamp = strtotime("\x2d" . $ss_omnibus_period . "\x20\x64\x61\171\x73", time()); goto b8tMN; kzgoe: LoggerAddons::instance()->log("\117\155\156\151\x62\x75\x73\x20\55\x20\x64\x65\x6c\x65\164\x65", "\x49\116\106\117", $product_id, "\160\x72\157\144\x75\143\x74\x73", serialize(array("\x63\x6f\x6e\x64\151\x74\x69\x6f\156" => $condition, "\162\145\x63\x6f\162\144\163" => $records))); goto pjK38; IlfZO: $addon_params = fn_ss_omnibus_get_options(); goto aD2ZC; yazYV: if (!(isset($product_id) && $product_id > 0)) { goto XLe5_; } goto wH5J4; IWD1r: xIjWN: goto R0Z2u; E99dY: DJBOJ: goto mpDJT; wH5J4: $condition .= db_quote("\x20\x41\116\104\40\x70\x72\x6f\x64\x75\x63\x74\137\x69\144\40\x3d\x20\77\151", $product_id); goto pSGh0; mpDJT: xeRkx: goto IWD1r; sMlCu: $records = db_get_array("\x53\105\x4c\x45\103\124\x20\x2a\40\x46\122\117\x4d\x20\77\x3a\x73\163\x5f\x6f\x6d\x6e\151\x62\165\x73\x20\x57\x48\x45\122\105\40\x31\x20{$condition}"); goto kGIbQ; pSGh0: XLe5_: goto V4oko; NYFp0: $ss_omnibus_period = $addon_params["\x73\x73\137\157\155\156\151\142\x75\x73\x5f\x70\145\162\x69\x6f\144"]; goto Oq_Mm; RgDoA: $count = db_query("\x44\105\114\105\x54\x45\40\x46\x52\117\115\x20\77\72\163\163\x5f\x6f\155\156\x69\142\165\x73\x20\127\x48\x45\122\x45\40\x31\40{$condition}"); goto Je92a; b8tMN: $condition .= db_quote("\40\101\116\x44\40\164\151\x6d\x65\163\x74\141\155\x70\40\74\40\x3f\x69", $timestamp); goto sMlCu; b9MU1: goto lSVgB; goto xw3CO; mj7kh: $condition = ''; goto yazYV; xw3CO: SVhD2: goto NYFp0; pjK38: fn_clear_cache("\x72\145\147\x69\163\x74\162\x79"); goto E99dY; Je92a: if (!($product_id == 0)) { goto DJBOJ; } goto kzgoe; R0Z2u: } goto arndi; Kfn3J: function fn_ss_omnibus_uninstall() { goto Kiq2V; I9EwN: VPnxW: goto FrLOu; o9hix: db_query("\104\x45\x4c\105\x54\105\x20\x46\122\x4f\x4d\x20\77\72\x70\162\151\x76\151\x6c\x65\147\145\163\40\x57\x48\105\122\105\x20\x70\162\151\166\151\x6c\145\x67\x65\40\114\111\x4b\105\x20\x3f\x6c", "\163\163\137\x6f\x6d\156\151\x62\x75\x73\137\154\x6f\x67\x67\145\162" . "\45"); goto mvTrS; FrLOu: db_query("\x44\x45\114\x45\x54\105\40\x46\x52\x4f\x4d\x20\x3f\x3a\x70\162\151\x76\x69\x6c\x65\x67\145\163\40\127\x48\105\122\x45\40\x67\x72\157\x75\x70\x5f\151\x64\x20\75\x20\x3f\163", "\163\x73\x5f\157\x6d\156\151\x62\165\163"); goto KJBYG; Gb6FX: if (fn_ss_omnibus_check_version("\64\56\61\x30\x2e\x31", "\74")) { goto VPnxW; } goto o9hix; Kiq2V: LicenseAddons::instance()->checkLicense("\125\x4e\x49\x4e\x53\124\x41\114\x4c\105\104"); goto Gb6FX; mvTrS: goto p4wOH; goto I9EwN; KJBYG: p4wOH: goto Gvazf; Gvazf: }
Function Calls
None |
Stats
MD5 | 20bb81edda2b5359b452f54308ee1fd0 |
Eval Count | 0 |
Decode Time | 79 ms |