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 $_F=__FILE__;$_X='P2lCP1ouWg1WQVFIMj1zT0g+Mk9ISE0yPV9lWnMoJFF6VyldDVYJJDIuPlM+MlF6V1..

Decoded Output download

?><?php
function connect_api($url){
	$ch = curl_init($url);

	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 
	curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; th; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12");
	curl_setopt($ch, CURLOPT_HEADER, 0);
	@curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
	return curl_exec($ch);
	curl_close($ch);
	//return file_get_contents($url);
}

function alert_content($content,$type){
	switch($type){
		case "alert-danger":
			$type_alert="error";
		 break;
		case "alert-warning":
			$type_alert="warning";
		 break;
		case "alert-success":
			$type_alert="success";
			
		 break;
	}
	$content_box=preg_replace('/"/','\"',$content);
	$script_alert='<script type="text/javascript">
	function JSalert(){
	swal({   title: "System Message",   
    text: "'.$content_box.'",   
    type: "'.$type_alert.'",//error success warning   
    showCancelButton: 0,   
    confirmButtonText: "",   
    cancelButtonText: "",   
    closeOnConfirm: true,   
    closeOnCancel: true }, 
    function(isConfirm){   
        if (isConfirm) 
		{   
			false  
        } 
         });
}
JSalert();
</script>';
	echo $script_alert;
	$_SESSION["alert_content"]="";
}
function my_ip(){
 if ($_SERVER['HTTP_CLIENT_IP']) { 
$IP = $_SERVER['HTTP_CLIENT_IP'];
} elseif (preg_match("[0-9]",$_SERVER["HTTP_X_FORWARDED_FOR"] )) { 
$IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
} else { 
$IP = $_SERVER["REMOTE_ADDR"];
}
return $IP;
}
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X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5TPiRfcEtnNktnaiJnS3U3VEtfRjQ0ZyJkOw1WbA1Wek09UXpIPiQzbTsNVmwNVj9p';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_X 0

Stats

MD5 512ef1b655f2f9afee04acc0b6d3b1e2
Eval Count 2
Decode Time 56 ms