daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 65 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  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.         WHERE banend > CURRENT_TIMESTAMP() + 0
  18.     GROUP BY `name`
  19.     ORDER BY `banrealtime` DESC, `reason` ASC
  20.     LIMIT 0, 100')->fetchAll();
  21.        
  22. $number_of_players = 0;
  23. if(!$players_banned)
  24. {
  25. $main_content .= '<center><i>There are no players banned on '.$config['site']['serverName'].'</i></center>';
  26. } else {
  27. foreach($players_banned as $player) {
  28.         if($player['banned'] == 0) continue;
  29.        
  30.         //$main_content .= '<br><pre>'.print_r($player, true).'</pre><br>';
  31.        
  32.     //$banby = "Auto Ban";
  33.     $time = $player['banrealtime'];
  34.        
  35.     $number_of_players++;
  36.     if(is_int($number_of_players / 2))
  37.         $bgcolor = $config['site']['darkborder'];
  38.     else
  39.         $bgcolor = $config['site']['lightborder'];
  40.     $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>';
  41. }
  42.     //list of players
  43.     $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>';
  44. }
  45. ?>
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