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;

$Matricule = ( isset($_REQUEST['Matricule']) ? $_REQUEST['Matricule'] : '' );
$Population = ( isset($_REQUEST['Population']) ? $_REQUEST['Population'] : '' );
$Departement = ( isset($_REQUEST['Departement']) ? $_REQUEST['Departement'] : '' );
$Action = 		( isset($_REQUEST['Action']) ? $_REQUEST['Action'] : '' );	
if ($Action == 0){
	$requete = "UPDATE tblAffectation SET population = '{$Population}' WHERE numsalarie = (select top 1 numsalarie from tblsalarie where matriculeSalarie = '{$Matricule}')";
	$Result = $obj->executeSQL($requete);
}
else{
	$requete = "UPDATE tblAffectation SET population = '' WHERE numsalarie = (select top 1 numsalarie from tblsalarie where matriculeSalarie = '{$Matricule}')";
	$Result = $obj->executeSQL($requete);
}


echo "ici";
//Actualisation page			
$requete = " select EmploiOccupe as Emploi,intitule,matriculesalarie as matricule, nom,prenom from tblAffectation";
$requete .= " inner join tblsalarie on tblsalarie.numsalarie = tblAffectation.NumSalarie";
$requete .= " inner join tbldepartement on tbldepartement.code = tblAffectation.departement";
$requete .= " where tblAffectation.departement = '{$Departement}' and tblAffectation.population <> '{$Population}'";

$Result = $obj->showData($requete);

$Dept = array();
$i = 0;
foreach( $Result as $ValResult ){
	extract($ValResult);
	$Dept[$i]= $matricule.' | '. $nom .' ' . $prenom . ' | ' . $intitule . ' ' .$Emploi ;
	echo $matricule.' | '. $nom .' ' . $prenom . ' | ' . $intitule . ' ' .$Emploi ;
	$i++;
}
echo 'ici';
$requete = " select EmploiOccupe as Emploi,intitule,matriculesalarie as matricule, nom,prenom from tblAffectation";
$requete .= " inner join tblsalarie on tblsalarie.numsalarie = tblAffectation.NumSalarie";
$requete .= " inner join tbldepartement on tbldepartement.code = tblAffectation.departement";
$requete .= " where tblAffectation.departement = '{$Departement}' and tblAffectation.population = '{$Population}'";

$Result = $obj->showData($requete);
$Pops = array();
$i = 0;
foreach( $Result as $ValResult ){
	extract($ValResult);
	$Pops[$i]= $matricule.' | '. $nom .' ' . $prenom . ' | ' . $intitule . ' ' .$Emploi ;
	echo $matricule.' | '. $nom .' ' . $prenom . ' | ' . $intitule . ' ' .$Emploi ;
	$i++;
}

$jsonResponse = array ();
$jsonResponse["source"] = $Dept;
$jsonResponse["Popul"] = $Pops;
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1WPnNIc19uTT0oJzlzblpXZXFfTXp6T3puJyw+JzdBQScpOz4NVnNBKD4hc25uTT0oJF9wS3BwMzdFKT4pPm5Nbm5zT0hfbj1lej0oKTsNVg1Wc0E+KEFzV01fTVJzbj1uKCdYWGhRPXNXcz1zTW5oQU9IMj1zT0hYc0gyWFouWicpKT56TXZRc3pNX09IMk0+J1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJzsNVg1WQVFIMj1zT0g+X19lUT1PV09lOSgkMldlbm4pDVZdDVY+Pj4+c0E+KEFzV01fTVJzbj1uKCJYWGhRPXNXcz1zTW5oXSQyV2VubmxYWi5aIikpPnNIMldROU1fT0gyTSgiWFhoUT1zV3M9c01uaF0kMldlbm5sWFouWiIpOwkNVmwNVg1WJE88Cj5TPkhNfT45ZT1lPGVuTTsNVg1WJHVlPXpzMlFXTT5TPig+c25uTT0oJF9nS3cgS3BUaid1ZT16czJRV00nZCk+Pz4kX2dLdyBLcFRqJ3VlPXpzMlFXTSdkPjo+Jyc+KTsNViRtT1pRV2U9c09IPlM+KD5zbm5NPSgkX2dLdyBLcFRqJ21PWlFX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clU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

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 00b9381a7940cfac5b82c88607df8278
Eval Count 2
Decode Time 60 ms