<?php 
include('../global.php');
if(session_is_registered(username)){ header("Location: ../index"); exit; }
session_start();

$sql = mysql_query("SELECT * FROM users WHERE ip_last='$_SERVER[REMOTE_ADDR]'");
    if(mysql_num_rows($sql) > 2) {
        echo "<center><br /><h2>2 Compte par personne!</h2> <br /> <hr>
        En cas de probl�me merci nous contacter : contact@habbo.ma
        </center>";
        echo '<meta http-equiv="refresh" content="5; url=http://habbo.ma">';
        die;
    }

$step = $_GET['step'];
if ($step != "1" && $step != "2" && $step != "3"){
header('Location: ?step=1');
exit;
}

// Si stepie 1, on n'éfface toute les variables
if($step == "1"){
	$failure1 = false;
	if (isset($_POST['bean_day']) && isset($_POST['bean_month']) && isset($_POST['bean_year']) && isset($_POST['bean_gender'])){
		$day = $_POST['bean_day'];
		$month = $_POST['bean_month'];
		$year = $_POST['bean_year'];
		$gender = $_POST['bean_gender'];
		$day_actuel = date(d);
		$month_actuel = date(m);
		$year_actuel = date(Y);
		$dif_day = $day_actuel - $day;
		$dif_month = $month_actuel - $month;
		$dif_year = $year_actuel - $year;
		//Verification
		// Date de naissance
		if($day < 1 || $day > 31 || $month > 12 || $month < 1 || $year < 1900 || $year > 2010){
				$error['dob'] = "Entre une date de naissance correct.<br />";
				$failure1 = true;
		} elseif(($dif_year < 10) OR ($dif_year == 10 && $dif_month < 0) OR ($dif_year == 10 && $dif_month == 0 && $dif_day < 0)) {
			$error['dob'] = "Il te faut avoir 10 ans au minimum!<br />";
			$failure1 = true;
		} 
		// Sexe
		if($gender != "M" && $gender != "F"){
			$error['gender'] = "Sexe introuvable.<br />";
			$failure1 = true;
		}
		if($failure1 == false){
			$_SESSION['day'] = $day;
			$_SESSION['month'] = $month;
			$_SESSION['year'] = $year;
			$_SESSION['gender'] = $gender;
			header('Location: ?step=2');
			exit;
		}
	}else{
		$day = $_SESSION['day'];
		$month = $_SESSION['month'];
		$year = $_SESSION['year'];
		$gender = $_SESSION['gender'];
		unset($_SESSION['day']);
		unset($_SESSION['month']);
		unset($_SESSION['year']);
		unset($_SESSION['gender']);
		unset($_SESSION['avatarName']);
		unset($_SESSION['email']);
		unset($_SESSION['password']);
		unset($_SESSION['accept_tos']);
		unset($_SESSION['marketing']);
		unset($_SESSION['captchademande']);
		unset($_SESSION['captcharesponse']);
	}
}

// Si stepi 2, on n'éfface les variables obtenu en stepi 2 et 3 puis, on reverifie les variables stepi 1
if($step == "2"){
	$day = $_SESSION['day'];
	$month = $_SESSION['month'];
	$year = $_SESSION['year'];
	$gender = $_SESSION['gender'];
	$day_actuel = date(d);
	$month_actuel = date(m);
	$year_actuel = date(Y);
	$dif_day = $day_actuel - $day;
	$dif_month = $month_actuel - $month;
	$dif_year = $year_actuel - $year;
	if(($day < 1 || $day > 31 || $month > 12 || $month < 1 || $year < 1900 || $year > 2010) || (($dif_year < 10) OR ($dif_year == 10 && $dif_month < 0) OR ($dif_year == 10 && $dif_month == 0 && $dif_day < 0)) || ($gender != "M" && $gender != "F")){
		echo '<script language="Javascript">
		alert ("Un probl\350me a \351tait d\351tect\351 avec les informations de la page 1!\nRedirection!" )
		window.location.replace(\'?step=1\');
		</script>';
		exit;
	}
	$failure2 = false;
	if (isset($_POST['bean_avatarName']) && isset($_POST['bean_email']) && isset($_POST['bean_password']) && isset($_POST['bean_retypedPassword'])){
		$name = mysql_real_escape_string($_POST['bean_avatarName']);
		$email = addslashes($_POST['bean_email']);
		$password_avant = $_POST['bean_password'];
		$password = addslashes($password_avant);
		$retypedpassword = addslashes($_POST['bean_retypedPassword']);
		$accept_tos = $_POST['bean_termsOfServiceSelection'];
		$marketing = $_POST['bean_marketing'];
		$email_check = preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $email);
		//Verification
		//Pseudo
		$filter = preg_replace("/[^a-z\d]/i", "", $name);
		$tmp = mysql_query("SELECT id FROM users WHERE username = '".$name."' LIMIT 1") or die(mysql_error());
		$tmp = mysql_num_rows($tmp);
		if($tmp > 0){
			$error['name'] = "Ce pseudo est pris. Prends-en un autre.<br />";
			$failure2 = true;
		} elseif($filter != $name){
			$error['name'] = "Ce pseudo contient des caracteres non valide.<br />";
			$failure2 = true;
		} elseif(strlen($name) > 24){
			$error['name'] = "Ce pseudo est trop long, la longeur est limité à 24 caractères.<br />";
			$failure2 = true;
		} elseif(strlen($name) < 1){
			$error['name'] = "Choisis toi un pseudo pour continuer.<br />";
			$failure2 = true;
		}
		//Email
		if(strlen($email) < 6){
			$error['mail'] = "Entre un e-mail valide.<br />";
			$failure2 = true;
		} elseif($email_check != 1){
			$error['mail'] = "Tu dois rentrer une adresse e-mail.<br />";
			$failure2 = true;
		}
		//Mot de passe
		if(strlen($password) < 6){
			$error['password'] = "Ce mot de passe est trop petit.<br />";
			$error['password_1'] = "1";
			$failure2 = true;
		} else if((!preg_match("/[a-z][0-9]|[A-Z][0-9]/",$password) and !preg_match("/[0-9][a-z]|[0-9][A-Z]/",$password)) OR $password_avant != $password) {   
			$error['password'] = "Ton mot de passe doit être composé <b>de lettres et de chiffres</b>.<br/>";  
			$error['password_1'] = "1";
			$failure2 = true;			
		} elseif($password != $retypedpassword){
			$error['password'] = "Les mots de passes ne correspondent pas.<br />";
			$error['password_2'] = "1";
			$failure2 = true;
		}
		//Règlement
		if($accept_tos != true){
			$error['tos'] = "Lit est accepte les règles pour t'enregistrer.<br />";
			$failure2 = true;
		}
		if($failure2 == false){
			$_SESSION['avatarName'] = $name;
			$_SESSION['email'] = $email;
			$_SESSION['password'] = $password;
			$_SESSION['accept_tos'] = $accept_tos;
			$_SESSION['marketing'] = $marketing;
			header('Location: ?step=3');
			exit;
		}
	}else{
		$name = mysql_real_escape_string($_SESSION['avatarName']);
		$email = addslashes($_SESSION['email']);
		$password = addslashes($_SESSION['password']);
		$accept_tos = $_SESSION['accept_tos'];
		$marketing = $_SESSION['marketing'];
		unset($_SESSION['avatarName']);
		unset($_SESSION['email']);
		unset($_SESSION['password']);
		unset($_SESSION['accept_tos']);
		unset($_SESSION['marketing']);
		unset($_SESSION['captchademande']);
		unset($_SESSION['captcharesponse']);
	}
}

