Problema problema register

polvere49

Nuovo utente
Autore del topic
14 Maggio 2012
37
9
Miglior risposta
0
ciao ragazzi quando provo a registrarmi nel mio retro mi esce questo
Perfavore, Entra oppure Registrati per vedere i Link!
uso db di season e cms mio base haddo cms v2 aiutatemi grazie
 
Riferimento: problema register

Prova a mettere la pass e il secret code uguali....
 
Riferimento: problema register

Postami il register, vedo cosa va storto, altrimenti prova a cambiare database
 
Riferimento: problema register

il problema che stanno 2 register.php uno in htdocs e un altro in ajax ti posto quello di htdocs


<?php
/*=====================================================================+
|| # HaddoCMS based HoloCMS - Website and Content Management System
|+=====================================================================+
|| # Copyright � 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+=====================================================================+
|| # HaddoCMS v2.0 by Raikas77
|| # www.sciax2.it/forum/development/haddocms-v2-build-2100-a-535753.html
|+=====================================================================*/

include('core.php');

require_once 'static/templates/header.php';

if(session_is_registered(username)){
header("LOCATION: ". $path ."/index.php");
}

?>

<!--[if lt IE 9]>
<style type="text/css">
.fb-reg-bottom {
border-bottom: 1px solid black;
bottom: 0;
}
input.text{
margin-top: 4px;
margin-bottom: 2px;
}
</style>
<![endif]-->
<script type="text/javascript" src="static/js/jquery.countdown.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){


// Terms Dialog

$('#terms-dialog').dialog({

autoOpen: false,

width: 420,
modal: true,
dialogClass: 'terms-dialog',
open: function(event, ui) {
_gaq.push(['_trackEvent', 'Dialog', 'Terms']);
}

});

// terms Link

$('.terms_link').click(function(){

$('#terms-dialog').dialog('open');

return false;

});

// Privacy Dialog

$('#privacy-dialog').dialog({

autoOpen: false,

width: 420,
modal: true,
dialogClass: 'terms-dialog',
open: function(event, ui) {
_gaq.push(['_trackEvent', 'Dialog', 'Privacy policy']);
}

});

// privacy Link

$('.privacy_link').click(function(){

$('#privacy-dialog').dialog('open');

return false;

});

// Underage Dialog

$('#underage-dialog').dialog({

autoOpen: false,

width: 329,
modal: true,
dialogClass: 'terms-dialog underage-dialog'

});

$('#close-underage-dialog').click(function(event){
event.preventDefault();

$('#underage-dialog').dialog('close');

});


/* default register */
$('#submit_signup').click(function(event) {
event.preventDefault();

regManager.register('default');
});

/* hande agree checkbox */
var checkboxes = $('.checkbox');

for(var i=0;i<checkboxes.length;i++){
if ($(checkboxes).children("input").is(':checked')){
$(checkboxes).addClass("checked");
}
}

$(".checkbox").click(function(){
if($(this).children("input").is(':checked')){
// uncheck
$(this).children("input").removeAttr('checked');
$(this).removeClass("checked");
}else{
// check
$(this).children("input").attr('checked','checked');
$(this).addClass("checked");
}
});

/* initial input texts */
emailInitialTxt = 'Scrivi qui la tua E-mail';
usernameInitialTxt = 'Scrivi qui il tuo Username';
referenteInitialTxt = 'Scrivi qui il tuo Referente';
birthdayInitialDay = 'Giorno';
birthdayInitialMonth = 'Mese';
birthdayInitialYear = 'Anno';

/* input texts */
$("#bday_day").click(function() {
if($(this).val() == birthdayInitialDay) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#bday_day').blur(function() {
if($(this).val() == ''){
$(this).val(birthdayInitialDay);
}
});

$("#bday_month").click(function() {
if($(this).val() == birthdayInitialMonth) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#bday_month').blur(function() {
if($(this).val() == ''){
$(this).val(birthdayInitialMonth);
}
});

