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);
$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($matr)) ? " matriculesalarie like'%'" : " matriculesalarie like '{$matr}'";
$reqs = "select numsalarie from ({$requete} where {$condDepartement} AND {$condPopulation} AND {$condAtelier} AND {$condSousAtelier} AND {$condCategorie} AND {$condMatricule}) F";
$requete = "select * from (select matriculesalarie as Matricule,A.numsalarie,idrubrique, valeur,Semaine,A.idsingle from sr_detailsemaine A inner join tblsalarie B on A.numsalarie = B.numsalarie) C where numsalarie in ({$reqs}) and idrubrique = '{$rubrique}'";
//var_dump($requete);
$result = $obj->showData($requete);
foreach ($result as $key) {
extract($key);
$valeur = FloatToTime($valeur);
$valeur = toReqs($valeur,$obj);
//var_dump($valeur);
$toUpdate = array('heureEffectuer' => $valeur);
$condition =" numsalarie = {$numsalarie} and Semaine = {$Semaine}";
$obj->executeQuery('sr_creditHoraire',$toUpdate,$condition);
var_dump($toUpdate,$condition);
}
function toReqs($texte,$obj){
$tab = explode(":", $texte);
$h = $tab[0];
$m = $tab[1];
$s = $tab[2];
$req = "select dbo.heuretodate({$h},{$m},{$s}) as dts";
//echo $req;
$result = $obj->getData($req);
extract($result);
return ToDateTime($dts);
}
function Totime($s){
return substr($s, 0,8);
}
function ToDateTime($s){
$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 ;
}
function FloatToTime($float){
try {
$hr = intval($float);
$min = intval(($float - $hr) * 60);
$sec = intval((($float - $hr) * 60 - $min) * 60);
$hr = ($hr < 0) ? 0 : $hr;
$min = ($hr < 0) ? 0 : $min;
$sec = ($hr < 0) ? 0 : $sec;
if($hr < 10){
$hr = "0" . $hr;
}
if($min < 10){
$min = "0" . $min;
}
if($sec < 10){
$sec = "0" . $sec;
}
} catch (Exception $e) {
$hr = "00";
$min = "00";
$sec = "00";
}
$resultat = $hr . ":" . $min . ":" . $sec;
return $resultat;
}
Did this file decode correctly?
Original Code
<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT4oQXNXTV9NUnNuPW4oJ1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJykpPnpNdlFzek1fT0gyTT4nWFhoUT1zV3M9c01uaEFPSDI9c09IWHNIMlhaLlonOw1WDVZBUUgyPXNPSD5fX2VRPU9XT2U5KCQyV2VubikNVl0NVglzQT4oQXNXTV9NUnNuPW4oIlhYaFE9c1dzPXNNbmhdJDJXZW5ubFhaLloiKSk+c0gyV1E5TV9PSDJNKCJYWGhRPXNXcz1zTW5oXSQyV2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