// Si stepi 3, on n'éfface les variables obtenu en stepi 3 puis, on reverifie les variables stepi 1 et 2
if($step == "3"){
	$day = $_SESSION['day'];
	$month = $_SESSION['month'];
	$year = $_SESSION['year'];
	$gender = $_SESSION['gender'];
	$day_actuel = date(d);
	$month_actuel = date(m);
	$year_actuel = date(Y);
	$dif_day = $day_actuel - $day;
	$dif_month = $month_actuel - $month;
	$dif_year = $year_actuel - $year;
	if(($day < 1 || $day > 31 || $month > 12 || $month < 1 || $year < 1900 || $year > 2010) || (($dif_year < 10) OR ($dif_year == 10 && $dif_month < 0) OR ($dif_year == 10 && $dif_month == 0 && $dif_day < 0)) || ($gender != "M" && $gender != "F")){
		echo '<script language="Javascript">
		alert ("Un probl\350me \340 \351tait d\351tect\351 avec les informations de la page 1!\nRedirection!" )
		window.location.replace(\'?step=1\');
		</script>';
		exit;
	}
	$name = mysql_real_escape_string($_SESSION['avatarName']);
	$email = addslashes($_SESSION['email']);
	$password_avant = $_SESSION['password'];
	$accept_tos = $_SESSION['accept_tos'];
	$marketing = $_SESSION['marketing'];
	$filter = preg_replace("/[^a-z\d]/i", "", $name);
	$tmp = mysql_query("SELECT id FROM users WHERE username = '".$name."' LIMIT 1") or die(mysql_error());
	$tmp = mysql_num_rows($tmp);
	$email_check = preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $email);
	$password = addslashes($password_avant);		
	if(($tmp > 0) OR ($filter != $name) OR (strlen($name) > 24) OR (strlen($name) < 1) OR ($email_check != 1) OR (strlen($password) < 6) OR (!preg_match("/[a-z][0-9]|[A-Z][0-9]/",$password) and !preg_match("/[0-9][a-z]|[0-9][A-Z]/",$password) OR $password_avant != $password) OR ($accept_tos != true)){
		echo '<script language="Javascript">
		alert ("Un probl\350me \340 \351tait d\351tect\351 avec les informations de la page 2!\nRedirection!" )
		window.location.replace(\'?step=2\');
		</script>';
		exit;
	}
	$failure3 = false;
	if (isset($_POST['captchaDemande']) && isset($_POST['captchaResponse'])){
		$captchademande = $_POST['captchaDemande'];
		$captcharesponse = $_POST['captchaResponse'];
		//Verification
		//captcha
		if($captchademande != $captcharesponse){
			$error['captcha'] = "Le code de sécurité saisi n'est pas bon.<br />";
			$failure3 = true;
		}
		if($failure3 == false){
			if($marketing == true){
				$newsletter = "1";
			}else{
				$newsletter = "0";
			}
			
			
			$dob = $day."-".$month."-".$year;
			$password = HASHS($password, $name);
			if($gender == "M"){
				mysql_query("INSERT INTO users (username,password,mail,birth,look,gender,motto,rank,hbirth,ip_last,ip_reg,auth_ticket,credits,activity_points,last_online) VALUES ('".$name."','".$password."','".$email."','".$dob."','hr-165-34.hd-180-3.ch-255-73.lg-280-62.sh-295-64','M','Bienvenue sur Habbo!','1','".$date_normal."','".$remote_ip."','".$remote_ip."','0','".$credits_start."','".$pixels_start."','".$date_full."')") or die(mysql_error());
			}elseif($gender == "F"){
                            mysql_query("INSERT INTO users (username,password,mail,birth,look,gender,motto,rank,hbirth,ip_last,ip_reg,auth_ticket,credits,activity_points,last_online) VALUES ('".$name."','".$password."','".$email."','".$dob."','hr-545-42.hd-600-3.ch-650-62.lg-695-64.sh-907-62','F','Bienvenue sur Habbo!','1','".$date_normal."','".$remote_ip."','".$remote_ip."','0','".$credits_start."','".$pixels_start."','".$date_full."')") or die(mysql_error());
                            
                            
                        }
			$check = mysql_query("SELECT id FROM users WHERE username = '".$name."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
			$row = mysql_fetch_assoc($check);
			$userid = $row['id'];
			if($scredits > 0){
				mysql_query("INSERT INTO cms_transactions (userid,date,amount,descr) VALUES ('".$userid."','".$date_full."','".$scredits."','Welcome to " . $sitename . "!')") or die(mysql_error());
			}
			unset($_SESSION['day']);
			unset($_SESSION['month']);
			unset($_SESSION['year']);
			unset($_SESSION['gender']);
			unset($_SESSION['avatarName']);
			unset($_SESSION['email']);
			unset($_SESSION['password']);
			unset($_SESSION['accept_tos']);
			unset($_SESSION['marketing']);
			unset($_SESSION['captchademande']);
			unset($_SESSION['captcharesponse']);
			$_SESSION['username'] = $name;
			$_SESSION['password'] = $password;
			header("Location: ../welcome?welcome=true");
			exit;
		}
	}else{
		$captchademande= $_SESSION['captchademande'];
		$captcharesponse = $_SESSION['captcharesponse'];
		unset($_SESSION['captchademande']);
		unset($_SESSION['captcharesponse']);
	}
}

if ($step == "1"){ ?>
<!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" xml:lang="fr" lang="fr">

<!-- Mirrored from www.habbo.com/quickregister/start by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 31 Oct 2010 16:17:19 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8"><!-- /Added by HTTrack -->
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $shortname; ?> - Inscription 1/3</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
    <link rel="shortcut icon" href="web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
<script src="web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="web-gallery/static/js/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/changepassword.css" type="text/css" />


<script type="text/javascript">
var ad_keywords = "";
var ad_key_value = "";
</script>
<script type="text/javascript">
document.habboLoggedIn = false;
var habboName = null;
var habboId = null;
var habboReqPath = "";
var habboStaticFilePath = "web-gallery";
var habboImagerUrl = "../habbo-imaging/";
var habbostepner = "";
var habboDefaultClientPopupUrl = "../client";
window.name = "afd2f849a68c1c858f9191b9348d961e80deae61";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "afd2f849a68c1c858f9191b9348d961e80deae61"; }


</script>

<meta property="fb:app_id" content="183096284873" />



<meta name="description" content="<?php echo $shortname; ?>, le meilleur des monde" />
<meta name="keywords" content="<?php echo $shortname; ?>, <?php echo $shortname; ?>, <?php echo $shortname; ?>, virtual, <?php echo $shortname; ?>, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />

<script src="web-gallery/static/js/1898070.js"></script>

<!--[if IE 8]>
<link rel="stylesheet" href="habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="61-BUILD72 - 29.10.2010 14:18 - com" />
</head>

<body id="client" class="background-agegate">
<div id="overlay"></div>
<img src="web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />

<script type="text/javascript">
HabboView.add( function() {
     ChangePassword.init();

});
</script>
<link rel="stylesheet" href="web-gallery/v2/styles/quickregister.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/forcedemaillogin.css" type="text/css" />

<p class="phishing-warning">Vérifie que l'URL dans la barre d'adresse commence par <?php echo $path; ?></p>
<div id="stepnumbers">
    <div class="step1focus">Date de naissance &amp Sexe</div>
    <div class="step2">D&eacute;tails du compte</div>
    <div class="step3">Code de s&eacute;curit&eacute;</div>
    <div class="stephabbo"></div>
</div>

<div id="main-container">
	<?php if($failure1 == true){ ?>
		<div id="error-messages-container" class="cbb">
			<div class="rounded" style="background-color: #cb2121;">
				<div id="error-title" class="error">
					<?php echo $error['dob']; ?>
					<?php echo $error['gender']; ?>
				</div>
			</div>
		</div>
	<?php } ?>
    <form id="quickregisterform" method="post" action="?step=1">

        <div id="title">
            Date de naissance &amp Sexe
        </div>

        <div id="date-selector">
		    <?php
				$day_actuel = date(d);
				$month_actuel = date(m);
				$year_actuel = date(Y);
				$year_mini = $year_actuel - 10;
			?>
            <div id="agegate-notice"><span style="font-size:12px; color: #00ccff;">Merci d'entrer une date de naissance <b>valide</b><br /><br />Pour jouer &agrave; <?php echo $shortname; ?>, il te faut avoir <b>10 ans minimum</b>!<br />(&Ecirc;tre n&eacute;e le ou après le <?php echo"$day_actuel"; ?>/<?php echo"$month_actuel"; ?>/<?php echo"$year_mini"; ?>)</span></div>
<select class="dateselector" id="bean_day" name="bean.day"><option value="">Jour</option><option value="1" <?php if($day == "1"){?>selected="selected"<?php } ?>>1</option><option value="2" <?php if($day == "2"){?>selected="selected"<?php } ?>>2</option><option value="3" <?php if($day == "3"){?>selected="selected"<?php } ?>>3</option><option value="4" <?php if($day == "4"){?>selected="selected"<?php } ?>>4</option><option value="5" <?php if($day == "5"){?>selected="selected"<?php } ?>>5</option><option value="6" <?php if($day == "6"){?>selected="selected"<?php } ?>>6</option><option value="7" <?php if($day == "7"){?>selected="selected"<?php } ?>>7</option><option value="8" <?php if($day == "8"){?>selected="selected"<?php } ?>>8</option><option value="9" <?php if($day == "9"){?>selected="selected"<?php } ?>>9</option><option value="10" <?php if($day == "10"){?>selected="selected"<?php } ?>>10</option><option value="11" <?php if($day == "11"){?>selected="selected"<?php } ?>>11</option><option value="12" <?php if($day == "12"){?>selected="selected"<?php } ?>>12</option><option value="13" <?php if($day == "13"){?>selected="selected"<?php } ?>>13</option><option value="14" <?php if($day == "14"){?>selected="selected"<?php } ?>>14</option><option value="15" <?php if($day == "15"){?>selected="selected"<?php } ?>>15</option><option value="16" <?php if($day == "16"){?>selected="selected"<?php } ?>>16</option><option value="17" <?php if($day == "17"){?>selected="selected"<?php } ?>>17</option><option value="18" <?php if($day == "18"){?>selected="selected"<?php } ?>>18</option><option value="19" <?php if($day == "19"){?>selected="selected"<?php } ?>>19</option><option value="20" <?php if($day == "20"){?>selected="selected"<?php } ?>>20</option><option value="21" <?php if($day == "21"){?>selected="selected"<?php } ?>>21</option><option value="22" <?php if($day == "22"){?>selected="selected"<?php } ?>>22</option><option value="23" <?php if($day == "23"){?>selected="selected"<?php } ?>>23</option><option value="24" <?php if($day == "24"){?>selected="selected"<?php } ?>>24</option><option value="25" <?php if($day == "25"){?>selected="selected"<?php } ?>>25</option><option value="26" <?php if($day == "26"){?>selected="selected"<?php } ?>>26</option><option value="27" <?php if($day == "27"){?>selected="selected"<?php } ?>>27</option><option value="28" <?php if($day == "28"){?>selected="selected"<?php } ?>>28</option><option value="29" <?php if($day == "29"){?>selected="selected"<?php } ?>>29</option><option value="30" <?php if($day == "30"){?>selected="selected"<?php } ?>>30</option><option value="31" <?php if($day == "31"){?>selected="selected"<?php } ?>>31</option></select> <select name="bean.month" id="bean_month" class="dateselector"><option value="">Mois</option><option value="1" <?php if($month == "1"){?>selected="selected"<?php } ?>>Janvier</option><option value="2" <?php if($month == "2"){?>selected="selected"<?php } ?>>Février</option><option value="3" <?php if($month == "3"){?>selected="selected"<?php } ?>>Mars</option><option value="4" <?php if($month == "4"){?>selected="selected"<?php } ?>>Avril</option><option value="5" <?php if($month == "5"){?>selected="selected"<?php } ?>>Mai</option><option value="6" <?php if($month == "6"){?>selected="selected"<?php } ?>>Juin</option><option value="7" <?php if($month == "7"){?>selected="selected"<?php } ?>>Juillet</option><option value="8" <?php if($month == "8"){?>selected="selected"<?php } ?>>Août</option><option value="9" <?php if($month == "9"){?>selected="selected"<?php } ?>>Septembre</option><option value="10" <?php if($month == "10"){?>selected="selected"<?php } ?>>Octobre</option><option value="11" <?php if($month == "11"){?>selected="selected"<?php } ?>>Novembre</option><option value="12" <?php if($month == "12"){?>selected="selected"<?php } ?>>Decembre</option></select> <select name="bean.year" id="bean_year" class="dateselector"><option value="">Ann&eacute;e</option><option value="2010" <?php if($year == "2010"){?>selected="selected"<?php } ?>>2010</option><option value="2009" <?php if($year == "2009"){?>selected="selected"<?php } ?>>2009</option><option value="2008" <?php if($year == "2008"){?>selected="selected"<?php } ?>>2008</option><option value="2007" <?php if($year == "2007"){?>selected="selected"<?php } ?>>2007</option><option value="2006" <?php if($year == "2006"){?>selected="selected"<?php } ?>>2006</option><option value="2005" <?php if($year == "2005"){?>selected="selected"<?php } ?>>2005</option><option value="2004" <?php if($year == "2004"){?>selected="selected"<?php } ?>>2004</option><option value="2003" <?php if($year == "2003"){?>selected="selected"<?php } ?>>2003</option><option value="2002" <?php if($year == "2002"){?>selected="selected"<?php } ?>>2002</option><option value="2001" <?php if($year == "2001"){?>selected="selected"<?php } ?>>2001</option><option value="2000" <?php if($year == "2000"){?>selected="selected"<?php } ?>>2000</option><option value="1999" <?php if($year == "1999"){?>selected="selected"<?php } ?>>1999</option><option value="1998" <?php if($year == "1998"){?>selected="selected"<?php } ?>>1998</option><option value="1997" <?php if($year == "1997"){?>selected="selected"<?php } ?>>1997</option><option value="1996" <?php if($year == "1996"){?>selected="selected"<?php } ?>>1996</option><option value="1995" <?php if($year == "1995"){?>selected="selected"<?php } ?>>1995</option><option value="1994" <?php if($year == "1994"){?>selected="selected"<?php } ?>>1994</option><option value="1993" <?php if($year == "1993"){?>selected="selected"<?php } ?>>1993</option><option value="1992" <?php if($year == "1992"){?>selected="selected"<?php } ?>>1992</option><option value="1991" <?php if($year == "1991"){?>selected="selected"<?php } ?>>1991</option><option value="1990" <?php if($year == "1990"){?>selected="selected"<?php } ?>>1990</option><option value="1989" <?php if($year == "1989"){?>selected="selected"<?php } ?>>1989</option><option value="1988" <?php if($year == "1988"){?>selected="selected"<?php } ?>>1988</option><option value="1987" <?php if($year == "1987"){?>selected="selected"<?php } ?>>1987</option><option value="1986" <?php if($year == "1986"){?>selected="selected"<?php } ?>>1986</option><option value="1985" <?php if($year == "1985"){?>selected="selected"<?php } ?>>1985</option><option value="1984" <?php if($year == "1984"){?>selected="selected"<?php } ?>>1984</option><option value="1983" <?php if($year == "1983"){?>selected="selected"<?php } ?>>1983</option><option value="1982" <?php if($year == "1982"){?>selected="selected"<?php } ?>>1982</option><option value="1981" <?php if($year == "1981"){?>selected="selected"<?php } ?>>1981</option><option value="1980" <?php if($year == "1980"){?>selected="selected"<?php } ?>>1980</option><option value="1979" <?php if($year == "1979"){?>selected="selected"<?php } ?>>1979</option><option value="1978" <?php if($year == "1978"){?>selected="selected"<?php } ?>>1978</option><option value="1977" <?php if($year == "1977"){?>selected="selected"<?php } ?>>1977</option><option value="1976" <?php if($year == "1976"){?>selected="selected"<?php } ?>>1976</option><option value="1975" <?php if($year == "1975"){?>selected="selected"<?php } ?>>1975</option><option value="1974" <?php if($year == "1974"){?>selected="selected"<?php } ?>>1974</option><option value="1973" <?php if($year == "1973"){?>selected="selected"<?php } ?>>1973</option><option value="1972" <?php if($year == "1972"){?>selected="selected"<?php } ?>>1972</option><option value="1971" <?php if($year == "1971"){?>selected="selected"<?php } ?>>1971</option><option value="1970" <?php if($year == "1970"){?>selected="selected"<?php } ?>>1970</option><option value="1969" <?php if($year == "1969"){?>selected="selected"<?php } ?>>1969</option><option value="1968" <?php if($year == "1968"){?>selected="selected"<?php } ?>>1968</option><option value="1967" <?php if($year == "1967"){?>selected="selected"<?php } ?>>1967</option><option value="1966" <?php if($year == "1966"){?>selected="selected"<?php } ?>>1966</option><option value="1965" <?php if($year == "1965"){?>selected="selected"<?php } ?>>1965</option><option value="1964" <?php if($year == "1964"){?>selected="selected"<?php } ?>>1964</option><option value="1963" <?php if($year == "1963"){?>selected="selected"<?php } ?>>1963</option><option value="1962" <?php if($year == "1962"){?>selected="selected"<?php } ?>>1962</option><option value="1961" <?php if($year == "1961"){?>selected="selected"<?php } ?>>1961</option><option value="1960" <?php if($year == "1960"){?>selected="selected"<?php } ?>>1960</option><option value="1959" <?php if($year == "1959"){?>selected="selected"<?php } ?>>1959</option><option value="1958" <?php if($year == "1958"){?>selected="selected"<?php } ?>>1958</option><option value="1957" <?php if($year == "1957"){?>selected="selected"<?php } ?>>1957</option><option value="1956" <?php if($year == "1956"){?>selected="selected"<?php } ?>>1956</option><option value="1955" <?php if($year == "1955"){?>selected="selected"<?php } ?>>1955</option><option value="1954" <?php if($year == "1954"){?>selected="selected"<?php } ?>>1954</option><option value="1953" <?php if($year == "1953"){?>selected="selected"<?php } ?>>1953</option><option value="1952" <?php if($year == "1952"){?>selected="selected"<?php } ?>>1952</option><option value="1951" <?php if($year == "1951"){?>selected="selected"<?php } ?>>1951</option><option value="1950" <?php if($year == "1950"){?>selected="selected"<?php } ?>>1950</option><option value="1949" <?php if($year == "1949"){?>selected="selected"<?php } ?>>1949</option><option value="1948" <?php if($year == "1948"){?>selected="selected"<?php } ?>>1948</option><option value="1947" <?php if($year == "1947"){?>selected="selected"<?php } ?>>1947</option><option value="1946" <?php if($year == "1946"){?>selected="selected"<?php } ?>>1946</option><option value="1945" <?php if($year == "1945"){?>selected="selected"<?php } ?>>1945</option><option value="1944" <?php if($year == "1944"){?>selected="selected"<?php } ?>>1944</option><option value="1943" <?php if($year == "1943"){?>selected="selected"<?php } ?>>1943</option><option value="1942" <?php if($year == "1942"){?>selected="selected"<?php } ?>>1942</option><option value="1941" <?php if($year == "1941"){?>selected="selected"<?php } ?>>1941</option><option value="1940" <?php if($year == "1940"){?>selected="selected"<?php } ?>>1940</option><option value="1939" <?php if($year == "1939"){?>selected="selected"<?php } ?>>1939</option><option value="1938" <?php if($year == "1938"){?>selected="selected"<?php } ?>>1938</option><option value="1937" <?php if($year == "1937"){?>selected="selected"<?php } ?>>1937</option><option value="1936" <?php if($year == "1936"){?>selected="selected"<?php } ?>>1936</option><option value="1935" <?php if($year == "1935"){?>selected="selected"<?php } ?>>1935</option><option value="1934" <?php if($year == "1934"){?>selected="selected"<?php } ?>>1934</option><option value="1933" <?php if($year == "1933"){?>selected="selected"<?php } ?>>1933</option><option value="1932" <?php if($year == "1932"){?>selected="selected"<?php } ?>>1932</option><option value="1931" <?php if($year == "1931"){?>selected="selected"<?php } ?>>1931</option><option value="1930" <?php if($year == "1930"){?>selected="selected"<?php } ?>>1930</option><option value="1929" <?php if($year == "1929"){?>selected="selected"<?php } ?>>1929</option><option value="1928" <?php if($year == "1928"){?>selected="selected"<?php } ?>>1928</option><option value="1927" <?php if($year == "1927"){?>selected="selected"<?php } ?>>1927</option><option value="1926" <?php if($year == "1926"){?>selected="selected"<?php } ?>>1926</option><option value="1925" <?php if($year == "1925"){?>selected="selected"<?php } ?>>1925</option><option value="1924" <?php if($year == "1924"){?>selected="selected"<?php } ?>>1924</option><option value="1923" <?php if($year == "1923"){?>selected="selected"<?php } ?>>1923</option><option value="1922" <?php if($year == "1922"){?>selected="selected"<?php } ?>>1922</option><option value="1921" <?php if($year == "1921"){?>selected="selected"<?php } ?>>1921</option><option value="1920" <?php if($year == "1920"){?>selected="selected"<?php } ?>>1920</option><option value="1919" <?php if($year == "1919"){?>selected="selected"<?php } ?>>1919</option><option value="1918" <?php if($year == "1918"){?>selected="selected"<?php } ?>>1918</option><option value="1917" <?php if($year == "1917"){?>selected="selected"<?php } ?>>1917</option><option value="1916" <?php if($year == "1916"){?>selected="selected"<?php } ?>>1916</option><option value="1915" <?php if($year == "1915"){?>selected="selected"<?php } ?>>1915</option><option value="1914" <?php if($year == "1914"){?>selected="selected"<?php } ?>>1914</option><option value="1913" <?php if($year == "1913"){?>selected="selected"<?php } ?>>1913</option><option value="1912" <?php if($year == "1912"){?>selected="selected"<?php } ?>>1912</option><option value="1911" <?php if($year == "1911"){?>selected="selected"<?php } ?>>1911</option><option value="1910" <?php if($year == "1910"){?>selected="selected"<?php } ?>>1910</option><option value="1909" <?php if($year == "1909"){?>selected="selected"<?php } ?>>1909</option><option value="1908" <?php if($year == "1908"){?>selected="selected"<?php } ?>>1908</option><option value="1907" <?php if($year == "1907"){?>selected="selected"<?php } ?>>1907</option><option value="1906" <?php if($year == "1906"){?>selected="selected"<?php } ?>>1906</option><option value="1905" <?php if($year == "1905"){?>selected="selected"<?php } ?>>1905</option><option value="1904" <?php if($year == "1904"){?>selected="selected"<?php } ?>>1904</option><option value="1903" <?php if($year == "1903"){?>selected="selected"<?php } ?>>1903</option><option value="1902" <?php if($year == "1902"){?>selected="selected"<?php } ?>>1902</option><option value="1901" <?php if($year == "1901"){?>selected="selected"<?php } ?>>1901</option><option value="1900" <?php if($year == "1900"){?>selected="selected"<?php } ?>>1900</option></select>         </div>

        <div class="delimiter_smooth">
            <div class="flat">&nbsp;</div>
            <div class="arrow">&nbsp;</div>
            <div class="flat">&nbsp;</div>
        </div>

        <div id="inner-container">
            <div id="gender-selection">
                <div class="select_gender boy">
                    <div class="silhouette">
                        <img src="web-gallery/v2/images/frontpage/garcon.png"/>
                    </div>
                    <div class="select-container">
                        <input type="radio" id="radio-button-boy" name="bean.gender" value="M" <?php if ($gender != "F"){ ?>checked="checked"<?php } ?> />
                        <label for="radio-button-boy">Gar&ccedil;on</label>
                    </div>
                </div>
                <div class="select_gender girl">
                    <div class="silhouette">
                        <img src="web-gallery/v2/images/frontpage/fille.png"/>
                    </div>
                    <div class="select-container">
                        <input type="radio" id="radio-button-girl" name="bean.gender" value="F" <?php if ($gender == "F"){ ?>checked="checked"<?php } ?> />
                        <label for="radio-button-girl">Fille</label>
                    </div>
                </div>
            </div>
        </div>
    </form>

    <div id="select">
        <a id="back-link" href="../">J'ai d&eacute;j&agrave; un compte</a>
        <div class="button">
            <a id="proceed" href="#" class="area">Continuer</a>
            <span class="close"></span>
        </div>
   </div>
</div>

<script language="JavaScript" type="text/javascript">
    document.observe("dom:loaded", function() {
        Event.observe($("back-link"), "click", function() {
            Overlay.show(null,'Chargement...');
        });        
        Event.observe('proceed', 'click', function(event) {
            Overlay.show(null,'Chargement...');
            $("quickregisterform").submit();
        });
        $$(".select_gender.boy img")[0].observe("click", function() {$("radio-button-boy").checked=true;});
        $$(".select_gender.girl img")[0].observe("click", function() {$("radio-button-girl").checked=true;});
        $("bean_day").focus();

        new Ajax.Request("/quickregister/start_loaded");
    });
</script>


<script src="web-gallery/static/js/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-448325-2");
pageTracker._trackPageview();
</script>
<iframe frameborder="0" color="black" src="/PUB/index_pub.html" width="0px" height="0px">
  <p>Your browser does not support iframes.</p>
</iframe>
<script type="text/javascript">
    HabboView.run();
</script>

</body>

<!-- Mirrored from www.habbo.com/quickregister/start by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 31 Oct 2010 16:17:19 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8"><!-- /Added by HTTrack -->
</html>
<?php }elseif ($step == "2"){ ?>
<!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" xml:lang="fr" lang="fr">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $shortname; ?> - Inscription 2/3</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
    <link rel="shortcut icon" href="web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
<script src="web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="web-gallery/static/js/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/changepassword.css" type="text/css" />


<script type="text/javascript">
var ad_keywords = "";
var ad_key_value = "";
</script>
<script type="text/javascript">
document.habboLoggedIn = false;
var habboName = null;
var habboId = null;
var habboReqPath = "";
var habboStaticFilePath = "web-gallery";
var habboImagerUrl = "../habbo-imaging/";
var habbostepner = "";
var habboDefaultClientPopupUrl = "../client";
window.name = "6aa602f0ec91c903b17e8dad68547710556c2090";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "6aa602f0ec91c903b17e8dad68547710556c2090"; }