$("#bday_year").click(function() {
if($(this).val() == birthdayInitialYear) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#bday_year').blur(function() {
if($(this).val() == ''){
$(this).val(birthdayInitialYear);
}
});
});
</script>


<script type="text/javascript" >
ASSET_URL = 'static/assets';
staticUrl = 'static/';

defaultError = 'Something went wrong, try again.';

$(document).ready(function() {
/* input info texts */

$("#id_email, .email_invitation").click(function() {
if($(this).val() == emailInitialTxt) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_email, .email_invitation').blur(function() {
if($(this).val() == ''){
$(this).val(emailInitialTxt);
}
});

$("#id_username, .email_invitation").click(function() {
if($(this).val() == usernameInitialTxt) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_username, .email_invitation').blur(function() {
if($(this).val() == ''){
$(this).val(usernameInitialTxt);
}
});

$("#id_referente, .email_invitation").click(function() {
if($(this).val() == referenteInitialTxt) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_referente, .email_invitation').blur(function() {
if($(this).val() == ''){
$(this).val(referenteInitialTxt);
}
});

/* fade errors */
$('.error-container').live("hover", function(){
$(this).fadeOut();
});

});
</script>


<!-- GOOGLE ANALYTCS -->
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', '']);
</script>




<body>
<div id="black-bg"></div>

<div id="page">
<div id="main">
<div id="main-wrap">
<div id="top">
<div class="main-top">
<header>
<h1><?php echo $shortname ?>: Registrati</h1>
<div id="main-logo">
<a href="/" ><img src="static/images/logo.png" alt="Retro logo" /></a>
</div>
</header>
<div id="social">
<div>
</div>
</div>
</div>

<div class="secondary-top landing">
<div id="content-top">

</div>
</div>

</div>


<div id="primary">

<div class="container float landing">
<section class="clear">
<div id="content" class="float">
<header>
<h1>Benvenuto in <?php echo $shortname ?> Hotel Italia!</h1>

</header>

<p>
<?php echo $shortname ?> e' un ambiente virtuale di gioco on-line per teenager. I giovani visitatori possono entrare in un hotel virtuale e creare gratuitamente un proprio personaggio con cui incontrare, parlare e giocare con i coetanei in un ambiente sicuro e non violento.
</p>

<p>
Scopri come registrarti grazie a 3 semplici Passaggi:
</p><br />

<h3 class="lightGray">1. Registrazione</h3>

<p class="smaller">
Prima di poter iniziare a giocare in <?php echo $shortname ?> e' necessario registrarsi, cliccando a destra "Registrati". A quel punto bastera' semplicemente compilare i campi richiesti.
</p>

<h3 class="lightGray">2. Creazione Avatar</h3>

<p class="smaller">
Non vorrai mica andare in giro per <?php echo $shortname ?> con dei vestiti da quattro soldi! Scegli il tuo look ed avviati al passo successivo!
</p>

<h3 class="lightGray">3. Benvenuto in Hotel!</h3>

<p class="smaller">
Sei ufficialmente un <?php echo $shortname ?>, ora inserendo il tuo nome utente e la password scelta in precedenza potrai accedere direttamente dalla Pagina Principale!
</p>
</div>



<aside id="register" class="float round content-aside landing">

<div class="round-content">

<div id="register-top"></div>

<div class="register-content">
<div class="first">


<h3>Username:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo createSecurityHash(32, true, true); ?>' /></div>
<div class="input-area">
<div id="error_usernamex" class="errors error-top"></div>
<input id="id_username" type="text" class="text" value="Scrivi qui il tuo Username" name="usernamex" />
</div>

<h3>E-mail:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo createSecurityHash(32, true, true); ?>' /></div>
<div class="input-area">
<div id="error_email" class="errors error-top"></div>
<input id="id_email" type="text" class="text" value="Scrivi qui la tua E-mail" name="email" />
</div>

<h3>Password:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='' /></div>
<div class="input-area">
<div id="error_passwordx" class="errors error-top"></div>
<input id="id_password" type="password" class="text" value="" name="passwordx" />
</div>

