/* Decoded by unphp.net */ help = new DmGoogleHelp($oZ8vz); goto g7CpN; HAovX: $this->module = $oZ8vz; goto ccVvX; g7CpN: $this->form = new DmGoogleForm($oZ8vz); goto eUd0V; EuCQc: $this->name_of_class = get_class($this); goto HAovX; eUd0V: } private function cleanDomainName($dU6II) { goto JmxF4; fHcyh: if (!filter_var($PiGT3, FILTER_VALIDATE_IP)) { goto OlGlt; } goto I5QHv; D_hXH: if ($JXB7w >= 2) { goto SA3Oe; } goto JEyFc; wV1MT: $PiGT3 = $dU6II; goto sfKnQ; i6Ac3: SA3Oe: goto FM2fa; CQWId: $vn3CH = explode(".", $PiGT3); goto xbkmA; I5QHv: return $PiGT3; goto EAqar; GY6Od: $PiGT3 = preg_replace("/:\d+$/", '', $PiGT3); goto CQWId; cNYha: return $alSN2; goto O4Kzc; EAqar: OlGlt: goto GY6Od; nv1U_: $qJTqM = parse_url($dU6II, PHP_URL_HOST); goto T8CID; xbkmA: $JXB7w = count($vn3CH); goto D_hXH; iLPOF: $PiGT3 = $qJTqM; goto vC_3A; T8CID: if ($qJTqM) { goto JH0kt; } goto wV1MT; v7gY_: $dU6II = trim($dU6II, "/"); goto nv1U_; vC_3A: ULViD: goto fHcyh; JEyFc: return $PiGT3; goto fP6T9; fP6T9: goto GLMvU; goto i6Ac3; FM2fa: $alSN2 = $vn3CH[$JXB7w - 2] . "." . $vn3CH[$JXB7w - 1]; goto cNYha; O4Kzc: GLMvU: goto uRrVV; zbcdv: JH0kt: goto iLPOF; sfKnQ: goto ULViD; goto zbcdv; JmxF4: $dU6II = preg_replace("/\s+/", '', $dU6II); goto v7gY_; uRrVV: } private function checkAutoActivate($sPVEe) { goto f01q8; f01q8: $F3Woa = Context::getContext(); goto jymAL; UjB_N: foreach ($this->autoActiveUrls as $A0JNx) { goto vAT2a; Npp_t: $N9seE = json_decode($rx1ke, true); goto uI5yS; CKpQZ: QMGux: goto unios; OBTy3: if (!file_exists($eiS3Z)) { goto VN9PU; } goto DS1en; ogBJi: VN9PU: goto ORBSF; jj8W3: return true; goto GGWQo; kbeZr: $rx1ke = file_get_contents($s4LbB); goto YIVP0; unios: F3fa0: goto xxFxJ; GGWQo: qt6ML: goto CKpQZ; DS1en: unlink($eiS3Z); goto ogBJi; YIVP0: if (!($rx1ke !== false)) { goto QMGux; } goto Npp_t; ORBSF: file_put_contents($eiS3Z, $N9seE["license"]); goto jj8W3; vAT2a: $s4LbB = base64_decode($A0JNx) . "?domain=" . $dU6II . "&reference=" . $gCAnk . ''; goto kbeZr; uI5yS: if (!($N9seE["status"] === true)) { goto qt6ML; } goto OBTy3; xxFxJ: } goto GVMAn; s64Ng: $dU6II = urlencode(base64_encode($sPVEe)); goto wxOzZ; wxOzZ: $gCAnk = urlencode(base64_encode($this->module->name)); goto UjB_N; K_iWh: return false; goto EfTau; jymAL: $eiS3Z = dirname(__FILE__) . "/../crt/" . $F3Woa->shop->id . "_" . $this->module->name . ".crt"; goto s64Ng; GVMAn: Gblsk: goto K_iWh; EfTau: } public function init() { goto DO_S3; mdESf: Configuration::updateValue("DM_GOOGLE_CUSTOMER_REFERENCE", 2); goto BJC0N; VjFft: rPo5i: goto UkctA; B6BIG: $CPODM = $this->checkAutoActivate($JFNmI); goto hNJOT; KpCDf: BHTEr: goto GxCBC; T5nfI: BoBwj: goto w_QAp; DSmfh: eae3E: goto uVOW5; YvGLD: Module::disableByName($this->module->name); goto hqYiO; tdDXb: kbJA4: goto uuUKq; BJC0N: return $this->infoUnauthorized($OcORN); goto wMey2; iMpQ7: goto rPo5i; goto tdDXb; KQ1Jz: $Ln8Sp = Tools::file_get_contents($eiS3Z); goto uYHdA; uVOW5: goto VHv81; goto Ljzbv; VVes3: Configuration::updateValue("DM_GOOGLE_PIXEL_ACTIVE", 2); goto mdESf; IW5aT: if ($OcORN["state"] == 1) { goto IgtpL; } goto B6BIG; wMey2: goto BoBwj; goto f3QeM; hNJOT: if ($CPODM) { goto qYVIY; } goto YvGLD; uYHdA: $SlgyV = $this->decrypt($Ln8Sp); goto ABsdE; YqwkW: if ($CPODM) { goto BHTEr; } goto aDxjC; V2CoR: goto eae3E; goto KpCDf; cI5ey: nWr9B: goto Qd0qo; ABsdE: $OcORN = $this->checkLicense($SlgyV); goto IW5aT; Fx2UA: VHv81: goto iMpQ7; xv6vf: $JFNmI = $this->cleanDomainName($F3Woa->shop->domain); goto CqMOB; JcK19: joeoT: goto Fx2UA; oE2PT: return $this->getForm(); goto JcK19; aDxjC: return $this->infoRegister(); goto V2CoR; Qd0qo: $F3Woa = Context::getContext(); goto xv6vf; PElSW: if (in_array(base64_encode($JFNmI), $this->allowedDomain)) { goto kbJA4; } goto iXVzc; uuUKq: return $this->getForm(); goto VjFft; eA2jS: IgtpL: goto oE2PT; DO_S3: if (!($this->module == false)) { goto nWr9B; } goto EMdrK; GxCBC: return $this->getForm(); goto DSmfh; Ljzbv: EbPJe: goto KQ1Jz; iXVzc: if (file_exists($eiS3Z)) { goto EbPJe; } goto OyEWh; hqYiO: Configuration::updateValue("DM_GOOGLE_ACTIVE", 2); goto VVes3; ZCVC1: return $this->getForm(); goto T5nfI; f3QeM: qYVIY: goto ZCVC1; OyEWh: $CPODM = $this->checkAutoActivate($JFNmI); goto YqwkW; w_QAp: goto joeoT; goto eA2jS; CqMOB: $eiS3Z = dirname(__FILE__) . "/../crt/" . $F3Woa->shop->id . "_" . $this->module->name . ".crt"; goto PElSW; EMdrK: return false; goto cI5ey; UkctA: } public function l($UvcUp, $cwvJN = null) { goto eG9Fk; W8imD: $cwvJN = strtolower($this->name_of_class); goto A4VVI; c7FES: if (!is_null($cwvJN)) { goto W29ZI; } goto W8imD; GF1m7: return $UvcUp; goto iy6z6; tWc0M: NhwNu: goto GF1m7; TjmzJ: return $this->module->l($UvcUp, $cwvJN); goto tWc0M; A4VVI: W29ZI: goto TjmzJ; eG9Fk: if (!is_object($this->module)) { goto NhwNu; } goto c7FES; iy6z6: } public function getForm() { goto vkX0X; uxY2r: $a_ssw = (int) Configuration::get("DM_GOOGLE_LAST_ID"); goto zU92p; zU92p: $Nsvqb = count($this->module->export->getProducts($a_ssw, false, $KF_sX)); goto Il3w0; x26eH: $doKKc = $this->form->faqs(); goto Nn2Vp; WEaeD: Configuration::updateValue("DM_GOOGLE_STOCK", 2); goto ZhuO3; ZhuO3: qO6c_: goto sFXCB; ICr2o: $KF_sX = Configuration::get("DM_GOOGLE_STOCK") == 1 ? true : false; goto uxY2r; Nn2Vp: $MBnYv .= "\xd\xa
\xd
\xd\xa \xd
\xd
\xd " . ($a_ssw != 0 ? "

" . $this->form->generatePanel($Nsvqb) . "

" : '') . "\xd\xa

" . $this->form->getStatusBox() . "

\xd

" . $this->form->getInfoFile() . "

\xa
\xa
\xd\xa

" . $this->module->renderForm(array($this->form->getFormLangToCurrency()), $this->form->getConfigLangToCurrency()) . "

\xa

" . $this->help->helpSetting() . "

\xd

" . $this->module->renderForm(array($this->form->getFormSettings()), $this->form->getConfigSettings()) . "

\xd\xa
\xd

" . $this->help->helpAttribute() . "

\xa

" . $this->module->renderForm(array($this->form->getFormSettingsAttribute()), $this->form->getConfigSettingsAttribute()) . "

\xd

" . $this->module->renderForm(array($this->form->getFormSettingsCustomLabel()), $this->form->getConfigSettingsCustomLabel()) . "

" . $this->module->renderForm(array($this->form->getFormSettingsEnergy()), $this->form->getConfigSettingsEnergy()) . "

\xd\xa
\xd
\xd\xa

" . $this->form->categoryPanel() . "

" . $this->help->helpCategory() . "

\xd

" . $this->module->renderForm(array($this->form->getFormCategoryPairing()), $this->form->getConfigCategoryPairing()) . "

\xd\xa

" . $this->module->renderCatList($this->form->getCatList(), $this->form->getCatFieldList()) . "

\xa
\xa

\xa " . ((Tools::isSubmit("submitBulkedit_EditGoogle") and is_array(Tools::getValue("_EditGoogleBox"))) ? "

" . $this->form->textEditPanel() . "

" . $this->module->renderForm(array($this->form->getFormMassUpdate()), $this->form->getConfigFieldsMassUpdate()) : (Tools::isSubmit("update_EditGoogle") ? "

" . $this->module->renderForm(array($this->form->getFormSingleUpdate()), $this->form->getConfigFieldsSingleUpdate()) . "

" : (Tools::isSubmit("update_imgurl_id") ? "

" . $this->module->renderForm(array($this->form->getFormSingleUpdateImage()), $this->form->getConfigFieldsSingleUpdateImage()) . "

" : "

" . $this->form->textFiltrPanel() . "

\xa

" . $this->module->renderForm(array($this->form->getFormFiltrCategory()), $this->form->getConfigFieldsFiltrCategory()) . "

\xd\xa " . $this->module->renderProductList($this->form->getProductList(true), $this->form->getProductFieldList(), $this->form->getProductList(false)) . ''))) . "\xd\xa

\xd

" . $this->module->renderForm(array($this->form->getFormCarriers()), $this->form->getConfigCarriers()) . "

\xd\xa
\xa " . (!$HpLXR ? $this->form->getInfoDeliveryDate() : $this->help->helpDeliveryDate()) . " " . ($HpLXR ? "

" . $this->module->renderForm(array($this->form->getFormDeliveryDate()), $this->form->getConfigDeliveryDate()) . "

" : '') . "
\xd\xa

" . $this->form->getInfoMarketing() . "

\xd

" . $this->module->renderForm(array($this->form->getFormSettingsMarketing()), $this->form->getConfigSettingsMarketing()) . "

\xa
\xa
\xd

" . $this->module->renderForm(array($this->form->getFormSettingsBadge()), $this->form->getConfigSettingsBadge()) . "

\xd
\xd
\xd

" . $this->form->cronPanel() . "

" . $this->module->renderForm(array($this->form->getFormUpdate()), $this->form->getConfigUpdate()) . "

\xd

" . $this->form->updatePanel() . "

\xd\xa
\xd

" . $this->form->licenceWindow() . "

\xd " . ($doKKc ? "

" . $doKKc . "

" : '') . "\xd
\xd\xa
"; goto QTq37; Il3w0: if ($HpLXR) { goto qO6c_; } goto WEaeD; vkX0X: $HpLXR = (int) Configuration::get("PS_STOCK_MANAGEMENT"); goto ICr2o; QTq37: return $MBnYv; goto MOZPx; sFXCB: $MBnYv = $this->module->displayInfo(); goto x26eH; MOZPx: } public function checkLicense($N9seE) { goto NFnQj; Lmh0h: $JFNmI = $this->cleanDomainName($F3Woa->shop->domain); goto CCuYH; VtChm: $pfCcf["text"] = $this->l("Licence neodpov\xc3\xadd\303\241 dan\xc3\xa9mu modulu. Je ur\304\215ena pro jin\xc3\xbd modul."); goto D2bXe; NFnQj: $F3Woa = Context::getContext(); goto VUjKX; VAriM: $pfCcf["state"] = 4; goto MxuHn; pwv4W: $pfCcf["license_date"] = $N9seE["time"] == "0000-00-00" ? "\xc4\214asov\xc4\x9b neomezen\xc3\xa1 licence" : $N9seE["time"]; goto K4ut6; skwD9: $pfCcf["state"] = 3; goto VtChm; AVYGF: $YbxpU = date("Y-m-d"); goto vs1Kc; D2bXe: I9kG2: goto AVYGF; VUjKX: $pfCcf = array("state" => 1, "text" => $this->l("V\305\xa1e v po\xc5\231\303\241dku")); goto Lmh0h; MxuHn: $pfCcf["text"] = $this->l("Platnost licence vypr\305\241ela " . $N9seE["time"]); goto x305m; K4ut6: if (!($YbxpU > $N9seE["time"] and $N9seE["time"] != "0000-00-00")) { goto R_wp6; } goto VAriM; CCuYH: $pfCcf["real_domain"] = $JFNmI; goto htxDe; WjLwG: return $pfCcf; goto P8xJl; vs1Kc: $pfCcf["real_date"] = $YbxpU; goto pwv4W; iW2_I: if (!($JFNmI != $N9seE["domain"] and $JFNmI != $this->cleanDomainName($N9seE["domain"]))) { goto gtjFV; } goto sTOzg; vzjrr: gtjFV: goto rKSDB; ji5Eu: $pfCcf["text"] = $this->l("Licence neodpov\303\xadd\303\xa1 dan\303\251 dom\xc3\xa9n\xc4\x9b. Licence je vedena pro: ") . $N9seE["domain"]; goto vzjrr; QSqIe: if (!($t7NBr != $N9seE["name"])) { goto I9kG2; } goto skwD9; rKSDB: $t7NBr = $this->module->name; goto pKubH; htxDe: $pfCcf["license_domain"] = $N9seE["domain"]; goto iW2_I; sTOzg: $pfCcf["state"] = 2; goto ji5Eu; pKubH: $pfCcf["real_name"] = $t7NBr; goto POCdD; POCdD: $pfCcf["license_name"] = $N9seE["name"]; goto QSqIe; x305m: R_wp6: goto WjLwG; P8xJl: } public function decrypt($ooF00) { goto ZGRz1; TE75F: $bHKlU = 1; goto HSvwP; MFHJe: goto iQ1Oy; goto BbOUo; zdB6E: $bHKlU++; goto MFHJe; zPfTT: $VzS3q = ''; goto TE75F; JF_Tw: if (!($bHKlU <= strlen($ooF00))) { goto Nc9iL; } goto GSQ0G; h65hW: $lArIk = $akI2a; goto zPfTT; xXmE_: return @unserialize($VzS3q); goto tGF15; HSvwP: iQ1Oy: goto JF_Tw; IV7jj: $tJe25 = chr(ord($tJe25) - ord($Z32mp)); goto uXP5O; ZGRz1: $akI2a = substr($ooF00, 0, 3); goto PYRDB; PYRDB: $ooF00 = base64_decode(base64_decode(substr($ooF00, 3))); goto h65hW; uXP5O: $VzS3q .= $tJe25; goto dVSwL; rDTJ1: $Z32mp = substr($lArIk, $bHKlU % strlen($lArIk) - 1, 1); goto IV7jj; dVSwL: Wz54n: goto zdB6E; GSQ0G: $tJe25 = substr($ooF00, $bHKlU - 1, 1); goto rDTJ1; BbOUo: Nc9iL: goto xXmE_; tGF15: } public function infoRegister() { $CxP80 = "
\xa
" . $this->form->translate["registration_1"] . " \xa
\xd\xa
\xd\xa " . $this->form->translate["registration_2"] . "\xd\xa
\xa

" . $this->help->helpUploadLicense() . "

" . $this->module->renderForm(array($this->form->getUploadFileForm()), $this->form->getUploadFileFormConfig()) . "

\xd
\xd\xa
"; return $CxP80; } public function infoUnauthorized($tDm1s) { goto C6VrW; C6VrW: $enZ87 = "\xd
\xd\xa \xd
\xa
\xa

\xa
\xd\xa " . $this->form->translate["unauthorized_1"] . "
\xd
" . $this->form->translate["unauthorized_2"] . "

\xa " . $this->form->translate["unauthorized_3"] . "
\xd \xd\xa \xd\xa \xd \xd \xd\xa \xa \xa \xd\xa \xd \xd\xa \xa \xd \xd\xa \xd \xd \xd\xa \xd\xa \xd \xa \xa \xa \xa \xa \xa \xd\xa \xa \xd \xd\xa \xd \xa \xd \xd\xa \xd
" . $this->form->translate["unauthorized_4"] . "    " . $this->module->displayName . "
" . $this->form->translate["unauthorized_5"] . "   " . $tDm1s["license_name"] . "
         
" . $this->form->translate["unauthorized_6"] . "     " . $tDm1s["real_domain"] . "
" . $this->form->translate["unauthorized_7"] . "    " . $tDm1s["license_domain"] . "
" . $this->form->translate["unauthorized_8"] . "   " . $tDm1s["license_date"] . "
          
" . $this->form->translate["unauthorized_9"] . "    " . _PS_VERSION_ . "
" . $this->form->translate["unauthorized_10"] . "   " . $this->module->version . "
" . $this->form->translate["unauthorized_11"] . "    " . Context::getContext()->employee->email . "
\xd\xa

\xd\xa

" . $this->form->licenceWindow() . "

\xd\xa
\xd\xa
\xd
\xd \xd \xa \xd "; goto pWoTw; pWoTw: $enZ87 .= "
\xa
\xa " . $this->form->translate["registration_1"] . "\xd

\xa

" . $this->help->helpUploadLicense() . "

\xd\xa

" . $this->module->renderForm(array($this->form->getUploadFileForm()), $this->form->getUploadFileFormConfig()) . "

\xd\xa
\xd
\xd
"; goto RCrdF; RCrdF: return $enZ87; goto EdKM2; EdKM2: } } ?>