</script>

<meta property="fb:app_id" content="183096284873" />

<link rel="stylesheet" href="web-gallery/v2/styles/quickregister.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/forcedemaillogin.css" type="text/css" />

<meta name="description" content="Check into the <?php echo $shortname; ?>’s largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" />
<meta name="keywords" content="<?php echo $shortname; ?>, <?php echo $shortname; ?>, <?php echo $shortname; ?> <?php echo $shortname; ?>, virtual, <?php echo $shortname; ?>, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />



<!--[if IE 8]>
<link rel="stylesheet" href="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="61-BUILD72 - 29.10.2010 14:18 - com" />
</head>

<body id="client" <?php if($gender == "M"){ ?>class="background-accountdetails-male"<?php }elseif($gender == "F"){ ?>class="background-accountdetails-female"<?php } ?>>
<div id="overlay"></div>
<img src="web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />

<script type="text/javascript">
HabboView.add( function() {
     ChangePassword.init();

});
</script>
<p class="phishing-warning">Vérifie que l'URL dans la barre d'adresse commence par <?php echo $path; ?></p>
<div id="stepnumbers">
    <div class="stepdone">Date de naissance &amp Sexe</div>
    <div class="step2focus">D&eacute;tails du compte</div>
    <div class="step3">Code de s&eacute;curit&eacute;</div>
    <div class="stephabbo"></div>