<h3>Secret Code:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo createSecurityHash(32, true, true); ?>' /></div>
<div class="input-area">
<div id="error_secret" class="errors error-top"></div>
<input id="id_secret" type="password" class="text" value="" name="secret" />
</div>

<input type="hidden" name="birthday" id="id_birthday" />
<div id="agree-container" class="round">
<div class="round-content light input-area">
<div class="clear">
<div class="float">
<span class="checkbox">
<input id="accept_terms" type="checkbox" name="agree" />
</span>
</div>
<div class="float last">
<p>Accetto i <a class="terms_link" href="">Termini & Condizioni D'utilizzo</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;</p>
</div>
</div>
<div id="error_agree" class="errors error-bottom"></div>
</div>
</div>

<a id="submit_signup" class="submit-button button-link" href="">
<div class="button-container">
<div class="button-left"></div>
<div class="button-content">Registrati!</div>
<div class="button-right"></div>
</div>




<div class="button-right"></div>
</div>
</a>
<div id="errors" class="errors"></div>
</form>
</div>
<div class="line"></div>






</div>

</div>

</aside>
</section>
</div>







<aside id="vip" class="landing float round">
<div id="vip-top"></div>
<div class="round-content">
<img src="static/images/vip.png" alt="vip" />
<p class="bold">Registrati in <?php echo $shortname ?> ed avrai: </p>
<div>
<ul class="smaller">
<li>- Catalogo con molti Rari.</li>
<li>- 15 Bolts.</li>
<li>- Nuovi comandi.</li>
</ul>
</div>
</div>
<div id="vip-bottom"></div>
</aside>


<div class="clear-float"></div>
</div>
</div>

<div id="bg">
<div class="container">
<div class="bg-item left"></div>
<div class="bg-item right"></div>
</div>
</div>
</div>
<footer>
<div id="footer_container" class="clear">

<div class="float-r">
<div class="small-logo">
<img src="static/images/logo-small.png" alt="Retro logo small" />
</div>
</div>

<div class="float-r text">
<?php require_once 'static/templates/footer.php'; ?>
</div>

</div>
</footer>
</div>



</body>
</html>
..........................................ora quello che sta in ajax.................................................................................................................
<?php


/* requirements */

require_once '../core.php';


/* receiving form vars */
$get["t"] = FilterText($_POST["csrfmiddlewaretoken"]); /* strange token for sessions I think */
$get["e"] = FilterText(ltrim(rtrim($_POST["email"]))); /* email of user */
$get["b"] = FilterText($_POST["birthday"]); /* date of birthday of the user */
$get["i"] = FilterText($_POST["invited_by"]); /* bullshit */
$get["a"] = $_POST["agree"] == "on" ? true:false; /* terms shit */
$expBirthday = explode("-", $get["b"]); /* get current year */
/* strange token for sessions I think */
$email = FilterText(ltrim(rtrim($_POST["email"])));
$secret = FilterText($_POST["secret"]);
$r = FilterText($_POST["referente"]);
$get["u"] = FilterText($_POST["usernamex"]);
$passwordxd = FilterText($_POST["passwordx"]);
$get["p"] = HoloHash($passwordxd);
########################################################################################################################################

/* check if email field is empty */
if($get["e"] == "Scrivi qui la tua E-mail"){
$json["errors"]["email"] = "Inserisci la tua email"; $leon_farts = true; /* yes, he really does */
/* check if email is valid */
} elseif(!(preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $get["e"]))){
$json["errors"]["email"] = "Inserisci un email valida"; $leon_farts = true;
/* check if email is registred in database */
} elseif(mysql_num_rows(mysql_query('SELECT * FROM users WHERE mail = "'.$get["e"].'"')) != 0){
$json["errors"]["email"] = "Email gia' registrata"; $leon_farts = true;
}


/* check if password field is empty */
if($passwordxd == ""){
$json["errors"]["passwordx"] = "Inserisci la tua password"; $leon_farts = true; /* yes, he really does */
}

