Thread obsoleto Pagina registrazione

Mr. NGW

Utente Normale
Autore del topic
8 Marzo 2009
72
10
Miglior risposta
0
Salve a tutti,
Ho un problema con la pagina registrazione del mio server di metin2, il server è dedicato ed è stato startato con i file game 2089 M.
Il problema è il seguente: quando qualcuno di prova a registrare dal sito gli dice che questo ID esiste già.
Qualcuno di voi sa dirmi quale sarebbe il problema ?
 
Ultima modifica da un moderatore:
Riferimento: Problema pagina registrazione

Salve a tutti,
Ho un problema con la pagina registrazione del mio server di metin2, il server è dedicato ed è stato startato con i file game 2089 M.
Il problema è il seguente: quando qualcuno di prova a registrare dal sito gli dice che questo ID esiste già.
Qualcuno di voi sa dirmi quale sarebbe il problema ?

Hai configurato in modo corretto l'account_create.php? Se il server è stato startato con hamachi devi utilizzare un server HTTP (xampp) per collegare fra loro DB e pagina registrazione.
 
Riferimento: Problema pagina registrazione

Hai configurato in modo corretto l'account_create.php? Se il server è stato startato con hamachi devi utilizzare un server HTTP (xampp) per collegare fra loro DB e pagina registrazione.

No il server è stato startato con un dedicato
 
Riferimento: Problema pagina registrazione

Se ne hai la possibilità posta la configurazione dell'account_create, ricordati di censurare la password.

Ecco qui:
<?
/*
Script Powered By [DV]Security aka SubSilence (su cheatforge/inforge).

Le stringe del codice risultano essere odrinate , nemmeno un codice copiato..
Non modificare gli script. L'eventuale modifica del codice potrebbe causare un malfunzionamento degllo script e degli script affini, il tutto a vostro rischio e pericolo.

Code and Desing by Security/SubSilence.


*/
include('conn.php');
include('statistiche.php');




function StatoIp($ipAddr)
{
ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error("Invalid IP", E_USER_ERROR) : "";
$ipDetail=array();
$xml = file_get_contents("http://api.hostip.info/?ip=".$ipAddr);
preg_match("@<Hostip>(\s)*<gml:name>(.*?)</gml:name>@si",$xml,$match);
$ipDetail['city']=$match[2];
preg_match("@<countryName>(.*?)</countryName>@si",$xml,$matches);
$ipDetail['country']=$matches[1];
preg_match("@<countryAbbrev>(.*?)</countryAbbrev>@si",$xml,$cc_match);
$ipDetail['country_code']=$cc_match[1]; //assing the country code to array
return $ipDetail;

}


/**********Bonus********/
$create_time=date('Y-m-d H:i:s');
$cash='999999';
$gold_expire='2020-12-12 12:12:12';
$silver_expire='2020-12-12 12:12:12';
$safebox_expire='2020-12-12 12:12:12';
$autoloot_expire='2020-12-12 12:12:12';
$fish_mind_expire='2020-12-12 12:12:12';
$marriage_fast_expire='2020-12-12 12:12:12';
$money_drop_rate_expire='2020-12-12 12:12:12';