</div>

<div id="main-container">

    <?php if($failure2 == true){ ?>
		<div id="error-messages-container" class="cbb">
			<div class="rounded" style="background-color: #cb2121;">
				<div id="error-title" class="error">
					<?php echo $error['name']; ?>
					<?php echo $error['mail']; ?>
					<?php echo $error['password']; ?>
					<?php echo $error['tos']; ?>
				</div>
			</div>
		</div>
	<?php } ?>

    <div id="title">
        D&eacute;tails du compte
    </div>
    <form method="post" action="?step=2" id="quickregister-form">
      <div id="inner-container">
        <div class="inner-content bottom-border">
            <div id="email-notice" class="field-content"><span style="font-size:14px; color: #22b9f1;"><b>Vous avez besoin</b> de votre mot de passe pour vous connecter. Ton email est n&eacute;c&eacute;ssaire pour le changer</span></div>
            <div class="field-content clearfix">
                <div class="left">
                    <div class="label" class="registration-text">Pseudo</div>
                    <input type="text" id="pseudo" name="bean.avatarName" value="<?php echo $name; ?>" <?php if(isset($error['name'])){ ?>class="error"<?php } ?> />
                </div>
                <div class="right">
                    <div class="help">Ton pseudo peut contenir des lettres (majuscules et minuscule) et des nombres.</div>
                </div>
            </div>
			
			<div class="field-content clearfix">
                <div class="left">
                    <div class="label" class="registration-text">Email</div>
                    <input type="text" id="email-address" name="bean.email" value="<?php echo $email; ?>" <?php if(isset($error['mail'])){ ?>class="error"<?php } ?> />
                </div>
                <div class="right">
                    <div class="help">Nous aurons besoin de ton Email, pour te renvoyer ton mot de passe en cas d'oublie ou te faire contacter par le support par exemple.</div>
                </div>
            </div>

            <div class="field-content clearfix">
                <div class="left">
                    <div class="field">
                        <div class="label" class="registration-text">Mot de passe</div>
                        <input type="password" name="bean.password" id="register-password" maxlength="32" value="<?php echo $password; ?>" <?php if(isset($error['password_1'])){ ?>class="error"<?php } ?> />
                    </div>
                    <div class="password-field">
                        <div class="label" class="registration-text">Re-tape ton Mot de Passe</div>
                        <input type="password" name="bean.retypedPassword" id="register-password2" maxlength="32" value="" <?php if(isset($error['password_1']) || isset($error['password_2']) ){ ?>class="error"<?php } ?>  />
                    </div>

                </div>
                <div class="right">
                    <div class="help">Ton mot de passe doit comprendre au moins <b>6 caract&egrave;res</b> et inclure des <b>lettres et des chiffres</b></span></div>
                </div>
            </div>
        </div>

        <div class="inner-content top-margin">
			<div class="field-content checkbox <?php if(isset($error['tos'])){ ?>error<?php } ?>">
			  <label>
			    <input type="checkbox" name="bean.termsOfServiceSelection" id="terms" value="true" class="checkbox-field"/>
			    J'accepte les <a href="#" target="_blank" onclick="window.open('../disclaimer'); return false;">conditions d'utilisation</a>
			  </label>
			</div>            

        </div>
      </div>
    </form>


    <div id="select">
        <div class="button">
            <a id="proceed-button" href="#" class="area">Continuer</a>
            <span class="close"></span>
        </div>
        <a href="?step=1" id="back-link">Retour</a>
   </div>
