Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 05:30

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

Advertisement



[Help] Activate Webpage register

Discussion on [Help] Activate Webpage register within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
siak2011's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 70
Received Thanks: 8
[Help] Activate Webpage register

Hello everything , i have a little problem whith my home new homepage, its say to me that the register is desactivated , how i can activate it? Sorry for my bad english , i let you the register.php

PHP Code:
<div class='box box-style2'>
                                <h2 class='title'>
                                Registration</h2>
                                <div class='content-bg'>
                                    <div class='content-bgtop'>
                                      <div class='content-bgbtm 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']) && !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']) && (checkName($_POST['uname']) && strlen($_POST['uname'])>=&& strlen($_POST['uname'])<=20) && $_POST['pass']==$_POST['pass2'] && checkMail($_POST['email']) && strlen($_POST['email'])<=40 && $_POST['email']==$_POST['email2'] && (checkAnum($_POST['sicherheitsa']) && strlen($_POST['sicherheitsa'])>=&& 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']." 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">Account erfolgreich angelegt. Bitte überprüfen Sie Ihr Postfach, um die Registrierung zu bestätigen.</p>';
          }
          else {
            echo
'<p class="meldung">Kayit Basarili.</p>';
          }
          
        }
        else {
          echo
'<p class="meldung">Registrierung fehlgeschlagen: Der Account existiert bereits.</p>';
        }
        
      }
      else {
        echo
'<p class="meldung">Registrierung fehlgeschlagen: bitte alle Felder richtig angeben</p>';
      }
    }
  
?>
    <p>Erstell dir jetzt einen Account .<?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>
        <tr>
          <th width="114" class="topLine">Benutzername:</th>
          <td width="302" class="tdunkel"><input type="text" name="account" maxlength="16" size="16"/> 
            8-16 Karakter </td>
        </tr>
        <tr>
          <th class="topLine">Passwort</th>
          <td class="thell"><input type="text" name="uname" maxlength="16" size="16"/>            3-20 <span class="tdunkel">charackter </span></td>
        </tr>
        <tr>
          <th class="topLine">wiederholen</th>
          <td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/>                8-16 Zeichen </td>
        </tr>
        <tr>
          <th class="topLine">Nochmal Wiederholen :</th>
          <td class="thell"><input type="password" name="pass2" maxlength="16" size="16"/> 
          PW Wiederholen </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">E-Mail wiederholen:</th>
          <td class="thell"><input type="text" name="email2" maxlength="50" size="25"/> 
          E-Mail Wiederholen </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">Sicherheits Frage:</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 <span class="tdunkel">Karakter </span></td>
        </tr>
        <tr>
          <th class="topLine" style="text-align:center;" colspan="2"><input type="submit" name="submit" value="registrieren"/></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>
                                </div>
                            </div>
thanks
siak2011 is offline  
Old 01/07/2013, 02:57   #2
Hidden Moderator
 
xcuz's Avatar
 
elite*gold: 0
The Black Market: 138/0/0
Join Date: Jul 2011
Posts: 24,076
Received Thanks: 4,806
Arrow Metin2 Main - Discussions / Questions -> Metin2 PServer - Discussions / Questions

#moved
xcuz is offline  
Old 01/07/2013, 03:57   #3
 
elite*gold: 0
Join Date: May 2012
Posts: 3
Received Thanks: 0
That's not the entire script, there should be another file which contains the $serverSettings['register_on'] variable.
Just replace the false with a true.
AuthorityZero is offline  
Reply


Similar Threads Similar Threads
Inline Asm -> Wert aus Register in anderes Register schreiben
03/17/2012 - C/C++ - 17 Replies
Huhu, die Frage klingt vielleicht etwas Blöd, aber ich würde gerne wissen, wie ich den Wert eines Registers in ein anderes schreiben kann. Wenn ich mov verwende wird lediglich die Speicheradresse auf das andere Register geschrieben und ich brauche den Wert in die Speicheradresse die mein Register hält. Mein Inline Asm Code sieht folgendermaßen aus: char *command; code = "insert 1"; _asm {
webpage register vsro
11/10/2011 - SRO Private Server - 11 Replies
EDIT Foe webpage register vsro http://www.elitepvpers.com/forum/att...ation-page .rar Go C:\Windows\php.ini before ;extension=php_mssql.dll after extension=php_mssql.dll
[HELP] Server and Webpage
06/03/2010 - EO PServer Hosting - 4 Replies
I am hosting both a eo-private server and an eo-website from the same computer. The website is using Xampp (Apache friends edition). Both the server and the website, require MySql and as of right now i am running 2 at the same time. This is a problem because both MySql require the same port (3306), this creates various problems. Really I can only have one of the 2 programs running at any given time(usually the server overpowers the website). Anyone know how i can configure them so that they can...
[Release] Activate/Un-Activate NPC by Command.
12/11/2008 - CO2 PServer Guides & Releases - 20 Replies
So ive seen alot of you wanted this, well here it is, coded this in about 4minutes total and never tested it,so you will probably be the first one. So, all you actually do is to make the server check if xxx is activated, if it is, it shows the real npc chat, if it isnt, it tells you that it isnt. And you activate/unactivate the xxx with a command. Well here you are: In General.cs , under : public static System.Timers.Timer Thetimer; public static bool CanTalkToNPC = false;
KalOnline WebPage
08/22/2008 - Kal Online - 4 Replies
Hello, can anyone share clean webpage for privat server including; Main Rules Ranking Downlo About Statistic.. REGISTER



All times are GMT +1. The time now is 05:31.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.