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 Cart2Quote\License\Model; final class License implements \Cart2Quote\..
Decoded Output download
<?php
namespace Cart2Quote\License\Model;
final class License implements \Cart2Quote\Quotation\Helper\Data\LicenseInterface {
const INACTIVE_STATE = "inactive";
const PENDING_STATE = "pending";
const ACTIVE_STATE = "active";
const UNREACHABLE = "unreachable";
const ALLOWED_PROPOSAL_AMOUNT = 15;
private $HxRFK = "CART2QUOTE_QUOTATION_LICENSE_CACHE";
private $YQR6K = "jqxVgbz9o3vX06DN988BWWiLsysWJ91nx5J2AbcR";
private $i7nlC = "5sX&JUuWHtrxr)6A0z_BqWLxNTqKZ)G(aPG#Fr-X";
private $cIm66 = "trial";
private $Vp1gL = License::INACTIVE_STATE;
private $R046e;
private $WYSGD;
private $VQL_0;
private $QL0j_;
private $XWeyX;
private $T9uTN;
private $ECXWa;
private $zluus;
private $uyfNt;
private $cFiAv;
private $vCq1n;
private $K7J_9;
private $jB3CF;
protected $wGf1o;
private final function __construct() {
goto qtpYJ; zkxR2:
$this->XWeyX = \Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class);
goto ox6cd; k0OMA:
$this->uyfNt = "11cea9b94153b8e52953617959cf5e47b433778b";
goto hRrxr; LIcV_:
$this->T9uTN = \Magento\Framework\App\ObjectManager::getInstance()->create(\Cart2Quote\License\Cache\Type\License::class);
goto Zdkhf; ox6cd:
$this->zluus = \Magento\Framework\App\ObjectManager::getInstance()->get(\Cart2Quote\License\Model\Session::class);
goto CDkS1; ozS9v:
$this->init(); goto mtwyy; Zdkhf: $this->QL0j_ = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Backend\Model\UrlInterface::class);
goto zkxR2; hRrxr:
$this->cFiAv = "3805a9df66b6ddcc36de19ec9f9fd4a97134e6a0a943bb8697cfc8accc1f38b1";
goto ozS9v; XtKC9:
$this->vCq1n = \Magento\Framework\App\ObjectManager::getInstance()->create(\Magento\Framework\Math\Random::class);
goto LIcV_; qtpYJ:
$this->K7J_9 = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\App\Filesystem\DirectoryList::class);
goto XtKC9; CDkS1:
$this->wGf1o = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Filesystem\Io\File::class);
goto k0OMA; mtwyy:
} private final function init() {
goto bo8dd; C9xoi:
$T3Yb3 = $this->getTempPath($this->getRandomTempFileName());
goto H6jse; v1hK1:
if (!(!isset($mlcVV) || $mlcVV["date"] !== date("Y-m-d"))) { goto M8VVX; } goto TU1As; dkjwf: $Y33kX = ["date" => date("Y-m-d"), "licenseType" => $this->cIm66, "licenseState" => $this->Vp1gL]; goto ym5PW; ym5PW: $mlcVV = $this->getFromCache(); goto ZVQoJ; i77Zv: $this->VQL_0 = $Y33kX["licenseState"]; goto m5XqV; bo8dd: $T3Yb3 = $this->getFilePathFromSession(); goto gJOtr; Zkl9w: $this->jB3CF = $Y33kX["proposalAmount"]; goto f6Stb; fTv90: jYcMh: goto v1hK1; H6jse: $this->storeFilePathInSession($T3Yb3); goto eyr6i; MdbCn: if (!isset($Y33kX["proposalAmount"])) { goto FdbbV; } goto Zkl9w; vDWQw: $this->storeInCache($Y33kX); goto ZNotO; ZNotO: M8VVX: goto i77Zv; ZVQoJ: if (!isset($mlcVV)) { goto jYcMh; } goto UZI1t; f6Stb: FdbbV: goto ft2sJ; m5XqV: $this->WYSGD = $Y33kX["licenseType"]; goto MdbCn; gJOtr: if (!(!$T3Yb3 || !file_exists($T3Yb3))) { goto PqB9t; } goto C9xoi; TU1As: $this->fetchLicenseData($Y33kX); goto vDWQw; eyr6i: PqB9t: goto dkjwf; UZI1t: $Y33kX = array_merge($Y33kX, $mlcVV); goto fTv90; ft2sJ: } private final function getSessionDataName() { return hash("sha256", "last_failed_attempt_date"); } private final function encrypt($Y33kX, $QTver = null, $M7Ypw = null) { goto L2VGl; RN6a4: if ($M7Ypw) { goto v31nu; } goto E49Pa; bJqLj: return \Cart2Quote\License\Security\Security::encrypt($Y33kX, $QTver, $M7Ypw); goto m9Up4; E49Pa: $M7Ypw = $this->cFiAv; goto uuAJU; E96Iw: Nl7bz: goto RN6a4; uuAJU: v31nu: goto bJqLj; L2VGl: if ($QTver) { goto Nl7bz; } goto QPpEd; QPpEd: $QTver = $this->uyfNt; goto E96Iw; m9Up4: } private final function getTempPath($Vz72j) { return sprintf("%s" . DIRECTORY_SEPARATOR . "%s", rtrim($this->K7J_9->getPath(\Magento\Framework\App\Filesystem\DirectoryList::TMP), DIRECTORY_SEPARATOR), ltrim($Vz72j, DIRECTORY_SEPARATOR)); } private final function getRandomTempFileName() { return sprintf(".%s", $this->vCq1n->getRandomString(10, \Magento\Framework\Math\Random::CHARS_LOWERS)); } private final function getFromCache() { goto coqhM; o1Xj0: if ($jXYRJ) { goto VHLDs; } goto a4F7t; v69B5: VHLDs: goto csP2y; csP2y: $SWs3e = $this->decrypt($jXYRJ, $this->YQR6K, $this->i7nlC); goto nwVs7; nwVs7: return json_decode($SWs3e, true); goto f0zlc; a4F7t: return null; goto v69B5; coqhM: $jXYRJ = $this->T9uTN->load($this->HxRFK); goto o1Xj0; f0zlc: } private final function decrypt($Y33kX, $QTver = null, $M7Ypw = null) { goto wKDqq; jrv4R: $M7Ypw = $this->cFiAv; goto O7H5r; O7H5r: LhIFn: goto FfD4l; gEAy0: RMaCf: goto p8oOt; p8oOt: if ($M7Ypw) { goto LhIFn; } goto jrv4R; V92VH: $QTver = $this->uyfNt; goto gEAy0; wKDqq: if ($QTver) { goto RMaCf; } goto V92VH; FfD4l: return \Cart2Quote\License\Security\Security::decrypt($Y33kX, $QTver, $M7Ypw); goto TphXO; TphXO: } private final function fetchLicenseData(&$Y33kX) { try { goto nTETR; RfybG: Xt6J0: goto Vv0zU; R1obx: $Y33kX["licenseType"] = $BCzDz["domain"]["license"]["license_type_id"]; goto nyaZw; N0E3X: $Y33kX["date"] = date("Y-m-d"); goto jR5_q; Gh7NE: if (!isset($BCzDz["domain"]["license"], $BCzDz["domain"]["license"]["license_type_id"], $BCzDz["domain"]["license"]["license_state_id"])) { goto Xt6J0; } goto N0E3X; nyaZw: $Y33kX["proposalAmount"] = $BCzDz["domain"]["proposals_sent"]; goto z9g8K; z9g8K: $this->resetFailedAttempt(); goto RfybG; Cwmlj: $BCzDz = json_decode($BCzDz, true); goto Gh7NE; cxlmp: $BCzDz = $this->decrypt($BCzDz); goto Cwmlj; nTETR: $BCzDz = \Cart2Quote\License\Http\Client::getInstance()->getLicense(); goto cxlmp; jR5_q: $Y33kX["licenseState"] = $BCzDz["domain"]["license"]["license_state_id"]; goto R1obx; Vv0zU: } catch (\Exception $LPRl0) { goto J8BuS; qg2dM: ziCp8: goto yLcEu; qT88s: irJeV: goto Lokzx; Zmj8M: goto irJeV; goto qg2dM; lim0N: if ($O3x06 && strtotime($O3x06) <= strtotime("-7 day")) { goto ziCp8; } goto sGrV2; J8BuS: $O3x06 = $this->getFailedAttemptDate(); goto lim0N; Lokzx: $this->failedAttempt(); goto bFu7z; yLcEu: $Y33kX["licenseState"] = License::INACTIVE_STATE; goto qT88s; sGrV2: $Y33kX["licenseType"] = $Y33kX["licenseState"] = License::UNREACHABLE; goto Zmj8M; bFu7z: } } private final function getFilePathFromSession() { goto pjmWP; Bjjj2: lkLjS: goto Famy6; pjmWP: $XJcOA = $this->zluus->getSessionData($this->getSessionDataName()); goto GNxIt; GNxIt: if (isset($XJcOA)) { goto lkLjS; } goto PSLB0; Famy6: return $this->decrypt($XJcOA); goto JcMz2; PSLB0: return false; goto Bjjj2; JcMz2: } private final function storeFilePathInSession($XJcOA) { $this->zluus->setSessionData($this->getSessionDataName(), $this->encrypt($XJcOA)); } private final function resetFailedAttempt() { goto oHu6g; hqlqk: if (!file_exists($EK7Td)) { goto ZnKFn; } goto AKnTq; AKnTq: unlink($EK7Td); goto suma9; suma9: ZnKFn: goto yUo3t; oHu6g: $EK7Td = $this->getFilePathFromSession(); goto hqlqk; yUo3t: } private final function getFailedAttemptDate() { try { goto oX44m; oX44m: $XJcOA = $this->getFilePathFromSession(); goto f6TSm; m2wTe: ETOQZ: goto n00Pr; f6TSm: if (!file_exists($XJcOA)) { goto ETOQZ; } goto kme_k; kme_k: return $this->decrypt(file_get_contents($XJcOA)); goto m2wTe; n00Pr: } catch (\Exception $Wt9xC) { } return null; } private final function failedAttempt() { goto WufjS; WufjS: $isuoF = date("Y-m-d"); goto PuNYA; G8ARt: return $isuoF; goto Lh_5W; PuNYA: try { goto U4YsZ; t4ybt: $this->wGf1o->checkAndCreateFolder($cbCp8); goto pvEQR; XM0UD: if (is_dir($cbCp8)) { goto vsUwq; } goto t4ybt; oo7BR: @file_put_contents($this->getFilePathFromSession(), $this->encrypt($isuoF)); goto cx5nX; pvEQR: vsUwq: goto oo7BR; U4YsZ: $cbCp8 = $this->K7J_9->getPath(\Magento\Framework\App\Filesystem\DirectoryList::TMP); goto XM0UD; cx5nX: } catch (\Exception $Wt9xC) { } goto G8ARt; Lh_5W: } private final function storeInCache($jXYRJ) { goto koX7_; koX7_: $Wlvdm = json_encode($jXYRJ); goto chUAf; chUAf: $Vh2nh = $this->encrypt($Wlvdm, $this->YQR6K, $this->i7nlC); goto aRccx; aRccx: $this->T9uTN->save($Vh2nh, $this->HxRFK); goto vwNhd; vwNhd: } public final function getDomain() { goto sYjIU; sYjIU: if (isset($this->R046e)) { goto Hsn_w; } goto H2W8Q; H2W8Q: $this->R046e = parse_url($this->QL0j_->getBaseUrl(), PHP_URL_HOST); goto KGjJ9; KGjJ9: Hsn_w: goto bIY0p; bIY0p: return $this->R046e; goto u7tuE; u7tuE: } public final function getLicenseType() { goto YIZEf; a_jE3: lPDVx: goto IU9RM; aC9NW: $this->WYSGD = $this->cIm66; goto a_jE3; IU9RM: return $this->WYSGD; goto MBz7R; YIZEf: if (isset($this->WYSGD)) { goto lPDVx; } goto aC9NW; MBz7R: } public final function isActiveState() { return $this->getLicenseState() == License::ACTIVE_STATE; } public final function getLicenseState() { goto iZlzD; sGQ5q: return $this->VQL_0; goto BhM8e; iZlzD: if (!(!isset($this->VQL_0) || !License::isValid())) { goto HkBlk; } goto moCmZ; G2KDo: HkBlk: goto sGQ5q; moCmZ: return $this->Vp1gL; goto G2KDo; BhM8e: } public static final function isValid() { goto NbAIq; IL1j3: ClQ5b: goto LDDP1; LDDP1: return self::getInstance()->ECXWa = $Bsrgd; goto yGqyb; sZiX1: $Bsrgd = true; goto mpnaM; zAdw0: try { $eWV_D = \Cart2Quote\Features\Feature\FeatureList::getInstance(self::getInstance())->getAllPlugins(); } catch (\Exception $Wt9xC) { $DryHg = "After installing Cart2Quote run "bin/magento setup:upgrade" before proceeding."; throw new \Magento\Framework\Exception\LocalizedException(dc3q_($DryHg)); } goto ZEU4R; hu6c1: return true; goto GWNsd; mpnaM: foreach ($eWV_D as $KtLXV => $M42xO) { goto nHxRA; yUGxc: B22Wn: goto i05B2; nHxRA: foreach ($M42xO["plugins"] as $f7EmS => $awKZY) { goto JaaKI; uz987: $Bsrgd = false; goto cRwV_; oPnBw: b6JMx: goto OoOkL; cRwV_: goto rcrLL; goto inJLk; JaaKI: if ($Wknay->isPluginLoaded($KtLXV, $awKZY["instance"])) { goto tDIVx; } goto uz987; inJLk: tDIVx: goto oPnBw; OoOkL: } goto ESKiQ; ESKiQ: rcrLL: goto yUGxc; i05B2: } goto IL1j3; NbAIq: if (!self::getInstance()->ECXWa) { goto aIHXj; } goto hu6c1; ZEU4R: $Wknay = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Interception\PluginList\PluginList::class); goto sZiX1; GWNsd: aIHXj: goto zAdw0; yGqyb: } public static final function getInstance() { goto bwRYy; bwRYy: static $fAZ0m = null; goto aqbp1; tUkQQ: return $fAZ0m; goto hgaeJ; aqbp1: if (!($fAZ0m === null)) { goto Tj7Lj; } goto rQSwg; TKpfb: Tj7Lj: goto tUkQQ; rQSwg: $fAZ0m = new License(); goto TKpfb; hgaeJ: } public final function isInactiveState() { return $this->getLicenseState() == License::INACTIVE_STATE; } public final function isPendingState() { return $this->getLicenseState() == License::PENDING_STATE; } public final function isUnreachable() { return $this->getLicenseState() == License::UNREACHABLE; } public final function isUnreachableState() { return $this->isUnreachable(); } public final function setProposalSent() { goto dUGDk; dkPHr: $JU3PE = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\App\Cache\TypeListInterface::class); goto G1PI1; W2qN3: bgPHr: goto T_tKz; Wu5QT: \Cart2Quote\License\Http\Client::getInstance()->setProposalSent(); goto dkPHr; dUGDk: if (!($this->getLicenseType() == "lite")) { goto bgPHr; } goto Wu5QT; G1PI1: $JU3PE->cleanType("cart2quote_license"); goto W2qN3; T_tKz: } public final function getProposalAmount() { return $this->jB3CF; } } ?>
Did this file decode correctly?
Original Code
<?php
namespace Cart2Quote\License\Model;
final class License implements \Cart2Quote\Quotation\Helper\Data\LicenseInterface {
const INACTIVE_STATE = "\151\x6e\x61\143\164\x69\166\x65";
const PENDING_STATE = "\x70\145\156\144\151\156\147";
const ACTIVE_STATE = "\141\143\164\151\166\145";
const UNREACHABLE = "\165\156\162\x65\141\143\x68\x61\x62\x6c\145";
const ALLOWED_PROPOSAL_AMOUNT = 15;
private $HxRFK = "\103\101\x52\124\x32\121\125\x4f\124\x45\137\x51\x55\x4f\x54\x41\124\111\x4f\x4e\137\x4c\x49\103\105\116\x53\x45\x5f\103\x41\103\x48\105";
private $YQR6K = "\152\x71\170\126\147\x62\172\x39\x6f\x33\x76\130\60\66\x44\116\x39\70\70\x42\127\127\x69\x4c\163\x79\163\x57\x4a\x39\x31\x6e\x78\x35\x4a\62\x41\142\x63\x52";
private $i7nlC = "\x35\x73\x58\x26\112\x55\165\x57\x48\x74\162\x78\162\51\66\101\60\172\137\x42\x71\127\114\170\116\x54\161\x4b\132\51\x47\50\141\120\x47\43\106\162\x2d\130";
private $cIm66 = "\x74\x72\151\141\154";
private $Vp1gL = License::INACTIVE_STATE;
private $R046e;
private $WYSGD;
private $VQL_0;
private $QL0j_;
private $XWeyX;
private $T9uTN;
private $ECXWa;
private $zluus;
private $uyfNt;
private $cFiAv;
private $vCq1n;
private $K7J_9;
private $jB3CF;
protected $wGf1o;
private final function __construct() {
goto qtpYJ; zkxR2:
$this->XWeyX = \Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class);
goto ox6cd; k0OMA:
$this->uyfNt = "\61\61\x63\x65\141\x39\x62\71\x34\x31\x35\63\x62\x38\145\x35\x32\71\65\63\x36\61\67\x39\65\x39\143\x66\x35\145\64\67\x62\64\x33\63\67\67\70\142";
goto hRrxr; LIcV_:
$this->T9uTN = \Magento\Framework\App\ObjectManager::getInstance()->create(\Cart2Quote\License\Cache\Type\License::class);
goto Zdkhf; ox6cd:
$this->zluus = \Magento\Framework\App\ObjectManager::getInstance()->get(\Cart2Quote\License\Model\Session::class);
goto CDkS1; ozS9v:
$this->init(); goto mtwyy; Zdkhf: $this->QL0j_ = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Backend\Model\UrlInterface::class);
goto zkxR2; hRrxr:
$this->cFiAv = "\x33\x38\x30\65\x61\x39\x64\x66\x36\x36\142\66\x64\144\143\143\x33\x36\144\x65\61\71\x65\143\71\146\x39\146\144\64\x61\x39\x37\x31\x33\x34\145\x36\x61\x30\141\71\x34\x33\x62\x62\x38\66\71\67\143\146\143\70\141\143\x63\143\x31\146\63\70\142\x31";
goto ozS9v; XtKC9:
$this->vCq1n = \Magento\Framework\App\ObjectManager::getInstance()->create(\Magento\Framework\Math\Random::class);
goto LIcV_; qtpYJ:
$this->K7J_9 = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\App\Filesystem\DirectoryList::class);
goto XtKC9; CDkS1:
$this->wGf1o = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Filesystem\Io\File::class);
goto k0OMA; mtwyy:
} private final function init() {
goto bo8dd; C9xoi:
$T3Yb3 = $this->getTempPath($this->getRandomTempFileName());
goto H6jse; v1hK1:
if (!(!isset($mlcVV) || $mlcVV["\x64\x61\164\145"] !== date("\131\x2d\155\x2d\144"))) { goto M8VVX; } goto TU1As; dkjwf: $Y33kX = ["\x64\141\x74\145" => date("\131\55\x6d\55\x64"), "\154\x69\x63\145\156\163\x65\124\171\160\145" => $this->cIm66, "\154\x69\143\x65\156\163\x65\x53\164\141\164\x65" => $this->Vp1gL]; goto ym5PW; ym5PW: $mlcVV = $this->getFromCache(); goto ZVQoJ; i77Zv: $this->VQL_0 = $Y33kX["\154\151\143\x65\x6e\163\x65\123\x74\141\x74\x65"]; goto m5XqV; bo8dd: $T3Yb3 = $this->getFilePathFromSession(); goto gJOtr; Zkl9w: $this->jB3CF = $Y33kX["\160\162\x6f\160\x6f\x73\141\x6c\x41\155\157\165\156\164"]; goto f6Stb; fTv90: jYcMh: goto v1hK1; H6jse: $this->storeFilePathInSession($T3Yb3); goto eyr6i; MdbCn: if (!isset($Y33kX["\160\x72\x6f\x70\x6f\x73\x61\x6c\x41\x6d\x6f\x75\x6e\x74"])) { goto FdbbV; } goto Zkl9w; vDWQw: $this->storeInCache($Y33kX); goto ZNotO; ZNotO: M8VVX: goto i77Zv; ZVQoJ: if (!isset($mlcVV)) { goto jYcMh; } goto UZI1t; f6Stb: FdbbV: goto ft2sJ; m5XqV: $this->WYSGD = $Y33kX["\x6c\x69\143\x65\156\x73\x65\x54\x79\160\x65"]; goto MdbCn; gJOtr: if (!(!$T3Yb3 || !file_exists($T3Yb3))) { goto PqB9t; } goto C9xoi; TU1As: $this->fetchLicenseData($Y33kX); goto vDWQw; eyr6i: PqB9t: goto dkjwf; UZI1t: $Y33kX = array_merge($Y33kX, $mlcVV); goto fTv90; ft2sJ: } private final function getSessionDataName() { return hash("\163\x68\x61\62\65\66", "\154\x61\x73\164\137\146\141\151\x6c\x65\x64\x5f\141\x74\164\145\x6d\x70\164\137\x64\141\164\145"); } private final function encrypt($Y33kX, $QTver = null, $M7Ypw = null) { goto L2VGl; RN6a4: if ($M7Ypw) { goto v31nu; } goto E49Pa; bJqLj: return \Cart2Quote\License\Security\Security::encrypt($Y33kX, $QTver, $M7Ypw); goto m9Up4; E49Pa: $M7Ypw = $this->cFiAv; goto uuAJU; E96Iw: Nl7bz: goto RN6a4; uuAJU: v31nu: goto bJqLj; L2VGl: if ($QTver) { goto Nl7bz; } goto QPpEd; QPpEd: $QTver = $this->uyfNt; goto E96Iw; m9Up4: } private final function getTempPath($Vz72j) { return sprintf("\45\163" . DIRECTORY_SEPARATOR . "\x25\x73", rtrim($this->K7J_9->getPath(\Magento\Framework\App\Filesystem\DirectoryList::TMP), DIRECTORY_SEPARATOR), ltrim($Vz72j, DIRECTORY_SEPARATOR)); } private final function getRandomTempFileName() { return sprintf("\56\45\x73", $this->vCq1n->getRandomString(10, \Magento\Framework\Math\Random::CHARS_LOWERS)); } private final function getFromCache() { goto coqhM; o1Xj0: if ($jXYRJ) { goto VHLDs; } goto a4F7t; v69B5: VHLDs: goto csP2y; csP2y: $SWs3e = $this->decrypt($jXYRJ, $this->YQR6K, $this->i7nlC); goto nwVs7; nwVs7: return json_decode($SWs3e, true); goto f0zlc; a4F7t: return null; goto v69B5; coqhM: $jXYRJ = $this->T9uTN->load($this->HxRFK); goto o1Xj0; f0zlc: } private final function decrypt($Y33kX, $QTver = null, $M7Ypw = null) { goto wKDqq; jrv4R: $M7Ypw = $this->cFiAv; goto O7H5r; O7H5r: LhIFn: goto FfD4l; gEAy0: RMaCf: goto p8oOt; p8oOt: if ($M7Ypw) { goto LhIFn; } goto jrv4R; V92VH: $QTver = $this->uyfNt; goto gEAy0; wKDqq: if ($QTver) { goto RMaCf; } goto V92VH; FfD4l: return \Cart2Quote\License\Security\Security::decrypt($Y33kX, $QTver, $M7Ypw); goto TphXO; TphXO: } private final function fetchLicenseData(&$Y33kX) { try { goto nTETR; RfybG: Xt6J0: goto Vv0zU; R1obx: $Y33kX["\x6c\151\143\x65\x6e\x73\145\x54\x79\160\x65"] = $BCzDz["\x64\157\155\141\151\156"]["\x6c\x69\143\145\x6e\163\145"]["\154\151\x63\145\156\x73\x65\x5f\164\x79\x70\x65\x5f\151\144"]; goto nyaZw; N0E3X: $Y33kX["\144\141\x74\145"] = date("\131\55\155\x2d\144"); goto jR5_q; Gh7NE: if (!isset($BCzDz["\144\x6f\155\x61\151\156"]["\x6c\x69\x63\x65\x6e\163\145"], $BCzDz["\144\x6f\155\141\151\156"]["\154\151\x63\x65\x6e\163\145"]["\154\x69\x63\x65\x6e\x73\x65\137\x74\171\160\x65\137\x69\x64"], $BCzDz["\x64\x6f\155\141\151\x6e"]["\154\151\x63\x65\156\163\145"]["\x6c\151\x63\x65\x6e\x73\145\137\163\x74\x61\164\x65\x5f\151\x64"])) { goto Xt6J0; } goto N0E3X; nyaZw: $Y33kX["\x70\162\157\x70\157\x73\141\x6c\x41\155\x6f\165\x6e\164"] = $BCzDz["\144\157\x6d\141\x69\156"]["\x70\x72\x6f\160\x6f\163\x61\x6c\163\137\x73\145\156\164"]; goto z9g8K; z9g8K: $this->resetFailedAttempt(); goto RfybG; Cwmlj: $BCzDz = json_decode($BCzDz, true); goto Gh7NE; cxlmp: $BCzDz = $this->decrypt($BCzDz); goto Cwmlj; nTETR: $BCzDz = \Cart2Quote\License\Http\Client::getInstance()->getLicense(); goto cxlmp; jR5_q: $Y33kX["\154\151\143\x65\156\x73\x65\x53\x74\141\x74\x65"] = $BCzDz["\x64\x6f\x6d\141\151\x6e"]["\x6c\151\143\145\156\x73\145"]["\154\x69\x63\145\156\163\145\137\x73\164\141\164\x65\137\151\x64"]; goto R1obx; Vv0zU: } catch (\Exception $LPRl0) { goto J8BuS; qg2dM: ziCp8: goto yLcEu; qT88s: irJeV: goto Lokzx; Zmj8M: goto irJeV; goto qg2dM; lim0N: if ($O3x06 && strtotime($O3x06) <= strtotime("\x2d\67\40\144\x61\x79")) { goto ziCp8; } goto sGrV2; J8BuS: $O3x06 = $this->getFailedAttemptDate(); goto lim0N; Lokzx: $this->failedAttempt(); goto bFu7z; yLcEu: $Y33kX["\154\151\143\x65\x6e\163\145\123\x74\x61\164\145"] = License::INACTIVE_STATE; goto qT88s; sGrV2: $Y33kX["\154\151\143\x65\156\163\145\x54\171\160\145"] = $Y33kX["\x6c\x69\x63\145\156\163\145\x53\164\x61\x74\145"] = License::UNREACHABLE; goto Zmj8M; bFu7z: } } private final function getFilePathFromSession() { goto pjmWP; Bjjj2: lkLjS: goto Famy6; pjmWP: $XJcOA = $this->zluus->getSessionData($this->getSessionDataName()); goto GNxIt; GNxIt: if (isset($XJcOA)) { goto lkLjS; } goto PSLB0; Famy6: return $this->decrypt($XJcOA); goto JcMz2; PSLB0: return false; goto Bjjj2; JcMz2: } private final function storeFilePathInSession($XJcOA) { $this->zluus->setSessionData($this->getSessionDataName(), $this->encrypt($XJcOA)); } private final function resetFailedAttempt() { goto oHu6g; hqlqk: if (!file_exists($EK7Td)) { goto ZnKFn; } goto AKnTq; AKnTq: unlink($EK7Td); goto suma9; suma9: ZnKFn: goto yUo3t; oHu6g: $EK7Td = $this->getFilePathFromSession(); goto hqlqk; yUo3t: } private final function getFailedAttemptDate() { try { goto oX44m; oX44m: $XJcOA = $this->getFilePathFromSession(); goto f6TSm; m2wTe: ETOQZ: goto n00Pr; f6TSm: if (!file_exists($XJcOA)) { goto ETOQZ; } goto kme_k; kme_k: return $this->decrypt(file_get_contents($XJcOA)); goto m2wTe; n00Pr: } catch (\Exception $Wt9xC) { } return null; } private final function failedAttempt() { goto WufjS; WufjS: $isuoF = date("\x59\x2d\x6d\55\144"); goto PuNYA; G8ARt: return $isuoF; goto Lh_5W; PuNYA: try { goto U4YsZ; t4ybt: $this->wGf1o->checkAndCreateFolder($cbCp8); goto pvEQR; XM0UD: if (is_dir($cbCp8)) { goto vsUwq; } goto t4ybt; oo7BR: @file_put_contents($this->getFilePathFromSession(), $this->encrypt($isuoF)); goto cx5nX; pvEQR: vsUwq: goto oo7BR; U4YsZ: $cbCp8 = $this->K7J_9->getPath(\Magento\Framework\App\Filesystem\DirectoryList::TMP); goto XM0UD; cx5nX: } catch (\Exception $Wt9xC) { } goto G8ARt; Lh_5W: } private final function storeInCache($jXYRJ) { goto koX7_; koX7_: $Wlvdm = json_encode($jXYRJ); goto chUAf; chUAf: $Vh2nh = $this->encrypt($Wlvdm, $this->YQR6K, $this->i7nlC); goto aRccx; aRccx: $this->T9uTN->save($Vh2nh, $this->HxRFK); goto vwNhd; vwNhd: } public final function getDomain() { goto sYjIU; sYjIU: if (isset($this->R046e)) { goto Hsn_w; } goto H2W8Q; H2W8Q: $this->R046e = parse_url($this->QL0j_->getBaseUrl(), PHP_URL_HOST); goto KGjJ9; KGjJ9: Hsn_w: goto bIY0p; bIY0p: return $this->R046e; goto u7tuE; u7tuE: } public final function getLicenseType() { goto YIZEf; a_jE3: lPDVx: goto IU9RM; aC9NW: $this->WYSGD = $this->cIm66; goto a_jE3; IU9RM: return $this->WYSGD; goto MBz7R; YIZEf: if (isset($this->WYSGD)) { goto lPDVx; } goto aC9NW; MBz7R: } public final function isActiveState() { return $this->getLicenseState() == License::ACTIVE_STATE; } public final function getLicenseState() { goto iZlzD; sGQ5q: return $this->VQL_0; goto BhM8e; iZlzD: if (!(!isset($this->VQL_0) || !License::isValid())) { goto HkBlk; } goto moCmZ; G2KDo: HkBlk: goto sGQ5q; moCmZ: return $this->Vp1gL; goto G2KDo; BhM8e: } public static final function isValid() { goto NbAIq; IL1j3: ClQ5b: goto LDDP1; LDDP1: return self::getInstance()->ECXWa = $Bsrgd; goto yGqyb; sZiX1: $Bsrgd = true; goto mpnaM; zAdw0: try { $eWV_D = \Cart2Quote\Features\Feature\FeatureList::getInstance(self::getInstance())->getAllPlugins(); } catch (\Exception $Wt9xC) { $DryHg = "\x41\x66\164\x65\x72\x20\151\x6e\x73\x74\x61\x6c\x6c\151\156\x67\40\103\141\x72\x74\62\x51\165\x6f\164\x65\x20\162\x75\156\x20\42\x62\151\x6e\x2f\x6d\141\x67\145\156\164\157\40\x73\145\164\x75\160\x3a\x75\160\147\x72\x61\144\x65\42\x20\x62\145\x66\157\x72\x65\40\x70\162\x6f\x63\x65\x65\x64\x69\156\x67\56"; throw new \Magento\Framework\Exception\LocalizedException(dc3q_($DryHg)); } goto ZEU4R; hu6c1: return true; goto GWNsd; mpnaM: foreach ($eWV_D as $KtLXV => $M42xO) { goto nHxRA; yUGxc: B22Wn: goto i05B2; nHxRA: foreach ($M42xO["\x70\154\x75\x67\151\156\163"] as $f7EmS => $awKZY) { goto JaaKI; uz987: $Bsrgd = false; goto cRwV_; oPnBw: b6JMx: goto OoOkL; cRwV_: goto rcrLL; goto inJLk; JaaKI: if ($Wknay->isPluginLoaded($KtLXV, $awKZY["\151\x6e\163\164\141\156\x63\145"])) { goto tDIVx; } goto uz987; inJLk: tDIVx: goto oPnBw; OoOkL: } goto ESKiQ; ESKiQ: rcrLL: goto yUGxc; i05B2: } goto IL1j3; NbAIq: if (!self::getInstance()->ECXWa) { goto aIHXj; } goto hu6c1; ZEU4R: $Wknay = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Interception\PluginList\PluginList::class); goto sZiX1; GWNsd: aIHXj: goto zAdw0; yGqyb: } public static final function getInstance() { goto bwRYy; bwRYy: static $fAZ0m = null; goto aqbp1; tUkQQ: return $fAZ0m; goto hgaeJ; aqbp1: if (!($fAZ0m === null)) { goto Tj7Lj; } goto rQSwg; TKpfb: Tj7Lj: goto tUkQQ; rQSwg: $fAZ0m = new License(); goto TKpfb; hgaeJ: } public final function isInactiveState() { return $this->getLicenseState() == License::INACTIVE_STATE; } public final function isPendingState() { return $this->getLicenseState() == License::PENDING_STATE; } public final function isUnreachable() { return $this->getLicenseState() == License::UNREACHABLE; } public final function isUnreachableState() { return $this->isUnreachable(); } public final function setProposalSent() { goto dUGDk; dkPHr: $JU3PE = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\App\Cache\TypeListInterface::class); goto G1PI1; W2qN3: bgPHr: goto T_tKz; Wu5QT: \Cart2Quote\License\Http\Client::getInstance()->setProposalSent(); goto dkPHr; dUGDk: if (!($this->getLicenseType() == "\154\x69\164\145")) { goto bgPHr; } goto Wu5QT; G1PI1: $JU3PE->cleanType("\143\141\x72\x74\x32\161\165\157\x74\x65\137\154\x69\143\145\156\x73\145"); goto W2qN3; T_tKz: } public final function getProposalAmount() { return $this->jB3CF; } }
Function Calls
None |
Stats
MD5 | 3e737b878fee94868a6a1049931ebadf |
Eval Count | 0 |
Decode Time | 189 ms |