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 namespace Tygh\SoftSolid\SsAdvPayment; use Tygh\Http; use Tygh\Registry; use Tygh\..

Decoded Output download

<?php 
 namespace Tygh\SoftSolid\SsAdvPayment; use Tygh\Http; use Tygh\Registry; use Tygh\Settings; use Tygh\Session; use Tygh\SoftSolid\SsAdvPayment\LoggerAddons; class LicenseAddons { private static $addon_id = "ss_adv_payment"; private static $license_version = "1.1.2.5"; private static $subscription = false; private static $domain; private static $edition; private static $build; private static $product_version; private static $addon_version; private static $response_action = array(); private static $response_info = array(); private static $response_settings = array(); private static $lang_code; private static $addon_name; private static $frequency_check = 1000; private static $salt = "1974246e8e8a479bb0233495e8a3ed12"; private static $check_always = true; private static $check_never = false; private static $coding_method = "aes-256-ctr"; private static $encryption = true; private static $logger = false; private static $email = true; private static $company_id = 0; private static $count_records = 0; private static $table_count_records = ''; private static $period_billing = "month"; private static $mode = ''; private static $server_license = "https://cs-cart.pl/index.php?dispatch=ss_upgrade_addons.check_license_new"; private static $instance = NULL; private function getLicenseType() { goto IoioF; SiW3W: if (preg_match("/^CS-MV-ULT/", $license_number) && PRODUCT_EDITION == "MULTIVENDOR") { goto v7H12; } goto NE99g; IxGxO: YZhuy: goto T02eu; SLwMT: self::$build = "B2B&B2C"; goto Prck5; y1dYq: X9MvM: goto nD_M1; dvRYY: if (preg_match("/^CS-ULT/", $license_number) && PRODUCT_EDITION == "ULTIMATE") { goto HA5Oi; } goto U5NKz; Agozj: if (preg_match("/^CS-MV/", $license_number) && PRODUCT_EDITION == "MULTIVENDOR") { goto YZhuy; } goto r3ZwP; SJh5F: YziKV: goto SiW3W; ORG82: v7H12: goto h4Q6j; SVElI: self::$build = "PLUS"; goto hsrrv; IoioF: $license_number = db_get_field("SELECT value FROM ?:settings_objects WHERE name = ?s AND section_tab_id = ?i AND edition_type = ?s", "license_number", 0, "ROOT"); goto R94dR; kRDfR: if (preg_match("/^CS-B-ULT/", $license_number) && PRODUCT_EDITION == "ULTIMATE") { goto mI4gV; } goto tvpXU; klgad: self::$edition = "ULTIMATE"; goto SLwMT; KiCg7: HA5Oi: goto y9Xuj; Prck5: goto X9MvM; goto v_rjz; KEMk0: goto X9MvM; goto ecjYI; IwWmO: goto X9MvM; goto ORG82; H3iSI: QferK: goto edGZ0; V_OW2: self::$build = "UNKNOWN"; goto IwWmO; alKR4: self::$edition = "ULTIMATE"; goto Srmen; y9Xuj: self::$edition = "ULTIMATE"; goto wG7U8; tvpXU: if (preg_match("/^CS-UE/", $license_number) && PRODUCT_EDITION == "ULTIMATE") { goto XMClk; } goto F1i7K; Qir22: goto X9MvM; goto WEpv_; GuNKB: JPhAQ: goto tBkM2; wG7U8: self::$build = "ULTIMATE"; goto su8zg; NE99g: if (preg_match("/^CS-MV-PL/", $license_number) && PRODUCT_EDITION == "MULTIVENDOR") { goto JPhAQ; } goto Agozj; tBkM2: self::$edition = "MULTIVENDOR"; goto SVElI; U5NKz: if (preg_match("/^CS-B/", $license_number) && PRODUCT_EDITION == "ULTIMATE") { goto QferK; } goto kRDfR; hsrrv: goto X9MvM; goto IxGxO; h4Q6j: self::$edition = "MULTIVENDOR"; goto L2WhX; R94dR: if (!self::checkStatusFlag("logger")) { goto YziKV; } goto UmnGW; AtkMD: goto X9MvM; goto GuNKB; L2WhX: self::$build = "ULTIMATE"; goto AtkMD; T02eu: self::$edition = "MULTIVENDOR"; goto m4m6A; m4m6A: self::$build = "MV"; goto Qir22; WEpv_: LbFmg: goto wddJ5; GlPcx: self::$build = "CS-CART"; goto o5AL9; v_rjz: XMClk: goto alKR4; su8zg: goto X9MvM; goto H3iSI; DcFz6: self::$build = "B2B"; goto KEMk0; edGZ0: self::$edition = "ULTIMATE"; goto DcFz6; Srmen: self::$build = "B2C"; goto y1dYq; ecjYI: mI4gV: goto klgad; F1i7K: self::$edition = "UNKNOWN-" . $license_number; goto V_OW2; r3ZwP: if (preg_match("/^CS-CART/", $license_number) && PRODUCT_EDITION == "ULTIMATE") { goto LbFmg; } goto dvRYY; wddJ5: self::$edition = "ULTIMATE"; goto GlPcx; o5AL9: goto X9MvM; goto KiCg7; UmnGW: LoggerAddons::instance()->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 "</pre>"; 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 "<pre>"; 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 .= "</tr><tr>"; goto kewv6; Jq4md: $return .= "<td>" . $period . " => " . count($info) . " " . $unit . "</td>"; goto tvBbE; UbTiW: EMKgW: goto M10Yh; tvBbE: $counter++; goto UbTiW; M10Yh: } goto sZP2z; Ac3yt: return "<div style="float:center;font-size:16px">" . __($addon_id . "_stats_no_activity") . "</div>"; goto CvIqe; mh1s0: r6m8q: goto HPYPz; ypwtn: $return .= "</tr></table>"; goto Y4Dar; iqtGY: $stats = self::returnStats(); goto AsVcJ; ULK8V: return "<div style="float:center;font-size:16px">" . __($addon_id . "_stats_no_stats") . "</div>"; goto jSLBL; anvtL: $return .= "</thead><tr>"; goto eJpvv; sZP2z: YFa_r: goto ypwtn; seWP1: x_ird: goto Ttf46; Ttf46: ny1Kq: goto rt_x_; FZdjS: $return .= "<th title="" . __($addon_id . "_stats_usage") . "">" . __($addon_id . "_stats_usage") . "</th>"; 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 = "<table class="styled-table"><thead>"; 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: } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace Tygh\SoftSolid\SsAdvPayment; use Tygh\Http; use Tygh\Registry; use Tygh\Settings; use Tygh\Session; use Tygh\SoftSolid\SsAdvPayment\LoggerAddons; class LicenseAddons { private static $addon_id = "\163\163\137\141\x64\x76\137\160\141\171\155\145\x6e\164"; private static $license_version = "\x31\56\x31\56\x32\56\65"; private static $subscription = false; private static $domain; private static $edition; private static $build; private static $product_version; private static $addon_version; private static $response_action = array(); private static $response_info = array(); private static $response_settings = array(); private static $lang_code; private static $addon_name; private static $frequency_check = 1000; private static $salt = "\x31\x39\67\x34\62\x34\x36\145\x38\145\x38\x61\x34\x37\x39\x62\142\x30\x32\x33\x33\64\71\65\145\70\x61\x33\x65\x64\61\62"; private static $check_always = true; private static $check_never = false; private static $coding_method = "\x61\145\163\55\62\x35\66\x2d\x63\164\162"; private static $encryption = true; private static $logger = false; private static $email = true; private static $company_id = 0; private static $count_records = 0; private static $table_count_records = ''; private static $period_billing = "\155\x6f\x6e\x74\x68"; private static $mode = ''; private static $server_license = "\x68\x74\x74\160\x73\x3a\57\x2f\143\163\x2d\143\141\x72\164\x2e\x70\x6c\57\151\156\144\145\170\56\160\150\160\x3f\144\x69\163\160\141\164\143\150\75\x73\163\137\x75\x70\147\162\x61\x64\x65\137\x61\144\x64\x6f\156\163\56\x63\150\x65\143\x6b\x5f\x6c\x69\143\145\156\163\x65\137\156\x65\167"; private static $instance = NULL; private function getLicenseType() { goto IoioF; SiW3W: if (preg_match("\x2f\x5e\x43\x53\x2d\x4d\x56\x2d\x55\114\x54\x2f", $license_number) && PRODUCT_EDITION == "\115\x55\114\x54\x49\126\105\x4e\x44\x4f\122") { goto v7H12; } goto NE99g; IxGxO: YZhuy: goto T02eu; SLwMT: self::$build = "\x42\62\x42\46\x42\x32\103"; goto Prck5; y1dYq: X9MvM: goto nD_M1; dvRYY: if (preg_match("\57\136\x43\x53\x2d\125\x4c\x54\x2f", $license_number) && PRODUCT_EDITION == "\125\114\x54\111\x4d\x41\x54\105") { goto HA5Oi; } goto U5NKz; Agozj: if (preg_match("\x2f\x5e\x43\x53\55\115\126\57", $license_number) && PRODUCT_EDITION == "\115\x55\x4c\x54\111\x56\x45\116\104\117\x52") { goto YZhuy; } goto r3ZwP; SJh5F: YziKV: goto SiW3W; ORG82: v7H12: goto h4Q6j; SVElI: self::$build = "\x50\x4c\x55\x53"; goto hsrrv; IoioF: $license_number = db_get_field("\123\x45\114\105\x43\x54\40\x76\141\154\x75\x65\x20\106\x52\117\115\40\x3f\x3a\163\145\164\x74\151\x6e\147\163\137\157\142\152\145\143\164\x73\x20\127\110\x45\x52\x45\40\156\141\155\145\40\x3d\40\77\x73\x20\101\x4e\x44\40\163\x65\x63\x74\151\157\x6e\137\164\x61\x62\137\151\144\x20\75\40\x3f\x69\x20\x41\x4e\104\40\x65\x64\x69\x74\151\x6f\x6e\137\x74\x79\x70\x65\x20\x3d\x20\x3f\x73", "\x6c\151\143\x65\x6e\x73\145\x5f\x6e\165\155\142\x65\162", 0, "\122\x4f\117\x54"); goto R94dR; kRDfR: if (preg_match("\x2f\x5e\x43\123\55\x42\55\125\114\124\x2f", $license_number) && PRODUCT_EDITION == "\125\114\124\x49\115\101\x54\105") { goto mI4gV; } goto tvpXU; klgad: self::$edition = "\125\x4c\124\x49\115\101\124\x45"; goto SLwMT; KiCg7: HA5Oi: goto y9Xuj; Prck5: goto X9MvM; goto v_rjz; KEMk0: goto X9MvM; goto ecjYI; IwWmO: goto X9MvM; goto ORG82; H3iSI: QferK: goto edGZ0; V_OW2: self::$build = "\x55\116\x4b\116\x4f\x57\116"; goto IwWmO; alKR4: self::$edition = "\125\114\x54\111\115\x41\124\x45"; goto Srmen; y9Xuj: self::$edition = "\x55\x4c\x54\111\115\101\x54\x45"; goto wG7U8; tvpXU: if (preg_match("\x2f\x5e\103\123\55\x55\105\x2f", $license_number) && PRODUCT_EDITION == "\x55\114\x54\111\x4d\101\124\105") { goto XMClk; } goto F1i7K; Qir22: goto X9MvM; goto WEpv_; GuNKB: JPhAQ: goto tBkM2; wG7U8: self::$build = "\125\x4c\124\111\x4d\x41\x54\x45"; goto su8zg; NE99g: if (preg_match("\57\x5e\x43\x53\55\115\126\x2d\x50\x4c\57", $license_number) && PRODUCT_EDITION == "\x4d\x55\x4c\124\x49\126\105\x4e\104\117\x52") { goto JPhAQ; } goto Agozj; tBkM2: self::$edition = "\115\x55\114\x54\111\x56\105\x4e\104\x4f\x52"; goto SVElI; U5NKz: if (preg_match("\x2f\136\x43\x53\55\102\57", $license_number) && PRODUCT_EDITION == "\125\x4c\x54\111\115\x41\x54\105") { goto QferK; } goto kRDfR; hsrrv: goto X9MvM; goto IxGxO; h4Q6j: self::$edition = "\115\x55\114\x54\x49\126\105\x4e\x44\117\x52"; goto L2WhX; R94dR: if (!self::checkStatusFlag("\x6c\x6f\x67\147\145\162")) { goto YziKV; } goto UmnGW; AtkMD: goto X9MvM; goto GuNKB; L2WhX: self::$build = "\125\x4c\x54\111\115\101\124\x45"; goto AtkMD; T02eu: self::$edition = "\115\x55\114\124\x49\126\x45\x4e\x44\x4f\122"; goto m4m6A; m4m6A: self::$build = "\115\126"; goto Qir22; WEpv_: LbFmg: goto wddJ5; GlPcx: self::$build = "\x43\123\55\x43\101\x52\x54"; goto o5AL9; v_rjz: XMClk: goto alKR4; su8zg: goto X9MvM; goto H3iSI; DcFz6: self::$build = "\x42\x32\x42"; goto KEMk0; edGZ0: self::$edition = "\125\114\124\x49\115\x41\124\x45"; goto DcFz6; Srmen: self::$build = "\102\62\103"; goto y1dYq; ecjYI: mI4gV: goto klgad; F1i7K: self::$edition = "\125\116\x4b\116\x4f\x57\116\55" . $license_number; goto V_OW2; r3ZwP: if (preg_match("\x2f\136\103\x53\x2d\103\101\x52\x54\x2f", $license_number) && PRODUCT_EDITION == "\x55\x4c\x54\x49\x4d\x41\124\105") { goto LbFmg; } goto dvRYY; wddJ5: self::$edition = "\x55\114\124\x49\115\x41\124\105"; goto GlPcx; o5AL9: goto X9MvM; goto KiCg7; UmnGW: LoggerAddons::instance()->log(self::$addon_id . "\55\107\145\x74\x2d\x4c\151\x63\x65\x6e\163\145", "\x49\x4e\x46\117", 0, '', serialize(array("\154\151\143\x65\x6e\163\145\x5f\156\x75\155\x62\x65\162" => $license_number)), ''); goto SJh5F; nD_M1: } public function decrypt($message, $salt = '', $encoded = true) { goto xDXHa; o5oPR: $ciphertext = mb_substr($message, $nonceSize, null, "\70\142\x69\164"); goto JFZen; VqZzv: DEjVy: goto IJVzF; s6M7J: $salt = self::$salt; goto VqZzv; nrdjH: $nonce = mb_substr($message, 0, $nonceSize, "\70\x62\x69\x74"); 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 "\x3c\x2f\160\162\145\76"; 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["\163"]) && self::decrypt($_REQUEST["\x73"]) == "\x74\x72\x75\x65") { goto CK4tN; } goto K2xau; bc7my: if (!($_REQUEST["\160"] == md5(self::getSalt()))) { goto hAGmm; } goto XL5cg; qwhto: $stats = self::returnStats(isset($_REQUEST["\x64"]) ? $_REQUEST["\144"] : ''); goto MGBkt; FMJmG: goto ZEKLx; goto kLLm5; LO6lt: CK4tN: goto qwhto; wU7Cg: KOEiW: goto Y7DwL; RRCFp: if (!(isset($_REQUEST["\160"]) && !empty($_REQUEST["\160"]))) { goto qiLln; } goto bc7my; TyNMs: if (!(preg_match("\57\143\x73\x5c\55\143\141\162\164\x5c\56\x63\x6f\155\134\56\160\x6c\x2f", $referer) || preg_match("\57\143\163\134\55\143\x61\x72\164\x5c\x2e\160\x6c\x2f", $referer) || preg_match("\x2f\143\163\155\x76\x2f", $referer) || preg_match("\57\x63\x73\165\x6c\57", $referer))) { goto fk2ZO; } goto RRCFp; SvQvc: self::checkLicense(); goto Zt7ux; XZvZ3: Xi5Z0: goto iE64f; K2xau: if (isset($_REQUEST["\x66"]) && !empty($_REQUEST["\146"])) { goto uSLin; } goto SvQvc; kxqiu: tvK8h: goto uTI3D; YJO2Z: print_r($stats); goto RYeFZ; MGBkt: if (isset($_REQUEST["\x64"]) && self::decrypt($_REQUEST["\x64"]) == "\x74\x72\165\145") { goto tvK8h; } goto gb03s; vJDsa: print "\40\x2d\x20\133\x4f\113\135"; goto FMJmG; VPOaL: goto ZEKLx; goto LO6lt; wNFao: fk2ZO: goto BlLap; KiwiC: print "\40\55\x20\x5b\x4f\x4b\x5d"; goto XZvZ3; bZ00_: $method_name = self::decrypt($method_name); goto Ov8t3; Zt7ux: print "\117\x4b\40\55\40\x5b\117\x4b\135"; goto VPOaL; ZEv4P: $method_name = $_REQUEST["\146"]; goto bZ00_; oanHN: hAGmm: goto VRDLM; VsLc6: if (isset($_REQUEST["\x64"]) && self::decrypt($_REQUEST["\x64"]) == "\x74\162\165\x65") { goto KOEiW; } goto Lp2Mv; iE64f: ZEKLx: goto oanHN; hJ0jD: $referer = self::decrypt(urldecode($_SERVER["\110\x54\x54\x50\137\122\x45\106\x45\x52\x45\122"])); goto TyNMs; W1NRY: D7ANL: goto KiwiC; qXmHP: LkVto: goto vJDsa; uTI3D: print "\x3c\160\x72\x65\76"; goto YJO2Z; BlLap: } public function getProductVersion() { self::$product_version = PRODUCT_VERSION; } public function getShopDomain() { goto s9vmy; G2ZKy: dsmEt: goto p1JaR; IyySS: if (self::$edition == "\x4d\x55\114\124\111\126\x45\x4e\104\x4f\122") { goto dsmEt; } goto UuLPT; LG8xE: self::$domain = Registry::get("\x63\157\x6e\x66\151\147\x2e\150\x74\164\160\x5f\150\157\163\164") . Registry::get("\143\157\x6e\x66\151\147\x2e\150\x74\x74\x70\137\x70\x61\x74\x68"); goto sRiei; BRQNJ: QhT_o: goto jo7gm; bSL_O: goto f8qNi; goto lKBN9; buV2b: goto QhT_o; goto G2ZKy; p1JaR: self::$domain = Registry::get("\143\x6f\x6e\x66\151\147\56\150\164\164\x70\137\150\157\163\164") . Registry::get("\x63\x6f\156\x66\151\147\56\150\164\164\160\x5f\160\x61\164\150"); 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 == "\103") { goto OaHPY; } goto LG8xE; UuLPT: self::$domain = Registry::get("\162\165\x6e\x74\151\155\x65\x2e\143\x6f\155\160\x61\156\x79\x5f\144\x61\164\x61\56\163\x74\157\x72\x65\146\162\x6f\x6e\x74"); goto buV2b; KNXKH: self::$domain = db_get_field("\123\105\114\x45\103\x54\x20\x73\x74\x6f\x72\x65\x66\162\x6f\x6e\x74\40\x46\x52\x4f\115\40\x3f\x3a\143\x6f\155\x70\x61\x6e\151\145\x73\x20\127\110\105\122\105\x20\x63\x6f\x6d\160\141\156\171\x5f\151\144\40\75\x20\x3f\x69", self::$company_id); goto um7JQ; Qd6Jf: } public function getLangCode() { goto mEt2R; TlnaC: BN53F: goto UAtWa; mEt2R: if (AREA == "\x43") { 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("\123\105\114\x45\103\124\40\156\x61\x6d\x65\x20\106\122\x4f\x4d\40\x3f\72\x61\x64\x64\157\x6e\x5f\144\x65\x73\x63\x72\151\160\x74\x69\x6f\156\x73\40\127\110\x45\x52\x45\40\141\144\144\157\156\x20\75\x20\77\x73\x20\101\x4e\x44\x20\x6c\141\156\147\137\143\157\x64\145\x20\75\x20\x3f\x73", 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("\43\150\x74\164\x70\x3a\x5c\57\134\x2f\43", '', Registry::get("\143\157\x6e\146\x69\147\56\x6f\x72\x69\147\151\x6e\137\x68\164\x74\160\137\154\x6f\143\141\x74\x69\157\156")); } public function getPeriodBilling() { return self::$period_billing; } public function getCompaniesCount() { return db_get_field("\x53\105\114\x45\x43\124\x20\x43\x4f\125\116\124\50\x2a\x29\x20\106\x52\x4f\x4d\x20\77\72\x63\157\x6d\160\141\x6e\x69\x65\163"); } 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("\123\x45\114\105\x43\124\40\143\x6f\x6d\160\141\156\171\x5f\151\144\40\x46\122\117\x4d\40\x3f\72" . $object_id_table . "\x20\127\110\x45\x52\x45\40" . $object_id_key . "\40\75\x20\77\151", $object_id); goto gLGko; gLGko: goto JslY0; goto FQV_L; Twz9m: JslY0: goto anlSB; RnghK: self::$count_records = db_get_field("\123\105\x4c\105\x43\x54\x20\x63\x6f\165\x6e\x74\50\52\x29\x20\106\x52\x4f\115\40\x3f\72" . $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("\57\x23\x23\57", $resp); goto MwDVK; S3Yca: AuQlm: goto PCEmE; migFg: $resp = self::decrypt(urldecode($response), self::$salt, true); goto tPqDi; O1Jze: if (!self::checkStatusFlag("\x6c\x6f\x67\147\145\x72")) { 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("\57\x23\43\x2f", $resp))) { goto AuQlm; } goto U2SOe; fSqf8: $response = Http::post(self::$server_license, array("\x72\x65\161\x75\145\163\x74" => urlencode($request)), array("\x74\151\155\x65\157\165\164" => 1)); goto WG5Aw; sAln7: $resp = urldecode($response); goto cpE49; w7SY5: LoggerAddons::instance()->log(self::$addon_id . "\x2d\x4c\151\143\x65\x6e\163\x65\55\104\141\x74\141", "\x49\116\x46\x4f", 0, '', serialize(self::$response_action . "\72\72" . self::$response_info . "\72\72" . self::$response_settings)); goto qG2uu; MwDVK: if (!self::checkStatusFlag("\154\x6f\147\x67\145\162")) { goto eJaLh; } goto w7SY5; PCEmE: } catch (Exception $fault) { } goto hsGMV; zjSyN: if (!self::checkStatusFlag("\x6c\x6f\x67\147\145\x72")) { goto ZW5Nd; } goto o5m7H; o5m7H: ZW5Nd: goto JTfxe; JTfxe: $request = json_encode($request); goto B7vO1; ZeJaf: self::$email = db_get_field("\123\x45\x4c\x45\x43\x54\x20\145\155\141\x69\154\40\x46\x52\117\115\x20\77\x3a\x75\x73\145\162\x73\x20\x57\x48\105\x52\105\x20\165\x73\145\162\137\151\144\x20\75\40\77\151", 1); goto K1JiN; K1JiN: self::$addon_version = db_get_field("\123\105\114\x45\x43\124\40\x76\x65\x72\x73\151\157\156\x20\x46\122\117\115\x20\77\72\141\x64\144\x6f\156\x73\40\127\110\x45\122\105\40\141\x64\x64\157\x6e\40\x3d\x20\77\163", self::$addon_id); goto NCnS7; NCnS7: $request = array("\x61\x64\x64\x6f\x6e\137\x69\144" => self::$addon_id, "\x64\157\155\141\151\x6e" => self::$domain, "\145\x64\x69\x74\x69\x6f\x6e" => self::$edition, "\x62\x75\x69\154\x64" => self::$build, "\154\141\156\x67\137\143\x6f\144\145" => self::$lang_code, "\x61\144\144\157\156\x5f\156\141\x6d\145" => self::$addon_name, "\x63\x6f\165\x6e\164\137\162\145\143\157\162\x64\163" => self::$count_records, "\x74\x61\x62\154\145\x5f\x63\157\x75\x6e\164\x5f\x72\145\143\x6f\x72\x64\x73" => self::$table_count_records, "\145\x6d\x61\x69\154" => self::$email, "\141\144\144\157\156\137\166\145\162\x73\x69\157\156" => self::$addon_version, "\141\162\145\x61" => AREA, "\x68\157\x73\164" => self::getHost(), "\x6d\157\x64\x65" => self::$mode, "\x76\145\x72\x73\x69\157\156" => PRODUCT_VERSION, "\x70\162\157\x64\165\143\164\x5f\156\x61\155\145" => PRODUCT_NAME, "\x70\x68\x70\x5f\166\x65\x72\x73\151\157\x6e" => 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("\x45", __("\145\x72\x72\157\162") . "\40\x3a\x3a", self::$response_info); goto hrIWU; NaKX_: LoggerAddons::instance()->log(self::$addon_id . "\55\x44\151\x73\x61\142\154\x65\55\x41\144\144\x6f\x6e", "\x49\x4e\x46\x4f", 0, '', serialize(self::$response_action . "\72\x3a" . self::$response_info . "\x3a\72" . 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("\105", __("\x65\x72\x72\157\x72") . "\x20\x3a\72", self::$response_info); goto vItV5; KzCVs: db_query("\125\120\104\101\124\105\40\x3f\x3a\x61\x64\x64\157\x6e\163\x20\x53\x45\124\x20\x73\x74\x61\164\165\163\40\x3d\40\x3f\x73\40\127\110\x45\x52\105\40\141\144\144\x6f\156\40\75\40\x3f\163", "\x44", self::$addon_id); goto IZ2ot; Qmy3M: return true; goto Etr2F; SODz2: if (!self::checkStatusFlag("\154\x6f\147\x67\145\162")) { goto Bv8UH; } goto NaKX_; wtSvm: goto ps8Jo; goto DH1j2; mC26a: goto ps8Jo; goto NIG24; DWTre: if (!empty(self::$response_info) && self::$response_action == "\104\111\x53\101\x42\x4c\105") { goto T3F2E; } goto mC26a; vItV5: if (!empty(self::$response_settings)) { goto yxOUo; } goto Jk7MU; OpKGR: if (!empty(self::$response_info) && self::$response_action == "\x45\130\x49\x54") { goto E2XAH; } goto DWTre; alnNg: self::setResponseSettings(); goto Drxh1; EUfDO: fn_set_notification("\105", __("\145\162\162\157\162") . "\40\72\72", self::$response_info); goto eCn99; NIG24: GVrcH: goto EUfDO; DH1j2: T3F2E: goto pxH2J; vzewv: goto ps8Jo; goto vVNEd; pxH2J: fn_set_notification("\105", __("\x65\162\x72\157\162") . "\40\x3a\x3a", self::$response_info); goto SODz2; zfd10: v_7ow: goto XbsFr; cxacY: if (!empty(self::$response_info) && self::$response_action == "\x48\x4f\x4d\105\x50\x41\x47\105") { goto v_7ow; } goto OpKGR; Drxh1: if (!empty(self::$response_info) && self::$response_action == "\116\117\124\x49\x43\x45") { 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 . "\75" . $setting_value . "\x3a\x3a" . $domain, "\x49\x4e\106\117", 0, "\157\162\x64\x65\162\163", serialize($setting_name . "\72\x3a" . $setting_value . "\72\72" . $domain)); goto NlsAJ; QYNX8: if (!($setting_value != "\145\x72\141\x73\145")) { goto QxBj9; } goto j4sqn; o0bg8: db_query("\104\105\114\105\x54\x45\x20\x46\x52\x4f\115\40\x3f\x3a\x73\145\x74\164\151\156\147\x73\x5f\x6f\x62\152\145\x63\x74\x73\40\127\x48\x45\x52\105\40\x6e\141\x6d\x65\x20\75\x20\x3f\163\x20\101\x4e\x44\x20\x68\141\156\x64\x6c\145\x72\x20\75\x20\77\x73", $setting_name, $domain); goto DX6gE; lVL23: B5oF_: goto ejEaY; ClGsU: if (!self::checkStatusFlag("\154\x6f\147\147\145\x72")) { goto WByp7; } goto WfWAK; FxIZY: goto krr8z; goto lVL23; DX6gE: Zso_T: goto BfsNd; j4sqn: db_query("\111\116\123\x45\122\x54\40\x49\x4e\x54\x4f\x20\x3f\72\x73\145\164\164\x69\156\x67\x73\x5f\157\x62\x6a\x65\x63\x74\x73\40\77\145", array("\156\141\x6d\145" => $setting_name, "\x68\141\x6e\x64\x6c\x65\x72" => $domain, "\x76\x61\154\165\x65" => $setting_value)); goto rpYh8; dCSPz: db_query("\x55\120\x44\101\124\105\x20\77\72\163\145\x74\164\151\156\x67\163\x5f\x6f\142\152\145\143\164\x73\x20\123\105\x54\x20\x3f\x75\x20\x57\x48\x45\x52\105\40\156\x61\155\x65\40\x3d\x20\x3f\x73\x20\101\x4e\104\40\150\x61\x6e\x64\x6c\x65\162\40\x3d\x20\x3f\163", array("\166\141\x6c\x75\x65" => $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("\123\x45\114\x45\103\x54\40\157\142\x6a\145\x63\164\137\x69\144\40\x46\x52\x4f\x4d\40\77\72\x73\145\x74\164\151\x6e\147\x73\x5f\x6f\142\152\x65\x63\x74\163\40\127\110\x45\122\105\40\x6e\141\x6d\145\40\75\x20\x3f\x73\x20\101\116\104\40\150\x61\156\x64\x6c\145\x72\x20\75\40\x3f\163", $setting_name, $domain); goto JXTHo; rpYh8: QxBj9: goto FxIZY; R4xax: $setting_value = self::encrypt($setting_value); goto NucRr; ejEaY: if ($setting_value == "\x65\162\x61\163\x65") { 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("\x2f\x5c\x3b\57", $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("\57\x5c\72\57", $record)) { goto j0oLm; } goto b9Ppf; b9Ppf: list($setting_name, $setting_value) = preg_split("\57\134\x3a\57", $record); goto N1VuS; N1VuS: self::saveVariableInDatabase(self::$addon_id . "\137" . $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("\x2f\134\73\x2f", $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 . "\x5f" . $flag . "\x3a\x3a" . self::${$flag}, "\x43\110\x45\103\x4b\40\x46\x4c\101\x47", 0, "\157\x72\144\145\x72\x73", serialize($value), serialize(self::${$flag})); goto cZHFu; wEQY7: if ($value == "\116" || $value == "\146\x61\154\163\145") { 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 == "\131" || $value == "\164\162\x75\145") { goto bNlUl; } goto wEQY7; yS0te: RljPS: goto dn0Kl; u1S4x: opK5J: goto vXyFj; wERui: self::${$flag} = false; goto A6a1u; KkeDh: if (!(self::$logger && $flag != "\154\157\147\x67\145\x72")) { goto ynXiP; } goto SaH5J; fOJ7t: self::${$flag} = true; goto lWY7X; lHsL5: if (isset($value) && ($value == "\131" || $value == "\x4e" || $value == "\x74\x72\x75\145" || $value == "\146\x61\154\163\x65")) { goto RljPS; } goto jbjVh; G6v5x: wEtZw: goto KkeDh; A6a1u: yisHn: goto qKLV3; qKLV3: goto wEtZw; goto u1S4x; BlK00: $value = db_get_field("\123\x45\114\105\x43\x54\x20\x76\141\x6c\x75\145\40\x46\x52\x4f\x4d\40\x3f\x3a\163\x65\164\x74\x69\x6e\x67\163\x5f\157\x62\152\x65\143\x74\163\x20\x57\x48\105\x52\x45\x20\156\x61\x6d\x65\40\x3d\x20\x3f\x73\40\101\x4e\104\x20\x68\141\x6e\x64\154\x65\162\x20\x3d\x20\77\x73", self::$addon_id . "\x5f" . $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["\x70\x65\162\151\x6f\144"] = 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("\x72\x75\156\164\151\155\145\56\x63\157\155\160\x61\x6e\171\x5f\151\x64"); goto tGtYh; I2TWx: $stats["\163\x74\x61\164\163"][$period][self::$company_id]["\164\151\x6d\145\x73\x74\141\x6d\x70"] = time(); goto vq3jr; eaoiT: $stats["\163\164\x61\164\x73"][$period][self::$company_id]["\x63\157\165\x6e\164\x65\x72"] = 1; goto l6nlj; QMxYk: if (self::$period_billing == "\x6d\157\156\164\150") { goto jzrYG; } goto wj3Pz; qlcqz: $stats = self::decrypt($stats); goto O8AVh; l6nlj: $stats["\163\x74\x61\164\163"][$period][self::$company_id]["\x6c\x61\163\x74\137\x64\141\164\x65"] = date("\x59\x2d\155\x2d\x64"); 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["\x70\145\x72\151\x6f\x64"] = self::$period_billing; goto HdvDA; PUZoQ: goto bpiqI; goto eaTAQ; SC0C2: $object_id = db_get_field("\x53\x45\x4c\x45\x43\x54\x20\157\142\152\145\x63\x74\x5f\151\144\x20\106\x52\x4f\115\x20\77\x3a\163\145\x74\164\x69\x6e\147\163\x5f\x6f\x62\x6a\145\x63\x74\163\40\x57\110\x45\x52\x45\x20\x6e\x61\155\x65\x20\x3d\40\77\163", self::$addon_id . "\137\x73\x74\141\164\163"); goto n9_5h; n9_5h: if (!(!isset($object_id) || $object_id == 0)) { goto VBLyX; } goto UrMA6; Czxac: $stats = db_get_field("\123\105\x4c\x45\103\x54\40\166\x61\154\x75\x65\40\x46\122\117\115\x20\x3f\x3a\163\145\164\x74\x69\x6e\147\x73\x5f\166\145\156\x64\157\x72\137\166\141\x6c\165\145\x73\x20\127\110\x45\122\105\40\x6f\x62\152\x65\143\x74\137\151\x64\40\x3d\x20\77\x69", $object_id); goto txep8; l2OB9: self::$company_id = $_REQUEST["\x63\157\x6d\160\x61\156\171\x5f\x69\x64"]; goto pYCPK; uJEGM: QalPl: goto np6Nl; bNLa6: if (array_key_exists($period, $stats["\x73\x74\141\164\163"])) { goto U3scj; } goto NNt9X; IeUDg: $stats["\x73\164\141\164\163"][$period][self::$company_id]["\143\x6f\x75\156\x74\x65\x72"]++; goto hSV64; oYhOK: if (array_key_exists(self::$company_id, $stats["\163\x74\141\164\163"][$period])) { goto ka0na; } goto tNkRy; eje7x: $stats["\x73\164\141\x74\163"][$period][self::$company_id]["\x6c\141\x73\164\x5f\x64\141\164\x65"] = date("\131\x2d\x6d\55\x64"); goto I2TWx; ddEU0: goto fcywb; goto nkC14; gFDgW: if (!(isset(self::$company_id) && self::$company_id == 0)) { goto HCmdQ; } goto SO1fQ; NNt9X: $stats["\163\x74\x61\x74\163"][$period][self::$company_id] = array(); goto k5E7l; PfUpX: $stats["\163\164\x61\164\163"][$period][self::$company_id]["\143\157\x75\x6e\x74\145\162"] = 1; goto eje7x; ONpMP: bw62k: goto tMtky; np6Nl: $period = date("\131\x2d\x6d\55\144"); goto Zy02L; tNkRy: $stats["\163\x74\141\x74\x73"][$period][self::$company_id] = array(); goto PfUpX; hSV64: $stats["\163\x74\x61\164\x73"][$period][self::$company_id]["\154\x61\163\x74\x5f\144\141\x74\145"] = date("\x59\55\155\55\x64"); goto K07jI; u08ZU: bpiqI: goto aLgBJ; txep8: if (self::$period_billing == "\x64\141\x79") { goto QalPl; } goto ua7Hk; Cz3eQ: dDBHW: goto HANBU; tMtky: $period = date("\x59\x2d\x57"); goto PUZoQ; kEwz8: HCmdQ: goto OyltC; k5E7l: $stats["\x73\164\141\164\163"][$period][self::$company_id]["\143\x6f\165\156\x74\x65\x72"] = 1; goto JkkLJ; tGtYh: qH9jq: goto y2UEf; K07jI: $stats["\163\x74\x61\164\x73"][$period][self::$company_id]["\164\151\155\x65\x73\164\141\x6d\x70"] = time(); goto Cz3eQ; cSXUO: JaEk1: goto qlcqz; HdvDA: $stats["\x73\164\141\x74\x73"][$period] = array(); goto uXHb2; HANBU: fcywb: goto Ba8Lm; vq3jr: goto dDBHW; goto d8Khc; zYdfg: $period = date("\131\x2d\155"); 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["\x73\x74\141\164\x73"][$period][self::$company_id] = array(); goto eaoiT; Ba8Lm: P2Jqk: goto DGt7l; kPOON: $stats["\x73\164\141\x74\x73"][$period][self::$company_id]["\x74\x69\155\x65\x73\164\x61\x6d\160"] = time(); goto c3zIM; IZhIk: if (!(isset($_REQUEST["\143\157\155\160\141\156\171\137\151\x64"]) && $_REQUEST["\x63\x6f\x6d\x70\141\x6e\x79\137\x69\x64"] > 0 && isset($company_id) && $company_id == 0)) { goto SfZiq; } goto l2OB9; OyltC: E3zYP: goto SC0C2; zvEMd: $stats["\x73\x74\x61\x74\x73"][$period][self::$company_id]["\x74\151\155\145\x73\x74\141\x6d\x70"] = time(); goto ddEU0; d8Khc: ka0na: goto IeUDg; nkC14: U3scj: goto oYhOK; pYCPK: SfZiq: goto DK8Ei; ua7Hk: if (self::$period_billing == "\167\145\x65\x6b") { goto bw62k; } goto QMxYk; DGt7l: db_query("\122\105\x50\x4c\101\103\105\x20\x49\116\x54\117\40\77\72\163\x65\164\x74\x69\x6e\147\x73\137\166\145\156\x64\x6f\x72\x5f\166\141\154\165\145\163\40\x3f\145", array("\x6f\142\x6a\x65\143\164\x5f\x69\x64" => $object_id, "\x63\x6f\x6d\160\141\x6e\171\137\151\x64" => 0, "\x76\x61\x6c\x75\145" => self::encrypt(serialize($stats)))); goto SxvL2; JkkLJ: $stats["\163\x74\141\164\x73"][$period][self::$company_id]["\154\x61\163\164\137\x64\x61\164\145"] = date("\131\55\x6d\55\x64"); goto zvEMd; XY26S: self::$company_id = Registry::get("\x72\165\156\164\151\155\x65\56\163\151\155\160\x6c\145\137\x75\x6c\164\x69\x6d\x61\164\145") ? Registry::get("\x72\165\156\164\151\x6d\x65\x2e\x66\x6f\x72\x63\x65\x64\x5f\143\157\x6d\x70\x61\156\171\137\151\x64") : Registry::get("\162\x75\156\x74\x69\155\145\x2e\143\x6f\x6d\x70\x61\156\x79\137\x69\x64"); goto fURwj; UrMA6: $object_id = db_query("\x49\116\x53\x45\122\x54\40\x49\116\124\x4f\40\77\x3a\x73\145\x74\164\x69\x6e\147\163\137\157\142\152\x65\143\164\x73\40\x3f\x65", array("\x6e\x61\x6d\x65" => self::$addon_id . "\137\x73\164\x61\164\163", "\166\141\x6c\165\145" => self::encrypt("\131"))); goto hRANi; SxvL2: } public function returnStats($decode = "\152\x2b\156\x61\146\x43\120\143\110\144\122\153\x6f\114\116\102\x77\x78\103\x35\x6a\145\x49\x56\165\114\107\x38") { goto XxTWR; b1xXk: if (!($decode == "\164\162\x75\x65")) { goto VoXA2; } goto H2IEh; Ij_Hr: return $stats; goto cD9mG; SrRBg: $stats = db_get_field("\x53\105\114\105\103\124\40\x76\x61\154\165\145\40\x46\122\x4f\x4d\40\77\72\163\145\164\164\151\x6e\x67\x73\x5f\166\x65\x6e\144\x6f\162\137\166\141\x6c\165\x65\x73\40\127\x48\105\122\x45\x20\157\x62\x6a\x65\x63\164\137\x69\x64\40\x3d\x20\77\151", $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("\x53\x45\114\105\x43\x54\x20\x6f\x62\x6a\x65\x63\x74\137\151\x64\x20\x46\x52\117\115\40\77\72\163\145\x74\x74\x69\x6e\x67\163\137\157\x62\x6a\145\x63\164\x73\40\x57\x48\105\122\105\x20\156\141\x6d\x65\x20\75\x20\77\x73", self::$addon_id . "\137\163\x74\x61\x74\x73"); 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 = __("\163\164\157\x72\157\146\x72\x6f\156\164\x73"); 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["\x73\164\x61\164\163"] as $period => $info) { goto fWlsC; RY9HS: oTvxt: goto Jq4md; fWlsC: if (!($counter == $size)) { goto oTvxt; } goto dH9xm; kewv6: $counter = 0; goto RY9HS; dH9xm: $return .= "\x3c\x2f\x74\162\76\74\x74\x72\76"; goto kewv6; Jq4md: $return .= "\x3c\x74\x64\x3e" . $period . "\x20\75\x3e\40" . count($info) . "\40" . $unit . "\x3c\57\164\x64\76"; goto tvBbE; UbTiW: EMKgW: goto M10Yh; tvBbE: $counter++; goto UbTiW; M10Yh: } goto sZP2z; Ac3yt: return "\x3c\x64\x69\x76\40\163\x74\171\x6c\145\x3d\x22\146\x6c\157\141\164\72\143\x65\x6e\164\145\162\x3b\x66\x6f\x6e\164\x2d\x73\x69\x7a\x65\x3a\x31\x36\x70\x78\x22\x3e" . __($addon_id . "\x5f\x73\x74\x61\x74\x73\137\x6e\x6f\x5f\x61\143\164\151\x76\x69\x74\x79") . "\74\x2f\x64\x69\166\76"; goto CvIqe; mh1s0: r6m8q: goto HPYPz; ypwtn: $return .= "\74\57\x74\162\x3e\x3c\57\164\141\142\154\145\76"; goto Y4Dar; iqtGY: $stats = self::returnStats(); goto AsVcJ; ULK8V: return "\74\x64\151\166\x20\163\164\x79\154\145\x3d\42\146\154\x6f\x61\164\72\143\x65\156\x74\145\162\73\146\x6f\x6e\164\55\x73\x69\172\x65\72\61\x36\160\170\42\76" . __($addon_id . "\137\163\164\141\164\163\137\156\157\x5f\x73\164\x61\164\x73") . "\74\x2f\144\151\x76\x3e"; goto jSLBL; anvtL: $return .= "\74\57\x74\x68\x65\x61\144\x3e\74\164\162\x3e"; goto eJpvv; sZP2z: YFa_r: goto ypwtn; seWP1: x_ird: goto Ttf46; Ttf46: ny1Kq: goto rt_x_; FZdjS: $return .= "\74\x74\x68\x20\x74\151\x74\x6c\x65\x3d\42" . __($addon_id . "\x5f\163\x74\x61\x74\163\137\165\x73\x61\x67\145") . "\x22\x3e" . __($addon_id . "\x5f\163\x74\141\164\163\137\165\x73\x61\147\145") . "\74\x2f\164\x68\76"; goto eYRkX; eeKzs: if (!($i < $size)) { goto HcaJx; } goto FZdjS; K4zFU: $unit = __("\166\145\x6e\x64\x6f\x72\x73"); goto P3udO; P3udO: goto r6m8q; goto CL1RL; Z084_: KxgYP: goto iqtGY; dLnCX: $i = 0; goto NSRs7; zz230: if (!preg_match("\57\x5f\x73\x75\142\x73\x63\162\151\x62\x65\57", $addon_id)) { goto KxgYP; } goto ULK8V; jSLBL: goto ny1Kq; goto Z084_; HPYPz: $size = 5; goto DBrnR; JQYvP: if (!empty($stats) && array_key_exists("\163\x74\x61\164\163", $stats)) { goto omNdy; } goto Ac3yt; u3SQw: if (fn_allowed_for("\125\114\124\x49\x4d\x41\x54\105")) { goto j9q0b; } goto K4zFU; Md5ea: omNdy: goto u3SQw; DBrnR: $return = "\74\164\x61\x62\x6c\145\40\143\154\x61\163\163\x3d\x22\x73\x74\x79\154\x65\x64\55\164\141\142\154\x65\42\76\x3c\x74\150\145\141\144\x3e"; 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 == "\x52\x45\106\122\105\123\x48" || $mode == "\x41" || $mode == "\111\116\123\124\101\x4c\114\105\x44"))) { goto gI1QU; } goto htBUE; gyNCT: goto bLOdd; goto dgdcT; hrFJm: $check_flag = rand(1, self::checkStatusFlag("\x66\162\x65\161\x75\145\x6e\x63\171\x5f\x63\150\x65\143\x6b")); goto j5noY; WTK61: XmofY: goto hrFJm; wRjOY: if (!(!self::checkStatusFlag("\143\x68\x65\143\153\137\x6e\x65\x76\145\x72") && ($check_flag == 1 || self::checkStatusFlag("\x63\x68\x65\x63\x6b\137\x61\x6c\167\141\x79\x73")) || $_REQUEST["\x64\151\x73\x70\x61\x74\143\x68"] == self::$addon_id . "\56" . 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("\x6c\157\147\x67\145\x72")) { 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 . "\x2d\103\150\145\143\x6b\x4c\x69\x63\x65\156\163\x65", "\x49\116\106\117", 0, "\157\162\144\145\162\x73", 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: } }

Function Calls

None

Variables

None

Stats

MD5 14df2f1e5fc465f8acc315aa6ded8b00
Eval Count 0
Decode Time 76 ms