Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Skrypt Rejestracyjny


Rekomendowane odpowiedzi

Opublikowano

Witam otóż znalazłem nie dawno super stronkę na serwer metin2 z panelem admina is i innymi bajerami. Wszystko działa bez zarzutu, nawet iS, ale nie rejestracja i nie wiem czemu za każdym razem pisze "Wypełnij wszystkie pola" tyle, że po bułgarsku :D

Dodam wam kod strony może ktoś z was wie, gdzie tkwi błąd.

 

?PHP

$regCoins = 100; // Monezi la inceput

$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']) && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0)) {

if(isset($_POST['submit']) && $_POST['submit']=="Kaydet") {
 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']." ";
	 $email = $serverSettings['reg_mail'];
	 $empfaenger = $_POST['email'];
	 $mail_body = "De?erli ".$serverSettings['server']."Oyuncumuz Olan ".$_POST['uname'].",

	 ".$serverSettings['titel']." Kayd?n?z başar?yla tamamland?. Oyuna giriş yapabilmek için aktivasyon işlemini tamamlamal?s?n?z.
	 Aşa??daki linki kullanarak aktivasyonu tamamlayabilirsiniz:

	 ".$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash."

	 Hesap detaylar?:
	 Hesap: ".$_POST['account']."
	 Şifre: ".$userpass."

	 Karakter silme kodu: ".$lcode."
	 Hat?rlatma sorusu: ".$sFrage[$sfNum]."
	 Cevab?: ".$_POST['sicherheitsa']."

	 Keyifli oyunlar,

	 ".$serverSettings['titel']." Oyun Tak?m?


	 Bu e-posta otomatik olarak oluşturulmuştur. Lütfen bu e-postaya cevap vermeyin.";
	 $titel = "Lütfen kayd?n?z? tamamlay?n ".$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=UTF-8\n";


	 if($serverSettings['mail_activation']) {
	 mail($empfaenger, $titel, $mail_body, $header);
	 echo'<p class="tamam">Kayd?n?z al?nd? ve bilgileriniz kaydedildi.
</p>
<p>K?sa süre içerisinde bir <b>onay postas?n?n</b> e-posta kutunuza gelmiş olmas? gerekiyor. Lütfen <b>e-postadaki linke</b> t?klayarak <b>üyeli?inizi onaylay?n?z</b>. Hesab?n?zla onay öncesi oynayamazs?n?z.
E?er e-postay? k?sa süre içerisinde almazsan?z <a href="./support.php">destek</a> adresinden yetkililer ile irtibata geçiniz.</p></p>';
	 }
	 else {
	 echo'<p class="tamam">Contul dvs. a fost creat cu succes. Vă pute?i autentifica acum.</p>';
	 }

 }
 else {
	 echo'<p class="hata">Eroare în timpul înregistrării: Acest cont există deja.</p>';
 }

 }
 else {
 echo'<p class="hata">Eroare în timpul înregistrării: Va rugam sa introduceti corect toate campurile.</p>';
 }
}
?>
<p><b>Completati toate campurile corect.</b>
<p><b>Caractere permise a-Z,0-9</b>
<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>Aktivasyon için e-posta adresinizi do?ru girdi?inize emin olun!</b>'; } ?></p>
</p>
<form action="index.php?s=register" method="POST">
 <table>
 <tr>
	 <th class="topLine">Nume Utilizator:</th>
	 <td class="tdunkel"><input type="text" name="account" maxlength="16" size="30"/>		
		 8-16 caractere a-Z,0-9)</td>
 </tr>
 <tr>
	 <th class="topLine">Nume Real:</th>
	 <td class="thell"><input type="text" name="uname" maxlength="16" size="30"/>
	 3-20 caractere<span class="tdunkel"> a-Z,0-9 </span></td>
 </tr>
 <tr>
	 <th class="topLine">Parola:</th>
	 <td class="tdunkel"><input type="password" name="pass" maxlength="16" size="30"/>		
	 8-16 caractere a-Z,0-9 </td>
 </tr>
 <tr>
	 <th class="topLine">Rescrie Parola:</th>
	 <td class="thell"><input type="password" name="pass2" maxlength="16" size="30"/>
	 8-16 caractere <span class="tdunkel"> a-Z,0-9 </span></td>
 </tr>
 <tr>
	 <th class="topLine">E-Mail:</th>
	 <td class="tdunkel"><input type="text" name="email" maxlength="50" size="30"/>		
	 Max 50 caractere </td>
 </tr>
 <tr>
	 <th class="topLine">Rescrie E-Mail:</th>
	 <td class="thell"><input type="text" name="email2" maxlength="50" size="30"/>
	 Max 50 caractere</td>
 </tr>
 <tr>
	 <th class="topLine">Cod stergere:</th>
	 <td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="30"/>		
	 7 caractere</td>
 </tr>
 <tr>
	 <th class="topLine"><p>Intrebare Secreta:</p>
	 <p>Raspuns</p></th>
	 <td class="thell">
	 <p>
		 <select name="sicherheitsf">
		 <?PHP
		 foreach($sFrage AS $fragew => $frage) {
			 echo'<option value="'.$fragew.'">'.$frage.'</option>';
		 }
		 ?>
		 </select>
	 </p>
	 <p>
		 <input type="text" name="sicherheitsa" maxlength="16" size="16"/>
	 </p></td>
 </tr>
 <tr>
	 <th height="61" class="topLine">Chapta:</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="Inregistrare"/> ? <input type="reset" value="Resetare"/></th>
 </tr>
 </table>
</form>
<?PHP
}
else {
echo'<p class="hata">Buraya giriş yapt???n?za göre zaten kay?tl?s?n?z. Bunun bir problem oldu?unu düşünüyorsan?z lütfen bildirin</p>';
}
?>

 

Licze na pomoc ;] Daje Like

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...