<?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>



<style type="text/css">

<!--

.Estilo3 {

	font-family: "Trebuchet MS";

	font-size: 24px;

}

-->

</style>




    <style type="text/css">

<!--

.Estilo4 {

	font-family: "Trebuchet MS";

	font-size:12px;



}

.Estilo22 {

	font-size: 14px;

	font-style: italic;

	font-weight: bold;

}

-->

    </style>





</head>



<body>









</script>



  <script language=javascript>

function ventanaSecundaria (URL){

   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")

}

  </script>







  <?











  $N2 = 0;



  include 'concha.php';





mysql_connect ("$host", "$usuario", "$contra");





mysql_select_db ("$basedatos");





$sql = "SELECT * FROM chat WHERE ver = 'no' ";





$consulta = mysql_query ($sql);





while ($row = mysql_fetch_array($consulta))





{











$N2 = $N2 + 1;



$m_mensajes = $N2;







}





mysql_free_result($consulta);

















  $N = 0;





  include 'concha.php';





mysql_connect ("$host", "$usuario", "$contra");





mysql_select_db ("$basedatos");





$sql = "SELECT * FROM comentarios WHERE ver = 'no' ";





$consulta = mysql_query ($sql);





while ($row = mysql_fetch_array($consulta))





{











$N = $N + 1;





$m_comentarios = $N;





}





mysql_free_result($consulta);

















  $N = 0;





  include 'concha.php';





mysql_connect ("$host", "$usuario", "$contra");





mysql_select_db ("$basedatos");





$sql = "SELECT * FROM fotosoyentes WHERE ver = 'no' ";





$consulta = mysql_query ($sql);





while ($row = mysql_fetch_array($consulta))





{











$N = $N + 1;



$m_fotos = $N;







}





mysql_free_result($consulta);















  $N = 0;





  include 'concha.php';





mysql_connect ("$host", "$usuario", "$contra");





mysql_select_db ("$basedatos");





$sql = "SELECT * FROM avisos WHERE ver = 'no' ";





$consulta = mysql_query ($sql);





while ($row = mysql_fetch_array($consulta))





{











$N = $N + 1;



$m_avisos = $N;







}





mysql_free_result($consulta);



$m_tot = $m_mensajes + $m_comentarios + $m_fotos + $m_avisos;

?>

<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"><div align="center">

        <p><br />

      

      

      

          <?php       

      

      $nombre = $_POST['nombre'];

      $apellido = $_POST['apellido'];

      $email = $_POST['email'];

      $usuario22 = $_POST['usuario'];

      $pass = $_POST['pass'];

      $pass2 = $_POST['pass2'];

	  

	    if ($pass == NULL) {echo "$idioma_200012"; exit; }
		
		
			  

	  if ($pass == $pass2) {} else {echo "$idioma_200013"; exit; };


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

	  $pass = md5($pass);

	  $pass2 = md5($pass2);

	  
	  
	  if ($pass == $pass2) {} else {echo "$idioma_200013"; exit; };

	  

	  

	  

	  

	  ?>

          <?

include('concha.php');

mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");



$sql = "SELECT * FROM users";



$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$username = $row["username"];

if ($usuario22 == $username) {echo "$idioma_200014"; exit;} else {};





  }

mysql_free_result($consulta);

?>

          <?

	  

	  include 'concha.php';

mysql_connect("$host","$usuario","$contra");

mysql_db_query("$basedatos","





INSERT INTO  `$basedatos`.`users` (

`ID` ,

`username` ,

`password` ,

`email` ,

`nombre` ,

`apellido`

)

VALUES (

NULL ,  '$usuario22',  '$pass',  '$email',  '$nombre',  '$apellido'

)



");



    

    



?>

    

      

   

      

      

      

      

      

          <span class="Estilo3"><? echo $idioma_200015 ?> <?php echo $usuario22 ?> <? echo $idioma_200016 ?></span></p>

        <p>          <br />

          <a href="index.php"><span class="Estilo3">&lt; <? echo $idioma_volver ?></span> </a> </p>

      </div></td>

  </tr>

  </table>

<p>&nbsp;</p>

  <p>&nbsp;</p>

    

    

    

        </td>

  </tr>

  </table>



</body>

</html>

