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 declare (strict_types=1); namespace OneTeamSoftware\WC\Shipping; use OneTeamSoftwa..

Decoded Output download

<?php 
 declare (strict_types=1); namespace OneTeamSoftware\WC\Shipping; use OneTeamSoftware\Logger\LoggerInterface; use OneTeamSoftware\WP\Admin\Notices\Notices; class AdminOrders { private $id; private $pluginPath; private $settings; private $version; private $notices; private $logger; private $weightUnit; private $dimensionUnit; private $didScriptsEnqueue; public function __construct(string $DayN2, string $V7pLL, LoggerInterface $N4rQ2, array $a1Hgk = [], string $SKjTs = null) { $this->id = $DayN2; $this->pluginPath = $V7pLL; $this->settings = array_merge(["defaultShipmentDescription" => '', "enableBulkShipmentCreation" => "no", "useServiceSettingsForBulkShipmentCreation" => "no", "requireToBulkCreateShipments" => "yes", "requireToBulkPurchasePostage" => "yes", "requireToBulkPurchaseNewPostage" => "no", "enableServices" => "yes", "weight_unit" => "g", "dimension_unit" => "mm"], $a1Hgk); $this->version = $SKjTs; $this->notices = new Notices($this->id . "_admin_orders"); $this->logger = $N4rQ2; $this->weightUnit = $this->settings["weight_unit"]; $this->dimensionUnit = $this->settings["dimension_unit"]; $this->didScriptsEnqueue = false; } public function register() : void { add_filter("bulk_actions-edit-shop_order", [$this, "onAddBulkActions"]); add_filter("manage_shop_order_posts_columns", [$this, "onAddColumns"], 100); add_action("manage_shop_order_posts_custom_column", [$this, "onDisplayColumn"]); add_action("wp_ajax_" . $this->id . "_createShipments", [$this, "onCreateShipments"]); add_action("wp_ajax_" . $this->id . "_buyShipments", [$this, "onBuyShipments"]); add_action("wp_ajax_" . $this->id . "_download", [$this, "onDownload"]); add_action("wp_ajax_" . $this->id . "_updateOrders", [$this, "onUpdateOrders"]); add_action($this->id . "_AdminOrders_displayOrderShipments", [$this, "displayOrderShipments"], 1, 1); } public function setSettings(array $a1Hgk) : void { if (false === empty($a1Hgk)) { $this->settings = array_replace_recursive($this->settings, $a1Hgk); } } public function enqueueScripts(array $a1Hgk = []) : void { if ($this->didScriptsEnqueue) { return; } $this->didScriptsEnqueue = true; $YJLsX = "min.css"; $xoG0l = "min.js"; if (defined("WP_DEBUG") && WP_DEBUG) { $YJLsX = "css"; $xoG0l = "js"; } wp_register_script($this->id . "-labelloaderpage", plugins_url("assets/js/LabelLoaderPage." . $xoG0l, str_replace("phar://", '', $this->pluginPath)), ["jquery", "jquery-blockui"], $this->version); wp_enqueue_script($this->id . "-labelloaderpage"); wp_register_style($this->id . "-adminorders", plugins_url("assets/css/AdminOrders." . $YJLsX, str_replace("phar://", '', $this->pluginPath)), [], $this->version); wp_register_script($this->id . "-adminorders", plugins_url("assets/js/AdminOrders." . $xoG0l, str_replace("phar://", '', $this->pluginPath)), ["jquery", "jquery-blockui"], $this->version); wp_localize_script($this->id . "-adminorders", "adminorders_settings", $a1Hgk); wp_enqueue_script($this->id . "-adminorders"); wp_enqueue_style($this->id . "-adminorders"); } public function onUpdateOrders() : void { $rhNRK = $this->getRequestedOrders(); if (empty($rhNRK)) { exit; } $this->logger->debug(__FILE__, 192, "onUpdateOrders: %s", print_r($rhNRK, true)); foreach ($rhNRK as $hRaip => $UirrU) { do_action($this->id . "_setOrderShipmentMeta", $hRaip, $UirrU); TMNUk: } E5Njm: $Y_322 = apply_filters($this->id . "_getErrorMessages", []); if (empty($Y_322)) { $this->notices->title = __("Order has been updated", $this->id); } else { $this->notices->title = __("Unable to update order", $this->id); } $this->displayNotices(); exit; } public function onAddBulkActions(array $AWg3I) : array { if ($this->settings["enableBulkShipmentCreation"] !== "yes") { return $AWg3I; } if ($this->mustCreateShipments()) { $AWg3I[$this->id . "_createShipments"] = sprintf("%s: %s", apply_filters($this->id . "_getName", ''), __("Create Shipments", $this->id)); } if ($this->mustPurchasePostage()) { $AWg3I[$this->id . "_buyShipments"] = sprintf("%s: %s", apply_filters($this->id . "_getName", ''), __("Buy Shipping Labels", $this->id)); } $AWg3I[$this->id . "_download"] = sprintf("%s: %s", apply_filters($this->id . "_getName", ''), __("Print Shipping Labels and Forms", $this->id)); return $AWg3I; } public function onDownload() : void { $h5zpw = $this->getRequestedOrderIds(); if (empty($h5zpw) || $this->getRequestedAction() !== $this->id . "_download") { return; } $this->logger->debug(__FILE__, 259, "onDownload: %s", print_r($h5zpw, true)); wc_set_time_limit(0); do_action($this->id . "_clearErrorMessages"); $Qd0T2 = true; $C_LWO = []; if ($this->mustPurchasePostage()) { $C_LWO = apply_filters($this->id . "_getOrderShipmentsForOrders", [], $h5zpw); } else { $C_LWO = apply_filters($this->id . "_purchasePostageForOrders", [], $h5zpw, $this->mustCreateShipments(), $this->mustPurchaseNewPostage()); $Qd0T2 = false === empty($C_LWO); } $ZD7wr = []; if ($Qd0T2) { $ZD7wr = apply_filters($this->id . "_createPdfFileForOrderShipments", [], $C_LWO); } if (isset($ZD7wr["url"])) { $this->notices->title = sprintf("%s <a href="%s" target="_blank" class="%s postageLabelsAndForms">%s</a>", __("Shipping labels and forms have been successfully created, ", $this->id), $ZD7wr["url"], $this->id, __("click here to open it", $this->id)); } else { $this->notices->title = __("Unable to download any of the shipping labels or forms", $this->id); } $this->displayNotices(); $this->displayOrderShipments($C_LWO); exit; } public function onBuyShipments() : void { $h5zpw = $this->getRequestedOrderIds(); if (empty($h5zpw) || $this->getRequestedAction() !== $this->id . "_buyShipments") { return; } $this->logger->debug(__FILE__, 316, "onBuyShipments: %s", print_r($h5zpw, true)); wc_set_time_limit(0); do_action($this->id . "_clearErrorMessages"); $C_LWO = apply_filters($this->id . "_purchasePostageForOrders", [], $h5zpw, $this->mustCreateShipments(), $this->mustPurchaseNewPostage()); if (false === empty($C_LWO)) { $this->notices->title = __("Shipments have been successfully purchased", $this->id); } else { $this->notices->title = __("Errors have occurred during purchasing of the shipments", $this->id); } if (count($C_LWO) >= count($h5zpw)) { do_action($this->id . "_clearErrorMessages"); } $this->displayNotices(); $this->displayOrderShipments($C_LWO); exit; } public function onCreateShipments() : void { if (!apply_filters($this->id . "_hasCreateShipmentFeature", false)) { return; } $h5zpw = $this->getRequestedOrderIds(); if (empty($h5zpw) || $this->getRequestedAction() !== $this->id . "_createShipments") { return; } $this->logger->debug(__FILE__, 362, "onCreateShipments: %s", print_r($h5zpw, true)); wc_set_time_limit(0); do_action($this->id . "_clearErrorMessages"); $C_LWO = apply_filters($this->id . "_createShipmentsForOrders", [], $h5zpw); if (false === empty($C_LWO)) { $this->notices->title = __("Shipments have been successfully created", $this->id); } else { $this->notices->title = __("Errors have occurred during creation of the shipments", $this->id); } if (count($C_LWO) >= count($h5zpw)) { do_action($this->id . "_clearErrorMessages"); } $this->displayNotices(); $this->displayOrderShipments($C_LWO); exit; } public function onAddColumns(array $hDOxH) : array { $hDOxH["shipment_tracking"] = __("Shipment Tracking", $this->id); return $hDOxH; } public function onDisplayColumn(string $Uxa1M) : void { if ("shipment_tracking" !== $Uxa1M) { return; } global $post; if (!is_object($post) || !isset($post->ID)) { return; } $hRaip = $post->ID; $a1Hgk = ["id" => $this->id]; $this->enqueueScripts($a1Hgk); $bKPr2 = apply_filters($this->id . "_getOrderShipments", [], $hRaip); if (empty($bKPr2)) { if ("yes" === $this->settings["enableBulkShipmentCreation"]) { $this->displayParcels($hRaip); } } else { $this->displayShipments($hRaip, $bKPr2); } } public function displayOrderShipments(array $C_LWO) : void { foreach ($C_LWO as $hRaip => $bKPr2) { echo sprintf("<div data-order_id="%s" class="orderShipments">", $hRaip); $this->displayShipments($hRaip, $bKPr2); echo "</div>"; TUcDr: } v1vi0: } private function getRequestedAction() : string { $MC6kl = ''; if (false === empty($_REQUEST["action"]) && $_REQUEST["action"] !== -1) { $MC6kl = $_REQUEST["action"]; } elseif (false === empty($_REQUEST["action2"]) && $_REQUEST["action2"] !== -1) { $MC6kl = $_REQUEST["action2"]; } return $MC6kl; } private function getRequestedOrders() : array { if (!wp_verify_nonce($_POST[$this->id . "_nonce"], "bulk-posts")) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = __("Session has expired, please reload page", $this->id); $this->notices->display(); return []; } if (empty($_POST[$this->id . "_orders"]) || !is_array($_POST[$this->id . "_orders"])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = __("Invalid input data", $this->id); $this->notices->display(); return []; } $EszKX = ["length" => __("Length", $this->id), "width" => __("Width", $this->id), "height" => __("Height", $this->id), "weight" => __("Weight", $this->id)]; $KbAl2 = apply_filters($this->id . "_getServices", []); $qlOPL = apply_filters($this->id . "_getPackageTypes", []); $fsbkv = apply_filters($this->id . "_getCurrencies", []); $rhNRK = $_POST[$this->id . "_orders"]; foreach ($rhNRK as $kV7jI) { if (empty($kV7jI["service"]) || empty($KbAl2[$kV7jI["service"]])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = __("Unknown service", $this->id); $this->notices->display(); return []; } if (empty($kV7jI["parcels"]) || !is_array($kV7jI["parcels"])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = __("Unknown parcel information", $this->id); $this->notices->display(); return []; } $JBJhR = $kV7jI["parcels"]; foreach ($JBJhR as $ln0_W) { foreach ($EszKX as $GnxRt => $SNyDW) { if (!isset($ln0_W[$GnxRt]) || !is_numeric($ln0_W[$GnxRt]) || $ln0_W[$GnxRt] < 0) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = sprintf(__("Invalid %s value", $this->id), $SNyDW); $this->notices->display(); return []; } if (empty($ln0_W["type"]) || empty($qlOPL[$ln0_W["type"]])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = __("Unknown parcel type", $this->id); $this->notices->display(); return []; } if (empty($ln0_W["currency"]) || empty($fsbkv[$ln0_W["currency"]])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "error"; $this->notices->title = __("Unknown currency", $this->id); $this->notices->display(); return []; } yn_fx: } G4ZTh: dP_vK: } DrhWM: Cv1xa: } oY072: return $rhNRK; } private function getRequestedOrderIds() : array { if ($this->settings["enableBulkShipmentCreation"] !== "yes") { return []; } if ($this->getRequestedAction() === '' || empty($_REQUEST["post"])) { return []; } if (!wp_verify_nonce($_REQUEST["_wpnonce"], "bulk-posts")) { return []; } return array_map("absint", (array) $_REQUEST["post"]); } private function mustCreateShipments() : bool { $FXrQF = false; if (apply_filters($this->id . "_hasCreateShipmentFeature", false)) { $FXrQF = "yes" === $this->settings["requireToBulkCreateShipments"]; } return $FXrQF; } private function mustPurchasePostage() : bool { return "yes" === $this->settings["requireToBulkPurchasePostage"]; } private function mustPurchaseNewPostage() : bool { return "yes" === $this->settings["requireToBulkPurchaseNewPostage"]; } private function displayNotices() : void { $Y_322 = apply_filters($this->id . "_getErrorMessages", []); if (false === empty($Y_322)) { $this->notices->type = "error"; foreach ($Y_322 as $By3oU) { $this->notices->add($By3oU); lBCuA: } DFj3N: } else { $this->notices->type = "updated"; } $this->notices->displayWithoutNotices = true; $this->notices->display(); } private function displayParcels(int $hRaip) : void { $JBJhR = []; $UirrU = apply_filters($this->id . "_getOrderShipmentMeta", [], $hRaip); if (empty($UirrU["parcels"])) { return; } $q4h_E = $UirrU["service"]; $JBJhR = $UirrU["parcels"]; $qlOPL = apply_filters($this->id . "_getPackageTypes", []); echo sprintf("<div class="%s adminOrders">", $this->id); echo sprintf("<div><strong>%s</strong></div><hr/>", apply_filters($this->id . "_getName", '')); echo "<div>"; echo sprintf("<select type="text" name="%s_orders[%s][service]">", $this->id, $hRaip); $KbAl2 = []; if (empty($q4h_E)) { $KbAl2 = ['' => __("Select a shipping service", $this->id)]; } $KbAl2 = array_merge($KbAl2, apply_filters($this->id . "_getServices", [])); $fUxTT = "yes" === $this->settings["enableServices"]; if (empty($this->settings["services"])) { $fUxTT = true; } foreach ($KbAl2 as $FZV_D => $LdCjB) { if ("yes" === $this->settings["useServiceSettingsForBulkShipmentCreation"]) { $ehZ_Y = ["enabled" => $fUxTT ? "yes" : "no"]; if (false === empty($this->settings["services"][$FZV_D])) { $ehZ_Y = $this->settings["services"][$FZV_D]; } if ($ehZ_Y["enabled"] === "no") { goto ib6gm; } } echo sprintf("<option value="%s" %s>%s</option>", $FZV_D, $FZV_D === $q4h_E ? "selected" : '', apply_filters($this->id . "_service_name", $LdCjB, $FZV_D)); ib6gm: } oabh3: echo "</select>"; echo "</div>"; foreach ($JBJhR as $Wf3B9 => $ln0_W) { $this->displayParcel($hRaip, $Wf3B9, $ln0_W, $KbAl2, $qlOPL); df08y: } keH1S: echo sprintf("<button class="update submit button">%s</button>", __("Update", $this->id)); echo "</div>"; } private function displayParcel(int $hRaip, int $Wf3B9, array $ln0_W, array $KbAl2, array $qlOPL) : void { if (empty($ln0_W)) { return; } if ($Wf3B9 > 0) { echo "<hr/>"; } echo sprintf("<div><strong>%s%s</strong></div>", __("Parcel #", $this->id), $Wf3B9 + 1); echo "<div>"; $LCn3z = $this->settings["defaultShipmentDescription"]; if (false === empty($ln0_W["description"])) { $LCn3z = $ln0_W["description"]; } echo sprintf("<input type="text" class="packageDescription" name="%s_orders[%s][parcels][%s][description]" placeholder="%s" value="%s"/>", $this->id, $hRaip, $Wf3B9, __("Description", $this->id), $LCn3z); echo "</div>"; echo "<div>"; echo sprintf("<select type="text" name="%s_orders[%s][parcels][%s][type]">", $this->id, $hRaip, $Wf3B9); $qlOPL = apply_filters($this->id . "_getPackageTypes", []); $ypZsv = false === empty($ln0_W["type"]) ? $ln0_W["type"] : ''; foreach ($qlOPL as $EArS3 => $dsXCp) { echo sprintf("<option value="%s" %s>%s</option>", $EArS3, $EArS3 === $ypZsv ? "selected" : '', $dsXCp); L5Jdl: } VoxWj: echo "</select>"; echo "</div>"; echo "<div>"; echo sprintf("<input type="text" class="packageLength" name="%s_orders[%s][parcels][%s][length]" value="%s"/>", $this->id, $hRaip, $Wf3B9, $ln0_W["length"]); echo "<span>x</span>"; echo sprintf("<input type="text" class="packageWidth" name="%s_orders[%s][parcels][%s][width]" value="%s"/>", $this->id, $hRaip, $Wf3B9, $ln0_W["width"]); echo "<span>x</span>"; echo sprintf("<input type="text" class="packageHeight" name="%s_orders[%s][parcels][%s][height]" value="%s"/>", $this->id, $hRaip, $Wf3B9, $ln0_W["height"]); echo "<span>" . $this->dimensionUnit . "</span>"; echo sprintf("<input type="text" class="packageWeight" name="%s_orders[%s][parcels][%s][weight]" value="%s"/>", $this->id, $hRaip, $Wf3B9, $ln0_W["weight"]); echo "<span>" . $this->weightUnit . "</span>"; echo "</div>"; echo "<div>"; echo sprintf("<input type="text" class="packageValue" name="%s_orders[%s][parcels][%s][value]" value="%s"/>", $this->id, $hRaip, $Wf3B9, $ln0_W["value"]); echo sprintf("<select type="text" class="packageCurrency" name="%s_orders[%s][parcels][%s][currency]">", $this->id, $hRaip, $Wf3B9); $fsbkv = apply_filters($this->id . "_getCurrencies", []); $qq6jZ = false === empty($ln0_W["currency"]) ? $ln0_W["currency"] : apply_filters($this->id . "_getDefaultCurrency", ''); foreach ($fsbkv as $GnxRt => $xXDkB) { echo sprintf("<option value="%s" %s>%s</option>", $GnxRt, $GnxRt === $qq6jZ ? "selected" : '', $xXDkB); BF9i8: } kG8up: echo "</select>"; echo "</div>"; } private function displayShipments(int $hRaip, array $bKPr2) : void { if (empty($hRaip) || empty($bKPr2) || !is_array($bKPr2)) { return; } echo "<hr/>"; echo sprintf("<div data-order_id="%s" class="%s orderShipments">", $hRaip, $this->id); echo sprintf("<div><strong>%s %s</strong></div>", apply_filters($this->id . "_getName", ''), __("Shipment", $this->id)); foreach ($bKPr2 as $rOeXM => $BUUkK) { $this->displayShipment($hRaip, (string) $rOeXM, $BUUkK); x9DrD: } zLB0I: echo "</div>"; } private function displayShipment(int $hRaip, string $rOeXM, array $BUUkK) : bool { if (empty($BUUkK) || empty($rOeXM)) { return false; } echo sprintf("<div data-order_id="%s" data-shipment_id="%s" class="%s orderShipment">", $hRaip, $rOeXM, $this->id); echo "<hr/>"; $LdCjB = ''; if (false === empty($BUUkK["service"]) && false === empty($BUUkK["rates"][$BUUkK["service"]])) { $zY1lV = $BUUkK["rates"][$BUUkK["service"]]; $LdCjB = $zY1lV["postage_description"]; } elseif (false === empty($BUUkK["service"])) { $KbAl2 = apply_filters($this->id . "_getServices", []); if (false === empty($KbAl2[$BUUkK["service"]])) { $LdCjB = $KbAl2[$BUUkK["service"]]; } } if (false === empty($LdCjB)) { echo sprintf("<strong>%s</strong><br/>", $LdCjB); } do_action($this->id . "_before_admin_shipment_details", $BUUkK); if (false === empty($BUUkK["carrier_tracking_code"]) && false === empty($BUUkK["tracking_url"])) { echo sprintf("<a href="%s" target="_blank">%s</a><br/>", $BUUkK["tracking_url"], $BUUkK["carrier_tracking_code"]); } elseif (false === empty($BUUkK["carrier_tracking_code"])) { echo sprintf("%s<br/>", $BUUkK["carrier_tracking_code"]); } if (false === empty($BUUkK["status_name"])) { echo sprintf("<strong>%s</strong> <span>%s</span><br/>", __("Status:", $this->id), $BUUkK["status_name"]); } $U409Q = ''; if (false === empty($BUUkK["postage_label_png_url"])) { $U409Q .= sprintf("<a href="%s" target="_blank">%s</a>", $BUUkK["postage_label_png_url"], __("PNG", $this->id)); } if (false === empty($BUUkK["postage_label_pdf_url"])) { if (false === empty($U409Q)) { $U409Q .= " | "; } $U409Q .= sprintf("<a href="%s" target="_blank">%s</a>", $BUUkK["postage_label_pdf_url"], __("PDF", $this->id)); } if (empty($U409Q) && false === empty($BUUkK["postage_label"])) { foreach ($BUUkK["postage_label"] as $PzmHF) { if (false === empty($U409Q)) { $U409Q .= " | "; } $U409Q .= sprintf("<a href="%s" target="_blank">%s</a>", $PzmHF["url"], strtoupper($PzmHF["file_type"] ?? $PzmHF["fileType"] ?? "pdf")); G7Ptc: } eVwD9: } if (false === empty($U409Q)) { echo sprintf("<strong>%s</strong> %s<br/>", __("Label:", $this->id), $U409Q); } if (false === empty($BUUkK["forms"])) { echo "<hr/>"; echo sprintf("<strong>%s</strong><br/>", __("Forms:", $this->id)); foreach ($BUUkK["forms"] as $Aw0Qa) { $zQ5Nc = strtoupper(preg_replace("/_/", " ", $Aw0Qa["document_type"] ?? $Aw0Qa["type"])); echo sprintf("- <a href="%s" target="_blank">%s</a><br/>", $Aw0Qa["url"], $zQ5Nc); plEnX: } QWc82: } echo "</div>"; return true; } } 
 ?>

