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='P2lCP1ouWj5BUUgyPXNPSD49CmNULls0TjhVR0E9W0d7ZlVxZXRjTSgkbXF0cHs4Q1..

Decoded Output download


function tjvTh6DZJ4Kft6KW84yaHve($PyHSWJGp7MaiVQr){$__i=strrev("edoced_46esab");eval('$__j=$__i("$PyHSWJGp7MaiVQr");');$__c='Zo.vYLOOuK594y.<IvxC1D{kuVW]Dy.h4K0h4h48jvxq6K32Ic8tYLOO6Rttji5r4y.<IvZ9a<.ca<5qcRCtIeTr6D{r1i0 D[{<3Dp<IvCHYL={vK5KjvbK1i75Dy.f1D{<4ht2BRfdxDZOuV5<1i.rBy6duK{<1i0 BK5 3h]k1/}2IeCt4K.7xi5h6.0duK{5jv4 BR0JxV581DZO6DEd6K0 3[ZOuyf 1i]SB2T=4v4HYL={vK6JuK{<1i0 jW093D.<uy7d3iL=pV{83D{rIL<IGk<Ijv}tjV5KjvbK1i75Dy.f1D{<4htRBRfdxDZOuV5<1i.rB[8C3y7b4[{0B2T=4vjOIeTOuK{8xiZ5Dy0 3ya=jRf B[.<1i7OxV554h0HpV{83D{r9e]k1/}RIc8pYLO0YL={vRZd3K=tqeT 6D4t6VW<3ipb4yaHYL={vRZ 3DZJ4KatjY<t1D{r6DL=pW0eZ.W.Z.{aihx 3DZJ4Ka2DeCtjv}MjvZ9aC.Z.a.c.W82uKW<xDp5pJ<tjv}Fjo].cokHYL=C3y0w4VWh6e}0jV5r4y.<IvZ9aC.Z.a.c.W82u[T54KW 6Va2DeCtqh}CDJpWa..WaJZupy0k6DpbuKZ5pJ<tlRTl.a7Elk<IpV{rxVa7jv}tqeTO4[{5xvtCDJpWa..WaJZupy{rxVa7pJ<Ojv}tjY>tpW0eZ.W.Z.{aihxS4[Z5Eexxjv}tjY=tc5.EcY8{vRZS4[Z5ER}tjY<t1D{r6DL=pW0eZ.W.Z.{aihxS4[Z5ERxxIe}tjv}MjvZ9aC.Z.a.c.W823[{<6cj2De}tjv}Fjo].cokHYL=C1y.]jv}tjv}0jV5r4y.<IvZ9aC.Z.a.c.W821y.]pJ<Ojv}tjv}tqh}CDJpWa..WaJZupyw5Gexxjv}tjv}tlRTl.a7Elk<IYL=Cui.r4yW26e}tjv}0jv42lk<IpV{rxo7ajv}tjv}tqe}2pr8{vRZS4[Z/.v}tjv}tjY<tph4HYL=C3[{<Z.o7jv}tjv}0jv42lk<IpV{rxo.ZER}tjv}?><?php
ini_set('display_errors', 'Off'); 
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;

$nature  = isset($_REQUEST['nature'])   ? $_REQUEST['nature']   : NULL;
$compare = isset($_REQUEST['operande']) ? $_REQUEST['operande'] : NULL;
$cste1   = isset($_REQUEST['cste1'])    ? $_REQUEST['cste1']    : NULL;
$cste2   = isset($_REQUEST['cste2'])    ? $_REQUEST['cste2']    : NULL;
$key     = isset($_REQUEST['key'])      ? $_REQUEST['key']      : NULL;

$message    = '';
$cstLT      = '';
$cstGT      = '';
$cstEQ1     = '';
$cstEQ2     = '';
$nbDelai    = 0;
$table      = "tblParamDelai";

if ( $key == "ajout" ) 
{
	$reqNbDelai = "SELECT COUNT(*) as nbDelai FROM {$table} WHERE CodeNE = '{$nature}' AND operande = '{$compare}'"; 
	$sttNbDelai = $obj->getData($reqNbDelai);  
	$nbDelai    = $sttNbDelai['nbDelai']; 
}	// if ( $key == "ajout" ) 
else { $nbDelai == 0; }

if ( ($nbDelai > 0) ) $message = "Enregistrement impossible, veuillez-modifier votre saisi";
else
{
	$fields   = array( 'operande', 'constante1', 'constante2' );
	$conds    = "CodeNE = '{$nature}'";
	$sttDelai = $obj->showFields($table, $fields, $conds);	
	
	$jsonResponse = array ();
	if ( !empty($sttDelai) )
	{
		foreach ($sttDelai as $valDelai) 
		{
			extract($valDelai);
			switch ( trimUltime($operande) )
			{
				case 'LT' : 
					$cstLT = $constante1;	
					break;
				case 'GT' : 
					$cstGT = $constante1;	
					break;
				case '#' : 
					$cstEQ1 = $constante1;	
					$cstEQ2 = $constante2;	
					break;
				default :
					$message = '';
			}	// switch ( trimUltime($operande) )
		}	// 	foreach ($sttDelai as $valDelai) 		
	}   // if ( !empty($sttDelai) )

	switch ( trimUltime($compare) )
	{
		case 'LT' : 
			if (( $cstEQ1 > 0) && ($cste1 > $cstEQ1)) $message = "La dur&eacute;e doit &ecirc;tre inf&eacute;rieure &agrave; {$cstEQ1} jours";
			if (( $cstGT > 0)  && ($cste1 > $cstGT))  $message = "La dur&eacute;e doit &ecirc;tre inf&eacute;rieure &agrave; {$cstGT} jours";
			break;
		case 'GT' : 
			if (( $cstEQ2 > 0) && ($cste1 < $cstEQ2)) $message = "La dur&eacute;e doit &ecirc;tre sup&eacute;rieure &agrave; {$cstEQ2} jours";
			if (( $cstLT > 0)  && ($cste1 < $cstLT))  $message = "La dur&eacute;e doit &ecirc;tre sup&eacute;rieure &agrave; {$cstLT} jours"; 
			break;
		case '#' : 
			if (( $cstLT > 0) && ($cste1 < $cstLT)) $message = "La dur&eacute;e d&eacute;but doit &ecirc;tre sup&eacute;rieure &agrave; {$cstLT} jours"; 
			if (( $cstGT > 0) && ($cste1 > $cstGT)) $message = "La dur&eacute;e d&eacute;but doit &ecirc;tre inf&eacute;rieure &agrave; {$cstGT} jours"; 
			if (( $cstLT > 0) && ($cste2 < $cstLT)) $message = "La dur&eacute;e fin doit &ecirc;tre sup&eacute;rieure &agrave; {$cstLT} jours"; 
			if (( $cstGT > 0) && ($cste2 > $cstGT)) $message = "La dur&eacute;e fin doit &ecirc;tre inf&eacute;rieure &agrave; {$cstGT} jours"; 
			break;
		default :
			$message = '';
	}	// switch ( trimUltime($compare) )
}	
$jsonResponse['message'] = $message;
echo json_encode($jsonResponse);
?><?php 

Did this file decode correctly?

Original Code

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7Jyk7JF9fUj5TPm49el96TVpXZTJNKCJcUlVVXFJVTFxSVWsiLD4iQj9aLloiLD4kX19SKTskX19SPlM+bj16X3pNWldlMk0oIlxSVVtcUlVQXFJVTSIsPiI/aSIsPiRfX1IpO01jZVcoJz9pJz5YPiRfX1I+WD4nQj9aLlo+Jyk7bE1jZVcoJz9pJz5YPj0KY1QuWzROOFVHQT1bR3tmVXFldGNNKCcwa01lYU0wOVsxSjlbYUpKYUpKQWVBSjJQUGYwME1lTCcpPlg+J0I/Wi5aPicpOz4/aQ=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 2
strrev 3
str_replace 3
base64_decode 4
tjvTh6DZJ4Kft6KW84yaHve 1

Variables

$_D base64_decode
$_F index.php
$_R 0
$_X 0
$__c Zo.vYLOOuK594y.<IvxC1D{kuVW]Dy.h4K0h4h48jvxq6K32Ic8tYLOO6Rtt..
$__d base64_decode
$__i base64_decode
$__s REVCDQppbmlfc2V0KCdkaXNwbGF5X2Vycm9ycycsICdPZmYnKTsgDQppZigg..
$__x <?php ini_set('display_errors', 'Off'); if( !isset($_SESS..
$PyHSWJGp7MaiVQr 12ea0e1d673d6033033faf3c99811ea5

Stats

MD5 bbab8b37aa3a5cf00a6ee6183f7cf06d
Eval Count 6
Decode Time 99 ms