mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 14:32:25 +00:00 
			
		
		
		
	Add kicks.php
This commit is contained in:
		
							parent
							
								
									0dffec210d
								
							
						
					
					
						commit
						70f67bf171
					
				| @ -13,6 +13,7 @@ | |||||||
|                 <li><a href="bans.php">Bans</a></li> |                 <li><a href="bans.php">Bans</a></li> | ||||||
|                 <li><a href="mutes.php">Mutes</a></li> |                 <li><a href="mutes.php">Mutes</a></li> | ||||||
|                 <li><a href="warnings.php">Warnings</a></li> |                 <li><a href="warnings.php">Warnings</a></li> | ||||||
|  |                 <li><a href="kicks.php">Kicks</a></li> | ||||||
|             </ul> |             </ul> | ||||||
|             <p class="navbar-text" style="float: right; font-size:15px;color:white;">© |             <p class="navbar-text" style="float: right; font-size:15px;color:white;">© | ||||||
|                 <a href="https://www.spigotmc.org/resources/litebans.3715/" target="_blank">LiteBans</a> |                 <a href="https://www.spigotmc.org/resources/litebans.3715/" target="_blank">LiteBans</a> | ||||||
|  | |||||||
| @ -29,6 +29,7 @@ final class Settings { | |||||||
|         $this->table_bans = "{$table_prefix}bans"; |         $this->table_bans = "{$table_prefix}bans"; | ||||||
|         $this->table_mutes = "{$table_prefix}mutes"; |         $this->table_mutes = "{$table_prefix}mutes"; | ||||||
|         $this->table_warnings = "{$table_prefix}warnings"; |         $this->table_warnings = "{$table_prefix}warnings"; | ||||||
|  |         $this->table_kicks = "${table_prefix}kicks"; | ||||||
|         $this->table_history = "{$table_prefix}history"; |         $this->table_history = "{$table_prefix}history"; | ||||||
| 
 | 
 | ||||||
|         // The date format can be changed here.
 |         // The date format can be changed here.
 | ||||||
|  | |||||||
							
								
								
									
										32
									
								
								kicks.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								kicks.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | |||||||
|  | <?php | ||||||
|  | require_once './includes/page.php'; | ||||||
|  | $page = new Page(); | ||||||
|  | ?>
 | ||||||
|  | <title>Tempbans - <?php echo $page->settings->name; ?></title>
 | ||||||
|  | <div class="container"> | ||||||
|  |     <?php | ||||||
|  |     $page->print_page_header("Kicks"); | ||||||
|  |     ?>
 | ||||||
|  |     <div class="row" style="margin-bottom:60px;"> | ||||||
|  |         <div class="col-lg-12"> | ||||||
|  |             <table class="table table-hover table-bordered table-condensed"> | ||||||
|  |                 <?php | ||||||
|  |                 $page->print_table_headers(array("Name", "Kicked By", "Reason", "Date")); | ||||||
|  |                 $result = $page->run_query($page->settings->table_kicks); | ||||||
|  |                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||||
|  |                     $player_name = $page->get_name($row['uuid']); | ||||||
|  |                     if ($player_name === null) continue; | ||||||
|  |                     ?>
 | ||||||
|  |                     <tr> | ||||||
|  |                         <td><?php echo $page->get_avatar($player_name); ?></td>
 | ||||||
|  |                         <td><?php echo $page->get_avatar($page->get_banner_name($row)); ?></td>
 | ||||||
|  |                         <td style="width: 30%;"><?php echo $page->clean($row['reason']); ?></td>
 | ||||||
|  |                         <td><?php echo $page->millis_to_date($row['time']); ?></td>
 | ||||||
|  |                     </tr> | ||||||
|  |                 <?php } ?>
 | ||||||
|  |             </table> | ||||||
|  |             <?php $page->print_pager("kicks.php", $page->settings->table_kicks); ?>
 | ||||||
|  |         </div> | ||||||
|  |     </div> | ||||||
|  |     <?php $page->print_footer(); ?>
 | ||||||
|  | </div> | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ruan
						Ruan