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;
$query = isset($_REQUEST['query']) ? filter_var($_REQUEST['query'], FILTER_SANITIZE_STRING) : NULL;
$query = str_replace("'", "'", $query);
$referer = trim($obj->getConfigs('referer'));
$file = "ElementPaie.csv";
$csv = "";
$message = "";
$lstHConge = $obj->showData($query);
if ( !empty($lstHConge) )
{
versCsv($file, $lstHConge);
$csv = $referer . "/EnvoiPaie/" . $file;
} // if ( !empty($lstHConge) )
$message = 1;
$jsonResponse = array ();
$jsonResponse['message'] = $message;
$jsonResponse['file'] = $file;
$jsonResponse['referer'] = $csv;
echo json_encode($jsonResponse);
function versCsv($fichier, array $donnees)
{
$infos_fichier = filesize($fichier);
if(!file_exists($fichier) || $infos_fichier['size'] == 0)
{
$fp = @fopen($fichier, 'w');
if($fp === false) throw new Exception("Le fichier ${fichier} n'a pas pu être créé.");
$entetes = array_keys($donnees[0]);
foreach($entetes as &$entete)
{
$entete = (is_string($entete)) ?
iconv("UTF-8", "Windows-1252//TRANSLIT", $entete) : $entete;
} // foreach($entetes as &$entete)
fputcsv($fp, $entetes, ';');
} // if(!file_exists($fichier) || $infos_fichier['size'] == 0)
$fp = ($fp) ? $fp : fopen($fichier, 'a');
foreach ($donnees as $donnee)
{
foreach($donnee as &$champ)
{
$champ = (is_string($champ)) ?
iconv("UTF-8", "Windows-1252//TRANSLIT", $champ) : $champ;
} // foreach($donnee as &$champ)
fputcsv($fp, $donnee, ';');
} // foreach ($donnees as $donnee)
fclose($fp);
} // function versCsv($fichier, array $donnees)
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442f7e9949 |
Eval Count | 2 |
Decode Time | 63 ms |