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\Http; final class Client { protected $wqS9K = "\154\x..

Decoded Output download

<?php 
 namespace Cart2Quote\License\Http; final class Client { protected $wqS9K = "localhost"; protected $Wb6hN = 443; protected $Vr9Ub = null; protected $MEQaf = array(); protected $r2WTe = array(); protected $QIOZr = array(); protected $xAljs = array(); protected $RSSf4 = ''; protected $Uyhby = 0; protected $NEG1r = 5; protected $JCEZJ = 5; protected $iYFxk = 0; protected $pY9CX; protected $TLsgp = array(); protected $s6k9t = 0; private $TtKmT; private $aOx_h; private $zvFKN; private $UAuhl; private function __construct() { goto MFnxp; MFnxp: $this->TtKmT = \Magento\Framework\App\ObjectManager::getInstance()->get("\Cart2Quote\Quotation\Helper\Data\MetadataInterface"); goto TdHBX; TdHBX: $this->aOx_h = \Magento\Framework\App\ObjectManager::getInstance()->get("\Magento\Backend\Model\UrlInterface"); goto KRzEC; KRzEC: $this->zvFKN = \Magento\Framework\App\ObjectManager::getInstance()->get("\Magento\Framework\Module\Manager"); goto CSOCt; CSOCt: } public static final function getInstance() { goto CJBsN; CJBsN: static $LbAeE = null; goto a351P; IIFOt: $LbAeE = new self(); goto D9heY; thiF_: return $LbAeE; goto gGIzd; a351P: if (!($LbAeE === null)) { goto Q1Mnt; } goto IIFOt; D9heY: Q1Mnt: goto thiF_; gGIzd: } public final function getLicense() { return $this->retrieveLicenseData(); } public final function setProposalSent() { $this->proposalSent(); } private function retrieveLicenseData() { goto pstDW; UQEqy: return base64_decode($N2Ibb["data"]); goto P4AS_; p_sh8: $this->setCredentials($this->getApiUsername(), $this->getApiKey()); goto YVBcU; Rvv7I: if (!isset($N2Ibb["data"])) { goto yl_SL; } goto UQEqy; YVBcU: $this->post(sprintf("%s/%s", $this->getApiUrl(), $this->getApiLicenseEndpoint()), $this->preparePostData()); goto K6iJe; pstDW: $this->addHeader("Accept", "application/json"); goto p_sh8; gcUh7: $this->doError(new \Magento\Framework\Phrase("Unable to retrieve license data from server")); goto q9l_n; K6iJe: $N2Ibb = json_decode($this->getBody(), true); goto Rvv7I; P4AS_: yl_SL: goto gcUh7; q9l_n: } private function proposalSent() { goto NaYBq; qjj7O: $this->setCredentials($this->getApiUsername(), $this->getApiKey()); goto SHdZZ; NaYBq: $this->addHeader("Accept", "application/json"); goto qjj7O; SHdZZ: $this->post(sprintf("%s/%s", $this->getApiUrl(), $this->getApiDomainEndpoint()), ["tld" => parse_url($this->aOx_h->getBaseUrl(), PHP_URL_HOST)]); goto ldeAo; ldeAo: } public function addHeader($Zlh3Q, $ZWf9y) { $this->MEQaf[$Zlh3Q] = $ZWf9y; } public function setCredentials($i8D1W, $raV0F) { $jf1cZ = base64_encode("{$i8D1W}:{$raV0F}"); $this->addHeader("Authorization", "Basic {$jf1cZ}"); } private function getApiUsername() { return "a5ed93cb45288a76a5bd26e25c32bf52cbbddd62"; } private function getApiKey() { return "85bb3e1655355bf5161d42f8439c3b60fa1b1a97"; } public function setOption($Zlh3Q, $ZWf9y) { $this->TLsgp[$Zlh3Q] = $ZWf9y; } public function post($sBkmA, $nzF52) { $this->makeRequest("POST", $sBkmA, $nzF52); } protected function makeRequest($A1KvA, $sBkmA, $nzF52 = array()) { goto UvDXA; coBY9: if (!($this->NEG1r && $this->JCEZJ)) { goto ABCea; } goto kCk7d; pjnT9: jeEYo: goto pCpCx; qxXnI: $this->curlOption(CURLOPT_POSTFIELDS, is_array($nzF52) ? http_build_query($nzF52) : $nzF52); goto mniLu; piXk3: Nta1O: goto TjxPp; V7RMp: W_UWB: goto piXk3; bHQnY: if ($A1KvA == "GET") { goto ODKOW; } goto CCRuv; CVxh3: if (!($this->Wb6hN != 443)) { goto FC1O5; } goto ZaRTz; Qtf2m: if (!count($this->MEQaf)) { goto efEyJ; } goto MjXqD; MjXqD: $gu30m = []; goto nDlJH; eqRXk: $this->curlOption(CURLOPT_HEADERFUNCTION, [$this, "parseHeaders"]); goto HaHkz; o0W6p: $this->curlOption(CURLOPT_HTTPGET, 1); goto lhIjx; qbvDL: $this->curlOption(CURLOPT_POST, 1); goto qxXnI; n1UNe: if (!$udmZD) { goto cTzn6; } goto FA4Fh; pCpCx: $this->curlOption(CURLOPT_COOKIE, implode(";", $blK5_)); goto JFbLB; lYxWp: if (!count($this->QIOZr)) { goto EbU4Q; } goto W9M0d; upgzp: if (!count($this->TLsgp)) { goto Nta1O; } goto NWvWr; hyM3e: $this->curlOption(CURLOPT_TIMEOUT, $this->NEG1r); goto GGVRk; STxxn: ODKOW: goto o0W6p; V13t7: goto UQDfy; goto mC9AV; ZaRTz: $this->curlOption(CURLOPT_PORT, $this->Wb6hN); goto DpKZx; MkNgv: $this->curlOption(CURLOPT_SSL_VERIFYPEER, 0); goto upgzp; Leo4f: kLpOA: goto DwoyF; DpKZx: FC1O5: goto uCmHu; XEuo8: $udmZD = curl_errno($this->pY9CX); goto n1UNe; FqJ0g: Mbtbt: goto Jlnfk; Exic8: $this->curlOption(CURLOPT_URL, $sBkmA); goto ybtGL; NWvWr: foreach ($this->TLsgp as $sUKT5 => $AxJxh) { $this->curlOption($sUKT5, $AxJxh); SO7Zl: } goto V7RMp; kCk7d: $this->curlOption(CURLOPT_CONNECTTIMEOUT, $this->JCEZJ); goto hyM3e; mC9AV: Uf9hD: goto qbvDL; HaHkz: if (!($this->UAuhl !== null)) { goto kLpOA; } goto cd31P; smXcE: $this->RSSf4 = curl_exec($this->pY9CX); goto XEuo8; GGVRk: ABCea: goto CVxh3; Yvdj3: efEyJ: goto lYxWp; lhIjx: UQDfy: goto Qtf2m; DwoyF: $this->curlOption(CURLOPT_SSL_VERIFYHOST, 0); goto MkNgv; nDlJH: foreach ($this->MEQaf as $sUKT5 => $AxJxh) { $gu30m[] = $sUKT5 . ": " . $AxJxh; txnUN: } goto FqJ0g; W9M0d: $blK5_ = []; goto vBSno; uCmHu: $this->curlOption(CURLOPT_RETURNTRANSFER, 1); goto eqRXk; UvDXA: $this->pY9CX = curl_init(); goto Exic8; DOt9m: $this->xAljs = []; goto smXcE; CCRuv: $this->curlOption(CURLOPT_CUSTOMREQUEST, $A1KvA); goto V13t7; Jlnfk: $this->curlOption(CURLOPT_HTTPHEADER, $gu30m); goto Yvdj3; cYt6w: curl_close($this->pY9CX); goto xg0YY; TjxPp: $this->s6k9t = 0; goto DOt9m; ybtGL: if ($A1KvA == "POST") { goto Uf9hD; } goto bHQnY; BZMhy: cTzn6: goto cYt6w; cd31P: $this->curlOption(CURLOPT_SSLVERSION, $this->UAuhl); goto Leo4f; vBSno: foreach ($this->QIOZr as $sUKT5 => $AxJxh) { $blK5_[] = "{$sUKT5}={$AxJxh}"; ZXzSY: } goto pjnT9; mniLu: goto UQDfy; goto STxxn; JFbLB: EbU4Q: goto coBY9; FA4Fh: $this->doError(curl_error($this->pY9CX)); goto BZMhy; xg0YY: } protected function curlOption($Zlh3Q, $ZWf9y) { curl_setopt($this->pY9CX, $Zlh3Q, $ZWf9y); } public function doError($BDFvG) { throw new \Exception($BDFvG); } private function getApiUrl() { return "https://dashboard2.cart2quote.com/api/v4"; } private function getApiLicenseEndpoint() { return "licenses/update.json"; } private function getApiDomainEndpoint() { return "domains/update.json"; } public function getBody() { return $this->RSSf4; } public function setTimeout($ZWf9y) { $this->NEG1r = (int) $ZWf9y; } public function removeHeader($Zlh3Q) { unset($this->MEQaf[$Zlh3Q]); } public function addCookie($Zlh3Q, $ZWf9y) { $this->QIOZr[$Zlh3Q] = $ZWf9y; } public function removeCookie($Zlh3Q) { unset($this->QIOZr[$Zlh3Q]); } public function removeCookies() { $this->setCookies([]); } public function get($sBkmA) { $this->makeRequest("GET", $sBkmA); } public function getHeaders() { return $this->xAljs; } public function setHeaders($H11lY) { $this->MEQaf = $H11lY; } public function getCookies() { goto OvF4m; K4l2K: return []; goto dSF13; XqhFf: $OcO7o = []; goto OdYBo; aK7NN: return $OcO7o; goto AAF7F; nthVH: IKOdk: goto aK7NN; OdYBo: foreach ($this->xAljs["Set-Cookie"] as $OXxey) { goto TBy4t; CMeUl: Su1Jm: goto UA1VI; Lblax: goto Su1Jm; goto kzCTb; uWZYi: if (!($jf1cZ === null)) { goto v47Mn; } goto Lblax; u54gf: $OcO7o[trim($FdqB3)] = trim($jf1cZ); goto CMeUl; VIggC: Fz4GM: goto vv0DO; DDLyI: $A8NWs = count($kyWq1); goto oZtLc; zzhZz: goto Su1Jm; goto VIggC; kzCTb: v47Mn: goto u54gf; TBy4t: $kyWq1 = explode("; ", $OXxey); goto DDLyI; oZtLc: if ($A8NWs) { goto Fz4GM; } goto zzhZz; vv0DO: list($FdqB3, $jf1cZ) = explode("=", $kyWq1[0]); goto uWZYi; UA1VI: } goto nthVH; OvF4m: if (!empty($this->xAljs["Set-Cookie"])) { goto lWQIB; } goto K4l2K; dSF13: lWQIB: goto XqhFf; AAF7F: } public function setCookies($blK5_) { $this->QIOZr = $blK5_; } public function getCookiesFull() { goto GbCMn; RihzF: return $OcO7o; goto tN_Zh; lnVTW: jltSd: goto RihzF; DyQRS: $OcO7o = []; goto LKrX3; u8x_s: tv_aQ: goto DyQRS; LKrX3: foreach ($this->xAljs["Set-Cookie"] as $OXxey) { goto Wg30q; Mc1It: UXBNl: goto C_30U; timvN: if (!($u_TXb < $MEMwR)) { goto Uk7k5; } goto iSl7t; DnaTi: lik2U: goto timvN; W_eaA: $OcO7o[trim($FdqB3)][trim($uVXBq)] = trim($jf1cZ); goto Mc1It; wOlF6: EpgK3: goto PNEFo; mxIFs: goto EpgK3; goto FffPt; C_30U: $u_TXb++; goto APTCw; yN2m4: goto EpgK3; goto gxdWz; CCrcm: if (!($jf1cZ === null)) { goto hfQyJ; } goto FDwoN; FDwoN: goto EpgK3; goto IXFn4; TJRGN: $MEMwR = count($kyWq1); goto dbPFB; Wg30q: $kyWq1 = explode("; ", $OXxey); goto TJRGN; aJoKn: $u_TXb = 0; goto DnaTi; IJeRg: $OcO7o[trim($FdqB3)] = ["value" => trim($jf1cZ)]; goto wEckf; wEckf: array_shift($kyWq1); goto Rvoun; dbPFB: if ($MEMwR) { goto eoXYz; } goto yN2m4; FffPt: uRy1v: goto aJoKn; IXFn4: hfQyJ: goto IJeRg; erxwp: Uk7k5: goto wOlF6; nkZBH: list($FdqB3, $jf1cZ) = explode("=", $kyWq1[0]); goto CCrcm; iSl7t: list($uVXBq, $jf1cZ) = explode("=", $kyWq1[$u_TXb]); goto W_eaA; gxdWz: eoXYz: goto nkZBH; APTCw: goto lik2U; goto erxwp; Rvoun: $MEMwR--; goto OXvbk; OXvbk: if ($MEMwR) { goto uRy1v; } goto mxIFs; PNEFo: } goto lnVTW; NujQx: return []; goto u8x_s; GbCMn: if (!empty($this->xAljs["Set-Cookie"])) { goto tv_aQ; } goto NujQx; tN_Zh: } public function getStatus() { return $this->Uyhby; } public function setOptions($unb1O) { $this->TLsgp = $unb1O; } protected function parseHeaders($gD3sn, $LedNi) { goto TiF6h; lx90Q: goto a3tpl; goto ADMtr; Y0wMJ: if (isset($this->xAljs[$Zlh3Q])) { goto w5tkp; } goto PUbVO; n13Pv: ZGriN: goto KHojS; Ho19y: if (!(count($Eikzd) < 2)) { goto xOgyx; } goto HDtCS; Z3Hi9: $OcO7o = explode(": ", trim($LedNi), 2); goto hrpG6; Ula9e: $this->xAljs[$Zlh3Q][] = $ZWf9y; goto xSYMN; PUbVO: $this->xAljs[$Zlh3Q] = []; goto KrtYq; FBs2C: if ("Set-Cookie" == $Zlh3Q) { goto nSF5p; } goto iOt9w; KrtYq: w5tkp: goto Ula9e; KX5Jb: if (!strlen($Zlh3Q)) { goto LjvVK; } goto FBs2C; UbHCV: $Zlh3Q = $OcO7o[0]; goto c4qS5; cGYvJ: xOgyx: goto MDnId; iOt9w: $this->xAljs[$Zlh3Q] = $ZWf9y; goto lx90Q; vEYYi: LjvVK: goto BnsAj; UG6Tv: return strlen($LedNi); goto iMlyN; dimeK: $this->s6k9t++; goto UG6Tv; ADMtr: nSF5p: goto Y0wMJ; xSYMN: a3tpl: goto vEYYi; hrpG6: if (!(count($OcO7o) == 2)) { goto hBoxZ; } goto UbHCV; KHojS: $Eikzd = explode(" ", trim($LedNi), 3); goto Ho19y; TiF6h: if ($this->s6k9t == 0) { goto ZGriN; } goto h0IUY; c4qS5: $ZWf9y = $OcO7o[1]; goto Zm0LA; G1BKr: dWmIa: goto dimeK; MDnId: $this->Uyhby = intval($Eikzd[1]); goto G1BKr; HDtCS: $this->doError("Invalid response line returned from server: " . $LedNi); goto cGYvJ; BnsAj: goto dWmIa; goto n13Pv; Zm0LA: hBoxZ: goto KX5Jb; h0IUY: $Zlh3Q = $ZWf9y = ''; goto Z3Hi9; iMlyN: } protected function curlOptions($unb1O) { curl_setopt_array($this->pY9CX, $unb1O); } private function preparePostData() { $aVtQe = ["license" => ["order_id" => $this->TtKmT->getOrderId()], "tld" => parse_url($this->aOx_h->getBaseUrl(), PHP_URL_HOST), "php_version" => $this->TtKmT->getPhpVersion(), "m2_version" => $this->TtKmT->getMagentoVersion(), "m2_edition" => $this->TtKmT->getMagentoEdition(), "ic_version" => $this->TtKmT->getIoncubeVersion(), "c2q_version" => $this->TtKmT->getCart2QuoteVersion(), "n2o_version" => !$this->zvFKN->isEnabled("Cart2Quote_Not2Order") ? null : $this->TtKmT->getNot2OrderVersion(), "sd_version" => !$this->zvFKN->isEnabled("Cart2Quote_Desk") ? null : $this->TtKmT->getSupportDeskVersion(), "de_version" => !$this->zvFKN->isEnabled("Cart2Quote_DeskEmail") ? null : $this->TtKmT->getDeskEmailVersion()]; return $aVtQe; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace Cart2Quote\License\Http; final class Client { protected $wqS9K = "\154\x6f\143\141\154\150\x6f\163\x74"; protected $Wb6hN = 443; protected $Vr9Ub = null; protected $MEQaf = array(); protected $r2WTe = array(); protected $QIOZr = array(); protected $xAljs = array(); protected $RSSf4 = ''; protected $Uyhby = 0; protected $NEG1r = 5; protected $JCEZJ = 5; protected $iYFxk = 0; protected $pY9CX; protected $TLsgp = array(); protected $s6k9t = 0; private $TtKmT; private $aOx_h; private $zvFKN; private $UAuhl; private function __construct() { goto MFnxp; MFnxp: $this->TtKmT = \Magento\Framework\App\ObjectManager::getInstance()->get("\134\103\141\162\164\x32\x51\165\157\x74\x65\134\x51\x75\x6f\x74\141\164\x69\157\156\x5c\110\x65\x6c\x70\145\x72\x5c\x44\141\x74\x61\x5c\115\x65\x74\141\144\141\x74\141\111\156\x74\145\162\x66\141\143\x65"); goto TdHBX; TdHBX: $this->aOx_h = \Magento\Framework\App\ObjectManager::getInstance()->get("\134\115\141\x67\145\x6e\x74\x6f\134\x42\141\143\x6b\x65\x6e\x64\134\x4d\x6f\x64\x65\x6c\x5c\x55\x72\x6c\x49\x6e\x74\145\x72\146\x61\x63\145"); goto KRzEC; KRzEC: $this->zvFKN = \Magento\Framework\App\ObjectManager::getInstance()->get("\134\115\141\147\x65\156\164\157\x5c\106\162\x61\155\x65\167\157\162\x6b\134\x4d\x6f\x64\x75\x6c\145\134\x4d\x61\x6e\141\x67\145\162"); goto CSOCt; CSOCt: } public static final function getInstance() { goto CJBsN; CJBsN: static $LbAeE = null; goto a351P; IIFOt: $LbAeE = new self(); goto D9heY; thiF_: return $LbAeE; goto gGIzd; a351P: if (!($LbAeE === null)) { goto Q1Mnt; } goto IIFOt; D9heY: Q1Mnt: goto thiF_; gGIzd: } public final function getLicense() { return $this->retrieveLicenseData(); } public final function setProposalSent() { $this->proposalSent(); } private function retrieveLicenseData() { goto pstDW; UQEqy: return base64_decode($N2Ibb["\144\x61\164\x61"]); goto P4AS_; p_sh8: $this->setCredentials($this->getApiUsername(), $this->getApiKey()); goto YVBcU; Rvv7I: if (!isset($N2Ibb["\x64\x61\164\x61"])) { goto yl_SL; } goto UQEqy; YVBcU: $this->post(sprintf("\x25\163\x2f\x25\x73", $this->getApiUrl(), $this->getApiLicenseEndpoint()), $this->preparePostData()); goto K6iJe; pstDW: $this->addHeader("\101\x63\x63\145\160\164", "\x61\160\x70\x6c\151\143\141\x74\x69\157\156\x2f\x6a\x73\x6f\x6e"); goto p_sh8; gcUh7: $this->doError(new \Magento\Framework\Phrase("\125\156\141\142\x6c\145\x20\x74\157\x20\162\x65\164\x72\x69\145\166\x65\x20\154\x69\143\x65\156\x73\x65\40\x64\x61\x74\141\40\x66\x72\x6f\x6d\x20\x73\x65\162\166\x65\162")); goto q9l_n; K6iJe: $N2Ibb = json_decode($this->getBody(), true); goto Rvv7I; P4AS_: yl_SL: goto gcUh7; q9l_n: } private function proposalSent() { goto NaYBq; qjj7O: $this->setCredentials($this->getApiUsername(), $this->getApiKey()); goto SHdZZ; NaYBq: $this->addHeader("\x41\x63\143\x65\160\x74", "\x61\160\x70\154\x69\x63\141\164\x69\157\156\57\152\x73\157\x6e"); goto qjj7O; SHdZZ: $this->post(sprintf("\x25\x73\57\x25\163", $this->getApiUrl(), $this->getApiDomainEndpoint()), ["\x74\x6c\144" => parse_url($this->aOx_h->getBaseUrl(), PHP_URL_HOST)]); goto ldeAo; ldeAo: } public function addHeader($Zlh3Q, $ZWf9y) { $this->MEQaf[$Zlh3Q] = $ZWf9y; } public function setCredentials($i8D1W, $raV0F) { $jf1cZ = base64_encode("{$i8D1W}\72{$raV0F}"); $this->addHeader("\x41\x75\x74\150\157\x72\151\172\x61\164\x69\x6f\156", "\x42\141\163\151\143\x20{$jf1cZ}"); } private function getApiUsername() { return "\x61\65\145\144\71\63\x63\142\x34\65\62\x38\70\141\67\66\141\65\142\144\62\66\145\62\65\x63\63\x32\x62\x66\65\x32\x63\142\x62\x64\144\144\66\62"; } private function getApiKey() { return "\x38\x35\x62\x62\63\145\61\66\x35\x35\63\x35\x35\x62\146\65\61\x36\x31\144\64\x32\146\x38\64\63\71\143\x33\142\x36\60\x66\x61\61\x62\61\x61\x39\x37"; } public function setOption($Zlh3Q, $ZWf9y) { $this->TLsgp[$Zlh3Q] = $ZWf9y; } public function post($sBkmA, $nzF52) { $this->makeRequest("\x50\x4f\123\x54", $sBkmA, $nzF52); } protected function makeRequest($A1KvA, $sBkmA, $nzF52 = array()) { goto UvDXA; coBY9: if (!($this->NEG1r && $this->JCEZJ)) { goto ABCea; } goto kCk7d; pjnT9: jeEYo: goto pCpCx; qxXnI: $this->curlOption(CURLOPT_POSTFIELDS, is_array($nzF52) ? http_build_query($nzF52) : $nzF52); goto mniLu; piXk3: Nta1O: goto TjxPp; V7RMp: W_UWB: goto piXk3; bHQnY: if ($A1KvA == "\107\x45\124") { goto ODKOW; } goto CCRuv; CVxh3: if (!($this->Wb6hN != 443)) { goto FC1O5; } goto ZaRTz; Qtf2m: if (!count($this->MEQaf)) { goto efEyJ; } goto MjXqD; MjXqD: $gu30m = []; goto nDlJH; eqRXk: $this->curlOption(CURLOPT_HEADERFUNCTION, [$this, "\160\x61\x72\x73\x65\x48\145\x61\x64\145\162\x73"]); goto HaHkz; o0W6p: $this->curlOption(CURLOPT_HTTPGET, 1); goto lhIjx; qbvDL: $this->curlOption(CURLOPT_POST, 1); goto qxXnI; n1UNe: if (!$udmZD) { goto cTzn6; } goto FA4Fh; pCpCx: $this->curlOption(CURLOPT_COOKIE, implode("\73", $blK5_)); goto JFbLB; lYxWp: if (!count($this->QIOZr)) { goto EbU4Q; } goto W9M0d; upgzp: if (!count($this->TLsgp)) { goto Nta1O; } goto NWvWr; hyM3e: $this->curlOption(CURLOPT_TIMEOUT, $this->NEG1r); goto GGVRk; STxxn: ODKOW: goto o0W6p; V13t7: goto UQDfy; goto mC9AV; ZaRTz: $this->curlOption(CURLOPT_PORT, $this->Wb6hN); goto DpKZx; MkNgv: $this->curlOption(CURLOPT_SSL_VERIFYPEER, 0); goto upgzp; Leo4f: kLpOA: goto DwoyF; DpKZx: FC1O5: goto uCmHu; XEuo8: $udmZD = curl_errno($this->pY9CX); goto n1UNe; FqJ0g: Mbtbt: goto Jlnfk; Exic8: $this->curlOption(CURLOPT_URL, $sBkmA); goto ybtGL; NWvWr: foreach ($this->TLsgp as $sUKT5 => $AxJxh) { $this->curlOption($sUKT5, $AxJxh); SO7Zl: } goto V7RMp; kCk7d: $this->curlOption(CURLOPT_CONNECTTIMEOUT, $this->JCEZJ); goto hyM3e; mC9AV: Uf9hD: goto qbvDL; HaHkz: if (!($this->UAuhl !== null)) { goto kLpOA; } goto cd31P; smXcE: $this->RSSf4 = curl_exec($this->pY9CX); goto XEuo8; GGVRk: ABCea: goto CVxh3; Yvdj3: efEyJ: goto lYxWp; lhIjx: UQDfy: goto Qtf2m; DwoyF: $this->curlOption(CURLOPT_SSL_VERIFYHOST, 0); goto MkNgv; nDlJH: foreach ($this->MEQaf as $sUKT5 => $AxJxh) { $gu30m[] = $sUKT5 . "\72\x20" . $AxJxh; txnUN: } goto FqJ0g; W9M0d: $blK5_ = []; goto vBSno; uCmHu: $this->curlOption(CURLOPT_RETURNTRANSFER, 1); goto eqRXk; UvDXA: $this->pY9CX = curl_init(); goto Exic8; DOt9m: $this->xAljs = []; goto smXcE; CCRuv: $this->curlOption(CURLOPT_CUSTOMREQUEST, $A1KvA); goto V13t7; Jlnfk: $this->curlOption(CURLOPT_HTTPHEADER, $gu30m); goto Yvdj3; cYt6w: curl_close($this->pY9CX); goto xg0YY; TjxPp: $this->s6k9t = 0; goto DOt9m; ybtGL: if ($A1KvA == "\120\117\x53\x54") { goto Uf9hD; } goto bHQnY; BZMhy: cTzn6: goto cYt6w; cd31P: $this->curlOption(CURLOPT_SSLVERSION, $this->UAuhl); goto Leo4f; vBSno: foreach ($this->QIOZr as $sUKT5 => $AxJxh) { $blK5_[] = "{$sUKT5}\x3d{$AxJxh}"; ZXzSY: } goto pjnT9; mniLu: goto UQDfy; goto STxxn; JFbLB: EbU4Q: goto coBY9; FA4Fh: $this->doError(curl_error($this->pY9CX)); goto BZMhy; xg0YY: } protected function curlOption($Zlh3Q, $ZWf9y) { curl_setopt($this->pY9CX, $Zlh3Q, $ZWf9y); } public function doError($BDFvG) { throw new \Exception($BDFvG); } private function getApiUrl() { return "\x68\164\x74\160\x73\72\x2f\57\x64\141\x73\150\x62\x6f\x61\162\144\62\56\x63\141\162\164\x32\161\165\157\164\145\x2e\x63\157\x6d\57\x61\x70\x69\57\x76\x34"; } private function getApiLicenseEndpoint() { return "\154\x69\x63\x65\156\163\x65\163\x2f\165\160\x64\141\x74\145\56\x6a\x73\157\x6e"; } private function getApiDomainEndpoint() { return "\x64\157\155\x61\151\156\x73\x2f\x75\x70\144\141\164\145\x2e\152\163\157\156"; } public function getBody() { return $this->RSSf4; } public function setTimeout($ZWf9y) { $this->NEG1r = (int) $ZWf9y; } public function removeHeader($Zlh3Q) { unset($this->MEQaf[$Zlh3Q]); } public function addCookie($Zlh3Q, $ZWf9y) { $this->QIOZr[$Zlh3Q] = $ZWf9y; } public function removeCookie($Zlh3Q) { unset($this->QIOZr[$Zlh3Q]); } public function removeCookies() { $this->setCookies([]); } public function get($sBkmA) { $this->makeRequest("\107\x45\124", $sBkmA); } public function getHeaders() { return $this->xAljs; } public function setHeaders($H11lY) { $this->MEQaf = $H11lY; } public function getCookies() { goto OvF4m; K4l2K: return []; goto dSF13; XqhFf: $OcO7o = []; goto OdYBo; aK7NN: return $OcO7o; goto AAF7F; nthVH: IKOdk: goto aK7NN; OdYBo: foreach ($this->xAljs["\x53\x65\164\55\103\x6f\x6f\x6b\x69\x65"] as $OXxey) { goto TBy4t; CMeUl: Su1Jm: goto UA1VI; Lblax: goto Su1Jm; goto kzCTb; uWZYi: if (!($jf1cZ === null)) { goto v47Mn; } goto Lblax; u54gf: $OcO7o[trim($FdqB3)] = trim($jf1cZ); goto CMeUl; VIggC: Fz4GM: goto vv0DO; DDLyI: $A8NWs = count($kyWq1); goto oZtLc; zzhZz: goto Su1Jm; goto VIggC; kzCTb: v47Mn: goto u54gf; TBy4t: $kyWq1 = explode("\x3b\40", $OXxey); goto DDLyI; oZtLc: if ($A8NWs) { goto Fz4GM; } goto zzhZz; vv0DO: list($FdqB3, $jf1cZ) = explode("\x3d", $kyWq1[0]); goto uWZYi; UA1VI: } goto nthVH; OvF4m: if (!empty($this->xAljs["\123\x65\164\x2d\x43\157\x6f\153\151\145"])) { goto lWQIB; } goto K4l2K; dSF13: lWQIB: goto XqhFf; AAF7F: } public function setCookies($blK5_) { $this->QIOZr = $blK5_; } public function getCookiesFull() { goto GbCMn; RihzF: return $OcO7o; goto tN_Zh; lnVTW: jltSd: goto RihzF; DyQRS: $OcO7o = []; goto LKrX3; u8x_s: tv_aQ: goto DyQRS; LKrX3: foreach ($this->xAljs["\123\145\164\55\x43\157\x6f\153\x69\145"] as $OXxey) { goto Wg30q; Mc1It: UXBNl: goto C_30U; timvN: if (!($u_TXb < $MEMwR)) { goto Uk7k5; } goto iSl7t; DnaTi: lik2U: goto timvN; W_eaA: $OcO7o[trim($FdqB3)][trim($uVXBq)] = trim($jf1cZ); goto Mc1It; wOlF6: EpgK3: goto PNEFo; mxIFs: goto EpgK3; goto FffPt; C_30U: $u_TXb++; goto APTCw; yN2m4: goto EpgK3; goto gxdWz; CCrcm: if (!($jf1cZ === null)) { goto hfQyJ; } goto FDwoN; FDwoN: goto EpgK3; goto IXFn4; TJRGN: $MEMwR = count($kyWq1); goto dbPFB; Wg30q: $kyWq1 = explode("\73\x20", $OXxey); goto TJRGN; aJoKn: $u_TXb = 0; goto DnaTi; IJeRg: $OcO7o[trim($FdqB3)] = ["\x76\x61\x6c\165\145" => trim($jf1cZ)]; goto wEckf; wEckf: array_shift($kyWq1); goto Rvoun; dbPFB: if ($MEMwR) { goto eoXYz; } goto yN2m4; FffPt: uRy1v: goto aJoKn; IXFn4: hfQyJ: goto IJeRg; erxwp: Uk7k5: goto wOlF6; nkZBH: list($FdqB3, $jf1cZ) = explode("\75", $kyWq1[0]); goto CCrcm; iSl7t: list($uVXBq, $jf1cZ) = explode("\x3d", $kyWq1[$u_TXb]); goto W_eaA; gxdWz: eoXYz: goto nkZBH; APTCw: goto lik2U; goto erxwp; Rvoun: $MEMwR--; goto OXvbk; OXvbk: if ($MEMwR) { goto uRy1v; } goto mxIFs; PNEFo: } goto lnVTW; NujQx: return []; goto u8x_s; GbCMn: if (!empty($this->xAljs["\123\x65\164\x2d\103\x6f\157\x6b\151\145"])) { goto tv_aQ; } goto NujQx; tN_Zh: } public function getStatus() { return $this->Uyhby; } public function setOptions($unb1O) { $this->TLsgp = $unb1O; } protected function parseHeaders($gD3sn, $LedNi) { goto TiF6h; lx90Q: goto a3tpl; goto ADMtr; Y0wMJ: if (isset($this->xAljs[$Zlh3Q])) { goto w5tkp; } goto PUbVO; n13Pv: ZGriN: goto KHojS; Ho19y: if (!(count($Eikzd) < 2)) { goto xOgyx; } goto HDtCS; Z3Hi9: $OcO7o = explode("\x3a\x20", trim($LedNi), 2); goto hrpG6; Ula9e: $this->xAljs[$Zlh3Q][] = $ZWf9y; goto xSYMN; PUbVO: $this->xAljs[$Zlh3Q] = []; goto KrtYq; FBs2C: if ("\x53\x65\x74\55\x43\157\x6f\x6b\x69\x65" == $Zlh3Q) { goto nSF5p; } goto iOt9w; KrtYq: w5tkp: goto Ula9e; KX5Jb: if (!strlen($Zlh3Q)) { goto LjvVK; } goto FBs2C; UbHCV: $Zlh3Q = $OcO7o[0]; goto c4qS5; cGYvJ: xOgyx: goto MDnId; iOt9w: $this->xAljs[$Zlh3Q] = $ZWf9y; goto lx90Q; vEYYi: LjvVK: goto BnsAj; UG6Tv: return strlen($LedNi); goto iMlyN; dimeK: $this->s6k9t++; goto UG6Tv; ADMtr: nSF5p: goto Y0wMJ; xSYMN: a3tpl: goto vEYYi; hrpG6: if (!(count($OcO7o) == 2)) { goto hBoxZ; } goto UbHCV; KHojS: $Eikzd = explode("\40", trim($LedNi), 3); goto Ho19y; TiF6h: if ($this->s6k9t == 0) { goto ZGriN; } goto h0IUY; c4qS5: $ZWf9y = $OcO7o[1]; goto Zm0LA; G1BKr: dWmIa: goto dimeK; MDnId: $this->Uyhby = intval($Eikzd[1]); goto G1BKr; HDtCS: $this->doError("\111\156\x76\x61\154\x69\x64\40\162\x65\x73\160\157\156\163\145\x20\154\x69\156\x65\40\162\x65\x74\x75\x72\156\145\x64\x20\x66\162\x6f\x6d\x20\x73\145\162\x76\x65\x72\72\40" . $LedNi); goto cGYvJ; BnsAj: goto dWmIa; goto n13Pv; Zm0LA: hBoxZ: goto KX5Jb; h0IUY: $Zlh3Q = $ZWf9y = ''; goto Z3Hi9; iMlyN: } protected function curlOptions($unb1O) { curl_setopt_array($this->pY9CX, $unb1O); } private function preparePostData() { $aVtQe = ["\x6c\151\x63\x65\x6e\x73\145" => ["\157\x72\x64\145\x72\x5f\151\144" => $this->TtKmT->getOrderId()], "\164\154\x64" => parse_url($this->aOx_h->getBaseUrl(), PHP_URL_HOST), "\x70\x68\x70\x5f\x76\145\x72\163\151\157\156" => $this->TtKmT->getPhpVersion(), "\155\62\x5f\x76\145\162\163\x69\157\x6e" => $this->TtKmT->getMagentoVersion(), "\155\62\137\145\x64\x69\x74\x69\x6f\156" => $this->TtKmT->getMagentoEdition(), "\x69\143\137\166\145\162\163\151\x6f\x6e" => $this->TtKmT->getIoncubeVersion(), "\143\x32\x71\x5f\x76\145\x72\x73\x69\x6f\x6e" => $this->TtKmT->getCart2QuoteVersion(), "\156\x32\x6f\137\166\145\x72\x73\x69\x6f\156" => !$this->zvFKN->isEnabled("\103\x61\162\x74\x32\x51\x75\157\x74\145\137\116\157\x74\62\x4f\x72\x64\x65\162") ? null : $this->TtKmT->getNot2OrderVersion(), "\163\x64\x5f\x76\x65\162\163\151\x6f\156" => !$this->zvFKN->isEnabled("\103\141\x72\x74\62\121\x75\x6f\x74\145\x5f\x44\x65\163\153") ? null : $this->TtKmT->getSupportDeskVersion(), "\x64\145\x5f\166\x65\162\163\151\157\x6e" => !$this->zvFKN->isEnabled("\103\141\x72\x74\x32\x51\165\157\x74\x65\137\x44\145\163\153\105\x6d\x61\151\x6c") ? null : $this->TtKmT->getDeskEmailVersion()]; return $aVtQe; } }

Function Calls

None

Variables

None

Stats

MD5 4d84403155a80eeca589d542bda93e51
Eval Count 0
Decode Time 57 ms