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 /* * @version $Id: Pont V7.6 2021-10-23 szathmari.hu $ * @copyright Copyright (..

Decoded Output download

<?php 
/* 
 * @version $Id: Pont V7.6 2021-10-23 szathmari.hu $ 
 * @copyright Copyright (C) 2021 szathmari.hu - All rights reserved. 
 * @license commerical 
 * @url https://szathmari.hu 
*/ 
 goto UtwY_; UtwY_: class posta { public $acc; public $key; public $secret; public $access_token; public $test; public $parcel; function init() { goto tO0Pc; D1Mz5: WDkQ6: goto ytaMV; ABHQq: $this->acc = get_option("wc_pont_posta_acc"); goto D1Mz5; XN6JX: $this->env = get_option("wc_pont_posta_test") === "yes" ? "sandbox" : "core"; goto WEeUo; G76Nv: $this->secret = get_option("wc_pont_posta_secret"); goto XN6JX; ytaMV: $this->key = get_option("wc_pont_posta_key"); goto G76Nv; tO0Pc: if (empty(get_option("wc_pont_posta_acc"))) { goto WDkQ6; } goto ABHQq; WEeUo: } function get_access() { goto Ny2jN; NU0sf: cgRTn: goto btdst; LU7Cr: WC_Pont::log("Export:\x9Posta hiba" . " response: " . json_encode($resp, JSON_UNESCAPED_UNICODE), "error"); goto z3JuN; z3JuN: WC_Pont::st_array("pont_errors", "Posta", __("Kapcsol\xc3\263d\303\241si probl\xc3\251ma", "wc-pont") . ": " . json_encode($resp->errors)); goto OTb8q; wm_mS: return; goto jd36s; ceIYN: $this->access_token = $token; goto gpxN8; ANpLZ: WC_Pont::log("Export:	Posta hiteles\xc3\xadt\303\251s sikertelen" . " response: " . $resp["body"], "error"); goto KVhmF; cOx4l: $params = array("timeout" => 10, "httpversion" => "1.1", "body" => ["grant_type" => "client_credentials"], "Accept" => "application/json", "Content-Type" => "application/json", "headers" => ["Authorization" => "Basic " . base64_encode($this->key . ":" . $this->secret)]); goto qhp47; Ny2jN: $token = get_transient("pont_posta_token"); goto ErBYg; gpxN8: WC_Pont::log("Posta\x9Access by stored token", "info"); goto wm_mS; qhp47: $resp = wp_remote_post("https://" . $this->env . ".api.posta.hu/oauth2/token", http_build_query($params)); goto aW783; btdst: $resp = json_decode(wp_remote_retrieve_body($resp)); goto l4xuh; pl3Mg: WC_Pont::log("Export:	oauth2" . " resp code: " . $respcode . " response: " . json_encode($resp, JSON_UNESCAPED_UNICODE), "info"); goto iGkRV; CW5y8: if (400 <= $respcode) { goto CMoNr; } goto pl3Mg; M3J_8: set_transient("pont_posta_token", $resp->access_token, 15 * MINUTE_IN_SECONDS); goto F0lB_; l4xuh: $this->access_token = $resp->access_token; goto M3J_8; aW783: if (!is_wp_error($resp)) { goto v9mN8; } goto LU7Cr; ErBYg: if (!$token) { goto XhH0P; } goto ceIYN; jd36s: XhH0P: goto cOx4l; psiID: $respcode = wp_remote_retrieve_response_code($resp); goto CW5y8; KVhmF: WC_Pont::st_array("pont_errors", "Posta", __("Hiteles\xc3\xadt\xc3\251si probl\xc3\xa9ma", "wc-pont")); goto o0thE; zRzpy: v9mN8: goto psiID; Cmz0d: CMoNr: goto ANpLZ; o0thE: return; goto NU0sf; OTb8q: return false; goto zRzpy; iGkRV: goto cgRTn; goto Cmz0d; F0lB_: } function setDOP($order, $order_id, $pont) { goto c0p0I; WHjOe: fpbih: goto N5xHL; AJxHM: nWNUj: goto BnfUw; eKZtK: $this->parcel->recipient->address->parcelPickupSite = $p[$id]["name"]; goto Khex6; BnfUw: if (!empty($p)) { goto cRjH0; } goto Vo9KQ; Fk6rf: b9c3w: goto PLHkT; Khex6: return true; goto WHjOe; uV1hD: $pp[] = json_decode(@file_get_contents(WC_Pont::$plugin_path . "postacspont.json"), true); goto DuQ1q; Vo9KQ: return false; goto HyEkS; D30k5: $this->parcel->item[0]->services->deliveryMode = $p[$id]["group"]; goto eKZtK; PLHkT: if (!is_array($p[$id])) { goto fpbih; } goto D30k5; HyEkS: cRjH0: goto MGKkY; MGKkY: $id = array_search($pont[2], array_column($p, "id")); goto wIJjQ; GOq7N: $pp[] = json_decode(@file_get_contents(WC_Pont::$plugin_path . "postappont.json"), true); goto uV1hD; wIJjQ: if (!($id === false)) { goto b9c3w; } goto vkJ_F; c0p0I: $pp[] = json_decode(@file_get_contents(WC_Pont::$plugin_path . "postampont.json"), true); goto GOq7N; DuQ1q: $p = []; goto IQk_u; IQk_u: foreach ($pp as $t) { goto DTz0E; SpAU3: $p = array_merge($p, $t); goto F312v; e7KQo: Cktud: goto edack; DTz0E: if (!is_array($t)) { goto HnX0w; } goto SpAU3; F312v: HnX0w: goto e7KQo; edack: } goto AJxHM; vkJ_F: return false; goto Fk6rf; N5xHL: } } goto ZERF_; E9yqE: function delete_posta_package($pns) { goto BypVd; BypVd: WC_Pont::log("Posta\x9delete shipments", "info"); goto sUKoR; NaVgJ: $csomag->init(); goto xFL7G; DiTCe: xJioC: goto x3lNV; A7Nyu: $t = []; goto xTdub; x3lNV: return $t; goto f4kka; xTdub: foreach ($pns as $pn) { goto Rcmvx; pxZUZ: $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); goto tmUFp; T0enV: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto K2rsS; Httj9: WC_Pont::log("Posta	delete: " . json_encode($result, JSON_UNESCAPED_UNICODE), "error"); goto Hurrv; IVI5H: curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); goto qA8Pz; AD30V: $t[$pn] = __("T\303\266r\303\266lve", "wc-pont"); goto Ny7ha; Hurrv: TDRC4: goto t5vvm; lRC1D: curl_close($ch); goto ZGl_p; PWJyY: curl_setopt($ch, CURLOPT_HEADER, TRUE); goto IVI5H; Xttkx: curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE); goto PWJyY; Rcmvx: $url = "https://" . $csomag->env . ".api.posta.hu/v2/mplapi/shipments/" . $pn; goto lFz3k; hoVG7: $t[$pn] = __("Hibak\xc3\xb3d", "wc-pont") . ": " . implode(", ", $e); goto Httj9; tmUFp: $body = substr($response, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); goto xqh_Q; K2rsS: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); goto Xttkx; jPXTF: $headers = ["Accept: application/json", "Content-Type: application/json; charset=utf-8", "X-Request-Id: " . get_uuid(), "X-Accounting-Code: " . $csomag->acc, "Authorization: Bearer " . $csomag->access_token]; goto Fv0n5; yClSn: goto Kgj7d; goto pEzwy; Fv0n5: $ch = curl_init(); goto lOj50; N8vVx: $t[$pn] = __("Hiba", "wc-pont") . ": " . $httpcode; goto yClSn; t5vvm: Kgj7d: goto PJM83; PJM83: gRgZT: goto a52gy; oFTBX: if (isset($result->errors)) { goto xLcgg; } goto AD30V; JC9uc: if (200 == $httpcode) { goto RWBH5; } goto N8vVx; qA8Pz: $response = curl_exec($ch); goto pxZUZ; xqh_Q: $result = json_decode($body); goto lRC1D; HKZPH: $e = array_column($result->errors, "code"); goto hoVG7; pEzwy: RWBH5: goto oFTBX; lFz3k: $params = array("timeout" => 10, "httpversion" => "1.1", "headers" => ["accept" => "application/json", "Content-Type" => "application/json", "X-Request-Id" => get_uuid(), "X-Accounting-Code" => $csomag->acc, "Authorization" => "Bearer " . $csomag->access_token]); goto jPXTF; z6RRR: xLcgg: goto HKZPH; ZGl_p: WC_Pont::log("Posta\x9delete: " . " TR: " . $pn . " result: " . wc_print_r($response, true) . " body: " . $body, "info"); goto JC9uc; lqJgH: curl_setopt($ch, CURLOPT_URL, $url); goto S3aep; S3aep: curl_setopt($ch, CURLOPT_TIMEOUT, 10); goto T0enV; Ny7ha: goto TDRC4; goto z6RRR; lOj50: curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); goto lqJgH; a52gy: } goto DiTCe; xFL7G: $csomag->get_access(); goto A7Nyu; sUKoR: $csomag = new posta(); goto NaVgJ; f4kka: } goto c1Yzg; Ft8km: function check_response($resp, $order_id) { goto TjXo_; oJjpQ: return $respcode; goto rBuQe; ZADDX: WC_Pont::log("Posta	response: " . json_encode(array($resp), JSON_UNESCAPED_UNICODE), "error"); goto dSphf; dSphf: WC_Pont::st_array("pont_errors", $order_id, sprintf("%s: %s, hibale\303\255r\xc3\241s: %s", __("Hiba t\xc3\266rt\303\251nt. MPL \xc3\241ltal k\303\274ld\xc3\266tt hibak\xc3\xb3d", "wc-pont"), $respcode, wp_remote_retrieve_response_message($resp))); goto JYJ3U; TjXo_: $respcode = wp_remote_retrieve_response_code($resp); goto agYfa; agYfa: if (!(200 != $respcode)) { goto cwdu5; } goto ZADDX; JYJ3U: cwdu5: goto oJjpQ; rBuQe: } goto BND_5; qI5y2: function get_uuid() { goto qxUYH; v5Y9N: return vsprintf("%s%s-%s-%s-%s-%s%s%s", str_split(bin2hex($data), 4)); goto mdtZ_; QFrUo: $data[6] = chr(ord($data[6]) & 0xf | 0x40); goto phZid; qxUYH: $data = random_bytes(16); goto QFrUo; phZid: $data[8] = chr(ord($data[8]) & 0x3f | 0x80); goto v5Y9N; mdtZ_: } goto Ft8km; BND_5: function remark_on_label($order, $template, $length = null) { goto Hq1Km; wbcgl: if (!(sizeof($iTemplate) > 0)) { goto PvfcU; } goto LZE6Y; Fjlry: PvfcU: goto lVMjC; QI2A7: return mb_substr($template, 0, $length ?? 40); goto Nf1SY; p0aIr: $order_id = $order->get_order_number(); goto nL0wl; Ut0aX: $iTemplate = array(); goto SqOdL; lVMjC: $template .= " " . implode("|", $itemTemplate); goto QI2A7; fox8I: ECRFq: goto wQRHP; aLPmz: foreach ($lItems as $k => $lItem) { goto QyKC0; IWM0C: $iTemplate[] = " " . $k . $lItem; goto s1CLQ; dTv1T: $template = str_replace($lItem, " ", $template); goto IWM0C; s1CLQ: mAtgn: goto s_W10; s_W10: Eg0g8: goto evgmc; QyKC0: if (!(strpos($template, $lItem) !== false)) { goto mAtgn; } goto dTv1T; evgmc: } goto fox8I; nL0wl: $templateRep = array("[megjegyz\xc3\xa9s]" => $customer_message, "[\303\xbajsor]" => "\xa", "[rendel\303\251ssz\xc3\xa1m]" => $order_id); goto zOQJ_; wQRHP: $contents = get_contents($order); goto wbcgl; cavar: $lItems = array("#" => "[cikksz\xc3\xa1m]", '' => "[term\303\xa9k]", "db: " => "[mennyis\303\251g]"); goto Ut0aX; LZE6Y: foreach ($contents as $content) { $itemTemplate[] = strtr(implode(" ", $iTemplate), array("[term\xc3\xa9k]" => $content["name"], "[cikksz\303\241m]" => $content["sku"], "[mennyis\303\251g]" => $content["qty"])); JSlfM: } goto XY9vp; XY9vp: MmY8S: goto Fjlry; Hq1Km: $customer_message = !empty($order->get_customer_note()) ? $order->get_customer_note() : ''; goto cavar; zOQJ_: $template = strtr($template, $templateRep); goto aLPmz; SqOdL: $itemTemplate = array(); goto p0aIr; Nf1SY: } goto m4XUA; MXLO2: function get_posta_shipments($pn = null) { goto mhui1; RIQvr: foreach ($resp as $r) { goto PrQEe; PrQEe: $packages = null; goto p1I1B; FbeLF: $address = $r->shipment->recipient->address; goto IWV0x; AFZId: RcJg3: goto jpXbF; VaE5x: j69JM: goto FbeLF; F2r4N: $table->parcels[] = array("pn" => sprintf("%s <a href="%s" class="your-class">%s</a>", $r->shipment->trackingNumber, $delete_url, __("T\xc3\xb6r\xc3\266l", "wc-pont")), "date" => date("Y-m-d H:i", strtotime($r->shipment->shipmentDate)), "order_id" => $r->shipment->orderId, "recipient_name" => $r->shipment->recipient->contact->name, "recipient_contact" => $r->shipment->recipient->contact->email . " " . $r->shipment->recipient->contact->phone, "recipient_address" => sprintf("%s %s, %s", $address->postCode, $address->city, $address->address), "items" => $packages); goto AFZId; p1I1B: foreach ($r->shipment->item as $i) { goto LcwZE; JfLnX: $packages = sprintf("m\xc3\251ret: <b>%s</b> egy\xc3\xa9ni 1: <b>%s</b> egy\xc3\251ni 2: <b>%s</b> ut\xc3\241nv\303\251t: <b>%s</b> szolg\303\xa1ltat\xc3\xa1s: <b>%s</b> extra: <b>%s</b> k\xc3\xa9zbes\xc3\xadt\303\xa9s: <b>%s</b> d\303\255j: <b>%s</b> ut\303\241nv\xc3\xa9t: <b>%s</b>", $i->size, $i->customData1 ?? '', $i->customData2 ?? '', $i->services->cod, $i->services->basic, $extra, $i->services->deliveryMode ?? '', $i->fee ?? "-", $i->services->cod ?? "-"); goto CDCZV; LcwZE: $extra = implode(", ", $i->services->extra); goto JfLnX; CDCZV: CHuRm: goto wIRn3; wIRn3: } goto VaE5x; IWV0x: $delete_url = wp_nonce_url(add_query_arg(array("pn" => array($r->shipment->trackingNumber)), admin_url("admin.php?page=posta")), "postapage", "_wpnonce"); goto F2r4N; jpXbF: } goto e5Tmv; h7KG3: $respcode = wp_remote_retrieve_response_code($resp); goto iyUer; Y6zHq: $csomag->init(); goto mroYI; GBx4p: NuEuh: goto MlLFp; ZgD3D: $csomag = new posta(); goto Y6zHq; HUTry: $limit = filter_input(INPUT_GET, "limit", FILTER_VALIDATE_INT); goto xJk9T; PTrq0: $resp = wp_remote_get($url, $params); goto h7KG3; LjQr0: return count($resp); goto DXVqr; xJk9T: if (!$limit) { goto ryE_F; } goto Zskeb; PcqQH: return null; goto GBx4p; MSIWk: ryE_F: goto obCma; Zskeb: $table->pagination = $limit; goto MSIWk; iyUer: if (!(200 != $respcode)) { goto NuEuh; } goto EitcT; e5Tmv: pOZ57: goto HUTry; EitcT: WC_Pont::log("Posta\x9response: " . json_encode(array($resp), JSON_UNESCAPED_UNICODE), "error"); goto PcqQH; MlLFp: $resp = json_decode(wp_remote_retrieve_body($resp)); goto w3xq1; obCma: $table->prepare_items(); goto afpuM; mhui1: WC_Pont::log("Posta\x9get shipments", "info"); goto ZgD3D; mroYI: $csomag->get_access(); goto xlDX6; afpuM: $table->display(); goto LjQr0; pfrYM: $params = array("timeout" => 20, "httpversion" => "1.1", "headers" => ["accept" => "application/json", "Content-Type" => "application/json", "X-Request-Id" => get_uuid(), "X-Accounting-Code" => $csomag->acc, "Authorization" => "Bearer " . $csomag->access_token]); goto PTrq0; xlDX6: $url = "https://" . $csomag->env . ".api.posta.hu/v2/mplapi/shipments/"; goto pfrYM; w3xq1: $table = new shipments_table(); goto RIQvr; DXVqr: } goto E9yqE; ZERF_: function export_posta($order_ids) { goto uxCII; ChaIy: $trs = []; goto CSfde; H7bIi: $resp = wp_remote_post("https://" . $csomag->env . ".api.posta.hu/v2/mplapi/shipments", $query); goto o5DpY; uxCII: $csomag = new posta(); goto DApIi; hh1d3: WC_Pont::st_array("pont_errors", $order_id, __("C\303\xadmkenyomtatat\303\xa1si probl\xc3\xa9ma", "wc-pont") . ": " . json_encode($resp)); goto F81bS; g5YnL: xIU4Y: goto PifFg; IWl1N: return; goto kPNts; b_jup: WC_Pont::st_array("pont_errors", 0, __("C\xc3\255mkelekelet\xc3\266lt\xc3\251si probl\xc3\xa9ma:", "wc-pont") . ": " . json_encode($resp)); goto ZDagh; HF9o9: foreach ($trs as $o_id => $tr) { WC_Pont::st_array("pont_pdf", $o_id, $filename); xovJX: } goto F2pUq; sKlgk: if (!is_wp_error($resp)) { goto YtfHO; } goto b_jup; O8hHJ: $query = "trackingNumbers=" . implode("&trackingNumbers=", $trs); goto tqxYP; LEeoz: file_put_contents(trailingslashit(WC_Pont::wc_pont_upload_dir()) . $filename, base64_decode($resp[0]->label)); goto HF9o9; F81bS: return; goto hSI2S; SmIji: WC_Pont::log("Export:\x9Parcel print" . " order id: " . implode(", ", $exported_ids) . " response: " . json_encode($resp, JSON_UNESCAPED_UNICODE), "error"); goto hh1d3; Lfyl4: b_I1x: goto HdK0p; IkQ3d: $csomag->get_access(); goto Z5jFu; ZdBA7: H05In: goto O1GOj; tbBRp: WC_Pont::log("Export:\x9Parcel print" . " order id: " . implode(", ", $exported_ids) . " response: " . json_encode($resp, JSON_UNESCAPED_UNICODE), "info"); goto dzHma; kxLsw: foreach ($order_ids as $order_id) { goto wgKNi; Vwwby: $csomag->parcel->item[0] = $item; goto v1GuT; T9eY7: goto ulTla; goto D9knW; SuwdT: if (!$pont) { goto A2Ewc; } goto je5Jm; FqIqh: $csomag->parcel->recipient = $recipient; goto ntfaR; zQMqW: $value = !empty($max_value) && is_numeric($max_value) && $order->get_total() > $max_value ? $max_value : $order->get_total(); goto MEoE4; gorAC: $custom_data1 = remark_on_label($order, $template); goto P2AWt; b622v: WC_Pont::st_array("pont_errors", $order->get_order_number(), sprintf(__("A rendel\303\xa9s nem lett export\303\241lva, %s meta alapj\xc3\241n kiz\303\241rva", "wc-pont"), $exclude)); goto AE1v8; Lkb5O: if (!("cod" === $order->get_payment_method())) { goto ZIPvi; } goto PaU19; oNo4A: $item->services->extra[] = "K_UVT"; goto nnLj9; XSS1r: $template = get_option("wc_pont_posta_remark_template"); goto agGhK; T5LjC: PME7p: goto mkIsl; Wg_8x: if (empty($template)) { goto cV48v; } goto gorAC; je5Jm: $p = explode("|", $pont); goto p2656; N8xFo: goto ulTla; goto mZbhY; NpPay: $custom_data2 = ''; goto U8Ra1; AnXW8: if (!($exclude && get_post_meta($order_id, $exclude))) { goto yZnrb; } goto b622v; EQXEm: if (!(strpos($sMethod["method_id"], "local_pickup") !== false)) { goto ydWtq; } goto r8bCa; mYG3M: WC_Pont::log("Export:\x9Parcel done" . " order id: " . $order_id . " parcel: " . wc_print_r($csomag->parcel, true), "info"); goto wR98L; mkIsl: $exclude = get_option("wc_pont_posta_exclude"); goto AnXW8; JXaNc: VCbJr: goto JlXl5; vJmIW: if (empty($template)) { goto z2oka; } goto Z7qby; acUqu: A2Ewc: goto JL21g; JlXl5: $max_value = get_option("wc_pont_posta_max_value"); goto zQMqW; l904b: EKjow: goto acUqu; ntfaR: $template = get_option("wc_pont_posta_custom_data1_template"); goto EhanR; T0CJa: $recipient = (object) ["contact" => (object) ["name" => trim($order->get_shipping_company() . " " . $order->get_shipping_last_name() . " " . $order->get_shipping_first_name()), "email" => $order->get_billing_email(), "phone" => get_option("wc_pont_posta_format_phone") === "yes" ? substr(formatPhone($order->get_billing_phone()), 0, 13) : $order->get_billing_phone()], "address" => (object) ["postCode" => $order->get_shipping_postcode(), "city" => $order->get_shipping_city(), "address" => @$order->get_shipping_address_2() ? $order->get_shipping_address_1() . " " . $order->get_shipping_address_2() : $order->get_shipping_address_1(), "parcelPickupSite" => '', "remark" => $remark]]; goto FqIqh; PaU19: $item->services->cod = (float) $order->get_total(); goto oNo4A; S5nOy: $item->size = empty(get_post_meta($order_id, "package_size")) ? get_option("wc_pont_posta_size", "M") : get_post_meta($order_id, "package_size", true); goto M92c2; ml4dP: if (!(false === $dop)) { goto LHoV9; } goto Zl57Z; GjX5H: if (!($services && is_array($services))) { goto PME7p; } goto rN5Dq; sYCpg: $custom_data2 = remark_on_label($order, $template); goto JXaNc; sn741: $exp++; goto GMbrb; ekQrL: $order = new WC_Order($order_id); goto W9KKz; D9knW: LHoV9: goto l904b; GMbrb: ulTla: goto VKGrE; P2AWt: cV48v: goto TqlBi; Zl57Z: WC_Pont::st_array("pont_errors", $order->get_order_number(), __("\303\x81tvev\xc5\221pont nem tal\xc3\241lhat\303\263:", "wc-pont") . " " . $p[2]); goto T9eY7; W9KKz: $sMethod = $order->get_shipping_methods(); goto dTJx2; r8bCa: WC_Pont::st_array("pont_errors", $order->get_order_number(), __("Rendel\xc3\251s nem ker\xc3\xbclt tov\303\241bb\xc3\xadt\303\xa1sra, szem\303\251lyes \303\241tv\xc3\xa9tellel k\303\251rte", "wc-pont")); goto N8xFo; v1GuT: $pont = get_post_meta($order_id, "wc_selected_pont", true); goto SuwdT; sVsF0: goto ulTla; goto p2yzF; wsMgl: WC_Pont::st_array("pont_errors", $order->get_order_number(), sprintf(__("A rendel\303\xa9st %s sz\303\241ll\303\xadt\303\241ssal k\xc3\251rte", "wc-pont"), $p[1])); goto sVsF0; MEoE4: $item = (object) ["customData1" => $custom_data1, "customData2" => $custom_data2, "weight" => ["value" => WC_Pont::get_package_weight($order), "unit" => "g"], "size" => "M", "services" => (object) ["basic" => "A_175_UZL", "extra" => [], "cod" => 0, "value" => (float) $value, "deliveryMode" => "HA"]]; goto S5nOy; rN5Dq: $item->services->extra = array_merge($item->services->extra, $services); goto T5LjC; wgKNi: $csomag->parcel = (object) ["sender" => ["agreement" => get_option("wc_pont_posta_agreement"), "accountNo" => (string) get_option("wc_pont_posta_account_no"), "contact" => ["name" => get_option("wc_pont_posta_sender_name"), "email" => get_option("wc_pont_posta_sender_mail"), "phone" => get_option("wc_pont_posta_sender_phone")], "address" => ["postCode" => get_option("wc_pont_posta_sender_zip"), "city" => get_option("wc_pont_posta_sender_city"), "address" => get_option("wc_pont_posta_sender_address"), "remark" => '']], "recipient" => (object) ["contact" => (object) ["name" => '', "email" => '', "phone" => ''], "address" => (object) ["postCode" => '', "city" => '', "address" => '', "parcelPickupSite" => '', "remark" => ''], "disabled" => false], "orderId" => (string) $order_id, "developer" => "szathmari.hu", "webshopId" => get_option("wc_pont_posta_sender_name"), "labelType" => get_option("wc_pont_posta_labeltype", "A5"), "tag" => '', "paymentMode" => get_option("wc_pont_posta_payment_mode", "UV_AT"), "packageRetention" => (int) get_option("wc_pont_posta_retention", "5"), "item" => []]; goto ekQrL; M92c2: $services = get_option("wc_pont_posta_service_extra"); goto GjX5H; U8Ra1: if (empty($template)) { goto VCbJr; } goto sYCpg; icaio: $dop = $csomag->setDOP($order, $order_id, $p); goto ml4dP; w_P5g: z2oka: goto T0CJa; dTJx2: $sMethod = reset($sMethod); goto EQXEm; wR98L: $parcels[] = $csomag->parcel; goto sn741; p2656: if (strpos($p[1], "Posta") !== false) { goto zq_3M; } goto wsMgl; nnLj9: ZIPvi: goto Vwwby; EhanR: $custom_data1 = ''; goto Wg_8x; p2yzF: goto EKjow; goto JneiR; Z7qby: $remark = remark_on_label($order, $template, 50); goto w_P5g; mZbhY: ydWtq: goto XSS1r; JL21g: do_action("woocommerce_" . "wc_pont" . "_export_posta_data", $csomag->parcel, $order); goto mYG3M; h3Ong: yZnrb: goto Lkb5O; JneiR: zq_3M: goto icaio; TqlBi: $template = get_option("wc_pont_posta_custom_data2_template"); goto NpPay; AE1v8: goto ulTla; goto h3Ong; agGhK: $remark = ''; goto vJmIW; VKGrE: } goto Lfyl4; AepFN: $query = http_build_query($params); goto H7bIi; aEHe0: WC_Pont::log("Posta	data" . " X-Accounting-Code: " . $csomag->acc . " send: " . json_encode($parcels, JSON_UNESCAPED_UNICODE), "info"); goto TFNTH; ZMXei: $resp = wp_remote_get($url, $params); goto qnUcJ; WU6ri: $resp = json_decode(wp_remote_retrieve_body($resp)); goto tbBRp; TelN0: if (!(get_option("wc_pont_export_mod_status") == "yes")) { goto GWm_q; } goto ilyZS; X7WDg: posta_shipments_close(); goto zzRl9; iESFq: $resp = json_decode(wp_remote_retrieve_body($resp)); goto hBbUL; PifFg: set_transient("pont_carrier", "posta", 5 * MINUTE_IN_SECONDS); goto TelN0; Kq9JB: if (!is_wp_error($resp)) { goto bwzfn; } goto SmIji; HdK0p: $exported_ids = array_column($parcels, "orderId"); goto PZrzg; kPNts: m1KqE: goto Kq9JB; zzRl9: return count(get_transient("pont_pcls")); goto hgXoL; hBbUL: $filename = date("Ymd-His") . ".pdf"; goto LEeoz; lrmvF: AgEL2: goto sKlgk; F2pUq: TLMdQ: goto g5YnL; q2b13: $body = "\xa{
"fromDate": "2020-07-23T12:31:05.851Z",
"toDate": "2020-07-23T12:31:05.851Z",
"trackingNumbers": [
"PNVF195161001"\xa],
"checkList": true,\xa"tag": "string"
}\xa"; goto X7WDg; cBay1: $parcels = []; goto kxLsw; o5DpY: WC_Pont::log("Posta\x9sent query: " . json_encode($query, JSON_UNESCAPED_UNICODE), "info"); goto DXsdG; YLnIK: WC_Pont::log("Export:	get labels" . " tr: " . implode(", ", $trs) . " url: " . $url, "info"); goto ZMXei; tqxYP: $query .= "&labelType=" . get_option("wc_pont_posta_labeltype", "A5"); goto qz0l4; PZrzg: $body = json_encode($parcels); goto aEHe0; f3Egz: WC_Pont::log("Export:	get labels" . " order id: " . implode(", ", $trs) . " response: " . json_encode($resp, JSON_UNESCAPED_UNICODE), "error"); goto lrmvF; DXsdG: if (!(200 != check_response($resp, $order_id))) { goto m1KqE; } goto IWl1N; w9Sj4: GWm_q: goto DfyFV; O1GOj: if (!$trs) { goto xIU4Y; } goto olqSD; hSI2S: bwzfn: goto WU6ri; cJx6C: return get_transient("pont_pcls") && count(get_transient("pont_pcls")); goto cr0U4; qz0l4: $url = "https://" . $csomag->env . ".api.posta.hu/v2/mplapi/shipments/label?" . $query; goto YLnIK; ilyZS: WC_Pont::update_order_status($PrintLabelsInfoList->PrintLabelsInfo->ClientReference); goto w9Sj4; DfyFV: if (!("yes" === get_option("wc_pont_posta_close"))) { goto jxh9g; } goto cJx6C; cr0U4: jxh9g: goto q2b13; ZDagh: return; goto Cagki; Z5jFu: $exp = 0; goto cBay1; DApIi: $csomag->init(); goto IkQ3d; qnUcJ: if (!(200 != check_response($resp, $order_id))) { goto AgEL2; } goto f3Egz; Cagki: YtfHO: goto iESFq; TFNTH: $params = array("timeout" => apply_filters("wc_pont_export_posta_timeout", 10), "httpversion" => "1.1", "body" => $body, "headers" => ["accept" => "application/json", "Content-Type" => "application/json", "X-Request-Id" => get_uuid(), "X-Accounting-Code" => $csomag->acc, "Authorization" => "Bearer " . $csomag->access_token]); goto AepFN; CSfde: foreach ($resp as $r) { goto g42mU; tbOWb: WC_Pont::st_array("pont_pcls", $parcels[$i]->orderId, $r->trackingNumber); goto MDEtM; Vsvov: BzEyc: goto N0Hl7; g42mU: if (!isset($r->errors)) { goto XlWWB; } goto IIY7V; uBxE7: goto BzEyc; goto D2v6I; IIY7V: WC_Pont::st_array("pont_errors", $parcels[$i]->orderId, sprintf("%s. MPL \xc3\241ltal k\xc3\xbcld\xc3\266tt hibak\303\xb3d: %s. Hibale\xc3\xadr\303\241s: %s", __("C\303\255mkenyomtatat\303\xa1si probl\xc3\251ma", "wc-pont"), implode(", ", array_column($r->errors, "code")), implode(", ", array_column($r->errors, "text")))); goto Nbp9m; kWV0l: $i++; goto Vsvov; Nbp9m: $i++; goto uBxE7; MDEtM: $trs[$parcels[$i]->orderId] = $r->trackingNumber; goto kWV0l; D2v6I: XlWWB: goto tbOWb; N0Hl7: } goto ZdBA7; olqSD: $params = array("timeout" => 10, "httpversion" => "1.1", "headers" => ["accept" => "application/json", "Content-Type" => "application/json", "X-Request-Id" => get_uuid(), "X-Accounting-Code" => $csomag->acc, "Authorization" => "Bearer " . $csomag->access_token]); goto O8hHJ; dzHma: $i = 0; goto ChaIy; hgXoL: } goto SIfem; SIfem: function posta_shipments_close($params_body = "{}") { goto onp_M; sk3ZP: $csomag->init(); goto MyUNw; gBzZS: return; goto XIBRo; XIBRo: mtc9G: goto g4Vg2; LTn4U: $resp = wp_remote_post("https://" . $csomag->env . ".api.posta.hu/v2/mplapi/shipments/close", http_build_query($params)); goto Ofug8; urV_P: $csomag = new posta(); goto sk3ZP; HibW6: $filename = date("Ymd-His") . "-sz\303\241ll\303\xadt\xc3\xb3lev\xc3\xa9l.pdf"; goto PIFt6; Ofug8: if (!(200 != check_response($resp, 0))) { goto mtc9G; } goto UT0IK; g4Vg2: $resp = json_decode(wp_remote_retrieve_body($resp)); goto HibW6; MyUNw: $csomag->get_access(); goto seIP3; g6G5w: $pont_pdf2[] = $filename; goto mJ7G1; PIFt6: file_put_contents(trailingslashit(WC_Pont::wc_pont_upload_dir()) . $filename, base64_decode($resp[0]->manifest)); goto g6G5w; UT0IK: WC_Pont::st_array("pont_errors", "Posta", __("Hiba a jegyz\xc3\251k z\303\241r\303\xa1sa sor\303\xa1n", "wc-pont") . ": " . json_encode($resp->errors)); goto gBzZS; onp_M: WC_Pont::log("Posta	close shipments", "info"); goto urV_P; seIP3: $params = array("timeout" => 20, "httpversion" => "1.1", "body" => $params_body, "headers" => ["accept" => "application/json", "Content-Type" => "application/json", "X-Request-Id" => get_uuid(), "X-Accounting-Code" => $csomag->acc, "Authorization" => "Bearer " . $csomag->access_token]); goto LTn4U; mJ7G1: set_transient("pont_pdf2", $pont_pdf2, 5 * MINUTE_IN_SECONDS); goto f7YLK; f7YLK: } goto gLEY7; c1Yzg: if (is_admin()) { goto gAT8G; } goto sJCzu; gLEY7: function get_posta_tracking_info($pn, $order_id) { goto CUCcO; x2xHX: $tracking = (object) ["date" => "Friss\xc3\255tve: " . date("Y-m-d H:i", current_time("timestamp")), "code" => 0, "category" => '', "event" => __("Nincs adat", "wc-pont"), "location" => '']; goto tP4ps; KNK7z: return tracking_data_html($pn, $tracking, "Posta"); goto GpYpB; s1xGf: WC_Pont::log("Posta	sent tracking query: " . json_encode($query, JSON_UNESCAPED_UNICODE), "info"); goto Bd5Dr; qHMns: if (!$tracking) { goto yWd0Y; } goto fgqnD; WCBEv: if (!(200 != $respcode)) { goto JFrGB; } goto NQabW; jVB35: $tracking = (object) ["date" => date("Y-m-d H:i", strtotime($status[0]->c11 . " " . $status[0]->c12)), "code" => array_search($status[0]->c9, WC_Pont::$postaTrCodes), "category" => $status[0]->c43, "event" => $status[0]->c9, "location" => $status[0]->c13 ? $status[0]->c13 : '']; goto rH7fm; I82cf: WC_Pont::log("Posta	tracking response" . " tr: " . $pn . " response: " . json_encode($resp, JSON_UNESCAPED_UNICODE), "info"); goto CUDwX; Vz_PN: $body = ["language" => "hu", "ids" => $pn, "state" => "last"]; goto FhtM3; pc9jV: $respcode = wp_remote_retrieve_response_code($resp); goto WCBEv; u2UER: hIiDz: goto jVB35; FhtM3: $params = array("timeout" => 10, "httpversion" => "1.1", "body" => json_encode($body), "headers" => ["accept" => "application/json", "Content-Type" => "application/json", "X-Request-Id" => get_uuid(), "X-Accounting-Code" => $csomag->acc, "Authorization" => "Bearer " . $csomag->access_token]); goto ICPQO; CUCcO: $tracking = get_transient("pont_tacking_" . $pn); goto qHMns; Kyh2w: $resp = json_decode(wp_remote_retrieve_body($resp)); goto I82cf; SlOs_: if (!empty($status)) { goto hIiDz; } goto x2xHX; orpn_: $time = date("H:i:s", $timeout - time()); goto kQHuS; d5iY7: return tracking_data_html($pn, $tracking, "Posta"); goto u2UER; DzI3b: $csomag->init(); goto aI29t; ICPQO: $query = http_build_query($params); goto s1xGf; aI29t: $csomag->get_access(); goto Vz_PN; aOu66: yWd0Y: goto VsQkq; VsQkq: $csomag = new posta(); goto DzI3b; SMWYG: return array(sprintf("<a class="posta error" target="_blank" title="%s" href="%s" >%s</a>", __("Kapcsol\303\263d\303\xa1si hiba", "wc-pont"), "https://www.posta.hu/nyomkovetes/nyitooldal?searchvalue=" . $pn, __("Nincs adat", "wc-pont"), __("Nincs adat", "wc-pont")), 0); goto k3rLa; tP4ps: set_transient("pont_tacking_" . $pn, $tracking, 15 * MINUTE_IN_SECONDS); goto d5iY7; EFhA8: return tracking_data_html($pn, $tracking, "Tran"); goto aOu66; fgqnD: $timeout = get_option("_transient_timeout_" . "pont_tacking_" . $pn); goto orpn_; rH7fm: set_transient("pont_tacking_" . $pn, $tracking, 1 * HOUR_IN_SECONDS); goto LOKZa; kQHuS: WC_Pont::log("Posta tracking data by transient. Tracking number: " . $pn . "Order id: " . $order_id . " time: " . $time, "info"); goto EFhA8; CUDwX: $status = $resp->trackAndTrace; goto SlOs_; k3rLa: JFrGB: goto Kyh2w; NQabW: WC_Pont::log("Posta	tracking response: " . wc_print_r($resp, true), "error"); goto SMWYG; LOKZa: update_post_meta($order_id, "_tracking_data", $tracking); goto KNK7z; Bd5Dr: $resp = wp_remote_post("https://" . $csomag->env . ".api.posta.hu/v2/nyomkovetes/registered", $query); goto pc9jV; GpYpB: } goto Qugjz; m4XUA: function get_contents($order) { goto hZAPP; mfehv: nMZ9c: goto hxVVR; hxVVR: return $contents; goto pQZXM; mWxiC: foreach ($order->get_items() as $key => $item) { goto B74Yf; algF6: $contents[$key]["qty"] = $item["qty"]; goto qvuQm; jec3a: $contents[$key]["name"] = $product->get_name(); goto psFeF; qvuQm: XQAqD: goto YF979; psFeF: $contents[$key]["sku"] = $product->get_sku(); goto algF6; B74Yf: $product = $item["variation_id"] ? new WC_Product_Variation($item["variation_id"]) : ($product = new WC_Product($item["product_id"])); goto jec3a; YF979: } goto mfehv; hZAPP: $contents = array(); goto mWxiC; pQZXM: } goto MXLO2; sJCzu: return; goto Y6VRx; Y6VRx: gAT8G: goto bCG2m; Qugjz: function tracking_data_html($pn, $tracking, $info) { return array(sprintf("<a class="posta s%s" target="_blank" title="%s" href="%s" data-info="%s">%s</a>", $tracking->category, $tracking->date . " " . $tracking->location, sprintf(WC_Pont::$trk_urls["posta"], $pn), $info, $tracking->event), $tracking->code); } goto qI5y2; bCG2m: class shipments_table extends WP_List_Table { public $parcels = array(); public $pagination = 50; public function prepare_items() { goto hHt81; apQ2F: $this->items = $data; goto gDlt8; fvqmd: $data = array_slice($this->parcels, ($currentPage - 1) * $this->pagination, $this->pagination); goto ovBA9; ovBA9: $this->_column_headers = array($columns, $hidden, $sortable); goto apQ2F; yaabV: $sortable = $this->get_sortable_columns(); goto RBENO; znJbB: $hidden = $this->get_hidden_columns(); goto yaabV; hHt81: $columns = $this->get_columns(); goto znJbB; j8eNO: $this->set_pagination_args(array("total_items" => count($this->parcels), "per_page" => $this->pagination)); goto eB_5u; eB_5u: $currentPage = $this->get_pagenum(); goto fvqmd; RBENO: usort($this->parcels, array(&$this, "sort_data")); goto j8eNO; gDlt8: } public function get_columns() { $columns = array("pn" => __("Ragsz\xc3\xa1m", "wc-pont"), "date" => __("D\303\xa1tum", "wc-pont"), "order_id" => __("Rendel\xc3\251s sz\303\xa1ma", "wc-pont"), "recipient_name" => __("C\303\xadmzett", "wc-pont"), "recipient_contact" => __("El\303\251rhet\305\x91s\303\xa9g", "wc-pont"), "recipient_address" => __("C\xc3\xadm", "wc-pont"), "items" => __("Csomagok", "wc-pont")); return $columns; } public function get_hidden_columns() { return array(); } public function get_sortable_columns() { return array("title" => array("title", false)); } public function column_default($item, $column_name) { goto GxuxI; GxuxI: switch ($column_name) { case "pn": case "date": case "order_id": case "recipient_name": case "recipient_contact": case "recipient_address": case "items": return $item[$column_name]; default: return print_r($item, true); } goto HzKNi; ZYPOa: cyDsz: goto v_9Oo; HzKNi: r4oUm: goto ZYPOa; v_9Oo: } private function sort_data($a, $b) { goto zsQSG; SkiH_: AuW8V: goto k6j7I; k6j7I: $result = strcmp($a[$orderby], $b[$orderby]); goto cvTcf; GpdgV: MEtiL: goto fjzzA; kttKv: $orderby = $_GET["orderby"]; goto y9Oy7; cvTcf: if (!($order === "asc")) { goto MEtiL; } goto cceEt; y9Oy7: ppGgE: goto OFpwu; fjzzA: return -$result; goto Y4Sgb; OFpwu: if (empty($_GET["order"])) { goto AuW8V; } goto t8FvD; cceEt: return $result; goto GpdgV; GkEka: if (empty($_GET["orderby"])) { goto ppGgE; } goto kttKv; zsQSG: $orderby = "date"; goto A6waY; A6waY: $order = "desc"; goto GkEka; t8FvD: $order = $_GET["order"]; goto SkiH_; Y4Sgb: } } ?>

