Jump to content

Recommended Posts

Hello , on my website when i try to log in it doesn't work ! but i can recover password and create an account !

<div id="content">

	<div class="postui2 text-title">
		<h2>Warning</h2>
	</div>
	<div class="postui2 text-con">
		<div class="con-wrap"><center>
			Don't enter your Account Details on web sites outside of this one.<br/>
			<font size="5">www.worldwarmeitn2.com</font> is our one and only web site (domain)!</center>		</div>
		<div class="postui2 text-end">
		</div>
	</div>
</div>
<div id="content">
<img src="img/sb-mid.png" width="650" height="22" />
			<div class="postui2 text-title">
					<h2>
                    Account Informations</h2>
				
				</div>
				<div class="postui2 text-con">
				<div class="con-wrap">
<?PHP
  if(isset($_GET['do']) && $_GET['do']=="aktivieren" && isset($_GET['hash']) && !empty($_GET['hash'])) {
    if(strlen($_GET['hash'])==32 && $_GET['hash']!=1 && checkAnum($_GET['hash'])) {
      $cmdHash = "SELECT id,web_aktiviert FROM account.account WHERE web_aktiviert='".$_GET['hash']."' AND web_aktiviert!='1' LIMIT 1;";
      $qryHash = mysql_query($cmdHash,$sqlServ);
      
      if(mysql_num_rows($qryHash)) {
      
        $getData = mysql_fetch_object($qryHash);
        $userUpdate = "UPDATE account.account SET web_aktiviert='1',status='OK' WHERE id='".$getData->id."' LIMIT 1;";
        $updateQry = mysql_query($userUpdate,$sqlServ);
        
        if($updateQry) {
          echo'<p class="meldung">Ihr Account wurde erfolgreich aktiviert. Sie k&ouml;nnen sich nun einloggen.</p>';
          echo'<meta http-equiv="refresh" content="1; URL=index.php?s=login"> ';
        }
        else {
          echo'<p class="meldung">Query fehlgeschlagen. Bitte einen Admin kontaktieren!</p>';
        }
        
      }
      else {
        echo'<p class="meldung">Es wurde kein passender Eintrag gefunden. Aktivierung fehlgeschlagen.</p>';
      }
      
    }
    else {
      echo'<p class="meldung">Kein valider Hash!</p>';
    }
  }

  if(!empty($_SESSION['user_id'])) 
  {
	      $cmdStats = "SELECT SUM( player.playtime ) AS ges_spielzeit, COUNT( * ) AS ges_chars, player_index.empire
    FROM player.player
    INNER JOIN player.player_index ON player_index.id = player.account_id
    WHERE player.account_id = '".$_SESSION['user_id']."'
    LIMIT 1";
    
    $qryStats = mysql_query($cmdStats,$sqlServ);
    $getStats = mysql_fetch_object($qryStats);
	    if(!empty($getStats->empire)) {
      $reich = '<img src="img/reiche/'.$getStats->empire.'.png" title="Reich" alt="Reich"/>';
    }
    else {
      $reich='kein Reich ausgew&auml;hlt';
    }
    
	?>
    
     <div id="fuibar">			
<div class="fuibarui fui-title">
<p></p>
</div>
<div class="fuibarui fui-con">
<div class="fui-wrap">
<?php    
    echo'<table width="580px">
	<tr>
	<td width="50%">
	<table>
      <tr>
        <td align="right" width="150"><b>Account ID:</b></th>
        <td><b>'.$_SESSION['user_name'].'</b></td>
      </tr>
	  <tr>
        <td align="right" width="150"><b>Coins:</b></th>
        <td>'.$_SESSION['user_coins'].'</td>
      </tr>
	  <tr>
        <td align="right" width="150"><b>Points:</b></th>
        <td>'.$_SESSION['user_points'].'</td>
      </tr>
      <tr>
        <td align="right"><b>Kingdom:</b></th>
        <td>'.$reich.'</td>
      </tr>
      <tr>
        <td align="right"><b>Characters:</b></th>
        <td>'.$getStats->ges_chars.'</td>
      </tr>
      <tr>
        <td align="right"><b>OnLine Time:</b></th>
        <td>'.$getStats->ges_spielzeit.' Minutes</td>
      </tr>';
    $sqlAcc = "SELECT account.social_id AS loeschcode, safebox.password AS lagerpw
    FROM account.account 
    LEFT JOIN player.safebox 
    ON account.id=safebox.account_id 
    WHERE account.id='".$_SESSION['userid']."'";

    $qryAcc = mysql_query($sqlAcc) or die(mysql_error());
    $getAcc = mysql_fetch_object($qryAcc);
    
    if(empty($getAcc->lagerpw)) $getAcc->lagerpw = '000000';
      
      echo'<tr>
        <td align="right"><b>Char Delete Code:</b></th>
        <td>'.$getAcc->loeschcode.'</td>
      </tr>
    </table>
	</td>
	<td><font color="yellow">Remember: <br/><b>Your account is Your Responsibility</b></font><br/>You should <u><b>not share</b></u> your account <br/>with noone! Staff will never ask for <br/>your password! Staff members <br/>have [GM], [GA] or [A] in front <br/>of their names, <font color="yellow"><b>not |GM| or similar</b></font><br/><br/>Note: 100 Points = 100 Coins!</td></tr></table>';
   ?>
</div>
</div> 
<div class="fuibarui fui-end">
</div></div>

    
    

<?php
  }
  else 
  {
  ?>
<center><h2>Login</h2>

<form action="index.php?s=login" method="POST">
  <table width="60%">
    <tr>
      <th class="topLine">Account ID:</th>
      <td class="tdunkel"><input type="text" name="userid" maxlength="16" size="20"/></td>
    </tr>
    <tr>
      <th class="topLine">Password:</th>
      <td class="thell"><input type="password" name="userpass" maxlength="16" size="20"/></td>
    </tr>
    <tr>
      <td class="topLine" style="text-align:center;" colspan="2"><input type="submit" name="submit" value="login"/></td>
    </tr>
  </table>
  <p><a href="index.php?s=register">New ? Register!</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="index.php?s=lostpw">Forgot Password ?</a></p>
</form></center>
  <?PHP
  }
  ?>
  
				</div>

  </div> 
				<div class="postui2 text-end">
           
                
                  
    </div></div>
  
  

And about the patch i tried to use the official patch and actually it did work but i get an error related to *crclist* , i created the newcrclist using the tool and also i did their Lzpack but i still get this error Capture.JPG.6046b27d5da786c836bf3e4e65386d64.JPG

Link to comment
https://metin2.dev/topic/20021-helppatcher-loginphp/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.