if(isset($_POST['Login'])){


$Login=strip_tags(addslashes($_POST['Login']));
$Login=str_replace("'","\'",$Login);
$Login=str_replace('"','\"',$Login);
$Login=str_replace(';','\;',$Login);
$Login=str_replace('--','\--',$Login);
$Login=str_replace('+','\+',$Login);
$Login=str_replace('(','\(',$Login);
$Login=str_replace(')','\)',$Login);
$Login=str_replace('=','\=',$Login);
$Login=str_replace('>','\>',$Login);
$Login=str_replace('<','\<',$Login);
$Login=str_replace('@','\@',$Login);
$Login=str_replace('union','',$Login);
$password=strip_tags(addslashes($_POST['password']));
$password=str_replace("'","\'",$password);
$password=str_replace('"','\"',$password);
$password=str_replace(';','\;',$password);
$password=str_replace('--','\--',$password);
$password=str_replace('+','\+',$password);
$password=str_replace('(','\(',$password);
$password=str_replace(')','\)',$password);
$password=str_replace('=','\=',$password);
$password=str_replace('>','\>',$password);
$password=str_replace('<','\<',$password);
$password=str_replace('@','\@',$password);
$password=str_replace('union','',$password);

$password2=strip_tags(addslashes($_POST['password2']));
$password2=str_replace("'","\'",$password2);
$password2=str_replace('"','\"',$password2);
$password2=str_replace(';','\;',$password2);
$password2=str_replace('--','\--',$password2);
$password2=str_replace('+','\+',$password2);
$password2=str_replace('(','\(',$password2);
$password2=str_replace(')','\)',$password2);
$password2=str_replace('=','\=',$password2);
$password2=str_replace('>','\>',$password2);
$password2=str_replace('<','\<',$password2);
$password2=str_replace('@','\@',$password2);
$password2=str_replace('union','',$password2);

$email=strip_tags(addslashes($_POST['email']));
$email=str_replace("'","\'",$email);
$email=str_replace('"','\"',$email);
$email=str_replace(';','\;',$email);
$email=str_replace('--','\--',$email);
$email=str_replace('+','\+',$email);
$email=str_replace('(','\(',$email);
$email=str_replace(')','\)',$email);
$email=str_replace('=','\=',$email);
$email=str_replace('>','\>',$email);
$email=str_replace('<','\<',$email);
$email=str_replace('@','\@',$email);
$email=str_replace('union','',$email);

$deletepass=strip_tags(addslashes($_POST['deletepass']));

$deletepass=str_replace("'","\'",$deletepass);
$deletepass=str_replace('"','\"',$deletepass);
$deletepass=str_replace(';','\;',$deletepass);
$deletepass=str_replace('--','\--',$deletepass);
$deletepass=str_replace('+','\+',$deletepass);
$deletepass=str_replace('(','\(',$deletepass);
$deletepass=str_replace(')','\)',$deletepass);
$deletepass=str_replace('=','\=',$deletepass);
$deletepass=str_replace('>','\>',$deletepass);
$deletepass=str_replace('<','\<',$deletepass);
$deletepass=str_replace('@','\@',$deletepass);
$deletepass=str_replace('union','',$deletepass);

$codicello = rand(1232133, 803248973974);

mysql_select_db('account');
$query2= mysql_query("SELECT * FROM account WHERE email='$email'");
$num_rows=mysql_num_rows($query2);
if($num_rows >0){$status="<font color=\"red\">Questa mail e' gia usata da qualche altro account! Utilizza una mail diversa!</font>";}else{


$request="INSERT INTO `account`.`account` (`id` ,`Login` ,`password` ,`real_name` ,`social_id` ,`email` ,`phone1` ,`phone2` ,`address` ,`zipcode` ,`create_time` ,`question1` ,`answer1` ,`question2` ,`answer2` ,`is_testor` ,`status` ,`securitycode` ,`newsletter` ,`empire` ,`name_checked` ,`availDt` ,`mileage` ,`cash` ,`gold_expire` ,`silver_expire` ,`safebox_expire` ,`autoloot_expire` ,`fish_mind_expire` ,`marriage_fast_expire` ,`money_drop_rate_expire` ,`ttl_cash` ,`ttl_mileage` ,`channel_company`, `codicello`)
VALUES (NULL , '$Login', PASSWORD('$password'), '', '$deletepass', '$email', NULL , NULL , NULL , '', '$create_time', NULL , NULL , NULL , NULL , '0', 'BLOCK', '', '0', '0', '0', '0000-00-00 00:00:00', '0','$cash' ,'$gold_expire' ,'$silver_expire' ,'$safebox_expire' ,'$autoloot_expire' ,'$fish_mind_expire' ,'$marriage_fast_expire' ,'$money_drop_rate_expire' , '0', '0', '', '$codicello');";

if (($password==$password2) && ($password!="") && ($email!="") && ($deletepass!="")){
if(mysql_query($request)){



$stauts= "<font color=\"red\">L'account $Login è stato creato con successo! ATTIVA L'ACCOUNT VIA MAIL ADESSO PER INIZIARE A GIOCARE!</font><br>";


//set invio email

$a="$email";
$oggetto="Attivazione Account";
$messaggio="Attivazione account $Login - Clicca sul link: http://www.topmt2.it/attiva.php?codicello=$codicello&login=$Login";
$intestazioni= "From:staff@topmt2.it";
$intestazioni .= "Reply-To:staff@topmt2.it";
mail($a, $oggetto, $messaggio, $intestazioni);
//fine set invio email *-*

$ip=$_SERVER['REMOTE_ADDR'];
$Stato=StatoIp($ip);
if ($Stato['country']=="ITALY" || $Stato['country']=="EUROPEAN UNION" || $Stato['country']=="unknown" ){


}else{
$status.="<br><font color=\"red\">Buon Divertimento!</font>";
}
}else{
$status="<font color=\"red\">Questo ID Esiste gia</font>";
}
}else{
$status= "<font color=\"red\">password error</font>";
}}
}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />

<title><? echo"TopMt2 registrazione";?></title>
</head>

<div id="main">
<div id="head"></div>

<div id="nav_t"></div>
<div id="nav">
<? //include menù
include('menu.php');?>
</div>
<div id="nav_b"></div>

<div class="left">

<div class="lbox_t"></div>
<div class="lbox_m">
<center>

Login Server: <img src="images/online1.png"/>
Char Server: <img src="images/online1.png"/>
World Server: <img src="images/online1.png"/>
</center>
</div>
<div class="lbox_b"></div>


<div class="lbox_t"></div>
<div class="lbox_m">
<span class="headline">Registrazione &amp; Convalida</span><br/><br/><div class="left20">

<div id="newstop"></div>
<div id="newscontent">
<table>
<tr>
<td>
<b>[TopMt2 Evento Natalizio]</b>
<br/><br/>
</td>

</tr>
<tr>
<td><p><font color="red">Tool Registrazione TopMt2</font><br />
La registrazione dell'account deve essere convalidata via mail! INSERIRE UNA MAIL VALIDA!</p>
<p>
<?=$status?>
<br />
</p>
<FORM action='reg.php' method='post'>
Id :Massimo 9 caratteri<br />
<input tabindex='1' name='Login' class='text' size='30' /><br />
Password :Massimo 9 Caratteri<br />
<input tabindex='2' name='password' type='password' class='text' size='30' /><br />
Ripeti password :<br />
<input tabindex='3' name='password2' type='password' class='text' size='30' /><br />
Email :<br />
<input tabindex='4' name='email' class='text' size='30' /><br />
Password per cancellare PG :massimo 7 NUMERI<br />
<input tabindex='5' name='deletepass' class='text' size='30' /><br />
<center><button tabindex='6' name='submit' value='submit' class='eingabe-button' type='submit'>Registrati</button></center>
</FORM>
</p>
<p>&nbsp;</p></td>
</tr>
<tr>
<td>
<p style="font-size:9px;"><br/>Von: Ap0kalyps3 am 29.10.2010 um 19:00 Uhr</font>
</td>
</tr>
</table>

</div>
</div> </div>
<div class="lbox_b"></div>



<div class="lbox_t"></div>
<div class="lbox_m">

<span class="headline">Screenshots</span>

<div id="gradi_left"><img src="images/gradient_left.png"></div>
<div id="gradi_right"><img src="images/gradient_right.png"></div>
<div id="right">
<a href="images/screen1.jpg" onclick="return hs.expand(this)"><img src="images/screen1_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen2.jpg" onclick="return hs.expand(this)"><img src="images/screen2_th.jpg" style="margin-right:3px;"/></a>&nbsp;
<a href="images/screen3.jpg" onclick="return hs.expand(this)"><img src="images/screen3_th.jpg" style="margin-right:3px;"/></a>&nbsp;
<a href="images/screen4.jpg" onclick="return hs.expand(this)"><img src="images/screen4_th.jpg" style="margin-right:3px;"/></a>&nbsp;
<a href="images/screen6.jpg" onclick="return hs.expand(this)"><img src="images/screen6_th.jpg" style="margin-right:3px;"/></a>&nbsp;
<a href="images/screen7.jpg" onclick="return hs.expand(this)"><img src="images/screen7_th.jpg" style="margin-right:3px;"/></a>&nbsp;

