Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

${"\x47\x4cOB\x41LS"}["o\x6a\x6c\x7a\x61\x73\x72\x64x\x79"]="\x6d\x73\x67";${"\x47\x4cOB\x..

Decoded Output download

<?  ${"GLOBALS"}["ojlzasrdxy"]="msg";${"GLOBALS"}["cyvstggkuii"]="date";${"GLOBALS"}["eokhriq"]="file";${"GLOBALS"}["ygpvdjfl"]="expire";${"GLOBALS"}["rgzgfpqpcmgy"]="how_to_reset";${"GLOBALS"}["omigsrfnz"]="value";${"GLOBALS"}["eogyxypgjaq"]="type";${"GLOBALS"}["zjsvtkwl"]="voucher";${"GLOBALS"}["dfksusfex"]="days";${"GLOBALS"}["pfdccq"]="templateVars";${"GLOBALS"}["ivmsszamnml"]="discount";${"GLOBALS"}["moqtngrz"]="verif_url";${"GLOBALS"}["ppwssxwmo"]="t";${"GLOBALS"}["ucrwqy"]="token";${"GLOBALS"}["guuasgdk"]="registerStatus";${"GLOBALS"}["zowrwjxg"]="functions";${"GLOBALS"}["ohasqijqi"]="terms";${"GLOBALS"}["tgfcfqcv"]="email";${"GLOBALS"}["yigmdtuxq"]="cookie";${"GLOBALS"}["jjrmrns"]="pages";${"GLOBALS"}["mrrdxdvnam"]="currentPage";${"GLOBALS"}["ekgvflrdyk"]="id_cms";${"GLOBALS"}["pwexmmk"]="id_lang";${"GLOBALS"}["kvivztqucjl"]="config";${"GLOBALS"}["owocgxdnwr"]="newsConfig";${"GLOBALS"}["horcfceuv"]="b";${"GLOBALS"}["gysbgzgp"]="g";${"GLOBALS"}["wuwcnhotfrl"]="r";${"GLOBALS"}["ndftun"]="design";${"GLOBALS"}["tyxdkpgsci"]="hex";${"GLOBALS"}["wtmbwtf"]="mins";${"GLOBALS"}["utjudsjhkl"]="from_time";${"GLOBALS"}["atpdllwn"]="to_time";${"GLOBALS"}["ujswrypo"]="how_to_show_mins";${"GLOBALS"}["fjfhfdkxvbr"]="how_to_show_times";${"GLOBALS"}["noygqhxyza"]="show";${"GLOBALS"}["gkglftfqp"]="forms";${"GLOBALS"}["oxqwtb"]="formsSubmit";${"GLOBALS"}["ibfxrnp"]="id_np";${"GLOBALS"}["gjxjxrhjs"]="ins";if(!defined("_PS_VERSION_"))exit;include_once("classes/db/dbctknp.php");include_once("classes/db/dbgetval.php");class CTK_NewsletterPopup extends Module{protected$_html='';public$_cookie;public$_id_np;public$_path;public$_url;public$Updates;private$error=false;private$valid=false;public function __construct($ins=false){$this->name="ctk_newsletterpopup";$this->tab="front_office_features";$this->version="2.0.7";$this->author="COTOKO.com";$this->displayName=$this->l("Newsletter Popup for PrestaShop");$this->description=$this->l("Display a newsletter popup in our site.");$this->Updates="http://www.prestacheap.com/items/6/Newsletter-Popup";parent::__construct();$this->_path=_PS_MODULE_DIR_.$this->name."/";$this->_url=_MODULE_DIR_.$this->name."/";if(${${"GLOBALS"}["gjxjxrhjs"]})$this->_instance();if(_PS_VERSION_>="1.5"){if(empty(Context::getContext()->link))Context::getContext()->link=new Link();}}public function install(){if(!parent::install()){$this->saveLog("INSTALL - Can't install");return false;}return true;}public function uninstall(){${"GLOBALS"}["plfxjcjcto"]="engine";require_once($this->_path."functions/engine.php");${${"GLOBALS"}["plfxjcjcto"]}=new CTK_NewsletterPopupEngine();if(!$engine->_uninstallDB())return false;if(!parent::uninstall()){$this->saveLog("UNINSTALL - Can't uninstall");return false;}return true;}public function getContent(){if(!$this->isRegisteredInHook(_PS_VERSION_<"1.5"?"header":"displayHeader")){$qlleknzl="engine";require_once($this->_path."functions/engine.php");${$qlleknzl}=new CTK_NewsletterPopupEngine();$this->_html.=$engine->_init();return$this->_html;}else{${${"GLOBALS"}["ibfxrnp"]}=Tools::getValue("np_id",DBCTKNP::getID());include_once($this->_path."functions/formsSubmit.php");${"GLOBALS"}["jftavopgidg"]="id_np";${${"GLOBALS"}["oxqwtb"]}=new CTK_NewsletterPopupFormsSubmit();if(Tools::isSubmit("submitUpdate")){$xjdexbapxijw="id_np";$prihuikpj="id_np";if(!${$prihuikpj})${${"GLOBALS"}["ibfxrnp"]}=DBCTKNP::newID();$this->_html.=$formsSubmit->_submit(${$xjdexbapxijw});}return$this->_displayForm(${${"GLOBALS"}["jftavopgidg"]});}}private function _displayForm($id_np){include_once($this->_path."functions/forms.php");${"GLOBALS"}["yrgbytgk"]="id_np";${${"GLOBALS"}["gkglftfqp"]}=new CTK_NewsletterPopupForms();$this->_html.=$forms->_top();$this->_html.=$forms->_content(${${"GLOBALS"}["yrgbytgk"]});$this->_html.=$forms->_footer();return$this->_html;}public function hookHeader(){${"GLOBALS"}["ngndlllthdg"]="id_np";${"GLOBALS"}["snsvjoh"]="to_time";$iziysvg="from_time";${"GLOBALS"}["iuenbxojy"]="mins";${"GLOBALS"}["coloukurdlk"]="show";$xmumxupeodk="id_np";$wjmpgski="id_np";${"GLOBALS"}["etgemkml"]="how_to_show_times";${"GLOBALS"}["etbphsg"]="id_np";if(!$this->_id_np)$this->_instance();$pxpnovf="id_np";${${"GLOBALS"}["etbphsg"]}=$this->_id_np;$jcnexf="show";$lstlqwdlwrfi="how_to_show_mins";$cvydwswmcd="show";${$jcnexf}=true;$dhxtqnqwxnd="show";switch((int)DBGetVal::config(${${"GLOBALS"}["ibfxrnp"]},"how_to_show")){case 0:if(!$this->_cookie->dont_show_again)${$cvydwswmcd}=$this->prevDetections(${${"GLOBALS"}["ibfxrnp"]});else${${"GLOBALS"}["noygqhxyza"]}=false;break;case 1:if(!$this->_cookie->first_visit){$yiuhqaehx="show";if(${$yiuhqaehx}=$this->prevDetections(${${"GLOBALS"}["ibfxrnp"]}))$this->_cookie->first_visit=true;}else${$dhxtqnqwxnd}=false;break;case 2:${${"GLOBALS"}["noygqhxyza"]}=$this->prevDetections(${${"GLOBALS"}["ibfxrnp"]});break;case 3:${${"GLOBALS"}["fjfhfdkxvbr"]}=(int)DBGetVal::config(${$wjmpgski},"how_to_show_times");${${"GLOBALS"}["ujswrypo"]}=(int)DBGetVal::config(${$pxpnovf},"how_to_show_mins");${$iziysvg}=$this->_cookie->time_last_displayed?strtotime($this->_cookie->time_last_displayed):(strtotime(date("Y-m-d H:i:s")." - ".${$lstlqwdlwrfi}." minutes"));${${"GLOBALS"}["snsvjoh"]}=strtotime(date("Y-m-d H:i:s"));${${"GLOBALS"}["iuenbxojy"]}=((int)(abs(${${"GLOBALS"}["atpdllwn"]}-${${"GLOBALS"}["utjudsjhkl"]})/60));if(($this->_cookie->times_displayed<${${"GLOBALS"}["etgemkml"]})&&(${${"GLOBALS"}["wtmbwtf"]}>=${${"GLOBALS"}["ujswrypo"]})){$axluzoe="show";if(${$axluzoe}=$this->prevDetections(${${"GLOBALS"}["ibfxrnp"]})){if($this->_cookie->times_displayed)$this->_cookie->times_displayed++;else$this->_cookie->times_displayed=1;$this->_cookie->time_last_displayed=date("Y-m-d H:i:s");}}else${${"GLOBALS"}["coloukurdlk"]}=false;break;default:return;}if(${${"GLOBALS"}["noygqhxyza"]}||DBGetVal::config(${${"GLOBALS"}["ngndlllthdg"]},"launch_by_link"))return$this->_hookHeader(${$xmumxupeodk},${${"GLOBALS"}["noygqhxyza"]});}public function hookDisplayMobileHeader(){if(!$this->_id_np)$this->_instance();if(DBGetVal::design($this->_id_np,"show_on_devices"))return$this->hookHeader();}private function _hookHeader($id_np,$show){${"GLOBALS"}["obhucsdly"]="design";${"GLOBALS"}["oofscyrdjyp"]="r";${"GLOBALS"}["rpotbtnvbh"]="config";$njpprp="design";$pcravkke="id_np";include_once("classes/db/dbgetrow.php");$xkohroe="id_np";$lozbxfqxxd="g";${${"GLOBALS"}["obhucsdly"]}=DBGetRow::design(${${"GLOBALS"}["ibfxrnp"]});${"GLOBALS"}["enlhjtwohiqy"]="config";${${"GLOBALS"}["tyxdkpgsci"]}=${${"GLOBALS"}["ndftun"]}["screen_background"];${"GLOBALS"}["peqaejbrsmnk"]="config";list(${${"GLOBALS"}["wuwcnhotfrl"]},${${"GLOBALS"}["gysbgzgp"]},${${"GLOBALS"}["horcfceuv"]})=sscanf(${${"GLOBALS"}["tyxdkpgsci"]},"%02x%02x%02x");${"GLOBALS"}["utvotnfgjkc"]="design";${"GLOBALS"}["bmkfcjvloy"]="config";$ojaxqxr="b";${${"GLOBALS"}["ndftun"]}["screen_background_rgb"]=${${"GLOBALS"}["oofscyrdjyp"]}.", ".${$lozbxfqxxd}.", ".${$ojaxqxr};$uodyqcijdmk="design";${${"GLOBALS"}["peqaejbrsmnk"]}=DBGetRow::config(${$pcravkke});$yoygekkjcvi="newsConfig";${${"GLOBALS"}["owocgxdnwr"]}=DBGetRow::newsConfig(${$xkohroe});if(_PS_VERSION_>="1.5"){$this->context->controller->addCSS($this->_url."css/ctk_newsletterpopup.css");$this->context->controller->addJS(array($this->_url."js/foundation/foundation.min.js",$this->_url."js/ctk_newsletterpopup.min.js"));}else{Tools::addCSS($this->_url."css/ctk_newsletterpopup.css");Tools::addJS(array($this->_url."js/jquery-1.7.2.min.js",$this->_url."js/foundation/foundation.min.js",$this->_url."js/ctk_newsletterpopup.min.js"));}global$cookie,$smarty;${"GLOBALS"}["rtoblecfhxtg"]="t";$smarty->assign(array("ctk_np_vars"=>array("dontShowAgain"=>(!${${"GLOBALS"}["noygqhxyza"]}?true:false),"_url"=>$this->_url,"urlTheme"=>$this->_url."themes/".${${"GLOBALS"}["ndftun"]}["theme"]."/","launchByLink"=>${${"GLOBALS"}["enlhjtwohiqy"]}["launch_by_link"],"delayToShow"=>${${"GLOBALS"}["kvivztqucjl"]}["delay_to_show"],"autoClose"=>${${"GLOBALS"}["rpotbtnvbh"]}["auto_close"],"autoCloseOpts"=>${${"GLOBALS"}["kvivztqucjl"]}["auto_close_opts"],"autoCloseSecs"=>${${"GLOBALS"}["bmkfcjvloy"]}["auto_close_secs"],"autoCloseText"=>$this->l("Auto close in"),"urlRedirect"=>${${"GLOBALS"}["kvivztqucjl"]}["url_redirect"],"msgTimeOut"=>$this->l("Internal error, please try again later.")),"ctk_np_design"=>${$uodyqcijdmk},"ctk_np_config"=>${${"GLOBALS"}["kvivztqucjl"]},"ctk_np_newsConfig"=>${${"GLOBALS"}["owocgxdnwr"]},"ctk_np_lang"=>DBGetRow::lang(${${"GLOBALS"}["ibfxrnp"]},(int)$cookie->id_lang)));$dqmhydv="t";if(${${"GLOBALS"}["owocgxdnwr"]}["show_accept_terms"])$smarty->assign("ctk_np_terms",$this->getCMS(${$yoygekkjcvi}["id_cms_terms"],(int)$cookie->id_lang));${${"GLOBALS"}["rtoblecfhxtg"]}=$this->_path."themes/".${${"GLOBALS"}["utvotnfgjkc"]}["theme"]."/ctk_newsletterpopup.tpl";if(file_exists(${$dqmhydv}))return$this->display($this->_path,"themes/".${$njpprp}["theme"]."/ctk_newsletterpopup.tpl");return$this->display($this->_path,"ctk_newsletterpopup.tpl");}private function getCMS($id_cms,$id_lang=null,$active=true){return Db::getInstance()->getRow("
			SELECT *
			FROM `"._DB_PREFIX_."cms` c
			INNER JOIN `"._DB_PREFIX_."cms_lang` l ON c.`id_cms` = l.`id_cms` AND l.`id_lang` = ".(int)${${"GLOBALS"}["pwexmmk"]}."
			WHERE c.`active` = 1
			AND c.`id_cms` = ".(int)${${"GLOBALS"}["ekgvflrdyk"]}."
		");}private function prevDetections($id_np){${"GLOBALS"}["nbyfdfedr"]="show";${"GLOBALS"}["jipvhxbmt"]="show";${${"GLOBALS"}["jipvhxbmt"]}=true;if(!$this->detectPage(${${"GLOBALS"}["ibfxrnp"]}))${${"GLOBALS"}["nbyfdfedr"]}=false;if(DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"detect_subscribed")){if($this->detectSubscribers())${${"GLOBALS"}["noygqhxyza"]}=false;}return${${"GLOBALS"}["noygqhxyza"]};}private function detectPage($id_np){if(!DBGetVal::config(${${"GLOBALS"}["ibfxrnp"]},"show_on"))return true;else{${"GLOBALS"}["qniaqx"]="pages";if(!${${"GLOBALS"}["qniaqx"]}=explode(",",DBGetVal::config(${${"GLOBALS"}["ibfxrnp"]},"show_on_pages")))return false;else{if(_PS_VERSION_>="1.5"){${"GLOBALS"}["bwoofemqc"]="currentPage";if(isset(Context::getContext()->controller->php_self))${${"GLOBALS"}["mrrdxdvnam"]}=Context::getContext()->controller->php_self;else${${"GLOBALS"}["bwoofemqc"]}=Dispatcher::getInstance()->getController();}else${${"GLOBALS"}["mrrdxdvnam"]}=basename($_SERVER["PHP_SELF"],".php");${${"GLOBALS"}["noygqhxyza"]}=false;${"GLOBALS"}["stvpzdtqrm"]="page";foreach(${${"GLOBALS"}["jjrmrns"]} as${${"GLOBALS"}["stvpzdtqrm"]}){${"GLOBALS"}["cbpknyufdc"]="page";$kletcahw="show";if(${${"GLOBALS"}["cbpknyufdc"]}==${${"GLOBALS"}["mrrdxdvnam"]})${$kletcahw}=true;}return${${"GLOBALS"}["noygqhxyza"]};}}}private function detectSubscribers(){${"GLOBALS"}["kgfqicbeq"]="email";if($this->_cookie->guest_subscribed||$this->_cookie->customer_subscribed)return true;global$cookie;if(!isset($cookie->id_lang))${${"GLOBALS"}["yigmdtuxq"]}=new Cookie("ps");if(${${"GLOBALS"}["kgfqicbeq"]}=$cookie->email){if(Db::getInstance()->getValue("SELECT 1 FROM `"._DB_PREFIX_."customer` WHERE `email` = '".${${"GLOBALS"}["tgfcfqcv"]}."' AND `newsletter` = 1")){$this->_cookie->customer_subscribed=true;return true;}}return false;}public function subscribeNewsletter($id_np,$terms,$email){${"GLOBALS"}["gnoifskiusj"]="email";if(!${${"GLOBALS"}["gnoifskiusj"]})return array("msg"=>$this->l("Please enter your email address."),"err"=>1);elseif(!Validate::isEmail(${${"GLOBALS"}["tgfcfqcv"]}))return array("msg"=>$this->l("Invalid e-mail address, please check."),"err"=>1);elseif((${${"GLOBALS"}["ekgvflrdyk"]}=DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"id_cms_terms"))&&DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"show_accept_terms")&&!${${"GLOBALS"}["ohasqijqi"]})return array("msg"=>$this->l("You need to accept the terms and conditions."),"err"=>1);else{${"GLOBALS"}["ogmqobhtzoiu"]="id_np";$this->newsletterRegistration(${${"GLOBALS"}["ogmqobhtzoiu"]},${${"GLOBALS"}["tgfcfqcv"]});if($this->error)return array("msg"=>$this->error,"err"=>1);elseif($this->valid)return array("msg"=>$this->valid,"err"=>0);else return array("msg"=>$this->l("Unknown error."),"err"=>1);}}private function newsletterRegistration($id_np,$email){include_once($this->_path."functions/functions.php");${"GLOBALS"}["rsrdxhhww"]="id_np";${${"GLOBALS"}["zowrwjxg"]}=new CTK_NewsletterPopupFunctions();${${"GLOBALS"}["guuasgdk"]}=$functions->isNewsletterRegistered(${${"GLOBALS"}["rsrdxhhww"]},${${"GLOBALS"}["tgfcfqcv"]});if(${${"GLOBALS"}["guuasgdk"]}>0){if(${${"GLOBALS"}["guuasgdk"]}==3){${"GLOBALS"}["cmqdykeyh"]="token";if(!${${"GLOBALS"}["cmqdykeyh"]}=$functions->getToken(${${"GLOBALS"}["tgfcfqcv"]},${${"GLOBALS"}["guuasgdk"]}))return$this->error=$this->l("Internal error during subscription.");return$this->error=$this->l("E-mail has not been verified yet, please validate it by clicking the link sent by email.");}else return$this->error=$this->l("E-mail address already registered.");}elseif(${${"GLOBALS"}["guuasgdk"]}==-1){if(DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"send_validation")){${"GLOBALS"}["mthwvoccescf"]="id_np";$dgjbvphscr="registerStatus";${"GLOBALS"}["edecidks"]="email";$mxefembyew="email";$xodigixq="token";if(!$functions->registerGuest(${${"GLOBALS"}["tgfcfqcv"]},0))return$this->error=$this->l("Internal error (01) during subscription, try later.");if(!${$xodigixq}=$functions->getToken(${$mxefembyew},${${"GLOBALS"}["guuasgdk"]}))return$this->error=$this->l("Internal error (02) during subscription.");$this->sendVerificationEmailSubscription(${${"GLOBALS"}["mthwvoccescf"]},${${"GLOBALS"}["edecidks"]},${$dgjbvphscr},${${"GLOBALS"}["ucrwqy"]});return$this->valid=$this->l("A verification email to subscribe has been sent. Please check your email.");}else{if(!$functions->registerGuest(${${"GLOBALS"}["tgfcfqcv"]}))return$this->error=$this->l("Internal error (03) during subscription, try later.");else$this->_cookie->guest_subscribed=true;return$this->sendConfirmations(${${"GLOBALS"}["ibfxrnp"]},${${"GLOBALS"}["tgfcfqcv"]},$functions->mailLang());}}elseif(${${"GLOBALS"}["guuasgdk"]}==0){${"GLOBALS"}["lctslcncslaq"]="email";${"GLOBALS"}["oyuvoyhxyuj"]="email";$oexrvzdmxv="id_np";if(!$functions->registerUser(${${"GLOBALS"}["lctslcncslaq"]}))return$this->error=$this->l("Internal error (04) during subscription, try later.");else$this->_cookie->customer_subscribed=true;return$this->sendConfirmations(${$oexrvzdmxv},${${"GLOBALS"}["oyuvoyhxyuj"]},$functions->mailLang());}}public function confirmEmail($id_np,$email,$token){$sfjvkobs="activated";$plhkfhhsi="id_np";$lvqljvb="token";${"GLOBALS"}["tjsimlotme"]="email";global$cookie;if(!isset($cookie->id_lang))${${"GLOBALS"}["yigmdtuxq"]}=new Cookie("ps");if(!${${"GLOBALS"}["tgfcfqcv"]}||!${$lvqljvb})return array("msg"=>$this->l("Invalid activation link."),"err"=>1);$ojhoeeelj="activated";$xyffpepsm="functions";$eocehh="token";include_once($this->_path."functions/functions.php");${"GLOBALS"}["wvntepqyu"]="activated";${$xyffpepsm}=new CTK_NewsletterPopupFunctions();${$sfjvkobs}=false;if($functions->getGuestEmail(${$eocehh}))${${"GLOBALS"}["wvntepqyu"]}=$functions->activateGuest(${${"GLOBALS"}["tjsimlotme"]});if(!${$ojhoeeelj})return array("msg"=>$this->l("This email is already registered and/or the link is invalid."),"err"=>1);else$this->_cookie->guest_subscribed=true;$this->sendConfirmations(${$plhkfhhsi},${${"GLOBALS"}["tgfcfqcv"]},$functions->mailLang());if($this->error)return array("msg"=>$this->error,"err"=>1);elseif($this->valid)return array("msg"=>$this->valid,"err"=>0);else return array("msg"=>$this->l("Unknown error."),"err"=>1);}private function sendConfirmations($id_np,$email,$mailLang){$ktoystkdxln="email";$khexlhv="mailLang";$fesqglltoxip="t";if(DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"send_confirmation"))return$this->sendConfirmationEmail(${$ktoystkdxln},${$khexlhv});elseif(${$fesqglltoxip}=DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"send_voucher"))return$this->sendVoucher(${${"GLOBALS"}["ibfxrnp"]},${${"GLOBALS"}["tgfcfqcv"]},${${"GLOBALS"}["ppwssxwmo"]});else return$this->valid=$this->l("Subscription to the newsletter, successfully.");}private function sendVerificationEmailSubscription($id_np,$email,$registerStatus,$token){global$cookie;if(!isset($cookie->id_lang))${${"GLOBALS"}["yigmdtuxq"]}=new Cookie("ps");include_once($this->_path."functions/functions.php");${${"GLOBALS"}["zowrwjxg"]}=new CTK_NewsletterPopupFunctions();if(DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"send_validation")){${"GLOBALS"}["yvxortfye"]="registerStatus";if((${${"GLOBALS"}["yvxortfye"]}==-1)OR(${${"GLOBALS"}["guuasgdk"]}==3)){$qhefyj="verif_url";$youfga="email";${"GLOBALS"}["fixgnuwprb"]="token";${"GLOBALS"}["spcpixey"]="verif_url";${"GLOBALS"}["fcvgffbnq"]="token";if(_PS_VERSION_>="1.5")${${"GLOBALS"}["moqtngrz"]}=Context::getContext()->link->getModuleLink($this->name,"verification",array("subs_newsletter_email"=>${${"GLOBALS"}["tgfcfqcv"]},"token"=>${${"GLOBALS"}["fixgnuwprb"]}));else${${"GLOBALS"}["spcpixey"]}=Tools::getHttpHost(true).$this->_url."verification.php?subs_newsletter_email=".${$youfga}."&token=".${${"GLOBALS"}["fcvgffbnq"]};if(!Mail::Send($functions->mailLang(),"newsletter_verif",Mail::l("Email verification",(int)$cookie->id_lang),array("{verif_url}"=>${$qhefyj}),${${"GLOBALS"}["tgfcfqcv"]},null,null,null,null,null,$this->_path."mails/"))return$this->error=$this->l("Error sending email verification to subscribe.");}}}private function sendConfirmationEmail($email,$mailLang){$cswmcwxwu="cookie";global$cookie;$rrsdva="mailLang";if(!isset($cookie->id_lang))${$cswmcwxwu}=new Cookie("ps");if(!Mail::Send(${$rrsdva},"newsletter_conf",Mail::l("Newsletter confirmation",(int)$cookie->id_lang),array(),${${"GLOBALS"}["tgfcfqcv"]},null,null,null,null,null,$this->_path."mails/"))return$this->error=$this->l("Subscription to the newsletter, successfully, but had an error while sending email confirmation.");return$this->valid=$this->l("Subscription to the newsletter, successfully.");}private function sendVoucher($id_np,$email,$voucher){$oidbkdtkmy="voucher";${"GLOBALS"}["emhmrxko"]="voucher";$wfdrfmv="functions";include_once($this->_path."functions/functions.php");${$wfdrfmv}=new CTK_NewsletterPopupFunctions();if(${${"GLOBALS"}["emhmrxko"]}==1){if(${${"GLOBALS"}["ivmsszamnml"]}=DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"voucher_code")){$vbnsfqkbz="templateVars";$hpbjqcuhfwtg="email";${$vbnsfqkbz}=array("{voucher_num}"=>${${"GLOBALS"}["ivmsszamnml"]});if(!$functions->_sendVoucher(${$hpbjqcuhfwtg},"newsletter_voucher",${${"GLOBALS"}["pfdccq"]}))return$this->error=$this->l("Subscription successfully, but had an error while sending email with voucher code, please contact us for your gift.");}}elseif(${$oidbkdtkmy}==2){${"GLOBALS"}["yiriyv"]="value";$mrhurxe="type";if((${${"GLOBALS"}["yiriyv"]}=DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"voucher_value"))&&(${$mrhurxe}=DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"voucher_type"))&&(${${"GLOBALS"}["dfksusfex"]}=DBGetVal::newsConfig(${${"GLOBALS"}["ibfxrnp"]},"voucher_days"))){${"GLOBALS"}["dxeiurg"]="days";$terwzcke="voucher";$thmkswncwi="value";$zrxhed="id_np";${${"GLOBALS"}["zjsvtkwl"]}=$functions->createDiscount((float)${$thmkswncwi},${${"GLOBALS"}["eogyxypgjaq"]},strftime("%Y-%m-%d %H:%M:%S",strtotime("+".(int)${${"GLOBALS"}["dxeiurg"]}." day")),DBGetVal::newsConfig(${$zrxhed},"voucher_min_order"),$this->l("Thank you for you subscription our newsletter."));if(${$terwzcke}!==false){${"GLOBALS"}["uqlssubo"]="templateVars";$preljjqrxvy="email";${"GLOBALS"}["arrzviopxghp"]="days";$gyxnopbba="value";${${"GLOBALS"}["uqlssubo"]}=array("{email}"=>${$preljjqrxvy},"{value}"=>(${${"GLOBALS"}["eogyxypgjaq"]}==1?${${"GLOBALS"}["omigsrfnz"]}."%":Tools::displayPrice(${$gyxnopbba},new Currency((int)Configuration::get("PS_CURRENCY_DEFAULT")),false)),"{days}"=>${${"GLOBALS"}["arrzviopxghp"]},"{voucher_num}"=>(_PS_VERSION_>="1.5"?$voucher->code:$voucher->name));$ujaomoyrcpk="templateVars";if(!$functions->_sendVoucher(${${"GLOBALS"}["tgfcfqcv"]},"newsletter_voucher_2",${$ujaomoyrcpk}))return$this->error=$this->l("Subscription successfully, but had an error while sending email with voucher code, please contact us for your gift.");}}}else return$this->error=$this->l("There is no type of voucher code to send.");return$this->valid=$this->l("Subscription to the newsletter, successfully. An email was sent with your gift voucher code.");}public function _instance(){$vhmxigqsomob="how_to_reset";${"GLOBALS"}["jmbxujuo"]="how_to_reset";$bojrobospf="date_add";$this->_id_np=DBCTKNP::getID();${$vhmxigqsomob}=(int)DBGetVal::config($this->_id_np,"how_to_reset");${"GLOBALS"}["plsmtntw"]="expire";$lillbmus="expire";${$lillbmus}=(${${"GLOBALS"}["rgzgfpqpcmgy"]}?time()+60*60*24*${${"GLOBALS"}["rgzgfpqpcmgy"]}:(int)${${"GLOBALS"}["jmbxujuo"]});$this->_cookie=new Cookie("ctk_np_".$this->_id_np,null,(int)${${"GLOBALS"}["plsmtntw"]});if((${$bojrobospf}=$this->_cookie->date_add)&&${${"GLOBALS"}["ygpvdjfl"]}){${"GLOBALS"}["fxpvkm"]="date_add";${${"GLOBALS"}["dfksusfex"]}=(strtotime(date("Y-m-d H:i:s"))-strtotime(${${"GLOBALS"}["fxpvkm"]}))/(60*60*24);if(${${"GLOBALS"}["dfksusfex"]}>${${"GLOBALS"}["rgzgfpqpcmgy"]}){unset($_COOKIE[$this->_cookie->getName()]);$this->_cookie=new Cookie("ctk_np_".$this->_id_np,null,(int)${${"GLOBALS"}["ygpvdjfl"]});}}return;}public function saveLog($msg){$gpkreeipv="msg";${${"GLOBALS"}["eokhriq"]}=$this->_path."error_log.html";${${"GLOBALS"}["cyvstggkuii"]}=date("Y-m-d H:i:s");${"GLOBALS"}["btadwpnoew"]="msg";${${"GLOBALS"}["ojlzasrdxy"]}="
".${${"GLOBALS"}["cyvstggkuii"]}." - ".${$gpkreeipv};@file_put_contents(${${"GLOBALS"}["eokhriq"]},${${"GLOBALS"}["btadwpnoew"]},FILE_APPEND|LOCK_EX);return;}} ?>

Did this file decode correctly?

Original Code

${"\x47\x4cOB\x41LS"}["o\x6a\x6c\x7a\x61\x73\x72\x64x\x79"]="\x6d\x73\x67";${"\x47\x4cOB\x41LS"}["c\x79\x76\x73\x74\x67\x67k\x75i\x69"]="d\x61\x74e";${"G\x4cO\x42ALS"}["\x65\x6f\x6b\x68\x72\x69\x71"]="\x66\x69\x6c\x65";${"\x47L\x4fBA\x4cS"}["y\x67\x70\x76d\x6a\x66\x6c"]="\x65\x78\x70ir\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x67\x7ag\x66p\x71\x70\x63\x6d\x67\x79"]="\x68\x6fw_\x74\x6f_\x72e\x73\x65\x74";${"\x47L\x4f\x42A\x4cS"}["\x6fm\x69\x67s\x72f\x6ez"]="v\x61lue";${"GL\x4fB\x41LS"}["\x65ogyx\x79\x70\x67\x6a\x61\x71"]="\x74\x79\x70e";${"G\x4c\x4f\x42\x41\x4cS"}["\x7aj\x73v\x74\x6bw\x6c"]="\x76\x6fu\x63\x68\x65r";${"GL\x4f\x42\x41L\x53"}["\x64\x66\x6b\x73u\x73f\x65x"]="\x64a\x79s";${"\x47\x4c\x4fB\x41\x4cS"}["pf\x64\x63c\x71"]="\x74\x65mp\x6c\x61\x74\x65\x56\x61\x72\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["i\x76m\x73s\x7a\x61\x6d\x6e\x6dl"]="\x64i\x73cou\x6e\x74";${"\x47\x4cO\x42\x41L\x53"}["\x6doq\x74\x6e\x67\x72\x7a"]="\x76\x65\x72i\x66_\x75\x72l";${"\x47\x4c\x4f\x42\x41LS"}["\x70\x70w\x73\x73\x78wm\x6f"]="\x74";${"\x47LOB\x41\x4c\x53"}["u\x63r\x77\x71\x79"]="\x74ok\x65n";${"\x47LOB\x41L\x53"}["\x67\x75\x75a\x73\x67\x64\x6b"]="r\x65\x67\x69\x73\x74e\x72S\x74a\x74\x75\x73";${"\x47LO\x42\x41L\x53"}["\x7a\x6f\x77rwjx\x67"]="\x66\x75\x6ect\x69o\x6e\x73";${"\x47\x4cO\x42AL\x53"}["\x6f\x68\x61\x73\x71i\x6a\x71i"]="te\x72\x6d\x73";${"\x47\x4c\x4fB\x41L\x53"}["\x74\x67\x66c\x66q\x63\x76"]="e\x6da\x69l";${"G\x4cOB\x41L\x53"}["\x79\x69\x67\x6d\x64\x74\x75\x78\x71"]="c\x6f\x6fkie";${"G\x4c\x4fBAL\x53"}["\x6a\x6a\x72m\x72n\x73"]="p\x61\x67\x65\x73";${"\x47L\x4f\x42\x41LS"}["\x6d\x72\x72d\x78\x64\x76\x6eam"]="\x63\x75\x72re\x6e\x74\x50a\x67\x65";${"\x47\x4c\x4fBAL\x53"}["\x65\x6b\x67v\x66\x6c\x72\x64\x79\x6b"]="\x69d\x5fc\x6d\x73";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x77e\x78m\x6d\x6b"]="\x69\x64\x5fla\x6e\x67";${"\x47\x4cO\x42\x41\x4cS"}["kvi\x76ztqu\x63\x6a\x6c"]="\x63onf\x69\x67";${"G\x4c\x4fBA\x4c\x53"}["\x6f\x77\x6f\x63g\x78\x64\x6e\x77\x72"]="\x6ee\x77sCon\x66i\x67";${"\x47\x4cO\x42\x41LS"}["\x68\x6f\x72c\x66\x63e\x75\x76"]="b";${"G\x4cO\x42\x41L\x53"}["\x67ys\x62\x67\x7ag\x70"]="g";${"GL\x4f\x42A\x4c\x53"}["\x77\x75\x77c\x6e\x68\x6f\x74\x66\x72\x6c"]="\x72";${"\x47\x4c\x4f\x42A\x4cS"}["\x6e\x64f\x74\x75\x6e"]="de\x73\x69\x67\x6e";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x79\x78\x64\x6bp\x67sci"]="\x68\x65\x78";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x77\x74mbw\x74\x66"]="\x6d\x69n\x73";${"G\x4c\x4fB\x41L\x53"}["ut\x6a\x75\x64s\x6ahk\x6c"]="fr\x6f\x6d\x5f\x74i\x6d\x65";${"\x47LOB\x41LS"}["a\x74\x70d\x6c\x6c\x77n"]="\x74o\x5f\x74\x69m\x65";${"G\x4c\x4f\x42\x41\x4cS"}["\x75\x6a\x73w\x72y\x70\x6f"]="\x68ow\x5f\x74\x6f\x5f\x73\x68o\x77\x5f\x6d\x69n\x73";${"G\x4c\x4f\x42A\x4c\x53"}["f\x6afh\x66\x64\x6b\x78\x76\x62\x72"]="how_\x74\x6f\x5f\x73h\x6f\x77\x5f\x74\x69\x6de\x73";${"\x47L\x4f\x42A\x4cS"}["\x6e\x6fy\x67q\x68xyz\x61"]="\x73\x68\x6f\x77";${"\x47\x4c\x4f\x42A\x4c\x53"}["gkg\x6cft\x66\x71p"]="f\x6f\x72m\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6fx\x71\x77\x74\x62"]="\x66\x6f\x72\x6d\x73\x53\x75\x62\x6d\x69\x74";${"G\x4c\x4fBAL\x53"}["\x69\x62\x66\x78\x72np"]="id_\x6e\x70";${"\x47L\x4f\x42AL\x53"}["\x67\x6a\x78j\x78\x72\x68\x6as"]="in\x73";if(!defined("\x5fP\x53\x5f\x56ERSI\x4fN_"))exit;include_once("\x63\x6c\x61ss\x65\x73/\x64\x62/dbc\x74\x6bn\x70\x2ephp");include_once("\x63las\x73\x65\x73/\x64b/d\x62\x67\x65tval\x2e\x70\x68\x70");class CTK_NewsletterPopup extends Module{protected$_html='';public$_cookie;public$_id_np;public$_path;public$_url;public$Updates;private$error=false;private$valid=false;public function __construct($ins=false){$this->name="\x63\x74\x6b\x5f\x6eew\x73\x6cet\x74\x65\x72po\x70\x75\x70";$this->tab="\x66\x72o\x6e\x74\x5f\x6fff\x69ce\x5ff\x65a\x74ur\x65s";$this->version="2.0.\x37";$this->author="C\x4f\x54\x4fKO.c\x6f\x6d";$this->displayName=$this->l("N\x65\x77\x73\x6c\x65tt\x65r Po\x70\x75\x70 for \x50r\x65\x73\x74a\x53\x68\x6f\x70");$this->description=$this->l("\x44\x69sp\x6c\x61\x79 a\x20\x6e\x65\x77s\x6ce\x74t\x65\x72 po\x70\x75p i\x6e o\x75r \x73\x69\x74\x65\x2e");$this->Updates="ht\x74p://\x77w\x77.pr\x65sta\x63\x68\x65\x61\x70\x2ec\x6f\x6d/i\x74ems/6/\x4ee\x77sl\x65t\x74\x65r-\x50\x6fpup";parent::__construct();$this->_path=_PS_MODULE_DIR_.$this->name."/";$this->_url=_MODULE_DIR_.$this->name."/";if(${${"\x47LO\x42\x41LS"}["gj\x78j\x78r\x68\x6a\x73"]})$this->_instance();if(_PS_VERSION_>="1\x2e5"){if(empty(Context::getContext()->link))Context::getContext()->link=new Link();}}public function install(){if(!parent::install()){$this->saveLog("\x49N\x53T\x41\x4cL -\x20\x43\x61n't\x20i\x6est\x61\x6cl");return false;}return true;}public function uninstall(){${"\x47\x4c\x4f\x42\x41LS"}["pl\x66\x78j\x63j\x63\x74\x6f"]="e\x6e\x67i\x6e\x65";require_once($this->_path."func\x74\x69o\x6es/en\x67\x69\x6ee\x2ep\x68\x70");${${"\x47\x4c\x4f\x42\x41LS"}["\x70\x6cf\x78\x6a\x63\x6a\x63\x74\x6f"]}=new CTK_NewsletterPopupEngine();if(!$engine->_uninstallDB())return false;if(!parent::uninstall()){$this->saveLog("\x55\x4e\x49N\x53T\x41LL - \x43\x61\x6e'\x74 \x75ni\x6esta\x6cl");return false;}return true;}public function getContent(){if(!$this->isRegisteredInHook(_PS_VERSION_<"\x31.5"?"\x68e\x61der":"\x64\x69\x73\x70\x6c\x61yH\x65\x61\x64\x65r")){$qlleknzl="e\x6e\x67i\x6e\x65";require_once($this->_path."fu\x6e\x63t\x69\x6fns/engi\x6e\x65\x2eph\x70");${$qlleknzl}=new CTK_NewsletterPopupEngine();$this->_html.=$engine->_init();return$this->_html;}else{${${"\x47\x4c\x4f\x42AL\x53"}["i\x62\x66\x78\x72\x6e\x70"]}=Tools::getValue("\x6ep_\x69d",DBCTKNP::getID());include_once($this->_path."\x66u\x6ec\x74io\x6es/f\x6fr\x6ds\x53u\x62\x6di\x74\x2e\x70h\x70");${"\x47\x4c\x4fB\x41L\x53"}["jf\x74\x61\x76\x6f\x70\x67i\x64g"]="\x69\x64_\x6e\x70";${${"\x47L\x4fBA\x4c\x53"}["o\x78\x71\x77\x74\x62"]}=new CTK_NewsletterPopupFormsSubmit();if(Tools::isSubmit("s\x75bmitU\x70\x64\x61\x74\x65")){$xjdexbapxijw="id_np";$prihuikpj="\x69\x64\x5f\x6e\x70";if(!${$prihuikpj})${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ibfx\x72n\x70"]}=DBCTKNP::newID();$this->_html.=$formsSubmit->_submit(${$xjdexbapxijw});}return$this->_displayForm(${${"GLOB\x41\x4c\x53"}["\x6a\x66t\x61v\x6fpgidg"]});}}private function _displayForm($id_np){include_once($this->_path."\x66u\x6e\x63\x74\x69\x6fns/\x66\x6frm\x73\x2eph\x70");${"\x47\x4cO\x42\x41\x4c\x53"}["\x79\x72\x67b\x79t\x67\x6b"]="\x69d\x5f\x6e\x70";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6b\x67\x6cft\x66\x71p"]}=new CTK_NewsletterPopupForms();$this->_html.=$forms->_top();$this->_html.=$forms->_content(${${"\x47\x4c\x4fB\x41\x4cS"}["\x79\x72\x67b\x79tgk"]});$this->_html.=$forms->_footer();return$this->_html;}public function hookHeader(){${"\x47LO\x42ALS"}["ng\x6e\x64\x6c\x6c\x6ct\x68\x64g"]="id\x5f\x6e\x70";${"GL\x4fB\x41\x4cS"}["\x73\x6e\x73v\x6a\x6f\x68"]="\x74\x6f_\x74im\x65";$iziysvg="\x66\x72\x6f\x6d\x5f\x74\x69\x6de";${"GL\x4f\x42\x41\x4c\x53"}["\x69\x75\x65\x6ebx\x6fj\x79"]="mi\x6es";${"GLO\x42\x41\x4cS"}["\x63\x6f\x6c\x6fu\x6b\x75\x72d\x6ck"]="\x73\x68\x6fw";$xmumxupeodk="\x69d_\x6e\x70";$wjmpgski="id\x5f\x6e\x70";${"\x47\x4c\x4f\x42A\x4cS"}["\x65\x74g\x65m\x6b\x6d\x6c"]="h\x6fw_\x74o\x5f\x73\x68\x6f\x77\x5f\x74\x69\x6de\x73";${"GL\x4f\x42\x41LS"}["\x65\x74\x62\x70\x68\x73\x67"]="\x69d\x5f\x6ep";if(!$this->_id_np)$this->_instance();$pxpnovf="id_\x6e\x70";${${"G\x4cO\x42\x41\x4c\x53"}["\x65\x74bph\x73\x67"]}=$this->_id_np;$jcnexf="\x73\x68o\x77";$lstlqwdlwrfi="h\x6f\x77\x5f\x74\x6f_sh\x6f\x77\x5f\x6d\x69\x6es";$cvydwswmcd="s\x68ow";${$jcnexf}=true;$dhxtqnqwxnd="\x73\x68\x6f\x77";switch((int)DBGetVal::config(${${"\x47L\x4f\x42ALS"}["\x69\x62f\x78\x72\x6ep"]},"\x68\x6f\x77_\x74o_\x73\x68o\x77")){case 0:if(!$this->_cookie->dont_show_again)${$cvydwswmcd}=$this->prevDetections(${${"GLO\x42\x41\x4c\x53"}["i\x62\x66\x78\x72np"]});else${${"\x47\x4cOB\x41\x4c\x53"}["\x6eo\x79gq\x68x\x79\x7aa"]}=false;break;case 1:if(!$this->_cookie->first_visit){$yiuhqaehx="\x73\x68\x6f\x77";if(${$yiuhqaehx}=$this->prevDetections(${${"\x47LO\x42A\x4c\x53"}["i\x62\x66\x78\x72\x6e\x70"]}))$this->_cookie->first_visit=true;}else${$dhxtqnqwxnd}=false;break;case 2:${${"GL\x4fB\x41\x4cS"}["no\x79\x67qh\x78y\x7a\x61"]}=$this->prevDetections(${${"G\x4cOB\x41\x4cS"}["\x69b\x66\x78\x72n\x70"]});break;case 3:${${"G\x4c\x4f\x42\x41\x4c\x53"}["f\x6a\x66h\x66\x64k\x78\x76\x62\x72"]}=(int)DBGetVal::config(${$wjmpgski},"\x68ow\x5f\x74\x6f_sh\x6fw_\x74im\x65\x73");${${"\x47\x4cOBA\x4cS"}["u\x6a\x73\x77ry\x70o"]}=(int)DBGetVal::config(${$pxpnovf},"\x68ow\x5fto_\x73ho\x77\x5f\x6dins");${$iziysvg}=$this->_cookie->time_last_displayed?strtotime($this->_cookie->time_last_displayed):(strtotime(date("\x59-\x6d-\x64 \x48:i:\x73")." - ".${$lstlqwdlwrfi}."\x20\x6di\x6e\x75te\x73"));${${"G\x4c\x4f\x42\x41LS"}["\x73\x6es\x76\x6a\x6fh"]}=strtotime(date("Y-\x6d-\x64 \x48:\x69:s"));${${"\x47\x4c\x4fB\x41L\x53"}["iu\x65\x6eb\x78o\x6a\x79"]}=((int)(abs(${${"\x47\x4cO\x42ALS"}["\x61\x74pd\x6cl\x77\x6e"]}-${${"\x47LO\x42\x41\x4c\x53"}["\x75\x74ju\x64s\x6ah\x6b\x6c"]})/60));if(($this->_cookie->times_displayed<${${"G\x4cO\x42A\x4c\x53"}["\x65\x74\x67\x65\x6dk\x6dl"]})&&(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x77\x74mbw\x74\x66"]}>=${${"G\x4c\x4fB\x41L\x53"}["\x75\x6as\x77\x72\x79\x70o"]})){$axluzoe="s\x68\x6f\x77";if(${$axluzoe}=$this->prevDetections(${${"G\x4cO\x42\x41L\x53"}["\x69bfx\x72\x6e\x70"]})){if($this->_cookie->times_displayed)$this->_cookie->times_displayed++;else$this->_cookie->times_displayed=1;$this->_cookie->time_last_displayed=date("Y-\x6d-d H:\x69:\x73");}}else${${"\x47L\x4fB\x41\x4c\x53"}["\x63o\x6c\x6f\x75k\x75\x72d\x6ck"]}=false;break;default:return;}if(${${"\x47L\x4f\x42\x41LS"}["n\x6f\x79g\x71\x68x\x79\x7aa"]}||DBGetVal::config(${${"\x47\x4c\x4fB\x41\x4c\x53"}["ngn\x64l\x6cl\x74hd\x67"]},"\x6ca\x75\x6e\x63h\x5f\x62\x79_l\x69\x6ek"))return$this->_hookHeader(${$xmumxupeodk},${${"GL\x4f\x42ALS"}["\x6e\x6f\x79\x67\x71h\x78y\x7aa"]});}public function hookDisplayMobileHeader(){if(!$this->_id_np)$this->_instance();if(DBGetVal::design($this->_id_np,"\x73\x68\x6fw_\x6fn_d\x65\x76i\x63\x65\x73"))return$this->hookHeader();}private function _hookHeader($id_np,$show){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6fb\x68\x75\x63sdl\x79"]="\x64\x65\x73\x69\x67n";${"GL\x4fB\x41\x4cS"}["\x6fo\x66\x73\x63y\x72\x64j\x79p"]="r";${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x70\x6f\x74\x62\x74n\x76\x62\x68"]="co\x6ef\x69g";$njpprp="\x64\x65\x73ig\x6e";$pcravkke="\x69d_\x6ep";include_once("class\x65\x73/d\x62/\x64bg\x65t\x72\x6fw\x2e\x70h\x70");$xkohroe="\x69\x64\x5fn\x70";$lozbxfqxxd="g";${${"G\x4c\x4fBA\x4c\x53"}["\x6f\x62\x68\x75\x63\x73dl\x79"]}=DBGetRow::design(${${"GLO\x42A\x4c\x53"}["\x69bf\x78r\x6e\x70"]});${"GL\x4f\x42\x41L\x53"}["e\x6e\x6c\x68\x6atw\x6f\x68\x69qy"]="co\x6efig";${${"G\x4c\x4fB\x41\x4c\x53"}["\x74\x79\x78d\x6b\x70g\x73\x63i"]}=${${"\x47\x4c\x4fB\x41\x4cS"}["\x6e\x64\x66\x74\x75\x6e"]}["scr\x65en\x5f\x62\x61\x63\x6bgr\x6fu\x6e\x64"];${"G\x4c\x4f\x42\x41\x4c\x53"}["p\x65\x71\x61\x65\x6ab\x72\x73\x6d\x6e\x6b"]="\x63o\x6e\x66\x69\x67";list(${${"\x47\x4c\x4fBA\x4c\x53"}["\x77u\x77c\x6e\x68\x6f\x74\x66\x72l"]},${${"\x47\x4c\x4f\x42ALS"}["gy\x73\x62g\x7a\x67\x70"]},${${"G\x4cOB\x41L\x53"}["\x68\x6f\x72\x63\x66\x63eu\x76"]})=sscanf(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x79\x78\x64\x6bp\x67\x73\x63\x69"]},"\x250\x32\x78%\x302x\x2502x");${"\x47\x4cO\x42\x41\x4c\x53"}["\x75\x74\x76o\x74n\x66\x67jk\x63"]="\x64\x65\x73i\x67\x6e";${"\x47LOBAL\x53"}["\x62\x6d\x6b\x66\x63\x6a\x76l\x6f\x79"]="\x63\x6fnf\x69\x67";$ojaxqxr="\x62";${${"G\x4cO\x42\x41\x4c\x53"}["\x6e\x64\x66\x74u\x6e"]}["\x73\x63\x72ee\x6e_back\x67\x72\x6f\x75nd\x5f\x72gb"]=${${"GL\x4f\x42\x41LS"}["\x6f\x6f\x66\x73\x63\x79r\x64\x6a\x79\x70"]}.", ".${$lozbxfqxxd}.", ".${$ojaxqxr};$uodyqcijdmk="\x64es\x69g\x6e";${${"\x47\x4cO\x42\x41\x4cS"}["p\x65\x71a\x65\x6a\x62\x72s\x6d\x6ek"]}=DBGetRow::config(${$pcravkke});$yoygekkjcvi="new\x73\x43\x6f\x6efi\x67";${${"G\x4cO\x42\x41L\x53"}["o\x77\x6f\x63\x67\x78\x64n\x77r"]}=DBGetRow::newsConfig(${$xkohroe});if(_PS_VERSION_>="1\x2e5"){$this->context->controller->addCSS($this->_url."c\x73\x73/ctk\x5fn\x65w\x73\x6c\x65tte\x72\x70\x6f\x70u\x70.css");$this->context->controller->addJS(array($this->_url."js/fo\x75n\x64\x61ti\x6fn/foun\x64\x61ti\x6f\x6e.min.\x6a\x73",$this->_url."js/\x63\x74\x6b_\x6eews\x6c\x65\x74t\x65r\x70\x6fpu\x70\x2e\x6di\x6e\x2ej\x73"));}else{Tools::addCSS($this->_url."\x63\x73\x73/c\x74k_ne\x77slett\x65r\x70o\x70u\x70\x2ecs\x73");Tools::addJS(array($this->_url."j\x73/\x6aq\x75\x65\x72\x79-1\x2e7\x2e\x32.\x6din\x2e\x6a\x73",$this->_url."\x6a\x73/founda\x74ion/fo\x75\x6e\x64\x61\x74i\x6f\x6e.min.j\x73",$this->_url."js/ct\x6b\x5f\x6e\x65wslet\x74e\x72p\x6fpup\x2e\x6din\x2ejs"));}global$cookie,$smarty;${"G\x4c\x4fB\x41LS"}["r\x74o\x62l\x65\x63\x66h\x78t\x67"]="\x74";$smarty->assign(array("\x63t\x6b\x5f\x6e\x70\x5fv\x61\x72s"=>array("\x64o\x6e\x74Sh\x6fw\x41\x67\x61i\x6e"=>(!${${"\x47L\x4fB\x41L\x53"}["\x6e\x6f\x79gq\x68xyz\x61"]}?true:false),"_\x75rl"=>$this->_url,"\x75rl\x54\x68e\x6d\x65"=>$this->_url."th\x65\x6des/".${${"G\x4c\x4fB\x41L\x53"}["n\x64\x66\x74\x75n"]}["t\x68e\x6d\x65"]."/","\x6ca\x75nc\x68\x42\x79Li\x6ek"=>${${"\x47L\x4f\x42\x41\x4cS"}["\x65\x6e\x6c\x68\x6a\x74\x77o\x68\x69\x71y"]}["\x6c\x61unc\x68_b\x79_link"],"de\x6cayToS\x68\x6f\x77"=>${${"\x47\x4c\x4f\x42AL\x53"}["\x6bv\x69v\x7a\x74\x71u\x63j\x6c"]}["\x64\x65\x6c\x61\x79_\x74o\x5fs\x68\x6fw"],"\x61u\x74oC\x6c\x6fs\x65"=>${${"\x47L\x4fBALS"}["\x72\x70\x6f\x74\x62\x74nv\x62\x68"]}["\x61ut\x6f\x5fclo\x73e"],"a\x75to\x43\x6co\x73e\x4fpt\x73"=>${${"G\x4cOBA\x4cS"}["k\x76ivz\x74\x71\x75\x63\x6a\x6c"]}["a\x75\x74\x6f_cl\x6f\x73e_\x6fp\x74\x73"],"a\x75\x74\x6f\x43\x6cos\x65\x53ecs"=>${${"\x47\x4cO\x42\x41\x4c\x53"}["bm\x6bfc\x6a\x76\x6co\x79"]}["\x61\x75t\x6f_cl\x6fs\x65\x5fsec\x73"],"a\x75t\x6fClose\x54\x65xt"=>$this->l("A\x75\x74\x6f\x20\x63\x6cos\x65 in"),"urlRe\x64\x69\x72ec\x74"=>${${"G\x4c\x4f\x42\x41\x4cS"}["\x6b\x76\x69v\x7a\x74\x71\x75c\x6al"]}["u\x72\x6c_\x72ed\x69\x72\x65c\x74"],"\x6d\x73g\x54i\x6d\x65Out"=>$this->l("\x49\x6e\x74\x65\x72n\x61l\x20e\x72r\x6f\x72,\x20please\x20t\x72\x79\x20\x61g\x61\x69\x6e\x20la\x74\x65r\x2e")),"\x63t\x6b\x5f\x6e\x70\x5fd\x65s\x69g\x6e"=>${$uodyqcijdmk},"\x63\x74k\x5fnp_\x63on\x66\x69g"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x76\x69\x76z\x74\x71u\x63\x6a\x6c"]},"ct\x6b_\x6ep_\x6eew\x73Co\x6ef\x69\x67"=>${${"\x47LO\x42\x41\x4c\x53"}["\x6f\x77oc\x67xd\x6ew\x72"]},"\x63t\x6b\x5fnp_l\x61\x6e\x67"=>DBGetRow::lang(${${"\x47\x4c\x4fBA\x4c\x53"}["i\x62\x66\x78r\x6e\x70"]},(int)$cookie->id_lang)));$dqmhydv="\x74";if(${${"\x47L\x4fB\x41L\x53"}["\x6f\x77o\x63\x67\x78\x64\x6e\x77\x72"]}["s\x68o\x77\x5fa\x63\x63e\x70t\x5f\x74e\x72ms"])$smarty->assign("ct\x6b_\x6ep_\x74\x65rms",$this->getCMS(${$yoygekkjcvi}["id\x5f\x63ms_t\x65\x72m\x73"],(int)$cookie->id_lang));${${"\x47LO\x42ALS"}["r\x74\x6f\x62l\x65c\x66\x68\x78t\x67"]}=$this->_path."\x74he\x6d\x65\x73/".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x75tvo\x74\x6e\x66\x67\x6ak\x63"]}["t\x68e\x6d\x65"]."/\x63\x74\x6b_\x6e\x65w\x73\x6c\x65t\x74e\x72\x70\x6f\x70\x75p.t\x70\x6c";if(file_exists(${$dqmhydv}))return$this->display($this->_path,"t\x68em\x65\x73/".${$njpprp}["\x74h\x65\x6de"]."/ct\x6b\x5fne\x77sle\x74te\x72p\x6f\x70up\x2etp\x6c");return$this->display($this->_path,"ctk\x5fnews\x6c\x65\x74\x74\x65r\x70opup.t\x70\x6c");}private function getCMS($id_cms,$id_lang=null,$active=true){return Db::getInstance()->getRow("\n\t\t\tS\x45LE\x43T *\n\t\t\t\x46R\x4fM\x20\x60"._DB_PREFIX_."\x63m\x73`\x20c\n\t\t\t\x49N\x4e\x45R\x20JO\x49\x4e\x20\x60"._DB_PREFIX_."cm\x73\x5f\x6c\x61\x6e\x67`\x20\x6c ON c\x2e`i\x64\x5f\x63\x6d\x73\x60\x20\x3d l.\x60\x69\x64\x5f\x63\x6d\x73` AND\x20l\x2e`\x69d\x5f\x6can\x67` =\x20".(int)${${"\x47L\x4f\x42\x41\x4cS"}["\x70\x77\x65\x78\x6d\x6d\x6b"]}."\n\t\t\tW\x48E\x52E c\x2e`\x61\x63\x74\x69ve\x60\x20= \x31\n\t\t\tA\x4eD\x20\x63.`\x69d_c\x6ds\x60 \x3d\x20".(int)${${"\x47LO\x42\x41LS"}["e\x6bg\x76\x66\x6c\x72\x64y\x6b"]}."\n\t\t");}private function prevDetections($id_np){${"G\x4c\x4f\x42\x41LS"}["\x6e\x62\x79\x66dfed\x72"]="\x73\x68\x6f\x77";${"\x47LOBAL\x53"}["\x6a\x69p\x76\x68\x78\x62\x6d\x74"]="\x73\x68ow";${${"GLO\x42A\x4cS"}["\x6a\x69pv\x68x\x62\x6d\x74"]}=true;if(!$this->detectPage(${${"\x47\x4cO\x42\x41L\x53"}["i\x62f\x78\x72\x6e\x70"]}))${${"\x47L\x4f\x42\x41\x4cS"}["\x6eb\x79fdf\x65\x64\x72"]}=false;if(DBGetVal::newsConfig(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69b\x66\x78\x72n\x70"]},"d\x65\x74\x65ct_s\x75\x62\x73cribe\x64")){if($this->detectSubscribers())${${"\x47L\x4fB\x41\x4c\x53"}["\x6e\x6fy\x67q\x68x\x79\x7a\x61"]}=false;}return${${"\x47\x4c\x4fBAL\x53"}["no\x79g\x71h\x78\x79\x7a\x61"]};}private function detectPage($id_np){if(!DBGetVal::config(${${"GLO\x42AL\x53"}["\x69b\x66xr\x6e\x70"]},"\x73ho\x77\x5fo\x6e"))return true;else{${"\x47\x4cO\x42\x41\x4cS"}["\x71\x6e\x69a\x71x"]="\x70a\x67es";if(!${${"\x47\x4cO\x42A\x4cS"}["q\x6e\x69aqx"]}=explode(",",DBGetVal::config(${${"\x47\x4c\x4fB\x41\x4cS"}["\x69b\x66\x78\x72\x6e\x70"]},"sh\x6fw\x5f\x6f\x6e_pages")))return false;else{if(_PS_VERSION_>="1.\x35"){${"\x47\x4c\x4fBA\x4cS"}["\x62\x77o\x6f\x66em\x71\x63"]="cur\x72\x65n\x74P\x61\x67\x65";if(isset(Context::getContext()->controller->php_self))${${"\x47\x4c\x4fB\x41L\x53"}["\x6dr\x72\x64\x78\x64\x76\x6e\x61m"]}=Context::getContext()->controller->php_self;else${${"G\x4c\x4fBA\x4cS"}["\x62\x77o\x6ff\x65mq\x63"]}=Dispatcher::getInstance()->getController();}else${${"\x47\x4cO\x42\x41\x4c\x53"}["mr\x72\x64\x78\x64\x76nam"]}=basename($_SERVER["P\x48P\x5f\x53\x45\x4c\x46"],"\x2ephp");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x6fy\x67\x71h\x78y\x7aa"]}=false;${"G\x4c\x4fB\x41\x4cS"}["\x73t\x76pz\x64\x74qr\x6d"]="\x70\x61\x67\x65";foreach(${${"\x47\x4c\x4f\x42\x41\x4cS"}["j\x6a\x72m\x72\x6e\x73"]} as${${"\x47LOBAL\x53"}["st\x76\x70\x7adtqr\x6d"]}){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x63\x62\x70k\x6ey\x75\x66\x64c"]="\x70\x61\x67e";$kletcahw="s\x68o\x77";if(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x63\x62pk\x6eyu\x66\x64\x63"]}==${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6d\x72\x72\x64\x78\x64\x76n\x61\x6d"]})${$kletcahw}=true;}return${${"\x47LO\x42\x41L\x53"}["\x6e\x6f\x79\x67\x71h\x78\x79\x7a\x61"]};}}}private function detectSubscribers(){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x67\x66\x71i\x63\x62e\x71"]="\x65m\x61il";if($this->_cookie->guest_subscribed||$this->_cookie->customer_subscribed)return true;global$cookie;if(!isset($cookie->id_lang))${${"GL\x4f\x42ALS"}["\x79igm\x64t\x75\x78q"]}=new Cookie("ps");if(${${"GLOB\x41L\x53"}["kg\x66\x71ic\x62e\x71"]}=$cookie->email){if(Db::getInstance()->getValue("\x53EL\x45CT \x31\x20F\x52OM `"._DB_PREFIX_."\x63\x75s\x74omer` \x57\x48\x45RE `email\x60\x20\x3d\x20'".${${"G\x4cO\x42\x41\x4c\x53"}["\x74\x67\x66\x63f\x71\x63\x76"]}."\x27\x20AND\x20\x60\x6e\x65\x77\x73\x6ce\x74\x74\x65r` =\x201")){$this->_cookie->customer_subscribed=true;return true;}}return false;}public function subscribeNewsletter($id_np,$terms,$email){${"G\x4c\x4fBA\x4c\x53"}["\x67\x6eoi\x66\x73\x6b\x69\x75\x73j"]="e\x6d\x61\x69\x6c";if(!${${"\x47\x4c\x4fB\x41\x4c\x53"}["gn\x6fi\x66\x73\x6b\x69usj"]})return array("\x6d\x73g"=>$this->l("P\x6c\x65as\x65\x20\x65n\x74e\x72 y\x6f\x75r\x20e\x6d\x61i\x6c\x20\x61\x64dr\x65\x73\x73\x2e"),"\x65\x72\x72"=>1);elseif(!Validate::isEmail(${${"\x47\x4c\x4f\x42\x41L\x53"}["t\x67\x66\x63\x66\x71\x63\x76"]}))return array("m\x73g"=>$this->l("\x49nv\x61\x6cid \x65-\x6dai\x6c \x61d\x64\x72ess,\x20\x70l\x65\x61s\x65 \x63\x68\x65ck\x2e"),"\x65\x72\x72"=>1);elseif((${${"\x47\x4cOB\x41\x4c\x53"}["\x65\x6b\x67\x76f\x6c\x72d\x79k"]}=DBGetVal::newsConfig(${${"G\x4cO\x42\x41\x4cS"}["i\x62\x66\x78\x72\x6e\x70"]},"id_c\x6d\x73_t\x65\x72\x6ds"))&&DBGetVal::newsConfig(${${"G\x4c\x4f\x42\x41L\x53"}["\x69\x62\x66xrn\x70"]},"\x73\x68o\x77\x5f\x61c\x63\x65\x70\x74_\x74erms")&&!${${"\x47\x4c\x4fB\x41L\x53"}["o\x68\x61\x73q\x69jqi"]})return array("\x6ds\x67"=>$this->l("Y\x6f\x75 \x6e\x65\x65d \x74o\x20\x61c\x63ep\x74\x20\x74\x68e\x20\x74e\x72\x6ds a\x6e\x64\x20\x63\x6f\x6ed\x69t\x69\x6f\x6e\x73\x2e"),"e\x72\x72"=>1);else{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fgm\x71\x6fbh\x74\x7ao\x69\x75"]="\x69\x64\x5fn\x70";$this->newsletterRegistration(${${"\x47LO\x42A\x4cS"}["\x6fg\x6dq\x6f\x62\x68\x74\x7a\x6f\x69\x75"]},${${"\x47L\x4f\x42\x41LS"}["t\x67fcf\x71\x63\x76"]});if($this->error)return array("\x6d\x73g"=>$this->error,"\x65rr"=>1);elseif($this->valid)return array("m\x73g"=>$this->valid,"\x65r\x72"=>0);else return array("ms\x67"=>$this->l("\x55n\x6bn\x6fwn\x20err\x6f\x72\x2e"),"\x65rr"=>1);}}private function newsletterRegistration($id_np,$email){include_once($this->_path."fu\x6ect\x69o\x6es/\x66\x75\x6e\x63\x74\x69ons.\x70h\x70");${"\x47L\x4f\x42\x41L\x53"}["r\x73\x72\x64\x78\x68h\x77w"]="\x69\x64\x5fn\x70";${${"G\x4c\x4f\x42A\x4c\x53"}["\x7a\x6f\x77r\x77jx\x67"]}=new CTK_NewsletterPopupFunctions();${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67u\x75a\x73\x67\x64\x6b"]}=$functions->isNewsletterRegistered(${${"GL\x4f\x42\x41\x4c\x53"}["\x72\x73r\x64xh\x68ww"]},${${"\x47L\x4fBA\x4cS"}["tgfc\x66\x71\x63v"]});if(${${"\x47\x4c\x4fB\x41\x4cS"}["\x67\x75\x75\x61\x73\x67d\x6b"]}>0){if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67uua\x73gd\x6b"]}==3){${"GLOBAL\x53"}["\x63\x6dq\x64yke\x79\x68"]="t\x6f\x6b\x65\x6e";if(!${${"GLO\x42ALS"}["\x63\x6dq\x64\x79\x6be\x79h"]}=$functions->getToken(${${"\x47\x4c\x4f\x42A\x4c\x53"}["tgf\x63\x66q\x63\x76"]},${${"\x47LOB\x41\x4c\x53"}["\x67\x75\x75\x61\x73\x67\x64\x6b"]}))return$this->error=$this->l("\x49nt\x65\x72\x6e\x61l\x20er\x72o\x72 \x64u\x72\x69ng \x73u\x62sc\x72\x69\x70\x74\x69on.");return$this->error=$this->l("\x45-mai\x6c\x20h\x61s\x20\x6eo\x74\x20b\x65\x65n \x76er\x69\x66\x69ed ye\x74, pl\x65\x61\x73e \x76alid\x61\x74\x65 it b\x79\x20\x63l\x69\x63\x6b\x69\x6e\x67 t\x68e\x20link\x20s\x65nt\x20b\x79\x20\x65\x6dail.");}else return$this->error=$this->l("E-mai\x6c\x20a\x64\x64\x72e\x73\x73 \x61lre\x61dy \x72eg\x69\x73\x74ered\x2e");}elseif(${${"\x47L\x4f\x42\x41\x4c\x53"}["g\x75u\x61s\x67dk"]}==-1){if(DBGetVal::newsConfig(${${"\x47\x4c\x4f\x42AL\x53"}["\x69b\x66\x78\x72\x6e\x70"]},"\x73e\x6ed\x5fva\x6cidati\x6f\x6e")){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x74\x68wvocc\x65\x73\x63\x66"]="i\x64\x5f\x6e\x70";$dgjbvphscr="r\x65\x67isterS\x74\x61\x74\x75\x73";${"\x47LOB\x41\x4c\x53"}["edec\x69\x64\x6bs"]="\x65\x6da\x69\x6c";$mxefembyew="ema\x69\x6c";$xodigixq="\x74oke\x6e";if(!$functions->registerGuest(${${"\x47L\x4fB\x41L\x53"}["\x74\x67\x66\x63\x66q\x63v"]},0))return$this->error=$this->l("\x49\x6ete\x72\x6ea\x6c\x20e\x72r\x6fr\x20(01)\x20\x64u\x72\x69\x6e\x67 \x73u\x62s\x63\x72i\x70t\x69on, t\x72y\x20\x6c\x61\x74\x65r.");if(!${$xodigixq}=$functions->getToken(${$mxefembyew},${${"G\x4c\x4f\x42\x41\x4c\x53"}["gu\x75\x61\x73\x67\x64k"]}))return$this->error=$this->l("\x49\x6e\x74\x65\x72na\x6c\x20\x65\x72r\x6f\x72\x20(0\x32)\x20\x64u\x72in\x67 s\x75\x62\x73cri\x70tio\x6e.");$this->sendVerificationEmailSubscription(${${"G\x4c\x4fB\x41\x4cS"}["\x6d\x74h\x77\x76o\x63\x63e\x73c\x66"]},${${"G\x4c\x4f\x42A\x4c\x53"}["\x65\x64\x65c\x69\x64k\x73"]},${$dgjbvphscr},${${"\x47L\x4f\x42\x41\x4cS"}["u\x63r\x77\x71\x79"]});return$this->valid=$this->l("A\x20\x76\x65ri\x66\x69\x63\x61\x74io\x6e e\x6da\x69l\x20\x74\x6f\x20su\x62\x73\x63\x72\x69b\x65\x20h\x61\x73\x20been s\x65nt. P\x6ceas\x65\x20chec\x6b\x20\x79o\x75\x72 \x65\x6da\x69l\x2e");}else{if(!$functions->registerGuest(${${"GL\x4fB\x41\x4c\x53"}["\x74\x67\x66\x63\x66q\x63\x76"]}))return$this->error=$this->l("\x49\x6e\x74\x65r\x6eal\x20e\x72\x72\x6f\x72\x20(0\x33)\x20\x64\x75r\x69\x6eg \x73ubs\x63\x72i\x70tion,\x20t\x72y\x20\x6c\x61t\x65\x72\x2e");else$this->_cookie->guest_subscribed=true;return$this->sendConfirmations(${${"\x47LO\x42\x41LS"}["\x69\x62f\x78rn\x70"]},${${"\x47\x4c\x4f\x42\x41L\x53"}["t\x67\x66c\x66q\x63v"]},$functions->mailLang());}}elseif(${${"\x47\x4c\x4f\x42A\x4c\x53"}["g\x75u\x61\x73\x67\x64\x6b"]}==0){${"\x47\x4c\x4fB\x41\x4cS"}["\x6cc\x74\x73\x6cc\x6ecs\x6c\x61q"]="\x65\x6d\x61\x69\x6c";${"\x47L\x4fBALS"}["o\x79\x75v\x6f\x79h\x78\x79\x75\x6a"]="\x65\x6dail";$oexrvzdmxv="\x69d_\x6e\x70";if(!$functions->registerUser(${${"\x47\x4cOB\x41\x4c\x53"}["\x6c\x63\x74\x73\x6c\x63\x6e\x63sl\x61\x71"]}))return$this->error=$this->l("\x49n\x74ern\x61l er\x72\x6fr (\x304) \x64u\x72\x69\x6eg\x20s\x75\x62s\x63ri\x70ti\x6f\x6e, \x74ry\x20\x6ca\x74\x65r\x2e");else$this->_cookie->customer_subscribed=true;return$this->sendConfirmations(${$oexrvzdmxv},${${"\x47L\x4f\x42\x41\x4c\x53"}["o\x79\x75\x76\x6fy\x68\x78\x79uj"]},$functions->mailLang());}}public function confirmEmail($id_np,$email,$token){$sfjvkobs="\x61\x63t\x69\x76ate\x64";$plhkfhhsi="id_n\x70";$lvqljvb="\x74\x6f\x6be\x6e";${"\x47\x4c\x4f\x42\x41L\x53"}["t\x6a\x73iml\x6ft\x6de"]="\x65m\x61\x69l";global$cookie;if(!isset($cookie->id_lang))${${"G\x4cO\x42\x41L\x53"}["\x79\x69gm\x64\x74u\x78\x71"]}=new Cookie("p\x73");if(!${${"\x47L\x4fB\x41\x4c\x53"}["\x74\x67\x66\x63\x66qcv"]}||!${$lvqljvb})return array("msg"=>$this->l("\x49n\x76\x61l\x69\x64 a\x63\x74\x69v\x61\x74\x69\x6f\x6e \x6ci\x6ek."),"e\x72\x72"=>1);$ojhoeeelj="ac\x74\x69v\x61\x74\x65\x64";$xyffpepsm="\x66\x75n\x63t\x69\x6f\x6e\x73";$eocehh="t\x6f\x6b\x65\x6e";include_once($this->_path."f\x75n\x63t\x69o\x6es/\x66u\x6e\x63\x74\x69o\x6e\x73\x2eph\x70");${"G\x4c\x4f\x42\x41\x4cS"}["\x77v\x6et\x65\x70\x71\x79\x75"]="ac\x74iv\x61t\x65d";${$xyffpepsm}=new CTK_NewsletterPopupFunctions();${$sfjvkobs}=false;if($functions->getGuestEmail(${$eocehh}))${${"\x47\x4c\x4f\x42\x41LS"}["\x77vn\x74\x65\x70\x71\x79u"]}=$functions->activateGuest(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x6a\x73\x69\x6dl\x6f\x74\x6de"]});if(!${$ojhoeeelj})return array("\x6d\x73g"=>$this->l("T\x68\x69\x73 em\x61\x69l is \x61\x6c\x72\x65\x61d\x79 \x72e\x67\x69\x73\x74e\x72e\x64 \x61\x6e\x64/\x6f\x72 th\x65\x20\x6cink\x20i\x73\x20i\x6eval\x69\x64\x2e"),"\x65rr"=>1);else$this->_cookie->guest_subscribed=true;$this->sendConfirmations(${$plhkfhhsi},${${"\x47\x4c\x4fB\x41LS"}["\x74g\x66\x63\x66\x71c\x76"]},$functions->mailLang());if($this->error)return array("ms\x67"=>$this->error,"\x65r\x72"=>1);elseif($this->valid)return array("\x6d\x73g"=>$this->valid,"\x65\x72\x72"=>0);else return array("m\x73\x67"=>$this->l("Un\x6b\x6e\x6f\x77\x6e\x20er\x72\x6fr\x2e"),"e\x72\x72"=>1);}private function sendConfirmations($id_np,$email,$mailLang){$ktoystkdxln="\x65\x6da\x69l";$khexlhv="\x6da\x69\x6c\x4c\x61\x6e\x67";$fesqglltoxip="\x74";if(DBGetVal::newsConfig(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x62\x66\x78r\x6ep"]},"\x73\x65\x6ed\x5fc\x6fn\x66ir\x6datio\x6e"))return$this->sendConfirmationEmail(${$ktoystkdxln},${$khexlhv});elseif(${$fesqglltoxip}=DBGetVal::newsConfig(${${"\x47L\x4f\x42\x41L\x53"}["\x69\x62fx\x72\x6e\x70"]},"\x73en\x64\x5fv\x6f\x75c\x68er"))return$this->sendVoucher(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x62f\x78\x72\x6ep"]},${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x67\x66c\x66\x71\x63v"]},${${"\x47L\x4fB\x41\x4c\x53"}["pp\x77\x73\x73\x78\x77m\x6f"]});else return$this->valid=$this->l("\x53u\x62sc\x72\x69\x70ti\x6f\x6e t\x6f \x74\x68e new\x73\x6ce\x74\x74e\x72, \x73\x75\x63\x63\x65ss\x66u\x6cly.");}private function sendVerificationEmailSubscription($id_np,$email,$registerStatus,$token){global$cookie;if(!isset($cookie->id_lang))${${"\x47L\x4fB\x41LS"}["\x79\x69\x67\x6d\x64\x74ux\x71"]}=new Cookie("\x70s");include_once($this->_path."\x66\x75\x6ect\x69o\x6es/\x66u\x6ec\x74\x69\x6f\x6es\x2e\x70h\x70");${${"G\x4c\x4f\x42A\x4cS"}["\x7aow\x72\x77\x6a\x78\x67"]}=new CTK_NewsletterPopupFunctions();if(DBGetVal::newsConfig(${${"G\x4c\x4f\x42\x41\x4c\x53"}["i\x62\x66\x78\x72\x6e\x70"]},"\x73\x65n\x64_va\x6ci\x64\x61t\x69\x6f\x6e")){${"G\x4cOB\x41\x4c\x53"}["\x79\x76\x78o\x72\x74\x66\x79e"]="r\x65\x67\x69\x73\x74\x65\x72\x53t\x61\x74u\x73";if((${${"G\x4c\x4fB\x41L\x53"}["\x79v\x78ort\x66\x79\x65"]}==-1)OR(${${"G\x4c\x4f\x42\x41L\x53"}["\x67\x75\x75\x61sg\x64\x6b"]}==3)){$qhefyj="\x76\x65\x72\x69\x66\x5f\x75\x72\x6c";$youfga="em\x61\x69\x6c";${"\x47L\x4f\x42\x41L\x53"}["f\x69\x78\x67n\x75\x77p\x72\x62"]="tok\x65\x6e";${"\x47\x4cO\x42A\x4c\x53"}["\x73\x70cp\x69\x78\x65\x79"]="ver\x69\x66\x5f\x75\x72l";${"\x47\x4c\x4fBA\x4c\x53"}["\x66\x63vg\x66f\x62\x6e\x71"]="\x74\x6fk\x65\x6e";if(_PS_VERSION_>="\x31.\x35")${${"\x47LOB\x41L\x53"}["\x6do\x71\x74\x6e\x67\x72\x7a"]}=Context::getContext()->link->getModuleLink($this->name,"\x76erif\x69\x63\x61\x74\x69\x6fn",array("s\x75bs\x5fne\x77s\x6c\x65\x74t\x65r\x5fem\x61il"=>${${"\x47\x4cO\x42AL\x53"}["\x74\x67fc\x66\x71\x63\x76"]},"\x74ok\x65\x6e"=>${${"\x47LO\x42\x41\x4cS"}["\x66\x69\x78\x67\x6e\x75w\x70\x72b"]}));else${${"\x47\x4cO\x42A\x4cS"}["\x73pc\x70ix\x65y"]}=Tools::getHttpHost(true).$this->_url."v\x65r\x69f\x69\x63\x61t\x69o\x6e\x2e\x70h\x70?\x73u\x62s\x5f\x6eew\x73\x6c\x65\x74t\x65\x72_\x65ma\x69\x6c\x3d".${$youfga}."&\x74\x6fken\x3d".${${"GLO\x42A\x4c\x53"}["\x66c\x76\x67f\x66b\x6eq"]};if(!Mail::Send($functions->mailLang(),"ne\x77sle\x74\x74\x65\x72_\x76\x65\x72i\x66",Mail::l("Email \x76er\x69\x66\x69c\x61tion",(int)$cookie->id_lang),array("{ve\x72\x69f_u\x72\x6c}"=>${$qhefyj}),${${"\x47L\x4f\x42\x41\x4c\x53"}["\x74\x67\x66c\x66\x71\x63\x76"]},null,null,null,null,null,$this->_path."mai\x6cs/"))return$this->error=$this->l("\x45\x72\x72or\x20se\x6ed\x69\x6e\x67 \x65m\x61\x69l\x20v\x65r\x69\x66\x69\x63\x61ti\x6fn\x20to\x20\x73\x75b\x73c\x72ib\x65.");}}}private function sendConfirmationEmail($email,$mailLang){$cswmcwxwu="co\x6fk\x69\x65";global$cookie;$rrsdva="\x6d\x61i\x6c\x4can\x67";if(!isset($cookie->id_lang))${$cswmcwxwu}=new Cookie("\x70\x73");if(!Mail::Send(${$rrsdva},"\x6e\x65wsl\x65\x74te\x72_\x63o\x6ef",Mail::l("\x4e\x65w\x73le\x74\x74\x65r\x20con\x66i\x72\x6d\x61\x74io\x6e",(int)$cookie->id_lang),array(),${${"\x47\x4cO\x42AL\x53"}["\x74\x67\x66\x63\x66\x71\x63\x76"]},null,null,null,null,null,$this->_path."\x6dail\x73/"))return$this->error=$this->l("\x53\x75\x62s\x63ri\x70t\x69on \x74o\x20the\x20n\x65wsle\x74\x74\x65r, \x73\x75\x63c\x65s\x73fu\x6cl\x79, but ha\x64\x20\x61n\x20e\x72r\x6fr \x77\x68il\x65 sendi\x6e\x67\x20\x65\x6d\x61\x69\x6c co\x6efir\x6da\x74\x69on.");return$this->valid=$this->l("Su\x62s\x63r\x69\x70t\x69\x6fn \x74\x6f the\x20n\x65w\x73\x6c\x65t\x74\x65\x72,\x20\x73\x75c\x63e\x73\x73\x66u\x6cly\x2e");}private function sendVoucher($id_np,$email,$voucher){$oidbkdtkmy="\x76\x6f\x75\x63\x68\x65\x72";${"G\x4c\x4f\x42A\x4c\x53"}["e\x6dh\x6d\x72x\x6b\x6f"]="vo\x75\x63h\x65r";$wfdrfmv="f\x75nct\x69\x6f\x6e\x73";include_once($this->_path."f\x75\x6ecti\x6f\x6es/\x66u\x6e\x63\x74\x69o\x6es.php");${$wfdrfmv}=new CTK_NewsletterPopupFunctions();if(${${"GLOB\x41LS"}["\x65mh\x6d\x72x\x6bo"]}==1){if(${${"GLO\x42\x41\x4c\x53"}["\x69\x76ms\x73\x7a\x61\x6d\x6em\x6c"]}=DBGetVal::newsConfig(${${"\x47\x4c\x4fB\x41L\x53"}["i\x62\x66\x78\x72\x6e\x70"]},"voucher\x5f\x63\x6f\x64e")){$vbnsfqkbz="\x74\x65m\x70\x6c\x61\x74e\x56\x61\x72\x73";$hpbjqcuhfwtg="\x65\x6da\x69\x6c";${$vbnsfqkbz}=array("{v\x6fuc\x68\x65r_n\x75m}"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x76\x6ds\x73\x7aa\x6dn\x6d\x6c"]});if(!$functions->_sendVoucher(${$hpbjqcuhfwtg},"n\x65wsl\x65tt\x65r_v\x6fucher",${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x66\x64c\x63q"]}))return$this->error=$this->l("\x53u\x62\x73\x63r\x69\x70ti\x6fn \x73u\x63\x63\x65s\x73f\x75ll\x79, \x62ut\x20h\x61\x64\x20a\x6e \x65r\x72or \x77h\x69\x6ce\x20s\x65n\x64ing\x20e\x6da\x69l w\x69\x74\x68\x20\x76o\x75\x63h\x65r \x63\x6fde,\x20\x70\x6ce\x61\x73\x65 \x63o\x6eta\x63\x74\x20\x75s \x66\x6fr\x20\x79\x6f\x75r\x20\x67\x69ft\x2e");}}elseif(${$oidbkdtkmy}==2){${"\x47L\x4fB\x41\x4c\x53"}["yi\x72\x69\x79\x76"]="\x76\x61\x6c\x75\x65";$mrhurxe="\x74\x79\x70\x65";if((${${"G\x4c\x4f\x42A\x4c\x53"}["\x79\x69r\x69y\x76"]}=DBGetVal::newsConfig(${${"G\x4c\x4fB\x41\x4c\x53"}["\x69\x62\x66\x78r\x6ep"]},"\x76ou\x63he\x72_val\x75e"))&&(${$mrhurxe}=DBGetVal::newsConfig(${${"G\x4c\x4fBAL\x53"}["\x69\x62f\x78\x72\x6e\x70"]},"\x76ouc\x68\x65\x72_t\x79p\x65"))&&(${${"G\x4c\x4f\x42\x41\x4c\x53"}["d\x66\x6b\x73\x75\x73\x66\x65\x78"]}=DBGetVal::newsConfig(${${"G\x4c\x4f\x42AL\x53"}["ibfxrn\x70"]},"\x76\x6fuch\x65r\x5f\x64\x61ys"))){${"\x47\x4c\x4f\x42\x41LS"}["\x64\x78\x65\x69u\x72\x67"]="d\x61y\x73";$terwzcke="\x76o\x75\x63\x68e\x72";$thmkswncwi="\x76a\x6cu\x65";$zrxhed="\x69\x64\x5f\x6e\x70";${${"\x47\x4c\x4f\x42A\x4c\x53"}["z\x6as\x76\x74\x6b\x77\x6c"]}=$functions->createDiscount((float)${$thmkswncwi},${${"G\x4c\x4fB\x41\x4c\x53"}["\x65o\x67yxy\x70g\x6aaq"]},strftime("\x25Y-%m-\x25\x64\x20%H:\x25M:%S",strtotime("+".(int)${${"\x47\x4cOB\x41\x4cS"}["d\x78e\x69\x75rg"]}."\x20\x64\x61\x79")),DBGetVal::newsConfig(${$zrxhed},"\x76\x6f\x75\x63\x68er\x5fmi\x6e\x5f\x6f\x72\x64\x65\x72"),$this->l("\x54han\x6b \x79\x6f\x75\x20\x66or yo\x75\x20s\x75\x62\x73c\x72\x69\x70\x74ion o\x75r\x20\x6e\x65w\x73le\x74\x74\x65\x72."));if(${$terwzcke}!==false){${"G\x4c\x4f\x42\x41LS"}["u\x71\x6c\x73s\x75\x62\x6f"]="t\x65m\x70l\x61\x74\x65\x56\x61\x72\x73";$preljjqrxvy="\x65\x6da\x69\x6c";${"GLO\x42\x41\x4cS"}["\x61r\x72\x7a\x76i\x6fpxg\x68\x70"]="\x64a\x79\x73";$gyxnopbba="\x76alu\x65";${${"G\x4c\x4fB\x41L\x53"}["\x75q\x6c\x73\x73u\x62o"]}=array("{e\x6dail}"=>${$preljjqrxvy},"{\x76\x61l\x75e}"=>(${${"\x47\x4c\x4fB\x41LS"}["\x65\x6f\x67\x79\x78\x79p\x67\x6aa\x71"]}==1?${${"GL\x4fBA\x4c\x53"}["\x6fmi\x67\x73r\x66nz"]}."\x25":Tools::displayPrice(${$gyxnopbba},new Currency((int)Configuration::get("\x50S_\x43\x55\x52\x52\x45\x4eC\x59_DEF\x41\x55LT")),false)),"{\x64ay\x73}"=>${${"\x47\x4c\x4f\x42AL\x53"}["\x61\x72\x72\x7a\x76\x69\x6fpxg\x68\x70"]},"{vo\x75\x63her_\x6eu\x6d}"=>(_PS_VERSION_>="\x31\x2e5"?$voucher->code:$voucher->name));$ujaomoyrcpk="\x74emp\x6c\x61\x74e\x56\x61\x72\x73";if(!$functions->_sendVoucher(${${"\x47\x4cO\x42\x41\x4c\x53"}["tgf\x63f\x71cv"]},"n\x65w\x73\x6c\x65\x74te\x72_\x76\x6fu\x63\x68er_\x32",${$ujaomoyrcpk}))return$this->error=$this->l("S\x75\x62scriptio\x6e\x20s\x75cce\x73sfu\x6c\x6c\x79, \x62u\x74 \x68\x61\x64 \x61n e\x72r\x6f\x72\x20w\x68i\x6c\x65 \x73\x65ndi\x6e\x67 em\x61il\x20\x77\x69\x74\x68 vo\x75\x63h\x65r\x20\x63o\x64e, \x70l\x65\x61s\x65\x20con\x74act\x20u\x73\x20f\x6fr \x79o\x75\x72\x20\x67\x69ft.");}}}else return$this->error=$this->l("There is \x6e\x6f \x74y\x70e\x20of \x76\x6f\x75\x63\x68\x65\x72 c\x6fd\x65\x20\x74\x6f \x73\x65nd.");return$this->valid=$this->l("S\x75bs\x63r\x69ption t\x6f \x74\x68e\x20ne\x77\x73l\x65tter, su\x63ces\x73\x66\x75\x6c\x6cy\x2e\x20An\x20em\x61\x69l\x20\x77as sent\x20with y\x6fu\x72\x20\x67\x69ft \x76o\x75\x63\x68e\x72 \x63od\x65\x2e");}public function _instance(){$vhmxigqsomob="\x68\x6fw_\x74\x6f_r\x65\x73\x65t";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6a\x6db\x78uju\x6f"]="\x68\x6f\x77\x5f\x74\x6f_\x72\x65\x73e\x74";$bojrobospf="\x64a\x74e\x5f\x61\x64d";$this->_id_np=DBCTKNP::getID();${$vhmxigqsomob}=(int)DBGetVal::config($this->_id_np,"\x68ow\x5f\x74o\x5f\x72\x65\x73\x65t");${"\x47\x4c\x4fB\x41\x4cS"}["\x70ls\x6d\x74\x6et\x77"]="\x65\x78\x70ir\x65";$lillbmus="\x65\x78\x70\x69\x72\x65";${$lillbmus}=(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x67z\x67\x66\x70qp\x63\x6d\x67y"]}?time()+60*60*24*${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x72\x67\x7a\x67f\x70q\x70\x63m\x67\x79"]}:(int)${${"\x47\x4cO\x42\x41\x4cS"}["\x6a\x6d\x62\x78\x75\x6a\x75\x6f"]});$this->_cookie=new Cookie("\x63\x74\x6b_np_".$this->_id_np,null,(int)${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x6c\x73\x6d\x74\x6et\x77"]});if((${$bojrobospf}=$this->_cookie->date_add)&&${${"GL\x4f\x42A\x4cS"}["\x79\x67\x70\x76d\x6a\x66\x6c"]}){${"G\x4c\x4f\x42\x41\x4cS"}["f\x78\x70\x76\x6b\x6d"]="\x64\x61\x74\x65\x5f\x61d\x64";${${"GLOBA\x4cS"}["\x64f\x6bs\x75\x73\x66\x65\x78"]}=(strtotime(date("Y-m-\x64\x20H:\x69:\x73"))-strtotime(${${"G\x4c\x4fB\x41\x4cS"}["\x66\x78\x70\x76km"]}))/(60*60*24);if(${${"\x47\x4c\x4f\x42\x41\x4cS"}["df\x6b\x73\x75sf\x65x"]}>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x67z\x67\x66\x70q\x70\x63mgy"]}){unset($_COOKIE[$this->_cookie->getName()]);$this->_cookie=new Cookie("ctk_\x6ep_".$this->_id_np,null,(int)${${"\x47\x4cOB\x41LS"}["yg\x70\x76\x64jf\x6c"]});}}return;}public function saveLog($msg){$gpkreeipv="\x6d\x73\x67";${${"G\x4c\x4f\x42A\x4c\x53"}["e\x6fkh\x72\x69\x71"]}=$this->_path."er\x72o\x72_\x6c\x6f\x67\x2e\x68\x74\x6dl";${${"\x47\x4cO\x42\x41L\x53"}["\x63\x79v\x73tgg\x6bu\x69\x69"]}=date("\x59-m-\x64\x20\x48:i:\x73");${"\x47\x4c\x4f\x42AL\x53"}["\x62\x74\x61d\x77\x70\x6eo\x65w"]="\x6ds\x67";${${"\x47LOBAL\x53"}["ojl\x7a\x61s\x72\x64x\x79"]}="\n".${${"G\x4cO\x42\x41L\x53"}["\x63\x79\x76\x73\x74\x67\x67k\x75\x69i"]}."\x20- ".${$gpkreeipv};@file_put_contents(${${"GL\x4f\x42\x41\x4cS"}["\x65\x6fkh\x72iq"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x74a\x64\x77\x70\x6e\x6f\x65w"]},FILE_APPEND|LOCK_EX);return;}}

Function Calls

None

Variables

None

Stats

MD5 1f87adfdb0797f18718d3db01efbb5c8
Eval Count 0
Decode Time 158 ms