Online PHP and Javascript Decoder decode hidden script to uncover its real functionality




  namespace Plugin\netzdingeDE_google_codes; use Plugin\netzdingeDE_google_codes\src\Backend\PluginHelper; use Plugin\netzdingeDE_google_codes\licence\PluginLicence; use Plugin\netzdingeDE_google_codes\src\Backend\Functions; use JTL\Shop; use JTL\Plugin\Bootstrapper; use JTL\Events\Dispatcher; use JTL\Alert\Alert; use JTL\Consent\Item; use JTL\Backend\Notification; use JTL\Backend\NotificationEntry; use JTL\Update\DBMigrationHelper; use JTL\Smarty\JTLSmarty; use JTL\Minify\MinifyService; class Bootstrap extends Bootstrapper { private static $PluginHelper; public function boot(Dispatcher $dispatcher) { goto jxbmC; bxBAE: jkNGV: goto TZa76; R5XP1: $dispatcher->listen("shop.hook." . $hook, function (array $args) use($file, $hook) { $this->loadHookDatei($file, $args, $hook); }); goto tgktT; sCp5y: if (!(self::$PluginHelper->settings["bUseGA4"] === "on")) { goto H2iG9; } goto vxbA0; JB6bE: $file = HOOK_PLUGIN_SAVE_OPTIONS; goto R5XP1; FBe3W: $alertHelper->addAlert(Alert::TYPE_DANGER, "<span style="color:#fff;">Es gibt ein Problem mit der Lizensierung des Plugins "" . $this->getPlugin()->getPluginID() . "", das Plugin wird nicht korrekt funktionieren. Weitere Informationen finden Sie in den Plugineinstellungen im Reiter "Status! <i class="fa fa-external-link"></i><br>(Diese Meldung verschwindet automatisch, wenn das Problem gelöst ist oder Sie das Plugin deaktivieren.)</span>", "updateinfo", ["saveInSession" => true, "dismissable" => true, "linkHref" => self::$PluginHelper->getPluginAdminLink("cPluginTab=Status"), "showInAlertListTemplate" => true]); goto piKmw; ytXR0: eusRp: goto rwglp; hqy1e: if (!(self::$PluginHelper->settings["bGoogleTagManagerConsentAdwords"] === "on" && self::$PluginHelper->settings["bUseGoogleAdsConversionTracking"] !== "on")) { goto kXbIg; } goto oEuLs; mw5L8: if (!(self::$PluginHelper->shopVersionAllowed($excludeShopVersion_arr) && self::$PluginHelper->checkNoChanges() && self::$PluginHelper->showOnURL() && self::$PluginHelper->showOnURL())) { goto jkNGV; } goto Fgzrg; v0zMx: $alertHelper = Shop::Container()->getAlertService(); goto FBe3W; QRRa3: if (!((null === $this->getPlugin()->getMeta()->getExsID() || empty($this->getPlugin()->getMeta()->getExsID())) && is_object(self::$PluginHelper->oStatus) && !empty(self::$PluginHelper->oStatus->cLizenzfehler) && !empty(self::$PluginHelper->oStatus->cLizenzfehlerFestgestellt))) { goto SMqd1; } goto v0zMx; vxbA0: $dispatcher->listen("shop.hook." . 320, [$this, "addConsentGA"]); goto RG2Ky; Fgzrg: $hook_arr = array(45 => "45", 140 => "0", 207 => "207"); goto LZRtK; o2eJU: t3Q8c: goto bxBAE; NjQ0B: DpoN8: goto nBH2y; Mt0XK: $PluginLicence = new PluginLicence(); goto Mj0ip; l9vFS: $dispatcher->listen("shop.hook." . 320, [$this, "addConsentGA"]); goto qp6T3; V8wjN: ZzTb5: goto IYL93; GPS1t: Dj9V3: goto QRRa3; hq6l6: $excludeShopVersion_arr = []; goto PbRtd; OomBC: $dispatcher->listen("backend.notification", [$this, "checkSubscriptionNotifications"]); goto GPS1t; unwqo: if (!(!self::$PluginHelper->checkNoChanges() || !empty(self::$PluginHelper->oStatus->cLizenzfehler))) { goto x_kwh; } goto GY278; V8c6o: ySavs: goto mw5L8; E9NYW: tJ4EN: goto Qy5qI; hsRP8: if (!((null === $this->getPlugin()->getMeta()->getExsID() || empty($this->getPlugin()->getMeta()->getExsID())) && is_object(self::$PluginHelper->oStatus) && !empty(self::$PluginHelper->oStatus->cPluginVersion) && $this->getPlugin()->getMeta()->getVersion() != self::$PluginHelper->oStatus->cPluginVersion)) { goto msvjV; } goto pHDcd; Mj0ip: $PluginLicence->checkLicence($this->getPlugin()->getLicense()->getKey()); goto ytXR0; xzqpB: $dispatcher->listen("shop.hook." . 320, [$this, "addConsentGTM"]); goto QmVC4; BD1e9: return; goto Ey104; YRAIW: kXbIg: goto y28iN; IYL93: if (self::$PluginHelper->shopVersionAllowed($excludeShopVersion_arr)) { goto DpoN8; } goto f7D9O; FRGCs: if (!(self::$PluginHelper->settings["bGoogleTagManagerConsentAnalytics"] === "on" && self::$PluginHelper->settings["bUseGA4"] !== "on")) { goto TDIK_; } goto l9vFS; kCHT2: if (!((null === $this->getPlugin()->getMeta()->getExsID() || empty($this->getPlugin()->getMeta()->getExsID())) && is_object(self::$PluginHelper->oStatus) && !empty(self::$PluginHelper->oStatus->nSubscriptionEnd) && $this->getPlugin()->getLicense()->getKey() != "demo" && self::$PluginHelper->oStatus->nSubscriptionEnd > 0 && time() > self::$PluginHelper->oStatus->nSubscriptionEnd - 1 * 60 * 60 * 24 * 14)) { goto Dj9V3; } goto OomBC; mQqjs: x_kwh: goto hsRP8; jxbmC: parent::boot($dispatcher); goto hq6l6; pHDcd: $dispatcher->listen("backend.notification", [$this, "checkUpdateNotifications"]); goto ZdzcS; nBH2y: return; goto V8c6o; enXtk: if (!($this->getPlugin()->getState() !== 2)) { goto DiTVv; } goto BD1e9; rwglp: if (!(Shop::isFrontend() === false)) { goto ySavs; } goto unwqo; tgktT: if (!($logeintrag = self::$PluginHelper->dbSelectSingleRow("tjtllog", "cKey", $this->getPlugin()->getPluginID()))) { goto ZzTb5; } goto E9h3Y; E9h3Y: $alertHelper = Shop::Container()->getAlertService(); goto dNpvg; bPYZT: $alertHelper->addAlert(Alert::TYPE_DANGER, "Das Plugin "" . $this->getPlugin()->getMeta()->getName() . "" funktioniert durch einen schwerwiegenden Fehler des Shops mit Ihrer Shop-Verseion " . \APPLICATION_VERSION . " nicht, bitte aktualisieren Sie Ihren JTL Shop oder deaktivieren Sie das Plugin!", "netzdingeDE_" . $this->getPlugin()->getPluginID() . "_inst1", []); goto NjQ0B; qp6T3: TDIK_: goto hqy1e; yb0kf: $dispatcher->listen("shop.hook." . 320, [$this, "addConsentGADS"]); goto HML4w; PbRtd: if (!(self::$PluginHelper === null)) { goto waQUm; } goto Pm6gx; Yfql5: waQUm: goto enXtk; XP36Q: $hook = HOOK_PLUGIN_SAVE_OPTIONS; goto JB6bE; Pm6gx: self::$PluginHelper = new PluginHelper($this->getPlugin()); goto Yfql5; y28iN: VbnsG: goto rtD4M; piKmw: SMqd1: goto XP36Q; LZRtK: foreach ($hook_arr as $hook => $file) { $dispatcher->listen("shop.hook." . $hook, function (array $args) use($file, $hook) { $this->loadHookDatei($file, $args, $hook); }); XiHTE: } goto E9NYW; ZdzcS: msvjV: goto kCHT2; oEuLs: $dispatcher->listen("shop.hook." . 320, [$this, "addConsentGADS"]); goto YRAIW; QmVC4: ZV7as: goto FRGCs; GY278: $dispatcher->listen("backend.notification", [$this, "checkLicenseNotifications"]); goto mQqjs; Qy5qI: if (!(self::$PluginHelper->settings["cCookieService"] === "JTL" || self::$PluginHelper->settings["cCookieService"] === "WS")) { goto t3Q8c; } goto sCp5y; f7D9O: $alertHelper = Shop::Container()->getAlertService(); goto bPYZT; Ey104: DiTVv: goto C3D3m; Kq3Od: if (!(self::$PluginHelper->settings["bUseGoogleTagManager"] === "on" && !empty(self::$PluginHelper->settings["cExpertJSGTM"]) && !empty(self::$PluginHelper->settings["cExpertNS"]))) { goto VbnsG; } goto EGUk9; rtD4M: if (!(self::$PluginHelper->settings["bUseGoogleAdsConversionTracking"] === "on")) { goto MVO9v; } goto yb0kf; dNpvg: $alertHelper->addAlert(Alert::TYPE_DANGER, "Für das Plugin "" . $this->getPlugin()->getMeta()->getName() . "" gibt es Einträge im Fehlerlog, die geprüft werden sollten. Löschen Sie die Einträge dort, damit diese Meldung verschwindet!", "netzdingeDE_" . $this->getPlugin()->getPluginID() . "_inst", ["linkHref" => Shop::getURL() . "/admin/systemlog.php?jtl_token=" . $_SESSION["jtl_token"] . "&syslog_Suchtext=" . $this->getPlugin()->getPluginID() . "&action=syslog_filter", "linkText" => "<button type="butotn" class="btn btn-info btn-sm btn-block">Fehlerlog aufrufen</button>"]); goto V8wjN; EGUk9: if (!(self::$PluginHelper->settings["cTagManagerCookieZweck"] != "essential")) { goto ZV7as; } goto xzqpB; RG2Ky: H2iG9: goto Kq3Od; HML4w: MVO9v: goto o2eJU; C3D3m: if (!(null === $this->getPlugin()->getMeta()->getExsID() || empty($this->getPlugin()->getMeta()->getExsID()))) { goto eusRp; } goto Mt0XK; TZa76: } public function installed() { goto ZNlvH; ShtYD: $this->flushMinifyCache(); goto Mj8Rs; bwjPL: $PluginHelper->checkCustomCSS(); goto ShtYD; ZNlvH: parent::installed(); goto l503_; l503_: $PluginHelper = new PluginHelper($this->getPlugin()); goto bwjPL; Mj8Rs: } public function updated($oldVersion, $newVersion) { goto Omtda; bKp3t: y_z2M: goto ktenQ; ktenQ: $this->resetLicenceCheck(); goto uX2rk; Ihhc1: $alertHelper->addAlert(Alert::TYPE_DANGER, "<span style="color:#fff;">Plugin-Update "" . $this->getPlugin()->getMeta()->getName() . "": Bitte beachten Sie zwingend mögliche Hinweise (Changelog) in den Plugineinstellungen im Reiter "Status! <i class="fa fa-external-link"></i></span>", "updateinfo", ["saveInSession" => true, "dismissable" => true, "linkHref" => $PluginHelper->getPluginAdminLink("cPluginTab=Status#changelog"), "showInAlertListTemplate" => true]); goto ZdPmr; Omtda: parent::updated($oldVersion, $newVersion); goto B1Dlz; DYPDa: $PluginHelper->dbQuery("ALTER TABLE `xplugin_" . $this->getPlugin()->getPluginID() . "_status` ADD COLUMN `nSubscriptionEnd` intA1) NOT NULL;"); goto bKp3t; bTaMm: $nSubscriptionEnd_column = $PluginHelper->dbQuery("SELECT COUNT(*) as total FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'xplugin_" . $this->getPlugin()->getPluginID() . "_status' AND COLUMN_NAME = 'nSubscriptionEnd';", 1); goto xxdFl; uX2rk: $this->flushMinifyCache(); goto anCD7; ZdPmr: $alertHelper->addAlert(Alert::TYPE_DANGER, "<span style="color:#fff;">Plugin-Update "" . $this->getPlugin()->getMeta()->getName() . "": Prüfen Sie unbedingt die Funktion Ihres Shops auf mögliche Komplikationen, die durch dieses Update entstanden sein könnten. Machen Sie insbesondere eine oder mehrere Testbestellungen!", "updateinfo1", ["saveInSession" => true, "dismissable" => true, "showInAlertListTemplate" => true]); goto bTaMm; FXhHl: $alertHelper = Shop::Container()->getAlertService(); goto Ihhc1; xxdFl: if (!($nSubscriptionEnd_column->total == 0)) { goto y_z2M; } goto DYPDa; B1Dlz: $PluginHelper = new PluginHelper($this->getPlugin()); goto HTZrb; HTZrb: $PluginHelper->checkCustomCSS(); goto FXhHl; anCD7: } public function enabled() { goto RcCEf; uXuM7: $this->flushMinifyCache(); goto pmfp2; GSx20: $this->resetLicenceCheck(); goto uXuM7; RcCEf: parent::enabled(); goto GSx20; pmfp2: } public function disabled() { parent::disabled(); $this->flushMinifyCache(); } public function uninstalled(bool $deleteData = true) { parent::uninstalled($deleteData); $this->flushMinifyCache(); } private function resetLicenceCheck() { goto Ff5RB; r4Vz2: EzDUX: goto ftIfI; Ff5RB: $PluginHelper = new PluginHelper($this->getPlugin()); goto yw0zm; UtLFU: if (!$table_xplugin) { goto EzDUX; } goto npStR; yw0zm: $table_xplugin = $PluginHelper->dbQuery("SHOW TABLES LIKE 'xplugin_" . $this->getPlugin()->getPluginID() . "_status';"); goto UtLFU; npStR: $PluginHelper->dbQuery("UPDATE `xplugin_" . $this->getPlugin()->getPluginID() . "_status` SET `nLastLizenzCheck` = 0;"); goto r4Vz2; ftIfI: } public function flushMinifyCache() { goto ngqyi; ANuBb: $ms->flushCache(); goto nqxtc; ngqyi: $ms = new MinifyService(); goto ANuBb; oeVOU: Shop::Container()->getCache()->flushTags([\CACHING_GROUP_TEMPLATE, CACHING_GROUP_PLUGIN . "_" . $this->getPlugin()->getID(), $Functions->CacheTag]); goto sXj2b; nqxtc: $Functions = new Functions($this->getPlugin()); goto oeVOU; sXj2b: } private function loadHookDatei($hooknumber, $args, $number) { goto zFjeL; uQlg9: include $this->getPlugin()->getPaths()->getFrontendPath() . "netzdingeDE_" . $hooknumber . ".php"; goto oDNWB; oDNWB: J97fw: goto V2n_J; h277q: $args["hook"] = $number; goto sFLCu; zFjeL: $PluginHelper = new PluginHelper($this->getPlugin()); goto C6cjO; C6cjO: $Functions = new Functions($this->getPlugin()); goto h277q; sFLCu: if (!file_exists($this->getPlugin()->getPaths()->getFrontendPath() . "netzdingeDE_" . $hooknumber . ".php")) { goto J97fw; } goto uQlg9; V2n_J: } public function checkLicenseNotifications() : void { $notificationEntry = new NotificationEntry(NotificationEntry::TYPE_DANGER, "Plugin " . $this->getPlugin()->getPluginID(), "Es Wurde ein Lizenzfehler festgestellt, bitte schauen Sie im Reiter "Status" in den Plugineinstellungen.", self::$PluginHelper->getPluginAdminLink("cPluginTab=Status"), null); Notification::getInstance()->addNotify($notificationEntry->setPluginId($this->getPlugin()->getPluginID())); } public function checkUpdateNotifications() : void { goto Ey268; p1OjO: B2DuC: goto t6vSO; qesU1: Notification::getInstance()->addNotify($notificationEntry->setPluginId($this->getPlugin()->getPluginID())); goto p1OjO; Ey268: if (empty(self::$PluginHelper->oStatus->cPluginVersion)) { goto B2DuC; } goto DaLfk; DaLfk: $notificationEntry = new NotificationEntry(NotificationEntry::TYPE_DANGER, "Plugin " . $this->getPlugin()->getPluginID(), "<b>Es steht ein Update (Version " . self::$PluginHelper->oStatus->cPluginVersion . ") zur Verfügung, bitte schauen Sie im Plugin im Reiter Status.</b>", self::$PluginHelper->getPluginAdminLink("cPluginTab=Status"), null); goto qesU1; t6vSO: } public function checkSubscriptionNotifications() : void { goto Japw6; Japw6: if (time() > self::$PluginHelper->oStatus->nSubscriptionEnd) { goto SOaVn; } goto A54Ef; A1oRn: viKWg: goto owVXv; A54Ef: $text = "<b>Ihre Subscription läuft am <u>" . date("d.m.Y", (int) self::$PluginHelper->oStatus->nSubscriptionEnd) . "</u> ab, Sie sollten diese verlängern! Updates sind nach Ablauf der Subscription nicht mehr möglich, das Plugin würde sich abschalten! Bitte schauen Sie im Plugin im Reiter Status.</b>"; goto Wvi89; f27qh: Notification::getInstance()->addNotify($notificationEntry->setPluginId($this->getPlugin()->getPluginID())); goto Tk8yG; owVXv: $notificationEntry = new NotificationEntry(NotificationEntry::TYPE_DANGER, "Plugin " . $this->getPlugin()->getPluginID(), $text, self::$PluginHelper->getPluginAdminLink("cPluginTab=Status"), null); goto f27qh; tKsiC: $text = "<b>Ihre Subscription ist am <u>" . date("d.m.Y", (int) self::$PluginHelper->oStatus->nSubscriptionEnd) . "</u> abgelaufen, Sie sollten diese verlängern! Updates sind derzeit nicht möglich, das Plugin würde sich abschalten! Bitte schauen Sie im Plugin im Reiter Status.</b>"; goto A1oRn; Wvi89: goto viKWg; goto dAOEA; dAOEA: SOaVn: goto tKsiC; Tk8yG: } public function renderAdminMenuTab(string $tabName, int $menuID, JTLSmarty $smarty) : string { goto iYbXs; kCx55: $PluginHelper = new PluginHelper($this->getPlugin()); goto j21my; iYbXs: $admintabs = array("CSS bearbeiten" => "css", "Doku Allg / GA / Ads" => "doc1", "Doku GTM" => "doc2", "Status" => "status"); goto I5X_c; I5X_c: if (empty($admintabs[$tabName])) { goto QxKo2; } goto kCx55; REnhx: include $this->getPlugin()->getPaths()->getAdminPath() . $admintabs[$tabName] . ".php"; goto i_2Da; i_2Da: return $smarty->fetch($this->getPlugin()->getPaths()->getAdminPath() . "/template/" . $admintabs[$tabName] . ".tpl"); goto vj00T; j21my: $Functions = new Functions($this->getPlugin()); goto Bgygp; vj00T: QxKo2: goto BXRpq; Bgygp: $alertHelper = Shop::Container()->getAlertService(); goto REnhx; BXRpq: return parent::renderAdminMenuTab($tabName, $menuID, $smarty); goto QeGXX; QeGXX: } public function mapPurposes() { $mappedPurposes = array("essential" => "Funktionalität", "statistics" => "Analyse", "marketing" => "Marketing"); return $mappedPurposes[self::$PluginHelper->settings["cTagManagerCookieZweck"]]; } public function addConsentGA(array $args) : void { goto u1wi3; u1wi3: $lastID = $args["items"]->reduce(static function ($result, Item $item) { $value = $item->getID(); return $result === null || $value > $result ? $value : $result; }) ?? 0; goto yzaSq; ngx3l: $args["items"]->push($item); goto zLNhh; X_d8R: $desc = array_shift($text_arr); goto n5CC8; VTBZl: $item->setCompany("Google Ireland Ltd, Gordon House, Barrow Street, Dublin 4,IE"); goto ngx3l; HgJoG: $item->setName("Google Analytics 4"); goto M4tTw; n5CC8: $purpose = implode(" <br> <br>", $text_arr); goto dffIK; iD_9y: $item->setItemID(self::$PluginHelper->settings["bUsebUseGoogleConsentMode"] === "on" ? "gc_analytics" : "gc_consent_analytics"); goto YBzJS; YBzJS: $item->setDescription(htmlspecialchars(strval($desc), \ENT_QUOTES)); goto oIDDC; dffIK: $item = new Item(); goto HgJoG; fIz9m: $item->setPrivacyPolicy("https://business.safety.google/privacy/"); goto VTBZl; oIDDC: $item->setPurpose($purpose); goto fIz9m; M4tTw: $item->setID(++$lastID); goto iD_9y; yzaSq: $text_arr = explode(" <br> <br>", (string) self::$PluginHelper->locales["ConsentGoogleAnalytics4"]); goto X_d8R; zLNhh: } public function addConsentGTM(array $args) : void { goto kbkpe; j75vh: $purpose = implode(" <br> <br>", $text_arr); goto W6ZGT; kbkpe: $lastID = $args["items"]->reduce(static function ($result, Item $item) { $value = $item->getID(); return $result === null || $value > $result ? $value : $result; }) ?? 0; goto XoaBJ; S67m3: $args["items"]->push($item); goto F5dYf; GBPS2: $item->setCompany("Google Ireland Ltd, Gordon House, Barrow Street, Dublin 4,IE"); goto S67m3; EBsxU: $item->setPurpose($purpose); goto zwCbw; vzD7Q: $item->setDescription(htmlspecialchars(strval($desc), \ENT_QUOTES)); goto EBsxU; W6ZGT: $item = new Item(); goto Bl3Lz; pUHQO: $desc = array_shift($text_arr); goto j75vh; zwCbw: $item->setPrivacyPolicy("https://business.safety.google/privacy/"); goto GBPS2; J8ymg: $item->setItemID("gc_consent_google_tagmanager"); goto vzD7Q; Bl3Lz: $item->setName("Google Tag Manager"); goto sZWvw; XoaBJ: $text_arr = explode(" <br> <br>", (string) self::$PluginHelper->locales["ConsentGoogleTagManager"]); goto pUHQO; sZWvw: $item->setID(++$lastID); goto J8ymg; F5dYf: } public function addConsentGADS(array $args) : void { goto LqWKE; MZBUU: $item->setPurpose($purpose); goto bQ4KQ; HvT5J: $purpose = implode(" <br> <br>", $text_arr); goto ljKhD; qLyCD: $item->setName("Google Ads Conversion Tracking"); goto Zx4K2; ljKhD: $item = new Item(); goto qLyCD; WF5Jh: $text_arr = explode(" <br> <br>", (string) self::$PluginHelper->locales["ConsentGoogleAds"]); goto Q3af5; v4LIp: $args["items"]->push($item); goto iCzji; OHx0X: $item->setDescription(htmlspecialchars(strval($desc), \ENT_QUOTES)); goto MZBUU; LqWKE: $lastID = $args["items"]->reduce(static function ($result, Item $item) { $value = $item->getID(); return $result === null || $value > $result ? $value : $result; }) ?? 0; goto WF5Jh; SFPsC: $item->setItemID(self::$PluginHelper->settings["bUsebUseGoogleConsentMode"] === "on" ? "gc_adwords" : "gc_consent_adwords"); goto OHx0X; Zx4K2: $item->setID(++$lastID); goto SFPsC; db3wU: $item->setCompany("Google Ireland Ltd, Gordon House, Barrow Street, Dublin 4,IE"); goto v4LIp; bQ4KQ: $item->setPrivacyPolicy("https://business.safety.google/privacy/"); goto db3wU; Q3af5: $desc = array_shift($text_arr); goto HvT5J; iCzji: } }



© 2023 Quttera Ltd. All rights reserved.