/* check if secret code field is empty */
if($secret == ""){
$json["errors"]["secret"] = "Inserisci il tuo Secret Code"; $leon_farts = true; /* yes, he really does */
}

/* check if user field is empty */
if($get["u"] == "Scrivi qui il tuo Username"){
$json["errors"]["usernamex"] = "Inserisci il tuo Username"; $leon_farts = true; /* yes, he really does */
/* check if usernamex is valid */
} elseif(!(preg_match("/^[0-9a-zA-Z\xE0-\xFF ]+$/i", $get["u"]))){
$json["errors"]["usernamex"] = "Non usare simboli."; $leon_farts = true;
/* check if usernamex is registred in database */
} elseif(mysql_num_rows(mysql_query('SELECT * FROM users WHERE username = "'.$get["u"].'"')) != 0){
$json["errors"]["usernamex"] = "Username gia' registrato"; $leon_farts = true;
}


/* check if birthday is empty */
if($get["b"] == "Year-Month-Day"){
$json["errors"]["birthday"] = "Enter your date of birth"; $leon_farts = true;
/* check if contains one of the initial words */
}elseif(checkIfContains("Year", $get["b"]) || checkIfContains("Month", $get["b"]) || checkIfContains("Day", $get["b"])){
$json["errors"]["birthday"] = "There are empty fields"; $leon_farts = true;
/* check if you¥re under 13 years old */
} elseif($expBirthday[0] >= 1999){
$json["errors"]["birthday"] = "[You must be 13 years old to sign up]";
$update_data = true; /* block register */ $leon_farts = true;
}

/* check terms */
if(!$get["a"]){ $json["errors"]["agree"] = "ACCETTA I TERMINI"; $leon_farts = true; }

########################################################################################################################################

/* creating message to JSON */
header('Content-type: application/json');

/* check errors */
if($leon_farts) { $json["status"] = "NOK"; } else {
/* now saving in database */
$storeInData = mysql_query("INSERT INTO users (secret, vip_points, real_name, last_online, account_created, ip_last, ip_reg, datosreg, look, mail, gender, username, credits, activity_points, motto, password) VALUES ('". $secret ."', '15', '".FilterText($real_name)."', '".time()."', '". date('d-M-Y H:i:s') ."', '". $_SERVER['REMOTE_ADDR'] ."', '". $_SERVER['REMOTE_ADDR'] ."', '0', '".$config['defaultAvatar']."', '".$get['e']."', 'M', '". $get["u"] ."', '10000', '10000', 'Benvenuto in Hotel', '". $get["p"] ."')");
$user_id = mysql_insert_id();
mysql_query("INSERT INTO user_stats (id, RoomVisits, OnlineTime, Respect, RespectGiven, GiftsGiven, GiftsReceived, DailyRespectPoints, DailyPetRespectPoints) VALUES ('".$user_id."', 0, 0, 0, 0, 0, 0, 3, 3)");
mysql_query("INSERT INTO user_info (user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive) VALUES ('".$user_id."', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0')");
/* if data is stored with success */
if($storeInData){
/* no errors - be happy */



$_SESSION['UBER_USER_N'] = $get["u"];
$_SESSION['UBER_USER_H'] = $get["p"];
$_SESSION['UBER_USER_EMAIL'] = $get["e"];
$_SESSION['username'] = $get["u"];
$_SESSION['password'] = $get["p"];

$_SESSION["AS"] = $get["t"]; /* store token of the user in a session */
$_SESSION["IMG"] = $config["defaultAvatar"]; /* store initial avatar figure in session */
$_SESSION["AG"] = "M"; /* store initial avatar gender in session */
$json["status"] = "OK"; $json["errors"] = null; /* :p */
}
}

if($update_data) { $json["data"] = "E_UNDERAGE"; } else { $json["data"] = null; } echo json_encode($json); exit;

########################################################################################################################################
?>
--------------- AGGIUNTA AL POST ---------------
--------------- AGGIUNTA AL POST ---------------
Ma che spari? :emoji_relieved:
Il register di haddo non è compatibile con il db, devi usare un quickregister, come questo:
Perfavore, Entra oppure Registrati per vedere i Link!

