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='P2lCP1ouWg1WCXNIc19uTT0oJzlzblpXZXFfTXp6T3puJyw+JzdBQScpOz4NVg1WCX..

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;

	extract($_REQUEST);
	$requete ="
        select A.numsalarie,A.matriculesalarie as matricule,C.categorie,C.sousatelier,
        C.atelier,D.departement,A.population from tblsalarie A
        inner join tblinfoscte B on B.numsalarie = A.numsalarie and B.datedepart is null
        inner join tblsalautre C on C.NumSalarie = A.numsalarie
        inner join tblaffectation D on D.numsalarie = A.numsalarie";
        $condPopulation     = (empty($population) ) ? " A.population like'%'" : " A.population like '{$population}'";
        $condDepartement    = (empty($departement)) ? " D.departement like'%'" : " D.departement like '{$departement}'";
        $condAtelier        = (empty($atelier)) ? " atelier like'%'" : " atelier like '{$atelier}'";
        $condSousAtelier    = (empty($sousAtelier) )? " sousatelier like'%'" : " sousatelier like '{$sousAtelier}'";
        $condCategorie      = (empty($categorie) )? " categorie like'%'" : " categorie like '{$categorie}'";
        $condMatricule      = (empty($matr)) ? " matriculesalarie like'%'" : " matriculesalarie like '{$matr}'";

        $reqs = "select numsalarie from ({$requete} where {$condDepartement} AND {$condPopulation} AND {$condAtelier} AND {$condSousAtelier} AND {$condCategorie} AND {$condMatricule}) F";

	$requete = "Select * from (select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(depassement) as Valeur,'DEP' as motif, (select valeur from tblinitEv where indice = 'DEP') as CodeNe  from v_credithoraire where depassement is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(manquant),'MAN', (select valeur from tblinitEv where indice = 'MAN')  from v_credithoraire where manquant is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(CH),'CH', (select valeur from tblinitEv where indice = 'CH') from v_credithoraire where CH is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(recuperer),'REC', (select valeur from tblinitEv where indice = 'REC') from v_credithoraire where recuperer is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(HS130),'HS130', (select valeur from tblinitEv where indice = 'HS130')  from v_credithoraire where HS130 is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(HS150),'HS150', (select valeur from tblinitEv where indice = 'HS150')  from v_credithoraire where HS150 is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(heffectuer),'HEF', (select valeur from tblinitEv where indice = 'HEF')from v_credithoraire where heffectuer is not null UNION
select idsingle,numsalarie,semaine,periode,dbo.heureVersReel(HSP),'HSP', (select valeur from tblinitEv where indice = 'HSP') from v_credithoraire where HSP is not null) LST where numsalarie in ({$reqs})";

$reqDel = "delete from tblenteteconge where codene in (select valeur from tblinitev) and numsalarie in({$reqs}) and idCredit is not null";
//var_dump($requete);
$obj->executeSQL($reqDel);

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

foreach ($result as $key) {
	extract($key);
	$toInsert = array(
		'numsalarie' => $numsalarie,
		'semaine'	 => $semaine,
		'motif'		 => $motif,
		'periode' 	 => $periode,
		'CodeNe'	 => $CodeNe,
		'idCredit'	 => $idsingle,
		'duree'		 => $Valeur,
		'status'	 => 1,
		'datecreation' => date("d/m/Y")
	);
	//var_dump($toInsert);
	$obj->executeQuery("tblenteteconge",$toInsert);
}

?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1WCXNIc19uTT0oJzlzblpXZXFfTXp6T3puJyw+JzdBQScpOz4NVg1WCXNBPihBc1dNX01Sc249bignWFhoUT1zV3M9c01uaEFPSDI9c09IWHNIMlhaLlonKSk+ek12UXN6TV9PSDJNPidYWGhRPXNXcz1zTW5oQU9IMj1zT0hYc0gyWFouWic7DVYNVglBUUgyPXNPSD5fX2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VcpOw1WDVYkek1uUVc9PlM+JE88Ci1pbi5PfTRlPWUoJHpNdlFNPU0pOw1WDVZBT3pNZTIuPigkek1uUVc9PmVuPiR5TXEpPl0NVglNUj16ZTI9KCR5TXEpOw1WCSQ9TzNIbk16PT5TPmV6emVxKA1WCQknSFFZbmVXZXpzTSc+U2k+JEhRWW5lV2V6c00sDVYJCSduTVllc0hNJwk+U2k+JG5NWWVzSE0sDVYJCSdZTz1zQScJCT5TaT4kWU89c0EsDVYJCSdaTXpzTzlNJz4JPlNpPiRaTXpzTzlNLA1WCQknL085TUVNJwk+U2k+JC9POU1FTSwNVgkJJ3M5L3pNOXM9Jwk+U2k+JHM5bnNIeFdNLA1WCQknOVF6TU0nCQk+U2k+JDZlV01ReiwNVgkJJ249ZT1RbicJPlNpPjAsDVYJCSc5ZT1NMnpNZT1zT0gnPlNpPjllPU0oIjloWWhiIikNVgkpOw1WCWhoY2V6XzlRWVooJD1PM0huTXo9KTsNVgkkTzwKLWlNUk0yUT1Nd1FNenEoIj08V01IPU09TTJPSHhNIiwkPU8zSG5Nej0pOw1WbA1WDVY/aQ=';$_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 4c2db208d91551b45b979758662684f5
Eval Count 2
Decode Time 84 ms