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

Decoded Output download

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

$per  = (isset($_GET["txtPer"]))?$_GET["txtPer"]:date("Y",time());
$next = $per + 1;
$texto = '';
$muni =$_SESSION["sistemVARS"]["cod"]; 
$archivo = 'PRESU'.$_SESSION["sistemVARS"]["cod"].$next;

header('Content-type: application/txt');
header("Content-Disposition: attachment; filename=$archivo.sql");

$sql = "SELECT 'G' as tipo,t.clas, t.prg, t.fdo,
		IFNULL(SUM(k.monto),0) AS presupuesto, 
		IFNULL((SELECT ROUND(SUM(r.monto)/8*12,2) FROM af_exec r, af_gasto g WHERE r.pres = t.pres AND g.cod = r.ref AND r.tipo = 'G'
		AND YEAR(g.fpago) = '$per' AND MONTH(g.fpago)<= 8 AND g.pago = 1
		GROUP BY r.pres),0) AS estimado
		FROM af_tgasto t
		LEFT JOIN cat_mclas m ON t.clas = m.cod
		LEFT JOIN cat_mprog c ON t.prg = c.cod
		LEFT JOIN af_proy p ON t.prg = p.proy AND p.per = '$per'
		LEFT JOIN af_pres k ON k.pres = t.pres AND k.oper = 'P'
		LEFT JOIN af_mbanco f ON f.fondo = t.fdo
		WHERE t.per = '$per' AND t.prg NOT IN (SELECT cod FROM af_proy WHERE per = '$per')
		GROUP BY t.pres
		UNION
		SELECT 'I' as tipo, ti.clas, '' AS prg, '' AS fdo, IFNULL(SUM(po.monto),0) AS presupuesto, 
		IFNULL((SELECT ROUND(SUM(ri.monto)/8*12,2) FROM af_exec ri, af_ing gi WHERE ri.pres = ti.pres AND gi.cod = ri.ref AND ri.tipo = 'I'
		AND YEAR(gi.fecha) = '$per' AND MONTH(gi.fecha)<= 8 
		GROUP BY ri.pres),0) AS estimado
		FROM af_ting ti
		LEFT JOIN af_pres po ON po.pres = ti.pres
		LEFT JOIN cat_ing ci ON ci.cod = ti.clas
		LEFT JOIN x_ing hi ON hi.pres = ti.pres
		WHERE  ti.per = '$per'
		GROUP BY ti.clas ";
$dato = mysql_query($sql);
$dt = new dataTable($sql);
?>
<style>
	#divBotonesM button
	{
		margin-left:60px;
	}

</style>
<div id ="divresultadocontra"></div>

<form action="" method="post" id="frmMaestroComntralor">

<table>
<tr>
	<td>
		<strong>Nombre del Archivo:</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class='' readonly='readonly' value='<?php echo $archivo; ?>' name='txtArchivo' id='txtArchivo'>
	</td>	
	<td>
		<div id="divBotonesM">
				<button type="button"  class = "btnMail" title = "Enviar por Mail" onclick="mail(<?php echo $muni?>,<?php echo $next?> );" ></button>
				<button type="button" value="Save" class = "btnSave" title = "Salvar Archivo" onclick="archivocontralor()"; ></button>
		</div>
	</td>
	<td>
	<?php 
	echo "Para copiar el Archivo Generado <a href='archivos/transpres/$archivo'>Archivo</a>";
	
	
	?>
	</td>
</tr>
</table>

<table>
<tr>
<td>
<textarea name='txtDoc' id='txtDoc' readonly = 'readonly' style='width:900px; height:300px'><?php 
if ($dt->numRows > 0)
{
$linea = "INSERT INTO fp_pres ( pres, tipo, prg, clas, fdo,act, est, muni, per) VALUES
";
echo $linea;
$texto .= $linea;

	while ($row=mysql_fetch_array($dato))
	{
	$pres = $row["prg"].$row["clas"].$row["fdo"];
	$tipo = $row["tipo"];
	$prg = $row["prg"];
	$clas = $row["clas"];
	$fdo = $row["fdo"];
	$ant = $row["presupuesto"];
	$est = $row["estimado"];

	
	$linea = "('{$pres}','{$tipo}','{$prg}','{$clas}','{$fdo}','{$ant}','{$est}','{$muni}','{$next}'),
";
	echo $linea;
	$texto .= $linea;
	}
	
	$texto = trim($texto);
	$texto = substr($texto,0, strlen($texto)-1);

$_SESSION["sqlDataPDF"] = array("textoarchivo"=>$texto);
}
else
{ echo "

	NO EXISTEN DATOS PARA TRANSFERIR...

";
}
?></textarea>
</td>
</tr>
</table>


<script language='javascript'>
function archivocontralor()

{
	archivo = document.getElementById("txtArchivo").value;
	texto = document.getElementById("txtDoc").value;
	
	if (confirm("Desea Grabar el Archivo Generado?"))
	{
		cargarEn("divresultadocontra","modulos/presupuesto/savearchivo.php","archivo="+archivo);
	}
	
}

function mail(mes, per)

{
	archivo = document.getElementById("txtArchivo").value + '.sql';
	
	
	if (confirm("Desea Enviar por Mail el Archivo Generado?"))
	{
	abrirOpcion("divPreMailWindows","CYT-MUNICIPIA: Administraci&oacute;n Local / Envio de Mail", "modulos/presupuesto/enviomail.php?archivo="+archivo+"&mes="+mes+"&per="+per,true, 550, 300);
			
	}
	
}
</script>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_C60465765='Pz48P2NLYw0Ka2hhOGVpSigiLi4vLi4vOGtYeUp5a3gvSmhDa2hKLmNLYyIpOw0KDQokY0p5ICA9IChrNjZKdSgkXzR6cFsidW51ZEp5Il0pKT8kXzR6cFsidW51ZEp5Il06aXh1SigiTSIsdWttSigpKTsNCiRoSm51ID0gJGNKeSArIDM7DQokdUpudVMgPSAnJzsNCiRtZWhrID0kXzd6NzdaRzVbIjZrNnVKbWpBbDciXVsiYVNpIl07IA0KJHh5YUtrVFMgPSAnZGx6N0wnLiRfN3o3N1pHNVsiNms2dUptakFsNyJdWyJhU2kiXS4kaEpudTsNCg0KS0p4aUp5KCdOU2h1Smh1LXVGY0o6IHhjYzhrYXh1a1NoL3VudScpOw0KS0p4aUp5KCJOU2h1Smh1LVlrNmNTNmt1a1NoOiB4dXV4YUttSmh1OyAyazhKaHhtSj0keHlhS2tUUy42OTgiKTsNCg0KJDY5OCA9ICI3elB6TnAgJzQnIHg2IHVrY1MsdS5hOHg2LCB1LmN5QywgdS4yaVMsDQoJCVpnNUxQUCg3TFUoMC5tU2h1UykscikgQTcgY3lKNmVjZUo2dVMsIA0KCQlaZzVMUFAoKDd6UHpOcCBsR0w1WSg3TFUoeS5tU2h1UykvUSozbyxvKSBnbEdVIHgyX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
$_R 0
$_C60465765 0

Stats

MD5 4acb6144fa4031ba0ed0d28ccdf03275
Eval Count 2
Decode Time 49 ms