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='P2lCP1ouWg1WPnNIc19uTT0oJzlzblpXZXFfTXp6T3puJyw+JzdBQScpOz4NVnNBKD..

Decoded Output download

?><?php
 ini_set('display_errors', 'Off'); 
if( !isset($_SESSION) ) session_start();

if (file_exists('../utilities/fonction.inc.php')) require_once '../utilities/fonction.inc.php';

function __autoload($class)
{
    if (file_exists("../utilities/{$class}.php")) include_once("../utilities/{$class}.php");	
}

$obj = new database;

$departement = ( isset($_REQUEST['departement']) ? $_REQUEST['departement'] : '' );
$population = ( isset($_REQUEST['population']) ? $_REQUEST['population'] : '' );

if ($departement == '' || empty($departement)) {
	$txtSQL = "SELECT COUNT(*) nbValide FROM tblParamEtape WHERE (population = '{$population}' AND finale = 1)";
	$sttEtape = $obj->getData($txtSQL);
}
else{
	$txtSQL = "SELECT COUNT(*) nbValide FROM tblParamEtape WHERE (idDepartement = '{$departement}' AND finale = 1)";
	$sttEtape = $obj->getData($txtSQL);
}



$nbEtape = $sttEtape['nbValide'];

$jsonResponse = array ();
$jsonResponse["finale"] = ( ( $nbEtape > 0 ) ? true : false );
echo json_encode($jsonResponse);
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1WPnNIc19uTT0oJzlzblpXZXFfTXp6T3puJyw+JzdBQScpOz4NVnNBKD4hc25uTT0oJF9wS3BwMzdFKT4pPm5Nbm5zT0hfbj1lej0oKTsNVg1Wc0E+KEFzV01fTVJzbj1uKCdYWGhRPXNXcz1zTW5oQU9IMj1zT0hYc0gyWFouWicpKT56TXZRc3pNX09IMk0+J1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJzsNVg1WQVFIMj1zT0g+X19lUT1PV09lOSgkMldlbm4pDVZdDVY+Pj4+c0E+KEFzV01fTVJzbj1uKCJYWGhRPXNXcz1zTW5oXSQyV2VubmxYWi5aIikpPnNIMldROU1f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g=';$_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 2fb711f67a2139394c37e61729e7f031
Eval Count 2
Decode Time 62 ms