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 /* LP Express integracija v2.1 Autorius: Gintas Korsakas, ELPAS LT, UAB http://..
Decoded Output download
<?php
/*
LP Express integracija v2.1
Autorius: Gintas Korsakas, ELPAS LT, UAB
http://open-cart.lt
*/
${"GLOBALS"}["hvpujsh"]="curl";${"GLOBALS"}["fwptzuwfult"]="url";${"GLOBALS"}["gxtwgendjmft"]="store_info";${"GLOBALS"}["qsblhq"]="l";${"GLOBALS"}["rwjsothoof"]="rand";${"GLOBALS"}["biicbgddyq"]="i";${"GLOBALS"}["jbvtwrigghf"]="char";${"GLOBALS"}["bfxmkd"]="lp_products";${"GLOBALS"}["omcsgym"]="product";${"GLOBALS"}["hvfknjshoo"]="delivery_method";${"GLOBALS"}["sdxdwxkkuc"]="products";${"GLOBALS"}["iytjkakyjle"]="status_id";${"GLOBALS"}["yeihxwp"]="replace";${"GLOBALS"}["jqfrglpd"]="search";${"GLOBALS"}["boysegllwbgy"]="lpe_order_id";${"GLOBALS"}["pescyktb"]="shipped_status";${"GLOBALS"}["xxtjbdovams"]="shipped_labels";${"GLOBALS"}["rjunjux"]="history_text";${"GLOBALS"}["rkuobbzq"]="notify";${"GLOBALS"}["lnuvncax"]="productcode";${"GLOBALS"}["lwvtrucplmb"]="row";${"GLOBALS"}["evdaboqpv"]="confirmed_status";${"GLOBALS"}["pefiytb"]="label_order_info";${"GLOBALS"}["tdlujsjtg"]="registered_status";${"GLOBALS"}["mwwygkplhtp"]="product_size";${"GLOBALS"}["swplyymsygof"]="lp_product";${"GLOBALS"}["mhifojkykeq"]="product_id";${"GLOBALS"}["cpybdavvqktx"]="product_info";${"GLOBALS"}["aaajkkd"]="product_prefix";${"GLOBALS"}["jibmgfcl"]="terminals";${"GLOBALS"}["ubzdxqqtcf"]="tq";${"GLOBALS"}["wskdfbylje"]="terminal_id";${"GLOBALS"}["zqvcsgmpigh"]="product_code";${"GLOBALS"}["lvqmpsel"]="oredr_id";${"GLOBALS"}["ebwdfzlzpqmi"]="l_data";${"GLOBALS"}["ioqkxyp"]="column";${"GLOBALS"}["hjabgsvmeye"]="field";${"GLOBALS"}["cjtagzneremf"]="find";${"GLOBALS"}["dblsxqglh"]="where";${"GLOBALS"}["vujqmvq"]="value";${"GLOBALS"}["scgcmkl"]="order_select";${"GLOBALS"}["hvgstqmwo"]="new_id";${"GLOBALS"}["ovrqeiqhx"]="labels";${"GLOBALS"}["yefbrixbwk"]="lp_partnerorderid";${"GLOBALS"}["hrlqtegn"]="label_id";${"GLOBALS"}["ctpwajsguov"]="sql";${"GLOBALS"}["pemvpigcfjma"]="product_data";${"GLOBALS"}["jqpytbvibsj"]="data";${"GLOBALS"}["pyiimxykof"]="e_order_id";${"GLOBALS"}["vcurvzvqp"]="m";${"GLOBALS"}["ehhbvjlgzks"]="order_id";${"GLOBALS"}["drqcgskhxm"]="ident_code";${"GLOBALS"}["pigumwkk"]="query";${"GLOBALS"}["bnqjfu"]="label";class ModelLpexpressLpexpress extends Model{public function updateOrderAndLabels($data){${"GLOBALS"}["kgfdnlxq"]="query";${${"GLOBALS"}["kgfdnlxq"]}=$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET
lp_order_id = '".$this->db->escape($data->orderid)."',
lp_totalsum = '".$this->db->escape($data->totalsum)."',
lp_codsum = '".$this->db->escape($data->codsum)."',
lp_currency ='".$this->db->escape($data->currency)."'
WHERE lp_partnerorderid = '".$this->db->escape($data->partnerorderid)."'");if(!empty($data->labels)){foreach($data->labels as${${"GLOBALS"}["bnqjfu"]}){$this->db->query("UPDATE ".DB_PREFIX."lpexpress_labels SET
orderartid = '".$this->db->escape($label->orderartid)."',
lp_order_id = '".$this->db->escape($data->orderid)."',
price = '".$this->db->escape($label->price)."',
codprice = '".$this->db->escape($label->codprice)."'
WHERE partnerorderartid = '".$this->db->escape($label->partnerorderartid)."'");}}return$data->orderid;}public function updateOrderAndLabelsAfterConfirm($data){$nwghfvcni="ident_code";${${"GLOBALS"}["pigumwkk"]}=$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET
orderpdfid = '".$this->db->escape($data->orderpdfid)."'
WHERE lp_partnerorderid = '".$this->db->escape($data->partnerorderid)."'");${$nwghfvcni}=array();if(!empty($data->labels)){foreach($data->labels as${${"GLOBALS"}["bnqjfu"]}){${"GLOBALS"}["wrlshy"]="ident_code";$this->db->query("UPDATE ".DB_PREFIX."lpexpress_labels SET
identcode = '".$this->db->escape($label->identcode)."',
printpin = '".$this->db->escape($label->printpin)."'
WHERE partnerorderartid = '".$this->db->escape($label->partnerorderartid)."'");${${"GLOBALS"}["wrlshy"]}[]=$label->identcode;}}return${${"GLOBALS"}["drqcgskhxm"]};}public function updateOrderManifestData($order_id,$data){${"GLOBALS"}["ufotkwsnhyx"]="data";$this->db->query("DELETE FROM ".DB_PREFIX."lpexpress_manifests WHERE order_id='".$this->db->escape(${${"GLOBALS"}["ehhbvjlgzks"]})."'");foreach(${${"GLOBALS"}["ufotkwsnhyx"]} as${${"GLOBALS"}["vcurvzvqp"]}){$eryduofdegyr="order_id";$this->db->query("INSERT INTO ".DB_PREFIX."lpexpress_manifests SET
order_id ='".$this->db->escape(${$eryduofdegyr})."',
type = '".$this->db->escape($m->type)."',
pdfid = '".$this->db->escape($m->pdfid)."',
identcodes = '".$this->db->escape($m->identCodes)."',
name ='".$this->db->escape($m->name)."'
");}}public function getManifests($order_id){${"GLOBALS"}["dzrdqjmtwhg"]="query";$vivcnnjgrvv="order_id";${${"GLOBALS"}["dzrdqjmtwhg"]}=$this->db->query("SELECT * FROM ".DB_PREFIX."lpexpress_manifests WHERE order_id='".(int)${$vivcnnjgrvv}."'");if($query->num_rows){return$query->rows;}return array();}public function prepareNewLabel(){$gwhiyvbver="label";$this->load->model("lpexpress/liblpexpress");${${"GLOBALS"}["bnqjfu"]}=$this->model_lpexpress_liblpexpress->prepareLPexpressLabel();return${$gwhiyvbver};}public function addLabel($orders){$eqxdfutysvv="e_order_id";$this->load->model("lpexpress/liblpexpress");$tzhxvfszj="order_id";${${"GLOBALS"}["pyiimxykof"]}=$this->isOrderOpen();$inpnpdlm="e_order_id";if(${${"GLOBALS"}["pyiimxykof"]}==0){$fgnjseoegkm="e_order_id";${$fgnjseoegkm}=$this->addOrder();}$ioejfcf="orders";foreach(${$ioejfcf} as${$tzhxvfszj}){${"GLOBALS"}["ymummbb"]="e_order_id";${${"GLOBALS"}["bnqjfu"]}=$this->model_lpexpress_liblpexpress->prepareLPexpressLabel(${${"GLOBALS"}["ehhbvjlgzks"]});$cbavxlufoq="label";$this->insertLabel(${${"GLOBALS"}["ymummbb"]},${$cbavxlufoq});}$this->updateOrderDate(${$eqxdfutysvv});return${$inpnpdlm};}public function saveLabel($data){if(!empty(${${"GLOBALS"}["jqpytbvibsj"]})){$hmfcnerpc="data";if(${$hmfcnerpc}["label_id"]>0){${"GLOBALS"}["jyjfmnedd"]="data";$ntdpluunq="data";${"GLOBALS"}["tqvuwceyjgq"]="data";$wujcogso="data";${"GLOBALS"}["vxstnwdfm"]="data";${"GLOBALS"}["tmjtebjobp"]="data";$wfgbkyrbpn="sql";$jrdxij="data";$hbteanebx="product_data";$cxdflqr="data";${"GLOBALS"}["puvlld"]="data";$wvhlewsnxrs="data";${"GLOBALS"}["jbgwqsryy"]="data";${"GLOBALS"}["dqngsxda"]="data";${$hbteanebx}=$this->getProduct(${${"GLOBALS"}["jqpytbvibsj"]}["productcode"]);$uwkbwfdohix="data";$kuqiwpxbfixl="data";${${"GLOBALS"}["jqpytbvibsj"]}["parcelweight"]=${${"GLOBALS"}["pemvpigcfjma"]}["maxweight"];${$cxdflqr}["boxsize"]=${${"GLOBALS"}["pemvpigcfjma"]}["boxsize"];${${"GLOBALS"}["ctpwajsguov"]}="UPDATE ".DB_PREFIX."lpexpress_labels SET
receivername = '".${$ntdpluunq}["receivername"]."',
receivermobile = '".${${"GLOBALS"}["jqpytbvibsj"]}["receivermobile"]."',
receiveremail = '".${${"GLOBALS"}["jqpytbvibsj"]}["receiveremail"]."',
receiveraddressfield1 = '".${$jrdxij}["receiveraddressfield1"]."',
receiveraddresscity = '".${${"GLOBALS"}["dqngsxda"]}["receiveraddresscity"]."',
receiveraddresszip = '".${${"GLOBALS"}["jbgwqsryy"]}["receiveraddresszip"]."',
receiveraddresscountry = '".${${"GLOBALS"}["vxstnwdfm"]}["receiveraddresscountry"]."',
sendername = '".${${"GLOBALS"}["puvlld"]}["sendername"]."',
sendermobile = '".${${"GLOBALS"}["jyjfmnedd"]}["sendermobile"]."',
senderemail = '".${${"GLOBALS"}["tmjtebjobp"]}["senderemail"]."',
senderaddressfield1 = '".${$uwkbwfdohix}["senderaddressfield1"]."',
senderaddresscity = '".${${"GLOBALS"}["jqpytbvibsj"]}["senderaddresscity"]."',
senderaddresszip = '".${${"GLOBALS"}["jqpytbvibsj"]}["senderaddresszip"]."',
senderaddresscountry = '".${$wvhlewsnxrs}["senderaddresscountry"]."',
productcode = '".${${"GLOBALS"}["tqvuwceyjgq"]}["productcode"]."',
parcelweight = '".${$kuqiwpxbfixl}["parcelweight"]."',
boxsize = '".${${"GLOBALS"}["jqpytbvibsj"]}["boxsize"]."'";if(isset(${${"GLOBALS"}["jqpytbvibsj"]}["receiveraddressmunicipality"])){${${"GLOBALS"}["ctpwajsguov"]}.=", receiveraddressmunicipality = '".${${"GLOBALS"}["jqpytbvibsj"]}["receiveraddressmunicipality"]."'";}$pehnddo="data";if(isset(${${"GLOBALS"}["jqpytbvibsj"]}["targetmachineidentification"])){${"GLOBALS"}["tnwmsqn"]="data";${"GLOBALS"}["msobxluscpy"]="sql";${${"GLOBALS"}["msobxluscpy"]}.=", targetmachineidentification = '".${${"GLOBALS"}["tnwmsqn"]}["targetmachineidentification"]."'";}if(isset(${${"GLOBALS"}["jqpytbvibsj"]}["hascoverletter"])){$rfnopcddxtl="sql";${$rfnopcddxtl}.=", hascoverletter = '1'";}else{${"GLOBALS"}["nvixegg"]="sql";${${"GLOBALS"}["nvixegg"]}.=", hascoverletter = '0'";}if(isset(${$pehnddo}["iscod"])){${${"GLOBALS"}["ctpwajsguov"]}.=", iscod = '1'";}else{${"GLOBALS"}["tuvcxvphix"]="sql";${${"GLOBALS"}["tuvcxvphix"]}.=", iscod = '0'";}$ssbcngryuhdt="data";if(isset(${${"GLOBALS"}["jqpytbvibsj"]}["printtype"])){${${"GLOBALS"}["ctpwajsguov"]}.=", printtype = 'terminal'";}else{$kyngcohamtq="sql";${$kyngcohamtq}.=", printtype = 'other'";}if(isset(${$ssbcngryuhdt}["parcelvalue"])&&${${"GLOBALS"}["jqpytbvibsj"]}["parcelvalue"]!=""){${${"GLOBALS"}["ctpwajsguov"]}.=", parcelvalue = '".${${"GLOBALS"}["jqpytbvibsj"]}["parcelvalue"]."'";}else{${${"GLOBALS"}["ctpwajsguov"]}.=", parcelvalue = '0'";}if(isset(${${"GLOBALS"}["jqpytbvibsj"]}["parts"])&&${$wujcogso}["parts"]>1){${${"GLOBALS"}["ctpwajsguov"]}.=", parts = '".${${"GLOBALS"}["jqpytbvibsj"]}["parts"]."'";}else{${${"GLOBALS"}["ctpwajsguov"]}.=", parts = '1'";}${$wfgbkyrbpn}.=" WHERE label_id = '".${${"GLOBALS"}["jqpytbvibsj"]}["label_id"]."'";$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});}}}public function insertLabel($order_id,$label){$instwja="label";$jvllrkmdk="label";$daccrxia="label";$iltdkw="label";$nufzftsui="label";$mdfjvkzcd="label";${"GLOBALS"}["rjcdby"]="label";$sehkmljhfn="label";${"GLOBALS"}["giikrzrgllj"]="label";${"GLOBALS"}["jiwgrobbzr"]="label";$tqdwfvkkdq="label";${"GLOBALS"}["bqkxgsbff"]="product_data";${"GLOBALS"}["ieitbke"]="label";${"GLOBALS"}["ydsqtbjnuyq"]="label";${"GLOBALS"}["smpsygnf"]="label";${"GLOBALS"}["tutwvir"]="label";$bhrwoyw="label";$pcotzy="label";${"GLOBALS"}["jrunneqkito"]="label";${"GLOBALS"}["gmmgxsbcpv"]="label";${"GLOBALS"}["xnpkhwqdd"]="label";$fitvqnqsxyt="label";${"GLOBALS"}["feuaedhohv"]="order_id";$huldrjzx="label";${${"GLOBALS"}["bqkxgsbff"]}=$this->getProduct(${$instwja}["productcode"]);${${"GLOBALS"}["jrunneqkito"]}["parcelweight"]=${${"GLOBALS"}["pemvpigcfjma"]}["maxweight"];$fxanljfwrfs="label";${$iltdkw}["boxsize"]=${${"GLOBALS"}["pemvpigcfjma"]}["boxsize"];$wucocs="label";$yyopcbt="sql";$jjhojfeeb="label";$gwgguvcq="label";${${"GLOBALS"}["xnpkhwqdd"]}["partnerorderartid"]=${${"GLOBALS"}["feuaedhohv"]}."_".${$nufzftsui}["sale_order_id"]."_".$this->getRandId();${${"GLOBALS"}["ctpwajsguov"]}="INSERT INTO ".DB_PREFIX."lpexpress_labels SET order_id = '".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."',
partnerorderartid = '".${${"GLOBALS"}["bnqjfu"]}["partnerorderartid"]."',
sale_order_id = '".${${"GLOBALS"}["bnqjfu"]}["sale_order_id"]."',
sale_order_status_id = '".${${"GLOBALS"}["bnqjfu"]}["sale_order_status_id"]."',
iscod = '".${${"GLOBALS"}["ieitbke"]}["iscod"]."',
productcode = '".${${"GLOBALS"}["gmmgxsbcpv"]}["productcode"]."',
boxsize = '".${${"GLOBALS"}["bnqjfu"]}["boxsize"]."',
parcelvalue = '".${$daccrxia}["parcelvalue"]."',
parcelvaluecurrency = '".${$jvllrkmdk}["parcelvaluecurrency"]."',
sendername = '".${$bhrwoyw}["sendername"]."',
sendermobile = '".${$pcotzy}["sendermobile"]."',
senderemail = '".${${"GLOBALS"}["jiwgrobbzr"]}["senderemail"]."',
senderaddressfield1 = '".${${"GLOBALS"}["bnqjfu"]}["senderaddressfield1"]."',
senderaddresscity = '".${$fitvqnqsxyt}["senderaddresscity"]."',
senderaddresszip = '".${$huldrjzx}["senderaddresszip"]."',
senderaddresscountry = '".${${"GLOBALS"}["giikrzrgllj"]}["senderaddresscountry"]."',
sendercustomaddressid = '".${$mdfjvkzcd}["sendercustomaddressid"]."',
receivername = '".${$tqdwfvkkdq}["receivername"]."',
receivermobile = '".${${"GLOBALS"}["bnqjfu"]}["receivermobile"]."',
receiveremail = '".${${"GLOBALS"}["bnqjfu"]}["receiveremail"]."',
receiveraddressfield1 = '".${${"GLOBALS"}["bnqjfu"]}["receiveraddressfield1"]."',
receiveraddresscity = '".${${"GLOBALS"}["bnqjfu"]}["receiveraddresscity"]."',
receiveraddresszip = '".${${"GLOBALS"}["bnqjfu"]}["receiveraddresszip"]."',
receiveraddressmunicipality = '".${$gwgguvcq}["receiveraddressmunicipality"]."',
receiveraddresscountry = '".${${"GLOBALS"}["tutwvir"]}["receiveraddresscountry"]."',
targetmachineidentification = '".${${"GLOBALS"}["bnqjfu"]}["targetmachineidentification"]."',
printtype = '".${${"GLOBALS"}["bnqjfu"]}["printtype"]."',
labelformatsize = '".${${"GLOBALS"}["bnqjfu"]}["labelformatsize"]."',
parcelweight = '".${${"GLOBALS"}["rjcdby"]}["parcelweight"]."',
hascoverletter = '".${${"GLOBALS"}["smpsygnf"]}["hascoverletter"]."',
hasnpl = '".${${"GLOBALS"}["ydsqtbjnuyq"]}["hasnpl"]."',
nplrange = '".${${"GLOBALS"}["bnqjfu"]}["nplrange"]."',
hassdd = '".${$jjhojfeeb}["hassdd"]."',
hasinsurance = '".${${"GLOBALS"}["bnqjfu"]}["hasinsurance"]."',
hasload = '".${${"GLOBALS"}["bnqjfu"]}["hasload"]."',
deliverycomment = '".${$wucocs}["deliverycomment"]."',
parts = '".${${"GLOBALS"}["bnqjfu"]}["parts"]."',
selfpostdelivery = '".${$sehkmljhfn}["selfpostdelivery"]."',
hasreturnphoto = '".${$fxanljfwrfs}["hasreturnphoto"]."',
hassatdelivery = '".${${"GLOBALS"}["bnqjfu"]}["hassatdelivery"]."'";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${$yyopcbt});}public function deleteLabel($label_id=0){if(${${"GLOBALS"}["hrlqtegn"]}>0){$this->db->query("DELETE FROM ".DB_PREFIX."lpexpress_labels WHERE label_id = '".(int)${${"GLOBALS"}["hrlqtegn"]}."'");}}public function getTotalOrders($data){$dprjtbdpw="query";${$dprjtbdpw}=$this->db->query("SELECT count(order_id) AS order_totoal FROM ".DB_PREFIX."lpexpress_order");if($query->num_rows){return$query->row["order_totoal"];}return 0;}public function getOrders($data){$yshrvuu="data";$gxpikfmpbvk="sql";$eszaxqmynr="data";${$gxpikfmpbvk}="SELECT *, (SELECT count(label_id) FROM ".DB_PREFIX."lpexpress_labels ol WHERE ol.order_id = lo.order_id ) AS label_count FROM ".DB_PREFIX."lpexpress_order lo ORDER BY date_updated DESC, order_id DESC";if(isset(${$yshrvuu}["start"])||isset(${$eszaxqmynr}["limit"])){$ranbrwsiy="sql";${"GLOBALS"}["xdycbdr"]="data";$ungecdp="data";if(${${"GLOBALS"}["xdycbdr"]}["start"]<0){${"GLOBALS"}["vjxedo"]="data";${${"GLOBALS"}["vjxedo"]}["start"]=0;}if(${${"GLOBALS"}["jqpytbvibsj"]}["limit"]<1){${${"GLOBALS"}["jqpytbvibsj"]}["limit"]=20;}${$ranbrwsiy}.=" LIMIT ".(int)${${"GLOBALS"}["jqpytbvibsj"]}["start"].",".(int)${$ungecdp}["limit"];}${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){return$query->rows;}return array();}public function updateOrderDate($order_id){if(${${"GLOBALS"}["ehhbvjlgzks"]}>0){$oxjdbfjuhb="query";${$oxjdbfjuhb}=$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET date_updated=NOW() WHERE order_id = '".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."'");}}public function setOrderHasError($order_id){if(${${"GLOBALS"}["ehhbvjlgzks"]}>0){$lldlilyfenr="order_id";$porris="query";${$porris}=$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET has_errors='1' WHERE order_id = '".(int)${$lldlilyfenr}."'");}}public function orderHasErrors($order_id){if(${${"GLOBALS"}["ehhbvjlgzks"]}>0){${"GLOBALS"}["ojvvpcj"]="query";${${"GLOBALS"}["ojvvpcj"]}=$this->db->query("SELECT has_errors FROM ".DB_PREFIX."lpexpress_order WHERE has_errors='1' AND order_id = '".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."'");if($query->num_rows){if($query->row["has_errors"]==1){return true;}return false;}}return true;}public function removeOrderError($order_id){${"GLOBALS"}["doliwm"]="order_id";if(${${"GLOBALS"}["doliwm"]}>0){${${"GLOBALS"}["pigumwkk"]}=$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET has_errors='0' WHERE order_id = '".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."'");}}public function regenerateIds($order_id){$anltuhbk="order_id";${${"GLOBALS"}["yefbrixbwk"]}=$this->generateOrderId();${"GLOBALS"}["cztxjekrmp"]="order_id";$aictifvevs="lp_partnerorderid";${${"GLOBALS"}["pigumwkk"]}=$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET lp_partnerorderid='".$this->db->escape(${$aictifvevs})."' WHERE order_id = '".(int)${$anltuhbk}."'");${${"GLOBALS"}["ovrqeiqhx"]}=$this->getLabels(array("order_id"=>${${"GLOBALS"}["cztxjekrmp"]}));foreach(${${"GLOBALS"}["ovrqeiqhx"]} as${${"GLOBALS"}["bnqjfu"]}){$irnikvmdghb="sql";${"GLOBALS"}["utnbyfxi"]="label";${${"GLOBALS"}["hvgstqmwo"]}=${${"GLOBALS"}["ehhbvjlgzks"]}."_".${${"GLOBALS"}["bnqjfu"]}["sale_order_id"]."_".$this->getRandId();${$irnikvmdghb}="UPDATE ".DB_PREFIX."lpexpress_labels SET partnerorderartid='".$this->db->escape(${${"GLOBALS"}["hvgstqmwo"]})."' WHERE order_id='".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."' AND label_id='".(int)${${"GLOBALS"}["utnbyfxi"]}["label_id"]."'";$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});}return${${"GLOBALS"}["yefbrixbwk"]};}public function findLabels($column,$value,$include_order_data=false,$order='DESC',$limit='10'){${${"GLOBALS"}["scgcmkl"]}="";$gkwyezgrqy="sql";$nfriheo="include_order_data";if(${$nfriheo}==true){$fzimkivog="order_select";${$fzimkivog}=", (SELECT date_added FROM ".DB_PREFIX."lpexpress_order lo WHERE lo.order_id = ll.order_id ) AS date_registered ";}${"GLOBALS"}["ibszftjd"]="column";${${"GLOBALS"}["ctpwajsguov"]}="SELECT *".${${"GLOBALS"}["scgcmkl"]}." FROM ".DB_PREFIX."lpexpress_labels ll WHERE ".$this->db->escape(${${"GLOBALS"}["ibszftjd"]})."='".$this->db->escape(${${"GLOBALS"}["vujqmvq"]})."' ORDER BY label_id DESC LIMIT 10";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${$gkwyezgrqy});return$query->rows;}public function findLabelsAutocomplete($find,$field='receivername'){$piqfmlevo="group_by";${"GLOBALS"}["petvnnhlxt"]="group_by";$dygdthbfyyj="field";$tapchmtgfnu="where";${"GLOBALS"}["btwejeyzmnp"]="field";${$piqfmlevo}="";$qjndxwerxys="sql";${"GLOBALS"}["fjjytqfp"]="sql";if(${$dygdthbfyyj}=="receivername"){${"GLOBALS"}["okbmnn"]="group_by";${"GLOBALS"}["abllskkhfyp"]="column";${${"GLOBALS"}["abllskkhfyp"]}=" receivername ";${${"GLOBALS"}["dblsxqglh"]}="WHERE LOWER(receivername) LIKE '".strtolower($this->db->escape(${${"GLOBALS"}["cjtagzneremf"]}))."%'";${${"GLOBALS"}["okbmnn"]}=" GROUP BY receivername";}else if(${${"GLOBALS"}["hjabgsvmeye"]}=="identcode"){${"GLOBALS"}["kjfrwku"]="column";${${"GLOBALS"}["kjfrwku"]}=" identcode ";${${"GLOBALS"}["dblsxqglh"]}="WHERE LOWER(identcode) LIKE '".strtolower($this->db->escape(${${"GLOBALS"}["cjtagzneremf"]}))."%'";}else if(${${"GLOBALS"}["btwejeyzmnp"]}=="receivermobile"){$ekchdjupyto="where";${${"GLOBALS"}["ioqkxyp"]}=" receivermobile ";${"GLOBALS"}["smtnrdup"]="group_by";${$ekchdjupyto}="WHERE LOWER(receivermobile) LIKE '%".strtolower($this->db->escape(${${"GLOBALS"}["cjtagzneremf"]}))."%'";${${"GLOBALS"}["smtnrdup"]}=" GROUP BY receivermobile";}else if(${${"GLOBALS"}["hjabgsvmeye"]}=="receiveremail"){${"GLOBALS"}["luvlyelm"]="where";${${"GLOBALS"}["luvlyelm"]}="WHERE LOWER(receiveremai) LIKE '".strtolower($this->db->escape(${${"GLOBALS"}["cjtagzneremf"]}))."%'";}else if(${${"GLOBALS"}["hjabgsvmeye"]}=="order_id"){$icgldkmfl="column";$vwoikakd="find";${$icgldkmfl}=" sale_order_id AS order_id ";${${"GLOBALS"}["dblsxqglh"]}="WHERE sale_order_id LIKE '".strtolower($this->db->escape(${$vwoikakd}))."%'";}${$qjndxwerxys}="SELECT ".${${"GLOBALS"}["ioqkxyp"]}." FROM ".DB_PREFIX."lpexpress_labels ".${$tapchmtgfnu}.${${"GLOBALS"}["petvnnhlxt"]}." ORDER BY label_id DESC";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["fjjytqfp"]});return$query->rows;}public function getLabels($l_data){${"GLOBALS"}["epllbwutmpl"]="sql";${${"GLOBALS"}["epllbwutmpl"]}="SELECT * FROM ".DB_PREFIX."lpexpress_labels WHERE order_id='".(int)${${"GLOBALS"}["ebwdfzlzpqmi"]}["order_id"]."' ORDER BY label_id DESC";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){return$query->rows;}return array();}public function getLabelsToCancel($oredr_id){$oiitobjidley="sql";${$oiitobjidley}="SELECT identcode FROM ".DB_PREFIX."lpexpress_labels WHERE identcode <> '' AND order_id='".(int)${${"GLOBALS"}["lvqmpsel"]}."'";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){return$query->rows;}return array();}public function clearIdentCode($ident_code){$krodfvxlrq="sql";${"GLOBALS"}["jucvtqudg"]="sql";$ubnndwzttqq="query";${${"GLOBALS"}["jucvtqudg"]}="UPDATE ".DB_PREFIX."lpexpress_labels SET identcode='', orderartid = '' WHERE identcode ='".$this->db->escape(${${"GLOBALS"}["drqcgskhxm"]})."'";${$ubnndwzttqq}=$this->db->query(${$krodfvxlrq});}public function removePDFS($order_id){$this->db->query("DELETE FROM ".DB_PREFIX."lpexpress_manifests WHERE order_id='".$this->db->escape(${${"GLOBALS"}["ehhbvjlgzks"]})."'");${"GLOBALS"}["wfoxhewuhpu"]="order_id";$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET
orderpdfid = '',
lp_order_id = '',
lp_totalsum = '0',
lp_codsum =' 0',
lp_currency = '',
has_errors = '0',
date_updated=NOW()
WHERE order_id='".$this->db->escape(${${"GLOBALS"}["wfoxhewuhpu"]})."'");}public function hasUnconfirmedLabels($order_id){$fjwewsz="query";${${"GLOBALS"}["ctpwajsguov"]}="SELECT count(identcode) AS unconfirmed FROM ".DB_PREFIX."lpexpress_labels WHERE identcode <> '' AND orderartid <> '0' AND order_id='".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."'";${$fjwewsz}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){if($query->row["unconfirmed"]>0){return true;}return false;}return array();}public function getLabel($label_id){$pnbpocizsbu="sql";$dbgfgpf="label_id";${$pnbpocizsbu}="SELECT * FROM ".DB_PREFIX."lpexpress_labels WHERE label_id='".(int)${$dbgfgpf}."' LIMIT 1";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){return$query->row;}return array();}public function getLabelsToConfirm($order_id){$eopumqt="labels";${$eopumqt}=array();${"GLOBALS"}["heqitxx"]="query";$ujgjpzlguod="order_id";${${"GLOBALS"}["ctpwajsguov"]}="SELECT partnerorderartid,
iscod,
productcode,
boxsize,
parcelvalue,
parcelvaluecurrency,
sendername,
sendermobile,
senderemail,
senderaddressfield1,
senderaddresscity,
senderaddresszip,
senderaddresscountry,
sendercustomaddressid,
receivername,
receivermobile,
receiveremail,
receiveraddressfield1,
receiveraddresscity,
receiveraddresszip,
receiveraddressmunicipality,
receiveraddresscountry,
targetmachineidentification,
printtype,
labelformatsize,
parcelweight,
hascoverletter,
hasnpl,
nplrange,
hassdd,
hasinsurance,
hasload,
deliverycomment,
parts,
selfpostdelivery,
hasreturnphoto,
hassatdelivery
FROM ".DB_PREFIX."lpexpress_labels WHERE order_id='".(int)${$ujgjpzlguod}."' ORDER BY label_id DESC";${${"GLOBALS"}["heqitxx"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){$cpdjtfrw="label";foreach($query->rows as${$cpdjtfrw}){${"GLOBALS"}["tychtx"]="product_code";${"GLOBALS"}["rdwcrhwstc"]="label";$tjpcww="product_code";${${"GLOBALS"}["tychtx"]}=explode("_",${${"GLOBALS"}["bnqjfu"]}["productcode"]);if((${${"GLOBALS"}["zqvcsgmpigh"]}[0]!="EMS")||(${$tjpcww}[0]!="EPG")||(${${"GLOBALS"}["zqvcsgmpigh"]}!="EG_30000_1500000_CO")){${"GLOBALS"}["nrlbsq"]="label";unset(${${"GLOBALS"}["nrlbsq"]}["parcelweight"]);}${${"GLOBALS"}["ovrqeiqhx"]}[]=${${"GLOBALS"}["rdwcrhwstc"]};}}return${${"GLOBALS"}["ovrqeiqhx"]};}public function addOrder(){$this->db->query("INSERT INTO ".DB_PREFIX."lpexpress_order SET lp_partnerorderid = '".$this->db->escape($this->generateOrderId())."', date_added = NOW()");return$this->db->getLastId();}public function deleteOrder($order_id){$qvyzwkhphs="order_id";${"GLOBALS"}["mdvmzhrrlr"]="order_id";$this->restoreOrderStatuses(${${"GLOBALS"}["mdvmzhrrlr"]});$this->removePDFS(${${"GLOBALS"}["ehhbvjlgzks"]});$this->db->query("DELETE FROM ".DB_PREFIX."lpexpress_labels WHERE order_id = '".(int)${$qvyzwkhphs}."'");$this->db->query("DELETE FROM ".DB_PREFIX."lpexpress_order WHERE order_id='".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."'");}private function isOrderOpen(){${${"GLOBALS"}["ctpwajsguov"]}="SELECT order_id FROM ".DB_PREFIX."lpexpress_order WHERE lp_order_id = '' ORDER BY date_added DESC LIMIT 1";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){return$query->row["order_id"];}return 0;}private function generateOrderId(){return md5(HTTP_CATALOG.date("Y-m-d H:i:s"));}public function isOrderRegistered($order_id){${${"GLOBALS"}["ctpwajsguov"]}="SELECT lp_order_id FROM ".DB_PREFIX."lpexpress_order WHERE order_id ='".$this->db->escape(${${"GLOBALS"}["ehhbvjlgzks"]})."' LIMIT 1";$vqsjboawjfq="sql";${"GLOBALS"}["dhgbrbwn"]="query";${${"GLOBALS"}["dhgbrbwn"]}=$this->db->query(${$vqsjboawjfq});if($query->num_rows){if($query->row["lp_order_id"]==""){return false;}else{return true;}}return false;}public function markOrderAsShipped($order_id){${"GLOBALS"}["juceozbnwy"]="sql";$bjubwkziioq="sql";${$bjubwkziioq}="UPDATE ".DB_PREFIX."lpexpress_order SET is_confirmed = '1', date_updated=NOW() WHERE order_id ='".$this->db->escape(${${"GLOBALS"}["ehhbvjlgzks"]})."' LIMIT 1";$this->db->query(${${"GLOBALS"}["juceozbnwy"]});}public function isOrderShipped($order_id){${"GLOBALS"}["trvcgpbhy"]="sql";${${"GLOBALS"}["trvcgpbhy"]}="SELECT lp_order_id FROM ".DB_PREFIX."lpexpress_order WHERE is_confirmed='1' AND order_id ='".$this->db->escape(${${"GLOBALS"}["ehhbvjlgzks"]})."' LIMIT 1";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){if($query->row["lp_order_id"]==""){return false;}else{return true;}}return false;}public function getPartnerOrderId($order_id){${"GLOBALS"}["vwtbbeun"]="order_id";$xqkytyp="query";${${"GLOBALS"}["ctpwajsguov"]}="SELECT lp_partnerorderid FROM ".DB_PREFIX."lpexpress_order WHERE order_id ='".$this->db->escape(${${"GLOBALS"}["vwtbbeun"]})."' LIMIT 1";${$xqkytyp}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});return$query->row["lp_partnerorderid"];}public function getLabelFormats(){$svvrdubklg="query";${$svvrdubklg}=$this->db->query("SELECT layout, description FROM ".DB_PREFIX."lpexpress_label_layouts");if($query->num_rows){return$query->rows;}return array();}public function getTerminals(){$jckmxtubix="tq";$reljfryns="sql";${$reljfryns}="SELECT id, name, CONCAT(city, ', ', address) AS address, comment, collectinghours, workinghours FROM ".DB_PREFIX."lpexpress_terminals WHERE active = 1 ORDER BY city desc";${"GLOBALS"}["osrpddnlj"]="sql";${$jckmxtubix}=$this->db->query(${${"GLOBALS"}["osrpddnlj"]});if(!empty($tq->rows)){return$tq->rows;}return array();}public function getTerminal($terminal_id){${"GLOBALS"}["ztbncsxc"]="sql";${"GLOBALS"}["sywfidvnl"]="sql";${${"GLOBALS"}["sywfidvnl"]}="SELECT * FROM ".DB_PREFIX."lpexpress_terminals WHERE active = 1 AND id='".$this->db->escape(${${"GLOBALS"}["wskdfbylje"]})."' LIMIT 1";${${"GLOBALS"}["ubzdxqqtcf"]}=$this->db->query(${${"GLOBALS"}["ztbncsxc"]});if($tq->num_rows){return$tq->row;}return array();}public function getTerminalId($label_id){${${"GLOBALS"}["pigumwkk"]}=$this->db->query("SELECT targetmachineidentification FROM ".DB_PREFIX."lpexpress_labels WHERE label_id='".(int)${${"GLOBALS"}["hrlqtegn"]}."'");if($query->num_rows){return$query->row["targetmachineidentification"];}return 0;}public function insertTerminals($terminals){$this->db->query("DELETE FROM ".DB_PREFIX."lpexpress_terminals");$fbsskbkxhgcx="terminal";foreach(${${"GLOBALS"}["jibmgfcl"]} as${$fbsskbkxhgcx}){$this->db->query("INSERT INTO ".DB_PREFIX."lpexpress_terminals SET
`id` = '".$this->db->escape($terminal->machineid)."',
`active` = '1',
`name` = '".$this->db->escape($terminal->name)."',
`address` = '".$this->db->escape($terminal->address)."',
`zip` = '".$this->db->escape($terminal->zip)."',
`city` = '".$this->db->escape($terminal->city)."',
`latitude` = '".$this->db->escape($terminal->latitude)."',
`longitude`= '".$this->db->escape($terminal->longitude)."',
`comment` = '".$this->db->escape($terminal->comment)."',
`collectinghours` = '".$this->db->escape($terminal->collectinghours)."',
`workinghours` = '".$this->db->escape($terminal->workinghours)."',
`sort_order` = '1'
");}}public function getProduct($product_id){${"GLOBALS"}["pqcpdje"]="product_id";${${"GLOBALS"}["ctpwajsguov"]}="SELECT * FROM ".DB_PREFIX."lpexpress_products WHERE productid='".$this->db->escape(${${"GLOBALS"}["pqcpdje"]})."' LIMIT 1";$utypwlxychh="sql";${${"GLOBALS"}["pigumwkk"]}=$this->db->query(${$utypwlxychh});if($query->num_rows){return$query->row;}}public function getProducts($product_prefix=''){$ihkxlqksiugp="sql";${$ihkxlqksiugp}="SELECT * FROM ".DB_PREFIX."lpexpress_products";${"GLOBALS"}["kjiciuieeyl"]="product_prefix";$sbakepmgw="query";if(${${"GLOBALS"}["kjiciuieeyl"]}!=""){$hvegbcmkw="sql";${$hvegbcmkw}.=" WHERE productid LIKE '".${${"GLOBALS"}["aaajkkd"]}."%' ORDER BY maxweight, dimension_y ASC";}${$sbakepmgw}=$this->db->query(${${"GLOBALS"}["ctpwajsguov"]});if($query->num_rows){return$query->rows;}return array();}public function getProductName($product_id){${"GLOBALS"}["kgkokga"]="product_size";$khutkfa="lp_product";$xjwwurirbrt="product_id";${$khutkfa}="";$jgtdpiuwdz="product_id";${${"GLOBALS"}["kgkokga"]}=array("Small"=>"S","Large"=>"L","Medium"=>"M","XLarge"=>"XL");${${"GLOBALS"}["cpybdavvqktx"]}=$this->getProduct(${$jgtdpiuwdz});$lkmkhslovnxt="product_id";if(strpos(${${"GLOBALS"}["mhifojkykeq"]},"EG")!==false||strpos(${$xjwwurirbrt},"AB")!==false){$dzseymbk="product_info";${"GLOBALS"}["gcwpysmh"]="lp_product";${${"GLOBALS"}["gcwpysmh"]}=(${$dzseymbk}["minweight"]/1000)."kg - ".(${${"GLOBALS"}["cpybdavvqktx"]}["maxweight"]/1000)."kg";}else if(strpos(${${"GLOBALS"}["mhifojkykeq"]},"H2C")!==false||strpos(${$lkmkhslovnxt},"C2C")!==false||strpos(${${"GLOBALS"}["mhifojkykeq"]},"C2H")!==false){${"GLOBALS"}["xurntymb"]="product_info";$qibsguf="product_info";${${"GLOBALS"}["swplyymsygof"]}=${${"GLOBALS"}["mwwygkplhtp"]}[${${"GLOBALS"}["xurntymb"]}["boxsize"]]." (".${${"GLOBALS"}["cpybdavvqktx"]}["dimension_x"]." x ".${$qibsguf}["dimension_y"]." x ".${${"GLOBALS"}["cpybdavvqktx"]}["dimension_z"].")";}return${${"GLOBALS"}["swplyymsygof"]};}public function updateOrderStatusRegistered($order_id){${"GLOBALS"}["hmkdftrkd"]="order_ids";${"GLOBALS"}["wjolajzs"]="order_id";${${"GLOBALS"}["hmkdftrkd"]}=$this->db->query("SELECT sale_order_id FROM ".DB_PREFIX."lpexpress_labels WHERE order_id='".(int)${${"GLOBALS"}["wjolajzs"]}."' AND sale_order_id <> 0");${${"GLOBALS"}["tdlujsjtg"]}=$this->config->get("lpe_order_status_registered");if($order_ids->num_rows){${"GLOBALS"}["wequeqc"]="row";foreach($order_ids->rows as${${"GLOBALS"}["wequeqc"]}){$jxcfcbt="row";${"GLOBALS"}["rjolndjact"]="registered_status";$this->db->query("UPDATE `".DB_PREFIX."order` SET order_status_id='".(int)${${"GLOBALS"}["rjolndjact"]}."' WHERE order_id='".(int)${$jxcfcbt}["sale_order_id"]."'");}}}public function restoreOrderStatus($label_id){$lfftghd="old_status";${"GLOBALS"}["suppfr"]="label_id";${$lfftghd}=$this->db->query("SELECT sale_order_status_id, sale_order_id FROM ".DB_PREFIX."lpexpress_labels WHERE label_id='".(int)${${"GLOBALS"}["suppfr"]}."' AND sale_order_id <> 0 LIMIT 1");if($old_status->num_rows){$gyihnogrvk="label_order_info";${${"GLOBALS"}["pefiytb"]}=$old_status->row;$this->db->query("UPDATE `".DB_PREFIX."order` SET order_status_id='".(int)${$gyihnogrvk}["sale_order_status_id"]."' WHERE order_id='".(int)${${"GLOBALS"}["pefiytb"]}["sale_order_id"]."' LIMIT 1");}}public function restoreOrderStatuses($order_id){$glswrldd="order_id";${"GLOBALS"}["npjtjpgwpumn"]="old_status";${${"GLOBALS"}["npjtjpgwpumn"]}=$this->db->query("SELECT sale_order_status_id, sale_order_id FROM ".DB_PREFIX."lpexpress_labels WHERE order_id='".(int)${$glswrldd}."' AND sale_order_id <> 0 AND sale_order_status_id <> 0");if($old_status->num_rows){$ebbbndgkkeu="row";foreach($old_status->rows as${$ebbbndgkkeu}){$ziknfnhpj="row";$oyicuwrv="row";$this->db->query("UPDATE `".DB_PREFIX."order` SET order_status_id='".(int)${$ziknfnhpj}["sale_order_status_id"]."' WHERE order_id='".(int)${$oyicuwrv}["sale_order_id"]."'");}}}public function updateOrderStatusConfirmed($order_id){$ctguvrml="notify";$kevvrstejwo="order_ids";${"GLOBALS"}["lqujhr"]="order_id";${$kevvrstejwo}=$this->db->query("SELECT productcode, sale_order_id, sale_order_status_id, identcode FROM ".DB_PREFIX."lpexpress_labels WHERE order_id='".(int)${${"GLOBALS"}["lqujhr"]}."' AND sale_order_id <> 0 AND identcode <> ''");${$ctguvrml}=0;if($this->config->get("lpe_add_identcode_to_history")){$this->language->load("lpexpress/orders");}if($order_ids->num_rows){${"GLOBALS"}["uhydrnlt"]="row";foreach($order_ids->rows as${${"GLOBALS"}["uhydrnlt"]}){${"GLOBALS"}["fvrnuzx"]="productcode";${"GLOBALS"}["aeynzvjyvu"]="row";${${"GLOBALS"}["evdaboqpv"]}=${${"GLOBALS"}["lwvtrucplmb"]}["sale_order_status_id"];${${"GLOBALS"}["fvrnuzx"]}=explode("_",${${"GLOBALS"}["aeynzvjyvu"]}["productcode"]);$xfqbmvkhelop="productcode";if($this->config->get("lpe_order_status_".${$xfqbmvkhelop}[0]."_confirmed")!=0){${${"GLOBALS"}["evdaboqpv"]}=$this->config->get("lpe_order_status_".${${"GLOBALS"}["lnuvncax"]}[0]."_confirmed");$tbruqqekdux="row";$this->db->query("UPDATE `".DB_PREFIX."order` SET order_status_id='".(int)${${"GLOBALS"}["evdaboqpv"]}."' WHERE order_id='".(int)${$tbruqqekdux}["sale_order_id"]."'");}if($this->config->get("lpe_add_identcode_to_history")){${"GLOBALS"}["ppyqvevox"]="confirmed_status";$mymmqqrf="history_text";${$mymmqqrf}=$this->language->get("text_ident_code")." ".${${"GLOBALS"}["lwvtrucplmb"]}["identcode"];$fykfnlos="row";$this->db->query("INSERT INTO ".DB_PREFIX."order_history SET
order_id = '".(int)${$fykfnlos}["sale_order_id"]."',
order_status_id = '".(int)${${"GLOBALS"}["ppyqvevox"]}."',
notify = '".(int)${${"GLOBALS"}["rkuobbzq"]}."',
comment = '".$this->db->escape(strip_tags(${${"GLOBALS"}["rjunjux"]}))."',
date_added = NOW()");}}}}public function updateOrderStatusShipped($order_id){${${"GLOBALS"}["xxtjbdovams"]}=$this->db->query("SELECT *, (SELECT order_status_id FROM `".DB_PREFIX."order` o WHERE o.order_id = ll.sale_order_id ) AS order_status_id FROM ".DB_PREFIX."lpexpress_labels ll WHERE order_id='".(int)${${"GLOBALS"}["ehhbvjlgzks"]}."' AND sale_order_id <> 0 AND identcode <> ''");${"GLOBALS"}["ldyhrtbko"]="notify";${${"GLOBALS"}["ldyhrtbko"]}=0;$this->load->model("sale/order");if($this->config->get("lpe_notify_customer")){$ydefscx="notify";${$ydefscx}=1;}foreach($shipped_labels->rows as${${"GLOBALS"}["lwvtrucplmb"]}){$wuymyejoy="notify";${"GLOBALS"}["rxoodjslp"]="data";$brccyqunlo="shipped_status";$rjiksjk="shipped_status";${$brccyqunlo}=${${"GLOBALS"}["lwvtrucplmb"]}["order_status_id"];if($this->config->get("lpe_order_status_sent")){${${"GLOBALS"}["pescyktb"]}=$this->config->get("lpe_order_status_sent");}${"GLOBALS"}["lmnyxnljup"]="data";${${"GLOBALS"}["lmnyxnljup"]}=array();${${"GLOBALS"}["jqpytbvibsj"]}["order_status_id"]=${$rjiksjk};${${"GLOBALS"}["jqpytbvibsj"]}["notify"]=${$wuymyejoy};${${"GLOBALS"}["rxoodjslp"]}["comment"]=$this->prepareOrderSentStatusMsg($this->config->get("lpe_notify_message"),${${"GLOBALS"}["lwvtrucplmb"]});$this->addOrderHistory(${${"GLOBALS"}["lwvtrucplmb"]}["sale_order_id"],${${"GLOBALS"}["jqpytbvibsj"]});}}public function removeOrderStatusShipped($lpe_order_id){$this->db->query("UPDATE ".DB_PREFIX."lpexpress_order SET is_confirmed='0', date_updated=NOW() WHERE lp_order_id = '".(int)${${"GLOBALS"}["boysegllwbgy"]}."'");}private function prepareOrderSentStatusMsg($msg,$data){${"GLOBALS"}["tnzhvutrvwo"]="data";$vdiflnw="msg";$ffbcddljqx="data";$tydpik="replace";if(!isset(${${"GLOBALS"}["tnzhvutrvwo"]}["identcode"])&&!isset(${${"GLOBALS"}["jqpytbvibsj"]}["receivername"])){${"GLOBALS"}["kyrjnhqa"]="data";${${"GLOBALS"}["jqpytbvibsj"]}["identcode"]="";${${"GLOBALS"}["kyrjnhqa"]}["receivername"]="";}${${"GLOBALS"}["jqfrglpd"]}=array("{identcode}","{receivername}");${$tydpik}=array(${$ffbcddljqx}["identcode"],${${"GLOBALS"}["jqpytbvibsj"]}["receivername"]);return str_replace(${${"GLOBALS"}["jqfrglpd"]},${${"GLOBALS"}["yeihxwp"]},${$vdiflnw});}public function restoreOrderStatusesCanceledLabels($order_id){${"GLOBALS"}["jbjexe"]="registered_status";${"GLOBALS"}["prgxbiuir"]="order_id";$juxdrlyw="old_status";${${"GLOBALS"}["jbjexe"]}=0;if($this->config->get("lpe_order_status_registered")!=0){${${"GLOBALS"}["tdlujsjtg"]}=$this->config->get("lpe_order_status_registered");}${$juxdrlyw}=$this->db->query("SELECT sale_order_status_id, sale_order_id FROM ".DB_PREFIX."lpexpress_labels WHERE
order_id='".(int)${${"GLOBALS"}["prgxbiuir"]}."' AND
sale_order_id <> 0 AND
identcode = '' AND
sale_order_status_id <> 0");if($old_status->num_rows){${"GLOBALS"}["ockuvhuncg"]="row";foreach($old_status->rows as${${"GLOBALS"}["ockuvhuncg"]}){$ydypsdqoe="row";$jtsjpepr="status_id";${$jtsjpepr}=${$ydypsdqoe}["sale_order_status_id"];if(${${"GLOBALS"}["tdlujsjtg"]}>0){$ylzxgztyvjif="registered_status";${${"GLOBALS"}["iytjkakyjle"]}=${$ylzxgztyvjif};}$this->db->query("UPDATE `".DB_PREFIX."order` SET order_status_id='".(int)${${"GLOBALS"}["iytjkakyjle"]}."' WHERE order_id='".(int)${${"GLOBALS"}["lwvtrucplmb"]}["sale_order_id"]."'");}}}public function getProductsNamesFormated($delivery_method){${${"GLOBALS"}["sdxdwxkkuc"]}=array();${"GLOBALS"}["kzyinco"]="lp_products";${"GLOBALS"}["cdodbhhtb"]="delivery_method";${"GLOBALS"}["ooolzyx"]="lp_products";${${"GLOBALS"}["kzyinco"]}=array();${"GLOBALS"}["pangdivjnosm"]="delivery_method";$ordqtpdodlz="delivery_method";if(${${"GLOBALS"}["hvfknjshoo"]}!=""){$gtvigigo="products";${$gtvigigo}=$this->model_lpexpress_lpexpress->getProducts(${${"GLOBALS"}["hvfknjshoo"]});}else{${${"GLOBALS"}["sdxdwxkkuc"]}=$this->model_lpexpress_lpexpress->getProducts();}${${"GLOBALS"}["mwwygkplhtp"]}=array("Small"=>"S","Large"=>"L","Medium"=>"M","XLarge"=>"XL");if(${${"GLOBALS"}["hvfknjshoo"]}=="EG"||${${"GLOBALS"}["hvfknjshoo"]}=="AB"){$tlsrcgteyhxk="products";foreach(${$tlsrcgteyhxk} as${${"GLOBALS"}["omcsgym"]}){$vhdtpwclnxq="product";${"GLOBALS"}["skwseld"]="product";${${"GLOBALS"}["bfxmkd"]}[]=array("productid"=>${${"GLOBALS"}["skwseld"]}["productid"],"size"=>(${${"GLOBALS"}["omcsgym"]}["minweight"]/1000)."kg - ".(${${"GLOBALS"}["omcsgym"]}["maxweight"]/1000)."kg","price"=>${$vhdtpwclnxq}["price"]);}}if((${${"GLOBALS"}["cdodbhhtb"]}=="H2C")||(${${"GLOBALS"}["pangdivjnosm"]}=="C2C")||(${$ordqtpdodlz}=="C2H")){${"GLOBALS"}["hfmvebdo"]="product";$evednmutgti="products";foreach(${$evednmutgti} as${${"GLOBALS"}["hfmvebdo"]}){if(isset(${${"GLOBALS"}["mwwygkplhtp"]}[${${"GLOBALS"}["omcsgym"]}["boxsize"]])){${"GLOBALS"}["yhdtribnk"]="lp_products";${"GLOBALS"}["gvxjglspc"]="product";$ddrguehbtkv="product";${"GLOBALS"}["ctcdhisfp"]="product";$kdxcetedrm="product_size";${${"GLOBALS"}["yhdtribnk"]}[]=array("productid"=>${${"GLOBALS"}["omcsgym"]}["productid"],"size"=>${$kdxcetedrm}[${$ddrguehbtkv}["boxsize"]]." (".${${"GLOBALS"}["gvxjglspc"]}["dimension_x"]." x ".${${"GLOBALS"}["omcsgym"]}["dimension_y"]." x ".${${"GLOBALS"}["ctcdhisfp"]}["dimension_z"].")","price"=>${${"GLOBALS"}["omcsgym"]}["price"]);}}}return${${"GLOBALS"}["ooolzyx"]};}public function getRandId($length=8){$bhgoherwbm="i";$qkiyjucebjq="l";${"GLOBALS"}["sdcdoqhd"]="char";${"GLOBALS"}["ejsrurokcryd"]="length";${${"GLOBALS"}["sdcdoqhd"]}=md5(date("Y-m-dh:i:s").microtime());${"GLOBALS"}["juhgqze"]="i";${${"GLOBALS"}["jbvtwrigghf"]}=md5(str_shuffle(${${"GLOBALS"}["jbvtwrigghf"]}));for(${${"GLOBALS"}["biicbgddyq"]}=0,${${"GLOBALS"}["rwjsothoof"]}="",${$qkiyjucebjq}=strlen(${${"GLOBALS"}["jbvtwrigghf"]})-1;${${"GLOBALS"}["juhgqze"]}<${${"GLOBALS"}["ejsrurokcryd"]};${$bhgoherwbm}++){${${"GLOBALS"}["rwjsothoof"]}.=${${"GLOBALS"}["jbvtwrigghf"]}{mt_rand(0,${${"GLOBALS"}["qsblhq"]})};}return${${"GLOBALS"}["rwjsothoof"]};}private function addOrderHistory($order_id,$data){$ebvflpn="store_id";if(isset($this->request->get["store_id"])){${"GLOBALS"}["jbhkaecja"]="store_id";${${"GLOBALS"}["jbhkaecja"]}=$this->request->get["store_id"];}else{$pcilwpieu="store_id";${$pcilwpieu}=0;}$this->load->model("setting/store");${${"GLOBALS"}["gxtwgendjmft"]}=$this->model_setting_store->getStore(${$ebvflpn});${"GLOBALS"}["mjsedxk"]="store_info";if(${${"GLOBALS"}["mjsedxk"]}){${${"GLOBALS"}["fwptzuwfult"]}=${${"GLOBALS"}["gxtwgendjmft"]}["ssl"];}else{$wizicdgjionr="url";${$wizicdgjionr}=HTTPS_CATALOG;}if(isset($this->session->data["cookie"])){$ffizgzkwc="curl";${${"GLOBALS"}["hvpujsh"]}=curl_init();if(substr(${${"GLOBALS"}["fwptzuwfult"]},0,5)=="https"){${"GLOBALS"}["hufwrfcdtign"]="curl";curl_setopt(${${"GLOBALS"}["hufwrfcdtign"]},CURLOPT_PORT,443);}curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLOPT_HEADER,false);curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLINFO_HEADER_OUT,true);${"GLOBALS"}["vpbzxfsudy"]="curl";$pwjamv="order_id";${"GLOBALS"}["dwkjdjrsfri"]="curl";curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLOPT_USERAGENT,$this->request->server["HTTP_USER_AGENT"]);curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLOPT_SSL_VERIFYHOST,false);curl_setopt(${${"GLOBALS"}["dwkjdjrsfri"]},CURLOPT_SSL_VERIFYPEER,false);curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLOPT_FORBID_REUSE,false);curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLOPT_RETURNTRANSFER,true);curl_setopt(${$ffizgzkwc},CURLOPT_URL,${${"GLOBALS"}["fwptzuwfult"]}."index.php?route=api/order/history&order_id=".${$pwjamv});if(!empty(${${"GLOBALS"}["jqpytbvibsj"]})){$oxiopfmvjx="curl";curl_setopt(${${"GLOBALS"}["hvpujsh"]},CURLOPT_POST,true);curl_setopt(${$oxiopfmvjx},CURLOPT_POSTFIELDS,http_build_query(${${"GLOBALS"}["jqpytbvibsj"]}));}curl_setopt(${${"GLOBALS"}["vpbzxfsudy"]},CURLOPT_COOKIE,session_name()."=".$this->session->data["cookie"].";");curl_exec(${${"GLOBALS"}["hvpujsh"]});curl_close(${${"GLOBALS"}["hvpujsh"]});}}}
?>
Did this file decode correctly?
Original Code
<?php
/*
LP Express integracija v2.1
Autorius: Gintas Korsakas, ELPAS LT, UAB
http://open-cart.lt
*/
${"G\x4c\x4f\x42A\x4c\x53"}["\x68v\x70\x75\x6as\x68"]="cu\x72\x6c";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x77\x70t\x7auwf\x75\x6c\x74"]="\x75\x72\x6c";${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x78\x74\x77\x67\x65n\x64\x6a\x6d\x66\x74"]="\x73\x74\x6f\x72\x65\x5f\x69\x6efo";${"G\x4c\x4fBA\x4cS"}["\x71\x73\x62l\x68\x71"]="l";${"\x47L\x4f\x42AL\x53"}["rw\x6a\x73o\x74\x68\x6f\x6f\x66"]="r\x61\x6e\x64";${"\x47\x4c\x4f\x42\x41L\x53"}["\x62\x69\x69cb\x67\x64\x64\x79\x71"]="i";${"G\x4c\x4fBA\x4c\x53"}["\x6ab\x76\x74wr\x69g\x67h\x66"]="\x63\x68ar";${"\x47\x4c\x4fBA\x4c\x53"}["\x62\x66x\x6d\x6b\x64"]="\x6c\x70\x5fp\x72\x6fd\x75c\x74\x73";${"\x47\x4c\x4f\x42\x41LS"}["\x6f\x6d\x63sgy\x6d"]="pr\x6f\x64\x75\x63\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x76\x66\x6bn\x6a\x73hoo"]="del\x69\x76\x65r\x79\x5f\x6d\x65th\x6f\x64";${"G\x4cO\x42\x41LS"}["s\x64\x78\x64w\x78\x6b\x6b\x75\x63"]="p\x72\x6f\x64\x75\x63\x74\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x79\x74\x6aka\x6b\x79\x6a\x6ce"]="s\x74\x61\x74\x75\x73\x5f\x69\x64";${"\x47\x4c\x4fB\x41\x4cS"}["y\x65i\x68x\x77\x70"]="\x72\x65p\x6ca\x63e";${"\x47\x4c\x4f\x42A\x4c\x53"}["j\x71\x66\x72g\x6c\x70d"]="\x73\x65\x61\x72\x63\x68";${"G\x4cO\x42\x41\x4c\x53"}["\x62\x6f\x79s\x65\x67\x6cl\x77b\x67\x79"]="l\x70\x65\x5f\x6fr\x64\x65r\x5fi\x64";${"\x47\x4cO\x42\x41\x4cS"}["\x70\x65\x73\x63\x79\x6b\x74b"]="s\x68i\x70\x70\x65\x64_\x73\x74\x61\x74us";${"G\x4c\x4f\x42A\x4c\x53"}["\x78\x78tj\x62dov\x61\x6ds"]="\x73\x68\x69\x70\x70\x65\x64\x5f\x6ca\x62\x65ls";${"\x47L\x4fB\x41LS"}["\x72\x6au\x6ej\x75\x78"]="h\x69\x73to\x72\x79\x5f\x74\x65x\x74";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72ku\x6fb\x62\x7a\x71"]="\x6e\x6ft\x69\x66\x79";${"\x47L\x4f\x42ALS"}["l\x6e\x75v\x6e\x63a\x78"]="\x70\x72o\x64\x75\x63\x74\x63\x6f\x64\x65";${"\x47\x4cO\x42\x41LS"}["l\x77\x76\x74r\x75\x63\x70\x6cmb"]="\x72\x6fw";${"G\x4cOB\x41L\x53"}["\x65\x76\x64\x61\x62\x6fq\x70v"]="\x63\x6f\x6e\x66i\x72\x6d\x65\x64\x5fs\x74\x61t\x75\x73";${"\x47\x4cO\x42\x41\x4c\x53"}["\x70e\x66\x69\x79\x74\x62"]="\x6c\x61\x62\x65l\x5f\x6f\x72\x64\x65\x72\x5finf\x6f";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["td\x6c\x75js\x6at\x67"]="\x72\x65\x67is\x74\x65re\x64\x5fs\x74\x61tu\x73";${"\x47\x4cO\x42\x41L\x53"}["\x6d\x77\x77y\x67\x6b\x70\x6c\x68\x74p"]="\x70r\x6fd\x75ct\x5f\x73\x69\x7a\x65";${"\x47\x4cO\x42\x41\x4cS"}["swp\x6c\x79\x79\x6d\x73\x79\x67o\x66"]="\x6c\x70\x5f\x70r\x6f\x64\x75\x63\x74";${"\x47\x4c\x4fBA\x4c\x53"}["\x6d\x68\x69\x66\x6f\x6a\x6b\x79k\x65\x71"]="\x70\x72\x6f\x64u\x63t\x5f\x69\x64";${"G\x4c\x4f\x42\x41L\x53"}["\x63p\x79b\x64\x61v\x76q\x6b\x74x"]="p\x72\x6f\x64u\x63\x74\x5f\x69n\x66\x6f";${"G\x4c\x4fB\x41L\x53"}["a\x61\x61\x6a\x6b\x6b\x64"]="pr\x6f\x64u\x63t_\x70\x72\x65\x66\x69\x78";${"\x47\x4c\x4fBALS"}["\x6a\x69\x62m\x67\x66\x63\x6c"]="\x74\x65r\x6di\x6e\x61\x6c\x73";${"\x47LOB\x41\x4c\x53"}["\x75\x62\x7a\x64\x78\x71\x71t\x63\x66"]="\x74q";${"\x47L\x4f\x42\x41L\x53"}["\x77\x73\x6bd\x66\x62y\x6c\x6ae"]="\x74\x65r\x6d\x69\x6e\x61\x6c\x5f\x69d";${"\x47\x4c\x4fB\x41\x4c\x53"}["z\x71vc\x73\x67m\x70\x69\x67h"]="pr\x6f\x64\x75\x63\x74\x5fc\x6f\x64\x65";${"GL\x4fB\x41L\x53"}["\x6c\x76\x71m\x70\x73el"]="\x6fr\x65\x64\x72\x5f\x69\x64";${"\x47\x4cO\x42\x41\x4cS"}["\x65\x62\x77\x64f\x7a\x6c\x7a\x70q\x6d\x69"]="\x6c\x5f\x64\x61\x74\x61";${"G\x4cOB\x41\x4cS"}["\x69o\x71\x6b\x78\x79\x70"]="\x63\x6f\x6c\x75\x6d\x6e";${"G\x4cOB\x41\x4c\x53"}["hj\x61b\x67s\x76m\x65ye"]="\x66\x69e\x6c\x64";${"\x47\x4cO\x42A\x4cS"}["\x63\x6a\x74\x61\x67\x7a\x6e\x65\x72\x65\x6df"]="\x66i\x6ed";${"G\x4c\x4fB\x41\x4c\x53"}["d\x62\x6c\x73\x78\x71\x67\x6ch"]="\x77\x68\x65r\x65";${"\x47\x4cO\x42ALS"}["\x76\x75\x6a\x71\x6d\x76\x71"]="\x76al\x75\x65";${"G\x4cO\x42\x41\x4c\x53"}["\x73\x63\x67\x63m\x6b\x6c"]="\x6frd\x65\x72_sel\x65\x63t";${"G\x4c\x4f\x42AL\x53"}["\x68\x76g\x73\x74\x71\x6d\x77\x6f"]="\x6e\x65\x77\x5f\x69\x64";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["o\x76\x72\x71ei\x71\x68\x78"]="lab\x65\x6c\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["y\x65\x66\x62\x72\x69x\x62\x77k"]="\x6c\x70\x5f\x70\x61rt\x6ee\x72o\x72\x64\x65\x72id";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x72l\x71\x74e\x67n"]="\x6c\x61\x62e\x6c\x5f\x69\x64";${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x74pw\x61\x6asgu\x6f\x76"]="\x73\x71\x6c";${"\x47\x4cO\x42\x41LS"}["\x70\x65\x6d\x76\x70\x69\x67\x63\x66jma"]="\x70\x72\x6fdu\x63\x74\x5f\x64\x61\x74\x61";${"G\x4cO\x42\x41\x4c\x53"}["\x6aq\x70y\x74\x62\x76\x69\x62\x73\x6a"]="\x64\x61ta";${"\x47\x4c\x4fBALS"}["\x70\x79\x69\x69\x6d\x78\x79\x6bo\x66"]="e\x5fo\x72\x64e\x72_\x69\x64";${"G\x4cO\x42\x41\x4cS"}["\x76\x63\x75rv\x7avqp"]="\x6d";${"G\x4cO\x42AL\x53"}["\x65\x68\x68\x62\x76j\x6c\x67\x7a\x6bs"]="\x6f\x72\x64\x65\x72\x5f\x69d";${"\x47L\x4fB\x41\x4c\x53"}["\x64r\x71\x63\x67\x73\x6b\x68\x78\x6d"]="id\x65\x6e\x74_\x63\x6f\x64\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x69g\x75\x6dw\x6b\x6b"]="\x71u\x65ry";${"\x47LO\x42A\x4c\x53"}["\x62\x6e\x71j\x66\x75"]="\x6cab\x65\x6c";class ModelLpexpressLpexpress extends Model{public function updateOrderAndLabels($data){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x67\x66\x64n\x6c\x78q"]="\x71\x75\x65ry";${${"\x47LOBA\x4c\x53"}["\x6b\x67\x66\x64\x6e\x6c\x78q"]}=$this->db->query("U\x50\x44\x41TE ".DB_PREFIX."\x6c\x70\x65xpr\x65s\x73\x5f\x6fr\x64\x65r\x20S\x45\x54\x20\n\t\t\tlp_o\x72d\x65\x72_id \x3d \x27".$this->db->escape($data->orderid)."',\n\t\t\tl\x70_t\x6ft\x61lsum\x20\x3d '".$this->db->escape($data->totalsum)."',\n\t\t\t\x6c\x70_\x63\x6fd\x73um\x20\x3d\x20\x27".$this->db->escape($data->codsum)."',\n\t\t\tl\x70_\x63ur\x72\x65ncy \x3d\x27".$this->db->escape($data->currency)."' \n\t\t\t\x57H\x45RE \x6cp_\x70\x61r\x74nerorderi\x64 =\x20\x27".$this->db->escape($data->partnerorderid)."\x27");if(!empty($data->labels)){foreach($data->labels as${${"\x47L\x4fBAL\x53"}["\x62\x6e\x71\x6a\x66u"]}){$this->db->query("\x55\x50DAT\x45\x20".DB_PREFIX."\x6cp\x65xpr\x65s\x73_\x6cab\x65\x6c\x73 SET\x20\n\t\t\t\to\x72d\x65rar\x74i\x64\x20=\x20'".$this->db->escape($label->orderartid)."\x27,\n\t\t\t\tlp_\x6f\x72\x64\x65r_\x69d = '".$this->db->escape($data->orderid)."\x27,\n\t\t\t\tp\x72i\x63\x65\x20\x3d '".$this->db->escape($label->price)."',\n\t\t\t\t\x63odp\x72\x69c\x65 \x3d '".$this->db->escape($label->codprice)."\x27\x20\n\t\t\t\tWHER\x45 pa\x72\x74\x6ee\x72\x6frder\x61\x72\x74\x69\x64 = \x27".$this->db->escape($label->partnerorderartid)."\x27");}}return$data->orderid;}public function updateOrderAndLabelsAfterConfirm($data){$nwghfvcni="i\x64e\x6e\x74_\x63\x6f\x64e";${${"\x47\x4c\x4fB\x41L\x53"}["\x70i\x67umw\x6b\x6b"]}=$this->db->query("U\x50\x44\x41T\x45 ".DB_PREFIX."l\x70e\x78\x70r\x65s\x73\x5f\x6f\x72d\x65r \x53E\x54\x20\n\t\t\tor\x64\x65r\x70df\x69\x64\x20=\x20'".$this->db->escape($data->orderpdfid)."'\x20\n\t\t\t\x57HE\x52\x45 \x6c\x70_par\x74\x6eer\x6f\x72\x64e\x72\x69\x64\x20\x3d\x20'".$this->db->escape($data->partnerorderid)."'");${$nwghfvcni}=array();if(!empty($data->labels)){foreach($data->labels as${${"\x47LO\x42\x41L\x53"}["b\x6eqj\x66\x75"]}){${"\x47\x4c\x4f\x42\x41L\x53"}["wr\x6c\x73\x68\x79"]="\x69d\x65\x6e\x74\x5fc\x6f\x64e";$this->db->query("\x55P\x44\x41\x54E ".DB_PREFIX."\x6cpe\x78press_\x6ca\x62e\x6c\x73\x20S\x45T \n\t\t\t\ti\x64\x65\x6etc\x6f\x64e \x3d\x20'".$this->db->escape($label->identcode)."',\n\t\t\t\t\x70r\x69\x6et\x70\x69n =\x20\x27".$this->db->escape($label->printpin)."'\x20\n\t\t\t\tWHERE p\x61r\x74\x6ee\x72\x6f\x72\x64e\x72\x61\x72\x74id\x20\x3d\x20\x27".$this->db->escape($label->partnerorderartid)."'");${${"\x47\x4c\x4f\x42\x41L\x53"}["w\x72\x6c\x73\x68y"]}[]=$label->identcode;}}return${${"\x47\x4c\x4fB\x41\x4cS"}["\x64\x72\x71\x63\x67s\x6b\x68\x78m"]};}public function updateOrderManifestData($order_id,$data){${"\x47\x4cO\x42\x41\x4c\x53"}["\x75\x66\x6ft\x6b\x77s\x6eh\x79\x78"]="\x64at\x61";$this->db->query("\x44EL\x45TE\x20F\x52\x4fM ".DB_PREFIX."\x6cp\x65xpr\x65ss_\x6d\x61\x6ei\x66\x65s\x74s WHE\x52E \x6f\x72de\x72\x5f\x69\x64=\x27".$this->db->escape(${${"G\x4cO\x42ALS"}["\x65\x68\x68\x62\x76j\x6cgz\x6bs"]})."\x27");foreach(${${"G\x4cO\x42A\x4c\x53"}["u\x66o\x74\x6b\x77\x73\x6eh\x79x"]} as${${"G\x4c\x4f\x42\x41\x4c\x53"}["v\x63\x75\x72\x76\x7a\x76\x71\x70"]}){$eryduofdegyr="o\x72\x64\x65\x72\x5f\x69\x64";$this->db->query("\x49N\x53\x45R\x54 IN\x54\x4f\x20".DB_PREFIX."lp\x65xpres\x73_m\x61\x6e\x69fe\x73\x74\x73 \x53\x45T\x20\n\t\t\t\to\x72d\x65r\x5f\x69\x64 =\x27".$this->db->escape(${$eryduofdegyr})."\x27,\n\t\t\t\t\x74\x79p\x65 =\x20\x27".$this->db->escape($m->type)."',\n\t\t\t\t\x70df\x69\x64\x20\x3d\x20\x27".$this->db->escape($m->pdfid)."',\n\t\t\t\tide\x6etc\x6fd\x65s\x20=\x20'".$this->db->escape($m->identCodes)."',\n\t\t\t\tname ='".$this->db->escape($m->name)."'\n\t\t\t");}}public function getManifests($order_id){${"G\x4cOB\x41\x4c\x53"}["dz\x72\x64q\x6a\x6dtw\x68\x67"]="\x71\x75\x65\x72\x79";$vivcnnjgrvv="o\x72\x64e\x72\x5f\x69\x64";${${"\x47\x4c\x4f\x42\x41L\x53"}["dz\x72\x64q\x6a\x6d\x74\x77hg"]}=$this->db->query("SEL\x45\x43T * \x46\x52\x4f\x4d\x20".DB_PREFIX."lp\x65x\x70r\x65ss\x5f\x6da\x6eif\x65\x73ts \x57\x48\x45R\x45 o\x72\x64e\x72\x5f\x69d\x3d\x27".(int)${$vivcnnjgrvv}."'");if($query->num_rows){return$query->rows;}return array();}public function prepareNewLabel(){$gwhiyvbver="\x6ca\x62e\x6c";$this->load->model("\x6cpexp\x72es\x73/\x6cib\x6c\x70\x65\x78pr\x65\x73s");${${"G\x4c\x4f\x42\x41\x4cS"}["\x62\x6eq\x6a\x66\x75"]}=$this->model_lpexpress_liblpexpress->prepareLPexpressLabel();return${$gwhiyvbver};}public function addLabel($orders){$eqxdfutysvv="e\x5for\x64\x65r\x5f\x69\x64";$this->load->model("lpe\x78p\x72\x65s\x73/\x6c\x69bl\x70e\x78\x70re\x73s");$tzhxvfszj="\x6f\x72\x64er\x5f\x69\x64";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70y\x69\x69\x6dx\x79k\x6f\x66"]}=$this->isOrderOpen();$inpnpdlm="\x65\x5f\x6fr\x64\x65\x72_\x69\x64";if(${${"\x47L\x4fBA\x4c\x53"}["\x70\x79\x69\x69mxy\x6b\x6f\x66"]}==0){$fgnjseoegkm="\x65\x5f\x6fr\x64\x65\x72_i\x64";${$fgnjseoegkm}=$this->addOrder();}$ioejfcf="\x6f\x72d\x65\x72\x73";foreach(${$ioejfcf} as${$tzhxvfszj}){${"\x47L\x4fB\x41L\x53"}["\x79\x6d\x75\x6dm\x62\x62"]="\x65\x5for\x64er\x5f\x69d";${${"\x47L\x4fB\x41\x4cS"}["b\x6eqj\x66u"]}=$this->model_lpexpress_liblpexpress->prepareLPexpressLabel(${${"\x47\x4c\x4f\x42\x41LS"}["\x65\x68\x68\x62\x76\x6a\x6c\x67\x7a\x6bs"]});$cbavxlufoq="\x6c\x61b\x65\x6c";$this->insertLabel(${${"\x47\x4c\x4f\x42A\x4cS"}["ym\x75\x6d\x6d\x62\x62"]},${$cbavxlufoq});}$this->updateOrderDate(${$eqxdfutysvv});return${$inpnpdlm};}public function saveLabel($data){if(!empty(${${"GL\x4f\x42\x41L\x53"}["j\x71pyt\x62\x76ibsj"]})){$hmfcnerpc="d\x61t\x61";if(${$hmfcnerpc}["\x6ca\x62el_\x69d"]>0){${"\x47\x4c\x4fB\x41\x4cS"}["\x6ay\x6af\x6d\x6e\x65\x64d"]="\x64\x61t\x61";$ntdpluunq="d\x61\x74\x61";${"G\x4c\x4f\x42ALS"}["tqv\x75w\x63eyj\x67q"]="\x64\x61\x74a";$wujcogso="\x64\x61ta";${"\x47\x4c\x4f\x42AL\x53"}["\x76xs\x74\x6e\x77d\x66m"]="\x64\x61t\x61";${"G\x4c\x4f\x42\x41L\x53"}["\x74m\x6a\x74\x65\x62\x6a\x6f\x62p"]="d\x61\x74\x61";$wfgbkyrbpn="sq\x6c";$jrdxij="\x64\x61\x74\x61";$hbteanebx="\x70rodu\x63\x74\x5f\x64\x61\x74\x61";$cxdflqr="da\x74a";${"G\x4cO\x42A\x4c\x53"}["\x70\x75\x76\x6c\x6c\x64"]="d\x61t\x61";$wvhlewsnxrs="\x64\x61\x74\x61";${"\x47LOBA\x4c\x53"}["\x6a\x62gwq\x73ry\x79"]="\x64\x61\x74\x61";${"G\x4c\x4fB\x41LS"}["dqn\x67s\x78da"]="\x64\x61ta";${$hbteanebx}=$this->getProduct(${${"G\x4cOB\x41\x4cS"}["j\x71\x70y\x74b\x76\x69\x62\x73\x6a"]}["\x70r\x6f\x64\x75\x63\x74\x63\x6fde"]);$uwkbwfdohix="d\x61\x74\x61";$kuqiwpxbfixl="\x64a\x74\x61";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["j\x71\x70\x79\x74bv\x69\x62s\x6a"]}["\x70\x61\x72\x63elw\x65i\x67ht"]=${${"\x47LO\x42\x41\x4c\x53"}["\x70e\x6dv\x70i\x67\x63f\x6a\x6d\x61"]}["\x6d\x61xw\x65ight"];${$cxdflqr}["bo\x78\x73ize"]=${${"\x47\x4cO\x42AL\x53"}["p\x65\x6d\x76\x70\x69\x67\x63\x66\x6a\x6d\x61"]}["bo\x78si\x7ae"];${${"\x47\x4c\x4f\x42A\x4cS"}["\x63\x74\x70w\x61j\x73gu\x6f\x76"]}="\x55\x50\x44\x41\x54\x45\x20".DB_PREFIX."lp\x65xp\x72\x65\x73\x73\x5f\x6cab\x65ls \x53ET\x20\n\t\t\t\t\t\tr\x65\x63e\x69ve\x72n\x61m\x65 \x3d\x20'".${$ntdpluunq}["\x72\x65c\x65ive\x72name"]."',\n\t\t\t\t\t\t\x72\x65c\x65iv\x65\x72\x6d\x6fb\x69\x6c\x65 \x3d\x20\x27".${${"\x47LO\x42A\x4c\x53"}["j\x71p\x79\x74\x62\x76\x69\x62s\x6a"]}["\x72e\x63e\x69\x76\x65\x72mo\x62\x69le"]."',\n\t\t\t\t\t\t\x72ec\x65\x69\x76\x65\x72\x65m\x61i\x6c\x20\x3d '".${${"\x47LO\x42A\x4cS"}["j\x71\x70\x79\x74\x62\x76i\x62\x73\x6a"]}["r\x65ce\x69\x76e\x72\x65m\x61\x69l"]."',\n\t\t\t\t\t\t\x72eceiv\x65\x72a\x64d\x72\x65ssf\x69el\x641 \x3d '".${$jrdxij}["r\x65ce\x69\x76e\x72\x61\x64\x64\x72e\x73sf\x69\x65\x6c\x64\x31"]."\x27,\n\t\t\t\t\t\t\x72\x65ce\x69ver\x61\x64d\x72es\x73\x63\x69t\x79 \x3d '".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64\x71\x6eg\x73\x78\x64\x61"]}["r\x65c\x65\x69\x76\x65\x72\x61\x64\x64r\x65\x73\x73city"]."\x27,\n\t\t\t\t\t\t\x72ece\x69v\x65\x72\x61d\x64\x72\x65ssz\x69\x70 = \x27".${${"\x47LOB\x41\x4cS"}["j\x62gw\x71\x73\x72\x79\x79"]}["r\x65c\x65ive\x72\x61\x64\x64\x72es\x73\x7a\x69\x70"]."\x27,\n\t\t\t\t\t\t\x72\x65c\x65\x69v\x65\x72ad\x64r\x65\x73sc\x6funtr\x79\x20\x3d '".${${"\x47L\x4fBA\x4c\x53"}["\x76\x78\x73\x74\x6ew\x64f\x6d"]}["r\x65\x63e\x69\x76\x65r\x61d\x64res\x73co\x75n\x74r\x79"]."',\n\t\t\t\t\t\t\x73ende\x72\x6e\x61\x6d\x65\x20= '".${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70uv\x6c\x6c\x64"]}["s\x65\x6ed\x65rnam\x65"]."',\n\t\t\t\t\t\tsende\x72\x6dob\x69\x6c\x65\x20= '".${${"\x47LOB\x41\x4cS"}["\x6a\x79jf\x6d\x6e\x65\x64d"]}["\x73e\x6e\x64\x65r\x6dobi\x6ce"]."',\n\t\t\t\t\t\t\x73en\x64e\x72\x65ma\x69\x6c \x3d\x20\x27".${${"GL\x4fB\x41L\x53"}["\x74m\x6a\x74e\x62\x6ao\x62\x70"]}["sende\x72\x65ma\x69l"]."\x27,\n\t\t\t\t\t\t\x73e\x6e\x64e\x72addressf\x69\x65l\x641\x20\x3d\x20'".${$uwkbwfdohix}["\x73\x65\x6e\x64\x65ra\x64\x64r\x65\x73sfi\x65l\x64\x31"]."\x27,\n\t\t\t\t\t\tsendera\x64dre\x73\x73ci\x74\x79\x20\x3d \x27".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6a\x71\x70y\x74b\x76\x69\x62s\x6a"]}["s\x65\x6ed\x65\x72\x61d\x64\x72ess\x63i\x74y"]."\x27,\n\t\t\t\t\t\t\x73\x65n\x64\x65\x72a\x64dressz\x69\x70 =\x20'".${${"\x47L\x4f\x42\x41L\x53"}["jq\x70y\x74\x62vibs\x6a"]}["s\x65\x6ed\x65r\x61\x64dress\x7aip"]."',\n\t\t\t\t\t\t\x73ende\x72\x61dd\x72ess\x63\x6fu\x6e\x74\x72\x79 = \x27".${$wvhlewsnxrs}["s\x65n\x64\x65r\x61dd\x72\x65\x73\x73co\x75n\x74r\x79"]."\x27,\n\t\t\t\t\t\tp\x72o\x64\x75c\x74\x63\x6fde \x3d '".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x71\x76\x75\x77\x63\x65y\x6ag\x71"]}["\x70roduct\x63\x6fd\x65"]."\x27,\n\t\t\t\t\t\t\x70\x61\x72\x63e\x6cw\x65ight\x20\x3d \x27".${$kuqiwpxbfixl}["\x70\x61\x72c\x65lw\x65ight"]."\x27,\n\t\t\t\t\t\t\x62\x6fxs\x69\x7ae\x20\x3d \x27".${${"\x47L\x4f\x42AL\x53"}["jq\x70\x79t\x62\x76\x69\x62s\x6a"]}["bo\x78size"]."'";if(isset(${${"\x47\x4c\x4f\x42\x41\x4cS"}["jq\x70y\x74\x62\x76\x69\x62\x73j"]}["r\x65ce\x69\x76er\x61\x64\x64r\x65s\x73\x6d\x75\x6ei\x63\x69\x70\x61\x6ci\x74y"])){${${"G\x4c\x4f\x42AL\x53"}["c\x74p\x77\x61j\x73\x67u\x6fv"]}.=", \x72\x65ce\x69v\x65\x72\x61ddr\x65s\x73mun\x69c\x69pa\x6ci\x74\x79\x20=\x20\x27".${${"\x47\x4cOB\x41LS"}["\x6a\x71\x70y\x74\x62\x76i\x62\x73\x6a"]}["\x72ec\x65i\x76\x65\x72\x61ddres\x73mu\x6eici\x70a\x6c\x69\x74\x79"]."\x27";}$pehnddo="\x64a\x74a";if(isset(${${"\x47\x4cOB\x41L\x53"}["\x6aq\x70y\x74bvi\x62\x73\x6a"]}["\x74arg\x65tmach\x69n\x65id\x65\x6e\x74ific\x61\x74\x69on"])){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74\x6ew\x6d\x73qn"]="\x64at\x61";${"\x47\x4c\x4fBA\x4c\x53"}["\x6d\x73\x6fb\x78\x6cus\x63p\x79"]="sql";${${"\x47\x4c\x4f\x42A\x4c\x53"}["m\x73o\x62\x78lus\x63\x70\x79"]}.=", \x74\x61r\x67et\x6da\x63\x68ine\x69\x64\x65n\x74\x69\x66\x69\x63a\x74i\x6f\x6e\x20\x3d\x20\x27".${${"\x47L\x4f\x42\x41L\x53"}["\x74\x6e\x77\x6d\x73qn"]}["t\x61r\x67\x65\x74\x6d\x61chineid\x65\x6et\x69fic\x61\x74i\x6f\x6e"]."\x27";}if(isset(${${"G\x4c\x4fB\x41L\x53"}["\x6a\x71\x70\x79\x74b\x76\x69bsj"]}["hascov\x65r\x6ce\x74ter"])){$rfnopcddxtl="\x73q\x6c";${$rfnopcddxtl}.=",\x20\x68\x61scov\x65\x72let\x74er =\x20'\x31\x27";}else{${"G\x4cO\x42\x41L\x53"}["\x6e\x76ix\x65\x67g"]="\x73\x71\x6c";${${"G\x4c\x4f\x42\x41L\x53"}["\x6e\x76\x69\x78e\x67\x67"]}.=",\x20ha\x73co\x76e\x72l\x65\x74\x74er\x20\x3d '\x30\x27";}if(isset(${$pehnddo}["\x69s\x63od"])){${${"\x47\x4cO\x42A\x4c\x53"}["\x63t\x70\x77\x61\x6as\x67u\x6f\x76"]}.=", \x69sc\x6fd \x3d\x20\x271'";}else{${"GL\x4fB\x41\x4cS"}["tu\x76\x63\x78\x76\x70\x68\x69\x78"]="\x73\x71l";${${"\x47L\x4fB\x41\x4c\x53"}["t\x75vcx\x76\x70\x68\x69\x78"]}.=",\x20is\x63\x6fd\x20\x3d \x270\x27";}$ssbcngryuhdt="\x64\x61\x74a";if(isset(${${"\x47\x4cO\x42\x41\x4c\x53"}["jq\x70\x79tb\x76\x69b\x73\x6a"]}["\x70r\x69\x6e\x74ty\x70e"])){${${"GL\x4f\x42\x41\x4c\x53"}["\x63\x74p\x77\x61\x6a\x73\x67\x75o\x76"]}.=",\x20p\x72int\x74\x79pe\x20= \x27t\x65\x72\x6d\x69\x6e\x61l\x27";}else{$kyngcohamtq="\x73\x71l";${$kyngcohamtq}.=",\x20p\x72in\x74t\x79p\x65\x20\x3d 'o\x74\x68er\x27";}if(isset(${$ssbcngryuhdt}["\x70ar\x63\x65\x6cvalue"])&&${${"\x47\x4cOB\x41LS"}["j\x71py\x74\x62\x76\x69b\x73\x6a"]}["pa\x72cel\x76a\x6c\x75\x65"]!=""){${${"\x47L\x4fBAL\x53"}["ctp\x77\x61\x6asgu\x6f\x76"]}.=", \x70ar\x63e\x6c\x76\x61l\x75e \x3d \x27".${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6a\x71py\x74\x62v\x69b\x73\x6a"]}["parce\x6cva\x6cue"]."'";}else{${${"G\x4c\x4fB\x41\x4cS"}["\x63t\x70\x77a\x6a\x73gu\x6f\x76"]}.=",\x20pa\x72c\x65\x6c\x76\x61\x6cue =\x20\x27\x30'";}if(isset(${${"\x47LO\x42\x41LS"}["\x6aq\x70y\x74\x62\x76\x69b\x73j"]}["p\x61\x72\x74\x73"])&&${$wujcogso}["parts"]>1){${${"\x47\x4c\x4fB\x41L\x53"}["\x63t\x70wajsg\x75\x6f\x76"]}.=",\x20parts\x20\x3d\x20\x27".${${"\x47\x4c\x4f\x42AL\x53"}["j\x71\x70\x79t\x62v\x69\x62\x73\x6a"]}["\x70a\x72\x74s"]."\x27";}else{${${"G\x4c\x4f\x42\x41\x4cS"}["\x63\x74pw\x61\x6as\x67u\x6fv"]}.=", pa\x72\x74s\x20\x3d '1'";}${$wfgbkyrbpn}.=" \x57HE\x52E\x20lab\x65l\x5fi\x64 = \x27".${${"\x47L\x4f\x42AL\x53"}["jq\x70y\x74\x62v\x69\x62sj"]}["\x6c\x61b\x65\x6c\x5fid"]."'";$this->db->query(${${"\x47\x4cOBAL\x53"}["\x63\x74\x70\x77a\x6a\x73g\x75\x6f\x76"]});}}}public function insertLabel($order_id,$label){$instwja="\x6c\x61b\x65\x6c";$jvllrkmdk="\x6c\x61\x62\x65\x6c";$daccrxia="\x6c\x61\x62\x65\x6c";$iltdkw="\x6c\x61\x62e\x6c";$nufzftsui="\x6ca\x62\x65\x6c";$mdfjvkzcd="la\x62\x65\x6c";${"\x47\x4cO\x42A\x4c\x53"}["\x72jcd\x62y"]="l\x61b\x65l";$sehkmljhfn="l\x61\x62\x65l";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67i\x69k\x72\x7arg\x6c\x6c\x6a"]="l\x61b\x65l";${"GLOB\x41\x4cS"}["\x6ai\x77\x67\x72o\x62\x62z\x72"]="\x6c\x61b\x65l";$tqdwfvkkdq="l\x61\x62\x65\x6c";${"\x47\x4c\x4f\x42A\x4cS"}["\x62\x71\x6b\x78\x67\x73bff"]="produ\x63\x74_da\x74a";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x69\x65i\x74\x62\x6b\x65"]="l\x61\x62\x65\x6c";${"G\x4cO\x42\x41\x4cS"}["\x79d\x73\x71t\x62\x6an\x75\x79\x71"]="l\x61\x62\x65\x6c";${"GL\x4fBAL\x53"}["s\x6d\x70s\x79\x67\x6e\x66"]="\x6ca\x62e\x6c";${"\x47LO\x42\x41\x4c\x53"}["\x74utw\x76ir"]="l\x61\x62\x65l";$bhrwoyw="\x6c\x61\x62\x65l";$pcotzy="\x6c\x61\x62\x65\x6c";${"\x47LO\x42A\x4c\x53"}["\x6a\x72\x75\x6e\x6e\x65qkit\x6f"]="\x6c\x61\x62\x65\x6c";${"\x47\x4c\x4fBA\x4cS"}["g\x6dm\x67\x78\x73b\x63p\x76"]="\x6ca\x62\x65\x6c";${"\x47L\x4fBA\x4c\x53"}["xnp\x6b\x68\x77qdd"]="l\x61b\x65\x6c";$fitvqnqsxyt="\x6c\x61b\x65\x6c";${"\x47\x4cOBA\x4c\x53"}["\x66\x65u\x61\x65dh\x6f\x68\x76"]="o\x72der\x5fid";$huldrjzx="\x6ca\x62\x65\x6c";${${"\x47LO\x42A\x4cS"}["\x62q\x6b\x78\x67\x73\x62\x66\x66"]}=$this->getProduct(${$instwja}["p\x72o\x64\x75\x63tcod\x65"]);${${"\x47LO\x42\x41L\x53"}["jr\x75\x6en\x65\x71\x6b\x69\x74\x6f"]}["\x70\x61\x72celw\x65i\x67h\x74"]=${${"\x47\x4c\x4f\x42AL\x53"}["\x70e\x6d\x76p\x69gc\x66jma"]}["m\x61x\x77ei\x67h\x74"];$fxanljfwrfs="l\x61\x62\x65l";${$iltdkw}["\x62o\x78\x73\x69\x7a\x65"]=${${"\x47\x4c\x4fBAL\x53"}["\x70emv\x70\x69\x67\x63\x66\x6a\x6d\x61"]}["b\x6fx\x73ize"];$wucocs="la\x62\x65l";$yyopcbt="s\x71l";$jjhojfeeb="\x6c\x61b\x65\x6c";$gwgguvcq="l\x61b\x65l";${${"G\x4c\x4f\x42\x41LS"}["\x78n\x70\x6b\x68\x77qdd"]}["\x70art\x6eerord\x65r\x61\x72\x74\x69\x64"]=${${"G\x4c\x4fB\x41LS"}["f\x65\x75\x61\x65d\x68\x6fh\x76"]}."_".${$nufzftsui}["sa\x6ce_\x6fr\x64\x65r_\x69\x64"]."\x5f".$this->getRandId();${${"G\x4c\x4fB\x41\x4c\x53"}["\x63\x74pw\x61js\x67\x75\x6fv"]}="\x49\x4eSER\x54\x20INTO\x20".DB_PREFIX."l\x70\x65\x78p\x72ess_\x6ca\x62el\x73\x20\x53E\x54 order_\x69\x64\x20=\x20\x27".(int)${${"GLOB\x41\x4c\x53"}["\x65\x68\x68b\x76\x6a\x6cg\x7ak\x73"]}."',\n\t\t\t\tp\x61r\x74\x6e\x65\x72or\x64\x65\x72\x61\x72\x74\x69d = \x27".${${"G\x4c\x4f\x42AL\x53"}["\x62n\x71j\x66\x75"]}["\x70ar\x74n\x65\x72o\x72\x64\x65r\x61\x72\x74\x69d"]."',\n\t\t\t\ts\x61\x6ce_\x6f\x72\x64\x65\x72_i\x64\x20= \x27".${${"\x47\x4cO\x42\x41\x4cS"}["\x62\x6eq\x6a\x66\x75"]}["s\x61l\x65_order\x5f\x69\x64"]."',\n\t\t\t\t\x73\x61le\x5f\x6fr\x64\x65r\x5fst\x61\x74us\x5fid\x20= '".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62\x6eqjf\x75"]}["\x73a\x6c\x65\x5f\x6f\x72d\x65\x72_\x73tat\x75\x73_id"]."',\n\t\t\t\tis\x63od\x20\x3d\x20'".${${"G\x4cO\x42\x41LS"}["i\x65\x69\x74b\x6b\x65"]}["i\x73\x63\x6f\x64"]."',\n\t\t\t\tpr\x6fductcode\x20\x3d \x27".${${"\x47LO\x42\x41\x4c\x53"}["\x67m\x6d\x67\x78s\x62\x63\x70v"]}["\x70ro\x64uct\x63\x6fde"]."',\n\t\t\t\t\x62ox\x73\x69\x7a\x65 \x3d\x20\x27".${${"\x47\x4cOB\x41\x4c\x53"}["\x62\x6eqj\x66u"]}["\x62ox\x73\x69\x7a\x65"]."',\n\t\t\t\tpa\x72ce\x6c\x76alu\x65 \x3d\x20\x27".${$daccrxia}["\x70\x61rc\x65\x6cv\x61\x6c\x75\x65"]."\x27,\n\t\t\t\tp\x61rc\x65l\x76\x61\x6cue\x63urre\x6ec\x79\x20\x3d\x20\x27".${$jvllrkmdk}["p\x61rc\x65\x6c\x76\x61lu\x65cu\x72\x72ency"]."\x27,\n\t\t\t\t\x73endern\x61me = '".${$bhrwoyw}["s\x65\x6e\x64ern\x61\x6d\x65"]."',\n\t\t\t\ts\x65\x6e\x64\x65rm\x6f\x62\x69\x6ce\x20\x3d \x27".${$pcotzy}["\x73e\x6ed\x65r\x6d\x6fbi\x6ce"]."',\n\t\t\t\tse\x6ed\x65r\x65\x6da\x69\x6c\x20= '".${${"G\x4c\x4f\x42A\x4cS"}["j\x69\x77g\x72o\x62\x62\x7a\x72"]}["s\x65\x6ed\x65r\x65\x6da\x69\x6c"]."',\n\t\t\t\t\x73\x65\x6e\x64\x65r\x61\x64\x64\x72e\x73\x73\x66\x69e\x6cd1 =\x20'".${${"G\x4c\x4f\x42AL\x53"}["\x62\x6e\x71\x6af\x75"]}["\x73\x65\x6e\x64er\x61\x64\x64\x72e\x73\x73fi\x65\x6cd1"]."\x27,\n\t\t\t\t\x73end\x65r\x61\x64\x64r\x65s\x73\x63\x69\x74\x79 = '".${$fitvqnqsxyt}["\x73e\x6e\x64\x65\x72a\x64\x64r\x65\x73\x73\x63ity"]."',\n\t\t\t\t\x73e\x6eder\x61\x64\x64res\x73zi\x70\x20\x3d '".${$huldrjzx}["\x73\x65\x6e\x64\x65\x72\x61dd\x72\x65\x73s\x7a\x69p"]."\x27,\n\t\t\t\t\x73en\x64\x65rad\x64r\x65\x73\x73cou\x6etry \x3d\x20\x27".${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67i\x69\x6b\x72zr\x67\x6c\x6c\x6a"]}["\x73e\x6eder\x61d\x64\x72\x65sscou\x6e\x74\x72y"]."',\n\t\t\t\t\x73\x65n\x64e\x72\x63\x75\x73to\x6d\x61\x64\x64re\x73s\x69\x64\x20\x3d\x20'".${$mdfjvkzcd}["se\x6e\x64er\x63\x75stoma\x64dre\x73\x73\x69\x64"]."',\n\t\t\t\t\x72ec\x65i\x76\x65rna\x6de\x20=\x20\x27".${$tqdwfvkkdq}["\x72e\x63\x65\x69v\x65rna\x6de"]."\x27,\n\t\t\t\tr\x65\x63ei\x76e\x72m\x6fbi\x6c\x65 = \x27".${${"\x47\x4c\x4fBA\x4cS"}["bn\x71j\x66\x75"]}["\x72ecei\x76\x65\x72\x6dobil\x65"]."',\n\t\t\t\t\x72eceiverema\x69\x6c\x20\x3d\x20'".${${"G\x4c\x4fB\x41\x4c\x53"}["bnq\x6a\x66u"]}["r\x65c\x65i\x76\x65r\x65mai\x6c"]."\x27,\n\t\t\t\t\x72\x65\x63\x65ive\x72ad\x64\x72\x65\x73\x73\x66\x69\x65l\x64\x31\x20=\x20'".${${"\x47\x4c\x4fB\x41\x4c\x53"}["bnq\x6a\x66\x75"]}["re\x63\x65iverad\x64r\x65\x73s\x66i\x65ld1"]."',\n\t\t\t\t\x72e\x63eive\x72\x61dd\x72\x65ssci\x74y\x20\x3d\x20'".${${"\x47L\x4fB\x41L\x53"}["b\x6e\x71jf\x75"]}["r\x65\x63eive\x72add\x72\x65\x73\x73\x63i\x74\x79"]."\x27,\n\t\t\t\t\x72ece\x69v\x65ra\x64d\x72\x65s\x73\x7a\x69p \x3d \x27".${${"G\x4c\x4f\x42A\x4cS"}["\x62n\x71j\x66u"]}["rece\x69\x76er\x61ddr\x65\x73sz\x69\x70"]."\x27,\n\t\t\t\t\x72\x65\x63e\x69\x76\x65ra\x64dr\x65s\x73mu\x6e\x69\x63ipal\x69ty \x3d\x20'".${$gwgguvcq}["re\x63e\x69\x76er\x61d\x64r\x65\x73smu\x6eici\x70\x61l\x69\x74\x79"]."\x27,\n\t\t\t\tre\x63\x65iverad\x64ress\x63\x6f\x75\x6etr\x79\x20= \x27".${${"G\x4c\x4f\x42A\x4c\x53"}["t\x75t\x77\x76\x69\x72"]}["re\x63ei\x76\x65r\x61dd\x72ess\x63\x6fun\x74ry"]."\x27,\n\t\t\t\t\x74a\x72\x67\x65\x74machi\x6ee\x69d\x65n\x74\x69\x66ic\x61tio\x6e\x20\x3d \x27".${${"\x47LO\x42\x41L\x53"}["\x62n\x71jfu"]}["\x74\x61\x72getmachin\x65\x69d\x65n\x74i\x66\x69c\x61t\x69o\x6e"]."',\n\t\t\t\tpr\x69n\x74\x74yp\x65\x20\x3d\x20\x27".${${"GL\x4fB\x41L\x53"}["b\x6e\x71jf\x75"]}["\x70\x72\x69n\x74\x74yp\x65"]."\x27,\n\t\t\t\tlabelf\x6frma\x74size\x20\x3d\x20\x27".${${"GL\x4fB\x41\x4c\x53"}["\x62nqj\x66\x75"]}["\x6ca\x62e\x6c\x66o\x72\x6d\x61tsi\x7a\x65"]."',\n\t\t\t\tp\x61rc\x65l\x77eight\x20\x3d '".${${"GL\x4f\x42\x41LS"}["rj\x63\x64\x62\x79"]}["\x70\x61\x72\x63e\x6c\x77\x65i\x67\x68t"]."\x27,\n\t\t\t\t\x68\x61s\x63o\x76erlet\x74\x65r \x3d '".${${"\x47L\x4f\x42\x41L\x53"}["\x73\x6d\x70\x73\x79\x67n\x66"]}["\x68asc\x6f\x76\x65\x72l\x65t\x74\x65r"]."',\n\t\t\t\t\x68\x61snpl\x20= '".${${"GL\x4fB\x41\x4c\x53"}["\x79\x64\x73\x71tb\x6an\x75y\x71"]}["has\x6e\x70\x6c"]."\x27,\n\t\t\t\t\x6ep\x6cr\x61n\x67e\x20=\x20\x27".${${"\x47LOBA\x4c\x53"}["\x62\x6eq\x6a\x66\x75"]}["\x6epl\x72\x61n\x67\x65"]."',\n\t\t\t\t\x68\x61\x73\x73d\x64 = '".${$jjhojfeeb}["ha\x73s\x64\x64"]."\x27,\n\t\t\t\t\x68\x61s\x69\x6e\x73ura\x6e\x63\x65\x20=\x20'".${${"GL\x4fBALS"}["\x62\x6e\x71\x6a\x66\x75"]}["\x68\x61si\x6e\x73u\x72\x61n\x63e"]."\x27,\n\t\t\t\t\x68aslo\x61d\x20=\x20\x27".${${"G\x4cO\x42A\x4cS"}["bnq\x6af\x75"]}["\x68\x61\x73load"]."\x27,\n\t\t\t\t\x64eliv\x65r\x79\x63o\x6dmen\x74\x20=\x20\x27".${$wucocs}["deliv\x65\x72y\x63\x6f\x6dm\x65nt"]."\x27,\n\t\t\t\tp\x61\x72\x74\x73\x20\x3d \x27".${${"\x47\x4c\x4fBALS"}["\x62\x6eqjf\x75"]}["p\x61\x72t\x73"]."',\n\t\t\t\t\x73\x65lf\x70\x6fstd\x65\x6c\x69v\x65ry\x20\x3d\x20'".${$sehkmljhfn}["\x73el\x66\x70\x6f\x73\x74\x64\x65\x6c\x69very"]."\x27,\n\t\t\t\th\x61\x73re\x74\x75rn\x70h\x6f\x74\x6f = '".${$fxanljfwrfs}["h\x61sr\x65t\x75rnp\x68oto"]."',\n\t\t\t\tha\x73s\x61td\x65\x6ci\x76\x65\x72y = '".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62nq\x6af\x75"]}["\x68\x61s\x73\x61\x74de\x6c\x69\x76er\x79"]."'";${${"G\x4c\x4f\x42A\x4c\x53"}["pi\x67\x75\x6d\x77kk"]}=$this->db->query(${$yyopcbt});}public function deleteLabel($label_id=0){if(${${"\x47L\x4fB\x41\x4c\x53"}["\x68\x72l\x71\x74\x65\x67\x6e"]}>0){$this->db->query("\x44\x45LE\x54\x45\x20F\x52OM ".DB_PREFIX."\x6c\x70e\x78p\x72\x65s\x73\x5f\x6c\x61\x62e\x6cs W\x48\x45R\x45\x20\x6ca\x62el_\x69\x64\x20= '".(int)${${"GLO\x42A\x4cS"}["h\x72\x6c\x71tegn"]}."\x27");}}public function getTotalOrders($data){$dprjtbdpw="\x71\x75\x65\x72\x79";${$dprjtbdpw}=$this->db->query("\x53EL\x45CT\x20co\x75n\x74(ord\x65r_id) AS or\x64e\x72\x5ft\x6ft\x6fa\x6c FR\x4fM\x20".DB_PREFIX."\x6cp\x65\x78pr\x65ss_o\x72d\x65\x72");if($query->num_rows){return$query->row["o\x72d\x65\x72\x5ft\x6ftoal"];}return 0;}public function getOrders($data){$yshrvuu="d\x61\x74\x61";$gxpikfmpbvk="\x73\x71\x6c";$eszaxqmynr="\x64\x61\x74\x61";${$gxpikfmpbvk}="\x53E\x4c\x45\x43\x54 *, (\x53ELE\x43\x54\x20co\x75\x6et(la\x62el_id) \x20F\x52\x4fM\x20".DB_PREFIX."l\x70exp\x72es\x73_\x6ca\x62\x65\x6c\x73\x20o\x6c \x20\x57\x48\x45\x52E \x6f\x6c\x2e\x6frd\x65\x72\x5f\x69\x64 = \x6c\x6f\x2e\x6frd\x65r\x5fid\x20) AS\x20\x6cabe\x6c_c\x6fu\x6et F\x52\x4f\x4d\x20".DB_PREFIX."lp\x65xpre\x73\x73_ord\x65r\x20\x6co\x20\x4f\x52DE\x52\x20B\x59 d\x61\x74e_upda\x74e\x64 \x44ES\x43, \x6f\x72\x64\x65\x72_id \x44ES\x43";if(isset(${$yshrvuu}["\x73ta\x72t"])||isset(${$eszaxqmynr}["l\x69\x6di\x74"])){$ranbrwsiy="\x73\x71\x6c";${"\x47\x4cOB\x41\x4c\x53"}["xd\x79cb\x64r"]="d\x61\x74\x61";$ungecdp="d\x61\x74\x61";if(${${"\x47\x4c\x4f\x42A\x4cS"}["\x78dy\x63bdr"]}["sta\x72\x74"]<0){${"\x47\x4cOBA\x4cS"}["\x76j\x78\x65\x64\x6f"]="da\x74\x61";${${"\x47\x4cOB\x41\x4c\x53"}["\x76j\x78\x65\x64\x6f"]}["st\x61rt"]=0;}if(${${"G\x4cOB\x41LS"}["\x6a\x71\x70\x79\x74\x62\x76\x69\x62\x73\x6a"]}["limi\x74"]<1){${${"G\x4c\x4f\x42\x41\x4c\x53"}["j\x71\x70y\x74b\x76\x69\x62s\x6a"]}["l\x69\x6di\x74"]=20;}${$ranbrwsiy}.=" LI\x4d\x49\x54 ".(int)${${"G\x4cO\x42\x41\x4cS"}["\x6aq\x70\x79\x74\x62\x76ibs\x6a"]}["\x73\x74\x61\x72\x74"].",".(int)${$ungecdp}["\x6ci\x6d\x69t"];}${${"\x47L\x4fB\x41LS"}["pi\x67umwk\x6b"]}=$this->db->query(${${"\x47\x4cOBA\x4cS"}["\x63t\x70\x77\x61js\x67\x75\x6f\x76"]});if($query->num_rows){return$query->rows;}return array();}public function updateOrderDate($order_id){if(${${"G\x4c\x4f\x42\x41\x4cS"}["e\x68\x68\x62v\x6a\x6c\x67z\x6b\x73"]}>0){$oxjdbfjuhb="\x71\x75ery";${$oxjdbfjuhb}=$this->db->query("U\x50\x44ATE ".DB_PREFIX."\x6c\x70\x65x\x70\x72es\x73_ord\x65\x72\x20SET d\x61\x74e\x5f\x75pd\x61ted\x3dNO\x57() \x57HER\x45 or\x64er\x5f\x69d \x3d\x20\x27".(int)${${"\x47\x4c\x4fB\x41LS"}["\x65\x68\x68b\x76jl\x67z\x6b\x73"]}."\x27");}}public function setOrderHasError($order_id){if(${${"\x47LO\x42\x41\x4c\x53"}["\x65\x68\x68\x62v\x6a\x6c\x67\x7a\x6b\x73"]}>0){$lldlilyfenr="\x6frd\x65\x72_\x69\x64";$porris="\x71u\x65\x72\x79";${$porris}=$this->db->query("\x55\x50\x44A\x54\x45\x20".DB_PREFIX."\x6cp\x65\x78\x70\x72\x65\x73s_\x6fr\x64e\x72\x20\x53\x45T\x20h\x61\x73\x5ferro\x72\x73\x3d'\x31'\x20W\x48\x45R\x45 \x6f\x72der\x5fid \x3d\x20\x27".(int)${$lldlilyfenr}."\x27");}}public function orderHasErrors($order_id){if(${${"\x47\x4c\x4f\x42\x41L\x53"}["e\x68\x68\x62\x76\x6a\x6cgz\x6b\x73"]}>0){${"\x47L\x4fB\x41\x4c\x53"}["o\x6a\x76v\x70\x63j"]="\x71\x75\x65r\x79";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6f\x6av\x76\x70c\x6a"]}=$this->db->query("\x53EL\x45CT\x20\x20\x68as\x5f\x65\x72\x72ors FRO\x4d\x20".DB_PREFIX."\x6cpe\x78\x70\x72e\x73\x73_\x6fr\x64\x65r \x57\x48E\x52E has_e\x72ror\x73\x3d\x27\x31'\x20\x41N\x44 \x6f\x72\x64\x65r_\x69d\x20=\x20'".(int)${${"\x47L\x4fB\x41\x4cS"}["\x65\x68\x68\x62\x76\x6a\x6c\x67\x7a\x6b\x73"]}."\x27");if($query->num_rows){if($query->row["\x68a\x73_\x65r\x72\x6fr\x73"]==1){return true;}return false;}}return true;}public function removeOrderError($order_id){${"GLOBA\x4c\x53"}["\x64oli\x77m"]="\x6f\x72\x64e\x72\x5fid";if(${${"GL\x4fB\x41LS"}["\x64\x6f\x6c\x69wm"]}>0){${${"\x47\x4c\x4f\x42\x41LS"}["p\x69\x67\x75\x6d\x77k\x6b"]}=$this->db->query("\x55\x50\x44A\x54\x45\x20".DB_PREFIX."\x6cp\x65xpress_or\x64\x65\x72 S\x45\x54\x20has\x5f\x65rr\x6frs=\x270' W\x48\x45RE\x20\x6frde\x72\x5fid =\x20'".(int)${${"\x47\x4cOB\x41L\x53"}["\x65\x68\x68\x62\x76\x6algz\x6b\x73"]}."\x27");}}public function regenerateIds($order_id){$anltuhbk="\x6f\x72\x64\x65r\x5f\x69\x64";${${"G\x4c\x4f\x42A\x4c\x53"}["\x79e\x66br\x69x\x62w\x6b"]}=$this->generateOrderId();${"GL\x4f\x42\x41\x4cS"}["cz\x74\x78jek\x72\x6d\x70"]="\x6f\x72\x64\x65\x72\x5f\x69d";$aictifvevs="\x6c\x70_\x70\x61rt\x6e\x65\x72or\x64\x65\x72\x69\x64";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x70\x69gu\x6dwkk"]}=$this->db->query("UP\x44\x41TE\x20".DB_PREFIX."l\x70\x65\x78p\x72\x65\x73\x73\x5ford\x65r \x53\x45\x54\x20\x6c\x70_\x70ar\x74neror\x64er\x69d\x3d\x27".$this->db->escape(${$aictifvevs})."\x27\x20\x57H\x45\x52\x45\x20o\x72d\x65r\x5f\x69\x64\x20= \x27".(int)${$anltuhbk}."'");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fvr\x71eiq\x68\x78"]}=$this->getLabels(array("or\x64e\x72_\x69d"=>${${"\x47\x4c\x4fBA\x4c\x53"}["c\x7at\x78je\x6b\x72\x6dp"]}));foreach(${${"\x47\x4cO\x42AL\x53"}["\x6f\x76\x72\x71\x65i\x71\x68x"]} as${${"G\x4c\x4f\x42\x41\x4c\x53"}["b\x6e\x71j\x66\x75"]}){$irnikvmdghb="\x73\x71l";${"G\x4c\x4fB\x41\x4c\x53"}["\x75\x74n\x62yf\x78i"]="\x6c\x61\x62e\x6c";${${"\x47\x4cO\x42\x41L\x53"}["h\x76\x67st\x71\x6dwo"]}=${${"\x47L\x4fBAL\x53"}["\x65\x68\x68\x62\x76\x6a\x6c\x67\x7a\x6bs"]}."\x5f".${${"\x47\x4c\x4fB\x41LS"}["\x62\x6eqj\x66\x75"]}["\x73a\x6ce_\x6fr\x64\x65r\x5f\x69d"]."\x5f".$this->getRandId();${$irnikvmdghb}="U\x50\x44\x41\x54\x45\x20".DB_PREFIX."\x6cpe\x78p\x72\x65ss_\x6c\x61be\x6c\x73\x20\x53E\x54 \x70\x61\x72tne\x72\x6f\x72\x64er\x61rti\x64\x3d\x27".$this->db->escape(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x76\x67\x73\x74\x71\x6dw\x6f"]})."' \x57\x48\x45\x52\x45 o\x72\x64\x65\x72_\x69\x64='".(int)${${"\x47L\x4fBAL\x53"}["\x65hh\x62\x76\x6a\x6c\x67\x7a\x6bs"]}."'\x20A\x4e\x44\x20\x6cabe\x6c_id\x3d'".(int)${${"GL\x4f\x42\x41L\x53"}["\x75\x74\x6ebyf\x78\x69"]}["l\x61\x62el\x5f\x69d"]."'";$this->db->query(${${"\x47\x4c\x4f\x42\x41LS"}["\x63\x74p\x77\x61\x6as\x67\x75o\x76"]});}return${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x79\x65\x66\x62\x72\x69xb\x77\x6b"]};}public function findLabels($column,$value,$include_order_data=false,$order='DESC',$limit='10'){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x63\x67c\x6d\x6bl"]}="";$gkwyezgrqy="\x73\x71\x6c";$nfriheo="\x69\x6e\x63l\x75\x64e\x5f\x6frd\x65\x72_d\x61\x74a";if(${$nfriheo}==true){$fzimkivog="\x6fr\x64\x65\x72\x5f\x73e\x6c\x65\x63t";${$fzimkivog}=",\x20(S\x45\x4c\x45CT\x20da\x74e_\x61\x64ded FROM ".DB_PREFIX."\x6c\x70express_\x6f\x72\x64er\x20l\x6f \x57H\x45\x52\x45\x20l\x6f.o\x72\x64e\x72_\x69\x64\x20\x3d l\x6c.\x6fr\x64\x65\x72_\x69d\x20)\x20A\x53\x20d\x61\x74\x65_reg\x69ste\x72\x65d ";}${"\x47\x4c\x4fBA\x4c\x53"}["ib\x73\x7af\x74\x6ad"]="\x63\x6f\x6c\x75\x6d\x6e";${${"G\x4cO\x42\x41\x4c\x53"}["\x63\x74\x70w\x61\x6as\x67\x75\x6f\x76"]}="\x53\x45\x4c\x45\x43\x54 *".${${"G\x4c\x4f\x42AL\x53"}["\x73\x63\x67\x63\x6dk\x6c"]}."\x20\x46\x52\x4fM ".DB_PREFIX."lpex\x70r\x65\x73\x73\x5fl\x61b\x65ls\x20\x6c\x6c\x20\x57H\x45R\x45 ".$this->db->escape(${${"\x47LOB\x41\x4cS"}["ib\x73\x7a\x66\x74\x6a\x64"]})."\x3d\x27".$this->db->escape(${${"\x47\x4c\x4fBA\x4c\x53"}["v\x75\x6a\x71\x6d\x76\x71"]})."'\x20OR\x44\x45R B\x59\x20lab\x65l\x5f\x69d\x20\x44E\x53C LIM\x49\x54\x20\x31\x30";${${"GL\x4f\x42\x41\x4c\x53"}["p\x69\x67u\x6dw\x6b\x6b"]}=$this->db->query(${$gkwyezgrqy});return$query->rows;}public function findLabelsAutocomplete($find,$field='receivername'){$piqfmlevo="g\x72\x6f\x75\x70\x5f\x62\x79";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x65\x74\x76n\x6e\x68\x6c\x78t"]="g\x72\x6f\x75p\x5f\x62\x79";$dygdthbfyyj="fi\x65\x6c\x64";$tapchmtgfnu="\x77\x68ere";${"G\x4c\x4f\x42\x41\x4cS"}["\x62\x74\x77e\x6ae\x79z\x6dn\x70"]="\x66\x69\x65l\x64";${$piqfmlevo}="";$qjndxwerxys="s\x71\x6c";${"\x47\x4c\x4fB\x41\x4c\x53"}["f\x6a\x6a\x79\x74\x71\x66\x70"]="\x73q\x6c";if(${$dygdthbfyyj}=="\x72\x65\x63e\x69v\x65\x72name"){${"\x47\x4c\x4f\x42AL\x53"}["o\x6b\x62mn\x6e"]="g\x72\x6f\x75\x70\x5fb\x79";${"\x47\x4c\x4f\x42\x41LS"}["\x61blls\x6b\x6bhfyp"]="colu\x6dn";${${"\x47\x4cO\x42AL\x53"}["\x61\x62ll\x73\x6bk\x68\x66\x79\x70"]}="\x20\x72ecei\x76e\x72n\x61\x6d\x65\x20";${${"G\x4cOB\x41L\x53"}["\x64blsx\x71g\x6ch"]}="WHERE\x20\x4c\x4f\x57ER(recei\x76er\x6e\x61\x6d\x65)\x20\x4c\x49KE \x27".strtolower($this->db->escape(${${"\x47\x4cOB\x41\x4c\x53"}["c\x6ata\x67\x7anere\x6d\x66"]}))."%\x27";${${"\x47LO\x42\x41\x4c\x53"}["\x6fk\x62\x6dn\x6e"]}=" G\x52OU\x50\x20\x42\x59\x20\x72e\x63\x65iverna\x6de";}else if(${${"\x47\x4c\x4fB\x41\x4c\x53"}["hj\x61b\x67svm\x65\x79\x65"]}=="id\x65ntc\x6f\x64e"){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x6a\x66\x72\x77k\x75"]="\x63\x6f\x6c\x75mn";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x6a\x66\x72\x77k\x75"]}=" i\x64\x65n\x74cod\x65 ";${${"GL\x4f\x42\x41\x4cS"}["\x64\x62\x6cs\x78qg\x6c\x68"]}="W\x48E\x52E L\x4f\x57\x45\x52(ident\x63\x6f\x64\x65)\x20\x4c\x49K\x45\x20'".strtolower($this->db->escape(${${"\x47L\x4f\x42AL\x53"}["\x63\x6a\x74a\x67\x7ane\x72\x65mf"]}))."\x25'";}else if(${${"GLOB\x41LS"}["\x62\x74\x77e\x6a\x65\x79\x7a\x6d\x6e\x70"]}=="r\x65c\x65\x69ve\x72mo\x62\x69\x6c\x65"){$ekchdjupyto="\x77h\x65\x72\x65";${${"GL\x4fB\x41\x4c\x53"}["\x69o\x71\x6b\x78y\x70"]}="\x20\x72\x65\x63\x65\x69\x76e\x72\x6do\x62i\x6ce\x20";${"G\x4cO\x42\x41L\x53"}["smt\x6e\x72dup"]="g\x72\x6f\x75\x70_\x62\x79";${$ekchdjupyto}="\x57\x48E\x52E\x20\x4c\x4f\x57\x45\x52(rece\x69v\x65\x72\x6dobi\x6c\x65)\x20LIK\x45\x20\x27\x25".strtolower($this->db->escape(${${"\x47L\x4f\x42AL\x53"}["c\x6at\x61\x67\x7an\x65re\x6df"]}))."\x25'";${${"GLO\x42\x41\x4cS"}["\x73\x6d\x74\x6e\x72\x64\x75\x70"]}="\x20G\x52O\x55P BY \x72\x65\x63e\x69\x76\x65\x72\x6d\x6f\x62\x69l\x65";}else if(${${"\x47LO\x42\x41LS"}["h\x6a\x61bg\x73\x76\x6de\x79\x65"]}=="r\x65\x63\x65\x69\x76e\x72\x65\x6da\x69l"){${"G\x4cO\x42\x41L\x53"}["\x6c\x75\x76l\x79\x65\x6c\x6d"]="\x77\x68\x65\x72\x65";${${"\x47L\x4f\x42AL\x53"}["\x6c\x75\x76\x6c\x79elm"]}="WHER\x45\x20\x4cO\x57E\x52(r\x65ceiv\x65r\x65\x6d\x61\x69) \x4cIK\x45 \x27".strtolower($this->db->escape(${${"\x47L\x4f\x42\x41L\x53"}["cj\x74\x61gz\x6e\x65\x72\x65\x6d\x66"]}))."%'";}else if(${${"\x47L\x4fB\x41\x4cS"}["h\x6aa\x62\x67s\x76\x6d\x65\x79\x65"]}=="or\x64\x65\x72\x5f\x69d"){$icgldkmfl="\x63o\x6c\x75\x6d\x6e";$vwoikakd="f\x69\x6ed";${$icgldkmfl}=" s\x61\x6c\x65_o\x72\x64\x65\x72\x5fid\x20A\x53 \x6frder_id\x20";${${"\x47\x4c\x4fB\x41\x4cS"}["\x64\x62\x6c\x73x\x71\x67l\x68"]}="WH\x45\x52\x45 \x73ale\x5for\x64\x65\x72_\x69\x64\x20L\x49\x4bE '".strtolower($this->db->escape(${$vwoikakd}))."\x25\x27";}${$qjndxwerxys}="\x53\x45\x4cE\x43T\x20".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x6f\x71kx\x79\x70"]}." \x46ROM\x20".DB_PREFIX."\x6c\x70e\x78press\x5f\x6c\x61b\x65l\x73\x20".${$tapchmtgfnu}.${${"\x47\x4c\x4fBA\x4c\x53"}["pe\x74\x76\x6e\x6e\x68\x6cx\x74"]}." \x4f\x52\x44E\x52\x20\x42\x59\x20lab\x65l_i\x64\x20D\x45S\x43";${${"\x47\x4c\x4f\x42\x41LS"}["p\x69g\x75m\x77\x6bk"]}=$this->db->query(${${"GLO\x42\x41\x4c\x53"}["\x66\x6a\x6a\x79\x74\x71\x66p"]});return$query->rows;}public function getLabels($l_data){${"\x47L\x4f\x42\x41LS"}["e\x70\x6c\x6c\x62\x77\x75\x74\x6dp\x6c"]="\x73q\x6c";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x70\x6c\x6c\x62\x77\x75\x74mp\x6c"]}="\x53\x45\x4c\x45C\x54 * FROM\x20".DB_PREFIX."\x6cpe\x78pres\x73_l\x61b\x65\x6c\x73 W\x48\x45R\x45 o\x72\x64\x65r\x5fid\x3d'".(int)${${"\x47L\x4f\x42\x41L\x53"}["\x65b\x77\x64\x66\x7alz\x70q\x6d\x69"]}["order_i\x64"]."'\x20OR\x44\x45\x52 \x42Y\x20\x6cabe\x6c\x5fid\x20\x44\x45S\x43";${${"\x47\x4cOB\x41\x4cS"}["\x70i\x67\x75\x6dw\x6b\x6b"]}=$this->db->query(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63\x74\x70\x77\x61\x6a\x73\x67\x75\x6fv"]});if($query->num_rows){return$query->rows;}return array();}public function getLabelsToCancel($oredr_id){$oiitobjidley="\x73\x71l";${$oiitobjidley}="SELE\x43T\x20i\x64e\x6e\x74\x63\x6f\x64e \x46\x52OM\x20".DB_PREFIX."l\x70\x65\x78\x70\x72e\x73\x73_labe\x6cs\x20\x57\x48\x45\x52E\x20id\x65\x6et\x63\x6f\x64e <\x3e \x27\x27\x20AN\x44 \x6f\x72\x64er_\x69d='".(int)${${"\x47\x4cO\x42\x41L\x53"}["\x6c\x76\x71mp\x73\x65\x6c"]}."\x27";${${"\x47LO\x42A\x4cS"}["pi\x67\x75mw\x6b\x6b"]}=$this->db->query(${${"G\x4c\x4fB\x41\x4c\x53"}["\x63\x74\x70w\x61\x6asg\x75ov"]});if($query->num_rows){return$query->rows;}return array();}public function clearIdentCode($ident_code){$krodfvxlrq="\x73\x71l";${"\x47LO\x42\x41L\x53"}["j\x75\x63\x76\x74\x71\x75d\x67"]="\x73\x71l";$ubnndwzttqq="\x71\x75\x65\x72y";${${"\x47\x4cO\x42\x41\x4cS"}["j\x75c\x76\x74\x71\x75d\x67"]}="U\x50D\x41\x54E ".DB_PREFIX."l\x70exp\x72\x65s\x73\x5f\x6c\x61\x62\x65\x6c\x73 \x53ET i\x64\x65\x6e\x74\x63\x6f\x64e\x3d\x27', o\x72d\x65\x72\x61r\x74id\x20=\x20\x27' \x57HE\x52E i\x64e\x6e\x74c\x6fd\x65\x20\x3d'".$this->db->escape(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x64\x72\x71\x63\x67sk\x68\x78\x6d"]})."\x27";${$ubnndwzttqq}=$this->db->query(${$krodfvxlrq});}public function removePDFS($order_id){$this->db->query("\x44E\x4cE\x54E FR\x4fM\x20".DB_PREFIX."\x6cp\x65xpr\x65ss_m\x61\x6ei\x66e\x73\x74s WHERE o\x72de\x72_id\x3d\x27".$this->db->escape(${${"\x47\x4c\x4f\x42A\x4cS"}["eh\x68\x62v\x6a\x6cgzks"]})."\x27");${"\x47L\x4fB\x41L\x53"}["\x77\x66\x6fx\x68\x65\x77\x75h\x70\x75"]="\x6fr\x64e\x72\x5f\x69\x64";$this->db->query("\x55\x50DAT\x45 ".DB_PREFIX."lp\x65\x78\x70r\x65s\x73_or\x64\x65r S\x45T \n\t\t\t\t\x6frderp\x64\x66id\x20=\x20\x27', \n\t\t\t\t\x6c\x70_\x6frd\x65\x72_\x69\x64\x20\x3d\x20\x27', \n\t\t\t\tl\x70\x5ft\x6f\x74\x61\x6cs\x75m\x20= \x27\x30\x27,\x20\n\t\t\t\tlp_\x63\x6f\x64su\x6d \x3d\x27\x200', \n\t\t\t\tlp\x5fcu\x72\x72e\x6e\x63\x79\x20\x3d \x27', \n\t\t\t\t\x68\x61\x73\x5f\x65rro\x72s =\x20'\x30\x27,\x20\n\t\t\t\tdate\x5fupdated\x3dNO\x57()\x20\n\t\t\t\t\x57\x48\x45RE\x20\x6fr\x64er\x5f\x69\x64='".$this->db->escape(${${"\x47\x4c\x4fB\x41\x4cS"}["wf\x6f\x78he\x77uh\x70u"]})."'");}public function hasUnconfirmedLabels($order_id){$fjwewsz="\x71\x75\x65r\x79";${${"\x47\x4c\x4fBAL\x53"}["\x63\x74\x70\x77ajs\x67u\x6f\x76"]}="\x53ELECT\x20co\x75nt(\x69d\x65\x6et\x63\x6fd\x65) \x41S\x20\x75n\x63\x6fnfirmed\x20\x46RO\x4d ".DB_PREFIX."l\x70expr\x65\x73s_\x6c\x61b\x65ls \x57HE\x52\x45\x20ident\x63ode <>\x20\x27'\x20A\x4e\x44\x20o\x72de\x72a\x72t\x69d\x20<>\x20\x27\x30\x27\x20A\x4e\x44\x20o\x72d\x65\x72\x5f\x69\x64=\x27".(int)${${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x68h\x62\x76\x6a\x6cg\x7ak\x73"]}."'";${$fjwewsz}=$this->db->query(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x63\x74\x70w\x61\x6a\x73\x67\x75\x6fv"]});if($query->num_rows){if($query->row["\x75\x6e\x63o\x6efi\x72m\x65d"]>0){return true;}return false;}return array();}public function getLabel($label_id){$pnbpocizsbu="s\x71\x6c";$dbgfgpf="\x6ca\x62e\x6c_\x69\x64";${$pnbpocizsbu}="S\x45\x4cE\x43\x54 * FRO\x4d ".DB_PREFIX."\x6c\x70\x65\x78\x70\x72es\x73\x5fla\x62\x65ls WHER\x45 \x6cab\x65\x6c\x5fid\x3d'".(int)${$dbgfgpf}."\x27 LI\x4dI\x54 \x31";${${"\x47LO\x42\x41\x4c\x53"}["\x70\x69\x67\x75\x6d\x77\x6bk"]}=$this->db->query(${${"\x47LO\x42AL\x53"}["\x63\x74\x70\x77a\x6a\x73\x67uo\x76"]});if($query->num_rows){return$query->row;}return array();}public function getLabelsToConfirm($order_id){$eopumqt="\x6ca\x62\x65\x6c\x73";${$eopumqt}=array();${"G\x4c\x4fB\x41\x4cS"}["he\x71\x69\x74x\x78"]="que\x72\x79";$ujgjpzlguod="o\x72d\x65\x72\x5f\x69\x64";${${"GL\x4fB\x41\x4c\x53"}["c\x74\x70w\x61js\x67u\x6fv"]}="SE\x4c\x45C\x54 pa\x72\x74\x6eer\x6fr\x64e\x72a\x72t\x69d,\n\t\t\t\t\t\tis\x63od,\n\t\t\t\t\t\t\x70\x72od\x75\x63t\x63ode,\n\t\t\t\t\t\t\x62o\x78s\x69z\x65,\n\t\t\t\t\t\tpa\x72\x63e\x6c\x76a\x6c\x75e,\n\t\t\t\t\t\t\x70a\x72ce\x6c\x76alu\x65c\x75\x72\x72enc\x79,\n\t\t\t\t\t\tse\x6e\x64\x65\x72\x6e\x61\x6d\x65,\n\t\t\t\t\t\t\x73\x65\x6ed\x65rm\x6fb\x69l\x65,\n\t\t\t\t\t\tsende\x72e\x6d\x61il,\n\t\t\t\t\t\ts\x65\x6eder\x61\x64\x64\x72\x65\x73\x73\x66i\x65l\x641,\n\t\t\t\t\t\t\x73\x65nd\x65r\x61d\x64\x72ess\x63i\x74\x79,\n\t\t\t\t\t\t\x73en\x64e\x72a\x64\x64\x72ess\x7aip,\n\t\t\t\t\t\t\x73end\x65ra\x64\x64\x72e\x73\x73c\x6f\x75\x6et\x72y,\n\t\t\t\t\t\t\x73\x65nderc\x75s\x74o\x6d\x61\x64\x64r\x65ssid,\n\t\t\t\t\t\trece\x69v\x65\x72\x6e\x61me,\n\t\t\t\t\t\tr\x65\x63eiv\x65rmo\x62\x69l\x65,\n\t\t\t\t\t\t\x72\x65\x63\x65iv\x65\x72e\x6dai\x6c,\n\t\t\t\t\t\tre\x63\x65\x69v\x65\x72a\x64\x64\x72e\x73sf\x69\x65\x6c\x641,\n\t\t\t\t\t\t\x72ec\x65\x69ver\x61ddr\x65s\x73c\x69t\x79,\n\t\t\t\t\t\tr\x65ce\x69ve\x72\x61ddre\x73sz\x69p,\n\t\t\t\t\t\tre\x63e\x69\x76\x65r\x61d\x64res\x73\x6d\x75\x6ei\x63ipal\x69\x74y,\n\t\t\t\t\t\t\x72e\x63eiv\x65\x72\x61\x64\x64\x72ess\x63\x6fu\x6e\x74\x72y,\n\t\t\t\t\t\t\x74a\x72ge\x74\x6dachi\x6ee\x69de\x6etific\x61tio\x6e,\n\t\t\t\t\t\t\x70\x72in\x74type,\n\t\t\t\t\t\tl\x61b\x65lf\x6frm\x61tsize,\n\t\t\t\t\t\t\x70\x61\x72c\x65\x6c\x77\x65i\x67ht,\n\t\t\t\t\t\t\x68a\x73\x63\x6f\x76erl\x65t\x74er,\n\t\t\t\t\t\t\x68\x61\x73np\x6c,\n\t\t\t\t\t\t\x6e\x70\x6c\x72\x61n\x67e,\n\t\t\t\t\t\thassd\x64,\n\t\t\t\t\t\th\x61\x73in\x73u\x72an\x63e,\n\t\t\t\t\t\thasl\x6fad,\n\t\t\t\t\t\tde\x6c\x69v\x65r\x79\x63omme\x6et,\n\t\t\t\t\t\tpar\x74\x73,\n\t\t\t\t\t\ts\x65l\x66\x70ost\x64el\x69\x76\x65\x72y,\n\t\t\t\t\t\t\x68as\x72e\x74\x75r\x6e\x70h\x6f\x74o,\n\t\t\t\t\t\t\x68\x61\x73s\x61td\x65l\x69\x76e\x72\x79 \n\t\t\t\t\x46RO\x4d ".DB_PREFIX."\x6cpex\x70r\x65s\x73_\x6cab\x65\x6cs\x20WH\x45\x52E\x20\x6fr\x64e\x72_\x69\x64='".(int)${$ujgjpzlguod}."\x27 O\x52\x44\x45\x52 BY\x20lab\x65\x6c_id\x20\x44ESC";${${"\x47\x4cOB\x41L\x53"}["\x68e\x71\x69\x74xx"]}=$this->db->query(${${"\x47L\x4f\x42AL\x53"}["\x63\x74p\x77\x61j\x73gu\x6f\x76"]});if($query->num_rows){$cpdjtfrw="l\x61\x62el";foreach($query->rows as${$cpdjtfrw}){${"\x47L\x4fB\x41\x4cS"}["t\x79c\x68\x74x"]="\x70r\x6f\x64\x75ct\x5f\x63o\x64e";${"G\x4cO\x42\x41\x4c\x53"}["\x72d\x77\x63\x72\x68w\x73\x74\x63"]="l\x61\x62el";$tjpcww="\x70r\x6f\x64uc\x74\x5f\x63\x6fde";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x79c\x68\x74\x78"]}=explode("_",${${"GL\x4f\x42\x41\x4cS"}["\x62\x6e\x71\x6afu"]}["pr\x6f\x64\x75ct\x63o\x64e"]);if((${${"\x47\x4cOBA\x4c\x53"}["\x7a\x71\x76\x63s\x67m\x70\x69\x67\x68"]}[0]!="\x45MS")||(${$tjpcww}[0]!="EP\x47")||(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x7a\x71v\x63s\x67\x6d\x70i\x67h"]}!="EG_\x330\x300\x30\x5f\x31\x350\x30000\x5fC\x4f")){${"\x47\x4c\x4fB\x41L\x53"}["\x6erl\x62\x73\x71"]="\x6c\x61b\x65\x6c";unset(${${"\x47\x4c\x4fB\x41\x4cS"}["nr\x6c\x62\x73\x71"]}["pa\x72\x63\x65\x6cwe\x69g\x68t"]);}${${"\x47\x4cOBALS"}["\x6fvr\x71\x65\x69\x71h\x78"]}[]=${${"\x47\x4c\x4f\x42\x41L\x53"}["r\x64wcr\x68\x77\x73\x74\x63"]};}}return${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6fv\x72\x71\x65i\x71\x68\x78"]};}public function addOrder(){$this->db->query("\x49N\x53\x45\x52T\x20IN\x54O\x20".DB_PREFIX."\x6cp\x65xpr\x65s\x73_\x6f\x72\x64\x65\x72\x20\x53\x45T lp\x5fpart\x6e\x65r\x6frd\x65rid = \x27".$this->db->escape($this->generateOrderId())."',\x20dat\x65_\x61d\x64e\x64 \x20\x3d\x20\x4eO\x57()");return$this->db->getLastId();}public function deleteOrder($order_id){$qvyzwkhphs="o\x72d\x65\x72_id";${"G\x4c\x4f\x42ALS"}["m\x64\x76m\x7ah\x72\x72\x6c\x72"]="or\x64\x65r_\x69\x64";$this->restoreOrderStatuses(${${"G\x4c\x4f\x42\x41L\x53"}["\x6ddv\x6d\x7a\x68\x72\x72\x6cr"]});$this->removePDFS(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65hh\x62v\x6a\x6c\x67zks"]});$this->db->query("DE\x4c\x45\x54\x45 \x46\x52OM\x20".DB_PREFIX."l\x70\x65xpr\x65s\x73_\x6c\x61\x62el\x73\x20\x57\x48\x45\x52\x45 o\x72der_id\x20\x3d '".(int)${$qvyzwkhphs}."'");$this->db->query("\x44\x45\x4cE\x54E\x20\x46RO\x4d\x20".DB_PREFIX."lp\x65\x78p\x72e\x73s\x5fo\x72d\x65r \x57H\x45RE \x6f\x72der_id\x3d\x27".(int)${${"\x47\x4cOB\x41L\x53"}["e\x68\x68\x62v\x6a\x6c\x67\x7ak\x73"]}."\x27");}private function isOrderOpen(){${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x74\x70wajs\x67\x75\x6f\x76"]}="S\x45\x4cECT\x20\x6frder_\x69\x64 \x46\x52OM ".DB_PREFIX."l\x70ex\x70\x72\x65\x73s\x5forde\x72\x20\x57\x48E\x52\x45 lp\x5f\x6fr\x64\x65\x72_id \x3d\x20\x27\x27 \x4f\x52\x44\x45R B\x59\x20d\x61\x74\x65\x5fadd\x65d \x44\x45\x53C\x20\x4cI\x4d\x49\x54 \x31";${${"\x47\x4c\x4fB\x41L\x53"}["\x70\x69\x67u\x6dwk\x6b"]}=$this->db->query(${${"\x47\x4cOBALS"}["\x63t\x70w\x61\x6a\x73\x67\x75o\x76"]});if($query->num_rows){return$query->row["ord\x65\x72\x5f\x69d"];}return 0;}private function generateOrderId(){return md5(HTTP_CATALOG.date("\x59-\x6d-d H:i:s"));}public function isOrderRegistered($order_id){${${"GL\x4f\x42\x41\x4cS"}["\x63\x74\x70\x77ajs\x67\x75\x6fv"]}="\x53E\x4c\x45CT \x6cp_o\x72\x64\x65\x72_i\x64\x20\x46RO\x4d\x20".DB_PREFIX."\x6cp\x65\x78\x70res\x73_\x6frder\x20W\x48E\x52E\x20\x6f\x72\x64e\x72_i\x64 \x3d\x27".$this->db->escape(${${"GL\x4f\x42A\x4cS"}["e\x68\x68\x62\x76jlg\x7a\x6b\x73"]})."\x27 L\x49MI\x54 1";$vqsjboawjfq="\x73\x71\x6c";${"G\x4c\x4f\x42\x41\x4cS"}["d\x68\x67\x62\x72\x62\x77\x6e"]="q\x75\x65\x72\x79";${${"\x47\x4c\x4f\x42ALS"}["d\x68\x67\x62\x72\x62\x77\x6e"]}=$this->db->query(${$vqsjboawjfq});if($query->num_rows){if($query->row["l\x70\x5f\x6fr\x64\x65r_id"]==""){return false;}else{return true;}}return false;}public function markOrderAsShipped($order_id){${"\x47\x4c\x4f\x42\x41LS"}["j\x75c\x65\x6f\x7ab\x6ewy"]="\x73\x71\x6c";$bjubwkziioq="\x73q\x6c";${$bjubwkziioq}="\x55PDATE ".DB_PREFIX."l\x70e\x78p\x72\x65\x73\x73_\x6frd\x65r\x20SE\x54\x20\x69\x73_c\x6f\x6efirm\x65d\x20= '\x31\x27, \x64\x61t\x65\x5fu\x70date\x64\x3dN\x4f\x57()\x20W\x48\x45\x52E\x20o\x72d\x65r_id\x20\x3d\x27".$this->db->escape(${${"\x47LO\x42\x41\x4c\x53"}["\x65hh\x62\x76\x6a\x6cgzks"]})."\x27 \x4cIM\x49T 1";$this->db->query(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6a\x75c\x65\x6f\x7abn\x77\x79"]});}public function isOrderShipped($order_id){${"\x47\x4c\x4fB\x41\x4cS"}["\x74\x72\x76\x63\x67pb\x68y"]="s\x71\x6c";${${"\x47\x4cOB\x41\x4c\x53"}["\x74r\x76\x63\x67pbhy"]}="S\x45\x4c\x45\x43T \x6c\x70\x5f\x6frd\x65\x72_\x69\x64 F\x52O\x4d ".DB_PREFIX."lp\x65\x78\x70re\x73s\x5f\x6f\x72d\x65\x72 \x57H\x45\x52\x45 is_\x63\x6f\x6ef\x69r\x6d\x65\x64=\x271\x27 AND \x6f\x72\x64\x65\x72\x5f\x69\x64 \x3d'".$this->db->escape(${${"\x47LO\x42\x41\x4c\x53"}["\x65\x68\x68bv\x6a\x6c\x67\x7ak\x73"]})."'\x20\x4cI\x4dIT 1";${${"G\x4c\x4f\x42\x41L\x53"}["\x70\x69\x67u\x6d\x77\x6bk"]}=$this->db->query(${${"\x47\x4c\x4fBA\x4c\x53"}["\x63\x74p\x77\x61\x6asg\x75ov"]});if($query->num_rows){if($query->row["\x6c\x70\x5f\x6frd\x65r_i\x64"]==""){return false;}else{return true;}}return false;}public function getPartnerOrderId($order_id){${"G\x4cO\x42\x41\x4c\x53"}["\x76\x77\x74\x62b\x65u\x6e"]="\x6f\x72\x64\x65r\x5f\x69d";$xqkytyp="q\x75\x65r\x79";${${"GL\x4f\x42A\x4c\x53"}["\x63t\x70w\x61\x6a\x73\x67\x75\x6f\x76"]}="\x53\x45\x4c\x45\x43T\x20\x6c\x70_\x70a\x72\x74ner\x6f\x72\x64\x65rid \x46\x52\x4f\x4d\x20".DB_PREFIX."l\x70\x65xp\x72\x65ss\x5f\x6f\x72d\x65r\x20W\x48\x45R\x45\x20\x6f\x72\x64er_\x69\x64 \x3d'".$this->db->escape(${${"G\x4cO\x42A\x4c\x53"}["\x76\x77\x74\x62\x62\x65u\x6e"]})."'\x20LI\x4dIT\x201";${$xqkytyp}=$this->db->query(${${"GL\x4f\x42\x41LS"}["\x63\x74pw\x61j\x73\x67u\x6fv"]});return$query->row["lp_\x70a\x72tn\x65\x72orde\x72i\x64"];}public function getLabelFormats(){$svvrdubklg="\x71\x75\x65\x72\x79";${$svvrdubklg}=$this->db->query("\x53ELE\x43\x54\x20\x6c\x61\x79\x6fut, \x64escrip\x74\x69o\x6e\x20\x46\x52OM\x20".DB_PREFIX."l\x70\x65\x78p\x72es\x73\x5f\x6c\x61\x62e\x6c_\x6ca\x79\x6f\x75\x74s");if($query->num_rows){return$query->rows;}return array();}public function getTerminals(){$jckmxtubix="\x74\x71";$reljfryns="\x73\x71l";${$reljfryns}="SE\x4cE\x43T id, \x6ea\x6d\x65, \x43\x4f\x4e\x43AT(c\x69ty,\x20', \x27, \x61\x64\x64r\x65ss) \x41S\x20\x61\x64d\x72\x65\x73s, \x63o\x6d\x6d\x65\x6et, c\x6fll\x65\x63\x74\x69\x6eg\x68\x6fur\x73, w\x6frkin\x67\x68o\x75\x72s \x46RO\x4d\x20".DB_PREFIX."\x6cpe\x78pres\x73_t\x65\x72m\x69\x6ea\x6c\x73\x20\x57H\x45\x52\x45 \x61\x63t\x69\x76\x65\x20= \x31 \x4f\x52D\x45R\x20BY c\x69\x74\x79\x20\x64es\x63";${"G\x4cO\x42\x41\x4cS"}["\x6f\x73\x72\x70\x64\x64\x6elj"]="\x73\x71\x6c";${$jckmxtubix}=$this->db->query(${${"GLOBA\x4c\x53"}["\x6f\x73r\x70\x64\x64n\x6cj"]});if(!empty($tq->rows)){return$tq->rows;}return array();}public function getTerminal($terminal_id){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7at\x62n\x63\x73\x78\x63"]="\x73ql";${"G\x4cO\x42A\x4cS"}["\x73ywf\x69d\x76\x6e\x6c"]="\x73\x71\x6c";${${"G\x4c\x4f\x42\x41\x4c\x53"}["s\x79\x77f\x69\x64\x76n\x6c"]}="S\x45LE\x43\x54 * FRO\x4d ".DB_PREFIX."l\x70\x65x\x70\x72es\x73\x5ft\x65\x72\x6di\x6e\x61\x6c\x73\x20W\x48\x45\x52\x45\x20\x61ct\x69\x76\x65\x20\x3d\x201 \x41N\x44\x20i\x64=\x27".$this->db->escape(${${"\x47\x4cOB\x41L\x53"}["w\x73\x6b\x64f\x62\x79lj\x65"]})."\x27 \x4c\x49M\x49\x54\x201";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x75bz\x64x\x71q\x74\x63\x66"]}=$this->db->query(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x7a\x74\x62\x6e\x63\x73\x78c"]});if($tq->num_rows){return$tq->row;}return array();}public function getTerminalId($label_id){${${"GL\x4f\x42\x41\x4cS"}["\x70\x69g\x75m\x77k\x6b"]}=$this->db->query("S\x45\x4cE\x43T \x74\x61\x72\x67etm\x61c\x68i\x6ee\x69\x64\x65n\x74i\x66i\x63a\x74io\x6e \x46\x52O\x4d ".DB_PREFIX."\x6c\x70\x65\x78\x70re\x73s_\x6c\x61b\x65l\x73 WHE\x52\x45\x20l\x61b\x65\x6c_i\x64=\x27".(int)${${"\x47\x4cO\x42A\x4cS"}["h\x72l\x71\x74\x65g\x6e"]}."\x27");if($query->num_rows){return$query->row["t\x61r\x67et\x6d\x61ch\x69\x6ee\x69\x64ent\x69f\x69cat\x69\x6fn"];}return 0;}public function insertTerminals($terminals){$this->db->query("\x44EL\x45\x54E F\x52\x4fM ".DB_PREFIX."lpexp\x72e\x73\x73\x5ft\x65r\x6d\x69\x6e\x61\x6cs");$fbsskbkxhgcx="te\x72\x6d\x69\x6ea\x6c";foreach(${${"\x47\x4cOB\x41LS"}["\x6aib\x6d\x67\x66cl"]} as${$fbsskbkxhgcx}){$this->db->query("I\x4eSERT\x20\x49NT\x4f ".DB_PREFIX."lpexp\x72\x65ss\x5f\x74\x65r\x6d\x69\x6eals\x20\x53\x45\x54\n\n\t\t\t\x20\x60\x69d`\x20\x3d \x27".$this->db->escape($terminal->machineid)."\x27,\n\t\t\t \x60\x61c\x74i\x76e` \x20= '1',\n\t\t\t\x20`\x6e\x61\x6d\x65\x60 \x3d \x27".$this->db->escape($terminal->name)."\x27,\n\t\t\t\x20\x60\x61\x64\x64\x72e\x73s\x60 = \x27".$this->db->escape($terminal->address)."',\n\t\t\t\x20\x60\x7a\x69p\x60\x20\x3d \x27".$this->db->escape($terminal->zip)."',\n\t\t\t `city` \x3d '".$this->db->escape($terminal->city)."\x27,\n\t\t\t \x60l\x61\x74it\x75d\x65\x60\x20\x3d '".$this->db->escape($terminal->latitude)."',\n\t\t\t\x20\x60\x6co\x6egitu\x64e`\x3d\x20\x27".$this->db->escape($terminal->longitude)."',\n\t\t\t\x20\x60\x63ommen\x74\x60 \x3d\x20'".$this->db->escape($terminal->comment)."',\n\t\t\t `co\x6c\x6cec\x74\x69ngh\x6f\x75\x72\x73` \x3d '".$this->db->escape($terminal->collectinghours)."\x27,\n\t\t\t \x60w\x6f\x72king\x68\x6fur\x73` \x3d \x27".$this->db->escape($terminal->workinghours)."',\n\t\t\t\x20\x60\x73o\x72\x74\x5f\x6f\x72\x64er` =\x20\x271\x27\n\t\t\t");}}public function getProduct($product_id){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x71\x63p\x64\x6ae"]="\x70\x72\x6fdu\x63\x74\x5fid";${${"\x47\x4cO\x42A\x4c\x53"}["\x63\x74\x70w\x61\x6as\x67\x75\x6f\x76"]}="\x53\x45L\x45\x43T *\x20F\x52\x4f\x4d\x20".DB_PREFIX."\x6cp\x65\x78\x70\x72\x65s\x73\x5f\x70r\x6f\x64\x75cts\x20\x57H\x45R\x45\x20produ\x63ti\x64='".$this->db->escape(${${"\x47\x4c\x4fB\x41LS"}["\x70\x71\x63p\x64\x6a\x65"]})."\x27\x20L\x49M\x49T\x20\x31";$utypwlxychh="sq\x6c";${${"G\x4cOBA\x4cS"}["p\x69\x67\x75m\x77kk"]}=$this->db->query(${$utypwlxychh});if($query->num_rows){return$query->row;}}public function getProducts($product_prefix=''){$ihkxlqksiugp="s\x71l";${$ihkxlqksiugp}="\x53\x45\x4c\x45C\x54 *\x20F\x52\x4f\x4d\x20".DB_PREFIX."\x6cp\x65x\x70\x72es\x73_\x70ro\x64ucts";${"\x47LO\x42\x41\x4c\x53"}["\x6b\x6a\x69ci\x75\x69\x65\x65y\x6c"]="\x70r\x6fd\x75ct\x5f\x70\x72\x65\x66i\x78";$sbakepmgw="\x71u\x65\x72y";if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x6a\x69\x63\x69\x75\x69\x65e\x79\x6c"]}!=""){$hvegbcmkw="\x73\x71\x6c";${$hvegbcmkw}.="\x20\x57\x48E\x52\x45\x20\x70\x72\x6f\x64u\x63\x74\x69\x64 \x4cI\x4bE\x20'".${${"\x47\x4cOB\x41\x4cS"}["\x61\x61\x61j\x6b\x6b\x64"]}."\x25' \x4fRDER\x20B\x59\x20\x6dax\x77ei\x67\x68\x74, \x64\x69\x6densi\x6fn_y ASC";}${$sbakepmgw}=$this->db->query(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63\x74\x70w\x61\x6a\x73\x67\x75ov"]});if($query->num_rows){return$query->rows;}return array();}public function getProductName($product_id){${"\x47L\x4f\x42\x41L\x53"}["\x6b\x67\x6bo\x6b\x67\x61"]="\x70\x72\x6f\x64\x75ct\x5f\x73\x69\x7ae";$khutkfa="\x6cp_\x70r\x6f\x64\x75\x63t";$xjwwurirbrt="p\x72\x6fd\x75\x63\x74_i\x64";${$khutkfa}="";$jgtdpiuwdz="p\x72\x6f\x64uc\x74\x5f\x69\x64";${${"\x47\x4c\x4fB\x41L\x53"}["\x6bg\x6bok\x67a"]}=array("Sm\x61\x6cl"=>"S","\x4c\x61\x72ge"=>"L","M\x65di\x75\x6d"=>"\x4d","X\x4car\x67\x65"=>"\x58L");${${"\x47L\x4f\x42\x41\x4c\x53"}["\x63p\x79\x62\x64\x61\x76vq\x6bt\x78"]}=$this->getProduct(${$jgtdpiuwdz});$lkmkhslovnxt="\x70\x72oduc\x74\x5f\x69\x64";if(strpos(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6d\x68\x69\x66\x6f\x6ak\x79\x6b\x65q"]},"\x45\x47")!==false||strpos(${$xjwwurirbrt},"AB")!==false){$dzseymbk="p\x72\x6f\x64uc\x74_\x69\x6e\x66\x6f";${"G\x4c\x4f\x42A\x4c\x53"}["\x67\x63\x77p\x79sm\x68"]="\x6cp\x5fp\x72\x6fd\x75\x63t";${${"G\x4cO\x42\x41\x4c\x53"}["g\x63wp\x79\x73\x6d\x68"]}=(${$dzseymbk}["m\x69n\x77e\x69gh\x74"]/1000)."\x6bg - ".(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x70y\x62\x64\x61\x76\x76\x71\x6b\x74\x78"]}["m\x61x\x77e\x69\x67\x68t"]/1000)."kg";}else if(strpos(${${"G\x4c\x4f\x42\x41\x4c\x53"}["m\x68i\x66\x6fj\x6b\x79\x6b\x65\x71"]},"\x482C")!==false||strpos(${$lkmkhslovnxt},"\x43\x32\x43")!==false||strpos(${${"\x47LOB\x41L\x53"}["\x6d\x68\x69\x66\x6f\x6a\x6b\x79\x6be\x71"]},"\x432\x48")!==false){${"\x47\x4c\x4f\x42\x41L\x53"}["\x78u\x72\x6et\x79m\x62"]="\x70\x72\x6f\x64u\x63\x74\x5fin\x66o";$qibsguf="\x70r\x6fdu\x63\x74\x5f\x69\x6ef\x6f";${${"\x47LO\x42\x41\x4c\x53"}["\x73\x77\x70\x6c\x79\x79m\x73\x79\x67of"]}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6dw\x77\x79\x67\x6b\x70l\x68\x74\x70"]}[${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78\x75\x72n\x74\x79\x6d\x62"]}["b\x6f\x78s\x69\x7a\x65"]]."\x20(".${${"G\x4c\x4f\x42\x41\x4cS"}["\x63\x70\x79\x62\x64\x61\x76v\x71\x6b\x74\x78"]}["d\x69men\x73\x69\x6fn\x5fx"]."\x20\x78\x20".${$qibsguf}["d\x69m\x65\x6es\x69on_\x79"]." x\x20".${${"G\x4cO\x42A\x4cS"}["\x63py\x62d\x61\x76v\x71\x6bt\x78"]}["dim\x65\x6e\x73i\x6f\x6e\x5f\x7a"].")";}return${${"\x47\x4c\x4fBA\x4cS"}["\x73w\x70lyy\x6d\x73yg\x6f\x66"]};}public function updateOrderStatusRegistered($order_id){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68mk\x64\x66t\x72kd"]="\x6f\x72\x64\x65r\x5fi\x64\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x6a\x6f\x6c\x61\x6a\x7a\x73"]="\x6f\x72\x64\x65\x72\x5f\x69\x64";${${"G\x4c\x4fB\x41\x4c\x53"}["\x68\x6d\x6bd\x66trkd"]}=$this->db->query("S\x45L\x45C\x54\x20\x73ale\x5f\x6frd\x65r\x5f\x69\x64 \x46RO\x4d\x20".DB_PREFIX."lpe\x78\x70ress\x5flab\x65\x6c\x73\x20\x57\x48E\x52E o\x72der\x5f\x69d='".(int)${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x6a\x6f\x6c\x61jzs"]}."' AND\x20\x73\x61l\x65\x5f\x6frde\x72_\x69d\x20<>\x200");${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x64\x6c\x75\x6a\x73j\x74\x67"]}=$this->config->get("\x6cp\x65\x5f\x6fr\x64e\x72_\x73t\x61\x74\x75\x73_\x72eg\x69ste\x72\x65d");if($order_ids->num_rows){${"\x47L\x4fBAL\x53"}["\x77e\x71\x75\x65\x71c"]="\x72\x6f\x77";foreach($order_ids->rows as${${"G\x4cO\x42\x41\x4c\x53"}["\x77e\x71u\x65\x71c"]}){$jxcfcbt="\x72\x6f\x77";${"\x47\x4c\x4fBA\x4c\x53"}["\x72\x6a\x6f\x6c\x6e\x64\x6a\x61ct"]="\x72e\x67is\x74e\x72\x65d\x5f\x73tat\x75\x73";$this->db->query("U\x50\x44AT\x45 `".DB_PREFIX."o\x72der` \x53ET \x6frder_\x73t\x61\x74\x75\x73\x5fid\x3d'".(int)${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x72j\x6fl\x6e\x64\x6aact"]}."\x27\x20W\x48\x45R\x45\x20\x6fr\x64e\x72\x5fi\x64\x3d'".(int)${$jxcfcbt}["\x73a\x6ce\x5for\x64e\x72\x5fi\x64"]."\x27");}}}public function restoreOrderStatus($label_id){$lfftghd="o\x6c\x64\x5f\x73t\x61\x74\x75\x73";${"\x47\x4c\x4fBA\x4cS"}["\x73\x75\x70\x70\x66\x72"]="\x6cab\x65\x6c_id";${$lfftghd}=$this->db->query("\x53\x45\x4cE\x43T\x20\x73\x61le_\x6f\x72d\x65\x72_sta\x74us\x5fi\x64,\x20s\x61\x6c\x65\x5f\x6fr\x64er\x5fi\x64 FROM\x20".DB_PREFIX."\x6cp\x65x\x70r\x65s\x73\x5fla\x62e\x6c\x73 WHERE\x20\x6cab\x65l\x5fi\x64=\x27".(int)${${"G\x4cO\x42A\x4c\x53"}["\x73\x75p\x70\x66\x72"]}."' \x41N\x44 sale_or\x64e\x72_\x69d\x20<> 0 \x4c\x49M\x49\x54 \x31");if($old_status->num_rows){$gyihnogrvk="\x6c\x61\x62\x65\x6c\x5fo\x72\x64\x65\x72_i\x6e\x66o";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x70\x65f\x69\x79tb"]}=$old_status->row;$this->db->query("UPD\x41\x54E\x20`".DB_PREFIX."o\x72d\x65\x72\x60\x20\x53\x45\x54\x20ord\x65r\x5f\x73\x74a\x74\x75\x73_i\x64=\x27".(int)${$gyihnogrvk}["\x73a\x6c\x65_o\x72de\x72_s\x74\x61t\x75s\x5fi\x64"]."\x27\x20W\x48\x45RE\x20\x6f\x72\x64e\x72_id\x3d'".(int)${${"\x47\x4cO\x42\x41L\x53"}["\x70e\x66\x69\x79t\x62"]}["\x73\x61\x6c\x65\x5f\x6frd\x65\x72_\x69d"]."' \x4c\x49\x4d\x49T \x31");}}public function restoreOrderStatuses($order_id){$glswrldd="o\x72\x64\x65r_\x69\x64";${"GLOB\x41\x4c\x53"}["n\x70j\x74\x6a\x70\x67\x77\x70\x75\x6d\x6e"]="\x6f\x6c\x64\x5fs\x74\x61\x74\x75\x73";${${"\x47LO\x42\x41L\x53"}["n\x70jt\x6a\x70\x67\x77\x70um\x6e"]}=$this->db->query("\x53ELEC\x54 sal\x65_o\x72de\x72_s\x74\x61\x74u\x73\x5fid,\x20\x73a\x6c\x65\x5f\x6frd\x65r_\x69d\x20\x46\x52\x4f\x4d\x20".DB_PREFIX."l\x70\x65xpres\x73\x5f\x6cab\x65\x6c\x73\x20W\x48ERE ord\x65\x72\x5fid\x3d\x27".(int)${$glswrldd}."\x27\x20\x41\x4e\x44\x20s\x61le_\x6f\x72der_\x69\x64\x20<>\x20\x30\x20\x41\x4eD sa\x6ce\x5f\x6f\x72d\x65\x72\x5fst\x61\x74u\x73_\x69\x64\x20\x3c>\x20\x30");if($old_status->num_rows){$ebbbndgkkeu="\x72o\x77";foreach($old_status->rows as${$ebbbndgkkeu}){$ziknfnhpj="ro\x77";$oyicuwrv="\x72\x6f\x77";$this->db->query("\x55\x50DAT\x45\x20`".DB_PREFIX."or\x64\x65r` S\x45T or\x64\x65\x72\x5f\x73\x74a\x74\x75\x73_\x69\x64\x3d'".(int)${$ziknfnhpj}["s\x61le_ord\x65\x72_\x73tat\x75\x73\x5f\x69\x64"]."'\x20W\x48ERE\x20o\x72\x64\x65r\x5f\x69d=\x27".(int)${$oyicuwrv}["\x73\x61\x6c\x65\x5for\x64\x65\x72_\x69d"]."\x27");}}}public function updateOrderStatusConfirmed($order_id){$ctguvrml="\x6eot\x69\x66\x79";$kevvrstejwo="\x6f\x72de\x72\x5f\x69\x64\x73";${"\x47\x4c\x4fB\x41\x4cS"}["\x6c\x71\x75\x6a\x68r"]="o\x72d\x65r\x5f\x69\x64";${$kevvrstejwo}=$this->db->query("S\x45LE\x43T \x70r\x6f\x64\x75ct\x63\x6fde,\x20\x73ale_\x6frd\x65\x72\x5f\x69\x64, s\x61le\x5for\x64e\x72\x5f\x73\x74\x61\x74\x75\x73_\x69d,\x20i\x64e\x6e\x74\x63od\x65\x20F\x52\x4fM\x20".DB_PREFIX."\x6c\x70\x65xp\x72\x65\x73s_\x6cab\x65\x6cs\x20W\x48\x45R\x45\x20\x6frd\x65r_\x69d\x3d\x27".(int)${${"G\x4c\x4fBA\x4c\x53"}["\x6c\x71ujh\x72"]}."\x27\x20A\x4eD\x20\x73a\x6c\x65\x5for\x64\x65r_\x69\x64\x20\x3c> 0\x20\x41\x4eD \x69d\x65\x6etcode <\x3e \x27\x27");${$ctguvrml}=0;if($this->config->get("\x6cp\x65_ad\x64_\x69dent\x63od\x65\x5ft\x6f\x5f\x68\x69st\x6f\x72y")){$this->language->load("\x6cpe\x78\x70r\x65ss/\x6fr\x64e\x72s");}if($order_ids->num_rows){${"GL\x4f\x42A\x4cS"}["u\x68\x79d\x72\x6elt"]="r\x6f\x77";foreach($order_ids->rows as${${"GL\x4fB\x41LS"}["\x75\x68\x79d\x72\x6e\x6ct"]}){${"\x47\x4c\x4f\x42\x41L\x53"}["fv\x72\x6eu\x7a\x78"]="p\x72o\x64\x75c\x74\x63\x6f\x64\x65";${"G\x4c\x4f\x42\x41L\x53"}["a\x65\x79n\x7av\x6a\x79\x76\x75"]="r\x6f\x77";${${"\x47LOB\x41L\x53"}["\x65\x76\x64a\x62\x6f\x71\x70\x76"]}=${${"G\x4c\x4fB\x41\x4c\x53"}["l\x77\x76t\x72\x75\x63\x70\x6c\x6db"]}["sal\x65_o\x72\x64e\x72_\x73t\x61t\x75\x73_\x69\x64"];${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66v\x72\x6e\x75\x7a\x78"]}=explode("_",${${"\x47\x4cOBAL\x53"}["\x61\x65\x79\x6ezv\x6a\x79vu"]}["p\x72\x6fdu\x63t\x63\x6f\x64\x65"]);$xfqbmvkhelop="prod\x75\x63t\x63\x6f\x64e";if($this->config->get("l\x70e_\x6frd\x65\x72_s\x74\x61tu\x73_".${$xfqbmvkhelop}[0]."_\x63\x6fn\x66\x69rm\x65\x64")!=0){${${"\x47\x4c\x4f\x42\x41L\x53"}["e\x76d\x61\x62o\x71p\x76"]}=$this->config->get("l\x70e_or\x64\x65\x72\x5f\x73\x74a\x74u\x73_".${${"\x47\x4c\x4f\x42AL\x53"}["\x6c\x6e\x75\x76\x6e\x63ax"]}[0]."_\x63o\x6ef\x69r\x6d\x65d");$tbruqqekdux="\x72o\x77";$this->db->query("U\x50D\x41\x54E\x20\x60".DB_PREFIX."order\x60 \x53ET\x20o\x72\x64er_s\x74atus\x5f\x69d=\x27".(int)${${"\x47\x4c\x4fB\x41L\x53"}["\x65vda\x62\x6f\x71\x70\x76"]}."'\x20\x57\x48ER\x45 \x6frd\x65\x72_id='".(int)${$tbruqqekdux}["\x73\x61\x6c\x65\x5f\x6f\x72de\x72\x5fi\x64"]."'");}if($this->config->get("\x6cpe_\x61dd\x5fid\x65nt\x63od\x65\x5fto_\x68is\x74o\x72y")){${"\x47\x4cO\x42\x41\x4c\x53"}["p\x70\x79\x71v\x65\x76\x6f\x78"]="\x63\x6fnf\x69\x72\x6d\x65\x64_\x73\x74\x61t\x75\x73";$mymmqqrf="\x68\x69\x73\x74or\x79\x5ft\x65\x78t";${$mymmqqrf}=$this->language->get("t\x65x\x74\x5fid\x65nt_c\x6f\x64\x65")." ".${${"G\x4cO\x42\x41\x4cS"}["\x6cwv\x74\x72\x75\x63\x70\x6c\x6d\x62"]}["\x69d\x65nt\x63o\x64\x65"];$fykfnlos="\x72o\x77";$this->db->query("\x49NSER\x54 \x49\x4eTO ".DB_PREFIX."\x6frd\x65r_his\x74\x6fry \x53ET \n\t\t\t\t\t\tor\x64e\x72_i\x64 \x3d \x27".(int)${$fykfnlos}["\x73ale_\x6frd\x65\x72_i\x64"]."\x27,\x20\n\t\t\t\t\t\t\x6f\x72d\x65r_s\x74\x61\x74u\x73\x5fid \x3d\x20\x27".(int)${${"G\x4c\x4f\x42\x41\x4c\x53"}["p\x70\x79\x71\x76\x65\x76\x6fx"]}."',\x20\n\t\t\t\t\t\tn\x6f\x74ify\x20=\x20\x27".(int)${${"G\x4cO\x42A\x4c\x53"}["\x72\x6b\x75\x6fbb\x7a\x71"]}."', \n\t\t\t\t\t\tco\x6dm\x65\x6e\x74\x20= '".$this->db->escape(strip_tags(${${"G\x4c\x4f\x42\x41L\x53"}["rj\x75\x6e\x6au\x78"]}))."', \n\t\t\t\t\t\tdate\x5f\x61d\x64e\x64 = \x4eOW()");}}}}public function updateOrderStatusShipped($order_id){${${"G\x4cO\x42\x41L\x53"}["\x78\x78tj\x62\x64o\x76am\x73"]}=$this->db->query("\x53\x45L\x45\x43\x54 *,\x20(SE\x4c\x45C\x54 \x6frde\x72_\x73\x74\x61t\x75\x73\x5fid \x46R\x4f\x4d\x20`".DB_PREFIX."\x6f\x72de\x72`\x20\x6f WH\x45RE\x20\x6f\x2e\x6frde\x72\x5fid \x3d\x20l\x6c\x2es\x61l\x65\x5fo\x72\x64e\x72_id\x20) \x41S \x6f\x72\x64\x65\x72\x5f\x73tatu\x73_\x69\x64 FR\x4f\x4d ".DB_PREFIX."\x6cp\x65\x78\x70r\x65\x73\x73\x5f\x6c\x61b\x65\x6c\x73\x20ll \x57H\x45\x52E \x6fr\x64\x65\x72_\x69\x64=\x27".(int)${${"G\x4c\x4fBA\x4c\x53"}["\x65\x68h\x62\x76\x6al\x67zks"]}."\x27 \x41\x4e\x44\x20sale_ord\x65r_i\x64\x20\x3c\x3e\x20\x30\x20AND id\x65n\x74code \x3c> \x27\x27");${"G\x4c\x4fBA\x4c\x53"}["\x6c\x64\x79\x68r\x74bk\x6f"]="\x6e\x6fti\x66y";${${"\x47\x4cOBA\x4c\x53"}["l\x64y\x68rt\x62\x6bo"]}=0;$this->load->model("s\x61le/o\x72d\x65r");if($this->config->get("\x6c\x70e\x5f\x6eot\x69\x66y_\x63u\x73t\x6fmer")){$ydefscx="\x6e\x6fti\x66\x79";${$ydefscx}=1;}foreach($shipped_labels->rows as${${"\x47L\x4f\x42AL\x53"}["\x6cw\x76\x74r\x75\x63p\x6c\x6db"]}){$wuymyejoy="not\x69fy";${"GLO\x42\x41L\x53"}["\x72xo\x6f\x64js\x6c\x70"]="\x64\x61t\x61";$brccyqunlo="s\x68\x69\x70p\x65\x64\x5f\x73\x74\x61t\x75s";$rjiksjk="s\x68i\x70\x70ed\x5fsta\x74u\x73";${$brccyqunlo}=${${"\x47\x4c\x4f\x42A\x4cS"}["\x6c\x77vt\x72\x75cp\x6cm\x62"]}["or\x64\x65r\x5f\x73\x74a\x74u\x73_\x69d"];if($this->config->get("\x6cp\x65\x5f\x6f\x72\x64\x65\x72\x5fs\x74a\x74u\x73\x5f\x73\x65\x6e\x74")){${${"\x47L\x4fB\x41\x4c\x53"}["p\x65s\x63\x79kt\x62"]}=$this->config->get("lpe_\x6f\x72\x64\x65\x72\x5f\x73\x74a\x74u\x73\x5fsen\x74");}${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x6d\x6e\x79\x78\x6e\x6c\x6a\x75\x70"]="d\x61ta";${${"GL\x4fBA\x4c\x53"}["\x6c\x6d\x6ey\x78\x6e\x6c\x6a\x75\x70"]}=array();${${"GL\x4f\x42\x41\x4c\x53"}["j\x71\x70\x79t\x62\x76i\x62s\x6a"]}["\x6f\x72de\x72_\x73\x74\x61t\x75\x73\x5fid"]=${$rjiksjk};${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x71\x70\x79tb\x76\x69\x62\x73\x6a"]}["n\x6ft\x69f\x79"]=${$wuymyejoy};${${"\x47\x4c\x4fBAL\x53"}["\x72\x78\x6f\x6f\x64\x6a\x73\x6c\x70"]}["\x63om\x6dent"]=$this->prepareOrderSentStatusMsg($this->config->get("\x6cp\x65_n\x6f\x74\x69fy_\x6dessa\x67\x65"),${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x77vtr\x75\x63\x70\x6c\x6d\x62"]});$this->addOrderHistory(${${"\x47LO\x42\x41L\x53"}["\x6c\x77\x76t\x72\x75\x63\x70\x6c\x6db"]}["\x73\x61\x6c\x65\x5for\x64\x65r\x5fi\x64"],${${"\x47\x4c\x4fB\x41\x4c\x53"}["j\x71\x70ytb\x76\x69b\x73\x6a"]});}}public function removeOrderStatusShipped($lpe_order_id){$this->db->query("UP\x44\x41T\x45 ".DB_PREFIX."\x6cpexpre\x73\x73_o\x72der S\x45T\x20i\x73_\x63\x6f\x6ef\x69\x72\x6d\x65\x64\x3d'0',\x20date\x5fu\x70\x64\x61ted\x3d\x4eOW()\x20\x57\x48E\x52\x45 \x6c\x70_\x6f\x72de\x72_i\x64\x20\x3d\x20'".(int)${${"G\x4c\x4f\x42\x41L\x53"}["\x62\x6f\x79\x73\x65\x67\x6c\x6c\x77\x62\x67y"]}."\x27");}private function prepareOrderSentStatusMsg($msg,$data){${"\x47L\x4f\x42\x41\x4cS"}["\x74\x6e\x7a\x68\x76\x75t\x72\x76w\x6f"]="d\x61\x74a";$vdiflnw="\x6d\x73g";$ffbcddljqx="d\x61\x74\x61";$tydpik="\x72e\x70\x6c\x61\x63\x65";if(!isset(${${"G\x4c\x4fB\x41LS"}["\x74\x6e\x7ahvu\x74\x72\x76\x77\x6f"]}["\x69\x64\x65\x6e\x74c\x6fd\x65"])&&!isset(${${"\x47L\x4fBALS"}["\x6a\x71\x70\x79\x74\x62v\x69b\x73\x6a"]}["re\x63\x65\x69\x76e\x72\x6e\x61\x6de"])){${"\x47\x4cO\x42\x41L\x53"}["k\x79\x72\x6a\x6ehqa"]="\x64\x61\x74\x61";${${"G\x4cO\x42AL\x53"}["jq\x70\x79tbvi\x62\x73\x6a"]}["\x69d\x65\x6e\x74co\x64e"]="";${${"\x47\x4cO\x42\x41\x4cS"}["\x6byrjnh\x71a"]}["re\x63\x65\x69\x76\x65rn\x61\x6de"]="";}${${"\x47\x4c\x4fBA\x4cS"}["jq\x66\x72\x67lp\x64"]}=array("{\x69d\x65ntco\x64\x65}","{\x72e\x63e\x69ver\x6ea\x6de}");${$tydpik}=array(${$ffbcddljqx}["\x69den\x74\x63o\x64\x65"],${${"\x47L\x4f\x42ALS"}["\x6a\x71\x70\x79t\x62vi\x62\x73\x6a"]}["\x72\x65ce\x69\x76\x65rnam\x65"]);return str_replace(${${"\x47\x4c\x4fBALS"}["\x6a\x71\x66\x72g\x6c\x70d"]},${${"GL\x4f\x42AL\x53"}["\x79\x65\x69\x68x\x77\x70"]},${$vdiflnw});}public function restoreOrderStatusesCanceledLabels($order_id){${"\x47\x4c\x4f\x42\x41L\x53"}["\x6ab\x6a\x65x\x65"]="re\x67is\x74\x65re\x64_\x73tat\x75\x73";${"G\x4cO\x42ALS"}["\x70\x72\x67\x78\x62\x69\x75ir"]="\x6frd\x65\x72_\x69d";$juxdrlyw="o\x6c\x64\x5fs\x74\x61t\x75\x73";${${"\x47\x4c\x4fB\x41\x4c\x53"}["jb\x6aex\x65"]}=0;if($this->config->get("\x6cp\x65\x5f\x6f\x72d\x65r\x5f\x73\x74atus\x5fr\x65\x67\x69st\x65\x72e\x64")!=0){${${"G\x4c\x4f\x42\x41\x4cS"}["td\x6cu\x6as\x6a\x74\x67"]}=$this->config->get("l\x70e_o\x72\x64\x65r_st\x61\x74u\x73_regist\x65r\x65d");}${$juxdrlyw}=$this->db->query("S\x45LE\x43\x54 \x73al\x65\x5f\x6f\x72d\x65\x72_s\x74atu\x73_id, sal\x65\x5fo\x72\x64e\x72_id F\x52OM\x20".DB_PREFIX."lp\x65\x78pr\x65ss_l\x61bels\x20\x57\x48\x45\x52\x45 \n\t\t\t\x6f\x72\x64\x65r_\x69\x64\x3d\x27".(int)${${"\x47L\x4fBA\x4c\x53"}["\x70\x72g\x78\x62\x69\x75\x69\x72"]}."'\x20\x41\x4eD \n\t\t\t\x73\x61\x6c\x65_\x6f\x72d\x65r_\x69\x64\x20<> 0\x20A\x4e\x44 \x20\n\t\t\tid\x65n\x74\x63\x6fde =\x20\x27\x27\x20\x41\x4e\x44\x20\x20\x20\n\t\t\t\x73\x61le_o\x72de\x72\x5f\x73ta\x74u\x73\x5fi\x64 <> \x30");if($old_status->num_rows){${"\x47\x4c\x4f\x42\x41L\x53"}["\x6f\x63\x6b\x75\x76hu\x6ec\x67"]="r\x6f\x77";foreach($old_status->rows as${${"\x47L\x4f\x42\x41L\x53"}["oc\x6b\x75\x76h\x75\x6e\x63\x67"]}){$ydypsdqoe="\x72o\x77";$jtsjpepr="s\x74\x61\x74\x75s\x5f\x69\x64";${$jtsjpepr}=${$ydypsdqoe}["s\x61\x6c\x65\x5f\x6frde\x72_sta\x74u\x73\x5fid"];if(${${"\x47L\x4f\x42AL\x53"}["t\x64\x6cuj\x73\x6atg"]}>0){$ylzxgztyvjif="\x72\x65g\x69\x73\x74\x65r\x65\x64_\x73\x74a\x74\x75s";${${"\x47\x4cO\x42\x41LS"}["iytj\x6bak\x79\x6a\x6c\x65"]}=${$ylzxgztyvjif};}$this->db->query("UPDA\x54E `".DB_PREFIX."order\x60\x20SET \x6f\x72\x64er_\x73t\x61\x74us\x5f\x69d\x3d'".(int)${${"\x47L\x4f\x42\x41L\x53"}["\x69\x79\x74\x6a\x6b\x61ky\x6al\x65"]}."\x27 WH\x45\x52\x45\x20\x6f\x72\x64e\x72\x5fid\x3d'".(int)${${"\x47\x4cO\x42A\x4c\x53"}["\x6cw\x76tr\x75\x63\x70\x6cm\x62"]}["s\x61le_or\x64\x65\x72\x5fid"]."'");}}}public function getProductsNamesFormated($delivery_method){${${"\x47\x4cO\x42A\x4c\x53"}["\x73d\x78\x64\x77\x78k\x6buc"]}=array();${"\x47\x4c\x4f\x42A\x4c\x53"}["k\x7ay\x69\x6eco"]="\x6c\x70_p\x72\x6fd\x75\x63ts";${"G\x4c\x4fB\x41\x4c\x53"}["\x63\x64\x6f\x64\x62hh\x74\x62"]="de\x6c\x69\x76e\x72\x79\x5f\x6d\x65\x74\x68\x6f\x64";${"GL\x4fB\x41\x4c\x53"}["\x6f\x6fo\x6c\x7a\x79\x78"]="\x6c\x70\x5f\x70\x72\x6fd\x75\x63\x74s";${${"\x47\x4c\x4fB\x41\x4cS"}["\x6b\x7a\x79\x69\x6e\x63\x6f"]}=array();${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x61n\x67\x64\x69\x76j\x6eos\x6d"]="\x64e\x6c\x69v\x65\x72y\x5f\x6d\x65\x74\x68\x6f\x64";$ordqtpdodlz="\x64\x65l\x69\x76\x65r\x79\x5fm\x65t\x68od";if(${${"G\x4c\x4f\x42A\x4c\x53"}["\x68v\x66k\x6e\x6ashoo"]}!=""){$gtvigigo="\x70\x72\x6f\x64ucts";${$gtvigigo}=$this->model_lpexpress_lpexpress->getProducts(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68v\x66\x6b\x6e\x6a\x73\x68oo"]});}else{${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73dx\x64wx\x6bku\x63"]}=$this->model_lpexpress_lpexpress->getProducts();}${${"\x47\x4c\x4f\x42AL\x53"}["m\x77\x77\x79\x67\x6b\x70\x6c\x68\x74\x70"]}=array("Sm\x61ll"=>"S","\x4c\x61r\x67e"=>"\x4c","\x4ded\x69\x75m"=>"\x4d","\x58Large"=>"XL");if(${${"G\x4cO\x42A\x4c\x53"}["\x68v\x66k\x6e\x6a\x73ho\x6f"]}=="EG"||${${"\x47\x4cO\x42\x41L\x53"}["\x68\x76\x66\x6bn\x6a\x73h\x6f\x6f"]}=="A\x42"){$tlsrcgteyhxk="\x70\x72\x6f\x64u\x63ts";foreach(${$tlsrcgteyhxk} as${${"GLO\x42A\x4cS"}["omc\x73gy\x6d"]}){$vhdtpwclnxq="\x70r\x6fd\x75c\x74";${"\x47L\x4f\x42\x41\x4cS"}["s\x6b\x77\x73el\x64"]="pr\x6f\x64\x75\x63\x74";${${"G\x4c\x4fBA\x4c\x53"}["\x62\x66\x78\x6dk\x64"]}[]=array("pro\x64\x75\x63ti\x64"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["s\x6b\x77\x73e\x6c\x64"]}["p\x72o\x64u\x63ti\x64"],"\x73\x69\x7ae"=>(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6f\x6d\x63s\x67\x79\x6d"]}["\x6di\x6ew\x65igh\x74"]/1000)."\x6bg\x20-\x20".(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6fmc\x73\x67\x79\x6d"]}["\x6daxwei\x67\x68\x74"]/1000)."\x6b\x67","\x70r\x69c\x65"=>${$vhdtpwclnxq}["price"]);}}if((${${"\x47\x4cOBA\x4cS"}["cd\x6f\x64b\x68h\x74b"]}=="H2C")||(${${"\x47L\x4f\x42A\x4c\x53"}["p\x61\x6eg\x64\x69\x76\x6ano\x73\x6d"]}=="C2\x43")||(${$ordqtpdodlz}=="C2H")){${"\x47L\x4f\x42A\x4c\x53"}["h\x66\x6d\x76\x65\x62\x64o"]="\x70\x72\x6fdu\x63\x74";$evednmutgti="p\x72\x6f\x64\x75\x63\x74s";foreach(${$evednmutgti} as${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x66\x6d\x76eb\x64\x6f"]}){if(isset(${${"\x47LO\x42\x41\x4c\x53"}["\x6d\x77\x77\x79\x67k\x70\x6chtp"]}[${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x6d\x63\x73g\x79\x6d"]}["box\x73\x69\x7a\x65"]])){${"\x47\x4c\x4f\x42A\x4c\x53"}["y\x68\x64\x74\x72\x69\x62\x6e\x6b"]="\x6c\x70_pr\x6fduc\x74s";${"\x47\x4cOB\x41L\x53"}["\x67\x76x\x6a\x67\x6c\x73\x70\x63"]="\x70r\x6f\x64uc\x74";$ddrguehbtkv="p\x72\x6fdu\x63\x74";${"GLOB\x41\x4c\x53"}["c\x74\x63dh\x69\x73\x66\x70"]="pro\x64\x75c\x74";$kdxcetedrm="\x70\x72o\x64uc\x74\x5f\x73iz\x65";${${"\x47\x4c\x4f\x42A\x4cS"}["y\x68\x64\x74\x72i\x62\x6ek"]}[]=array("\x70ro\x64u\x63ti\x64"=>${${"G\x4cO\x42\x41\x4cS"}["\x6fm\x63\x73g\x79m"]}["p\x72o\x64uc\x74id"],"s\x69z\x65"=>${$kdxcetedrm}[${$ddrguehbtkv}["box\x73\x69\x7a\x65"]]."\x20(".${${"\x47L\x4fB\x41\x4c\x53"}["g\x76\x78\x6a\x67\x6cs\x70c"]}["\x64\x69\x6d\x65\x6es\x69on\x5f\x78"]."\x20\x78 ".${${"GLO\x42\x41L\x53"}["\x6f\x6d\x63\x73g\x79\x6d"]}["dime\x6e\x73\x69\x6f\x6e\x5f\x79"]."\x20\x78 ".${${"G\x4c\x4fBA\x4c\x53"}["\x63tc\x64\x68i\x73fp"]}["\x64i\x6d\x65ns\x69\x6fn_\x7a"].")","\x70\x72\x69\x63e"=>${${"\x47\x4c\x4f\x42\x41LS"}["\x6f\x6d\x63s\x67y\x6d"]}["p\x72ic\x65"]);}}}return${${"\x47\x4c\x4fB\x41\x4cS"}["\x6f\x6f\x6flz\x79x"]};}public function getRandId($length=8){$bhgoherwbm="\x69";$qkiyjucebjq="\x6c";${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x64\x63d\x6f\x71h\x64"]="c\x68\x61r";${"\x47LO\x42\x41\x4c\x53"}["\x65js\x72\x75ro\x6b\x63r\x79d"]="\x6c\x65\x6e\x67\x74\x68";${${"G\x4cO\x42\x41\x4cS"}["\x73\x64\x63\x64\x6fqh\x64"]}=md5(date("\x59-m-dh:\x69:s").microtime());${"\x47\x4cOB\x41L\x53"}["\x6a\x75hgq\x7a\x65"]="\x69";${${"\x47\x4cO\x42A\x4cS"}["j\x62vt\x77\x72ig\x67h\x66"]}=md5(str_shuffle(${${"G\x4c\x4f\x42\x41\x4c\x53"}["jb\x76t\x77\x72\x69g\x67\x68\x66"]}));for(${${"\x47\x4cO\x42ALS"}["\x62\x69\x69\x63bg\x64\x64yq"]}=0,${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x72wj\x73o\x74\x68\x6fo\x66"]}="",${$qkiyjucebjq}=strlen(${${"\x47\x4c\x4f\x42\x41LS"}["\x6ab\x76\x74w\x72\x69\x67\x67\x68\x66"]})-1;${${"GL\x4f\x42\x41L\x53"}["j\x75\x68\x67q\x7a\x65"]}<${${"\x47\x4c\x4fB\x41LS"}["e\x6asr\x75\x72o\x6bc\x72\x79\x64"]};${$bhgoherwbm}++){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["rwj\x73\x6fth\x6f\x6f\x66"]}.=${${"\x47\x4c\x4fB\x41L\x53"}["j\x62\x76\x74wr\x69\x67\x67\x68f"]}{mt_rand(0,${${"\x47\x4c\x4fB\x41\x4cS"}["\x71\x73\x62\x6c\x68\x71"]})};}return${${"\x47L\x4f\x42AL\x53"}["\x72w\x6a\x73ot\x68\x6fo\x66"]};}private function addOrderHistory($order_id,$data){$ebvflpn="\x73\x74\x6fr\x65_\x69\x64";if(isset($this->request->get["s\x74o\x72e_i\x64"])){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ab\x68\x6b\x61e\x63\x6a\x61"]="\x73\x74\x6f\x72\x65\x5fi\x64";${${"GL\x4f\x42\x41L\x53"}["\x6a\x62\x68\x6b\x61e\x63\x6a\x61"]}=$this->request->get["\x73\x74o\x72\x65\x5fi\x64"];}else{$pcilwpieu="s\x74o\x72\x65\x5fi\x64";${$pcilwpieu}=0;}$this->load->model("s\x65t\x74i\x6e\x67/st\x6f\x72\x65");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x78\x74\x77\x67e\x6e\x64\x6am\x66\x74"]}=$this->model_setting_store->getStore(${$ebvflpn});${"\x47\x4cO\x42\x41\x4c\x53"}["\x6dj\x73\x65\x64\x78k"]="\x73t\x6fre_\x69n\x66\x6f";if(${${"\x47\x4c\x4f\x42\x41LS"}["\x6d\x6a\x73\x65\x64x\x6b"]}){${${"\x47L\x4f\x42\x41\x4cS"}["f\x77\x70t\x7a\x75\x77f\x75\x6c\x74"]}=${${"GL\x4f\x42\x41L\x53"}["\x67\x78\x74\x77\x67\x65n\x64\x6a\x6d\x66t"]}["ssl"];}else{$wizicdgjionr="\x75\x72l";${$wizicdgjionr}=HTTPS_CATALOG;}if(isset($this->session->data["\x63\x6f\x6f\x6bie"])){$ffizgzkwc="\x63\x75\x72\x6c";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x76\x70\x75js\x68"]}=curl_init();if(substr(${${"\x47L\x4f\x42\x41\x4cS"}["f\x77\x70tzu\x77\x66u\x6c\x74"]},0,5)=="h\x74tps"){${"\x47\x4cO\x42\x41\x4c\x53"}["\x68u\x66\x77\x72\x66\x63\x64\x74\x69g\x6e"]="\x63\x75\x72\x6c";curl_setopt(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x75\x66\x77\x72\x66\x63\x64\x74\x69\x67\x6e"]},CURLOPT_PORT,443);}curl_setopt(${${"\x47L\x4fB\x41\x4c\x53"}["\x68\x76\x70\x75j\x73\x68"]},CURLOPT_HEADER,false);curl_setopt(${${"\x47\x4cO\x42AL\x53"}["\x68\x76\x70u\x6as\x68"]},CURLINFO_HEADER_OUT,true);${"\x47\x4c\x4fBAL\x53"}["\x76\x70\x62\x7a\x78\x66\x73u\x64\x79"]="c\x75\x72l";$pwjamv="ord\x65r_\x69d";${"GL\x4f\x42ALS"}["\x64\x77\x6b\x6a\x64\x6ar\x73\x66\x72\x69"]="c\x75r\x6c";curl_setopt(${${"\x47\x4c\x4fBAL\x53"}["\x68\x76\x70\x75\x6as\x68"]},CURLOPT_USERAGENT,$this->request->server["H\x54\x54P_\x55\x53E\x52\x5f\x41\x47\x45NT"]);curl_setopt(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x76\x70\x75\x6a\x73\x68"]},CURLOPT_SSL_VERIFYHOST,false);curl_setopt(${${"\x47\x4cOB\x41\x4cS"}["\x64wk\x6a\x64\x6ar\x73\x66\x72i"]},CURLOPT_SSL_VERIFYPEER,false);curl_setopt(${${"G\x4cOB\x41LS"}["\x68\x76p\x75\x6as\x68"]},CURLOPT_FORBID_REUSE,false);curl_setopt(${${"\x47\x4cO\x42\x41LS"}["\x68\x76p\x75j\x73\x68"]},CURLOPT_RETURNTRANSFER,true);curl_setopt(${$ffizgzkwc},CURLOPT_URL,${${"\x47\x4cOB\x41LS"}["\x66w\x70t\x7au\x77\x66\x75\x6c\x74"]}."\x69\x6edex.php?\x72\x6fu\x74\x65\x3da\x70i/or\x64\x65\x72/\x68istory\x26\x6fr\x64\x65\x72_\x69d\x3d".${$pwjamv});if(!empty(${${"\x47L\x4fB\x41\x4c\x53"}["\x6a\x71p\x79\x74\x62\x76ibs\x6a"]})){$oxiopfmvjx="c\x75\x72\x6c";curl_setopt(${${"GLOBA\x4c\x53"}["\x68\x76\x70ujs\x68"]},CURLOPT_POST,true);curl_setopt(${$oxiopfmvjx},CURLOPT_POSTFIELDS,http_build_query(${${"GL\x4fB\x41\x4c\x53"}["\x6aqp\x79tbvi\x62\x73\x6a"]}));}curl_setopt(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x70\x62z\x78\x66s\x75\x64y"]},CURLOPT_COOKIE,session_name()."\x3d".$this->session->data["\x63oo\x6b\x69\x65"]."\x3b");curl_exec(${${"\x47\x4cOB\x41L\x53"}["h\x76p\x75\x6a\x73\x68"]});curl_close(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x68\x76\x70\x75\x6ash"]});}}}
?>
Function Calls
None |
Stats
MD5 | 8f3fb0e3c64d1a79630e2a6c08ab47a9 |
Eval Count | 0 |
Decode Time | 210 ms |