Jump to content

Recommended Posts

  • Premium

Why i cant use password like:  Pa1uL3o

if i make it i cant login cuz i get error in resgister. Why?

 

 

 

<div id="main_content_item">
    <div id="main_content_item_title">
      <p class="textstyle_main_content_item_title">Criar Conta</p>
</div>
 
<center>
 
<?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']=="Registar") {
      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']." Registo";
          $email = $serverSettings['reg_mail'];
          $empfaenger = $_POST['email'];
          $mail_body = "Bem vindo ".$_POST['uname'].",
          
          O seu registo em ".$serverSettings['titel']." está quase concluido! 
 Por favor active a conta no link abaixo: 
 
 
 ".$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash."
 
 
 Detalhes da conta:
 
          ID: ".$_POST['account']."
          Password: ********
          Cód apagar char: ".$lcode."
          Pergunta de Segurança: ".$sFrage[$sfNum]."
          Resposta: ********
          
 
 A equipa ".$serverSettings['titel']." deseja-lhe um bom jogo.
          
          //////////////////////////////////////////////////////////////////////////
          Este email foi gerado automaticamente Por favor não responda a este email!
 /////////////////////////////////////////////////////////////////////////
 
 
          $titel = "Suporte ".$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'<center>//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
    <strong>Conta criada com sucesso. <br>Por favor desbloquei a conta no email que lhe foi enviado<br>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br></center><br></strong>';
          }
          else {
            echo'<center>//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
    <strong>Conta criada com sucesso. <br>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br></center><br></strong>';
          }
          
        }
        else {
          echo'<center>//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<strong>Erro de registro! Esse ID já está em uso. <br>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br></center><br></strong>';
        }
        
      }
      else {
        echo'<center>//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
    <strong>Erro de registro! Não inseriu os campos corretamente. <br>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br></center><br></strong>';
      }
    }
  ?>
    <p></br></br></font></br></br><?PHP if($serverSettings['mail_activation']) { echo'<br/><b><font color="#FFCC00 ">A conta é ativada por e-mail, por favor use um e-mail correto!!</font></b>'; } ?></p></br></br></br>
    <form action="index.php?s=register" method="POST">
      <table>
        <tbody><tr>
          <th class="topLine">ID da conta:<br><br></th>
<td><div class="form_input_bg"><input type="text" onFocus="if(this.value=='Mínimo 5 máximo 16 caracteres') this.value=''" onBlur="if(this.value=='')this.value='Mínimo 5 máximo 16 caracteres'" value="Mínimo 5 máximo 16 caracteres" name="account" maxlength="16" size="16"></div><br><font size=1><br></font><br><br></td>
        </tr>
        <tr>
<th class="topLine">Nome:</th>
<td><div class="form_input_bg"><input type="text" onFocus="if(this.value=='Mínimo 3 máximo 16 caracteres') this.value=''" onBlur="if(this.value=='')this.value='Mínimo 3 máximo 16 caracteres'" value="Mínimo 3 máximo 16 caracteres" name="uname" maxlength="16" size="16"></div></</td>
        </tr>
        <tr>
          <th class="topLine">Password:<br><br><br><br></th>
<td><div class="form_input_bg"><input type="password" onFocus="if(this.value=='4 - 16 kar.') this.value=''" onBlur="if(this.value=='')this.value='4 - 16 kar.'" value="4 - 16 kar." name="pass" maxlength="16" size="16"></div><br><font size=1><br></font><br><br></td>
        </tr>
        <tr>
          <th class="topLine">Password:</th>
<td><div class="form_input_bg"><input type="password" onFocus="if(this.value=='4 - 16 kar.') this.value=''" onBlur="if(this.value=='')this.value='4 - 16 kar.'" value="4 - 16 kar." name="pass2" maxlength="16" size="16"></div></td>
        </tr>
        <tr>
          <th class="topLine">E-Mail:</th>
<td><div class="form_input_bg"><input type="text" onFocus="if(this.value=='Máximo 40 caracteres') this.value=''" onBlur="if(this.value=='')this.value='Máximo 40 caracteres'" value="Máximo 40 caracteres" name="email" maxlength="50" size="25"></div></td>
        </tr>
        <tr>
 
          <th class="topLine">E-Mail:</th>
<td><div class="form_input_bg"><input type="text" onFocus="if(this.value=='Máximo 40 caracteres') this.value=''" onBlur="if(this.value=='')this.value='Máximo 40 caracteres'" value="Máximo 40 caracteres" name="email2" maxlength="50" size="25"></div></td>
        </tr>
        <tr>
          <th class="topLine">Cód. Apagar char:</th>
<td><div class="form_input_bg"><input type="text" onFocus="if(this.value=='7 caracteres [a-Z,0-9]') this.value=''" onBlur="if(this.value=='')this.value='7 caracteres [a-Z,0-9]'" value="7 caracteres [a-Z,0-9]" name="loeschcode" maxlength="7" size="7"></div></td>
        </tr>
 
 
<tr>
          <th class="topLine">P. de Segurança:</th>
          <td class="thell">
            <select name="sicherheitsf" style="width: 200px;">
              <?PHP
                foreach($sFrage AS $fragew => $frage) {
                  echo'<option value="'.$fragew.'">'.$frage.'</option>';
                }
              ?>
            </select>
          </td>
<tr> 
 <th class="topLine">Resposta:</th>
 <td class="form_input_bg">
<input type="password" onFocus="if(this.value=='4 - 16 kar.') this.value=''" onBlur="if(this.value=='')this.value='4 - 16 kar.'" value="4 - 16 kar." name="sicherheitsa" maxlength="16" size="16">
 </td>
</tr>
        </tr>
<tr>
          <th class="topLine">Captcha:</th>
          <td class="tdunkel"><img src="./captcha/captcha.php" title="Captcha"/><br><input type="texta" name="captcha" maxlength="5" size="2"/></td>
</tr>
 
        <tr>
          <th class="topLine" style="text-align:center;" colspan="2"><br><input type="submit" name="submit" value="Registar"> <input type="reset" value="Cancelar"></th>
        </tr>
      </tbody></table>
</form>
  <?PHP
  }
  else {
    echo'<p class="meldung">Erro! Registo Desactivado.</p>';
  }
?>
 
</center>
<div style="clear: both"></div>
</div>
<div class="bottom"></div>

 

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.