Did this file decode correctly?

Original Code

<?php
 declare (strict_types=1); namespace OneTeamSoftware\WC\Shipping; use OneTeamSoftware\Logger\LoggerInterface; use OneTeamSoftware\WP\Admin\Notices\Notices; class AdminOrders { private $id; private $pluginPath; private $settings; private $version; private $notices; private $logger; private $weightUnit; private $dimensionUnit; private $didScriptsEnqueue; public function __construct(string $DayN2, string $V7pLL, LoggerInterface $N4rQ2, array $a1Hgk = [], string $SKjTs = null) { $this->id = $DayN2; $this->pluginPath = $V7pLL; $this->settings = array_merge(["\144\145\x66\141\165\154\164\123\150\151\160\155\x65\156\164\x44\x65\x73\143\162\151\x70\164\x69\157\156" => '', "\x65\156\141\142\154\145\x42\x75\x6c\153\x53\x68\151\160\x6d\x65\x6e\164\x43\162\145\x61\x74\x69\157\x6e" => "\156\157", "\165\x73\x65\123\145\x72\x76\151\x63\145\123\145\x74\x74\151\x6e\147\x73\106\x6f\x72\x42\x75\x6c\x6b\x53\150\x69\x70\155\145\156\164\103\x72\145\x61\x74\151\x6f\x6e" => "\x6e\x6f", "\x72\x65\x71\x75\x69\x72\x65\x54\x6f\x42\165\154\153\103\162\x65\x61\164\145\123\x68\151\160\155\145\x6e\164\x73" => "\171\145\163", "\x72\x65\161\165\151\162\x65\124\x6f\102\165\154\x6b\120\x75\x72\x63\150\x61\x73\145\120\157\x73\x74\x61\147\x65" => "\x79\145\x73", "\162\145\161\x75\151\x72\x65\x54\x6f\102\165\x6c\x6b\120\165\x72\x63\x68\141\x73\x65\x4e\145\167\120\157\x73\164\x61\x67\x65" => "\x6e\x6f", "\145\x6e\x61\x62\x6c\x65\x53\145\x72\166\x69\x63\145\163" => "\x79\145\163", "\167\145\151\147\x68\164\137\x75\x6e\151\x74" => "\147", "\144\x69\x6d\x65\156\163\151\157\156\137\165\156\151\x74" => "\x6d\x6d"], $a1Hgk); $this->version = $SKjTs; $this->notices = new Notices($this->id . "\x5f\141\144\155\151\x6e\137\x6f\162\144\x65\x72\x73"); $this->logger = $N4rQ2; $this->weightUnit = $this->settings["\167\145\151\147\150\x74\137\165\156\x69\164"]; $this->dimensionUnit = $this->settings["\x64\x69\155\145\156\x73\x69\x6f\156\x5f\x75\156\151\x74"]; $this->didScriptsEnqueue = false; } public function register() : void { add_filter("\142\165\154\x6b\137\141\143\164\x69\157\x6e\163\55\x65\144\x69\164\x2d\x73\150\x6f\x70\x5f\x6f\x72\x64\x65\162", [$this, "\157\156\101\x64\144\102\165\x6c\x6b\x41\143\164\151\157\156\x73"]); add_filter("\155\141\x6e\x61\147\145\x5f\163\150\x6f\x70\137\x6f\x72\x64\x65\162\137\160\157\x73\x74\x73\137\143\x6f\x6c\x75\x6d\156\x73", [$this, "\157\x6e\101\x64\x64\x43\157\154\x75\155\156\x73"], 100); add_action("\155\x61\x6e\x61\x67\145\x5f\x73\x68\157\160\137\157\162\x64\x65\x72\x5f\160\x6f\x73\x74\x73\137\x63\x75\163\x74\x6f\155\x5f\143\x6f\154\165\x6d\x6e", [$this, "\x6f\x6e\x44\151\163\x70\x6c\x61\171\x43\x6f\x6c\165\155\x6e"]); add_action("\167\160\x5f\x61\152\141\x78\x5f" . $this->id . "\137\x63\x72\145\141\164\145\123\150\151\x70\155\145\x6e\x74\163", [$this, "\157\156\x43\162\145\141\164\x65\x53\150\x69\x70\155\145\x6e\164\x73"]); add_action("\167\160\x5f\x61\x6a\141\x78\137" . $this->id . "\x5f\x62\165\171\123\150\151\160\x6d\x65\x6e\164\163", [$this, "\157\x6e\x42\x75\x79\123\150\151\160\155\x65\156\164\163"]); add_action("\x77\160\137\141\152\141\x78\137" . $this->id . "\x5f\x64\x6f\x77\x6e\154\x6f\x61\x64", [$this, "\x6f\x6e\104\x6f\167\156\x6c\x6f\141\144"]); add_action("\x77\x70\x5f\x61\152\x61\170\x5f" . $this->id . "\137\165\160\144\x61\x74\145\117\x72\x64\x65\162\163", [$this, "\x6f\x6e\x55\160\144\141\164\x65\x4f\x72\144\x65\x72\163"]); add_action($this->id . "\137\101\x64\155\x69\x6e\x4f\x72\x64\145\x72\163\137\x64\151\x73\x70\x6c\x61\171\x4f\x72\144\145\162\123\150\151\x70\x6d\145\156\164\163", [$this, "\x64\151\x73\160\154\x61\171\117\162\x64\x65\162\123\x68\x69\x70\x6d\145\156\x74\x73"], 1, 1); } public function setSettings(array $a1Hgk) : void { if (false === empty($a1Hgk)) { $this->settings = array_replace_recursive($this->settings, $a1Hgk); } } public function enqueueScripts(array $a1Hgk = []) : void { if ($this->didScriptsEnqueue) { return; } $this->didScriptsEnqueue = true; $YJLsX = "\x6d\x69\x6e\56\143\163\163"; $xoG0l = "\155\x69\x6e\56\x6a\163"; if (defined("\127\x50\x5f\x44\x45\102\x55\x47") && WP_DEBUG) { $YJLsX = "\143\x73\x73"; $xoG0l = "\152\x73"; } wp_register_script($this->id . "\55\154\141\142\145\154\x6c\157\141\x64\145\x72\160\x61\147\145", plugins_url("\x61\163\x73\x65\x74\x73\57\152\163\57\114\141\142\145\x6c\114\157\141\144\x65\x72\x50\x61\147\145\x2e" . $xoG0l, str_replace("\160\x68\x61\x72\72\57\x2f", '', $this->pluginPath)), ["\152\161\x75\145\x72\171", "\152\x71\165\145\162\x79\x2d\142\x6c\157\x63\153\165\x69"], $this->version); wp_enqueue_script($this->id . "\55\x6c\x61\x62\145\154\x6c\157\x61\x64\x65\162\160\x61\x67\x65"); wp_register_style($this->id . "\x2d\141\144\155\x69\156\157\162\144\145\x72\x73", plugins_url("\x61\x73\x73\145\164\163\x2f\143\163\x73\x2f\x41\144\x6d\151\x6e\x4f\162\144\145\x72\x73\56" . $YJLsX, str_replace("\160\150\x61\x72\72\57\57", '', $this->pluginPath)), [], $this->version); wp_register_script($this->id . "\x2d\x61\x64\x6d\x69\156\157\x72\x64\x65\162\163", plugins_url("\141\x73\163\x65\x74\163\57\x6a\163\57\101\x64\x6d\x69\x6e\x4f\162\x64\x65\162\x73\x2e" . $xoG0l, str_replace("\x70\x68\141\162\x3a\x2f\57", '', $this->pluginPath)), ["\x6a\161\x75\x65\x72\171", "\x6a\161\x75\x65\x72\171\55\142\154\157\x63\153\165\151"], $this->version); wp_localize_script($this->id . "\55\141\x64\x6d\151\156\x6f\x72\144\x65\x72\x73", "\x61\144\155\151\156\157\x72\144\145\162\163\x5f\163\x65\x74\164\x69\x6e\x67\163", $a1Hgk); wp_enqueue_script($this->id . "\55\141\144\x6d\151\x6e\157\162\144\x65\162\x73"); wp_enqueue_style($this->id . "\x2d\141\x64\x6d\151\156\157\162\x64\145\162\x73"); } public function onUpdateOrders() : void { $rhNRK = $this->getRequestedOrders(); if (empty($rhNRK)) { exit; } $this->logger->debug(__FILE__, 192, "\157\x6e\x55\x70\x64\x61\164\x65\x4f\x72\x64\145\x72\163\x3a\40\45\x73", print_r($rhNRK, true)); foreach ($rhNRK as $hRaip => $UirrU) { do_action($this->id . "\x5f\x73\x65\164\117\x72\144\145\162\x53\150\151\x70\155\145\156\x74\115\x65\x74\x61", $hRaip, $UirrU); TMNUk: } E5Njm: $Y_322 = apply_filters($this->id . "\137\147\x65\x74\x45\162\x72\x6f\162\115\x65\163\x73\141\x67\x65\x73", []); if (empty($Y_322)) { $this->notices->title = __("\x4f\162\144\x65\162\40\150\x61\163\40\142\x65\x65\156\40\x75\160\x64\141\164\x65\144", $this->id); } else { $this->notices->title = __("\125\x6e\141\142\154\145\40\164\157\40\165\x70\144\141\x74\145\x20\x6f\162\x64\145\x72", $this->id); } $this->displayNotices(); exit; } public function onAddBulkActions(array $AWg3I) : array { if ($this->settings["\145\156\x61\x62\154\145\102\x75\154\153\123\150\151\x70\x6d\x65\156\164\103\x72\x65\x61\164\151\157\x6e"] !== "\x79\145\x73") { return $AWg3I; } if ($this->mustCreateShipments()) { $AWg3I[$this->id . "\137\143\x72\145\141\x74\145\x53\x68\x69\x70\x6d\x65\156\164\x73"] = sprintf("\45\x73\x3a\40\x25\163", apply_filters($this->id . "\137\x67\145\x74\116\141\155\x65", ''), __("\103\162\145\x61\x74\145\40\123\x68\x69\160\155\145\x6e\x74\163", $this->id)); } if ($this->mustPurchasePostage()) { $AWg3I[$this->id . "\137\x62\x75\x79\x53\x68\151\160\155\x65\x6e\x74\x73"] = sprintf("\45\163\x3a\40\x25\x73", apply_filters($this->id . "\137\x67\x65\164\116\x61\x6d\145", ''), __("\x42\165\x79\x20\123\x68\x69\x70\x70\151\x6e\147\40\114\141\142\x65\154\x73", $this->id)); } $AWg3I[$this->id . "\137\x64\x6f\x77\x6e\x6c\157\141\x64"] = sprintf("\45\163\x3a\40\45\163", apply_filters($this->id . "\x5f\x67\x65\x74\x4e\x61\x6d\145", ''), __("\120\162\x69\x6e\164\40\x53\150\151\160\x70\151\156\147\x20\x4c\x61\x62\145\154\163\x20\141\x6e\144\40\x46\157\x72\155\x73", $this->id)); return $AWg3I; } public function onDownload() : void { $h5zpw = $this->getRequestedOrderIds(); if (empty($h5zpw) || $this->getRequestedAction() !== $this->id . "\x5f\144\157\167\x6e\154\157\141\144") { return; } $this->logger->debug(__FILE__, 259, "\x6f\x6e\x44\x6f\x77\156\x6c\157\x61\144\72\40\45\x73", print_r($h5zpw, true)); wc_set_time_limit(0); do_action($this->id . "\137\143\x6c\145\x61\x72\105\x72\x72\x6f\x72\x4d\x65\163\x73\x61\x67\145\163"); $Qd0T2 = true; $C_LWO = []; if ($this->mustPurchasePostage()) { $C_LWO = apply_filters($this->id . "\137\x67\x65\x74\x4f\x72\144\x65\x72\123\150\x69\160\155\x65\x6e\x74\163\106\x6f\x72\117\162\144\x65\x72\163", [], $h5zpw); } else { $C_LWO = apply_filters($this->id . "\x5f\160\165\162\143\x68\x61\x73\x65\x50\157\x73\164\x61\x67\x65\106\x6f\162\117\162\144\x65\162\x73", [], $h5zpw, $this->mustCreateShipments(), $this->mustPurchaseNewPostage()); $Qd0T2 = false === empty($C_LWO); } $ZD7wr = []; if ($Qd0T2) { $ZD7wr = apply_filters($this->id . "\137\x63\162\x65\x61\164\145\x50\144\x66\106\x69\x6c\145\106\x6f\162\x4f\162\x64\145\162\x53\150\x69\160\x6d\145\x6e\164\x73", [], $C_LWO); } if (isset($ZD7wr["\x75\162\x6c"])) { $this->notices->title = sprintf("\x25\x73\x20\74\141\x20\x68\162\x65\146\75\42\45\163\x22\x20\164\141\162\x67\145\164\x3d\42\x5f\142\154\x61\x6e\153\42\x20\x63\x6c\141\x73\x73\x3d\x22\x25\163\x20\160\x6f\x73\164\x61\147\x65\114\x61\x62\145\x6c\x73\101\x6e\144\106\x6f\x72\x6d\163\42\x3e\45\x73\74\57\141\76", __("\x53\150\x69\160\x70\x69\x6e\147\x20\x6c\x61\x62\145\154\163\40\x61\x6e\x64\40\x66\x6f\162\155\163\x20\x68\141\166\145\x20\x62\145\145\x6e\40\x73\165\143\143\145\x73\163\x66\x75\x6c\x6c\x79\x20\143\x72\145\141\164\x65\144\x2c\40", $this->id), $ZD7wr["\165\162\154"], $this->id, __("\x63\154\x69\143\153\x20\150\x65\x72\145\40\x74\157\x20\157\x70\x65\156\40\151\x74", $this->id)); } else { $this->notices->title = __("\x55\x6e\141\x62\154\x65\40\x74\157\40\x64\x6f\x77\156\x6c\157\141\x64\x20\141\156\x79\40\x6f\146\40\164\x68\145\x20\163\150\x69\x70\x70\x69\156\x67\40\154\x61\142\145\154\163\40\x6f\162\40\x66\x6f\162\155\163", $this->id); } $this->displayNotices(); $this->displayOrderShipments($C_LWO); exit; } public function onBuyShipments() : void { $h5zpw = $this->getRequestedOrderIds(); if (empty($h5zpw) || $this->getRequestedAction() !== $this->id . "\137\142\165\x79\123\150\151\x70\x6d\x65\x6e\x74\x73") { return; } $this->logger->debug(__FILE__, 316, "\157\156\x42\165\x79\123\150\151\160\155\145\156\x74\x73\72\40\45\x73", print_r($h5zpw, true)); wc_set_time_limit(0); do_action($this->id . "\x5f\x63\154\145\x61\x72\105\162\162\x6f\x72\115\145\163\163\141\147\x65\163"); $C_LWO = apply_filters($this->id . "\137\x70\165\x72\x63\x68\141\163\145\120\157\x73\x74\141\147\x65\x46\x6f\x72\x4f\x72\144\x65\x72\x73", [], $h5zpw, $this->mustCreateShipments(), $this->mustPurchaseNewPostage()); if (false === empty($C_LWO)) { $this->notices->title = __("\x53\150\151\160\x6d\145\156\164\163\40\150\141\x76\145\x20\x62\145\145\x6e\x20\163\x75\x63\143\145\163\163\x66\165\x6c\154\x79\x20\x70\x75\162\143\150\x61\x73\145\x64", $this->id); } else { $this->notices->title = __("\105\x72\x72\x6f\x72\x73\40\150\x61\166\145\40\x6f\x63\143\x75\x72\162\x65\144\x20\x64\165\162\151\x6e\147\40\160\x75\162\143\150\141\x73\151\156\147\x20\x6f\x66\x20\x74\150\x65\x20\163\x68\151\160\155\145\x6e\x74\163", $this->id); } if (count($C_LWO) >= count($h5zpw)) { do_action($this->id . "\137\143\154\x65\x61\162\x45\x72\162\157\162\115\x65\x73\163\x61\x67\x65\163"); } $this->displayNotices(); $this->displayOrderShipments($C_LWO); exit; } public function onCreateShipments() : void { if (!apply_filters($this->id . "\x5f\150\x61\x73\x43\162\x65\141\164\145\x53\150\x69\160\155\x65\x6e\164\x46\145\x61\164\165\x72\x65", false)) { return; } $h5zpw = $this->getRequestedOrderIds(); if (empty($h5zpw) || $this->getRequestedAction() !== $this->id . "\137\143\162\145\x61\x74\x65\x53\150\151\160\155\145\x6e\164\x73") { return; } $this->logger->debug(__FILE__, 362, "\x6f\156\x43\x72\145\x61\164\145\123\150\151\x70\155\x65\156\x74\163\72\x20\x25\163", print_r($h5zpw, true)); wc_set_time_limit(0); do_action($this->id . "\137\x63\x6c\x65\141\162\x45\x72\162\x6f\x72\x4d\145\x73\163\x61\147\x65\163"); $C_LWO = apply_filters($this->id . "\137\x63\162\x65\141\164\x65\123\150\151\160\x6d\145\x6e\x74\163\x46\x6f\162\117\162\x64\145\162\163", [], $h5zpw); if (false === empty($C_LWO)) { $this->notices->title = __("\x53\x68\151\160\x6d\145\x6e\164\x73\40\x68\141\x76\x65\40\x62\145\x65\156\x20\x73\x75\143\x63\145\163\163\146\165\154\x6c\171\40\x63\x72\145\x61\x74\x65\144", $this->id); } else { $this->notices->title = __("\x45\162\162\157\162\x73\40\150\x61\x76\x65\x20\x6f\143\143\165\x72\x72\x65\x64\40\x64\165\x72\151\x6e\x67\40\x63\162\145\x61\x74\x69\157\156\40\157\146\40\x74\x68\x65\x20\163\150\x69\160\x6d\145\x6e\x74\163", $this->id); } if (count($C_LWO) >= count($h5zpw)) { do_action($this->id . "\x5f\143\154\x65\x61\x72\x45\162\x72\x6f\x72\115\x65\163\x73\x61\147\145\x73"); } $this->displayNotices(); $this->displayOrderShipments($C_LWO); exit; } public function onAddColumns(array $hDOxH) : array { $hDOxH["\x73\x68\151\160\155\x65\x6e\x74\137\164\162\141\x63\x6b\x69\x6e\x67"] = __("\123\150\x69\160\155\145\x6e\164\x20\124\x72\x61\143\153\151\156\x67", $this->id); return $hDOxH; } public function onDisplayColumn(string $Uxa1M) : void { if ("\x73\150\x69\x70\155\x65\156\x74\137\164\162\141\x63\x6b\x69\x6e\x67" !== $Uxa1M) { return; } global $post; if (!is_object($post) || !isset($post->ID)) { return; } $hRaip = $post->ID; $a1Hgk = ["\151\144" => $this->id]; $this->enqueueScripts($a1Hgk); $bKPr2 = apply_filters($this->id . "\x5f\x67\145\x74\117\x72\x64\x65\162\x53\x68\x69\x70\x6d\145\x6e\x74\163", [], $hRaip); if (empty($bKPr2)) { if ("\x79\145\x73" === $this->settings["\145\x6e\141\142\154\145\102\165\x6c\x6b\123\x68\151\x70\155\145\x6e\x74\x43\x72\x65\x61\x74\x69\x6f\x6e"]) { $this->displayParcels($hRaip); } } else { $this->displayShipments($hRaip, $bKPr2); } } public function displayOrderShipments(array $C_LWO) : void { foreach ($C_LWO as $hRaip => $bKPr2) { echo sprintf("\x3c\x64\151\x76\40\x64\141\164\x61\x2d\x6f\x72\144\145\x72\x5f\x69\144\x3d\x22\x25\163\42\40\x63\154\x61\x73\x73\x3d\x22\x6f\x72\x64\145\x72\x53\150\x69\x70\x6d\145\x6e\x74\x73\x22\76", $hRaip); $this->displayShipments($hRaip, $bKPr2); echo "\x3c\x2f\144\151\x76\76"; TUcDr: } v1vi0: } private function getRequestedAction() : string { $MC6kl = ''; if (false === empty($_REQUEST["\x61\x63\164\151\157\x6e"]) && $_REQUEST["\141\143\164\151\x6f\156"] !== -1) { $MC6kl = $_REQUEST["\141\143\x74\151\157\x6e"]; } elseif (false === empty($_REQUEST["\x61\143\164\x69\157\156\x32"]) && $_REQUEST["\x61\143\x74\151\157\156\62"] !== -1) { $MC6kl = $_REQUEST["\x61\143\164\x69\157\x6e\x32"]; } return $MC6kl; } private function getRequestedOrders() : array { if (!wp_verify_nonce($_POST[$this->id . "\x5f\156\157\156\143\x65"], "\142\x75\x6c\153\55\x70\157\163\164\x73")) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\x65\x72\162\157\162"; $this->notices->title = __("\x53\145\x73\x73\x69\157\x6e\x20\150\x61\163\x20\145\x78\x70\x69\162\145\x64\54\40\160\154\145\x61\x73\145\x20\x72\145\154\157\141\x64\40\x70\141\x67\145", $this->id); $this->notices->display(); return []; } if (empty($_POST[$this->id . "\137\157\162\x64\145\x72\163"]) || !is_array($_POST[$this->id . "\x5f\x6f\x72\x64\145\x72\163"])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\145\162\x72\x6f\x72"; $this->notices->title = __("\111\156\166\x61\x6c\x69\144\x20\151\x6e\x70\x75\164\40\x64\x61\x74\x61", $this->id); $this->notices->display(); return []; } $EszKX = ["\154\145\x6e\x67\x74\150" => __("\x4c\145\156\147\164\150", $this->id), "\167\151\x64\164\150" => __("\x57\x69\x64\x74\150", $this->id), "\x68\x65\x69\147\x68\164" => __("\110\145\x69\147\150\x74", $this->id), "\167\145\151\147\150\164" => __("\127\x65\151\147\x68\164", $this->id)]; $KbAl2 = apply_filters($this->id . "\x5f\147\x65\164\x53\145\162\x76\x69\x63\x65\163", []); $qlOPL = apply_filters($this->id . "\x5f\147\x65\x74\120\x61\143\x6b\141\147\x65\124\x79\160\145\x73", []); $fsbkv = apply_filters($this->id . "\x5f\147\x65\x74\103\x75\162\162\145\156\143\x69\x65\163", []); $rhNRK = $_POST[$this->id . "\137\157\x72\144\145\x72\163"]; foreach ($rhNRK as $kV7jI) { if (empty($kV7jI["\163\x65\x72\166\151\143\x65"]) || empty($KbAl2[$kV7jI["\163\x65\x72\166\x69\x63\x65"]])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\x65\162\x72\x6f\x72"; $this->notices->title = __("\125\156\153\x6e\x6f\x77\156\x20\x73\145\162\166\151\143\145", $this->id); $this->notices->display(); return []; } if (empty($kV7jI["\x70\141\162\x63\145\x6c\163"]) || !is_array($kV7jI["\x70\x61\x72\x63\145\x6c\163"])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\x65\162\x72\157\x72"; $this->notices->title = __("\x55\x6e\153\x6e\x6f\167\156\40\160\141\x72\143\145\x6c\x20\151\x6e\146\157\162\x6d\141\x74\x69\x6f\156", $this->id); $this->notices->display(); return []; } $JBJhR = $kV7jI["\x70\x61\162\143\145\x6c\163"]; foreach ($JBJhR as $ln0_W) { foreach ($EszKX as $GnxRt => $SNyDW) { if (!isset($ln0_W[$GnxRt]) || !is_numeric($ln0_W[$GnxRt]) || $ln0_W[$GnxRt] < 0) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\x65\x72\162\x6f\162"; $this->notices->title = sprintf(__("\111\x6e\x76\141\x6c\151\144\40\45\163\40\x76\141\x6c\165\145", $this->id), $SNyDW); $this->notices->display(); return []; } if (empty($ln0_W["\164\171\160\145"]) || empty($qlOPL[$ln0_W["\x74\171\160\x65"]])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\145\162\162\157\162"; $this->notices->title = __("\125\156\x6b\x6e\x6f\x77\x6e\x20\x70\x61\162\x63\145\154\x20\164\x79\160\x65", $this->id); $this->notices->display(); return []; } if (empty($ln0_W["\143\x75\162\162\x65\156\143\x79"]) || empty($fsbkv[$ln0_W["\x63\165\x72\162\145\x6e\143\x79"]])) { $this->notices->displayWithoutNotices = true; $this->notices->type = "\x65\162\x72\157\162"; $this->notices->title = __("\x55\x6e\x6b\156\157\167\x6e\x20\143\x75\162\x72\145\156\143\171", $this->id); $this->notices->display(); return []; } yn_fx: } G4ZTh: dP_vK: } DrhWM: Cv1xa: } oY072: return $rhNRK; } private function getRequestedOrderIds() : array { if ($this->settings["\145\156\x61\142\154\x65\102\165\x6c\153\123\x68\151\160\x6d\145\156\164\103\162\x65\141\164\151\x6f\x6e"] !== "\x79\145\x73") { return []; } if ($this->getRequestedAction() === '' || empty($_REQUEST["\x70\157\x73\164"])) { return []; } if (!wp_verify_nonce($_REQUEST["\137\167\x70\x6e\x6f\x6e\143\x65"], "\142\x75\x6c\153\x2d\x70\157\163\x74\163")) { return []; } return array_map("\141\x62\163\151\x6e\164", (array) $_REQUEST["\x70\x6f\163\164"]); } private function mustCreateShipments() : bool { $FXrQF = false; if (apply_filters($this->id . "\137\x68\141\x73\x43\162\x65\x61\x74\x65\x53\x68\151\x70\x6d\145\x6e\x74\106\145\141\164\x75\162\145", false)) { $FXrQF = "\x79\x65\163" === $this->settings["\162\145\161\165\151\162\145\x54\x6f\x42\165\154\153\103\x72\145\141\x74\145\x53\x68\151\x70\x6d\145\x6e\x74\x73"]; } return $FXrQF; } private function mustPurchasePostage() : bool { return "\171\145\x73" === $this->settings["\x72\x65\161\x75\151\x72\x65\x54\157\x42\x75\154\153\x50\x75\x72\143\x68\x61\x73\145\120\157\x73\x74\141\x67\145"]; } private function mustPurchaseNewPostage() : bool { return "\x79\145\x73" === $this->settings["\162\x65\x71\x75\x69\x72\x65\x54\x6f\x42\x75\x6c\153\120\165\162\x63\x68\141\163\145\116\145\167\x50\157\163\x74\141\147\x65"]; } private function displayNotices() : void { $Y_322 = apply_filters($this->id . "\137\x67\x65\164\105\x72\162\x6f\162\115\145\163\x73\x61\x67\145\x73", []); if (false === empty($Y_322)) { $this->notices->type = "\145\162\x72\x6f\162"; foreach ($Y_322 as $By3oU) { $this->notices->add($By3oU); lBCuA: } DFj3N: } else { $this->notices->type = "\165\160\144\x61\x74\x65\x64"; } $this->notices->displayWithoutNotices = true; $this->notices->display(); } private function displayParcels(int $hRaip) : void { $JBJhR = []; $UirrU = apply_filters($this->id . "\137\147\x65\164\x4f\162\x64\x65\162\x53\x68\151\160\x6d\145\156\x74\x4d\x65\x74\141", [], $hRaip); if (empty($UirrU["\x70\141\162\x63\145\154\x73"])) { return; } $q4h_E = $UirrU["\x73\145\162\166\x69\143\x65"]; $JBJhR = $UirrU["\160\x61\x72\x63\145\154\x73"]; $qlOPL = apply_filters($this->id . "\x5f\147\145\x74\x50\x61\143\x6b\x61\x67\x65\x54\x79\160\x65\163", []); echo sprintf("\x3c\x64\151\166\40\x63\154\141\163\x73\x3d\42\45\x73\40\141\x64\155\151\156\117\x72\x64\x65\162\163\42\76", $this->id); echo sprintf("\74\x64\x69\x76\x3e\x3c\163\164\x72\157\x6e\x67\x3e\x25\x73\x3c\x2f\163\164\x72\157\156\147\x3e\x3c\x2f\144\151\166\x3e\x3c\x68\162\x2f\76", apply_filters($this->id . "\x5f\147\145\x74\x4e\x61\x6d\145", '')); echo "\x3c\x64\x69\166\x3e"; echo sprintf("\74\x73\x65\x6c\x65\x63\164\x20\164\171\x70\145\75\x22\164\145\x78\x74\42\x20\x6e\141\x6d\145\x3d\42\45\163\137\x6f\162\144\145\x72\163\133\x25\163\x5d\133\x73\x65\x72\166\151\143\145\x5d\x22\x3e", $this->id, $hRaip); $KbAl2 = []; if (empty($q4h_E)) { $KbAl2 = ['' => __("\123\x65\154\145\x63\164\x20\141\x20\163\x68\x69\x70\160\151\156\147\40\x73\145\x72\x76\x69\143\145", $this->id)]; } $KbAl2 = array_merge($KbAl2, apply_filters($this->id . "\x5f\x67\145\x74\x53\x65\162\x76\x69\x63\x65\163", [])); $fUxTT = "\171\x65\163" === $this->settings["\145\x6e\x61\x62\154\145\x53\145\x72\x76\x69\x63\x65\x73"]; if (empty($this->settings["\163\x65\162\x76\151\x63\x65\163"])) { $fUxTT = true; } foreach ($KbAl2 as $FZV_D => $LdCjB) { if ("\x79\x65\x73" === $this->settings["\165\163\145\x53\x65\162\x76\x69\143\145\123\x65\164\x74\x69\156\x67\163\106\157\x72\x42\165\x6c\153\123\150\x69\x70\155\x65\x6e\x74\103\x72\145\x61\164\x69\157\x6e"]) { $ehZ_Y = ["\x65\156\141\142\154\145\144" => $fUxTT ? "\x79\x65\163" : "\156\157"]; if (false === empty($this->settings["\x73\x65\162\x76\x69\143\x65\163"][$FZV_D])) { $ehZ_Y = $this->settings["\x73\x65\x72\x76\x69\x63\145\x73"][$FZV_D]; } if ($ehZ_Y["\145\x6e\x61\142\154\145\x64"] === "\156\x6f") { goto ib6gm; } } echo sprintf("\74\157\160\x74\x69\x6f\x6e\x20\166\x61\x6c\x75\x65\x3d\x22\45\163\x22\40\x25\163\76\45\163\74\x2f\157\160\164\151\x6f\156\76", $FZV_D, $FZV_D === $q4h_E ? "\x73\x65\154\145\143\164\x65\144" : '', apply_filters($this->id . "\x5f\x73\145\x72\x76\x69\143\145\137\x6e\x61\x6d\x65", $LdCjB, $FZV_D)); ib6gm: } oabh3: echo "\74\57\163\x65\154\x65\x63\164\76"; echo "\x3c\57\x64\x69\x76\x3e"; foreach ($JBJhR as $Wf3B9 => $ln0_W) { $this->displayParcel($hRaip, $Wf3B9, $ln0_W, $KbAl2, $qlOPL); df08y: } keH1S: echo sprintf("\x3c\x62\x75\x74\164\x6f\x6e\x20\143\x6c\141\163\163\75\42\x75\160\144\x61\x74\x65\x20\163\x75\142\x6d\x69\x74\40\x62\165\x74\x74\x6f\156\42\x3e\45\x73\74\x2f\x62\x75\164\x74\x6f\x6e\x3e", __("\125\x70\x64\141\164\x65", $this->id)); echo "\x3c\57\144\x69\x76\76"; } private function displayParcel(int $hRaip, int $Wf3B9, array $ln0_W, array $KbAl2, array $qlOPL) : void { if (empty($ln0_W)) { return; } if ($Wf3B9 > 0) { echo "\74\x68\x72\x2f\x3e"; } echo sprintf("\x3c\144\151\x76\x3e\74\163\x74\162\157\156\x67\x3e\x25\x73\x25\x73\x3c\x2f\163\164\x72\157\x6e\147\76\x3c\57\x64\x69\166\x3e", __("\120\x61\x72\143\x65\154\x20\x23", $this->id), $Wf3B9 + 1); echo "\74\144\x69\x76\76"; $LCn3z = $this->settings["\144\x65\x66\141\x75\x6c\164\x53\150\151\x70\x6d\145\x6e\164\104\145\x73\143\x72\x69\160\164\151\157\156"]; if (false === empty($ln0_W["\x64\x65\x73\143\x72\151\x70\x74\151\157\156"])) { $LCn3z = $ln0_W["\144\x65\x73\x63\162\x69\x70\164\151\157\x6e"]; } echo sprintf("\74\x69\156\x70\x75\164\40\164\171\x70\x65\75\42\164\x65\170\164\42\40\x63\x6c\141\163\163\75\x22\x70\x61\143\153\141\x67\145\104\145\163\143\162\151\x70\x74\x69\x6f\x6e\x22\x20\156\141\155\x65\x3d\42\x25\x73\x5f\157\162\144\145\162\163\133\45\x73\135\x5b\x70\141\162\143\x65\x6c\x73\x5d\x5b\x25\163\135\x5b\144\145\x73\x63\x72\x69\x70\x74\x69\x6f\156\135\42\40\x70\x6c\x61\x63\x65\x68\157\154\144\145\x72\x3d\42\x25\x73\x22\40\166\x61\154\165\145\75\x22\x25\163\x22\x2f\76", $this->id, $hRaip, $Wf3B9, __("\104\145\x73\143\x72\151\x70\x74\151\x6f\156", $this->id), $LCn3z); echo "\74\57\x64\x69\166\76"; echo "\x3c\144\151\166\76"; echo sprintf("\x3c\163\x65\x6c\x65\143\164\40\x74\x79\x70\x65\x3d\x22\164\145\170\x74\42\x20\156\141\155\145\75\42\45\163\137\x6f\x72\144\145\162\163\133\45\163\x5d\x5b\160\141\162\143\x65\154\163\x5d\x5b\45\163\x5d\x5b\x74\x79\160\145\x5d\42\x3e", $this->id, $hRaip, $Wf3B9); $qlOPL = apply_filters($this->id . "\x5f\147\x65\x74\x50\x61\143\153\x61\x67\145\x54\x79\x70\x65\163", []); $ypZsv = false === empty($ln0_W["\x74\x79\160\x65"]) ? $ln0_W["\164\x79\x70\x65"] : ''; foreach ($qlOPL as $EArS3 => $dsXCp) { echo sprintf("\x3c\x6f\x70\164\x69\157\156\40\x76\x61\x6c\x75\x65\x3d\42\45\x73\42\x20\45\x73\x3e\x25\x73\74\57\157\x70\164\151\157\156\x3e", $EArS3, $EArS3 === $ypZsv ? "\163\145\154\x65\143\164\x65\144" : '', $dsXCp); L5Jdl: } VoxWj: echo "\x3c\57\163\145\154\145\143\164\x3e"; echo "\74\57\144\x69\166\x3e"; echo "\x3c\144\151\166\x3e"; echo sprintf("\74\151\156\x70\165\164\x20\x74\171\x70\145\x3d\x22\164\x65\170\x74\42\40\x63\154\x61\x73\x73\75\42\x70\141\143\153\x61\147\145\114\x65\x6e\x67\164\150\x22\40\156\x61\x6d\x65\x3d\42\45\x73\x5f\x6f\x72\x64\x65\x72\163\x5b\x25\163\x5d\x5b\160\141\162\x63\145\154\163\x5d\x5b\45\x73\x5d\x5b\x6c\x65\156\147\164\150\x5d\42\40\166\141\154\x75\x65\x3d\x22\x25\163\42\x2f\76", $this->id, $hRaip, $Wf3B9, $ln0_W["\154\145\x6e\x67\164\150"]); echo "\x3c\163\x70\141\156\x3e\x78\74\x2f\x73\160\x61\x6e\76"; echo sprintf("\74\x69\x6e\160\165\x74\x20\164\x79\x70\x65\75\42\x74\x65\x78\164\42\x20\x63\x6c\x61\163\163\x3d\x22\x70\x61\x63\x6b\141\147\x65\127\151\x64\164\150\42\x20\x6e\x61\155\145\x3d\x22\x25\163\x5f\x6f\162\x64\x65\162\x73\133\x25\x73\x5d\133\x70\x61\x72\143\x65\154\163\x5d\x5b\x25\163\135\x5b\x77\151\x64\x74\150\135\x22\x20\x76\x61\154\165\x65\x3d\x22\45\163\42\57\76", $this->id, $hRaip, $Wf3B9, $ln0_W["\x77\x69\x64\x74\150"]); echo "\74\x73\x70\141\x6e\x3e\170\x3c\57\163\x70\141\x6e\76"; echo sprintf("\x3c\x69\x6e\x70\165\x74\40\x74\171\x70\x65\75\42\164\x65\170\x74\42\x20\143\x6c\x61\x73\x73\75\42\160\141\x63\x6b\x61\147\145\110\145\151\x67\150\x74\x22\x20\156\x61\x6d\145\x3d\x22\45\x73\x5f\x6f\162\144\x65\162\x73\x5b\x25\163\x5d\133\x70\x61\162\143\x65\154\x73\135\x5b\45\163\x5d\x5b\150\145\x69\147\x68\x74\x5d\42\x20\166\x61\154\165\x65\x3d\42\x25\163\x22\x2f\x3e", $this->id, $hRaip, $Wf3B9, $ln0_W["\x68\x65\x69\147\x68\x74"]); echo "\x3c\x73\x70\x61\x6e\x3e" . $this->dimensionUnit . "\x3c\x2f\163\160\141\156\76"; echo sprintf("\x3c\x69\156\160\x75\x74\x20\x74\x79\x70\x65\x3d\42\x74\x65\170\x74\42\x20\x63\x6c\141\x73\163\75\42\160\x61\x63\x6b\x61\147\x65\127\x65\x69\x67\150\x74\x22\40\156\x61\x6d\x65\x3d\x22\x25\x73\x5f\157\x72\144\x65\162\163\133\x25\163\135\133\160\x61\x72\143\x65\154\163\x5d\133\45\163\135\x5b\x77\x65\x69\147\150\164\x5d\x22\40\166\x61\154\165\x65\x3d\42\x25\163\42\57\76", $this->id, $hRaip, $Wf3B9, $ln0_W["\167\145\151\x67\150\164"]); echo "\x3c\163\x70\141\x6e\x3e" . $this->weightUnit . "\x3c\x2f\163\x70\141\156\76"; echo "\74\x2f\144\151\x76\76"; echo "\x3c\144\x69\166\x3e"; echo sprintf("\x3c\151\x6e\160\165\164\40\164\171\x70\x65\75\x22\164\145\170\164\42\40\143\x6c\141\x73\x73\x3d\42\x70\141\x63\153\141\x67\x65\x56\141\154\165\x65\x22\40\156\x61\155\x65\75\42\x25\163\x5f\x6f\162\x64\145\162\163\x5b\x25\163\135\x5b\160\x61\x72\143\145\154\x73\x5d\133\x25\x73\x5d\133\166\141\154\x75\145\x5d\42\x20\x76\141\154\165\145\75\42\x25\163\42\x2f\x3e", $this->id, $hRaip, $Wf3B9, $ln0_W["\166\x61\154\x75\x65"]); echo sprintf("\74\163\x65\154\x65\143\164\x20\164\x79\160\145\x3d\42\x74\x65\170\x74\42\x20\x63\x6c\141\x73\x73\x3d\42\x70\x61\143\x6b\x61\147\x65\103\x75\162\162\x65\x6e\x63\171\42\x20\156\x61\155\x65\x3d\x22\45\x73\137\x6f\162\144\145\x72\x73\133\45\x73\135\133\x70\141\x72\143\x65\x6c\x73\x5d\133\x25\x73\x5d\x5b\143\165\162\162\x65\156\143\x79\x5d\42\x3e", $this->id, $hRaip, $Wf3B9); $fsbkv = apply_filters($this->id . "\x5f\x67\x65\x74\103\165\x72\x72\x65\x6e\x63\151\x65\163", []); $qq6jZ = false === empty($ln0_W["\143\x75\162\162\x65\x6e\143\x79"]) ? $ln0_W["\143\165\x72\162\145\x6e\x63\171"] : apply_filters($this->id . "\137\147\145\164\x44\145\146\141\165\x6c\x74\103\165\162\x72\145\x6e\143\171", ''); foreach ($fsbkv as $GnxRt => $xXDkB) { echo sprintf("\74\x6f\x70\164\x69\x6f\156\40\166\141\x6c\165\145\75\42\45\163\x22\40\x25\163\x3e\45\x73\x3c\57\x6f\160\x74\x69\x6f\156\x3e", $GnxRt, $GnxRt === $qq6jZ ? "\163\x65\x6c\x65\143\164\x65\144" : '', $xXDkB); BF9i8: } kG8up: echo "\x3c\x2f\163\145\154\145\x63\164\76"; echo "\x3c\x2f\144\151\x76\x3e"; } private function displayShipments(int $hRaip, array $bKPr2) : void { if (empty($hRaip) || empty($bKPr2) || !is_array($bKPr2)) { return; } echo "\74\x68\x72\57\76"; echo sprintf("\x3c\144\151\166\40\x64\141\x74\141\x2d\x6f\162\144\x65\x72\x5f\x69\144\x3d\42\45\163\x22\x20\143\x6c\x61\163\x73\75\x22\x25\x73\40\x6f\162\144\x65\162\123\x68\151\160\155\145\x6e\x74\x73\x22\x3e", $hRaip, $this->id); echo sprintf("\x3c\x64\x69\166\x3e\x3c\x73\x74\162\157\156\147\76\x25\163\x20\45\163\74\57\x73\x74\x72\157\x6e\x67\76\74\57\144\x69\x76\x3e", apply_filters($this->id . "\x5f\x67\x65\164\x4e\141\x6d\x65", ''), __("\x53\x68\x69\x70\155\x65\156\164", $this->id)); foreach ($bKPr2 as $rOeXM => $BUUkK) { $this->displayShipment($hRaip, (string) $rOeXM, $BUUkK); x9DrD: } zLB0I: echo "\74\x2f\x64\151\166\x3e"; } private function displayShipment(int $hRaip, string $rOeXM, array $BUUkK) : bool { if (empty($BUUkK) || empty($rOeXM)) { return false; } echo sprintf("\74\x64\x69\166\40\144\141\x74\141\x2d\x6f\x72\x64\x65\162\x5f\x69\144\x3d\x22\x25\x73\x22\40\x64\x61\164\141\x2d\163\150\151\160\155\145\x6e\x74\x5f\x69\144\x3d\x22\x25\163\42\x20\143\x6c\x61\x73\x73\x3d\42\x25\x73\x20\x6f\x72\x64\x65\162\x53\150\151\x70\x6d\145\156\164\42\76", $hRaip, $rOeXM, $this->id); echo "\x3c\150\x72\57\76"; $LdCjB = ''; if (false === empty($BUUkK["\x73\x65\162\166\151\x63\x65"]) && false === empty($BUUkK["\162\x61\164\x65\163"][$BUUkK["\x73\145\162\166\x69\143\145"]])) { $zY1lV = $BUUkK["\x72\x61\x74\145\x73"][$BUUkK["\163\x65\x72\166\x69\143\x65"]]; $LdCjB = $zY1lV["\160\157\163\x74\x61\147\145\x5f\x64\x65\163\143\162\151\x70\x74\151\157\156"]; } elseif (false === empty($BUUkK["\x73\145\162\166\151\143\x65"])) { $KbAl2 = apply_filters($this->id . "\137\x67\145\164\x53\x65\x72\x76\x69\x63\145\163", []); if (false === empty($KbAl2[$BUUkK["\163\145\x72\x76\x69\143\x65"]])) { $LdCjB = $KbAl2[$BUUkK["\x73\x65\162\166\151\x63\145"]]; } } if (false === empty($LdCjB)) { echo sprintf("\x3c\163\x74\x72\157\x6e\147\76\x25\x73\74\57\x73\164\x72\157\x6e\x67\x3e\74\142\162\57\76", $LdCjB); } do_action($this->id . "\137\142\x65\146\157\x72\x65\137\141\x64\155\151\156\137\x73\150\151\160\155\145\156\x74\137\144\x65\x74\x61\x69\x6c\x73", $BUUkK); if (false === empty($BUUkK["\x63\141\x72\162\151\x65\x72\137\164\162\141\x63\153\151\156\x67\137\143\157\x64\x65"]) && false === empty($BUUkK["\x74\x72\141\143\x6b\151\x6e\147\x5f\165\162\154"])) { echo sprintf("\x3c\141\x20\150\162\145\x66\75\42\45\163\42\40\164\141\162\147\145\x74\75\x22\137\142\x6c\x61\156\153\42\x3e\x25\x73\x3c\57\x61\76\74\x62\x72\x2f\x3e", $BUUkK["\x74\x72\x61\143\153\151\x6e\x67\x5f\165\x72\x6c"], $BUUkK["\x63\x61\x72\x72\x69\x65\x72\x5f\x74\162\141\x63\153\x69\x6e\x67\137\x63\157\144\145"]); } elseif (false === empty($BUUkK["\143\x61\x72\162\151\x65\162\137\x74\x72\x61\143\x6b\151\x6e\x67\137\x63\157\x64\x65"])) { echo sprintf("\45\163\x3c\x62\x72\57\x3e", $BUUkK["\143\141\162\162\x69\145\162\137\x74\x72\x61\x63\153\151\156\x67\x5f\143\157\144\x65"]); } if (false === empty($BUUkK["\163\x74\141\x74\165\163\137\x6e\x61\155\145"])) { echo sprintf("\74\163\164\162\x6f\156\x67\76\45\x73\74\57\x73\x74\x72\x6f\x6e\x67\76\40\x3c\x73\160\141\x6e\x3e\x25\x73\x3c\x2f\163\x70\141\x6e\76\x3c\142\x72\x2f\76", __("\x53\x74\141\164\x75\x73\72", $this->id), $BUUkK["\163\x74\x61\x74\x75\x73\x5f\x6e\141\155\145"]); } $U409Q = ''; if (false === empty($BUUkK["\160\x6f\163\x74\x61\x67\145\x5f\154\x61\x62\145\154\137\x70\156\147\x5f\165\162\154"])) { $U409Q .= sprintf("\74\141\x20\x68\x72\145\146\x3d\x22\45\163\x22\x20\164\x61\162\x67\x65\164\x3d\42\x5f\x62\154\x61\156\153\42\76\45\163\74\x2f\x61\76", $BUUkK["\160\157\163\164\141\147\145\137\x6c\x61\142\145\154\137\160\156\147\137\x75\162\154"], __("\120\x4e\107", $this->id)); } if (false === empty($BUUkK["\160\x6f\163\x74\x61\x67\x65\137\154\141\x62\145\154\137\x70\144\146\x5f\165\162\x6c"])) { if (false === empty($U409Q)) { $U409Q .= "\x20\x7c\40"; } $U409Q .= sprintf("\x3c\141\x20\x68\x72\145\x66\x3d\x22\x25\163\42\40\164\x61\162\147\145\x74\x3d\42\137\x62\x6c\x61\x6e\x6b\x22\x3e\x25\163\74\57\141\76", $BUUkK["\160\x6f\163\x74\x61\147\x65\x5f\x6c\x61\x62\145\154\x5f\x70\x64\x66\137\x75\162\154"], __("\x50\104\106", $this->id)); } if (empty($U409Q) && false === empty($BUUkK["\160\x6f\163\164\x61\x67\145\x5f\x6c\141\x62\x65\x6c"])) { foreach ($BUUkK["\160\157\x73\x74\141\x67\145\137\x6c\x61\x62\145\154"] as $PzmHF) { if (false === empty($U409Q)) { $U409Q .= "\40\x7c\x20"; } $U409Q .= sprintf("\x3c\141\40\x68\x72\145\x66\x3d\x22\x25\x73\x22\x20\164\141\162\x67\145\164\x3d\42\137\x62\x6c\x61\156\153\42\x3e\45\163\74\x2f\x61\x3e", $PzmHF["\165\x72\154"], strtoupper($PzmHF["\x66\151\154\145\137\x74\171\160\x65"] ?? $PzmHF["\146\x69\154\145\x54\x79\160\145"] ?? "\160\x64\x66")); G7Ptc: } eVwD9: } if (false === empty($U409Q)) { echo sprintf("\74\x73\164\x72\157\156\x67\x3e\x25\x73\74\57\x73\164\162\x6f\156\x67\76\x20\x25\163\x3c\x62\162\57\x3e", __("\114\x61\142\x65\154\x3a", $this->id), $U409Q); } if (false === empty($BUUkK["\146\x6f\x72\x6d\x73"])) { echo "\x3c\x68\162\x2f\76"; echo sprintf("\74\163\164\x72\x6f\x6e\x67\76\x25\x73\x3c\57\163\164\x72\157\156\147\x3e\74\x62\162\x2f\x3e", __("\x46\157\x72\155\x73\x3a", $this->id)); foreach ($BUUkK["\x66\x6f\162\x6d\x73"] as $Aw0Qa) { $zQ5Nc = strtoupper(preg_replace("\57\137\x2f", "\x20", $Aw0Qa["\144\157\143\x75\155\145\x6e\x74\x5f\x74\171\160\x65"] ?? $Aw0Qa["\164\171\x70\x65"])); echo sprintf("\55\40\74\x61\x20\x68\162\145\146\x3d\42\45\163\x22\40\164\x61\162\147\x65\164\75\x22\137\x62\154\141\156\x6b\x22\76\45\163\74\x2f\141\x3e\74\x62\x72\57\x3e", $Aw0Qa["\x75\x72\x6c"], $zQ5Nc); plEnX: } QWc82: } echo "\x3c\57\144\x69\x76\x3e"; return true; } }

Function Calls

None

Variables

None

Stats

MD5 85043ae09fe60a05ca62278466a9643d
Eval Count 0
Decode Time 108 ms