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 /** * Plugin Name: WooCommerce Dhru Fusion API Integration - Multi Server * Plu..
Decoded Output download
<?php
/**
* Plugin Name: WooCommerce Dhru Fusion API Integration - Multi Server
* Plugin URI: http://sinticbolivia.net/products/plugins/woocommerce-dhru-fusion-multiserver-integration/
* Description: Dhru Fusion API Integration
* Version: 1.0
* Author: Sintic Bolivia
* Author URI: http://sinticbolivia.net
* Requires at least: 3.5
* Tested up to: 3.5
*/
${"GLOBALS"}["iqymegem"]="wcdfms";${"GLOBALS"}["mkpgerb"]="fh";${"GLOBALS"}["zhwrmvvir"]="log_file";${"GLOBALS"}["orvhvagi"]="order";${"GLOBALS"}["gplrtwsugi"]="dhru_code";${"GLOBALS"}["oiiflmyf"]="args";${"GLOBALS"}["dvqnrfdlwj"]="dhru_ms_server_id";${"GLOBALS"}["pibtvw"]="all_items_completed";${"GLOBALS"}["oadbmncxd"]="order_dhru_response";${"GLOBALS"}["httvkazb"]="res";${"GLOBALS"}["roncnoreob"]="order_item_status";${"GLOBALS"}["hhnclvnfvwi"]="woo_order";${"GLOBALS"}["xgumbciuy"]="orders";${"GLOBALS"}["jqwjqvjr"]="username";${"GLOBALS"}["kdwgrprmxo"]="server_url";${"GLOBALS"}["uisypssllh"]="dhru_ref_id";${"GLOBALS"}["xbmevqhjngf"]="dhru_server";${"GLOBALS"}["srcngttech"]="woo_order_item_id";${"GLOBALS"}["kdtjdor"]="response";${"GLOBALS"}["tefyhcuoqyx"]="para";${"GLOBALS"}["qhshbfbcak"]="api";${"GLOBALS"}["ufzbmvuf"]="dhru_fusion_ms_service_id";${"GLOBALS"}["ajiajbgisk"]="status";${"GLOBALS"}["exqrvsbrg"]="item";${"GLOBALS"}["zcuqnrjquq"]="items";${"GLOBALS"}["gcfxygi"]="the_order";${"GLOBALS"}["bysgud"]="service_id";${"GLOBALS"}["pkrudfc"]="item_id";${"GLOBALS"}["cpimxgkefvf"]="query";${"GLOBALS"}["fcjyfb"]="values";${"GLOBALS"}["wkebbduwwjv"]="data";${"GLOBALS"}["jhfpkjnye"]="cart_item_data";${"GLOBALS"}["rtwgsneiwy"]="bool";${"GLOBALS"}["wbtadywmr"]="imei";${"GLOBALS"}["jyxsay"]="dhru_service_id";${"GLOBALS"}["gdevlqt"]="product_id";${"GLOBALS"}["fllyqbbscpj"]="request";${"GLOBALS"}["uxvohwv"]="json";${"GLOBALS"}["cufrgfkqrad"]="services";${"GLOBALS"}["uofczjmv"]="server";${"GLOBALS"}["xqfpontqyvt"]="dhru_server_id";${"GLOBALS"}["yxdthqwpf"]="server_data";${"GLOBALS"}["wweotjvr"]="task";${"GLOBALS"}["qjjdrtnch"]="q";${"GLOBALS"}["hqilsqphwc"]="queries";defined("SB_DS")or define("SB_DS",DIRECTORY_SEPARATOR);require_once dirname(__FILE__)."/fusionclientapi/dhrufusionapi.class.php";class WooCommerceDhruFusionMS{protected$ops=array();public function __construct(){$this->addActions();$this->addFilters();}public static function onActivate(){global$wpdb;${"GLOBALS"}["zpocpju"]="queries";$yujrxdpndl="queries";${${"GLOBALS"}["hqilsqphwc"]}=array();${$yujrxdpndl}[]="CREATE TABLE IF NOT EXISTS {$wpdb->prefix}dhru_servers(dhru_server_id bigint not null auto_increment primary key,"."server_name varchar(250),"."server_url varchar(250),"."api_username varchar(200),"."api_key varchar(250),"."status varchar(100),"."creation_date datetime);";foreach(${${"GLOBALS"}["zpocpju"]} as${${"GLOBALS"}["qjjdrtnch"]}){$wpdb->query(${${"GLOBALS"}["qjjdrtnch"]});}}public static function onDeactivate(){}public function addActions(){add_action("woocommerce_order_status_processing",array($this,"actionWooOrderStatusProcessing"));add_action("woocommerce_email_order_meta",array($this,"action_woocommerce_email_order_meta"),10,2);if(is_admin()){add_action("admin_init",array($this,"addMetaBoxes"));add_action("save_post",array($this,"save_post"));add_action("woocommerce_admin_order_data_after_shipping_address",array($this,"woocommerce_after_order_shipping"));}add_action("woocommerce_before_add_to_cart_button",array($this,"action_woocommerce_before_add_to_cart_button"));add_action("woocommerce_add_order_item_meta",array($this,"action_woocommerce_add_order_item_meta"),10,2);if(is_admin()){add_action("admin_menu",array($this,"actionAdminMenu"));add_action("init",array($this,"handleAdminRequest"));}}public function handleAdminRequest(){${"GLOBALS"}["qtjjeomxwvv"]="task";global$wpdb;${${"GLOBALS"}["qtjjeomxwvv"]}=isset($_REQUEST["task"])?$_REQUEST["task"]:null;${"GLOBALS"}["gnqifnte"]="task";if(!${${"GLOBALS"}["wweotjvr"]})return false;if(${${"GLOBALS"}["gnqifnte"]}=="save_server"){${${"GLOBALS"}["yxdthqwpf"]}=array_map("trim",$_POST["server"]);$cjsfldukgjg="dhru_server_id";${"GLOBALS"}["eyeqcesgynv"]="dhru_server_id";${$cjsfldukgjg}=isset($_POST["dhru_server_id"])?(int)$_POST["dhru_server_id"]:null;if(${${"GLOBALS"}["eyeqcesgynv"]}){$wpdb->update($wpdb->prefix."dhru_servers",${${"GLOBALS"}["yxdthqwpf"]},array("dhru_server_id"=>${${"GLOBALS"}["xqfpontqyvt"]}));wp_safe_redirect(admin_url("/admin.php?page=woocommerce-dhru-fusion-ms&msg=server_updated"));die();}else{${"GLOBALS"}["niuvfuen"]="server_data";${${"GLOBALS"}["niuvfuen"]}["creation_date"]=date("Y-m-d H:i:s");$wpdb->insert($wpdb->prefix."dhru_servers",${${"GLOBALS"}["yxdthqwpf"]});wp_safe_redirect(admin_url("/admin.php?page=woocommerce-dhru-fusion-ms&msg=server_created"));die();}}elseif(${${"GLOBALS"}["wweotjvr"]}=="delete_dhru_server"){${${"GLOBALS"}["xqfpontqyvt"]}=(int)$_GET["id"];$wpdb->delete($wpdb->prefix."dhru_servers",array("dhru_server_id"=>${${"GLOBALS"}["xqfpontqyvt"]}));}elseif(${${"GLOBALS"}["wweotjvr"]}=="get_dhru_server_services"){$kenmeb="dhru_server_id";${${"GLOBALS"}["xqfpontqyvt"]}=(int)$_POST["dhru_server_id"];${${"GLOBALS"}["uofczjmv"]}=$this->getDhruServer(${$kenmeb});${"GLOBALS"}["bilsjb"]="json";$vwoolmjnif="services";${${"GLOBALS"}["cufrgfkqrad"]}=$this->getDhruFusionServices($server->server_url,$server->api_username,$server->api_key);${${"GLOBALS"}["uxvohwv"]}=array("status"=>"ok","message"=>"","services"=>array());if(isset(${${"GLOBALS"}["cufrgfkqrad"]}["ERROR"])){${${"GLOBALS"}["uxvohwv"]}["status"]="error";$wqhqkvpo="services";${${"GLOBALS"}["uxvohwv"]}["error"]=${$wqhqkvpo}["ERROR"][0]["MESSAGE"];}elseif(isset(${$vwoolmjnif}["SUCCESS"])){$wenaxgl="json";${$wenaxgl}["services"]=${${"GLOBALS"}["cufrgfkqrad"]}["SUCCESS"][0]["LIST"];}header("Content-type: application/json");die(json_encode(${${"GLOBALS"}["bilsjb"]}));}elseif(${${"GLOBALS"}["wweotjvr"]}=="test_get_account_info"){${"GLOBALS"}["pcwdsonnipw"]="server";${"GLOBALS"}["zdhssen"]="api";${"GLOBALS"}["secefyoio"]="request";${${"GLOBALS"}["pcwdsonnipw"]}=array_map("trim",$_POST["server"]);$husjfffjad="server";$tifsvtgnr="server";${${"GLOBALS"}["zdhssen"]}=new SB_DhruFusion(${$tifsvtgnr}["server_url"],${${"GLOBALS"}["uofczjmv"]}["api_username"],${$husjfffjad}["api_key"]);${${"GLOBALS"}["fllyqbbscpj"]}=$api->action("accountinfo");print strip_tags(print_r(${${"GLOBALS"}["secefyoio"]},1));die();}}public function action_woocommerce_cart_updated(){global$woocommerce;}public function addFilters(){add_filter("woocommerce_add_to_cart_validation",array($this,"filter_woocommerce_add_to_cart_validation"),10,5);add_filter("woocommerce_add_cart_item",array($this,"filter_woocommerce_add_cart_item"),10,2);add_filter("woocommerce_get_cart_item_from_session",array($this,"filter_woocommerce_get_cart_item_from_session"),10,3);add_filter("cron_schedules",array($this,"cron_schedules"));}public function addMetaBoxes(){add_meta_box("dhru-fusion-providers-ms",__("Dhru Fusion Services"),array($this,"metaboxProviders"),"product","side");}public function save_post($product_id){if(!isset($_POST["post_type"])||$_POST["post_type"]!="product")return false;${"GLOBALS"}["ftluykug"]="product_id";if(isset($_POST["dhru_ms_server_id"]))update_post_meta(${${"GLOBALS"}["ftluykug"]},"_dhru_ms_server_id",(int)$_POST["dhru_ms_server_id"]);if(isset($_POST["dhru_fusion_ms_service_id"]))update_post_meta(${${"GLOBALS"}["gdevlqt"]},"_dhru_fusion_ms_service_id",(int)$_POST["dhru_fusion_ms_service_id"]);}public function cron_schedules($chedules){${"GLOBALS"}["ocukteldgxz"]="schedules";$jktqycskmg="schedules";$lpyvkoifu="schedules";${$jktqycskmg}["every_twenty_mins"]=array("interval"=>60*20,"display"=>__("Every Twenty Minutes"));${$lpyvkoifu}["every_ten_mins"]=array("interval"=>60*10,"display"=>__("Every Ten Minutes"));return${${"GLOBALS"}["ocukteldgxz"]};}public function filter_woocommerce_add_to_cart_validation($bool){$blahhtsysm="dhru_service_id";global$woocommerce;${$blahhtsysm}=get_post_meta(${${"GLOBALS"}["gdevlqt"]},"_dhru_fusion_ms_service_id",1);$rvifklom="imei";${"GLOBALS"}["swnyzleykoc"]="dhru_service_id";${"GLOBALS"}["odhuqgi"]="imei";if(empty(${${"GLOBALS"}["swnyzleykoc"]})||${${"GLOBALS"}["jyxsay"]}==-1)return true;if(!isset($_POST["the_imei"])||empty($_POST["the_imei"])){$woocommerce->add_error(__("Please enter a valid imei"));return false;}${${"GLOBALS"}["odhuqgi"]}=trim($_POST["the_imei"]);if(strlen(${$rvifklom})<15||strlen(${${"GLOBALS"}["wbtadywmr"]})>15){$woocommerce->add_error(__("The imei needs to be 15 digits"));return false;}if(!is_numeric(${${"GLOBALS"}["wbtadywmr"]})){$woocommerce->add_error(__("The imei needs to be numeric"));${${"GLOBALS"}["rtwgsneiwy"]}=false;}$wubmxic="bool";return${$wubmxic};}public function filter_woocommerce_add_cart_item($cart_item_data,$cart_item_key){${"GLOBALS"}["pzftwfuxvnd"]="cart_item_data";$jgbocwtyrpl="cart_item_data";if(!isset($_POST["the_imei"])||empty($_POST["the_imei"]))return${${"GLOBALS"}["jhfpkjnye"]};$this->log("filter_woocommerce_add_cart_item");${${"GLOBALS"}["pzftwfuxvnd"]}["imei"]=trim($_POST["the_imei"]);$this->log("adding cart item imei: {$cart_item_data['imei']}");return${$jgbocwtyrpl};}public function filter_woocommerce_get_cart_item_from_session($data,$values,$key){return array_merge(${${"GLOBALS"}["wkebbduwwjv"]},${${"GLOBALS"}["fcjyfb"]});}public function actionAdminMenu(){add_menu_page(__("Woocommerce Dhru Fusion Mutli Server"),__("Woocommerce Dhru Fusion Multi Server"),8,"woocommerce-dhru-fusion-ms",array($this,"pageOptions"));add_submenu_page("woocommerce-dhru-fusion-ms",__("Documentation"),__("Documentation"),"manage_options","woocommerce-dhru-fusion-doc-ms",array($this,"pageDocumentation"));}public function pageOptions(){global$wpdb;${"GLOBALS"}["dtvzzt"]="dhru_servers";${"GLOBALS"}["khznbrrd"]="query";${${"GLOBALS"}["khznbrrd"]}="SELECT * FROM {$wpdb->prefix}dhru_servers ORDER BY creation_date DESC";${${"GLOBALS"}["dtvzzt"]}=$wpdb->get_results(${${"GLOBALS"}["cpimxgkefvf"]});require_once dirname(__FILE__)."/pages/admin/options.php";}public function pageDocumentation(){require_once dirname(__FILE__)."/pages/admin/doc.php";}public function action_woocommerce_add_order_item_meta($item_id,$values){$cynkjoy="values";${"GLOBALS"}["hiukkhyn"]="item_id";$this->log("action_woocommerce_add_order_item_meta");${${"GLOBALS"}["wbtadywmr"]}=isset(${${"GLOBALS"}["fcjyfb"]}["imei"])?${$cynkjoy}["imei"]:$_POST["the_imei"];$this->log("IMEI: $imei");$wonkgq="imei";woocommerce_add_order_item_meta(${${"GLOBALS"}["hiukkhyn"]},"_the_imei",${$wonkgq});woocommerce_add_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"IMEI",${${"GLOBALS"}["wbtadywmr"]});}public function action_woocommerce_before_add_to_cart_button(){global$post;${${"GLOBALS"}["bysgud"]}=(int)get_post_meta($post->ID,"_dhru_fusion_ms_service_id",true);${"GLOBALS"}["lwvuumzmyek"]="service_id";if(!${${"GLOBALS"}["bysgud"]}||${${"GLOBALS"}["lwvuumzmyek"]}==-1)return false;echo " <p>
<label>";_e("IMEI");echo "</label>
<input type=\"text\" id=\"the_imei" name=\"the_imei\" value="" style="width:70%;" />
</p>
";if(get_post_meta($post->ID,"_show_dhru_brand",1)=="true"){echo " <p>
<label>";_e("Brand");echo "</label>
<input type=\"text" name="the_brand\" value="\" />
</p>
";}echo "
";}public function actionWooOrderStatusProcessing($woo_order_id){${"GLOBALS"}["iwaiccuiwe"]="items";${"GLOBALS"}["swbqxxzfjoe"]="woo_order_id";$this->log("Woocommerce changing order to processing, so payment is done");$this->log("order_id: $woo_order_id");${${"GLOBALS"}["gcfxygi"]}=new WC_Order(${${"GLOBALS"}["swbqxxzfjoe"]});${${"GLOBALS"}["zcuqnrjquq"]}=$the_order->get_items();foreach(${${"GLOBALS"}["iwaiccuiwe"]} as${${"GLOBALS"}["pkrudfc"]}=>${${"GLOBALS"}["exqrvsbrg"]}){$oelddxuas="dhru_server_id";${"GLOBALS"}["iswlhayn"]="dhru_fusion_ms_service_id";${"GLOBALS"}["deqmlgrj"]="dhru_fusion_ms_service_id";${${"GLOBALS"}["wbtadywmr"]}=${${"GLOBALS"}["exqrvsbrg"]}["item_meta"]["_the_imei"][0];${"GLOBALS"}["qtsxxxmu"]="item";$ztmqhexfgkpx="status";$this->log("order item imei: $imei");${${"GLOBALS"}["xqfpontqyvt"]}=(int)get_post_meta(${${"GLOBALS"}["exqrvsbrg"]}["product_id"],"_dhru_ms_server_id",true);$dvcmed="dhru_fusion_ms_service_id";${${"GLOBALS"}["deqmlgrj"]}=(int)get_post_meta(${${"GLOBALS"}["qtsxxxmu"]}["product_id"],"_dhru_fusion_ms_service_id",true);$gqevblgmbr="item_id";if(!${${"GLOBALS"}["xqfpontqyvt"]}||${$oelddxuas}==-1){$this->log("dhru server id is invalid or not selected, skipping product id -> {$item['product_id']}");continue;}if(!${${"GLOBALS"}["iswlhayn"]}||${$dvcmed}==-1){$this->log("dhru service provider id is not valid or empty, skipping product id -> {$item['product_id']}");continue;}if(${$ztmqhexfgkpx}=woocommerce_get_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"_dhru_fusion_order_item_status",1)){if(${${"GLOBALS"}["ajiajbgisk"]}!="cancelled"){$dfwonelwco="item_id";woocommerce_add_order_item_meta(${$dfwonelwco},"_dhru_fusion_order_item_status","pending");woocommerce_add_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"_dhru_fusion_order_response","");}continue;}$this->placeDhruFusionNewOrder(${$gqevblgmbr},${${"GLOBALS"}["wbtadywmr"]},${${"GLOBALS"}["xqfpontqyvt"]},${${"GLOBALS"}["ufzbmvuf"]});update_post_meta($the_order->id,"_dhru_order","yes");}}public function placeDhruFusionNewOrder($woo_order_item_id,$imei,$dhru_server_id,$service_id){$bddembrgk="dhru_server";$wxhkrwlec="service_id";$qrslmu="response";${"GLOBALS"}["smmkgngli"]="dhru_server_id";${"GLOBALS"}["jmeddlje"]="dhru_server";${"GLOBALS"}["oclfwemq"]="para";${$bddembrgk}=$this->getDhruServer(${${"GLOBALS"}["smmkgngli"]});if(empty(${${"GLOBALS"}["jmeddlje"]})){$this->log("The dhru server id does not exists");return false;}${${"GLOBALS"}["qhshbfbcak"]}=new SB_DhruFusion($dhru_server->server_url,$dhru_server->api_username,$dhru_server->api_key);${${"GLOBALS"}["oclfwemq"]}=array("IMEI"=>${${"GLOBALS"}["wbtadywmr"]},"ID"=>${$wxhkrwlec});$this->log("PLACING DHRU FUSION ORDER");${$qrslmu}=$api->action("placeimeiorder",${${"GLOBALS"}["tefyhcuoqyx"]});$this->log(${${"GLOBALS"}["kdtjdor"]});if(isset(${${"GLOBALS"}["kdtjdor"]}["SUCCESS"])){$uzmesxjyz="response";$ckewro="response";$wjqnepmsfd="woo_order_item_id";${"GLOBALS"}["mipagsurescz"]="woo_order_item_id";${"GLOBALS"}["ifyjiefhuvl"]="response";$this->log("adding dhru order reference and status to woocommerce order ($woo_order_item_id)");$gtxubujvyvp="woo_order_item_id";$this->log("dhru fusion referenceid: {$response['SUCCESS'][0]['REFERENCEID']}");${"GLOBALS"}["kskpuqc"]="woo_order_item_id";woocommerce_add_order_item_meta(${${"GLOBALS"}["mipagsurescz"]},"_dhru_fusion_order_item_status","pending");${"GLOBALS"}["kmmkgcopsy"]="response";woocommerce_add_order_item_meta(${${"GLOBALS"}["kskpuqc"]},"_dhru_fusion_order_id",${$ckewro}["SUCCESS"][0]["REFERENCEID"]);woocommerce_add_order_item_meta(${$gtxubujvyvp},"_dhru_fusion_order_response",sprintf("Message: %s<br/>Reference Id: %d",${${"GLOBALS"}["ifyjiefhuvl"]}["SUCCESS"][0]["MESSAGE"],${${"GLOBALS"}["kmmkgcopsy"]}["SUCCESS"][0]["REFERENCEID"]));woocommerce_add_order_item_meta(${${"GLOBALS"}["srcngttech"]},"Unlock status:",${${"GLOBALS"}["kdtjdor"]}["SUCCESS"][0]["MESSAGE"]);woocommerce_add_order_item_meta(${$wjqnepmsfd},"Unlock Reference ID:",${$uzmesxjyz}["SUCCESS"][0]["REFERENCEID"]);}}public function getOrderDetails($dhru_ref_id,$dhru_server_id){$fhlfgmbedr="dhru_server_id";${"GLOBALS"}["nmesnddgquoe"]="para";$bpsedbreg="dhru_ref_id";${"GLOBALS"}["eemagdqc"]="request";${${"GLOBALS"}["xbmevqhjngf"]}=$this->getDhruServer(${$fhlfgmbedr});${"GLOBALS"}["nwdrwoxyba"]="para";if(empty(${${"GLOBALS"}["xbmevqhjngf"]}))return false;$this->log("getting dhru fusion order details: ".${${"GLOBALS"}["uisypssllh"]});${${"GLOBALS"}["qhshbfbcak"]}=new SB_DhruFusion($dhru_server->server_url,$dhru_server->api_username,$dhru_server->api_key);${${"GLOBALS"}["nwdrwoxyba"]}=array("ID"=>${$bpsedbreg});${${"GLOBALS"}["eemagdqc"]}=$api->action("getimeiorder",${${"GLOBALS"}["nmesnddgquoe"]});return${${"GLOBALS"}["fllyqbbscpj"]};}public function getDhruFusionProviders(){}public function getDhruFusionServices($server_url,$username,$api_key){${"GLOBALS"}["orcvojlih"]="server_url";$pwgmftauj="username";$this->log("Connection to dhru fusion server to get services list");${"GLOBALS"}["eztemorap"]="api_key";${"GLOBALS"}["stnwagdodwg"]="api_key";$this->log("Dhru fusion url: ".${${"GLOBALS"}["kdwgrprmxo"]});${"GLOBALS"}["kamxlwl"]="api";$this->log("dhru api username: ".${$pwgmftauj});$rvpjjgx="request";$this->log("dhru api key: ".${${"GLOBALS"}["stnwagdodwg"]});${${"GLOBALS"}["kamxlwl"]}=new SB_DhruFusion(${${"GLOBALS"}["orcvojlih"]},${${"GLOBALS"}["jqwjqvjr"]},${${"GLOBALS"}["eztemorap"]});${$rvpjjgx}=$api->action("imeiservicelist");return${${"GLOBALS"}["fllyqbbscpj"]};}public function wrapCheckDhruOrders(){${"GLOBALS"}["dpcdxnl"]="orders";require_once WP_PLUGIN_DIR."/woocommerce/classes/class-wc-order.php";${"GLOBALS"}["pghjstutryw"]="order";${"GLOBALS"}["jllbdmg"]="orders";$this->log("STARTING CRON TASK --> CHECKING ORDERS STATUS");${${"GLOBALS"}["jllbdmg"]}=get_posts(array("numberposts"=>-1,"post_type"=>"shop_order","orderby"=>"post_date","order"=>"DESC","tax_query"=>array(array("taxonomy"=>"shop_order_status","field"=>"slug","terms"=>"processing")),"meta_key"=>"_dhru_order","meta_value"=>"yes"));$this->log("Total Orders to process: ".count(${${"GLOBALS"}["dpcdxnl"]}));foreach(${${"GLOBALS"}["xgumbciuy"]} as${${"GLOBALS"}["pghjstutryw"]}){${"GLOBALS"}["obwdxttouv"]="all_items_completed";$fxvidufcfg="order_dhru_response";$gcgtecd="order_dhru_response";${${"GLOBALS"}["hhnclvnfvwi"]}=new WC_Order($order->ID);${$fxvidufcfg}="";${${"GLOBALS"}["obwdxttouv"]}=true;foreach($woo_order->get_items()as${${"GLOBALS"}["pkrudfc"]}=>${${"GLOBALS"}["exqrvsbrg"]}){${"GLOBALS"}["hyvivouvmy"]="res";${"GLOBALS"}["duoxipwsxy"]="dhru_order_id";$dtqjdvop="dhru_order_id";${"GLOBALS"}["kpoozomwf"]="order_item_status";${$dtqjdvop}=woocommerce_get_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"_dhru_fusion_order_id",1);$neokhtbvmavg="res";if(!${${"GLOBALS"}["duoxipwsxy"]}){$this->log("the woocommerce order_item_id ($item_id) has not a dhru fusion order id, it is --> $dhru_order_id");continue;}${${"GLOBALS"}["kpoozomwf"]}=woocommerce_get_order_item_meta(${${"GLOBALS"}["exqrvsbrg"]}["id"],"_dhru_fusion_order_item_status",1);if(${${"GLOBALS"}["roncnoreob"]}=="completed")continue;$vxropmokny="item";$qdkvyzegr="dhru_order_id";$this->log("dhru fusion reference_id: $dhru_order_id");${${"GLOBALS"}["xqfpontqyvt"]}=(int)get_post_meta(${$vxropmokny}["product_id"],"_dhru_ms_server_id",1);${${"GLOBALS"}["hyvivouvmy"]}=$this->getOrderDetails(${$qdkvyzegr},${${"GLOBALS"}["xqfpontqyvt"]});$this->log("order details response");$this->log(${${"GLOBALS"}["httvkazb"]});if(isset(${$neokhtbvmavg}["SUCCESS"])){${"GLOBALS"}["kqvimgk"]="res";$opdcrizv="res";if(((int)${${"GLOBALS"}["kqvimgk"]}["SUCCESS"][0]["STATUS"])==4){woocommerce_update_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"_dhru_fusion_order_item_status","completed");${"GLOBALS"}["yrbeietiq"]="item_id";woocommerce_update_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"_dhru_fusion_order_response",${${"GLOBALS"}["httvkazb"]}["SUCCESS"][0]["CODE"]);$fplclvnj="res";woocommerce_update_order_item_meta(${${"GLOBALS"}["yrbeietiq"]},"Unlock status:",${$fplclvnj}["SUCCESS"][0]["CODE"]);${${"GLOBALS"}["oadbmncxd"]}.=${${"GLOBALS"}["httvkazb"]}["SUCCESS"][0]["CODE"];}elseif((int)${${"GLOBALS"}["httvkazb"]}["SUCCESS"][0]["STATUS"]==3){${"GLOBALS"}["eyjdec"]="res";$wgujffjpx="item_id";woocommerce_update_order_item_meta(${$wgujffjpx},"_dhru_fusion_order_item_status","failed");woocommerce_update_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"_dhru_fusion_order_response",${${"GLOBALS"}["eyjdec"]}["SUCCESS"][0]["CODE"]);woocommerce_update_order_item_meta(${${"GLOBALS"}["pkrudfc"]},"Unlock status:",${${"GLOBALS"}["httvkazb"]}["SUCCESS"][0]["CODE"]);$tqnfxlybgd="res";${${"GLOBALS"}["oadbmncxd"]}.=${$tqnfxlybgd}["SUCCESS"][0]["CODE"];$this->log("order filed, code = 3, not found");}elseif(empty(${$opdcrizv}["SUCCESS"][0]["STATUS"])){${"GLOBALS"}["juflpvri"]="item_id";${"GLOBALS"}["fxiqcofwnqq"]="item_id";${"GLOBALS"}["qpyslm"]="order_dhru_response";$hgvywlnvbqn="item_id";woocommerce_update_order_item_meta(${${"GLOBALS"}["juflpvri"]},"_dhru_fusion_order_item_status","pending");woocommerce_update_order_item_meta(${${"GLOBALS"}["fxiqcofwnqq"]},"_dhru_fusion_order_response","The order has no status code");woocommerce_update_order_item_meta(${$hgvywlnvbqn},"Unlock status:","The order has no status code");$this->log("order null");$weewrwcaecc="all_items_completed";${${"GLOBALS"}["qpyslm"]}.="The order has no status code";${$weewrwcaecc}=false;}else{${"GLOBALS"}["mphndo"]="item_id";$ybyhswf="item_id";${"GLOBALS"}["eafihmb"]="order_dhru_response";$this->log("order UNKNOW CODE");woocommerce_update_order_item_meta(${$ybyhswf},"_dhru_fusion_order_item_status","pending");woocommerce_update_order_item_meta(${${"GLOBALS"}["mphndo"]},"_dhru_fusion_order_response","");$seycuvyj="item_id";${"GLOBALS"}["ukdcsib"]="all_items_completed";woocommerce_update_order_item_meta(${$seycuvyj},"Unlock status:","The order has no status code-");${${"GLOBALS"}["eafihmb"]}.="The order has no status code";${${"GLOBALS"}["ukdcsib"]}=false;}}elseif(isset(${${"GLOBALS"}["httvkazb"]}["ERROR"])){$amovdh="item_id";$yolukrrlw="res";${"GLOBALS"}["ubhrtbm"]="item_id";$xprwao="res";$aouyzgvuw="order_dhru_response";woocommerce_update_order_item_meta(${${"GLOBALS"}["ubhrtbm"]},"_dhru_fusion_order_item_status","failed");$iyiivfc="res";woocommerce_update_order_item_meta(${$amovdh},"_dhru_fusion_order_response",sprintf("%s<br/>%s",${${"GLOBALS"}["httvkazb"]}["ERROR"][0]["MESSAGE"],${$xprwao}["ERROR"][0]["FULL_DESCRIPTION"]));${$aouyzgvuw}.=sprintf("%s<br/>%s",${$yolukrrlw}["ERROR"][0]["MESSAGE"],${$iyiivfc}["ERROR"][0]["FULL_DESCRIPTION"]);}}update_post_meta($woo_order->id,"_dhru_fusion_order_response",${$gcgtecd});if(${${"GLOBALS"}["pibtvw"]}){$woo_order->update_status("completed");}}die("CRON JOB ENDS");}public function metaboxProviders($post){${"GLOBALS"}["ljkyocme"]="dhru_servers";global$wpdb;${${"GLOBALS"}["ljkyocme"]}=$this->getDhruServers();${${"GLOBALS"}["dvqnrfdlwj"]}=get_post_meta($post->ID,"_dhru_ms_server_id",1);${${"GLOBALS"}["ufzbmvuf"]}=get_post_meta($post->ID,"_dhru_fusion_ms_service_id",1);require_once dirname(__FILE__)."/pages/admin/metabox.php";}public function woocommerce_after_order_shipping($order){echo "</div>
<div class=\"order_data_column\">
<h4>";_e("Dhru Fusion Order Details");echo "</h4>
";print get_post_meta($order->id,"_dhru_fusion_order_response",1);}public function woocommerce_after_template_part($template_name,$template_path,$located,$args){$this->log("woocommerce_after_template_part");$this->log(${${"GLOBALS"}["oiiflmyf"]});${${"GLOBALS"}["gplrtwsugi"]}=get_post_meta(@${${"GLOBALS"}["oiiflmyf"]}["order"]->id,"_dhru_fusion_order_response",1);print${${"GLOBALS"}["gplrtwsugi"]};}public function action_woocommerce_email_order_meta($order,$false){$this->log("action_woocommerce_email_order_meta
=========================================");$this->log(${${"GLOBALS"}["orvhvagi"]});${"GLOBALS"}["evwywhrv"]="dhru_code";${${"GLOBALS"}["evwywhrv"]}=get_post_meta($order->id,"_dhru_fusion_order_response",1);echo " <h2>";_e("Unlock Details");echo "</h2>
<p>";print${${"GLOBALS"}["gplrtwsugi"]};echo "</p>
";}public function log($str){$omskplp="fh";${${"GLOBALS"}["zhwrmvvir"]}=dirname(__FILE__).SB_DS."dhru-ms.log";${${"GLOBALS"}["mkpgerb"]}=null;${"GLOBALS"}["cngflvpdtjxh"]="date";${"GLOBALS"}["gxsgcnmdi"]="str";if(file_exists(${${"GLOBALS"}["zhwrmvvir"]})){${"GLOBALS"}["eflrimcdhbt"]="fh";${${"GLOBALS"}["eflrimcdhbt"]}=fopen(${${"GLOBALS"}["zhwrmvvir"]},"a+");}else{${"GLOBALS"}["jsfjxsww"]="fh";${${"GLOBALS"}["jsfjxsww"]}=fopen(${${"GLOBALS"}["zhwrmvvir"]},"w+");}${${"GLOBALS"}["cngflvpdtjxh"]}=date("Y-m-d H:i:s");fwrite(${$omskplp},"[$date]#".print_r(${${"GLOBALS"}["gxsgcnmdi"]},1)."
");fclose(${${"GLOBALS"}["mkpgerb"]});}public function getDhruServers($status='enabled'){${"GLOBALS"}["heddtqpril"]="status";${"GLOBALS"}["fughxsg"]="query";global$wpdb;${${"GLOBALS"}["cpimxgkefvf"]}=sprintf("SELECT * FROM {$wpdb->prefix}dhru_servers %s ORDER BY creation_date DESC",(${${"GLOBALS"}["heddtqpril"]})?"WHERE status = '$status'":"");return$wpdb->get_results(${${"GLOBALS"}["fughxsg"]});}public function getDhruServer($server_id){global$wpdb;${${"GLOBALS"}["cpimxgkefvf"]}="SELECT * FROM {$wpdb->prefix}dhru_servers WHERE dhru_server_id = $server_id";return$wpdb->get_row(${${"GLOBALS"}["cpimxgkefvf"]});}}${${"GLOBALS"}["iqymegem"]}=null;register_deactivation_hook(__FILE__,array("WooCommerceDhruFusionMS","onDeactivate"));register_activation_hook(__FILE__,array("WooCommerceDhruFusionMS","onActivate"));function __wcdfms(){global$wcdfms;${${"GLOBALS"}
["iqymegem"]}=new WooCommerceDhruFusionMS();if(isset($_GET["process_dhru_orders"])){${"GLOBALS"}["xurhjfuvcpc"]="wcdfms";add_action("init",array(${${"GLOBALS"}["xurhjfuvcpc"]},"wrapCheckDhruOrders"));}}add_action("woocommerce_loaded","__wcdfms");
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: WooCommerce Dhru Fusion API Integration - Multi Server
* Plugin URI: http://sinticbolivia.net/products/plugins/woocommerce-dhru-fusion-multiserver-integration/
* Description: Dhru Fusion API Integration
* Version: 1.0
* Author: Sintic Bolivia
* Author URI: http://sinticbolivia.net
* Requires at least: 3.5
* Tested up to: 3.5
*/
${"\x47\x4cO\x42A\x4cS"}["i\x71\x79m\x65\x67em"]="w\x63\x64\x66ms";${"G\x4c\x4f\x42\x41L\x53"}["\x6d\x6b\x70g\x65r\x62"]="f\x68";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x68\x77\x72m\x76\x76\x69r"]="\x6c\x6f\x67\x5f\x66\x69\x6ce";${"\x47LOB\x41\x4cS"}["o\x72\x76h\x76\x61g\x69"]="\x6f\x72\x64\x65r";${"GL\x4f\x42\x41\x4c\x53"}["\x67p\x6c\x72twsugi"]="\x64\x68\x72\x75_\x63\x6fd\x65";${"G\x4cO\x42\x41L\x53"}["\x6fi\x69\x66\x6c\x6dy\x66"]="\x61r\x67\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["\x64vq\x6e\x72f\x64\x6c\x77j"]="\x64\x68\x72u_\x6d\x73\x5fs\x65\x72ve\x72_\x69\x64";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70\x69b\x74\x76\x77"]="al\x6c_i\x74\x65\x6ds_\x63o\x6d\x70\x6c\x65t\x65\x64";${"G\x4cO\x42A\x4cS"}["\x6f\x61\x64\x62m\x6e\x63x\x64"]="\x6f\x72de\x72\x5fd\x68\x72\x75\x5f\x72\x65\x73\x70\x6f\x6es\x65";${"\x47\x4c\x4f\x42\x41LS"}["\x68\x74t\x76\x6b\x61\x7ab"]="r\x65\x73";${"GL\x4f\x42A\x4c\x53"}["\x72\x6fn\x63\x6eo\x72\x65\x6f\x62"]="\x6f\x72\x64\x65\x72\x5f\x69te\x6d_s\x74\x61t\x75s";${"G\x4c\x4f\x42AL\x53"}["hh\x6e\x63\x6c\x76\x6e\x66\x76\x77\x69"]="\x77\x6f\x6f\x5fo\x72de\x72";${"G\x4c\x4fB\x41\x4c\x53"}["\x78\x67\x75\x6d\x62\x63\x69\x75\x79"]="o\x72\x64\x65\x72\x73";${"\x47\x4c\x4fB\x41\x4cS"}["j\x71\x77jqv\x6a\x72"]="\x75\x73\x65r\x6e\x61me";${"\x47L\x4f\x42\x41\x4cS"}["k\x64\x77gr\x70\x72mxo"]="se\x72\x76\x65r\x5fu\x72l";${"\x47\x4cO\x42\x41LS"}["\x75\x69\x73\x79ps\x73l\x6ch"]="\x64\x68ru\x5f\x72\x65f\x5f\x69d";${"\x47\x4c\x4f\x42\x41LS"}["x\x62\x6de\x76q\x68j\x6e\x67f"]="d\x68\x72\x75\x5f\x73\x65\x72ver";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x73\x72\x63\x6e\x67\x74t\x65c\x68"]="\x77\x6f\x6f\x5f\x6fr\x64\x65\x72_i\x74\x65\x6d_\x69\x64";${"\x47L\x4fB\x41LS"}["k\x64\x74\x6a\x64\x6f\x72"]="\x72es\x70\x6fn\x73\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x65\x66y\x68c\x75\x6f\x71y\x78"]="\x70a\x72\x61";${"\x47L\x4fB\x41\x4c\x53"}["\x71hsh\x62f\x62\x63ak"]="ap\x69";${"G\x4c\x4f\x42A\x4c\x53"}["\x75\x66zbm\x76\x75\x66"]="\x64h\x72u_\x66u\x73\x69\x6f\x6e\x5f\x6ds_s\x65rv\x69c\x65\x5fi\x64";${"G\x4cO\x42\x41L\x53"}["\x61\x6ai\x61\x6a\x62\x67\x69\x73k"]="sta\x74\x75\x73";${"\x47\x4cO\x42\x41LS"}["\x65\x78q\x72\x76\x73b\x72g"]="i\x74\x65\x6d";${"\x47\x4cO\x42\x41L\x53"}["\x7a\x63\x75q\x6e\x72\x6a\x71\x75q"]="\x69\x74\x65\x6ds";${"\x47\x4cO\x42\x41L\x53"}["\x67\x63\x66\x78\x79g\x69"]="t\x68e\x5f\x6fr\x64\x65\x72";${"\x47\x4c\x4fB\x41LS"}["\x62\x79\x73\x67\x75\x64"]="s\x65r\x76i\x63e\x5fid";${"G\x4c\x4fB\x41\x4c\x53"}["\x70\x6b\x72\x75df\x63"]="\x69t\x65m_id";${"G\x4cOBA\x4cS"}["\x63p\x69m\x78\x67k\x65\x66vf"]="\x71\x75\x65\x72\x79";${"\x47\x4c\x4fB\x41\x4c\x53"}["f\x63\x6ay\x66b"]="\x76\x61\x6cue\x73";${"GL\x4f\x42\x41L\x53"}["\x77\x6be\x62\x62\x64\x75\x77w\x6a\x76"]="da\x74\x61";${"\x47\x4c\x4f\x42ALS"}["\x6a\x68\x66\x70k\x6a\x6ey\x65"]="ca\x72\x74_\x69\x74\x65\x6d\x5f\x64a\x74a";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x74\x77gs\x6e\x65\x69\x77\x79"]="\x62o\x6f\x6c";${"\x47LO\x42\x41\x4c\x53"}["w\x62\x74a\x64yw\x6d\x72"]="i\x6d\x65i";${"G\x4c\x4f\x42A\x4c\x53"}["\x6a\x79\x78\x73\x61\x79"]="\x64\x68r\x75_se\x72\x76\x69c\x65\x5f\x69d";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67de\x76l\x71t"]="p\x72\x6fd\x75c\x74\x5f\x69\x64";${"\x47\x4c\x4f\x42AL\x53"}["\x66l\x6cy\x71bb\x73\x63p\x6a"]="r\x65\x71\x75\x65\x73\x74";${"GLO\x42\x41LS"}["\x75\x78\x76\x6f\x68wv"]="\x6a\x73o\x6e";${"G\x4c\x4fB\x41L\x53"}["\x63u\x66r\x67\x66\x6bqra\x64"]="\x73\x65rv\x69c\x65\x73";${"\x47\x4cOBA\x4c\x53"}["\x75\x6f\x66\x63\x7a\x6a\x6d\x76"]="se\x72ver";${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x71\x66po\x6e\x74\x71\x79v\x74"]="\x64\x68\x72\x75\x5fs\x65r\x76\x65r\x5f\x69\x64";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x78d\x74\x68\x71w\x70\x66"]="\x73e\x72\x76\x65\x72\x5f\x64a\x74\x61";${"\x47LO\x42\x41\x4c\x53"}["\x77\x77\x65\x6f\x74\x6a\x76r"]="\x74a\x73k";${"\x47L\x4f\x42\x41\x4cS"}["\x71\x6aj\x64\x72\x74nch"]="q";${"\x47\x4cO\x42AL\x53"}["\x68\x71\x69\x6cs\x71ph\x77\x63"]="\x71\x75\x65ri\x65s";defined("\x53\x42_\x44S")or define("S\x42_\x44\x53",DIRECTORY_SEPARATOR);require_once dirname(__FILE__)."/\x66u\x73\x69\x6fn\x63li\x65\x6eta\x70\x69/d\x68ru\x66u\x73\x69o\x6eap\x69.class.ph\x70";class WooCommerceDhruFusionMS{protected$ops=array();public function __construct(){$this->addActions();$this->addFilters();}public static function onActivate(){global$wpdb;${"G\x4c\x4fBA\x4cS"}["z\x70\x6fc\x70\x6a\x75"]="\x71\x75\x65\x72\x69e\x73";$yujrxdpndl="qu\x65\x72i\x65\x73";${${"G\x4c\x4fB\x41LS"}["\x68qi\x6csq\x70hwc"]}=array();${$yujrxdpndl}[]="CR\x45\x41T\x45\x20T\x41BL\x45\x20\x49\x46 N\x4f\x54 E\x58\x49\x53T\x53\x20{$wpdb->prefix}d\x68ru_\x73\x65\x72v\x65rs(\x64\x68\x72\x75\x5fs\x65rv\x65r\x5f\x69d\x20\x62\x69\x67\x69nt no\x74\x20n\x75\x6cl \x61uto\x5f\x69\x6ec\x72\x65\x6d\x65\x6et p\x72\x69\x6da\x72y ke\x79,"."\x73\x65\x72v\x65\x72\x5f\x6eame \x76a\x72c\x68\x61r(2\x350),"."s\x65\x72\x76e\x72_\x75\x72l\x20va\x72cha\x72(\x32\x35\x30),"."ap\x69\x5f\x75s\x65\x72\x6ea\x6d\x65\x20v\x61\x72ch\x61\x72(\x32\x300),"."\x61\x70i_k\x65y va\x72ch\x61r(\x32\x350),"."\x73\x74\x61\x74us \x76\x61r\x63ha\x72(\x31\x300),"."\x63r\x65\x61t\x69on_\x64\x61\x74e da\x74etim\x65);";foreach(${${"\x47\x4c\x4f\x42A\x4cS"}["\x7ap\x6fcp\x6a\x75"]} as${${"\x47\x4cOBA\x4c\x53"}["\x71jj\x64r\x74\x6ec\x68"]}){$wpdb->query(${${"\x47\x4c\x4fB\x41LS"}["\x71j\x6a\x64\x72\x74\x6e\x63h"]});}}public static function onDeactivate(){}public function addActions(){add_action("\x77\x6f\x6f\x63o\x6d\x6d\x65r\x63e_\x6frder\x5fs\x74a\x74\x75s\x5fpr\x6fc\x65\x73\x73\x69\x6eg",array($this,"a\x63t\x69\x6f\x6eW\x6f\x6f\x4f\x72\x64erS\x74\x61\x74usPro\x63es\x73\x69ng"));add_action("woocom\x6der\x63\x65_e\x6d\x61i\x6c\x5f\x6fr\x64e\x72_me\x74a",array($this,"\x61\x63\x74\x69\x6fn\x5fwoo\x63\x6f\x6dme\x72c\x65\x5fe\x6d\x61il\x5f\x6frder_me\x74a"),10,2);if(is_admin()){add_action("\x61\x64min_\x69\x6ei\x74",array($this,"\x61\x64\x64\x4d\x65ta\x42ox\x65s"));add_action("\x73\x61v\x65\x5fpo\x73t",array($this,"\x73\x61\x76e\x5fp\x6f\x73\x74"));add_action("woo\x63om\x6d\x65r\x63\x65_\x61\x64m\x69n_o\x72d\x65\x72_d\x61t\x61\x5f\x61f\x74er\x5f\x73h\x69pp\x69ng_ad\x64\x72\x65s\x73",array($this,"w\x6foco\x6d\x6der\x63\x65_\x61\x66te\x72\x5forder\x5fsh\x69p\x70\x69\x6eg"));}add_action("wooc\x6fm\x6d\x65r\x63e\x5fb\x65for\x65_\x61d\x64_to_ca\x72t\x5fb\x75\x74\x74\x6f\x6e",array($this,"ac\x74\x69\x6fn\x5fwoo\x63o\x6d\x6d\x65\x72ce\x5f\x62efore_\x61\x64\x64_\x74o\x5f\x63\x61r\x74_b\x75t\x74\x6fn"));add_action("w\x6f\x6fco\x6d\x6derce\x5fadd\x5for\x64\x65\x72_\x69te\x6d_\x6d\x65\x74a",array($this,"act\x69o\x6e_\x77oocomm\x65rc\x65_a\x64\x64_or\x64\x65r\x5fit\x65\x6d_m\x65\x74\x61"),10,2);if(is_admin()){add_action("\x61\x64\x6din_m\x65nu",array($this,"\x61ct\x69\x6f\x6eAd\x6dinM\x65\x6eu"));add_action("\x69ni\x74",array($this,"h\x61\x6e\x64l\x65Ad\x6dinR\x65\x71u\x65s\x74"));}}public function handleAdminRequest(){${"G\x4cO\x42\x41\x4c\x53"}["\x71\x74jjeo\x6d\x78wv\x76"]="t\x61\x73\x6b";global$wpdb;${${"\x47\x4cO\x42\x41L\x53"}["q\x74\x6a\x6a\x65\x6f\x6dx\x77\x76\x76"]}=isset($_REQUEST["\x74ask"])?$_REQUEST["\x74\x61sk"]:null;${"GL\x4fB\x41L\x53"}["g\x6eq\x69\x66\x6e\x74\x65"]="\x74a\x73\x6b";if(!${${"G\x4c\x4fB\x41\x4c\x53"}["\x77w\x65ot\x6a\x76r"]})return false;if(${${"GL\x4fB\x41\x4c\x53"}["g\x6e\x71\x69f\x6e\x74e"]}=="sav\x65_\x73\x65\x72ve\x72"){${${"\x47\x4cO\x42AL\x53"}["yx\x64t\x68\x71\x77\x70\x66"]}=array_map("t\x72im",$_POST["s\x65rver"]);$cjsfldukgjg="\x64\x68\x72u\x5f\x73er\x76e\x72\x5f\x69d";${"\x47\x4cO\x42\x41\x4cS"}["\x65\x79\x65\x71\x63\x65\x73\x67y\x6ev"]="\x64\x68ru\x5fs\x65r\x76e\x72\x5f\x69d";${$cjsfldukgjg}=isset($_POST["dhru_s\x65r\x76e\x72_i\x64"])?(int)$_POST["d\x68\x72u_s\x65\x72\x76er\x5f\x69d"]:null;if(${${"\x47\x4c\x4f\x42\x41\x4cS"}["ey\x65q\x63\x65\x73\x67\x79\x6e\x76"]}){$wpdb->update($wpdb->prefix."\x64\x68r\x75\x5f\x73e\x72v\x65\x72\x73",${${"\x47L\x4f\x42\x41LS"}["y\x78\x64t\x68\x71\x77p\x66"]},array("dh\x72u_\x73erv\x65\x72\x5f\x69d"=>${${"GL\x4f\x42\x41\x4cS"}["\x78\x71\x66p\x6f\x6e\x74qyv\x74"]}));wp_safe_redirect(admin_url("/admin\x2ephp?\x70age=\x77\x6focom\x6de\x72\x63\x65-d\x68\x72u-f\x75s\x69o\x6e-m\x73&msg\x3dse\x72ve\x72\x5f\x75\x70\x64\x61t\x65\x64"));die();}else{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["n\x69\x75\x76f\x75\x65\x6e"]="se\x72\x76\x65\x72_da\x74\x61";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6eiu\x76\x66\x75\x65n"]}["cr\x65a\x74\x69\x6f\x6e_\x64a\x74\x65"]=date("\x59-\x6d-\x64 H:\x69:s");$wpdb->insert($wpdb->prefix."d\x68r\x75\x5f\x73\x65\x72\x76e\x72s",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79xd\x74\x68\x71\x77p\x66"]});wp_safe_redirect(admin_url("/a\x64m\x69n\x2ep\x68\x70?\x70\x61g\x65=w\x6f\x6f\x63\x6fmmerc\x65-\x64\x68\x72u-fus\x69\x6f\x6e-ms&ms\x67\x3dse\x72ve\x72\x5f\x63reated"));die();}}elseif(${${"G\x4cOB\x41\x4cS"}["\x77weo\x74\x6a\x76r"]}=="\x64e\x6c\x65te\x5fdh\x72\x75\x5f\x73\x65\x72\x76er"){${${"\x47\x4c\x4fBA\x4c\x53"}["\x78\x71\x66p\x6f\x6etq\x79\x76\x74"]}=(int)$_GET["id"];$wpdb->delete($wpdb->prefix."dhru\x5f\x73\x65\x72ver\x73",array("d\x68\x72\x75_\x73\x65rv\x65r\x5f\x69\x64"=>${${"\x47L\x4f\x42\x41L\x53"}["\x78\x71f\x70\x6f\x6et\x71\x79v\x74"]}));}elseif(${${"\x47\x4cOB\x41\x4c\x53"}["\x77\x77\x65\x6ftjv\x72"]}=="g\x65t_d\x68\x72\x75_\x73\x65\x72ver\x5fse\x72\x76\x69ce\x73"){$kenmeb="d\x68r\x75_\x73\x65rv\x65r\x5fi\x64";${${"G\x4cO\x42A\x4c\x53"}["\x78\x71f\x70\x6fn\x74\x71\x79v\x74"]}=(int)$_POST["\x64hr\x75\x5fserv\x65r_id"];${${"\x47\x4c\x4f\x42\x41LS"}["\x75\x6ff\x63\x7aj\x6d\x76"]}=$this->getDhruServer(${$kenmeb});${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62i\x6cs\x6a\x62"]="j\x73\x6fn";$vwoolmjnif="s\x65r\x76\x69\x63\x65\x73";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x75\x66\x72\x67\x66k\x71\x72a\x64"]}=$this->getDhruFusionServices($server->server_url,$server->api_username,$server->api_key);${${"\x47L\x4f\x42\x41L\x53"}["\x75\x78\x76\x6f\x68\x77\x76"]}=array("\x73t\x61t\x75\x73"=>"ok","m\x65ssage"=>"","\x73erv\x69\x63es"=>array());if(isset(${${"\x47\x4cO\x42AL\x53"}["cu\x66\x72g\x66k\x71ra\x64"]}["\x45RROR"])){${${"\x47L\x4f\x42AL\x53"}["\x75xv\x6f\x68wv"]}["\x73\x74\x61\x74\x75\x73"]="e\x72\x72\x6fr";$wqhqkvpo="s\x65r\x76\x69\x63\x65s";${${"\x47LOB\x41\x4c\x53"}["\x75\x78v\x6f\x68\x77\x76"]}["\x65\x72\x72or"]=${$wqhqkvpo}["\x45\x52\x52OR"][0]["\x4dESSAG\x45"];}elseif(isset(${$vwoolmjnif}["S\x55CCE\x53\x53"])){$wenaxgl="\x6as\x6fn";${$wenaxgl}["\x73erv\x69\x63\x65s"]=${${"\x47\x4c\x4f\x42\x41L\x53"}["c\x75\x66\x72\x67f\x6bq\x72a\x64"]}["\x53U\x43CESS"][0]["LI\x53T"];}header("\x43ont\x65n\x74-\x74\x79pe: appli\x63a\x74\x69on/js\x6fn");die(json_encode(${${"\x47LO\x42\x41\x4c\x53"}["\x62\x69\x6c\x73\x6ab"]}));}elseif(${${"G\x4c\x4f\x42\x41L\x53"}["w\x77\x65\x6f\x74\x6avr"]}=="t\x65s\x74\x5f\x67e\x74_ac\x63ount\x5f\x69nf\x6f"){${"\x47\x4cO\x42A\x4c\x53"}["\x70c\x77\x64s\x6f\x6en\x69\x70\x77"]="ser\x76\x65\x72";${"\x47L\x4f\x42\x41L\x53"}["z\x64h\x73\x73en"]="a\x70\x69";${"\x47\x4c\x4f\x42A\x4cS"}["\x73\x65\x63\x65\x66\x79o\x69o"]="\x72e\x71u\x65\x73\x74";${${"G\x4c\x4fBAL\x53"}["\x70\x63w\x64\x73o\x6e\x6e\x69\x70\x77"]}=array_map("\x74r\x69\x6d",$_POST["ser\x76er"]);$husjfffjad="\x73\x65\x72\x76e\x72";$tifsvtgnr="\x73\x65r\x76e\x72";${${"\x47L\x4f\x42\x41LS"}["z\x64\x68\x73\x73\x65\x6e"]}=new SB_DhruFusion(${$tifsvtgnr}["se\x72ver\x5f\x75r\x6c"],${${"G\x4cO\x42\x41\x4cS"}["\x75\x6ff\x63\x7a\x6am\x76"]}["a\x70\x69_\x75s\x65r\x6e\x61\x6d\x65"],${$husjfffjad}["a\x70i_\x6be\x79"]);${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66lly\x71\x62\x62\x73cp\x6a"]}=$api->action("a\x63\x63\x6fu\x6etin\x66\x6f");print strip_tags(print_r(${${"\x47\x4c\x4f\x42\x41\x4cS"}["s\x65c\x65f\x79\x6f\x69\x6f"]},1));die();}}public function action_woocommerce_cart_updated(){global$woocommerce;}public function addFilters(){add_filter("\x77o\x6f\x63o\x6d\x6de\x72\x63\x65\x5f\x61d\x64\x5ft\x6f_\x63art\x5fv\x61\x6c\x69d\x61\x74ion",array($this,"\x66i\x6cter_woo\x63omme\x72ce_\x61\x64d_to\x5f\x63\x61\x72\x74_\x76al\x69\x64\x61\x74io\x6e"),10,5);add_filter("\x77\x6focomm\x65rc\x65_\x61d\x64_\x63\x61\x72\x74\x5fitem",array($this,"fi\x6c\x74e\x72\x5fwo\x6fc\x6f\x6dm\x65\x72c\x65\x5fad\x64_cart_it\x65\x6d"),10,2);add_filter("\x77o\x6f\x63o\x6d\x6derce\x5fg\x65t\x5fca\x72t_i\x74e\x6d\x5ff\x72\x6fm\x5f\x73es\x73\x69o\x6e",array($this,"f\x69l\x74er_w\x6fo\x63o\x6d\x6derc\x65_\x67et_cart_\x69\x74em_\x66\x72\x6fm_s\x65\x73\x73ion"),10,3);add_filter("c\x72\x6f\x6e_s\x63\x68edul\x65s",array($this,"\x63ron\x5fsch\x65\x64ul\x65s"));}public function addMetaBoxes(){add_meta_box("d\x68\x72u-\x66u\x73ion-prov\x69der\x73-m\x73",__("Dhru F\x75\x73\x69\x6fn Serv\x69ce\x73"),array($this,"me\x74\x61\x62oxProvide\x72s"),"\x70r\x6fduc\x74","\x73id\x65");}public function save_post($product_id){if(!isset($_POST["po\x73t\x5fty\x70e"])||$_POST["\x70o\x73t\x5fty\x70\x65"]!="\x70\x72odu\x63\x74")return false;${"\x47LOBA\x4c\x53"}["f\x74l\x75y\x6b\x75\x67"]="p\x72\x6fd\x75\x63\x74\x5f\x69\x64";if(isset($_POST["\x64hru\x5fms_s\x65\x72v\x65\x72\x5fi\x64"]))update_post_meta(${${"\x47L\x4f\x42A\x4cS"}["\x66\x74\x6c\x75y\x6bug"]},"\x5f\x64\x68r\x75\x5fm\x73_ser\x76e\x72_\x69\x64",(int)$_POST["\x64hr\x75_ms\x5fser\x76\x65r_\x69d"]);if(isset($_POST["dh\x72\x75\x5f\x66usi\x6fn_ms_\x73\x65\x72vice\x5f\x69\x64"]))update_post_meta(${${"G\x4c\x4fB\x41L\x53"}["\x67\x64e\x76lq\x74"]},"_\x64\x68\x72u_\x66\x75s\x69\x6f\x6e_ms_s\x65r\x76i\x63e\x5f\x69\x64",(int)$_POST["\x64\x68r\x75\x5f\x66u\x73\x69\x6f\x6e\x5fms\x5fs\x65\x72vice_\x69\x64"]);}public function cron_schedules($chedules){${"G\x4c\x4fB\x41\x4c\x53"}["\x6f\x63\x75k\x74\x65\x6c\x64gx\x7a"]="\x73ch\x65d\x75\x6ce\x73";$jktqycskmg="sch\x65dul\x65s";$lpyvkoifu="\x73\x63\x68ed\x75les";${$jktqycskmg}["\x65\x76er\x79\x5ft\x77\x65n\x74\x79_m\x69n\x73"]=array("inte\x72\x76\x61l"=>60*20,"di\x73p\x6ca\x79"=>__("Ev\x65ry\x20Twenty \x4dinute\x73"));${$lpyvkoifu}["e\x76e\x72\x79\x5f\x74e\x6e\x5f\x6dins"]=array("\x69\x6et\x65r\x76\x61\x6c"=>60*10,"dis\x70\x6c\x61\x79"=>__("\x45ver\x79 T\x65\x6e M\x69n\x75\x74\x65s"));return${${"\x47\x4c\x4fBA\x4c\x53"}["\x6f\x63u\x6bt\x65l\x64gx\x7a"]};}public function filter_woocommerce_add_to_cart_validation($bool){$blahhtsysm="\x64\x68ru\x5fser\x76\x69c\x65_\x69d";global$woocommerce;${$blahhtsysm}=get_post_meta(${${"G\x4cO\x42A\x4c\x53"}["\x67d\x65\x76\x6c\x71\x74"]},"_d\x68r\x75_f\x75\x73\x69on_ms\x5fse\x72v\x69c\x65\x5f\x69d",1);$rvifklom="\x69\x6d\x65\x69";${"\x47L\x4f\x42\x41\x4c\x53"}["s\x77ny\x7a\x6c\x65\x79\x6b\x6fc"]="\x64\x68\x72u\x5fse\x72\x76\x69\x63e\x5fi\x64";${"G\x4c\x4f\x42\x41\x4cS"}["\x6fdh\x75\x71g\x69"]="\x69\x6d\x65\x69";if(empty(${${"\x47\x4c\x4fB\x41LS"}["\x73w\x6eyzl\x65yk\x6fc"]})||${${"G\x4c\x4f\x42A\x4c\x53"}["j\x79\x78s\x61\x79"]}==-1)return true;if(!isset($_POST["th\x65_im\x65i"])||empty($_POST["\x74\x68\x65_imei"])){$woocommerce->add_error(__("\x50le\x61\x73\x65\x20\x65\x6e\x74\x65r a\x20v\x61\x6ci\x64\x20\x69mei"));return false;}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x64huq\x67\x69"]}=trim($_POST["\x74h\x65\x5fi\x6dei"]);if(strlen(${$rvifklom})<15||strlen(${${"G\x4cO\x42\x41L\x53"}["w\x62\x74\x61\x64\x79\x77\x6dr"]})>15){$woocommerce->add_error(__("Th\x65 \x69m\x65\x69 \x6eee\x64\x73 t\x6f \x62e 1\x35\x20di\x67i\x74\x73"));return false;}if(!is_numeric(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x62\x74\x61\x64y\x77\x6d\x72"]})){$woocommerce->add_error(__("\x54\x68\x65 \x69mei n\x65e\x64s\x20to b\x65 nu\x6d\x65ric"));${${"\x47\x4cO\x42\x41L\x53"}["rtw\x67sn\x65i\x77y"]}=false;}$wubmxic="b\x6fo\x6c";return${$wubmxic};}public function filter_woocommerce_add_cart_item($cart_item_data,$cart_item_key){${"\x47L\x4f\x42\x41L\x53"}["\x70z\x66tw\x66u\x78v\x6ed"]="\x63\x61\x72t\x5f\x69t\x65m\x5fd\x61\x74a";$jgbocwtyrpl="\x63\x61\x72\x74\x5fitem_\x64\x61t\x61";if(!isset($_POST["\x74he\x5fi\x6de\x69"])||empty($_POST["\x74h\x65\x5fi\x6d\x65\x69"]))return${${"\x47\x4cOB\x41\x4cS"}["\x6a\x68\x66p\x6b\x6a\x6ey\x65"]};$this->log("f\x69lter\x5fwoo\x63\x6fmme\x72\x63e\x5fadd\x5f\x63\x61\x72\x74\x5fitem");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x7a\x66t\x77f\x75\x78v\x6e\x64"]}["\x69\x6de\x69"]=trim($_POST["th\x65\x5f\x69m\x65\x69"]);$this->log("add\x69\x6e\x67\x20\x63a\x72\x74 it\x65m i\x6de\x69:\x20{$cart_item_data['imei']}");return${$jgbocwtyrpl};}public function filter_woocommerce_get_cart_item_from_session($data,$values,$key){return array_merge(${${"GL\x4f\x42\x41\x4c\x53"}["\x77\x6b\x65\x62bd\x75\x77\x77\x6a\x76"]},${${"\x47L\x4f\x42\x41LS"}["\x66cj\x79\x66\x62"]});}public function actionAdminMenu(){add_menu_page(__("Woo\x63om\x6der\x63e D\x68\x72u \x46u\x73\x69on\x20M\x75\x74\x6c\x69\x20\x53e\x72v\x65r"),__("Wo\x6fco\x6d\x6derc\x65\x20\x44\x68\x72\x75 \x46us\x69o\x6e Mult\x69\x20\x53\x65r\x76er"),8,"woocom\x6d\x65\x72\x63\x65-dhr\x75-f\x75\x73\x69\x6fn-ms",array($this,"p\x61g\x65\x4f\x70\x74ions"));add_submenu_page("\x77o\x6fco\x6d\x6derc\x65-\x64\x68r\x75-\x66\x75\x73io\x6e-\x6ds",__("Do\x63\x75m\x65n\x74\x61\x74\x69\x6f\x6e"),__("\x44o\x63\x75me\x6et\x61\x74i\x6fn"),"\x6da\x6e\x61ge_\x6f\x70t\x69\x6f\x6e\x73","wo\x6f\x63\x6f\x6d\x6d\x65r\x63\x65-dhr\x75-\x66u\x73i\x6fn-\x64\x6f\x63-ms",array($this,"p\x61\x67eDoc\x75menta\x74ion"));}public function pageOptions(){global$wpdb;${"\x47L\x4f\x42\x41\x4c\x53"}["\x64t\x76\x7a\x7a\x74"]="d\x68\x72\x75_se\x72ver\x73";${"\x47\x4cOBAL\x53"}["k\x68\x7an\x62\x72\x72\x64"]="\x71\x75\x65r\x79";${${"\x47\x4cO\x42A\x4c\x53"}["\x6b\x68\x7a\x6eb\x72\x72\x64"]}="SE\x4c\x45\x43T *\x20\x46R\x4f\x4d\x20{$wpdb->prefix}dhru\x5fse\x72\x76e\x72\x73\x20\x4f\x52\x44ER\x20BY\x20crea\x74\x69\x6fn\x5f\x64ate\x20\x44ESC";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64t\x76z\x7a\x74"]}=$wpdb->get_results(${${"\x47L\x4f\x42\x41LS"}["\x63pi\x6d\x78g\x6b\x65\x66\x76\x66"]});require_once dirname(__FILE__)."/\x70\x61\x67es/\x61d\x6d\x69\x6e/op\x74\x69\x6f\x6es.\x70hp";}public function pageDocumentation(){require_once dirname(__FILE__)."/\x70a\x67\x65\x73/a\x64min/doc.\x70\x68\x70";}public function action_woocommerce_add_order_item_meta($item_id,$values){$cynkjoy="\x76a\x6c\x75es";${"\x47\x4cO\x42\x41\x4cS"}["h\x69\x75\x6b\x6b\x68\x79\x6e"]="\x69\x74\x65m\x5fid";$this->log("\x61ctio\x6e_\x77\x6f\x6f\x63om\x6derce_ad\x64_or\x64\x65\x72\x5fitem\x5f\x6de\x74\x61");${${"\x47\x4c\x4fB\x41LS"}["w\x62t\x61d\x79\x77\x6d\x72"]}=isset(${${"GL\x4f\x42\x41\x4c\x53"}["\x66c\x6ay\x66\x62"]}["i\x6dei"])?${$cynkjoy}["\x69\x6dei"]:$_POST["the_\x69\x6d\x65\x69"];$this->log("IM\x45\x49:\x20$imei");$wonkgq="\x69\x6dei";woocommerce_add_order_item_meta(${${"G\x4c\x4f\x42A\x4c\x53"}["\x68\x69u\x6b\x6b\x68y\x6e"]},"_the_im\x65i",${$wonkgq});woocommerce_add_order_item_meta(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x6b\x72u\x64\x66c"]},"\x49\x4d\x45I",${${"GL\x4f\x42\x41\x4c\x53"}["\x77\x62\x74\x61\x64\x79\x77m\x72"]});}public function action_woocommerce_before_add_to_cart_button(){global$post;${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x79s\x67\x75\x64"]}=(int)get_post_meta($post->ID,"\x5fdhr\x75_\x66u\x73\x69o\x6e_ms\x5fser\x76\x69ce\x5fi\x64",true);${"GLO\x42\x41\x4c\x53"}["\x6cw\x76\x75\x75\x6dzm\x79\x65k"]="\x73e\x72\x76\x69\x63e_\x69\x64";if(!${${"\x47\x4c\x4fB\x41\x4cS"}["\x62ys\x67ud"]}||${${"\x47L\x4f\x42\x41LS"}["\x6cwv\x75\x75\x6dzm\x79e\x6b"]}==-1)return false;echo "\t\t\x3c\x70\x3e\n\t\t\t\x3cl\x61\x62e\x6c>";_e("\x49\x4d\x45I");echo "\x3c/\x6cab\x65\x6c\x3e\n\t\t\t\x3c\x69\x6ep\x75t\x20type\x3d\"\x74\x65x\x74\"\x20\x69\x64\x3d\"\x74\x68e\x5f\x69\x6d\x65i\x22 n\x61me=\"\x74he_imei\"\x20valu\x65=\x22\x22 \x73\x74\x79le\x3d\x22\x77\x69\x64\x74\x68:7\x30%\x3b\x22 /\x3e\n\t\t\x3c/p\x3e\n\t\t";if(get_post_meta($post->ID,"\x5f\x73\x68\x6fw_dhr\x75_\x62\x72\x61n\x64",1)=="\x74ru\x65"){echo "\t\t<p\x3e\n\t\t\t<\x6ca\x62\x65\x6c>";_e("Br\x61n\x64");echo "\x3c/l\x61\x62\x65l>\n\t\t\t\x3c\x69\x6e\x70u\x74 \x74\x79\x70e=\"\x74e\x78t\x22\x20nam\x65\x3d\x22\x74\x68e_bra\x6e\x64\" \x76al\x75e\x3d\x22\"\x20/\x3e\n\t\t\x3c/p\x3e\n\t\t";}echo "\n";}public function actionWooOrderStatusProcessing($woo_order_id){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x77\x61\x69\x63\x63\x75\x69\x77e"]="\x69\x74\x65\x6ds";${"GL\x4f\x42\x41\x4cS"}["\x73\x77b\x71\x78\x78\x7a\x66\x6a\x6f\x65"]="\x77\x6fo\x5fo\x72de\x72\x5f\x69d";$this->log("Wooc\x6fm\x6der\x63e \x63han\x67ing\x20o\x72der \x74\x6f\x20p\x72oc\x65\x73si\x6eg,\x20\x73\x6f p\x61\x79\x6den\x74 \x69s\x20d\x6fn\x65");$this->log("\x6f\x72\x64er\x5f\x69d:\x20$woo_order_id");${${"\x47\x4cOB\x41\x4c\x53"}["\x67\x63\x66\x78y\x67i"]}=new WC_Order(${${"\x47\x4c\x4f\x42A\x4cS"}["s\x77\x62q\x78xz\x66\x6a\x6f\x65"]});${${"G\x4cO\x42\x41\x4cS"}["\x7ac\x75qn\x72\x6aq\x75\x71"]}=$the_order->get_items();foreach(${${"G\x4cO\x42\x41\x4c\x53"}["i\x77\x61i\x63c\x75\x69w\x65"]} as${${"G\x4cOB\x41\x4cS"}["p\x6b\x72\x75\x64\x66c"]}=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65xq\x72\x76\x73\x62\x72g"]}){$oelddxuas="dh\x72u\x5f\x73\x65\x72v\x65\x72\x5f\x69\x64";${"G\x4cO\x42\x41\x4c\x53"}["i\x73\x77\x6ch\x61\x79n"]="d\x68ru\x5ff\x75\x73\x69\x6f\x6e\x5f\x6d\x73\x5f\x73e\x72\x76\x69\x63e\x5fi\x64";${"\x47\x4c\x4fB\x41\x4cS"}["\x64\x65q\x6dlg\x72\x6a"]="\x64\x68\x72\x75_f\x75\x73\x69\x6f\x6e\x5fm\x73_\x73\x65\x72v\x69\x63\x65\x5f\x69\x64";${${"G\x4c\x4fB\x41\x4c\x53"}["\x77b\x74\x61d\x79wm\x72"]}=${${"\x47\x4cOB\x41\x4c\x53"}["\x65\x78\x71\x72\x76\x73\x62\x72\x67"]}["\x69\x74e\x6d\x5f\x6deta"]["\x5f\x74\x68\x65\x5f\x69m\x65i"][0];${"\x47\x4cO\x42\x41\x4c\x53"}["qt\x73\x78xx\x6d\x75"]="\x69t\x65m";$ztmqhexfgkpx="\x73\x74\x61\x74\x75s";$this->log("\x6frd\x65r \x69\x74e\x6d im\x65i: $imei");${${"G\x4c\x4f\x42\x41\x4c\x53"}["xqf\x70o\x6e\x74q\x79\x76t"]}=(int)get_post_meta(${${"\x47L\x4f\x42A\x4cS"}["e\x78qrv\x73br\x67"]}["\x70\x72\x6fduct_\x69d"],"\x5f\x64\x68ru\x5f\x6ds_\x73\x65\x72v\x65r\x5f\x69\x64",true);$dvcmed="d\x68r\x75\x5f\x66\x75\x73\x69\x6f\x6e\x5fms\x5f\x73\x65\x72\x76\x69ce\x5f\x69\x64";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x64\x65\x71\x6d\x6c\x67\x72\x6a"]}=(int)get_post_meta(${${"\x47\x4c\x4fB\x41\x4c\x53"}["qts\x78x\x78\x6d\x75"]}["\x70\x72oduct_\x69d"],"\x5f\x64hru\x5ff\x75si\x6fn\x5f\x6ds\x5f\x73\x65\x72v\x69ce\x5fi\x64",true);$gqevblgmbr="\x69\x74em_id";if(!${${"\x47\x4cO\x42AL\x53"}["\x78q\x66p\x6fn\x74\x71\x79\x76\x74"]}||${$oelddxuas}==-1){$this->log("\x64\x68\x72\x75 \x73\x65rv\x65r\x20i\x64 is\x20i\x6e\x76\x61l\x69\x64 \x6f\x72\x20\x6eo\x74\x20\x73e\x6ce\x63\x74\x65\x64,\x20ski\x70\x70i\x6eg\x20\x70\x72od\x75c\x74\x20i\x64\x20-> {$item['product_id']}");continue;}if(!${${"\x47\x4c\x4fB\x41L\x53"}["iswl\x68\x61\x79\x6e"]}||${$dvcmed}==-1){$this->log("d\x68r\x75\x20se\x72vice\x20\x70\x72o\x76\x69der\x20\x69d\x20is n\x6ft\x20\x76\x61\x6c\x69\x64\x20\x6f\x72\x20emp\x74\x79,\x20skippin\x67\x20\x70\x72o\x64uc\x74\x20i\x64 -> {$item['product_id']}");continue;}if(${$ztmqhexfgkpx}=woocommerce_get_order_item_meta(${${"\x47L\x4fB\x41L\x53"}["\x70kr\x75\x64\x66c"]},"\x5fd\x68ru\x5f\x66u\x73\x69\x6fn\x5f\x6f\x72\x64\x65\x72\x5fit\x65\x6d\x5f\x73tatus",1)){if(${${"\x47\x4cO\x42\x41\x4c\x53"}["a\x6a\x69\x61\x6a\x62\x67\x69\x73\x6b"]}!="\x63\x61nc\x65\x6cl\x65d"){$dfwonelwco="\x69\x74\x65\x6d\x5f\x69\x64";woocommerce_add_order_item_meta(${$dfwonelwco},"\x5fd\x68\x72\x75_fu\x73\x69\x6fn\x5forde\x72_\x69\x74em_s\x74at\x75\x73","\x70en\x64in\x67");woocommerce_add_order_item_meta(${${"\x47\x4cO\x42A\x4c\x53"}["\x70\x6b\x72u\x64\x66\x63"]},"_\x64h\x72u_\x66u\x73io\x6e_\x6frd\x65\x72\x5fre\x73p\x6f\x6ese","");}continue;}$this->placeDhruFusionNewOrder(${$gqevblgmbr},${${"\x47\x4cO\x42\x41\x4c\x53"}["wbt\x61\x64\x79w\x6d\x72"]},${${"GL\x4f\x42\x41L\x53"}["\x78q\x66\x70\x6fn\x74\x71\x79vt"]},${${"\x47L\x4f\x42\x41\x4c\x53"}["\x75\x66zbm\x76uf"]});update_post_meta($the_order->id,"\x5f\x64hru_\x6f\x72d\x65\x72","\x79e\x73");}}public function placeDhruFusionNewOrder($woo_order_item_id,$imei,$dhru_server_id,$service_id){$bddembrgk="\x64h\x72u_ser\x76er";$wxhkrwlec="\x73\x65\x72\x76i\x63e_\x69d";$qrslmu="r\x65sp\x6f\x6e\x73\x65";${"\x47\x4c\x4fBAL\x53"}["\x73mm\x6bg\x6e\x67\x6c\x69"]="\x64h\x72u\x5fs\x65\x72\x76\x65r\x5f\x69\x64";${"\x47L\x4f\x42ALS"}["\x6a\x6de\x64\x64l\x6ae"]="\x64hr\x75\x5fs\x65r\x76\x65\x72";${"\x47LOBA\x4cS"}["\x6fclf\x77\x65m\x71"]="\x70\x61r\x61";${$bddembrgk}=$this->getDhruServer(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x6d\x6d\x6b\x67\x6e\x67l\x69"]});if(empty(${${"\x47\x4cO\x42\x41LS"}["j\x6de\x64dl\x6a\x65"]})){$this->log("\x54\x68\x65 dhr\x75 \x73er\x76\x65r\x20id\x20\x64\x6fe\x73\x20n\x6ft\x20\x65\x78\x69s\x74\x73");return false;}${${"\x47LOBA\x4c\x53"}["\x71\x68\x73\x68\x62\x66bc\x61\x6b"]}=new SB_DhruFusion($dhru_server->server_url,$dhru_server->api_username,$dhru_server->api_key);${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6f\x63l\x66\x77e\x6d\x71"]}=array("\x49MEI"=>${${"\x47\x4c\x4fB\x41\x4cS"}["\x77bt\x61dy\x77mr"]},"\x49D"=>${$wxhkrwlec});$this->log("\x50L\x41\x43\x49NG\x20\x44H\x52\x55\x20FU\x53\x49ON\x20OR\x44\x45R");${$qrslmu}=$api->action("\x70l\x61c\x65\x69mei\x6f\x72de\x72",${${"\x47\x4cOB\x41\x4c\x53"}["\x74\x65fyh\x63\x75\x6f\x71\x79x"]});$this->log(${${"G\x4c\x4fBALS"}["\x6b\x64tj\x64or"]});if(isset(${${"\x47L\x4fB\x41L\x53"}["\x6b\x64\x74\x6a\x64\x6f\x72"]}["S\x55C\x43\x45\x53\x53"])){$uzmesxjyz="\x72\x65sp\x6f\x6e\x73\x65";$ckewro="\x72\x65\x73\x70\x6f\x6ese";$wjqnepmsfd="\x77\x6fo_o\x72der_i\x74\x65m\x5f\x69d";${"\x47\x4cO\x42\x41L\x53"}["\x6d\x69p\x61\x67\x73\x75\x72\x65\x73\x63\x7a"]="\x77\x6f\x6f\x5f\x6fr\x64er_\x69te\x6d_\x69\x64";${"G\x4c\x4fB\x41L\x53"}["\x69\x66\x79\x6a\x69e\x66\x68\x75vl"]="\x72\x65\x73\x70on\x73\x65";$this->log("\x61ddi\x6e\x67\x20dhru o\x72d\x65r\x20\x72\x65f\x65\x72\x65\x6ec\x65 \x61\x6ed \x73t\x61\x74u\x73\x20to\x20\x77o\x6f\x63\x6f\x6d\x6de\x72c\x65 o\x72\x64\x65\x72 ($woo_order_item_id)");$gtxubujvyvp="\x77o\x6f\x5f\x6f\x72\x64\x65r_i\x74\x65m_\x69d";$this->log("\x64hr\x75 \x66u\x73i\x6fn \x72e\x66\x65\x72\x65\x6e\x63\x65i\x64: {$response['SUCCESS'][0]['REFERENCEID']}");${"\x47\x4c\x4f\x42\x41L\x53"}["\x6b\x73\x6b\x70uq\x63"]="wo\x6f\x5f\x6fr\x64\x65r\x5f\x69te\x6d\x5fi\x64";woocommerce_add_order_item_meta(${${"\x47LO\x42\x41LS"}["\x6di\x70\x61\x67\x73\x75r\x65\x73\x63z"]},"\x5fd\x68\x72u_f\x75\x73i\x6fn_or\x64\x65\x72\x5fi\x74\x65m_st\x61tus","\x70endin\x67");${"\x47\x4cOB\x41\x4c\x53"}["\x6b\x6dm\x6b\x67co\x70\x73\x79"]="r\x65\x73p\x6f\x6e\x73\x65";woocommerce_add_order_item_meta(${${"\x47\x4c\x4fB\x41\x4c\x53"}["k\x73\x6b\x70\x75\x71c"]},"\x5f\x64\x68r\x75\x5ff\x75\x73\x69o\x6e\x5f\x6fr\x64\x65\x72\x5fi\x64",${$ckewro}["\x53\x55\x43CE\x53S"][0]["\x52\x45F\x45REN\x43EID"]);woocommerce_add_order_item_meta(${$gtxubujvyvp},"\x5f\x64hru_\x66u\x73\x69o\x6e_or\x64\x65\x72\x5fre\x73pon\x73e",sprintf("M\x65\x73\x73ag\x65:\x20%\x73\x3c\x62\x72/\x3e\x52\x65f\x65\x72\x65nce\x20I\x64:\x20\x25\x64",${${"\x47L\x4fB\x41L\x53"}["\x69\x66\x79j\x69\x65\x66\x68\x75\x76\x6c"]}["\x53UCCE\x53S"][0]["\x4dESSAG\x45"],${${"G\x4cOB\x41L\x53"}["\x6bm\x6dk\x67\x63\x6f\x70\x73y"]}["\x53\x55\x43\x43E\x53S"][0]["RE\x46E\x52ENC\x45\x49D"]));woocommerce_add_order_item_meta(${${"GLO\x42\x41L\x53"}["\x73r\x63\x6e\x67t\x74ech"]},"Unlo\x63\x6b \x73\x74a\x74\x75\x73:",${${"\x47\x4cOBA\x4cS"}["\x6b\x64\x74\x6ad\x6f\x72"]}["SU\x43C\x45SS"][0]["\x4d\x45\x53SAGE"]);woocommerce_add_order_item_meta(${$wjqnepmsfd},"Unl\x6fck\x20Re\x66e\x72e\x6e\x63e\x20ID:",${$uzmesxjyz}["\x53\x55CCESS"][0]["R\x45\x46\x45\x52\x45N\x43EI\x44"]);}}public function getOrderDetails($dhru_ref_id,$dhru_server_id){$fhlfgmbedr="\x64\x68r\x75_s\x65\x72\x76\x65\x72_i\x64";${"\x47\x4cO\x42\x41\x4cS"}["\x6e\x6d\x65s\x6e\x64d\x67\x71u\x6fe"]="\x70a\x72a";$bpsedbreg="\x64\x68\x72\x75\x5fref_i\x64";${"GLO\x42\x41L\x53"}["\x65\x65\x6d\x61g\x64\x71\x63"]="\x72e\x71\x75e\x73t";${${"\x47L\x4f\x42\x41\x4cS"}["\x78bm\x65v\x71\x68jng\x66"]}=$this->getDhruServer(${$fhlfgmbedr});${"GL\x4fB\x41LS"}["\x6ew\x64\x72\x77\x6f\x78\x79\x62\x61"]="\x70ar\x61";if(empty(${${"GL\x4fB\x41L\x53"}["\x78b\x6de\x76\x71\x68j\x6eg\x66"]}))return false;$this->log("\x67et\x74i\x6eg\x20\x64\x68r\x75\x20\x66\x75\x73\x69\x6f\x6e o\x72der\x20\x64\x65ta\x69\x6c\x73: ".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x69sy\x70s\x73\x6c\x6c\x68"]});${${"GL\x4fBA\x4cS"}["qh\x73\x68\x62\x66\x62c\x61k"]}=new SB_DhruFusion($dhru_server->server_url,$dhru_server->api_username,$dhru_server->api_key);${${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x77\x64\x72\x77\x6f\x78\x79\x62\x61"]}=array("I\x44"=>${$bpsedbreg});${${"\x47\x4c\x4f\x42\x41LS"}["eem\x61\x67\x64qc"]}=$api->action("g\x65time\x69or\x64er",${${"G\x4c\x4f\x42\x41\x4c\x53"}["n\x6d\x65\x73\x6e\x64\x64\x67\x71\x75oe"]});return${${"\x47\x4cO\x42\x41\x4cS"}["\x66\x6cl\x79\x71\x62b\x73c\x70\x6a"]};}public function getDhruFusionProviders(){}public function getDhruFusionServices($server_url,$username,$api_key){${"\x47\x4cO\x42\x41\x4c\x53"}["\x6f\x72\x63\x76\x6f\x6a\x6ci\x68"]="\x73\x65\x72v\x65r\x5f\x75r\x6c";$pwgmftauj="\x75\x73\x65\x72\x6ea\x6d\x65";$this->log("\x43on\x6e\x65\x63ti\x6fn t\x6f d\x68\x72u\x20\x66\x75s\x69\x6f\x6e s\x65\x72\x76e\x72\x20t\x6f\x20g\x65t s\x65r\x76i\x63\x65\x73\x20l\x69\x73t");${"\x47\x4cO\x42AL\x53"}["e\x7a\x74emo\x72\x61\x70"]="\x61pi_key";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x73\x74nwag\x64odw\x67"]="ap\x69\x5f\x6be\x79";$this->log("\x44hr\x75 \x66\x75\x73\x69on\x20ur\x6c:\x20".${${"\x47L\x4fB\x41L\x53"}["\x6b\x64w\x67\x72p\x72m\x78o"]});${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x61\x6d\x78\x6c\x77l"]="api";$this->log("\x64\x68\x72u ap\x69\x20\x75s\x65\x72\x6ea\x6de:\x20".${$pwgmftauj});$rvpjjgx="r\x65\x71\x75\x65s\x74";$this->log("d\x68\x72\x75 \x61p\x69\x20k\x65y: ".${${"\x47LO\x42\x41\x4c\x53"}["\x73\x74\x6e\x77\x61g\x64\x6f\x64\x77\x67"]});${${"\x47L\x4f\x42A\x4cS"}["\x6b\x61m\x78\x6c\x77\x6c"]}=new SB_DhruFusion(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x72\x63\x76\x6fj\x6c\x69h"]},${${"\x47L\x4f\x42A\x4c\x53"}["jqw\x6a\x71v\x6a\x72"]},${${"\x47L\x4fB\x41\x4c\x53"}["\x65\x7a\x74\x65m\x6f\x72ap"]});${$rvpjjgx}=$api->action("i\x6d\x65\x69\x73er\x76i\x63e\x6ci\x73t");return${${"G\x4c\x4fBA\x4c\x53"}["\x66\x6c\x6c\x79q\x62\x62\x73\x63\x70\x6a"]};}public function wrapCheckDhruOrders(){${"GLOB\x41L\x53"}["d\x70c\x64x\x6e\x6c"]="\x6f\x72\x64\x65r\x73";require_once WP_PLUGIN_DIR."/w\x6focomme\x72\x63e/\x63las\x73\x65\x73/c\x6ca\x73s-\x77\x63-\x6f\x72\x64e\x72\x2ep\x68p";${"\x47LOB\x41LS"}["\x70\x67h\x6a\x73\x74\x75\x74\x72y\x77"]="\x6f\x72d\x65\x72";${"\x47\x4c\x4fBA\x4c\x53"}["\x6a\x6clb\x64m\x67"]="o\x72\x64\x65\x72s";$this->log("\x53T\x41R\x54ING C\x52\x4fN\x20T\x41\x53\x4b --\x3e\x20\x43\x48E\x43KING\x20O\x52\x44E\x52\x53\x20S\x54A\x54U\x53");${${"\x47LO\x42A\x4c\x53"}["\x6all\x62\x64mg"]}=get_posts(array("\x6eumbe\x72\x70\x6fst\x73"=>-1,"p\x6f\x73t_\x74y\x70\x65"=>"s\x68\x6fp_\x6fr\x64\x65\x72","o\x72\x64\x65\x72b\x79"=>"\x70ost\x5fdate","\x6f\x72\x64e\x72"=>"D\x45\x53\x43","t\x61x_\x71ue\x72y"=>array(array("\x74\x61\x78\x6f\x6e\x6f\x6dy"=>"sh\x6f\x70\x5fo\x72\x64\x65\x72\x5f\x73\x74a\x74u\x73","f\x69\x65ld"=>"\x73\x6c\x75g","te\x72m\x73"=>"\x70ro\x63ess\x69\x6eg")),"\x6deta_k\x65\x79"=>"_\x64hr\x75_\x6frd\x65\x72","m\x65\x74\x61_\x76\x61lue"=>"yes"));$this->log("\x54\x6fta\x6c\x20\x4fr\x64\x65\x72\x73\x20\x74o\x20pr\x6fces\x73:\x20".count(${${"G\x4c\x4f\x42\x41\x4cS"}["\x64\x70\x63\x64\x78nl"]}));foreach(${${"\x47\x4c\x4f\x42\x41LS"}["\x78g\x75\x6d\x62\x63iu\x79"]} as${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70ghj\x73tu\x74\x72y\x77"]}){${"\x47\x4cOBA\x4cS"}["o\x62w\x64\x78tt\x6f\x75v"]="a\x6c\x6c_\x69t\x65\x6d\x73\x5f\x63o\x6d\x70\x6c\x65t\x65\x64";$fxvidufcfg="o\x72\x64\x65\x72_\x64\x68\x72\x75_\x72\x65\x73p\x6fnse";$gcgtecd="\x6f\x72d\x65r\x5fdhr\x75_r\x65s\x70o\x6es\x65";${${"\x47L\x4f\x42A\x4c\x53"}["hh\x6e\x63\x6c\x76\x6e\x66v\x77\x69"]}=new WC_Order($order->ID);${$fxvidufcfg}="";${${"\x47\x4cOB\x41\x4c\x53"}["\x6f\x62\x77\x64\x78\x74\x74ou\x76"]}=true;foreach($woo_order->get_items()as${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["pkrud\x66c"]}=>${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x78\x71\x72\x76s\x62rg"]}){${"G\x4c\x4fB\x41\x4c\x53"}["\x68\x79\x76\x69v\x6f\x75vm\x79"]="\x72e\x73";${"\x47L\x4f\x42A\x4c\x53"}["\x64\x75\x6f\x78\x69\x70w\x73\x78\x79"]="\x64hr\x75\x5fo\x72\x64\x65r\x5f\x69\x64";$dtqjdvop="dh\x72\x75\x5f\x6f\x72\x64\x65\x72_\x69\x64";${"\x47L\x4fBALS"}["kp\x6fo\x7aom\x77\x66"]="ord\x65r\x5fi\x74\x65\x6d\x5f\x73\x74a\x74u\x73";${$dtqjdvop}=woocommerce_get_order_item_meta(${${"\x47\x4c\x4fB\x41\x4c\x53"}["pk\x72\x75\x64\x66\x63"]},"_\x64\x68\x72u_f\x75\x73\x69on\x5f\x6frd\x65r_\x69\x64",1);$neokhtbvmavg="\x72\x65\x73";if(!${${"\x47L\x4fB\x41\x4cS"}["d\x75\x6fxi\x70\x77\x73x\x79"]}){$this->log("t\x68\x65\x20woo\x63\x6f\x6d\x6derc\x65 \x6f\x72\x64\x65\x72_i\x74e\x6d_i\x64 ($item_id)\x20h\x61s\x20no\x74 \x61 dhru\x20fu\x73\x69on \x6f\x72d\x65\x72\x20id,\x20i\x74 \x69\x73\x20--\x3e\x20$dhru_order_id");continue;}${${"\x47\x4c\x4fBAL\x53"}["\x6b\x70o\x6f\x7aomwf"]}=woocommerce_get_order_item_meta(${${"\x47LO\x42\x41\x4c\x53"}["\x65\x78\x71r\x76\x73\x62rg"]}["\x69d"],"_\x64\x68r\x75\x5ff\x75\x73io\x6e_or\x64\x65r\x5f\x69tem_\x73t\x61tu\x73",1);if(${${"\x47\x4cO\x42A\x4c\x53"}["r\x6f\x6ec\x6e\x6fr\x65\x6fb"]}=="c\x6f\x6d\x70l\x65\x74\x65\x64")continue;$vxropmokny="ite\x6d";$qdkvyzegr="\x64hr\x75\x5f\x6f\x72de\x72\x5f\x69\x64";$this->log("\x64\x68\x72\x75\x20fus\x69\x6fn\x20r\x65\x66\x65\x72\x65\x6e\x63\x65\x5f\x69\x64:\x20$dhru_order_id");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x71\x66\x70\x6f\x6e\x74\x71y\x76\x74"]}=(int)get_post_meta(${$vxropmokny}["pr\x6f\x64u\x63\x74_id"],"\x5fdhr\x75_m\x73\x5f\x73\x65\x72\x76\x65\x72\x5f\x69\x64",1);${${"G\x4c\x4f\x42\x41L\x53"}["\x68\x79\x76\x69vou\x76my"]}=$this->getOrderDetails(${$qdkvyzegr},${${"GLO\x42\x41LS"}["\x78q\x66\x70\x6fn\x74q\x79\x76\x74"]});$this->log("\x6f\x72de\x72\x20\x64e\x74\x61i\x6cs\x20r\x65s\x70on\x73\x65");$this->log(${${"G\x4cO\x42A\x4c\x53"}["h\x74\x74v\x6b\x61\x7a\x62"]});if(isset(${$neokhtbvmavg}["\x53\x55CCES\x53"])){${"\x47\x4cO\x42\x41L\x53"}["\x6b\x71\x76\x69\x6dgk"]="r\x65\x73";$opdcrizv="\x72\x65s";if(((int)${${"G\x4cOBA\x4cS"}["\x6bqv\x69\x6d\x67\x6b"]}["SU\x43CE\x53S"][0]["S\x54\x41\x54US"])==4){woocommerce_update_order_item_meta(${${"\x47L\x4fB\x41L\x53"}["pk\x72\x75df\x63"]},"_\x64hr\x75\x5ffus\x69\x6fn\x5fo\x72\x64\x65\x72_i\x74em_st\x61tu\x73","\x63\x6f\x6dp\x6cet\x65\x64");${"\x47\x4c\x4f\x42\x41\x4cS"}["y\x72\x62\x65iet\x69q"]="\x69\x74\x65\x6d\x5f\x69\x64";woocommerce_update_order_item_meta(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70k\x72u\x64\x66c"]},"\x5f\x64\x68ru\x5f\x66us\x69o\x6e\x5ford\x65\x72\x5fre\x73p\x6f\x6es\x65",${${"\x47\x4c\x4f\x42\x41\x4cS"}["h\x74\x74\x76\x6baz\x62"]}["\x53\x55\x43C\x45\x53S"][0]["C\x4fD\x45"]);$fplclvnj="\x72\x65s";woocommerce_update_order_item_meta(${${"\x47L\x4f\x42AL\x53"}["\x79\x72\x62e\x69e\x74iq"]},"\x55\x6elo\x63k \x73t\x61t\x75\x73:",${$fplclvnj}["\x53\x55\x43\x43E\x53\x53"][0]["C\x4fDE"]);${${"G\x4c\x4f\x42AL\x53"}["\x6f\x61\x64\x62\x6d\x6e\x63\x78\x64"]}.=${${"GL\x4f\x42\x41L\x53"}["\x68\x74\x74v\x6b\x61\x7ab"]}["S\x55\x43\x43E\x53S"][0]["C\x4fD\x45"];}elseif((int)${${"\x47\x4cO\x42\x41\x4c\x53"}["\x68\x74\x74\x76\x6b\x61z\x62"]}["\x53\x55C\x43ESS"][0]["\x53T\x41\x54US"]==3){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x79\x6a\x64e\x63"]="\x72\x65s";$wgujffjpx="i\x74\x65m_i\x64";woocommerce_update_order_item_meta(${$wgujffjpx},"\x5fdh\x72\x75_\x66us\x69o\x6e\x5forder_\x69tem_s\x74a\x74u\x73","fa\x69l\x65d");woocommerce_update_order_item_meta(${${"\x47L\x4f\x42AL\x53"}["\x70\x6b\x72\x75df\x63"]},"\x5fd\x68\x72\x75\x5f\x66\x75\x73\x69\x6fn_o\x72\x64er_resp\x6fns\x65",${${"\x47\x4cO\x42\x41\x4c\x53"}["ey\x6a\x64\x65c"]}["S\x55C\x43\x45\x53S"][0]["C\x4fDE"]);woocommerce_update_order_item_meta(${${"\x47\x4cO\x42\x41\x4cS"}["\x70k\x72\x75\x64f\x63"]},"\x55nlock\x20stat\x75\x73:",${${"\x47\x4cO\x42\x41\x4c\x53"}["\x68t\x74\x76\x6b\x61z\x62"]}["\x53\x55\x43\x43ES\x53"][0]["\x43\x4fD\x45"]);$tqnfxlybgd="\x72e\x73";${${"G\x4c\x4f\x42\x41\x4cS"}["o\x61\x64\x62\x6dn\x63\x78\x64"]}.=${$tqnfxlybgd}["\x53\x55CCE\x53S"][0]["\x43O\x44E"];$this->log("or\x64e\x72\x20\x66\x69\x6ce\x64,\x20\x63\x6f\x64e =\x20\x33, n\x6ft\x20fou\x6e\x64");}elseif(empty(${$opdcrizv}["\x53U\x43C\x45\x53S"][0]["S\x54AT\x55S"])){${"G\x4c\x4fB\x41\x4cS"}["\x6a\x75f\x6c\x70vri"]="\x69\x74\x65m\x5f\x69\x64";${"G\x4cO\x42\x41\x4cS"}["f\x78\x69q\x63o\x66wn\x71q"]="\x69\x74\x65\x6d\x5f\x69\x64";${"GL\x4f\x42\x41\x4cS"}["q\x70\x79s\x6cm"]="\x6f\x72\x64e\x72\x5fdh\x72\x75\x5fresp\x6fn\x73\x65";$hgvywlnvbqn="it\x65m\x5f\x69\x64";woocommerce_update_order_item_meta(${${"\x47\x4cOBA\x4cS"}["\x6a\x75\x66\x6cp\x76\x72\x69"]},"_\x64h\x72u_\x66usi\x6fn_\x6f\x72de\x72\x5f\x69\x74\x65m\x5fs\x74a\x74u\x73","\x70\x65\x6edi\x6e\x67");woocommerce_update_order_item_meta(${${"\x47\x4c\x4f\x42\x41\x4cS"}["f\x78\x69\x71co\x66w\x6eq\x71"]},"_d\x68ru_f\x75\x73\x69\x6f\x6e_o\x72\x64er\x5f\x72esp\x6f\x6e\x73e","Th\x65 \x6f\x72d\x65r\x20h\x61s n\x6f\x20statu\x73\x20c\x6fd\x65");woocommerce_update_order_item_meta(${$hgvywlnvbqn},"U\x6e\x6co\x63k\x20st\x61tu\x73:","T\x68\x65 \x6fr\x64e\x72\x20\x68\x61\x73\x20\x6eo stat\x75\x73\x20c\x6fd\x65");$this->log("\x6frd\x65r \x6e\x75ll");$weewrwcaecc="\x61l\x6c_it\x65\x6d\x73\x5fcomple\x74\x65\x64";${${"\x47\x4c\x4fB\x41\x4c\x53"}["q\x70y\x73\x6cm"]}.="The \x6f\x72de\x72 \x68\x61s\x20\x6eo\x20\x73tat\x75s c\x6f\x64\x65";${$weewrwcaecc}=false;}else{${"\x47\x4c\x4f\x42\x41L\x53"}["\x6d\x70\x68n\x64\x6f"]="i\x74\x65\x6d\x5fid";$ybyhswf="\x69t\x65\x6d\x5f\x69\x64";${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x61\x66\x69\x68m\x62"]="o\x72\x64\x65r_\x64\x68r\x75_r\x65\x73p\x6fn\x73\x65";$this->log("\x6f\x72d\x65r \x55NK\x4e\x4fW\x20\x43\x4f\x44\x45");woocommerce_update_order_item_meta(${$ybyhswf},"\x5fd\x68ru_fus\x69on_\x6f\x72d\x65r_i\x74e\x6d_s\x74\x61t\x75\x73","\x70e\x6eding");woocommerce_update_order_item_meta(${${"\x47L\x4f\x42A\x4c\x53"}["\x6d\x70\x68n\x64\x6f"]},"\x5f\x64hr\x75\x5ffus\x69\x6fn\x5fo\x72\x64er\x5fres\x70o\x6es\x65","");$seycuvyj="i\x74\x65m_\x69\x64";${"\x47\x4c\x4fB\x41\x4c\x53"}["uk\x64\x63\x73\x69\x62"]="\x61\x6c\x6c\x5f\x69t\x65\x6ds\x5f\x63\x6fm\x70l\x65\x74\x65\x64";woocommerce_update_order_item_meta(${$seycuvyj},"U\x6e\x6c\x6fc\x6b \x73\x74at\x75\x73:","Th\x65 \x6frde\x72 \x68a\x73\x20\x6eo\x20s\x74at\x75s\x20co\x64\x65-");${${"GLO\x42\x41\x4cS"}["e\x61f\x69\x68\x6db"]}.="\x54\x68\x65\x20\x6f\x72\x64e\x72 \x68a\x73\x20no \x73\x74\x61\x74\x75\x73\x20\x63\x6f\x64e";${${"\x47LOB\x41\x4c\x53"}["u\x6bd\x63\x73ib"]}=false;}}elseif(isset(${${"\x47\x4c\x4fBA\x4cS"}["\x68t\x74\x76ka\x7a\x62"]}["ERRO\x52"])){$amovdh="it\x65\x6d\x5f\x69\x64";$yolukrrlw="\x72e\x73";${"G\x4cOB\x41L\x53"}["\x75b\x68\x72\x74\x62\x6d"]="\x69te\x6d\x5f\x69\x64";$xprwao="\x72\x65s";$aouyzgvuw="or\x64e\x72_\x64\x68r\x75_\x72\x65\x73p\x6f\x6e\x73e";woocommerce_update_order_item_meta(${${"G\x4c\x4f\x42\x41L\x53"}["u\x62h\x72\x74\x62\x6d"]},"\x5f\x64\x68ru_f\x75\x73i\x6fn\x5fo\x72de\x72\x5fit\x65m\x5fs\x74a\x74u\x73","\x66\x61\x69led");$iyiivfc="r\x65\x73";woocommerce_update_order_item_meta(${$amovdh},"\x5fd\x68\x72\x75\x5f\x66u\x73ion_o\x72der_\x72\x65\x73\x70o\x6ese",sprintf("\x25\x73\x3c\x62r/\x3e\x25\x73",${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x74t\x76\x6baz\x62"]}["\x45\x52ROR"][0]["\x4d\x45S\x53AGE"],${$xprwao}["ER\x52\x4f\x52"][0]["F\x55L\x4c_\x44ES\x43R\x49\x50TI\x4fN"]));${$aouyzgvuw}.=sprintf("%\x73\x3c\x62\x72/>%s",${$yolukrrlw}["ERR\x4f\x52"][0]["\x4d\x45S\x53AG\x45"],${$iyiivfc}["\x45R\x52O\x52"][0]["F\x55LL_\x44E\x53\x43RIP\x54\x49\x4f\x4e"]);}}update_post_meta($woo_order->id,"_dhru_\x66\x75\x73io\x6e_ord\x65r\x5f\x72esp\x6fn\x73e",${$gcgtecd});if(${${"\x47\x4c\x4f\x42AL\x53"}["\x70ibt\x76\x77"]}){$woo_order->update_status("co\x6dp\x6ce\x74\x65d");}}die("C\x52O\x4e J\x4f\x42 E\x4eDS");}public function metaboxProviders($post){${"\x47LO\x42A\x4cS"}["\x6c\x6ak\x79o\x63\x6d\x65"]="\x64h\x72\x75\x5f\x73\x65\x72\x76\x65r\x73";global$wpdb;${${"\x47L\x4f\x42\x41\x4c\x53"}["l\x6a\x6byoc\x6de"]}=$this->getDhruServers();${${"\x47L\x4f\x42A\x4cS"}["\x64vqnr\x66\x64\x6c\x77j"]}=get_post_meta($post->ID,"\x5f\x64h\x72u\x5fm\x73\x5f\x73\x65\x72v\x65\x72_id",1);${${"\x47LOB\x41L\x53"}["\x75f\x7a\x62mv\x75\x66"]}=get_post_meta($post->ID,"_\x64hr\x75_fu\x73io\x6e_\x6ds\x5fs\x65\x72\x76\x69ce_i\x64",1);require_once dirname(__FILE__)."/\x70ages/\x61\x64\x6di\x6e/\x6d\x65t\x61b\x6f\x78.\x70\x68\x70";}public function woocommerce_after_order_shipping($order){echo "\x3c/\x64\x69\x76\x3e\n<\x64iv \x63\x6ca\x73\x73\x3d\"\x6fr\x64\x65r\x5f\x64at\x61_\x63\x6fl\x75\x6dn\">\n\x20\x20\x20 \x3ch4>";_e("\x44hr\x75\x20\x46u\x73\x69\x6f\x6e O\x72der\x20De\x74\x61\x69\x6c\x73");echo "\x3c/h\x34\x3e\n \x20";print get_post_meta($order->id,"_d\x68r\x75_\x66u\x73\x69\x6f\x6e_\x6frde\x72_r\x65\x73pons\x65",1);}public function woocommerce_after_template_part($template_name,$template_path,$located,$args){$this->log("wo\x6fcom\x6der\x63\x65_\x61fter\x5ftempl\x61\x74e_\x70art");$this->log(${${"GL\x4fB\x41\x4c\x53"}["\x6fi\x69\x66\x6cm\x79\x66"]});${${"GL\x4f\x42\x41\x4c\x53"}["\x67pl\x72\x74\x77\x73\x75\x67\x69"]}=get_post_meta(@${${"\x47\x4c\x4fB\x41\x4c\x53"}["oii\x66\x6c\x6d\x79f"]}["ord\x65r"]->id,"_\x64\x68\x72u\x5ff\x75sio\x6e_or\x64e\x72_r\x65\x73\x70\x6fn\x73\x65",1);print${${"\x47\x4cOB\x41\x4cS"}["\x67\x70\x6cr\x74w\x73u\x67\x69"]};}public function action_woocommerce_email_order_meta($order,$false){$this->log("\x61\x63\x74\x69o\x6e_w\x6f\x6f\x63ommer\x63\x65\x5f\x65\x6da\x69\x6c\x5f\x6frder\x5fm\x65ta\n\x3d\x3d\x3d==\x3d\x3d\x3d==\x3d\x3d=\x3d\x3d===\x3d=\x3d===\x3d\x3d\x3d\x3d===\x3d\x3d\x3d==\x3d\x3d=\x3d\x3d");$this->log(${${"GLOB\x41\x4cS"}["\x6f\x72v\x68\x76\x61\x67\x69"]});${"GL\x4fBA\x4c\x53"}["\x65vw\x79w\x68r\x76"]="\x64\x68\x72u\x5f\x63\x6f\x64\x65";${${"G\x4cOBALS"}["evw\x79\x77\x68\x72\x76"]}=get_post_meta($order->id,"\x5fdh\x72\x75_\x66usio\x6e_\x6fr\x64er\x5fre\x73\x70o\x6e\x73\x65",1);echo " \x20\x20 \t<h2>";_e("\x55\x6eloc\x6b De\x74\x61i\x6c\x73");echo "</\x68\x32\x3e\n\x20 \x20\x20\t\x3c\x70\x3e";print${${"\x47\x4c\x4fB\x41LS"}["\x67pl\x72tws\x75g\x69"]};echo "</\x70\x3e\n\x20 \x20\x20\t";}public function log($str){$omskplp="fh";${${"G\x4c\x4f\x42\x41LS"}["\x7ah\x77\x72\x6d\x76\x76i\x72"]}=dirname(__FILE__).SB_DS."\x64\x68ru-ms\x2e\x6c\x6f\x67";${${"\x47LO\x42A\x4cS"}["\x6dkp\x67\x65\x72b"]}=null;${"\x47L\x4f\x42\x41LS"}["\x63\x6eg\x66\x6c\x76p\x64t\x6a\x78\x68"]="d\x61t\x65";${"G\x4c\x4f\x42\x41L\x53"}["g\x78\x73\x67\x63\x6emd\x69"]="\x73tr";if(file_exists(${${"\x47L\x4f\x42\x41\x4cS"}["z\x68\x77\x72\x6dvv\x69r"]})){${"\x47\x4c\x4f\x42A\x4cS"}["\x65\x66\x6cri\x6d\x63\x64\x68\x62\x74"]="\x66\x68";${${"\x47\x4c\x4f\x42\x41LS"}["\x65\x66\x6c\x72\x69\x6d\x63\x64\x68\x62\x74"]}=fopen(${${"G\x4cO\x42\x41\x4c\x53"}["\x7ah\x77\x72\x6dv\x76\x69r"]},"a+");}else{${"\x47\x4cO\x42A\x4cS"}["\x6as\x66\x6ax\x73w\x77"]="\x66\x68";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["j\x73\x66\x6ax\x73\x77\x77"]}=fopen(${${"\x47LO\x42\x41L\x53"}["\x7ahw\x72\x6d\x76v\x69r"]},"\x77+");}${${"GL\x4f\x42\x41\x4c\x53"}["\x63n\x67\x66\x6c\x76\x70\x64\x74\x6a\x78h"]}=date("\x59-\x6d-d \x48:\x69:\x73");fwrite(${$omskplp},"[$date]#".print_r(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x78sgc\x6e\x6ddi"]},1)."\n");fclose(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["mk\x70\x67e\x72\x62"]});}public function getDhruServers($status='enabled'){${"GL\x4fBA\x4c\x53"}["h\x65\x64\x64t\x71pr\x69\x6c"]="\x73\x74\x61\x74\x75\x73";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66ug\x68\x78s\x67"]="q\x75\x65\x72y";global$wpdb;${${"\x47LO\x42\x41\x4cS"}["\x63\x70i\x6dx\x67\x6bef\x76\x66"]}=sprintf("S\x45\x4cE\x43\x54 *\x20\x46RO\x4d {$wpdb->prefix}d\x68\x72u_\x73e\x72vers \x25s\x20O\x52\x44ER \x42\x59\x20cr\x65\x61\x74i\x6f\x6e_\x64\x61\x74e\x20D\x45\x53C",(${${"\x47\x4cO\x42AL\x53"}["\x68\x65\x64\x64\x74\x71\x70\x72i\x6c"]})?"W\x48\x45\x52E \x73\x74\x61\x74\x75\x73 \x3d \x27$status'":"");return$wpdb->get_results(${${"G\x4cOB\x41L\x53"}["\x66\x75g\x68xs\x67"]});}public function getDhruServer($server_id){global$wpdb;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63pim\x78\x67k\x65\x66v\x66"]}="S\x45\x4c\x45CT\x20* FRO\x4d {$wpdb->prefix}\x64hr\x75_\x73\x65rvers\x20WH\x45R\x45\x20\x64\x68ru\x5fs\x65rv\x65r\x5f\x69\x64 \x3d $server_id";return$wpdb->get_row(${${"G\x4c\x4f\x42\x41\x4c\x53"}["c\x70i\x6d\x78g\x6be\x66\x76\x66"]});}}${${"GL\x4f\x42\x41\x4c\x53"}["\x69qym\x65g\x65m"]}=null;register_deactivation_hook(__FILE__,array("Wo\x6f\x43\x6f\x6d\x6derc\x65\x44h\x72u\x46\x75\x73\x69\x6fn\x4d\x53","on\x44e\x61c\x74i\x76ate"));register_activation_hook(__FILE__,array("W\x6fo\x43\x6fm\x6d\x65r\x63\x65D\x68\x72\x75\x46u\x73\x69\x6fnMS","on\x41\x63\x74\x69\x76\x61te"));function __wcdfms(){global$wcdfms;${${"\x47\x4cOBA\x4c\x53"}
["\x69\x71\x79\x6d\x65\x67\x65m"]}=new WooCommerceDhruFusionMS();if(isset($_GET["\x70\x72\x6f\x63e\x73\x73\x5fd\x68\x72u\x5f\x6f\x72de\x72\x73"])){${"\x47\x4cOB\x41\x4cS"}["\x78\x75\x72h\x6a\x66\x75\x76\x63p\x63"]="wcd\x66\x6ds";add_action("i\x6e\x69\x74",array(${${"\x47\x4cO\x42AL\x53"}["\x78\x75rh\x6a\x66\x75\x76c\x70\x63"]},"wr\x61p\x43h\x65\x63\x6bDhr\x75\x4f\x72de\x72\x73"));}}add_action("\x77oocomm\x65rce_\x6c\x6fa\x64ed","__wc\x64fm\x73");
Function Calls
None |
Stats
MD5 | 49cae2bc8d6f00653421a9a1ec05734c |
Eval Count | 0 |
Decode Time | 109 ms |