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;

// ***************************************************************************************************************************
extract($_REQUEST);
if($debut == "" || $debut == NULL || $fin == "" || $fin == NULL){
    $dats = NULL;
}else{
    $dats = "and A.jourD between '{$debut}' and '{$fin}' OR A.jourF between '{$debut}' and '{$fin}'";
}

if($variable == NULL || $variable == ""){
    $rubs = NULL;
}else{
    $rubs = " and idrubrique = '{$variable}' ";
}

$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($matricule)) ? " matriculesalarie like'%'" : " matriculesalarie like '{$matricule}'";

        $typeAbs = ($typeAbs == "") ? '%' : $typeAbs; 

        $reqs = "select numsalarie from ({$requete} where {$condDepartement} AND {$condPopulation} AND {$condAtelier} AND {$condSousAtelier} AND {$condCategorie} AND {$condMatricule}) F";
        $brute = "select matriculesalarie,noms,codene,intitule,[1],[2],[3],[4] from v_recap where numsalarie in({$reqs}) and codene like '{$typeAbs}' order by matriculesalarie asc";
        $result = $obj->showData($brute);

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


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

        $entete = "Matricule;Nom et prenom(s);codene;intitule;Reliquat;Acquis;Prise;Total";

        $entete = (is_string($entete)) ? iconv("UTF-8", "Windows-1252//TRANSLIT", $entete) : $entete;
        fputcsv($fp, explode(';',$entete), ';');

        foreach ($result as $key) {
            extract($key);
            $rel = (is_null($key['1'])) ? 0 : round($key['1'],3);
            $Acq = (is_null($key['2'])) ? 0 : round($key['2'],3);
            $aju = (is_null($key['3'])) ? 0 : round($key['3'],3);
            $pri = (is_null($key['4'])) ? 0 : round($key['4'],3);
            $tot = $rel + $Acq + $aju - $pri;

            $ligne = "{$matriculesalarie};{$noms};'{$codene};{$intitule};{$rel};{$Acq};{$pri};{$tot}";
            $ligne = str_replace(".", ",", $ligne);
            $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 Totime($s){
        return substr($s, 11,8);
    }
    function ToDateTime($s){
        if($s == null){
            return null;
        }
        else{
            $dates = substr($s, 8,2). "/" . substr($s, 5,2). "/" . substr($s, 0,4);
            $hr = substr($s, 11,8);
            return $dates . " " . $hr;
        }
       
    }
    function ToDate($s){
        $dates = substr($s, 8,2). "/" . substr($s, 5,2). "/" . substr($s, 0,4);
        return $dates ;
    }
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlc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D base64_decode
$_F index.php
$_R 0
$_X 0

Stats

MD5 e5c6917908c75956535fcb773c9fdb30
Eval Count 2
Decode Time 62 ms