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] Platna rejestracja


Rekomendowane odpowiedzi

Opublikowano

witam chcialem kogos prosic o dodanie do skryptu jesli ktos by mogl opcji rejestracji pod sms z gory thx

 

 

<div id="content"> <div class="postui2 text-title">

<h2>

Rejestracja

 

</h2>

 

</div>

<div class="postui2 text-con">

<div class="con-wrap">

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

 

if(isset($_POST['submit']) && $_POST['submit']=="Rejestracja") {

if((checkAnum($_POST['account']) && strlen($_POST['account'])>=5 && strlen($_POST['account'])<=16) && checkAnum($_POST['pass']) && strlen($_POST['pass'])>=5 && 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,gold_expire,silver_expire,safebox_expire,autoloot_expire,fish_mind_expire,marriage_fast_expire,money_drop_rate_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."','".$expireDate."','".$expireDate."','".$expireDate."','".$expireDate."','".$expireDate."','".$aktivHash."')";

$sqlQry = mysql_query($sqlCmd,$sqlServ);

if($sqlQry) {

 

 

$absender = $serverSettings['titel']." Registration";

$email = $serverSettings['reg_mail'];

$empfaenger = $_POST['email'];

$mail_body = "Hallo ".$_POST['uname'].",

 

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."

Sicherheitsfrage: ".$sFrage[$sfNum]."

Antwort: ".$_POST['sicherheitsa']."

 

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'<p class="meldung">Rejestracja zakonczona powodzeniem: sprawdz swoja skrzynke pocztowa i potwierdz zalozenie konta.</p>';

}

else {

echo'<p class="meldung">Rejestracja zakończona powodzeniem! Życzymy miłej gry.</p>';

}

 

}

else {

echo'<p class="meldung">Rejestracja nie powiodla sie: konto juz istnieje.</p>';

}

 

}

else {

echo'<p class="meldung">Rejestracja nie powiodla sie: prosze wypelnic wszystkie pola.</p>';

}

}

?>

<p>Rejestrujac się akceptujesz <a href="index.php?s=regulamin">regulamin gry</a>.<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>Zalozenie konta wymaga potwierdzenia e-mail.</b>'; } ?></p>

<form action="index.php?s=register" method="POST">

<table>

<tr>

<th class="topLine">Konto:</th>

<td class="tdunkel"><input type="text" name="account" maxlength="16" size="16"/> 5-16 znaków (tylko a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Imię:</th>

<td class="thell"><input type="text" name="uname" maxlength="16" size="16"/> 3-20 znaków (tylko a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Hasło:</th>

<td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/> 5-16 znaków (tylko a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Powtórz hasło:</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="40" size="16"/> maksymalnie 40 znaków</td>

</tr>

<tr>

<th class="topLine">Powtórz e-mail:</th>

<td class="thell"><input type="text" name="email2" maxlength="40" size="16"/></td>

</tr>

<tr>

<th class="topLine">Kod usunięcia:</th>

<td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="16"/> 7 znaków (tylko a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Tajne pytanie:</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 znaków (tylko a-Z,0-9)

</td>

</tr>

<tr>

<th class="topLine">Przepisz kod:</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="Rejestracja"/> ? <input type="reset" value="Resetuj"/></th>

</tr>

</table>

</form>

<?PHP

}

else {

echo'<p class="meldung">Rejestracja jest wylaczaona lub jestes juz zarejestrowany, nie mozna utworzyc konta.</p>';

}

?>

 

</div>

 

</div>

<div class="postui2 text-end">

 

 

 

</div></div>

 

33748387117269464751.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...