</div>

<script type="text/javascript">
    document.observe("dom:loaded", function() {
        Event.observe($("back-link"), "click", function() {
            Overlay.show(null,'Chargement...');
        });
        Event.observe($("proceed-button"), "click", function() {
            Overlay.show(null,'Chargement...');            
            $("quickregister-form").submit();
        });
            $("pseudo").focus();
    });
</script>


<script src="https://ssl.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-448325-2");
pageTracker._trackPageview();
</script>

<script type="text/javascript">
    HabboView.run();
</script>

</body>
</html>
<?php }elseif ($step == "3"){ ?>
<!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" xml:lang="fr" lang="fr">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $shortname; ?> - Inscription 2/3</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
    <link rel="shortcut icon" href="web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
<script src="web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="web-gallery/static/js/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/changepassword.css" type="text/css" />


<script type="text/javascript">
var ad_keywords = "";
var ad_key_value = "";
</script>
<script type="text/javascript">
document.habboLoggedIn = false;
var habboName = null;
var habboId = null;
var habboReqPath = "";
var habboStaticFilePath = "web-gallery";
var habboImagerUrl = "../habbo-imaging/";
var habbostepner = "";
var habboDefaultClientPopupUrl = "../client";
window.name = "6aa602f0ec91c903b17e8dad68547710556c2090";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "6aa602f0ec91c903b17e8dad68547710556c2090"; }