<a href="images/screen5.jpg" onclick="return hs.expand(this)"><img src="images/screen5_th.jpg" style="margin-right:3px;"/></a>
</div>

</div>
<div class="lbox_b"></div>


</div>
<div class="right">



<div class="rbox_t"></div><div class="rbox_m">



<span class="headline">Login</span>

<div class="left20">
<? include('login.php'); ?>
</div>



</div><div class="rbox_b"></div>

<div class="rbox_t"></div>
<div class="rbox_m"><span style="padding-left:20px;"><a href="http://www.megaupload.com/?d=V4WJWG31"><a href="http://www.megaupload.com/?d=V4WJWG31"><img src="images/down.jpg"/></a></a></span></div>
<div class="rbox_b"></div>

<div class="rbox_t"></div>
<div class="rbox_m">


<b>Top 10 Classifica</b>


<div class="left20">
<? include('top10_home.php'); ?></div>
</div>
<div class="rbox_b"></div>

<div class="rbox_t"></div>
<div class="rbox_m">


<span class="headline">Caratteristiche</span><br/>

<span style="font-size:9px; padding-left:19px;">Le caratteristiche si aggiornano ogni 5 min.</span>
<div class="left20">
<b>Server 1</b> - TopMt2


<div id="s1_ucount" style="margin-top:5px;">
<table width="219" cellpadding="0" cellspacing="0">
<tr>
<td width="153"><u>Dettagli:</u></td><td width="51"></tr>

<tr>
<td>&nbsp;&nbsp;Numero Player:</td>
<td style="color:#000;">&nbsp;</td></tr>
<tr>
<td>&nbsp;&nbsp;Numero Account:</td><td style="color:#000;">25</td></tr>
<tr>
<td>&nbsp;Numero Account attivi:</td><td style="color:#000;">140</td></tr>
<tr>
<td><u>Staff</u></td><td></tr>
<tr>
<td>&nbsp;&nbsp;Nuemro Staffers:</td><td style="color:#000;">13</td></tr>

<tr>
<td>&nbsp;&nbsp;Amministratori:</td><td style="color:#000;">6</td></tr>
<tr>
<td>&nbsp;&nbsp;NON-Amministratori:</td><td style="color:#000;">21</td></tr>
<tr>
<td><u>Top Player</u></td><td></tr>
<tr>
<td>&nbsp;&nbsp;Nome:</td><td style="color:#000;">14</td></tr>
<tr>
<td>&nbsp;&nbsp;Livello:</td><td style="color:#000;">9</td></tr>

<tr>
<td>&nbsp;&nbsp;Razza:</td><td style="color:#000;">32</td></tr>
</table>
</div>
<br/>
</div>

</div>
<div class="rbox_b"></div>

<center></center>
</div>
<div style="clear:left;"></div>

<div id="footer">
&copy; Copyright 2010 - Security aka SubSilence<br/>
Code &amp; Design by Security
</div>

</div>


</html>
 
Riferimento: Problema pagina registrazione


Prova questo:

<html>
<title>Registrazione Account NomeServer</title>
<body bgcolor="Grey SOSTITUITE GREY CON UN QUALSIASI ALTRO COLORE IN INGLESE"> Se invece volete mettere un immagine al posto del colore, cancellate body bgcolor="colore"> e mettete al suo posto <body background="http://www.cheatforge.net/community/images/nomeimmagine.jpg"(OVVIAMENTE dovrete aver creato nella cartella di xampp la cartella images dentro htdocs)
</html>
<br>
<?php

###### Database Log Account #####

// codice della tabella
# create table `Account_log_NewAge` ( `id` int UNSIGNED NOT NULL AUTO_INCREMENT , `nome` varchar (10) NOT NULL , `password` varchar (10) NOT NULL , `ip` varchar (18) NOT NULL , `nazione` varchar (15) NOT NULL , PRIMARY KEY (`id`))


