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;

$table = "tblDepartement";

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

if ( $key == 'ajout' ) { $condition = null; $flag = 0x01; }
else                   { $condition = "Code = '{$txtCode}'"; $flag = 0x00; }

if ( $key == 'suppr' )
{
	$objet = new database;
	$tableau = "tblDepartement";
	$cle = isset($_REQUEST['txtCode'])? filter_var($_REQUEST['txtKey'], FILTER_SANITIZE_STRING) : NULL;
	echo($cle + "<br/>");
	$reqNbDept = "SELECT COUNT(*) as nbDept FROM {$tableau} WHERE Code = '{$txtCode}' and Intitule = ''"; 
	echo($reqNbDept);
	$sttNbDept = $objet->getData($reqNbDept);
	$nbDept    = $sttNbDept['nbDept']; 
	echo($nbDept);
if ( $nbDept != 0)	
 { $obj->deleteData($table, $condition); }
}
else
{
	$majDepartement = array( 'Code' => $txtCode, 'Intitule' => ucfirst($txtIntitule), 'FlagInfosgenerales' => $flag); 
	$obj->executeQuery($table, $majDepartement, $condition); 
}
?>               

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WD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LCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+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 52b576a0878471d271d387413c2d1ca7
Eval Count 2
Decode Time 61 ms