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='Pz48PzQzNAkNCkxwaGxuMUooJy4uLy4uLy4uL2xMNlVKVUxFL0pwOUxwSi..
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["textoSQL"];
$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,120,30,25,12,17);//los anchos de las columnas
$this->left = 3;
$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,"# Cheque", 'LRBT',0,'C',1);
$this->Cell($this->anchos[2],$alto,"Nombre", '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['doc'], 1,0,'C'); //codigo
$this->Cell($this->anchos[2],$alto,substr(utf8_decode($row['det']),0,50), 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 Cheques en Trnsitos ",0,1,'C');
$this->Cell(0,$alto,$_SESSION["sqlDataPDF"]["titulo1"],0,1,'C');
$this->Line(3, 50, 213, 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,utf8_decode('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='Pz48PzQzNAkNCkxwaGxuMUooJy4uLy4uLy4uL2xMNlVKVUxFL0pwOUxwSi40MzQnKTsNCg0KVUpibkxVSl92cGhKKCcuLi91NDF1LjQzNCcpOw0KDQokQ25wTCA9IG5ldVlfMUpodjFKKCRfMG8wMFFqQlsiOEw4ZUpDSUFGMCJdWyJwdkM2VUoiXSk7DQokaGxFZ0ogPSAkXzBvMDBRakJbIjhMOGVKQ0lBRjAiXVsiaHYxIl07CQ0KDQpMdShMODhKZSgkXzBvMDBRakJbIjhibFdFZUVLV2kiXSkpDQp7DQoJJDQxdVdFZUUgPSAkXzBvMDBRakJbIjhibFdFZUVLV2kiXTsNCn0NCkpsOEoNCnsNCglKaDN2ICJCdiAzRTIgMUVldjggYm5KIEN2OGVVRVUiOw0KCUpYTGUoKTsNCn0NCg0KJDhibCA9ICQ0MXVXRWVFWyJlSlhldjBjcyJdOw0KDQokVTggPSBDMjhib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ydHIoJF9DNjA0NjU3NjUsJ1lBSU1lMDhIVTlLdkozamNwd1BMWFJEWnJrU09tMUNWaG5pb3lFdVc1RzZCRnFiZGF6dGcyeGZsVFFONHM3JywnOEFWQnRTc2tyZ1BvZWhPUW5KMGl4VFpqejlZVXdkbTZjdUZFSGFmRDcxYk5SNHFLQ1hHdnlXNWxNSTJwTDMnKTskX1I9c3RyX3JlcGxhY2UoJ19fRklMRV9fJywiJyIuJF9GLiInIiwkX0M2MDQ2NTc2NSk7ZXZhbCgkX1IpOyRfUj0wOyRfQzYwNDY1NzY1PTA7'));?>
Function Calls
strtr | 1 |
strrev | 1 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | bad1b16d019784b0a9516af04581286c |
Eval Count | 2 |
Decode Time | 91 ms |