daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  <?PHP
  3. //////////////////
  4. /// CREATED BY ///
  5. ///   SAMME    ///
  6. /////  FROM  /////
  7. /// OTLAND.NET ///
  8. //////////////////
  9.  
  10. //Please respect the copyrights!//
  11.  
  12. // AND banend < UNIX_TIMESTAMP(NOW())
  13.  
  14. $ban_reason = array("offensive name", "name containing part of sentence", "name with nonsensical letter combination", "invalid name format", "name not describing person", "name of celebrity", "name reffering to country", "Offtopic (Forum)", "name to fake official position", "offensive statement", "spamming", "advertisement not related to game", "macro use", "<center>--></center>", "off-topic public statement", "inciting rule violation", "bug abuse", "game weakness abuse", "Macro Use", "Destructive Behaviour", "<center>--></center>", "multi-clienting", "account trading", "<center>--></center>", "threatening gamemaster", "pretending to have official position", "pretending to have influence on gamemaster", "false report to gamemaster", "excessive unjustified player killing", "destructive behaviour", "spoiling auction", "invalid payment");
  15.  
  16. $players_banned = $SQL->query('SELECT name, id, level, account_id, banned, banstart, banend, comment, reason, banrealtime FROM `players`
  17.     GROUP BY `name`
  18.     ORDER BY `banrealtime` DESC, `reason` ASC
  19.     LIMIT 0, 100')->fetchAll();
  20.        
  21. $number_of_players = 0;
  22. if(!$players_banned)
  23. {
  24. $main_content .= '<center><i>There are no players banned on '.$config['site']['serverName'].'</i></center>';
  25. } else {
  26. foreach($players_banned as $player) {
  27.         if($player['banned'] == 0) continue;
  28.        
  29.         //$main_content .= '<br><pre>'.print_r($player, true).'</pre><br>';
  30.        
  31.     //$banby = "Auto Ban";
  32.     $time = $player['banrealtime'];
  33.        
  34.     $number_of_players++;
  35.     if(is_int($number_of_players / 2))
  36.         $bgcolor = $config['site']['darkborder'];
  37.     else
  38.         $bgcolor = $config['site']['lightborder'];
  39.     $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=20%><A HREF="?subtopic=characters&name='.$player['name'].'">'.$player['name'].'</A></TD><TD WIDTH=25%>'.$player['reason'].'</TD><TD>'.$banby.'</TD><TD>'.$time.'</TD></TR>';
  40. }
  41.     //list of players
  42.     $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 WIDTH=10%><TD class="white"><b><center>Expires</center></b></TD></TR>'.$players_rows.'</TABLE>';
  43. }
  44. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top