!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:\nuevo\htdocs\boletinlegal\admin\normativa\   drwxrwxrwx
Free 1.2 GB of 239.26 GB (0.5%)
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:     ingresar.php (14.61 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * UserEdit.php
 *
 * This page is for users to edit their account information
 * such as their password, email address, etc. Their
 * usernames can not be edited. When changing their
 * password, they must first confirm their current password.
 *
 * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
 * Last Updated: August 26, 2004
 */
include("../usuarios/include/session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="noI firefox" xmlns="http://www.w3.org/1999/xhtml"><head>
<link rel="shortcut icon" href="../../images/favicon.ico">
<title>Modulo Administraci&oacute;n</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=content-script-type content=text/JScript>
<script language="javascript">
function validar(formulario){
if(document.forms.f1.norma.value =="")
{
window.alert('Debe ingresar norma');
document.f1.norma.focus();
return(false);
}
if(document.forms.f1.ano.value =="")
{
window.alert('Debe ingresar el año');
document.f1.ano.focus();
return(false);
}
if(document.forms.f1.sector.value =="")
{
window.alert('Debe ingresar el sector');
document.f1.sector.focus();
return(false);
}
if(document.forms.f1.vinculo.value =="")
{
window.alert('Debe ingresar vinculo');
document.f1.vinculo.focus();
return(false);
}
if(document.forms.f1.resuelve.value =="")
{
window.alert('Debe ingresar el encabezado');
document.f1.resuelve.focus();
return(false);
}
if(document.forms.f1.publicacion.value =="")
{
window.alert('Debe seleccionar si se publica o no');
document.f1.publicacion.focus();
return(false);
}
}
</script> 
<!-- CSS -->
<link rel="stylesheet" href="../css/dynamic.css" type="text/css">
<link rel="stylesheet" href="../css/creation.css" type="text/css">
</head><body id="creation">
<?php
/**
 * User has submitted form without errors and user's
 * account has been edited successfully.
 */
if(isset($_SESSION['useredit'])){
   unset(
$_SESSION['useredit']);
   
   echo 
"<h1>User Account Edit Success!</h1>";
   echo 
"<p><b>$session->username</b>, tu cuenta ha sido actualizada satisfactoriamente. "
       
."<a href=\"index.php\">Inicio</a>.</p>";
}
else{
?>
<?php
/**
 * If user is not logged in, then do not display anything.
 * If user is logged in, then display the form to edit
 * account information, with the current email address
 * already in the field.
 */
if($session->logged_in){
?>

<?php include("../../conex.php");
 
//echo "$_POST[norma],$_POST[ano],$_POST[sector],$_POST[vinculo],$_POST[resuelve],$_POST[boletin_id]";

  
if( $_POST['inserta'] ){
   
           
           
    
$sql "select * from normatividad where norma ='$_POST[norma]' and sector ='$_POST[sector]'";
    
    
$cursor mysql_query$sql$conexion );
    if( 
mysql_fetch_array$cursor ) ){
     echo 
" <script language='JavaScript' type='text/javascript'>
alert('Ya existe 
$_POST[norma]') </script>";
    }
     
     else{
    
$sql "insert into normatividad values ('$_POST[id]','$_POST[norma]','$_POST[ano]','$_POST[resuelve]','$_POST[sector]','$_POST[vinculo]','$_POST[publicacion]','$_POST[boletin_id]')";  //echo $sql;
    
      
if( mysql_query $sql$conexion ) ){
        echo 
" <script language='JavaScript' type='text/javascript'>
alert('Registro ingresado') </script>"
;
    
    }
    }
  
  }
 
?>
<div id="container" class="clearfix">
<div>
<div> 
  <div align="left"><img src="../../images/cabezote BLEGAL.jpg" width="867" height="155" border="0" usemap="#Map">
      <map name="Map">
        <area shape="poly" coords="357,89" href="#">
        <area shape="poly" coords="566,169" href="#">
      </map>
  </div>
</div>
<div>

  
<FORM id=f1 name=f1 method=post onSubmit="return validar(this)">
  <TABLE width="800" border=2 style="BORDER-LEFT-COLOR: green; BORDER-BOTTOM-COLOR: green; BORDER-TOP-COLOR: green; BORDER-RIGHT-COLOR: green" align="center">
              <TBODY>
              <TR>
                <TD width="643" style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana">
                  <div>
                    <div align="left">
                      <TABLE>
                        <TBODY>
                          <TR>
                            <TD style="FONT-SIZE: 10pt; COLOR: black; HEIGHT: 18px; BACKGROUND-COLOR: #cccccc"><strong>Formulario de Ingreso Normativa: <span class="Estilo3">T</span></strong><span style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana"><strong>odos los campos deben ser 
                            diligenciados (obligatorios)</strong></span> <BR></TD>
                        </TR>
                          <TR>
                            <TD style="COLOR: white; BACKGROUND-COLOR: #8EE910">                            </TD></TR>
                          <TR>
                            <TD 
                      style="FONT-SIZE: 12pt; COLOR: red; BACKGROUND-COLOR: gainsboro; TEXT-ALIGN: center"><p><SPAN 
                        style="FONT-SIZE: 10pt">Si usted ya se encuentra en este modulo es porque tiene acceso a el. El ingreso de informaci&oacute;n no autorizado a este modulo est prohibido y puede estar sujeto a acciones civiles y penales.</SPAN> &nbsp;</p>                        </TD>
                        </TR>
                          <TR>
                            <TD 
                      style="FONT-SIZE: 8pt; COLOR: white; BACKGROUND-COLOR: #8EE910">
                              <TABLE>
                                <TBODY>
                                  <TR>
                                    <TD style="HEIGHT: 15px" 
                              align=middle><STRONG>Informaci&oacute;n de la Norma </STRONG></TD>
                                    <TD style="HEIGHT: 15px" align=right><A 
                              id=linAyudaNombre 
                              title="">Ayuda</A></TD></TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD 
                      style="HEIGHT: 42px; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: center">
                              <TABLE width="100%">
                                <TBODY>
                                  <TR bgcolor="#D4D0C8">
                                    <TD width="136" ><strong>Nombre de la Norma</strong></TD>
                                <TD width="122"><strong>A&ntilde;o</strong>&nbsp;<STRONG><span style="COLOR: orangered">(AAAA)</span></STRONG></TD>
                                <TD width="187"><strong>Sector</strong></TD>
                                <TD width="241" style="HEIGHT: 15px"><strong>Vinculo</strong>&nbsp;<span class="Estilo4"></span></TD>
                                <TD width="241" style="HEIGHT: 15px"><strong>Bolet&iacute;n</strong>&nbsp;<span class="Estilo4"></span></TD>
                              </TR>
                                  <TR bgcolor="#D4D0C8">
                                    <TD><INPUT id=norma tabIndex=1 
                              maxLength=50 name=norma style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;"></TD>
                                <TD><INPUT 
                              id=ano tabIndex=2 maxLength=4 
                              name=ano style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;"></TD>
                                <TD><span>
                                  <SELECT 
                              id=sector 
                             
                              name=sector style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;">
                                    <option value="publicidad">Publicidad Exterior Visual</option>
                                    <option value="emisiones">Emisiones Atmosfericas</option>
                                    <option value="mineria">Mineria</option>
                                    <option value="vertimientos">Vertimientos</option>
                                    <option value="hidrocarburos">Hidrocarburos</option>
                                    <option value="ruido">Ruido</option>
                                    <option value="pma">PMA</option>
                                    <option value="licencia">Licencia Ambiental</option>
                                    <option value="concesion">Concesi&oacute;n de Aguas</option>
                                    <option value="flora">Flora</option>
                                    <option value="fauna">Fauna</option>
                                    <option value="silvicultura">Silvicultura</option>
                                    <option value="residuos">Residuos</option>
                                    <option value="humedales">Humedales</option>
                                    <option value="salvoconductos">Salvoconductos</option>
                                    <option value="competencia-estructura" selected="selected">Competencia - Estructura</option>
                                    </SELECT>
                                  </span></TD>
                                <TD><INPUT
                              name=vinculo 
                              id=vinculo value="" maxLength=200 style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;">
                                  </TD>
                                  <TD>
                                  <SELECT name="boletin_id" id="boletin_id"  style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;">
                                  <option value=''>Seleccione la edici&oacute;n ...</option>
                                  <?php 
                                  $sql 
"select id from boletin";
                                  
$cursor mysql_query($sql,$conexion);
                                  while ( 
$myrow=mysql_fetch_array($cursor)){
                                  
$id=$myrow["id"];
                                  
printf ("<option value='%s'>%s</option>",$id$id);
                 }

                 
?>
                                  </SELECT>
                                  
                                  
                                  
                                  </TD>
                              </TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD style="COLOR: white; BACKGROUND-COLOR: #8EE910">
                              <TABLE>
                                <TBODY>
                                  <TR>
                                    <TD align=middle><STRONG>Informaci&oacute;n que contiene el encabezado</STRONG></TD>
                                <TD align=right><A id=HyperLink3 
                              title="Ayuda ">Ayuda</A></TD></TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD style="TEXT-ALIGN: center">
                              <TABLE width="100%">
                                <TBODY>
                                  <TR>
                                    <TD 
                            style="HEIGHT: 15px; BACKGROUND-COLOR: activeborder">&nbsp;</TD>
                              </TR>
                                  <TR>
                                    <TD height="51" style="WIDTH: 163px"><span class="Estilo2">
                                      <textarea name="resuelve"
                    rows="2"
                    cols="112"  style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;"
                                     
                    ></textarea>
                                    </span></TD>
                                </TR></TBODY></TABLE>                      </TD></TR>
                          <TR bgcolor="#D1FE05">
                            <TD bgcolor="#AAD104" style="COLOR: white; BACKGROUND-COLOR: #8EE910">
                              <TABLE>
                                <TBODY>
                                  <TR>
                                    <TD align=middle><STRONG>Publicaci&oacute;n</STRONG></TD>
                          <TD align=right><A id=HyperLink1 
                              title="Diligencie los datos solicitados">Ayuda</A></TD></TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD style="TEXT-ALIGN: center">
                              <TABLE width="100%">
                                <TBODY>
                                  <TR>
                                    <TD 
                            style="BACKGROUND-COLOR: activeborder"><strong>Publicar?:</strong> 
                                      <INPUT id=rbGenero_0 tabIndex=8 type=radio 
                                CHECKED value=s name=publicacion >
                                      <LABEL 
                                for=rbGenero_0 >Si 
                                      <INPUT id=rbGenero_1 tabIndex=8 type=radio 
                                value=n name=publicacion >
                                    No</LABEL></TD>
                                <TD
                            style="BACKGROUND-COLOR: activeborder"><span>
                                  <input type="reset" name="limpiar" value="Limpiar" style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;">
                                  <input name="inserta" type="submit" id="inserta" value="Guardar" style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;" >
                                  </span></TD><TD width="115" 
                              colSpan=2 style="BACKGROUND-COLOR: activeborder"><input type="button" name="limpiar2" value="Volver al menu principal" onClick="location.href='../admin.php'" style="font-family: Tahoma; color: #006600; font-size: 8pt; font-weight: bold; border: 1px solid #006600; background-color: #E2E2E2;"></TD>
                                </TR>
                              </TBODY></TABLE>                                              </TD>
                </TR></TBODY>
                      </TABLE>
                    </div>
                </div></TD></TR></TBODY></TABLE>
</form>     
</div>
</div>

<?php
}
}

?>
<div class="footer">
<i class="c1">·</i> 
Copyright © 2011 
<i class="c1">·</i><strong>Secretaria de Ambiente </strong><b>.</b> 
<i class="c1">·</i>Todos los derechos reservados <i class="c1">·</i></div>

</div><!--container-->


</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 ]--