Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 10:55

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

Advertisement



Warehouseman password Show website

Discussion on Warehouseman password Show website within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2010
Posts: 41
Received Thanks: 4
Warehouseman password Show website

Hello!

The prehistoric site on Metin2 want to put a php function to show the warehouse password. The character code like cloth.

Current login.php:

PHP Code:
<div id="con-top">Játékos panel</div>
<div id="con-mid">
<?PHP
  
if(isset($_GET['do']) && $_GET['do']=="aktivieren" && isset($_GET['hash']) && !empty($_GET['hash'])) {
    if(
strlen($_GET['hash'])==32 && $_GET['hash']!=&& 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ö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="Birodalom" alt="Reich"/>';
    }
    else {
      
$reich='Nincs birodalomban';
    }
    
    
    echo
'<table>
      <tr>
        <th class="topLine">Felhasználónév:</th>
        <td class="tdunkel">'
.$_SESSION['user_name'].'</td>
      </tr>
      <tr>
        <th class="topLine">Birodalom:</th>
        <td class="thell">'
.$reich.'</td>
      </tr>
      <tr>
        <th class="topLine">Karakterek száma:</th>
        <td class="tdunkel">'
.$getStats->ges_chars.'</td>
      </tr>
      <tr>
        <th class="topLine">Játékidő:</th>
        <td class="thell">'
.$getStats->ges_spielzeit.' Perc</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['user_id']."'";

    
$qryAcc mysql_query($sqlAcc) or die(mysql_error());
    
$getAcc mysql_fetch_object($qryAcc);
    
    if(empty(
$getAcc->lagerpw)) $getAcc->lagerpw '000000';
      
      echo
'<tr>
        <th class="topLine">Karakter törlő kód:</th>
        <td class="tdunkel">'
.$getAcc->loeschcode.'</td>
      </tr>
    </table>'
;

  }
  else 
  {
  
?>
<h2>Bejelentkezés</h2>
<form action="index.php?s=login" method="POST">
  <table>
    <tr>
      <th class="topLine">Felhasználónév:</th>
      <td class="tdunkel"><input type="text" name="userid" maxlength="16" size="20"/></td>
    </tr>
    <tr>
      <th class="topLine">Jelszó:</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">Regisztráció</a> &bull; <a href="index.php?s=lostpw">Elfelejtette jelszavát?</a></p>
</form>
  <?PHP
  
}
  
?>
</div>
<div id="con-bot"></div>
K44z is offline  
Old 02/21/2013, 17:10   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 41
Received Thanks: 4
pls help
K44z is offline  
Reply

Tags
metin2, php, warehouseman, website


Similar Threads Similar Threads
[Show] Website
11/03/2012 - Flyff Private Server - 10 Replies
Please if any ideas of improvements i could bring to this website template, don`t hesitate to tell me. Top: Screenshot by Lightshot Bottom: Screenshot by Lightshot
[Show] Website
11/01/2012 - Flyff Private Server - 11 Replies
Ich und iLogix'. haben eine Website erstellt. Wie ihr wisst, wurde dieses Webdesign schon releast. http://fc00.deviantart.net/fs70/f/2012/181/9/c/9c 6352fb18654256972d622d79f48db1-d55gv0f.jpg Wir haben uns gewagt diese zu coden und so sieht unser Resultat an. Resultat: http://www7.pic-upload.de/01.11.12/vmgg9iu8gif3.p ng
website change password
05/18/2011 - EO PServer Hosting - 2 Replies
This is not working it says your password has been changed but it dosent load it in the DB whats wrong? <?php include('config.php'); ?> <?php if($_POST){ mysql_select_db($mydbacc); $userid = trim($_POST); $password=trim($_POST);
Warehouseman PW?
05/04/2011 - Conquer Online 2 - 20 Replies
Hi! How can i get back my Warehouseman Password? i dont know my PW because i havent played the game for 7-10 month... i filled out the support formular on the conquer page but i dont know all my account details so i dont believe in getting my password back... or can say reset my warehouse? i dont need my things but i need to save my things. PLS HELP!
[HELP]website dun show pet star
03/21/2010 - EO PServer Hosting - 2 Replies
only 3 pet not showing star at my web, but other pet is ok helfirepike stormsoul and pdfmdef anything wrong? at db side or this is website bug



All times are GMT +1. The time now is 10:55.


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