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

Decoded Output download

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

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);
var_dump($_REQUEST);
$numSalarie = isset($_REQUEST['numSalarie']) ? $_REQUEST['numSalarie'] : NULL;
$periode = isset($_REQUEST['periode'])   ? $_REQUEST['periode']   : NULL;

$requete = "select idsingle,periode as periodedetravail, debut,fin from sr_periode where idsingle = {$periode}";
$result = $obj->getData($requete);
//var_dump($result);
extract($result);

$reqEnteteFa = "SELECT count(*) as nb FROM sr_enteteActivite where periode ='{$periodedetravail}' and numsalarie = {$numSalarie} ";
$lstEnteteFa = $obj->getData($reqEnteteFa);
$nb    = $lstEnteteFa['nb'];

if ( $nb == 0) {
	
		$toEntete = array(
        'numsalarie' => $numSalarie,
        'periode' => $periodedetravail,
        'jourDeb' => $debut,
        'jourFin' => $fin
   
    );
    $obj->executeQuery("sr_enteteActivite",$toEntete);		
	
	$req = "SELECT ModelFa FROM tblSalarie where NumSalarie = {$numSalarie}";
	$lst = $obj->getData($req);
	if ($lst) {
		extract($lst);
			
		$reqRub = "SELECT CodeRubrique FROM sr_ModeleFA where idModelActivite ={$ModelFa} ";
		$lstRub = $obj->showData($reqRub);
		foreach ($lstRub as $key) {
			extract($key);
			$reqEnteteFa = "SELECT id as idEntete FROM sr_enteteActivite where periode ='{$periodedetravail}' and numsalarie = {$numSalarie}";
			$lstEnteteFa = $obj->getData($reqEnteteFa);
			extract($lstEnteteFa);
			
			$reqper = "SELECT Jours,NSemainedebut,DateDebut,DateFin FROM sr_periodeEnCours where periode ='{$periodedetravail}' and numsalarie = {$numSalarie}";
			$lstper = $obj->showData($reqper);
			foreach ($lstper as $key2) {
				extract($key2);
				$toDetail = array(
				'idEntete' => $idEntete,
				'numSalarie' => $numSalarie,
				'Jour' => $Jours,
				'Semaine' => $NSemainedebut,
				'Periode' => $periodedetravail,
				'idrubrique' => $CodeRubrique 
				);
				$obj->executeQuery("sr_DetailActivite",$toDetail);
			}
		}	
	}
}
$message = "1";
$jsonResponse = array ();
$jsonResponse['message'] = $message;
echo json_encode($jsonResponse);
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1Wc0EoPiFzbm5NPSgkX3BLcHAzN0UpPik+bk1ubnNPSF9uPWV6PSgpOw1WDVZ6TXZRc3pNX09IMk0+J1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJzsNVg1WQVFIMj1zT0g+X19lUT1PV09lOSgkMldlbm4pDVZdDVY+Pj4+c0E+KEFzV01fTVJzbj1uKCdYWGhRPXNXcz1zTW5oJz5YPiQyV2Vubj5YPidYWi5aJykpPnNIMldROU1fT0gyTSgnWFhoUT1zV3M9c01uaCc+WD4kMldlbm4+WD4nWFouWicpOz4+Pj4NVmwNVg1WJE88Cj4+Pj4+Uz5ITX0+OWU9ZTxlbk07DVZNUj16ZTI9KCRfZ0t3IEtwVCk7DVZjZXpfOVFZWigkX2dLdyBLcFQpOw1WJEhRWXBlV2V6c00+Uz5zbm5NPSgkX2dLdyBLcFRqJ0hRWXBlV2V6c00nZCk+Pz4kX2dLdyBLcFRqJ0hRWXBlV2V6c00nZD46PkUgSUk7DVYkWk16c085TT5TPnNubk09KCRfZ0t3IEtwVGonWk16c085TSdkKT4+Pj8+JF9nS3cgS3BUaidaTXpzTzlNJ2Q+Pj46PkUgSUk7DVYNViR6TXZRTT1NPlM+Im5NV00yPT5zOW5zSHhXTSxaTXpzTzlNPmVuPlpNenNPOU05TT16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TzlNZ1E8enN2UU0+DVYJCQkJKTsNVgkJCQkkTzwKLWlNUk0yUT1Nd1FNenEoIm56XzRNPWVzV0YyPXNjcz1NIiwkPU80TT1lc1cpOw1WCQkJbA1WCQlsCQ1WCWwNVmwNViRZTW5uZXhNPlM+IjAiOw1WJApuT0hnTW5aT0huTT5TPmV6emVxPigpOw1WJApuT0hnTW5aT0huTWonWU1ubmV4TSdkPlM+JFlNbm5leE07DVZNMi5PPgpuT0hfTUgyTzlNKCQKbk9IZ01uWk9Ibk0pOw1WP2kNVg=';$_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 5299fd4273ac7243a805d9ae65e24404
Eval Count 2
Decode Time 85 ms