• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Ban.php display notations?

Kavvson

Gdy boli cie glowa wez
Joined
Jun 25, 2008
Messages
1,177
Reaction score
72
Location
Poland
PHP:
   1.
      <?PHP
   2.
      $ban_types = array(1 => 'IP Banishment', 2 => 'Namelock', 3 => 'Account Banishment', 4 => 'Notation', 5 => 'Until Deletion');
   3.
      $ban_reason = array("Offensive Name", "Invalid Name Format", "Unsuitable Name", "Name Inciting Rule Violation", "Offensive Statement", "Spamming", "Illegal Advertising", "Off-Topic Public Statement", "Non-English Public Statement", "Inciting Rule Violation", "Bug Abuse", "Game Weakness Abuse", "Using Unofficial Software to Play", "Hacking", "Multi-Clienting", "Account Trading or Sharing", "Threatening Gamemaster", "Pretending to Have Influence on Rule Enforcer", "False Report to Gamemaster", "Destructive Behaviour", "Excessive Unjustified Player Killing", "Invalid Payment", "Spoiling Auction");
   4.
      $players_banned = $SQL->query('SELECT `bans`.`type`, `bans`.`value`, `bans`.`comment`,`bans`.`admin_id`, `bans`.`expires`, `bans`.`added`, `bans`.`reason` FROM `bans`, `players` WHERE `players`.`account_id` = `bans`.`value` AND `bans`.`active` = 1 GROUP BY `bans`.`value` ORDER BY `bans`.`added` DESC')->fetchAll();
   5.
      if(!$players_banned) {
   6.
      $main_content .= '<h2><center><b>No one is banned at the moment at '.$config['server']['serverName'].'</b></center></h2>';
   7.
      } else{
   8.
          $number_of_players = 0;
   9.
          foreach($players_banned as $player) {
  10.
              $nick = $SQL->query("SELECT name, id, level, account_id FROM `players` WHERE account_id =".$player['value']." ORDER BY level DESC LIMIT 1")->fetch();
  11.
              $gmnick = $SQL->query("SELECT name, id FROM `players` WHERE id =".$player['admin_id']."")->fetch();
  12.
       
  13.
              if($player['admin_id'] >= "1")
  14.
                  $banby = "<a href=?subtopic=characters&name=".urlencode($gmnick['name'])."><font color ='green'>".$gmnick['name']."</font></a>";
  15.
              else
  16.
                  $banby = "FunOT System";
  17.
       
  18.
              $number_of_players++;
  19.
       
  20.
              if(is_int($number_of_players / 2))
  21.
                  $bgcolor = $config['site']['darkborder'];
  22.
              else
  23.
                  $bgcolor = $config['site']['lightborder'];
  24.
       
  25.
              if ($player['expires'] == "-1") // If the banishment is permanent
  26.
                  $expires = "Permament";
  27.
              else
  28.
                  $expires = date("d/m/Y, G:i:s", $player['expires']);
  29.
       
  30.
       
  31.
              $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=15%><A HREF="?subtopic=characters&name='.$nick['name'].'">'.$nick['name'].'</A></TD><TD WIDTH=5%>'.$ban_reason[$player['reason']].'</TD><TD WIDTH=15%>'.$player['comment'].'</TD><TD>'.$banby.'</TD><TD>'.$expires.'</TD></TR>';
  32.
          }
  33.
          //list of players
  34.
          $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><b><center>Banned Player</center></b></TD><TD class="white"><b><center>Reason</center></b></TD><TD class="white"><b><center>Comment</center></b></TD><TD class="white"><b><center>Banned By</center></b></TD><TD class="white"><b><center>Expires</center></b></TD></TR>'.$players_rows.'</TABLE>';
  35.
      }
  36.
      //COPY RIGHTS!! DO NOT DELETE!
  37.
       $main_content .= '<br/><p align="right">Scripted by <B>Samme</B> Rewriten by <b><a href="http://otland.net/members/widnet/">widnet</a></b>.</p>';
  38.
      ?>

How to change it? that it show notations
 
Back
Top