JazZ* Posted July 28, 2013 Report Share Posted July 28, 2013 Alguien me Diría por favor que esta mal en Este Register <div id="con-top">Registro</div><div id="con-mid"><?PHP $regCoins = 0; // Startcoins $laufZeit = 365; //Tage autoloot,safebox $calcLZ = (60*60*24)*365; $expireStamp = time()+$calcLZ; $expireDate = date("Y-m-d H:i:s",$expireStamp); if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']))) { if(isset($_POST['submit']) && $_POST['submit']=="registrieren") { if((checkAnum($_POST['account']) && strlen($_POST['account'])>=8 && strlen($_POST['account'])<=16) && checkAnum($_POST['pass']) && strlen($_POST['pass'])>=8 && strlen($_POST['pass2'])<=16 && !empty($_POST['pass2']) && (checkName($_POST['uname']) && strlen($_POST['uname'])>=3 && strlen($_POST['uname'])<=20) && $_POST['pass']==$_POST['pass2'] && checkMail($_POST['email']) && strlen($_POST['email'])<=40 && $_POST['captcha']==$_SESSION['captcha_id'] && $_POST['email']==$_POST['email2'] && (checkAnum($_POST['sicherheitsa']) && strlen($_POST['sicherheitsa'])>=3 && strlen($_POST['sicherheitsa'])<=16) && checkInt($_POST['sicherheitsf']) && (checkAnum($_POST['loeschcode']) && strlen($_POST['loeschcode'])==7)) { $hashSF = md5($_POST['sicherheitsa']); $sfNum = mysql_real_escape_string($_POST['sicherheitsf']); $lcode = mysql_real_escape_string($_POST['loeschcode']); $zuFall = rand(99999,999999999); $userpass=mysql_real_escape_string($_POST['pass']); $aktivHash = ($serverSettings['mail_activation']) ? md5($zuFall):''; $accountStatus = ($serverSettings['mail_activation']) ? 'BLOCK':'OK'; $sqlCmd = "INSERT INTO account.account (login,password,real_name,email,social_id,question1,answer1,create_time,status,coins,autoloot_expire,safebox_expire,web_aktiviert) VALUES ('".$_POST['account']."',PASSWORD('".$userpass."'),'".mysql_real_escape_string($_POST['uname'])."','".mysql_real_escape_string($_POST['email'])."','".$lcode."','".$sfNum."','".$hashSF."','".$sqlZeit."','".$accountStatus."','".$regCoins."','".$expireDate."','".$expireDate."','".$aktivHash."')"; $sqlQry = mysql_query($sqlCmd,$sqlServ); if($sqlQry) { $absender = $serverSettings['titel']." Registration"; $email = $serverSettings['reg_mail']; $empfaenger = $_POST['email']; $mail_body = "Hola ".$_POST['uname'].", tu Registro en ".$serverSettings['titel']." fue un exito! Para jugar en el servidor, debes activar tu cuenta. Puedes hacerlo a traves del siguiente enlace: ".$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash." Sus datos son los siguientes ( Precaución : si elimina este mensaje no podra acceder a ellos ): ID: ".$_POST['account']." Password: ".$userpass." Codigo de Borrado: ".$lcode." Pregunta de Seguridad: ".$sFrage[$sfNum]." Respuesta : ".$_POST['sicherheitsa']." Diviértete jugando, Su equipo de ".$serverSettings['titel']." Este mensaje ha sido generado automáticamente. Por favor, NO enviar respuestas a esta dirección."; $titel = "Su Registro en ".$serverSettings['titel']; $header = "X-Priority: 3n"; $header .= "X-Mailer: ".$serverSettings['titel']." Homepage Mailern"; $header .= "MIME-Version: 1.0n"; $header .= "From: ".$absender." <".$serverSettings['reg_mail'].">n"; $header .= "Reply-To: ".$serverSettings['reg_mail']."n"; $header .= "Content-Type: text/plain; charset=iso-8859-1n"; if($serverSettings['mail_activation']) { mail($empfaenger, $titel, $mail_body, $header); echo'<p class="meldung">Cuenta creada con exito. Por favor revise su bandeja de entrada para confirmar el registro (por lo general aparece en " CORREO NO DESEADO ").</p>'; } else { echo'<p class="meldung">Cuenta creada con exito. Ahora puede iniciar sesion.</p>'; } } else { echo'<p class="meldung">Registro Error: La cuenta ya existe.</p>'; } } else { echo'<p class="meldung">Error en el registro por favor especificar todos los campos correctamente</p>'; } } ?> <p>Todos los campos deben ser llenados.<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>LAS CUENTAS SE ACTIVAN POR E-MAIL!</b>'; } ?></p> <form action="index.php?s=register" method="POST"> <table> <tr> <th class="topLine">ID:</th> <td class="tdunkel"><input type="text" name="account" maxlength="16" size="16"/> 8-16 caracteres</td> </tr> <tr> <th class="topLine">Nombre:</th> <td class="thell"><input type="text" name="uname" maxlength="16" size="16"/> 3-20 caracteres</td> </tr> <tr> <th class="topLine">Password:</th> <td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/> 8-16 caracteres</td> </tr> <tr> <th class="topLine">Password (repetir):</th> <td class="thell"><input type="password" name="pass2" maxlength="16" size="16"/></td> </tr> <tr> <th class="topLine">E-Mail:</th> <td class="tdunkel"><input type="text" name="email" maxlength="50" size="25"/> caracteres</td> </tr> <tr> <th class="topLine">E-Mail (repetir):</th> <td class="thell"><input type="text" name="email2" maxlength="50" size="25"/></td> </tr> <tr> <th class="topLine">Codigo borrado:</th> <td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="7"/> 7 caracteres</td> </tr> <tr> <th class="topLine">Pregunta Secreta</th> <td class="thell"> <select name="sicherheitsf"> <?PHP foreach($sFrage AS $fragew => $frage) { echo'<option value="'.$fragew.'">'.$frage.'</option>'; } ?> </select> <input type="text" name="sicherheitsa" maxlength="16" size="16"/> 3-16 caracteres </td> </tr> <tr> <th class="topLine">Codigo:</th> <td class="tdunkel"><img src="./captcha/captcha.php" title="Captcha"/> <input type="text" name="captcha" maxlength="5" size="5"/></td> </tr> <tr> <th class="topLine" style="text-align:center;" colspan="2"><input type="submit" name="submit" value="registrieren"/> • <input type="reset" value="zurücksetzen"/></th> </tr> </table> </form> <?PHP } else { echo'<p class="meldung">El registro esta deshabilitado o que ya están registrados. No puede haber otra cuenta.</p>'; }?></div><div id="con-bot"></div> Cada vez que quiero Registrar alguna Cuenta me Dice que "La Cuenta ya Existe" :/ Gracias Link to comment Share on other sites More sharing options...
Edward Posted July 28, 2013 Report Share Posted July 28, 2013 Eso es porque no instalaste la web. Háblame por skype y te ayudo. Link to comment Share on other sites More sharing options...
JazZ* Posted July 29, 2013 Author Report Share Posted July 29, 2013 Pero no me Respondes Link to comment Share on other sites More sharing options...
rarrav26 Posted August 3, 2013 Report Share Posted August 3, 2013 Si todavía no te han ayudado agregame a Skype y te soluciono el problema al instante. Saludos. Link to comment Share on other sites More sharing options...
JazZ* Posted August 5, 2013 Author Report Share Posted August 5, 2013 Si todavía no te han ayudado agregame a Skype y te soluciono el problema al instante. Saludos. Gracias ya te Agregue Link to comment Share on other sites More sharing options...
rarrav26 Posted August 9, 2013 Report Share Posted August 9, 2013 Solucionado. Link to comment Share on other sites More sharing options...
Alika Posted January 30, 2015 Report Share Posted January 30, 2015 Me pasa lo mismo, como lo solucionaste ? gracias de ante mano. Link to comment Share on other sites More sharing options...
Ricardo Porras Posted January 18, 2017 Report Share Posted January 18, 2017 me pasa Link to comment Share on other sites More sharing options...
Akino Posted January 18, 2017 Report Share Posted January 18, 2017 me pasa Revisa que la tabla account no tenga objetos no nulos que exijan algún valor, tal vez sea eso. Ricardo Porras 1 Link to comment Share on other sites More sharing options...
Ricardo Porras Posted January 18, 2017 Report Share Posted January 18, 2017 Revisa que la tabla account no tenga objetos no nulos que exijan algún valor, tal vez sea eso. Gracias intentare Link to comment Share on other sites More sharing options...
Recommended Posts