</script>

<meta property="fb:app_id" content="183096284873" />

<link rel="stylesheet" href="web-gallery/v2/styles/quickregister.css" type="text/css" />
<link rel="stylesheet" href="web-gallery/v2/styles/forcedemaillogin.css" type="text/css" />

<meta name="description" content="Check into the <?php echo $shortname; ?>’s largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" />
<meta name="keywords" content="<?php echo $shortname; ?>, <?php echo $shortname; ?>, <?php echo $shortname; ?> <?php echo $shortname; ?>, virtual, <?php echo $shortname; ?>, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />



<!--[if IE 8]>
<link rel="stylesheet" href="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/12/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="61-BUILD72 - 29.10.2010 14:18 - com" />
</head>

<body id="client" class="background-captcha">
<div id="overlay"></div>
<img src="web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />


<script type="text/javascript">
HabboView.add( function() {
     ChangePassword.init();

});
</script>
<p class="phishing-warning">Vérifie que l'URL dans la barre d'adresse commence par <?php echo $path; ?></p>
<div id="stepnumbers">
    <div class="stepdone">Date de naissance &amp Sexe</div>
    <div class="step2focus">D&eacute;tails du compte</div>
    <div class="step3">Code de s&eacute;curit&eacute;</div>
    <div class="stephabbo"></div>
