!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\phpscripts\   drwxrwxrwx
Free 7.98 GB of 239.26 GB (3.33%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     cdp2.php (18.05 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Solicitud de CDP (Certificados de Disponibilidad Presupuestal)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function poner(a) {
a = Number(a);
document.form1.post.value = a;
}


function sumar(a,nam) {
d = document.form1.post.value;
d = Number(d);
a = Number(a);
b = document.form1.total.value;
b = Number(b);
b = b - d;
sum = a+b;
document.form1.total.value = sum;
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' debe contener un número.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) 
  {
  alert('El siguiente error ocurrio:\n'+errors);
  if (nm=='valor') {
  document.form1.valor.value=0;
  }
  if (nm=='duracion') {
  document.form1.duracion.value=0;
  }
  }
  document.MM_returnValue = (errors == '');
}
//-->
</script>
<style type="text/css">
<!--
textarea {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
    background-color: #FFFAD7;
}
-->
</style>
<style type="text/css">
<!--
select {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    background-color: #FFFFFF;
}
-->
</style>
</head>

<body topmargin="0">
<table width="100%" border="0" cellpadding="8">
  <tr>
    <td width="30%">&nbsp;</td>
    <td width="40%"><img src="cdp.gif" width="600" height="80"></td>
    <td width="30%">&nbsp;</td>
  </tr>
  <tr>
    <td width="30%">&nbsp;</td>
    <td width="40%"><form name="form1" method="post" action="reqcdp3.php">
        <table width="100%" border="0" cellpadding="4" bgcolor="#E6F2FF">
          <tr> 
            <td colspan="2"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Dependencia:</strong> 
              <?php echo $dep?> 
              <input name="dep" type="hidden" id="user2" value="<?php echo $dep?>">
              </font></td>
            <td colspan="2"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Usuario:</strong> 
              <?php echo $user?></font></td>
          </tr>
          <tr> 
            <td colspan="4" bgcolor="#F4F4F4"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>1. 
              Datos B&aacute;sicos del CDP</strong></font></td>
          </tr>
          <tr> 
            <td colspan="2"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Objeto:</font></td>
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Vigencia: 
              </font></td>
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $vigencia?> 
              <?php
            
require('conexion2.php');
              
$stmt ociparse($c1,"SELECT PLAN_PRESUPUESTO_ID
               FROM SIA_PLAN_PRESUPUESTO
                 WHERE ANO = '
$vigencia'");
              
$result OCIExecute($stmt);
              while (
OCIFetchInto($stmt$value)) {
              
$presupuesto $value[0];
              
//echo $presupuesto;
              
}
              
?>
              </font></td>
          </tr>
          <tr> 
            <td colspan="4"><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $objeto?> 
                </font></div></td>
          </tr>
          <tr> 
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Valor: 
              </font></td>
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
              <input name="valor" type="text" id="valor" onBlur="MM_validateForm('valor','','NisNum');return document.MM_returnValue" value="0" size="20">
              </font></td>
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Valor 
              de la Vigencia: </font></td>
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
              <?php
            
require('conexion2.php');
              
$stmt ociparse($c1,"Select valor
              From Sia_plan_act_anos
              Where Plan_actividades_id = '
$actividad' And 
              Plan_presupuesto_id = '
$presupuesto'");
              
$result OCIExecute($stmt);
              while (
OCIFetchInto($stmt$value)) {
              
$valorvigencia $value[0];
              
$valorvigencia1 number_format($valorvigencia);
              }
              
?>
              $ 
              <input name="valorvigencia" type="text" id="valorvigencia" size="20" value="<?php echo $valorvigencia1?>">
              </font></td>
          </tr>
          <tr> 
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Saldo:</font></td>
            <td colspan="3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
              <?php
            
require('conexion2.php');
              
$stmt ociparse($c1,"Select valor
              From Sia_plan_cdp_enc
              Where Plan_actividades_id = '
$actividad' And 
              Plan_presupuesto_id = '
$presupuesto' and (estado = 'P' or estado = 'A')");
              
$result OCIExecute($stmt);
              
$suma 0;
              while (
OCIFetchInto($stmt$value)) {
              
$suma $suma $value[0];
              }
              
//echo $suma;
              
$saldo $valorvigencia $suma;
              
$sal $saldo;
              
$saldo number_format($saldo);
              
?>
              $ 
              <input name="saldo" type="text" id="saldo" size="20" value="<?php echo $saldo?>">
              </font></td>
          </tr>
          <tr> 
            <td colspan="4"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Actividad: 
              </strong> </font></td>
          </tr>
          <tr> 
            <td colspan="4" bgcolor="#B3D7FF"> <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
                </font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
                <?php
               
//////////////////////////////////////////////////////////////
               
require('conexion2.php');          
              
$stmt ociparse($c1,"SELECT NOMBRE, CODIGO_PROYECTO, NOMBRE_PROYECTO
                FROM SIA_PLAN_ACTIVIDADES
                WHERE PLAN_ACTIVIDADES_ID = 
$actividad");
              
$result OCIExecute($stmt);
                  if (
$result == false) {
                  
?>
                Ninguna 
                <?php
                
}else{
                while (
OCIFetchInto($stmt$value)) {
                
$nom $value[0];
                
$c_pro $value[1];
                
$n_pro $value[2];
                echo 
$nom;    
                } }
                
?>
                </font></div></td>
          </tr>
          <tr> 
            <td colspan="4"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Proyecto: 
              </strong></font></td>
          </tr>
          <tr> 
            <td colspan="4" bgcolor="#CCCCFF"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $c_pro?> - <?php echo $n_pro?></font></td>
          </tr>
          <tr> 
            <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Dependencia 
              <br>
              del CDP: </font></td>
            <td colspan="3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><?php echo $dep?></strong></font></td>
          </tr>
          <tr> 
            <td width="19%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Duraci&oacute;n: 
              </font></td>
            <td width="36%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
              <input name="duracion" type="text" id="duracion" onBlur="MM_validateForm('duracion','','NisNum');return document.MM_returnValue" value="0" size="5">
              Meses </font></td>
            <td width="15%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Fecha 
              de Inicio <br>
              Esperada:</font></td>
            <td width="30%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; 
              </font></td>
          </tr>
          <tr> 
            <td width="19%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Categor&iacute;a 
              del Gasto:</font></td>
            <td width="36%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
              <select name="categoria" id="categoria">
                <?php
              
require('conexion2.php');
              
$stmt ociparse($c1,"SELECT NOMBRE,PLAN_CATEGORIAS_ID
                FROM SIA_PLAN_CATEGORIAS"
);
              
$result OCIExecute($stmt);
                  if (
$result == false) {
                  
?>
                <option value="0">Sin Datos</option>
                <?php
                
}else{
                while (
OCIFetchInto($stmt$value)) {
                
$nomc $value[0];
                
$pcid $value[1];
                
?>
                <option value="<?php echo $pcid?>"><?php echo $nomc?></option>
                <?php
                
}
                }
              
?>
              </select>
              </font></td>
            <td colspan="2"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
              <select name="dia" id="dia">
                <option value="1">01</option>
                <option value="2">02</option>
                <option value="3">03</option>
                <option value="4">04</option>
                <option value="5">05</option>
                <option value="6">06</option>
                <option value="7">07</option>
                <option value="8">08</option>
                <option value="9">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
              </select>
              <select name="mes" id="mes">
                <option value="01">Enero</option>
                <option value="02">Febrero</option>
                <option value="03">Marzo</option>
                <option value="04">Abril</option>
                <option value="05">Mayo</option>
                <option value="06">Junio</option>
                <option value="07">Julio</option>
                <option value="08">Agosto</option>
                <option value="09">Septiembre</option>
                <option value="10">Octubre</option>
                <option value="11">Noviembre</option>
                <option value="12">Diciembre</option>
              </select>
              <select name="ano" id="ano">
                <option value="2004">2004</option>
                <option value="2005">2005</option>
                <option value="2006">2006</option>
                <option value="2007">2007</option>
                <option value="2008">2008</option>
                <option value="2009">2009</option>
                <option value="2010">2010</option>
              </select>
              </font></td>
          </tr>
          <tr> 
            <td colspan="4" bgcolor="#F4F4F4"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>2. 
              Detalle del CDP</strong></font></td>
          </tr>
          <tr> 
            <td colspan="4"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Metas 
              a las que apunta en el Plan de Desarrollo:</font></td>
          </tr>
          <tr> 
            <td colspan="4"><table width="100%" border="0" cellpadding="2">
                <?php
                      
require('conexion2.php');
                       
$stmt ociparse($c1,"SELECT NOMBRE_META,PLAN_METAS_ID,PCTE_PRG
                    FROM SIA_PLAN_METAS_ACT
                    WHERE PLAN_ACTIVIDADES_ID = '
$actividad'");
                      
$result OCIExecute($stmt);
                    if (
$result == false) {
                      
?>
                <td width="77%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                  <select name="meta1" id="meta1">
                    <option value="0">Sin Datos</option>
                  </select>
                  </font></td>
                <td width="23%"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                    <input name="val1" type="text" id="val1" size="20">
                    </font></div></td>
                <?php
                    
}else{
                    
$yh 1;
                    while (
OCIFetchInto($stmt$value)) {
                    
$nome $value[0];
                    
$nome substr($nome090);
                    
$pmid $value[1];
                    
?>
                <tr> 
                  <td width="77%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                    <select name="meta[<?php echo $yh?>]" id="meta1">
                      <option value="0">Ninguna</option>
                      <?php
                      $stmt2 
ociparse($c1,"SELECT NOMBRE_META,PLAN_METAS_ID,PCTE_PRG
                    FROM SIA_PLAN_METAS_ACT
                    WHERE PLAN_ACTIVIDADES_ID = '
$actividad'");
                            
$result OCIExecute($stmt2);
                    while (
OCIFetchInto($stmt2$value2)) {
                    
$nome $value2[0];
                    
$nome substr($nome090);
                    
$pmid $value2[1];
                    
?>
                      <option value="<?php echo $pmid?>"><?php echo $nome?></option>
                      <?php
                    
}
                    
?>
                    </select>
                    </font></td>
                  <td width="23%"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                      <input name="val[<?php echo $yh?>]" type="text" onfocus="poner(this.value)" onchange="sumar(this.value,this.name)" size="20" value="0">
                      </font></div></td>
                  <?php
                  $yh
++;
                    }
                
?>
                </tr>
                <?php
                                
}
                                
$yh
              ?>
                <tr> </tr>
                <tr> 
                  <td width="77%"><div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Total:</strong></font></div></td>
                  <td width="23%" bgcolor="#B3D7FF"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                      <input name="total" type="text" id="total" value="0" size="20">
                      </font></div></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td colspan="4"><div align="center"> 
                <input type="submit" name="Submit" value="Guardar el CDP">
                <input name="post" type="hidden" id="campos" value="">
                <input name="actividad" type="hidden" id="actividad" value="<?php echo $actividad?>">
                <input name="user" type="hidden" id="user" value="<?php echo $user?>">
                <input name="money" type="hidden" id="money" value="<?php echo $sal?>">
                <input name="actividadnom" type="hidden" id="actividadnom" value="<?php echo $nom?>">
                <input name="presupuesto" type="hidden" id="presupuesto" value="<?php echo $presupuesto?>">
                <input name="c_pro" type="hidden" id="presupuesto2" value="<?php echo $c_pro?>">
                <input name="n_pro" type="hidden" id="presupuesto3" value="<?php echo $n_pro?>">
                <input name="objeto" type="hidden" id="n_pro" value="<?php echo $objeto?>">
                <input name="vigencia" type="hidden" id="objeto" value="<?php echo $vigencia?>">
              </div></td>
          </tr>
          <tr> 
            <td colspan="4" bgcolor="#F4F4F4"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>3. 
              Observaciones</strong></font></td>
          </tr>
          <tr> 
            <td colspan="4"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Guarde 
              el CDP solo cuando este seguro de que los datos consignados sean 
              los correctos, pues de otra forma usted grabar&aacute; con su usuario 
              datos inconsistentes que pueden entorpecer la gesti&oacute;n del 
              certificado.</font></td>
          </tr>
        </table>
      </form></td>
    <td width="30%">&nbsp;</td>
  </tr>
  <tr>
    <td width="30%">&nbsp;</td>
    <td width="40%"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Todos 
        los Derechos Reservados para el <br>
        <font color="#006699">Departamento T&eacute;cnico Administrativo del Medio 
        Ambiente, </font><br>
        DAMA<br>
        <strong>2004 - 2005</strong></font></div></td>
    <td width="30%">&nbsp;</td>
  </tr>
</table>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0468 ]--