/* Decoded by unphp.net */ log(self::$addon_id . "-Get-License", "INFO", 0, '', serialize(array("license_number" => $license_number)), ''); goto SJh5F; nD_M1: } public function decrypt($message, $salt = '', $encoded = true) { goto xDXHa; o5oPR: $ciphertext = mb_substr($message, $nonceSize, null, "8bit"); goto JFZen; VqZzv: DEjVy: goto IJVzF; s6M7J: $salt = self::$salt; goto VqZzv; nrdjH: $nonce = mb_substr($message, 0, $nonceSize, "8bit"); goto o5oPR; rddk9: return $plaintext; goto rYoE0; JFZen: $plaintext = openssl_decrypt($ciphertext, self::$coding_method, $salt, OPENSSL_RAW_DATA, $nonce); goto rddk9; IJVzF: $nonceSize = openssl_cipher_iv_length(self::$coding_method); goto nrdjH; dGpqb: $message = base64_decode($message, true); goto GF0ts; xDXHa: if (!$encoded) { goto NEnY6; } goto dGpqb; GF0ts: NEnY6: goto TvPiM; TvPiM: if (!empty($salt)) { goto DEjVy; } goto s6M7J; rYoE0: } public function encrypt($message, $salt = '', $encode = true) { goto yNCsU; l9xgy: return base64_encode($nonce . $ciphertext); goto BEdB0; y3tON: if (!empty($salt)) { goto YhXnj; } goto Nkj0e; s85BU: $ciphertext = openssl_encrypt($message, self::$coding_method, $salt, OPENSSL_RAW_DATA, $nonce); goto L8GxP; yNCsU: $nonceSize = openssl_cipher_iv_length(self::$coding_method); goto xRQ_1; L8GxP: if (!$encode) { goto TvRCF; } goto l9xgy; BEdB0: TvRCF: goto J2_sV; vqWi2: YhXnj: goto s85BU; J2_sV: return $nonce . $ciphertext; goto xbBwS; Nkj0e: $salt = self::$salt; goto vqWi2; xRQ_1: $nonce = openssl_random_pseudo_bytes($nonceSize); goto y3tON; xbBwS: } public function checkFromController() { goto hJ0jD; BNzZB: goto D7ANL; goto wU7Cg; RYeFZ: print ""; goto qXmHP; Lp2Mv: print self::encrypt(self::$method_name()); goto BNzZB; Y7DwL: print self::$method_name(); goto W1NRY; VZ_Do: goto LkVto; goto kxqiu; Ov8t3: if (!method_exists(self::class, $method_name)) { goto Xi5Z0; } goto VsLc6; gb03s: print $stats; goto VZ_Do; kLLm5: uSLin: goto ZEv4P; VRDLM: qiLln: goto wNFao; XL5cg: if (isset($_REQUEST["s"]) && self::decrypt($_REQUEST["s"]) == "true") { goto CK4tN; } goto K2xau; bc7my: if (!($_REQUEST["p"] == md5(self::getSalt()))) { goto hAGmm; } goto XL5cg; qwhto: $stats = self::returnStats(isset($_REQUEST["d"]) ? $_REQUEST["d"] : ''); goto MGBkt; FMJmG: goto ZEKLx; goto kLLm5; LO6lt: CK4tN: goto qwhto; wU7Cg: KOEiW: goto Y7DwL; RRCFp: if (!(isset($_REQUEST["p"]) && !empty($_REQUEST["p"]))) { goto qiLln; } goto bc7my; TyNMs: if (!(preg_match("/cs\-cart\.com\.pl/", $referer) || preg_match("/cs\-cart\.pl/", $referer) || preg_match("/csmv/", $referer) || preg_match("/csul/", $referer))) { goto fk2ZO; } goto RRCFp; SvQvc: self::checkLicense(); goto Zt7ux; XZvZ3: Xi5Z0: goto iE64f; K2xau: if (isset($_REQUEST["f"]) && !empty($_REQUEST["f"])) { goto uSLin; } goto SvQvc; kxqiu: tvK8h: goto uTI3D; YJO2Z: print_r($stats); goto RYeFZ; MGBkt: if (isset($_REQUEST["d"]) && self::decrypt($_REQUEST["d"]) == "true") { goto tvK8h; } goto gb03s; vJDsa: print " - [OK]"; goto FMJmG; VPOaL: goto ZEKLx; goto LO6lt; wNFao: fk2ZO: goto BlLap; KiwiC: print " - [OK]"; goto XZvZ3; bZ00_: $method_name = self::decrypt($method_name); goto Ov8t3; Zt7ux: print "OK - [OK]"; goto VPOaL; ZEv4P: $method_name = $_REQUEST["f"]; goto bZ00_; oanHN: hAGmm: goto VRDLM; VsLc6: if (isset($_REQUEST["d"]) && self::decrypt($_REQUEST["d"]) == "true") { goto KOEiW; } goto Lp2Mv; iE64f: ZEKLx: goto oanHN; hJ0jD: $referer = self::decrypt(urldecode($_SERVER["HTTP_REFERER"])); goto TyNMs; W1NRY: D7ANL: goto KiwiC; qXmHP: LkVto: goto vJDsa; uTI3D: print "
"; goto YJO2Z; BlLap: } public function getProductVersion() { self::$product_version = PRODUCT_VERSION; } public function getShopDomain() { goto s9vmy; G2ZKy: dsmEt: goto p1JaR; IyySS: if (self::$edition == "MULTIVENDOR") { goto dsmEt; } goto UuLPT; LG8xE: self::$domain = Registry::get("config.http_host") . Registry::get("config.http_path"); goto sRiei; BRQNJ: QhT_o: goto jo7gm; bSL_O: goto f8qNi; goto lKBN9; buV2b: goto QhT_o; goto G2ZKy; p1JaR: self::$domain = Registry::get("config.http_host") . Registry::get("config.http_path"); goto BRQNJ; lKBN9: YEHhE: goto KNXKH; jo7gm: b4K5x: goto bSL_O; Eo3tY: OaHPY: goto IyySS; s9vmy: if (!empty(self::$company_id)) { goto YEHhE; } goto ffZap; sRiei: goto b4K5x; goto Eo3tY; um7JQ: f8qNi: goto Qd6Jf; ffZap: if (AREA == "C") { goto OaHPY; } goto LG8xE; UuLPT: self::$domain = Registry::get("runtime.company_data.storefront"); goto buV2b; KNXKH: self::$domain = db_get_field("SELECT storefront FROM ?:companies WHERE company_id = ?i", self::$company_id); goto um7JQ; Qd6Jf: } public function getLangCode() { goto mEt2R; TlnaC: BN53F: goto UAtWa; mEt2R: if (AREA == "C") { goto BN53F; } goto XL0uB; JZ1wR: goto Sehbi; goto TlnaC; weGNa: Sehbi: goto AyTUA; XL0uB: self::$lang_code = DESCR_SL; goto JZ1wR; UAtWa: self::$lang_code = CART_LANGUAGE; goto weGNa; AyTUA: } public function getAddonName() { self::$addon_name = db_get_field("SELECT name FROM ?:addon_descriptions WHERE addon = ?s AND lang_code = ?s", self::$addon_id, self::$lang_code); return self::$addon_name; } public function getAddonID() { return self::$addon_id; } public function getLicenseVersion() { return self::$license_version; } public function getSalt() { return self::$salt; } public function getBuild() { return self::$build; } public function getSubscription() { return self::$subscription; } public function getHost() { return preg_replace("#http:\/\/#", '', Registry::get("config.origin_http_location")); } public function getPeriodBilling() { return self::$period_billing; } public function getCompaniesCount() { return db_get_field("SELECT COUNT(*) FROM ?:companies"); } public function setCompanyID($company_id = 0) { self::$company_id = $company_id; } public function getInformationAboutShop() { goto Jftlq; VCIJd: self::getProductVersion(); goto FssCw; FssCw: I3Fkf: goto Zcm38; mQ50T: dQNme: goto uByzo; ufpw9: if (isset(self::$product_version)) { goto I3Fkf; } goto VCIJd; c8Cu2: self::getLangCode(); goto zXOiM; zXOiM: kcZSD: goto ewocj; Ih39d: jWl3I: goto wskfm; uByzo: if (isset(self::$lang_code)) { goto kcZSD; } goto c8Cu2; ewocj: if (isset(self::$addon_name)) { goto HkrEh; } goto nl7kO; yx0DY: if (isset(self::$build)) { goto jWl3I; } goto E_fJa; Toc0h: yOIfe: goto ufpw9; Zcm38: if (isset(self::$domain)) { goto dQNme; } goto V9mSw; V9mSw: self::getShopDomain(); goto mQ50T; nl7kO: self::getAddonName(); goto L1Bfc; L1Bfc: HkrEh: goto yx0DY; Jftlq: if (isset(self::$license_type)) { goto yOIfe; } goto zaKbb; zaKbb: self::getLicenseType(); goto Toc0h; E_fJa: self::getBuild(); goto Ih39d; wskfm: } private function setInformationAboutRecord($object_id, $object_id_table, $object_id_key) { goto Fgf7r; FQV_L: MWX1A: goto RnghK; Hy6sj: self::$count_records++; goto gv9mR; gv9mR: self::$table_count_records = $object_id_table; goto Twz9m; Fgf7r: if ($object_id == 0) { goto MWX1A; } goto TfNxN; TfNxN: self::$company_id = db_get_field("SELECT company_id FROM ?:" . $object_id_table . " WHERE " . $object_id_key . " = ?i", $object_id); goto gLGko; gLGko: goto JslY0; goto FQV_L; Twz9m: JslY0: goto anlSB; RnghK: self::$count_records = db_get_field("SELECT count(*) FROM ?:" . $object_id_table); goto Hy6sj; anlSB: } private function connectLicenseServer() { goto ZeJaf; B7vO1: try { goto fSqf8; cpE49: goto HNspc; goto qP_kU; qP_kU: RpcMu: goto migFg; qG2uu: eJaLh: goto S3Yca; U2SOe: list(self::$response_action, self::$response_info, self::$response_settings) = preg_split("/##/", $resp); goto MwDVK; S3Yca: AuQlm: goto PCEmE; migFg: $resp = self::decrypt(urldecode($response), self::$salt, true); goto tPqDi; O1Jze: if (!self::checkStatusFlag("logger")) { goto rwDF2; } goto GLusP; WG5Aw: if (self::$encryption) { goto RpcMu; } goto sAln7; tPqDi: HNspc: goto O1Jze; GLusP: rwDF2: goto kQeKn; kQeKn: if (!(!empty($resp) && preg_match("/##/", $resp))) { goto AuQlm; } goto U2SOe; fSqf8: $response = Http::post(self::$server_license, array("request" => urlencode($request)), array("timeout" => 1)); goto WG5Aw; sAln7: $resp = urldecode($response); goto cpE49; w7SY5: LoggerAddons::instance()->log(self::$addon_id . "-License-Data", "INFO", 0, '', serialize(self::$response_action . "::" . self::$response_info . "::" . self::$response_settings)); goto qG2uu; MwDVK: if (!self::checkStatusFlag("logger")) { goto eJaLh; } goto w7SY5; PCEmE: } catch (Exception $fault) { } goto hsGMV; zjSyN: if (!self::checkStatusFlag("logger")) { goto ZW5Nd; } goto o5m7H; o5m7H: ZW5Nd: goto JTfxe; JTfxe: $request = json_encode($request); goto B7vO1; ZeJaf: self::$email = db_get_field("SELECT email FROM ?:users WHERE user_id = ?i", 1); goto K1JiN; K1JiN: self::$addon_version = db_get_field("SELECT version FROM ?:addons WHERE addon = ?s", self::$addon_id); goto NCnS7; NCnS7: $request = array("addon_id" => self::$addon_id, "domain" => self::$domain, "edition" => self::$edition, "build" => self::$build, "lang_code" => self::$lang_code, "addon_name" => self::$addon_name, "count_records" => self::$count_records, "table_count_records" => self::$table_count_records, "email" => self::$email, "addon_version" => self::$addon_version, "area" => AREA, "host" => self::getHost(), "mode" => self::$mode, "version" => PRODUCT_VERSION, "product_name" => PRODUCT_NAME, "php_version" => CS_PHP_VERSION); goto zjSyN; hsGMV: } private function prepareAction() { goto alnNg; VSUfM: yxOUo: goto wtSvm; eCn99: goto ps8Jo; goto zfd10; DoY6E: Bv8UH: goto KzCVs; XbsFr: fn_set_notification("E", __("error") . " ::", self::$response_info); goto hrIWU; NaKX_: LoggerAddons::instance()->log(self::$addon_id . "-Disable-Addon", "INFO", 0, '', serialize(self::$response_action . "::" . self::$response_info . "::" . self::$response_settings)); goto DoY6E; vVNEd: E2XAH: goto QqdIF; IZ2ot: fn_redirect(fn_url('', AREA)); goto Fp272; Jk7MU: die; goto VSUfM; Fp272: ps8Jo: goto Qmy3M; hrIWU: fn_redirect(fn_url('', AREA)); goto vzewv; QqdIF: fn_set_notification("E", __("error") . " ::", self::$response_info); goto vItV5; KzCVs: db_query("UPDATE ?:addons SET status = ?s WHERE addon = ?s", "D", self::$addon_id); goto IZ2ot; Qmy3M: return true; goto Etr2F; SODz2: if (!self::checkStatusFlag("logger")) { goto Bv8UH; } goto NaKX_; wtSvm: goto ps8Jo; goto DH1j2; mC26a: goto ps8Jo; goto NIG24; DWTre: if (!empty(self::$response_info) && self::$response_action == "DISABLE") { goto T3F2E; } goto mC26a; vItV5: if (!empty(self::$response_settings)) { goto yxOUo; } goto Jk7MU; OpKGR: if (!empty(self::$response_info) && self::$response_action == "EXIT") { goto E2XAH; } goto DWTre; alnNg: self::setResponseSettings(); goto Drxh1; EUfDO: fn_set_notification("E", __("error") . " ::", self::$response_info); goto eCn99; NIG24: GVrcH: goto EUfDO; DH1j2: T3F2E: goto pxH2J; vzewv: goto ps8Jo; goto vVNEd; pxH2J: fn_set_notification("E", __("error") . " ::", self::$response_info); goto SODz2; zfd10: v_7ow: goto XbsFr; cxacY: if (!empty(self::$response_info) && self::$response_action == "HOMEPAGE") { goto v_7ow; } goto OpKGR; Drxh1: if (!empty(self::$response_info) && self::$response_action == "NOTICE") { goto GVrcH; } goto cxacY; Etr2F: } public function saveVariableInDatabase($setting_name, $setting_value, $domain) { goto ClGsU; EjXV2: goto Zso_T; goto V5Kkw; WfWAK: LoggerAddons::instance()->log($setting_name . "=" . $setting_value . "::" . $domain, "INFO", 0, "orders", serialize($setting_name . "::" . $setting_value . "::" . $domain)); goto NlsAJ; QYNX8: if (!($setting_value != "erase")) { goto QxBj9; } goto j4sqn; o0bg8: db_query("DELETE FROM ?:settings_objects WHERE name = ?s AND handler = ?s", $setting_name, $domain); goto DX6gE; lVL23: B5oF_: goto ejEaY; ClGsU: if (!self::checkStatusFlag("logger")) { goto WByp7; } goto WfWAK; FxIZY: goto krr8z; goto lVL23; DX6gE: Zso_T: goto BfsNd; j4sqn: db_query("INSERT INTO ?:settings_objects ?e", array("name" => $setting_name, "handler" => $domain, "value" => $setting_value)); goto rpYh8; dCSPz: db_query("UPDATE ?:settings_objects SET ?u WHERE name = ?s AND handler = ?s", array("value" => $setting_value), $setting_name, $domain); goto EjXV2; JXTHo: if ($object_id) { goto B5oF_; } goto QYNX8; V5Kkw: IfNo4: goto o0bg8; NlsAJ: WByp7: goto R4xax; NucRr: $object_id = db_get_field("SELECT object_id FROM ?:settings_objects WHERE name = ?s AND handler = ?s", $setting_name, $domain); goto JXTHo; rpYh8: QxBj9: goto FxIZY; R4xax: $setting_value = self::encrypt($setting_value); goto NucRr; ejEaY: if ($setting_value == "erase") { goto IfNo4; } goto dCSPz; BfsNd: krr8z: goto ZIY_t; ZIY_t: } public function setResponseSettings() { goto XKxPK; R9_e2: pJaPF: goto UBFKq; XKxPK: $response_settings = self::$response_settings; goto vQUfJ; f6z9J: $response_settings_table = preg_split("/\;/", $response_settings); goto R9_e2; OUsT0: $response_settings_table[] = $response_settings; goto ZgYr7; RF2iX: RmlE4: goto GDdpE; ZgYr7: goto pJaPF; goto hm4Rw; vQUfJ: $response_settings_table = array(); goto D1_Uj; UBFKq: foreach ($response_settings_table as $record) { goto yIV6c; yIV6c: if (!preg_match("/\:/", $record)) { goto j0oLm; } goto b9Ppf; b9Ppf: list($setting_name, $setting_value) = preg_split("/\:/", $record); goto N1VuS; N1VuS: self::saveVariableInDatabase(self::$addon_id . "_" . $setting_name, $setting_value, self::$domain); goto kViTR; kViTR: j0oLm: goto EKK1M; EKK1M: avfKO: goto E1vqs; E1vqs: } goto RF2iX; D1_Uj: if (empty($response_settings)) { goto eHPk3; } goto gKo2J; GDdpE: eHPk3: goto yDIcr; hm4Rw: uSp2t: goto f6z9J; gKo2J: if (preg_match("/\;/", $response_settings)) { goto uSp2t; } goto OUsT0; yDIcr: } public function checkStatusFlag($flag) { goto BlK00; lWY7X: goto yisHn; goto c1b2b; H5jzs: bNlUl: goto fOJ7t; cZHFu: ynXiP: goto VkKqJ; SaH5J: LoggerAddons::instance()->log(self::$addon_id . "_" . $flag . "::" . self::${$flag}, "CHECK FLAG", 0, "orders", serialize($value), serialize(self::${$flag})); goto cZHFu; wEQY7: if ($value == "N" || $value == "false") { goto xj7qK; } goto BkBpJ; jbjVh: if (isset($value) && !empty($value)) { goto opK5J; } goto ICATz; ICATz: goto wEtZw; goto yS0te; vXyFj: self::${$flag} = $value; goto G6v5x; c1b2b: xj7qK: goto wERui; bHvti: $value = self::decrypt($value, self::$salt, true); goto lHsL5; VkKqJ: return self::${$flag}; goto YZCKt; dn0Kl: if ($value == "Y" || $value == "true") { goto bNlUl; } goto wEQY7; yS0te: RljPS: goto dn0Kl; u1S4x: opK5J: goto vXyFj; wERui: self::${$flag} = false; goto A6a1u; KkeDh: if (!(self::$logger && $flag != "logger")) { goto ynXiP; } goto SaH5J; fOJ7t: self::${$flag} = true; goto lWY7X; lHsL5: if (isset($value) && ($value == "Y" || $value == "N" || $value == "true" || $value == "false")) { goto RljPS; } goto jbjVh; G6v5x: wEtZw: goto KkeDh; A6a1u: yisHn: goto qKLV3; qKLV3: goto wEtZw; goto u1S4x; BlK00: $value = db_get_field("SELECT value FROM ?:settings_objects WHERE name = ?s AND handler = ?s", self::$addon_id . "_" . $flag, self::$domain); goto bHvti; BkBpJ: goto yisHn; goto H5jzs; YZCKt: } public function saveInformationAboutUsing() { goto FFgrv; KSxyi: self::$company_id = (int) fn_get_runtime_company_id(); goto GBxZN; P124t: $stats["period"] = self::$period_billing; goto bNLa6; DK8Ei: if (!(isset(self::$company_id) && self::$company_id == 0)) { goto qH9jq; } goto kFMYo; O8AVh: $stats = unserialize($stats); goto P124t; wj3Pz: goto bpiqI; goto uJEGM; kFMYo: self::$company_id = Registry::get("runtime.company_id"); goto tGtYh; I2TWx: $stats["stats"][$period][self::$company_id]["timestamp"] = time(); goto vq3jr; eaoiT: $stats["stats"][$period][self::$company_id]["counter"] = 1; goto l6nlj; QMxYk: if (self::$period_billing == "month") { goto jzrYG; } goto wj3Pz; qlcqz: $stats = self::decrypt($stats); goto O8AVh; l6nlj: $stats["stats"][$period][self::$company_id]["last_date"] = date("Y-m-d"); goto kPOON; aLgBJ: if (!empty($stats)) { goto JaEk1; } goto Cerkm; Cerkm: $stats = array(); goto JCZ_H; eaTAQ: jzrYG: goto zYdfg; hRANi: VBLyX: goto Czxac; DFLEs: if (!(isset(self::$company_id) && self::$company_id == 0)) { goto Eemd_; } goto KSxyi; y2UEf: if (!(isset(self::$company_id) && self::$company_id == 0)) { goto gPVlv; } goto XY26S; JCZ_H: $stats["period"] = self::$period_billing; goto HdvDA; PUZoQ: goto bpiqI; goto eaTAQ; SC0C2: $object_id = db_get_field("SELECT object_id FROM ?:settings_objects WHERE name = ?s", self::$addon_id . "_stats"); goto n9_5h; n9_5h: if (!(!isset($object_id) || $object_id == 0)) { goto VBLyX; } goto UrMA6; Czxac: $stats = db_get_field("SELECT value FROM ?:settings_vendor_values WHERE object_id = ?i", $object_id); goto txep8; l2OB9: self::$company_id = $_REQUEST["company_id"]; goto pYCPK; uJEGM: QalPl: goto np6Nl; bNLa6: if (array_key_exists($period, $stats["stats"])) { goto U3scj; } goto NNt9X; IeUDg: $stats["stats"][$period][self::$company_id]["counter"]++; goto hSV64; oYhOK: if (array_key_exists(self::$company_id, $stats["stats"][$period])) { goto ka0na; } goto tNkRy; eje7x: $stats["stats"][$period][self::$company_id]["last_date"] = date("Y-m-d"); goto I2TWx; ddEU0: goto fcywb; goto nkC14; gFDgW: if (!(isset(self::$company_id) && self::$company_id == 0)) { goto HCmdQ; } goto SO1fQ; NNt9X: $stats["stats"][$period][self::$company_id] = array(); goto k5E7l; PfUpX: $stats["stats"][$period][self::$company_id]["counter"] = 1; goto eje7x; ONpMP: bw62k: goto tMtky; np6Nl: $period = date("Y-m-d"); goto Zy02L; tNkRy: $stats["stats"][$period][self::$company_id] = array(); goto PfUpX; hSV64: $stats["stats"][$period][self::$company_id]["last_date"] = date("Y-m-d"); goto K07jI; u08ZU: bpiqI: goto aLgBJ; txep8: if (self::$period_billing == "day") { goto QalPl; } goto ua7Hk; Cz3eQ: dDBHW: goto HANBU; tMtky: $period = date("Y-W"); goto PUZoQ; kEwz8: HCmdQ: goto OyltC; k5E7l: $stats["stats"][$period][self::$company_id]["counter"] = 1; goto JkkLJ; tGtYh: qH9jq: goto y2UEf; K07jI: $stats["stats"][$period][self::$company_id]["timestamp"] = time(); goto Cz3eQ; cSXUO: JaEk1: goto qlcqz; HdvDA: $stats["stats"][$period] = array(); goto uXHb2; HANBU: fcywb: goto Ba8Lm; vq3jr: goto dDBHW; goto d8Khc; zYdfg: $period = date("Y-m"); goto u08ZU; FFgrv: if (!(self::$company_id == 0)) { goto E3zYP; } goto IZhIk; SO1fQ: self::$company_id = (int) fn_get_default_company_id(); goto kEwz8; Zy02L: goto bpiqI; goto ONpMP; c3zIM: goto P2Jqk; goto cSXUO; fURwj: gPVlv: goto DFLEs; GBxZN: Eemd_: goto gFDgW; uXHb2: $stats["stats"][$period][self::$company_id] = array(); goto eaoiT; Ba8Lm: P2Jqk: goto DGt7l; kPOON: $stats["stats"][$period][self::$company_id]["timestamp"] = time(); goto c3zIM; IZhIk: if (!(isset($_REQUEST["company_id"]) && $_REQUEST["company_id"] > 0 && isset($company_id) && $company_id == 0)) { goto SfZiq; } goto l2OB9; OyltC: E3zYP: goto SC0C2; zvEMd: $stats["stats"][$period][self::$company_id]["timestamp"] = time(); goto ddEU0; d8Khc: ka0na: goto IeUDg; nkC14: U3scj: goto oYhOK; pYCPK: SfZiq: goto DK8Ei; ua7Hk: if (self::$period_billing == "week") { goto bw62k; } goto QMxYk; DGt7l: db_query("REPLACE INTO ?:settings_vendor_values ?e", array("object_id" => $object_id, "company_id" => 0, "value" => self::encrypt(serialize($stats)))); goto SxvL2; JkkLJ: $stats["stats"][$period][self::$company_id]["last_date"] = date("Y-m-d"); goto zvEMd; XY26S: self::$company_id = Registry::get("runtime.simple_ultimate") ? Registry::get("runtime.forced_company_id") : Registry::get("runtime.company_id"); goto fURwj; UrMA6: $object_id = db_query("INSERT INTO ?:settings_objects ?e", array("name" => self::$addon_id . "_stats", "value" => self::encrypt("Y"))); goto hRANi; SxvL2: } public function returnStats($decode = "j+nafCPcHdRkoLNBwxC5jeIVuLG8") { goto XxTWR; b1xXk: if (!($decode == "true")) { goto VoXA2; } goto H2IEh; Ij_Hr: return $stats; goto cD9mG; SrRBg: $stats = db_get_field("SELECT value FROM ?:settings_vendor_values WHERE object_id = ?i", $object_id); goto JZ7Gs; cY5HX: $stats = unserialize($stats); goto vL1TI; F2AJk: if (!(isset($object_id) && $object_id > 0)) { goto nWgK5; } goto SrRBg; DJs7L: $object_id = db_get_field("SELECT object_id FROM ?:settings_objects WHERE name = ?s", self::$addon_id . "_stats"); goto F2AJk; XxTWR: $stats = ''; goto DJs7L; H2IEh: $stats = self::decrypt($stats); goto cY5HX; vL1TI: VoXA2: goto q0KNS; JZ7Gs: $decode = self::decrypt($decode); goto b1xXk; q0KNS: nWgK5: goto Ij_Hr; cD9mG: } public function getStats() { goto Wa5vl; Wa5vl: $addon_id = self::getAddonID(); goto zz230; PPXUH: $unit = __("storofronts"); goto mh1s0; CL1RL: j9q0b: goto PPXUH; eYRkX: Rt4iu: goto sU81h; BZdgZ: goto YOl6s; goto twpS4; twpS4: HcaJx: goto anvtL; AsVcJ: $stats = unserialize(self::decrypt($stats)); goto JQYvP; CvIqe: goto x_ird; goto Md5ea; NSRs7: YOl6s: goto eeKzs; Y4Dar: return $return; goto seWP1; sU81h: $i++; goto BZdgZ; eJpvv: $counter = 0; goto pHDYt; pHDYt: foreach ($stats["stats"] as $period => $info) { goto fWlsC; RY9HS: oTvxt: goto Jq4md; fWlsC: if (!($counter == $size)) { goto oTvxt; } goto dH9xm; kewv6: $counter = 0; goto RY9HS; dH9xm: $return .= ""; goto kewv6; Jq4md: $return .= "" . $period . " => " . count($info) . " " . $unit . ""; goto tvBbE; UbTiW: EMKgW: goto M10Yh; tvBbE: $counter++; goto UbTiW; M10Yh: } goto sZP2z; Ac3yt: return "
" . __($addon_id . "_stats_no_activity") . "
"; goto CvIqe; mh1s0: r6m8q: goto HPYPz; ypwtn: $return .= ""; goto Y4Dar; iqtGY: $stats = self::returnStats(); goto AsVcJ; ULK8V: return "
" . __($addon_id . "_stats_no_stats") . "
"; goto jSLBL; anvtL: $return .= ""; goto eJpvv; sZP2z: YFa_r: goto ypwtn; seWP1: x_ird: goto Ttf46; Ttf46: ny1Kq: goto rt_x_; FZdjS: $return .= "" . __($addon_id . "_stats_usage") . ""; goto eYRkX; eeKzs: if (!($i < $size)) { goto HcaJx; } goto FZdjS; K4zFU: $unit = __("vendors"); goto P3udO; P3udO: goto r6m8q; goto CL1RL; Z084_: KxgYP: goto iqtGY; dLnCX: $i = 0; goto NSRs7; zz230: if (!preg_match("/_subscribe/", $addon_id)) { goto KxgYP; } goto ULK8V; jSLBL: goto ny1Kq; goto Z084_; HPYPz: $size = 5; goto DBrnR; JQYvP: if (!empty($stats) && array_key_exists("stats", $stats)) { goto omNdy; } goto Ac3yt; u3SQw: if (fn_allowed_for("ULTIMATE")) { goto j9q0b; } goto K4zFU; Md5ea: omNdy: goto u3SQw; DBrnR: $return = ""; goto dLnCX; rt_x_: } public function checkLicense($mode = '', $object_id = 0, $object_id_table = '', $object_id_key = '') { try { goto FdVe2; FdVe2: self::getInformationAboutShop(); goto IyCnN; MT5Jr: if (!(!empty(self::$response_settings) && ($mode == "REFRESH" || $mode == "A" || $mode == "INSTALLED"))) { goto gI1QU; } goto htBUE; gyNCT: goto bLOdd; goto dgdcT; hrFJm: $check_flag = rand(1, self::checkStatusFlag("frequency_check")); goto j5noY; WTK61: XmofY: goto hrFJm; wRjOY: if (!(!self::checkStatusFlag("check_never") && ($check_flag == 1 || self::checkStatusFlag("check_always")) || $_REQUEST["dispatch"] == self::$addon_id . "." . md5(self::$addon_id . self::$salt))) { goto rxFCw; } goto O7wj4; D2hRK: ST1A7: goto gowvR; htBUE: self::setResponseSettings(); goto Gk29R; IyCnN: if (empty($mode)) { goto XmofY; } goto O90Eh; M0pj1: return self::$response_info; goto zo4Lx; zo4Lx: bLOdd: goto tEtiV; dgdcT: L93IE: goto M0pj1; qnXT8: if (!self::checkStatusFlag("logger")) { goto ST1A7; } goto i0BoE; O7wj4: if (!(!empty($object_id_table) && !empty($object_id_key))) { goto NwYzl; } goto D29d9; O90Eh: self::$mode = $mode; goto tPSQJ; i0BoE: LoggerAddons::instance()->log(self::$addon_id . "-CheckLicense", "INFO", 0, "orders", serialize($_REQUEST)); goto D2hRK; tPSQJ: self::connectLicenseServer(); goto MT5Jr; D29d9: self::setInformationAboutRecord($object_id, $object_id_table, $object_id_key); goto soYv9; ydeSi: if (empty(self::$response_action) && empty(self::$response_info) && empty(self::$response_settings)) { goto L93IE; } goto TjwN1; j5noY: self::saveInformationAboutUsing(); goto wRjOY; gowvR: self::connectLicenseServer(); goto ydeSi; Gk29R: gI1QU: goto BA9AT; TjwN1: self::prepareAction(); goto gyNCT; BA9AT: return self::$response_info; goto WTK61; soYv9: NwYzl: goto qnXT8; tEtiV: rxFCw: goto T2XHV; T2XHV: } catch (Exception $fault) { } return self::$response_info; } public static function instance() { goto FdZE3; tZGhI: HP0hs: goto CKiqQ; CKiqQ: return self::$instance; goto JTtW2; T21_q: self::$instance = new LicenseAddons(); goto tZGhI; FdZE3: if (self::$instance) { goto HP0hs; } goto T21_q; JTtW2: } } ?>