Register for your free account! | Forgot your password?

You last visited: Today at 13:20

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

Advertisement



[Help] Banlist

Discussion on [Help] Banlist 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
Question [Help] Banlist

Hello everyone!

It would be a question of how such a ban side do?

Maybe if you ask her nicely someone would do one for me?

I just write out what the character's name, why was banned and what time.

A thank you in advance for your answers !

How to change account_id to account_name or player_name?

Ban.php

PHP Code:
<?PHP
  
if($_SESSION['user_admin']>=$adminRights['ban_account']) {
  
    echo 
'<h2>Admin - Account sperren</h2>';
    
    if(isset(
$_GET['acc']) && !empty($_GET['acc'])) 
    {
      
      if(isset(
$_POST['submit']) && $_POST['submit']=='sperren') {
        
          if(!empty(
$_POST['banGrund']) && !empty($_POST['banEingabe'])) {
          
            
$sqlCmd "SELECT login FROM account.account WHERE id='".$_GET['acc']."' LIMIT 1";
            
$sqlQry mysql_query($sqlCmd,$sqlServ);
            
            if(
mysql_num_rows($sqlQry)>0
            {
              
$accData mysql_fetch_object($sqlQry);
              
$sqlCmd "UPDATE account.account SET status='BLOCK' WHERE id='".$_GET['acc']."' LIMIT 1";
              if(
mysql_query($sqlCmd,$sqlServ)) {
                echo
'<p>'.$accData->login.' wurde gesperrt</p>';
                echo
'<p><a href="index.php?s=admin&a=users&acc='.$_GET['acc'].'">zurück zur &Uuml;bersicht</a></p>';
              }
              
              
$begruendung $_POST['banGrund'].': '.$_POST['banEingabe'];
              
              
$sqlLog "INSERT INTO ".SQL_HP_DB.".ban_log (admin_id,account_id,zeitpunkt,grund,typ) VALUES ('".$_SESSION['user_id']."','".$_GET['acc']."',NOW(),'".$begruendung."','BLOCK')";
              
$qryLog mysql_query($sqlLog,$sqlHp);
            }
            else
            {
              echo
'<p>Die eingegebene Account-ID existiert nicht!</p>';      
            }
            
          }
          else {
            echo
'<p class="meldung">Es wurde keine ausführliche Begründung eingegeben.</p>';
          }

      }
      
      
$sqlLogin "SELECT login FROM account.account WHERE id='".$_GET['acc']."' LIMIT 1";
      
$qryLogin mysql_query($sqlLogin,$sqlServ);
      
$getLogin mysql_fetch_object($qryLogin);
      
      
?>
      <form action="index.php?s=admin&a=ban&acc=<?PHP echo $_GET['acc']; ?>" method="POST">
        <table>
          <tr>
            <th class="topLine">Account:</th>
            <td class="tdunkel"><?PHP echo $getLogin->login ?></td>
          </tr>
          <tr>
            <th class="topLine">Begründung:</th>
            <td class="thell">
            <select name="banGrund">
              <?PHP
              
                
foreach($banGruende AS $gruende) {
                  echo
'<option value="'.$gruende.'">'.$gruende.'</option>';
                }
                
              
?>
            </select>
            &nbsp;Ergänzung&nbsp;
            <input type="text" name="banEingabe" size="50" maxlength="150" />
            </td>
          </tr>
          <tr>
            <th class="topLine" style="text-align:center;" colspan="2"><input type="submit" name="submit" value="sperren"/></th>
          </tr>
        </table>
      </form>
      <?PHP
    
}
    else 
    {
      echo
'<p class="meldung">Es wurde keine Account-ID eingegeben.</p>';
    }
    
  }
  else {
    echo
'<p class="meldung">Kein Zugriff auf diesen Bereich!</p>';
  }
?>
K44z is offline  
Reply

Tags
ban, banlist, banliste, page, php


Similar Threads Similar Threads
Metin255 BanList Help
07/16/2013 - Metin2 Private Server - 1 Replies
First of all hello to everyone. I have a problem and want help for this problem. I threw on my website, but banlist has metin55 panel. php does not exist. I thought I could help. If you can help thanks. http://f1211.hizliresim.com/13/6/fnzxq.png Thanks...
Banlist like this please!
05/28/2013 - Metin2 Private Server - 1 Replies
Avatars2 All the banlist pages i found here are with Account ID not Player Name like this script I'm showing in link. :confused:
2nd Week without Banlist
08/04/2009 - Silkroad Online - 5 Replies
Just to remember you guys ;)
BANLIST - LOL
06/24/2009 - Silkroad Online - 29 Replies
http://i41.tinypic.com/2wqd5x4.jpg http://i43.tinypic.com/2cmu743.jpg picture taken from silkroadonline.net forum banning goldbot? player? LoL banning lvl 1 then creating them again...
Banlist
03/29/2006 - GunZ - 3 Replies
Here Ya go a list of the user's characters already banned.... As of 03-20-06 ~~~~~~~~~ Winter _AthenaBB_ _RoXane_ 455h0l3 aaronr2005



All times are GMT +1. The time now is 13:22.


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.