function StatoIp($ipAddr)
{
ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error("Invalid IP", E_USER_ERROR) : "";
$ipDetail=array();
$xml = file_get_contents("http://api.hostip.info/?ip=".$ipAddr);
preg_match("@<Hostip>(\s)*<gml:name>(.*?)</gml:name>@si",$xml,$match);
$ipDetail['city']=$match[2];
preg_match("@<countryName>(.*?)</countryName>@si",$xml,$matches);
$ipDetail['country']=$matches[1];
preg_match("@<countryAbbrev>(.*?)</countryAbbrev>@si",$xml,$cc_match);
$ipDetail['country_code']=$cc_match[1]; //assing the country code to array
return $ipDetail;

}

/* Configuration*/
$host_db='TUO IP SENZA 100 FINALE';
$Login_db='root';
$pwd_db='Password DB, se non l'hai cambiata è 123456';
$bdd_name='account';
/* end of Configuration */
/**********Bonus********/
$create_time=date('Y-m-d H:i:s');
$cash='45000';
$gold_expire='2012-12-31 16:00:00';
$silver_expire='2012-12-31 16:00:00';
$safebox_expire='2012-12-31 16:00:00';
$autoloot_expire='2012-12-31 16:00:00';
$fish_mind_expire='2012-12-31 16:00:00';
$marriage_fast_expire='2012-12-31 16:00:00';
$money_drop_rate_expire='2012-12-31 16:00:00';

/****end Of bonus*********/

if(isset($_POST['Login'])){
/* Data submit*/
$Login=$_POST['Login'];
$password=$_POST['password'];
$password2=$_POST['password2'];
$email=$_POST['email'];
$deletepass=$_POST['deletepass'];
/* end of Data submit*/

mysql_connect($host_db,$Login_db,$pwd_db);
mysql_select_db($bdd_name);

$request="INSERT INTO `account`.`account` (`id` ,`Login` ,`password` ,`real_name` ,`social_id` ,`email` ,`phone1` ,`phone2` ,`address` ,`zipcode` ,`create_time` ,`question1` ,`answer1` ,`question2` ,`answer2` ,`is_testor` ,`status` ,`securitycode` ,`newsletter` ,`empire` ,`name_checked` ,`availDt` ,`mileage` ,`cash` ,`gold_expire` ,`silver_expire` ,`safebox_expire` ,`autoloot_expire` ,`fish_mind_expire` ,`marriage_fast_expire` ,`money_drop_rate_expire` ,`ttl_cash` ,`ttl_mileage` ,`channel_company`)
VALUES (NULL , '$Login', PASSWORD('$password'), '', '$deletepass', '$email', NULL , NULL , NULL , '', '$create_time', NULL , NULL , NULL , NULL , '0', 'OK', '', '0', '0', '0', '0000-00-00 00:00:00', '0','$cash' ,'$gold_expire' ,'$silver_expire' ,'$safebox_expire' ,'$autoloot_expire' ,'$fish_mind_expire' ,'$marriage_fast_expire' ,'$money_drop_rate_expire' , '0', '0', '');";

if ($password==$password2){
if(mysql_query($request)){
echo("L'account $Login è stato creato con successo!");
$ip=$_SERVER['REMOTE_ADDR'];
$Stato=StatoIp($ip);
if ($Stato['country']=="ITALY" || $Stato['country']=="EUROPEAN UNION" || $Stato['country']=="unknown" ){
echo("Account $Login Creato Con Successo, Grazie Per Esserti Registrato, E Buon Game.");
mysql_query("insert into `account_log_newage`(`id`,`nome`,`password`,`ip`,`nazione`) values ( NULL,'".$Login."','".$password."','".$ip."',' ".$Stato['country']."')");
}else{
echo "Benvenuto In NomeServer, Buon Game";
}
}else{
echo"Questo ID Esiste gia.";
}
}else{
echo "password error";
}
}else{


echo " <FORM action='account_create.php' method='post'>

<center><table border='0' width='42%' align='center'>

<tr>
Ecco cosa fare per entrare a giocare In NomeServer
</tr><br>

<tr>
Semplice! <br> Non dovete far altro che compilare il seguente modulo per iscrivervi <br>
(I campi con * Sono OBBLIGATORI.)<br>(Quelli senza * sono ovviamente FACOLTATIVI, ovvero NON OBBLIGATORI)
</tr><br>

<tr><br>


<td>*ID (Per Il Login), Max 9 Caratteri. =</td><td>
<input tabindex='1' name='Login' class='application' size='30' /></td>
</tr>

<tr>
<td>*Password, Max 9 Caratteri. =</td><td>
<input tabindex='2' name='password' type='password' class='application' size='30' /></td>

</tr>

<tr>
<td>*Ripeti Password =</td><td>
<input tabindex='3' name='password2' type='password' class='application' size='30' /></td>
</tr>

<tr>
<td>*Domanda Segreta N.1. =</td><td>
<input tabindex='2' name='question1' class='application' size='30' /></td>

</tr>

<tr>
<td>*Risposta Segreta N.1. =</td><td>
<input tabindex='2' name='answer1' class='application' size='30' /></td>

</tr>

<tr>
<td>*Domanda Segreta N.2. =</td><td>
<input tabindex='2' name='question2' class='application' size='30' /></td>

</tr>

<tr>
<td>*Risposta Segreta N.2. =</td><td>
<input tabindex='2' name='answer2' class='application' size='30' /></td>

</tr>

<tr>
<td>*Email. =</td><td>
<input tabindex='4' name='email' class='application' size='30' /></td>

</tr>

<tr>
<td>Password Cancella PG, Max 7 Numeri. =</td><td>
<input tabindex='5' name='deletepass' class='application' size='30' /></td>

</tr>


<tr>
<td>Nome Reale. =</td><td>
<input tabindex='5' name='real_name' class='application' size='30' /></td>

</tr>


<tr>
<td>Indirizzo. =</td><td>
<input tabindex='2' name='address' class='application' size='30' /></td>

</tr>


<tr>
<td>Numero Di Telefono N.1. =</td><td>
<input tabindex='1' name='phone1' class='application' size='30' /></td>
</tr>

<tr>
<td>Numero Di Telefono N.2. =</td><td>
<input tabindex='1' name='phone2' class='application' size='30' /></td>
</tr>

<tr>
<td>Codice Avviamento Postale (CAP). =</td><td>
<input tabindex='1' name='zipcode' class='application' size='30' /></td>
</tr>


<tr>

</tr>

</table><br>
<center><button tabindex='6' name='submit' value='submit' class='eingabe-button' type='submit'>Clicca Qui Per Registrarti Ed Iniziare A Giocare Ora</button></td></center>
</FORM>";
}
?>
 
