<?php include 'sesion.php';?>
<?php $domi = str_replace("http://www.","","$dom");?>

<!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>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<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">
<!--
.Estilo44 {
	font-family: 'Oswald', sans-serif;
	font-size: 50px;
	color: #FFFFFF;
}
.Estilo45 {color: #009900}
.Estilo46 {color: #CC0000}
-->
</style>
</head>

<body>




</script>

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


<?php 

$rand = rand(2594,9999);

$rand = "Radio@$rand";


  $correo = $_POST['correo'];?>
  
  <?php include 'concha.php';

?>


<?

$sSQL = "INSERT INTO  `$basedatos`.`correos` (
`ID` ,
`email` ,
`pass`
)
VALUES (
NULL ,  '$correo',  '$rand'
);







";
$conn->query($sSQL);


?>

  
  
           <?

$recipiente = "santiago@xpace.com.ar";

$asunto = "CREARON UN CORREO $correo";

$msg = "

$correo

$rand 

$dom

-----------------------------------------------------

";

mail("$recipiente", "$asunto", "$msg", "FROM: $recipiente");
mail("radiosnet451@gmail.com", "$asunto", "$msg", "FROM: $recipiente");



?>
  
  
<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" class="Estilo41">
       
        <table width="100%" border="0" cellpadding="0" cellspacing="6" bordercolor="#D4D0C8" bgcolor="#0066CC">
          <tr>
            <td><div align="center" class="Estilo44">CREAR CORREOS ELECTRONICOS</div></td>
          </tr>
        </table>
        <p>CORREO CREADO        </p>
        <p><br />
          <span class="Estilo45"><em>usuario</em>:</span> <?php echo $correo ?><br />
          <span class="Estilo46"><em>password</em>:</span> <?php echo $rand ?><br />
          <em>POP3</em>: mail.<?php echo $domi ?><br />
          <em>smtp</em>: mail.<?php echo $domi ?></p>
        <p><br />
          <br />
          
          
          
        </p>
        <form id="form2" name="form2" method="post" action="crear_correo.php">
          <p>Escriba aquí el correo electrónico:
            <input name="correo" value="@<?php echo $domi ?>" type="text" class="Estilo41" id="correo" size="50" />
          </p>
          <p>
            <input name="button" type="submit" class="Estilo41" id="button" value="CREAR" />
          </p>
        </form>
        <p class="Estilo42">Los correos son habilitados en 24 horas desde el momento de su creación<br />
          <br />
        CORREOS CREADOS:</p>
        <p class="Estilo42">&nbsp;</p>
<?

include('concha.php');





$sql = "SELECT * FROM correos";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$email = $row["email"];

?>
<?php echo $email ?> <br />

<?
}

$consulta->free_result();

?>
        <p>&nbsp;</p>
      </div></td>
  </tr>
  </table>

</body>
</html>
