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='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT..

Decoded Output download

?><?php
ini_set('display_errors', 'Off'); 

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;

$key        			= isset($_REQUEST['key'])      			? filter_var($_REQUEST['key'], FILTER_SANITIZE_STRING)      				: NULL;  
$txtCode 	  			= isset($_REQUEST['txtCode'])   			? filter_var($_REQUEST['txtCode'], FILTER_SANITIZE_STRING)   			: NULL;
$code 	  			    = isset($_REQUEST['code'])   			    ? filter_var($_REQUEST['code'], FILTER_SANITIZE_STRING)   				: NULL; 
$txtrubrique 	  		= isset($_REQUEST['txtrubrique'])   		? filter_var($_REQUEST['txtrubrique'], FILTER_SANITIZE_STRING)   		: NULL;


if ($txtCode != '') {
	$txtSQL = "select count(*) as nbr from sr_modeleActivite where Code ='{$txtCode}'";
	$result = $obj->getData($txtSQL);
	extract ($result);
	$nbr = $nbr;
	if ($nbr ==0 ) {
		$updNature = array(
			"Code"=>$txtCode,
			"Intitule" =>$txtrubrique
		);

		if ( $key == 'modif' ) { 
			$condition = "Code = '{$txtCode}'"; 	
		}
		else { 	
			$condition = null; 
		} 
		//var_dump($updNature);
		$obj->executeQuery("sr_modeleActivite", $updNature,$condition);
	}
	else {
		$updNature = array(
			"Code"=>$txtCode,
			"Intitule" =>$txtrubrique
		);

		if ( $key == 'modif' ) { 
			$condition = "Code = '{$txtCode}'"; 
			$obj->executeQuery("sr_modeleActivite", $updNature,$condition);			
		}
		
		
	}
}

if ($code != 'on') {
	$reqrub = "select * from sr_rubrique where code='{$code}'";
	$sttRub = $obj->getData($reqrub);
	extract($sttRub);
	$activite = $activite;

	$reqmodel = "select * from sr_modeleActivite where Code='{$txtCode}'";
	$sttmodel = $obj->getData($reqmodel);
	extract($sttmodel);
	$idModel = $idModel;

	$reqmodel = "select count(*) as nb from sr_ModeleFA where codeRubrique='{$code}' and idModelActivite = {$idModel}";
	$sttmodel = $obj->getData($reqmodel);
	extract($sttmodel);
	$nb = $nb;

	if ($nb == 0) {
	$ToInsert = array(
			'idModelActivite' => $idModel,
			'codeRubrique' => $code,
			'ModeActive' => $activite
		);

	$obj->executeQuery("sr_ModeleFA",$ToInsert);
	}
}
?>               

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT4oQXNXTV9NUnNuPW4oJ1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJykpPnpNdlFzek1fT0gyTT4nWFhoUT1zV3M9c01uaEFPSDI9c09IWHNIMlhaLlonOw1WDVZBUUgyPXNPSD5fX2VRPU9XT2U5KCQyV2VubikNVl0NVj4+Pj5zQT4oQXNXTV9NUnNuPW4oIlhYaFE9c1dzPXNNbmhdJDJXZW5ubFhaLloiKSk+c0gyV1E5TV9PSDJNKCJYWGhRPXNXcz1zTW5oXSQyV2VubmxYWi5aIik7CQ1WbA1WDVYkTzwKPlM+SE19PjllPWU8ZW5NOw1WDVYkeU1xPj4+Pj4+Pj4JCQlTPnNubk09KCRfZ0t3IEtwVGoneU1xJ2QpPj4+Pj4+CQkJPz5Bc1c9TXpfY2V6KCRfZ0t3IEtwVGoneU1xJ2QsPnIzSVRLZ19wRkUzVDNOS19wVGczRUMpPj4+Pj4+CQkJCTo+RSBJSTs+Pg1WJD1SPS9POU0+CT4+CQkJUz5zbm5NPSgkX2dLdyBLcFRqJz1SPS9POU0nZCk+Pj4JCQk/PkFzVz1Nel9jZXooJF9nS3cgS3BUaic9Uj0vTzlNJ2QsPnIzSVRLZ19wRkUzVDNOS19wVGczRUMpPj4+CQkJOj5FIElJO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zNIbk16PT5TPmV6emVxKA1WCQkJJ3M5dU85TVdGMj1zY3M9TSc+U2k+JHM5dU85TVcsDVYJCQknMk85TWdRPHpzdlFNJz5TaT4kMk85TSwNVgkJCSd1TzlNRjI9c2NNJz5TaT4kZTI9c2NzPU0NVgkJKTsNVg1WCSRPPAotaU1STTJRPU13UU16cSgibnpfdU85TVdNckYiLCRUTzNIbk16PSk7DVYJbA1WbA1WP2k+Pj4+Pj4+Pj4+Pj4+Pj4=';$_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 91cb85a548f22bb8bf202e270f5fa1ec
Eval Count 2
Decode Time 62 ms