Register for your free account! | Forgot your password?

You last visited: Today at 16:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



REGISTER PAGE

Discussion on REGISTER PAGE within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2013
Posts: 10
Received Thanks: 0
REGISTER PAGE

Hi everyone, i have problem with register page it say me always:
-Registrierung fehlgeschlagen: Der Account existiert bereits-

Thanks for any help!


My register.php
justbegginer is offline  
Old 08/05/2014, 18:16   #2
 
PDDS™'s Avatar
 
elite*gold: 97
Join Date: May 2014
Posts: 777
Received Thanks: 202
Quote:
Originally Posted by justbegginer View Post
Hi everyone, i have problem with register page it say me always:
-Registrierung fehlgeschlagen: Der Account existiert bereits-

Thanks for any help!


My register.php
Why don't you use the PHP-Tag?

Try this:

PHP Code:
<div id="content_top">
 Registration
</div>
<div id="content_main">
<?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'] && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0) {    
  
    if(isset(
$_POST['submit']) && $_POST['submit']=="registrieren") {
      if((
checkAnum($_POST['account']) && strlen($_POST['account'])>=&& strlen($_POST['account'])<=16) && checkAnum($_POST['pass'])  && strlen($_POST['pass'])>=&& strlen($_POST['pass2'])<=16 && !empty($_POST['pass2']) && $_POST['pass']==$_POST['pass2'] && checkMail($_POST['email']) && strlen($_POST['email'])<=40 &&(checkAnum($_POST['loeschcode']) && strlen($_POST['loeschcode'])==7)) {
        
$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 "Hallo ,
          
          deine Registration auf "
.$serverSettings['titel']." war erfolgreich! Um auch auf dem Server spielen zu können, musst du deinen Account aktivieren.
          Das kannst du über den folgenden Link tun:
          
          "
.$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash."
          
          Deine Daten sind:
          Account: "
.$_POST['account']."
          Passwort: "
.$userpass."
          
          Löschcode: "
.$lcode."

          
          Viel Spaß beim Spielen,
          
          Dein "
.$serverSettings['titel']."-Team
          
          
          Diese E-Mail wurde automatisch generiert. Bitte keine Antworten an diese Adresse schicken."
;
          
$titel "Registrierung auf ".$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
'<div id="success"><p class="success">Account erfolgreich angelegt. Bitte überprüfen Sie Ihr Postfach, um die Registrierung zu bestätigen.</p></div>';
          }
          else {
            echo
'<img src="./img/success.png">';
          }
          
        }
        else {
          echo
'<img src="./img/fail2.png">';
        }
        
      }
      else {
        echo
'<img src="./img/fail1.png">';
      }
    }
  
?>
    <p>Alle Felder sind Pflichtfelder und müssen ausgefüllt werden.<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>Der Account wird per E-Mail aktiviert, also eine richtige E-Mail eingeben!</b>'; } ?></p>
    <form action="index.php?s=register" method="POST">
      <table width="80%">
        <tr>
          <th class="topLine">Account:</th>
          <td class="tdunkel"><input type="text" name="account" maxlength="16" size="16"/> 8-16 Zeichen</td>
        </tr>
        <tr>
          <th class="topLine">Password:</th>
          <td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/> 8-16 Zeichen</td>
        </tr>
        <tr>
          <th class="topLine">Password wiederholen:</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 Zeichen</td>
        </tr>
        <tr>
          <th class="topLine">Löschcode:</th>
          <td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="7"/> 7 Zeichen</td>
        </tr>
        <tr>
          <th class="topLine" style="text-align:center;" colspan="2"><input class="btn" type="submit" name="submit" value="registrieren"/> &bull; <input type="reset" class="btn" value="zurücksetzen"/></th>
        </tr>
      </table>
    </form>
  <?PHP
  
}
  else {
    echo
'<p class="meldung">Die Registration ist deaktiviert oder Sie sind bereits angemeldet. Es kann kein weiterer Account erstellt werden.</p>';
  }
?>
</div>
<div id="content_footer">
</div>
You may have to edit some strings depending on your db structure
PDDS™ is offline  
Old 08/05/2014, 18:38   #3
 
xMrDiViNe's Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 167
Received Thanks: 75

Nimm die account.sql, dann sollte es gehen. Vorher noch ein Backup machen, sonst sind die accounts weg. Dann einfach Mysql neustarten & es sollte klappen. Wenn nicht, melde dich bei mir in Skype.
xMrDiViNe is offline  
Thanks
1 User
Old 08/05/2014, 19:05   #4
 
elite*gold: 0
Join Date: Dec 2013
Posts: 10
Received Thanks: 0
Dont help

Dont help anything, have you any next idea?
justbegginer is offline  
Old 08/05/2014, 19:43   #5
 
Fydes's Avatar
 
elite*gold: 534
Join Date: Mar 2014
Posts: 1,614
Received Thanks: 983
Do you have all columns
PHP Code:
login,password,real_name,email,social_id,question 1,answer1,create_time,status,coins,autoloot_expire ,safebox_expire,web_aktiviert 
in account.account?
Fydes is offline  
Reply


Similar Threads Similar Threads
Register Page ?
12/12/2014 - Dekaron Private Server - 3 Replies
Hi any one can help me with my register page ? i dont now it and i dont now how i can make accounts manuel :( icq: 402251110
How To ISS 7 Register Page and Help Page And Guild
12/16/2011 - Rappelz Private Server - 3 Replies
Hello , IIS 7 to the registration page . Good Luck.. ISS 7 Register Page and Help Page And Guild Page - YouTube Result 589896 - YouTube
Register page
02/12/2010 - Metin2 Private Server - 2 Replies
Hallo liebe Community, Ich möchte gerne eine Registration´s seite machen aber von RapidShare kann ich sie nicht downloaden help pls.
[Help]register page
09/25/2009 - CO2 Private Server - 9 Replies
hey guys i need help to make Register page for TQ binary 3.0 pls if any one know tell me how to make good one or good guide :)



All times are GMT +2. The time now is 16:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.