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 if(defined("TEST_SITE")){define('Wim',"image/cache/lightning_test/");define('Win',DI..

Decoded Output download

<?php if(defined("TEST_SITE")){define('Wim',"image/cache/lightning_test/");define('Win',DIR_IMAGE."cache/lightning_test/");}else{define('Wim',"image/cache/lightning/");define('Win',DIR_IMAGE."cache/lightning/");} 
Whe(Win);if(!empty($Mz)){if($Mz=="n"){require_once"tau.php";if(!empty($_GET["op"])){$Me=$_GET["op"];header("Access-Control-Allow-Origin: *");if($Me=="hide")Wa($_GET["id"]);elseif($Me=="show")Wa($_GET["id"],true);elseif($Me=="delete")Wb($_GET["id"],false);elseif($Me=="test"){$Mlm=Wc($_GET["id"]);if($Mlm===2)echo"UPDATE";elseif($Mlm)echo"OK";} 
}else Wd();exit;} 
if($Mz=="io"){require"optima.php";OptimizeTest();} 
if($light_bot&&$Mz!="access"){header("Content-Type: application/json; charset=utf-8");exit;} 
if(isset($_SERVER["HTTPS"])&&(($_SERVER["HTTPS"]=="on")||($_SERVER["HTTPS"]=="1"))&&substr(HTTP_SERVER,0,5)!="https"){$_SERVER["HTTPS"]="";$_SERVER["SERVER_PORT"]=80;} 
$M_o=false;if(lc('ha')&&$Mz=="gen"){Wfp();if($Mir->query("SHOW tables like '".DB_PREFIX."lightning_mail'")->row)$M_o=$Mir->query("SELECT * FROM ".DB_PREFIX."lightning_mail LIMIT 1")->row;} 
if($M_o){$Mir->query("DELETE FROM ".DB_PREFIX."lightning_mail WHERE mail_id=".$M_o["mail_id"]);header("X-OpenCart-Lightning-Gen: Sending mail #".$M_o["mail_id"]);ob_start();register_shutdown_function('Wax');$Mh_=Wj("to\";s:", '";',$M_o["mail"]);$Mh_=Wj(':"','',$Mh_);file_put_contents(DIR_LOGS."lightning_mail.log",date("Y-m-d G:i:s")."  Sending mail #".$M_o["mail_id"]." to $Mh_
",FILE_APPEND);Wmy("system/library/mail.php");Wmy("system/library/mail/mail.php");Wmy("system/library/mail/smtp.php");$M_p=unserialize($M_o["mail"]);$Ma['ha']=false;$M_p->send();file_put_contents(DIR_LOGS."lightning_mail.log",date("Y-m-d G:i:s")."  Mail #".$M_o["mail_id"]." to $Mh_ sent successfully
",FILE_APPEND);header("X-OpenCart-Lightning: Sent ok");echo"\"OK\"";exit;} 
if(!empty($_SERVER["HTTP_USER_AGENT"])&&$_SERVER["HTTP_USER_AGENT"]=="Lightning CRON Job"){if($Mabr){file_put_contents(DIR_CACHE."lightning/ps/".$Mabr,"Lightning pre-gen<span></span>");} 
if(file_exists(Wa.'aq')&&($Mbe=unserialize(file_get_contents(Wa.'aq')))){$_SERVER["HTTPS"]=$Mbe['as'];$_SERVER["HTTP_HOST"]=$Mbe['at'];$_SERVER["REQUEST_URI"]=$Mbe['au'];$_SERVER["HTTP_USER_AGENT"]=$Mbe['ax'];$_SERVER["SERVER_NAME"]=$Mbe['at'];$_SERVER["REQUEST_METHOD"]="GET";$_GET=$Mbe['av'];$Mo=$Mbe['aw'];if($Mbe['av']["li_op"]=="gens"){$Mbe['av']["li_op"]="gen";Whr(Wa.'aq',$Mbe);} 
$Mz=$_GET["li_op"];}else{$Mpd=substr(HTTP_SERVER,strpos(HTTP_SERVER,"//")+2);if(strpos(HTTP_SERVER,"ttps:"))$_SERVER["HTTPS"]="on";$_SERVER["HTTP_HOST"]=substr($Mpd,0,strpos($Mpd,'/'));$_SERVER["REQUEST_URI"]=substr($Mpd,strpos($Mpd,'/'));$_SERVER["SERVER_NAME"]=$_SERVER["HTTP_HOST"];$Mes=array("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36","Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1");$_SERVER["HTTP_USER_AGENT"]=$Mes[array_rand($Mes)];if(!file_exists(Wa))$_SERVER["HTTP_USER_AGENT"]=$Mes[0];$Mz="gen";$Mo=array("dummy"=>1);if(!file_exists(Wa.'bb'))$Mz.="s";$Mbe=array();if(isset($_SERVER["HTTPS"]))$Mbe['as']=$_SERVER["HTTPS"];else$Mbe['as']=false;$Mbe['at']=$_SERVER["HTTP_HOST"];$Mbe['au']=$_SERVER["REQUEST_URI"];$Mbe['av']=$_GET;$Mbe['av']["li_op"]="gen";$Mbe['aw']=$Mo;$Mbe['ax']=$_SERVER["HTTP_USER_AGENT"];Whr(Wa.'aq',$Mbe);} 
$_SERVER["QUERY_STRING"]="";$Mfi=str_replace("?","&",$_SERVER["REQUEST_URI"]);if($Maf=strpos($Mfi,"&"))$_SERVER["QUERY_STRING"]=substr($Mfi,$Maf+1);$_SERVER["argv"][0]=$_SERVER["QUERY_STRING"];if(is_array($_GET))$_REQUEST=array_merge($_GET,$Mo);else$_REQUEST=$Mo;$Md=($_SERVER["HTTPS"]=="on")||($_SERVER["HTTPS"]=="1");if($Md){$_SERVER["HTTPS"]="on";$_SERVER["SERVER_PORT"]="443";}else{$_SERVER["HTTPS"]="";$_SERVER["SERVER_PORT"]="80";}}} 
global$Mwx;$Mwx["alpha"]=lc('l')*60;$Mwx["gamma"]=$Mwx["alpha"];$Mwx["tetha"]=$Mwx["alpha"];function Wmy($Mads){if(defined("DIR_MODIFICATION")&&is_file(DIR_MODIFICATION.$Mads))include_once(DIR_MODIFICATION.$Mads);else{$Mads=substr(DIR_SYSTEM,0,-7).$Mads;if(is_file($Mads))include_once($Mads);}} 
function W_($Mbi){global$registry;if(!$registry)return false;return$registry->get($Mbi);} 
function Waa(){if(!empty($_COOKIE['az'])or Wdr)W_("config")->set("config_maintenance",0);global$Mz,$Mt,$Mbd;if($Mbd==2){$Mbd=false;Wab();} 
if($Mpe=W_("session"))return$Mpe->data;if($Mz!="gen"&&$Mz!="gens"&&!$Mbd)return array();if(session_id())session_write_close();return$Mt;} 
function Wac($Mbj){$Mbk=0;while($Mbj>=1024){$Mbj/=1024;$Mbk++;} 
if($Mbj<10)$Mbj=round($Mbj,2);else$Mbj=round($Mbj);$Mbl=array("bytes","Kb","Mb","Gb","Tb");$Mbm=$Mbj." ".$Mbl[$Mbk];return$Mbm;} 
function Wq($Mbo=false){global$Mf,$Mz,$Maq;header("HTTP/1.1 200 OK",true,200);header("Status: 200");header("Content-Type: application/json; charset=utf-8");if(function_exists("header_remove")){header_remove("Content-Encoding");header_remove("Set-Cookie");header_remove("Location");}else{header("Content-Encoding: none");header("Set-Cookie:");} 
if(function_exists("http_response_code"))http_response_code(200);if(!Wdr){}else if(!$Mbo)if(!file_exists(Wa.'ar'))Wfy(Wa.'aq');if(!$Mf){if($Mbo and!Wdr){if($Mz=="gen"&&!$Maq['id']){$Mbp=Wad(DIR_CACHE."lightning/alpha");$data["pages"]=$Mbp[0];$data["psize"]=Wac($Mbp[1]);global$Mtf;if(!$Mtf){$data["width"]=round(($Maq['Mha']-count($Maq['Mbz']))/$Maq['Mha']*200);$data["width"].="px";$data["percent"]=round(($Maq['Mha']-count($Maq['Mbz']))/$Maq['Mha']*100);if(!empty($Maq["subgen"])){$data["width"]="200px";$data["percent"]=100;}} 
$Mg=json_encode($data);echo$Mg;}else echo json_encode("OK");}else{if(!Wdr){if(!$Maq['id'])Wfy(Wa.'ar');echo json_encode(false);}} 
global$light_ob;$light_ob=false;if(Wdr)echo json_encode("OXX");exit;} 
global$Mte;if($Mbo and!$Mte and!$Maq['id']and!file_exists(Wa.'ar')){file_put_contents(Wa.'ar','1',LOCK_EX);Wr("gen");} 
if(!$Mbo and$Maq and!$Maq['id'])Wfy(Wa.'ar');$Mf["gen"]=$Mbo;$Mg=json_encode($Mf);if(!Wdr)echo($Mg);else echo json_encode("OXX");global$light_ob;$light_ob=false;exit;} 
function Wn($Mtm=false){if(!file_exists(Wa.'bb'))Wq();global$Mtd,$Maq,$M_,$Mk,$My,$Ml,$Mbr,$Ma,$Mtf,$Mte;$Mtf='';while(file_exists(Wa.'bb'.$Mtf))$Mtf++;$Mtf--;if(!$Mtf)$Mtf='';if(!file_exists(Wa.'bb'.$Mtf))Wq();$Maq=@unserialize(file_get_contents(Wa.'bb'.$Mtf));if(!$Maq)Wq();if(!Wdr&&$Maq['id']!=$M_){$data["gen"]=false;$data["md"]=array();global$Mz;if($Mz=="gens")die(json_encode($data));else die("false");} 
require_once"beta.php";if(!$Mbr)$Mbr=$Mk;$Mk=false;if($Maq['Mbz'])foreach($Maq['Mbz']as$Mbs=>$Mbe){$Mbe=trim(str_replace("&amp;","&",$Mbe));if(strpos($Mbe,"
"))continue;if(strpos($Mbe,"	"))continue;if(strpos($Mbe,"
"))continue;if($Mte and!$Maq['id']and!$Mtf){$Mbv=round(($Maq['Mha']-count($Maq['Mbz']))/$Maq['Mha']*100);file_put_contents(Wa.'ar',$Mbv,LOCK_EX);} 
unset($Maq['Mbz'][$Mbs]);$Mbt=Wae("alpha",Wm($Mbe))-Wy(Wm($Mbe));$Mk=$Mbe;if($Mbt<=$Ml)break;if(!empty($Maq['ek'])&&$Mtf<$Mtd){$Mao=md5(Wm($Mk));$Mcd=DIR_CACHE."lightning/gamma"."/".substr($Mao,0,2)."/c".substr($Mao,2);if(Waf($Mcd,$Mk)){Whr(Wa.'bb'.$Mtf,$Maq);$Mer=$Maq;if(!Wn(true))return;$Maq=$Mer;}} 
$Mk=false;if($Maq['Mca']>$Mbt)$Maq['Mca']=$Mbt;} 
$Mbu=time()-Wy(Wm($Mk));if($Maq['Mca']>$Mbu)$Maq['Mca']=$Mbu;if(!$Maq['Mbz']and$Maq['Map']and file_exists($Maq['Map'])){if($Mtf<$Mtd and empty($Maq['ek'])){$Maq['ek']=1;$Maq['Mbz']=unserialize(file_get_contents($Maq['Map']));if($Maq['Mbz'])unset($Maq['Mbz'][0]);$Maq['Mha']=count($Maq['Mbz']);Wfy(Wa.'ar');global$Mte;$Mte=false;}} 
if(!$Maq['Mbz']){if(!$Mtf and$Maq['Map'])touch($Maq['Map'],$Maq['Mca']);Wfy(Wa.'bb'.$Mtf);} 
if(!$Mk){if($Mtf){if($Mtm){$Mtf--;if(!$Mtf)$Mtf='';return true;} 
Wn();return;} 
if(!$Maq['id'])Wfy(Wa.'ar');if(Wp($Mbr)){Wn();return;} 
Wq();} 
if($Maq['Mbz']or!$Mtf)Whr(Wa.'bb'.$Mtf,$Maq);global$Mah,$Mh,$Mabr;if($Mabr){file_put_contents(DIR_CACHE."lightning/ps/".$Mabr,"Lightning pre-gen <span>".substr($Mk,strlen($Mh))."</span>");} 
header("X-OpenCart-Lightning-Gen: $Mk");$Mah=Wm($Mk);$Mbw=str_replace("//",'',$Mk);$Maf=strpos($Mbw,'/');$_SERVER["REQUEST_URI"]=substr($Mbw,$Maf);$Mbe=str_replace('?','&',str_replace(Wgx($Mh),"",Wgx($Mk)));$Mbx=explode('&',$Mbe);$_GET=array();if(!$Mbx)$Mbx[0]='';if($Mbx[0]=="index.php")$Mbx[0]='';if($Mbx[0]&&(!strpos($Mbx[0],"=")))$_GET["_route_"]=$Mbx[0];else unset($_GET["_route_"]);unset($Mbx[0]);$_SERVER["HTTP_X_REQUESTED_WITH"]="Get";foreach($Mbx as$Mby){if(!$Mby)continue;$Mby=explode('=',$Mby);if(empty($Mby[1]))$Mby[1]='';$_GET[$Mby[0]]=$Mby[1];} 
$_SERVER["QUERY_STRING"]="";foreach($_GET as$Mgj=>$Muu){$_REQUEST[$Mgj]=$Muu;if($_SERVER["QUERY_STRING"])$_SERVER["QUERY_STRING"].='&';$_SERVER["QUERY_STRING"]="$Mgj=$Muu";} 
global$Md;$Md=substr($Mk,0,5)=="https";if($Md){$_SERVER["HTTPS"]="on";$_SERVER["SERVER_PORT"]="443";}else{$_SERVER["HTTPS"]="";$_SERVER["SERVER_PORT"]="80";} 
Wg();} 
function Wgx($Mbe){$Mbe=str_replace("http:",'',$Mbe);$Mbe=str_replace("https:",'',$Mbe);return$Mbe;} 
function Waf($Map,$Mtg=false){global$Maq,$M_,$Ml,$Mm,$Mtf,$Mtd;if($Mtg&&$Mtf>=$Mtd)return;require_once"beta.php";if($Mtg)$Mth=$Maq;$Maq['Map']=$Map;$Maq['id']=$M_;$Maq['Mca']=time();$Maq['Mig']=$Mtg;if(strpos($Map,"//")!==false){$Maq['Map']=false;$Mbz=array($Map);}else if(file_exists($Map))$Mbz=@unserialize(file_get_contents($Map));if(empty($Mbz))$Mbz=array();$Mb_=array();$Mca=time();foreach($Mbz as$Mcb=>$Mbe){$Mbt=Wae("alpha",Wm($Mbe));if($Mbt<$Mm){$Mb_[]=$Mbe;unset($Mbz[$Mcb]);continue;} 
if($Mbe==$Map){Wag("alpha",Wm($Mbe));continue;} 
$Mbt=$Mbt-Wy(Wm($Mbe));if($Mtg&&$Mbt>$Ml){$Mto=Wae("gamma",Wm($Mbe));if($Mto>$Ml){unset($Mbz[$Mcb]);}} 
if($Mbt<$Mca)$Mca=$Mbt;} 
if(!Wdr){shuffle($Mb_);shuffle($Mbz);} 
$Mbz=array_merge($Mb_,$Mbz);if(!$Mbz){if($Maq['Map']&&is_file($Map))touch($Map,$Mca);if($Mtg){$Maq=$Mth;return false;} 
Wfy(Wa.'bb'.$Mtf);return false;} 
$Maq['Mbz']=$Mbz;$Maq['Mha']=count($Mbz);if($Mtg)$Mtf++;Whr(Wa.'bb'.$Mtf,$Maq);if($Mtg){$Maq=$Mth;$Mtf--;if(!$Mtf)$Mtf="";}else{$Mqu=1;clearstatcache();while(file_exists(Wa.'bb'.$Mqu)){unlink(Wa.'bb'.$Mqu);$Mqu++;}} 
return true;} 
function Wp($Mbr=false){if(!lc('n'))return false;global$Mh,$Mk,$Ml,$Mm,$Mte;if($Mte)return false;if(!$Mbr)$Mbr=$Mk;if(!$Mbr)$Mbr=$Mh;if(file_exists(Wa.'bb')&&@filemtime(Wa.'bb')>(time()-180)){$Maq=@unserialize(file_get_contents(Wa.'bb'));if($Mte and!$Maq['id']and$Maq['Mbz'])return false;} 
$Mao=md5(Wm($Mh));$Mcc=DIR_CACHE."lightning/gamma"."/".substr($Mao,0,2)."/c".substr($Mao,2);clearstatcache();$Mao=md5(Wm($Mbr));$Mcd=DIR_CACHE."lightning/gamma"."/".substr($Mao,0,2)."/c".substr($Mao,2);if(!file_exists($Mcd)and Waf($Mbr)){return true;} 
if(file_exists($Mcc)&&filemtime($Mcc)<=$Mm&&Waf($Mcc))return true;if(file_exists($Mcd)&&filemtime($Mcd)<=$Mm&&Waf($Mcd))return true;if(file_exists($Mcc)&&filemtime($Mcc)<=$Ml&&Waf($Mcc))return true;if(file_exists($Mcd)&&filemtime($Mcd)<=$Ml&&Waf($Mcd))return true;Wfy(Wa.'bb');Wfy(Wa.'ar');return false;} 
function Wah($Mce,$Mbe){if(!lc('Mnt')or!lc('n'))return;if(strpos($Mbe,'@')or strpos($Mbe,'#'))return;static$Mcg;if(!isset($Mcg[$Mce]))$Mcg[$Mce]=Wai($Mce);if($Mcg[$Mce])return;if(Wai())return;if(strpos($Mbe,"filter="))return;global$Mch;$Mbe=str_replace("&amp;","&",$Mbe);$Mbe=str_replace("page={page}","",$Mbe);$Mbe=preg_replace("/page=[0-9]+/","",$Mbe);$Mbe=preg_replace("/page-[0-9]+/","",$Mbe);if(!strpos(str_replace("//",'',$Mbe),"/"))return;$Mch[$Mbe]=1;} 
function Wal(){global$Mcq;$request=W_("request");if(!empty($request->get["route"]))$Mcq=$request->get["route"];global$Mz,$light_ob,$Mab;if($light_ob)W_("config")->set("config_compression",0);if($Mz=="gens"&&$Mab){global$Mf,$registry,$Mab;$Mab=gzuncompress(hex2bin($Mab));$Mcr=explode("~|~",$Mab);if(!empty($request->get["route"]))$Mce=$request->get["route"];else$Mce="common/home";if(VERSION>"2.0"){foreach($Mcr as$Mcb=>$Mcs){$Mmo=array();if($Maf=strpos($Mcs,"=")){$Mmo=unserialize(substr($Mcs,$Maf+1));$Mcs=substr($Mcs,0,$Maf);} 
$output=W_("load")->controller($Mcs,$Mmo);global$Maaf;if($Maaf)Whk($output);Wlt($output);$Mf["md"]["#liaj".($Mcb+1)]=$output;} 
}else{W_("load")->model("setting/extension");class ControllerFake extends Controller {} 
$Mct=new ControllerFake($registry);foreach($Mcr as$Mcb=>$Mcs){$Mmo=array();if($Maf=strpos($Mcs,"=")){$Mmo=unserialize(substr($Mcs,$Maf+1));$Mcs=substr($Mcs,0,$Maf);} 
$output=$Mct->getChildHtml($Mcs,$Mmo);Wew($output);global$Maaf;if($Maaf)Whk($output);Wlt($output);$Mf["md"]["#liaj".($Mcb+1)]=$output;}} 
global$Mabt;if($Mabt){$Mg='';global$Maaf;foreach($Mf["md"]as$Mld=>$Mdd){if($Maaf)Whk($Mdd);$Mg.="$('$Mld').replaceWith(".json_encode($Mdd).");
";} 
header("content-type: application/x-javascript; charset=utf-8",true);}else$Mg=json_encode($Mf);Wam($Mg);Waz();echo($Mg);global$light_ob;$light_ob=false;exit;}} 
function Wej(&$Mul){$Mdt=preg_replace('#/\*.*?\*/#s','',$Mul);$Mum=false;$Maf=0;$Mgw=0;$Mpk=0;while($Maf<strlen($Mdt)){$Med=strpos($Mdt,'{',$Maf);$Mej=strpos($Mdt,'}',$Maf);if($Med!==false&&$Med<$Mej){$Mgw++;$Maf=$Med;}elseif($Mej!==false){if(!$Mgw){$Mdt=substr($Mdt,0,$Mpk).substr($Mdt,$Mej+1);$Mum=true;$Maf=$Mpk-1;}else{$Mgw--;$Maf=$Mej;$Mpk=$Mej+1;}} 
$Maf++;} 
while($Mgw){$Mum=true;$Mdt.='}';$Mgw--;} 
if($Mum)$Mul=$Mdt;} 
function Wao($Mcy,$Mcz=true,$Mdo=false){global$Mh,$Md;$Mcy=str_replace("&amp;","&",$Mcy);$Mc_=Wak("//",'',$Mh);if(strpos($Mcy,"//")===0){if($Md)$Mcy="https:".$Mcy;else$Mcy="http:".$Mcy;} 
if(strpos($Mcy,"://")===false){if($Mcy[0]=="/")$Mcy=substr($Mh,0,strpos($Mh,"/",9)).$Mcy;else$Mcy=$Mh.$Mcy;if($Md)$Mcy=str_replace("http:","https:",$Mcy);} 
$Mda=abs(crc32(Wem($Mcy)));if($Mdo)$Mda='d'.$Mda;if(!$Mcz)$Mda=lc('bf').$Mda;$Mdb=Win.$Mda;if($Mcz)$Mdb.=".x_js";else$Mdb.=".x_css";if($Mcz===-1)$Mdb.="x";$Mdc=Wak("//",'',$Mcy);$Mdd=false;if(strpos($Mdc,$Mc_)===0){$Mdc=Wak($Mc_,'',$Mdc);if(strpos($Mdc,'?'))$Mdc=Wak('','?',$Mdc);$Mdc=str_replace('\','/',$Mdc);$Mde=substr(DIR_SYSTEM,0,-7).$Mdc;if((substr($Mdc,-3)==".js"||substr($Mdc,-4)==".css")&&file_exists($Mde)){if(file_exists($Mdb)&&filemtime($Mdb)>filemtime($Mde))return file_get_contents($Mdb);$Mdd=file_get_contents($Mde);}} 
if(VERSION>"2.0")if(strpos($Mcy,"journal2/assets/js")){W_("load")->controller("journal2/assets/js");$Mdd=W_("response")->getOutput();} 
elseif(strpos($Mcy,"journal2/assets/css")){W_("load")->controller("journal2/assets/css");$Mdd=W_("response")->getOutput();} 
if(!$Mdd){if(!light_device())$Mdb=str_replace(".x_","e.",$Mdb);else$Mdb=str_replace(".x_","e_".light_device().".",$Mdb);if(file_exists($Mdb)&&filemtime($Mdb)>time()-60*60*4)return file_get_contents($Mdb);if(light_device())$Mdd=Wap($Mcy,false,$_SERVER["HTTP_USER_AGENT"]);else$Mdd=Wap($Mcy);if(!$Mdd){sleep(1);if(light_device())$Mdd=Wap($Mcy,false,$_SERVER["HTTP_USER_AGENT"]);else$Mdd=Wap($Mcy);} 
global$Mdf;if($Mdf<200||$Mdf>399){require_once"special.php";Wb("missing_resource",true,array("url"=>true,"resource"=>$Mcy));$Mdd="";}} 
if(!$Mdd)return false;if(substr($Mdd,0,3)==pack("CCC",0xef,0xbb,0xbf))$Mdd=substr($Mdd,3);if(strpos($Mcy,"journal3/js/filter.js"))$Mdd=str_replace("dataType: 'html',","dataType: 'html', data: 'j3_ajax',",$Mdd);if(strpos($Mcy,"journal3/lib/ias/jquery-ias.min.js"))$Mdd=str_replace("b.load(a,","b.load(a+'&j3_ajax',",$Mdd);if($Mcz===-1)return$Mdd;require_once"delta.php";if($Mcz){light_minify_js($Mdd);$Mdd=str_ireplace("# sourceMappingURL"," sourceMappingURL",$Mdd);} 
else{Wej($Mdd);light_minify_css($Mdd,$Mcy);$Maf=0;while(($Maf=strpos($Mdd,"@import",$Maf))!==false){$Mei=$Maf;$Mey=strpos($Mdd,')',$Mei);$Mey=strpos($Mdd,';',$Mey);$Maf=$Mey;$Mol=substr($Mdd,$Mei,$Mey-$Mei);$Mbe=Wj("url(",")",$Mol);if(!$Mbe)$Mbe=Wj('"','"',$Mol);else{if($Mbe[0]=='"'||$Mbe[0]=="'")$Mbe=substr($Mbe,1,-1);} 
if(!$Mbe)$Mbe=Wj("'","'",$Mol);if(!$Mbe)continue;$Mqy=Wao($Mbe,false,$Mdo);if(!$Mqy)continue;if($Mdo)$Mqy="

/* ------------------
  Imported CSS: ".$Mbe."
  ------------------*/

".$Mqy;else$Mqy="
/* */
".$Mqy;$Mdd=substr($Mdd,0,$Mei).$Mqy.substr($Mdd,$Mey+1);}} 
file_put_contents($Mdb,$Mdd,LOCK_EX);return$Mdd;} 
function War(&$Mdj,&$Mdk){$Mdl=strpos($Mdk,$Mdj);if($Mdl==false)return;$Mbn=$Mdl+strlen($Mdj);while($Mdl&&ctype_space($Mdk[$Mdl-1]))$Mdl--;$Mpl=strlen($Mdk);while($Mbn+1<$Mpl&&ctype_space($Mdk[$Mbn+1]))$Mbn++;$Mdk=substr($Mdk,0,$Mdl).substr($Mdk,$Mbn);} 
function Wem($Mcy){if(strpos($Mcy,'?'))$Mcy=Wak('','?',$Mcy).'?'.preg_replace('/[abcdef\d]{6,}/i','',Wak('?','',$Mcy));return$Mcy;} 
function Wen($Mds){foreach($Mds as&$Mdk)$Mdk=Wem($Mdk);$Mda=abs(crc32(implode(';',$Mds)));return$Mda;} 
function Wey($Mes,$Mce=false){if(empty($GLOBALS['Ma'][$Mes]))return false;$Mri=explode(" ",$GLOBALS['Ma'][$Mes]);if(!$Mce){if(!empty(W_("request")->get["route"]))$Mce=W_("request")->get["route"];else$Mce="common/home";} 
global$Mk;$Met=false;foreach($Mri as$Mnx){if($Mnx=='/')$Mnx="common/home";if($Mnx[0]=='"'){if(stripos($Mk,substr($Mnx,1,-1))!==false){$Met=true;break;} 
}else if(stripos($Mce,$Mnx)!==false){$Met=true;break;}} 
return$Met;} 
function Wfr($Mds){global$Msr;$Mda=Wen($Mds);$Mdu=Win.$Mda.$Msr.".js";if(!file_exists($Mdu)){$Mdo=lc('dh');Waw(DIR_IMAGE."cache/lightning");$Mdv="";$Mqu="";foreach($Mds as$Mcy){if($Mcy=='Mqu'){$Mdv.="
var arr=document.body.getElementsByTagName(\"script\");var sc=[];for(var x=0;x<arr.length;x++)if(arr[x].type==\"text/tier".$Mqu."\")sc.push(arr[x].text);for(var x=0;x<sc.length;x++)try{eval(sc[x])}catch(e){console.log('Error at HTML \"tier".$Mqu."\" script #'+(x+1)+': '+e.message)}";$Mqu++;continue;} 
if($Mdo){$Mdd="

/* ------------------
   JS: ".$Mcy."
// ------------------*/

".Wao($Mcy,-1)."
console.log('".$Mcy." passed');
";}else$Mdd=Wao($Mcy);$Mdw=';';if($Mdv)$Mdw=substr($Mdv,-1);if($Mdw!=';'&&$Mdw!='}')$Mdv.=';';$Mdv.="
".$Mdd;} 
$Mdw=';';if($Mdv)$Mdw=substr($Mdv,-1);if($Mdw!=';')$Mdv.=';';$Macm=$Mdv;Wls($Mdv);file_put_contents($Mdu,$Mdv,LOCK_EX);if(lc('hu')){Whk($Macm);Wls($Macm);file_put_contents(substr($Mdu,0,-3)."_wp.js",$Mdv,LOCK_EX);}} 
global$Maaf;if($Maaf)return Wim.$Mda.$Msr."_wp.js";return Wim.$Mda.$Msr.".js";} 
function Wfs($Mds){if(!$Mds)return"";global$Mh,$Md;$Mmi=$Mh;if($Md)$Mmi=str_replace("http://","https://",$Mmi);$Mcy=$Mmi.Wfr($Mds);global$Mxf;$Mxf[]=$Mcy;return"<script src='".$Mcy."'></script>";} 
function Wls(&$output){if(function_exists("replacer_preview_request"))@include(DIR_CONFIG."replaces.php");} 
function Was(&$Mg){if(!lc('ef')and!lc('eg'))return;global$Mam,$Mv;if($Mam or$Mv)return;Wu($Mg);if(!strpos($Mg,"<body"))return;if(!lc('jn'))Wkz($Mg);if(!lc('ik')){$Mg=preg_replace("/<link[^<]*? rel=['\"]?pre[^v].*?>/s",'',$Mg);} 
$Maag=array();global$Mh,$Md;$Mmi=$Mh;if($Md){$Mmi=str_replace("http://","https://",$Mmi);} 
$Mdo=lc('dh');$Mqp="";$Mdp="";$Mdq="";global$Mxf;$Mxf=array();if(lc('ef')and!Wey('dw')){$Mgw=lc('ef');$Mdr=Wcw("<script","</script>",$Mg);foreach($Mdr as$Mcz){$Mcz=substr($Mcz,strpos($Mcz,'>')+1);if(substr(trim($Mcz),0,4)=="<!--"){$Mne=substr(trim($Mcz),4);if(substr($Mne,-5)=="//-->")$Mne=substr($Mne,0,-5);elseif(substr($Mne,-3)=="-->")$Mne=substr($Mne,0,-3);$Mne=Wip("<!--*-->",'',$Mne);$Mg=str_replace($Mcz,$Mne,$Mg);}} 
$Mdr=Wat("<script","</script>",Wip("<!--*-->",'',$Mg));$Mds=array();$Mst=Wcy("www.",'',Wcy("//",'',$Mmi));global$Msr;$Msr='a';if($Md){$Msr.="s";} 
if(light_device()){$Msr.="_".light_device();} 
if($Mdo){$Msr.="_debug";} 
$Mdn=false;$Mxg="product_id=";if(trim(lc('eh')))foreach(explode(" ",lc('eh'))as$Mbc)if($Mbc[0]=='$')$Mxg.=" ".substr($Mbc,1);$GLOBALS['Ma']['gf']=$Mxg;global$Mcq;if(strpos($Mcq,"checkout")!==false)$GLOBALS['Ma']['fh']='';$GLOBALS['Ma']['fh'].=" jivosite.";foreach($Mdr as$Mcz){$Mcj=substr($Mcz,0,strpos($Mcz,">"));$Mcj=str_replace("type=\"\"",'',str_replace("type=''",'',$Mcj));if(stripos($Mcj,"type=")&&!stripos($Mcj,"text/javascript")){continue;} 
if(!lc('bz')or light_mobile())if(Wav('fh',$Mcz)){$Maf=strpos($Mcz,">");$Mcj=substr($Mcz,0,$Maf);$Mvl=substr($Mcz,$Maf);if(stripos($Mcj,"text/javascript"))$Mcj=str_ireplace("text/javascript","text/li_js",$Mcj);else$Mcj=str_ireplace("<script","<script type='text/li_js'",$Mcj);if(strpos($Mcj,"jivosite"))if($Mld=Wak("jv-id=\"",'"',$Mcj))$Mcj=str_replace("widget.js","widget/".$Mld,$Mcj);$Mvl=$Mcj.$Mvl;$Mg=str_replace($Mcz,$Mvl,$Mg);$Mdn=true;continue;} 
if(Wav('eh',$Mcz)&&!strpos($Mcz,"indexOf('li_nr')"))continue;$Mdt=Wak(">","</script>",$Mcz);if($Mdt){War($Mcz,$Mg);if($Mds){$Mdq.=Wfs($Mds);$Mds=array();} 
$Mdq.=$Mcz;continue;} 
$Mcy=Wak("src='","'",str_replace('"',"'",$Mcz));if(!$Mcy)$Mcy=Wak("src='","'",str_replace('"',"'",str_replace(' ','',$Mcz)));if(!$Mcy)continue;$Mcy=str_replace("&amp;","&",$Mcy);War($Mcz,$Mg);if(strpos($Mcy,'#')){$Mcy=Wak('','#',$Mcy);} 
if($Mgw=="safe"){$Mdq.=$Mcz;$Mxf[]=$Mcy;continue;} 
if(strpos($Mcz,"li_op=")||Wav('gf',$Mcy)||($Mgw!="aggressive"&&strpos($Mcy,"//")!==false&&!strpos($Mcy,$Mst))){$Mdq.=Wfs($Mds);$Mds=array();$Mdq.=$Mcz;continue;} 
$Mds[]=$Mcy;$Maag[]=$Mcy;} 
if($Mds)$Mdq.=Wfs($Mds);$Mvk=false;if(!lc('bz')or light_mobile()){$Mvj=Wat("<iframe","</iframe>",$Mg);foreach($Mvj as$Mcz){if(lc('fn')){$Mcy=Wak("src='","'",str_replace('"',"'",$Mcz));if(!$Mcy)$Mcy=Wak("src='","'",str_replace('"',"'",str_replace(' ','',$Mcz)));if(!$Mcy)continue;if(!Wav('fh',$Mcy))continue;} 
$Mvl=str_replace(" src='"," data-src='",$Mcz);$Mvl=str_replace(" src=\""," data-src=\"",$Mvl);if($Mvl==$Mcz)continue;$Mg=str_replace($Mcz,$Mvl,$Mg);$Mvk=true;}} 
if($Mdn or$Mvk){$Mdq.="<script>defer_done = 0; function li_defer(event){ if (defer_done) return; defer_done = 1; $('body').unbind('mouseover touchmove', li_defer);";if($Mdn)$Mdq.="$('script[type=\"text/li_js\"]').each(function(){ $('body').append(this.outerHTML.replace('text/li_js', 'text/javascript'))});";if($Mvk)$Mdq.="$('iframe').each(function(){ $(this).attr('src', $(this).data('src'))});";$Mdq.="}";if(!lc('distinct_gadgets'))$Mdq.="if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent))";$Mdq.="{ $('body').bind('mouseover touchmove', li_defer); $(window).on('load', function(){ setTimeout(li_defer, 5000);}); }";if(!lc('distinct_gadgets'))$Mdq.="else li_defer();";$Mdq.="</script>";}} 
global$Mr,$Ma,$Mz;if(!$Mz&&!lc('u')&&$Mr)$Ma['eg']=false;if(lc('eg')){$M_s=array();$M_t="";$Mpj=lc('eg')!="safe";$Mdx=Wat("<link",">",Wip("<!--*-->",'',Wip("<noscript*</noscript>",'',$Mg)));$Mds=array();foreach($Mdx as$Mbc){$Mrx=str_replace('"',"'",strtolower($Mbc));$Maaj=preg_replace("/['\s]/",'',$Mrx);if(!strpos($Maaj,"rel=stylesheet")){continue;} 
if(strpos($Mrx,"media=")){$Mry=Wj("media='","'",$Mrx);if($Mry!="all"&&$Mry!="screen"){continue;}} 
War($Mbc,$Mg);$Mcy=Wak("href='","'",str_replace('"',"'",$Mbc));if(!$Mcy){continue;} 
$Mcy=str_replace("&amp;","&",$Mcy);if(strpos($Mcy,'#')){$Mcy=Wak('','#',$Mcy);} 
foreach($M_s as$M_u)if(stripos($Mcy,$M_u)!==false){$M_t.=Wao($Mcy,false,$Mdo);$Mcy=false;break;} 
if($Mcy){$Mds[]=$Mcy;$Maag[]=$Mcy;}} 
$Mda=Wen($Mds);$Mda.='d';if(!$Mpj)$Mda.='s';$Mda=lc('bf').$Mda;if(light_device()){$Mda.="_".light_device();} 
if($Md){$Mda.="s";} 
if(lc('jq'))$Mda.="i";if($Mdo){$Mda.="_debug";} 
$Mdy=Win.$Mda.".css";global$Mcq;$Msu=str_replace("/","",$Mcq);if(!$Msu)$Msu="commonhome";$Msu.=lc('bf');if(light_device()){$Msu.="_".light_device();} 
global$Mw;$Msu.=$Mw;if($Md){$Msu.="s";} 
global$light_critical_mark;if($light_critical_mark)$Msu.=$light_critical_mark;$Msu.=".css";$Mdz=Win.$Msu;$Md_="";if(!file_exists($Mdy)or$Mqp){Waw(DIR_IMAGE."cache/lightning");foreach($Mds as$Mcy){$Mdd=Wao($Mcy,false,$Mdo);if($Mdo){$Mdd="

/* ------------------
  CSS: ".$Mcy."
  ------------------*/

".$Mdd;}else$Mdd="
/* */

".$Mdd;$Md_.=$Mdd;} 
$Maf=0;$Mabb='';while($Maf=strpos($Md_,"@font-face",$Maf)){$Mey=strpos($Md_,'}',$Maf+1);$Mabc=substr($Md_,$Maf,$Mey-$Maf+1)."
";if(lc('jq'))if((strpos($Mabc,"glyphicons")&&strpos($Mg,"glyphicon-"))||strpos($Mabc,"icomoon")||strpos($Mabc,"MaterialIcons")||(strpos($Mabc,"FontAwesome")&&!lc('gh'))){$Mabc=str_replace("@font-face{","@font-face{font-display:block;",$Mabc);$Md_=substr($Md_,0,$Maf).$Mabc.substr($Md_,$Mey+1);$Maf=$Mey;continue;} 
if(!strpos($Mabc,"swap"))$Mabc=str_replace("@font-face{","@font-face{font-display:swap;",$Mabc);$Mabb.=$Mabc;$Md_=substr($Md_,0,$Maf).substr($Md_,$Mey+1);} 
if(!lc('jn')){$Md_="img{height:auto}
".$Md_;$Mabb="img{width:auto}".$Mabb;} 
file_put_contents($Mdy.".fonts",$Mabb,LOCK_EX);$Maao=$Md_;Wls($Md_);file_put_contents($Mdy,$Md_,LOCK_EX);if(lc('hu')){Whk($Maao);Wls($Maao);file_put_contents(substr($Mdy,0,-4)."_wp.css",$Maao,LOCK_EX);}} 
if($Mpj and(!file_exists($Mdz)or$Mqp)){$Mea=$Mg;$Mea=Wau("<style*</style>",'',$Mea);$Mea=Wau("<script*</script>",'',$Mea);$Mea=preg_replace("/<\/.+?>|http.+?[\"']|\w+?=/", '',$Mea);$Mea=preg_replace("/[<>\s'\"]+/s",' ',$Mea);$Mcj='';$Meb='';$Maf=0;$Mec=false;if(!$Md_)$Md_=file_get_contents($Mdy);while($Maf<strlen($Md_)){$Med=strpos($Md_,'{',$Maf);if($Med==false){break;} 
$Mee=str_replace("
"," ",trim(substr($Md_,$Maf,$Med-$Maf)));if($Mqp&&strpos($Mee,$Mqp)){echo"<br>Found CSS: $Mee";} 
if(!$Meb)if(strpos($Mee,"@media")!==false||(strpos($Mee,"@")!==false&&strpos($Mee,"keyframes"))){$Mpm=strpos($Md_,'{',$Med+1);$Mpn=strpos($Md_,'}',$Med+1);if($Mpn<$Mpm){$Maf=$Mpn+1;continue;} 
$Meb=$Mee.'{';$Mef=true;$Maf=$Med+1;continue;} 
$Meh=true;$Meg=explode(',',$Mee);$Maac=0;foreach($Meg as$Mee){$Mee=trim($Mee);$Mee=Wau(":not(*)",'',$Mee);if(!$Mee)continue;if(strpos($Mee,'['))break;if(strpos($Mee,':')&&!strpos($Mee,"before")&&!strpos($Mee,"after"))break;$Mph=explode(' ',str_replace(array('+','.','#','>',"
"),' ',$Mee));$Mpi=true;foreach($Mph as$Mei){if(strpos($Mei,':')!==false){$Mei=Wak('',':',$Mei);} 
if(strpos($Mei,'[')!==false){$Mei=Wak('','[',$Mei);} 
if(!$Mei){continue;} 
$Maac=strpos($Mea," $Mei ",$Maac);if(!$Maac){$Mpi=false;break;} 
if($Maac>64)$Maac-=64;} 
if($Mpi){$Meh=false;break;}} 
$Mej=strpos($Md_,'}',$Med);if(strpos($Mee,"@")!==false||strpos($Mee,"*")!==false){$Mec=false;$Meh=false;} 
if(!$Meh and!$Mec){$Mbw=substr($Md_,$Maf,$Mej-$Maf+1);if($Meb){$Meb.=$Mbw;$Mef=false;}else{$Mcj.=$Mbw;}} 
if($Mej<strlen($Md_)-1&&$Md_[$Mej+1]=='}'){if(!$Mec){if($Meb){if(!$Mef){$Mcj.=$Meb.'}';} 
$Meb='';}else{$Mcj.='}';}} 
$Mec=false;$Mej++;} 
$Maf=$Mej+1;} 
file_put_contents($Mdz,$Mcj,LOCK_EX);} 
global$Maaf;if($Maaf)$Mda.="_wp";if($Mpj and file_exists($Mdz)){if(lc('hx'))$Mdp="<script>if(document.cookie.indexOf('li_nr')>=0)document.write(\"<link id='li_df'rel='preload'as='style'href='".$Mmi.Wim .$Mda.".css'/>\")</script>".$Mdp;else$Mdp="<link id='li_df' rel='preload' as='style' href='".$Mmi.Wim.$Mda.".css'/>".$Mdp;$Mdp="<style>".file_get_contents($Mdz)."</style>".$Mdp;$Mdq="<script>document.getElementById('li_df').rel = 'stylesheet';</script>".$Mdq;}else{$Mdp="<link rel='stylesheet' href='".$Mmi.Wim.$Mda.".css'/>".$Mdp;} 
if($M_t)$Mdp="
<style>
".$M_t."
</style>
".$Mdp;if(!lc('bz')or light_mobile()){$Mdp="<script>function li_fonts(){document.head.appendChild(document.createElement('style')).innerHTML=".json_encode(file_get_contents($Mdy.".fonts"))."}function gcc2(n){var match = document.cookie.match(new RegExp('(^| )' + n + '=([^;]+)'));if (match) return match[2]}if(document.cookie.indexOf('res_pushed')>=0)li_fonts();else{window.addEventListener('load', function(){li_fonts();document.cookie='res_pushed=1; path=/'})}</script>
".$Mdp;}else{$Mdp="<style>".file_get_contents($Mdy.".fonts")."</style>
".$Mdp;}} 
if(lc('ik'))foreach($Maag as$Mcy){$Maf=0;while($Maf=strpos($Mg,$Mcy,$Maf)){$Mpl=strrpos($Mg,'<',$Maf-strlen($Mg));$Mbm=strpos($Mg,'>',$Maf);$Maf++;if(!$Mpl||!$Mbm)continue;$Mdt=substr($Mg,$Mpl,$Mbm-$Mpl+1);if(strpos($Mdt,"preload"))$Mg=substr($Mg,0,$Mpl).substr($Mg,$Mbm+1);}} 
/*if(!lc('hx')){$Mcj="";foreach($Mxf as$Mcy)$Mcj.="<link rel='preload' as='script' href='".$Mcy."'/>";$Mdp=$Mcj.$Mdp;} 
*/$Maf=strpos($Mg,"</head>");$Mek=strpos($Mg,"<style");if($Mek&&$Mek<$Maf){$Maf=$Mek;/*$Mel=strpos($Mg,"<head");$Mek=strpos($Mg,"<!-",$Mel);if($Mek&&$Mek<$Maf)$Maf=$Mek;*/} 
if(strpos(substr($Mg,0,$Maf),"<!--[")){$Mek=strpos($Mg,"endif]-->",$Maf);if($Mek&&$Mek-$Maf<300)$Maf=$Mek+strlen("endif]-->");} 
$Mqs=strpos($Mg,"<base");if($Mqs>$Maf)$Maf=strpos($Mg,">",$Mqs)+1;while(ctype_space($Mg[$Maf-1]))$Maf--;if(substr($Mg,$Maf-10,10)=="<noscript>")$Maf-=10;$Mg=substr($Mg,0,$Maf).$Mdp.substr($Mg,$Maf);if(lc('hx')){$Mdq="<script>if(document.cookie.indexOf('li_nr')>=0)document.write(\"<img style='display:none'alt=''name='\")</script><!--'>".$Mdq;} 
if(Wme()){$Made=md5("http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://").$_SERVER["HTTP_HOST"].Wl($_SERVER["REQUEST_URI"]));$Mdq.="<script>function gcc(n){var match = document.cookie.match(new RegExp('(^| )' + n + '=([^;]+)'));if (match) return match[2]} if(document.cookie.indexOf('li_nr')>=0 || document.cookie.indexOf('li_lh')>=0) try{let lcp;const po=new PerformanceObserver((entryList)=>{const entries=entryList.getEntries();const lastEntry=entries[entries.length - 1];if($(window).scrollTop()==0&&lastEntry.url&&!lastEntry.url.indexOf('http')&&decodeURIComponent(gcc('li_lcp'))!==lastEntry.url)$.post('index.php?li_op=lcp',{id:'$Made',lcp:lastEntry.url});});po.observe({type:'largest-contentful-paint',buffered:true});}catch(e){}</script>";} 
$Maf=strrpos($Mg,"</body>");if(!$Maf)$Maf=strlen($Mg);else{$Mcv=strrpos($Mg,"</html>");$Macb=substr($Mg,$Maf+7,$Mcv-$Maf-7);if(trim($Macb)){$Mg=substr($Mg,0,$Maf).$Macb."
</body>
".substr($Mg,$Mcv);$Maf=strrpos($Mg,"</body>");}} 
$Mg=substr($Mg,0,$Maf).$Mdq.substr($Mg,$Maf);} 
function Wh_($Mfd){global$Mq,$Mn,$Mw,$My,$Mxb,$Ms;if(!empty($Mq["compare"])and!empty($Mn['ap'])){if(!We($Mw))return false;Ww($Mn['ap'],"0",$Mfd);} 
if(!empty($Mq["wishlist"])and$Mn['ao']){if(!We($Mw))return false;Ww($Mn['ao'],"0",$Mfd);} 
if($Ms){if(!We($Mw))return false;if(!$Mn['z'])return false;Ww($Mn['z'],$Mn['bm'],$Mfd);} 
if(!empty($Mq['_'])){if(!We($Mw)||$Mq['_']===true)return false;Ww($Mn['ah'],$Mn['bn'],$Mfd);} 
Wbb("alpha",$My.$Mxb,$Mfd);} 
function Wew(&$output){if(!W_("journal2"))return;$Mhr=W_("journal2")->settings->get("product_dummy_image");$output=str_replace("src=\"" . $Mhr . "\""." data-src","src",$output);$output=str_replace("src=\"" . $Mhr . "\""."  data-src","src",$output);} 
function Wma(){if(is_file(DIR_APPLICATION."view/javascript/lightcookie/bar.js"))return"if(!document.cookie.match(/(;)?cookiebar=([^;]*);?/)){var script=document.createElement('script');script.src='catalog/view/javascript/lightcookie/bar.js';document.head.appendChild(script);}";else return"if (!document.cookie.match(/(;)?cookiebar=([^;]*);?/)){var script=document.createElement('script');script.src='//devs.mx/cookie/bar4.js';script.integrity='sha256-nA0QAg8eax8A5pWHk1Buns58crujM5y3pxdg03YR0Ig=';script.crossOrigin='anonymous';document.head.appendChild(script);}";} 
function Wax(){global$Mz,$M_o,$Mcq,$Mq,$light_skip_die;if($light_skip_die)return;if($M_o){@ob_end_clean();if(Wdr)echo json_encode("OX");else echo json_encode("OK");return;} 
if(!lc('Mnt')&&!lc('ef')and!lc('eg')and!lc('hu')){Waz();return;} 
require_once"beta.php";$Mdt=http_response_code();if($Mz=="gen"||$Mz=="gens")if($Mdt>200){if(!headers_sent()){if(function_exists("header_remove"))header_remove("Location");else header("Location:");} 
http_response_code(200);Wa_("");global$Maq;if($Maq){Waz();global$Mtf;Wq(!empty($Maq['Mbz'])or$Mtf);} 
return;} 
if($Mdt==403)return;if(!empty(W_("request")->get["route"])){if(!strpos(W_("request")->get["route"],'/'))W_("request")->get["route"]=$Mcq;$Mcq=W_("request")->get["route"];} 
global$light_ob,$Mk,$Mam;if($Mam)exit;if(!$light_ob)return;$output='';Wab(true);while($Maf=ob_get_level()){$output=ob_get_contents().$output;@ob_end_clean();if(ob_get_level()==$Maf)break;} 
Wbg();if(!trim($output)){global$Maq;if($Maq){Wa_(false);Wq(!empty($Maq['Mbz']));} 
echo$output;return;} 
Wu($output);global$Mxb;if($Mxb&&$Mdt)if($Mdt!=404)$Mxb=false;if(!$Mxb)if(strpos($output,"//cdn.ampproject.org/v0.js")||$Mdt==404){Wz($output);return;} 
global$Mh;if(!lc('fa')and stripos($Mh,"ttps://")and stripos(HTTP_SERVER,"ttps://")and strpos($output,"<body")){$Maf=0;while($Maf=strpos($output,"http:",$Maf)){$Maf++;if($output[$Maf-2]!="'"&&$output[$Maf-2]!='"')continue;if($Maf>7){$Mcj=substr($output,$Maf-7,5);if($Mcj=="href="&&substr($output,$Maf+4,strlen($Mh)-6)!=substr($Mh,6))continue;} 
$Mcw=substr($output,$Maf+6,strpos($output,$output[$Maf-2],$Maf)-$Maf-6);if($Mhk=strpos($Mcw,'/'))$Mcw=substr($Mcw,0,$Mhk);if($Mcw=="schema.org")continue;$output=substr($output,0,$Maf+3)."s".substr($output,$Maf+3);}} 
Wew($output);/*if(!lc('gi')){$output=str_replace("<img ","<img loading=lazy ",$output);$output=str_replace("<iframe ","<iframe loading=lazy ",$output);} 
*/$output=str_replace("index.php?route=common/home'","'",$output);$output=str_replace("index.php?route=common/home".'"','"',$output);if(!empty($_COOKIE['az'])){Was($output);Whk($output);Wlp($output);if(lc('j')){require_once"delta.php";light_minify_html($output);} 
echo(base64_encode($output));return;} 
global$Mw,$Mn,$Ms;$Mec=!lc('Mnt');if(isset($_GET["db"]))$Mec=true;if($Mo_=error_get_last())if($Mo_["type"]==1||$Mo_["type"]==4)$Mec=true;if(!$Mec){if($Mz&&!empty($Mq['_']))unset($Mq['_']);if($light_ob==1)$Mec=true;elseif(!empty($Mq['_'])&&!lc('e'))$Mec=true;elseif($Ms&&!lc('ab'))$Mec=true;elseif(!empty($Mq["wishlist"])&&!lc('ac'))$Mec=true;elseif(!empty($Mq['_'])||$Ms||!empty($Mq["wishlist"])){if(We($Mw)){if(!empty($Mq['_'])and(!$Mn['ah']||$Mq['_']===true))$Mec=true;elseif($Ms&&!$Mn['z'])$Mec=true;}else$Mec=true;}} 
if($Mec||$Mxb||Wai()||$Mam){if(lc('h')){$Men="<script>";if(lc('ch'))$Men.="var cookie_policy_link = \"".lc('ch')."\";";$Men.=Wma()."</script>";$Maf=strrpos($output,"</body>");if($Maf){if(strpos($output,"jquery",$Maf))$Maf=strpos($output,"</html>");if($Maf)$output=substr($output,0,$Maf).$Men.substr($output,$Maf);}} 
Was($output);global$Maq;if($Maq)Wq(!empty($Maq['Mbz']));if($Mxb)Wh_($output);if(lc('f'))if(Way($output))return;Waz();if(headers_sent())Wu($output);Wz($output);return;} 
Wu($output);$Mbe=$Mk;$Mbe=str_replace('<',"%3C",$Mbe);if(strpos($Mbe,'?')or strpos($Mbe,'&'))$Mbe.='&';else$Mbe.='?';$Mbe.="li_op=gen";global$Meo;if($Meo){$Meo=bin2hex(gzcompress(implode("~|~",$Meo),9));$Maf=strrpos($output,"<div id='liaj");$output=substr($output,0,$Maf)."
<script>if(document.cookie.indexOf('li_nr')>=0)document.write('<s'+".json_encode("cript src=\"" . $Mbe . "s&js=1&md=" . $Meo . "&cd=")."+Date.now()+'\"></scrip'+'t>')
</script>
".substr($output,$Maf);} 
global$Mc;$Men="";if(!$Mc)$Men.="var li_cd=Math.floor(Math.random()*999999)+1;";$Mpv="";if((defined("JOURNAL_INSTALLED")||defined("JOURNAL3_INSTALLED"))&&empty(W_("request")->get["product_id"]))$Mpv.="if(window.jQuery)$('.pagination a').on('click',function(){if(window.location.href.indexOf('#')>-1)return true;window.location.href=$(this).attr('href');return false;});";if(!$Mz)Wr();if($Mc){}elseif(lc('n')){$Mpv.="if(document.cookie.indexOf('li_nr')>=0)$.get('".$Mbe."s&cd='+li_cd,false,function(data){if(data['gen'])li_gen();},'json');";$Men.="function li_gen(){ $.get('".$Mbe."&cd='+li_cd+'&rd='+Date.now(),false,function(data){
if(data=='OK')
li_gen();
});}";} 
if($Mpv)$Men.="$(window).on('load', function(){".$Mpv."});";if(lc('h')){if(lc('ch'))$Men.="var cookie_policy_link = \"".lc('ch')."\";";$Men.=Wma();} 
if($Men)$Men="<script>".$Men."</script>";$Maf=strrpos($output,"</body>");if($Maf){if(strpos($output,"jquery",$Maf))$Maf=strpos($output,"</html>");if($Maf)$output=substr($output,0,$Maf).$Men.substr($output,$Maf);} 
global$Maaf;if(lc('hu')){$Mer=$Maaf;$Maaf=true;} 
Was($output);if(lc('hu'))$Maaf=$Mer;Whk($output);global$Macn;$Macn=false;Wlp($output);$Mep=Wa_($output);global$Maq;if($Maq){Waz();global$Mtf;Wq(!empty($Maq['Mbz'])or$Mtf);} 
if(!$Mep)Wz($output,true);else Wz($Mep,true);} 
function Wai($Mce=false){if(!$Mce){if(!empty(W_("request")->get["route"]))$Mce=W_("request")->get["route"];else$Mce="common/home";} 
global$Mv;if(lc('bj')and!$Mv){return!Wav('bk',$Mce)or Wav('bl',$Mce);} 
$Meq=Wey('bl',$Mce);if($Meq)return true;if($Mv){global$Mag;if(empty($_SERVER["HTTP_REFERER"]))return true;$Mbe=Wk($_SERVER["HTTP_REFERER"]);$Mbe=str_replace('?','&',$Mbe);$Mbt=Wae("alpha",$Mag.$Mbe);if(!$Mbt&&!strpos($Mbe,"index.php")&&(($Maf=strpos($Mbe,'?'))||($Maf=strpos($Mbe,'&')))){$Mbe=substr($Mbe,0,$Maf);$Mbt=Wae("alpha",$Mag.$Mbe);} 
if(!$Mbt)return true;} 
return false;} 
function Wav($Mes,$Mbe){if(empty($GLOBALS['Ma'][$Mes]))return false;$Mcg=$GLOBALS['Ma'][$Mes];$Mcg=explode(" ",$Mcg);$Met=false;foreach($Mcg as$Mce){if(!trim($Mce))continue;if(strpos($Mbe,trim($Mce))!==false||($Mce[0]=='"'&&strpos($GLOBALS['Mk'],substr($Mce,1,-1)))){$Met=true;break;}} 
return$Met;} 
function We_($Mes,&$Mrs){if(!$Mrs)return;if(empty($GLOBALS['Ma'][$Mes]))return false;$Mcg=$GLOBALS['Ma'][$Mes];if(!strpos($Mcg,":"))return false;try{if(strlen(serialize($Mrs))>=2048)return false;}catch(\Exception$Mey){} 
$data=Wez($Mrs);$Mcg=explode(" ",$Mcg);$Met=false;foreach($Mcg as$Mce){$Mce=trim($Mce);if(strpos($Mce,":")===false)continue;if(($Maf=strpos($data,$Mce))!==false){if(is_numeric(substr($Mce,-1))and is_numeric(substr($data,$Maf+strlen($Mce),1)))continue;$Met=true;break;}} 
return$Met;} 
function Wba(){if(W_("currency")and method_exists(W_("currency"),"getCode"))return W_("currency")->getCode();if(W_("session")&&!empty(W_("session")->data["currency"]))return W_("session")->data["currency"];global$Mq;if(!empty($Mq["currency"]))return$Mq["currency"];return"USD";} 
function Whx(){if(W_("session")&&isset(W_("session")->data["language"]))return W_("session")->data["language"];global$Mq;if(!empty($Mq["language"]))return$Mq["language"];return"en-gb";} 
function Wlz(&$Mg,$Mex,$Mkq,$Meu){$Macx=2000;$Maf=-1;$Mvc=false;while($Maf=strpos($Mg,$Mex,$Maf+1)){$Mei=strpos($Mg,$Mkq,$Maf+strlen($Mex));if(!$Mei||$Mei-$Maf>$Macx)continue;$Mcj=substr($Mg,$Maf,$Mei-$Maf);$Mg=str_replace($Mcj.$Mkq,$Mcj.$Meu,$Mg);$Mvc=true;} 
return$Mvc;} 
function Wa_($Mfd){global$Ms,$Mah,$Mk,$Mw,$Mx,$Mn,$Ma,$Mv,$Mq,$My;if(!$Mah)return false;if(!empty(W_("request")->get["route"]))$Mce=W_("request")->get["route"];else$Mce="common/home";if(strlen(trim($Mfd))>100){$Mfu=$Mw;if($Maf=strrpos($Mfu,'_'))$Mfu=substr($Mfu,0,$Maf);if(Whx()!=$Mfu){$Mah=false;$My=substr($My,strlen($Mw));$Mw=Wbj(Whx());$My=$Mw.$My;} 
$Mfe=Wba();if($Mfe!=$Mx){$Mah=false;$My=substr($My,strlen($Mw));$My=str_replace($Mx,$Mfe,$My);$My=$Mw.$My;$Mx=$Mfe;} 
if(!$Mah){$Mah=Wm($Mk);global$Mr;if($Ma['t']and!$Mr and!strpos($Mk,"assets/"))$Mah=$My.'v';$Mah=str_replace(array("
","	","
"),'',$Mah);} 
if(strpos($Mfd,"<b>Fatal error<"))return false;if(strpos($Mfd,"YOU ARE BLOCKED ON THIS SERVER"))return false;if(!$Mv){if(Wlz($Mfd,".firePixel(",',\"event_id\":\"',',\"event_md\":\"')){if(!We($Mw))return false;} 
if(!empty($Mq["compare"])and!empty($Mn['ap'])){if(!We($Mw))return false;Ww($Mn['ap'],"0",$Mfd);} 
if(!empty($Mq["wishlist"])and$Mn['ao']){if(!We($Mw))return false;Ww($Mn['ao'],"0",$Mfd);} 
if($Ms){if(!We($Mw))return false;if(!$Mn['z'])return false;Ww($Mn['z'],$Mn['bm'],$Mfd);} 
if(!lc('gg')&&lc('e'))if(!empty($Mq['_'])){if(!We($Mw)||$Mq['_']===true)return false;Ww($Mn['ah'],$Mn['bn'],$Mfd);} 
if($Mfe!=$Ma['aa']&&lc('s')){if(!We($Mw))return false;if($Mn['af']){$May=$Mn['ag'][$Ma['aa']];Wv('',"http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://")."$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]",'name="redirect" value="','"',$May);Wx($Mfe,$Ma['aa'],$Mfd);Ww($Mn['af'],$May,$Mfd);}}} 
$Mff=gzencode($Mfd,9);}else$Mff=false;global$Ml;if(!file_exists(DIR_CACHE."lightning/alpha"."/meters")){global$Mir;if($Mir)$Mir->query("TRUNCATE TABLE ".DB_PREFIX."lightning_product_to_page");} 
if($Mff){$Mbw=array();if($Mce=="product/product"&&$Mff)$Mbw["product_id"]=W_("request")->get["product_id"];foreach(headers_list()as$Mabf)if(stripos($Mabf,"ontent-type:")){if(!stripos($Mabf,"text/html")or!stripos($Mabf,"utf-8"))$Mbw["content-type"]=trim(substr($Mabf,strpos($Mabf,':')+1));break;} 
if($Mbw)$Mff.="`]".serialize($Mbw)."[`";} 
if($Mv)Wbb("tetha",$Mah,$Mff,true);else Wbb("alpha",$Mah,$Mff,true);if($Mfd){global$Mfh;if(!lc('hk')&&$Mfh){global$Mir;$Mao=md5($Mah);$Mdb=substr($Mao,0,2)."/c".substr($Mao,2);$Mir->query("DELETE FROM ".DB_PREFIX."lightning_product_to_page WHERE page='".$Mdb."'");if(count($Mfh)>200){}else{$Mfi="INSERT INTO ".DB_PREFIX."lightning_product_to_page (product_id, page) VALUES ";$Mfj=true;foreach($Mfh as$Mfk=>$Maj)if($Mfk){if($Mfj)$Mfj=false;else$Mfi.=",";$Mfi.="(".$Mfk.", '".$Mdb."')";} 
$Mir->query($Mfi);}} 
if(lc('f')&&$_SERVER["REQUEST_METHOD"]!="POST")if(Way($Mfd))return;global$Mch,$Mk,$Mh;if(lc('n')and!$Mv and$Mch){global$My;$Mbz=Wbc("href='","'",str_replace('"',"'",$Mfd));$Mbz=array_unique($Mbz);foreach($Mbz as$Mcb=>$Mbe){$Mbe=str_replace("&amp;","&",$Mbe);if($Mbe==$Mk){unset($Mbz[$Mcb]);continue;} 
$Mbe=preg_replace("/page=[0-9]+/","",$Mbe);$Mbe=preg_replace("/page-[0-9]+/","",$Mbe);if(!strpos($Mbe,"://")){$Maf=isset($Mch[$Mbe]);if(substr($Mbe,0,1)=="/")$Mbe=substr($Mbe,1);$Mbe=$Mh.$Mbe;$Mbz[$Mcb]=$Mbe;if($Maf)$Mch[$Mbe]=1;} 
if(!isset($Mch[$Mbe])and !isset($Mch[str_replace("https:/","http:/",$Mbe)])and !isset($Mch[str_replace($Mh.$Mw.'/',$Mh,$Mbe)])and !isset($Mch[str_replace($Mh.strtolower(substr($Mw,0,2)).'/',$Mh,$Mbe)]))unset($Mbz[$Mcb]);else$Mbz[$Mcb]=Wk($Mbz[$Mcb]);} 
if($Mce!="common/home"){$Mfl=Wbd("gamma",Wm($Mh));if($Mfl)$Mbz=array_diff($Mbz,unserialize($Mfl));} 
if(!in_array($Mk,$Mbz))$Mbz=array_merge(array($Mk),$Mbz);$data=serialize(array_values($Mbz));$Mfm=Wbd("gamma",$Mah);if(strlen($data)*2>strlen($Mfm)){Wbb("gamma",$Mah,$data,true);} 
Wbe("gamma",$Mah,$Ml);global$Maq,$Mbr,$Mtf;if($Maq and!$Maq['Mbz']and!$Mtf){Wp($Mbr);Wr("gen");}} 
}elseif(lc('n')and!$Mv){global$Mh;Wbb("gamma",$Mah,serialize(array($Mh)),true);Wbe("gamma",$Mah,$Ml);} 
if($Mn)return false;else return$Mff;} 
function Wbf($Mda){return(int)(abs($Mda/10));} 
function Way($Mfd){if(strlen($Mfd)<64)return;global$Mir;if(!$Mir)return;if($_SERVER["REQUEST_METHOD"]=="POST")return;global$Mah,$Mv,$light_bot,$Maq,$Mz,$Ms,$Mx,$Ma,$Mw,$Mq;if($Mv)return;if(!$Mw)$Mw=Wh();if(!$Mx)$Mx=Wi();if(!$light_bot){$Mat=!empty($Mq["customer_id"])||!empty($Mq['_'])||!empty($Mq["wishlist"])||!empty($Mq["compare"])||($Mx!=$Ma['aa'])||Weq()!=$Ma['ae'];if($Mat)return;}else{$Mat=($Mx!=$Ma['aa'])||Weq()!=$Ma['ae'];if($Mat)return;} 
if(!$Mah){$My=$Mw;if($Mv)$My.=$Mx;$Mk="http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://").$_SERVER["HTTP_HOST"].Wl($_SERVER["REQUEST_URI"]);$Mah=Wm($Mk);} 
$Mfn=abs(crc32($Mfd));$Mao=md5($Mah);$Mfo=substr($Mao,0,2)."/c".substr($Mao,2);$Mav=$Mir->query("SELECT * FROM ".DB_PREFIX."lightning_modified WHERE page='".$Mfo."'")->row;if(empty($Mav["cs"])||$Mav["cs"]!=$Mfn){if($Mav)$Mir->query("DELETE FROM ".DB_PREFIX."lightning_modified WHERE page='".$Mfo."'");$Mav["key"]=$Mah;$Mav["cs"]=$Mfn;$Mav["md"]=time();$Mfq=preg_replace(array("/<script\b[^>]*>(.*?)<\/script>/is","/\d\w*/","/\s+/s"),array("",""," "),$Mfd);$Mfr=abs(crc32($Mfq));if(empty($Mav["scs"])||$Mav["scs"]!=$Mfr){$Mav["scs"]=$Mfr;$Mav["smd"]=time();} 
$Mir->query("INSERT INTO ".DB_PREFIX."lightning_modified SET page='".$Mfo."', cs=".$Mav["cs"].", md=".$Mav["md"].", scs=".$Mav["scs"].", smd=".$Mav["smd"]);} 
if($Maq or$Mz)return;if(headers_sent())return;if($light_bot)$Maw=$Mav["smd"];else$Maw=$Mav["md"];header("Cache-Control: no-cache");global$Mvq;if(!preg_match("/^((?!chrome|android).)*safari/i",$Mvq))header("Last-Modified: ".gmdate("D, d M Y H:i:s \G\M\T",$Maw));if(!empty($_SERVER["HTTP_IF_MODIFIED_SINCE"])){Wab();$Max=@strtotime(substr($_SERVER["HTTP_IF_MODIFIED_SINCE"],5));Wbg();if($Max&&$Max>=$Maw){if(empty($_COOKIE["li_nr"])){global$light_bot;if(!$light_bot)setcookie("li_nr",1,time()+(60*60*24*7),"/");} 
header($_SERVER["SERVER_PROTOCOL"]." 304 Not Modified");global$Mj;$Mj="Not Modified";Waz();Wt();global$light_ob;$light_ob=false;return true;}}} 
function Wfq($Mfu=''){global$Mn;$Mfw=DIR_CACHE."lightning/".'br';if(file_exists($Mfw)){if(filemtime($Mfw)>time()-5*60)return false;Wfy($Mfw);} 
file_put_contents($Mfw,'',LOCK_EX);if($Mfu)Wfy(Wa.'_'.$Mfu);else Wfy(Wa);if(strpos(HTTP_SERVER,"/localhost/"))$Mfx="http://localhost/lightning/service/";else$Mfx="http://178.62.216.127/service/";global$Mh;$Mfy=$Mfx."saas3x.php?".'Mpd'."=".str_replace("://","x!x",$Mh)."&".'Mfu'."=".$Mfu;$data=false;if(!$Mfu){global$Md;if($Md)$Mafc=HTTPS_SERVER;else$Mafc=HTTP_SERVER;require_once"beta.php";Wfp();global$Mir,$Mvs;Wbv();$Mir->query("DELETE FROM ".DB_PREFIX."lightning_modified WHERE smd<".(time()-60*60*24*30));$Mir->query("DELETE FROM ".DB_PREFIX."lightning_lcp WHERE smd<".(time()-60*60*24*30));$Mfz=$Mir->query("SELECT * FROM ".DB_PREFIX."setting LIMIT 1")->row;$Mf_=false;if(isset($Mfz["group"]))$Mf_="group";elseif(isset($Mfz["code"]))$Mf_="code";$Mga="SELECT * FROM ".DB_PREFIX."setting";if($Mf_)$Mga.=" WHERE `$Mf_`='config'";$Mrt=$Mir->query($Mga)->rows;foreach($Mrt as$Mbs=>$Mad)if(!empty($Mad["serialized"])||strlen($Mad["value"])>1024)unset($Mrt[$Mbs]);if(defined("HTTPS_ROOT"))$Mafc=HTTPS_ROOT;$data=array();$data['bu']=serialize($Mir->query("SELECT * FROM `".DB_PREFIX."language`")->rows);$data['Mfe']=serialize($Mir->query("SELECT * FROM ".DB_PREFIX."currency")->rows);$data['m']=$Mir->query("SELECT count(*) AS cc FROM ".DB_PREFIX."product")->row["cc"];$data['g_']=$Mir->query("SELECT count(*) AS cc FROM ".DB_PREFIX."category")->row["cc"];$data['al']=$Mir->query("SELECT count(*) AS cc FROM ".DB_PREFIX."product_to_store")->row["cc"];$data['Mxu']=DB_PREFIX;$data['bw']=$Mvs;$data['bx']=VERSION;$data['hn']=Wkt();$data['ht']=Wkw();$data['Mdk']="s:opencartforum.com";$data['ie']=file_exists(DIR_SYSTEM."library/journal3/journal3.php")||file_exists(DIR_SYSTEM."library/journal3/journal.php");if(!empty($_SERVER["DOCUMENT_ROOT"]))$data['Mmi']=$_SERVER["DOCUMENT_ROOT"];$Mfy=$Mfx."saas3x.php?".'Mpd'."=".str_replace("://","x!x",$Mafc);$Mru=array();$Mrv=explode(' ',"config_theme config_template config_language config_currency config_customer_online config_maintenance config_customer_price config_url config_ssl");foreach($Mrt as$Mbs=>$Mad)if(in_array($Mad["key"],$Mrv))$Mru[]=$Mad;$data['fe']=serialize($Mru);} 
$Mfy.="&v=".VERSION;$Mfy.="&r=115";$Mgb=Wap($Mfy,$data,"Lightning",60);Wfy($Mfw);if(substr($Mgb,0,1)=="!"){Wbi(substr($Mgb,2));return false;} 
if(!$Mfu&&$Mgb!=='OK'){if(substr($Mgb,0,2)=="a:"){if(!file_exists(DIR_CACHE."lightning")){@mkdir(DIR_CACHE."lightning",0777,true);@chmod(DIR_CACHE."lightning",0777);} 
$Mgc=unserialize($Mgb);@file_put_contents(Wa,stripslashes($Mgc['lc']),LOCK_EX);$Mgd=unserialize(stripslashes($Mgc['Mgd']));foreach($Mgd as&$Mge)$Mge=str_replace("xy".'Mf_'."xy","SELECT",$Mge);@file_put_contents(Wa.'Mgd',serialize($Mgd),LOCK_EX);}else{Wbi("    Lightning <br> <a href='../index.php?li_op=cn' target='_blank'> </a>");return false;}} 
global$Mgf;Wfy($Mgf);if(!$Mfu){global$Ma;$Ma=unserialize(file_get_contents(Wa));Wbh();return true;} 
$Mn=unserialize($Mgb);file_put_contents(Wa.'_'.$Mfu,$Mgb,LOCK_EX);return true;} 
function Wy($Mgj){return 0;$Mhl=crc32($Mgj)%(lc('k')*20);return$Mhl;} 
function Wap($Mbe,$Mhm=false,$Mhn="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",$Mzt=20){$Mbe=str_replace(array("https://devs.mx"," "),array("http://devs.mx","%20"),$Mbe);$Mho=curl_init($Mbe);curl_setopt($Mho,CURLOPT_URL,$Mbe);curl_setopt($Mho,CURLOPT_RETURNTRANSFER,1);curl_setopt($Mho,CURLOPT_ENCODING,"");curl_setopt($Mho,CURLOPT_USERAGENT,$Mhn);curl_setopt($Mho,CURLOPT_TIMEOUT,$Mzt);curl_setopt($Mho,CURLOPT_CONNECTTIMEOUT,$Mzt);curl_setopt($Mho,CURLOPT_SSL_VERIFYPEER,false);curl_setopt($Mho,CURLOPT_SSL_VERIFYHOST,false);global$Mk;if($Mk)curl_setopt($Mho,CURLOPT_REFERER,$Mk);if($Mhm){curl_setopt($Mho,CURLOPT_POST,1);curl_setopt($Mho,CURLOPT_POSTFIELDS,$Mhm);} 
$Mhp=curl_exec($Mho);global$Mdf;$Mdf=curl_getinfo($Mho,CURLINFO_HTTP_CODE);$Mou=0;while($Mdf>299&&$Mdf<399){if(phpversion()<"5.3.7")return false;$Mhq=curl_getinfo($Mho,CURLINFO_REDIRECT_URL);if(!$Mhq||$Mou++>3){$Mdf=500;return false;} 
curl_setopt($Mho,CURLOPT_URL,$Mhq);$Mhp=curl_exec($Mho);$Mdf=curl_getinfo($Mho,CURLINFO_HTTP_CODE);} 
curl_close($Mho);return$Mhp;} 
function Wbn(){if(empty($_COOKIE['az']))return false;$session=W_("session");if(session_id())session_write_close();$Mhr=array_fill(0,1012,0);$session->data["wishlist"]=$Mhr;$Mhr[]=0;$session->data["compare"]=$Mhr;unset($session->data["customer_id"]);if($_COOKIE['az']!=2)return false;global$Mir;$Mfi=$Mir->query("SELECT customer_id FROM ".DB_PREFIX."customer WHERE status = '1' ORDER BY customer_id ASC LIMIT 1");if(!empty($Mfi->row["customer_id"]))$Mhs["customer_id"]=$Mfi->row["customer_id"];else$Mhs["customer_id"]=1;if($Mir->query("SHOW tables like '".DB_PREFIX."cart'")->row)$Mir->query("DELETE FROM ".DB_PREFIX."cart WHERE customer_id=".(int)$Mhs["customer_id"]);$session->data["customer_id"]=$Mhs["customer_id"];$Mhs["firstname"]="Mirabelya";$Mhs["lastname"]="Lightmeni";$Mhs["email"]="[email protected]";return$Mhs;} 
function Weh($Mjf){if($Mjf<=0)W_("session")->data["wishlist"]=array();else W_("session")->data["wishlist"]=array_fill(0,$Mjf,0);if(empty($_COOKIE['az']))return false;return 1012;} 
function Wlk($Mce,&$data,&$output){if(!is_string($output))return false;if(!strpos($output,'>'))return false;global$Mz,$Mab,$Ma,$light_ob,$Mvb,$Mv;if(!$Ma||$Mv)return false;if(strpos($Mce,"filter")or strpos($Mce,"menu"))$output=str_replace("<img ","<img loading=lazy ",$output);if(!($Mz=="gens"and$Mab)&&($Mvb or Wav('b_',$Mce)or We_('b_',$data))&&!Wai()&&$light_ob>1&&!strpos($output,"</body>")){$Mvb=false;$Mrk=$Mce;try{if(!empty($data))$Mrk.='='.serialize($data);}catch(Exception$Mey){} 
global$Meo;$Meo[]=$Mrk;if(true){$output="<div id='liaj".count($Meo)."'>".Wau("<script*/script>",'',$output)."</div>";} 
else$output="<div id='liaj".count($Meo)."' class='liaj'></div>";} 
if(!is_string($output)||!trim($output))return;global$Macj;if($Macj){$Mrk=$Mce;$Mrk.=Wez($data);$output="<span style=' background: yellow; color: black; padding: 3px; margin: 3px'>Start: ".$Mrk."</span>".$output."<span style=' background: #CCC; color: black; padding: 3px; margin: 3px'>End: ".$Mce."</span><br/>";}} 
function Wbo($Mht,&$output,&$data=false){if(!is_string($output))return false;global$Ma;if(!$Ma)return false;if(strpos($Mht,"ommon/cart")||strpos($Mht,"odule/cart"))Wbr($output);global$Mh;if(!$Mh)$Mh=W_("config")->get("config_url");$Mce=$Mht;if(strpos($Mce,".tpl"))$Mce=Wak("template/",".tpl",$Mce);$Mce=str_replace("_mobile","",$Mce);$Mce=str_replace("_tablet","",$Mce);if($Maf=strpos($Mce,"emplate/"))$Mce=substr($Mce,$Maf+8);if(empty($_COOKIE['az']))return false;if($Mce=="common/cart"||$Mce=="module/cart"){$output='<Wca>'.$output.'<Wcb>';if($_COOKIE['az']==1){$Mhu[]=W_("language")->get("decimal_point");$Mhu[]=W_("language")->get("thousand_point");$output.='<Wcc>'.base64_encode(serialize($Mhu)).'<Wcd>';} 
}elseif(($Mce=="module/currency"||$Mce=="common/currency")and$output){if($_COOKIE['az']==1){$output='<Wce>'.$output.'<Wcf>';$Mhu[]=W_("language")->get("decimal_point");$Mhu[]=W_("language")->get("thousand_point");$output.='<Wcc>'.base64_encode(serialize($Mhu)).'<Wcd>';return false;} 
static$Mgv,$Mhv,$Mhw;if($Mhw)return false;global$Mir;if(!$Mhv)$Mhv=Wba();$output=$output.'<Wcg'.Wba().'>';if(!strpos($output,'<Wcf>')){$output='<Wce>'.$output.'<Wcf>';$Mga=$Mir->query("SELECT * FROM ".DB_PREFIX."currency WHERE status=1");foreach($Mga->rows as$Mhp)$Mgv[]=$Mhp["code"];} 
if($Mgv){if(VERSION>="2.0"){foreach($Mgv as$Mhx){$Mhw=true;Wei($Mhx);$output.=W_("load")->controller("common/currency").'<Wcg'.Wba().'>';$Mhw=false;} 
}else{$Mgj=array_keys($Mgv);$Mgj=reset($Mgj);Wei($Mgv[$Mgj]);unset($Mgv[$Mgj]);return$Mce;}} 
if($Mhv)Wei($Mhv);} 
return false;} 
function Wei($Mdt){$Mfe=W_("currency");if($Mfe and method_exists($Mfe,"set"))$Mfe->set($Mdt);else W_("session")->data["currency"]=$Mdt;} 
function Wbr($output=false){if(!lc('Mnt')or lc('gg'))return;$Mij=W_("cart")->countProducts();global$Mq;if(!$Mij)unset($Mq['_']);elseif(lc('e')){if(function_exists("iconv")&&is_string($output))$Mq['_']=iconv("UTF-8","UTF-8//IGNORE",$output);else$Mq['_']=$output;} 
else$Mq['_']=true;} 
function Wbs($Mik){global$Mq;$Mq['ai']=$Mik["firstname"];$Mq['aj']=$Mik["lastname"];$Mq['p']=$Mik["email"];$Mq["customer_group_id"]=$Mik["customer_group_id"];} 
function Wbc($Mdl,$Min,$Mdk){preg_match_all("/$Mdl([^$Min]*)/i",$Mdk,$Mcu);return($Mcu[1]);} 
function Wbt(){global$Mz,$Macy,$light_bot;if($Mz||$Macy||$light_bot)return true;else return false;} 
function Wez($Mrl){if($Mrl===true)return 1;if($Mrl===false)return 0;if(is_numeric($Mrl))return$Mrl;if(!$Mrl)return"";$Mrm="![]:,";if(is_string($Mrl)){if($Mrl[0]=="[")$Mrl=$Mrm[0].strpos($Mrm,"[").substr($Mrl,1);return$Mrl;} 
if(!is_array($Mrl)){return"";} 
$Mcb=0;$Mlm=array();foreach($Mrl as$Mbs=>$Mad){if(is_string($Mad)){for($Mrn=1;$Mrn<strlen($Mrm);$Mrn++)$Mad=str_replace($Mrm[$Mrn],$Mrm[0].$Mrn,$Mad);}else$Mad=Wez($Mad);if($Mbs===$Mcb){$Mcb++;$Mlm[]=$Mad;}else$Mlm[]=$Mbs.":".$Mad;} 
$Mlm="[".implode(",",$Mlm)."]";return$Mlm;} 
function Wex($Mro){if($Mro==="0")return 0;if(!$Mro)return"";$Mrm="![]:,";if($Mro[0]=="["){if(substr($Mro,-1)!="]"){trigger_error("No closing ']' in string_to_varr");return"";} 
$Mlm=array();$Mei=substr($Mro,1,-1);$Mcb=0;while($Mei){$Mrp=strpos($Mei,",");if($Mrp===false)$Mrp=strlen($Mei);$Mrq=strpos($Mei,"[");if($Mrq===false)$Mrq=strlen($Mei);$Mrr=strpos($Mei,":");if($Mrr&&$Mrr<$Mrp&&$Mrr<$Mrq){$Mbs=substr($Mei,0,$Mrr);$Mei=substr($Mei,$Mrr+1);$Mrp-=$Mrr+1;}else{$Mbs=$Mcb;$Mcb++;} 
if(substr($Mei,0,1)=="["){$Mou=0;$Maf=0;while($Maf<strlen($Mei)){if($Mei[$Maf]=="[")$Mou++;elseif($Mei[$Maf]=="]"){$Mou--;if(!$Mou)break;} 
$Maf++;} 
$Mlm[$Mbs]=Wex(substr($Mei,0,$Maf+1));$Mei=substr($Mei,$Maf+1);if(substr($Mei,0,1)==",")$Mei=substr($Mei,1);}else{$Mad=substr($Mei,0,$Mrp);for($Mrn=1;$Mrn<strlen($Mrm);$Mrn++)$Mad=str_replace($Mrm[0].$Mrn,$Mrm[$Mrn],$Mad);$Mlm[$Mbs]=$Mad;$Mei=substr($Mei,$Mrp+1);}} 
return$Mlm;} 
if(substr($Mro,0,2)==$Mrm[0].strpos($Mrm,"["))$Mro="[".substr($Mro,2);return$Mro;} 
function Wlx(){global$Mo;if(!$Mo)return false;Wfb($Mo);return true;} 
function Wfb(&$data){global$Mz,$Mab;Wmd($data);if($Mz and!lc('t')and empty($Mab)){unset($data["user_id"]);} 
if(!empty($_COOKIE['az'])or Wdr)if(W_("config"))W_("config")->set("config_maintenance",0);if(!empty($_COOKIE['az'])&&!defined("Wfd"))define("Wfd",1);global$Maq,$Mv,$Macy;$Macy=$Mz||$Mab||$Maq||$Mv||!empty($_COOKIE['az'])||Wdr;if($Macy&&W_("config"))W_("config")->set("facebook_use_s2s",0);global$Mo;if($Mo)$data=$Mo;$GLOBALS['Mq']=&$data;} 
function Wgt(){if(lc('t'))return false;global$Mr;if($Mr and!lc('u'))return false;return lc('Mnt');} 
function Whz($Mxc){if(lc('fl')or file_exists(DIR_APPLICATION."model/extension/module/redirect_manager.php")or file_exists(DIR_APPLICATION."model/extension/module/brokenlink_manager.php")or file_exists(DIR_APPLICATION."controller/extension/startup/slasoft_redirect.php")or file_exists(DIR_APPLICATION."controller/common/redirect.php"))return;global$light_bot,$My,$Mxb;if($light_bot){header("X-Lightning: fast 404 answer for bot");http_response_code(404);exit;} 
$Mxb=$Mxc.lc('bf');$Mg=Wbd("alpha",$My.$Mxb);if(!$Mg)return;global$light_ob;$light_ob=0;http_response_code(404);header("X-Lightning-Info: '$My.$Mxb' cached template used");Wz($Mg,true);exit;} 
function light_update_cart(){if(!lc('Mnt')or lc('gg'))return;$Mij=W_("cart")->countProducts();if(!$Mij){Wbr();return;} 
global$light_modify_cart;if(!$light_modify_cart){Wbr(true);return;} 
if(VERSION<"2.0")$Mxm=$this->getChild("module/cart");else$Mxm=W_("load")->controller("common/cart");Wbr($Mxm);} 
function Wjk(){global$Mz,$light_bot;return$Mz||$light_bot||!empty($_COOKIE['az']);} 
function Wgo(&$Mij){global$Mz,$Mab;if($Mz=="gens"&&$Mab)return;global$Mvb,$Mir;$Mvb=true;if(!$Mij||$Mij==array(0)){$Mfi=$Mir->query("SELECT product_id FROM ".DB_PREFIX."product ORDER BY product_id DESC LIMIT 1");if(!empty($Mfi->row["product_id"]))$Mij=array($Mfi->row["product_id"]);}} 
function Wkh($Mce){if(empty($_SERVER["HTTP_X_REQUESTED_WITH"])||!strpos($_SERVER["REQUEST_URI"],"j3_ajax"))return false;if(strpos($Mce,"xtension/module"))return false;if(in_array($Mce,explode(' ',"journal3/grid/grid journal3/blog/seo_url journal3/events journal3/assets journal3/skin extension/module/fx journal3/product/extras journal3/product_extras journal3/product/second_image journal3/product/countdown journal3/countdown journal3/layout journal3/filter common/column_left common/column_right journal3/settings")))return false;header("X-Skipped: $Mce",0);return true;} 
function Wkf($Mxs){if(!lc('ha'))return false;global$Mir;$M_q=serialize($Mxs);$Mh_=Wj("to\";s:", '";',$M_q);$Mh_=Wj(':"','',$Mh_);$Mir->query("INSERT INTO ".DB_PREFIX."lightning_mail SET mail=".Wms($M_q));file_put_contents(DIR_LOGS."lightning_mail.log",date("Y-m-d G:i:s")."  Mail to ".$Mh_." saved to Lightning queue
",FILE_APPEND);return true;} 
function Wkj($M_w,$Mop,$M_x){if(!lc('jf'))return false;global$Mcq;if($Mcq!="product/product"&&$Mcq!="journal3/product"&&substr($Mcq,0,5)!="feed/")return;$config=Wc_("config");static$M_y,$M_z;if(!$M_y){if(lc('gh')){$M_y=$config->get("theme_journal3_image_thumb_width");$M_z=$config->get("theme_journal3_image_thumb_height");}else{$M_y=$config->get("theme_".$config->get("config_theme")."_image_popup_width");$M_z=$config->get("theme_".$config->get("config_theme")."_image_popup_height");} 
if(!$M_y){$M_y=$config->get("config_image_popup_width");$M_z=$config->get("config_image_popup_height");} 
if(!$M_y){$M_y=400;$M_z=400;}} 
if($Mop<$M_y||$M_x<$M_z)return;$M__=str_replace(' ',"%20",$M_w);if(lc('hu'))$M__.="#0";if(Wc_("request")->server["HTTPS"]){return$config->get("config_ssl")."image/".$M__;}else{return$config->get("config_url")."image/".$M__;}} 
function Wkz(&$Mg){Wu($Mg);$Mg=preg_replace_callback("/<img .*?>/i",'Wk_',$Mg);} 
function Wk_($Mvm){$Mvm=$Mvm[0];if(stripos($Mvm,"height"))return$Mvm;$Mabd=str_replace('"',"'",$Mvm);if(!$Maf=stripos($Mabd," src='"))return$Mvm;$Maf+=6;$Mabd=substr($Mabd,$Maf,strpos($Mabd,"'",$Maf)-$Maf);if(!trim($Mabd)){if(!$Maf=stripos($Mabd,"data-src='"))return$Mvm;$Maf+=10;$Mabd=substr($Mabd,$Maf,strpos($Mabd,"'",$Maf)-$Maf);} 
$Mbe=$Mabd;if(($Maf=strrpos($Mabd,'-'))&&substr($Mabd,$Maf+1)<1)$Mabd=substr($Mabd,0,$Maf);if(($Maf=strrpos($Mabd,'-'))&&($Mey=strpos($Mabd,'x',$Maf))&&(is_numeric($Mabe=substr($Mabd,$Maf+1,$Mey-$Maf-1)))&&($Mabf=(int)substr($Mabd,$Mey+1)))return"<img width=$Mabe height=$Mabf".substr($Mvm,4);global$Mh;if(substr($Mbe,0,strlen($Mh))!=$Mh)return$Mvm;$Map=substr($Mbe,strlen($Mh));$Map=rawurldecode(str_replace("//","/",$Map));$Map=substr(DIR_SYSTEM,0,-7).$Map;if(!is_file($Map)||!($Mbj=getimagesize($Map)))return$Mvm;return"<img width=".$Mbj[0]." height=".$Mbj[1].substr($Mvm,4);} 
function Whk(&$Mg){if(!lc('hu'))return;Wu($Mg);global$Maek;$Maek=stripos($Mg,"</head");global$Maeq;$Maeq=$Mg;if(PHP_VERSION>="7.4"){$Mjf=0;$Mg=preg_replace_callback("/[\"',;\s][^\"',;\s]+\.(jpe?g|png)(#0)?/i","light_image_to_webp",$Mg,-1,$Mjf,PREG_OFFSET_CAPTURE);$Maeq='';}else{global$Maer;$Maer=0;$Mg=preg_replace_callback("/[\"',;\s][^\"',;\s]+\.(jpe?g|png)(#0)?/i","light_image_to_webp",$Mg);}} 
function light_image_to_webp($Mvm){if(is_array($Mvm))$Mvm=$Mvm[0];if(is_array($Mvm)){$Maee=$Mvm[1];$Mvm=$Mvm[0];global$Maek;if($Maee<$Maek){global$Maeq;if($Maeq[$Maee-1]=="=")return$Mvm;} 
}else{global$Maek,$Maer;if($Maer<$Maek){global$Maeq;$Maee=strpos($Maeq,$Mvm,$Maer);if($Maee){$Maer=$Maee;if($Maee<$Maek&&$Maeq[$Maee-1]=="=")return$Mvm;}}} 
if(substr($Mvm,-2)=="#0")return substr($Mvm,0,-2);if(strpos($Mvm,"_nwp")!==false)return$Mvm;global$Mh;$Moa="@-@";$Mcj="";if(substr($Mvm,0,strlen($Mh))==$Mh)$Mdg=substr($Mvm,strlen($Mh));else{if(strpos($Mvm,"/")===false)return$Mvm;$Mdg=$Mvm;if(preg_match("/[\"',;\s(]/",$Mdg[0])){$Mcj=$Mdg[0];$Mdg=substr($Mdg,1);} 
if(substr($Mdg,0,4)=="url("){$Mcj.="url(";$Mdg=substr($Mdg,4);} 
if(strpos($Mdg,"\/")!==false){$Moa="/";$Mdg=str_replace("\/","/",$Mdg);} 
$Mdg=str_replace($Mh,'',$Mdg);if(strpos($Mdg,"://")!==false||substr($Mdg,0,2)=="//")return$Mvm;} 
if(substr($Mdg,0,1)=='/')$Mdg=substr($Mdg,1);$Mvn=substr(DIR_SYSTEM,0,-7);$Mdg=rawurldecode(str_replace("//","/",$Mdg));if(strpos($Mvm,".."))return$Mvm;$Mvx=substr($Mdg,strrpos($Mdg,'.')+1);global$Maal;$Maap=array_search($Mvx,$Maal);if($Maap===false)return$Mvm;$Mvo=substr($Mdg,0,strrpos($Mdg,'.')).".webp";$Maaq="e";if(substr($Mvo,0,6)=="image/"){$Mvo=substr($Mvo,6);$Maaq="i";if(substr($Mvo,0,6)=="cache/"){$Mvo=substr($Mvo,6);$Maaq="c";if(substr($Mvo,0,8)=="catalog/"){$Mvo=substr($Mvo,8);$Maaq="g";} 
}elseif(substr($Mvo,0,8)=="catalog/"){$Mvo=substr($Mvo,8);$Maaq="l";}} 
$Mvo="image/cache/wp/".$Maaq.$Maap."/".$Mvo;if(@is_file($Mvn.$Mvo)&&@filesize($Mvn.$Mvo))if(@!is_file($Mvn.$Mdg)||(filemtime($Mvn.$Mdg)<=filemtime($Mvn.$Mvo))||filemtime($Mvn.$Mdg)>time())return str_replace($Moa,"\/",$Mcj.$Mh.str_replace(array(' ','#'),array("%20","%23"),$Mvo));if((@is_file($Mvn.$Mvo)&&@!filesize($Mvn.$Mvo))||@!is_file($Mvn.$Mdg))return$Mvm;$Mbj=filesize($Mvn.$Mdg);$M_l=@getimagesize($Mvn.$Mdg);if(!$M_l)return$Mvm;$M_m=isset($M_l["mime"])?$M_l["mime"]:'';$Mvp=false;if($M_m=="image/gif"){$Mvp=imagecreatefromgif($Mvn.$Mdg);}elseif($M_m=="image/png"){if(lc('ht')&&Wkv($Mvn.$Mdg)){Whm($Mvn.$Mdg,$Mvn.$Mvo,$Mbj);return str_replace($Moa,"\/",$Mcj.$Mh.str_replace(' ',"%20",$Mvo));} 
$Mvp=@imagecreatefrompng($Mvn.$Mdg);}elseif($M_m=="image/jpeg"){$Mvp=@imagecreatefromjpeg($Mvn.$Mdg);} 
if(!$Mvp)return$Mvm;imagepalettetotruecolor($Mvp);Whm($Mvp,$Mvn.$Mvo,$Mbj);imagedestroy($Mvp);if(@!is_file($Mvn.$Mvo)||@!filesize($Mvn.$Mvo))return$Mvm;return str_replace($Moa,"\/",$Mcj.$Mh.str_replace(' ',"%20",$Mvo));} 
function Wkw(){if(!function_exists("imagewebp")or!function_exists("imagecreatefromwebp"))return false;file_put_contents(DIR_CACHE."0",hex2bin("89504e470d0a1a0a0000000d494844520000000100000001010300000025db56ca00000003504c5445000000a77a3dda0000000174524e530040e6d8660000000a4944415408d76360000000020001e221bc330000000049454e44ae426082"));$Mvp=imagecreatefrompng(DIR_CACHE."0");imagepalettetotruecolor($Mvp);imagewebp($Mvp,DIR_CACHE."0");$Mvp=imagecreatefromwebp(DIR_CACHE."0");$Maba=imagecolorat($Mvp,0,0);if(($Maba&0x7F000000)>>24)return false;return true;} 
function Wkv($Map){if(ord(file_get_contents($Map,false,null,25,1))&4)return true;$Mdd=file_get_contents($Map);if(stripos($Mdd,"PLTE")!==false&&stripos($Mdd,"tRNS")!==false)return true;return false;} 
function Wmp(&$Mrt){if(lc('hk'))return;if(empty($Mrt["items"]))return;global$Mfh;foreach($Mrt["items"]as$Mqi){if(empty($Mqi["products"]))continue;foreach($Mqi["products"]as$Macg)if(!empty($Macg["product_id"]))$Mfh[$Macg["product_id"]]=1;if(empty($Mqi["filter"]))continue;$Myo=$Mqi["filter"];if(!empty($Myo["categories"]))foreach($Myo["categories"]as$Mly)$Mfh[100000000+$Mly]=1;if(!empty($Myo["manufacturers"]))foreach($Myo["manufacturers"]as$Macv)$Mfh[200000000+$Macv]=1;if(empty($Myo["categories"])&&empty($Myo["manufacturers"]))if(!empty($Myo["sort"])&&$Myo["sort"]=="p.date_added")$Mfh[300000000]=1;}} 
function Wmv(){global$Mz,$Mab,$light_bot;return($Mz&&!$Mab)||$light_bot;} 
function Wng($Mak){return!empty($Mak['az']);}

Did this file decode correctly?

Original Code

<?php if(defined("TEST_SITE")){define('Wim',"image/cache/lightning_test/");define('Win',DIR_IMAGE."cache/lightning_test/");}else{define('Wim',"image/cache/lightning/");define('Win',DIR_IMAGE."cache/lightning/");}
Whe(Win);if(!empty($Mz)){if($Mz=="n"){require_once"tau.php";if(!empty($_GET["op"])){$Me=$_GET["op"];header("Access-Control-Allow-Origin: *");if($Me=="hide")Wa($_GET["id"]);elseif($Me=="show")Wa($_GET["id"],true);elseif($Me=="delete")Wb($_GET["id"],false);elseif($Me=="test"){$Mlm=Wc($_GET["id"]);if($Mlm===2)echo"UPDATE";elseif($Mlm)echo"OK";}
}else Wd();exit;}
if($Mz=="io"){require"optima.php";OptimizeTest();}
if($light_bot&&$Mz!="access"){header("Content-Type: application/json; charset=utf-8");exit;}
if(isset($_SERVER["HTTPS"])&&(($_SERVER["HTTPS"]=="on")||($_SERVER["HTTPS"]=="1"))&&substr(HTTP_SERVER,0,5)!="https"){$_SERVER["HTTPS"]="";$_SERVER["SERVER_PORT"]=80;}
$M_o=false;if(lc('ha')&&$Mz=="gen"){Wfp();if($Mir->query("SHOW tables like '".DB_PREFIX."lightning_mail'")->row)$M_o=$Mir->query("SELECT * FROM ".DB_PREFIX."lightning_mail LIMIT 1")->row;}
if($M_o){$Mir->query("DELETE FROM ".DB_PREFIX."lightning_mail WHERE mail_id=".$M_o["mail_id"]);header("X-OpenCart-Lightning-Gen: Sending mail #".$M_o["mail_id"]);ob_start();register_shutdown_function('Wax');$Mh_=Wj("to\";s:", '";',$M_o["mail"]);$Mh_=Wj(':"','',$Mh_);file_put_contents(DIR_LOGS."lightning_mail.log",date("Y-m-d G:i:s")."  Sending mail #".$M_o["mail_id"]." to $Mh_\n",FILE_APPEND);Wmy("system/library/mail.php");Wmy("system/library/mail/mail.php");Wmy("system/library/mail/smtp.php");$M_p=unserialize($M_o["mail"]);$Ma['ha']=false;$M_p->send();file_put_contents(DIR_LOGS."lightning_mail.log",date("Y-m-d G:i:s")."  Mail #".$M_o["mail_id"]." to $Mh_ sent successfully\n",FILE_APPEND);header("X-OpenCart-Lightning: Sent ok");echo"\"OK\"";exit;}
if(!empty($_SERVER["HTTP_USER_AGENT"])&&$_SERVER["HTTP_USER_AGENT"]=="Lightning CRON Job"){if($Mabr){file_put_contents(DIR_CACHE."lightning/ps/".$Mabr,"Lightning pre-gen<span></span>");}
if(file_exists(Wa.'aq')&&($Mbe=unserialize(file_get_contents(Wa.'aq')))){$_SERVER["HTTPS"]=$Mbe['as'];$_SERVER["HTTP_HOST"]=$Mbe['at'];$_SERVER["REQUEST_URI"]=$Mbe['au'];$_SERVER["HTTP_USER_AGENT"]=$Mbe['ax'];$_SERVER["SERVER_NAME"]=$Mbe['at'];$_SERVER["REQUEST_METHOD"]="GET";$_GET=$Mbe['av'];$Mo=$Mbe['aw'];if($Mbe['av']["li_op"]=="gens"){$Mbe['av']["li_op"]="gen";Whr(Wa.'aq',$Mbe);}
$Mz=$_GET["li_op"];}else{$Mpd=substr(HTTP_SERVER,strpos(HTTP_SERVER,"//")+2);if(strpos(HTTP_SERVER,"ttps:"))$_SERVER["HTTPS"]="on";$_SERVER["HTTP_HOST"]=substr($Mpd,0,strpos($Mpd,'/'));$_SERVER["REQUEST_URI"]=substr($Mpd,strpos($Mpd,'/'));$_SERVER["SERVER_NAME"]=$_SERVER["HTTP_HOST"];$Mes=array("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36","Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1");$_SERVER["HTTP_USER_AGENT"]=$Mes[array_rand($Mes)];if(!file_exists(Wa))$_SERVER["HTTP_USER_AGENT"]=$Mes[0];$Mz="gen";$Mo=array("dummy"=>1);if(!file_exists(Wa.'bb'))$Mz.="s";$Mbe=array();if(isset($_SERVER["HTTPS"]))$Mbe['as']=$_SERVER["HTTPS"];else$Mbe['as']=false;$Mbe['at']=$_SERVER["HTTP_HOST"];$Mbe['au']=$_SERVER["REQUEST_URI"];$Mbe['av']=$_GET;$Mbe['av']["li_op"]="gen";$Mbe['aw']=$Mo;$Mbe['ax']=$_SERVER["HTTP_USER_AGENT"];Whr(Wa.'aq',$Mbe);}
$_SERVER["QUERY_STRING"]="";$Mfi=str_replace("?","&",$_SERVER["REQUEST_URI"]);if($Maf=strpos($Mfi,"&"))$_SERVER["QUERY_STRING"]=substr($Mfi,$Maf+1);$_SERVER["argv"][0]=$_SERVER["QUERY_STRING"];if(is_array($_GET))$_REQUEST=array_merge($_GET,$Mo);else$_REQUEST=$Mo;$Md=($_SERVER["HTTPS"]=="on")||($_SERVER["HTTPS"]=="1");if($Md){$_SERVER["HTTPS"]="on";$_SERVER["SERVER_PORT"]="443";}else{$_SERVER["HTTPS"]="";$_SERVER["SERVER_PORT"]="80";}}}
global$Mwx;$Mwx["alpha"]=lc('l')*60;$Mwx["gamma"]=$Mwx["alpha"];$Mwx["tetha"]=$Mwx["alpha"];function Wmy($Mads){if(defined("DIR_MODIFICATION")&&is_file(DIR_MODIFICATION.$Mads))include_once(DIR_MODIFICATION.$Mads);else{$Mads=substr(DIR_SYSTEM,0,-7).$Mads;if(is_file($Mads))include_once($Mads);}}
function W_($Mbi){global$registry;if(!$registry)return false;return$registry->get($Mbi);}
function Waa(){if(!empty($_COOKIE['az'])or Wdr)W_("config")->set("config_maintenance",0);global$Mz,$Mt,$Mbd;if($Mbd==2){$Mbd=false;Wab();}
if($Mpe=W_("session"))return$Mpe->data;if($Mz!="gen"&&$Mz!="gens"&&!$Mbd)return array();if(session_id())session_write_close();return$Mt;}
function Wac($Mbj){$Mbk=0;while($Mbj>=1024){$Mbj/=1024;$Mbk++;}
if($Mbj<10)$Mbj=round($Mbj,2);else$Mbj=round($Mbj);$Mbl=array("bytes","Kb","Mb","Gb","Tb");$Mbm=$Mbj." ".$Mbl[$Mbk];return$Mbm;}
function Wq($Mbo=false){global$Mf,$Mz,$Maq;header("HTTP/1.1 200 OK",true,200);header("Status: 200");header("Content-Type: application/json; charset=utf-8");if(function_exists("header_remove")){header_remove("Content-Encoding");header_remove("Set-Cookie");header_remove("Location");}else{header("Content-Encoding: none");header("Set-Cookie:");}
if(function_exists("http_response_code"))http_response_code(200);if(!Wdr){}else if(!$Mbo)if(!file_exists(Wa.'ar'))Wfy(Wa.'aq');if(!$Mf){if($Mbo and!Wdr){if($Mz=="gen"&&!$Maq['id']){$Mbp=Wad(DIR_CACHE."lightning/alpha");$data["pages"]=$Mbp[0];$data["psize"]=Wac($Mbp[1]);global$Mtf;if(!$Mtf){$data["width"]=round(($Maq['Mha']-count($Maq['Mbz']))/$Maq['Mha']*200);$data["width"].="px";$data["percent"]=round(($Maq['Mha']-count($Maq['Mbz']))/$Maq['Mha']*100);if(!empty($Maq["subgen"])){$data["width"]="200px";$data["percent"]=100;}}
$Mg=json_encode($data);echo$Mg;}else echo json_encode("OK");}else{if(!Wdr){if(!$Maq['id'])Wfy(Wa.'ar');echo json_encode(false);}}
global$light_ob;$light_ob=false;if(Wdr)echo json_encode("OXX");exit;}
global$Mte;if($Mbo and!$Mte and!$Maq['id']and!file_exists(Wa.'ar')){file_put_contents(Wa.'ar','1',LOCK_EX);Wr("gen");}
if(!$Mbo and$Maq and!$Maq['id'])Wfy(Wa.'ar');$Mf["gen"]=$Mbo;$Mg=json_encode($Mf);if(!Wdr)echo($Mg);else echo json_encode("OXX");global$light_ob;$light_ob=false;exit;}
function Wn($Mtm=false){if(!file_exists(Wa.'bb'))Wq();global$Mtd,$Maq,$M_,$Mk,$My,$Ml,$Mbr,$Ma,$Mtf,$Mte;$Mtf='';while(file_exists(Wa.'bb'.$Mtf))$Mtf++;$Mtf--;if(!$Mtf)$Mtf='';if(!file_exists(Wa.'bb'.$Mtf))Wq();$Maq=@unserialize(file_get_contents(Wa.'bb'.$Mtf));if(!$Maq)Wq();if(!Wdr&&$Maq['id']!=$M_){$data["gen"]=false;$data["md"]=array();global$Mz;if($Mz=="gens")die(json_encode($data));else die("false");}
require_once"beta.php";if(!$Mbr)$Mbr=$Mk;$Mk=false;if($Maq['Mbz'])foreach($Maq['Mbz']as$Mbs=>$Mbe){$Mbe=trim(str_replace("&amp;","&",$Mbe));if(strpos($Mbe,"\n"))continue;if(strpos($Mbe,"\t"))continue;if(strpos($Mbe,"\r"))continue;if($Mte and!$Maq['id']and!$Mtf){$Mbv=round(($Maq['Mha']-count($Maq['Mbz']))/$Maq['Mha']*100);file_put_contents(Wa.'ar',$Mbv,LOCK_EX);}
unset($Maq['Mbz'][$Mbs]);$Mbt=Wae("alpha",Wm($Mbe))-Wy(Wm($Mbe));$Mk=$Mbe;if($Mbt<=$Ml)break;if(!empty($Maq['ek'])&&$Mtf<$Mtd){$Mao=md5(Wm($Mk));$Mcd=DIR_CACHE."lightning/gamma"."/".substr($Mao,0,2)."/c".substr($Mao,2);if(Waf($Mcd,$Mk)){Whr(Wa.'bb'.$Mtf,$Maq);$Mer=$Maq;if(!Wn(true))return;$Maq=$Mer;}}
$Mk=false;if($Maq['Mca']>$Mbt)$Maq['Mca']=$Mbt;}
$Mbu=time()-Wy(Wm($Mk));if($Maq['Mca']>$Mbu)$Maq['Mca']=$Mbu;if(!$Maq['Mbz']and$Maq['Map']and file_exists($Maq['Map'])){if($Mtf<$Mtd and empty($Maq['ek'])){$Maq['ek']=1;$Maq['Mbz']=unserialize(file_get_contents($Maq['Map']));if($Maq['Mbz'])unset($Maq['Mbz'][0]);$Maq['Mha']=count($Maq['Mbz']);Wfy(Wa.'ar');global$Mte;$Mte=false;}}
if(!$Maq['Mbz']){if(!$Mtf and$Maq['Map'])touch($Maq['Map'],$Maq['Mca']);Wfy(Wa.'bb'.$Mtf);}
if(!$Mk){if($Mtf){if($Mtm){$Mtf--;if(!$Mtf)$Mtf='';return true;}
Wn();return;}
if(!$Maq['id'])Wfy(Wa.'ar');if(Wp($Mbr)){Wn();return;}
Wq();}
if($Maq['Mbz']or!$Mtf)Whr(Wa.'bb'.$Mtf,$Maq);global$Mah,$Mh,$Mabr;if($Mabr){file_put_contents(DIR_CACHE."lightning/ps/".$Mabr,"Lightning pre-gen <span>".substr($Mk,strlen($Mh))."</span>");}
header("X-OpenCart-Lightning-Gen: $Mk");$Mah=Wm($Mk);$Mbw=str_replace("//",'',$Mk);$Maf=strpos($Mbw,'/');$_SERVER["REQUEST_URI"]=substr($Mbw,$Maf);$Mbe=str_replace('?','&',str_replace(Wgx($Mh),"",Wgx($Mk)));$Mbx=explode('&',$Mbe);$_GET=array();if(!$Mbx)$Mbx[0]='';if($Mbx[0]=="index.php")$Mbx[0]='';if($Mbx[0]&&(!strpos($Mbx[0],"=")))$_GET["_route_"]=$Mbx[0];else unset($_GET["_route_"]);unset($Mbx[0]);$_SERVER["HTTP_X_REQUESTED_WITH"]="Get";foreach($Mbx as$Mby){if(!$Mby)continue;$Mby=explode('=',$Mby);if(empty($Mby[1]))$Mby[1]='';$_GET[$Mby[0]]=$Mby[1];}
$_SERVER["QUERY_STRING"]="";foreach($_GET as$Mgj=>$Muu){$_REQUEST[$Mgj]=$Muu;if($_SERVER["QUERY_STRING"])$_SERVER["QUERY_STRING"].='&';$_SERVER["QUERY_STRING"]="$Mgj=$Muu";}
global$Md;$Md=substr($Mk,0,5)=="https";if($Md){$_SERVER["HTTPS"]="on";$_SERVER["SERVER_PORT"]="443";}else{$_SERVER["HTTPS"]="";$_SERVER["SERVER_PORT"]="80";}
Wg();}
function Wgx($Mbe){$Mbe=str_replace("http:",'',$Mbe);$Mbe=str_replace("https:",'',$Mbe);return$Mbe;}
function Waf($Map,$Mtg=false){global$Maq,$M_,$Ml,$Mm,$Mtf,$Mtd;if($Mtg&&$Mtf>=$Mtd)return;require_once"beta.php";if($Mtg)$Mth=$Maq;$Maq['Map']=$Map;$Maq['id']=$M_;$Maq['Mca']=time();$Maq['Mig']=$Mtg;if(strpos($Map,"//")!==false){$Maq['Map']=false;$Mbz=array($Map);}else if(file_exists($Map))$Mbz=@unserialize(file_get_contents($Map));if(empty($Mbz))$Mbz=array();$Mb_=array();$Mca=time();foreach($Mbz as$Mcb=>$Mbe){$Mbt=Wae("alpha",Wm($Mbe));if($Mbt<$Mm){$Mb_[]=$Mbe;unset($Mbz[$Mcb]);continue;}
if($Mbe==$Map){Wag("alpha",Wm($Mbe));continue;}
$Mbt=$Mbt-Wy(Wm($Mbe));if($Mtg&&$Mbt>$Ml){$Mto=Wae("gamma",Wm($Mbe));if($Mto>$Ml){unset($Mbz[$Mcb]);}}
if($Mbt<$Mca)$Mca=$Mbt;}
if(!Wdr){shuffle($Mb_);shuffle($Mbz);}
$Mbz=array_merge($Mb_,$Mbz);if(!$Mbz){if($Maq['Map']&&is_file($Map))touch($Map,$Mca);if($Mtg){$Maq=$Mth;return false;}
Wfy(Wa.'bb'.$Mtf);return false;}
$Maq['Mbz']=$Mbz;$Maq['Mha']=count($Mbz);if($Mtg)$Mtf++;Whr(Wa.'bb'.$Mtf,$Maq);if($Mtg){$Maq=$Mth;$Mtf--;if(!$Mtf)$Mtf="";}else{$Mqu=1;clearstatcache();while(file_exists(Wa.'bb'.$Mqu)){unlink(Wa.'bb'.$Mqu);$Mqu++;}}
return true;}
function Wp($Mbr=false){if(!lc('n'))return false;global$Mh,$Mk,$Ml,$Mm,$Mte;if($Mte)return false;if(!$Mbr)$Mbr=$Mk;if(!$Mbr)$Mbr=$Mh;if(file_exists(Wa.'bb')&&@filemtime(Wa.'bb')>(time()-180)){$Maq=@unserialize(file_get_contents(Wa.'bb'));if($Mte and!$Maq['id']and$Maq['Mbz'])return false;}
$Mao=md5(Wm($Mh));$Mcc=DIR_CACHE."lightning/gamma"."/".substr($Mao,0,2)."/c".substr($Mao,2);clearstatcache();$Mao=md5(Wm($Mbr));$Mcd=DIR_CACHE."lightning/gamma"."/".substr($Mao,0,2)."/c".substr($Mao,2);if(!file_exists($Mcd)and Waf($Mbr)){return true;}
if(file_exists($Mcc)&&filemtime($Mcc)<=$Mm&&Waf($Mcc))return true;if(file_exists($Mcd)&&filemtime($Mcd)<=$Mm&&Waf($Mcd))return true;if(file_exists($Mcc)&&filemtime($Mcc)<=$Ml&&Waf($Mcc))return true;if(file_exists($Mcd)&&filemtime($Mcd)<=$Ml&&Waf($Mcd))return true;Wfy(Wa.'bb');Wfy(Wa.'ar');return false;}
function Wah($Mce,$Mbe){if(!lc('Mnt')or!lc('n'))return;if(strpos($Mbe,'@')or strpos($Mbe,'#'))return;static$Mcg;if(!isset($Mcg[$Mce]))$Mcg[$Mce]=Wai($Mce);if($Mcg[$Mce])return;if(Wai())return;if(strpos($Mbe,"filter="))return;global$Mch;$Mbe=str_replace("&amp;","&",$Mbe);$Mbe=str_replace("page={page}","",$Mbe);$Mbe=preg_replace("/page=[0-9]+/","",$Mbe);$Mbe=preg_replace("/page-[0-9]+/","",$Mbe);if(!strpos(str_replace("//",'',$Mbe),"/"))return;$Mch[$Mbe]=1;}
function Wal(){global$Mcq;$request=W_("request");if(!empty($request->get["route"]))$Mcq=$request->get["route"];global$Mz,$light_ob,$Mab;if($light_ob)W_("config")->set("config_compression",0);if($Mz=="gens"&&$Mab){global$Mf,$registry,$Mab;$Mab=gzuncompress(hex2bin($Mab));$Mcr=explode("~|~",$Mab);if(!empty($request->get["route"]))$Mce=$request->get["route"];else$Mce="common/home";if(VERSION>"2.0"){foreach($Mcr as$Mcb=>$Mcs){$Mmo=array();if($Maf=strpos($Mcs,"=")){$Mmo=unserialize(substr($Mcs,$Maf+1));$Mcs=substr($Mcs,0,$Maf);}
$output=W_("load")->controller($Mcs,$Mmo);global$Maaf;if($Maaf)Whk($output);Wlt($output);$Mf["md"]["#liaj".($Mcb+1)]=$output;}
}else{W_("load")->model("setting/extension");class ControllerFake extends Controller {}
$Mct=new ControllerFake($registry);foreach($Mcr as$Mcb=>$Mcs){$Mmo=array();if($Maf=strpos($Mcs,"=")){$Mmo=unserialize(substr($Mcs,$Maf+1));$Mcs=substr($Mcs,0,$Maf);}
$output=$Mct->getChildHtml($Mcs,$Mmo);Wew($output);global$Maaf;if($Maaf)Whk($output);Wlt($output);$Mf["md"]["#liaj".($Mcb+1)]=$output;}}
global$Mabt;if($Mabt){$Mg='';global$Maaf;foreach($Mf["md"]as$Mld=>$Mdd){if($Maaf)Whk($Mdd);$Mg.="$('$Mld').replaceWith(".json_encode($Mdd).");\n";}
header("content-type: application/x-javascript; charset=utf-8",true);}else$Mg=json_encode($Mf);Wam($Mg);Waz();echo($Mg);global$light_ob;$light_ob=false;exit;}}
function Wej(&$Mul){$Mdt=preg_replace('#/\*.*?\*/#s','',$Mul);$Mum=false;$Maf=0;$Mgw=0;$Mpk=0;while($Maf<strlen($Mdt)){$Med=strpos($Mdt,'{',$Maf);$Mej=strpos($Mdt,'}',$Maf);if($Med!==false&&$Med<$Mej){$Mgw++;$Maf=$Med;}elseif($Mej!==false){if(!$Mgw){$Mdt=substr($Mdt,0,$Mpk).substr($Mdt,$Mej+1);$Mum=true;$Maf=$Mpk-1;}else{$Mgw--;$Maf=$Mej;$Mpk=$Mej+1;}}
$Maf++;}
while($Mgw){$Mum=true;$Mdt.='}';$Mgw--;}
if($Mum)$Mul=$Mdt;}
function Wao($Mcy,$Mcz=true,$Mdo=false){global$Mh,$Md;$Mcy=str_replace("&amp;","&",$Mcy);$Mc_=Wak("//",'',$Mh);if(strpos($Mcy,"//")===0){if($Md)$Mcy="https:".$Mcy;else$Mcy="http:".$Mcy;}
if(strpos($Mcy,"://")===false){if($Mcy[0]=="/")$Mcy=substr($Mh,0,strpos($Mh,"/",9)).$Mcy;else$Mcy=$Mh.$Mcy;if($Md)$Mcy=str_replace("http:","https:",$Mcy);}
$Mda=abs(crc32(Wem($Mcy)));if($Mdo)$Mda='d'.$Mda;if(!$Mcz)$Mda=lc('bf').$Mda;$Mdb=Win.$Mda;if($Mcz)$Mdb.=".x_js";else$Mdb.=".x_css";if($Mcz===-1)$Mdb.="x";$Mdc=Wak("//",'',$Mcy);$Mdd=false;if(strpos($Mdc,$Mc_)===0){$Mdc=Wak($Mc_,'',$Mdc);if(strpos($Mdc,'?'))$Mdc=Wak('','?',$Mdc);$Mdc=str_replace('\\','/',$Mdc);$Mde=substr(DIR_SYSTEM,0,-7).$Mdc;if((substr($Mdc,-3)==".js"||substr($Mdc,-4)==".css")&&file_exists($Mde)){if(file_exists($Mdb)&&filemtime($Mdb)>filemtime($Mde))return file_get_contents($Mdb);$Mdd=file_get_contents($Mde);}}
if(VERSION>"2.0")if(strpos($Mcy,"journal2/assets/js")){W_("load")->controller("journal2/assets/js");$Mdd=W_("response")->getOutput();}
elseif(strpos($Mcy,"journal2/assets/css")){W_("load")->controller("journal2/assets/css");$Mdd=W_("response")->getOutput();}
if(!$Mdd){if(!light_device())$Mdb=str_replace(".x_","e.",$Mdb);else$Mdb=str_replace(".x_","e_".light_device().".",$Mdb);if(file_exists($Mdb)&&filemtime($Mdb)>time()-60*60*4)return file_get_contents($Mdb);if(light_device())$Mdd=Wap($Mcy,false,$_SERVER["HTTP_USER_AGENT"]);else$Mdd=Wap($Mcy);if(!$Mdd){sleep(1);if(light_device())$Mdd=Wap($Mcy,false,$_SERVER["HTTP_USER_AGENT"]);else$Mdd=Wap($Mcy);}
global$Mdf;if($Mdf<200||$Mdf>399){require_once"special.php";Wb("missing_resource",true,array("url"=>true,"resource"=>$Mcy));$Mdd="";}}
if(!$Mdd)return false;if(substr($Mdd,0,3)==pack("CCC",0xef,0xbb,0xbf))$Mdd=substr($Mdd,3);if(strpos($Mcy,"journal3/js/filter.js"))$Mdd=str_replace("dataType: 'html',","dataType: 'html', data: 'j3_ajax',",$Mdd);if(strpos($Mcy,"journal3/lib/ias/jquery-ias.min.js"))$Mdd=str_replace("b.load(a,","b.load(a+'&j3_ajax',",$Mdd);if($Mcz===-1)return$Mdd;require_once"delta.php";if($Mcz){light_minify_js($Mdd);$Mdd=str_ireplace("# sourceMappingURL"," sourceMappingURL",$Mdd);}
else{Wej($Mdd);light_minify_css($Mdd,$Mcy);$Maf=0;while(($Maf=strpos($Mdd,"@import",$Maf))!==false){$Mei=$Maf;$Mey=strpos($Mdd,')',$Mei);$Mey=strpos($Mdd,';',$Mey);$Maf=$Mey;$Mol=substr($Mdd,$Mei,$Mey-$Mei);$Mbe=Wj("url(",")",$Mol);if(!$Mbe)$Mbe=Wj('"','"',$Mol);else{if($Mbe[0]=='"'||$Mbe[0]=="'")$Mbe=substr($Mbe,1,-1);}
if(!$Mbe)$Mbe=Wj("'","'",$Mol);if(!$Mbe)continue;$Mqy=Wao($Mbe,false,$Mdo);if(!$Mqy)continue;if($Mdo)$Mqy="\n\n/* ------------------\n  Imported CSS: ".$Mbe."\n  ------------------*/\n\n".$Mqy;else$Mqy="\n/* */\n".$Mqy;$Mdd=substr($Mdd,0,$Mei).$Mqy.substr($Mdd,$Mey+1);}}
file_put_contents($Mdb,$Mdd,LOCK_EX);return$Mdd;}
function War(&$Mdj,&$Mdk){$Mdl=strpos($Mdk,$Mdj);if($Mdl==false)return;$Mbn=$Mdl+strlen($Mdj);while($Mdl&&ctype_space($Mdk[$Mdl-1]))$Mdl--;$Mpl=strlen($Mdk);while($Mbn+1<$Mpl&&ctype_space($Mdk[$Mbn+1]))$Mbn++;$Mdk=substr($Mdk,0,$Mdl).substr($Mdk,$Mbn);}
function Wem($Mcy){if(strpos($Mcy,'?'))$Mcy=Wak('','?',$Mcy).'?'.preg_replace('/[abcdef\d]{6,}/i','',Wak('?','',$Mcy));return$Mcy;}
function Wen($Mds){foreach($Mds as&$Mdk)$Mdk=Wem($Mdk);$Mda=abs(crc32(implode(';',$Mds)));return$Mda;}
function Wey($Mes,$Mce=false){if(empty($GLOBALS['Ma'][$Mes]))return false;$Mri=explode(" ",$GLOBALS['Ma'][$Mes]);if(!$Mce){if(!empty(W_("request")->get["route"]))$Mce=W_("request")->get["route"];else$Mce="common/home";}
global$Mk;$Met=false;foreach($Mri as$Mnx){if($Mnx=='/')$Mnx="common/home";if($Mnx[0]=='"'){if(stripos($Mk,substr($Mnx,1,-1))!==false){$Met=true;break;}
}else if(stripos($Mce,$Mnx)!==false){$Met=true;break;}}
return$Met;}
function Wfr($Mds){global$Msr;$Mda=Wen($Mds);$Mdu=Win.$Mda.$Msr.".js";if(!file_exists($Mdu)){$Mdo=lc('dh');Waw(DIR_IMAGE."cache/lightning");$Mdv="";$Mqu="";foreach($Mds as$Mcy){if($Mcy=='Mqu'){$Mdv.="\nvar arr=document.body.getElementsByTagName(\"script\");var sc=[];for(var x=0;x<arr.length;x++)if(arr[x].type==\"text/tier".$Mqu."\")sc.push(arr[x].text);for(var x=0;x<sc.length;x++)try{eval(sc[x])}catch(e){console.log('Error at HTML \"tier".$Mqu."\" script #'+(x+1)+': '+e.message)}";$Mqu++;continue;}
if($Mdo){$Mdd="\n\n/* ------------------\n   JS: ".$Mcy."\n// ------------------*/\n\n".Wao($Mcy,-1)."\nconsole.log('".$Mcy." passed');\n";}else$Mdd=Wao($Mcy);$Mdw=';';if($Mdv)$Mdw=substr($Mdv,-1);if($Mdw!=';'&&$Mdw!='}')$Mdv.=';';$Mdv.="\n".$Mdd;}
$Mdw=';';if($Mdv)$Mdw=substr($Mdv,-1);if($Mdw!=';')$Mdv.=';';$Macm=$Mdv;Wls($Mdv);file_put_contents($Mdu,$Mdv,LOCK_EX);if(lc('hu')){Whk($Macm);Wls($Macm);file_put_contents(substr($Mdu,0,-3)."_wp.js",$Mdv,LOCK_EX);}}
global$Maaf;if($Maaf)return Wim.$Mda.$Msr."_wp.js";return Wim.$Mda.$Msr.".js";}
function Wfs($Mds){if(!$Mds)return"";global$Mh,$Md;$Mmi=$Mh;if($Md)$Mmi=str_replace("http://","https://",$Mmi);$Mcy=$Mmi.Wfr($Mds);global$Mxf;$Mxf[]=$Mcy;return"<script src='".$Mcy."'></script>";}
function Wls(&$output){if(function_exists("replacer_preview_request"))@include(DIR_CONFIG."replaces.php");}
function Was(&$Mg){if(!lc('ef')and!lc('eg'))return;global$Mam,$Mv;if($Mam or$Mv)return;Wu($Mg);if(!strpos($Mg,"<body"))return;if(!lc('jn'))Wkz($Mg);if(!lc('ik')){$Mg=preg_replace("/<link[^<]*? rel=['\"]?pre[^v].*?>/s",'',$Mg);}
$Maag=array();global$Mh,$Md;$Mmi=$Mh;if($Md){$Mmi=str_replace("http://","https://",$Mmi);}
$Mdo=lc('dh');$Mqp="";$Mdp="";$Mdq="";global$Mxf;$Mxf=array();if(lc('ef')and!Wey('dw')){$Mgw=lc('ef');$Mdr=Wcw("<script","</script>",$Mg);foreach($Mdr as$Mcz){$Mcz=substr($Mcz,strpos($Mcz,'>')+1);if(substr(trim($Mcz),0,4)=="<!--"){$Mne=substr(trim($Mcz),4);if(substr($Mne,-5)=="//-->")$Mne=substr($Mne,0,-5);elseif(substr($Mne,-3)=="-->")$Mne=substr($Mne,0,-3);$Mne=Wip("<!--*-->",'',$Mne);$Mg=str_replace($Mcz,$Mne,$Mg);}}
$Mdr=Wat("<script","</script>",Wip("<!--*-->",'',$Mg));$Mds=array();$Mst=Wcy("www.",'',Wcy("//",'',$Mmi));global$Msr;$Msr='a';if($Md){$Msr.="s";}
if(light_device()){$Msr.="_".light_device();}
if($Mdo){$Msr.="_debug";}
$Mdn=false;$Mxg="product_id=";if(trim(lc('eh')))foreach(explode(" ",lc('eh'))as$Mbc)if($Mbc[0]=='$')$Mxg.=" ".substr($Mbc,1);$GLOBALS['Ma']['gf']=$Mxg;global$Mcq;if(strpos($Mcq,"checkout")!==false)$GLOBALS['Ma']['fh']='';$GLOBALS['Ma']['fh'].=" jivosite.";foreach($Mdr as$Mcz){$Mcj=substr($Mcz,0,strpos($Mcz,">"));$Mcj=str_replace("type=\"\"",'',str_replace("type=''",'',$Mcj));if(stripos($Mcj,"type=")&&!stripos($Mcj,"text/javascript")){continue;}
if(!lc('bz')or light_mobile())if(Wav('fh',$Mcz)){$Maf=strpos($Mcz,">");$Mcj=substr($Mcz,0,$Maf);$Mvl=substr($Mcz,$Maf);if(stripos($Mcj,"text/javascript"))$Mcj=str_ireplace("text/javascript","text/li_js",$Mcj);else$Mcj=str_ireplace("<script","<script type='text/li_js'",$Mcj);if(strpos($Mcj,"jivosite"))if($Mld=Wak("jv-id=\"",'"',$Mcj))$Mcj=str_replace("widget.js","widget/".$Mld,$Mcj);$Mvl=$Mcj.$Mvl;$Mg=str_replace($Mcz,$Mvl,$Mg);$Mdn=true;continue;}
if(Wav('eh',$Mcz)&&!strpos($Mcz,"indexOf('li_nr')"))continue;$Mdt=Wak(">","</script>",$Mcz);if($Mdt){War($Mcz,$Mg);if($Mds){$Mdq.=Wfs($Mds);$Mds=array();}
$Mdq.=$Mcz;continue;}
$Mcy=Wak("src='","'",str_replace('"',"'",$Mcz));if(!$Mcy)$Mcy=Wak("src='","'",str_replace('"',"'",str_replace(' ','',$Mcz)));if(!$Mcy)continue;$Mcy=str_replace("&amp;","&",$Mcy);War($Mcz,$Mg);if(strpos($Mcy,'#')){$Mcy=Wak('','#',$Mcy);}
if($Mgw=="safe"){$Mdq.=$Mcz;$Mxf[]=$Mcy;continue;}
if(strpos($Mcz,"li_op=")||Wav('gf',$Mcy)||($Mgw!="aggressive"&&strpos($Mcy,"//")!==false&&!strpos($Mcy,$Mst))){$Mdq.=Wfs($Mds);$Mds=array();$Mdq.=$Mcz;continue;}
$Mds[]=$Mcy;$Maag[]=$Mcy;}
if($Mds)$Mdq.=Wfs($Mds);$Mvk=false;if(!lc('bz')or light_mobile()){$Mvj=Wat("<iframe","</iframe>",$Mg);foreach($Mvj as$Mcz){if(lc('fn')){$Mcy=Wak("src='","'",str_replace('"',"'",$Mcz));if(!$Mcy)$Mcy=Wak("src='","'",str_replace('"',"'",str_replace(' ','',$Mcz)));if(!$Mcy)continue;if(!Wav('fh',$Mcy))continue;}
$Mvl=str_replace(" src='"," data-src='",$Mcz);$Mvl=str_replace(" src=\""," data-src=\"",$Mvl);if($Mvl==$Mcz)continue;$Mg=str_replace($Mcz,$Mvl,$Mg);$Mvk=true;}}
if($Mdn or$Mvk){$Mdq.="<script>defer_done = 0; function li_defer(event){ if (defer_done) return; defer_done = 1; $('body').unbind('mouseover touchmove', li_defer);";if($Mdn)$Mdq.="$('script[type=\"text/li_js\"]').each(function(){ $('body').append(this.outerHTML.replace('text/li_js', 'text/javascript'))});";if($Mvk)$Mdq.="$('iframe').each(function(){ $(this).attr('src', $(this).data('src'))});";$Mdq.="}";if(!lc('distinct_gadgets'))$Mdq.="if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent))";$Mdq.="{ $('body').bind('mouseover touchmove', li_defer); $(window).on('load', function(){ setTimeout(li_defer, 5000);}); }";if(!lc('distinct_gadgets'))$Mdq.="else li_defer();";$Mdq.="</script>";}}
global$Mr,$Ma,$Mz;if(!$Mz&&!lc('u')&&$Mr)$Ma['eg']=false;if(lc('eg')){$M_s=array();$M_t="";$Mpj=lc('eg')!="safe";$Mdx=Wat("<link",">",Wip("<!--*-->",'',Wip("<noscript*</noscript>",'',$Mg)));$Mds=array();foreach($Mdx as$Mbc){$Mrx=str_replace('"',"'",strtolower($Mbc));$Maaj=preg_replace("/['\s]/",'',$Mrx);if(!strpos($Maaj,"rel=stylesheet")){continue;}
if(strpos($Mrx,"media=")){$Mry=Wj("media='","'",$Mrx);if($Mry!="all"&&$Mry!="screen"){continue;}}
War($Mbc,$Mg);$Mcy=Wak("href='","'",str_replace('"',"'",$Mbc));if(!$Mcy){continue;}
$Mcy=str_replace("&amp;","&",$Mcy);if(strpos($Mcy,'#')){$Mcy=Wak('','#',$Mcy);}
foreach($M_s as$M_u)if(stripos($Mcy,$M_u)!==false){$M_t.=Wao($Mcy,false,$Mdo);$Mcy=false;break;}
if($Mcy){$Mds[]=$Mcy;$Maag[]=$Mcy;}}
$Mda=Wen($Mds);$Mda.='d';if(!$Mpj)$Mda.='s';$Mda=lc('bf').$Mda;if(light_device()){$Mda.="_".light_device();}
if($Md){$Mda.="s";}
if(lc('jq'))$Mda.="i";if($Mdo){$Mda.="_debug";}
$Mdy=Win.$Mda.".css";global$Mcq;$Msu=str_replace("/","",$Mcq);if(!$Msu)$Msu="commonhome";$Msu.=lc('bf');if(light_device()){$Msu.="_".light_device();}
global$Mw;$Msu.=$Mw;if($Md){$Msu.="s";}
global$light_critical_mark;if($light_critical_mark)$Msu.=$light_critical_mark;$Msu.=".css";$Mdz=Win.$Msu;$Md_="";if(!file_exists($Mdy)or$Mqp){Waw(DIR_IMAGE."cache/lightning");foreach($Mds as$Mcy){$Mdd=Wao($Mcy,false,$Mdo);if($Mdo){$Mdd="\n\n/* ------------------\n  CSS: ".$Mcy."\n  ------------------*/\n\n".$Mdd;}else$Mdd="\n/* */\n\n".$Mdd;$Md_.=$Mdd;}
$Maf=0;$Mabb='';while($Maf=strpos($Md_,"@font-face",$Maf)){$Mey=strpos($Md_,'}',$Maf+1);$Mabc=substr($Md_,$Maf,$Mey-$Maf+1)."\n";if(lc('jq'))if((strpos($Mabc,"glyphicons")&&strpos($Mg,"glyphicon-"))||strpos($Mabc,"icomoon")||strpos($Mabc,"MaterialIcons")||(strpos($Mabc,"FontAwesome")&&!lc('gh'))){$Mabc=str_replace("@font-face{","@font-face{font-display:block;",$Mabc);$Md_=substr($Md_,0,$Maf).$Mabc.substr($Md_,$Mey+1);$Maf=$Mey;continue;}
if(!strpos($Mabc,"swap"))$Mabc=str_replace("@font-face{","@font-face{font-display:swap;",$Mabc);$Mabb.=$Mabc;$Md_=substr($Md_,0,$Maf).substr($Md_,$Mey+1);}
if(!lc('jn')){$Md_="img{height:auto}\n".$Md_;$Mabb="img{width:auto}".$Mabb;}
file_put_contents($Mdy.".fonts",$Mabb,LOCK_EX);$Maao=$Md_;Wls($Md_);file_put_contents($Mdy,$Md_,LOCK_EX);if(lc('hu')){Whk($Maao);Wls($Maao);file_put_contents(substr($Mdy,0,-4)."_wp.css",$Maao,LOCK_EX);}}
if($Mpj and(!file_exists($Mdz)or$Mqp)){$Mea=$Mg;$Mea=Wau("<style*</style>",'',$Mea);$Mea=Wau("<script*</script>",'',$Mea);$Mea=preg_replace("/<\/.+?>|http.+?[\"']|\w+?=/", '',$Mea);$Mea=preg_replace("/[<>\s'\"]+/s",' ',$Mea);$Mcj='';$Meb='';$Maf=0;$Mec=false;if(!$Md_)$Md_=file_get_contents($Mdy);while($Maf<strlen($Md_)){$Med=strpos($Md_,'{',$Maf);if($Med==false){break;}
$Mee=str_replace("\n"," ",trim(substr($Md_,$Maf,$Med-$Maf)));if($Mqp&&strpos($Mee,$Mqp)){echo"<br>Found CSS: $Mee";}
if(!$Meb)if(strpos($Mee,"@media")!==false||(strpos($Mee,"@")!==false&&strpos($Mee,"keyframes"))){$Mpm=strpos($Md_,'{',$Med+1);$Mpn=strpos($Md_,'}',$Med+1);if($Mpn<$Mpm){$Maf=$Mpn+1;continue;}
$Meb=$Mee.'{';$Mef=true;$Maf=$Med+1;continue;}
$Meh=true;$Meg=explode(',',$Mee);$Maac=0;foreach($Meg as$Mee){$Mee=trim($Mee);$Mee=Wau(":not(*)",'',$Mee);if(!$Mee)continue;if(strpos($Mee,'['))break;if(strpos($Mee,':')&&!strpos($Mee,"before")&&!strpos($Mee,"after"))break;$Mph=explode(' ',str_replace(array('+','.','#','>',"\n"),' ',$Mee));$Mpi=true;foreach($Mph as$Mei){if(strpos($Mei,':')!==false){$Mei=Wak('',':',$Mei);}
if(strpos($Mei,'[')!==false){$Mei=Wak('','[',$Mei);}
if(!$Mei){continue;}
$Maac=strpos($Mea," $Mei ",$Maac);if(!$Maac){$Mpi=false;break;}
if($Maac>64)$Maac-=64;}
if($Mpi){$Meh=false;break;}}
$Mej=strpos($Md_,'}',$Med);if(strpos($Mee,"@")!==false||strpos($Mee,"*")!==false){$Mec=false;$Meh=false;}
if(!$Meh and!$Mec){$Mbw=substr($Md_,$Maf,$Mej-$Maf+1);if($Meb){$Meb.=$Mbw;$Mef=false;}else{$Mcj.=$Mbw;}}
if($Mej<strlen($Md_)-1&&$Md_[$Mej+1]=='}'){if(!$Mec){if($Meb){if(!$Mef){$Mcj.=$Meb.'}';}
$Meb='';}else{$Mcj.='}';}}
$Mec=false;$Mej++;}
$Maf=$Mej+1;}
file_put_contents($Mdz,$Mcj,LOCK_EX);}
global$Maaf;if($Maaf)$Mda.="_wp";if($Mpj and file_exists($Mdz)){if(lc('hx'))$Mdp="<script>if(document.cookie.indexOf('li_nr')>=0)document.write(\"<link id='li_df'rel='preload'as='style'href='".$Mmi.Wim .$Mda.".css'/>\")</script>".$Mdp;else$Mdp="<link id='li_df' rel='preload' as='style' href='".$Mmi.Wim.$Mda.".css'/>".$Mdp;$Mdp="<style>".file_get_contents($Mdz)."</style>".$Mdp;$Mdq="<script>document.getElementById('li_df').rel = 'stylesheet';</script>".$Mdq;}else{$Mdp="<link rel='stylesheet' href='".$Mmi.Wim.$Mda.".css'/>".$Mdp;}
if($M_t)$Mdp="\n<style>\n".$M_t."\n</style>\n".$Mdp;if(!lc('bz')or light_mobile()){$Mdp="<script>function li_fonts(){document.head.appendChild(document.createElement('style')).innerHTML=".json_encode(file_get_contents($Mdy.".fonts"))."}function gcc2(n){var match = document.cookie.match(new RegExp('(^| )' + n + '=([^;]+)'));if (match) return match[2]}if(document.cookie.indexOf('res_pushed')>=0)li_fonts();else{window.addEventListener('load', function(){li_fonts();document.cookie='res_pushed=1; path=/'})}</script>\n".$Mdp;}else{$Mdp="<style>".file_get_contents($Mdy.".fonts")."</style>\n".$Mdp;}}
if(lc('ik'))foreach($Maag as$Mcy){$Maf=0;while($Maf=strpos($Mg,$Mcy,$Maf)){$Mpl=strrpos($Mg,'<',$Maf-strlen($Mg));$Mbm=strpos($Mg,'>',$Maf);$Maf++;if(!$Mpl||!$Mbm)continue;$Mdt=substr($Mg,$Mpl,$Mbm-$Mpl+1);if(strpos($Mdt,"preload"))$Mg=substr($Mg,0,$Mpl).substr($Mg,$Mbm+1);}}
/*if(!lc('hx')){$Mcj="";foreach($Mxf as$Mcy)$Mcj.="<link rel='preload' as='script' href='".$Mcy."'/>";$Mdp=$Mcj.$Mdp;}
*/$Maf=strpos($Mg,"</head>");$Mek=strpos($Mg,"<style");if($Mek&&$Mek<$Maf){$Maf=$Mek;/*$Mel=strpos($Mg,"<head");$Mek=strpos($Mg,"<!-",$Mel);if($Mek&&$Mek<$Maf)$Maf=$Mek;*/}
if(strpos(substr($Mg,0,$Maf),"<!--[")){$Mek=strpos($Mg,"endif]-->",$Maf);if($Mek&&$Mek-$Maf<300)$Maf=$Mek+strlen("endif]-->");}
$Mqs=strpos($Mg,"<base");if($Mqs>$Maf)$Maf=strpos($Mg,">",$Mqs)+1;while(ctype_space($Mg[$Maf-1]))$Maf--;if(substr($Mg,$Maf-10,10)=="<noscript>")$Maf-=10;$Mg=substr($Mg,0,$Maf).$Mdp.substr($Mg,$Maf);if(lc('hx')){$Mdq="<script>if(document.cookie.indexOf('li_nr')>=0)document.write(\"<img style='display:none'alt=''name='\")</script><!--'>".$Mdq;}
if(Wme()){$Made=md5("http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://").$_SERVER["HTTP_HOST"].Wl($_SERVER["REQUEST_URI"]));$Mdq.="<script>function gcc(n){var match = document.cookie.match(new RegExp('(^| )' + n + '=([^;]+)'));if (match) return match[2]} if(document.cookie.indexOf('li_nr')>=0 || document.cookie.indexOf('li_lh')>=0) try{let lcp;const po=new PerformanceObserver((entryList)=>{const entries=entryList.getEntries();const lastEntry=entries[entries.length - 1];if($(window).scrollTop()==0&&lastEntry.url&&!lastEntry.url.indexOf('http')&&decodeURIComponent(gcc('li_lcp'))!==lastEntry.url)$.post('index.php?li_op=lcp',{id:'$Made',lcp:lastEntry.url});});po.observe({type:'largest-contentful-paint',buffered:true});}catch(e){}</script>";}
$Maf=strrpos($Mg,"</body>");if(!$Maf)$Maf=strlen($Mg);else{$Mcv=strrpos($Mg,"</html>");$Macb=substr($Mg,$Maf+7,$Mcv-$Maf-7);if(trim($Macb)){$Mg=substr($Mg,0,$Maf).$Macb."\n</body>\n".substr($Mg,$Mcv);$Maf=strrpos($Mg,"</body>");}}
$Mg=substr($Mg,0,$Maf).$Mdq.substr($Mg,$Maf);}
function Wh_($Mfd){global$Mq,$Mn,$Mw,$My,$Mxb,$Ms;if(!empty($Mq["compare"])and!empty($Mn['ap'])){if(!We($Mw))return false;Ww($Mn['ap'],"0",$Mfd);}
if(!empty($Mq["wishlist"])and$Mn['ao']){if(!We($Mw))return false;Ww($Mn['ao'],"0",$Mfd);}
if($Ms){if(!We($Mw))return false;if(!$Mn['z'])return false;Ww($Mn['z'],$Mn['bm'],$Mfd);}
if(!empty($Mq['_'])){if(!We($Mw)||$Mq['_']===true)return false;Ww($Mn['ah'],$Mn['bn'],$Mfd);}
Wbb("alpha",$My.$Mxb,$Mfd);}
function Wew(&$output){if(!W_("journal2"))return;$Mhr=W_("journal2")->settings->get("product_dummy_image");$output=str_replace("src=\"" . $Mhr . "\""." data-src","src",$output);$output=str_replace("src=\"" . $Mhr . "\""."  data-src","src",$output);}
function Wma(){if(is_file(DIR_APPLICATION."view/javascript/lightcookie/bar.js"))return"if(!document.cookie.match(/(;)?cookiebar=([^;]*);?/)){var script=document.createElement('script');script.src='catalog/view/javascript/lightcookie/bar.js';document.head.appendChild(script);}";else return"if (!document.cookie.match(/(;)?cookiebar=([^;]*);?/)){var script=document.createElement('script');script.src='//devs.mx/cookie/bar4.js';script.integrity='sha256-nA0QAg8eax8A5pWHk1Buns58crujM5y3pxdg03YR0Ig=';script.crossOrigin='anonymous';document.head.appendChild(script);}";}
function Wax(){global$Mz,$M_o,$Mcq,$Mq,$light_skip_die;if($light_skip_die)return;if($M_o){@ob_end_clean();if(Wdr)echo json_encode("OX");else echo json_encode("OK");return;}
if(!lc('Mnt')&&!lc('ef')and!lc('eg')and!lc('hu')){Waz();return;}
require_once"beta.php";$Mdt=http_response_code();if($Mz=="gen"||$Mz=="gens")if($Mdt>200){if(!headers_sent()){if(function_exists("header_remove"))header_remove("Location");else header("Location:");}
http_response_code(200);Wa_("");global$Maq;if($Maq){Waz();global$Mtf;Wq(!empty($Maq['Mbz'])or$Mtf);}
return;}
if($Mdt==403)return;if(!empty(W_("request")->get["route"])){if(!strpos(W_("request")->get["route"],'/'))W_("request")->get["route"]=$Mcq;$Mcq=W_("request")->get["route"];}
global$light_ob,$Mk,$Mam;if($Mam)exit;if(!$light_ob)return;$output='';Wab(true);while($Maf=ob_get_level()){$output=ob_get_contents().$output;@ob_end_clean();if(ob_get_level()==$Maf)break;}
Wbg();if(!trim($output)){global$Maq;if($Maq){Wa_(false);Wq(!empty($Maq['Mbz']));}
echo$output;return;}
Wu($output);global$Mxb;if($Mxb&&$Mdt)if($Mdt!=404)$Mxb=false;if(!$Mxb)if(strpos($output,"//cdn.ampproject.org/v0.js")||$Mdt==404){Wz($output);return;}
global$Mh;if(!lc('fa')and stripos($Mh,"ttps://")and stripos(HTTP_SERVER,"ttps://")and strpos($output,"<body")){$Maf=0;while($Maf=strpos($output,"http:",$Maf)){$Maf++;if($output[$Maf-2]!="'"&&$output[$Maf-2]!='"')continue;if($Maf>7){$Mcj=substr($output,$Maf-7,5);if($Mcj=="href="&&substr($output,$Maf+4,strlen($Mh)-6)!=substr($Mh,6))continue;}
$Mcw=substr($output,$Maf+6,strpos($output,$output[$Maf-2],$Maf)-$Maf-6);if($Mhk=strpos($Mcw,'/'))$Mcw=substr($Mcw,0,$Mhk);if($Mcw=="schema.org")continue;$output=substr($output,0,$Maf+3)."s".substr($output,$Maf+3);}}
Wew($output);/*if(!lc('gi')){$output=str_replace("<img ","<img loading=lazy ",$output);$output=str_replace("<iframe ","<iframe loading=lazy ",$output);}
*/$output=str_replace("index.php?route=common/home'","'",$output);$output=str_replace("index.php?route=common/home".'"','"',$output);if(!empty($_COOKIE['az'])){Was($output);Whk($output);Wlp($output);if(lc('j')){require_once"delta.php";light_minify_html($output);}
echo(base64_encode($output));return;}
global$Mw,$Mn,$Ms;$Mec=!lc('Mnt');if(isset($_GET["db"]))$Mec=true;if($Mo_=error_get_last())if($Mo_["type"]==1||$Mo_["type"]==4)$Mec=true;if(!$Mec){if($Mz&&!empty($Mq['_']))unset($Mq['_']);if($light_ob==1)$Mec=true;elseif(!empty($Mq['_'])&&!lc('e'))$Mec=true;elseif($Ms&&!lc('ab'))$Mec=true;elseif(!empty($Mq["wishlist"])&&!lc('ac'))$Mec=true;elseif(!empty($Mq['_'])||$Ms||!empty($Mq["wishlist"])){if(We($Mw)){if(!empty($Mq['_'])and(!$Mn['ah']||$Mq['_']===true))$Mec=true;elseif($Ms&&!$Mn['z'])$Mec=true;}else$Mec=true;}}
if($Mec||$Mxb||Wai()||$Mam){if(lc('h')){$Men="<script>";if(lc('ch'))$Men.="var cookie_policy_link = \"".lc('ch')."\";";$Men.=Wma()."</script>";$Maf=strrpos($output,"</body>");if($Maf){if(strpos($output,"jquery",$Maf))$Maf=strpos($output,"</html>");if($Maf)$output=substr($output,0,$Maf).$Men.substr($output,$Maf);}}
Was($output);global$Maq;if($Maq)Wq(!empty($Maq['Mbz']));if($Mxb)Wh_($output);if(lc('f'))if(Way($output))return;Waz();if(headers_sent())Wu($output);Wz($output);return;}
Wu($output);$Mbe=$Mk;$Mbe=str_replace('<',"%3C",$Mbe);if(strpos($Mbe,'?')or strpos($Mbe,'&'))$Mbe.='&';else$Mbe.='?';$Mbe.="li_op=gen";global$Meo;if($Meo){$Meo=bin2hex(gzcompress(implode("~|~",$Meo),9));$Maf=strrpos($output,"<div id='liaj");$output=substr($output,0,$Maf)."\n<script>if(document.cookie.indexOf('li_nr')>=0)document.write('<s'+".json_encode("cript src=\"" . $Mbe . "s&js=1&md=" . $Meo . "&cd=")."+Date.now()+'\"></scrip'+'t>')\n</script>\n".substr($output,$Maf);}
global$Mc;$Men="";if(!$Mc)$Men.="var li_cd=Math.floor(Math.random()*999999)+1;";$Mpv="";if((defined("JOURNAL_INSTALLED")||defined("JOURNAL3_INSTALLED"))&&empty(W_("request")->get["product_id"]))$Mpv.="if(window.jQuery)$('.pagination a').on('click',function(){if(window.location.href.indexOf('#')>-1)return true;window.location.href=$(this).attr('href');return false;});";if(!$Mz)Wr();if($Mc){}elseif(lc('n')){$Mpv.="if(document.cookie.indexOf('li_nr')>=0)$.get('".$Mbe."s&cd='+li_cd,false,function(data){if(data['gen'])li_gen();},'json');";$Men.="function li_gen(){ $.get('".$Mbe."&cd='+li_cd+'&rd='+Date.now(),false,function(data){\nif(data=='OK')\nli_gen();\n});}";}
if($Mpv)$Men.="$(window).on('load', function(){".$Mpv."});";if(lc('h')){if(lc('ch'))$Men.="var cookie_policy_link = \"".lc('ch')."\";";$Men.=Wma();}
if($Men)$Men="<script>".$Men."</script>";$Maf=strrpos($output,"</body>");if($Maf){if(strpos($output,"jquery",$Maf))$Maf=strpos($output,"</html>");if($Maf)$output=substr($output,0,$Maf).$Men.substr($output,$Maf);}
global$Maaf;if(lc('hu')){$Mer=$Maaf;$Maaf=true;}
Was($output);if(lc('hu'))$Maaf=$Mer;Whk($output);global$Macn;$Macn=false;Wlp($output);$Mep=Wa_($output);global$Maq;if($Maq){Waz();global$Mtf;Wq(!empty($Maq['Mbz'])or$Mtf);}
if(!$Mep)Wz($output,true);else Wz($Mep,true);}
function Wai($Mce=false){if(!$Mce){if(!empty(W_("request")->get["route"]))$Mce=W_("request")->get["route"];else$Mce="common/home";}
global$Mv;if(lc('bj')and!$Mv){return!Wav('bk',$Mce)or Wav('bl',$Mce);}
$Meq=Wey('bl',$Mce);if($Meq)return true;if($Mv){global$Mag;if(empty($_SERVER["HTTP_REFERER"]))return true;$Mbe=Wk($_SERVER["HTTP_REFERER"]);$Mbe=str_replace('?','&',$Mbe);$Mbt=Wae("alpha",$Mag.$Mbe);if(!$Mbt&&!strpos($Mbe,"index.php")&&(($Maf=strpos($Mbe,'?'))||($Maf=strpos($Mbe,'&')))){$Mbe=substr($Mbe,0,$Maf);$Mbt=Wae("alpha",$Mag.$Mbe);}
if(!$Mbt)return true;}
return false;}
function Wav($Mes,$Mbe){if(empty($GLOBALS['Ma'][$Mes]))return false;$Mcg=$GLOBALS['Ma'][$Mes];$Mcg=explode(" ",$Mcg);$Met=false;foreach($Mcg as$Mce){if(!trim($Mce))continue;if(strpos($Mbe,trim($Mce))!==false||($Mce[0]=='"'&&strpos($GLOBALS['Mk'],substr($Mce,1,-1)))){$Met=true;break;}}
return$Met;}
function We_($Mes,&$Mrs){if(!$Mrs)return;if(empty($GLOBALS['Ma'][$Mes]))return false;$Mcg=$GLOBALS['Ma'][$Mes];if(!strpos($Mcg,":"))return false;try{if(strlen(serialize($Mrs))>=2048)return false;}catch(\Exception$Mey){}
$data=Wez($Mrs);$Mcg=explode(" ",$Mcg);$Met=false;foreach($Mcg as$Mce){$Mce=trim($Mce);if(strpos($Mce,":")===false)continue;if(($Maf=strpos($data,$Mce))!==false){if(is_numeric(substr($Mce,-1))and is_numeric(substr($data,$Maf+strlen($Mce),1)))continue;$Met=true;break;}}
return$Met;}
function Wba(){if(W_("currency")and method_exists(W_("currency"),"getCode"))return W_("currency")->getCode();if(W_("session")&&!empty(W_("session")->data["currency"]))return W_("session")->data["currency"];global$Mq;if(!empty($Mq["currency"]))return$Mq["currency"];return"USD";}
function Whx(){if(W_("session")&&isset(W_("session")->data["language"]))return W_("session")->data["language"];global$Mq;if(!empty($Mq["language"]))return$Mq["language"];return"en-gb";}
function Wlz(&$Mg,$Mex,$Mkq,$Meu){$Macx=2000;$Maf=-1;$Mvc=false;while($Maf=strpos($Mg,$Mex,$Maf+1)){$Mei=strpos($Mg,$Mkq,$Maf+strlen($Mex));if(!$Mei||$Mei-$Maf>$Macx)continue;$Mcj=substr($Mg,$Maf,$Mei-$Maf);$Mg=str_replace($Mcj.$Mkq,$Mcj.$Meu,$Mg);$Mvc=true;}
return$Mvc;}
function Wa_($Mfd){global$Ms,$Mah,$Mk,$Mw,$Mx,$Mn,$Ma,$Mv,$Mq,$My;if(!$Mah)return false;if(!empty(W_("request")->get["route"]))$Mce=W_("request")->get["route"];else$Mce="common/home";if(strlen(trim($Mfd))>100){$Mfu=$Mw;if($Maf=strrpos($Mfu,'_'))$Mfu=substr($Mfu,0,$Maf);if(Whx()!=$Mfu){$Mah=false;$My=substr($My,strlen($Mw));$Mw=Wbj(Whx());$My=$Mw.$My;}
$Mfe=Wba();if($Mfe!=$Mx){$Mah=false;$My=substr($My,strlen($Mw));$My=str_replace($Mx,$Mfe,$My);$My=$Mw.$My;$Mx=$Mfe;}
if(!$Mah){$Mah=Wm($Mk);global$Mr;if($Ma['t']and!$Mr and!strpos($Mk,"assets/"))$Mah=$My.'v';$Mah=str_replace(array("\n","\t","\r"),'',$Mah);}
if(strpos($Mfd,"<b>Fatal error<"))return false;if(strpos($Mfd,"YOU ARE BLOCKED ON THIS SERVER"))return false;if(!$Mv){if(Wlz($Mfd,".firePixel(",',\"event_id\":\"',',\"event_md\":\"')){if(!We($Mw))return false;}
if(!empty($Mq["compare"])and!empty($Mn['ap'])){if(!We($Mw))return false;Ww($Mn['ap'],"0",$Mfd);}
if(!empty($Mq["wishlist"])and$Mn['ao']){if(!We($Mw))return false;Ww($Mn['ao'],"0",$Mfd);}
if($Ms){if(!We($Mw))return false;if(!$Mn['z'])return false;Ww($Mn['z'],$Mn['bm'],$Mfd);}
if(!lc('gg')&&lc('e'))if(!empty($Mq['_'])){if(!We($Mw)||$Mq['_']===true)return false;Ww($Mn['ah'],$Mn['bn'],$Mfd);}
if($Mfe!=$Ma['aa']&&lc('s')){if(!We($Mw))return false;if($Mn['af']){$May=$Mn['ag'][$Ma['aa']];Wv('',"http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://")."$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]",'name="redirect" value="','"',$May);Wx($Mfe,$Ma['aa'],$Mfd);Ww($Mn['af'],$May,$Mfd);}}}
$Mff=gzencode($Mfd,9);}else$Mff=false;global$Ml;if(!file_exists(DIR_CACHE."lightning/alpha"."/meters")){global$Mir;if($Mir)$Mir->query("TRUNCATE TABLE ".DB_PREFIX."lightning_product_to_page");}
if($Mff){$Mbw=array();if($Mce=="product/product"&&$Mff)$Mbw["product_id"]=W_("request")->get["product_id"];foreach(headers_list()as$Mabf)if(stripos($Mabf,"ontent-type:")){if(!stripos($Mabf,"text/html")or!stripos($Mabf,"utf-8"))$Mbw["content-type"]=trim(substr($Mabf,strpos($Mabf,':')+1));break;}
if($Mbw)$Mff.="`]".serialize($Mbw)."[`";}
if($Mv)Wbb("tetha",$Mah,$Mff,true);else Wbb("alpha",$Mah,$Mff,true);if($Mfd){global$Mfh;if(!lc('hk')&&$Mfh){global$Mir;$Mao=md5($Mah);$Mdb=substr($Mao,0,2)."/c".substr($Mao,2);$Mir->query("DELETE FROM ".DB_PREFIX."lightning_product_to_page WHERE page='".$Mdb."'");if(count($Mfh)>200){}else{$Mfi="INSERT INTO ".DB_PREFIX."lightning_product_to_page (product_id, page) VALUES ";$Mfj=true;foreach($Mfh as$Mfk=>$Maj)if($Mfk){if($Mfj)$Mfj=false;else$Mfi.=",";$Mfi.="(".$Mfk.", '".$Mdb."')";}
$Mir->query($Mfi);}}
if(lc('f')&&$_SERVER["REQUEST_METHOD"]!="POST")if(Way($Mfd))return;global$Mch,$Mk,$Mh;if(lc('n')and!$Mv and$Mch){global$My;$Mbz=Wbc("href='","'",str_replace('"',"'",$Mfd));$Mbz=array_unique($Mbz);foreach($Mbz as$Mcb=>$Mbe){$Mbe=str_replace("&amp;","&",$Mbe);if($Mbe==$Mk){unset($Mbz[$Mcb]);continue;}
$Mbe=preg_replace("/page=[0-9]+/","",$Mbe);$Mbe=preg_replace("/page-[0-9]+/","",$Mbe);if(!strpos($Mbe,"://")){$Maf=isset($Mch[$Mbe]);if(substr($Mbe,0,1)=="/")$Mbe=substr($Mbe,1);$Mbe=$Mh.$Mbe;$Mbz[$Mcb]=$Mbe;if($Maf)$Mch[$Mbe]=1;}
if(!isset($Mch[$Mbe])and !isset($Mch[str_replace("https:/","http:/",$Mbe)])and !isset($Mch[str_replace($Mh.$Mw.'/',$Mh,$Mbe)])and !isset($Mch[str_replace($Mh.strtolower(substr($Mw,0,2)).'/',$Mh,$Mbe)]))unset($Mbz[$Mcb]);else$Mbz[$Mcb]=Wk($Mbz[$Mcb]);}
if($Mce!="common/home"){$Mfl=Wbd("gamma",Wm($Mh));if($Mfl)$Mbz=array_diff($Mbz,unserialize($Mfl));}
if(!in_array($Mk,$Mbz))$Mbz=array_merge(array($Mk),$Mbz);$data=serialize(array_values($Mbz));$Mfm=Wbd("gamma",$Mah);if(strlen($data)*2>strlen($Mfm)){Wbb("gamma",$Mah,$data,true);}
Wbe("gamma",$Mah,$Ml);global$Maq,$Mbr,$Mtf;if($Maq and!$Maq['Mbz']and!$Mtf){Wp($Mbr);Wr("gen");}}
}elseif(lc('n')and!$Mv){global$Mh;Wbb("gamma",$Mah,serialize(array($Mh)),true);Wbe("gamma",$Mah,$Ml);}
if($Mn)return false;else return$Mff;}
function Wbf($Mda){return(int)(abs($Mda/10));}
function Way($Mfd){if(strlen($Mfd)<64)return;global$Mir;if(!$Mir)return;if($_SERVER["REQUEST_METHOD"]=="POST")return;global$Mah,$Mv,$light_bot,$Maq,$Mz,$Ms,$Mx,$Ma,$Mw,$Mq;if($Mv)return;if(!$Mw)$Mw=Wh();if(!$Mx)$Mx=Wi();if(!$light_bot){$Mat=!empty($Mq["customer_id"])||!empty($Mq['_'])||!empty($Mq["wishlist"])||!empty($Mq["compare"])||($Mx!=$Ma['aa'])||Weq()!=$Ma['ae'];if($Mat)return;}else{$Mat=($Mx!=$Ma['aa'])||Weq()!=$Ma['ae'];if($Mat)return;}
if(!$Mah){$My=$Mw;if($Mv)$My.=$Mx;$Mk="http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://").$_SERVER["HTTP_HOST"].Wl($_SERVER["REQUEST_URI"]);$Mah=Wm($Mk);}
$Mfn=abs(crc32($Mfd));$Mao=md5($Mah);$Mfo=substr($Mao,0,2)."/c".substr($Mao,2);$Mav=$Mir->query("SELECT * FROM ".DB_PREFIX."lightning_modified WHERE page='".$Mfo."'")->row;if(empty($Mav["cs"])||$Mav["cs"]!=$Mfn){if($Mav)$Mir->query("DELETE FROM ".DB_PREFIX."lightning_modified WHERE page='".$Mfo."'");$Mav["key"]=$Mah;$Mav["cs"]=$Mfn;$Mav["md"]=time();$Mfq=preg_replace(array("/<script\\b[^>]*>(.*?)<\\/script>/is","/\\d\\w*/","/\\s+/s"),array("",""," "),$Mfd);$Mfr=abs(crc32($Mfq));if(empty($Mav["scs"])||$Mav["scs"]!=$Mfr){$Mav["scs"]=$Mfr;$Mav["smd"]=time();}
$Mir->query("INSERT INTO ".DB_PREFIX."lightning_modified SET page='".$Mfo."', cs=".$Mav["cs"].", md=".$Mav["md"].", scs=".$Mav["scs"].", smd=".$Mav["smd"]);}
if($Maq or$Mz)return;if(headers_sent())return;if($light_bot)$Maw=$Mav["smd"];else$Maw=$Mav["md"];header("Cache-Control: no-cache");global$Mvq;if(!preg_match("/^((?!chrome|android).)*safari/i",$Mvq))header("Last-Modified: ".gmdate("D, d M Y H:i:s \G\M\T",$Maw));if(!empty($_SERVER["HTTP_IF_MODIFIED_SINCE"])){Wab();$Max=@strtotime(substr($_SERVER["HTTP_IF_MODIFIED_SINCE"],5));Wbg();if($Max&&$Max>=$Maw){if(empty($_COOKIE["li_nr"])){global$light_bot;if(!$light_bot)setcookie("li_nr",1,time()+(60*60*24*7),"/");}
header($_SERVER["SERVER_PROTOCOL"]." 304 Not Modified");global$Mj;$Mj="Not Modified";Waz();Wt();global$light_ob;$light_ob=false;return true;}}}
function Wfq($Mfu=''){global$Mn;$Mfw=DIR_CACHE."lightning/".'br';if(file_exists($Mfw)){if(filemtime($Mfw)>time()-5*60)return false;Wfy($Mfw);}
file_put_contents($Mfw,'',LOCK_EX);if($Mfu)Wfy(Wa.'_'.$Mfu);else Wfy(Wa);if(strpos(HTTP_SERVER,"/localhost/"))$Mfx="http://localhost/lightning/service/";else$Mfx="http://178.62.216.127/service/";global$Mh;$Mfy=$Mfx."saas3x.php?".'Mpd'."=".str_replace("://","x!x",$Mh)."&".'Mfu'."=".$Mfu;$data=false;if(!$Mfu){global$Md;if($Md)$Mafc=HTTPS_SERVER;else$Mafc=HTTP_SERVER;require_once"beta.php";Wfp();global$Mir,$Mvs;Wbv();$Mir->query("DELETE FROM ".DB_PREFIX."lightning_modified WHERE smd<".(time()-60*60*24*30));$Mir->query("DELETE FROM ".DB_PREFIX."lightning_lcp WHERE smd<".(time()-60*60*24*30));$Mfz=$Mir->query("SELECT * FROM ".DB_PREFIX."setting LIMIT 1")->row;$Mf_=false;if(isset($Mfz["group"]))$Mf_="group";elseif(isset($Mfz["code"]))$Mf_="code";$Mga="SELECT * FROM ".DB_PREFIX."setting";if($Mf_)$Mga.=" WHERE `$Mf_`='config'";$Mrt=$Mir->query($Mga)->rows;foreach($Mrt as$Mbs=>$Mad)if(!empty($Mad["serialized"])||strlen($Mad["value"])>1024)unset($Mrt[$Mbs]);if(defined("HTTPS_ROOT"))$Mafc=HTTPS_ROOT;$data=array();$data['bu']=serialize($Mir->query("SELECT * FROM `".DB_PREFIX."language`")->rows);$data['Mfe']=serialize($Mir->query("SELECT * FROM ".DB_PREFIX."currency")->rows);$data['m']=$Mir->query("SELECT count(*) AS cc FROM ".DB_PREFIX."product")->row["cc"];$data['g_']=$Mir->query("SELECT count(*) AS cc FROM ".DB_PREFIX."category")->row["cc"];$data['al']=$Mir->query("SELECT count(*) AS cc FROM ".DB_PREFIX."product_to_store")->row["cc"];$data['Mxu']=DB_PREFIX;$data['bw']=$Mvs;$data['bx']=VERSION;$data['hn']=Wkt();$data['ht']=Wkw();$data['Mdk']="s:opencartforum.com";$data['ie']=file_exists(DIR_SYSTEM."library/journal3/journal3.php")||file_exists(DIR_SYSTEM."library/journal3/journal.php");if(!empty($_SERVER["DOCUMENT_ROOT"]))$data['Mmi']=$_SERVER["DOCUMENT_ROOT"];$Mfy=$Mfx."saas3x.php?".'Mpd'."=".str_replace("://","x!x",$Mafc);$Mru=array();$Mrv=explode(' ',"config_theme config_template config_language config_currency config_customer_online config_maintenance config_customer_price config_url config_ssl");foreach($Mrt as$Mbs=>$Mad)if(in_array($Mad["key"],$Mrv))$Mru[]=$Mad;$data['fe']=serialize($Mru);}
$Mfy.="&v=".VERSION;$Mfy.="&r=115";$Mgb=Wap($Mfy,$data,"Lightning",60);Wfy($Mfw);if(substr($Mgb,0,1)=="!"){Wbi(substr($Mgb,2));return false;}
if(!$Mfu&&$Mgb!=='OK'){if(substr($Mgb,0,2)=="a:"){if(!file_exists(DIR_CACHE."lightning")){@mkdir(DIR_CACHE."lightning",0777,true);@chmod(DIR_CACHE."lightning",0777);}
$Mgc=unserialize($Mgb);@file_put_contents(Wa,stripslashes($Mgc['lc']),LOCK_EX);$Mgd=unserialize(stripslashes($Mgc['Mgd']));foreach($Mgd as&$Mge)$Mge=str_replace("xy".'Mf_'."xy","SELECT",$Mge);@file_put_contents(Wa.'Mgd',serialize($Mgd),LOCK_EX);}else{Wbi("    Lightning <br> <a href='../index.php?li_op=cn' target='_blank'> </a>");return false;}}
global$Mgf;Wfy($Mgf);if(!$Mfu){global$Ma;$Ma=unserialize(file_get_contents(Wa));Wbh();return true;}
$Mn=unserialize($Mgb);file_put_contents(Wa.'_'.$Mfu,$Mgb,LOCK_EX);return true;}
function Wy($Mgj){return 0;$Mhl=crc32($Mgj)%(lc('k')*20);return$Mhl;}
function Wap($Mbe,$Mhm=false,$Mhn="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",$Mzt=20){$Mbe=str_replace(array("https://devs.mx"," "),array("http://devs.mx","%20"),$Mbe);$Mho=curl_init($Mbe);curl_setopt($Mho,CURLOPT_URL,$Mbe);curl_setopt($Mho,CURLOPT_RETURNTRANSFER,1);curl_setopt($Mho,CURLOPT_ENCODING,"");curl_setopt($Mho,CURLOPT_USERAGENT,$Mhn);curl_setopt($Mho,CURLOPT_TIMEOUT,$Mzt);curl_setopt($Mho,CURLOPT_CONNECTTIMEOUT,$Mzt);curl_setopt($Mho,CURLOPT_SSL_VERIFYPEER,false);curl_setopt($Mho,CURLOPT_SSL_VERIFYHOST,false);global$Mk;if($Mk)curl_setopt($Mho,CURLOPT_REFERER,$Mk);if($Mhm){curl_setopt($Mho,CURLOPT_POST,1);curl_setopt($Mho,CURLOPT_POSTFIELDS,$Mhm);}
$Mhp=curl_exec($Mho);global$Mdf;$Mdf=curl_getinfo($Mho,CURLINFO_HTTP_CODE);$Mou=0;while($Mdf>299&&$Mdf<399){if(phpversion()<"5.3.7")return false;$Mhq=curl_getinfo($Mho,CURLINFO_REDIRECT_URL);if(!$Mhq||$Mou++>3){$Mdf=500;return false;}
curl_setopt($Mho,CURLOPT_URL,$Mhq);$Mhp=curl_exec($Mho);$Mdf=curl_getinfo($Mho,CURLINFO_HTTP_CODE);}
curl_close($Mho);return$Mhp;}
function Wbn(){if(empty($_COOKIE['az']))return false;$session=W_("session");if(session_id())session_write_close();$Mhr=array_fill(0,1012,0);$session->data["wishlist"]=$Mhr;$Mhr[]=0;$session->data["compare"]=$Mhr;unset($session->data["customer_id"]);if($_COOKIE['az']!=2)return false;global$Mir;$Mfi=$Mir->query("SELECT customer_id FROM ".DB_PREFIX."customer WHERE status = '1' ORDER BY customer_id ASC LIMIT 1");if(!empty($Mfi->row["customer_id"]))$Mhs["customer_id"]=$Mfi->row["customer_id"];else$Mhs["customer_id"]=1;if($Mir->query("SHOW tables like '".DB_PREFIX."cart'")->row)$Mir->query("DELETE FROM ".DB_PREFIX."cart WHERE customer_id=".(int)$Mhs["customer_id"]);$session->data["customer_id"]=$Mhs["customer_id"];$Mhs["firstname"]="Mirabelya";$Mhs["lastname"]="Lightmeni";$Mhs["email"]="[email protected]";return$Mhs;}
function Weh($Mjf){if($Mjf<=0)W_("session")->data["wishlist"]=array();else W_("session")->data["wishlist"]=array_fill(0,$Mjf,0);if(empty($_COOKIE['az']))return false;return 1012;}
function Wlk($Mce,&$data,&$output){if(!is_string($output))return false;if(!strpos($output,'>'))return false;global$Mz,$Mab,$Ma,$light_ob,$Mvb,$Mv;if(!$Ma||$Mv)return false;if(strpos($Mce,"filter")or strpos($Mce,"menu"))$output=str_replace("<img ","<img loading=lazy ",$output);if(!($Mz=="gens"and$Mab)&&($Mvb or Wav('b_',$Mce)or We_('b_',$data))&&!Wai()&&$light_ob>1&&!strpos($output,"</body>")){$Mvb=false;$Mrk=$Mce;try{if(!empty($data))$Mrk.='='.serialize($data);}catch(Exception$Mey){}
global$Meo;$Meo[]=$Mrk;if(true){$output="<div id='liaj".count($Meo)."'>".Wau("<script*/script>",'',$output)."</div>";}
else$output="<div id='liaj".count($Meo)."' class='liaj'></div>";}
if(!is_string($output)||!trim($output))return;global$Macj;if($Macj){$Mrk=$Mce;$Mrk.=Wez($data);$output="<span style=' background: yellow; color: black; padding: 3px; margin: 3px'>Start: ".$Mrk."</span>".$output."<span style=' background: #CCC; color: black; padding: 3px; margin: 3px'>End: ".$Mce."</span><br/>";}}
function Wbo($Mht,&$output,&$data=false){if(!is_string($output))return false;global$Ma;if(!$Ma)return false;if(strpos($Mht,"ommon/cart")||strpos($Mht,"odule/cart"))Wbr($output);global$Mh;if(!$Mh)$Mh=W_("config")->get("config_url");$Mce=$Mht;if(strpos($Mce,".tpl"))$Mce=Wak("template/",".tpl",$Mce);$Mce=str_replace("_mobile","",$Mce);$Mce=str_replace("_tablet","",$Mce);if($Maf=strpos($Mce,"emplate/"))$Mce=substr($Mce,$Maf+8);if(empty($_COOKIE['az']))return false;if($Mce=="common/cart"||$Mce=="module/cart"){$output='<Wca>'.$output.'<Wcb>';if($_COOKIE['az']==1){$Mhu[]=W_("language")->get("decimal_point");$Mhu[]=W_("language")->get("thousand_point");$output.='<Wcc>'.base64_encode(serialize($Mhu)).'<Wcd>';}
}elseif(($Mce=="module/currency"||$Mce=="common/currency")and$output){if($_COOKIE['az']==1){$output='<Wce>'.$output.'<Wcf>';$Mhu[]=W_("language")->get("decimal_point");$Mhu[]=W_("language")->get("thousand_point");$output.='<Wcc>'.base64_encode(serialize($Mhu)).'<Wcd>';return false;}
static$Mgv,$Mhv,$Mhw;if($Mhw)return false;global$Mir;if(!$Mhv)$Mhv=Wba();$output=$output.'<Wcg'.Wba().'>';if(!strpos($output,'<Wcf>')){$output='<Wce>'.$output.'<Wcf>';$Mga=$Mir->query("SELECT * FROM ".DB_PREFIX."currency WHERE status=1");foreach($Mga->rows as$Mhp)$Mgv[]=$Mhp["code"];}
if($Mgv){if(VERSION>="2.0"){foreach($Mgv as$Mhx){$Mhw=true;Wei($Mhx);$output.=W_("load")->controller("common/currency").'<Wcg'.Wba().'>';$Mhw=false;}
}else{$Mgj=array_keys($Mgv);$Mgj=reset($Mgj);Wei($Mgv[$Mgj]);unset($Mgv[$Mgj]);return$Mce;}}
if($Mhv)Wei($Mhv);}
return false;}
function Wei($Mdt){$Mfe=W_("currency");if($Mfe and method_exists($Mfe,"set"))$Mfe->set($Mdt);else W_("session")->data["currency"]=$Mdt;}
function Wbr($output=false){if(!lc('Mnt')or lc('gg'))return;$Mij=W_("cart")->countProducts();global$Mq;if(!$Mij)unset($Mq['_']);elseif(lc('e')){if(function_exists("iconv")&&is_string($output))$Mq['_']=iconv("UTF-8","UTF-8//IGNORE",$output);else$Mq['_']=$output;}
else$Mq['_']=true;}
function Wbs($Mik){global$Mq;$Mq['ai']=$Mik["firstname"];$Mq['aj']=$Mik["lastname"];$Mq['p']=$Mik["email"];$Mq["customer_group_id"]=$Mik["customer_group_id"];}
function Wbc($Mdl,$Min,$Mdk){preg_match_all("/$Mdl([^$Min]*)/i",$Mdk,$Mcu);return($Mcu[1]);}
function Wbt(){global$Mz,$Macy,$light_bot;if($Mz||$Macy||$light_bot)return true;else return false;}
function Wez($Mrl){if($Mrl===true)return 1;if($Mrl===false)return 0;if(is_numeric($Mrl))return$Mrl;if(!$Mrl)return"";$Mrm="![]:,";if(is_string($Mrl)){if($Mrl[0]=="[")$Mrl=$Mrm[0].strpos($Mrm,"[").substr($Mrl,1);return$Mrl;}
if(!is_array($Mrl)){return"";}
$Mcb=0;$Mlm=array();foreach($Mrl as$Mbs=>$Mad){if(is_string($Mad)){for($Mrn=1;$Mrn<strlen($Mrm);$Mrn++)$Mad=str_replace($Mrm[$Mrn],$Mrm[0].$Mrn,$Mad);}else$Mad=Wez($Mad);if($Mbs===$Mcb){$Mcb++;$Mlm[]=$Mad;}else$Mlm[]=$Mbs.":".$Mad;}
$Mlm="[".implode(",",$Mlm)."]";return$Mlm;}
function Wex($Mro){if($Mro==="0")return 0;if(!$Mro)return"";$Mrm="![]:,";if($Mro[0]=="["){if(substr($Mro,-1)!="]"){trigger_error("No closing ']' in string_to_varr");return"";}
$Mlm=array();$Mei=substr($Mro,1,-1);$Mcb=0;while($Mei){$Mrp=strpos($Mei,",");if($Mrp===false)$Mrp=strlen($Mei);$Mrq=strpos($Mei,"[");if($Mrq===false)$Mrq=strlen($Mei);$Mrr=strpos($Mei,":");if($Mrr&&$Mrr<$Mrp&&$Mrr<$Mrq){$Mbs=substr($Mei,0,$Mrr);$Mei=substr($Mei,$Mrr+1);$Mrp-=$Mrr+1;}else{$Mbs=$Mcb;$Mcb++;}
if(substr($Mei,0,1)=="["){$Mou=0;$Maf=0;while($Maf<strlen($Mei)){if($Mei[$Maf]=="[")$Mou++;elseif($Mei[$Maf]=="]"){$Mou--;if(!$Mou)break;}
$Maf++;}
$Mlm[$Mbs]=Wex(substr($Mei,0,$Maf+1));$Mei=substr($Mei,$Maf+1);if(substr($Mei,0,1)==",")$Mei=substr($Mei,1);}else{$Mad=substr($Mei,0,$Mrp);for($Mrn=1;$Mrn<strlen($Mrm);$Mrn++)$Mad=str_replace($Mrm[0].$Mrn,$Mrm[$Mrn],$Mad);$Mlm[$Mbs]=$Mad;$Mei=substr($Mei,$Mrp+1);}}
return$Mlm;}
if(substr($Mro,0,2)==$Mrm[0].strpos($Mrm,"["))$Mro="[".substr($Mro,2);return$Mro;}
function Wlx(){global$Mo;if(!$Mo)return false;Wfb($Mo);return true;}
function Wfb(&$data){global$Mz,$Mab;Wmd($data);if($Mz and!lc('t')and empty($Mab)){unset($data["user_id"]);}
if(!empty($_COOKIE['az'])or Wdr)if(W_("config"))W_("config")->set("config_maintenance",0);if(!empty($_COOKIE['az'])&&!defined("Wfd"))define("Wfd",1);global$Maq,$Mv,$Macy;$Macy=$Mz||$Mab||$Maq||$Mv||!empty($_COOKIE['az'])||Wdr;if($Macy&&W_("config"))W_("config")->set("facebook_use_s2s",0);global$Mo;if($Mo)$data=$Mo;$GLOBALS['Mq']=&$data;}
function Wgt(){if(lc('t'))return false;global$Mr;if($Mr and!lc('u'))return false;return lc('Mnt');}
function Whz($Mxc){if(lc('fl')or file_exists(DIR_APPLICATION."model/extension/module/redirect_manager.php")or file_exists(DIR_APPLICATION."model/extension/module/brokenlink_manager.php")or file_exists(DIR_APPLICATION."controller/extension/startup/slasoft_redirect.php")or file_exists(DIR_APPLICATION."controller/common/redirect.php"))return;global$light_bot,$My,$Mxb;if($light_bot){header("X-Lightning: fast 404 answer for bot");http_response_code(404);exit;}
$Mxb=$Mxc.lc('bf');$Mg=Wbd("alpha",$My.$Mxb);if(!$Mg)return;global$light_ob;$light_ob=0;http_response_code(404);header("X-Lightning-Info: '$My.$Mxb' cached template used");Wz($Mg,true);exit;}
function light_update_cart(){if(!lc('Mnt')or lc('gg'))return;$Mij=W_("cart")->countProducts();if(!$Mij){Wbr();return;}
global$light_modify_cart;if(!$light_modify_cart){Wbr(true);return;}
if(VERSION<"2.0")$Mxm=$this->getChild("module/cart");else$Mxm=W_("load")->controller("common/cart");Wbr($Mxm);}
function Wjk(){global$Mz,$light_bot;return$Mz||$light_bot||!empty($_COOKIE['az']);}
function Wgo(&$Mij){global$Mz,$Mab;if($Mz=="gens"&&$Mab)return;global$Mvb,$Mir;$Mvb=true;if(!$Mij||$Mij==array(0)){$Mfi=$Mir->query("SELECT product_id FROM ".DB_PREFIX."product ORDER BY product_id DESC LIMIT 1");if(!empty($Mfi->row["product_id"]))$Mij=array($Mfi->row["product_id"]);}}
function Wkh($Mce){if(empty($_SERVER["HTTP_X_REQUESTED_WITH"])||!strpos($_SERVER["REQUEST_URI"],"j3_ajax"))return false;if(strpos($Mce,"xtension/module"))return false;if(in_array($Mce,explode(' ',"journal3/grid/grid journal3/blog/seo_url journal3/events journal3/assets journal3/skin extension/module/fx journal3/product/extras journal3/product_extras journal3/product/second_image journal3/product/countdown journal3/countdown journal3/layout journal3/filter common/column_left common/column_right journal3/settings")))return false;header("X-Skipped: $Mce",0);return true;}
function Wkf($Mxs){if(!lc('ha'))return false;global$Mir;$M_q=serialize($Mxs);$Mh_=Wj("to\";s:", '";',$M_q);$Mh_=Wj(':"','',$Mh_);$Mir->query("INSERT INTO ".DB_PREFIX."lightning_mail SET mail=".Wms($M_q));file_put_contents(DIR_LOGS."lightning_mail.log",date("Y-m-d G:i:s")."  Mail to ".$Mh_." saved to Lightning queue\n",FILE_APPEND);return true;}
function Wkj($M_w,$Mop,$M_x){if(!lc('jf'))return false;global$Mcq;if($Mcq!="product/product"&&$Mcq!="journal3/product"&&substr($Mcq,0,5)!="feed/")return;$config=Wc_("config");static$M_y,$M_z;if(!$M_y){if(lc('gh')){$M_y=$config->get("theme_journal3_image_thumb_width");$M_z=$config->get("theme_journal3_image_thumb_height");}else{$M_y=$config->get("theme_".$config->get("config_theme")."_image_popup_width");$M_z=$config->get("theme_".$config->get("config_theme")."_image_popup_height");}
if(!$M_y){$M_y=$config->get("config_image_popup_width");$M_z=$config->get("config_image_popup_height");}
if(!$M_y){$M_y=400;$M_z=400;}}
if($Mop<$M_y||$M_x<$M_z)return;$M__=str_replace(' ',"%20",$M_w);if(lc('hu'))$M__.="#0";if(Wc_("request")->server["HTTPS"]){return$config->get("config_ssl")."image/".$M__;}else{return$config->get("config_url")."image/".$M__;}}
function Wkz(&$Mg){Wu($Mg);$Mg=preg_replace_callback("/<img .*?>/i",'Wk_',$Mg);}
function Wk_($Mvm){$Mvm=$Mvm[0];if(stripos($Mvm,"height"))return$Mvm;$Mabd=str_replace('"',"'",$Mvm);if(!$Maf=stripos($Mabd," src='"))return$Mvm;$Maf+=6;$Mabd=substr($Mabd,$Maf,strpos($Mabd,"'",$Maf)-$Maf);if(!trim($Mabd)){if(!$Maf=stripos($Mabd,"data-src='"))return$Mvm;$Maf+=10;$Mabd=substr($Mabd,$Maf,strpos($Mabd,"'",$Maf)-$Maf);}
$Mbe=$Mabd;if(($Maf=strrpos($Mabd,'-'))&&substr($Mabd,$Maf+1)<1)$Mabd=substr($Mabd,0,$Maf);if(($Maf=strrpos($Mabd,'-'))&&($Mey=strpos($Mabd,'x',$Maf))&&(is_numeric($Mabe=substr($Mabd,$Maf+1,$Mey-$Maf-1)))&&($Mabf=(int)substr($Mabd,$Mey+1)))return"<img width=$Mabe height=$Mabf".substr($Mvm,4);global$Mh;if(substr($Mbe,0,strlen($Mh))!=$Mh)return$Mvm;$Map=substr($Mbe,strlen($Mh));$Map=rawurldecode(str_replace("//","/",$Map));$Map=substr(DIR_SYSTEM,0,-7).$Map;if(!is_file($Map)||!($Mbj=getimagesize($Map)))return$Mvm;return"<img width=".$Mbj[0]." height=".$Mbj[1].substr($Mvm,4);}
function Whk(&$Mg){if(!lc('hu'))return;Wu($Mg);global$Maek;$Maek=stripos($Mg,"</head");global$Maeq;$Maeq=$Mg;if(PHP_VERSION>="7.4"){$Mjf=0;$Mg=preg_replace_callback("/[\"',;\s][^\"',;\s]+\.(jpe?g|png)(#0)?/i","light_image_to_webp",$Mg,-1,$Mjf,PREG_OFFSET_CAPTURE);$Maeq='';}else{global$Maer;$Maer=0;$Mg=preg_replace_callback("/[\"',;\s][^\"',;\s]+\.(jpe?g|png)(#0)?/i","light_image_to_webp",$Mg);}}
function light_image_to_webp($Mvm){if(is_array($Mvm))$Mvm=$Mvm[0];if(is_array($Mvm)){$Maee=$Mvm[1];$Mvm=$Mvm[0];global$Maek;if($Maee<$Maek){global$Maeq;if($Maeq[$Maee-1]=="=")return$Mvm;}
}else{global$Maek,$Maer;if($Maer<$Maek){global$Maeq;$Maee=strpos($Maeq,$Mvm,$Maer);if($Maee){$Maer=$Maee;if($Maee<$Maek&&$Maeq[$Maee-1]=="=")return$Mvm;}}}
if(substr($Mvm,-2)=="#0")return substr($Mvm,0,-2);if(strpos($Mvm,"_nwp")!==false)return$Mvm;global$Mh;$Moa="@-@";$Mcj="";if(substr($Mvm,0,strlen($Mh))==$Mh)$Mdg=substr($Mvm,strlen($Mh));else{if(strpos($Mvm,"/")===false)return$Mvm;$Mdg=$Mvm;if(preg_match("/[\"',;\s(]/",$Mdg[0])){$Mcj=$Mdg[0];$Mdg=substr($Mdg,1);}
if(substr($Mdg,0,4)=="url("){$Mcj.="url(";$Mdg=substr($Mdg,4);}
if(strpos($Mdg,"\/")!==false){$Moa="/";$Mdg=str_replace("\/","/",$Mdg);}
$Mdg=str_replace($Mh,'',$Mdg);if(strpos($Mdg,"://")!==false||substr($Mdg,0,2)=="//")return$Mvm;}
if(substr($Mdg,0,1)=='/')$Mdg=substr($Mdg,1);$Mvn=substr(DIR_SYSTEM,0,-7);$Mdg=rawurldecode(str_replace("//","/",$Mdg));if(strpos($Mvm,".."))return$Mvm;$Mvx=substr($Mdg,strrpos($Mdg,'.')+1);global$Maal;$Maap=array_search($Mvx,$Maal);if($Maap===false)return$Mvm;$Mvo=substr($Mdg,0,strrpos($Mdg,'.')).".webp";$Maaq="e";if(substr($Mvo,0,6)=="image/"){$Mvo=substr($Mvo,6);$Maaq="i";if(substr($Mvo,0,6)=="cache/"){$Mvo=substr($Mvo,6);$Maaq="c";if(substr($Mvo,0,8)=="catalog/"){$Mvo=substr($Mvo,8);$Maaq="g";}
}elseif(substr($Mvo,0,8)=="catalog/"){$Mvo=substr($Mvo,8);$Maaq="l";}}
$Mvo="image/cache/wp/".$Maaq.$Maap."/".$Mvo;if(@is_file($Mvn.$Mvo)&&@filesize($Mvn.$Mvo))if(@!is_file($Mvn.$Mdg)||(filemtime($Mvn.$Mdg)<=filemtime($Mvn.$Mvo))||filemtime($Mvn.$Mdg)>time())return str_replace($Moa,"\/",$Mcj.$Mh.str_replace(array(' ','#'),array("%20","%23"),$Mvo));if((@is_file($Mvn.$Mvo)&&@!filesize($Mvn.$Mvo))||@!is_file($Mvn.$Mdg))return$Mvm;$Mbj=filesize($Mvn.$Mdg);$M_l=@getimagesize($Mvn.$Mdg);if(!$M_l)return$Mvm;$M_m=isset($M_l["mime"])?$M_l["mime"]:'';$Mvp=false;if($M_m=="image/gif"){$Mvp=imagecreatefromgif($Mvn.$Mdg);}elseif($M_m=="image/png"){if(lc('ht')&&Wkv($Mvn.$Mdg)){Whm($Mvn.$Mdg,$Mvn.$Mvo,$Mbj);return str_replace($Moa,"\/",$Mcj.$Mh.str_replace(' ',"%20",$Mvo));}
$Mvp=@imagecreatefrompng($Mvn.$Mdg);}elseif($M_m=="image/jpeg"){$Mvp=@imagecreatefromjpeg($Mvn.$Mdg);}
if(!$Mvp)return$Mvm;imagepalettetotruecolor($Mvp);Whm($Mvp,$Mvn.$Mvo,$Mbj);imagedestroy($Mvp);if(@!is_file($Mvn.$Mvo)||@!filesize($Mvn.$Mvo))return$Mvm;return str_replace($Moa,"\/",$Mcj.$Mh.str_replace(' ',"%20",$Mvo));}
function Wkw(){if(!function_exists("imagewebp")or!function_exists("imagecreatefromwebp"))return false;file_put_contents(DIR_CACHE."0",hex2bin("89504e470d0a1a0a0000000d494844520000000100000001010300000025db56ca00000003504c5445000000a77a3dda0000000174524e530040e6d8660000000a4944415408d76360000000020001e221bc330000000049454e44ae426082"));$Mvp=imagecreatefrompng(DIR_CACHE."0");imagepalettetotruecolor($Mvp);imagewebp($Mvp,DIR_CACHE."0");$Mvp=imagecreatefromwebp(DIR_CACHE."0");$Maba=imagecolorat($Mvp,0,0);if(($Maba&0x7F000000)>>24)return false;return true;}
function Wkv($Map){if(ord(file_get_contents($Map,false,null,25,1))&4)return true;$Mdd=file_get_contents($Map);if(stripos($Mdd,"PLTE")!==false&&stripos($Mdd,"tRNS")!==false)return true;return false;}
function Wmp(&$Mrt){if(lc('hk'))return;if(empty($Mrt["items"]))return;global$Mfh;foreach($Mrt["items"]as$Mqi){if(empty($Mqi["products"]))continue;foreach($Mqi["products"]as$Macg)if(!empty($Macg["product_id"]))$Mfh[$Macg["product_id"]]=1;if(empty($Mqi["filter"]))continue;$Myo=$Mqi["filter"];if(!empty($Myo["categories"]))foreach($Myo["categories"]as$Mly)$Mfh[100000000+$Mly]=1;if(!empty($Myo["manufacturers"]))foreach($Myo["manufacturers"]as$Macv)$Mfh[200000000+$Macv]=1;if(empty($Myo["categories"])&&empty($Myo["manufacturers"]))if(!empty($Myo["sort"])&&$Myo["sort"]=="p.date_added")$Mfh[300000000]=1;}}
function Wmv(){global$Mz,$Mab,$light_bot;return($Mz&&!$Mab)||$light_bot;}
function Wng($Mak){return!empty($Mak['az']);}

Function Calls

defined 1

Variables

None

Stats

MD5 fd6d2340247ebdb12a80e8c7c9462000
Eval Count 0
Decode Time 600 ms