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(!empty($Mow))return;$Mow=true;if(!defined('Wdr'))define('Wdr',false);if(strpos($_..
Decoded Output download
<?php if(!empty($Mow))return;$Mow=true;if(!defined('Wdr'))define('Wdr',false);if(strpos($_SERVER["REQUEST_URI"],"=api/"))return;$Mu=isset($_SERVER["HTTP_USER_AGENT"])&&preg_match("/bot|crawl|slurp|spider/i",$_SERVER["HTTP_USER_AGENT"]);$Mgf=DIR_LOGS.'cv';if(!Wdr and isset($_GET["li_op"])){header("X-Robots-Tag: none",true);if($_GET["li_op"][0]=="t"){$Mnw=true;require"tetha.php";}if($_GET["li_op"]=="by"){@unlink($Mgf);@unlink(DIR_CACHE."lightning/".'b');require("alpha.php");}}$Mgy=microtime(true);$Moj=DIR_CACHE."lightning/".'dg';define("LIGHT_FRONTEND",true);$Mam=isset($_GET["li_sql"]);register_shutdown_function('Web');if(isset($_GET["li_op"])&&$_GET["li_op"]=="gens"&&$_GET["cd"]>10000000&&file_exists($Mgf)){unlink($Mgf);Wt(true);}else if(file_exists($Mgf)and empty($_COOKIE['az'])){$Mhb=file_get_contents($Mgf);if((filemtime($Mgf)>time()-7200)or (strpos($Mhb,"comm")&&filemtime($Mgf)>time()-10*60)or ($Mhb=='dd')){Wf();return;}unlink($Mgf);}define("LIGHT_ENABLED",true);require("alpha.php");function Wf($Mox=false){if(!empty($_GET["li_op"])or!empty($_SERVER["HTTP_X_REQUESTED_WITH"])or(!empty($_SERVER["HTTP_ACCEPT"])&&substr($_SERVER["HTTP_ACCEPT"],0,5)=="image")or(!empty($_POST))or!empty($_COOKIE['az']))return;global$Moj;if(file_exists($Moj)){if(filemtime($Moj)<time()-15)return;}global$Moy,$Mgy;$Moy=rand(0,10000000);$Mbm['id']=$Moy;$Mbm['Mbt']=$Mgy;if(!empty($_SERVER["REMOTE_ADDR"]))$Mbm['ip']=$_SERVER["REMOTE_ADDR"];if(!empty($_SERVER["HTTP_USER_AGENT"]))$Mbm['Mon']=$_SERVER["HTTP_USER_AGENT"];if($Mox)$Mbm['Mox']=$Mox;$Mbm['Mbe']="http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://").$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];file_put_contents($Moj,serialize($Mbm)."
",FILE_APPEND);}function Web(){$Moz=false;$Mo_=error_get_last();if($Mo_ and($Mo_["type"]!=8192)and($Mo_["type"]!=2)and($Mo_["type"]!=8)){$Moz=str_replace("
",' ',$Mo_["message"])." in ".str_replace(substr(DIR_SYSTEM,0,-7),'',$Mo_["file"]);$Moz=str_replace(substr(DIR_SYSTEM,0,-7),'',$Moz);if($Mo_["line"])$Moz.=":".$Mo_["line"];if(defined("LIGHT_ENABLED")){require_once"beta.php";Wb("php_error",true,array("error"=>$Moz,"url"=>true));}}global$Moj,$Moy;if($Moy){if(!$Moz){global$Mj;if($Mj)$Moz='+'.$Mj;}file_put_contents($Moj,$Moy.'|'.microtime(true).'|'.$Moz."
",FILE_APPEND);}}function Wt($Mdl=false){static$Mlr;if($Mlr or!empty($_COOKIE['az']))return;global$Mam,$Mz;if($Mam and function_exists('Wck')){Wck();if(!$Mdl)$Mlr=true;return true;}if(!empty($_SERVER["HTTP_X_REQUESTED_WITH"])and!$Mdl)return;if(!empty($_SERVER["HTTP_ACCEPT"])&&substr($_SERVER["HTTP_ACCEPT"],0,5)=="image")return;if($Mz)return;global$Mgy,$Mgf;$Mpa=!file_exists($Mgf);$Mpb=microtime(true)-$Mgy;$Map=DIR_CACHE."lightning/".'de';if(file_exists($Map))$Mod=unserialize(file_get_contents($Map));else $Mod=array('do'=>0,'dp'=>0,'dm'=>0,'dn'=>0,'Moe'=>0);if($Mdl){if($Mpa){$Mod['dp']=0;$Mod['do']=0;}else{$Mod['dn']=0;$Mod['dm']=0;}}else{$Mod['Moe']=$Mpb;if($Mpa){if(empty($Mod['dp']))$Mod['dp']=0;if(empty($Mod['do']))$Mod['do']=0;$Mod['dp']+=$Mpb;$Mod['do']++;}else{if(empty($Mod['dn']))$Mod['dn']=0;if(empty($Mod['dm']))$Mod['dm']=0;$Mod['dn']+=$Mpb;$Mod['dm']++;}}if(!file_exists(DIR_CACHE."lightning"))mkdir(DIR_CACHE."lightning");file_put_contents($Map,serialize($Mod));if(!$Mdl)$Mlr=true;return;} ?>
Did this file decode correctly?
Original Code
<?php if(!empty($Mow))return;$Mow=true;if(!defined('Wdr'))define('Wdr',false);if(strpos($_SERVER["REQUEST_URI"],"=api/"))return;$Mu=isset($_SERVER["HTTP_USER_AGENT"])&&preg_match("/bot|crawl|slurp|spider/i",$_SERVER["HTTP_USER_AGENT"]);$Mgf=DIR_LOGS.'cv';if(!Wdr and isset($_GET["li_op"])){header("X-Robots-Tag: none",true);if($_GET["li_op"][0]=="t"){$Mnw=true;require"tetha.php";}if($_GET["li_op"]=="by"){@unlink($Mgf);@unlink(DIR_CACHE."lightning/".'b');require("alpha.php");}}$Mgy=microtime(true);$Moj=DIR_CACHE."lightning/".'dg';define("LIGHT_FRONTEND",true);$Mam=isset($_GET["li_sql"]);register_shutdown_function('Web');if(isset($_GET["li_op"])&&$_GET["li_op"]=="gens"&&$_GET["cd"]>10000000&&file_exists($Mgf)){unlink($Mgf);Wt(true);}else if(file_exists($Mgf)and empty($_COOKIE['az'])){$Mhb=file_get_contents($Mgf);if((filemtime($Mgf)>time()-7200)or (strpos($Mhb,"comm")&&filemtime($Mgf)>time()-10*60)or ($Mhb=='dd')){Wf();return;}unlink($Mgf);}define("LIGHT_ENABLED",true);require("alpha.php");function Wf($Mox=false){if(!empty($_GET["li_op"])or!empty($_SERVER["HTTP_X_REQUESTED_WITH"])or(!empty($_SERVER["HTTP_ACCEPT"])&&substr($_SERVER["HTTP_ACCEPT"],0,5)=="image")or(!empty($_POST))or!empty($_COOKIE['az']))return;global$Moj;if(file_exists($Moj)){if(filemtime($Moj)<time()-15)return;}global$Moy,$Mgy;$Moy=rand(0,10000000);$Mbm['id']=$Moy;$Mbm['Mbt']=$Mgy;if(!empty($_SERVER["REMOTE_ADDR"]))$Mbm['ip']=$_SERVER["REMOTE_ADDR"];if(!empty($_SERVER["HTTP_USER_AGENT"]))$Mbm['Mon']=$_SERVER["HTTP_USER_AGENT"];if($Mox)$Mbm['Mox']=$Mox;$Mbm['Mbe']="http".(($_SERVER["SERVER_PORT"]==443)?"s://":"://").$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];file_put_contents($Moj,serialize($Mbm)."\n",FILE_APPEND);}function Web(){$Moz=false;$Mo_=error_get_last();if($Mo_ and($Mo_["type"]!=8192)and($Mo_["type"]!=2)and($Mo_["type"]!=8)){$Moz=str_replace("\n",' ',$Mo_["message"])." in ".str_replace(substr(DIR_SYSTEM,0,-7),'',$Mo_["file"]);$Moz=str_replace(substr(DIR_SYSTEM,0,-7),'',$Moz);if($Mo_["line"])$Moz.=":".$Mo_["line"];if(defined("LIGHT_ENABLED")){require_once"beta.php";Wb("php_error",true,array("error"=>$Moz,"url"=>true));}}global$Moj,$Moy;if($Moy){if(!$Moz){global$Mj;if($Mj)$Moz='+'.$Mj;}file_put_contents($Moj,$Moy.'|'.microtime(true).'|'.$Moz."\n",FILE_APPEND);}}function Wt($Mdl=false){static$Mlr;if($Mlr or!empty($_COOKIE['az']))return;global$Mam,$Mz;if($Mam and function_exists('Wck')){Wck();if(!$Mdl)$Mlr=true;return true;}if(!empty($_SERVER["HTTP_X_REQUESTED_WITH"])and!$Mdl)return;if(!empty($_SERVER["HTTP_ACCEPT"])&&substr($_SERVER["HTTP_ACCEPT"],0,5)=="image")return;if($Mz)return;global$Mgy,$Mgf;$Mpa=!file_exists($Mgf);$Mpb=microtime(true)-$Mgy;$Map=DIR_CACHE."lightning/".'de';if(file_exists($Map))$Mod=unserialize(file_get_contents($Map));else $Mod=array('do'=>0,'dp'=>0,'dm'=>0,'dn'=>0,'Moe'=>0);if($Mdl){if($Mpa){$Mod['dp']=0;$Mod['do']=0;}else{$Mod['dn']=0;$Mod['dm']=0;}}else{$Mod['Moe']=$Mpb;if($Mpa){if(empty($Mod['dp']))$Mod['dp']=0;if(empty($Mod['do']))$Mod['do']=0;$Mod['dp']+=$Mpb;$Mod['do']++;}else{if(empty($Mod['dn']))$Mod['dn']=0;if(empty($Mod['dm']))$Mod['dm']=0;$Mod['dn']+=$Mpb;$Mod['dm']++;}}if(!file_exists(DIR_CACHE."lightning"))mkdir(DIR_CACHE."lightning");file_put_contents($Map,serialize($Mod));if(!$Mdl)$Mlr=true;return;}
Function Calls
| None |
Stats
| MD5 | 5742201ea7ad034c3cd71cc0f91838d5 |
| Eval Count | 0 |
| Decode Time | 114 ms |