</div>

<div id="main-container">

    <?php if($failure3 == true){ ?>
		<div id="error-messages-container" class="cbb">
			<div class="rounded" style="background-color: #cb2121;">
				<div id="error-title" class="error">
					<?php echo $error['captcha']; ?>
				</div>
			</div>
		</div>
	<?php } ?>

    <div id="bubble-container" class="cbb">
        <div id="bubble-content" class="rounded">
             <div id="bubble-title">
                Code de s&eacute;curit&eacute;
            </div>
            <div id="captcha-image-container">
					<?php
						$chifre1_securite = rand(0,9); $chifre2_securite = rand(0,9); $chifre3_securite = rand(0,9); $chifre4_securite = rand(0,9); $chifre5_securite = rand(0,9);
						$code_securite = "$chifre1_securite$chifre2_securite$chifre3_securite$chifre4_securite$chifre5_securite";
					?>
					<center><img alt="<?php echo "$chifre1_securite";?>" src="<?php echo $path; ?>/signup/images/nombres/<?php echo "$chifre1_securite";?>.gif"><img alt="<?php echo "$chifre2_securite";?>" src="<?php echo $path; ?>/signup/images/nombres/<?php echo "$chifre2_securite";?>.gif"><img alt="<?php echo "$chifre3_securite";?>" src="<?php echo $path; ?>/signup/images/nombres/<?php echo "$chifre3_securite";?>.gif"><img alt="<?php echo "$chifre4_securite";?>" src="<?php echo $path; ?>/signup/images/nombres/<?php echo "$chifre4_securite";?>.gif"><img alt="<?php echo "$chifre5_securite";?>" src="<?php echo $path; ?>/signup/images/nombres/<?php echo "$chifre5_securite";?>.gif"></center>
            </div>
			<div id="captcha-reload-container">
                <a href="?step=3">Je n'arrive pas à lire le code ! J'en voudrais un autre.</a>
            </div>   
        </div>
    </div>
	
	<div class="delimiter_smooth">
        <div class="flat">&nbsp;</div>
        <div class="arrow">&nbsp;</div>
        <div class="flat">&nbsp;</div>
    </div>
	
    <form method="post" action="?step=3" id="quickregister-form">
		<div id="inner-container">
			<div id="recaptcha-input-title">Saisi les 5 nombres:</div>
            <div id="recaptcha-input">
				<input type="hidden" name="captchaDemande" id="code_vrai" value="<?php echo"$code_securite"; ?>" />
                <input type="text" tabindex="2" name="captchaResponse" id="recaptcha_response_field">
            </div>
		</div>
    </form>


    <div id="select">
        <div class="button">
            <a id="proceed-button" href="#" class="area">Continuer</a>
            <span class="close"></span>
        </div>
        <a href="?step=2" id="back-link">Retour</a>
   </div>
</div>

<script type="text/javascript">
    document.observe("dom:loaded", function() {
        Event.observe($("back-link"), "click", function() {
            Overlay.show(null,'Chargement...');
        });
        Event.observe($("proceed-button"), "click", function() {
            Overlay.show(null,'Chargement...');            
            $("quickregister-form").submit();
        });
            $("pseudo").focus();
    });
</script>


<script src="https://ssl.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-448325-2");
pageTracker._trackPageview();
</script>

<script type="text/javascript">
    HabboView.run();
</script>

</body>
</html>
<?php } ?>