/* Decoded by unphp.net */ goto Zw3oI; Zw3oI: require_once dirname(__FILE__) . "/DmGoogleHelp.php"; goto H1VV7; H1VV7: require_once dirname(__FILE__) . "/DmGoogleForm.php"; goto kkKxw; kkKxw: if (defined("_PS_VERSION_")) { goto XYkxR; } goto bx75S; bx75S: exit; goto Uu7Jv; Uu7Jv: XYkxR: goto q1aWQ; q1aWQ: class DmGoogleFormBuilder { protected $module = false; protected $name_of_class; public $help; public $form; protected $allowedDomain = array("bG9jYWxob3N0", "MTI3LjAuMC4x"); protected $autoActiveUrls = array("aHR0cHM6Ly9wcmVzdGFzaG9wLnZhbGFzaW5lYy5jei9tb2R1bGVzL2RtX2xpY2Vuc2UvZG1fbGljZW5zZS1jaGVjay5waHA="); public function __construct(Module $oZ8vz = null) { goto EuCQc; ccVvX: $this->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
" . $this->form->generatePanel($Nsvqb) . "
" : '') . "\xd\xa" . $this->form->getStatusBox() . "
\xd" . $this->form->getInfoFile() . "
\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" . $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" . $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 " . ((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" . $this->module->renderForm(array($this->form->getFormDeliveryDate()), $this->form->getConfigDeliveryDate()) . "
" : '') . "" . $this->form->getInfoMarketing() . "
\xd" . $this->module->renderForm(array($this->form->getFormSettingsMarketing()), $this->form->getConfigSettingsMarketing()) . "
\xa" . $this->module->renderForm(array($this->form->getFormSettingsBadge()), $this->form->getConfigSettingsBadge()) . "
\xd" . $this->form->cronPanel() . "
" . $this->module->renderForm(array($this->form->getFormUpdate()), $this->form->getConfigUpdate()) . "
\xd" . $this->form->updatePanel() . "
" . $this->form->licenceWindow() . "
" . $doKKc . "
" . $this->help->helpUploadLicense() . "
" . $this->module->renderForm(array($this->form->getUploadFileForm()), $this->form->getUploadFileFormConfig()) . "
\xd" . $this->form->translate["unauthorized_4"] . " | \xd\xa | " . $this->module->displayName . " | \xd
" . $this->form->translate["unauthorized_5"] . " | \xd\xd\xa | " . $tDm1s["license_name"] . " | \xa
\xd | \xd\xa | |
" . $this->form->translate["unauthorized_6"] . " | " . $tDm1s["real_domain"] . " | |
" . $this->form->translate["unauthorized_7"] . " | \xd" . $tDm1s["license_domain"] . " | \xd|
" . $this->form->translate["unauthorized_8"] . " | \xd\xa | " . $tDm1s["license_date"] . " | \xa
\xa | ||
" . $this->form->translate["unauthorized_9"] . " | \xa | " . _PS_VERSION_ . " | \xd\xa
" . $this->form->translate["unauthorized_10"] . " | \xd\xd\xa | " . $this->module->version . " |
" . $this->form->translate["unauthorized_11"] . " | \xd" . Context::getContext()->employee->email . " | \xd\xa
" . $this->form->licenceWindow() . "
\xd\xa" . $this->help->helpUploadLicense() . "
\xd\xa" . $this->module->renderForm(array($this->form->getUploadFileForm()), $this->form->getUploadFileFormConfig()) . "
\xd\xa