dove lo devo mettere ecco uno screen di tutti i register che mi da in htdocs
Perfavore, Entra oppure Registrati per vedere i Link!
 
Ultima modifica:
Riferimento: problema register

il problema che stanno 2 register.php uno in htdocs e un altro in ajax ti posto quello di htdocs


<?php
/*=====================================================================+
|| # HaddoCMS based HoloCMS - Website and Content Management System
|+=====================================================================+
|| # Copyright � 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+=====================================================================+
|| # HaddoCMS v2.0 by Raikas77
|| # www.sciax2.it/forum/development/haddocms-v2-build-2100-a-535753.html
|+=====================================================================*/

include('core.php');

require_once 'static/templates/header.php';

if(session_is_registered(username)){
header("LOCATION: ". $path ."/index.php");
}

?>

<!--[if lt IE 9]>
<style type="text/css">
.fb-reg-bottom {
border-bottom: 1px solid black;
bottom: 0;
}
input.text{
margin-top: 4px;
margin-bottom: 2px;
}
</style>
<![endif]-->
<script type="text/javascript" src="static/js/jquery.countdown.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){


// Terms Dialog

$('#terms-dialog').dialog({

autoOpen: false,

width: 420,
modal: true,
dialogClass: 'terms-dialog',
open: function(event, ui) {
_gaq.push(['_trackEvent', 'Dialog', 'Terms']);
}

});

// terms Link

$('.terms_link').click(function(){

$('#terms-dialog').dialog('open');

return false;

});

// Privacy Dialog

$('#privacy-dialog').dialog({

autoOpen: false,

width: 420,
modal: true,
dialogClass: 'terms-dialog',
open: function(event, ui) {
_gaq.push(['_trackEvent', 'Dialog', 'Privacy policy']);
}

});

// privacy Link

$('.privacy_link').click(function(){

$('#privacy-dialog').dialog('open');

return false;

});

// Underage Dialog

$('#underage-dialog').dialog({

autoOpen: false,

width: 329,
modal: true,
dialogClass: 'terms-dialog underage-dialog'

});

$('#close-underage-dialog').click(function(event){
event.preventDefault();

$('#underage-dialog').dialog('close');

});


/* default register */
$('#submit_signup').click(function(event) {
event.preventDefault();

regManager.register('default');
});

/* hande agree checkbox */
var checkboxes = $('.checkbox');

for(var i=0;i<checkboxes.length;i++){
if ($(checkboxes).children("input").is(':checked')){
$(checkboxes).addClass("checked");
}
}

$(".checkbox").click(function(){
if($(this).children("input").is(':checked')){
// uncheck
$(this).children("input").removeAttr('checked');
$(this).removeClass("checked");
}else{
// check
$(this).children("input").attr('checked','checked');
$(this).addClass("checked");
}
});

/* initial input texts */
emailInitialTxt = 'Scrivi qui la tua E-mail';
usernameInitialTxt = 'Scrivi qui il tuo Username';
referenteInitialTxt = 'Scrivi qui il tuo Referente';
birthdayInitialDay = 'Giorno';
birthdayInitialMonth = 'Mese';
birthdayInitialYear = 'Anno';

/* input texts */
$("#bday_day").click(function() {
if($(this).val() == birthdayInitialDay) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#bday_day').blur(function() {
if($(this).val() == ''){
$(this).val(birthdayInitialDay);
}
});

$("#bday_month").click(function() {
if($(this).val() == birthdayInitialMonth) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#bday_month').blur(function() {
if($(this).val() == ''){
$(this).val(birthdayInitialMonth);
}
});

$("#bday_year").click(function() {
if($(this).val() == birthdayInitialYear) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#bday_year').blur(function() {
if($(this).val() == ''){
$(this).val(birthdayInitialYear);
}
});
});
</script>


