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';
if(file_exists('../utilities/fonctionDate.php'))include_once("../utilities/fonctionDate.php");
function __autoload($class)
{
    if (file_exists("../utilities/{$class}.php")) include_once("../utilities/{$class}.php");	
}

$obj = new database;

extract($_REQUEST);
//var_dump($_REQUEST);
$recup=$htravt;
$requete = "select codejours,codecalendrier,periode,numsalarie,p1,p2,p3 from sr_planning where idsingle = {$idsingle}";
$result = $obj->getData($requete);
extract($result);

$requete = "select debut as ddebut,fin as dfin from sr_calendrier where periode = '{$periode}' and codecalendrier = '{$codecalendrier}' and code ='{$codejours}'";
extract($obj->getData($requete));

if(empty($He1)){
	$He1 = null;
}
if(empty($Hs1)){
	$Hs1 = null;
}
if(empty($He2)){
	$He2 = null;
}
if(empty($Hs2)){
	$Hs2 = null;
}
if(empty($He3)){
	$He3 = null;
}
if(empty($Hs3)){
	$Hs3 = null;
}
if(empty($He4)){
	$He4 = null;
}
if(empty($Hs4)){
	$Hs4 = null;
}

$debutnuit = substr($ddebut, 0,4). "-" . substr($ddebut, 8,2). "-" . substr($ddebut, 5,2) . " " . $debutnuit;
$fin   = date_create(str_replace("/", "-", $ddebut));
$dFin = date_format($fin,"d/m/Y");
$fin  = date_format($fin, "m/d/Y");


$date2 = strtotime($fin);
$k = $date2 + 3600 * 24;
$d2 = date("d/m/Y", $k);

$finnuit = substr($d2, 6,4). "-" . substr($d2, 0,2). "-" . substr($d2, 3,2) . " " . $finnuit;
var_dump($fnnuit);


$condition = "idsingle = {$idsingle}";
$toUpdate = array(
	'He1' => $He1,
	'Hs1' => $Hs1,
	'He2' => $He2,
	'Hs2' => $Hs2,
	'He3' => $He3,
	'Hs3' => $Hs3,
	'He4' => $He4,
	'Hs4' => $Hs4,
	'debutnuit' => $debutnuit,
	'finnuit' => $finnuit,
	'p1' =>TimeToFloat($pause),
	'p2' =>TimeToFloat($pause1),
	'p3' =>TimeToFloat($pause2),
	'htravt' =>TimeToFloat($htravt),
	'dateCreation' => $d1,
);
$obj->executeQuery("sr_planning",$toUpdate,$condition);



	$ep1 = ToPlan($He1,$ddebut,$dfin);
	$ep2 = ToPlan($He2,$ddebut,$dfin);
	$ep3 = ToPlan($He3,$ddebut,$dfin);
	$ep4 = ToPlan($He4,$ddebut,$dfin);
	$sp1 = ToPlan($Hs1,$ddebut,$dfin);
	$sp2 = ToPlan($Hs2,$ddebut,$dfin);
	$sp3 = ToPlan($Hs3,$ddebut,$dfin);
	$sp4 = ToPlan($Hs4,$ddebut,$dfin);
	$cpt = 0;
	if($ep1 != null){
	$cpt++;
	$ep1=substr($ep1, 0,4). "-" . substr($ep1, 8,2). "-" . substr($ep1, 5,2) . " " . substr($ep1, 10,9);
	}
	if($ep2 != null) {
	$cpt++;
	$ep2=substr($ep2, 0,4). "-" . substr($ep2, 8,2). "-" . substr($ep2, 5,2) . " " . substr($ep2, 10,9);
	}
	if($ep3 != null) {
	$cpt++;
	$ep3=substr($ep3, 0,4). "-" . substr($ep3, 8,2). "-" . substr($ep3, 5,2) . " " . substr($ep3, 10,9);
	}
	if($ep4 != null) {
	$cpt++;
	$ep4=substr($ep4, 0,4). "-" . substr($ep4, 8,2). "-" . substr($ep4, 5,2) . " " . substr($ep4, 10,9);
	}
	if($sp1 != null) {
	$cpt++;
	$sp1=substr($sp1, 0,4). "-" . substr($sp1, 8,2). "-" . substr($sp1, 5,2) . " " . substr($sp1, 10,9);
	}
	if($sp2 != null) {
	$cpt++;
	$sp2=substr($sp2, 0,4). "-" . substr($sp2, 8,2). "-" . substr($sp2, 5,2) . " " . substr($sp2, 10,9);
	}
	if($sp3 != null) {
	$cpt++;
	$sp3=substr($sp3, 0,4). "-" . substr($sp3, 8,2). "-" . substr($sp3, 5,2) . " " . substr($sp3, 10,9);
	}
	if($sp4 != null) {
	$cpt++;
	$sp4=substr($sp4, 0,4). "-" . substr($sp4, 8,2). "-" . substr($sp4, 5,2) . " " . substr($sp4, 10,9);
	}
	
	
	
$toPeC = array(
	'ep1' => $ep1,
	'sp1' => $sp1,
	'ep2' => $ep2,
	'sp2' => $sp2,
	'ep3' => $ep3,
	'sp3' => $sp3,
	'ep4' => $ep4,
	'sp4' => $sp4,
	'p1' => $p1,
	'p2' => $p2,
	'p2' => $p2,
	'htt' => TimeToFloat($recup),
	'nbpointage' => $cpt
);

$condPec = "jours = '{$codejours}' and periode = '{$periode}' and numsalarie ={$numsalarie}";
var_dump($condPec);
$obj->executeQuery("sr_periodeencours",$toPeC,$condPec);

function ToPlan($time,$dDebut,$dfin){
	$d1 = substr($dDebut, 0,10);
	$d2 = substr($dfin, 0,10);
	$d = $d1 . " " . $time;
	if($time == null){
		$retour = null;
	}else{
		if($d1 > $d){
			$retour = $d2 . " " . $time;
		}else{
			$retour = $d;
		}
	}
	if($retour != null){
		$retour = substr($retour, 0,23);
	}
	return $retour;
}

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT4oQXNXTV9NUnNuPW4oJ1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJykpPnpNdlFzek1fT0gyTT4nWFhoUT1zV3M9c01uaEFPSDI9c09IWHNIMlhaLlonOw1Wc0EoQXNXTV9NUnNuPW4oJ1hYaFE9c1dzPXNNbmhBT0gyPXNPSDRlPU1YWi5aJykpc0gyV1E5TV9PSDJNKCJYWGhRPXNXcz1zTW5oQU9IMj1zT0g0ZT1NWFouWiIpOw1WQVFIMj1zT0g+X19lUT1PV09lOSgkMldlbm4pDVZdDVY+Pj4+c0E+KEFzV01fTVJzbj1uKCJYWGhRPXNXcz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ZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+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 a5b20141a2ca2c9d9ce4f3cc572bad50
Eval Count 2
Decode Time 64 ms