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 = 'P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1W..
Decoded Output download
?><?php
ini_set('display_errors', 'Off');
header( 'content-type: text/html; charset=utf-8' );
setlocale(LC_TIME,"french");
if( !isset($_SESSION) ) session_start();
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 = "exec RemplirSemaine {$numsalarie}";
//$result = $obj->getData($requete);
//var_dump($result);
$requete = "select B.code,A.requete_sql,A.table_corresp,A.detail,A.constante5,A.rubrique,A.Val_retour from sr_cst A inner join sr_rubrique B on B.Elementdecalcul = A.CodeConstante order by idcst";
$result = $obj->showData($requete);
foreach ($result as $key) {
extract($key);
//var_dump($key);
if($constante5 == null || $constante5 == ''){
$champ = '';
}else{
$champ = $constante5 . ",";
}
if($rubrique == null || $rubrique == ''){
$rubTest = '';
}
else{
$rubTest = " AND idrubrique = '{$rubrique}' ";
}
if ($table_corresp <> 'sr_periodeEnCours') {
$fonction = '';
}
$requete = "select {$champ} numsalarie,periode,{$fonction}({$requete_sql}) as Valeur, '{$code}' as rubrique from {$table_corresp} where periode in(select periode from sr_periode where pTravail = 1) and numsalarie = {$numsalarie} {$rubTest}";
//echo("<pre>$requete</pre>");
$resultat = $obj->showData($requete);
foreach ($resultat as $keys) {
//var_dump($keys);
if($champ <> ''){
$test = " AND {$constante5} = '" . $keys[$constante5] . "'";
//var_dump($test);
}
$toUpdate = " update {$detail} set valeur = {$keys['Valeur']} where numsalarie = {$numsalarie} and periode = '{$keys['periode']}' and idrubrique = '{$keys['rubrique']}' {$test}";
//var_dump($toUpdate);
$obj->executeSQL($toUpdate);
}
}
var_dump('ok');
Did this file decode correctly?
Original Code
<?php $_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