Jump to content

ERROR REGISTRO : CUENTA YA EXISTE


minirovi

Mensajes recomendados

hola , estoy en proceso de hacer un servidor y cuando quiero registrar una cuenta me sale que la cuenta ya existe.. no existe obviamente y queria saber a que se podia deber.. en el config.php tengo estos datos que nose si estara bien

 

      $serverSettings['reg_mail']='reg@website';                   // E-Mail-Absender bei Registration
      $serverSettings['pass_mail']='passwort@website';                 // E-Mail-Absender bei Passwortreset

 

ALGUIEN ME PUEDE DECIR QUE MAIL TENGO QUE PONER? porfavor 

Enlace para comentar
Compartir en otros sitios

hace 13 minutos, Ryen dijo:

entra el archivo de registro, y busca la sentencia SQL tiene que tener tipo algo asi "SELECT * FROM etc etc etc" y pegalo aqui para verlo.

Spoiler

<div class="cbox-ui cbox-title">
    <h2>Registro</h2>
</div>
<div class="cbox-ui cbox-content">
<?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']=="Registrarse") {
      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']." Registro";
          $email = $serverSettings['reg_mail'];
          $empfaenger = $_POST['email'];
          $mail_body = "Hola ".$_POST['uname'].",
          
          El registro en ".$serverSettings['titel']." fue un exito! Para poder jugar al servidor debera ir a su correo y activar su cuenta.
          Esto lo puede hacer atraves del siguiente enlace:
          
          ".$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash."
          
          Datos de usuario:
          Cuenta: ".$_POST['account']."
          Contraseña: ".$userpass."
          
          Codigo borrado: ".$lcode."
          Pregunta seguridad: ".$sFrage[$sfNum]."
          Respuesta: ".$_POST['sicherheitsa']."
          
          Diviertete y disfruta del juego,
          
          Staff ".$serverSettings['titel']."-Team
          
          
          Este email se genera automaticamente no reenvie el mensaje, ni responda a dicho mensaje";
          $titel = "Registro en ".$serverSettings['titel'];
          
          $header = "X-Priority: 3\n";
          $header .= "X-Mailer: ".$serverSettings['titel']." Homepage Mailer\n";
          $header .= "MIME-Version: 1.0\n";
          $header .= "From: ".$absender." <".$serverSettings['reg_mail'].">\n";
          $header .= "Reply-To: ".$serverSettings['reg_mail']."\n";
          $header .= "Content-Type: text/plain; charset=iso-8859-1\n";
          
          
          if($serverSettings['mail_activation']) {
            mail($empfaenger, $titel, $mail_body, $header);
            echo'<center><b><font color="red">Cuenta creada con &eacute;xito. Por favor revise su bandeja de entrada para confirmar el registro.</b></font></center></p>';
          }
          else {
            echo'<center><b><font color="red">Cuenta creada con éxito. Ahora puede iniciar sesión.</b></font></center></p>';
          }
          
        }
        else {
          echo'<center><b><font color="red">Registro Error: La cuenta ya existe.</font></b></center></p>';
        }
        
      }
      else {
        echo'<center><b><font color="red">Error en el registro por favor especificar todos los campos correctamente</font></b></center></p>';
      }
    }
  ?><center>
    Todos los campos son obligatorios y deben ser rellenados.<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>La cuenta se activa por e-mail, ponga su email correctamente!</b></br></p>'; } ?>
    <form action="?s=register" method="POST">
      <table>
        <tr>
          <th class="topLine">Cuenta:</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">Contrase&ntilde;a:</th>
          <td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/> 8-16 caracteres</td>
        </tr>
        <tr>
          <th class="topLine">Repetir contrase&ntilde;a:</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"/> max. 40 caracteres</td>
        </tr>
        <tr>
          <th class="topLine">Repetir E-Mail:</th>
          <td class="thell"><input type="text" name="email2" maxlength="50" size="25"/></td>
        </tr>
        <tr>
          <th class="topLine">Codigo de borrado:</th>
          <td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="7"/> 7 caracteres</td>
        </tr>
        <tr>
          <th class="topLine">Pregunta seguridad:</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">Captcha:</th>
          <td class="tdunkel"><img src="./captcha/captcha.php" title="Captcha"/>&nbsp;<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="Registrarse"/> &bull; <input type="reset" value="Atras"/></th>
        </tr>
</center>
      </table>
    </form>
  <?PHP
  }
  else {
    echo'<center><font color="yellow"><b>El registro est&aacute; deshabilitado o que ya est&aacute;s registrado.</b></font></center>';
  }
?>
<div class="clearfix"></div>

ahi tienes... ese es el registro.php , nose si te referias a eso

Enlace para comentar
Compartir en otros sitios

  • 4 weeks later...

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...