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\x42A\x4cS"}["b\x62\x71\x6a\x6f\x62\x66\x69"]="\x6b\x65\x79le\x6e";${..

Decoded Output download

<?php ${"GLOBALS"}["bbqjobfi"]="keylen";${"GLOBALS"}["xcjqegyi"]="sum32";${"GLOBALS"}["koqdyeoqiik"]="b";${"GLOBALS"}["esftelseiu"]="a";${"GLOBALS"}["juufiyd"]="sum";${"GLOBALS"}["dlkivr"]="extrabit";${"GLOBALS"}["krdffwldvds"]="p1len";${"GLOBALS"}["xohqnjgv"]="p1str";${"GLOBALS"}["bezlqlf"]="fullcode";${"GLOBALS"}["wvtixscyv"]="extendedcode";${"GLOBALS"}["yexdofcyigm"]="initcode";${"GLOBALS"}["lyzjfejxcwxb"]="initlen";${"GLOBALS"}["xkqrtnegeoxm"]="name";${"GLOBALS"}["uhcljrbe"]="url";${"GLOBALS"}["lfateyotjm"]="protocolos";${"GLOBALS"}["mmoohpsd"]="sqls";${"GLOBALS"}["qgclkvu"]="defaultLanguage";${"GLOBALS"}["gellulkmrzjm"]="idioma_config";${"GLOBALS"}["vzghxxpwsjzj"]="language";${"GLOBALS"}["vfmjej"]="fields_form2";${"GLOBALS"}["slqnmikao"]="Maxi";${"GLOBALS"}["pxibpqr"]="i";${"GLOBALS"}["oqsftyugo"]="employes";${"GLOBALS"}["xmitpire"]="helper";${"GLOBALS"}["hryspxp"]="err";${"GLOBALS"}["tonuqfdkz"]="reference_duplicates";${"GLOBALS"}["efiloc"]="combinations_no_reference";${"GLOBALS"}["kgxqiglmjdj"]="products_no_reference";${"GLOBALS"}["dytrrsln"]="sql";${"GLOBALS"}["nipczqcc"]="domain";${"GLOBALS"}["owknkjg"]="doli_invoice_dir";${"GLOBALS"}["gdupbswnfy"]="presta_img_url";${"GLOBALS"}["odtrrx"]="matches";${"GLOBALS"}["frpsgpc"]="serial";${"GLOBALS"}["dhqjtjpv"]="force_all";${"GLOBALS"}["odkndtxiq"]="config";if((version_compare(_PS_VERSION_,"1.4")>=0)&&!defined("_CAN_LOAD_FILES_"))exit;class DoliPresta extends Module{private$_html='';private$_postErrors=array();public$presta_conf_dir;public$ws_ps_rootdir;public$ecom_lang;public$ps_id_employe;public$ps_code_customer;public$discount_tax_rate;public$ps_code_order;public$presta_img_url;public$ecom_date_ini;public$doli_invoice_dir;public$doli_webservices_apikey;public$presta_key;public$weight_unit;public$length_unit;public$debug=false;public function __construct(){${"GLOBALS"}["kpkrxque"]="config";${"GLOBALS"}["fhrwxzjtzbo"]="config";$this->name="dolipresta";${"GLOBALS"}["gwxgkxhf"]="config";$this->tab="Divers";${"GLOBALS"}["vtnfeigmn"]="config";${"GLOBALS"}["kcrastobkxu"]="config";${"GLOBALS"}["oujdxrdirbic"]="config";${"GLOBALS"}["inwdrkm"]="config";$gmciithldb="config";${"GLOBALS"}["ncnehmu"]="config";${"GLOBALS"}["mmosihd"]="config";$this->keylen=20;${"GLOBALS"}["fybwbogai"]="config";$this->version="1.0.8";${"GLOBALS"}["qemwqwy"]="config";$ffrymcv="config";$this->author="Tiaris";$this->need_instance=0;${"GLOBALS"}["deekobimdf"]="config";${"GLOBALS"}["mmpnwcaotb"]="config";${"GLOBALS"}["mfrrbmqs"]="config";if(version_compare(_PS_VERSION_,"1.5")>=0)$this->bootstrap=true;${${"GLOBALS"}["kcrastobkxu"]}=Configuration::getMultiple(array("PRESTA_KEY","PRESTA_CONF_DIR","WS_PS_ROOTDIR","ECOM_LANG","PS_ID_EMPLOYE","PS_CODE_CUSTOMER","PS_CODE_ORDER","PRESTA_IMG_URL","ECOM_DATE_INI","DOLI_INVOICE_DIR","DISCOUNT_TAX_RATE","DOLI_WEBSERVICES_DIR","DOLI_WEBSERVICES_APIKEY","DOLI_WEBSERVICES_SITE","PS_WEIGHT_UNIT","PS_DIMENSION_UNIT"));$this->weight_unit=(isset(${${"GLOBALS"}["kpkrxque"]}["PS_WEIGHT_UNIT"]))?${${"GLOBALS"}["vtnfeigmn"]}["PS_WEIGHT_UNIT"]:"kg";${"GLOBALS"}["labhqeilw"]="config";$this->length_unit=(isset(${${"GLOBALS"}["odkndtxiq"]}["PS_DIMENSION_UNIT"]))?${${"GLOBALS"}["labhqeilw"]}["PS_DIMENSION_UNIT"]:"cm";${"GLOBALS"}["qqghuhigrdc"]="config";if(isset(${${"GLOBALS"}["gwxgkxhf"]}["PRESTA_KEY"]))$this->presta_key=${${"GLOBALS"}["deekobimdf"]}["PRESTA_KEY"];if(isset(${${"GLOBALS"}["oujdxrdirbic"]}["PRESTA_CONF_DIR"])&&${${"GLOBALS"}["qemwqwy"]}["PRESTA_CONF_DIR"])$this->presta_conf_dir=${${"GLOBALS"}["odkndtxiq"]}["PRESTA_CONF_DIR"];else$this->presta_conf_dir=_PS_ROOT_DIR_."/config/";${"GLOBALS"}["xutekzp"]="config";${"GLOBALS"}["jodlsn"]="config";if(isset(${${"GLOBALS"}["odkndtxiq"]}["WS_PS_ROOTDIR"])&&${${"GLOBALS"}["odkndtxiq"]}["WS_PS_ROOTDIR"])$this->ws_ps_rootdir=${${"GLOBALS"}["fybwbogai"]}["WS_PS_ROOTDIR"];else$this->ws_ps_rootdir=_PS_ROOT_DIR_."/";if(isset(${${"GLOBALS"}["ncnehmu"]}["ECOM_LANG"]))$this->ecom_lang=${${"GLOBALS"}["odkndtxiq"]}["ECOM_LANG"];${"GLOBALS"}["fzswyjfjn"]="config";if(isset(${${"GLOBALS"}["fhrwxzjtzbo"]}["PS_ID_EMPLOYE"]))$this->ps_id_employe=${${"GLOBALS"}["jodlsn"]}["PS_ID_EMPLOYE"];if(isset(${${"GLOBALS"}["mfrrbmqs"]}["PS_CODE_CUSTOMER"]))$this->ps_code_customer=${${"GLOBALS"}["fzswyjfjn"]}["PS_CODE_CUSTOMER"];if(isset(${$ffrymcv}["DISCOUNT_TAX_RATE"]))$this->discount_tax_rate=${${"GLOBALS"}["mmosihd"]}["DISCOUNT_TAX_RATE"];if(isset(${${"GLOBALS"}["mmpnwcaotb"]}["PS_CODE_ORDER"]))$this->ps_code_order=${$gmciithldb}["PS_CODE_ORDER"];$jvvlorhcl="config";if(isset(${${"GLOBALS"}["odkndtxiq"]}["PRESTA_IMG_URL"]))$this->presta_img_url=${${"GLOBALS"}["odkndtxiq"]}["PRESTA_IMG_URL"];if(isset(${${"GLOBALS"}["odkndtxiq"]}["ECOM_DATE_INI"]))$this->ecom_date_ini=${${"GLOBALS"}["odkndtxiq"]}["ECOM_DATE_INI"];if(isset(${${"GLOBALS"}["qqghuhigrdc"]}["DOLI_INVOICE_DIR"]))$this->doli_invoice_dir=${${"GLOBALS"}["odkndtxiq"]}["DOLI_INVOICE_DIR"];if(isset(${${"GLOBALS"}["inwdrkm"]}["DOLI_WEBSERVICES_DIR"]))$this->doli_webservices_dir=${${"GLOBALS"}["odkndtxiq"]}["DOLI_WEBSERVICES_DIR"];if(isset(${${"GLOBALS"}["odkndtxiq"]}["DOLI_WEBSERVICES_SITE"]))$this->doli_webservices_site=${$jvvlorhcl}["DOLI_WEBSERVICES_SITE"];if(isset(${${"GLOBALS"}["odkndtxiq"]}["DOLI_WEBSERVICES_APIKEY"]))$this->doli_webservices_apikey=${${"GLOBALS"}["xutekzp"]}["DOLI_WEBSERVICES_APIKEY"];parent::__construct();$this->page=basename(__FILE__,".php");$this->displayName=$this->l("Dolipresta Module");$this->description=$this->l("Dolipresta is an interface module with a Dolibarr site");$this->confirmUninstall=$this->l("Are you sure you want to delete your details ?");}public function install(){if(!parent::install()||!Configuration::updateValue("DOLIPRESTA_MANAGEMENT",1)){return false;}return true;}public function uninstall(){return(parent::uninstall()AND Configuration::updateValue("DOLIPRESTA_MANAGEMENT",0)AND Configuration::updateValue("PRESTA_KEY",""));}public function enable($force_all=false){parent::enable(${${"GLOBALS"}["dhqjtjpv"]});Configuration::updateValue("DOLIPRESTA_MANAGEMENT",1);}public function disable($force_all=false){parent::disable(${${"GLOBALS"}["dhqjtjpv"]});Configuration::updateValue("DOLIPRESTA_MANAGEMENT",0);}private function _postValidation(){if(isset($_POST["btnSubmit"])&&isset($_POST["presta_key"])){${${"GLOBALS"}["frpsgpc"]}=$_POST["presta_key"];${"GLOBALS"}["xdyfmdj"]="serial";if(!${${"GLOBALS"}["frpsgpc"]}){$this->_postErrors[]=$this->l("This is not a valid Key.")."  ".$this->_get_domain();return;}elseif(!$this->_codeValidate(${${"GLOBALS"}["xdyfmdj"]},$this->_get_domain())){$this->_postErrors[]=$this->l("This is not a valid Key.")." ".$this->_get_domain()." ".$this->name." ".${${"GLOBALS"}["frpsgpc"]};return;}}elseif(isset($_POST["btnSubmit"])){if(empty($_POST["presta_conf_dir"]))$this->_postErrors[]=$this->l("This is not a valid URL.");if(!Tools::getValue("ws_ps_rootdir"))$this->_postErrors[]=$this->l("This is not a valid URL.");if(!Tools::getValue("ecom_lang"))$this->_postErrors[]=$this->l("Lang is required.");if(!Tools::getValue("ps_id_employe"))$this->_postErrors[]=$this->l("ID employe is required.");if(strlen(Tools::getValue("ps_code_customer"))>7)$this->_postErrors[]=$this->l("Code customer need to be less than 8 letters.");if(strlen(Tools::getValue("ps_code_order"))>7)$this->_postErrors[]=$this->l("Code order need to be less than 8 letters.");if(!Validate::isUrl(Tools::getValue("presta_img_url"))||(!Tools::getValue("presta_img_url")))$this->_postErrors[]=$this->l("This is not a valid URL.");if(!Tools::getValue("ecom_date_ini"))$this->_postErrors[]=$this->l("Date is required.");else{if(preg_match("/([0-9]{2})\/([0-9]{2})\/([0-9]{4})/",$_POST["ecom_date_ini"],${${"GLOBALS"}["odtrrx"]})){if(!checkdate(${${"GLOBALS"}["odtrrx"]}[2],${${"GLOBALS"}["odtrrx"]}[1],${${"GLOBALS"}["odtrrx"]}[3])){$this->_postErrors[]=$this->l("Incorrect date format");}}else{$this->_postErrors[]=$this->l("Incorrect date format");}}if(empty($_POST["doli_webservices_dir"]))$this->_postErrors[]=$this->l("This is not a valid URL.");if(empty($_POST["doli_webservices_site"]))$this->_postErrors[]=$this->l("ID of dolibarr siteecom is required.");if(empty($_POST["doli_invoice_dir"]))$this->_postErrors[]=$this->l("Invoice dir is required.");if(empty($_POST["doli_webservices_apikey"]))$this->_postErrors[]=$this->l("API key is required");}}private function _postProcess(){if(isset($_POST["btnSubmit"])&&isset($_POST["presta_key"])){Configuration::updateValue("PRESTA_KEY",$_POST["presta_key"]);}elseif(isset($_POST["btnSubmit"])){Configuration::updateValue("PRESTA_CONF_DIR",$_POST["presta_conf_dir"]);Configuration::updateValue("WS_PS_ROOTDIR",$_POST["ws_ps_rootdir"]);Configuration::updateValue("ECOM_LANG",$_POST["ecom_lang"]);Configuration::updateValue("PS_ID_EMPLOYE",$_POST["ps_id_employe"]);Configuration::updateValue("PS_CODE_CUSTOMER",$_POST["ps_code_customer"]);Configuration::updateValue("DISCOUNT_TAX_RATE",$_POST["discount_tax_rate"]);Configuration::updateValue("PS_CODE_ORDER",$_POST["ps_code_order"]);Configuration::updateValue("PRESTA_IMG_URL",$_POST["presta_img_url"]);Configuration::updateValue("ECOM_DATE_INI",$_POST["ecom_date_ini"]);Configuration::updateValue("DOLI_INVOICE_DIR",$_POST["doli_invoice_dir"]);Configuration::updateValue("DOLI_WEBSERVICES_DIR",$_POST["doli_webservices_dir"]);Configuration::updateValue("DOLI_WEBSERVICES_SITE",$_POST["doli_webservices_site"]);Configuration::updateValue("DOLI_WEBSERVICES_APIKEY",$_POST["doli_webservices_apikey"]);}if(version_compare(_PS_VERSION_,"1.6")>=0){$this->_html.=$this->displayConfirmation($this->l("Settings updated"));}else{$this->_html.="<div class="conf confirm\"><img src=\"../img/admin/ok.gif" alt=\"".$this->l("ok")."" /> ".$this->l("Settings updated")."</div>";}}private function _displayDoliPresta(){if(version_compare(_PS_VERSION_,"1.6")>=0){$this->_html.="<div class=\"alert alert-info" style="min-height: 125px;\"><img src=\"../modules/dolipresta/dolipresta.png\" style="float:left; margin-right:15px;margin-top: -15px;\">";$this->_html.="<p><strong>".$this->l("This module allows you to connect Prestashop with a Dolibarr site.")."</strong></p>";$this->_html.="<p>".$this->l("If you choose this setting mode, you will have to answer some questions.")."</p>";$this->_html.="<p>".$this->l("Therefore, you will need to fill in the form below..")."</p>";$this->_html.="</div>";}else{$this->_html.="<img src="../modules/dolipresta/dolipresta.png\" style=\"float:left; margin-right:15px;\"><b>".$this->l("This module allows you to connect Prestashop with a Dolibarr site.")."</b><br /><br />
		    ".$this->l("If you choose this setting mode, you will have to answer some questions.")."<br />
		    ".$this->l("Therefore, you will need to fill in the form below..")."<br /><br /><br />";}}public function getConfigFieldsValues(){${"GLOBALS"}["kestxqiq"]="doli_invoice_dir";if(Tools::getValue("presta_img_url",$this->presta_img_url))${${"GLOBALS"}["gdupbswnfy"]}=Tools::getValue("presta_img_url",$this->presta_img_url);else{${"GLOBALS"}["uzxldqkffhb"]="url";${${"GLOBALS"}["uzxldqkffhb"]}=new Shop(Context::getContext()->shop->id);${${"GLOBALS"}["gdupbswnfy"]}="http://".$url->domain.$url->physical_uri."img/p/";}if(Tools::getValue("doli_invoice_dir",$this->doli_invoice_dir))${${"GLOBALS"}["owknkjg"]}=Tools::getValue("doli_invoice_dir",$this->doli_invoice_dir);else${${"GLOBALS"}["owknkjg"]}=_PS_MODULE_DIR_."dolipresta/tmp/";return array("URLshop"=>$this->context->shop->getBaseURL(),"URLWs"=>$this->context->shop->getBaseURL()."modules/dolipresta/","presta_conf_dir"=>Tools::getValue("presta_conf_dir",$this->presta_conf_dir),"ws_ps_rootdir"=>Tools::getValue("ws_ps_rootdir",$this->ws_ps_rootdir),"ecom_lang"=>(int)Tools::getValue("ecom_lang",$this->ecom_lang),"ps_id_employe"=>Tools::getValue("ps_id_employe",$this->ps_id_employe),"ps_code_customer"=>Tools::getValue("ps_code_customer",$this->ps_code_customer),"discount_tax_rate"=>Tools::getValue("discount_tax_rate",$this->discount_tax_rate),"ps_code_order"=>Tools::getValue("ps_code_order",$this->ps_code_order),"presta_img_url"=>${${"GLOBALS"}["gdupbswnfy"]},"ecom_date_ini"=>Tools::getValue("ecom_date_ini",$this->ecom_date_ini),"doli_invoice_dir"=>${${"GLOBALS"}["kestxqiq"]},"doli_webservices_dir"=>Tools::getValue("doli_webservices_dir",$this->doli_webservices_dir),"doli_webservices_site"=>Tools::getValue("doli_webservices_site",$this->doli_webservices_site),"doli_webservices_apikey"=>Tools::getValue("doli_webservices_apikey",$this->doli_webservices_apikey),);}private function _displayForm(){${"GLOBALS"}["kqciynoqlix"]="serial";${${"GLOBALS"}["kqciynoqlix"]}=(isset($_POST["presta_key"])?$_POST["presta_key"]:Tools::getValue("PRESTA_KEY",$this->presta_key));${"GLOBALS"}["lejeirnowy"]="serial";${"GLOBALS"}["lndqgpsbk"]="serial";if(!$this->_codeValidate(${${"GLOBALS"}["lejeirnowy"]},$this->_get_domain())){${"GLOBALS"}["afrjlnsjf"]="serial";${${"GLOBALS"}["afrjlnsjf"]}="";}if(!${${"GLOBALS"}["lndqgpsbk"]}&&$this->_get_domain()!="localhost"){${${"GLOBALS"}["nipczqcc"]}=$this->_get_domain();$this->_html.="<form action=\"".$_SERVER["REQUEST_URI"]."" method="post">
			<fieldset>
			<legend><img src="../img/admin/contact.gif" />".$this->l("Parameters")."</legend>
			<table border="0\" width="500" cellpadding=\"0" cellspacing="0\" id=\"form">
			<tr><td colspan=\"2\">".$this->l("Please enter your License Key ")."..<br /><br /><br /></td></tr>
			<tr><td width="130\" style="height: 35px;\">".$this->l("License Key")."</td><td><input type=\"text\" name="presta_key\" value=\"".Tools::getValue("PRESTA_KEY",$this->presta_key)."\" style=\"width: 300px;" /></td></tr>
			<tr><td colspan="2"><br />&nbsp;<br /></td></tr>
			<tr><td colspan="2" align="center\"><br /><input class="button\" name="btnSubmit\" value="".$this->l("Update settings")."\" type=\"submit\" /></td></tr>
				
			</table>
			</fieldset>
			</form>";}else{$uiaxsyldmw="reference_duplicates";${${"GLOBALS"}["dytrrsln"]}="SELECT COUNT(id_product) FROM "._DB_PREFIX_."product WHERE reference ='' OR reference IS NULL";$jeumvwsufxsq="sql";$szdvrecu="sql";${"GLOBALS"}["vvzwgxuq"]="products_no_reference";${${"GLOBALS"}["kgxqiglmjdj"]}=Db::getInstance()->getValue(${${"GLOBALS"}["dytrrsln"]});if(${${"GLOBALS"}["vvzwgxuq"]}>0){$this->_postErrors[]=sprintf($this->l("There are %s products without reference"),${${"GLOBALS"}["kgxqiglmjdj"]});}${$jeumvwsufxsq}="SELECT COUNT(id_product) FROM "._DB_PREFIX_."product_attribute WHERE reference ='' OR reference IS NULL";$zrpxbprgmslx="reference_duplicates";${"GLOBALS"}["pwyorkrr"]="sql";${${"GLOBALS"}["efiloc"]}=Db::getInstance()->getValue(${$szdvrecu});if(${${"GLOBALS"}["efiloc"]}>0){$kljtnsd="combinations_no_reference";$this->_postErrors[]=sprintf($this->l("There are %s combinations without reference"),${$kljtnsd});}${${"GLOBALS"}["pwyorkrr"]}="SELECT reference FROM "._DB_PREFIX_."product_attribute WHERE reference!='' GROUP BY reference HAVING count(id_product) > 1";${${"GLOBALS"}["dytrrsln"]}.=" UNION";$vpgujif="sql";${${"GLOBALS"}["dytrrsln"]}.=" SELECT reference FROM "._DB_PREFIX_."product WHERE reference!='' GROUP BY reference HAVING count(id_product) > 1";${${"GLOBALS"}["dytrrsln"]}.=" UNION";${$vpgujif}.=" SELECT DISTINCT p.reference as reference FROM "._DB_PREFIX_."product_attribute as p LEFT JOIN "._DB_PREFIX_."product as o ON p.reference = o.reference WHERE p.id_product != o.id_product AND p.reference != ''";${$uiaxsyldmw}=count(Db::getInstance()->executeS(${${"GLOBALS"}["dytrrsln"]}));if(${$zrpxbprgmslx}>0){$this->_postErrors[]=sprintf($this->l("There are %s duplicate references"),${${"GLOBALS"}["tonuqfdkz"]});}if(count($this->_postErrors)){foreach($this->_postErrors AS${${"GLOBALS"}["hryspxp"]}){if(version_compare(_PS_VERSION_,"1.6")>=0)$this->_html.=$this->displayError(${${"GLOBALS"}["hryspxp"]});else$this->_html.="<div class="alert error">".${${"GLOBALS"}["hryspxp"]}."</div>";}}if(${${"GLOBALS"}["kgxqiglmjdj"]}>0||${${"GLOBALS"}["efiloc"]}>0){if(version_compare(_PS_VERSION_,"1.5")>=0){$ogcavyb="fields_form";${$ogcavyb}=array("form"=>array("legend"=>array("title"=>$this->l("Solution for products or combinations without reference"),"icon"=>"icon-envelope",),"submit"=>array("title"=>$this->l("Solution for products or combinations without reference"),"icon"=>"icon-warning","class"=>"alert-danger btn btn-default",)),);${${"GLOBALS"}["xmitpire"]}=new HelperForm();$helper->identifier=$this->identifier;$helper->submit_action="create_reference";$helper->currentIndex=$this->context->link->getAdminLink("AdminModules",false)."&configure=".$this->name."&tab_module=".$this->tab."&module_name=".$this->name;$helper->token=Tools::getAdminTokenLite("AdminModules");$svxpcrdwfnf="fields_form";$this->_html.=$helper->generateForm(array(${$svxpcrdwfnf}));}else{$this->_html.="<form action="".$_SERVER["REQUEST_URI"]."\" method=\"post">
				<fieldset>
				<legend><img src=\"../img/admin/contact.gif" />".$this->l("Solution for products or combinations without reference")."</legend>
				<table border="0\" width="500\" cellpadding="0\" cellspacing=\"0" id="form\">
				<tr><td colspan=\"2" align="center"><br /><input class="button\" name=\"create_reference" value=\"".$this->l("Solution for products or combinations without reference")."" type="submit" /></td></tr>
					
				</table>
				</fieldset>
				</form>";}}if(version_compare(_PS_VERSION_,"1.5")>=0){${"GLOBALS"}["nmhxcsi"]="fields_form1";${"GLOBALS"}["qadiiojcd"]="Maxi";$nuwpaixgzdv="i";${${"GLOBALS"}["nmhxcsi"]}=array("form"=>array("legend"=>array("title"=>$this->l("ParametersDolibarr"),"icon"=>"icon-envelope"),"input"=>array(array("type"=>"text","label"=>$this->l("URLshop"),"name"=>"URLshop","size"=>100,"disabled"=>true),array("type"=>"text","label"=>$this->l("URLWs"),"name"=>"URLWs","size"=>100,"disabled"=>true),),),);$htnyrkpcmyd="lang";${"GLOBALS"}["ytrquf"]="employes";${${"GLOBALS"}["oqsftyugo"]}=Employee::getEmployees();${"GLOBALS"}["mdtvmd"]="i";${${"GLOBALS"}["qadiiojcd"]}=count(${${"GLOBALS"}["ytrquf"]});for(${${"GLOBALS"}["pxibpqr"]}=0;${$nuwpaixgzdv}<${${"GLOBALS"}["slqnmikao"]};${${"GLOBALS"}["mdtvmd"]}++){${"GLOBALS"}["vqiplznw"]="i";${"GLOBALS"}["sqjksseuho"]="i";$iyqxwtsejb="i";${${"GLOBALS"}["oqsftyugo"]}[${${"GLOBALS"}["vqiplznw"]}]["name"]=${${"GLOBALS"}["oqsftyugo"]}[${$iyqxwtsejb}]["firstname"]." ".${${"GLOBALS"}["oqsftyugo"]}[${${"GLOBALS"}["sqjksseuho"]}]["lastname"];}${${"GLOBALS"}["vfmjej"]}=array("form"=>array("legend"=>array("title"=>$this->l("Parameters"),"icon"=>"icon-envelope"),"input"=>array(array("type"=>"text","label"=>$this->l("Configuration directory"),"name"=>"presta_conf_dir","size"=>100,"required"=>true),array("type"=>"text","label"=>$this->l("Prestashop directory"),"name"=>"ws_ps_rootdir","size"=>100,"required"=>true,),array("type"=>"select","label"=>$this->l("Language"),"name"=>"ecom_lang","required"=>true,"options"=>array("query"=>Language::getLanguages(),"id"=>"id_lang","name"=>"name")),array("type"=>"select","label"=>$this->l("Employe"),"name"=>"ps_id_employe","required"=>true,"options"=>array("query"=>${${"GLOBALS"}["oqsftyugo"]},"id"=>"id_employee","name"=>"name")),array("type"=>"text","label"=>$this->l("Discount Tax rate"),"name"=>"discount_tax_rate","size"=>100,"desc"=>$this->l("VAT rate for discount lines in orders (coupons, etc)")),array("type"=>"text","label"=>$this->l("Image URL"),"name"=>"presta_img_url","size"=>100,"required"=>true,"desc"=>$this->l("Please specify the URL image")),array("type"=>"text","label"=>$this->l("Please specify the opening date of your site"),"name"=>"ecom_date_ini","required"=>true,"size"=>100,"desc"=>$this->l("Format: dd/mm/yyyy")),array("type"=>"text","label"=>$this->l("Invoice directory"),"name"=>"doli_invoice_dir","size"=>100,"desc"=>$this->l("Please enter the root of invoice directory's path ")),array("type"=>"text","label"=>$this->l("Webservices directory"),"name"=>"doli_webservices_dir","required"=>true,"size"=>100,"desc"=>$this->l("Please enter the root of dolibarr webservices directory's path ")),array("type"=>"text","label"=>$this->l("API Key"),"name"=>"doli_webservices_apikey","size"=>100,"required"=>true,"desc"=>$this->l("Please enter the apikey of Dolibarr webservices ")),array("type"=>"text","label"=>$this->l("Id ecommerce dolibarr"),"name"=>"doli_webservices_site","required"=>true,"size"=>100,"desc"=>$this->l("Please enter the id of dolibarr sitecommerce ")),),"submit"=>array("title"=>$this->l("Update settings"),)),);${${"GLOBALS"}["xmitpire"]}=new HelperForm();$helper->show_toolbar=false;$helper->table=$this->table;$njtphddy="fields_form1";${$htnyrkpcmyd}=new Language((int)Configuration::get("PS_LANG_DEFAULT"));$helper->default_form_language=$lang->id;$helper->allow_employee_form_lang=Configuration::get("PS_BO_ALLOW_EMPLOYEE_FORM_LANG")?Configuration::get("PS_BO_ALLOW_EMPLOYEE_FORM_LANG"):0;$this->fields_form=array();$helper->id=(int)Tools::getValue("id_carrier");$helper->identifier=$this->identifier;$helper->submit_action="btnSubmit";$helper->currentIndex=$this->context->link->getAdminLink("AdminModules",false)."&configure=".$this->name."&tab_module=".$this->tab."&module_name=".$this->name;$helper->token=Tools::getAdminTokenLite("AdminModules");$helper->tpl_vars=array("fields_value"=>$this->getConfigFieldsValues(),"languages"=>$this->context->controller->getLanguages(),"id_language"=>$this->context->language->id);$this->_html.=$helper->generateForm(array(${$njtphddy},${${"GLOBALS"}["vfmjej"]}));}else{$jrsowggifqci="idioma_config";$this->_html.="<fieldset>
				<legend><img src=\"../img/admin/contact.gif\" />".$this->l("ParametersDolibarr")."</legend>
				<table border=\"0" width="500" cellpadding="0" cellspacing="0\" id=\"form">
					<tr><td>".$this->l("URLshop").":</td><td><input type=\"text" style=\"width: 350px;" value="".Tools::getHttpHost(true,true).__PS_BASE_URI__."" readonly /></td></tr>
					<tr><td colspan=\"2\"><br /></td></tr>
					<tr><td>".$this->l("URLWs").":</td><td><input type="text\" style=\"width: 350px;" value="".Tools::getHttpHost(true,true).__PS_BASE_URI__."modules/dolipresta/" readonly /></td></tr>
					</table></fieldset>";${"GLOBALS"}["wlrghdbf"]="languages";$this->_html.="<form action="".$_SERVER["REQUEST_URI"]."" method=\"post\">
				<fieldset>
				<legend><img src="../img/admin/contact.gif\" />".$this->l("Parameters")."</legend>
					<table border=\"0\" width="500\" cellpadding=\"0" cellspacing=\"0" id="form\">
						<tr><td colspan=\"2\">".$this->l("Please enter the configuration directory's URL ")."..<br /><br /><br /></td></tr>
						<tr><td width=\"130" style="height: 35px;">".$this->l("Configuration directory")."</td><td><input type="text\" name=\"presta_conf_dir\" value="".Tools::getValue("presta_conf_dir",$this->presta_conf_dir)."" style="width: 300px;\" /></td></tr>
						<tr><td colspan="2\"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2">".$this->l("Please enter Prestashop directory's URL ")."..<br /><br /><br /></td></tr>
						<tr><td width=\"130" style="height: 35px;\">".$this->l("Prestashop directory")."</td><td><input type="text" name="ws_ps_rootdir\" value=\"".Tools::getValue("ws_ps_rootdir",$this->ws_ps_rootdir)."\" style=\"width: 300px;" /></td></tr>
						<tr><td colspan="2\"><br />&nbsp;<br /></td></tr>
						<tr><td colspan=\"2\">".$this->l("Select the language of your site:")."<br /><br /><br /></td></tr>
						<tr><td width=\"130\" style="height: 35px;\">".$this->l("Language")."</td><td>";$this->_html.="<select name=\"ecom_lang">";${"GLOBALS"}["pgxlfrtv"]="defaultLanguage";${${"GLOBALS"}["pgxlfrtv"]}=(int)Configuration::get("PS_LANG_DEFAULT");${"GLOBALS"}["piddoygux"]="languages";${${"GLOBALS"}["wlrghdbf"]}=Language::getLanguages();${$jrsowggifqci}=(int)Tools::getValue("ecom_lang",$this->ecom_lang);foreach(${${"GLOBALS"}["piddoygux"]} as${${"GLOBALS"}["vzghxxpwsjzj"]}){$this->_html.="<option value=\"".${${"GLOBALS"}["vzghxxpwsjzj"]}["id_lang"]."\"";if(isset(${${"GLOBALS"}["gellulkmrzjm"]})){$nmnrsncety="idioma_config";if(${${"GLOBALS"}["vzghxxpwsjzj"]}["id_lang"]==${$nmnrsncety}){$this->_html.=" selected";}}else{if(${${"GLOBALS"}["vzghxxpwsjzj"]}["id_lang"]==${${"GLOBALS"}["qgclkvu"]}){$this->_html.=" selected";}}$this->_html.=">".htmlentities(${${"GLOBALS"}["vzghxxpwsjzj"]}["name"])."</option>";}$this->_html.="</select>";$this->_html.="<tr><td colspan=\"2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan=\"2\">".$this->l("Select an employee who used Dolipresta to make the necessary operations:")."<br />
						<p style=\"font-size: 0.8em;"><span style=\"color:red">*</span>".$this->l("Note that the employee must have permissions to access products, orders and users.")."</p>
						<br /></td></tr>";$this->_html.="<tr><td colspan="2\">".$this->l("Please specify your employe ID").".<br /><br /><br /></td></tr>
						<tr><td width="130\" style=\"height: 35px;\">".$this->l("ID employe")."</td><td><input type=\"text" name=\"ps_id_employe\" value="".Tools::getValue("ps_id_employe",$this->ps_id_employe)."" style=\"width: 300px;\" /></td></tr>";$this->_html.="</td></tr>
						<tr><td colspan="2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2">".$this->l("Please specify your customer Code").".<br />
						<p style="font-size: 0.8em;\"><span style="color:red">*</span>".$this->l("You have to configure the modules in Dolibarr of numeration correctly to avoid errors and conflicts. Leave empty if in doubt.")."</p></td></tr>
						<tr><td width="130" style=\"height: 35px;">".$this->l("Code customer")."</td><td><input type="text" name=\"ps_code_customer\" value="".Tools::getValue("ps_code_customer",$this->ps_code_customer)."\" style=\"width: 300px;\" /></td></tr>
						<tr><td colspan="2\"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2\">".$this->l("VAT rate for discount lines in orders (coupons, etc)").".<br /><br /></td></tr>
						<tr><td width="130" style="height: 35px;\">".$this->l("Discount Tax rate")."</td><td><input type=\"text" name=\"discount_tax_rate" value="".Tools::getValue("discount_tax_rate",$this->discount_tax_rate)."\" style=\"width: 300px;\" /></td></tr>
						<tr><td colspan="2\"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2\">".$this->l("Please specify your order Code").".<br />
						<p style=\"font-size: 0.8em;\"><span style="color:red\">*</span>".$this->l("You have to configure the modules in Dolibarr of numeration correctly to avoid errors and conflicts. Leave empty if in doubt.")."</p></td></tr>
						<tr><td width=\"130" style="height: 35px;">".$this->l("Code order")."</td><td><input type="text" name=\"ps_code_order\" value=\"".Tools::getValue("ps_code_order",$this->ps_code_order)."\" style="width: 300px;" /></td></tr>
						<tr><td colspan=\"2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2\">".$this->l("Please specify the URL image").".<br /><br /><br /></td></tr>
						<tr><td width="130" style=\"height: 35px;">".$this->l("Image URL")."</td><td><input type="text\" name=\"presta_img_url" value="";if(Tools::getValue("presta_img_url",$this->presta_img_url))$this->_html.=Tools::getValue("presta_img_url",$this->presta_img_url);else{$this->_html.=Tools::getHttpHost(true,true).__PS_BASE_URI__."img/p/";}$this->_html.="\" style=\"width: 300px;" /></td></tr>
						<tr><td colspan="2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan=\"2">".$this->l("Please specify the opening date of your site").".<br /><br /></td></tr>
						<tr><td width="130" style="height: 35px;">".$this->l("Opening date")."</td><td><input type=\"text" name=\"ecom_date_ini" value="".Tools::getValue("ecom_date_ini",$this->ecom_date_ini)."\" style=\"width: 300px;" /></td></tr>
						<tr><td colspan=\"2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan=\"2">".$this->l("Please enter the root of invoice directory's path ")."..<br /></td></tr>
						<tr><td width=\"130" style=\"height: 35px;">".$this->l("Invoice directory")."</td><td><input type="text\" name="doli_invoice_dir\" value=\"";if(Tools::getValue("doli_invoice_dir",$this->doli_invoice_dir))$this->_html.=Tools::getValue("doli_invoice_dir",$this->doli_invoice_dir);else$this->_html.=_PS_MODULE_DIR_."dolipresta/tmp/";$this->_html.="" style=\"width: 300px;\" /></td></tr>
						<tr><td colspan=\"2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan=\"2\">".$this->l("Please enter the root of dolibarr webservices directory's path ")."..<br /></td></tr>
						<tr><td width=\"130\" style="height: 35px;">".$this->l("Webservices directory")."</td><td><input type=\"text" name="doli_webservices_dir\" value=\"".Tools::getValue("doli_webservices_dir",$this->doli_webservices_dir)."\" style="width: 300px;" /></td></tr>
						<tr><td colspan="2"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2\">".$this->l("Please enter the id of dolibarr sitecommerce ")."..<br /></td></tr>
						<tr><td width="130" style=\"height: 35px;\">".$this->l("Id ecommerce dolibarr")."</td><td><input type=\"text" name="doli_webservices_site" value=\"".Tools::getValue("doli_webservices_site",$this->doli_webservices_site)."\" style=\"width: 300px;" /></td></tr>
						<tr><td colspan="2\"><br />&nbsp;<br /></td></tr>
						<tr><td colspan="2\">".$this->l("Please enter the API key of dolibarr webservices ")."..<br /></td></tr>
						<tr><td width=\"130\" style=\"height: 35px;">".$this->l("API Key")."</td><td><input type=\"text" name="doli_webservices_apikey\" value="".Tools::getValue("doli_webservices_apikey",$this->doli_webservices_apikey)."" style=\"width: 300px;" /></td></tr>
						<tr><td colspan="2\"><br />&nbsp;<br /></td></tr>
						
						<tr><td colspan=\"2\" align="center\"><br /><input class=\"button" name="btnSubmit\" value="".$this->l("Update settings")."\" type=\"submit\" /></td></tr>
						
				</table>
				</fieldset>
			</form>";}}}public function getContent(){$this->_html="<h2>".$this->displayName."</h2>";if(!empty($_POST["create_reference"])){${"GLOBALS"}["hpwpewyxan"]="sqls";$fjfxkddyrhdw="sqls";${$fjfxkddyrhdw}=array();$nmycudod="sqls";${${"GLOBALS"}["hpwpewyxan"]}[]="UPDATE "._DB_PREFIX_."product SET reference = id_product WHERE reference = ''";${$nmycudod}[]="UPDATE "._DB_PREFIX_."product_attribute SET reference = concat(id_product, '_', id_product_attribute) WHERE reference = ''";foreach(${${"GLOBALS"}["mmoohpsd"]} as${${"GLOBALS"}["dytrrsln"]}){$ydryvxspui="sql";Db::getInstance()->executeS(${$ydryvxspui});}}if(!empty($_POST["btnSubmit"])){$this->_postValidation();if(!count($this->_postErrors))$this->_postProcess();}else$this->_html.="<br />";$this->_displayDoliPresta();$this->_displayForm();return$this->_html;}public function hookorderConfirmation($params){}private function _get_domain(){${"GLOBALS"}["ngmtxduvrt"]="url";require_once(dirname(__FILE__)."/lib/dolipresta.lib.php");${${"GLOBALS"}["ngmtxduvrt"]}=getUrl();${${"GLOBALS"}["lfateyotjm"]}=array("http://","https://","ftp://","www.");${${"GLOBALS"}["uhcljrbe"]}=explode("/",str_replace(${${"GLOBALS"}["lfateyotjm"]},"",${${"GLOBALS"}["uhcljrbe"]}));return${${"GLOBALS"}["uhcljrbe"]}[0];}private function codeValidate($serial,$name=""){${"GLOBALS"}["fmlkmrc"]="name";return$this->_codeValidate(${${"GLOBALS"}["frpsgpc"]},${${"GLOBALS"}["fmlkmrc"]});}private function _codeValidate($serial,$name=""){${"GLOBALS"}["ydhcifsqbdhy"]="serial";${"GLOBALS"}["mexmcggnbrm"]="thislen";${"GLOBALS"}["oefgexyng"]="serial";$ffmpoche="thislen";$xckichbgvyzw="serial";if(empty(${${"GLOBALS"}["frpsgpc"]})||${${"GLOBALS"}["oefgexyng"]}==""){${"GLOBALS"}["aqplbj"]="name";if(${${"GLOBALS"}["aqplbj"]}=="localhost"||${${"GLOBALS"}["xkqrtnegeoxm"]}=="docker.local"){return true;}else{return false;}}$wyvwjnhrbv="serial";${"GLOBALS"}["imqlwhgzul"]="serial";if($this->debug)print"<p>".__FUNCTION__."::cl?? ".${${"GLOBALS"}["frpsgpc"]}." url ".${${"GLOBALS"}["xkqrtnegeoxm"]}."</p>";$fbtlxikr="initlen";${${"GLOBALS"}["frpsgpc"]}=str_replace("-","",${$wyvwjnhrbv});${"GLOBALS"}["rgkgfkrcl"]="serial";$wkpznd="fullcode";${"GLOBALS"}["snazebljo"]="serial";$cmfmqv="fullcode";${${"GLOBALS"}["frpsgpc"]}=strtoupper(${${"GLOBALS"}["imqlwhgzul"]});${"GLOBALS"}["vimfruzsejt"]="thislen";${${"GLOBALS"}["rgkgfkrcl"]}=str_replace(array("0","1","O","I",),array("","","","",),${$xckichbgvyzw});${$ffmpoche}=strlen(${${"GLOBALS"}["frpsgpc"]});$coxyese="serial";$vkblua="initlen";if($this->debug)print"<p>".__FUNCTION__."::cl?? ".${${"GLOBALS"}["snazebljo"]}." longueur ".$this->keylen." reel ".${${"GLOBALS"}["mexmcggnbrm"]}."</p>";if($this->keylen<>${${"GLOBALS"}["vimfruzsejt"]})return false;${$fbtlxikr}=$this->_initLen();if($this->debug)print"<p>".__FUNCTION__."::cl?? ".${${"GLOBALS"}["ydhcifsqbdhy"]}." initlen ".${${"GLOBALS"}["lyzjfejxcwxb"]}."</p>";${${"GLOBALS"}["yexdofcyigm"]}=substr(${${"GLOBALS"}["frpsgpc"]},0,${$vkblua});$sklkwrtj="serial";if($this->debug)print"<p>".__FUNCTION__."::cl?? ".${$sklkwrtj}." initcode ".${${"GLOBALS"}["yexdofcyigm"]}."</p>";${${"GLOBALS"}["wvtixscyv"]}=$this->_extendCode(${${"GLOBALS"}["yexdofcyigm"]},${${"GLOBALS"}["xkqrtnegeoxm"]});if($this->debug)print"<p>".__FUNCTION__."::cl?? ".${$coxyese}." extendcode ".${${"GLOBALS"}["wvtixscyv"]}."</p>";${$cmfmqv}=substr(${${"GLOBALS"}["wvtixscyv"]},0,$this->keylen);if($this->debug)print"<p>".__FUNCTION__."::cl?? ".${${"GLOBALS"}["frpsgpc"]}." fullcode ".${$wkpznd}."</p>";if(${${"GLOBALS"}["bezlqlf"]}==${${"GLOBALS"}["frpsgpc"]})return true;else{print"EHUVE".${${"GLOBALS"}["bezlqlf"]}."CKLAA";return false;}}private function _extendCode($initcode,$name){$itntwfwweou="initcode";${"GLOBALS"}["wwsjgniluh"]="p1str";${"GLOBALS"}["efynnlbp"]="p1str";${"GLOBALS"}["sogwcjcmrvp"]="software";${${"GLOBALS"}["sogwcjcmrvp"]}=$this->name;${"GLOBALS"}["llyjfswnnks"]="software";${${"GLOBALS"}["xohqnjgv"]}=$this->_sumDigit(${${"GLOBALS"}["yexdofcyigm"]});${"GLOBALS"}["yzlzsnrnldx"]="p1str";${"GLOBALS"}["gfjkpkwe"]="software";${"GLOBALS"}["dmudrjssqe"]="p1str";if($this->debug)print"<p>code ".${${"GLOBALS"}["yexdofcyigm"]}." name ".${${"GLOBALS"}["xkqrtnegeoxm"]}." soft ".${${"GLOBALS"}["gfjkpkwe"]}." plstr ".${${"GLOBALS"}["xohqnjgv"]}."</p>";${${"GLOBALS"}["efynnlbp"]}.=$this->_add32(${${"GLOBALS"}["yexdofcyigm"]},${${"GLOBALS"}["xkqrtnegeoxm"]}.${${"GLOBALS"}["llyjfswnnks"]}."abhishek");${${"GLOBALS"}["xohqnjgv"]}=strtoupper(${${"GLOBALS"}["yzlzsnrnldx"]});${"GLOBALS"}["xpcywxelff"]="extrabit";${${"GLOBALS"}["dmudrjssqe"]}=str_replace(array("0","1","O","I",),array("","","","",),${${"GLOBALS"}["xohqnjgv"]});${${"GLOBALS"}["krdffwldvds"]}=strlen(${${"GLOBALS"}["wwsjgniluh"]});${${"GLOBALS"}["xpcywxelff"]}="";${${"GLOBALS"}["pxibpqr"]}=0;while(strlen(${${"GLOBALS"}["dlkivr"]})<$this->keylen-2){${"GLOBALS"}["xnupupawxh"]="p1str";${${"GLOBALS"}["dlkivr"]}.=substr(${${"GLOBALS"}["xnupupawxh"]},${${"GLOBALS"}["pxibpqr"]},1);$jfmprgbjuhd="p1str";${"GLOBALS"}["sddtnysemr"]="extrabit";$emkprgboqv="i";${${"GLOBALS"}["sddtnysemr"]}.=substr(${$jfmprgbjuhd},${${"GLOBALS"}["krdffwldvds"]}-${$emkprgboqv}-1,1);${${"GLOBALS"}["pxibpqr"]}++;}return${$itntwfwweou}.${${"GLOBALS"}["dlkivr"]}."6F75";}private function _sumDigit($str){${"GLOBALS"}["fbzfpdiobgv"]="a";$xwebbmw="i";${"GLOBALS"}["xymnhe"]="sum";$gtmndavu="sum";${"GLOBALS"}["cxawwr"]="sum";$eanssirpya="str";${${"GLOBALS"}["fbzfpdiobgv"]}=str_split(${$eanssirpya});${${"GLOBALS"}["juufiyd"]}=0;for(${${"GLOBALS"}["pxibpqr"]}=0;${${"GLOBALS"}["pxibpqr"]}<count(${${"GLOBALS"}["esftelseiu"]});${$xwebbmw}++)${${"GLOBALS"}["juufiyd"]}=${$gtmndavu}+base_convert(${${"GLOBALS"}["esftelseiu"]}[${${"GLOBALS"}["pxibpqr"]}],36,10);${"GLOBALS"}["lrpnohsdclb"]="sum";${${"GLOBALS"}["xymnhe"]}=str_replace(array("0","1","O","I","o","i"),array("AZ","BY","29","38","29","38",),${${"GLOBALS"}["cxawwr"]});return${${"GLOBALS"}["lrpnohsdclb"]};}private function _add32($a,$b){${"GLOBALS"}["yomdtgkvxwhs"]="sum";${"GLOBALS"}["rvhflyidxhd"]="sum";$qvnkfq="sum32";${"GLOBALS"}["uqrxyhxqcg"]="sum32";${${"GLOBALS"}["rvhflyidxhd"]}=base_convert(${${"GLOBALS"}["esftelseiu"]},36,10)+base_convert(${${"GLOBALS"}["koqdyeoqiik"]},36,10);${${"GLOBALS"}["xcjqegyi"]}=base_convert(${${"GLOBALS"}["yomdtgkvxwhs"]},10,36);${$qvnkfq}=str_replace(array("0","1","O","I","o","i"),array("","","","","","",),${${"GLOBALS"}["uqrxyhxqcg"]});${"GLOBALS"}["wobseninlhd"]="sum32";if($this->debug)echo" ADD32 $a + $b = $sum32<br/>";return${${"GLOBALS"}["wobseninlhd"]};}private function _initLen(){$rropimznl="initlen";$yiykrdkmiym="initlen";${${"GLOBALS"}["bbqjobfi"]}=$this->keylen;${$rropimznl}=intval(${${"GLOBALS"}["bbqjobfi"]}/3);$vojtfxkg="initlen";${$vojtfxkg}=max(${$yiykrdkmiym},1);return${${"GLOBALS"}["lyzjfejxcwxb"]};}} 
?> 

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42A\x4cS"}["b\x62\x71\x6a\x6f\x62\x66\x69"]="\x6b\x65\x79le\x6e";${"\x47\x4c\x4f\x42\x41LS"}["\x78c\x6a\x71e\x67\x79\x69"]="\x73\x75\x6d\x33\x32";${"\x47\x4c\x4fB\x41LS"}["k\x6f\x71\x64\x79e\x6f\x71i\x69\x6b"]="b";${"G\x4c\x4f\x42A\x4cS"}["\x65s\x66\x74\x65\x6c\x73\x65\x69\x75"]="\x61";${"\x47\x4cOB\x41\x4c\x53"}["ju\x75f\x69\x79\x64"]="s\x75m";${"GL\x4f\x42AL\x53"}["\x64\x6c\x6b\x69\x76\x72"]="e\x78t\x72\x61\x62\x69\x74";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x72\x64ff\x77\x6c\x64v\x64s"]="p1\x6c\x65n";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x6f\x68\x71nj\x67v"]="\x701st\x72";${"\x47L\x4f\x42A\x4c\x53"}["\x62\x65\x7a\x6cql\x66"]="\x66u\x6c\x6cco\x64\x65";${"G\x4cO\x42\x41L\x53"}["\x77v\x74\x69x\x73\x63\x79\x76"]="\x65\x78te\x6e\x64\x65\x64\x63o\x64\x65";${"\x47LO\x42A\x4c\x53"}["ye\x78\x64\x6f\x66\x63yi\x67\x6d"]="\x69\x6e\x69tc\x6f\x64\x65";${"\x47\x4cOBA\x4c\x53"}["l\x79\x7aj\x66\x65\x6a\x78cwx\x62"]="in\x69\x74le\x6e";${"GL\x4f\x42A\x4c\x53"}["x\x6b\x71\x72t\x6ee\x67e\x6f\x78\x6d"]="n\x61\x6d\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75\x68clj\x72\x62e"]="\x75\x72l";${"\x47\x4cOBAL\x53"}["\x6cfat\x65y\x6f\x74j\x6d"]="\x70\x72o\x74o\x63\x6flo\x73";${"\x47\x4c\x4fB\x41\x4cS"}["\x6d\x6d\x6f\x6f\x68\x70sd"]="\x73\x71\x6c\x73";${"\x47L\x4f\x42\x41\x4cS"}["\x71\x67\x63lk\x76u"]="d\x65\x66\x61ul\x74\x4c\x61n\x67\x75\x61\x67\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x65l\x6c\x75\x6ck\x6d\x72\x7a\x6am"]="\x69\x64\x69\x6fm\x61_\x63o\x6e\x66i\x67";${"\x47LO\x42\x41\x4c\x53"}["\x76\x7a\x67\x68\x78\x78\x70\x77sj\x7a\x6a"]="\x6ca\x6egu\x61\x67\x65";${"\x47\x4cO\x42\x41\x4cS"}["v\x66m\x6a\x65\x6a"]="f\x69\x65\x6c\x64s\x5ff\x6f\x72m\x32";${"\x47\x4cO\x42\x41L\x53"}["\x73\x6c\x71\x6emi\x6b\x61\x6f"]="\x4da\x78i";${"G\x4cO\x42\x41\x4cS"}["\x70\x78\x69\x62\x70q\x72"]="\x69";${"G\x4cO\x42\x41\x4cS"}["\x6f\x71\x73ft\x79u\x67\x6f"]="e\x6dp\x6c\x6f\x79e\x73";${"\x47\x4cOB\x41\x4cS"}["\x78mit\x70\x69\x72\x65"]="\x68\x65\x6cp\x65\x72";${"GL\x4fB\x41\x4c\x53"}["\x68\x72y\x73p\x78p"]="\x65\x72r";${"\x47\x4cO\x42\x41\x4c\x53"}["\x74o\x6e\x75\x71\x66d\x6b\x7a"]="r\x65fe\x72\x65\x6e\x63\x65_\x64u\x70l\x69\x63\x61\x74\x65\x73";${"\x47L\x4fB\x41L\x53"}["\x65\x66i\x6c\x6f\x63"]="c\x6f\x6db\x69\x6e\x61\x74io\x6e\x73\x5f\x6e\x6f\x5f\x72e\x66\x65\x72en\x63\x65";${"G\x4c\x4f\x42\x41\x4cS"}["\x6bgx\x71\x69g\x6cmjd\x6a"]="\x70\x72\x6fd\x75cts\x5f\x6e\x6f\x5f\x72\x65\x66\x65re\x6e\x63\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["\x64\x79\x74\x72\x72\x73\x6cn"]="\x73ql";${"G\x4c\x4fB\x41\x4c\x53"}["n\x69\x70cz\x71\x63c"]="\x64\x6fm\x61\x69n";${"\x47\x4c\x4fB\x41\x4cS"}["owk\x6e\x6bj\x67"]="do\x6ci\x5fi\x6e\x76oi\x63e\x5f\x64\x69r";${"G\x4c\x4fBAL\x53"}["g\x64u\x70\x62s\x77\x6e\x66\x79"]="p\x72\x65s\x74\x61\x5fi\x6d\x67\x5fu\x72l";${"\x47L\x4fBAL\x53"}["o\x64\x74rr\x78"]="m\x61\x74\x63\x68es";${"\x47\x4c\x4fBA\x4c\x53"}["f\x72p\x73\x67p\x63"]="se\x72\x69a\x6c";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x64\x68\x71j\x74\x6a\x70v"]="\x66\x6f\x72\x63\x65_al\x6c";${"\x47\x4c\x4f\x42\x41LS"}["\x6f\x64\x6b\x6e\x64t\x78iq"]="\x63o\x6e\x66\x69g";if((version_compare(_PS_VERSION_,"1.4")>=0)&&!defined("_\x43\x41\x4e_\x4cOA\x44_\x46\x49L\x45S\x5f"))exit;class DoliPresta extends Module{private$_html='';private$_postErrors=array();public$presta_conf_dir;public$ws_ps_rootdir;public$ecom_lang;public$ps_id_employe;public$ps_code_customer;public$discount_tax_rate;public$ps_code_order;public$presta_img_url;public$ecom_date_ini;public$doli_invoice_dir;public$doli_webservices_apikey;public$presta_key;public$weight_unit;public$length_unit;public$debug=false;public function __construct(){${"\x47\x4cOBA\x4cS"}["\x6b\x70\x6b\x72\x78qu\x65"]="\x63\x6f\x6ef\x69\x67";${"\x47LOBA\x4c\x53"}["fhr\x77\x78\x7a\x6a\x74\x7a\x62o"]="\x63\x6f\x6e\x66\x69g";$this->name="\x64\x6flipre\x73ta";${"GL\x4f\x42\x41\x4cS"}["g\x77\x78g\x6b\x78\x68\x66"]="c\x6f\x6e\x66i\x67";$this->tab="Di\x76\x65r\x73";${"G\x4c\x4f\x42AL\x53"}["v\x74n\x66\x65\x69\x67m\x6e"]="c\x6f\x6e\x66i\x67";${"GL\x4f\x42\x41L\x53"}["kc\x72as\x74ob\x6b\x78\x75"]="c\x6f\x6e\x66\x69\x67";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x75\x6a\x64\x78\x72d\x69rb\x69c"]="c\x6f\x6e\x66ig";${"\x47\x4cO\x42A\x4cS"}["\x69nw\x64r\x6b\x6d"]="\x63\x6f\x6e\x66i\x67";$gmciithldb="\x63\x6f\x6ef\x69\x67";${"\x47\x4cOB\x41\x4c\x53"}["n\x63\x6e\x65\x68\x6d\x75"]="conf\x69\x67";${"\x47\x4c\x4fBALS"}["m\x6do\x73\x69\x68\x64"]="c\x6f\x6e\x66\x69g";$this->keylen=20;${"G\x4c\x4f\x42\x41\x4cS"}["f\x79\x62\x77b\x6f\x67\x61i"]="\x63o\x6e\x66\x69\x67";$this->version="1\x2e0\x2e8";${"\x47L\x4f\x42\x41LS"}["\x71\x65mw\x71\x77\x79"]="\x63\x6f\x6ef\x69g";$ffrymcv="\x63\x6f\x6e\x66\x69\x67";$this->author="\x54i\x61\x72i\x73";$this->need_instance=0;${"GLO\x42\x41\x4c\x53"}["\x64\x65\x65\x6bo\x62\x69\x6ddf"]="\x63\x6fn\x66i\x67";${"G\x4c\x4f\x42A\x4cS"}["\x6d\x6d\x70\x6e\x77\x63aot\x62"]="\x63\x6fn\x66ig";${"\x47\x4cO\x42\x41L\x53"}["mfrr\x62m\x71\x73"]="\x63\x6f\x6e\x66ig";if(version_compare(_PS_VERSION_,"\x31\x2e5")>=0)$this->bootstrap=true;${${"\x47\x4cO\x42\x41\x4c\x53"}["k\x63\x72\x61\x73\x74\x6fb\x6b\x78u"]}=Configuration::getMultiple(array("\x50\x52\x45ST\x41\x5f\x4bE\x59","\x50R\x45STA_\x43\x4f\x4e\x46\x5f\x44\x49R","\x57\x53\x5fPS\x5f\x52OOT\x44I\x52","EC\x4f\x4d_\x4cANG","\x50S_ID\x5f\x45M\x50\x4cOY\x45","\x50S_CO\x44E\x5f\x43U\x53TO\x4d\x45R","\x50S_\x43\x4f\x44\x45\x5fORD\x45R","\x50\x52\x45\x53\x54\x41\x5fI\x4dG_\x55R\x4c","\x45\x43OM\x5f\x44AT\x45_I\x4e\x49","DOL\x49\x5fINV\x4fIC\x45_DI\x52","DISC\x4f\x55\x4eT_\x54\x41X_R\x41\x54\x45","DOL\x49\x5f\x57\x45\x42\x53E\x52\x56\x49CE\x53\x5fDIR","D\x4f\x4c\x49\x5f\x57E\x42S\x45\x52\x56\x49\x43E\x53_\x41\x50I\x4b\x45\x59","D\x4f\x4c\x49\x5fWEB\x53E\x52\x56I\x43\x45S_SI\x54\x45","PS\x5fWEIGH\x54\x5fU\x4eIT","PS\x5fD\x49M\x45\x4eS\x49O\x4e_\x55NIT"));$this->weight_unit=(isset(${${"\x47LO\x42\x41\x4cS"}["\x6b\x70\x6b\x72x\x71\x75\x65"]}["\x50\x53\x5f\x57E\x49GHT_\x55\x4eIT"]))?${${"G\x4cO\x42A\x4c\x53"}["\x76\x74\x6e\x66\x65i\x67\x6d\x6e"]}["PS\x5f\x57\x45I\x47\x48T_U\x4eIT"]:"k\x67";${"\x47L\x4f\x42\x41LS"}["lab\x68\x71\x65i\x6c\x77"]="\x63\x6f\x6e\x66i\x67";$this->length_unit=(isset(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6fdkn\x64tx\x69\x71"]}["P\x53\x5f\x44I\x4dEN\x53\x49\x4fN_U\x4e\x49\x54"]))?${${"\x47L\x4f\x42\x41L\x53"}["\x6c\x61bh\x71\x65\x69\x6c\x77"]}["P\x53_\x44\x49ME\x4e\x53IO\x4e\x5f\x55N\x49\x54"]:"c\x6d";${"G\x4c\x4fBA\x4c\x53"}["\x71\x71\x67\x68\x75\x68\x69g\x72\x64\x63"]="c\x6fnfi\x67";if(isset(${${"\x47\x4cO\x42\x41L\x53"}["\x67\x77x\x67\x6bx\x68\x66"]}["P\x52E\x53T\x41\x5f\x4bE\x59"]))$this->presta_key=${${"\x47\x4c\x4f\x42\x41LS"}["\x64\x65\x65\x6b\x6fb\x69m\x64\x66"]}["PR\x45\x53\x54A_\x4b\x45\x59"];if(isset(${${"\x47L\x4f\x42A\x4c\x53"}["\x6fu\x6a\x64xr\x64\x69\x72\x62\x69c"]}["\x50R\x45\x53T\x41\x5fCO\x4eF_D\x49\x52"])&&${${"GL\x4f\x42A\x4cS"}["qe\x6dw\x71\x77y"]}["PRESTA\x5f\x43O\x4eF_D\x49\x52"])$this->presta_conf_dir=${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6fd\x6b\x6e\x64\x74\x78\x69\x71"]}["PREST\x41_CON\x46_DI\x52"];else$this->presta_conf_dir=_PS_ROOT_DIR_."/c\x6f\x6ef\x69g/";${"\x47LOBA\x4c\x53"}["x\x75\x74\x65k\x7a\x70"]="c\x6f\x6e\x66i\x67";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6aod\x6c\x73\x6e"]="c\x6f\x6e\x66\x69g";if(isset(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6f\x64\x6b\x6ed\x74x\x69\x71"]}["\x57S_PS\x5f\x52\x4fOT\x44\x49R"])&&${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x64k\x6e\x64\x74\x78\x69\x71"]}["WS_PS\x5fROOT\x44\x49\x52"])$this->ws_ps_rootdir=${${"G\x4cOB\x41\x4cS"}["\x66\x79\x62w\x62og\x61i"]}["\x57\x53_\x50\x53_\x52\x4f\x4fTD\x49R"];else$this->ws_ps_rootdir=_PS_ROOT_DIR_."/";if(isset(${${"\x47\x4cO\x42\x41\x4cS"}["n\x63\x6e\x65\x68m\x75"]}["E\x43\x4f\x4d\x5f\x4cANG"]))$this->ecom_lang=${${"GL\x4fB\x41L\x53"}["\x6f\x64\x6bn\x64t\x78\x69\x71"]}["\x45\x43O\x4d\x5f\x4c\x41\x4eG"];${"\x47\x4c\x4fB\x41LS"}["\x66\x7a\x73wy\x6a\x66\x6an"]="\x63\x6fn\x66\x69\x67";if(isset(${${"\x47L\x4f\x42\x41L\x53"}["f\x68\x72w\x78z\x6a\x74\x7abo"]}["\x50\x53\x5fI\x44\x5f\x45\x4d\x50\x4c\x4fY\x45"]))$this->ps_id_employe=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x6fdl\x73\x6e"]}["P\x53\x5fID\x5fE\x4d\x50LO\x59E"];if(isset(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6dfr\x72\x62\x6dqs"]}["PS\x5fCODE\x5f\x43U\x53\x54O\x4dE\x52"]))$this->ps_code_customer=${${"G\x4cOB\x41L\x53"}["\x66z\x73\x77\x79\x6a\x66j\x6e"]}["P\x53\x5fC\x4fDE_C\x55\x53TO\x4dER"];if(isset(${$ffrymcv}["\x44\x49\x53\x43OUNT_T\x41X\x5f\x52\x41\x54E"]))$this->discount_tax_rate=${${"\x47L\x4f\x42\x41\x4c\x53"}["mmo\x73i\x68d"]}["\x44IS\x43\x4f\x55NT\x5f\x54\x41\x58\x5f\x52\x41TE"];if(isset(${${"\x47\x4c\x4f\x42AL\x53"}["\x6dm\x70\x6e\x77ca\x6ftb"]}["PS\x5f\x43ODE_ORD\x45\x52"]))$this->ps_code_order=${$gmciithldb}["\x50\x53\x5fC\x4f\x44E\x5fORDE\x52"];$jvvlorhcl="\x63\x6fn\x66\x69\x67";if(isset(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6f\x64\x6b\x6e\x64t\x78\x69q"]}["\x50\x52ES\x54A_\x49\x4dG_UR\x4c"]))$this->presta_img_url=${${"G\x4c\x4f\x42A\x4cS"}["\x6f\x64\x6b\x6e\x64t\x78\x69\x71"]}["PRE\x53TA\x5fIMG\x5fU\x52L"];if(isset(${${"\x47\x4c\x4fBA\x4c\x53"}["o\x64k\x6e\x64\x74x\x69\x71"]}["ECOM\x5fDATE_\x49\x4e\x49"]))$this->ecom_date_ini=${${"\x47\x4c\x4f\x42A\x4cS"}["o\x64\x6b\x6e\x64t\x78\x69\x71"]}["E\x43OM\x5f\x44\x41T\x45_INI"];if(isset(${${"\x47LO\x42\x41L\x53"}["\x71\x71\x67h\x75\x68\x69\x67\x72\x64c"]}["\x44\x4fLI_\x49\x4e\x56OI\x43\x45_DIR"]))$this->doli_invoice_dir=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fdk\x6e\x64\x74\x78\x69\x71"]}["D\x4fL\x49_\x49N\x56\x4f\x49CE_\x44\x49R"];if(isset(${${"\x47\x4cO\x42\x41LS"}["\x69n\x77\x64\x72km"]}["DOLI\x5f\x57EB\x53\x45\x52V\x49\x43\x45S_\x44I\x52"]))$this->doli_webservices_dir=${${"G\x4c\x4f\x42A\x4c\x53"}["\x6f\x64knd\x74\x78iq"]}["\x44OLI_\x57\x45B\x53\x45RV\x49CES\x5f\x44\x49R"];if(isset(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6f\x64\x6bn\x64\x74\x78\x69\x71"]}["\x44\x4fL\x49\x5f\x57EB\x53E\x52V\x49\x43ES\x5fS\x49TE"]))$this->doli_webservices_site=${$jvvlorhcl}["D\x4fL\x49_\x57\x45\x42\x53E\x52V\x49\x43\x45S\x5fS\x49TE"];if(isset(${${"G\x4c\x4f\x42A\x4c\x53"}["\x6f\x64k\x6ed\x74\x78\x69q"]}["\x44\x4f\x4c\x49\x5fWEB\x53\x45RVICE\x53\x5f\x41P\x49K\x45\x59"]))$this->doli_webservices_apikey=${${"GLO\x42AL\x53"}["\x78utek\x7ap"]}["D\x4f\x4cI_WEB\x53E\x52\x56I\x43E\x53\x5f\x41\x50IKEY"];parent::__construct();$this->page=basename(__FILE__,".p\x68p");$this->displayName=$this->l("D\x6f\x6cip\x72e\x73t\x61 Mo\x64\x75l\x65");$this->description=$this->l("Dol\x69\x70r\x65sta\x20is\x20an \x69nt\x65rfa\x63\x65 m\x6f\x64\x75\x6ce\x20wi\x74\x68\x20a Dolib\x61\x72\x72 s\x69t\x65");$this->confirmUninstall=$this->l("A\x72e\x20\x79\x6fu s\x75r\x65\x20yo\x75 \x77ant\x20\x74\x6f\x20\x64el\x65t\x65\x20y\x6f\x75r \x64etails\x20?");}public function install(){if(!parent::install()||!Configuration::updateValue("\x44\x4f\x4cIPRE\x53\x54A_\x4d\x41N\x41\x47\x45\x4dE\x4e\x54",1)){return false;}return true;}public function uninstall(){return(parent::uninstall()AND Configuration::updateValue("\x44OLI\x50R\x45\x53T\x41\x5fMAN\x41G\x45M\x45NT",0)AND Configuration::updateValue("\x50\x52E\x53\x54A_\x4bEY",""));}public function enable($force_all=false){parent::enable(${${"GLO\x42A\x4c\x53"}["dh\x71\x6a\x74j\x70\x76"]});Configuration::updateValue("\x44\x4f\x4c\x49\x50\x52EST\x41\x5f\x4d\x41NA\x47\x45ME\x4e\x54",1);}public function disable($force_all=false){parent::disable(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x64\x68q\x6a\x74\x6a\x70\x76"]});Configuration::updateValue("\x44\x4fL\x49PRESTA\x5f\x4d\x41NA\x47EM\x45\x4e\x54",0);}private function _postValidation(){if(isset($_POST["b\x74\x6e\x53ubm\x69\x74"])&&isset($_POST["\x70\x72\x65sta\x5f\x6bey"])){${${"GL\x4fBA\x4c\x53"}["f\x72\x70sg\x70\x63"]}=$_POST["pr\x65\x73\x74\x61\x5fkey"];${"\x47\x4cO\x42\x41\x4cS"}["\x78d\x79\x66\x6d\x64\x6a"]="s\x65r\x69\x61\x6c";if(!${${"G\x4cO\x42\x41LS"}["fr\x70\x73\x67pc"]}){$this->_postErrors[]=$this->l("\x54h\x69s\x20\x69\x73\x20\x6eo\x74\x20a val\x69\x64\x20\x4b\x65\x79.")."\x20 ".$this->_get_domain();return;}elseif(!$this->_codeValidate(${${"\x47\x4c\x4fB\x41\x4c\x53"}["xd\x79\x66\x6d\x64\x6a"]},$this->_get_domain())){$this->_postErrors[]=$this->l("This\x20i\x73 n\x6f\x74 \x61\x20\x76ali\x64\x20\x4bey\x2e")." ".$this->_get_domain()."\x20".$this->name." ".${${"\x47\x4cO\x42A\x4c\x53"}["\x66r\x70\x73gpc"]};return;}}elseif(isset($_POST["\x62tnS\x75bmit"])){if(empty($_POST["\x70r\x65\x73ta\x5f\x63o\x6ef_\x64ir"]))$this->_postErrors[]=$this->l("\x54\x68i\x73\x20is \x6eot\x20a\x20\x76\x61\x6ci\x64 URL\x2e");if(!Tools::getValue("\x77\x73_p\x73\x5f\x72oot\x64i\x72"))$this->_postErrors[]=$this->l("T\x68\x69s \x69s no\x74\x20\x61\x20v\x61\x6c\x69\x64 \x55\x52L.");if(!Tools::getValue("e\x63om\x5f\x6ca\x6e\x67"))$this->_postErrors[]=$this->l("\x4c\x61n\x67 i\x73\x20\x72\x65qu\x69re\x64\x2e");if(!Tools::getValue("\x70s\x5fi\x64_\x65mpl\x6fy\x65"))$this->_postErrors[]=$this->l("I\x44 \x65\x6dpl\x6f\x79e \x69\x73 \x72\x65\x71uir\x65d\x2e");if(strlen(Tools::getValue("\x70s\x5f\x63od\x65_\x63\x75s\x74o\x6d\x65\x72"))>7)$this->_postErrors[]=$this->l("C\x6fde cu\x73\x74o\x6der\x20\x6eeed\x20t\x6f \x62\x65\x20l\x65\x73s th\x61\x6e\x208\x20l\x65\x74te\x72s\x2e");if(strlen(Tools::getValue("ps_\x63o\x64\x65_or\x64\x65r"))>7)$this->_postErrors[]=$this->l("\x43od\x65\x20\x6fr\x64e\x72 \x6ee\x65d t\x6f\x20b\x65\x20\x6ces\x73 tha\x6e\x208 \x6cett\x65\x72s.");if(!Validate::isUrl(Tools::getValue("pres\x74\x61_\x69m\x67_\x75r\x6c"))||(!Tools::getValue("pr\x65sta_img\x5fur\x6c")))$this->_postErrors[]=$this->l("\x54\x68\x69s \x69s\x20\x6e\x6ft\x20a \x76\x61l\x69d UR\x4c\x2e");if(!Tools::getValue("e\x63\x6f\x6d_date_\x69ni"))$this->_postErrors[]=$this->l("D\x61\x74\x65\x20\x69s re\x71\x75i\x72ed\x2e");else{if(preg_match("/([0-\x39]{2})\x5c/([0-9]{\x32})\x5c/([0-\x39]{\x34})/",$_POST["\x65co\x6d_\x64ate_\x69\x6e\x69"],${${"\x47\x4c\x4f\x42\x41LS"}["\x6fd\x74\x72r\x78"]})){if(!checkdate(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6fdtr\x72x"]}[2],${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x64t\x72r\x78"]}[1],${${"GL\x4fB\x41\x4c\x53"}["o\x64\x74\x72r\x78"]}[3])){$this->_postErrors[]=$this->l("\x49n\x63o\x72r\x65ct\x20d\x61te \x66o\x72\x6d\x61t");}}else{$this->_postErrors[]=$this->l("In\x63o\x72\x72\x65ct d\x61\x74e\x20for\x6d\x61\x74");}}if(empty($_POST["\x64o\x6ci_we\x62\x73e\x72\x76i\x63es\x5fd\x69\x72"]))$this->_postErrors[]=$this->l("This is\x20not a\x20\x76\x61\x6cid \x55R\x4c.");if(empty($_POST["\x64o\x6c\x69\x5fw\x65\x62s\x65\x72v\x69c\x65\x73_\x73\x69te"]))$this->_postErrors[]=$this->l("ID\x20\x6f\x66\x20\x64\x6f\x6ciba\x72r s\x69t\x65\x65c\x6fm\x20\x69\x73 re\x71\x75ire\x64\x2e");if(empty($_POST["\x64ol\x69\x5f\x69nv\x6fic\x65_\x64ir"]))$this->_postErrors[]=$this->l("I\x6e\x76\x6f\x69ce\x20d\x69\x72\x20\x69s\x20re\x71ui\x72e\x64.");if(empty($_POST["\x64o\x6ci\x5f\x77\x65\x62\x73e\x72\x76\x69\x63\x65s_ap\x69ke\x79"]))$this->_postErrors[]=$this->l("\x41\x50\x49 \x6be\x79 i\x73\x20requ\x69\x72\x65\x64");}}private function _postProcess(){if(isset($_POST["btnS\x75bmit"])&&isset($_POST["pre\x73\x74\x61\x5f\x6be\x79"])){Configuration::updateValue("P\x52E\x53TA\x5fK\x45\x59",$_POST["pr\x65\x73\x74a_\x6b\x65\x79"]);}elseif(isset($_POST["\x62t\x6e\x53\x75b\x6dit"])){Configuration::updateValue("P\x52ES\x54A_\x43O\x4eF_DI\x52",$_POST["pre\x73t\x61\x5fc\x6fnf\x5f\x64\x69r"]);Configuration::updateValue("\x57\x53\x5fP\x53_R\x4fO\x54\x44I\x52",$_POST["w\x73_ps_ro\x6f\x74\x64\x69r"]);Configuration::updateValue("E\x43OM_\x4cANG",$_POST["\x65com\x5f\x6c\x61n\x67"]);Configuration::updateValue("PS\x5f\x49\x44\x5fEMP\x4c\x4fYE",$_POST["\x70\x73_i\x64\x5femp\x6coy\x65"]);Configuration::updateValue("PS\x5f\x43O\x44\x45_\x43\x55S\x54\x4f\x4d\x45\x52",$_POST["\x70s_c\x6fd\x65_cus\x74\x6fm\x65\x72"]);Configuration::updateValue("\x44ISCOUN\x54\x5fT\x41X_\x52A\x54\x45",$_POST["\x64\x69\x73\x63\x6f\x75n\x74\x5ft\x61x_ra\x74\x65"]);Configuration::updateValue("\x50\x53_C\x4fD\x45_OR\x44\x45\x52",$_POST["\x70\x73\x5fco\x64e_\x6f\x72\x64\x65\x72"]);Configuration::updateValue("\x50R\x45\x53\x54\x41\x5fIMG\x5f\x55R\x4c",$_POST["\x70\x72\x65\x73\x74a\x5f\x69\x6d\x67_url"]);Configuration::updateValue("\x45\x43O\x4d_\x44\x41\x54E_IN\x49",$_POST["e\x63\x6fm_\x64at\x65\x5f\x69\x6e\x69"]);Configuration::updateValue("\x44\x4f\x4cI_\x49\x4eV\x4f\x49\x43E_\x44I\x52",$_POST["d\x6f\x6ci_invoi\x63e\x5fdi\x72"]);Configuration::updateValue("\x44OL\x49_WEB\x53ER\x56\x49\x43ES\x5fDIR",$_POST["d\x6fl\x69\x5f\x77ebs\x65\x72vices\x5fdi\x72"]);Configuration::updateValue("\x44O\x4c\x49_\x57EB\x53\x45R\x56\x49C\x45\x53_\x53\x49\x54E",$_POST["\x64ol\x69\x5f\x77\x65\x62\x73ervic\x65s_\x73i\x74e"]);Configuration::updateValue("\x44OL\x49_\x57EBSE\x52VICES_\x41P\x49KEY",$_POST["\x64\x6fl\x69\x5fwe\x62s\x65\x72\x76i\x63e\x73_ap\x69\x6b\x65y"]);}if(version_compare(_PS_VERSION_,"\x31.6")>=0){$this->_html.=$this->displayConfirmation($this->l("\x53e\x74\x74\x69n\x67s\x20\x75\x70\x64\x61te\x64"));}else{$this->_html.="<\x64i\x76\x20c\x6c\x61\x73s\x3d\x22con\x66\x20\x63o\x6efirm\"\x3e<\x69\x6dg s\x72\x63\x3d\"\x2e\x2e/\x69mg/admin/\x6f\x6b.gif\x22\x20alt=\"".$this->l("o\x6b")."\x22 /> ".$this->l("\x53e\x74t\x69ng\x73 \x75\x70d\x61\x74ed")."\x3c/\x64\x69v>";}}private function _displayDoliPresta(){if(version_compare(_PS_VERSION_,"\x31\x2e\x36")>=0){$this->_html.="\x3c\x64i\x76 \x63la\x73\x73=\"aler\x74 \x61\x6ce\x72t-\x69\x6e\x66o\x22\x20\x73ty\x6c\x65=\x22\x6d\x69n-h\x65i\x67\x68t: \x31\x325px;\"\x3e\x3c\x69\x6d\x67\x20\x73rc=\"\x2e\x2e/\x6d\x6f\x64u\x6c\x65s/\x64o\x6c\x69prest\x61/\x64o\x6ci\x70\x72est\x61\x2e\x70n\x67\"\x20s\x74y\x6ce=\x22\x66l\x6fat:l\x65\x66t; \x6d\x61\x72g\x69n-r\x69\x67h\x74:1\x35\x70\x78\x3b\x6dar\x67\x69n-\x74o\x70:\x20-\x315p\x78;\">";$this->_html.="\x3cp\x3e<st\x72ong>".$this->l("\x54\x68i\x73 \x6d\x6fdu\x6ce all\x6f\x77\x73 \x79\x6f\x75 to\x20\x63on\x6e\x65c\x74\x20Pres\x74asho\x70 wi\x74h \x61 \x44\x6f\x6c\x69bar\x72 site\x2e")."\x3c/\x73t\x72o\x6eg></p\x3e";$this->_html.="\x3c\x70\x3e".$this->l("\x49\x66 yo\x75 \x63ho\x6f\x73\x65 \x74h\x69s\x20\x73et\x74in\x67\x20mo\x64\x65,\x20yo\x75 wi\x6cl\x20\x68av\x65 \x74o\x20\x61\x6e\x73w\x65\x72 some\x20quest\x69o\x6es\x2e")."</p\x3e";$this->_html.="<p>".$this->l("Ther\x65\x66\x6fr\x65,\x20\x79o\x75 \x77\x69\x6c\x6c \x6e\x65\x65\x64 \x74o \x66\x69ll i\x6e \x74\x68e\x20f\x6frm\x20b\x65\x6cow..")."</\x70\x3e";$this->_html.="</\x64iv\x3e";}else{$this->_html.="\x3c\x69\x6dg \x73\x72c=\x22.\x2e/\x6do\x64\x75le\x73/do\x6cip\x72\x65st\x61/\x64\x6f\x6c\x69p\x72est\x61.pn\x67\" s\x74\x79le\x3d\"flo\x61\x74:left\x3b\x20m\x61\x72gin-righ\x74:15p\x78;\"><\x62>".$this->l("\x54hi\x73\x20\x6d\x6fd\x75\x6c\x65 a\x6clows y\x6fu\x20t\x6f\x20co\x6e\x6e\x65\x63t\x20Pr\x65\x73tas\x68op \x77\x69\x74h\x20\x61 Do\x6cib\x61r\x72\x20\x73\x69te\x2e")."</\x62><b\x72 /\x3e<\x62r\x20/\x3e\n\t\t \x20 \x20".$this->l("If\x20\x79o\x75\x20\x63ho\x6f\x73e\x20t\x68is set\x74\x69ng\x20\x6dode,\x20\x79\x6f\x75\x20\x77il\x6c\x20\x68\x61v\x65 t\x6f \x61\x6e\x73wer\x20s\x6f\x6de que\x73\x74\x69\x6f\x6e\x73.")."<br /\x3e\n\t\t\x20   ".$this->l("T\x68\x65\x72efore,\x20you\x20wil\x6c\x20\x6e\x65e\x64\x20\x74\x6f\x20fil\x6c\x20i\x6e\x20\x74\x68\x65 fo\x72m\x20be\x6co\x77..")."\x3cb\x72\x20/>\x3c\x62r\x20/><\x62r\x20/>";}}public function getConfigFieldsValues(){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x65s\x74xqiq"]="doli\x5f\x69\x6evoic\x65\x5fdi\x72";if(Tools::getValue("pr\x65\x73\x74a\x5f\x69\x6dg_\x75\x72\x6c",$this->presta_img_url))${${"G\x4c\x4f\x42A\x4c\x53"}["g\x64\x75p\x62\x73\x77\x6e\x66y"]}=Tools::getValue("\x70\x72\x65s\x74\x61_\x69\x6dg_\x75\x72\x6c",$this->presta_img_url);else{${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75zxld\x71\x6b\x66\x66\x68b"]="url";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x7a\x78\x6cdq\x6b\x66\x66h\x62"]}=new Shop(Context::getContext()->shop->id);${${"G\x4c\x4f\x42\x41L\x53"}["g\x64\x75\x70b\x73\x77\x6e\x66\x79"]}="\x68ttp://".$url->domain.$url->physical_uri."\x69\x6dg/\x70/";}if(Tools::getValue("\x64o\x6c\x69\x5fi\x6e\x76oice_\x64\x69\x72",$this->doli_invoice_dir))${${"\x47\x4c\x4fBA\x4cS"}["\x6f\x77\x6bnk\x6a\x67"]}=Tools::getValue("d\x6fli\x5fi\x6e\x76\x6f\x69\x63\x65_dir",$this->doli_invoice_dir);else${${"\x47LO\x42\x41\x4c\x53"}["ow\x6bn\x6b\x6ag"]}=_PS_MODULE_DIR_."\x64o\x6ci\x70rest\x61/\x74m\x70/";return array("\x55RL\x73\x68op"=>$this->context->shop->getBaseURL(),"\x55RLWs"=>$this->context->shop->getBaseURL()."m\x6fdule\x73/d\x6f\x6c\x69pr\x65\x73t\x61/","\x70re\x73\x74a\x5f\x63\x6fn\x66\x5fd\x69\x72"=>Tools::getValue("\x70re\x73\x74\x61_\x63o\x6e\x66\x5fd\x69\x72",$this->presta_conf_dir),"ws_\x70\x73_r\x6f\x6f\x74d\x69r"=>Tools::getValue("w\x73_p\x73_r\x6fot\x64i\x72",$this->ws_ps_rootdir),"ec\x6fm_\x6ca\x6eg"=>(int)Tools::getValue("\x65c\x6f\x6d_\x6c\x61\x6e\x67",$this->ecom_lang),"p\x73\x5fi\x64\x5f\x65\x6dplo\x79\x65"=>Tools::getValue("ps_\x69d\x5fem\x70l\x6fy\x65",$this->ps_id_employe),"p\x73_\x63\x6f\x64\x65\x5fcus\x74\x6f\x6d\x65\x72"=>Tools::getValue("ps_\x63ode\x5f\x63\x75\x73\x74\x6f\x6der",$this->ps_code_customer),"\x64\x69\x73\x63\x6f\x75\x6e\x74_tax_\x72at\x65"=>Tools::getValue("\x64\x69s\x63\x6fu\x6e\x74_\x74\x61x_r\x61te",$this->discount_tax_rate),"\x70\x73\x5f\x63o\x64\x65\x5f\x6f\x72\x64e\x72"=>Tools::getValue("ps_c\x6f\x64e\x5fo\x72\x64e\x72",$this->ps_code_order),"p\x72\x65\x73\x74\x61_\x69m\x67_u\x72\x6c"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67d\x75\x70b\x73w\x6e\x66\x79"]},"e\x63om_\x64\x61\x74\x65_\x69n\x69"=>Tools::getValue("e\x63\x6fm_\x64\x61t\x65\x5fin\x69",$this->ecom_date_ini),"\x64o\x6ci\x5fi\x6e\x76\x6f\x69c\x65_di\x72"=>${${"\x47\x4c\x4fB\x41\x4c\x53"}["k\x65s\x74\x78\x71i\x71"]},"do\x6ci_\x77ebs\x65rvice\x73\x5f\x64ir"=>Tools::getValue("do\x6c\x69_we\x62se\x72v\x69\x63e\x73\x5fdi\x72",$this->doli_webservices_dir),"doli_w\x65bs\x65r\x76\x69\x63\x65s\x5f\x73\x69\x74e"=>Tools::getValue("\x64ol\x69\x5fw\x65\x62s\x65\x72\x76i\x63\x65\x73\x5f\x73it\x65",$this->doli_webservices_site),"d\x6fl\x69_\x77e\x62\x73\x65\x72\x76\x69\x63\x65s\x5f\x61\x70\x69\x6be\x79"=>Tools::getValue("d\x6fl\x69\x5fw\x65\x62s\x65\x72v\x69ce\x73\x5f\x61\x70\x69key",$this->doli_webservices_apikey),);}private function _displayForm(){${"G\x4cO\x42\x41\x4c\x53"}["\x6bq\x63\x69ynoq\x6c\x69\x78"]="s\x65\x72ia\x6c";${${"GL\x4f\x42A\x4c\x53"}["\x6b\x71c\x69y\x6eoq\x6c\x69\x78"]}=(isset($_POST["prest\x61\x5f\x6b\x65\x79"])?$_POST["\x70res\x74a_\x6bey"]:Tools::getValue("PR\x45\x53\x54A\x5f\x4bE\x59",$this->presta_key));${"G\x4c\x4f\x42A\x4cS"}["\x6c\x65\x6ae\x69\x72\x6eo\x77y"]="\x73\x65\x72\x69\x61\x6c";${"\x47LOB\x41\x4cS"}["lnd\x71\x67\x70\x73\x62\x6b"]="\x73\x65ri\x61l";if(!$this->_codeValidate(${${"\x47LOBA\x4cS"}["\x6c\x65\x6a\x65\x69r\x6e\x6f\x77\x79"]},$this->_get_domain())){${"\x47L\x4f\x42\x41\x4c\x53"}["a\x66r\x6al\x6esj\x66"]="\x73\x65\x72\x69\x61\x6c";${${"GLO\x42\x41\x4c\x53"}["\x61\x66\x72\x6a\x6c\x6e\x73\x6a\x66"]}="";}if(!${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x6ed\x71\x67psb\x6b"]}&&$this->_get_domain()!="\x6co\x63a\x6cho\x73\x74"){${${"\x47\x4cOBAL\x53"}["\x6ei\x70czq\x63c"]}=$this->_get_domain();$this->_html.="\x3cform\x20a\x63t\x69\x6fn=\"".$_SERVER["RE\x51\x55\x45\x53\x54_UR\x49"]."\x22 met\x68o\x64\x3d\x22pos\x74\x22>\n\t\t\t\x3cf\x69e\x6c\x64\x73et>\n\t\t\t\x3c\x6ce\x67en\x64><\x69mg s\x72c=\x22.\x2e/i\x6d\x67/a\x64min/\x63o\x6e\x74\x61\x63\x74\x2egi\x66\x22 />".$this->l("Para\x6d\x65\x74\x65rs")."\x3c/\x6ceg\x65n\x64\x3e\n\t\t\t<t\x61\x62\x6ce b\x6frde\x72\x3d\x22\x30\"\x20\x77id\x74\x68=\x22\x35\x300\x22 cel\x6cp\x61\x64d\x69n\x67\x3d\"\x30\x22\x20c\x65llspac\x69n\x67\x3d\x220\" \x69d\x3d\"f\x6frm\x22\x3e\n\t\t\t\x3c\x74\x72>\x3ctd\x20\x63o\x6c\x73\x70\x61\x6e=\"2\"\x3e".$this->l("Pleas\x65 \x65\x6eter\x20\x79our \x4ci\x63e\x6e\x73\x65 \x4b\x65\x79 ")."..\x3cbr\x20/\x3e\x3c\x62r\x20/\x3e<\x62\x72 /\x3e</td>\x3c/t\x72>\n\t\t\t\x3ctr\x3e<td wi\x64th\x3d\x22\x31\x33\x30\"\x20s\x74\x79l\x65=\x22h\x65\x69\x67\x68t: \x335\x70x;\"\x3e".$this->l("\x4cic\x65ns\x65 Ke\x79")."\x3c/td\x3e\x3ct\x64><in\x70\x75\x74 \x74y\x70\x65\x3d\"\x74e\x78t\"\x20\x6ea\x6de\x3d\x22presta\x5fkey\"\x20v\x61lu\x65\x3d\"".Tools::getValue("\x50RE\x53\x54\x41_\x4b\x45Y",$this->presta_key)."\"\x20\x73\x74yl\x65=\"\x77idth: 300p\x78;\x22 /></\x74\x64>\x3c/\x74r\x3e\n\t\t\t<\x74\x72\x3e\x3c\x74\x64 \x63o\x6cs\x70\x61\x6e\x3d\x22\x32\x22><b\x72 />&n\x62sp\x3b<br />\x3c/td></t\x72>\n\t\t\t\x3ctr\x3e\x3ctd c\x6f\x6c\x73p\x61n\x3d\x22\x32\x22 a\x6ci\x67\x6e\x3d\x22ce\x6e\x74e\x72\"\x3e<\x62\x72\x20/><i\x6e\x70ut \x63\x6cas\x73=\x22\x62ut\x74o\x6e\" \x6e\x61me=\x22\x62t\x6e\x53\x75bmit\" \x76alu\x65=\x22".$this->l("\x55p\x64a\x74e\x20\x73et\x74\x69n\x67\x73")."\" t\x79pe\x3d\"\x73\x75\x62\x6di\x74\" /\x3e</\x74\x64>\x3c/t\x72>\n\t\t\t\t\n\t\t\t</t\x61b\x6ce\x3e\n\t\t\t\x3c/f\x69e\x6c\x64\x73\x65t\x3e\n\t\t\t</f\x6f\x72m\x3e";}else{$uiaxsyldmw="\x72e\x66eren\x63\x65\x5f\x64u\x70l\x69c\x61\x74\x65\x73";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64\x79\x74r\x72\x73\x6c\x6e"]}="S\x45\x4c\x45\x43T C\x4f\x55N\x54(i\x64_pr\x6f\x64uc\x74)\x20FROM\x20"._DB_PREFIX_."\x70r\x6f\x64uct \x57H\x45RE\x20\x72\x65f\x65r\x65nce\x20\x3d\x27'\x20OR \x72\x65fere\x6ec\x65\x20\x49S\x20NUL\x4c";$jeumvwsufxsq="sql";$szdvrecu="\x73q\x6c";${"G\x4cO\x42AL\x53"}["\x76\x76\x7a\x77\x67\x78\x75q"]="\x70rodu\x63ts_\x6e\x6f\x5f\x72\x65\x66\x65\x72\x65n\x63\x65";${${"G\x4c\x4f\x42AL\x53"}["\x6b\x67xq\x69\x67\x6cm\x6a\x64\x6a"]}=Db::getInstance()->getValue(${${"\x47LO\x42ALS"}["dy\x74\x72\x72\x73\x6c\x6e"]});if(${${"\x47\x4c\x4fBAL\x53"}["v\x76\x7aw\x67\x78\x75\x71"]}>0){$this->_postErrors[]=sprintf($this->l("There \x61\x72\x65\x20%s\x20\x70\x72\x6f\x64\x75ct\x73 w\x69\x74h\x6fut\x20re\x66ere\x6e\x63\x65"),${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6bgx\x71\x69g\x6c\x6d\x6a\x64\x6a"]});}${$jeumvwsufxsq}="SE\x4c\x45CT CO\x55\x4eT(\x69d\x5f\x70\x72\x6f\x64u\x63t) \x46\x52\x4fM\x20"._DB_PREFIX_."\x70roduc\x74_\x61tt\x72i\x62\x75te W\x48ER\x45\x20re\x66\x65r\x65\x6e\x63\x65\x20='' \x4f\x52\x20refere\x6e\x63e \x49S NU\x4c\x4c";$zrpxbprgmslx="re\x66\x65\x72\x65\x6e\x63e\x5f\x64u\x70\x6c\x69\x63a\x74\x65\x73";${"\x47L\x4fBA\x4c\x53"}["\x70wyo\x72k\x72r"]="sql";${${"\x47\x4cO\x42\x41\x4c\x53"}["e\x66\x69\x6co\x63"]}=Db::getInstance()->getValue(${$szdvrecu});if(${${"GL\x4fB\x41\x4c\x53"}["\x65f\x69\x6c\x6f\x63"]}>0){$kljtnsd="\x63\x6fm\x62\x69\x6e\x61t\x69\x6f\x6es_\x6eo\x5f\x72e\x66\x65r\x65\x6ece";$this->_postErrors[]=sprintf($this->l("Th\x65re a\x72\x65 %\x73 \x63ombi\x6eatio\x6e\x73 wit\x68\x6fu\x74\x20r\x65f\x65r\x65nc\x65"),${$kljtnsd});}${${"\x47\x4cOB\x41L\x53"}["\x70\x77\x79\x6f\x72\x6b\x72\x72"]}="S\x45\x4cE\x43T \x72\x65fe\x72enc\x65 \x46R\x4fM\x20"._DB_PREFIX_."pr\x6f\x64\x75\x63t_a\x74tr\x69but\x65\x20W\x48ER\x45\x20refer\x65\x6e\x63e\x21=\x27\x27 \x47\x52\x4fUP \x42\x59 r\x65\x66e\x72\x65\x6ec\x65\x20HAVIN\x47 co\x75nt(\x69\x64\x5f\x70ro\x64\x75c\x74) \x3e \x31";${${"G\x4c\x4f\x42\x41L\x53"}["d\x79\x74r\x72\x73\x6c\x6e"]}.="\x20UNI\x4f\x4e";$vpgujif="sql";${${"G\x4c\x4f\x42\x41\x4cS"}["d\x79\x74r\x72sl\x6e"]}.=" S\x45\x4c\x45\x43T\x20re\x66\x65re\x6ec\x65 \x46\x52O\x4d\x20"._DB_PREFIX_."\x70r\x6f\x64u\x63t\x20\x57HE\x52E\x20\x72\x65\x66e\x72\x65nc\x65!\x3d'\x27\x20\x47R\x4f\x55P B\x59 r\x65\x66\x65rence\x20H\x41\x56\x49\x4eG\x20co\x75n\x74(id\x5fprod\x75\x63\x74)\x20>\x20\x31";${${"G\x4c\x4f\x42A\x4cS"}["d\x79\x74rr\x73l\x6e"]}.=" \x55N\x49ON";${$vpgujif}.="\x20\x53\x45LE\x43T \x44\x49\x53TI\x4eCT \x70.r\x65f\x65\x72\x65\x6e\x63\x65 as r\x65\x66er\x65\x6e\x63\x65\x20\x46\x52O\x4d "._DB_PREFIX_."p\x72oduct_at\x74r\x69\x62u\x74\x65\x20\x61\x73 \x70\x20LEF\x54\x20JO\x49\x4e\x20"._DB_PREFIX_."\x70r\x6f\x64\x75\x63\x74\x20as\x20o ON\x20p.re\x66e\x72\x65n\x63\x65 \x3d \x6f\x2erefe\x72e\x6ece\x20\x57H\x45\x52\x45\x20\x70\x2e\x69\x64_\x70\x72oduct\x20!=\x20\x6f\x2ei\x64\x5f\x70\x72od\x75\x63\x74 AND\x20p\x2er\x65f\x65\x72\x65\x6ec\x65\x20\x21= \x27\x27";${$uiaxsyldmw}=count(Db::getInstance()->executeS(${${"\x47L\x4f\x42\x41L\x53"}["\x64yt\x72\x72\x73\x6c\x6e"]}));if(${$zrpxbprgmslx}>0){$this->_postErrors[]=sprintf($this->l("\x54\x68e\x72e \x61r\x65 \x25s d\x75p\x6c\x69\x63\x61t\x65 \x72\x65\x66er\x65n\x63e\x73"),${${"G\x4cO\x42\x41\x4c\x53"}["\x74\x6fn\x75\x71\x66d\x6b\x7a"]});}if(count($this->_postErrors)){foreach($this->_postErrors AS${${"\x47\x4c\x4f\x42AL\x53"}["\x68r\x79s\x70\x78\x70"]}){if(version_compare(_PS_VERSION_,"1\x2e\x36")>=0)$this->_html.=$this->displayError(${${"G\x4c\x4fB\x41\x4c\x53"}["h\x72\x79\x73\x70\x78p"]});else$this->_html.="<\x64i\x76 \x63la\x73s\x3d\x22\x61\x6c\x65rt\x20\x65\x72r\x6f\x72\x22>".${${"\x47\x4cOB\x41\x4c\x53"}["\x68\x72\x79s\x70xp"]}."\x3c/div>";}}if(${${"\x47\x4cO\x42\x41LS"}["\x6b\x67x\x71\x69\x67\x6c\x6d\x6ad\x6a"]}>0||${${"\x47L\x4fB\x41\x4c\x53"}["\x65\x66\x69l\x6f\x63"]}>0){if(version_compare(_PS_VERSION_,"\x31.5")>=0){$ogcavyb="\x66\x69e\x6cd\x73\x5ff\x6fr\x6d";${$ogcavyb}=array("fo\x72m"=>array("l\x65\x67end"=>array("\x74itle"=>$this->l("\x53o\x6c\x75\x74\x69on f\x6f\x72 pr\x6f\x64\x75\x63\x74\x73 \x6fr\x20\x63o\x6db\x69nati\x6f\x6es\x20\x77\x69th\x6fut\x20\x72\x65fe\x72\x65nce"),"\x69c\x6f\x6e"=>"\x69\x63o\x6e-\x65n\x76\x65\x6c\x6f\x70e",),"\x73\x75bm\x69\x74"=>array("t\x69\x74\x6ce"=>$this->l("So\x6c\x75t\x69\x6fn \x66\x6fr \x70\x72o\x64\x75c\x74s\x20or c\x6fm\x62\x69na\x74\x69\x6fns\x20\x77ith\x6fu\x74\x20r\x65\x66\x65r\x65\x6ece"),"\x69\x63o\x6e"=>"\x69co\x6e-w\x61rn\x69\x6eg","c\x6cass"=>"ale\x72\x74-d\x61n\x67\x65r\x20b\x74\x6e bt\x6e-d\x65f\x61\x75\x6ct",)),);${${"GL\x4fB\x41\x4c\x53"}["x\x6d\x69t\x70\x69r\x65"]}=new HelperForm();$helper->identifier=$this->identifier;$helper->submit_action="\x63\x72\x65ate_re\x66\x65re\x6ece";$helper->currentIndex=$this->context->link->getAdminLink("\x41dm\x69\x6eM\x6f\x64\x75l\x65s",false)."\x26conf\x69\x67ure\x3d".$this->name."&\x74\x61b\x5fmo\x64\x75\x6ce=".$this->tab."\x26m\x6f\x64\x75\x6c\x65_n\x61me\x3d".$this->name;$helper->token=Tools::getAdminTokenLite("\x41dm\x69\x6e\x4d\x6f\x64\x75l\x65\x73");$svxpcrdwfnf="\x66\x69\x65\x6cd\x73\x5ffor\x6d";$this->_html.=$helper->generateForm(array(${$svxpcrdwfnf}));}else{$this->_html.="<form a\x63tion\x3d\x22".$_SERVER["\x52\x45Q\x55ES\x54\x5f\x55\x52I"]."\"\x20meth\x6fd=\"post\x22>\n\t\t\t\t\x3c\x66\x69\x65lds\x65\x74\x3e\n\t\t\t\t\x3c\x6c\x65ge\x6e\x64>\x3cim\x67 src=\".\x2e/i\x6dg/\x61\x64m\x69\x6e/co\x6etact\x2egi\x66\x22\x20/>".$this->l("\x53\x6f\x6c\x75\x74\x69\x6f\x6e f\x6f\x72 \x70rod\x75\x63t\x73\x20o\x72 \x63omb\x69nations\x20\x77\x69t\x68\x6f\x75\x74\x20\x72efe\x72\x65n\x63\x65")."</l\x65g\x65nd>\n\t\t\t\t\x3cta\x62l\x65 bo\x72\x64er=\x220\" \x77i\x64\x74\x68\x3d\x225\x300\" cel\x6c\x70\x61d\x64\x69\x6eg\x3d\x220\"\x20c\x65\x6c\x6csp\x61cing\x3d\"0\x22 i\x64\x3d\x22\x66orm\"\x3e\n\t\t\t\t<tr><\x74d\x20co\x6c\x73\x70\x61\x6e\x3d\"\x32\x22\x20\x61\x6cig\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\x3c\x62\x72\x20/\x3e<\x69nput\x20\x63\x6c\x61ss=\x22bu\x74to\x6e\"\x20\x6eam\x65\x3d\"cre\x61\x74e\x5f\x72\x65f\x65re\x6ece\x22\x20\x76a\x6c\x75e=\"".$this->l("\x53o\x6c\x75t\x69\x6fn\x20\x66o\x72 \x70\x72od\x75cts\x20\x6f\x72 c\x6fmb\x69\x6ea\x74i\x6f\x6es\x20\x77it\x68\x6f\x75\x74 refe\x72\x65\x6ec\x65")."\x22 ty\x70e\x3d\x22\x73ubm\x69t\x22 /\x3e\x3c/\x74\x64>\x3c/tr>\n\t\t\t\t\t\n\t\t\t\t\x3c/t\x61b\x6c\x65\x3e\n\t\t\t\t</\x66ie\x6cdse\x74\x3e\n\t\t\t\t\x3c/fo\x72\x6d\x3e";}}if(version_compare(_PS_VERSION_,"\x31\x2e\x35")>=0){${"\x47LO\x42\x41\x4c\x53"}["nm\x68\x78c\x73i"]="\x66\x69\x65\x6c\x64s\x5f\x66\x6f\x72\x6d1";${"\x47LOB\x41\x4c\x53"}["q\x61\x64\x69\x69\x6f\x6a\x63\x64"]="Maxi";$nuwpaixgzdv="\x69";${${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x6dh\x78\x63\x73\x69"]}=array("\x66o\x72\x6d"=>array("l\x65\x67\x65\x6ed"=>array("\x74itl\x65"=>$this->l("\x50\x61\x72\x61me\x74e\x72\x73\x44ol\x69b\x61r\x72"),"\x69con"=>"\x69\x63o\x6e-en\x76\x65lop\x65"),"\x69np\x75t"=>array(array("\x74\x79\x70e"=>"\x74ex\x74","\x6cabe\x6c"=>$this->l("\x55RL\x73hop"),"name"=>"\x55RLs\x68op","\x73\x69\x7a\x65"=>100,"dis\x61b\x6ce\x64"=>true),array("\x74\x79\x70\x65"=>"t\x65x\x74","\x6cab\x65l"=>$this->l("UR\x4cWs"),"\x6e\x61\x6de"=>"\x55\x52LWs","siz\x65"=>100,"\x64\x69sab\x6ced"=>true),),),);$htnyrkpcmyd="lan\x67";${"GL\x4f\x42\x41\x4c\x53"}["y\x74rq\x75f"]="\x65\x6d\x70l\x6fy\x65s";${${"G\x4cO\x42AL\x53"}["\x6fq\x73ft\x79ug\x6f"]}=Employee::getEmployees();${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x64\x74v\x6dd"]="\x69";${${"\x47LO\x42A\x4c\x53"}["\x71a\x64\x69i\x6f\x6a\x63d"]}=count(${${"GL\x4f\x42\x41\x4cS"}["y\x74rq\x75\x66"]});for(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x78\x69b\x70\x71r"]}=0;${$nuwpaixgzdv}<${${"\x47LO\x42\x41LS"}["\x73\x6c\x71\x6e\x6dikao"]};${${"\x47\x4c\x4f\x42ALS"}["\x6d\x64\x74\x76\x6d\x64"]}++){${"GL\x4f\x42\x41L\x53"}["vq\x69\x70\x6cz\x6e\x77"]="\x69";${"\x47\x4cOBA\x4c\x53"}["\x73\x71\x6a\x6bs\x73\x65uho"]="\x69";$iyqxwtsejb="i";${${"\x47LO\x42\x41\x4c\x53"}["\x6fq\x73\x66\x74\x79\x75\x67\x6f"]}[${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76qipl\x7a\x6e\x77"]}]["n\x61\x6d\x65"]=${${"G\x4cO\x42\x41L\x53"}["\x6fq\x73\x66\x74\x79\x75\x67\x6f"]}[${$iyqxwtsejb}]["fi\x72st\x6e\x61me"]."\x20".${${"\x47\x4c\x4fB\x41\x4cS"}["\x6f\x71\x73\x66ty\x75g\x6f"]}[${${"\x47\x4cO\x42\x41L\x53"}["s\x71j\x6b\x73\x73\x65\x75h\x6f"]}]["l\x61st\x6eam\x65"];}${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x76f\x6d\x6aej"]}=array("f\x6f\x72m"=>array("\x6c\x65\x67en\x64"=>array("\x74it\x6ce"=>$this->l("P\x61\x72\x61\x6de\x74\x65rs"),"\x69\x63\x6fn"=>"ic\x6f\x6e-\x65\x6ev\x65l\x6fp\x65"),"\x69npu\x74"=>array(array("\x74\x79p\x65"=>"t\x65\x78t","\x6c\x61b\x65\x6c"=>$this->l("\x43\x6f\x6e\x66i\x67\x75r\x61t\x69on\x20d\x69r\x65c\x74\x6f\x72\x79"),"\x6eam\x65"=>"\x70\x72es\x74\x61_co\x6e\x66\x5fdi\x72","si\x7ae"=>100,"req\x75\x69r\x65d"=>true),array("ty\x70\x65"=>"t\x65\x78\x74","la\x62\x65l"=>$this->l("P\x72e\x73t\x61s\x68\x6f\x70 \x64\x69r\x65c\x74\x6f\x72y"),"\x6e\x61\x6de"=>"w\x73\x5fps\x5f\x72\x6fo\x74\x64ir","siz\x65"=>100,"\x72e\x71u\x69red"=>true,),array("\x74y\x70e"=>"\x73\x65\x6cect","l\x61\x62\x65l"=>$this->l("\x4c\x61n\x67\x75\x61\x67e"),"n\x61\x6de"=>"\x65\x63\x6fm_\x6can\x67","\x72e\x71\x75\x69\x72e\x64"=>true,"op\x74i\x6f\x6e\x73"=>array("\x71\x75\x65\x72\x79"=>Language::getLanguages(),"\x69d"=>"\x69d_la\x6e\x67","\x6ea\x6de"=>"nam\x65")),array("\x74yp\x65"=>"\x73ele\x63t","\x6ca\x62\x65l"=>$this->l("Emplo\x79e"),"\x6ea\x6de"=>"ps\x5fid\x5f\x65mplo\x79e","req\x75i\x72ed"=>true,"\x6f\x70t\x69\x6fn\x73"=>array("que\x72\x79"=>${${"G\x4c\x4fBA\x4cS"}["\x6f\x71s\x66\x74y\x75\x67\x6f"]},"i\x64"=>"id\x5fem\x70\x6coy\x65e","\x6eame"=>"n\x61me")),array("\x74y\x70e"=>"tex\x74","l\x61b\x65l"=>$this->l("\x44is\x63o\x75nt\x20Tax\x20ra\x74\x65"),"nam\x65"=>"disc\x6f\x75\x6et_\x74\x61x_\x72\x61te","s\x69\x7a\x65"=>100,"\x64\x65s\x63"=>$this->l("\x56\x41T \x72a\x74e\x20\x66\x6fr d\x69sco\x75\x6et\x20\x6cin\x65s in\x20\x6f\x72de\x72s (\x63\x6fu\x70o\x6e\x73, \x65\x74c)")),array("t\x79pe"=>"t\x65\x78\x74","\x6c\x61\x62\x65l"=>$this->l("I\x6d\x61\x67\x65 U\x52L"),"na\x6d\x65"=>"\x70\x72\x65s\x74a_im\x67_u\x72l","siz\x65"=>100,"\x72\x65q\x75\x69\x72ed"=>true,"\x64es\x63"=>$this->l("\x50\x6ce\x61se\x20\x73\x70ec\x69\x66\x79\x20t\x68e\x20\x55\x52\x4c \x69\x6dag\x65")),array("t\x79pe"=>"te\x78\x74","\x6c\x61bel"=>$this->l("P\x6ceas\x65\x20\x73\x70\x65\x63\x69fy\x20t\x68e\x20open\x69n\x67\x20da\x74e\x20o\x66\x20\x79\x6fur \x73i\x74\x65"),"\x6e\x61\x6d\x65"=>"eco\x6d\x5f\x64\x61\x74\x65\x5fini","r\x65\x71u\x69\x72e\x64"=>true,"\x73\x69\x7ae"=>100,"\x64es\x63"=>$this->l("Form\x61\x74: dd/mm/yyy\x79")),array("\x74y\x70e"=>"text","labe\x6c"=>$this->l("Inv\x6fic\x65 \x64i\x72\x65\x63\x74o\x72\x79"),"\x6e\x61\x6d\x65"=>"\x64ol\x69_i\x6ev\x6f\x69\x63\x65\x5f\x64i\x72","size"=>100,"\x64\x65\x73c"=>$this->l("Pl\x65a\x73e \x65\x6ete\x72\x20\x74\x68e \x72\x6fo\x74\x20\x6f\x66 in\x76o\x69ce\x20\x64i\x72\x65c\x74ory'\x73\x20path ")),array("\x74\x79p\x65"=>"t\x65x\x74","labe\x6c"=>$this->l("We\x62s\x65r\x76\x69c\x65s\x20d\x69rect\x6f\x72\x79"),"n\x61m\x65"=>"\x64ol\x69_w\x65bse\x72\x76i\x63es\x5fdir","\x72e\x71\x75ir\x65\x64"=>true,"s\x69z\x65"=>100,"\x64es\x63"=>$this->l("P\x6ce\x61s\x65 \x65\x6e\x74\x65\x72 \x74\x68e ro\x6f\x74\x20\x6ff \x64ol\x69\x62\x61\x72\x72 \x77ebs\x65\x72\x76ice\x73 di\x72ec\x74\x6f\x72\x79'\x73\x20\x70\x61th ")),array("typ\x65"=>"t\x65\x78t","la\x62e\x6c"=>$this->l("\x41PI \x4b\x65y"),"\x6ea\x6de"=>"d\x6f\x6c\x69\x5f\x77\x65\x62\x73\x65\x72\x76i\x63\x65\x73\x5fa\x70\x69\x6b\x65\x79","\x73\x69\x7ae"=>100,"\x72equ\x69red"=>true,"\x64e\x73\x63"=>$this->l("P\x6cease\x20e\x6et\x65\x72\x20\x74h\x65 \x61p\x69k\x65y\x20\x6f\x66\x20\x44\x6fli\x62\x61\x72r\x20we\x62\x73\x65rv\x69\x63es ")),array("t\x79pe"=>"\x74\x65\x78t","\x6c\x61b\x65\x6c"=>$this->l("\x49\x64\x20\x65\x63omme\x72c\x65 d\x6f\x6ci\x62a\x72r"),"\x6ea\x6de"=>"\x64o\x6c\x69_webs\x65rv\x69ces\x5fs\x69t\x65","req\x75\x69r\x65\x64"=>true,"size"=>100,"\x64e\x73c"=>$this->l("P\x6ce\x61se\x20en\x74\x65\x72\x20\x74he\x20i\x64\x20of\x20\x64\x6f\x6c\x69\x62ar\x72\x20s\x69\x74e\x63\x6f\x6dme\x72\x63e ")),),"\x73u\x62m\x69\x74"=>array("titl\x65"=>$this->l("U\x70\x64\x61t\x65 s\x65tt\x69\x6eg\x73"),)),);${${"GL\x4f\x42\x41LS"}["\x78\x6d\x69t\x70\x69\x72\x65"]}=new HelperForm();$helper->show_toolbar=false;$helper->table=$this->table;$njtphddy="fi\x65ld\x73\x5f\x66\x6f\x72\x6d\x31";${$htnyrkpcmyd}=new Language((int)Configuration::get("\x50S_LAN\x47\x5f\x44\x45FAUL\x54"));$helper->default_form_language=$lang->id;$helper->allow_employee_form_lang=Configuration::get("\x50\x53\x5fBO_AL\x4cOW\x5f\x45\x4d\x50\x4c\x4f\x59\x45\x45\x5fFORM_L\x41\x4e\x47")?Configuration::get("P\x53_\x42O_\x41LLO\x57_\x45M\x50\x4c\x4fYEE_\x46O\x52\x4d\x5f\x4c\x41\x4eG"):0;$this->fields_form=array();$helper->id=(int)Tools::getValue("i\x64\x5f\x63\x61r\x72\x69er");$helper->identifier=$this->identifier;$helper->submit_action="\x62\x74nS\x75\x62\x6di\x74";$helper->currentIndex=$this->context->link->getAdminLink("A\x64m\x69nM\x6f\x64\x75l\x65\x73",false)."&conf\x69\x67\x75r\x65\x3d".$this->name."\x26t\x61\x62_\x6do\x64u\x6c\x65\x3d".$this->tab."&m\x6fd\x75le_name=".$this->name;$helper->token=Tools::getAdminTokenLite("A\x64mi\x6eM\x6f\x64u\x6c\x65s");$helper->tpl_vars=array("f\x69\x65\x6cd\x73_valu\x65"=>$this->getConfigFieldsValues(),"l\x61\x6e\x67u\x61ges"=>$this->context->controller->getLanguages(),"\x69d_language"=>$this->context->language->id);$this->_html.=$helper->generateForm(array(${$njtphddy},${${"\x47L\x4fB\x41L\x53"}["\x76\x66\x6d\x6ae\x6a"]}));}else{$jrsowggifqci="\x69\x64i\x6f\x6d\x61\x5fc\x6f\x6e\x66ig";$this->_html.="<f\x69e\x6c\x64\x73e\x74>\n\t\t\t\t<\x6ceg\x65\x6e\x64>\x3c\x69\x6d\x67 \x73\x72c=\".\x2e/\x69mg/\x61dmi\x6e/\x63\x6f\x6e\x74a\x63\x74.\x67i\x66\"\x20/\x3e".$this->l("\x50\x61r\x61m\x65\x74ers\x44\x6f\x6c\x69\x62arr")."\x3c/lege\x6e\x64\x3e\n\t\t\t\t\x3ct\x61\x62le\x20\x62\x6fr\x64\x65r=\"\x30\x22\x20wi\x64\x74h=\x22\x35\x300\x22\x20\x63\x65\x6clpa\x64di\x6e\x67=\x22\x30\x22 ce\x6c\x6cspac\x69ng\x3d\x22\x30\" \x69d=\"f\x6f\x72m\x22>\n\t\t\t\t\t<t\x72\x3e<\x74\x64\x3e".$this->l("UR\x4c\x73h\x6f\x70").":</\x74\x64>\x3c\x74d\x3e<in\x70\x75\x74 \x74y\x70e=\"\x74e\x78\x74\x22\x20\x73ty\x6c\x65=\"\x77id\x74\x68: \x3350\x70x\x3b\x22\x20v\x61l\x75\x65\x3d\x22".Tools::getHttpHost(true,true).__PS_BASE_URI__."\x22\x20\x72\x65ado\x6ely\x20/\x3e</td\x3e\x3c/\x74r\x3e\n\t\t\t\t\t\x3c\x74r>\x3c\x74\x64 \x63ols\x70\x61\x6e\x3d\"\x32\"\x3e<\x62\x72\x20/></t\x64\x3e</tr\x3e\n\t\t\t\t\t<\x74\x72\x3e\x3c\x74\x64\x3e".$this->l("\x55\x52L\x57\x73").":\x3c/\x74d><td\x3e\x3c\x69\x6eput\x20t\x79p\x65\x3d\x22\x74e\x78\x74\" sty\x6c\x65\x3d\"\x77\x69\x64\x74\x68:\x20\x33\x350p\x78\x3b\x22 v\x61lu\x65=\x22".Tools::getHttpHost(true,true).__PS_BASE_URI__."\x6do\x64ul\x65s/\x64\x6flipr\x65\x73t\x61/\x22\x20\x72e\x61d\x6fnl\x79\x20/\x3e\x3c/\x74\x64\x3e</tr>\n\t\t\t\t\t\x3c/table>\x3c/\x66\x69\x65ld\x73et\x3e";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x6c\x72g\x68d\x62\x66"]="l\x61n\x67u\x61\x67e\x73";$this->_html.="<\x66or\x6d ac\x74\x69\x6fn=\x22".$_SERVER["RE\x51UES\x54\x5f\x55R\x49"]."\x22\x20method\x3d\"p\x6f\x73t\"\x3e\n\t\t\t\t\x3cfiel\x64s\x65t>\n\t\t\t\t<\x6c\x65\x67e\x6ed\x3e\x3c\x69\x6dg\x20sr\x63=\x22.\x2e/\x69mg/\x61\x64m\x69\x6e/\x63o\x6e\x74\x61\x63t.\x67\x69f\"\x20/>".$this->l("P\x61\x72\x61\x6de\x74\x65r\x73")."</\x6ce\x67\x65\x6e\x64>\n\t\t\t\t\t<\x74a\x62l\x65 bo\x72\x64e\x72=\"0\" w\x69\x64\x74h\x3d\x22\x350\x30\"\x20cel\x6c\x70\x61\x64di\x6eg\x3d\"0\x22 ce\x6c\x6csp\x61\x63ing=\"\x30\x22\x20i\x64=\x22\x66\x6frm\">\n\t\t\t\t\t\t\x3ct\x72\x3e<td\x20\x63ol\x73\x70\x61\x6e=\"\x32\"\x3e".$this->l("P\x6ce\x61\x73\x65\x20\x65\x6e\x74\x65r t\x68\x65 con\x66\x69\x67\x75\x72ati\x6fn d\x69\x72\x65\x63t\x6fry\x27s \x55R\x4c ").".\x2e\x3c\x62r\x20/>\x3cb\x72 /\x3e<br\x20/\x3e\x3c/t\x64\x3e</t\x72\x3e\n\t\t\t\t\t\t<\x74r>\x3c\x74d \x77\x69d\x74h\x3d\"13\x30\x22\x20styl\x65=\x22h\x65i\x67\x68t: \x33\x35\x70\x78;\x22>".$this->l("Co\x6e\x66igurat\x69\x6f\x6e\x20d\x69rect\x6f\x72y")."\x3c/t\x64>\x3ct\x64><in\x70ut\x20ty\x70\x65=\x22text\" na\x6de=\"\x70r\x65\x73t\x61_c\x6f\x6ef_d\x69\x72\" valu\x65\x3d\x22".Tools::getValue("pr\x65st\x61_\x63\x6fn\x66\x5fd\x69r",$this->presta_conf_dir)."\x22\x20styl\x65\x3d\x22wi\x64t\x68:\x2030\x30\x70\x78;\"\x20/\x3e\x3c/t\x64\x3e\x3c/\x74\x72>\n\t\t\t\t\t\t\x3c\x74\x72\x3e<t\x64\x20c\x6fl\x73\x70a\x6e\x3d\x222\"><br />\x26n\x62\x73p\x3b<b\x72 /\x3e\x3c/\x74\x64></t\x72\x3e\n\t\t\t\t\t\t\x3c\x74\x72\x3e\x3c\x74d c\x6fls\x70\x61\x6e=\x22\x32\x22>".$this->l("\x50l\x65\x61se\x20e\x6et\x65\x72 \x50\x72es\x74\x61s\x68\x6fp \x64i\x72e\x63\x74o\x72\x79'\x73 U\x52L\x20").".\x2e<br\x20/\x3e<b\x72 /\x3e\x3c\x62r /\x3e</\x74\x64></tr\x3e\n\t\t\t\t\t\t\x3ctr>\x3c\x74d \x77i\x64th\x3d\"1\x330\x22 st\x79le=\x22\x68eig\x68\x74: 35p\x78\x3b\"\x3e".$this->l("\x50r\x65stash\x6fp\x20d\x69r\x65\x63to\x72y")."</\x74\x64><td\x3e\x3ci\x6epu\x74\x20t\x79p\x65\x3d\x22\x74\x65\x78t\x22\x20na\x6d\x65=\x22w\x73\x5f\x70\x73_r\x6f\x6f\x74d\x69r\" \x76alu\x65=\"".Tools::getValue("\x77s_\x70s\x5fro\x6ftdi\x72",$this->ws_ps_rootdir)."\" \x73t\x79le=\"\x77id\x74h:\x203\x30\x30px;\x22 />\x3c/td></\x74r\x3e\n\t\t\t\t\t\t<tr>\x3ct\x64 c\x6fls\x70an=\x222\"\x3e<\x62r /\x3e\x26nb\x73\x70;\x3cb\x72 /\x3e</\x74\x64>\x3c/\x74r\x3e\n\t\t\t\t\t\t<t\x72><\x74d\x20\x63\x6flsp\x61n=\"2\">".$this->l("\x53el\x65ct t\x68\x65 \x6ca\x6eg\x75a\x67\x65 \x6f\x66\x20y\x6f\x75\x72 \x73i\x74\x65:")."\x3c\x62\x72 /\x3e\x3c\x62r /\x3e\x3c\x62\x72 /></t\x64\x3e\x3c/t\x72>\n\t\t\t\t\t\t<\x74r\x3e\x3ct\x64\x20wid\x74\x68\x3d\"\x31\x330\"\x20s\x74\x79le=\x22h\x65\x69\x67\x68\x74:\x203\x35\x70x;\"\x3e".$this->l("L\x61\x6e\x67u\x61\x67\x65")."\x3c/td>\x3c\x74d>";$this->_html.="\x3c\x73\x65\x6c\x65\x63t nam\x65\x3d\"\x65\x63o\x6d_\x6can\x67\x22\x3e";${"\x47\x4c\x4fB\x41L\x53"}["\x70g\x78l\x66\x72t\x76"]="\x64\x65\x66\x61\x75l\x74\x4c\x61\x6e\x67\x75a\x67\x65";${${"G\x4cO\x42A\x4cS"}["\x70\x67\x78\x6c\x66\x72t\x76"]}=(int)Configuration::get("P\x53_L\x41N\x47\x5fD\x45\x46AULT");${"\x47L\x4fB\x41LS"}["\x70i\x64\x64o\x79\x67u\x78"]="\x6cang\x75\x61\x67\x65s";${${"GLOB\x41L\x53"}["\x77\x6c\x72\x67\x68\x64b\x66"]}=Language::getLanguages();${$jrsowggifqci}=(int)Tools::getValue("\x65\x63o\x6d_\x6cang",$this->ecom_lang);foreach(${${"\x47\x4c\x4f\x42\x41\x4cS"}["pi\x64\x64\x6f\x79\x67u\x78"]} as${${"G\x4cO\x42\x41\x4cS"}["\x76\x7agh\x78\x78\x70w\x73\x6az\x6a"]}){$this->_html.="<\x6fpti\x6fn\x20\x76\x61lu\x65=\"".${${"\x47\x4c\x4fB\x41\x4cS"}["vz\x67\x68\x78x\x70\x77sj\x7a\x6a"]}["\x69\x64\x5f\x6can\x67"]."\"";if(isset(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x67ellulk\x6d\x72z\x6am"]})){$nmnrsncety="i\x64i\x6f\x6d\x61\x5f\x63\x6fnf\x69\x67";if(${${"G\x4cO\x42\x41\x4cS"}["v\x7agh\x78xpw\x73jzj"]}["id\x5fl\x61ng"]==${$nmnrsncety}){$this->_html.="\x20s\x65\x6c\x65\x63ted";}}else{if(${${"GL\x4f\x42\x41\x4c\x53"}["vz\x67\x68\x78xp\x77\x73\x6a\x7a\x6a"]}["\x69\x64_l\x61ng"]==${${"\x47L\x4f\x42\x41\x4c\x53"}["q\x67\x63l\x6b\x76\x75"]}){$this->_html.=" \x73\x65\x6cected";}}$this->_html.=">".htmlentities(${${"G\x4cOBAL\x53"}["\x76\x7a\x67hx\x78p\x77\x73jz\x6a"]}["n\x61\x6d\x65"])."</o\x70\x74i\x6fn\x3e";}$this->_html.="\x3c/\x73e\x6c\x65\x63t>";$this->_html.="<t\x72\x3e\x3c\x74\x64 co\x6c\x73pan\x3d\"2\x22\x3e<\x62\x72 />\x26\x6ebsp\x3b<\x62\x72 /\x3e</\x74\x64\x3e</\x74r>\n\t\t\t\t\t\t\x3c\x74\x72>\x3c\x74d\x20\x63ol\x73\x70an\x3d\"2\">".$this->l("S\x65lect\x20a\x6e\x20e\x6d\x70\x6co\x79e\x65 w\x68\x6f\x20u\x73\x65\x64 D\x6f\x6c\x69pr\x65\x73ta \x74\x6f ma\x6b\x65 t\x68\x65 \x6eece\x73\x73ary\x20\x6fper\x61\x74ions:")."\x3c\x62\x72\x20/\x3e\n\t\t\t\t\t\t\x3cp \x73\x74yle=\"\x66\x6f\x6et-\x73\x69z\x65:\x20\x30\x2e\x38\x65m\x3b\x22>\x3cs\x70\x61\x6e\x20s\x74y\x6ce=\"co\x6c\x6fr:red\x22\x3e*</\x73pan>".$this->l("N\x6f\x74\x65 t\x68a\x74\x20t\x68\x65 \x65\x6dplo\x79\x65e mus\x74\x20\x68av\x65\x20\x70er\x6d\x69\x73\x73\x69\x6fns\x20\x74\x6f a\x63c\x65\x73s p\x72od\x75cts,\x20\x6fr\x64e\x72\x73\x20a\x6e\x64 \x75s\x65\x72\x73.")."</p\x3e\n\t\t\t\t\t\t\x3cb\x72 /\x3e\x3c/td>\x3c/t\x72\x3e";$this->_html.="\x3ct\x72\x3e\x3c\x74d \x63\x6flspa\x6e=\x222\"\x3e".$this->l("Pl\x65\x61\x73e\x20\x73p\x65\x63\x69\x66\x79 y\x6fu\x72 \x65\x6dploy\x65 \x49D")."\x2e\x3c\x62r\x20/\x3e\x3cb\x72 />\x3cbr /\x3e\x3c/\x74d></tr>\n\t\t\t\t\t\t\x3ctr\x3e<t\x64 w\x69\x64th\x3d\x221\x330\" s\x74\x79le=\"\x68e\x69gh\x74:\x20\x33\x35\x70\x78\x3b\">".$this->l("\x49D\x20e\x6d\x70\x6c\x6f\x79\x65")."\x3c/\x74\x64\x3e<\x74\x64\x3e<in\x70\x75t\x20t\x79pe=\"\x74ex\x74\x22 \x6ea\x6d\x65=\"ps\x5f\x69d\x5f\x65mp\x6coy\x65\" \x76al\x75\x65\x3d\x22".Tools::getValue("p\x73\x5f\x69d_\x65\x6d\x70\x6co\x79e",$this->ps_id_employe)."\x22 style=\"\x77i\x64\x74h: \x33\x30\x30\x70\x78;\" />\x3c/t\x64></tr\x3e";$this->_html.="\x3c/td\x3e</t\x72>\n\t\t\t\t\t\t\x3c\x74\x72><\x74d\x20\x63o\x6c\x73\x70\x61\x6e\x3d\x222\x22\x3e\x3cbr /\x3e\x26nbsp;\x3cbr\x20/></\x74\x64>\x3c/\x74\x72>\n\t\t\t\t\t\t<\x74r\x3e<\x74d col\x73\x70an\x3d\x222\x22>".$this->l("\x50l\x65a\x73\x65 s\x70\x65c\x69fy \x79ou\x72\x20\x63u\x73to\x6d\x65r Co\x64e")."\x2e<\x62\x72 /\x3e\n\t\t\t\t\t\t\x3cp s\x74y\x6ce=\x22f\x6f\x6et-si\x7ae: \x30\x2e\x38em\x3b\">\x3cs\x70\x61\x6e\x20styl\x65\x3d\x22\x63\x6flor:\x72\x65d\x22\x3e*\x3c/\x73pan>".$this->l("You\x20\x68\x61v\x65\x20to\x20con\x66ig\x75\x72\x65\x20th\x65\x20mo\x64u\x6ces\x20i\x6e Do\x6cib\x61rr of\x20n\x75\x6d\x65\x72ati\x6fn c\x6f\x72\x72e\x63\x74l\x79 to\x20av\x6f\x69d erro\x72s\x20a\x6e\x64\x20conf\x6ci\x63t\x73.\x20\x4ce\x61ve\x20em\x70ty \x69f\x20\x69\x6e\x20dou\x62t.")."</p>\x3c/\x74d>\x3c/\x74r>\n\t\t\t\t\t\t<tr\x3e<\x74\x64 \x77\x69\x64th\x3d\x22130\x22 \x73t\x79l\x65=\"he\x69\x67ht:\x20\x335\x70x\x3b\x22\x3e".$this->l("\x43o\x64e \x63u\x73\x74\x6fm\x65\x72")."</\x74d>\x3ct\x64><i\x6e\x70ut typ\x65=\x22\x74\x65\x78\x74\x22\x20\x6ea\x6de\x3d\"\x70s_\x63\x6f\x64\x65_\x63us\x74om\x65r\"\x20v\x61\x6cue=\x22".Tools::getValue("\x70s_\x63\x6f\x64e\x5fcust\x6fmer",$this->ps_code_customer)."\" style\x3d\"wid\x74\x68:\x20300px\x3b\"\x20/\x3e</\x74d\x3e\x3c/tr\x3e\n\t\t\t\t\t\t<t\x72>\x3c\x74\x64 \x63\x6flspan=\x222\"><\x62\x72\x20/\x3e\x26\x6eb\x73\x70\x3b\x3c\x62r />\x3c/t\x64></t\x72>\n\t\t\t\t\t\t\x3c\x74r\x3e<\x74\x64\x20col\x73p\x61n\x3d\x222\"\x3e".$this->l("VAT\x20ra\x74\x65 fo\x72 d\x69sco\x75n\x74\x20\x6c\x69\x6ees\x20\x69n or\x64\x65\x72\x73\x20(c\x6fu\x70\x6fns, \x65\x74c)")."\x2e\x3c\x62r /\x3e\x3cbr\x20/></t\x64></\x74r\x3e\n\t\t\t\t\t\t\x3c\x74\x72\x3e<td\x20\x77\x69\x64t\x68=\x221\x33\x30\x22\x20sty\x6c\x65\x3d\x22he\x69\x67ht: 35p\x78\x3b\"\x3e".$this->l("\x44i\x73\x63o\x75\x6e\x74\x20\x54ax \x72a\x74\x65")."\x3c/\x74d><t\x64\x3e\x3c\x69\x6e\x70\x75t \x74y\x70e=\"\x74\x65\x78\x74\x22 \x6e\x61m\x65=\"\x64\x69\x73\x63o\x75nt\x5f\x74ax\x5f\x72\x61\x74e\x22\x20v\x61\x6cu\x65=\x22".Tools::getValue("\x64is\x63ount\x5f\x74a\x78_\x72\x61\x74e",$this->discount_tax_rate)."\" \x73\x74\x79l\x65=\"\x77\x69d\x74h:\x20\x330\x30p\x78\x3b\" /></t\x64>\x3c/\x74r>\n\t\t\t\t\t\t<t\x72\x3e<\x74\x64\x20co\x6c\x73p\x61\x6e=\x22\x32\"><\x62r\x20/>&nb\x73p;<\x62\x72\x20/\x3e\x3c/td>\x3c/t\x72\x3e\n\t\t\t\t\t\t<t\x72><\x74d c\x6flsp\x61n=\x222\">".$this->l("Pl\x65\x61\x73e\x20sp\x65c\x69\x66\x79\x20y\x6f\x75\x72 \x6fr\x64e\x72\x20C\x6f\x64\x65")."\x2e\x3c\x62r /\x3e\n\t\t\t\t\t\t<p st\x79\x6ce=\"\x66o\x6e\x74-\x73\x69\x7ae: \x30.8e\x6d;\"><spa\x6e\x20sty\x6c\x65\x3d\x22\x63o\x6c\x6fr:\x72\x65\x64\">*</\x73\x70a\x6e>".$this->l("\x59ou\x20ha\x76\x65\x20\x74o\x20\x63\x6fn\x66\x69\x67u\x72\x65\x20\x74he m\x6f\x64\x75\x6ces\x20\x69n Do\x6c\x69barr o\x66 n\x75m\x65\x72a\x74i\x6f\x6e \x63\x6frre\x63tly\x20t\x6f\x20avo\x69d e\x72r\x6frs \x61nd\x20c\x6fnf\x6c\x69c\x74\x73. \x4ce\x61\x76e \x65m\x70\x74y\x20\x69f\x20in\x20do\x75\x62t\x2e")."\x3c/\x70>\x3c/\x74\x64\x3e</t\x72>\n\t\t\t\t\t\t\x3c\x74r\x3e\x3ct\x64 w\x69\x64t\x68=\"1\x330\x22\x20\x73t\x79l\x65=\x22he\x69\x67h\x74:\x2035p\x78;\x22\x3e".$this->l("\x43o\x64e \x6f\x72d\x65\x72")."</t\x64><td\x3e\x3c\x69\x6e\x70\x75t\x20t\x79\x70e=\x22\x74e\x78t\x22 \x6e\x61me\x3d\"p\x73\x5f\x63od\x65_\x6frde\x72\" \x76alue\x3d\"".Tools::getValue("\x70\x73\x5f\x63ode_\x6fr\x64e\x72",$this->ps_code_order)."\"\x20\x73\x74\x79\x6c\x65\x3d\x22w\x69\x64\x74h:\x20300\x70x;\x22\x20/\x3e</\x74d></t\x72>\n\t\t\t\t\t\t<tr\x3e<\x74d\x20\x63o\x6csp\x61\x6e=\"2\x22\x3e<b\x72 /\x3e\x26n\x62\x73\x70;\x3cb\x72 /></\x74\x64\x3e</\x74r>\n\t\t\t\t\t\t<\x74\x72>\x3c\x74d\x20\x63o\x6csp\x61\x6e=\x22\x32\">".$this->l("P\x6cea\x73e \x73\x70\x65\x63i\x66y \x74h\x65 \x55\x52L\x20i\x6dage").".\x3c\x62r\x20/\x3e<br />\x3c\x62\x72\x20/\x3e\x3c/\x74\x64\x3e</t\x72\x3e\n\t\t\t\t\t\t<t\x72>\x3ct\x64\x20\x77i\x64t\x68\x3d\x221\x330\x22 s\x74\x79\x6c\x65=\"heig\x68t: \x33\x35\x70x\x3b\x22\x3e".$this->l("\x49\x6d\x61g\x65\x20\x55\x52\x4c")."</t\x64><t\x64\x3e<\x69n\x70ut \x74yp\x65\x3d\x22\x74ex\x74\"\x20\x6e\x61me=\"p\x72e\x73t\x61_i\x6d\x67\x5f\x75\x72\x6c\x22\x20value=\x22";if(Tools::getValue("\x70\x72\x65\x73ta\x5fi\x6dg\x5f\x75rl",$this->presta_img_url))$this->_html.=Tools::getValue("pr\x65s\x74\x61\x5fim\x67\x5f\x75rl",$this->presta_img_url);else{$this->_html.=Tools::getHttpHost(true,true).__PS_BASE_URI__."\x69\x6dg/\x70/";}$this->_html.="\"\x20\x73t\x79\x6c\x65=\"\x77i\x64\x74h: \x3300px;\x22\x20/\x3e</\x74d\x3e</\x74r>\n\t\t\t\t\t\t\x3c\x74r\x3e<t\x64\x20\x63ol\x73\x70an\x3d\x222\x22\x3e\x3c\x62r\x20/\x3e\x26nbsp;<\x62\x72\x20/\x3e\x3c/\x74\x64></t\x72>\n\t\t\t\t\t\t\x3ctr>\x3c\x74d c\x6f\x6csp\x61n\x3d\"\x32\x22\x3e".$this->l("P\x6ce\x61\x73e\x20\x73\x70ec\x69fy\x20t\x68e\x20\x6f\x70e\x6ei\x6e\x67 da\x74\x65 o\x66 \x79\x6f\x75r\x20\x73\x69te").".\x3c\x62\x72 /><\x62r />\x3c/\x74\x64>\x3c/t\x72>\n\t\t\t\t\t\t\x3c\x74r\x3e<\x74\x64 wid\x74h\x3d\x22\x3130\x22 s\x74yl\x65\x3d\x22h\x65\x69\x67\x68\x74:\x20\x335px\x3b\x22>".$this->l("\x4fpe\x6ein\x67\x20d\x61\x74\x65")."\x3c/t\x64\x3e\x3c\x74\x64><\x69n\x70\x75t \x74\x79\x70\x65=\"\x74\x65\x78\x74\x22 \x6ea\x6d\x65\x3d\"ec\x6f\x6d\x5f\x64at\x65\x5fin\x69\x22 \x76\x61l\x75e=\x22".Tools::getValue("\x65\x63o\x6d_d\x61t\x65\x5fin\x69",$this->ecom_date_ini)."\" \x73\x74\x79le\x3d\"\x77i\x64\x74\x68: 300p\x78\x3b\x22 /\x3e</\x74\x64></\x74r\x3e\n\t\t\t\t\t\t<\x74r><t\x64 \x63\x6fls\x70\x61\x6e=\"\x32\x22\x3e<br />\x26n\x62s\x70;\x3c\x62r />\x3c/t\x64\x3e\x3c/t\x72\x3e\n\t\t\t\t\t\t<\x74r><t\x64\x20\x63\x6f\x6c\x73pa\x6e\x3d\"\x32\x22\x3e".$this->l("Pl\x65\x61se \x65n\x74e\x72 \x74he\x20\x72\x6f\x6ft\x20o\x66\x20invoice\x20di\x72\x65\x63\x74\x6fry\x27s\x20\x70\x61\x74h\x20")."\x2e\x2e<\x62r\x20/\x3e</\x74d\x3e\x3c/\x74r>\n\t\t\t\t\t\t<t\x72\x3e<td\x20w\x69\x64th=\"\x31\x330\x22 s\x74\x79le\x3d\"\x68e\x69ght: \x335p\x78;\x22>".$this->l("In\x76o\x69c\x65 d\x69\x72e\x63t\x6f\x72\x79")."\x3c/\x74\x64><t\x64><inp\x75t \x74ype\x3d\x22\x74e\x78t\"\x20\x6ea\x6de\x3d\x22d\x6f\x6c\x69\x5finv\x6f\x69\x63e\x5f\x64\x69\x72\" v\x61\x6c\x75\x65\x3d\"";if(Tools::getValue("do\x6ci_\x69n\x76\x6fi\x63\x65_d\x69\x72",$this->doli_invoice_dir))$this->_html.=Tools::getValue("d\x6fl\x69\x5f\x69\x6e\x76\x6f\x69\x63\x65\x5fd\x69\x72",$this->doli_invoice_dir);else$this->_html.=_PS_MODULE_DIR_."doli\x70r\x65s\x74a/\x74\x6d\x70/";$this->_html.="\x22\x20\x73t\x79l\x65\x3d\"\x77idt\x68:\x20\x33\x30\x30p\x78\x3b\"\x20/></t\x64></\x74r>\n\t\t\t\t\t\t\x3ctr>\x3ct\x64\x20\x63olspa\x6e\x3d\"\x32\x22>\x3cbr /\x3e\x26\x6eb\x73p;\x3c\x62r\x20/\x3e\x3c/t\x64\x3e</\x74r>\n\t\t\t\t\t\t<t\x72\x3e\x3c\x74d \x63\x6f\x6csp\x61n=\"2\">".$this->l("\x50\x6ce\x61\x73\x65\x20ent\x65\x72 t\x68\x65\x20\x72\x6f\x6ft\x20\x6ff\x20\x64ol\x69\x62\x61rr\x20\x77\x65b\x73\x65\x72\x76ice\x73\x20\x64\x69\x72ectory'\x73 p\x61t\x68\x20")."\x2e.<br\x20/\x3e</\x74d\x3e\x3c/\x74\x72>\n\t\t\t\t\t\t<t\x72\x3e\x3c\x74d wi\x64th=\"1\x330\"\x20\x73t\x79\x6c\x65\x3d\x22heigh\x74:\x2035p\x78\x3b\x22\x3e".$this->l("W\x65bs\x65\x72vic\x65s di\x72ector\x79")."</t\x64><td>\x3c\x69np\x75t \x74ype=\"\x74\x65x\x74\x22\x20na\x6de\x3d\x22d\x6f\x6ci\x5f\x77e\x62s\x65\x72\x76\x69ces_\x64\x69\x72\"\x20v\x61lu\x65\x3d\"".Tools::getValue("dol\x69_\x77\x65b\x73e\x72\x76\x69ces\x5f\x64\x69\x72",$this->doli_webservices_dir)."\"\x20s\x74y\x6ce=\x22wid\x74h:\x2030\x30px\x3b\x22 />\x3c/\x74\x64>\x3c/\x74r>\n\t\t\t\t\t\t<\x74\x72>\x3c\x74\x64\x20c\x6f\x6csp\x61\x6e\x3d\x22\x32\x22\x3e\x3cbr\x20/\x3e\x26\x6e\x62s\x70;<b\x72 />\x3c/\x74d\x3e</\x74r\x3e\n\t\t\t\t\t\t<tr\x3e<td\x20c\x6flspa\x6e=\x222\"\x3e".$this->l("\x50\x6cease\x20e\x6et\x65\x72 \x74\x68\x65\x20id\x20o\x66 \x64\x6f\x6ci\x62ar\x72\x20s\x69\x74ec\x6fm\x6de\x72\x63e\x20").".\x2e\x3cb\x72 /\x3e\x3c/td></tr>\n\t\t\t\t\t\t\x3c\x74\x72\x3e<t\x64 \x77id\x74\x68\x3d\x22\x31\x33\x30\x22\x20st\x79\x6c\x65=\"\x68\x65igh\x74:\x20\x33\x35\x70x\x3b\">".$this->l("Id\x20e\x63\x6fmme\x72c\x65 d\x6fl\x69\x62\x61\x72r")."\x3c/\x74d\x3e<td>\x3c\x69\x6ep\x75t \x74y\x70e=\"t\x65\x78\x74\x22\x20\x6e\x61\x6d\x65\x3d\x22\x64\x6f\x6ci_w\x65\x62\x73\x65\x72vic\x65\x73_s\x69te\x22 val\x75e=\"".Tools::getValue("\x64\x6fli\x5fw\x65\x62s\x65\x72v\x69ce\x73_s\x69te",$this->doli_webservices_site)."\" \x73tyl\x65=\"\x77\x69dt\x68: 3\x30\x30\x70x;\x22\x20/></td\x3e\x3c/\x74r>\n\t\t\t\t\t\t\x3c\x74r>\x3c\x74\x64\x20co\x6c\x73\x70an=\x222\"\x3e\x3c\x62\x72\x20/>\x26\x6e\x62s\x70\x3b<\x62\x72 /\x3e</\x74\x64\x3e</tr\x3e\n\t\t\t\t\t\t\x3c\x74r\x3e\x3c\x74d\x20\x63\x6f\x6c\x73\x70\x61n\x3d\x222\">".$this->l("Ple\x61\x73\x65\x20enter\x20t\x68\x65 \x41P\x49\x20ke\x79\x20\x6f\x66 d\x6f\x6ci\x62ar\x72 \x77\x65\x62s\x65rvic\x65s ").".\x2e<\x62r\x20/>\x3c/\x74d\x3e</tr>\n\t\t\t\t\t\t\x3ct\x72\x3e\x3ctd\x20\x77\x69\x64\x74h\x3d\"1\x330\"\x20\x73\x74\x79le\x3d\"\x68eig\x68\x74: \x33\x35\x70\x78\x3b\x22>".$this->l("A\x50I \x4b\x65y")."\x3c/t\x64\x3e\x3c\x74\x64\x3e<\x69\x6ep\x75\x74\x20type=\"\x74\x65xt\x22\x20n\x61\x6de=\x22\x64oli_we\x62s\x65r\x76\x69ce\x73\x5fapik\x65y\"\x20va\x6cue=\x22".Tools::getValue("\x64o\x6ci_w\x65\x62s\x65r\x76\x69c\x65\x73_\x61p\x69\x6b\x65\x79",$this->doli_webservices_apikey)."\x22 s\x74y\x6ce=\"w\x69\x64\x74\x68:\x20\x3300px;\x22\x20/>\x3c/\x74d>\x3c/\x74\x72>\n\t\t\t\t\t\t<t\x72\x3e<\x74d co\x6c\x73\x70a\x6e=\x22\x32\"\x3e\x3c\x62r /\x3e&n\x62s\x70;\x3cbr\x20/\x3e\x3c/\x74\x64\x3e</tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\x3ctr>\x3ct\x64 co\x6cs\x70\x61n=\"\x32\"\x20\x61\x6cig\x6e\x3d\x22c\x65\x6e\x74e\x72\"\x3e\x3cbr />\x3c\x69n\x70\x75\x74 cl\x61\x73\x73=\"bu\x74\x74o\x6e\x22 n\x61\x6de=\x22\x62\x74\x6e\x53ub\x6d\x69\x74\" va\x6cu\x65=\x22".$this->l("\x55\x70d\x61t\x65\x20\x73\x65t\x74\x69n\x67s")."\" ty\x70\x65=\"\x73ubmit\"\x20/\x3e\x3c/t\x64></\x74r\x3e\n\t\t\t\t\t\t\n\t\t\t\t</\x74\x61\x62le\x3e\n\t\t\t\t\x3c/\x66i\x65l\x64\x73et>\n\t\t\t\x3c/f\x6frm\x3e";}}}public function getContent(){$this->_html="<\x68\x32>".$this->displayName."</\x68\x32\x3e";if(!empty($_POST["\x63reat\x65\x5fr\x65\x66\x65\x72\x65\x6ece"])){${"G\x4cOBA\x4c\x53"}["\x68\x70\x77\x70\x65\x77\x79\x78a\x6e"]="\x73\x71\x6c\x73";$fjfxkddyrhdw="\x73q\x6c\x73";${$fjfxkddyrhdw}=array();$nmycudod="s\x71\x6cs";${${"\x47\x4c\x4fB\x41L\x53"}["\x68\x70w\x70ewy\x78\x61\x6e"]}[]="U\x50\x44A\x54\x45\x20"._DB_PREFIX_."\x70\x72o\x64\x75\x63\x74\x20\x53\x45\x54\x20r\x65\x66\x65\x72e\x6ece =\x20\x69d_pro\x64\x75c\x74 WHE\x52E \x72e\x66ere\x6ec\x65\x20= ''";${$nmycudod}[]="U\x50D\x41\x54E\x20"._DB_PREFIX_."pr\x6fdu\x63\x74\x5fa\x74trib\x75te \x53ET \x72\x65\x66\x65\x72ence\x20= \x63onc\x61t(id_p\x72od\x75ct,\x20\x27_',\x20id_\x70\x72o\x64\x75\x63\x74\x5f\x61\x74tr\x69b\x75\x74\x65) \x57H\x45\x52\x45\x20\x72\x65fe\x72en\x63e = \x27'";foreach(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["m\x6d\x6fo\x68\x70\x73\x64"]} as${${"\x47\x4c\x4f\x42\x41LS"}["dy\x74\x72\x72s\x6c\x6e"]}){$ydryvxspui="\x73\x71\x6c";Db::getInstance()->executeS(${$ydryvxspui});}}if(!empty($_POST["\x62tn\x53ub\x6di\x74"])){$this->_postValidation();if(!count($this->_postErrors))$this->_postProcess();}else$this->_html.="\x3cbr\x20/>";$this->_displayDoliPresta();$this->_displayForm();return$this->_html;}public function hookorderConfirmation($params){}private function _get_domain(){${"\x47L\x4f\x42AL\x53"}["\x6e\x67\x6dt\x78\x64u\x76\x72t"]="u\x72\x6c";require_once(dirname(__FILE__)."/l\x69b/\x64\x6f\x6cipr\x65\x73t\x61\x2elib.ph\x70");${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6e\x67\x6d\x74\x78\x64\x75\x76rt"]}=getUrl();${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x66\x61t\x65y\x6f\x74j\x6d"]}=array("h\x74\x74\x70://","ht\x74ps://","\x66\x74p://","\x77w\x77\x2e");${${"GLO\x42\x41\x4cS"}["uhc\x6c\x6arb\x65"]}=explode("/",str_replace(${${"\x47\x4cOBA\x4cS"}["l\x66a\x74e\x79\x6f\x74\x6a\x6d"]},"",${${"G\x4c\x4f\x42A\x4cS"}["\x75h\x63\x6c\x6arb\x65"]}));return${${"G\x4c\x4fB\x41LS"}["uhcl\x6a\x72\x62\x65"]}[0];}private function codeValidate($serial,$name=""){${"\x47\x4c\x4f\x42\x41L\x53"}["\x66\x6d\x6ck\x6d\x72\x63"]="\x6e\x61\x6d\x65";return$this->_codeValidate(${${"G\x4c\x4fB\x41\x4cS"}["\x66\x72\x70\x73\x67\x70\x63"]},${${"\x47\x4c\x4f\x42A\x4cS"}["\x66\x6d\x6ckm\x72c"]});}private function _codeValidate($serial,$name=""){${"\x47\x4c\x4fB\x41\x4cS"}["y\x64\x68c\x69f\x73qbd\x68y"]="ser\x69a\x6c";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6d\x65\x78\x6dc\x67\x67\x6ebrm"]="\x74\x68\x69s\x6c\x65\x6e";${"\x47\x4c\x4f\x42A\x4c\x53"}["oe\x66g\x65xyng"]="\x73e\x72i\x61\x6c";$ffmpoche="\x74h\x69sl\x65n";$xckichbgvyzw="\x73\x65\x72i\x61\x6c";if(empty(${${"\x47\x4c\x4fB\x41LS"}["\x66\x72ps\x67\x70c"]})||${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fe\x66\x67\x65\x78\x79n\x67"]}==""){${"G\x4c\x4f\x42\x41L\x53"}["\x61\x71p\x6c\x62\x6a"]="n\x61\x6d\x65";if(${${"\x47\x4c\x4fB\x41\x4cS"}["a\x71\x70\x6c\x62\x6a"]}=="l\x6fc\x61lh\x6f\x73t"||${${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x6b\x71\x72tne\x67e\x6f\x78\x6d"]}=="do\x63\x6b\x65r\x2e\x6co\x63\x61l"){return true;}else{return false;}}$wyvwjnhrbv="\x73\x65\x72\x69\x61l";${"\x47\x4cO\x42\x41LS"}["\x69\x6dq\x6cwh\x67z\x75l"]="\x73\x65\x72\x69\x61\x6c";if($this->debug)print"<p>".__FUNCTION__."::\x63\x6c??\x20".${${"\x47L\x4fB\x41L\x53"}["\x66\x72\x70\x73gp\x63"]}." u\x72l ".${${"\x47\x4cO\x42\x41\x4cS"}["xk\x71\x72\x74\x6e\x65g\x65ox\x6d"]}."\x3c/\x70\x3e";$fbtlxikr="\x69\x6ei\x74\x6c\x65n";${${"G\x4c\x4fB\x41\x4c\x53"}["\x66rps\x67p\x63"]}=str_replace("-","",${$wyvwjnhrbv});${"\x47\x4cO\x42\x41LS"}["r\x67\x6bg\x66\x6b\x72c\x6c"]="\x73e\x72i\x61\x6c";$wkpznd="fu\x6c\x6c\x63o\x64\x65";${"\x47\x4cO\x42\x41LS"}["\x73n\x61\x7a\x65b\x6c\x6a\x6f"]="\x73\x65\x72\x69\x61\x6c";$cmfmqv="\x66u\x6c\x6c\x63\x6f\x64\x65";${${"\x47\x4c\x4fBA\x4cS"}["\x66rp\x73\x67\x70\x63"]}=strtoupper(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x6d\x71\x6cw\x68gzul"]});${"\x47L\x4f\x42\x41LS"}["\x76\x69m\x66\x72u\x7a\x73\x65\x6a\x74"]="\x74hi\x73\x6c\x65\x6e";${${"G\x4c\x4f\x42A\x4c\x53"}["\x72g\x6b\x67f\x6b\x72c\x6c"]}=str_replace(array("\x30","1","O","I",),array("","","","",),${$xckichbgvyzw});${$ffmpoche}=strlen(${${"G\x4c\x4f\x42\x41L\x53"}["fr\x70sgp\x63"]});$coxyese="\x73\x65\x72\x69\x61\x6c";$vkblua="i\x6e\x69tle\x6e";if($this->debug)print"\x3cp\x3e".__FUNCTION__."::cl?? ".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x6e\x61ze\x62\x6cj\x6f"]}." l\x6f\x6eg\x75\x65\x75\x72 ".$this->keylen." re\x65l\x20".${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6d\x65x\x6dcg\x67\x6eb\x72\x6d"]}."\x3c/\x70\x3e";if($this->keylen<>${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x76\x69\x6dfr\x75\x7as\x65jt"]})return false;${$fbtlxikr}=$this->_initLen();if($this->debug)print"\x3cp>".__FUNCTION__."::cl?? ".${${"\x47L\x4f\x42\x41\x4c\x53"}["y\x64\x68\x63i\x66\x73\x71b\x64h\x79"]}." i\x6ei\x74le\x6e\x20".${${"\x47LOB\x41\x4c\x53"}["l\x79\x7a\x6af\x65j\x78c\x77x\x62"]}."\x3c/p>";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x79\x65x\x64\x6f\x66\x63y\x69\x67\x6d"]}=substr(${${"\x47L\x4fB\x41LS"}["\x66\x72\x70\x73\x67p\x63"]},0,${$vkblua});$sklkwrtj="s\x65\x72\x69a\x6c";if($this->debug)print"<p\x3e".__FUNCTION__."::c\x6c?? ".${$sklkwrtj}." initco\x64\x65 ".${${"G\x4cOB\x41\x4cS"}["\x79\x65\x78\x64\x6f\x66c\x79\x69\x67\x6d"]}."</p>";${${"\x47\x4c\x4f\x42A\x4c\x53"}["w\x76t\x69\x78\x73c\x79\x76"]}=$this->_extendCode(${${"GLOBA\x4cS"}["y\x65\x78\x64o\x66cy\x69g\x6d"]},${${"G\x4c\x4f\x42\x41\x4cS"}["x\x6bq\x72\x74ne\x67\x65\x6f\x78\x6d"]});if($this->debug)print"\x3cp\x3e".__FUNCTION__."::\x63l??\x20".${$coxyese}."\x20\x65\x78\x74\x65n\x64cod\x65 ".${${"\x47L\x4fB\x41L\x53"}["w\x76ti\x78\x73\x63\x79\x76"]}."</p\x3e";${$cmfmqv}=substr(${${"\x47L\x4f\x42\x41\x4c\x53"}["wv\x74i\x78s\x63\x79v"]},0,$this->keylen);if($this->debug)print"<p>".__FUNCTION__."::\x63\x6c?? ".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66r\x70sg\x70\x63"]}." \x66\x75llc\x6fde\x20".${$wkpznd}."</\x70>";if(${${"\x47LO\x42\x41\x4cS"}["\x62ez\x6cqlf"]}==${${"G\x4cOBA\x4c\x53"}["f\x72\x70\x73g\x70\x63"]})return true;else{print"E\x48U\x56\x45".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x65\x7a\x6c\x71l\x66"]}."C\x4b\x4c\x41A";return false;}}private function _extendCode($initcode,$name){$itntwfwweou="\x69n\x69\x74\x63o\x64\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77w\x73j\x67n\x69l\x75\x68"]="\x701s\x74r";${"GL\x4f\x42\x41L\x53"}["\x65\x66y\x6e\x6el\x62\x70"]="\x70\x31\x73tr";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73o\x67w\x63j\x63\x6d\x72\x76\x70"]="\x73\x6f\x66\x74w\x61\x72e";${${"\x47\x4cOB\x41\x4c\x53"}["\x73o\x67\x77\x63\x6a\x63\x6drv\x70"]}=$this->name;${"\x47L\x4fBA\x4c\x53"}["\x6c\x6c\x79\x6a\x66s\x77\x6enks"]="\x73o\x66t\x77are";${${"\x47LO\x42\x41\x4c\x53"}["\x78\x6f\x68\x71n\x6a\x67\x76"]}=$this->_sumDigit(${${"\x47L\x4f\x42\x41\x4c\x53"}["y\x65\x78\x64o\x66c\x79\x69\x67\x6d"]});${"\x47\x4c\x4f\x42A\x4cS"}["\x79\x7alz\x73\x6e\x72n\x6c\x64x"]="\x70\x31\x73tr";${"GL\x4fB\x41\x4c\x53"}["\x67\x66\x6ak\x70\x6b\x77\x65"]="s\x6fft\x77\x61\x72e";${"G\x4c\x4fBALS"}["dmu\x64\x72\x6ass\x71\x65"]="\x70\x31s\x74\x72";if($this->debug)print"\x3c\x70>c\x6f\x64\x65 ".${${"G\x4c\x4f\x42\x41\x4cS"}["y\x65\x78dof\x63\x79i\x67\x6d"]}." n\x61m\x65 ".${${"\x47\x4cO\x42\x41LS"}["x\x6b\x71\x72tne\x67e\x6f\x78\x6d"]}." \x73o\x66t ".${${"\x47\x4cO\x42\x41\x4c\x53"}["\x67f\x6a\x6bp\x6b\x77e"]}." \x70\x6cstr\x20".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78o\x68\x71\x6e\x6ag\x76"]}."\x3c/\x70>";${${"\x47LO\x42\x41LS"}["e\x66\x79n\x6elb\x70"]}.=$this->_add32(${${"\x47\x4c\x4f\x42A\x4c\x53"}["y\x65x\x64\x6ff\x63\x79ig\x6d"]},${${"\x47L\x4f\x42\x41L\x53"}["\x78\x6bq\x72\x74n\x65\x67\x65\x6f\x78m"]}.${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6c\x6c\x79jf\x73\x77\x6e\x6ek\x73"]}."a\x62h\x69s\x68\x65k");${${"GL\x4fB\x41L\x53"}["\x78\x6f\x68\x71\x6e\x6a\x67\x76"]}=strtoupper(${${"\x47\x4c\x4fB\x41\x4c\x53"}["y\x7a\x6c\x7asnr\x6eld\x78"]});${"GLOBALS"}["\x78\x70c\x79\x77x\x65\x6cf\x66"]="\x65\x78t\x72\x61\x62\x69\x74";${${"G\x4c\x4f\x42\x41\x4cS"}["\x64m\x75\x64\x72j\x73\x73\x71\x65"]}=str_replace(array("\x30","1","\x4f","I",),array("","","","",),${${"\x47L\x4f\x42\x41L\x53"}["x\x6f\x68\x71\x6e\x6a\x67\x76"]});${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x72\x64f\x66wldv\x64\x73"]}=strlen(${${"\x47L\x4f\x42A\x4c\x53"}["ww\x73\x6a\x67\x6e\x69lu\x68"]});${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x70\x63y\x77\x78\x65lf\x66"]}="";${${"\x47LO\x42\x41\x4cS"}["\x70x\x69\x62\x70\x71r"]}=0;while(strlen(${${"\x47\x4c\x4f\x42A\x4c\x53"}["dl\x6b\x69vr"]})<$this->keylen-2){${"G\x4c\x4f\x42\x41L\x53"}["x\x6eu\x70\x75\x70\x61wx\x68"]="\x70\x31\x73tr";${${"GL\x4fBA\x4c\x53"}["\x64l\x6bivr"]}.=substr(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78\x6e\x75\x70up\x61w\x78h"]},${${"GL\x4f\x42\x41\x4c\x53"}["\x70x\x69b\x70\x71\x72"]},1);$jfmprgbjuhd="\x701str";${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x64d\x74nyse\x6d\x72"]="\x65xtra\x62\x69\x74";$emkprgboqv="i";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73dd\x74\x6eys\x65\x6dr"]}.=substr(${$jfmprgbjuhd},${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x72df\x66\x77ld\x76\x64\x73"]}-${$emkprgboqv}-1,1);${${"GL\x4f\x42\x41\x4c\x53"}["\x70\x78\x69b\x70\x71\x72"]}++;}return${$itntwfwweou}.${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x6c\x6b\x69\x76\x72"]}."6\x46\x37\x35";}private function _sumDigit($str){${"G\x4c\x4fBA\x4c\x53"}["f\x62z\x66\x70d\x69\x6fbg\x76"]="\x61";$xwebbmw="i";${"G\x4c\x4f\x42\x41L\x53"}["\x78y\x6d\x6e\x68e"]="\x73\x75\x6d";$gtmndavu="\x73\x75\x6d";${"\x47\x4c\x4f\x42\x41\x4cS"}["c\x78a\x77w\x72"]="\x73\x75\x6d";$eanssirpya="\x73tr";${${"\x47\x4cO\x42\x41\x4cS"}["f\x62\x7a\x66\x70\x64\x69\x6f\x62g\x76"]}=str_split(${$eanssirpya});${${"G\x4cOB\x41L\x53"}["\x6au\x75\x66\x69\x79\x64"]}=0;for(${${"\x47L\x4fB\x41L\x53"}["\x70x\x69b\x70q\x72"]}=0;${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x78\x69b\x70\x71\x72"]}<count(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x65\x73\x66\x74\x65\x6c\x73\x65i\x75"]});${$xwebbmw}++)${${"\x47L\x4f\x42\x41L\x53"}["\x6a\x75\x75\x66\x69\x79\x64"]}=${$gtmndavu}+base_convert(${${"GLOB\x41LS"}["e\x73f\x74\x65\x6c\x73\x65iu"]}[${${"\x47\x4cOB\x41\x4c\x53"}["p\x78\x69b\x70\x71r"]}],36,10);${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x72\x70\x6e\x6fhsd\x63lb"]="s\x75\x6d";${${"\x47\x4cOBA\x4c\x53"}["xymn\x68e"]}=str_replace(array("0","1","\x4f","I","\x6f","\x69"),array("\x41\x5a","BY","29","3\x38","2\x39","\x33\x38",),${${"\x47L\x4fB\x41L\x53"}["\x63\x78\x61\x77\x77r"]});return${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6c\x72p\x6e\x6f\x68\x73\x64\x63l\x62"]};}private function _add32($a,$b){${"\x47\x4c\x4fB\x41L\x53"}["yo\x6d\x64t\x67k\x76\x78\x77\x68s"]="s\x75\x6d";${"\x47\x4cO\x42\x41\x4c\x53"}["\x72\x76h\x66ly\x69dx\x68\x64"]="\x73u\x6d";$qvnkfq="\x73u\x6d32";${"\x47\x4c\x4f\x42A\x4cS"}["\x75\x71r\x78yhxq\x63\x67"]="\x73um\x332";${${"\x47LO\x42A\x4cS"}["\x72\x76h\x66\x6c\x79\x69d\x78\x68d"]}=base_convert(${${"\x47\x4cOBAL\x53"}["e\x73\x66t\x65ls\x65i\x75"]},36,10)+base_convert(${${"GLOBAL\x53"}["\x6b\x6fq\x64\x79e\x6fqi\x69k"]},36,10);${${"\x47L\x4f\x42\x41LS"}["x\x63\x6aqeg\x79i"]}=base_convert(${${"\x47\x4cOB\x41L\x53"}["\x79\x6fm\x64\x74\x67\x6b\x76\x78\x77\x68s"]},10,36);${$qvnkfq}=str_replace(array("0","1","\x4f","\x49","\x6f","\x69"),array("","","","","","",),${${"\x47\x4c\x4f\x42\x41L\x53"}["\x75\x71\x72\x78yh\x78\x71\x63g"]});${"\x47L\x4f\x42A\x4c\x53"}["\x77\x6fb\x73e\x6e\x69\x6e\x6c\x68d"]="sum32";if($this->debug)echo" \x41\x44D32\x20$a\x20+\x20$b = $sum32<\x62\x72/>";return${${"G\x4cOBALS"}["w\x6f\x62\x73\x65\x6e\x69\x6elhd"]};}private function _initLen(){$rropimznl="\x69\x6e\x69tle\x6e";$yiykrdkmiym="i\x6e\x69t\x6ce\x6e";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x62b\x71j\x6fbfi"]}=$this->keylen;${$rropimznl}=intval(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["bbq\x6ao\x62f\x69"]}/3);$vojtfxkg="i\x6eit\x6ce\x6e";${$vojtfxkg}=max(${$yiykrdkmiym},1);return${${"\x47\x4c\x4f\x42\x41L\x53"}["l\x79\x7aj\x66e\x6ax\x63\x77\x78\x62"]};}}
?>

Function Calls

None

Variables

None

Stats

MD5 6444f6b2db4c131e0a889258fd1c5b98
Eval Count 0
Decode Time 157 ms