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__;$_C60465765='Pz48PzVWNQkNCnpHQjFiVUQoJy4uLy4uLy4uLzF6cXlEeXpUL0RHMnpHRC..

Decoded Output download

?><?php	
include('../../../libreria/engine.php');

require_once('../fpdf.php');

$muni = utf8_decode($_SESSION["sistemVARS"]["nombre"]);
$clave = $_SESSION["sistemVARS"]["cod"];	

if(isset($_SESSION["sqlDataPDF"]))
{
	$pdfData = $_SESSION["sqlDataPDF"];
}
else
{
	echo "No hay datos que mostrar";
	exit();
}

$sql = $pdfData["textoSQL2"];

$rs = mysql_query($sql);

class Listaemp extends FPDF
{
	
	var $ProcessingTable;   //Es la propiedad que indica si se esta procesando la tabla, para repetir nuevamente el encabezado.
	var $anchos;       // Son los anchos de las diferentes columnas
	var $left;        //Margen izquierdo inicial
	var $ultimoDia;
	function Header()
	{					     //0  1   2 3 4   5  6 
		$this->anchos = array(30,30,85,35,25,12,17);//los anchos de las columnas
		$this->left = 17;
		$this->ProcessingTable = true;
		//Print the table header if necessary
		
	}
	
	function TableHeader($dia='x', $y=38, $c=false)
	{
		if($c)
		{
			$dia = $this->ultimoDia;
		}
		$this->ultimoDia = $dia;
		$alto = 6;   //Es el alto de la linea
		$this->SetFillColor(209,211,223);
		$this->SetFont('Arial','B',13);
		$this->SetXY($this->left,$y);

		$this->Cell($this->anchos[0],$alto,"Fecha", 'LRBT',0,'C',1);
		$this->Cell($this->anchos[1],$alto,"# Documento", 'LRBT',0,'C',1);
		$this->Cell($this->anchos[2],$alto,"Detalle", 'LRBT',0,'C',1);
		$this->Cell($this->anchos[3],$alto,"Monto", 'LRBT',0,'C',1);
	
	}
	
	function agregarDatos($rs)
	{
		$inicioDeTabla = 50;   ///////////////////// Indica donde va iniciar la tabla a nivel de top
		$y = $inicioDeTabla;
		$alto = 6;
	
		$dia='';
		$cant = 0;
		$monto = 0;
		$subtotal = 0;
		$tcant = 0;
		$total = 0;
		$tdesc = 0;
		$tneto = 0;
		$color = true;
		$inicio = true;
		$ttcant = 0;
		
		while ($row = mysql_fetch_array($rs))
		{
			if($inicio==true)
			{
				$y += 2;
				$this->TableHeader($row["dpto"], $y);
				$y+=6;//esto es para setear el inicio del detalle
				$inicio = false;
			}
			
			if ($row["dpto"] != $dia)
			{
				
					if($dia != "")
					{
						
						$y += $alto;
						$alto = 6;
						if($y > 255)
						{
							$this->AddPage();
							$y = $inicioDeTabla;
							$inicio = true;
						}
					
					
						$y += 2;
						$this->TableHeader($row["dpto"], $y);
						$y+=8;
					}
					

				
			}
						
			$this->SetFont('Arial','',11);
			$this->SetXY($this->left,$y);
			$fecha1=$row['fecha'];
			$fecha2=date("d/m/Y",strtotime($fecha1));
			//date_format($date, 'd/m/Y H:i:s');	
			$this->Cell($this->anchos[0],$alto,$fecha2, 1,0,'C');   //nombre		
			$this->Cell($this->anchos[1],$alto,$row['Documento #'], 1,0,'C');   //codigo
			$this->Cell($this->anchos[2],$alto,utf8_decode(substr($row['det'].$row['detalle'],0,33)), 1,0,'L');   //cargo
			$this->Cell($this->anchos[3],$alto,number_format($row['monto'],2), 1,0,'R');   //caedula
			$cant += 1;
			$total += $row['monto'];

			
				
			
			$y += $alto;
			$alto = 6;
			if($y > 255)
			{
				$this->AddPage();
				$y = $inicioDeTabla;
				$inicio = true;
			}
			
		}
		

		$this->SetFont('Arial','B',11);
		$this->SetXY($this->left,$y);
		$this->SetFillColor(180,180,180);
		$this->Cell ($this->anchos[0],$alto,"Total", 1,0,'C',1);  
		$this->SetFillColor(180,180,180);
		$ancho = $this->anchos[1]+ $this->anchos[2]+ $this->anchos[3];
		$this->Cell($ancho,$alto,number_format($total,2), 1,0,'R',1);
		
		
		$y += $alto;
		
					
	}
}

