mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 06:22:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			787 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			787 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| require_once './inc/page.php';
 | |
| 
 | |
| $page = new Page("kicks");
 | |
| 
 | |
| $page->print_title();
 | |
| $page->print_header();
 | |
| 
 | |
| $page->print_check_form();
 | |
| 
 | |
| $page->table_begin();
 | |
| 
 | |
| $result = $page->run_query();
 | |
| while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
 | |
|     $player_name = $page->get_name($row['uuid']);
 | |
|     if ($player_name === null) continue;
 | |
| 
 | |
|     $page->print_table_rows($row, array(
 | |
|         $page->lang->kicks_player => $page->get_avatar($player_name, $row['uuid']),
 | |
|         $page->lang->kicks_by     => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
 | |
|         $page->lang->kicks_reason => $page->clean($row['reason']),
 | |
|         $page->lang->kicks_when   => $page->millis_to_date($row['time']),
 | |
|     ));
 | |
| }
 | |
| $page->table_end();
 | |
| $page->print_pager();
 | |
| 
 | |
| $page->print_footer();
 | 
