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='Pz48P2l5aQ0KCVd4Y2dMMEUoIi4uLy4uL2dXUm5FbldUL0V4OVd4RS5peW..
Decoded Output download
?><?php
include("../../libreria/engine.php");
$per = $_SESSION["sistemVARS"]["per"];
$fondo = $_GET["fondo"] + 0;
$condicion = '';
////paraa maenejar el cambio de catalogo 2011-2012
if ($per > 2011)
{
$condicion .= " AND c.ver = 'B' ";
}
else
{
$condicion .= " AND c.ver = 'A' ";
}
/////
$sql = "SELECT t.prg, concat(t.prg, '-', IF(p.detprg IS NULL,c.detprg,p.detprg)) AS det
FROM af_tgasto t
LEFT JOIN cat_mprog c ON t.prg = c.cod $condicion
LEFT JOIN af_proy p ON t.prg = p.proy AND p.per =t.per
WHERE t.per = $per and t.fdo = $fondo
GROUP BY t.prg ORDER BY t.prg
";
if($_POST)
{
$programa = $_POST["txtPrgEnBusquedaPres"];
mostrarPresupuesto($fondo, $programa);
exit();
}
$dt = new dataTable($sql);
if ($dt->numRows > 0)
{
foreach($dt->data["det"] as &$dato)
{
$dato = ($dato);
}
}
$txtPrg = new comboBox("txtPrgEnBusquedaPres", $dt);
$txtPrg->accion="onchange=\"$('#frmBusquedaCodPres').submit();\"";
function mostrarPresupuesto($fondo, $programa='')
{
$per = $_SESSION["sistemVARS"]["per"];
$condicion = '';
$linea = '';
////paraa maenejar el cambio de catalogo 2011-2012
if ($per > 2011)
{
$linea .= " AND c.ver = 'B' ";
}
else
{
$linea .= " AND c.ver = 'A' " ;
}
/////
$condicion .= ($programa !="")?" and t.prg='$programa' ":"";
$per = $_SESSION["sistemVARS"]["per"];
$sql = "SELECT t.pres, CONCAT(IF(p.detprg IS NULL,c.detprg,p.detprg), '-' , m.det) AS detn,
(SUM(q.monto) - IFNULL((SELECT SUM(monto) FROM af_exec WHERE pres = t.pres AND ref IN (SELECT cod FROM af_gasto WHERE stad = 1) ),0)) AS balance
, 'x' as x
FROM af_tgasto t
LEFT JOIN af_pres q ON t.pres = q.pres
LEFT JOIN cat_mclas m ON t.clas = m.cod
LEFT JOIN cat_mprog c ON t.prg = c.cod $linea
LEFT JOIN af_proy p ON t.prg = p.proy AND p.per =t.per
WHERE t.per = $per AND t.fdo =$fondo $condicion GROUP BY t.pres ORDER BY t.pres";
//El fondo
//ECHO $sql;
$dt = new dataTable($sql);
if ($dt->numRows > 0)
{
foreach($dt->data["pres"] as $llave=>&$valor)
{
$dt->data["detn"][$llave] = ($dt->data["detn"][$llave]);
$dt->data["pres"][$llave] = substr($dt->data["pres"][$llave],4,strlen($dt->data["pres"][$llave]));
$dt->data["x"][$llave] = $dt->data["balance"][$llave];
$dt->data["balance"][$llave] = "<div align='right'>". number_format($dt->data["balance"][$llave],2)."</div>";
}
}
$grid = new dataGrid($dt);
$grid->setRowAction("ondblclick", "seleccionarDetalle",array("pres", "detn", "x"));
$grid->noVisibles = array("x");
$grid->display();
//ondblclick=\"seleccionarDetalle('{$row['pres']}', '{$row['detn']}', '{$balance }')\" class='luminicos'
}
?>
<form method='post' action ='modulos/comprobante/codigosPresupuestarios.php?fondo=<?php echo $fondo; ?>' id='frmBusquedaCodPres'>
<div>
Programa:
<?php
$txtPrg->display();
?>
<br/><br/>
</div>
</form>
<div id='tbodyCodigoPresupuestarios'>
<?php
mostrarPresupuesto($fondo);
?>
</div>
<script language='javascript'>
asgForm($("#frmBusquedaCodPres"),$("#tbodyCodigoPresupuestarios") );
</script>
Did this file decode correctly?
Original Code
<?php $_F=__FILE__;$_C60465765='Pz48P2l5aQ0KCVd4Y2dMMEUoIi4uLy4uL2dXUm5FbldUL0V4OVd4RS5peWkiKTsNCgkNCgkkaUVuID0gJF8xdzExNGxxWyI4Vzh1RVNlQUQxIl1bImlFbiJdOw0KCSROYXgwYSA9ICRfVXdCWyJOYXgwYSJdICsgNzsNCgkkY2F4MFdjV2F4ID0gJyc7DQoJLy8vL2lUblRUIFNURXhFQ1RuIEVnIGN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