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;

$exx = date("d_m_y h_i_s");

$referer   = trim($obj->getConfigs('referer'));
$file      = "Pointage". $exx .".csv";
$csv       = "";
$message   = "";

$fp = @fopen($file, 'w');
fputcsv($fp, $requete);

$Departement = $_REQUEST['Departement'];
$Matricule = $_REQUEST['Matricule'];
$debut = $_REQUEST['debut'];
$fin = $_REQUEST['fin'];
//var_dump($_REQUEST);

if ($Departement == '0') {
    $Departement = '%';
}
if($Matricule == ''){
    $Matricule = '%';
}


$condMatr = "Matricule like '{$Matricule}'";
$condDept = "Departement like '{$Departement}' ";
$condDate = "Dates between '{$debut}' AND '{$fin}'";

$requete = "select * from (
        select PL.periode as Dates, PL.e1, PL.s1,PL.e2,PL.s2,PL.e3,PL.s3,PL.e4,PL.s4,PL.he1,PL.hs1,
        PL.htrav,PL.hpause,PL.hplus,PL.type,S.MatriculeSalarie as Matricule, A.Departement
        from sr_pointelog PL
        inner join tblsalarie S on S.numsalarie = PL.numSalarie
        inner join tblaffectation A on A.numsalarie = PL.numSalarie
        inner join tblinfoscte I on I.numsalarie = PL.numSalarie and I.datedepart is null
                         ) as liste where {$condDept} and {$condMatr} AND {$condDate}";
//echo("<pre>{$requete}</pre>");
$resultat = $obj->showData($requete);
if(!empty($resultat)){
    $update  = array(
            'Dates'  =>   "Dates", 
            'Matricule'  =>   "Matricule", 
            'e1'  =>   "entre 1", 
            's1'  =>   "sortie 1", 
            'e2'  =>   "entre 2", 
            's2'  =>   "sortie 2", 
            'e3'  =>   "entre 3", 
            's3'  =>   "sortie 3", 
            'e4'  =>   "entre 4", 
            's4'  =>   "sortie 4", 
            'he1'  =>   "he1", 
            'hs1'  =>   "hs1", 
            'htrav'  =>   "htrav", 
            'hpause'  =>   "hpause", 
            'hplus'  =>   "hplus", 
            'type'  =>   "type", 
            'Departement'  =>   "Departement", 
        );
    $ligne = implode(";", $update);
    $ligne = (is_string($ligne)) ? iconv("UTF-8", "Windows-1252//TRANSLIT", $ligne) : $ligne;
    fputcsv($fp, explode(';',$ligne), ';');
}
foreach ($resultat as $key ) {
    extract($key);
    //var_dump($key);
        $Dates = substr($Dates, 8,2) . "/" . substr($Dates, 5,2) . "/" . substr($Dates, 0,4) ;
        $e1 = PointeToHeure($e1);
        $s1 = PointeToHeure($s1); 
        $e2 = PointeToHeure($e2); 
        $s2 = PointeToHeure($s2); 
        $e3 = PointeToHeure($e3); 
        $s3 = PointeToHeure($s3); 
        $e4 = PointeToHeure($e4); 
        $s4 = PointeToHeure($s4); 
        $he1 = PointeToHeure($he1); 
        $hs1 = PointeToHeure($hs1); 

        $hpause = ToTime($hpause);
        $hplus = ToTime($hplus);
        $htrav = ToTime($htrav);

        $type = Types($type);
        $update  = array(
            'Dates'  =>   $Dates, 
            'Matricule'  =>   $Matricule, 
            'e1'  =>   $e1, 
            's1'  =>   $s1, 
            'e2'  =>   $e2, 
            's2'  =>   $s2, 
            'e3'  =>   $e3, 
            's3'  =>   $s3, 
            'e4'  =>   $e4, 
            's4'  =>   $s4, 
            'he1'  =>   $he1, 
            'hs1'  =>   $hs1, 
            'htrav'  =>   $htrav, 
            'hpause'  =>   $hpause, 
            'hplus'  =>   $hplus, 
            'type'  =>   $type, 
            'Departement'  =>   $Departement, 
        );
        $ligne = implode(";", $update);

        $ligne = (is_string($ligne)) ? iconv("UTF-8", "Windows-1252//TRANSLIT", $ligne) : $ligne;
    	fputcsv($fp, explode(';',$ligne), ';');
    }
fclose($fp);
$message = 1;
$jsonResponse = array ();
$jsonResponse['message'] = $message; 
$jsonResponse['file']    = $file; 
$jsonResponse['referer'] = $csv; 
echo json_encode($jsonResponse);


function PointeToHeure($pointage){
    if(empty($pointage))
        //return "00:00";
        return NULL;
    else
        return substr($pointage, 11,5);
}

function ToTime($time){
    if(empty($time))
        return "00:00";
    else
        return substr($time, 0,5);
}

function Types($id){
    if($id == '1')
        return "Pointage";
    else
        return "Cong";
}

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT4oQXNXTV9NUnNuPW4oJ1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJykpPnpNdlFzek1fT0gyTT4nWFhoUT1zV3M9c01uaEFPSDI9c09IWHNIMlhaLlonOw1WDVZBUUgyPXNPSD5fX2VRPU9XT2U5KCQyV2VubikNVl0NVglzQT4oQXNXTV9NUnNuPW4oIlhYaFE9c1dzPXNNbmhdJDJXZW5ubFhaLloiKSk+c0gyV1E5TV9PSDJNKCJYWGhRPXNXcz1zTW5oXSQyV2VubmxYWi5aIik7Pg1WbA1WDVYkTzwKPlM+SE19PjllPWU8ZW5NOw1WDVYkTVJSPlM+OWU9TSgiOV9ZX3E+Ll9zX24iKTsNVg1WJHpNQU16TXo+Pj5TPj16c1koJE88Ci1peE09L09IQXN4bignek1BTXpNeicpKTsNViRBc1dNPj4+Pj4+Uz4ibU9zSD1leE0iWD4kTVJSPlgiWDJuYyI7DVYkMm5jPj4+Pj4+PlM+IiI7DVYkWU1ubmV4TT4+PlM+IiI7DVYNViRBWj5TPkBBT1pNSCgkQXNXTSw+J30nKTsNVkFaUT0ybmMoJEFaLD4kek12UU09TSk7DVYNViQ0TVplej1NWU1IPT5TPiRfZ0t3IEtwVGonNE1aZXo9TVlNSD0nZDsNViR1ZT16czJRV00+Uz4kX2dLdyBLcFRqJ3VlPXpzMlFXTSdkOw1WJDlNPFE9PlM+JF9nS3cgS3BUaic5TTxRPSd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FhOmFhIjsNVj4+Pj5NV25NDVY+Pj4+Pj4+PnpNPVF6SD5uUTxuPXooJD1zWU0sPmEsTCk7DVZsDVYNVkFRSDI9c09IPlRxWk1uKCRzOSldDVY+Pj4+c0EoJHM5PlNTPicwJykNVj4+Pj4+Pj4+ek09UXpIPiJtT3NIPWV4TSI7DVY+Pj4+TVduTQ1WPj4+Pj4+Pj56TT1Rekg+Ii9PSHjDqSI7DVZs';$_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 3fc278806840b15850ce286f4905e746
Eval Count 2
Decode Time 66 ms