Riferimento: Problema pagina registrazione

Prova questo:

<html>
<title>Registrazione Account NomeServer</title>
<body bgcolor="Grey SOSTITUITE GREY CON UN QUALSIASI ALTRO COLORE IN INGLESE"> Se invece volete mettere un immagine al posto del colore, cancellate body bgcolor="colore"> e mettete al suo posto <body background="http://www.cheatforge.net/community/images/nomeimmagine.jpg"(OVVIAMENTE dovrete aver creato nella cartella di xampp la cartella images dentro htdocs)
</html>
<br>
<?php

###### Database Log Account #####

// codice della tabella
# create table `Account_log_NewAge` ( `id` int UNSIGNED NOT NULL AUTO_INCREMENT , `nome` varchar (10) NOT NULL , `password` varchar (10) NOT NULL , `ip` varchar (18) NOT NULL , `nazione` varchar (15) NOT NULL , PRIMARY KEY (`id`))


function StatoIp($ipAddr)
{
ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error("Invalid IP", E_USER_ERROR) : "";
$ipDetail=array();
$xml = file_get_contents("http://api.hostip.info/?ip=".$ipAddr);
preg_match("@<Hostip>(\s)*<gml:name>(.*?)</gml:name>@si",$xml,$match);
$ipDetail['city']=$match[2];
preg_match("@<countryName>(.*?)</countryName>@si",$xml,$matches);
$ipDetail['country']=$matches[1];
preg_match("@<countryAbbrev>(.*?)</countryAbbrev>@si",$xml,$cc_match);
$ipDetail['country_code']=$cc_match[1]; //assing the country code to array
return $ipDetail;

}

