Codigo PHP del archivo Registro
<?php
$database = './usersdb.php';
$success_page = './cuenta.html';
$error_message = "";
if (!file_exists($database))
{
die('User database not found!');
exit;
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['form_name'] == 'signupform')
{
$newusername = $_POST['username'];
$newemail = $_POST['email'];
$newpassword = $_POST['password'];
$confirmpassword = $_POST['confirmpassword'];
$newfullname = $_POST['fullname'];
$code = 'NA';
if ($newpassword != $confirmpassword)
{
$error_message = 'La verificacion de la contraseña no son iguales!';
}
else
if (!preg_match("/^[A-Za-z0-9_!@$]{1,50}$/", $newusername))
{
$error_message = 'NickName ya esta en uso favor buscar otro';
}
else
if (!preg_match("/^[A-Za-z0-9_!@$]{1,50}$/", $newpassword))
{
$error_message = 'Contraseña invalida, intenta de nuevo';
}
else
if (!preg_match("/^[A-Za-z0-9_!@$.' &]{1,50}$/", $newfullname))
{
$error_message = 'El nombre completo no esta correcto, verifiquelo de nuevo';
}
else
if (!preg_match("/^.+@.+\..+$/", $newemail))
{
$error_message = 'Correo no valido, favor de verificarlo de nuevo';
}
$items = file($database, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($items as $line)
{
list($username, $password, $email, $fullname) = explode('|', trim($line));
if ($newusername == $username)
{
$error_message = 'NickName ya esta en uso favor buscar otro';
break;
}
}
if (empty($error_message))
{
$file = fopen($database, 'a');
fwrite($file, $newusername);
fwrite($file, '|');
fwrite($file, md5($newpassword));
fwrite($file, '|');
fwrite($file, $newemail);
fwrite($file, '|');
fwrite($file, $newfullname);
fwrite($file, '|1|');
fwrite($file, $code);
fwrite($file, "
");
fclose($file);
$subject = 'Nueva cuenta VIP de La Red Social para Adultos';
$message = 'Su nueva cuenta fue creada con exito';
$message .= "
Username: ";
$message .= $newusername;
$message .= "
Password: ";
$message .= $newpassword;
$message .= "
";
$header = "From: webmaster@yourwebsite.com"."
";
$header .= "Reply-To: webmaster@yourwebsite.com"."
";
$header .= "MIME-Version: 1.0"."
";
$header .= "Content-Type: text/plain; charset=utf-8"."
";
$header .= "Content-Transfer-Encoding: 8bit"."
";
$header .= "X-Mailer: PHP v".phpversion();
mail($newemail, $subject, $message, $header);
header('Location: '.$success_page);
exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Red Social para Adultos </title>
<meta name="description" content="Nuestra red social es exclusivamente para Adultos que son mayores de 18 Años, Muchas chicas sexy y Hermosas en un solo Portal Gratis">
<meta name="keywords" content="chicas, chicas sexy, adultos 18, red social para adultos, solo adultos, chicas hermosas, chicas para ligar, como ligar con chicas, chatear con chicas, ligar gratis, chicas hermosas,chicas calientes, videos calientes, fotos calientes">
<meta name="author" content="Lorena Brisuela Wood">
<meta name="categories" content="Social">
<meta name="generator" content="Generador de Codigos Html con Css">
<link href="favicon.ico" rel="shortcut icon">
<style type="text/css">
div#container
{
width: 930px;
position: relative;
margin: 0 auto 0 auto;
text-align: left;
}
body
{
background-color: #F8F8FF;
background-image: url(images/fondo1.jpg);
color: #000000;
font-family: Arial;
font-size: 13px;
margin: 0;
text-align: center;
}
</style>
<style type="text/css">
a
{
color: #0000FF;
text-decoration: underline;
}
a:visited
{
color: #800080;
}
a:active
{
color: #FF0000;
}
a:hover
{
color: #0000FF;
text-decoration: underline;
}
</style>
<style type="text/css">
#Image1
{
border: 0px #000000 solid;
}
#wb_Text1
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text1 div
{
text-align: center;
}
#wb_Carousel1
{
background-color: transparent;
}
#Carousel1 .frame
{
width: 899px;
display: inline-block;
float: left;
height: 119px;
}
#wb_Text2
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text2 div
{
text-align: center;
}
#wb_Text3
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text3 div
{
text-align: center;
}
#Image2
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image3
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image4
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image5
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image6
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image7
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image8
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image9
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image10
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image11
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image12
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image13
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image14
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image16
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image17
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image15
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image18
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image19
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image20
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image21
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image22
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image23
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image30
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image31
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image32
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image33
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image34
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image35
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image36
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image37
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image38
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image39
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image40
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#wb_Text9
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text9 div
{
text-align: left;
}
.signupform_table
{
background-color: #F8F8FF;
border-color:#F5F5F5;
border-width:1px;
border-style: solid;
color: #000000;
font-family: Arial;
font-size: 13px;
font-weight: bold;
text-align: right;
border-spacing: 4px;
}
.signupform_header
{
background-color: #878787;
color: #FFFFFF;
text-align: center;
}
.signupform_text
{
background-color: #FFFFFF;
border-color: #878787;
border-width: 1px;
border-style: solid;
color: #000000;
font-family: Arial;
font-size: 13px;
font-weight: bold;
}
.signupform_button
{
background-color: #F5F5F5;
border-color: #878787;
border-width: 1px;
border-style: solid;
color: #000000;
font-family: Arial;
font-size: 13px;
font-weight: bold;
}
#Image41
{
border: 0px #000000 solid;
}
#Image24
{
border: 0px #000000 solid;
}
#Image25
{
border: 0px #000000 solid;
}
</style>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.ui.effect.min.js"></script>
<script type="text/javascript" src="jquery.ui.effect-fade.min.js"></script>
<script type="text/javascript" src="wb.carousel.effects.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
var Carousel1Opts =
{
delay: 8000,
duration: 500,
easing: 'linear',
mode: 'fade',
direction: '',
pagination: false,
start: 0,
width: 899
};
$("#Carousel1").carouseleffects(Carousel1Opts);
$("#Carousel1_back a").click(function()
{
$('#Carousel1').carouseleffects('prev');
});
$("#Carousel1_next a").click(function()
{
$('#Carousel1').carouseleffects('next');
});
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59491751-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="container">
<div id="wb_Image1" style="position:absolute;left:5px;top:78px;width:921px;height:458px;z-index:33;">
<img src="images/img0043.png" id="Image1" alt="" style="width:921px;height:458px;"></div>
<div id="wb_Text1" style="position:absolute;left:17px;top:115px;width:877px;height:51px;text-align:center;z-index:34;">
<span style="color:#1E90FF;font-family:'Comic Sans MS';font-size:37px;"><strong>Red Social Para Adultos</strong></span><span style="color:#2F4F4F;font-family:'Comic Sans MS';font-size:37px;"><strong> </strong></span><span style="color:#FF0000;font-family:'Comic Sans MS';font-size:37px;"><strong>+18</strong></span></div>
<div id="wb_Carousel1" style="position:absolute;left:13px;top:433px;width:899px;height:119px;z-index:35;overflow:hidden">
<div id="Carousel1" style="position:absolute">
<div class="frame">
<div id="wb_Image3" style="position:absolute;left:1px;top:2px;width:74px;height:96px;z-index:0;">
<img src="images/img0044.png" id="Image3" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image4" style="position:absolute;left:83px;top:2px;width:74px;height:96px;z-index:1;">
<img src="images/img0045.png" id="Image4" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image6" style="position:absolute;left:165px;top:2px;width:74px;height:96px;z-index:2;">
<img src="images/img0046.png" id="Image6" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image8" style="position:absolute;left:247px;top:2px;width:74px;height:96px;z-index:3;">
<img src="images/img0047.png" id="Image8" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image7" style="position:absolute;left:329px;top:2px;width:74px;height:96px;z-index:4;">
<img src="images/img0048.png" id="Image7" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image2" style="position:absolute;left:411px;top:2px;width:74px;height:96px;z-index:5;">
<img src="images/img0049.png" id="Image2" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image5" style="position:absolute;left:493px;top:2px;width:74px;height:96px;z-index:6;">
<img src="images/img0050.png" id="Image5" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image9" style="position:absolute;left:575px;top:2px;width:74px;height:96px;z-index:7;">
<img src="images/img0051.png" id="Image9" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image11" style="position:absolute;left:657px;top:2px;width:74px;height:96px;z-index:8;">
<img src="images/img0052.png" id="Image11" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image10" style="position:absolute;left:739px;top:2px;width:74px;height:96px;z-index:9;">
<img src="images/img0053.png" id="Image10" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image13" style="position:absolute;left:820px;top:2px;width:73px;height:96px;z-index:10;">
<img src="images/img0054.png" id="Image13" alt="" style="width:73px;height:96px;"></div>
</div>
<div class="frame" style="display:none">
<div id="wb_Image12" style="position:absolute;left:1px;top:2px;width:74px;height:96px;z-index:11;">
<img src="images/img0055.png" id="Image12" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image14" style="position:absolute;left:83px;top:2px;width:74px;height:96px;z-index:12;">
<img src="images/img0056.png" id="Image14" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image16" style="position:absolute;left:165px;top:2px;width:74px;height:96px;z-index:13;">
<img src="images/img0057.png" id="Image16" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image17" style="position:absolute;left:247px;top:2px;width:74px;height:96px;z-index:14;">
<img src="images/img0058.png" id="Image17" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image18" style="position:absolute;left:329px;top:2px;width:74px;height:96px;z-index:15;">
<img src="images/img0059.png" id="Image18" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image19" style="position:absolute;left:411px;top:2px;width:74px;height:96px;z-index:16;">
<img src="images/img0060.png" id="Image19" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image21" style="position:absolute;left:492px;top:2px;width:74px;height:96px;z-index:17;">
<img src="images/img0061.png" id="Image21" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image20" style="position:absolute;left:574px;top:2px;width:74px;height:96px;z-index:18;">
<img src="images/img0062.png" id="Image20" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image23" style="position:absolute;left:656px;top:2px;width:74px;height:96px;z-index:19;">
<img src="images/img0063.png" id="Image23" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image15" style="position:absolute;left:738px;top:2px;width:74px;height:96px;z-index:20;">
<img src="images/img0064.png" id="Image15" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image22" style="position:absolute;left:819px;top:2px;width:74px;height:96px;z-index:21;">
<img src="images/img0065.png" id="Image22" alt="" style="width:74px;height:96px;"></div>
</div>
<div class="frame" style="display:none">
<div id="wb_Image30" style="position:absolute;left:0px;top:2px;width:74px;height:96px;z-index:22;">
<img src="images/img0066.png" id="Image30" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image31" style="position:absolute;left:81px;top:2px;width:74px;height:96px;z-index:23;">
<img src="images/img0067.png" id="Image31" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image32" style="position:absolute;left:163px;top:2px;width:74px;height:96px;z-index:24;">
<img src="images/img0068.png" id="Image32" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image33" style="position:absolute;left:245px;top:2px;width:74px;height:96px;z-index:25;">
<img src="images/img0069.png" id="Image33" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image34" style="position:absolute;left:326px;top:2px;width:74px;height:96px;z-index:26;">
<img src="images/img0070.png" id="Image34" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image35" style="position:absolute;left:408px;top:2px;width:74px;height:96px;z-index:27;">
<img src="images/img0071.png" id="Image35" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image37" style="position:absolute;left:490px;top:2px;width:74px;height:96px;z-index:28;">
<img src="images/img0072.png" id="Image37" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image39" style="position:absolute;left:572px;top:2px;width:74px;height:96px;z-index:29;">
<img src="images/img0073.png" id="Image39" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image38" style="position:absolute;left:654px;top:2px;width:74px;height:96px;z-index:30;">
<img src="images/img0074.png" id="Image38" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image36" style="position:absolute;left:736px;top:2px;width:74px;height:96px;z-index:31;">
<img src="images/img0075.png" id="Image36" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image40" style="position:absolute;left:818px;top:2px;width:74px;height:96px;z-index:32;">
<img src="images/img0076.png" id="Image40" alt="" style="width:74px;height:96px;"></div>
</div>
</div>
<div id="Carousel1_back" style="position:absolute;left:4px;top:44px;width:30px;height:30px;z-index:999"><a style="cursor:pointer"><img alt="Back" style="border-style:none" src="images/carousel_back.png"></a></div>
<div id="Carousel1_next" style="position:absolute;left:865px;top:44px;width:30px;height:30px;z-index:999"><a style="cursor:pointer"><img alt="Next" style="border-style:none" src="images/carousel_next.png"></a></div>
</div>
<div id="wb_Text2" style="position:absolute;left:197px;top:164px;width:517px;height:18px;text-align:center;z-index:36;">
<span style="color:#FF0000;font-family:Arial;font-size:16px;">Red social exclusiva para adultos Registrate gratis y empieza a ligar.</span></div>
<div id="wb_Text3" style="position:absolute;left:396px;top:416px;width:139px;height:18px;text-align:center;z-index:37;">
<span style="color:#FFFFFF;font-family:Arial;font-size:15px;"><strong>Ultimos Miembros</strong></span></div>
<div id="wb_Text9" style="position:absolute;left:221px;top:544px;width:488px;height:16px;z-index:38;text-align:left;">
<span style="color:#808080;font-family:Arial;font-size:13px;">Copyright © 2012-2015, Red Social para Adultos. Todos los derechos reservados.</span></div>
<div id="wb_Signup1" style="position:absolute;left:297px;top:199px;width:337px;height:202px;text-align:right;z-index:39;">
<form name="signupform" method="post" action="<?php echo basename(__FILE__); ?>" id="signupform">
<input type="hidden" name="form_name" value="signupform">
<table class="signupform_table" style="width:337px;height:202px;">
<tr>
<td class="signupform_header" colspan="2" style="height:20px;">Crear una Nueva Cuenta Gratis</td>
</tr>
<tr>
<td style="height:20px">Nombre Completo:</td>
<td style="text-align:left"><input class="signupform_text" name="fullname" type="text" id="fullname" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Nick Name:</td>
<td style="text-align:left"><input class="signupform_text" name="username" type="text" id="username" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px;">Contraseña:</td>
<td style="text-align:left"><input class="signupform_text" name="password" type="password" id="password" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Confirmar Contraseña:</td>
<td style="text-align:left"><input class="signupform_text" name="confirmpassword" type="password" id="confirmpassword" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">E-mail / Correo:</td>
<td style="text-align:left"><input class="signupform_text" name="email" type="text" id="email" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td colspan="2"><?php echo $error_message; ?></td>
</tr>
<tr>
<td> </td><td style="text-align:left;vertical-align:bottom"><input class="signupform_button" type="submit" name="signup" value="Crear Cuenta" id="signup" style="width:90px;height:20px;"></td>
</tr>
</table>
</form>
</div>
<div id="wb_Image41" style="position:absolute;left:760px;top:220px;width:123px;height:115px;z-index:40;">
<img src="images/188.png" id="Image41" alt="" style="width:123px;height:115px;"></div>
<div id="wb_Image24" style="position:absolute;left:20px;top:139px;width:135px;height:276px;z-index:41;">
<img src="images/img0077.png" id="Image24" alt="" style="width:135px;height:276px;"></div>
<div id="wb_Image25" style="position:absolute;left:16px;top:90px;width:30px;height:31px;z-index:42;">
<a href="./index.html"><img src="images/icono_inicio.png" id="Image25" alt="" style="width:30px;height:31px;"></a></div>
</div>
</body>
</html>
$database = './usersdb.php';
$success_page = './cuenta.html';
$error_message = "";
if (!file_exists($database))
{
die('User database not found!');
exit;
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['form_name'] == 'signupform')
{
$newusername = $_POST['username'];
$newemail = $_POST['email'];
$newpassword = $_POST['password'];
$confirmpassword = $_POST['confirmpassword'];
$newfullname = $_POST['fullname'];
$code = 'NA';
if ($newpassword != $confirmpassword)
{
$error_message = 'La verificacion de la contraseña no son iguales!';
}
else
if (!preg_match("/^[A-Za-z0-9_!@$]{1,50}$/", $newusername))
{
$error_message = 'NickName ya esta en uso favor buscar otro';
}
else
if (!preg_match("/^[A-Za-z0-9_!@$]{1,50}$/", $newpassword))
{
$error_message = 'Contraseña invalida, intenta de nuevo';
}
else
if (!preg_match("/^[A-Za-z0-9_!@$.' &]{1,50}$/", $newfullname))
{
$error_message = 'El nombre completo no esta correcto, verifiquelo de nuevo';
}
else
if (!preg_match("/^.+@.+\..+$/", $newemail))
{
$error_message = 'Correo no valido, favor de verificarlo de nuevo';
}
$items = file($database, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($items as $line)
{
list($username, $password, $email, $fullname) = explode('|', trim($line));
if ($newusername == $username)
{
$error_message = 'NickName ya esta en uso favor buscar otro';
break;
}
}
if (empty($error_message))
{
$file = fopen($database, 'a');
fwrite($file, $newusername);
fwrite($file, '|');
fwrite($file, md5($newpassword));
fwrite($file, '|');
fwrite($file, $newemail);
fwrite($file, '|');
fwrite($file, $newfullname);
fwrite($file, '|1|');
fwrite($file, $code);
fwrite($file, "
");
fclose($file);
$subject = 'Nueva cuenta VIP de La Red Social para Adultos';
$message = 'Su nueva cuenta fue creada con exito';
$message .= "
Username: ";
$message .= $newusername;
$message .= "
Password: ";
$message .= $newpassword;
$message .= "
";
$header = "From: webmaster@yourwebsite.com"."
";
$header .= "Reply-To: webmaster@yourwebsite.com"."
";
$header .= "MIME-Version: 1.0"."
";
$header .= "Content-Type: text/plain; charset=utf-8"."
";
$header .= "Content-Transfer-Encoding: 8bit"."
";
$header .= "X-Mailer: PHP v".phpversion();
mail($newemail, $subject, $message, $header);
header('Location: '.$success_page);
exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Red Social para Adultos </title>
<meta name="description" content="Nuestra red social es exclusivamente para Adultos que son mayores de 18 Años, Muchas chicas sexy y Hermosas en un solo Portal Gratis">
<meta name="keywords" content="chicas, chicas sexy, adultos 18, red social para adultos, solo adultos, chicas hermosas, chicas para ligar, como ligar con chicas, chatear con chicas, ligar gratis, chicas hermosas,chicas calientes, videos calientes, fotos calientes">
<meta name="author" content="Lorena Brisuela Wood">
<meta name="categories" content="Social">
<meta name="generator" content="Generador de Codigos Html con Css">
<link href="favicon.ico" rel="shortcut icon">
<style type="text/css">
div#container
{
width: 930px;
position: relative;
margin: 0 auto 0 auto;
text-align: left;
}
body
{
background-color: #F8F8FF;
background-image: url(images/fondo1.jpg);
color: #000000;
font-family: Arial;
font-size: 13px;
margin: 0;
text-align: center;
}
</style>
<style type="text/css">
a
{
color: #0000FF;
text-decoration: underline;
}
a:visited
{
color: #800080;
}
a:active
{
color: #FF0000;
}
a:hover
{
color: #0000FF;
text-decoration: underline;
}
</style>
<style type="text/css">
#Image1
{
border: 0px #000000 solid;
}
#wb_Text1
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text1 div
{
text-align: center;
}
#wb_Carousel1
{
background-color: transparent;
}
#Carousel1 .frame
{
width: 899px;
display: inline-block;
float: left;
height: 119px;
}
#wb_Text2
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text2 div
{
text-align: center;
}
#wb_Text3
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text3 div
{
text-align: center;
}
#Image2
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image3
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image4
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image5
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image6
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image7
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image8
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image9
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image10
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image11
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image12
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image13
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image14
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image16
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image17
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image15
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image18
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image19
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image20
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image21
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image22
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image23
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image30
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image31
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image32
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image33
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image34
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image35
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image36
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image37
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image38
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image39
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#Image40
{
border: 2px #FF0000 solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#wb_Text9
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text9 div
{
text-align: left;
}
.signupform_table
{
background-color: #F8F8FF;
border-color:#F5F5F5;
border-width:1px;
border-style: solid;
color: #000000;
font-family: Arial;
font-size: 13px;
font-weight: bold;
text-align: right;
border-spacing: 4px;
}
.signupform_header
{
background-color: #878787;
color: #FFFFFF;
text-align: center;
}
.signupform_text
{
background-color: #FFFFFF;
border-color: #878787;
border-width: 1px;
border-style: solid;
color: #000000;
font-family: Arial;
font-size: 13px;
font-weight: bold;
}
.signupform_button
{
background-color: #F5F5F5;
border-color: #878787;
border-width: 1px;
border-style: solid;
color: #000000;
font-family: Arial;
font-size: 13px;
font-weight: bold;
}
#Image41
{
border: 0px #000000 solid;
}
#Image24
{
border: 0px #000000 solid;
}
#Image25
{
border: 0px #000000 solid;
}
</style>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.ui.effect.min.js"></script>
<script type="text/javascript" src="jquery.ui.effect-fade.min.js"></script>
<script type="text/javascript" src="wb.carousel.effects.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
var Carousel1Opts =
{
delay: 8000,
duration: 500,
easing: 'linear',
mode: 'fade',
direction: '',
pagination: false,
start: 0,
width: 899
};
$("#Carousel1").carouseleffects(Carousel1Opts);
$("#Carousel1_back a").click(function()
{
$('#Carousel1').carouseleffects('prev');
});
$("#Carousel1_next a").click(function()
{
$('#Carousel1').carouseleffects('next');
});
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59491751-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="container">
<div id="wb_Image1" style="position:absolute;left:5px;top:78px;width:921px;height:458px;z-index:33;">
<img src="images/img0043.png" id="Image1" alt="" style="width:921px;height:458px;"></div>
<div id="wb_Text1" style="position:absolute;left:17px;top:115px;width:877px;height:51px;text-align:center;z-index:34;">
<span style="color:#1E90FF;font-family:'Comic Sans MS';font-size:37px;"><strong>Red Social Para Adultos</strong></span><span style="color:#2F4F4F;font-family:'Comic Sans MS';font-size:37px;"><strong> </strong></span><span style="color:#FF0000;font-family:'Comic Sans MS';font-size:37px;"><strong>+18</strong></span></div>
<div id="wb_Carousel1" style="position:absolute;left:13px;top:433px;width:899px;height:119px;z-index:35;overflow:hidden">
<div id="Carousel1" style="position:absolute">
<div class="frame">
<div id="wb_Image3" style="position:absolute;left:1px;top:2px;width:74px;height:96px;z-index:0;">
<img src="images/img0044.png" id="Image3" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image4" style="position:absolute;left:83px;top:2px;width:74px;height:96px;z-index:1;">
<img src="images/img0045.png" id="Image4" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image6" style="position:absolute;left:165px;top:2px;width:74px;height:96px;z-index:2;">
<img src="images/img0046.png" id="Image6" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image8" style="position:absolute;left:247px;top:2px;width:74px;height:96px;z-index:3;">
<img src="images/img0047.png" id="Image8" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image7" style="position:absolute;left:329px;top:2px;width:74px;height:96px;z-index:4;">
<img src="images/img0048.png" id="Image7" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image2" style="position:absolute;left:411px;top:2px;width:74px;height:96px;z-index:5;">
<img src="images/img0049.png" id="Image2" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image5" style="position:absolute;left:493px;top:2px;width:74px;height:96px;z-index:6;">
<img src="images/img0050.png" id="Image5" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image9" style="position:absolute;left:575px;top:2px;width:74px;height:96px;z-index:7;">
<img src="images/img0051.png" id="Image9" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image11" style="position:absolute;left:657px;top:2px;width:74px;height:96px;z-index:8;">
<img src="images/img0052.png" id="Image11" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image10" style="position:absolute;left:739px;top:2px;width:74px;height:96px;z-index:9;">
<img src="images/img0053.png" id="Image10" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image13" style="position:absolute;left:820px;top:2px;width:73px;height:96px;z-index:10;">
<img src="images/img0054.png" id="Image13" alt="" style="width:73px;height:96px;"></div>
</div>
<div class="frame" style="display:none">
<div id="wb_Image12" style="position:absolute;left:1px;top:2px;width:74px;height:96px;z-index:11;">
<img src="images/img0055.png" id="Image12" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image14" style="position:absolute;left:83px;top:2px;width:74px;height:96px;z-index:12;">
<img src="images/img0056.png" id="Image14" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image16" style="position:absolute;left:165px;top:2px;width:74px;height:96px;z-index:13;">
<img src="images/img0057.png" id="Image16" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image17" style="position:absolute;left:247px;top:2px;width:74px;height:96px;z-index:14;">
<img src="images/img0058.png" id="Image17" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image18" style="position:absolute;left:329px;top:2px;width:74px;height:96px;z-index:15;">
<img src="images/img0059.png" id="Image18" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image19" style="position:absolute;left:411px;top:2px;width:74px;height:96px;z-index:16;">
<img src="images/img0060.png" id="Image19" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image21" style="position:absolute;left:492px;top:2px;width:74px;height:96px;z-index:17;">
<img src="images/img0061.png" id="Image21" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image20" style="position:absolute;left:574px;top:2px;width:74px;height:96px;z-index:18;">
<img src="images/img0062.png" id="Image20" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image23" style="position:absolute;left:656px;top:2px;width:74px;height:96px;z-index:19;">
<img src="images/img0063.png" id="Image23" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image15" style="position:absolute;left:738px;top:2px;width:74px;height:96px;z-index:20;">
<img src="images/img0064.png" id="Image15" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image22" style="position:absolute;left:819px;top:2px;width:74px;height:96px;z-index:21;">
<img src="images/img0065.png" id="Image22" alt="" style="width:74px;height:96px;"></div>
</div>
<div class="frame" style="display:none">
<div id="wb_Image30" style="position:absolute;left:0px;top:2px;width:74px;height:96px;z-index:22;">
<img src="images/img0066.png" id="Image30" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image31" style="position:absolute;left:81px;top:2px;width:74px;height:96px;z-index:23;">
<img src="images/img0067.png" id="Image31" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image32" style="position:absolute;left:163px;top:2px;width:74px;height:96px;z-index:24;">
<img src="images/img0068.png" id="Image32" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image33" style="position:absolute;left:245px;top:2px;width:74px;height:96px;z-index:25;">
<img src="images/img0069.png" id="Image33" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image34" style="position:absolute;left:326px;top:2px;width:74px;height:96px;z-index:26;">
<img src="images/img0070.png" id="Image34" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image35" style="position:absolute;left:408px;top:2px;width:74px;height:96px;z-index:27;">
<img src="images/img0071.png" id="Image35" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image37" style="position:absolute;left:490px;top:2px;width:74px;height:96px;z-index:28;">
<img src="images/img0072.png" id="Image37" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image39" style="position:absolute;left:572px;top:2px;width:74px;height:96px;z-index:29;">
<img src="images/img0073.png" id="Image39" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image38" style="position:absolute;left:654px;top:2px;width:74px;height:96px;z-index:30;">
<img src="images/img0074.png" id="Image38" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image36" style="position:absolute;left:736px;top:2px;width:74px;height:96px;z-index:31;">
<img src="images/img0075.png" id="Image36" alt="" style="width:74px;height:96px;"></div>
<div id="wb_Image40" style="position:absolute;left:818px;top:2px;width:74px;height:96px;z-index:32;">
<img src="images/img0076.png" id="Image40" alt="" style="width:74px;height:96px;"></div>
</div>
</div>
<div id="Carousel1_back" style="position:absolute;left:4px;top:44px;width:30px;height:30px;z-index:999"><a style="cursor:pointer"><img alt="Back" style="border-style:none" src="images/carousel_back.png"></a></div>
<div id="Carousel1_next" style="position:absolute;left:865px;top:44px;width:30px;height:30px;z-index:999"><a style="cursor:pointer"><img alt="Next" style="border-style:none" src="images/carousel_next.png"></a></div>
</div>
<div id="wb_Text2" style="position:absolute;left:197px;top:164px;width:517px;height:18px;text-align:center;z-index:36;">
<span style="color:#FF0000;font-family:Arial;font-size:16px;">Red social exclusiva para adultos Registrate gratis y empieza a ligar.</span></div>
<div id="wb_Text3" style="position:absolute;left:396px;top:416px;width:139px;height:18px;text-align:center;z-index:37;">
<span style="color:#FFFFFF;font-family:Arial;font-size:15px;"><strong>Ultimos Miembros</strong></span></div>
<div id="wb_Text9" style="position:absolute;left:221px;top:544px;width:488px;height:16px;z-index:38;text-align:left;">
<span style="color:#808080;font-family:Arial;font-size:13px;">Copyright © 2012-2015, Red Social para Adultos. Todos los derechos reservados.</span></div>
<div id="wb_Signup1" style="position:absolute;left:297px;top:199px;width:337px;height:202px;text-align:right;z-index:39;">
<form name="signupform" method="post" action="<?php echo basename(__FILE__); ?>" id="signupform">
<input type="hidden" name="form_name" value="signupform">
<table class="signupform_table" style="width:337px;height:202px;">
<tr>
<td class="signupform_header" colspan="2" style="height:20px;">Crear una Nueva Cuenta Gratis</td>
</tr>
<tr>
<td style="height:20px">Nombre Completo:</td>
<td style="text-align:left"><input class="signupform_text" name="fullname" type="text" id="fullname" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Nick Name:</td>
<td style="text-align:left"><input class="signupform_text" name="username" type="text" id="username" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px;">Contraseña:</td>
<td style="text-align:left"><input class="signupform_text" name="password" type="password" id="password" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Confirmar Contraseña:</td>
<td style="text-align:left"><input class="signupform_text" name="confirmpassword" type="password" id="confirmpassword" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">E-mail / Correo:</td>
<td style="text-align:left"><input class="signupform_text" name="email" type="text" id="email" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td colspan="2"><?php echo $error_message; ?></td>
</tr>
<tr>
<td> </td><td style="text-align:left;vertical-align:bottom"><input class="signupform_button" type="submit" name="signup" value="Crear Cuenta" id="signup" style="width:90px;height:20px;"></td>
</tr>
</table>
</form>
</div>
<div id="wb_Image41" style="position:absolute;left:760px;top:220px;width:123px;height:115px;z-index:40;">
<img src="images/188.png" id="Image41" alt="" style="width:123px;height:115px;"></div>
<div id="wb_Image24" style="position:absolute;left:20px;top:139px;width:135px;height:276px;z-index:41;">
<img src="images/img0077.png" id="Image24" alt="" style="width:135px;height:276px;"></div>
<div id="wb_Image25" style="position:absolute;left:16px;top:90px;width:30px;height:31px;z-index:42;">
<a href="./index.html"><img src="images/icono_inicio.png" id="Image25" alt="" style="width:30px;height:31px;"></a></div>
</div>
</body>
</html>