<script type="text/javascript" >
ASSET_URL = 'static/assets';
staticUrl = 'static/';

defaultError = 'Something went wrong, try again.';

$(document).ready(function() {
/* input info texts */

$("#id_email, .email_invitation").click(function() {
if($(this).val() == emailInitialTxt) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_email, .email_invitation').blur(function() {
if($(this).val() == ''){
$(this).val(emailInitialTxt);
}
});

$("#id_username, .email_invitation").click(function() {
if($(this).val() == usernameInitialTxt) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_username, .email_invitation').blur(function() {
if($(this).val() == ''){
$(this).val(usernameInitialTxt);
}
});

$("#id_referente, .email_invitation").click(function() {
if($(this).val() == referenteInitialTxt) {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_referente, .email_invitation').blur(function() {
if($(this).val() == ''){
$(this).val(referenteInitialTxt);
}
});

/* fade errors */
$('.error-container').live("hover", function(){
$(this).fadeOut();
});

});
</script>


<!-- GOOGLE ANALYTCS -->
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', '']);
</script>




<body>
<div id="black-bg"></div>

<div id="page">
<div id="main">
<div id="main-wrap">
<div id="top">
<div class="main-top">
<header>
<h1><?php echo $shortname ?>: Registrati</h1>
<div id="main-logo">
<a href="/" ><img src="static/images/logo.png" alt="Retro logo" /></a>
</div>
</header>
<div id="social">
<div>
</div>
</div>
</div>

<div class="secondary-top landing">
<div id="content-top">

</div>
</div>

</div>


<div id="primary">

<div class="container float landing">
<section class="clear">
<div id="content" class="float">
<header>
<h1>Benvenuto in <?php echo $shortname ?> Hotel Italia!</h1>

</header>

<p>
<?php echo $shortname ?> e' un ambiente virtuale di gioco on-line per teenager. I giovani visitatori possono entrare in un hotel virtuale e creare gratuitamente un proprio personaggio con cui incontrare, parlare e giocare con i coetanei in un ambiente sicuro e non violento.
</p>

<p>
Scopri come registrarti grazie a 3 semplici Passaggi:
</p><br />

<h3 class="lightGray">1. Registrazione</h3>

<p class="smaller">
Prima di poter iniziare a giocare in <?php echo $shortname ?> e' necessario registrarsi, cliccando a destra "Registrati". A quel punto bastera' semplicemente compilare i campi richiesti.
</p>

<h3 class="lightGray">2. Creazione Avatar</h3>

<p class="smaller">
Non vorrai mica andare in giro per <?php echo $shortname ?> con dei vestiti da quattro soldi! Scegli il tuo look ed avviati al passo successivo!
</p>

<h3 class="lightGray">3. Benvenuto in Hotel!</h3>

<p class="smaller">
Sei ufficialmente un <?php echo $shortname ?>, ora inserendo il tuo nome utente e la password scelta in precedenza potrai accedere direttamente dalla Pagina Principale!
</p>
</div>



<aside id="register" class="float round content-aside landing">

<div class="round-content">

<div id="register-top"></div>

<div class="register-content">
<div class="first">


<h3>Username:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo createSecurityHash(32, true, true); ?>' /></div>
<div class="input-area">
<div id="error_usernamex" class="errors error-top"></div>
<input id="id_username" type="text" class="text" value="Scrivi qui il tuo Username" name="usernamex" />
</div>

<h3>E-mail:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo createSecurityHash(32, true, true); ?>' /></div>
<div class="input-area">
<div id="error_email" class="errors error-top"></div>
<input id="id_email" type="text" class="text" value="Scrivi qui la tua E-mail" name="email" />
</div>

<h3>Password:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='' /></div>
<div class="input-area">
<div id="error_passwordx" class="errors error-top"></div>
<input id="id_password" type="password" class="text" value="" name="passwordx" />
</div>

<h3>Secret Code:</h3>

<form id="register_form">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo createSecurityHash(32, true, true); ?>' /></div>
<div class="input-area">
<div id="error_secret" class="errors error-top"></div>
<input id="id_secret" type="password" class="text" value="" name="secret" />
</div>

<input type="hidden" name="birthday" id="id_birthday" />
<div id="agree-container" class="round">
<div class="round-content light input-area">
<div class="clear">
<div class="float">
<span class="checkbox">
<input id="accept_terms" type="checkbox" name="agree" />
</span>
</div>
<div class="float last">
<p>Accetto i <a class="terms_link" href="">Termini & Condizioni D'utilizzo</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;</p>
</div>
</div>
<div id="error_agree" class="errors error-bottom"></div>
</div>
</div>

<a id="submit_signup" class="submit-button button-link" href="">
<div class="button-container">
<div class="button-left"></div>
<div class="button-content">Registrati!</div>
<div class="button-right"></div>
</div>




<div class="button-right"></div>
</div>
</a>
<div id="errors" class="errors"></div>
</form>
</div>
<div class="line"></div>






</div>

</div>

</aside>
</section>
</div>







<aside id="vip" class="landing float round">
<div id="vip-top"></div>
<div class="round-content">
<img src="static/images/vip.png" alt="vip" />
<p class="bold">Registrati in <?php echo $shortname ?> ed avrai: </p>
<div>
<ul class="smaller">
<li>- Catalogo con molti Rari.</li>
<li>- 15 Bolts.</li>
<li>- Nuovi comandi.</li>
</ul>
</div>
</div>
<div id="vip-bottom"></div>
</aside>


<div class="clear-float"></div>
</div>
</div>

<div id="bg">
<div class="container">
<div class="bg-item left"></div>
<div class="bg-item right"></div>
</div>
</div>
</div>
<footer>
<div id="footer_container" class="clear">

<div class="float-r">
<div class="small-logo">
<img src="static/images/logo-small.png" alt="Retro logo small" />
</div>
</div>

<div class="float-r text">
<?php require_once 'static/templates/footer.php'; ?>
</div>

</div>
</footer>
</div>



</body>
</html>
..........................................ora quello che sta in ajax.................................................................................................................
<?php


/* requirements */

require_once '../core.php';


/* receiving form vars */
$get["t"] = FilterText($_POST["csrfmiddlewaretoken"]); /* strange token for sessions I think */
$get["e"] = FilterText(ltrim(rtrim($_POST["email"]))); /* email of user */
$get["b"] = FilterText($_POST["birthday"]); /* date of birthday of the user */
$get["i"] = FilterText($_POST["invited_by"]); /* bullshit */
$get["a"] = $_POST["agree"] == "on" ? true:false; /* terms shit */
$expBirthday = explode("-", $get["b"]); /* get current year */
/* strange token for sessions I think */
$email = FilterText(ltrim(rtrim($_POST["email"])));
$secret = FilterText($_POST["secret"]);
$r = FilterText($_POST["referente"]);
$get["u"] = FilterText($_POST["usernamex"]);
$passwordxd = FilterText($_POST["passwordx"]);
$get["p"] = HoloHash($passwordxd);
########################################################################################################################################

/* check if email field is empty */
if($get["e"] == "Scrivi qui la tua E-mail"){
$json["errors"]["email"] = "Inserisci la tua email"; $leon_farts = true; /* yes, he really does */
/* check if email is valid */
} elseif(!(preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $get["e"]))){
$json["errors"]["email"] = "Inserisci un email valida"; $leon_farts = true;
/* check if email is registred in database */
} elseif(mysql_num_rows(mysql_query('SELECT * FROM users WHERE mail = "'.$get["e"].'"')) != 0){
$json["errors"]["email"] = "Email gia' registrata"; $leon_farts = true;
}