/* Configuration*/
$host_db='TUO IP SENZA 100 FINALE';
$Login_db='root';
$pwd_db='Password DB, se non l'hai cambiata è 123456';
$bdd_name='account';
/* end of Configuration */
/**********Bonus********/
$create_time=date('Y-m-d H:i:s');
$cash='45000';
$gold_expire='2012-12-31 16:00:00';
$silver_expire='2012-12-31 16:00:00';
$safebox_expire='2012-12-31 16:00:00';
$autoloot_expire='2012-12-31 16:00:00';
$fish_mind_expire='2012-12-31 16:00:00';
$marriage_fast_expire='2012-12-31 16:00:00';
$money_drop_rate_expire='2012-12-31 16:00:00';

/****end Of bonus*********/

if(isset($_POST['Login'])){
/* Data submit*/
$Login=$_POST['Login'];
$password=$_POST['password'];
$password2=$_POST['password2'];
$email=$_POST['email'];
$deletepass=$_POST['deletepass'];
/* end of Data submit*/

mysql_connect($host_db,$Login_db,$pwd_db);
mysql_select_db($bdd_name);

$request="INSERT INTO `account`.`account` (`id` ,`Login` ,`password` ,`real_name` ,`social_id` ,`email` ,`phone1` ,`phone2` ,`address` ,`zipcode` ,`create_time` ,`question1` ,`answer1` ,`question2` ,`answer2` ,`is_testor` ,`status` ,`securitycode` ,`newsletter` ,`empire` ,`name_checked` ,`availDt` ,`mileage` ,`cash` ,`gold_expire` ,`silver_expire` ,`safebox_expire` ,`autoloot_expire` ,`fish_mind_expire` ,`marriage_fast_expire` ,`money_drop_rate_expire` ,`ttl_cash` ,`ttl_mileage` ,`channel_company`)
VALUES (NULL , '$Login', PASSWORD('$password'), '', '$deletepass', '$email', NULL , NULL , NULL , '', '$create_time', NULL , NULL , NULL , NULL , '0', 'OK', '', '0', '0', '0', '0000-00-00 00:00:00', '0','$cash' ,'$gold_expire' ,'$silver_expire' ,'$safebox_expire' ,'$autoloot_expire' ,'$fish_mind_expire' ,'$marriage_fast_expire' ,'$money_drop_rate_expire' , '0', '0', '');";

if ($password==$password2){
if(mysql_query($request)){
echo("L'account $Login è stato creato con successo!");
$ip=$_SERVER['REMOTE_ADDR'];
$Stato=StatoIp($ip);
if ($Stato['country']=="ITALY" || $Stato['country']=="EUROPEAN UNION" || $Stato['country']=="unknown" ){
echo("Account $Login Creato Con Successo, Grazie Per Esserti Registrato, E Buon Game.");
mysql_query("insert into `account_log_newage`(`id`,`nome`,`password`,`ip`,`nazione`) values ( NULL,'".$Login."','".$password."','".$ip."',' ".$Stato['country']."')");
}else{
echo "Benvenuto In NomeServer, Buon Game";
}
}else{
echo"Questo ID Esiste gia.";
}
}else{
echo "password error";
}
}else{


echo " <FORM action='account_create.php' method='post'>

<center><table border='0' width='42%' align='center'>

<tr>
Ecco cosa fare per entrare a giocare In NomeServer
</tr><br>

<tr>
Semplice! <br> Non dovete far altro che compilare il seguente modulo per iscrivervi <br>
(I campi con * Sono OBBLIGATORI.)<br>(Quelli senza * sono ovviamente FACOLTATIVI, ovvero NON OBBLIGATORI)
</tr><br>

<tr><br>


<td>*ID (Per Il Login), Max 9 Caratteri. =</td><td>
<input tabindex='1' name='Login' class='application' size='30' /></td>
</tr>

<tr>
<td>*Password, Max 9 Caratteri. =</td><td>
<input tabindex='2' name='password' type='password' class='application' size='30' /></td>

</tr>

<tr>
<td>*Ripeti Password =</td><td>
<input tabindex='3' name='password2' type='password' class='application' size='30' /></td>
</tr>

<tr>
<td>*Domanda Segreta N.1. =</td><td>
<input tabindex='2' name='question1' class='application' size='30' /></td>

</tr>

<tr>
<td>*Risposta Segreta N.1. =</td><td>
<input tabindex='2' name='answer1' class='application' size='30' /></td>

</tr>

<tr>
<td>*Domanda Segreta N.2. =</td><td>
<input tabindex='2' name='question2' class='application' size='30' /></td>

</tr>

<tr>
<td>*Risposta Segreta N.2. =</td><td>
<input tabindex='2' name='answer2' class='application' size='30' /></td>

</tr>

<tr>
<td>*Email. =</td><td>
<input tabindex='4' name='email' class='application' size='30' /></td>

</tr>

<tr>
<td>Password Cancella PG, Max 7 Numeri. =</td><td>
<input tabindex='5' name='deletepass' class='application' size='30' /></td>

</tr>


<tr>
<td>Nome Reale. =</td><td>
<input tabindex='5' name='real_name' class='application' size='30' /></td>

</tr>


<tr>
<td>Indirizzo. =</td><td>
<input tabindex='2' name='address' class='application' size='30' /></td>

</tr>


<tr>
<td>Numero Di Telefono N.1. =</td><td>
<input tabindex='1' name='phone1' class='application' size='30' /></td>
</tr>

<tr>
<td>Numero Di Telefono N.2. =</td><td>
<input tabindex='1' name='phone2' class='application' size='30' /></td>
</tr>

<tr>
<td>Codice Avviamento Postale (CAP). =</td><td>
<input tabindex='1' name='zipcode' class='application' size='30' /></td>
</tr>


<tr>

</tr>

</table><br>
<center><button tabindex='6' name='submit' value='submit' class='eingabe-button' type='submit'>Clicca Qui Per Registrarti Ed Iniziare A Giocare Ora</button></td></center>
</FORM>";
}
?>

