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='Pz48P2VTZQ0KCU9kbmpQRzgoIi4uLy4uL2pPTDY4Nk95LzhkME9kOC5lU2..
Decoded Output download
?><?php
include("../../libreria/engine.php");
$condicion = '';
$per = $_SESSION["sistemVARS"]["per"];
if($_POST)
{
$programa = $_POST["txtPrgEnBusquedaPres"];
mostrarPresupuesto($programa);
exit();
}
if ($per > 2011)
{
$condicion = " AND c.ver = 'B' ";
}
else
{
$condicion = " AND c.ver = 'A' ";
}
$sql = "SELECT 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
GROUP BY t.prg ORDER BY t.prg
";
$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($programa='')
{
$condicion = "";
$linea = "";
if (isset($_GET["fondo"])&&$_GET["fondo"] > 0)
{
$fdo = $_GET["fondo"];
$condicion = " AND t.fdo = $fdo ";
}
$condicion .= ($programa !="")?" and t.prg='$programa' ":"";
$per = $_SESSION["sistemVARS"]["per"];
if ($per > 2011)
{
$linea = " AND c.ver = 'B' ";
}
else
{
$linea = " AND c.ver = 'A' ";
}
$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
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 $condicion GROUP BY t.pres ORDER BY t.pres";
//El fondo
$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]) -5);
}
}
$grid = new dataGrid($dt);
$grid->setRowAction("ondblclick", "seleccionarDetalle",array("pres", "detn", "balance"));
$grid->display();
//ondblclick=\"seleccionarDetalle('{$row['pres']}', '{$row['detn']}', '{$balance }')\" class='luminicos'
}
?>
<form method='post' action ='modulos/compra/codigosPresOrden.php' id='frmBusquedaCodPres'>
<div>
Programa:
<?php
$txtPrg->display();
?>
<br/><br/>
</div>
</form>
<div id='tbodyCodigoPresupuestarios'>
<?php
mostrarPresupuesto();
?>
</div>
<script language='javascript'>
asgForm($("#frmBusquedaCodPres"),$("#tbodyCodigoPresupuestarios") );
</script>
Did this file decode correctly?
Original Code
<?php $_F=__FILE__;$_C60465765='Pz48P2VTZQ0KCU9kbmpQRzgoIi4uLy4uL2pPTDY4Nk95LzhkME9kOC5lU2UiKTsNCgkkbllkR09uT1lkID0gJyc7DQoJJGU4NiA9ICRfc1hzc0tpN1siUk9SVThvSEFOcyJdWyJlODYiXTsNCgkNCgkNCgkNCk9DKCRfemlzbCkNCnsNCgkJJGU2WTA2eW95ID0gJF96aXNsWyJVRFV6NjBYZDVQUnZQOEd5ejY4UiJdOw0KCQlvWVJVNnk2ejY4UlBlUDhSVVkoJGU2WTA2eW95KTsNCgkJOERPVSgpOw0KfQ0KCQ0KCU9DICgkZTg2ID4gNHhoaCkNCgkNCgl7DQoJCSRuWWRHT25PWWQgPSAiIEE3MiBuLjk4NiA9ICc1JyAiOw0KCX0NCgk4alI4DQoJDQoJew0KCQkkbllkR09uT1lkID0gIiBBNzIg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