/* check if password field is empty */
if($passwordxd == ""){
$json["errors"]["passwordx"] = "Inserisci la tua password"; $leon_farts = true; /* yes, he really does */
}

/* check if secret code field is empty */
if($secret == ""){
$json["errors"]["secret"] = "Inserisci il tuo Secret Code"; $leon_farts = true; /* yes, he really does */
}

/* check if user field is empty */
if($get["u"] == "Scrivi qui il tuo Username"){
$json["errors"]["usernamex"] = "Inserisci il tuo Username"; $leon_farts = true; /* yes, he really does */
/* check if usernamex is valid */
} elseif(!(preg_match("/^[0-9a-zA-Z\xE0-\xFF ]+$/i", $get["u"]))){
$json["errors"]["usernamex"] = "Non usare simboli."; $leon_farts = true;
/* check if usernamex is registred in database */
} elseif(mysql_num_rows(mysql_query('SELECT * FROM users WHERE username = "'.$get["u"].'"')) != 0){
$json["errors"]["usernamex"] = "Username gia' registrato"; $leon_farts = true;
}


/* check if birthday is empty */
if($get["b"] == "Year-Month-Day"){
$json["errors"]["birthday"] = "Enter your date of birth"; $leon_farts = true;
/* check if contains one of the initial words */
}elseif(checkIfContains("Year", $get["b"]) || checkIfContains("Month", $get["b"]) || checkIfContains("Day", $get["b"])){
$json["errors"]["birthday"] = "There are empty fields"; $leon_farts = true;
/* check if you¥re under 13 years old */
} elseif($expBirthday[0] >= 1999){
$json["errors"]["birthday"] = "[You must be 13 years old to sign up]";
$update_data = true; /* block register */ $leon_farts = true;
}

