<?php include 'sesion.php';?>
<!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><?php echo $nombresitio ?> - Panel de Administracion</title>
<style type="text/css">
<!--


body {
	background-image: url(../fondeux.jpg);
}


-->
</style>


<?php include 'concha.php';?>



<link href="../estilo.css" rel="stylesheet" type="text/css" />
  
<style type="text/css">
<!--
.Estilo1 {font-family: "Trebuchet MS"}
-->
</style>
</head>

<body>




</script>

  <script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script>



  
<table width="900" border="0" align="center" cellpadding="4" cellspacing="0">
      <tr>
      <td bgcolor="#F1F2ED"><?php include 'menu.php';?></td>
    </tr>
  
    <tr>
      <td bgcolor="#FFFFFF"><p align="center" class="Estilo1">CAMBIAR CONTRASEÑA</p>
         

        <div align="center">
          <p>
            <?php           

      $pass = $_POST['pass'];
      $pass2 = $_POST['pass2'];
	  
	  if ($pass == $pass2) {} else {echo "LAS CONTRASEÑAS NO COINCIDEN"; exit; };


$pass = "$pass$semilla"; 
$pass2 = "$pass2$semilla"; 		

	  $pass = md5($pass);

	  $pass2 = md5($pass2);
	  
	  if ($pass == $pass2) {} else {echo "LAS CONTRASEÑAS NO COINCIDEN"; exit; };
	  
	  

 
include 'concha.php';
mysql_connect("$host","$usuario","$contra");
$sSQL="UPDATE `$basedatos`.`users` SET `password` =  '$pass' WHERE `users`.`username` = '$user'";
mysql_db_query("$basedatos",$sSQL);



      ?>
            
              <span class="Estilo1">LA CONTRASEÑA DEL USUARIO <?php echo $user ?> FUE CAMBIADA, RECUERDE INGRESAR CON LA NUEVA CONTRASEÑA.      </span></p>
          <p><a href="logout.php">VOLVER</a></p>
        </div></td>
  </tr>
  </table>

</body>
</html>