Did this file decode correctly?

Original Code

<?php
/*
 * @version $Id: Pont V7.6 2021-10-23 szathmari.hu $
 * @copyright Copyright (C) 2021 szathmari.hu - All rights reserved.
 * @license commerical
 * @url https://szathmari.hu
*/
 goto UtwY_; UtwY_: class posta { public $acc; public $key; public $secret; public $access_token; public $test; public $parcel; function init() { goto tO0Pc; D1Mz5: WDkQ6: goto ytaMV; ABHQq: $this->acc = get_option("\x77\143\137\x70\x6f\156\x74\x5f\160\x6f\163\x74\x61\137\x61\143\143"); goto D1Mz5; XN6JX: $this->env = get_option("\x77\x63\137\x70\157\x6e\164\137\160\x6f\163\164\141\137\164\145\163\164") === "\x79\x65\x73" ? "\x73\x61\156\x64\x62\157\x78" : "\143\157\x72\145"; goto WEeUo; G76Nv: $this->secret = get_option("\x77\x63\137\160\157\x6e\164\137\x70\x6f\x73\x74\x61\137\x73\145\x63\162\145\164"); goto XN6JX; ytaMV: $this->key = get_option("\x77\x63\137\x70\157\156\164\137\160\157\163\164\x61\137\x6b\x65\x79"); goto G76Nv; tO0Pc: if (empty(get_option("\167\143\137\x70\157\x6e\x74\137\160\157\163\x74\141\137\141\143\143"))) { goto WDkQ6; } goto ABHQq; WEeUo: } function get_access() { goto Ny2jN; NU0sf: cgRTn: goto btdst; LU7Cr: WC_Pont::log("\105\170\x70\157\162\164\72\x9\120\157\163\164\x61\x20\150\x69\142\x61" . "\x20\162\145\163\x70\x6f\x6e\163\x65\72\40" . json_encode($resp, JSON_UNESCAPED_UNICODE), "\x65\162\x72\157\x72"); goto z3JuN; z3JuN: WC_Pont::st_array("\160\157\x6e\164\137\145\162\162\157\x72\x73", "\120\157\163\164\x61", __("\x4b\141\x70\143\x73\157\154\xc3\263\x64\303\241\163\151\x20\x70\x72\157\x62\x6c\xc3\251\x6d\x61", "\x77\x63\55\x70\x6f\156\x74") . "\72\x20" . json_encode($resp->errors)); goto OTb8q; wm_mS: return; goto jd36s; ceIYN: $this->access_token = $token; goto gpxN8; ANpLZ: WC_Pont::log("\x45\x78\x70\x6f\162\164\72\11\120\x6f\x73\164\x61\40\x68\x69\x74\145\x6c\145\163\xc3\xad\164\303\251\x73\x20\163\x69\x6b\145\162\x74\145\x6c\x65\x6e" . "\40\x72\145\163\160\157\x6e\163\145\x3a\40" . $resp["\142\157\144\x79"], "\145\162\162\x6f\162"); goto KVhmF; cOx4l: $params = array("\164\x69\x6d\145\x6f\x75\x74" => 10, "\x68\164\x74\160\x76\145\x72\163\151\157\x6e" => "\x31\x2e\61", "\x62\157\144\x79" => ["\147\162\141\156\x74\137\164\x79\x70\x65" => "\143\154\x69\145\x6e\164\x5f\x63\162\x65\144\x65\156\164\151\141\x6c\163"], "\x41\143\143\145\x70\x74" => "\x61\x70\160\154\x69\143\x61\164\x69\157\156\57\152\x73\x6f\156", "\x43\157\156\x74\x65\x6e\164\55\124\171\160\145" => "\x61\160\x70\154\151\143\x61\164\x69\157\x6e\57\152\x73\x6f\x6e", "\x68\x65\141\x64\x65\x72\163" => ["\101\x75\164\x68\x6f\x72\x69\172\x61\164\x69\x6f\156" => "\x42\141\x73\x69\143\40" . base64_encode($this->key . "\x3a" . $this->secret)]); goto qhp47; Ny2jN: $token = get_transient("\160\157\x6e\x74\x5f\160\157\x73\x74\141\x5f\164\157\x6b\145\156"); goto ErBYg; gpxN8: WC_Pont::log("\120\157\x73\164\141\x9\101\143\x63\145\x73\163\40\x62\171\x20\163\x74\157\162\145\144\x20\x74\157\x6b\x65\x6e", "\151\x6e\146\157"); goto wm_mS; qhp47: $resp = wp_remote_post("\x68\x74\164\x70\163\72\57\x2f" . $this->env . "\x2e\141\x70\x69\56\x70\x6f\x73\164\x61\x2e\150\x75\x2f\157\141\x75\164\150\x32\x2f\x74\x6f\153\145\156", http_build_query($params)); goto aW783; btdst: $resp = json_decode(wp_remote_retrieve_body($resp)); goto l4xuh; pl3Mg: WC_Pont::log("\x45\170\160\157\x72\164\x3a\11\157\141\165\x74\150\62" . "\x20\162\145\163\x70\40\143\157\144\145\x3a\x20" . $respcode . "\40\x72\x65\x73\x70\157\156\x73\x65\72\x20" . json_encode($resp, JSON_UNESCAPED_UNICODE), "\151\156\146\x6f"); goto iGkRV; CW5y8: if (400 <= $respcode) { goto CMoNr; } goto pl3Mg; M3J_8: set_transient("\x70\x6f\x6e\x74\137\x70\x6f\163\x74\x61\x5f\164\157\153\x65\156", $resp->access_token, 15 * MINUTE_IN_SECONDS); goto F0lB_; l4xuh: $this->access_token = $resp->access_token; goto M3J_8; aW783: if (!is_wp_error($resp)) { goto v9mN8; } goto LU7Cr; ErBYg: if (!$token) { goto XhH0P; } goto ceIYN; jd36s: XhH0P: goto cOx4l; psiID: $respcode = wp_remote_retrieve_response_code($resp); goto CW5y8; KVhmF: WC_Pont::st_array("\x70\157\156\164\x5f\x65\162\x72\157\x72\163", "\120\157\x73\164\x61", __("\x48\x69\x74\145\x6c\145\x73\xc3\xad\164\xc3\251\x73\151\40\160\x72\x6f\x62\x6c\xc3\xa9\155\141", "\x77\143\x2d\x70\x6f\156\x74")); goto o0thE; zRzpy: v9mN8: goto psiID; Cmz0d: CMoNr: goto ANpLZ; o0thE: return; goto NU0sf; OTb8q: return false; goto zRzpy; iGkRV: goto cgRTn; goto Cmz0d; F0lB_: } function setDOP($order, $order_id, $pont) { goto c0p0I; WHjOe: fpbih: goto N5xHL; AJxHM: nWNUj: goto BnfUw; eKZtK: $this->parcel->recipient->address->parcelPickupSite = $p[$id]["\x6e\x61\x6d\x65"]; goto Khex6; BnfUw: if (!empty($p)) { goto cRjH0; } goto Vo9KQ; Fk6rf: b9c3w: goto PLHkT; Khex6: return true; goto WHjOe; uV1hD: $pp[] = json_decode(@file_get_contents(WC_Pont::$plugin_path . "\x70\x6f\x73\x74\x61\143\163\x70\x6f\156\164\56\x6a\x73\157\156"), true); goto DuQ1q; Vo9KQ: return false; goto HyEkS; D30k5: $this->parcel->item[0]->services->deliveryMode = $p[$id]["\147\x72\157\165\160"]; goto eKZtK; PLHkT: if (!is_array($p[$id])) { goto fpbih; } goto D30k5; HyEkS: cRjH0: goto MGKkY; MGKkY: $id = array_search($pont[2], array_column($p, "\151\144")); goto wIJjQ; GOq7N: $pp[] = json_decode(@file_get_contents(WC_Pont::$plugin_path . "\x70\x6f\163\164\141\160\x70\x6f\156\164\56\x6a\x73\x6f\x6e"), true); goto uV1hD; wIJjQ: if (!($id === false)) { goto b9c3w; } goto vkJ_F; c0p0I: $pp[] = json_decode(@file_get_contents(WC_Pont::$plugin_path . "\x70\x6f\x73\x74\141\155\x70\157\x6e\164\x2e\152\163\157\156"), true); goto GOq7N; DuQ1q: $p = []; goto IQk_u; IQk_u: foreach ($pp as $t) { goto DTz0E; SpAU3: $p = array_merge($p, $t); goto F312v; e7KQo: Cktud: goto edack; DTz0E: if (!is_array($t)) { goto HnX0w; } goto SpAU3; F312v: HnX0w: goto e7KQo; edack: } goto AJxHM; vkJ_F: return false; goto Fk6rf; N5xHL: } } goto ZERF_; E9yqE: function delete_posta_package($pns) { goto BypVd; BypVd: WC_Pont::log("\x50\x6f\x73\164\141\x9\144\145\x6c\x65\x74\145\40\x73\x68\x69\160\155\145\156\164\163", "\x69\156\x66\157"); goto sUKoR; NaVgJ: $csomag->init(); goto xFL7G; DiTCe: xJioC: goto x3lNV; A7Nyu: $t = []; goto xTdub; x3lNV: return $t; goto f4kka; xTdub: foreach ($pns as $pn) { goto Rcmvx; pxZUZ: $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); goto tmUFp; T0enV: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto K2rsS; Httj9: WC_Pont::log("\x50\x6f\x73\164\x61\11\x64\145\x6c\145\x74\145\x3a\40" . json_encode($result, JSON_UNESCAPED_UNICODE), "\x65\x72\162\157\162"); goto Hurrv; IVI5H: curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); goto qA8Pz; AD30V: $t[$pn] = __("\124\303\266\162\303\266\x6c\x76\145", "\x77\143\55\160\157\156\x74"); goto Ny7ha; Hurrv: TDRC4: goto t5vvm; lRC1D: curl_close($ch); goto ZGl_p; PWJyY: curl_setopt($ch, CURLOPT_HEADER, TRUE); goto IVI5H; Xttkx: curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE); goto PWJyY; Rcmvx: $url = "\150\x74\164\x70\x73\x3a\x2f\x2f" . $csomag->env . "\x2e\141\160\151\x2e\160\x6f\163\164\141\56\x68\x75\x2f\x76\62\x2f\155\x70\154\141\160\151\x2f\163\150\151\160\155\145\156\x74\163\57" . $pn; goto lFz3k; hoVG7: $t[$pn] = __("\110\151\142\x61\x6b\xc3\xb3\x64", "\167\143\55\x70\157\x6e\x74") . "\72\x20" . implode("\x2c\x20", $e); goto Httj9; tmUFp: $body = substr($response, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); goto xqh_Q; K2rsS: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); goto Xttkx; jPXTF: $headers = ["\101\x63\143\x65\160\164\x3a\40\x61\x70\160\x6c\151\x63\141\164\x69\157\x6e\57\152\163\x6f\x6e", "\103\157\x6e\164\x65\156\x74\x2d\x54\171\160\145\x3a\40\x61\x70\x70\154\151\x63\141\164\x69\157\x6e\57\x6a\163\157\x6e\x3b\40\143\150\x61\x72\163\x65\164\75\x75\164\x66\x2d\70", "\130\x2d\122\145\161\x75\145\163\164\x2d\x49\x64\72\40" . get_uuid(), "\130\x2d\x41\143\143\157\x75\x6e\164\x69\156\147\55\103\157\144\145\x3a\x20" . $csomag->acc, "\101\165\x74\x68\x6f\162\x69\x7a\141\x74\151\157\156\x3a\x20\x42\145\141\162\x65\162\40" . $csomag->access_token]; goto Fv0n5; yClSn: goto Kgj7d; goto pEzwy; Fv0n5: $ch = curl_init(); goto lOj50; N8vVx: $t[$pn] = __("\110\x69\x62\141", "\167\143\55\x70\x6f\156\x74") . "\x3a\x20" . $httpcode; goto yClSn; t5vvm: Kgj7d: goto PJM83; PJM83: gRgZT: goto a52gy; oFTBX: if (isset($result->errors)) { goto xLcgg; } goto AD30V; JC9uc: if (200 == $httpcode) { goto RWBH5; } goto N8vVx; qA8Pz: $response = curl_exec($ch); goto pxZUZ; xqh_Q: $result = json_decode($body); goto lRC1D; HKZPH: $e = array_column($result->errors, "\x63\x6f\144\145"); goto hoVG7; pEzwy: RWBH5: goto oFTBX; lFz3k: $params = array("\164\x69\155\x65\x6f\165\x74" => 10, "\x68\x74\164\160\x76\145\x72\163\151\157\156" => "\x31\x2e\61", "\x68\145\141\144\145\x72\x73" => ["\141\143\x63\145\160\x74" => "\141\x70\x70\154\151\143\x61\x74\151\x6f\156\57\152\163\x6f\156", "\x43\x6f\x6e\x74\x65\156\x74\55\124\171\x70\x65" => "\x61\x70\x70\x6c\x69\143\141\x74\151\157\x6e\57\x6a\x73\157\156", "\130\x2d\x52\145\x71\x75\x65\x73\164\55\x49\144" => get_uuid(), "\x58\x2d\x41\143\143\x6f\165\x6e\x74\151\156\x67\55\103\x6f\144\x65" => $csomag->acc, "\101\165\164\x68\x6f\162\151\x7a\x61\164\x69\157\x6e" => "\x42\145\x61\x72\145\162\x20" . $csomag->access_token]); goto jPXTF; z6RRR: xLcgg: goto HKZPH; ZGl_p: WC_Pont::log("\x50\157\163\x74\141\x9\144\x65\154\x65\164\x65\72\x20" . "\40\x54\x52\72\40" . $pn . "\x20\x72\145\163\x75\154\164\x3a\40" . wc_print_r($response, true) . "\40\142\x6f\144\171\72\40" . $body, "\151\x6e\146\x6f"); goto JC9uc; lqJgH: curl_setopt($ch, CURLOPT_URL, $url); goto S3aep; S3aep: curl_setopt($ch, CURLOPT_TIMEOUT, 10); goto T0enV; Ny7ha: goto TDRC4; goto z6RRR; lOj50: curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "\104\105\x4c\105\x54\105"); goto lqJgH; a52gy: } goto DiTCe; xFL7G: $csomag->get_access(); goto A7Nyu; sUKoR: $csomag = new posta(); goto NaVgJ; f4kka: } goto c1Yzg; Ft8km: function check_response($resp, $order_id) { goto TjXo_; oJjpQ: return $respcode; goto rBuQe; ZADDX: WC_Pont::log("\x50\157\163\x74\x61\11\162\x65\x73\160\x6f\156\x73\x65\x3a\40" . json_encode(array($resp), JSON_UNESCAPED_UNICODE), "\145\x72\162\157\x72"); goto dSphf; dSphf: WC_Pont::st_array("\x70\157\156\x74\x5f\x65\x72\x72\157\x72\x73", $order_id, sprintf("\45\x73\x3a\40\45\x73\54\40\x68\151\142\141\154\x65\303\255\162\xc3\241\x73\72\40\45\x73", __("\x48\151\142\x61\x20\164\xc3\266\162\x74\303\251\156\164\56\40\x4d\x50\x4c\x20\xc3\241\x6c\164\141\154\40\x6b\303\274\x6c\x64\xc3\266\x74\x74\x20\x68\151\x62\141\x6b\xc3\xb3\144", "\x77\143\x2d\160\x6f\156\164"), $respcode, wp_remote_retrieve_response_message($resp))); goto JYJ3U; TjXo_: $respcode = wp_remote_retrieve_response_code($resp); goto agYfa; agYfa: if (!(200 != $respcode)) { goto cwdu5; } goto ZADDX; JYJ3U: cwdu5: goto oJjpQ; rBuQe: } goto BND_5; qI5y2: function get_uuid() { goto qxUYH; v5Y9N: return vsprintf("\x25\x73\45\x73\55\x25\x73\55\x25\163\55\45\x73\55\x25\x73\45\163\45\163", str_split(bin2hex($data), 4)); goto mdtZ_; QFrUo: $data[6] = chr(ord($data[6]) & 0xf | 0x40); goto phZid; qxUYH: $data = random_bytes(16); goto QFrUo; phZid: $data[8] = chr(ord($data[8]) & 0x3f | 0x80); goto v5Y9N; mdtZ_: } goto Ft8km; BND_5: function remark_on_label($order, $template, $length = null) { goto Hq1Km; wbcgl: if (!(sizeof($iTemplate) > 0)) { goto PvfcU; } goto LZE6Y; Fjlry: PvfcU: goto lVMjC; QI2A7: return mb_substr($template, 0, $length ?? 40); goto Nf1SY; p0aIr: $order_id = $order->get_order_number(); goto nL0wl; Ut0aX: $iTemplate = array(); goto SqOdL; lVMjC: $template .= "\40" . implode("\x7c", $itemTemplate); goto QI2A7; fox8I: ECRFq: goto wQRHP; aLPmz: foreach ($lItems as $k => $lItem) { goto QyKC0; IWM0C: $iTemplate[] = "\40" . $k . $lItem; goto s1CLQ; dTv1T: $template = str_replace($lItem, "\x20", $template); goto IWM0C; s1CLQ: mAtgn: goto s_W10; s_W10: Eg0g8: goto evgmc; QyKC0: if (!(strpos($template, $lItem) !== false)) { goto mAtgn; } goto dTv1T; evgmc: } goto fox8I; nL0wl: $templateRep = array("\133\155\145\147\152\x65\x67\171\172\xc3\xa9\x73\135" => $customer_message, "\133\303\xba\152\x73\x6f\162\135" => "\xa", "\x5b\162\145\156\x64\x65\x6c\303\251\163\163\172\xc3\xa1\x6d\135" => $order_id); goto zOQJ_; wQRHP: $contents = get_contents($order); goto wbcgl; cavar: $lItems = array("\43" => "\x5b\143\x69\153\x6b\x73\172\xc3\xa1\x6d\x5d", '' => "\x5b\x74\x65\x72\155\303\xa9\153\135", "\x64\142\72\40" => "\133\155\x65\x6e\156\x79\151\163\303\251\147\135"); goto Ut0aX; LZE6Y: foreach ($contents as $content) { $itemTemplate[] = strtr(implode("\x20", $iTemplate), array("\133\x74\145\x72\x6d\xc3\xa9\x6b\x5d" => $content["\x6e\x61\155\145"], "\133\x63\x69\x6b\x6b\x73\172\303\241\155\x5d" => $content["\163\153\x75"], "\x5b\x6d\x65\x6e\156\x79\151\163\303\251\147\135" => $content["\161\x74\x79"])); JSlfM: } goto XY9vp; XY9vp: MmY8S: goto Fjlry; Hq1Km: $customer_message = !empty($order->get_customer_note()) ? $order->get_customer_note() : ''; goto cavar; zOQJ_: $template = strtr($template, $templateRep); goto aLPmz; SqOdL: $itemTemplate = array(); goto p0aIr; Nf1SY: } goto m4XUA; MXLO2: function get_posta_shipments($pn = null) { goto mhui1; RIQvr: foreach ($resp as $r) { goto PrQEe; PrQEe: $packages = null; goto p1I1B; FbeLF: $address = $r->shipment->recipient->address; goto IWV0x; AFZId: RcJg3: goto jpXbF; VaE5x: j69JM: goto FbeLF; F2r4N: $table->parcels[] = array("\x70\x6e" => sprintf("\x25\163\x20\x3c\x61\40\150\x72\x65\146\x3d\x22\45\x73\x22\40\143\x6c\141\x73\x73\x3d\x22\x79\157\x75\x72\55\x63\154\141\163\x73\42\x3e\x25\x73\x3c\x2f\141\76", $r->shipment->trackingNumber, $delete_url, __("\x54\xc3\xb6\x72\xc3\266\x6c", "\x77\143\55\x70\x6f\156\x74")), "\x64\141\x74\145" => date("\x59\55\x6d\x2d\x64\40\x48\x3a\151", strtotime($r->shipment->shipmentDate)), "\x6f\x72\x64\x65\x72\x5f\151\144" => $r->shipment->orderId, "\x72\145\x63\x69\160\151\x65\156\164\x5f\156\x61\155\145" => $r->shipment->recipient->contact->name, "\162\x65\143\x69\x70\x69\145\x6e\164\x5f\x63\x6f\x6e\164\141\143\164" => $r->shipment->recipient->contact->email . "\40" . $r->shipment->recipient->contact->phone, "\162\145\x63\151\x70\151\x65\156\164\137\x61\x64\x64\162\x65\x73\163" => sprintf("\x25\163\x20\45\x73\54\x20\45\x73", $address->postCode, $address->city, $address->address), "\x69\164\145\x6d\163" => $packages); goto AFZId; p1I1B: foreach ($r->shipment->item as $i) { goto LcwZE; JfLnX: $packages = sprintf("\x6d\xc3\251\162\x65\164\x3a\x20\x3c\x62\76\45\x73\74\x2f\x62\76\40\145\x67\x79\xc3\xa9\156\151\40\x31\x3a\40\x3c\142\76\45\163\x3c\57\x62\x3e\x20\x65\x67\x79\xc3\251\156\151\x20\62\72\40\74\142\x3e\45\x73\74\x2f\142\76\40\x75\x74\xc3\241\156\166\303\251\x74\72\x20\x3c\142\76\45\x73\74\x2f\142\76\40\163\x7a\x6f\x6c\147\303\xa1\x6c\x74\x61\164\xc3\xa1\x73\x3a\40\74\142\76\x25\x73\74\x2f\x62\x3e\x20\x65\x78\x74\162\141\72\40\74\142\x3e\45\163\74\x2f\x62\76\40\x6b\xc3\xa9\172\x62\145\x73\xc3\xad\164\303\xa9\x73\x3a\x20\74\142\76\45\x73\74\x2f\142\x3e\40\144\303\255\x6a\x3a\40\74\x62\76\45\163\x3c\57\x62\x3e\40\x75\x74\303\241\x6e\166\xc3\xa9\164\72\40\x3c\142\x3e\x25\163\x3c\x2f\142\76", $i->size, $i->customData1 ?? '', $i->customData2 ?? '', $i->services->cod, $i->services->basic, $extra, $i->services->deliveryMode ?? '', $i->fee ?? "\55", $i->services->cod ?? "\55"); goto CDCZV; LcwZE: $extra = implode("\54\40", $i->services->extra); goto JfLnX; CDCZV: CHuRm: goto wIRn3; wIRn3: } goto VaE5x; IWV0x: $delete_url = wp_nonce_url(add_query_arg(array("\160\x6e" => array($r->shipment->trackingNumber)), admin_url("\x61\x64\155\x69\x6e\56\x70\150\x70\77\160\x61\147\x65\x3d\x70\157\x73\164\x61")), "\x70\157\x73\x74\x61\x70\x61\x67\145", "\137\167\x70\x6e\157\156\143\145"); goto F2r4N; jpXbF: } goto e5Tmv; h7KG3: $respcode = wp_remote_retrieve_response_code($resp); goto iyUer; Y6zHq: $csomag->init(); goto mroYI; GBx4p: NuEuh: goto MlLFp; ZgD3D: $csomag = new posta(); goto Y6zHq; HUTry: $limit = filter_input(INPUT_GET, "\154\151\155\x69\164", FILTER_VALIDATE_INT); goto xJk9T; PTrq0: $resp = wp_remote_get($url, $params); goto h7KG3; LjQr0: return count($resp); goto DXVqr; xJk9T: if (!$limit) { goto ryE_F; } goto Zskeb; PcqQH: return null; goto GBx4p; MSIWk: ryE_F: goto obCma; Zskeb: $table->pagination = $limit; goto MSIWk; iyUer: if (!(200 != $respcode)) { goto NuEuh; } goto EitcT; e5Tmv: pOZ57: goto HUTry; EitcT: WC_Pont::log("\x50\x6f\163\164\141\x9\x72\x65\163\160\x6f\156\x73\145\x3a\40" . json_encode(array($resp), JSON_UNESCAPED_UNICODE), "\145\x72\162\157\x72"); goto PcqQH; MlLFp: $resp = json_decode(wp_remote_retrieve_body($resp)); goto w3xq1; obCma: $table->prepare_items(); goto afpuM; mhui1: WC_Pont::log("\120\157\x73\164\141\x9\147\145\164\40\163\150\x69\x70\x6d\145\x6e\x74\x73", "\151\156\146\157"); goto ZgD3D; mroYI: $csomag->get_access(); goto xlDX6; afpuM: $table->display(); goto LjQr0; pfrYM: $params = array("\164\x69\155\145\x6f\x75\164" => 20, "\150\164\164\x70\166\x65\162\163\151\157\x6e" => "\x31\56\x31", "\x68\145\x61\x64\x65\x72\163" => ["\141\143\143\x65\160\x74" => "\141\x70\160\154\151\143\x61\164\151\x6f\x6e\57\x6a\x73\x6f\x6e", "\103\157\156\x74\x65\156\x74\55\124\x79\160\x65" => "\141\160\x70\154\151\143\x61\164\x69\157\156\x2f\x6a\163\157\156", "\130\x2d\x52\x65\x71\165\145\163\x74\55\x49\x64" => get_uuid(), "\130\55\101\x63\143\x6f\165\x6e\x74\x69\156\x67\x2d\x43\x6f\144\145" => $csomag->acc, "\101\x75\164\150\157\162\x69\x7a\x61\x74\151\x6f\156" => "\102\x65\141\x72\145\162\40" . $csomag->access_token]); goto PTrq0; xlDX6: $url = "\x68\x74\x74\x70\x73\x3a\57\57" . $csomag->env . "\56\x61\160\151\x2e\160\157\x73\x74\x61\56\x68\165\x2f\x76\62\x2f\155\160\154\141\160\151\x2f\163\x68\151\160\x6d\x65\x6e\x74\x73\x2f"; goto pfrYM; w3xq1: $table = new shipments_table(); goto RIQvr; DXVqr: } goto E9yqE; ZERF_: function export_posta($order_ids) { goto uxCII; ChaIy: $trs = []; goto CSfde; H7bIi: $resp = wp_remote_post("\x68\164\x74\x70\163\x3a\x2f\x2f" . $csomag->env . "\x2e\x61\x70\x69\56\160\157\163\164\x61\56\150\165\57\166\x32\57\x6d\160\154\141\160\151\57\x73\150\151\160\x6d\x65\x6e\x74\x73", $query); goto o5DpY; uxCII: $csomag = new posta(); goto DApIi; hh1d3: WC_Pont::st_array("\x70\x6f\x6e\164\x5f\x65\x72\x72\157\x72\x73", $order_id, __("\x43\303\xad\155\153\x65\x6e\171\157\155\x74\x61\x74\x61\x74\303\xa1\163\151\x20\160\162\x6f\x62\x6c\xc3\xa9\x6d\141", "\x77\x63\x2d\x70\157\x6e\x74") . "\x3a\x20" . json_encode($resp)); goto F81bS; g5YnL: xIU4Y: goto PifFg; IWl1N: return; goto kPNts; b_jup: WC_Pont::st_array("\x70\x6f\x6e\x74\137\x65\x72\162\157\x72\163", 0, __("\x43\xc3\255\x6d\x6b\145\x6c\145\x6b\145\154\145\x74\xc3\266\154\x74\xc3\251\x73\151\40\160\162\157\x62\154\xc3\xa9\x6d\x61\x3a", "\167\143\55\x70\x6f\x6e\164") . "\x3a\x20" . json_encode($resp)); goto ZDagh; HF9o9: foreach ($trs as $o_id => $tr) { WC_Pont::st_array("\160\x6f\x6e\x74\137\x70\144\146", $o_id, $filename); xovJX: } goto F2pUq; sKlgk: if (!is_wp_error($resp)) { goto YtfHO; } goto b_jup; O8hHJ: $query = "\x74\x72\x61\x63\153\151\156\x67\116\x75\x6d\142\145\162\163\x3d" . implode("\46\x74\162\x61\x63\x6b\x69\156\x67\x4e\165\155\142\x65\x72\163\x3d", $trs); goto tqxYP; LEeoz: file_put_contents(trailingslashit(WC_Pont::wc_pont_upload_dir()) . $filename, base64_decode($resp[0]->label)); goto HF9o9; F81bS: return; goto hSI2S; SmIji: WC_Pont::log("\x45\x78\x70\157\x72\x74\x3a\x9\x50\141\x72\143\x65\154\40\x70\x72\x69\x6e\164" . "\40\x6f\x72\x64\x65\162\40\x69\144\x3a\x20" . implode("\54\x20", $exported_ids) . "\x20\x72\145\163\x70\157\x6e\x73\x65\x3a\x20" . json_encode($resp, JSON_UNESCAPED_UNICODE), "\x65\162\x72\x6f\x72"); goto hh1d3; Lfyl4: b_I1x: goto HdK0p; IkQ3d: $csomag->get_access(); goto Z5jFu; ZdBA7: H05In: goto O1GOj; tbBRp: WC_Pont::log("\x45\x78\160\157\162\164\x3a\x9\x50\141\162\x63\x65\x6c\x20\160\x72\151\x6e\x74" . "\x20\157\162\144\x65\x72\x20\151\144\x3a\40" . implode("\54\40", $exported_ids) . "\40\x72\x65\163\160\x6f\156\x73\145\72\x20" . json_encode($resp, JSON_UNESCAPED_UNICODE), "\x69\156\x66\x6f"); goto dzHma; kxLsw: foreach ($order_ids as $order_id) { goto wgKNi; Vwwby: $csomag->parcel->item[0] = $item; goto v1GuT; T9eY7: goto ulTla; goto D9knW; SuwdT: if (!$pont) { goto A2Ewc; } goto je5Jm; FqIqh: $csomag->parcel->recipient = $recipient; goto ntfaR; zQMqW: $value = !empty($max_value) && is_numeric($max_value) && $order->get_total() > $max_value ? $max_value : $order->get_total(); goto MEoE4; gorAC: $custom_data1 = remark_on_label($order, $template); goto P2AWt; b622v: WC_Pont::st_array("\x70\x6f\156\164\137\145\x72\162\x6f\162\x73", $order->get_order_number(), sprintf(__("\101\x20\162\x65\156\144\145\154\303\xa9\x73\40\156\145\155\x20\154\145\164\164\40\x65\170\x70\157\162\x74\303\241\154\166\x61\x2c\40\x25\163\x20\155\145\x74\141\x20\141\154\141\x70\152\xc3\241\x6e\40\153\151\x7a\303\241\x72\x76\141", "\x77\143\55\x70\157\x6e\164"), $exclude)); goto AE1v8; Lkb5O: if (!("\143\157\144" === $order->get_payment_method())) { goto ZIPvi; } goto PaU19; oNo4A: $item->services->extra[] = "\113\x5f\125\126\x54"; goto nnLj9; XSS1r: $template = get_option("\167\143\x5f\160\x6f\x6e\164\x5f\160\157\163\164\141\137\162\145\x6d\x61\162\153\x5f\x74\145\155\x70\x6c\x61\x74\x65"); goto agGhK; T5LjC: PME7p: goto mkIsl; Wg_8x: if (empty($template)) { goto cV48v; } goto gorAC; je5Jm: $p = explode("\x7c", $pont); goto p2656; N8xFo: goto ulTla; goto mZbhY; NpPay: $custom_data2 = ''; goto U8Ra1; AnXW8: if (!($exclude && get_post_meta($order_id, $exclude))) { goto yZnrb; } goto b622v; EQXEm: if (!(strpos($sMethod["\155\145\x74\x68\x6f\x64\x5f\151\x64"], "\154\x6f\143\141\154\x5f\160\x69\x63\153\165\x70") !== false)) { goto ydWtq; } goto r8bCa; mYG3M: WC_Pont::log("\105\x78\x70\x6f\x72\164\72\x9\x50\x61\162\x63\145\x6c\x20\x64\157\x6e\x65" . "\40\157\x72\x64\x65\162\40\151\x64\x3a\x20" . $order_id . "\40\x70\x61\162\x63\x65\154\x3a\40" . wc_print_r($csomag->parcel, true), "\151\156\146\x6f"); goto wR98L; mkIsl: $exclude = get_option("\x77\143\x5f\x70\x6f\x6e\x74\x5f\160\157\x73\x74\x61\x5f\145\x78\x63\x6c\165\144\145"); goto AnXW8; JXaNc: VCbJr: goto JlXl5; vJmIW: if (empty($template)) { goto z2oka; } goto Z7qby; acUqu: A2Ewc: goto JL21g; JlXl5: $max_value = get_option("\167\143\137\x70\x6f\x6e\164\137\x70\157\x73\x74\x61\x5f\155\141\170\x5f\x76\x61\x6c\165\x65"); goto zQMqW; l904b: EKjow: goto acUqu; ntfaR: $template = get_option("\167\143\x5f\160\157\x6e\x74\137\x70\157\163\164\x61\137\x63\165\x73\x74\x6f\x6d\x5f\x64\x61\x74\x61\61\137\164\145\x6d\160\x6c\141\x74\x65"); goto EhanR; T0CJa: $recipient = (object) ["\x63\157\156\164\141\143\x74" => (object) ["\x6e\x61\155\145" => trim($order->get_shipping_company() . "\40" . $order->get_shipping_last_name() . "\40" . $order->get_shipping_first_name()), "\x65\155\x61\151\154" => $order->get_billing_email(), "\x70\x68\x6f\156\145" => get_option("\x77\143\137\160\157\156\164\x5f\x70\157\163\x74\x61\137\146\157\x72\x6d\141\x74\x5f\160\x68\x6f\156\145") === "\x79\x65\x73" ? substr(formatPhone($order->get_billing_phone()), 0, 13) : $order->get_billing_phone()], "\141\144\144\162\x65\163\163" => (object) ["\x70\157\163\x74\103\157\144\145" => $order->get_shipping_postcode(), "\x63\151\x74\171" => $order->get_shipping_city(), "\141\144\x64\162\x65\x73\x73" => @$order->get_shipping_address_2() ? $order->get_shipping_address_1() . "\40" . $order->get_shipping_address_2() : $order->get_shipping_address_1(), "\160\141\162\x63\x65\x6c\x50\151\143\x6b\x75\x70\123\151\164\x65" => '', "\162\x65\x6d\x61\162\153" => $remark]]; goto FqIqh; PaU19: $item->services->cod = (float) $order->get_total(); goto oNo4A; S5nOy: $item->size = empty(get_post_meta($order_id, "\160\141\x63\153\x61\x67\145\137\163\151\172\x65")) ? get_option("\167\x63\137\x70\x6f\156\x74\x5f\x70\157\163\x74\141\x5f\x73\x69\x7a\x65", "\x4d") : get_post_meta($order_id, "\x70\x61\143\x6b\141\x67\145\137\163\x69\x7a\x65", true); goto M92c2; ml4dP: if (!(false === $dop)) { goto LHoV9; } goto Zl57Z; GjX5H: if (!($services && is_array($services))) { goto PME7p; } goto rN5Dq; sYCpg: $custom_data2 = remark_on_label($order, $template); goto JXaNc; sn741: $exp++; goto GMbrb; ekQrL: $order = new WC_Order($order_id); goto W9KKz; D9knW: LHoV9: goto l904b; GMbrb: ulTla: goto VKGrE; P2AWt: cV48v: goto TqlBi; Zl57Z: WC_Pont::st_array("\160\157\x6e\x74\137\x65\x72\162\x6f\162\x73", $order->get_order_number(), __("\303\x81\164\x76\145\166\xc5\221\160\157\156\x74\40\x6e\x65\155\40\164\x61\x6c\xc3\241\154\150\141\x74\303\263\x3a", "\167\x63\x2d\160\157\156\x74") . "\x20" . $p[2]); goto T9eY7; W9KKz: $sMethod = $order->get_shipping_methods(); goto dTJx2; r8bCa: WC_Pont::st_array("\160\157\x6e\x74\137\x65\162\x72\157\x72\x73", $order->get_order_number(), __("\x52\145\x6e\x64\x65\x6c\xc3\251\x73\x20\156\x65\155\x20\153\x65\x72\xc3\xbc\x6c\164\x20\x74\x6f\x76\303\241\142\x62\xc3\xad\x74\303\xa1\x73\x72\x61\54\40\x73\172\145\x6d\303\251\154\171\x65\x73\x20\303\241\164\166\xc3\xa9\164\x65\x6c\x6c\145\154\x20\x6b\303\251\x72\x74\x65", "\167\143\55\x70\x6f\156\164")); goto N8xFo; v1GuT: $pont = get_post_meta($order_id, "\167\x63\x5f\163\x65\154\145\x63\164\x65\144\x5f\160\157\156\x74", true); goto SuwdT; sVsF0: goto ulTla; goto p2yzF; wsMgl: WC_Pont::st_array("\160\157\x6e\164\x5f\145\x72\x72\157\162\163", $order->get_order_number(), sprintf(__("\101\x20\162\145\156\x64\x65\154\303\xa9\x73\164\40\45\163\40\163\172\303\241\x6c\154\303\xad\164\303\241\163\x73\x61\x6c\x20\153\xc3\251\x72\x74\145", "\167\143\55\x70\x6f\156\x74"), $p[1])); goto sVsF0; MEoE4: $item = (object) ["\143\165\x73\164\x6f\x6d\x44\141\x74\141\61" => $custom_data1, "\143\x75\x73\x74\x6f\155\104\x61\164\x61\x32" => $custom_data2, "\167\145\151\147\x68\x74" => ["\166\x61\154\165\145" => WC_Pont::get_package_weight($order), "\165\156\151\164" => "\147"], "\x73\x69\x7a\145" => "\115", "\x73\145\x72\x76\151\x63\145\x73" => (object) ["\x62\x61\163\151\x63" => "\101\x5f\x31\x37\65\137\125\x5a\x4c", "\145\x78\164\162\141" => [], "\143\x6f\144" => 0, "\166\141\154\x75\x65" => (float) $value, "\144\145\x6c\151\166\x65\x72\x79\115\x6f\144\145" => "\x48\x41"]]; goto S5nOy; rN5Dq: $item->services->extra = array_merge($item->services->extra, $services); goto T5LjC; wgKNi: $csomag->parcel = (object) ["\163\x65\156\144\145\x72" => ["\141\x67\162\145\145\155\x65\156\x74" => get_option("\x77\143\x5f\160\157\x6e\x74\137\x70\x6f\x73\164\x61\x5f\x61\x67\162\x65\145\x6d\145\156\164"), "\141\143\x63\x6f\x75\156\164\x4e\x6f" => (string) get_option("\167\x63\137\x70\157\156\x74\x5f\160\157\x73\164\x61\x5f\141\x63\x63\157\x75\156\x74\x5f\x6e\x6f"), "\143\x6f\156\x74\x61\143\x74" => ["\156\x61\x6d\145" => get_option("\167\143\x5f\160\x6f\156\x74\137\x70\157\x73\x74\141\137\x73\145\x6e\x64\145\162\137\x6e\x61\155\x65"), "\x65\x6d\141\151\x6c" => get_option("\x77\143\137\160\157\156\164\x5f\160\x6f\163\164\x61\137\x73\x65\x6e\144\x65\x72\x5f\155\x61\x69\154"), "\160\150\157\x6e\x65" => get_option("\x77\143\x5f\160\157\x6e\164\137\160\x6f\163\x74\141\137\x73\145\x6e\x64\145\162\x5f\160\x68\x6f\156\x65")], "\x61\x64\x64\x72\x65\x73\x73" => ["\160\x6f\163\164\103\x6f\x64\x65" => get_option("\x77\x63\137\160\x6f\156\x74\x5f\x70\157\x73\x74\141\x5f\x73\x65\x6e\x64\145\x72\137\x7a\x69\x70"), "\143\x69\164\171" => get_option("\167\x63\x5f\x70\157\156\164\137\x70\x6f\163\x74\141\137\x73\x65\156\144\145\162\137\143\151\164\x79"), "\x61\144\x64\x72\x65\163\x73" => get_option("\167\x63\x5f\160\x6f\x6e\x74\x5f\x70\x6f\163\164\141\x5f\163\145\x6e\144\x65\x72\x5f\141\144\144\x72\145\163\x73"), "\x72\145\155\x61\x72\153" => '']], "\162\145\143\151\160\151\x65\x6e\164" => (object) ["\143\x6f\x6e\164\x61\143\x74" => (object) ["\156\x61\x6d\x65" => '', "\x65\155\141\x69\154" => '', "\160\x68\157\x6e\x65" => ''], "\x61\144\144\x72\x65\x73\163" => (object) ["\160\x6f\x73\164\x43\x6f\144\x65" => '', "\143\x69\x74\x79" => '', "\x61\144\x64\x72\145\x73\x73" => '', "\x70\141\x72\143\145\154\120\151\143\x6b\x75\160\123\151\x74\x65" => '', "\162\145\x6d\x61\x72\153" => ''], "\x64\x69\163\141\142\x6c\x65\144" => false], "\x6f\162\144\x65\x72\111\144" => (string) $order_id, "\x64\145\x76\x65\154\157\x70\x65\x72" => "\x73\172\x61\164\150\155\141\x72\x69\x2e\x68\165", "\167\x65\x62\163\x68\x6f\x70\x49\144" => get_option("\167\x63\x5f\160\157\156\x74\137\x70\157\163\164\141\137\x73\x65\x6e\x64\x65\x72\x5f\156\141\155\x65"), "\154\x61\142\x65\154\x54\x79\160\145" => get_option("\x77\x63\x5f\160\x6f\x6e\164\137\160\157\163\x74\x61\x5f\x6c\x61\142\x65\x6c\x74\171\160\145", "\x41\65"), "\164\141\147" => '', "\x70\141\171\155\x65\156\x74\115\x6f\x64\x65" => get_option("\167\x63\x5f\160\x6f\156\164\x5f\x70\157\163\164\x61\137\160\x61\171\155\x65\x6e\164\x5f\x6d\x6f\144\x65", "\x55\126\x5f\101\124"), "\160\x61\143\x6b\141\x67\145\x52\x65\164\145\156\x74\151\157\156" => (int) get_option("\167\143\x5f\x70\157\156\x74\137\160\x6f\163\x74\x61\x5f\x72\145\164\145\x6e\164\151\x6f\156", "\65"), "\x69\164\145\155" => []]; goto ekQrL; M92c2: $services = get_option("\167\x63\137\x70\157\x6e\x74\137\x70\157\163\x74\141\x5f\163\x65\x72\166\151\x63\145\137\145\x78\x74\162\141"); goto GjX5H; U8Ra1: if (empty($template)) { goto VCbJr; } goto sYCpg; icaio: $dop = $csomag->setDOP($order, $order_id, $p); goto ml4dP; w_P5g: z2oka: goto T0CJa; dTJx2: $sMethod = reset($sMethod); goto EQXEm; wR98L: $parcels[] = $csomag->parcel; goto sn741; p2656: if (strpos($p[1], "\x50\x6f\x73\164\x61") !== false) { goto zq_3M; } goto wsMgl; nnLj9: ZIPvi: goto Vwwby; EhanR: $custom_data1 = ''; goto Wg_8x; p2yzF: goto EKjow; goto JneiR; Z7qby: $remark = remark_on_label($order, $template, 50); goto w_P5g; mZbhY: ydWtq: goto XSS1r; JL21g: do_action("\x77\157\x6f\143\x6f\x6d\x6d\x65\162\143\x65\x5f" . "\167\143\x5f\160\157\156\x74" . "\x5f\145\x78\160\157\x72\164\x5f\160\x6f\x73\164\x61\137\x64\141\164\141", $csomag->parcel, $order); goto mYG3M; h3Ong: yZnrb: goto Lkb5O; JneiR: zq_3M: goto icaio; TqlBi: $template = get_option("\x77\143\137\160\x6f\x6e\164\137\x70\x6f\x73\x74\x61\x5f\143\x75\x73\x74\x6f\x6d\x5f\144\141\164\141\62\x5f\164\145\x6d\x70\x6c\141\164\145"); goto NpPay; AE1v8: goto ulTla; goto h3Ong; agGhK: $remark = ''; goto vJmIW; VKGrE: } goto Lfyl4; AepFN: $query = http_build_query($params); goto H7bIi; aEHe0: WC_Pont::log("\x50\x6f\x73\x74\141\11\x64\141\164\141" . "\40\130\55\101\143\x63\x6f\165\156\x74\x69\156\147\x2d\x43\157\x64\x65\x3a\40" . $csomag->acc . "\x20\163\x65\156\x64\x3a\x20" . json_encode($parcels, JSON_UNESCAPED_UNICODE), "\151\156\146\x6f"); goto TFNTH; ZMXei: $resp = wp_remote_get($url, $params); goto qnUcJ; WU6ri: $resp = json_decode(wp_remote_retrieve_body($resp)); goto tbBRp; TelN0: if (!(get_option("\x77\x63\137\160\157\156\x74\137\x65\170\x70\x6f\162\x74\137\x6d\x6f\x64\x5f\163\164\x61\x74\x75\163") == "\171\x65\163")) { goto GWm_q; } goto ilyZS; X7WDg: posta_shipments_close(); goto zzRl9; iESFq: $resp = json_decode(wp_remote_retrieve_body($resp)); goto hBbUL; PifFg: set_transient("\x70\x6f\x6e\x74\137\143\x61\162\x72\x69\x65\162", "\x70\157\163\x74\x61", 5 * MINUTE_IN_SECONDS); goto TelN0; Kq9JB: if (!is_wp_error($resp)) { goto bwzfn; } goto SmIji; HdK0p: $exported_ids = array_column($parcels, "\x6f\x72\144\x65\x72\x49\x64"); goto PZrzg; kPNts: m1KqE: goto Kq9JB; zzRl9: return count(get_transient("\x70\x6f\x6e\x74\137\160\143\x6c\x73")); goto hgXoL; hBbUL: $filename = date("\131\155\x64\55\x48\x69\x73") . "\56\160\x64\x66"; goto LEeoz; lrmvF: AgEL2: goto sKlgk; F2pUq: TLMdQ: goto g5YnL; q2b13: $body = "\xa\x7b\12\42\x66\162\x6f\x6d\104\x61\164\145\x22\x3a\x20\x22\62\x30\x32\60\x2d\60\67\x2d\x32\x33\x54\x31\62\72\x33\x31\72\60\65\x2e\x38\x35\x31\x5a\42\x2c\12\x22\164\x6f\104\141\x74\x65\x22\x3a\x20\42\x32\60\x32\60\x2d\x30\x37\x2d\x32\63\124\61\x32\x3a\63\x31\x3a\x30\65\x2e\70\x35\61\x5a\x22\x2c\12\x22\x74\162\x61\143\x6b\151\156\x67\116\165\x6d\142\x65\x72\163\42\x3a\x20\x5b\12\x22\120\116\126\x46\x31\x39\x35\61\x36\x31\60\x30\x31\42\xa\135\x2c\12\x22\x63\150\x65\143\153\x4c\x69\163\164\x22\72\x20\164\162\165\145\54\xa\x22\x74\141\147\x22\x3a\x20\42\163\164\x72\151\x6e\147\x22\12\175\xa"; goto X7WDg; cBay1: $parcels = []; goto kxLsw; o5DpY: WC_Pont::log("\120\x6f\x73\x74\x61\x9\x73\145\156\164\40\161\165\x65\x72\171\x3a\x20" . json_encode($query, JSON_UNESCAPED_UNICODE), "\x69\156\x66\157"); goto DXsdG; YLnIK: WC_Pont::log("\105\x78\160\157\x72\x74\72\11\147\x65\x74\40\154\x61\142\x65\x6c\163" . "\40\x74\162\x3a\40" . implode("\x2c\x20", $trs) . "\x20\165\x72\154\72\40" . $url, "\x69\x6e\x66\x6f"); goto ZMXei; tqxYP: $query .= "\46\154\x61\142\x65\x6c\124\x79\x70\145\75" . get_option("\167\x63\137\160\x6f\x6e\164\137\160\157\163\x74\141\137\154\141\142\x65\x6c\x74\x79\x70\145", "\101\x35"); goto qz0l4; PZrzg: $body = json_encode($parcels); goto aEHe0; f3Egz: WC_Pont::log("\105\170\160\157\162\164\72\11\147\x65\x74\40\x6c\x61\x62\145\154\163" . "\40\157\x72\x64\145\x72\x20\x69\144\72\x20" . implode("\54\x20", $trs) . "\x20\162\145\x73\160\x6f\x6e\x73\145\x3a\x20" . json_encode($resp, JSON_UNESCAPED_UNICODE), "\x65\x72\162\157\x72"); goto lrmvF; DXsdG: if (!(200 != check_response($resp, $order_id))) { goto m1KqE; } goto IWl1N; w9Sj4: GWm_q: goto DfyFV; O1GOj: if (!$trs) { goto xIU4Y; } goto olqSD; hSI2S: bwzfn: goto WU6ri; cJx6C: return get_transient("\160\x6f\x6e\x74\137\x70\143\154\163") && count(get_transient("\160\x6f\156\x74\x5f\x70\143\154\x73")); goto cr0U4; qz0l4: $url = "\x68\x74\x74\160\163\x3a\x2f\57" . $csomag->env . "\x2e\x61\160\151\56\160\x6f\x73\x74\x61\56\x68\x75\x2f\x76\62\x2f\155\x70\154\141\x70\x69\57\x73\x68\151\160\x6d\x65\156\x74\163\x2f\154\141\x62\145\x6c\77" . $query; goto YLnIK; ilyZS: WC_Pont::update_order_status($PrintLabelsInfoList->PrintLabelsInfo->ClientReference); goto w9Sj4; DfyFV: if (!("\x79\x65\163" === get_option("\x77\143\x5f\160\x6f\x6e\164\x5f\x70\157\163\164\x61\137\x63\154\157\163\x65"))) { goto jxh9g; } goto cJx6C; cr0U4: jxh9g: goto q2b13; ZDagh: return; goto Cagki; Z5jFu: $exp = 0; goto cBay1; DApIi: $csomag->init(); goto IkQ3d; qnUcJ: if (!(200 != check_response($resp, $order_id))) { goto AgEL2; } goto f3Egz; Cagki: YtfHO: goto iESFq; TFNTH: $params = array("\164\151\155\145\x6f\x75\164" => apply_filters("\x77\x63\137\x70\157\156\x74\137\x65\x78\x70\157\162\164\137\x70\157\x73\164\x61\137\x74\x69\x6d\x65\157\165\x74", 10), "\150\164\164\160\166\145\162\x73\151\157\156" => "\x31\x2e\61", "\142\157\x64\171" => $body, "\150\145\141\x64\x65\162\x73" => ["\141\143\x63\145\160\x74" => "\x61\160\x70\x6c\x69\x63\x61\x74\x69\157\156\57\x6a\x73\157\x6e", "\x43\x6f\156\164\x65\x6e\164\x2d\x54\x79\x70\145" => "\x61\x70\160\154\151\x63\141\x74\x69\x6f\x6e\x2f\152\163\x6f\156", "\130\x2d\122\145\161\165\145\x73\164\55\111\144" => get_uuid(), "\130\x2d\101\x63\x63\157\x75\x6e\164\151\x6e\x67\55\103\x6f\144\145" => $csomag->acc, "\x41\165\x74\x68\157\x72\151\172\141\164\151\157\156" => "\x42\145\x61\162\145\x72\40" . $csomag->access_token]); goto AepFN; CSfde: foreach ($resp as $r) { goto g42mU; tbOWb: WC_Pont::st_array("\x70\x6f\x6e\164\137\160\143\x6c\x73", $parcels[$i]->orderId, $r->trackingNumber); goto MDEtM; Vsvov: BzEyc: goto N0Hl7; g42mU: if (!isset($r->errors)) { goto XlWWB; } goto IIY7V; uBxE7: goto BzEyc; goto D2v6I; IIY7V: WC_Pont::st_array("\x70\x6f\156\x74\x5f\x65\x72\x72\x6f\x72\163", $parcels[$i]->orderId, sprintf("\45\x73\56\40\115\x50\x4c\40\xc3\241\154\164\141\x6c\40\x6b\xc3\xbc\x6c\144\xc3\266\164\164\40\150\151\142\x61\153\303\xb3\x64\x3a\40\45\163\56\x20\110\151\x62\141\154\x65\xc3\xad\x72\303\241\x73\x3a\40\45\163", __("\x43\303\255\155\x6b\x65\156\171\x6f\x6d\164\141\164\x61\164\303\xa1\x73\151\x20\160\x72\157\142\154\xc3\251\x6d\x61", "\x77\x63\x2d\160\157\156\x74"), implode("\x2c\x20", array_column($r->errors, "\143\x6f\144\x65")), implode("\x2c\40", array_column($r->errors, "\x74\x65\170\164")))); goto Nbp9m; kWV0l: $i++; goto Vsvov; Nbp9m: $i++; goto uBxE7; MDEtM: $trs[$parcels[$i]->orderId] = $r->trackingNumber; goto kWV0l; D2v6I: XlWWB: goto tbOWb; N0Hl7: } goto ZdBA7; olqSD: $params = array("\164\x69\x6d\145\x6f\165\164" => 10, "\150\164\x74\160\x76\x65\x72\163\x69\x6f\156" => "\x31\56\61", "\x68\x65\x61\x64\x65\x72\x73" => ["\x61\x63\x63\x65\x70\164" => "\x61\160\160\x6c\151\143\141\x74\151\157\x6e\x2f\152\163\157\156", "\103\x6f\156\164\145\x6e\164\55\124\171\160\145" => "\x61\x70\x70\154\x69\x63\x61\164\x69\x6f\x6e\x2f\152\x73\x6f\156", "\130\55\122\145\161\x75\145\x73\x74\55\x49\144" => get_uuid(), "\130\55\101\143\143\157\x75\x6e\164\x69\156\147\x2d\x43\x6f\x64\145" => $csomag->acc, "\x41\x75\164\150\157\x72\151\172\x61\164\x69\x6f\x6e" => "\102\145\141\x72\145\x72\x20" . $csomag->access_token]); goto O8hHJ; dzHma: $i = 0; goto ChaIy; hgXoL: } goto SIfem; SIfem: function posta_shipments_close($params_body = "\173\175") { goto onp_M; sk3ZP: $csomag->init(); goto MyUNw; gBzZS: return; goto XIBRo; XIBRo: mtc9G: goto g4Vg2; LTn4U: $resp = wp_remote_post("\x68\x74\164\x70\x73\x3a\x2f\57" . $csomag->env . "\x2e\x61\160\x69\x2e\x70\x6f\x73\164\x61\x2e\x68\165\x2f\x76\x32\57\155\160\x6c\141\160\x69\57\163\150\151\x70\155\145\156\x74\163\57\x63\154\x6f\x73\145", http_build_query($params)); goto Ofug8; urV_P: $csomag = new posta(); goto sk3ZP; HibW6: $filename = date("\131\x6d\144\x2d\x48\151\163") . "\x2d\x73\172\303\241\x6c\x6c\303\xad\164\xc3\xb3\x6c\x65\x76\xc3\xa9\154\x2e\x70\x64\146"; goto PIFt6; Ofug8: if (!(200 != check_response($resp, 0))) { goto mtc9G; } goto UT0IK; g4Vg2: $resp = json_decode(wp_remote_retrieve_body($resp)); goto HibW6; MyUNw: $csomag->get_access(); goto seIP3; g6G5w: $pont_pdf2[] = $filename; goto mJ7G1; PIFt6: file_put_contents(trailingslashit(WC_Pont::wc_pont_upload_dir()) . $filename, base64_decode($resp[0]->manifest)); goto g6G5w; UT0IK: WC_Pont::st_array("\x70\x6f\x6e\x74\137\x65\x72\x72\157\162\x73", "\120\157\163\x74\x61", __("\110\x69\x62\141\40\x61\40\152\145\147\x79\x7a\xc3\251\x6b\x20\172\303\241\x72\303\xa1\x73\141\x20\x73\157\162\303\xa1\156", "\x77\143\x2d\x70\x6f\156\x74") . "\72\x20" . json_encode($resp->errors)); goto gBzZS; onp_M: WC_Pont::log("\120\x6f\x73\x74\x61\11\x63\x6c\157\x73\x65\x20\163\150\x69\x70\155\x65\x6e\x74\163", "\x69\156\146\x6f"); goto urV_P; seIP3: $params = array("\x74\151\x6d\x65\x6f\x75\x74" => 20, "\150\164\164\x70\166\145\x72\163\151\x6f\156" => "\61\x2e\61", "\142\x6f\x64\171" => $params_body, "\x68\145\x61\144\145\162\163" => ["\x61\143\x63\145\160\x74" => "\x61\160\x70\154\x69\143\x61\x74\151\157\156\x2f\152\163\x6f\x6e", "\x43\157\156\164\145\x6e\164\x2d\x54\x79\x70\x65" => "\x61\x70\x70\x6c\151\x63\141\x74\x69\x6f\x6e\x2f\x6a\163\x6f\156", "\130\x2d\122\x65\161\165\145\163\164\55\111\144" => get_uuid(), "\x58\55\x41\143\x63\157\x75\156\x74\x69\156\x67\55\x43\x6f\x64\x65" => $csomag->acc, "\101\x75\x74\x68\157\x72\151\172\x61\164\x69\x6f\x6e" => "\102\x65\x61\x72\x65\x72\x20" . $csomag->access_token]); goto LTn4U; mJ7G1: set_transient("\160\157\x6e\164\x5f\x70\144\x66\x32", $pont_pdf2, 5 * MINUTE_IN_SECONDS); goto f7YLK; f7YLK: } goto gLEY7; c1Yzg: if (is_admin()) { goto gAT8G; } goto sJCzu; gLEY7: function get_posta_tracking_info($pn, $order_id) { goto CUCcO; x2xHX: $tracking = (object) ["\144\x61\164\145" => "\x46\162\x69\x73\163\xc3\255\164\166\x65\x3a\x20" . date("\131\55\x6d\55\x64\x20\x48\72\x69", current_time("\164\x69\x6d\x65\163\x74\x61\x6d\160")), "\143\157\144\145" => 0, "\x63\x61\x74\x65\147\157\162\171" => '', "\x65\166\145\156\x74" => __("\x4e\151\x6e\x63\163\40\141\x64\x61\x74", "\x77\143\x2d\x70\157\156\164"), "\x6c\x6f\x63\141\164\x69\157\156" => '']; goto tP4ps; KNK7z: return tracking_data_html($pn, $tracking, "\x50\x6f\163\x74\x61"); goto GpYpB; s1xGf: WC_Pont::log("\x50\157\163\164\x61\11\163\145\156\x74\x20\164\162\x61\143\153\151\x6e\x67\x20\x71\x75\145\162\171\72\40" . json_encode($query, JSON_UNESCAPED_UNICODE), "\x69\156\x66\x6f"); goto Bd5Dr; qHMns: if (!$tracking) { goto yWd0Y; } goto fgqnD; WCBEv: if (!(200 != $respcode)) { goto JFrGB; } goto NQabW; jVB35: $tracking = (object) ["\x64\x61\x74\145" => date("\131\55\x6d\55\x64\40\110\x3a\151", strtotime($status[0]->c11 . "\x20" . $status[0]->c12)), "\x63\157\x64\x65" => array_search($status[0]->c9, WC_Pont::$postaTrCodes), "\x63\x61\164\x65\x67\157\162\x79" => $status[0]->c43, "\145\166\145\x6e\164" => $status[0]->c9, "\154\157\x63\x61\x74\151\157\x6e" => $status[0]->c13 ? $status[0]->c13 : '']; goto rH7fm; I82cf: WC_Pont::log("\120\x6f\x73\x74\141\11\x74\x72\141\143\x6b\151\156\x67\40\162\145\x73\x70\157\156\x73\145" . "\x20\x74\x72\x3a\x20" . $pn . "\40\162\x65\x73\x70\x6f\x6e\x73\x65\72\x20" . json_encode($resp, JSON_UNESCAPED_UNICODE), "\151\x6e\x66\x6f"); goto CUDwX; Vz_PN: $body = ["\154\x61\156\x67\165\141\147\145" => "\x68\165", "\x69\x64\163" => $pn, "\163\x74\141\x74\x65" => "\x6c\x61\x73\x74"]; goto FhtM3; pc9jV: $respcode = wp_remote_retrieve_response_code($resp); goto WCBEv; u2UER: hIiDz: goto jVB35; FhtM3: $params = array("\164\x69\x6d\x65\x6f\x75\164" => 10, "\x68\164\x74\x70\166\145\x72\x73\151\157\156" => "\x31\56\x31", "\142\x6f\x64\x79" => json_encode($body), "\150\145\x61\x64\145\162\163" => ["\x61\x63\143\x65\x70\x74" => "\x61\160\160\154\x69\x63\x61\164\151\x6f\156\x2f\x6a\x73\x6f\x6e", "\103\x6f\156\x74\145\x6e\164\55\x54\x79\x70\x65" => "\x61\160\x70\154\x69\143\x61\164\x69\x6f\156\57\152\x73\157\156", "\x58\x2d\x52\x65\161\165\145\163\164\55\111\x64" => get_uuid(), "\x58\x2d\x41\x63\143\157\165\156\164\151\156\x67\x2d\x43\x6f\x64\x65" => $csomag->acc, "\101\x75\x74\x68\x6f\162\151\x7a\141\x74\x69\157\156" => "\x42\145\141\x72\145\162\x20" . $csomag->access_token]); goto ICPQO; CUCcO: $tracking = get_transient("\160\x6f\x6e\x74\137\164\141\x63\153\151\156\147\137" . $pn); goto qHMns; Kyh2w: $resp = json_decode(wp_remote_retrieve_body($resp)); goto I82cf; SlOs_: if (!empty($status)) { goto hIiDz; } goto x2xHX; orpn_: $time = date("\x48\72\x69\72\163", $timeout - time()); goto kQHuS; d5iY7: return tracking_data_html($pn, $tracking, "\120\x6f\x73\x74\x61"); goto u2UER; DzI3b: $csomag->init(); goto aI29t; ICPQO: $query = http_build_query($params); goto s1xGf; aI29t: $csomag->get_access(); goto Vz_PN; aOu66: yWd0Y: goto VsQkq; VsQkq: $csomag = new posta(); goto DzI3b; SMWYG: return array(sprintf("\x3c\141\40\143\154\141\163\163\x3d\42\x70\x6f\x73\x74\141\x20\x65\x72\162\157\x72\x22\x20\x74\x61\162\x67\145\x74\x3d\42\x5f\x62\x6c\141\156\x6b\42\x20\164\x69\x74\x6c\x65\x3d\x22\45\163\42\40\x68\x72\x65\x66\75\42\45\163\42\40\x3e\45\x73\x3c\x2f\141\76", __("\113\x61\x70\x63\x73\157\154\303\263\144\303\xa1\163\x69\40\x68\x69\x62\141", "\167\143\x2d\x70\x6f\x6e\164"), "\150\164\164\160\163\x3a\x2f\x2f\x77\167\167\56\x70\157\163\164\141\56\x68\x75\57\156\x79\x6f\155\x6b\x6f\166\x65\164\145\163\x2f\x6e\171\151\x74\x6f\x6f\154\x64\x61\x6c\x3f\163\x65\141\x72\x63\150\166\141\x6c\165\x65\75" . $pn, __("\x4e\x69\x6e\x63\x73\40\141\x64\141\x74", "\x77\143\x2d\x70\157\x6e\x74"), __("\x4e\x69\x6e\143\163\40\141\x64\141\164", "\x77\143\55\x70\x6f\156\164")), 0); goto k3rLa; tP4ps: set_transient("\160\157\x6e\x74\137\x74\141\x63\x6b\151\156\147\137" . $pn, $tracking, 15 * MINUTE_IN_SECONDS); goto d5iY7; EFhA8: return tracking_data_html($pn, $tracking, "\124\162\x61\156"); goto aOu66; fgqnD: $timeout = get_option("\137\x74\x72\141\156\163\151\145\156\x74\137\x74\151\x6d\x65\x6f\165\x74\137" . "\160\x6f\156\164\137\x74\x61\x63\153\x69\x6e\147\137" . $pn); goto orpn_; rH7fm: set_transient("\160\157\x6e\x74\x5f\x74\141\x63\153\x69\x6e\x67\x5f" . $pn, $tracking, 1 * HOUR_IN_SECONDS); goto LOKZa; kQHuS: WC_Pont::log("\x50\x6f\x73\x74\141\40\164\x72\x61\x63\153\x69\156\x67\40\144\141\164\x61\40\142\x79\40\x74\162\x61\156\163\151\145\156\164\x2e\x20\x54\162\x61\x63\x6b\x69\156\x67\x20\x6e\x75\155\142\145\162\72\x20" . $pn . "\117\162\144\145\x72\40\151\144\72\x20" . $order_id . "\x20\164\151\155\145\72\40" . $time, "\151\x6e\146\157"); goto EFhA8; CUDwX: $status = $resp->trackAndTrace; goto SlOs_; k3rLa: JFrGB: goto Kyh2w; NQabW: WC_Pont::log("\x50\157\x73\164\x61\11\x74\x72\141\x63\153\x69\x6e\147\40\x72\x65\163\x70\x6f\x6e\x73\x65\x3a\40" . wc_print_r($resp, true), "\x65\x72\162\157\162"); goto SMWYG; LOKZa: update_post_meta($order_id, "\x5f\x74\162\141\x63\x6b\x69\156\147\x5f\x64\141\x74\141", $tracking); goto KNK7z; Bd5Dr: $resp = wp_remote_post("\150\x74\x74\x70\x73\72\x2f\57" . $csomag->env . "\x2e\x61\x70\x69\x2e\160\157\163\164\x61\x2e\x68\165\57\166\62\57\x6e\x79\157\155\x6b\x6f\x76\x65\164\145\163\57\x72\145\147\151\x73\x74\145\x72\x65\x64", $query); goto pc9jV; GpYpB: } goto Qugjz; m4XUA: function get_contents($order) { goto hZAPP; mfehv: nMZ9c: goto hxVVR; hxVVR: return $contents; goto pQZXM; mWxiC: foreach ($order->get_items() as $key => $item) { goto B74Yf; algF6: $contents[$key]["\x71\x74\x79"] = $item["\x71\164\x79"]; goto qvuQm; jec3a: $contents[$key]["\156\x61\x6d\x65"] = $product->get_name(); goto psFeF; qvuQm: XQAqD: goto YF979; psFeF: $contents[$key]["\x73\x6b\165"] = $product->get_sku(); goto algF6; B74Yf: $product = $item["\166\x61\162\x69\141\164\151\x6f\x6e\x5f\x69\x64"] ? new WC_Product_Variation($item["\166\141\162\x69\141\x74\151\x6f\156\137\151\x64"]) : ($product = new WC_Product($item["\x70\162\157\144\x75\143\164\137\x69\144"])); goto jec3a; YF979: } goto mfehv; hZAPP: $contents = array(); goto mWxiC; pQZXM: } goto MXLO2; sJCzu: return; goto Y6VRx; Y6VRx: gAT8G: goto bCG2m; Qugjz: function tracking_data_html($pn, $tracking, $info) { return array(sprintf("\x3c\x61\x20\x63\154\141\163\x73\x3d\42\160\x6f\x73\x74\141\x20\x73\45\x73\x22\40\x74\x61\162\x67\145\x74\75\42\137\x62\154\141\156\x6b\42\x20\164\151\164\154\x65\x3d\42\45\x73\42\x20\150\162\145\146\75\42\x25\163\42\40\144\x61\x74\x61\55\151\x6e\x66\157\75\x22\45\x73\x22\x3e\x25\x73\x3c\x2f\x61\x3e", $tracking->category, $tracking->date . "\x20" . $tracking->location, sprintf(WC_Pont::$trk_urls["\160\x6f\x73\x74\x61"], $pn), $info, $tracking->event), $tracking->code); } goto qI5y2; bCG2m: class shipments_table extends WP_List_Table { public $parcels = array(); public $pagination = 50; public function prepare_items() { goto hHt81; apQ2F: $this->items = $data; goto gDlt8; fvqmd: $data = array_slice($this->parcels, ($currentPage - 1) * $this->pagination, $this->pagination); goto ovBA9; ovBA9: $this->_column_headers = array($columns, $hidden, $sortable); goto apQ2F; yaabV: $sortable = $this->get_sortable_columns(); goto RBENO; znJbB: $hidden = $this->get_hidden_columns(); goto yaabV; hHt81: $columns = $this->get_columns(); goto znJbB; j8eNO: $this->set_pagination_args(array("\164\x6f\x74\x61\x6c\x5f\151\164\x65\x6d\163" => count($this->parcels), "\160\x65\x72\x5f\160\141\147\x65" => $this->pagination)); goto eB_5u; eB_5u: $currentPage = $this->get_pagenum(); goto fvqmd; RBENO: usort($this->parcels, array(&$this, "\163\157\162\x74\x5f\144\141\x74\x61")); goto j8eNO; gDlt8: } public function get_columns() { $columns = array("\160\156" => __("\122\x61\147\x73\172\xc3\xa1\x6d", "\x77\x63\x2d\x70\157\x6e\164"), "\x64\141\164\x65" => __("\104\303\xa1\164\165\155", "\167\x63\55\x70\x6f\x6e\x74"), "\157\162\x64\x65\x72\137\x69\144" => __("\x52\x65\156\144\x65\154\xc3\251\x73\x20\x73\172\303\xa1\x6d\141", "\x77\x63\x2d\160\x6f\x6e\164"), "\162\x65\143\x69\x70\151\x65\156\164\137\x6e\141\155\x65" => __("\103\303\xad\155\x7a\145\x74\x74", "\167\143\55\x70\x6f\x6e\164"), "\x72\x65\143\151\x70\x69\145\156\x74\137\x63\157\x6e\x74\x61\x63\x74" => __("\x45\154\303\251\x72\150\x65\164\305\x91\163\303\xa9\x67", "\x77\143\x2d\160\x6f\x6e\164"), "\x72\x65\x63\x69\160\x69\x65\156\x74\137\141\144\x64\162\145\x73\x73" => __("\x43\xc3\xad\x6d", "\167\143\55\x70\157\156\164"), "\x69\x74\x65\x6d\163" => __("\103\163\157\155\x61\x67\x6f\x6b", "\x77\143\x2d\160\x6f\156\x74")); return $columns; } public function get_hidden_columns() { return array(); } public function get_sortable_columns() { return array("\164\151\164\154\145" => array("\x74\151\x74\x6c\145", false)); } public function column_default($item, $column_name) { goto GxuxI; GxuxI: switch ($column_name) { case "\160\156": case "\144\141\164\x65": case "\157\x72\144\x65\x72\137\151\144": case "\x72\x65\x63\151\x70\x69\x65\x6e\164\x5f\x6e\x61\x6d\x65": case "\162\145\x63\x69\160\x69\x65\x6e\164\137\x63\x6f\156\x74\141\143\164": case "\162\145\x63\151\x70\151\145\x6e\x74\x5f\141\x64\x64\x72\x65\x73\x73": case "\x69\164\145\155\163": return $item[$column_name]; default: return print_r($item, true); } goto HzKNi; ZYPOa: cyDsz: goto v_9Oo; HzKNi: r4oUm: goto ZYPOa; v_9Oo: } private function sort_data($a, $b) { goto zsQSG; SkiH_: AuW8V: goto k6j7I; k6j7I: $result = strcmp($a[$orderby], $b[$orderby]); goto cvTcf; GpdgV: MEtiL: goto fjzzA; kttKv: $orderby = $_GET["\x6f\162\144\x65\x72\x62\171"]; goto y9Oy7; cvTcf: if (!($order === "\x61\163\143")) { goto MEtiL; } goto cceEt; y9Oy7: ppGgE: goto OFpwu; fjzzA: return -$result; goto Y4Sgb; OFpwu: if (empty($_GET["\x6f\162\144\x65\x72"])) { goto AuW8V; } goto t8FvD; cceEt: return $result; goto GpdgV; GkEka: if (empty($_GET["\x6f\x72\144\x65\x72\x62\171"])) { goto ppGgE; } goto kttKv; zsQSG: $orderby = "\x64\x61\x74\x65"; goto A6waY; A6waY: $order = "\x64\145\x73\143"; goto GkEka; t8FvD: $order = $_GET["\x6f\162\144\145\x72"]; goto SkiH_; Y4Sgb: } }

Function Calls

None

Variables

None

Stats

MD5 611d963661351bb5bd6c890f88711899
Eval Count 0
Decode Time 62 ms