class PDF extends Listaemp
{	
	var $trimestre;
	function Header()
	{
		$muni = utf8_decode($_SESSION["sistemVARS"]["nombre"]);
		$clave = $_SESSION["sistemVARS"]["cod"];
		$alto = 5;
		$titulo = 'nada nada';
		//Title
		$this->SetFont('Arial','B',12);
		
		//$this->SetXY(80,20);	
		$this->Image('../../../images/logo_report.jpg',95,0,20,0 );
		$this->SetY(22);
		$this->Cell(0,$alto,$muni,0,1,'C');
		$this->Cell(0,$alto,'Conciliacin Bancaria ',0,1,'C');
		$this->Cell(0,$alto,strtoupper($_SESSION["sqlDataPDF"]["titulo"]),0,1,'C');
		$this->Cell(0,$alto,"Relacin de Notas en Dbitos",0,1,'C');
		$this->Cell(0,$alto,$_SESSION["sqlDataPDF"]["titulo2"],0,1,'C');
		
		$this->Line(17, 50, 197, 50);
		

		//Ensure table header is output
		parent::Header();
	}
	
	//Pie de pgina
	function Footer()
	{
		$fecha = date("d/m/Y, h:i A");
		//Posicin: a 1,5 cm del final
		
		$this->Line(10, 265, 205, 265);
		$this->SetY(-15);
		//Arial italic 8
		$this->SetFont('Arial','I',6);
		//fecha y hora
		$this->Cell(10,10,$fecha,0,0);
		$this->Cell(0,15,utf8_decode('Banco'),0,0,'L');
		//Nmero de pgina
		$this->Cell(0,10,'Pgina '.$this->PageNo().' de {nb}',0,0,'R');
		$this->SetY(-12);
		$this->Cell(0,10,'Powered by Municipia',0,0,'R');
	}

}



$pdf=new PDF('P', 'mm', 'Letter');

$pdf->AliasNbPages();
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->agregarDatos($rs);
//unset($_SESSION["sqlDataPDF"]);
$pdf->Output();
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_C60465765='Pz48PzVWNQkNCnpHQjFiVUQoJy4uLy4uLy4uLzF6cXlEeXpUL0RHMnpHRC41VjUnKTsNCg0KeURuYnp5RF9NR0JEKCcuLi9lNVVlLjVWNScpOw0KDQokbGJHeiA9IGI5ZXBfVURCTVVEKCRfdHJ0dGc0aVsiSHpIOURsM0FjdCJdWyJHTWxxeUQiXSk7DQokQjFUOEQgPSAkX3RydHRnNGlbIkh6SDlEbDNBY3QiXVsiQk1VIl07CQ0KDQp6ZSh6SEhEOSgkX3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CiQ1VWUtPlQyeUQyVHltVDlNSCgkeUgpOw0KLy9iR0hEOSgkX3RydHRnNGlbIkhuMW1UOVRhbVoiXSk7DQokNVVlLT40Yjk1YjkoKTsNCj8+';$_D=strrev('edoced_46esab');eval($_D('JF9DNjA0NjU3NjU9YmFzZTY0X2RlY29kZSgkX0M2MDQ2NTc2NSk7JF9DNjA0NjU3NjU9c3RydHIoJF9DNjA0NjU3NjUsJ0dBd3VyN0xvaUtOc2RQeXgxMFpxSmZwOWxVak9YNmhFVFI4YlZjUXZ6bmUzQmtTNTREQ1dGTWdIWW1hSXQyJywnbkE5d0VHalROUWtITXpyeWwzRmJaTDh0bWRKVTFXMllhQ3Z1aFI2eGlxZlZjQktwT2U1NzRvSXNYRFAwU2cnKTskX1I9c3RyX3JlcGxhY2UoJ19fRklMRV9fJywiJyIuJF9GLiInIiwkX0M2MDQ2NTc2NSk7ZXZhbCgkX1IpOyRfUj0wOyRfQzYwNDY1NzY1PTA7'));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_C60465765 0

Stats

MD5 fb44fa8bbe65bf54205bdca94239772c
Eval Count 2
Decode Time 127 ms