/* check terms */
if(!$get["a"]){ $json["errors"]["agree"] = "ACCETTA I TERMINI"; $leon_farts = true; }

########################################################################################################################################

/* creating message to JSON */
header('Content-type: application/json');

/* check errors */
if($leon_farts) { $json["status"] = "NOK"; } else {
/* now saving in database */
$storeInData = mysql_query("INSERT INTO users (secret, vip_points, real_name, last_online, account_created, ip_last, ip_reg, datosreg, look, mail, gender, username, credits, activity_points, motto, password) VALUES ('". $secret ."', '15', '".FilterText($real_name)."', '".time()."', '". date('d-M-Y H:i:s') ."', '". $_SERVER['REMOTE_ADDR'] ."', '". $_SERVER['REMOTE_ADDR'] ."', '0', '".$config['defaultAvatar']."', '".$get['e']."', 'M', '". $get["u"] ."', '10000', '10000', 'Benvenuto in Hotel', '". $get["p"] ."')");
$user_id = mysql_insert_id();
mysql_query("INSERT INTO user_stats (id, RoomVisits, OnlineTime, Respect, RespectGiven, GiftsGiven, GiftsReceived, DailyRespectPoints, DailyPetRespectPoints) VALUES ('".$user_id."', 0, 0, 0, 0, 0, 0, 3, 3)");
mysql_query("INSERT INTO user_info (user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive) VALUES ('".$user_id."', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0')");
/* if data is stored with success */
if($storeInData){
/* no errors - be happy */



$_SESSION['UBER_USER_N'] = $get["u"];
$_SESSION['UBER_USER_H'] = $get["p"];
$_SESSION['UBER_USER_EMAIL'] = $get["e"];
$_SESSION['username'] = $get["u"];
$_SESSION['password'] = $get["p"];

$_SESSION["AS"] = $get["t"]; /* store token of the user in a session */
$_SESSION["IMG"] = $config["defaultAvatar"]; /* store initial avatar figure in session */
$_SESSION["AG"] = "M"; /* store initial avatar gender in session */
$json["status"] = "OK"; $json["errors"] = null; /* :p */
}
}

if($update_data) { $json["data"] = "E_UNDERAGE"; } else { $json["data"] = null; } echo json_encode($json); exit;

########################################################################################################################################
?>
--------------- AGGIUNTA AL POST ---------------
--------------- AGGIUNTA AL POST ---------------


dove lo devo mettere ecco uno screen di tutti i register che mi da in htdocs
Perfavore, Entra oppure Registrati per vedere i Link!


Devi meterlo in htdocs la cartella quickregister.