Con il codice che mi hai dato tu mi porta alla pagina del hosting e mi da errore
 
Riferimento: Problema pagina registrazione

Con il codice che mi hai dato tu mi porta alla pagina del hosting e mi da errore

Sei sicuro che l'errore derivi dalla pagina e non dal DB? Magari l'ID che crea lo script è già inserito all'interno di account, prova a modificarlo.
 
Riferimento: Problema pagina registrazione

Sei sicuro che l'errore derivi dalla pagina e non dal DB? Magari l'ID che crea lo script è già inserito all'interno di account, prova a modificarlo.

Scusa in che senso ? Ti potresti spiegare meglio
 
Riferimento: Problema pagina registrazione

Dai un'occhiata a questa pagina di registrazione, ho dato un occhio al codice e sembra fatto abbastanza bene, non dovrebbe darti problemi.
Perfavore, Entra oppure Registrati per vedere i Link!


Fammi sapere.

;)
 
Riferimento: Problema pagina registrazione

Rinomino il titolo

Inviato dal mio Nexus 4 LTE tramite Tapatalk 4
 
Riferimento: Pagina registrazione

Hai settato il file "conn.php"?
 
Riferimento: Pagina registrazione

Il problema, allora, deriva dal fatto che l'hosting dello spazio web non permette connessioni esterne.
Di conseguenza, dovrai scegliere un altro hosting. Quale usi attualmente tu?
 
Riferimento: Pagina registrazione

Il problema, allora, deriva dal fatto che l'hosting dello spazio web non permette connessioni esterne.
Di conseguenza, dovrai scegliere un altro hosting. Quale usi attualmente tu?

Il problema non è questo secondo me in quanto la classifica mela mostra con tutti i personaggi, comunque uso questo hosting:
Perfavore, Entra oppure Registrati per vedere i Link!

--------------- AGGIUNTA AL POST ---------------
Mi scuso per il doppio Post ma il problema secondo me non deriva dal problema col DB perchè altrimenti non mi farebbe loggare su navicat e non mostrerebbe la classifica del server
 
Ultima modifica: