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

Signing you up...

Thank you for signing up!

PHP Decode

preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61..

Decoded Output download

?><?php
// DEBUG MODE ON/OFF
//error_reporting(E_ALL);

require("controller.min.php");

// Get parameters from URL
if (isset($_GET["lat"])) $center_lat = $_GET["lat"];
if (isset($_GET["lng"])) $center_lng = $_GET["lng"];
if (isset($_GET["radius"])) $radius = $_GET["radius"];

//$query = sprintf("SELECT address, name, lat, lng, ( 3959 * acos( cos( radians('%s') ) * cos( radians( lat ) ) * cos( radians( lng ) - radians('%s') ) + sin( radians('%s') ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < '%s' ORDER BY distance LIMIT 0 , 20",
//  mysql_real_escape_string($center_lat),
//  mysql_real_escape_string($center_lng),
//  mysql_real_escape_string($center_lat),
//  mysql_real_escape_string($radius));
//$result = mysql_query($query);

// INIT SET DISTANCE
$distance = 0;

// *****************
// PRINT XML CODE
// *****************
header("Content-type: text/xml; charset=utf8");
// Start XML file, create parent node
$dom = new DOMDocument("1.0", "utf8");
$node = $dom->createElement("markers");
$parnode = $dom->appendChild($node);

$csv = "reseller.csv";
// STARTING BUILDING UP THE XML NODES BASED ON THE CSV FILE
if (($items = getCSV($csv)) !== FALSE) {
	$k=0;
	foreach ($items as $row) {
		
		if(!empty($row["lat"]) && ($k !=0) ) {
			$filtered = false;
			if(isset($radius)) { 
				// CALCUALTE DISTANCE
				$distance = getDistance($center_lat,$row['lat'],$center_lng,$row['lng']);
				$filtered = ((int)$distance > (int)$radius) ? true : false;
			}
			if(!$filtered) {
				
				// BUILD TITLE STRING
				$sep = "";
				if(!empty($row["name"]) && !empty($row["person"])) $sep = " - ";
				$title = $row["name"].$sep.$row["person"];
				$addr = ($row["street"].", ".$row["zip"]." ".$row["city"].", ".$row["country"]);
				
				// GET IMAGEURL
				$logourl = "";
				if (!empty($row["logo"])) $logourl = (is_image($row["logo"])) ? $row["logo"] : "";				
				
				// CREATE NODE
				$node = $dom->createElement("marker");
				$newnode = $parnode->appendChild($node);
				$newnode->setAttribute("name", $title);
				$newnode->setAttribute("address", $addr);
				$newnode->setAttribute("country", $row["country"]);
				$newnode->setAttribute("website", $row["website"]);
				$newnode->setAttribute("email", $row["email"]);
				$newnode->setAttribute("phone", $row["phone"]);
				$newnode->setAttribute("logo", $logourl);		
				$newnode->setAttribute("storetype", $row["storetype"]);
				$newnode->setAttribute("lat", $row['lat']);
				$newnode->setAttribute("lng", $row['lng']);
				$newnode->setAttribute("distance", $distance);
			}
		}
		$k++;
	}
	
	// PRINT OUT THE XML
	echo $dom->saveXML();
}


?>

Did this file decode correctly?

Original Code

preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'lZpbqyPJEYTfDf4PwzIP9sui7qyLxOB/cl5al2OwzbKYxczPd2fUF109slnYB3HUUnddMiMjIkvn6/d//+PX39qXLz//7ctPH9/7ZX+tH99b3V/943v9nNf5XXvsr2V/xfhsve6v/ft1v2997a9tvNd3+flj/K37377fG21/1dN1H5/98P3y43WJ0/U+Vlzf7u8/jlfeno/b23j17fv2O/O9ryfXW35nP/9vfe/7fx/vfb7zePG2vnibf7+3vMfv99bX/ne+P/Q8+1v3dfc91zWf3a9LvvbneuIkx7yNOLf9fb+Ne1oZe287Tto+TnkOTNUNbO3X5ZP8lYGxnLNsY67829hzYrPd98/2sWqM+Wqus8/3cRm5z3lzPmMlsZlz5NryVVibxt6fKfu4bRt7yf0m/usy5sy587r0MXbuOe/Nvzl+7iPjo/UmDi6Mcx3j52dZH8ce2rh3ZS+9j73ndb78fP5tfJ9rzZypzrYRo/Y55s85lIOc60Eug32Su2A9GSetJfdIvHPs/Cy/U3xuYy7VEDFL/DSezedy7/ldzpV7yPhmTvPe3EPiQfu6MBc1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bkFI9Gc382qgFv2x80Gvxw89fI5wU+6sOE3H/b/n49TIgd0oP3djYQvMQWEg4fiQNwuZtlAFwEgpkQMVrcLTgEX0C/ThA1nxo4+AuO2B3JyWXKBXNq4jlMyDY5x5Gp9xGsz+ZgmQmXAH1CwI+x5+pOH4dv0S8QaqF7bMtMuI8ZRRyI14o5UyE95mcVAqvE0GR2FClEFSbLbR7V6/sHz/kUCTAcrp11Bu76MIePKVLqxACvjpohm86pi5871nIygIUi6DYF9xlPn4p1CDLj55/qKiSvOJWPw30Xi3GZInZ0JVfGKSPGgaBrTcSi0dGJjCmqQIiPI0GOWo8cYjaE6zbj0TnlOI4yIZsAH+FYuEM3eQRroLh96mLhkphcTubEpiRO41ZIOyB4DKTrQzXq79eP4zTBP/t0jEH0+Vk9NQv+aU05hdBEDnXMc3RG2zQ31WbUxoimIoh52Bwj+BUjG85lgHcTLnEUd2Ce+8n4GqP+SUmdJAa6wgvCB0ZGRB3kNT6On4i01s+xdokmp0cWuOPnnwc4eUDo92n6ZZrNSddJ6N6fcm+jQZNS4cjjZPEx30ukqDGbp04TJV5gLp1kYeILTZJy6w60z704jhaP4+SgUHfPUSs+Uj9OFcuoF59QNdeCTQkiWTi9amBen3P6XBDX7pOAy8SKjAx10OimO3/rde7nOM1eyYOff30cPyGE+ddGYOE+rn1a4D0F2hLUie5ZiU+lNlnXcVJWqVufPMGBqiMatzj9bKOGwQ0xPOVmLDgtaWDYP+P4dNCm7OBgjEUzz5lL4Qwb9wa+fWoaXssGJ3NgcDT2r9NPO15vnGrsOV75M/sPP73f/sB1wB3r/DcMvXKv95++vf6z/esvX/n3j5+/+DeYfDcOQvKd3Mhfv/0X'\x29\x29\x29\x3B","");

Function Calls

gzinflate 5
dflvpn50711 1
preg_replace 4
base64_decode 5

Variables

$a base64_decode
$b gzinflate
$str jVZ/b9pIEP0bJL7DxPIVuyEkvdNJ11JADhiKZKACU93pFCHXLGDFv7K7bpqr..
$xbtag8 CXlCTUWFXCD7kAOJqNjsflqZID1mFhpJc2H4aRhqgwhgX7lqinijCndUSNfo..
$xkc233 pg8KJiClp+IgSgbpsjgRKBzs4I0AuWjHlX7xuHtOcBZgZeFwKs5xYN9A3M7A..
$xptnd3 Fy1htcaW20mGT8OmkLj4N1BFwmijxD3jbcf6k/AyzSa3082Dqk29TIxdXu1D..
$xrjpt6 preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x..

Stats

MD5 85e4cad98f452f38b0df3ac80046bb06
Eval Count 10
Decode Time 136 ms