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 ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["lk\x62\x77\x78\x73l\x6c\x7a"]="\x61R\x65\x73\x65\..

Decoded Output download

<?php ${"GLOBALS"}["lkbwxsllz"]="aReservationDetail";${"GLOBALS"}["fzdwwoo"]="Quantity";${"GLOBALS"}["pqygtia"]="aResTicketDetail";${"GLOBALS"}["ugtiuody"]="bTicketDetail";${"GLOBALS"}["pyredoqwf"]="idStore";${"GLOBALS"}["kpbmtxif"]="sSelect";${"GLOBALS"}["kwqbupfypsv"]="sLeftJoin";${"GLOBALS"}["jtfbfttai"]="sTicketNumber";${"GLOBALS"}["kjpbqldq"]="aTicket";${"GLOBALS"}["boplrti"]="idTicket";${"GLOBALS"}["ffbcuchv"]="bToSession";${"GLOBALS"}["qrhdqqonq"]="_stby";${"GLOBALS"}["tnewxukk"]="aSessionProductIds";${"GLOBALS"}["eptvuitstwx"]="disabled";${"GLOBALS"}["gbfnne"]="_html";${"GLOBALS"}["bdkhxgmdk"]="sessReturnTicket";${"GLOBALS"}["imogwrbwl"]="r";${"GLOBALS"}["snlvyxsq"]="idProduct";${"GLOBALS"}["snqbibxtset"]="aTicketDetail";${"GLOBALS"}["qzwymuelpn"]="aResTicket";${"GLOBALS"}["ftvxwd"]="idStby";${"GLOBALS"}["ietclyr"]="sField";${"GLOBALS"}["efqietw"]="idEmployee";${"GLOBALS"}["vefxtojuk"]="sql";${"GLOBALS"}["ogjnruvs"]="NewNumber";echo "";class ScTicket{public static function getNewNumber(){$lzgcyrmop="NewNumber";global$cookie;${"GLOBALS"}["eytswrq"]="sByStore";${"GLOBALS"}["uaxugdlmlidj"]="sByStore";${${"GLOBALS"}["eytswrq"]}=(_SC_NUMBER_STORE_==1?"id_store=".$cookie->scidstore:"");$jyklhfst="NewNumber";${"GLOBALS"}["dotmlrqi"]="NewNumber";${${"GLOBALS"}["ogjnruvs"]}=ScDb::getValue("caisse_ticket","MAX(id_ticket)",${${"GLOBALS"}["uaxugdlmlidj"]});${$lzgcyrmop}=(int)${${"GLOBALS"}["ogjnruvs"]}+1;${$jyklhfst}=ScTools::sc_roundd(${${"GLOBALS"}["dotmlrqi"]},6);return strval(${${"GLOBALS"}["ogjnruvs"]});}public static function getStandbyTicketList($idStore=NULL){${"GLOBALS"}["wqqzfectibl"]="sql";${"GLOBALS"}["cjhwhmygx"]="idEmployee";global$cookie;${${"GLOBALS"}["cjhwhmygx"]}="";if(_SC_STBY_MODE_==0){${"GLOBALS"}["zfjwxoywvv"]="idEmployee";${${"GLOBALS"}["zfjwxoywvv"]}="AND `id_employee`=".$cookie->id_employee;}${${"GLOBALS"}["vefxtojuk"]}="SELECT `id_stby`, Stby.`id_comment`,`id_store`, `id_employee`,  `id_customer`,  `id_address`, `remise_global_prix`, `remise_global_pourcent`,
				`total`, `date_time`, `commentary` 
				FROM `"._DB_PREFIX_."caisse_ticket_stby` AS Stby  
				".(!empty($cookie->scidstore)?"LEFT JOIN `"._DB_PREFIX_."caisse_ticket_stby_comment` AS StbyC ON Stby.`id_comment`=StbyC.`id_comment` WHERE `id_store`=".$cookie->scidstore:"")." ".${${"GLOBALS"}["efqietw"]}."
				ORDER BY `id_stby` DESC";return ScDb::getRows(${${"GLOBALS"}["wqqzfectibl"]});}public static function getStandbyTicketDetailList($idStby){$qbdjpxqpes="idStby";global$cookie;${${"GLOBALS"}["vefxtojuk"]}="SELECT `id_product`, `id_attribute`, `ean_product`, `upc_product`, `name`, `supplier_name`, `supplier_ref`, `reference`, 
						`wholesale_price`, `tva`, `ecotax`, `pu_ht`, `pu_ttc`, `quantity`, `weight`, `rp`, `rpo`, `p_ttc`, `id_employee`, `codeCompta`
				FROM `"._DB_PREFIX_."caisse_ticket_stby_detail` 
				WHERE `id_store`=".$cookie->scidstore." 
				AND `id_stby`=".intval(${$qbdjpxqpes});return ScDb::getRows(${${"GLOBALS"}["vefxtojuk"]});}public static function getCountStandbyTicket(){$jdvrwbhlvc="idEmployee";global$cookie;${"GLOBALS"}["mlyxfxvjw"]="idEmployee";${$jdvrwbhlvc}="";if(_SC_STBY_MODE_==0){$cjctefcgfqdq="idEmployee";${$cjctefcgfqdq}="AND`id_employee`=".$cookie->id_employee;}${${"GLOBALS"}["vefxtojuk"]}="SELECT count(`id_stby`) FROM `"._DB_PREFIX_."caisse_ticket_stby`
				WHERE  `id_store`=".$cookie->scidstore." ".${${"GLOBALS"}["mlyxfxvjw"]};return ScDb::getQueryValue(${${"GLOBALS"}["vefxtojuk"]});}public static function getStandbyTicket($idStby){global$cookie;${${"GLOBALS"}["ietclyr"]}="";if(Module::isInstalled("productspack")&&ScTools::isInstalled("sw_scproductpack")){${${"GLOBALS"}["ietclyr"]}=", `productpack`";}${${"GLOBALS"}["vefxtojuk"]}="SELECT  `remise_global_prix`, `remise_global_pourcent`, `id_customer`, `id_address` ".${${"GLOBALS"}["ietclyr"]}."
				FROM `"._DB_PREFIX_."caisse_ticket_stby`
				WHERE `id_stby` = ".${${"GLOBALS"}["ftvxwd"]}."
				AND `id_store` = ".$cookie->scidstore;if(${${"GLOBALS"}["qzwymuelpn"]}=ScDb::getRow(${${"GLOBALS"}["vefxtojuk"]})){${"GLOBALS"}["inywnjwt"]="aResTicket";${"GLOBALS"}["gnxgdgozkyjx"]="idStby";$wsxfyocin="aTicketDetail";$amlbrhbej="aResTicket";${${"GLOBALS"}["snqbibxtset"]}=self::getStandbyTicketDetailList(${${"GLOBALS"}["gnxgdgozkyjx"]});if(!empty(${$wsxfyocin})){${"GLOBALS"}["llstrrah"]="r";foreach(${${"GLOBALS"}["snqbibxtset"]} as${${"GLOBALS"}["llstrrah"]}){${"GLOBALS"}["cylbhvjrvuyc"]="r";$refaurf="r";$bhrigtm="r";${"GLOBALS"}["zqlrinht"]="r";$fzyorheegpx="r";$pupuftyk="r";$mfoenptq="r";$bvrrkxo="r";${"GLOBALS"}["wtwtiqkw"]="r";${"GLOBALS"}["ixeucetwc"]="r";${${"GLOBALS"}["snlvyxsq"]}=${${"GLOBALS"}["imogwrbwl"]}["id_product"]."-".${${"GLOBALS"}["imogwrbwl"]}["id_attribute"];${"GLOBALS"}["tfflhbgiud"]="r";if(Module::isInstalled("productspack")&&ScTools::isInstalled("sw_scproductpack")){$smuwfq="r";if(!empty(${$smuwfq}["productpack"])){$ieekky="r";${${"GLOBALS"}["snlvyxsq"]}=${$ieekky}["productpack"];}}$uxpywzbikh="r";ScCaisse::addProduct(${${"GLOBALS"}["snlvyxsq"]},${$pupuftyk}["name"],${${"GLOBALS"}["wtwtiqkw"]}["quantity"],${${"GLOBALS"}["imogwrbwl"]}["pu_ht"],${${"GLOBALS"}["ixeucetwc"]}["tva"],${${"GLOBALS"}["tfflhbgiud"]}["pu_ttc"],${$bhrigtm}["wholesale_price"],${${"GLOBALS"}["zqlrinht"]}["ean_product"],${$uxpywzbikh}["upc_product"],${$bvrrkxo}["supplier_name"],${${"GLOBALS"}["imogwrbwl"]}["supplier_ref"],${${"GLOBALS"}["cylbhvjrvuyc"]}["reference"],${${"GLOBALS"}["imogwrbwl"]}["rpo"],${$fzyorheegpx}["rp"],${${"GLOBALS"}["imogwrbwl"]}["ecotax"],${$mfoenptq}["weight"],"",${$refaurf}["id_employee"]);}}ScSession::updateArray("sccart",array("*GlobalReduction"=>${${"GLOBALS"}["inywnjwt"]}["remise_global_prix"],"*GlobalReductionPo"=>${${"GLOBALS"}["qzwymuelpn"]}["remise_global_pourcent"],));if(${$amlbrhbej}["id_customer"]>0){${"GLOBALS"}["whfnsslqe"]="aResTicket";ScSession::updateArray("sccaisse",array("*idCustomer"=>${${"GLOBALS"}["qzwymuelpn"]}["id_customer"],"*idAddress"=>${${"GLOBALS"}["whfnsslqe"]}["id_address"],));}}self::deleteStandbyTicket(${${"GLOBALS"}["ftvxwd"]});}public static function deleteStandbyTicket($idStby){global$cookie;ScDb::delete("caisse_ticket_stby_comment","id_comment = ".ScDb::getValue("caisse_ticket_stby","id_comment","id_stby = ".${${"GLOBALS"}["ftvxwd"]}));${"GLOBALS"}["lxunvus"]="idStby";ScDb::delete("caisse_ticket_stby","id_stby = ".${${"GLOBALS"}["ftvxwd"]}." AND `id_store`=".$cookie->scidstore);ScDb::delete("caisse_ticket_stby_detail","id_stby = ".${${"GLOBALS"}["lxunvus"]}." AND `id_store`=".$cookie->scidstore);}public static function getNewStbyNumber(){$cymbkaxxt="NewNumber";${"GLOBALS"}["kbkspm"]="NewNumber";${"GLOBALS"}["gbglrisqrpmv"]="NewNumber";global$cookie;${${"GLOBALS"}["ogjnruvs"]}=ScDb::getValue("caisse_ticket_stby","MAX(id_stby)","id_store=".$cookie->scidstore);${${"GLOBALS"}["kbkspm"]}=ScTools::sc_roundd((${$cymbkaxxt}+1),6);return strval(${${"GLOBALS"}["gbglrisqrpmv"]});}public static function getTicketBtn(){global$ScModule;$hkrobqflve="sessReturnTicket";${${"GLOBALS"}["bdkhxgmdk"]}=ScSession::getArray("sccaisse","idTicket");if(ScSession::get("scmode")==1||(ScSession::get("scmode")==2&&ScSession::getArray("sccaisse","OrderState")!=2)||empty(${$hkrobqflve})||ScSession::get("scmode")==6){${"GLOBALS"}["ysodjgmxqcfk"]="_html";${${"GLOBALS"}["ysodjgmxqcfk"]}="<span style=\"cursor:not-allowed" class=\"abtn1\">
						".$ScModule->l("Ticket",strtolower(__CLASS__))."<br />".$ScModule->l("de Caisse",strtolower(__CLASS__))."
					</span>";}else{${"GLOBALS"}["fcmnlvtuj"]="_html";${${"GLOBALS"}["fcmnlvtuj"]}="<a class="abtn1 fticket fancybox.iframe\" data-idticket=\"".${${"GLOBALS"}["bdkhxgmdk"]}."\" 
			href=""._SC_VIEW_."&display_page=Ticket&idticket=".${${"GLOBALS"}["bdkhxgmdk"]}."&sctoken="._SC_TOKEN_.""
			".(_SC_AUTO_OPEN_TICKET_>0?"title=\"".$ScModule->l("Ctrl + Clic pour ouverture manuelle",strtolower(__CLASS__))."\"":"").">
				".$ScModule->l("Ticket",strtolower(__CLASS__))."<br />".$ScModule->l("de Caisse",strtolower(__CLASS__))."
				<span class="sbadge\"><i class="fa fa-file-o\"></i></span>
			</a>";}return${${"GLOBALS"}["gbfnne"]};}public static function getStbyBtn(){global$ScModule;${"GLOBALS"}["syvfsudps"]="aSessionProductIds";${${"GLOBALS"}["syvfsudps"]}=ScCaisse::getArray("sccart","ProductIds");$eyvvvatnc="_stby";if(_SC_STBY_MODE_==0){$tlufgspo="_stby";$jtrnjeulwrtx="aSessionProductIds";${${"GLOBALS"}["eptvuitstwx"]}="";if(empty(${$jtrnjeulwrtx})||ScSession::get("scmode")!=0){${${"GLOBALS"}["eptvuitstwx"]}="disabled="disabled"";}${"GLOBALS"}["dxggxpqby"]="disabled";${$tlufgspo}="<form action="index.php?".ScTools::getControllerParamName()."=AdminSoraCaisse&token=".Tools::getValue("token")."" method="post\" >
                              <button type="submit\" name=\"stbyticket\" class="abtn1\" ".ScCaisse::getLocked("Stby",0)." ".${${"GLOBALS"}["dxggxpqby"]}.">".$ScModule->l("Mettre",strtolower(__CLASS__))."<br />".$ScModule->l("en attente",strtolower(__CLASS__))."</button>
                     </form>";}else{if(empty(${${"GLOBALS"}["tnewxukk"]})||ScSession::get("scmode")!=0){${"GLOBALS"}["pbclmexjypq"]="_stby";${${"GLOBALS"}["pbclmexjypq"]}="<span style=\"cursor:not-allowed" class=\"abtn1">
                            ".$ScModule->l("Mettre",strtolower(__CLASS__))."<br />".$ScModule->l("en attente",strtolower(__CLASS__))."
                       </span>";}else{${${"GLOBALS"}["qrhdqqonq"]}="<a class=\"abtn1 fstby fancybox.iframe" href=\""._SC_VIEW_."&display_page=StbyTicketAdvanced&amp;sctoken="._SC_TOKEN_." \">".$ScModule->l("Mettre",strtolower(__CLASS__))."<br />".$ScModule->l("en attente",strtolower(__CLASS__))." ".ScCaisse::getLocked("Stby",0)."</a>";}}return${$eyvvvatnc};}public static function getTicket($idTicket,$bToSession=false,$bidStore=true,$idCustomer=0){${"GLOBALS"}["wihwrehqc"]="bidStore";${"GLOBALS"}["vwdxewuur"]="sSelect";${"GLOBALS"}["shzehshqodlt"]="sWhere";global$cookie,$ScModule;$fthoyrepb="sWhere";if(${${"GLOBALS"}["ffbcuchv"]}===true){ScSession::clear("sccart");ScSession::clear("scpayment");ScSession::clear("scmsg");}$eezjjuns="idCustomer";if(!is_numeric(${${"GLOBALS"}["boplrti"]})){${"GLOBALS"}["xehhoxcorn"]="idTicket";${${"GLOBALS"}["kjpbqldq"]}=ScTools::getDocWithType(${${"GLOBALS"}["xehhoxcorn"]});${${"GLOBALS"}["jtfbfttai"]}=${${"GLOBALS"}["kjpbqldq"]}["number"];}else{${"GLOBALS"}["dbboavqesvh"]="sTicketNumber";${${"GLOBALS"}["dbboavqesvh"]}=${${"GLOBALS"}["boplrti"]};}${${"GLOBALS"}["kwqbupfypsv"]}=${${"GLOBALS"}["kpbmtxif"]}=${$fthoyrepb}="";${"GLOBALS"}["agrpiccke"]="aResTicket";$btotfgbu="sTicketNumber";if(ScTools::getValue("id_store")>0){$jhdswhdd="idStore";${$jhdswhdd}=ScTools::getValue("id_store");}else{$phldndy="idStore";${$phldndy}=$cookie->scidstore;}$mbdvgkerkro="idCustomer";if(Module::isInstalled("loyalty")&&ScTools::isInstalled("sw_loyalty")){$bhelljv="sLeftJoin";${"GLOBALS"}["lcgvnmcdg"]="sSelect";${$bhelljv}.=" LEFT JOIN `"._DB_PREFIX_."caisse_loyalty` l ON (SUBSTR(l.`document`,5) = t.`id_ticket` AND SUBSTR(l.`document`,1,4)=\"TIC-\")";${${"GLOBALS"}["lcgvnmcdg"]}.=", l.`loyalty_points`";}if(ScTools::isInstalled("sw_quotation")){$czfohcoyr="idStore";$ugowvkj="sLeftJoin";${$ugowvkj}.=" LEFT JOIN `"._DB_PREFIX_."caisse_devis` q ON (q.`id_ticket` = t.`id_ticket` AND q.`id_store`=".(int)${$czfohcoyr}.")";${${"GLOBALS"}["kpbmtxif"]}.=", q.`id_devis`";}${${"GLOBALS"}["vefxtojuk"]}="SELECT t.`id_ticket`, t.`id_store`, t.`id_customer`, t.`id_address`, t.`id_employee`, t.`remise_global_prix`, t.`remise_global_pourcent`, t.`is_reward`,
						t.`p_ticket_hr`, t.`p_ticket_r`, t.`date`, o.`id_cmd`, i.`id_facture`, k.`id_bon_cadeau` ".${${"GLOBALS"}["vwdxewuur"]}."
		 		FROM `"._DB_PREFIX_."caisse_ticket` t
		 		LEFT JOIN `"._DB_PREFIX_."caisse_cmd` o ON o.`id_solde_ticket` = t.`id_ticket`
		 		LEFT JOIN `"._DB_PREFIX_."caisse_facture` i ON (i.`id_ticket` = t.`id_ticket` AND i.`ispro`=0)
		 		LEFT JOIN `"._DB_PREFIX_."caisse_bon_cadeau` k ON k.`id_ticket` = t.`id_ticket`
		 		".${${"GLOBALS"}["kwqbupfypsv"]}."
		 		WHERE 1 ".${${"GLOBALS"}["shzehshqodlt"]}." 
		 		".(!empty(${$btotfgbu})?" AND t.`id_ticket` = ".${${"GLOBALS"}["jtfbfttai"]}:"").(${${"GLOBALS"}["wihwrehqc"]}===true?" AND t.`id_store`=".(int)${${"GLOBALS"}["pyredoqwf"]}:"").(!empty(${$eezjjuns})?" AND t.`id_customer` = ".${$mbdvgkerkro}:"");$iawfcglv="sql";${${"GLOBALS"}["agrpiccke"]}=ScDb::getRow(${$iawfcglv});if(!empty(${${"GLOBALS"}["qzwymuelpn"]})){if(${${"GLOBALS"}["ffbcuchv"]}===true){${"GLOBALS"}["okxasj"]="aResTicket";$jnlxuhu="bTicketDetail";${$jnlxuhu}=self::getTicketDetail(${${"GLOBALS"}["okxasj"]}["id_ticket"],(int)${${"GLOBALS"}["pyredoqwf"]},true);if(${${"GLOBALS"}["ugtiuody"]}===true){$cbpkqlffsn="aResTicket";$yxgqlxie="aResTicket";$bkygluww="aResTicket";$jnurjstzhx="aResTicket";ScSession::updateArray("sccaisse",array("*idTicket"=>${$jnurjstzhx}["id_ticket"],"*idOrder"=>${$cbpkqlffsn}["id_cmd"],"*idInvoice"=>${$bkygluww}["id_facture"],"*idCustomer"=>${$yxgqlxie}["id_customer"],"*idAddress"=>${${"GLOBALS"}["qzwymuelpn"]}["id_address"],"*GlobalReduction"=>${${"GLOBALS"}["qzwymuelpn"]}["remise_global_prix"],"*GlobalReductionPo"=>${${"GLOBALS"}["qzwymuelpn"]}["remise_global_pourcent"]));$ieifvkrljrn="aResTicket";if(!empty(${${"GLOBALS"}["qzwymuelpn"]}["id_bon_cadeau"])){ScSession::updateArray("sccaisse",array("*idVoucher"=>${${"GLOBALS"}["qzwymuelpn"]}["id_bon_cadeau"],));}${"GLOBALS"}["rffiwm"]="aResTicket";if(!empty(${$ieifvkrljrn}["is_reward"])){ScSession::updateArray("sccaisse",array("*is_allinone_rewards"=>${${"GLOBALS"}["qzwymuelpn"]}["is_reward"],));}if(Module::isInstalled("loyalty")&&ScTools::isInstalled("sw_loyalty")&&isset(${${"GLOBALS"}["rffiwm"]}["loyalty_points"])){${"GLOBALS"}["dccujjvnfr"]="aResTicket";ScSession::updateArray("sccaisse",array("*LoyaltyPoints"=>${${"GLOBALS"}["dccujjvnfr"]}["loyalty_points"],));}if(ScTools::isInstalled("sw_quotation")&&isset(${${"GLOBALS"}["qzwymuelpn"]}["id_devis"])){ScSession::updateArray("sccaisse",array("*idQuotation"=>${${"GLOBALS"}["qzwymuelpn"]}["id_devis"],));}ScHook::getModules("hookScGetTicket","string",array("ticketnumber"=>${${"GLOBALS"}["qzwymuelpn"]}["id_ticket"]));if(ScSession::get("scmode")==6&&_SC_ASSOCIATED_TICKET_==1){ScSession::updateArray("sccaisse",array("*idOriginalTicket"=>${${"GLOBALS"}["qzwymuelpn"]}["id_ticket"]));}else{$uweqyx="aResTicket";ScPayment::getPaymentsFromSQL(${$uweqyx}["id_ticket"],false,true);ScSession::send("scmode","5");ScSession::sendMsgToSession(ScTools::getInfo($ScModule->l("Cette vente est terminee, actions possibles : Impression Ticket de Caisse, Creation/Impression de la facture, Correction des paiements",strtolower(__CLASS__))));}}else{return ScTools::getError($ScModule->l("Erreur lors du rappel de ticket",strtolower(__CLASS__)));}}else{$gitjzujhesil="aResTicket";return${$gitjzujhesil};}}else{return ScTools::getError(sprintf($ScModule->l("Le Ticket : %s n'existe pas",strtolower(__CLASS__)),strtoupper(ScTools::getValue("eanadd"))));}}public static function getTicketDetail($idTicket,$idStore,$bToSession){$bsrduusfn="idStore";$mrtlbo="sql";${"GLOBALS"}["iodnrth"]="sField";$tqxfuoe="sField";${$tqxfuoe}="";if(Module::isInstalled("productspack")&&ScTools::isInstalled("sw_scproductpack")){${${"GLOBALS"}["ietclyr"]}=", `productpack`";}${$mrtlbo}="SELECT `id`, `id_product`, `id_attribute`, `ean_product`, `upc_product`, `name`, `supplier_name`, `supplier_ref`, `reference`,
                                    `wholesale_price`, `tva`, `ecotax`, `pu_ht`, `pu_ttc`, `quantity`, `weight`, `rp`, `rpo`, `p_ht_wrg`, `p_ttc`, `comments`,
                                    `id_employee`,`codeCompta` ".${${"GLOBALS"}["iodnrth"]}."
                            FROM `"._DB_PREFIX_."caisse_ticket_detail` 
                            WHERE `id_ticket` = ".${${"GLOBALS"}["boplrti"]}." AND `id_store`=".${$bsrduusfn};if(${${"GLOBALS"}["pqygtia"]}=ScDb::getRows(${${"GLOBALS"}["vefxtojuk"]})){if(${${"GLOBALS"}["ffbcuchv"]}===true){${"GLOBALS"}["vmnkffrpgzdb"]="aResTicketDetail";foreach(${${"GLOBALS"}["vmnkffrpgzdb"]} as${${"GLOBALS"}["imogwrbwl"]}){${"GLOBALS"}["ojsigqmwx"]="r";if(ScSession::get("scmode")==6&&_SC_ASSOCIATED_TICKET_==1){$yqpgwuqx="Quantity";$lrjkwkf="r";${$yqpgwuqx}=${$lrjkwkf}["quantity"]*-1;}else{${"GLOBALS"}["sjwggdaey"]="r";${${"GLOBALS"}["fzdwwoo"]}=${${"GLOBALS"}["sjwggdaey"]}["quantity"];}${"GLOBALS"}["njjfwpdtm"]="r";$vzathoef="r";$jvknhsx="r";if(ScTools::isInstalled("sw_reservation")){${"GLOBALS"}["masieid"]="r";$cxrmolnihsw="idStore";${${"GLOBALS"}["lkbwxsllz"]}=SwReservation::getReservationDetails(${${"GLOBALS"}["masieid"]}["id"],Context::getContext()->shop->id,${$cxrmolnihsw});$csfgtigrfx="aReservationDetail";if(!empty(${$csfgtigrfx})){$zmsnjys="r";ScSession::updateArray("sccart",array("reservation"=>array(${$zmsnjys}["id_product"]=>${${"GLOBALS"}["lkbwxsllz"]}["id_product_reservation"])));}}if(strtolower(${$vzathoef}["ean_product"])=="bcadeau"){${"GLOBALS"}["rsmvvrspdjo"]="idTicket";ScSession::update("sccaisse","idVoucher","",ScVoucher::getIdVoucherByIdTicket(${${"GLOBALS"}["rsmvvrspdjo"]}));}$zelhfdtot="r";${${"GLOBALS"}["snlvyxsq"]}=${${"GLOBALS"}["imogwrbwl"]}["id_product"]."-".${${"GLOBALS"}["njjfwpdtm"]}["id_attribute"];${"GLOBALS"}["rrtckw"]="r";$dnhltkidkq="r";$ziomte="r";$nxknliwwlz="r";if(Module::isInstalled("productspack")&&ScTools::isInstalled("sw_scproductpack")){if(!empty(${${"GLOBALS"}["imogwrbwl"]}["productpack"])){${${"GLOBALS"}["snlvyxsq"]}=${${"GLOBALS"}["imogwrbwl"]}["productpack"];}}${"GLOBALS"}["jskkpcc"]="r";ScCaisse::addProduct(${${"GLOBALS"}["snlvyxsq"]},${${"GLOBALS"}["imogwrbwl"]}["name"],${${"GLOBALS"}["fzdwwoo"]},${${"GLOBALS"}["imogwrbwl"]}["pu_ht"],${${"GLOBALS"}["imogwrbwl"]}["tva"],${$ziomte}["pu_ttc"],${$dnhltkidkq}["wholesale_price"],${${"GLOBALS"}["rrtckw"]}["ean_product"],${$nxknliwwlz}["upc_product"],${$zelhfdtot}["supplier_name"],${${"GLOBALS"}["imogwrbwl"]}["supplier_ref"],${${"GLOBALS"}["imogwrbwl"]}["reference"],${${"GLOBALS"}["jskkpcc"]}["rpo"],${$jvknhsx}["rp"],${${"GLOBALS"}["ojsigqmwx"]}["ecotax"],${${"GLOBALS"}["imogwrbwl"]}["weight"],${${"GLOBALS"}["imogwrbwl"]}["comments"],${${"GLOBALS"}["imogwrbwl"]}["id_employee"]);}return true;}else{$mrgvimkwu="aResTicketDetail";return${$mrgvimkwu};}}return false;}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["lk\x62\x77\x78\x73l\x6c\x7a"]="\x61R\x65\x73\x65\x72\x76ati\x6fn\x44eta\x69l";${"\x47\x4c\x4fBALS"}["f\x7a\x64ww\x6fo"]="Qu\x61\x6e\x74i\x74\x79";${"G\x4c\x4f\x42AL\x53"}["\x70\x71y\x67\x74i\x61"]="aR\x65\x73\x54\x69\x63\x6be\x74\x44\x65\x74\x61i\x6c";${"\x47\x4c\x4f\x42AL\x53"}["\x75\x67ti\x75\x6f\x64\x79"]="b\x54\x69c\x6b\x65\x74\x44e\x74ai\x6c";${"\x47\x4cO\x42A\x4c\x53"}["\x70\x79\x72e\x64\x6f\x71wf"]="\x69d\x53\x74\x6f\x72\x65";${"GL\x4f\x42\x41LS"}["\x6bp\x62\x6dt\x78i\x66"]="s\x53\x65\x6c\x65c\x74";${"G\x4c\x4f\x42\x41L\x53"}["\x6b\x77\x71bu\x70\x66\x79\x70sv"]="\x73\x4ceftJoi\x6e";${"\x47\x4cOB\x41L\x53"}["\x6a\x74\x66\x62\x66\x74\x74a\x69"]="\x73\x54\x69\x63\x6b\x65t\x4e\x75\x6db\x65r";${"\x47\x4c\x4f\x42\x41LS"}["\x6bj\x70\x62q\x6cd\x71"]="\x61\x54i\x63\x6be\x74";${"\x47LOBA\x4c\x53"}["\x62\x6f\x70\x6cr\x74i"]="\x69\x64T\x69\x63k\x65\x74";${"\x47L\x4fB\x41\x4c\x53"}["\x66\x66\x62c\x75c\x68\x76"]="\x62T\x6f\x53\x65\x73\x73\x69\x6fn";${"\x47\x4cO\x42\x41\x4cS"}["qr\x68\x64\x71\x71\x6f\x6eq"]="\x5fs\x74b\x79";${"\x47\x4cO\x42\x41\x4c\x53"}["t\x6eew\x78\x75k\x6b"]="\x61\x53\x65\x73\x73\x69\x6f\x6e\x50\x72\x6f\x64\x75\x63t\x49d\x73";${"\x47\x4c\x4fBA\x4cS"}["e\x70\x74\x76\x75it\x73tw\x78"]="\x64is\x61bl\x65\x64";${"G\x4cOBAL\x53"}["\x67b\x66nne"]="\x5f\x68\x74\x6d\x6c";${"\x47L\x4f\x42\x41LS"}["\x62d\x6b\x68x\x67\x6d\x64k"]="\x73\x65s\x73R\x65\x74\x75\x72\x6e\x54\x69\x63\x6b\x65\x74";${"\x47LOB\x41L\x53"}["i\x6d\x6fg\x77r\x62w\x6c"]="r";${"\x47\x4cOBA\x4cS"}["s\x6el\x76\x79\x78s\x71"]="idP\x72\x6fd\x75\x63\x74";${"G\x4cOB\x41\x4c\x53"}["\x73\x6e\x71\x62i\x62\x78\x74\x73e\x74"]="aTi\x63\x6b\x65t\x44\x65\x74\x61i\x6c";${"\x47\x4c\x4fB\x41L\x53"}["\x71\x7aw\x79\x6d\x75\x65\x6c\x70\x6e"]="aR\x65\x73T\x69c\x6be\x74";${"\x47\x4cO\x42\x41L\x53"}["f\x74\x76\x78\x77\x64"]="\x69d\x53t\x62y";${"GL\x4fB\x41LS"}["iet\x63\x6c\x79r"]="\x73F\x69e\x6c\x64";${"\x47\x4cO\x42\x41\x4c\x53"}["\x65\x66\x71i\x65t\x77"]="\x69\x64\x45\x6d\x70lo\x79\x65\x65";${"G\x4cOB\x41LS"}["\x76\x65fxto\x6a\x75\x6b"]="sq\x6c";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6f\x67\x6a\x6er\x75\x76\x73"]="\x4e\x65wNum\x62\x65\x72";echo "";class ScTicket{public static function getNewNumber(){$lzgcyrmop="\x4e\x65\x77\x4e\x75\x6d\x62\x65\x72";global$cookie;${"\x47\x4cO\x42A\x4cS"}["\x65\x79ts\x77\x72\x71"]="\x73\x42\x79S\x74\x6fr\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x61xu\x67\x64\x6cm\x6c\x69d\x6a"]="\x73\x42\x79\x53\x74\x6f\x72e";${${"GL\x4f\x42\x41\x4c\x53"}["\x65\x79t\x73\x77\x72\x71"]}=(_SC_NUMBER_STORE_==1?"\x69d_\x73\x74ore=".$cookie->scidstore:"");$jyklhfst="\x4ee\x77Nu\x6d\x62e\x72";${"\x47L\x4f\x42\x41L\x53"}["\x64\x6f\x74m\x6c\x72\x71\x69"]="\x4e\x65\x77\x4e\x75\x6d\x62e\x72";${${"G\x4cO\x42\x41LS"}["\x6f\x67j\x6e\x72u\x76s"]}=ScDb::getValue("\x63a\x69s\x73\x65\x5f\x74i\x63\x6b\x65t","\x4d\x41X(i\x64_tic\x6be\x74)",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75a\x78\x75gdl\x6d\x6c\x69\x64\x6a"]});${$lzgcyrmop}=(int)${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6fg\x6an\x72u\x76\x73"]}+1;${$jyklhfst}=ScTools::sc_roundd(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x64\x6f\x74\x6d\x6c\x72q\x69"]},6);return strval(${${"GL\x4f\x42ALS"}["o\x67jn\x72u\x76\x73"]});}public static function getStandbyTicketList($idStore=NULL){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x71\x71\x7af\x65cti\x62\x6c"]="\x73\x71\x6c";${"\x47L\x4f\x42A\x4c\x53"}["cj\x68\x77\x68\x6d\x79\x67\x78"]="\x69\x64E\x6d\x70\x6coy\x65\x65";global$cookie;${${"GL\x4f\x42\x41L\x53"}["\x63\x6a\x68w\x68\x6d\x79g\x78"]}="";if(_SC_STBY_MODE_==0){${"\x47\x4c\x4f\x42\x41L\x53"}["\x7a\x66\x6a\x77\x78o\x79\x77\x76v"]="\x69\x64\x45m\x70\x6c\x6f\x79e\x65";${${"G\x4c\x4f\x42\x41LS"}["\x7af\x6aw\x78\x6f\x79\x77\x76\x76"]}="\x41N\x44 `\x69\x64_e\x6dp\x6c\x6f\x79\x65e\x60\x3d".$cookie->id_employee;}${${"\x47L\x4f\x42ALS"}["v\x65\x66\x78\x74\x6f\x6au\x6b"]}="\x53EL\x45CT \x60i\x64\x5fs\x74b\x79`, St\x62\x79.\x60\x69\x64_\x63\x6fm\x6den\x74\x60,\x60\x69d_st\x6f\x72\x65\x60,\x20\x60\x69\x64_em\x70loyee\x60, \x20`\x69\x64\x5fcu\x73\x74\x6fm\x65\x72\x60,\x20 \x60\x69\x64_\x61\x64dr\x65\x73s`, `re\x6d\x69\x73e\x5fg\x6cob\x61\x6c_p\x72ix\x60,\x20`r\x65mise_\x67\x6coba\x6c\x5f\x70\x6f\x75\x72\x63\x65\x6e\x74`,\n\t\t\t\t\x60t\x6f\x74\x61\x6c\x60,\x20`\x64a\x74e_\x74\x69m\x65\x60,\x20\x60\x63omm\x65nt\x61r\x79` \n\t\t\t\t\x46R\x4fM `"._DB_PREFIX_."\x63\x61\x69sse_\x74\x69\x63\x6be\x74\x5f\x73\x74\x62\x79\x60 AS\x20\x53\x74by\x20 \n\t\t\t\t".(!empty($cookie->scidstore)?"L\x45FT\x20\x4a\x4f\x49\x4e\x20`"._DB_PREFIX_."\x63\x61is\x73e\x5f\x74\x69\x63k\x65t\x5f\x73\x74by\x5f\x63\x6fmme\x6e\x74` AS S\x74\x62\x79C \x4f\x4e\x20\x53tby\x2e\x60id\x5fc\x6f\x6d\x6d\x65nt`=Stby\x43\x2e\x60id\x5fcomme\x6et` \x57\x48\x45R\x45\x20\x60i\x64\x5fs\x74\x6f\x72\x65\x60\x3d".$cookie->scidstore:"")."\x20".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x66\x71i\x65\x74w"]}."\n\t\t\t\tOR\x44\x45R\x20B\x59 `id_\x73\x74by` D\x45\x53\x43";return ScDb::getRows(${${"G\x4cO\x42\x41\x4c\x53"}["\x77\x71\x71\x7afe\x63\x74i\x62\x6c"]});}public static function getStandbyTicketDetailList($idStby){$qbdjpxqpes="idStb\x79";global$cookie;${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x65\x66x\x74\x6fj\x75\x6b"]}="\x53\x45LEC\x54 \x60\x69\x64_\x70ro\x64\x75\x63\x74`, \x60\x69\x64\x5f\x61\x74tr\x69\x62\x75\x74\x65`,\x20`\x65\x61\x6e\x5f\x70\x72o\x64uct\x60,\x20\x60upc_\x70rod\x75c\x74`, \x60\x6ea\x6de`, `\x73\x75\x70\x70li\x65r\x5f\x6e\x61me`, \x60\x73up\x70\x6c\x69e\x72_r\x65\x66\x60,\x20\x60\x72\x65fer\x65nc\x65\x60,\x20\n\t\t\t\t\t\t`whole\x73a\x6c\x65_p\x72i\x63\x65\x60,\x20`tv\x61`,\x20\x60\x65\x63\x6ft\x61x`,\x20`\x70\x75\x5f\x68t`,\x20\x60\x70\x75_\x74\x74c`, `\x71\x75a\x6e\x74ity`, \x60w\x65\x69ght`, `rp\x60,\x20`\x72po`, \x60p\x5f\x74tc`, \x60\x69d_\x65\x6dp\x6c\x6f\x79ee\x60, `co\x64\x65\x43\x6f\x6d\x70t\x61\x60\n\t\t\t\tF\x52\x4f\x4d `"._DB_PREFIX_."c\x61\x69\x73\x73\x65\x5f\x74\x69ck\x65t\x5f\x73\x74b\x79_\x64e\x74a\x69\x6c` \n\t\t\t\t\x57H\x45RE\x20`id\x5f\x73\x74\x6fre\x60\x3d".$cookie->scidstore."\x20\n\t\t\t\tAND `id_\x73\x74b\x79`\x3d".intval(${$qbdjpxqpes});return ScDb::getRows(${${"\x47L\x4f\x42ALS"}["ve\x66\x78\x74o\x6a\x75\x6b"]});}public static function getCountStandbyTicket(){$jdvrwbhlvc="\x69d\x45\x6dp\x6c\x6f\x79\x65\x65";global$cookie;${"\x47LO\x42\x41\x4c\x53"}["m\x6cyxfx\x76\x6a\x77"]="i\x64\x45mp\x6c\x6fye\x65";${$jdvrwbhlvc}="";if(_SC_STBY_MODE_==0){$cjctefcgfqdq="\x69dE\x6d\x70\x6c\x6fy\x65e";${$cjctefcgfqdq}="A\x4e\x44\x60\x69\x64\x5f\x65mp\x6coy\x65e`\x3d".$cookie->id_employee;}${${"\x47L\x4fB\x41LS"}["v\x65\x66\x78\x74\x6fj\x75k"]}="\x53ELE\x43T\x20\x63\x6f\x75n\x74(`\x69d\x5f\x73\x74by`)\x20FR\x4fM\x20\x60"._DB_PREFIX_."ca\x69\x73\x73\x65\x5ft\x69cke\x74\x5fst\x62y\x60\n\t\t\t\tW\x48\x45\x52E \x20`id_st\x6fre\x60=".$cookie->scidstore." ".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6d\x6cy\x78\x66x\x76j\x77"]};return ScDb::getQueryValue(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76ef\x78\x74o\x6au\x6b"]});}public static function getStandbyTicket($idStby){global$cookie;${${"\x47L\x4fB\x41\x4cS"}["ie\x74\x63ly\x72"]}="";if(Module::isInstalled("prod\x75\x63\x74\x73p\x61c\x6b")&&ScTools::isInstalled("\x73\x77\x5fsc\x70\x72odu\x63tp\x61\x63k")){${${"\x47LOB\x41\x4c\x53"}["\x69e\x74cl\x79r"]}=",\x20\x60\x70\x72\x6fdu\x63tpack\x60";}${${"G\x4cO\x42\x41L\x53"}["ve\x66x\x74oju\x6b"]}="\x53EL\x45C\x54\x20\x20`\x72\x65\x6dise_g\x6c\x6fbal_\x70r\x69\x78`, \x60\x72\x65mise\x5f\x67lob\x61l_p\x6f\x75\x72\x63\x65\x6et\x60, \x60i\x64_\x63\x75s\x74omer\x60, `\x69\x64\x5fadd\x72\x65\x73s\x60\x20".${${"G\x4c\x4f\x42A\x4cS"}["\x69\x65t\x63l\x79\x72"]}."\n\t\t\t\t\x46\x52\x4f\x4d `"._DB_PREFIX_."\x63\x61\x69s\x73e\x5f\x74ick\x65t\x5fs\x74b\x79\x60\n\t\t\t\t\x57\x48E\x52\x45 \x60i\x64\x5fst\x62y` =\x20".${${"\x47L\x4fB\x41LS"}["\x66\x74v\x78\x77\x64"]}."\n\t\t\t\tAND\x20`\x69d_st\x6f\x72\x65\x60 =\x20".$cookie->scidstore;if(${${"\x47LOBA\x4c\x53"}["\x71\x7a\x77\x79m\x75\x65\x6c\x70\x6e"]}=ScDb::getRow(${${"\x47LOB\x41\x4cS"}["v\x65\x66\x78t\x6f\x6a\x75\x6b"]})){${"GL\x4f\x42\x41L\x53"}["\x69ny\x77n\x6aw\x74"]="a\x52\x65\x73T\x69\x63\x6b\x65t";${"G\x4c\x4f\x42A\x4c\x53"}["g\x6e\x78g\x64\x67\x6f\x7a\x6byj\x78"]="\x69d\x53\x74\x62y";$wsxfyocin="\x61\x54ic\x6be\x74\x44eta\x69\x6c";$amlbrhbej="a\x52e\x73\x54i\x63k\x65\x74";${${"G\x4c\x4fB\x41LS"}["\x73n\x71\x62i\x62\x78ts\x65\x74"]}=self::getStandbyTicketDetailList(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6e\x78\x67d\x67\x6f\x7akyj\x78"]});if(!empty(${$wsxfyocin})){${"G\x4c\x4fB\x41\x4c\x53"}["\x6cl\x73tr\x72\x61\x68"]="\x72";foreach(${${"GL\x4fBA\x4c\x53"}["\x73n\x71bi\x62xt\x73e\x74"]} as${${"\x47\x4c\x4f\x42\x41\x4cS"}["l\x6c\x73\x74r\x72\x61h"]}){${"\x47\x4c\x4f\x42\x41LS"}["\x63\x79l\x62\x68\x76j\x72\x76\x75\x79c"]="\x72";$refaurf="\x72";$bhrigtm="\x72";${"\x47L\x4f\x42\x41\x4c\x53"}["zq\x6c\x72\x69\x6e\x68\x74"]="\x72";$fzyorheegpx="r";$pupuftyk="\x72";$mfoenptq="\x72";$bvrrkxo="\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x74w\x74i\x71\x6b\x77"]="\x72";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x78\x65\x75\x63\x65\x74\x77\x63"]="r";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sn\x6c\x76y\x78\x73q"]}=${${"\x47\x4cO\x42A\x4cS"}["im\x6f\x67\x77r\x62\x77l"]}["id\x5f\x70roduc\x74"]."-".${${"G\x4cO\x42\x41\x4c\x53"}["im\x6f\x67wr\x62w\x6c"]}["\x69\x64\x5f\x61t\x74\x72i\x62u\x74e"];${"GLOBA\x4c\x53"}["\x74\x66\x66\x6ch\x62g\x69ud"]="\x72";if(Module::isInstalled("prod\x75ct\x73p\x61\x63k")&&ScTools::isInstalled("s\x77_s\x63p\x72\x6fdu\x63\x74\x70a\x63\x6b")){$smuwfq="r";if(!empty(${$smuwfq}["produ\x63t\x70\x61ck"])){$ieekky="\x72";${${"\x47L\x4f\x42AL\x53"}["sn\x6cv\x79\x78sq"]}=${$ieekky}["\x70\x72od\x75\x63tp\x61\x63\x6b"];}}$uxpywzbikh="\x72";ScCaisse::addProduct(${${"\x47\x4c\x4f\x42\x41LS"}["\x73\x6e\x6c\x76\x79\x78\x73\x71"]},${$pupuftyk}["nam\x65"],${${"\x47\x4cO\x42\x41\x4cS"}["\x77\x74wt\x69\x71kw"]}["q\x75a\x6et\x69ty"],${${"\x47\x4cOB\x41\x4c\x53"}["\x69\x6do\x67\x77\x72bwl"]}["p\x75\x5f\x68\x74"],${${"\x47\x4cOB\x41\x4c\x53"}["\x69\x78\x65uc\x65\x74w\x63"]}["\x74\x76\x61"],${${"\x47LO\x42\x41L\x53"}["\x74f\x66\x6c\x68\x62\x67i\x75\x64"]}["\x70u_ttc"],${$bhrigtm}["wh\x6f\x6cesal\x65_pric\x65"],${${"\x47LOB\x41\x4c\x53"}["z\x71l\x72\x69n\x68t"]}["e\x61n_p\x72\x6fd\x75ct"],${$uxpywzbikh}["upc\x5f\x70rod\x75ct"],${$bvrrkxo}["\x73\x75p\x70l\x69er_n\x61\x6d\x65"],${${"\x47L\x4f\x42A\x4c\x53"}["imo\x67\x77\x72\x62w\x6c"]}["s\x75\x70plier_\x72e\x66"],${${"\x47L\x4fB\x41\x4cS"}["c\x79l\x62\x68\x76jrv\x75y\x63"]}["r\x65f\x65\x72\x65n\x63\x65"],${${"\x47\x4cOB\x41\x4c\x53"}["\x69\x6d\x6fg\x77\x72bwl"]}["\x72po"],${$fzyorheegpx}["r\x70"],${${"\x47\x4c\x4fBAL\x53"}["\x69\x6d\x6f\x67w\x72\x62\x77\x6c"]}["\x65\x63o\x74\x61x"],${$mfoenptq}["w\x65ig\x68\x74"],"",${$refaurf}["i\x64\x5fe\x6d\x70\x6coy\x65\x65"]);}}ScSession::updateArray("\x73cc\x61rt",array("*\x47\x6c\x6fbal\x52\x65d\x75\x63\x74ion"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69ny\x77\x6e\x6a\x77\x74"]}["remi\x73e\x5f\x67l\x6fb\x61\x6c\x5f\x70ri\x78"],"*\x47\x6co\x62\x61\x6cR\x65\x64\x75\x63t\x69o\x6ePo"=>${${"G\x4c\x4fB\x41L\x53"}["q\x7a\x77ymu\x65\x6cp\x6e"]}["\x72\x65mis\x65_\x67lo\x62\x61\x6c\x5fpo\x75r\x63e\x6e\x74"],));if(${$amlbrhbej}["\x69d\x5fc\x75\x73\x74\x6fmer"]>0){${"\x47\x4cO\x42\x41L\x53"}["\x77h\x66\x6e\x73\x73\x6cq\x65"]="aR\x65sT\x69\x63\x6b\x65t";ScSession::updateArray("scc\x61is\x73e",array("*\x69\x64\x43\x75sto\x6d\x65r"=>${${"\x47\x4c\x4f\x42A\x4c\x53"}["q\x7a\x77\x79\x6d\x75\x65lpn"]}["id\x5fcu\x73\x74o\x6de\x72"],"*\x69\x64A\x64dre\x73s"=>${${"\x47\x4c\x4f\x42AL\x53"}["wh\x66\x6e\x73\x73l\x71\x65"]}["i\x64\x5f\x61ddres\x73"],));}}self::deleteStandbyTicket(${${"\x47\x4cOB\x41\x4c\x53"}["\x66\x74v\x78w\x64"]});}public static function deleteStandbyTicket($idStby){global$cookie;ScDb::delete("ca\x69\x73se\x5ftick\x65\x74\x5f\x73tby_\x63om\x6d\x65\x6e\x74","id\x5fc\x6f\x6d\x6de\x6et = ".ScDb::getValue("\x63ai\x73s\x65\x5ft\x69ck\x65t_st\x62\x79","i\x64_c\x6fmment","i\x64_st\x62y \x3d\x20".${${"\x47\x4c\x4fB\x41\x4c\x53"}["ft\x76\x78\x77\x64"]}));${"\x47\x4c\x4f\x42\x41\x4c\x53"}["lx\x75\x6ev\x75s"]="\x69\x64\x53\x74\x62y";ScDb::delete("\x63a\x69s\x73\x65_ti\x63k\x65t_\x73\x74\x62\x79","\x69\x64_\x73t\x62y\x20\x3d ".${${"G\x4cO\x42A\x4c\x53"}["f\x74\x76x\x77\x64"]}."\x20\x41\x4e\x44 `\x69\x64\x5f\x73\x74o\x72\x65\x60\x3d".$cookie->scidstore);ScDb::delete("c\x61i\x73\x73e\x5ft\x69\x63ke\x74\x5fst\x62\x79_\x64eta\x69l","i\x64_stb\x79\x20\x3d ".${${"G\x4c\x4f\x42\x41\x4c\x53"}["l\x78\x75\x6ev\x75\x73"]}."\x20A\x4e\x44\x20\x60id_\x73\x74\x6fre\x60=".$cookie->scidstore);}public static function getNewStbyNumber(){$cymbkaxxt="\x4e\x65\x77Numb\x65\x72";${"GL\x4f\x42\x41\x4cS"}["kb\x6bsp\x6d"]="\x4e\x65\x77N\x75m\x62\x65r";${"\x47L\x4f\x42\x41\x4cS"}["g\x62\x67l\x72\x69\x73\x71r\x70m\x76"]="\x4eew\x4e\x75\x6db\x65r";global$cookie;${${"\x47L\x4fB\x41\x4c\x53"}["o\x67\x6anr\x75v\x73"]}=ScDb::getValue("c\x61\x69\x73se_t\x69\x63\x6b\x65\x74_stb\x79","MAX(\x69d\x5f\x73\x74by)","id_s\x74\x6fr\x65=".$cookie->scidstore);${${"GL\x4f\x42A\x4c\x53"}["k\x62\x6b\x73\x70m"]}=ScTools::sc_roundd((${$cymbkaxxt}+1),6);return strval(${${"\x47\x4c\x4fBAL\x53"}["\x67\x62glr\x69\x73\x71\x72p\x6dv"]});}public static function getTicketBtn(){global$ScModule;$hkrobqflve="s\x65\x73s\x52et\x75r\x6e\x54\x69\x63\x6be\x74";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x62\x64\x6bh\x78\x67\x6d\x64k"]}=ScSession::getArray("s\x63\x63\x61\x69sse","i\x64\x54\x69cke\x74");if(ScSession::get("s\x63\x6dode")==1||(ScSession::get("s\x63\x6d\x6f\x64\x65")==2&&ScSession::getArray("s\x63ca\x69s\x73e","\x4f\x72\x64e\x72Sta\x74e")!=2)||empty(${$hkrobqflve})||ScSession::get("\x73\x63\x6d\x6f\x64e")==6){${"\x47\x4c\x4f\x42\x41L\x53"}["ys\x6fd\x6a\x67\x6d\x78\x71c\x66\x6b"]="_h\x74m\x6c";${${"\x47\x4c\x4f\x42\x41\x4cS"}["y\x73\x6f\x64\x6agm\x78\x71\x63f\x6b"]}="<spa\x6e \x73tyle\x3d\"cur\x73o\x72:\x6eo\x74-\x61l\x6co\x77\x65d\x22 cl\x61\x73s=\"abtn1\"\x3e\n\t\t\t\t\t\t".$ScModule->l("T\x69cket",strtolower(__CLASS__))."<\x62\x72 />".$ScModule->l("\x64\x65 \x43\x61is\x73\x65",strtolower(__CLASS__))."\n\t\t\t\t\t\x3c/\x73pa\x6e>";}else{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x63m\x6el\x76t\x75\x6a"]="\x5f\x68\x74\x6d\x6c";${${"GLOBAL\x53"}["\x66\x63\x6d\x6e\x6c\x76\x74\x75\x6a"]}="<\x61 \x63\x6c\x61\x73\x73=\x22\x61\x62\x74n\x31\x20\x66tic\x6be\x74 f\x61\x6ec\x79\x62ox.\x69\x66r\x61me\" \x64at\x61-id\x74\x69\x63k\x65\x74\x3d\"".${${"\x47\x4c\x4fBA\x4c\x53"}["b\x64\x6b\x68x\x67\x6d\x64\x6b"]}."\" \n\t\t\thr\x65\x66=\x22"._SC_VIEW_."\x26disp\x6cay_\x70ag\x65=\x54\x69cke\x74&idt\x69\x63\x6be\x74=".${${"G\x4c\x4fB\x41L\x53"}["b\x64\x6b\x68x\x67\x6d\x64k"]}."\x26\x73c\x74\x6f\x6ben\x3d"._SC_TOKEN_."\x22\n\t\t\t".(_SC_AUTO_OPEN_TICKET_>0?"ti\x74le\x3d\"".$ScModule->l("\x43\x74\x72l +\x20C\x6ci\x63\x20p\x6fur\x20\x6f\x75v\x65rt\x75\x72e\x20\x6d\x61n\x75e\x6cle",strtolower(__CLASS__))."\"":"")."\x3e\n\t\t\t\t".$ScModule->l("\x54\x69\x63ke\x74",strtolower(__CLASS__))."\x3c\x62\x72\x20/>".$ScModule->l("de\x20\x43\x61i\x73s\x65",strtolower(__CLASS__))."\n\t\t\t\t<s\x70\x61\x6e c\x6c\x61\x73s=\x22\x73\x62\x61\x64\x67\x65\"><\x69 c\x6c\x61\x73s\x3d\x22\x66\x61 fa-\x66\x69l\x65-\x6f\"\x3e\x3c/\x69\x3e</spa\x6e\x3e\n\t\t\t</a\x3e";}return${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67\x62f\x6e\x6ee"]};}public static function getStbyBtn(){global$ScModule;${"G\x4cO\x42\x41LS"}["\x73\x79v\x66\x73\x75d\x70\x73"]="\x61\x53\x65\x73s\x69\x6f\x6e\x50\x72od\x75\x63tI\x64\x73";${${"\x47L\x4f\x42\x41L\x53"}["\x73y\x76\x66\x73\x75dp\x73"]}=ScCaisse::getArray("\x73\x63ca\x72t","P\x72oduct\x49d\x73");$eyvvvatnc="_\x73\x74\x62\x79";if(_SC_STBY_MODE_==0){$tlufgspo="_\x73\x74\x62\x79";$jtrnjeulwrtx="\x61\x53ess\x69\x6f\x6e\x50\x72\x6f\x64u\x63t\x49\x64s";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x70\x74v\x75\x69\x74s\x74\x77\x78"]}="";if(empty(${$jtrnjeulwrtx})||ScSession::get("\x73\x63\x6d\x6f\x64e")!=0){${${"G\x4cO\x42\x41\x4c\x53"}["\x65\x70\x74\x76\x75\x69t\x73tw\x78"]}="\x64i\x73abled=\x22d\x69s\x61\x62\x6c\x65\x64\x22";}${"\x47L\x4fB\x41\x4c\x53"}["\x64x\x67\x67x\x70\x71\x62\x79"]="d\x69s\x61\x62\x6c\x65\x64";${$tlufgspo}="\x3c\x66or\x6d a\x63\x74ion=\x22in\x64\x65\x78.\x70\x68\x70?".ScTools::getControllerParamName()."\x3dAd\x6di\x6eS\x6fr\x61\x43a\x69\x73\x73\x65\x26t\x6f\x6ben\x3d".Tools::getValue("\x74o\x6ben")."\x22 \x6det\x68\x6f\x64=\x22pos\x74\"\x20>\n \x20 \x20   \x20\x20\x20  \x20  \x20 \x20  \x20 \x20\x20\x20 \x20\x20\x20 \x3c\x62\x75t\x74o\x6e\x20\x74\x79\x70e=\x22\x73ubm\x69\x74\" \x6ea\x6d\x65=\"\x73\x74\x62y\x74i\x63\x6be\x74\" c\x6c\x61ss=\x22ab\x74n\x31\"\x20".ScCaisse::getLocked("S\x74\x62\x79",0)."\x20".${${"\x47\x4c\x4fB\x41\x4cS"}["\x64\x78\x67\x67\x78\x70\x71\x62\x79"]}."\x3e".$ScModule->l("\x4d\x65ttre",strtolower(__CLASS__))."<\x62\x72\x20/>".$ScModule->l("e\x6e\x20at\x74\x65\x6ete",strtolower(__CLASS__))."\x3c/butt\x6fn\x3e\n \x20  \x20 \x20 \x20 \x20\x20 \x20\x20 \x20\x20  \x20\x3c/f\x6frm>";}else{if(empty(${${"\x47LOB\x41\x4c\x53"}["\x74\x6e\x65\x77\x78uk\x6b"]})||ScSession::get("\x73\x63mode")!=0){${"\x47\x4cO\x42\x41\x4c\x53"}["pb\x63\x6c\x6de\x78j\x79\x70\x71"]="\x5f\x73\x74\x62\x79";${${"\x47\x4c\x4f\x42AL\x53"}["p\x62\x63\x6c\x6d\x65\x78\x6a\x79\x70q"]}="<sp\x61n \x73\x74y\x6ce=\"curs\x6fr:not-\x61ll\x6fw\x65\x64\x22 c\x6ca\x73\x73=\"abt\x6e1\x22\x3e\n   \x20 \x20 \x20    \x20\x20 \x20 \x20          ".$ScModule->l("M\x65ttr\x65",strtolower(__CLASS__))."<\x62\x72 />".$ScModule->l("\x65n at\x74\x65\x6e\x74e",strtolower(__CLASS__))."\n   \x20\x20  \x20\x20\x20\x20\x20     \x20\x20  \x20 \x3c/spa\x6e\x3e";}else{${${"\x47\x4c\x4fBALS"}["qr\x68dqq\x6f\x6e\x71"]}="<a\x20c\x6c\x61\x73s=\"\x61\x62\x74n\x31 \x66\x73\x74\x62y\x20f\x61n\x63\x79\x62\x6fx\x2e\x69fr\x61m\x65\x22\x20hre\x66\x3d\""._SC_VIEW_."\x26\x64ispl\x61y_p\x61\x67\x65=\x53\x74by\x54i\x63ket\x41d\x76anced&a\x6dp;\x73ct\x6f\x6ben\x3d"._SC_TOKEN_." \">".$ScModule->l("\x4det\x74re",strtolower(__CLASS__))."\x3c\x62r\x20/\x3e".$ScModule->l("en\x20at\x74\x65\x6ete",strtolower(__CLASS__))."\x20".ScCaisse::getLocked("S\x74\x62\x79",0)."</\x61>";}}return${$eyvvvatnc};}public static function getTicket($idTicket,$bToSession=false,$bidStore=true,$idCustomer=0){${"\x47\x4cO\x42\x41L\x53"}["\x77i\x68\x77\x72\x65\x68\x71\x63"]="\x62i\x64S\x74\x6f\x72\x65";${"GL\x4fB\x41\x4c\x53"}["v\x77\x64x\x65\x77uu\x72"]="\x73\x53e\x6c\x65\x63\x74";${"\x47\x4cOBA\x4c\x53"}["\x73h\x7a\x65h\x73h\x71\x6f\x64l\x74"]="s\x57\x68\x65\x72\x65";global$cookie,$ScModule;$fthoyrepb="s\x57h\x65re";if(${${"G\x4c\x4f\x42\x41L\x53"}["\x66\x66bc\x75c\x68v"]}===true){ScSession::clear("\x73\x63\x63art");ScSession::clear("\x73\x63payme\x6e\x74");ScSession::clear("\x73\x63\x6ds\x67");}$eezjjuns="\x69\x64\x43\x75\x73\x74\x6fm\x65\x72";if(!is_numeric(${${"\x47\x4c\x4f\x42AL\x53"}["\x62\x6f\x70\x6cr\x74\x69"]})){${"GL\x4fB\x41\x4cS"}["\x78\x65\x68\x68o\x78c\x6f\x72n"]="\x69\x64\x54\x69c\x6b\x65\x74";${${"G\x4cOBA\x4c\x53"}["k\x6a\x70\x62\x71\x6c\x64\x71"]}=ScTools::getDocWithType(${${"\x47L\x4f\x42\x41\x4cS"}["\x78\x65\x68h\x6f\x78c\x6frn"]});${${"\x47\x4cOBA\x4c\x53"}["j\x74\x66\x62f\x74\x74a\x69"]}=${${"G\x4cO\x42A\x4c\x53"}["\x6b\x6a\x70\x62\x71l\x64\x71"]}["num\x62e\x72"];}else{${"\x47L\x4f\x42\x41\x4c\x53"}["\x64\x62\x62\x6fa\x76\x71esvh"]="\x73T\x69c\x6be\x74\x4e\x75\x6db\x65r";${${"\x47L\x4f\x42\x41\x4cS"}["\x64b\x62\x6favqe\x73\x76\x68"]}=${${"GLO\x42\x41LS"}["b\x6f\x70lr\x74\x69"]};}${${"\x47\x4c\x4fBA\x4c\x53"}["k\x77\x71b\x75\x70\x66yps\x76"]}=${${"G\x4cO\x42AL\x53"}["\x6bp\x62m\x74\x78i\x66"]}=${$fthoyrepb}="";${"\x47L\x4fB\x41\x4c\x53"}["\x61\x67\x72\x70\x69\x63\x63\x6be"]="a\x52\x65\x73\x54\x69\x63\x6be\x74";$btotfgbu="\x73\x54\x69\x63\x6be\x74N\x75\x6d\x62e\x72";if(ScTools::getValue("\x69d\x5f\x73\x74\x6f\x72\x65")>0){$jhdswhdd="i\x64\x53t\x6fre";${$jhdswhdd}=ScTools::getValue("\x69d\x5fs\x74ore");}else{$phldndy="\x69\x64\x53\x74\x6fr\x65";${$phldndy}=$cookie->scidstore;}$mbdvgkerkro="i\x64\x43\x75\x73\x74o\x6de\x72";if(Module::isInstalled("\x6c\x6fyal\x74y")&&ScTools::isInstalled("s\x77\x5fl\x6f\x79\x61\x6c\x74y")){$bhelljv="\x73L\x65ft\x4aoi\x6e";${"GL\x4fB\x41L\x53"}["l\x63gv\x6e\x6dc\x64g"]="s\x53\x65\x6c\x65\x63\x74";${$bhelljv}.="\x20L\x45F\x54\x20J\x4f\x49\x4e\x20`"._DB_PREFIX_."ca\x69\x73se\x5f\x6c\x6f\x79\x61\x6cty` \x6c \x4f\x4e\x20(S\x55BSTR(\x6c.\x60\x64o\x63u\x6de\x6e\x74\x60,\x35)\x20\x3d\x20\x74.`id\x5fticke\x74\x60 \x41\x4e\x44 SU\x42STR(l\x2e\x60d\x6fc\x75\x6dent\x60,\x31,4)\x3d\"TIC-\")";${${"G\x4c\x4fB\x41LS"}["l\x63\x67\x76\x6e\x6d\x63dg"]}.=",\x20\x6c.`\x6c\x6fy\x61\x6c\x74y_\x70\x6f\x69nt\x73`";}if(ScTools::isInstalled("\x73\x77\x5fquo\x74\x61tio\x6e")){$czfohcoyr="\x69\x64\x53\x74\x6f\x72\x65";$ugowvkj="\x73\x4c\x65\x66\x74\x4a\x6f\x69n";${$ugowvkj}.=" L\x45FT \x4a\x4f\x49\x4e `"._DB_PREFIX_."ca\x69\x73s\x65_d\x65vi\x73\x60 \x71 \x4fN (q.\x60i\x64\x5f\x74\x69cke\x74\x60\x20= t\x2e`i\x64_\x74i\x63ket` \x41\x4e\x44\x20q.`i\x64_\x73tor\x65\x60\x3d".(int)${$czfohcoyr}.")";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6bpb\x6d\x74\x78i\x66"]}.=", q.\x60i\x64\x5f\x64ev\x69s`";}${${"\x47LOB\x41\x4c\x53"}["\x76e\x66\x78\x74\x6f\x6au\x6b"]}="\x53ELE\x43\x54 t.\x60\x69\x64_t\x69\x63ke\x74\x60,\x20\x74.\x60\x69\x64_s\x74or\x65`,\x20t.`\x69d_\x63\x75\x73tom\x65\x72`,\x20t.\x60id_\x61d\x64\x72es\x73\x60, t.\x60\x69d\x5fe\x6d\x70\x6c\x6fyee`, \x74.`\x72\x65mise\x5f\x67lo\x62\x61l_p\x72\x69\x78\x60, \x74\x2e\x60re\x6d\x69se_\x67l\x6fb\x61\x6c_\x70\x6f\x75rc\x65\x6et`,\x20\x74\x2e`\x69\x73_\x72ew\x61rd\x60,\n\t\t\t\t\t\tt\x2e`p_t\x69c\x6bet_\x68r\x60, t\x2e`\x70_\x74icke\x74_\x72`, t\x2e\x60\x64\x61te\x60, o.\x60i\x64_\x63\x6dd\x60, \x69.\x60\x69d_f\x61c\x74u\x72\x65\x60,\x20k.`\x69\x64_b\x6f\x6e_\x63a\x64\x65\x61u\x60\x20".${${"\x47\x4cOB\x41\x4cS"}["\x76\x77d\x78e\x77\x75ur"]}."\n\t\t \t\tFROM \x60"._DB_PREFIX_."\x63a\x69\x73\x73e\x5f\x74\x69c\x6b\x65\x74\x60\x20\x74\n\t\t\x20\t\t\x4c\x45FT \x4aO\x49\x4e\x20`"._DB_PREFIX_."\x63\x61is\x73e_\x63md\x60\x20o \x4f\x4e \x6f\x2e`\x69\x64\x5fs\x6fl\x64e_\x74i\x63k\x65\x74\x60 \x3d \x74.`i\x64_tick\x65\x74`\n\t\t\x20\t\t\x4c\x45\x46T\x20\x4a\x4fI\x4e \x60"._DB_PREFIX_."\x63ai\x73se\x5f\x66ac\x74\x75re\x60\x20i\x20\x4f\x4e (\x69.\x60\x69d\x5f\x74ick\x65\x74`\x20= \x74.`\x69\x64_ti\x63ket\x60 \x41ND\x20\x69\x2e`\x69\x73pr\x6f\x60\x3d0)\n\t\t\x20\t\t\x4cE\x46\x54\x20\x4aO\x49N `"._DB_PREFIX_."c\x61\x69s\x73\x65_b\x6f\x6e\x5fc\x61d\x65au\x60 k\x20ON\x20\x6b\x2e`i\x64\x5ftic\x6b\x65\x74\x60 = t.\x60i\x64_t\x69\x63ket\x60\n\t\t\x20\t\t".${${"G\x4c\x4f\x42A\x4c\x53"}["\x6bwq\x62\x75\x70\x66yps\x76"]}."\n\t\t\x20\t\tW\x48\x45R\x45 \x31 ".${${"\x47L\x4f\x42A\x4cS"}["\x73hz\x65h\x73hq\x6fd\x6c\x74"]}." \n\t\t \t\t".(!empty(${$btotfgbu})?" \x41ND \x74\x2e`id_\x74i\x63\x6be\x74\x60 = ".${${"\x47\x4c\x4fBA\x4cS"}["j\x74\x66b\x66t\x74\x61\x69"]}:"").(${${"GL\x4f\x42\x41\x4cS"}["\x77\x69\x68\x77\x72eh\x71\x63"]}===true?" \x41ND \x74\x2e`\x69d_\x73\x74\x6f\x72e`=".(int)${${"GLO\x42AL\x53"}["\x70\x79r\x65\x64\x6fq\x77f"]}:"").(!empty(${$eezjjuns})?"\x20\x41ND\x20\x74\x2e\x60i\x64_\x63u\x73\x74o\x6de\x72`\x20\x3d ".${$mbdvgkerkro}:"");$iawfcglv="sql";${${"GL\x4fB\x41\x4c\x53"}["ag\x72\x70\x69cc\x6b\x65"]}=ScDb::getRow(${$iawfcglv});if(!empty(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x7aw\x79muelp\x6e"]})){if(${${"\x47\x4cOB\x41L\x53"}["\x66fbc\x75c\x68v"]}===true){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fk\x78a\x73\x6a"]="\x61\x52\x65\x73\x54\x69\x63\x6b\x65\x74";$jnlxuhu="\x62T\x69c\x6be\x74D\x65t\x61i\x6c";${$jnlxuhu}=self::getTicketDetail(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6fk\x78a\x73\x6a"]}["i\x64\x5ft\x69\x63ket"],(int)${${"\x47LO\x42A\x4cS"}["\x70y\x72\x65\x64o\x71\x77\x66"]},true);if(${${"G\x4c\x4fB\x41\x4c\x53"}["\x75\x67\x74i\x75\x6f\x64\x79"]}===true){$cbpkqlffsn="\x61\x52\x65\x73T\x69ck\x65\x74";$yxgqlxie="aR\x65\x73T\x69c\x6be\x74";$bkygluww="\x61\x52e\x73\x54\x69\x63\x6b\x65\x74";$jnurjstzhx="\x61\x52\x65\x73\x54i\x63\x6b\x65\x74";ScSession::updateArray("\x73\x63\x63ai\x73\x73e",array("*i\x64T\x69cket"=>${$jnurjstzhx}["i\x64_ti\x63ke\x74"],"*\x69d\x4fr\x64\x65r"=>${$cbpkqlffsn}["id\x5f\x63\x6dd"],"*i\x64Inv\x6f\x69\x63\x65"=>${$bkygluww}["\x69\x64\x5ff\x61\x63\x74\x75\x72\x65"],"*\x69\x64Cus\x74\x6fm\x65\x72"=>${$yxgqlxie}["id\x5f\x63\x75\x73\x74om\x65r"],"*\x69\x64\x41\x64\x64r\x65s\x73"=>${${"G\x4c\x4f\x42\x41L\x53"}["qz\x77\x79\x6d\x75\x65\x6cpn"]}["id\x5f\x61\x64\x64\x72\x65ss"],"*\x47\x6coba\x6c\x52ed\x75ct\x69\x6fn"=>${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x7a\x77\x79m\x75\x65\x6c\x70n"]}["\x72\x65m\x69se\x5f\x67\x6cob\x61\x6c_\x70\x72\x69\x78"],"*G\x6co\x62\x61lReduc\x74io\x6e\x50o"=>${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x7aw\x79\x6d\x75\x65lp\x6e"]}["r\x65\x6dis\x65_g\x6co\x62al\x5fp\x6fur\x63ent"]));$ieifvkrljrn="\x61\x52\x65\x73\x54\x69\x63k\x65\x74";if(!empty(${${"\x47LO\x42A\x4c\x53"}["\x71\x7a\x77y\x6d\x75\x65lp\x6e"]}["i\x64\x5f\x62\x6fn_\x63a\x64\x65au"])){ScSession::updateArray("\x73c\x63\x61i\x73s\x65",array("*\x69d\x56\x6fu\x63he\x72"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["q\x7a\x77y\x6d\x75\x65\x6c\x70\x6e"]}["\x69\x64_b\x6f\x6e\x5fcadea\x75"],));}${"\x47L\x4f\x42\x41\x4c\x53"}["r\x66fi\x77\x6d"]="\x61\x52e\x73\x54i\x63k\x65t";if(!empty(${$ieifvkrljrn}["is\x5fr\x65\x77\x61r\x64"])){ScSession::updateArray("s\x63c\x61is\x73e",array("*is_\x61\x6cl\x69none\x5f\x72ewa\x72\x64\x73"=>${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x71\x7a\x77y\x6d\x75e\x6c\x70\x6e"]}["i\x73_r\x65\x77a\x72d"],));}if(Module::isInstalled("l\x6fya\x6c\x74\x79")&&ScTools::isInstalled("\x73\x77\x5floy\x61\x6ct\x79")&&isset(${${"G\x4cOBAL\x53"}["r\x66\x66\x69w\x6d"]}["l\x6fya\x6ct\x79\x5f\x70oint\x73"])){${"GL\x4f\x42\x41\x4cS"}["d\x63\x63\x75\x6aj\x76\x6e\x66r"]="\x61\x52e\x73\x54i\x63\x6b\x65\x74";ScSession::updateArray("\x73cc\x61\x69\x73\x73\x65",array("*\x4coy\x61\x6ctyPoint\x73"=>${${"\x47\x4c\x4fBA\x4c\x53"}["d\x63c\x75jj\x76\x6ef\x72"]}["l\x6fy\x61l\x74\x79_\x70\x6f\x69n\x74s"],));}if(ScTools::isInstalled("s\x77_\x71\x75\x6ft\x61t\x69on")&&isset(${${"GLO\x42A\x4cS"}["\x71zw\x79m\x75\x65lp\x6e"]}["\x69d\x5fd\x65vi\x73"])){ScSession::updateArray("\x73\x63c\x61is\x73\x65",array("*\x69d\x51\x75\x6ft\x61tio\x6e"=>${${"\x47\x4cO\x42\x41\x4c\x53"}["q\x7aw\x79\x6d\x75\x65\x6cpn"]}["\x69d\x5f\x64e\x76\x69s"],));}ScHook::getModules("h\x6f\x6f\x6bSc\x47\x65tT\x69\x63\x6b\x65\x74","\x73t\x72ing",array("\x74icket\x6eumb\x65\x72"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71z\x77y\x6du\x65\x6c\x70\x6e"]}["\x69d_ticke\x74"]));if(ScSession::get("\x73cmode")==6&&_SC_ASSOCIATED_TICKET_==1){ScSession::updateArray("\x73c\x63a\x69sse",array("*\x69d\x4f\x72\x69ginal\x54\x69\x63\x6bet"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x7a\x77y\x6d\x75e\x6cp\x6e"]}["id_t\x69cket"]));}else{$uweqyx="\x61Res\x54\x69\x63\x6bet";ScPayment::getPaymentsFromSQL(${$uweqyx}["\x69d_t\x69c\x6b\x65t"],false,true);ScSession::send("scmode","\x35");ScSession::sendMsgToSession(ScTools::getInfo($ScModule->l("C\x65\x74t\x65\x20v\x65nte \x65s\x74\x20\x74er\x6di\x6ee\x65,\x20\x61c\x74\x69on\x73\x20p\x6fs\x73\x69ble\x73 :\x20\x49m\x70\x72\x65\x73\x73\x69on\x20Ti\x63\x6be\x74\x20\x64\x65 \x43ai\x73\x73\x65,\x20\x43\x72ea\x74i\x6f\x6e/I\x6dpres\x73\x69o\x6e \x64e l\x61\x20\x66a\x63\x74\x75\x72e,\x20\x43orre\x63ti\x6f\x6e \x64\x65s p\x61\x69\x65me\x6ets",strtolower(__CLASS__))));}}else{return ScTools::getError($ScModule->l("\x45rr\x65u\x72\x20lo\x72s\x20du \x72\x61p\x70e\x6c\x20\x64e\x20\x74ic\x6be\x74",strtolower(__CLASS__)));}}else{$gitjzujhesil="\x61\x52\x65\x73T\x69cke\x74";return${$gitjzujhesil};}}else{return ScTools::getError(sprintf($ScModule->l("\x4c\x65 Ti\x63\x6b\x65\x74\x20:\x20%s\x20\x6e'\x65\x78\x69ste \x70as",strtolower(__CLASS__)),strtoupper(ScTools::getValue("\x65\x61\x6ea\x64d"))));}}public static function getTicketDetail($idTicket,$idStore,$bToSession){$bsrduusfn="idS\x74or\x65";$mrtlbo="sq\x6c";${"\x47\x4c\x4fBAL\x53"}["i\x6f\x64n\x72th"]="\x73F\x69\x65ld";$tqxfuoe="s\x46\x69e\x6c\x64";${$tqxfuoe}="";if(Module::isInstalled("p\x72oducts\x70\x61ck")&&ScTools::isInstalled("sw\x5fs\x63produ\x63\x74\x70\x61\x63k")){${${"\x47\x4cOBA\x4cS"}["\x69et\x63\x6cy\x72"]}=", \x60\x70rod\x75ctp\x61\x63k`";}${$mrtlbo}="\x53EL\x45\x43\x54 `\x69d`,\x20`i\x64_\x70\x72od\x75ct\x60,\x20\x60\x69\x64\x5fat\x74ri\x62\x75\x74\x65\x60,\x20\x60\x65a\x6e\x5fpr\x6fd\x75\x63t\x60, \x60\x75p\x63_p\x72\x6fduct`, `n\x61\x6d\x65\x60, `su\x70\x70\x6ci\x65r\x5fn\x61\x6de`,\x20\x60s\x75\x70\x70li\x65\x72_\x72ef\x60,\x20\x60r\x65feren\x63\x65`,\n  \x20\x20\x20    \x20  \x20\x20\x20   \x20 \x20  \x20\x20 \x20 \x20\x20\x20 \x20  \x20\x60w\x68\x6f\x6c\x65sa\x6c\x65\x5f\x70\x72\x69ce\x60,\x20\x60tv\x61\x60,\x20\x60\x65\x63ot\x61\x78`, \x60p\x75\x5f\x68t\x60, \x60\x70u_tt\x63`,\x20`\x71\x75\x61\x6et\x69ty\x60, `\x77e\x69ght\x60, `r\x70`,\x20`r\x70o`,\x20`\x70_\x68\x74\x5fwrg`,\x20\x60p\x5f\x74t\x63\x60, `\x63om\x6dent\x73`,\n\x20\x20\x20 \x20    \x20\x20   \x20\x20\x20\x20\x20\x20\x20\x20   \x20\x20   \x20     \x60\x69\x64\x5femp\x6c\x6fye\x65\x60,`c\x6f\x64\x65\x43\x6f\x6d\x70t\x61`\x20".${${"G\x4cO\x42\x41\x4c\x53"}["\x69o\x64\x6ert\x68"]}."\n \x20 \x20\x20\x20\x20   \x20 \x20\x20\x20       \x20\x20\x20\x20\x20 \x46ROM `"._DB_PREFIX_."cai\x73\x73e_t\x69ck\x65t\x5fd\x65t\x61il`\x20\n\x20 \x20     \x20\x20 \x20\x20\x20   \x20  \x20\x20    \x20 \x57\x48ERE\x20`\x69\x64_\x74i\x63ke\x74\x60 =\x20".${${"\x47\x4c\x4fBA\x4c\x53"}["\x62\x6fp\x6crti"]}." \x41\x4eD \x60\x69\x64_sto\x72e\x60\x3d".${$bsrduusfn};if(${${"\x47LO\x42AL\x53"}["p\x71\x79\x67ti\x61"]}=ScDb::getRows(${${"\x47\x4cO\x42\x41\x4c\x53"}["v\x65f\x78t\x6f\x6a\x75k"]})){if(${${"\x47L\x4fBAL\x53"}["\x66f\x62c\x75\x63\x68\x76"]}===true){${"G\x4c\x4f\x42\x41\x4cS"}["\x76\x6d\x6e\x6b\x66\x66\x72\x70g\x7ad\x62"]="a\x52\x65\x73\x54i\x63\x6be\x74\x44\x65t\x61\x69l";foreach(${${"\x47\x4c\x4fBA\x4cS"}["\x76\x6dn\x6bffr\x70g\x7adb"]} as${${"\x47L\x4f\x42\x41\x4c\x53"}["\x69\x6d\x6f\x67wr\x62\x77l"]}){${"GL\x4fB\x41L\x53"}["o\x6as\x69g\x71m\x77x"]="\x72";if(ScSession::get("\x73\x63\x6dod\x65")==6&&_SC_ASSOCIATED_TICKET_==1){$yqpgwuqx="\x51\x75a\x6e\x74\x69\x74y";$lrjkwkf="\x72";${$yqpgwuqx}=${$lrjkwkf}["qu\x61n\x74ity"]*-1;}else{${"\x47\x4cO\x42\x41\x4cS"}["s\x6awgg\x64\x61\x65\x79"]="r";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66\x7a\x64w\x77\x6f\x6f"]}=${${"\x47L\x4f\x42\x41\x4cS"}["\x73jwgg\x64\x61\x65y"]}["q\x75\x61n\x74ity"];}${"GL\x4f\x42ALS"}["\x6e\x6a\x6af\x77p\x64tm"]="\x72";$vzathoef="\x72";$jvknhsx="\x72";if(ScTools::isInstalled("\x73w_r\x65serva\x74\x69\x6fn")){${"G\x4c\x4f\x42A\x4cS"}["m\x61s\x69\x65\x69d"]="r";$cxrmolnihsw="i\x64St\x6fr\x65";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6ck\x62w\x78\x73l\x6c\x7a"]}=SwReservation::getReservationDetails(${${"\x47L\x4f\x42\x41LS"}["m\x61siei\x64"]}["\x69\x64"],Context::getContext()->shop->id,${$cxrmolnihsw});$csfgtigrfx="\x61R\x65\x73\x65\x72\x76atio\x6eD\x65t\x61i\x6c";if(!empty(${$csfgtigrfx})){$zmsnjys="r";ScSession::updateArray("sc\x63art",array("res\x65r\x76a\x74i\x6fn"=>array(${$zmsnjys}["\x69\x64\x5f\x70\x72\x6f\x64u\x63\x74"]=>${${"\x47L\x4fB\x41\x4cS"}["\x6ck\x62w\x78\x73\x6cl\x7a"]}["\x69d_p\x72\x6f\x64uct\x5f\x72\x65se\x72\x76at\x69\x6fn"])));}}if(strtolower(${$vzathoef}["\x65a\x6e_produ\x63t"])=="\x62c\x61d\x65au"){${"\x47\x4c\x4f\x42AL\x53"}["r\x73mvv\x72s\x70\x64\x6ao"]="\x69\x64\x54\x69\x63\x6b\x65t";ScSession::update("sc\x63a\x69s\x73e","\x69\x64Vouch\x65\x72","",ScVoucher::getIdVoucherByIdTicket(${${"\x47\x4c\x4f\x42ALS"}["\x72s\x6dv\x76r\x73\x70\x64jo"]}));}$zelhfdtot="\x72";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x73\x6e\x6cvy\x78s\x71"]}=${${"G\x4cOB\x41\x4c\x53"}["\x69\x6do\x67\x77\x72\x62\x77\x6c"]}["id_\x70r\x6f\x64uct"]."-".${${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x6a\x6a\x66\x77\x70dtm"]}["i\x64_attri\x62\x75\x74\x65"];${"G\x4c\x4fB\x41\x4cS"}["rr\x74\x63\x6bw"]="\x72";$dnhltkidkq="\x72";$ziomte="\x72";$nxknliwwlz="\x72";if(Module::isInstalled("pr\x6f\x64u\x63t\x73\x70\x61\x63k")&&ScTools::isInstalled("\x73w\x5f\x73\x63\x70\x72o\x64u\x63tp\x61\x63\x6b")){if(!empty(${${"\x47\x4cO\x42A\x4c\x53"}["\x69\x6d\x6f\x67\x77\x72\x62\x77\x6c"]}["\x70r\x6f\x64uctpack"])){${${"GLOBA\x4c\x53"}["\x73n\x6c\x76\x79\x78s\x71"]}=${${"\x47\x4c\x4f\x42AL\x53"}["\x69\x6d\x6fg\x77\x72b\x77l"]}["prod\x75ctpa\x63k"];}}${"\x47LOB\x41\x4c\x53"}["\x6ask\x6b\x70\x63c"]="\x72";ScCaisse::addProduct(${${"\x47L\x4f\x42A\x4c\x53"}["\x73\x6e\x6cvy\x78s\x71"]},${${"\x47\x4c\x4fB\x41\x4c\x53"}["i\x6d\x6f\x67wrb\x77l"]}["na\x6de"],${${"G\x4cOBA\x4c\x53"}["\x66zdw\x77oo"]},${${"\x47L\x4fB\x41\x4c\x53"}["im\x6f\x67w\x72\x62\x77l"]}["pu_\x68\x74"],${${"\x47\x4c\x4fBAL\x53"}["\x69\x6dogwr\x62\x77\x6c"]}["\x74va"],${$ziomte}["p\x75\x5f\x74t\x63"],${$dnhltkidkq}["whol\x65\x73\x61\x6ce\x5f\x70ri\x63e"],${${"G\x4cO\x42A\x4cS"}["\x72\x72tc\x6b\x77"]}["e\x61\x6e\x5fp\x72od\x75c\x74"],${$nxknliwwlz}["\x75\x70c\x5f\x70\x72\x6f\x64\x75\x63\x74"],${$zelhfdtot}["\x73\x75p\x70\x6c\x69er_\x6ea\x6de"],${${"GL\x4f\x42\x41\x4c\x53"}["im\x6fg\x77\x72b\x77\x6c"]}["\x73\x75pp\x6c\x69\x65\x72_re\x66"],${${"G\x4c\x4f\x42A\x4cS"}["\x69m\x6fg\x77\x72bw\x6c"]}["re\x66eren\x63e"],${${"\x47L\x4f\x42\x41\x4cS"}["\x6a\x73\x6b\x6b\x70c\x63"]}["\x72p\x6f"],${$jvknhsx}["r\x70"],${${"G\x4c\x4f\x42\x41L\x53"}["o\x6a\x73\x69\x67\x71m\x77\x78"]}["\x65cot\x61\x78"],${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x6do\x67\x77\x72\x62\x77l"]}["w\x65i\x67h\x74"],${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x69m\x6fgw\x72\x62\x77\x6c"]}["co\x6dm\x65\x6et\x73"],${${"\x47\x4c\x4f\x42\x41LS"}["\x69\x6d\x6f\x67\x77rbwl"]}["i\x64\x5f\x65\x6d\x70\x6c\x6fy\x65\x65"]);}return true;}else{$mrgvimkwu="\x61\x52e\x73\x54\x69c\x6be\x74D\x65\x74\x61\x69\x6c";return${$mrgvimkwu};}}return false;}}
?>

Function Calls

None

Variables

None

Stats

MD5 fc1e3e9a9434345786770be05a712de8
Eval Count 0
Decode Time 124 ms