/* Decoded by unphp.net */ /* __________________________________________________ | Obfuscated by YAK Pro - Php Obfuscator | | on 2023-03-09 15:25:00 | | GitHub: https://github.com/pk-fr/yakpro-po | |__________________________________________________| */ /* __________________________________________________ | Wenn diese Datei manipuliert wird, | | erlischt der Support! | | - NETZdinge.de - | |__________________________________________________| */ namespace Plugin\netzdingeDE_ajax_suche\licence; use JTL\Plugin\PluginInterface; use JTL\Plugin\LicenseInterface; use JTL\Plugin\Helper; use JTL\Plugin\State; use JTL\Shop; use stdClass; use Plugin\netzdingeDE_ajax_suche\src\Backend\PluginHelper; class PluginLicence implements LicenseInterface { private static $cPluginID = "\x6e\x65\x74\x7a\x64\x69\156\x67\145\104\105\x5f\141\152\x61\170\x5f\x73\165\143\150\x65"; public function checkLicence($cLicence) { goto pILxI; ugAB9: y_AgP: goto YV0jz; ieCkP: EBXtQ: goto rWKGp; sBYzF: $PluginHelper = new PluginHelper($oPlugin); goto LIu5K; VOJA4: $oSQL->cLizenzfehlerFestgestellt = $PluginHelper->DBStringHandler($aLicence["\143\114\151\172\x65\x6e\172\146\145\150\x6c\x65\x72\x46\145\163\164\147\x65\x73\x74\x65\x6c\x6c\164"]); goto cQoZ7; lLmZz: oCpJo: goto tIkJw; z4poY: $delay = is_object($PluginHelper->oStatus) && strpos("\52" . $PluginHelper->oStatus->cLizenzfehler, "\114\x69\172\145\x6e\x7a\x73\145\x72\x76\145\x72\x20\156\151\x63\150\164\x20\x65\x72\162\145\x69\143\150\142\141\162\x2c\x20\x73\x69\145\150\145\x20\106\x65\x68\x6c\145\x72\154\157\147\x21") ? 10 * 60 : 1 * 60 * 60 * 24; goto kJxxE; CUSPh: goto SnsmR; goto Q6G2X; FidHW: @curl_setopt($curl, CURLOPT_TIMEOUT, 2); goto jnYfM; piuam: $oSQL->cLizenzfehler = $PluginHelper->DBStringHandler($PluginHelper->oStatus->cLizenzfehler . (!empty($PluginHelper->oStatus->cLizenzfehler) ? "\x20\x2d\40" : '') . "\114\x69\172\x65\x6e\172\x73\145\x72\x76\x65\x72\x20\156\x69\143\x68\164\x20\x65\162\162\145\151\x63\150\x62\141\162\x2c\40\163\151\x65\x68\145\x20\x46\x65\x68\x6c\x65\162\x6c\x6f\147\x21"); goto WNtZT; KAKY5: $PluginHelper->dbUpdate($PluginHelper->cTabelle, "\x6e\x4c\x69\172\x65\156\172\111\x64", $PluginHelper->oStatus->nLizenzId, $oSQL, false); goto d732p; sGwva: return true; goto PFmv2; jnnLY: $PluginHelper->log(self::$cPluginID . "\x3a\40\114\151\x7a\145\x6e\x7a\x20\x75\x6e\147\165\x65\x6c\x74\151\147\72\40\x4c\x69\x7a\x65\x6e\172\40\x76\157\155\40\x4c\151\x63\123\145\162\166\x65\x72\40\x61\142\147\145\x6c\145\150\156\164\x21\40\114\151\172\x65\156\172\165\162\154\x3a\40" . $cURL . "\12" . "\x20\x50\141\x72\x61\x6d\x65\x74\145\162\72\40" . str_replace("\46", "\x3b\x20", $cParams) . "\xa" . "\101\x75\x66\40\x55\122\114\x3a\x20" . (empty($_SERVER["\110\124\x54\120\123"]) ? "\150\164\164\x70" : "\150\x74\x74\x70\163") . "\x3a\57\57" . $_SERVER["\110\x54\124\120\x5f\110\117\123\124"] . $_SERVER["\x52\105\x51\x55\105\x53\124\x5f\x55\122\111"] . "\xa" . (isset($_SERVER["\110\124\124\x50\x5f\x52\105\106\105\x52\105\x52"]) ? "\x52\145\x66\x65\162\145\162\72\x20" . $_SERVER["\x48\124\124\x50\x5f\122\x45\x46\105\x52\105\122"] : '') . "\x20\x5c\157\x53\164\141\164\165\x73\72\x20" . serialize($PluginHelper->oStatus) . "\xa\x52\145\x74\x75\162\x6e\72\x20" . serialize($aLicence) . "\73\x20\x50\x6c\x75\x67\x69\156\123\x74\x61\x74\x75\x73\x3a\x20" . serialize($result)); goto KsWui; z8BjX: define(self::$cPluginID . "\137\x76\x61\x6c\x69\144", "\157\153\141\x79"); goto MZFYu; Tc4Tb: $oSQL->nLastLizenzCheck = $nNow; goto NJSVq; rWKGp: JMw6E: goto eARKu; jAlXl: $curl = @curl_init(); goto LU8b4; NJSVq: $oSQL->cLizenzfehler = $PluginHelper->DBStringHandler($PluginHelper->oStatus->cLizenzfehler . (!empty($PluginHelper->oStatus->cLizenzfehler) ? "\40\x2d\x20" : '') . "\x4c\x69\x7a\x65\156\172\x20\141\142\147\x65\x6c\x65\150\156\x74\54\x20\x73\151\145\150\145\40\x46\x65\150\154\145\x72\x6c\x6f\x67\41"); goto rZQX3; t0nZQ: u3_yG: goto xTif6; RhAjZ: TsSeg: goto aGH_8; lQEQc: return true; goto RhAjZ; icRsA: $aLicence = array(); goto VWKqo; MQHrw: if (!$PluginHelper->is500er()) { goto oCpJo; } goto hdzc1; IQuQI: $cURLWorks = false; goto MEpFp; e4RpQ: if (!($cURLWorks === false && @file_get_contents(__FILE__) && ini_get("\x61\154\154\x6f\x77\137\x75\x72\x6c\137\146\x6f\x70\145\156"))) { goto u3_yG; } goto PiVaI; BcREh: return true; goto rndd0; XqirX: @curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2); goto FidHW; LIu5K: $nNow = time(); goto z4poY; jnYfM: if ($aLicence = @unserialize((string) @curl_exec($curl))) { goto fW4Qg; } goto w_TcU; D7Wsa: $error = ''; goto MQHrw; MZFYu: Cgtab: goto nC6Gw; b6tqf: KDpkL: goto PgE4N; YV0jz: if ($oPlugin->getLicense()->getKey() != $cLicence || $nNow > (is_object($PluginHelper->oStatus) ? (int) $PluginHelper->oStatus->nLastLizenzCheck : 0) + $delay) { goto SttM0; } goto IfNhP; FjkZp: $oSQL->nLizenzId = $PluginHelper->DBStringHandler($aLicence["\156\114\151\x7a\145\156\172\x49\144"]); goto dVCgd; IfNhP: return true; goto B2hr2; PgE4N: $oPlugin = Helper::getPluginById(self::$cPluginID); goto sBYzF; CV3JP: YJ_sE: goto YYgsU; cwml6: $oSQL->cPluginVersion = $PluginHelper->DBStringHandler($aLicence["\x63\120\154\165\x67\x69\156\x56\145\162\163\x69\x6f\156"]); goto bx9xA; J3tOG: $oSQL->cLizenzart = $PluginHelper->DBStringHandler($aLicence["\143\114\151\172\145\156\172\x61\x72\164"]); goto FjkZp; efM30: @curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto XqirX; ojkyK: UW2ED: goto DC946; YYgsU: $query = "\124\x52\x55\x4e\x43\101\124\x45\40" . $PluginHelper->cTabelle . ''; goto atPSI; VWKqo: $PluginHelper->log(self::$cPluginID . "\x3a\40\114\x69\x7a\145\156\172\x73\x65\162\166\x65\x72\x20\156\x69\x63\150\164\x20\x65\162\x72\x65\151\143\150\x74\41\40\105\166\145\x6e\x74\x75\x65\154\x6c\40\x6b\145\x69\x6e\x20\x63\125\162\x6c\40\165\156\x64\40\153\x65\151\156\x20\x61\154\154\x6f\x77\137\165\162\154\x5f\146\x6f\160\x65\156\40\141\x6b\x74\151\166\151\x65\x72\x74\x2c\x20\144\x61\x6e\x6e\40\x65\151\156\145\40\x62\145\151\144\145\x6e\40\123\145\162\166\x65\162\x66\165\x6e\153\x74\x69\157\x6e\145\x6e\40\x62\x69\164\164\x65\x20\x62\145\151\40\x49\x68\162\x65\155\x20\123\145\162\166\x65\x72\55\x50\162\x6f\x76\151\144\x65\162\x20\146\x72\x65\x69\163\x63\x68\141\154\x74\x65\156\40\x6c\141\x73\x73\145\x6e\41\40\50" . $error . "\x3a\x20" . $cURL . "\51"); goto TzqXB; w_TcU: $error = @curl_error($curl); goto wO11m; xTif6: if (!empty($aLicence)) { goto TsSeg; } goto icRsA; nC6Gw: if (Shop::isFrontend() === false) { goto KDpkL; } goto BcREh; PiVaI: $ctx = @stream_context_create(array("\150\164\164\x70" => array("\164\151\155\x65\x6f\x75\x74" => 2))); goto U_sQW; B2hr2: goto M8850; goto MbMjx; DC946: @curl_close($curl); goto X0QIs; MbMjx: SttM0: goto I375Q; WNtZT: $PluginHelper->dbUpdate($PluginHelper->cTabelle, "\x6e\x4c\x69\x7a\145\156\x7a\111\x64", $PluginHelper->oStatus->nLizenzId, $oSQL, false); goto lQEQc; lizKS: if ($aLicence["\142\123\x74\141\164\x75\x73"] === true) { goto YJ_sE; } goto Zqu0o; I375Q: if (strlen($cLicence) > 0) { goto kdcsx; } goto X2aep; pKdbI: if (!function_exists("\x63\165\162\x6c\x5f\151\x6e\x69\x74")) { goto elh7e; } goto jAlXl; AXYf5: $oSQL->cUpdateStatus = ''; goto cvivT; t5fnd: $oSQL = new stdClass(); goto J3tOG; d732p: return false; goto CUSPh; U_sQW: $aLicence = @unserialize((string) @file_get_contents($cURL, (bool) 0, $ctx)); goto jrD1v; PFmv2: goto hTmTR; goto ugAB9; V1qbB: $oSQL = new stdClass(); goto xLUUm; Q6G2X: kdcsx: goto GcK7N; X2aep: $result = Helper::updateStatusByID(State::LICENSE_KEY_MISSING, $oPlugin->getID()); goto JxaZw; RdeaK: $oSQL->cLizenzfehler = $PluginHelper->DBStringHandler($PluginHelper->oStatus->cLizenzfehler . (!empty($PluginHelper->oStatus->cLizenzfehler) ? "\x20\x2d\x20" : '') . "\x4c\x69\x7a\145\x6e\x7a\x20\165\156\147\x75\x65\x6c\x74\151\147\x3a\x20\153\145\x69\156\40\x4c\x69\172\x65\x6e\x7a\x73\x63\150\x6c\165\x65\163\x73\145\x6c\x20\141\x6e\x67\x65\147\145\x62\x65\156\54\x20\x73\151\145\x68\145\x20\x46\145\x68\154\x65\x72\154\157\x67\41"); goto KAKY5; GcK7N: $cParams = http_build_query(array("\x64" => str_replace(array("\150\x74\x74\160\x3a\57\57", "\x68\x74\164\160\x73\x3a\57\57"), '', $PluginHelper->getShopURL()), "\x70" => self::$cPluginID, "\153" => $cLicence, "\166" => $oPlugin->getMeta()->getVersion(), "\160\150\160" => phpversion(), "\x73\150\157\160" => (string) Shop::getApplicationVersion()), '', "\x26"); goto iQFOC; YdjY9: return true; goto ieCkP; KsWui: $oSQL = new stdClass(); goto Tc4Tb; aGH_8: if (!isset($aLicence["\x62\123\x74\141\164\165\x73"])) { goto JMw6E; } goto lizKS; y67Hn: $cURLWorks = true; goto ojkyK; cWNL9: hTmTR: goto Ri0iC; DsBJ7: $oSQL->cLizenzfehler = $PluginHelper->DBStringHandler($aLicence["\143\114\151\172\x65\156\172\x66\x65\150\x6c\145\162"]); goto VOJA4; TzqXB: $oSQL = new stdClass(); goto Xf7Op; X0QIs: elh7e: goto e4RpQ; kJxxE: if (is_object($oPlugin) && (null === $oPlugin->getMeta()->getExsID() || empty($oPlugin->getMeta()->getExsID()))) { goto y_AgP; } goto D7Wsa; xLUUm: $oSQL->nLastLizenzCheck = $nNow; goto RdeaK; bx9xA: $oSQL->nLastLizenzCheck = $nNow; goto DsBJ7; hdzc1: $error = "\73\40\50\x53\x51\x4c\40\x45\x52\x52\117\122\x3a\40" . $PluginHelper->db()->getErrorMessage() . "\51"; goto lLmZz; EAFRg: fW4Qg: goto y67Hn; QFHuV: lMZAa: goto t0nZQ; eARKu: SnsmR: goto XVxsb; XVxsb: M8850: goto cWNL9; cvivT: $PluginHelper->dbInsert($PluginHelper->cTabelle, $oSQL); goto YdjY9; b65hT: goto UW2ED; goto EAFRg; Zqu0o: $result = Helper::updateStatusByID(State::LICENSE_KEY_INVALID, $oPlugin->getID()); goto jnnLY; C9pol: $error .= (!empty($error) ? "\x20\165\x6e\x64" : '') . "\40\x61\154\154\x6f\x77\x5f\x75\162\154\137\x66\157\160\145\156\x20\x67\145\x68\x74\x20\156\151\143\150\164"; goto QFHuV; sFQqn: return false; goto JDN4K; Xf7Op: $oSQL->nLastLizenzCheck = $nNow; goto piuam; tIkJw: $PluginHelper->log(self::$cPluginID . "\72\40\157\120\154\x75\x67\x69\156\40\154\x65\145\x72\72\x20\42" . $query . "\42" . $error); goto sGwva; pILxI: if (defined(self::$cPluginID . "\x5f\166\141\x6c\151\144")) { goto Cgtab; } goto z8BjX; JDN4K: goto EBXtQ; goto CV3JP; iQFOC: $cURL = "\x68\164\x74\x70\x73\x3a\57\x2f\154\x69\143" . rand(0, 9) . "\56\x4e\x45\124\132\x64\x69\156\x67\145\x2e\144\x65\x2f\114\151\x63\x53\145\x72\166\57\x67\x65\x74\114\151\x63\x65\156\x63\x65\x2e\x70\x68\160" . ($cParams != '' ? "\x3f" . $cParams : ''); goto IQuQI; MEpFp: $error = ''; goto pKdbI; wO11m: $PluginHelper->log(self::$cPluginID . "\72\x20\113\145\x69\x6e\x20\143\x55\x72\x6c\40\50" . $error . "\x29"); goto b65hT; Ri0iC: fp7X6: goto gheZL; jrD1v: if (!empty($aLicence)) { goto lMZAa; } goto C9pol; JxaZw: $PluginHelper->log(self::$cPluginID . "\x3a\40\114\151\172\x65\x6e\x7a\x20\165\x6e\147\165\x65\154\164\x69\147\72\40\153\x65\151\156\40\114\x69\x7a\145\x6e\172\x73\x63\x68\154\165\145\163\x73\x65\x6c\40\141\x6e\x67\145\x67\145\142\x65\156\x3b\40\x50\x6c\165\x67\151\x6e\x53\x74\141\x74\x75\x73\72\x20" . serialize($result)); goto V1qbB; LU8b4: @curl_setopt($curl, CURLOPT_URL, $cURL); goto efM30; rZQX3: $PluginHelper->dbUpdate($PluginHelper->cTabelle, "\x6e\114\x69\x7a\x65\x6e\x7a\111\x64", $PluginHelper->oStatus->nLizenzId, $oSQL, false); goto sFQqn; cQoZ7: $oSQL->cLastUpdate = ''; goto AXYf5; dVCgd: $oSQL->cAblaufdatum = $PluginHelper->DBStringHandler($aLicence["\x63\101\142\154\141\x75\x66\144\141\164\165\155"]); goto cwml6; rndd0: goto fp7X6; goto b6tqf; atPSI: $PluginHelper->dbQuery($query, 4, false); goto t5fnd; gheZL: } }