mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 14:32:25 +00:00 
			
		
		
		
	Only allow active bans
This commit is contained in:
		
							parent
							
								
									1b5f1ee7c5
								
							
						
					
					
						commit
						0ef564f679
					
				
							
								
								
									
										2
									
								
								bans.php
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bans.php
									
									
									
									
									
								
							| @ -7,7 +7,7 @@ | |||||||
| // <<-----------------mysql Database Connection------------>> //
 | // <<-----------------mysql Database Connection------------>> //
 | ||||||
| require 'includes/data/database.php'; | require 'includes/data/database.php'; | ||||||
| 
 | 
 | ||||||
| $sql = 'SELECT time,until,reason,name,banned_by_name FROM bans INNER JOIN history on bans.uuid = history.uuid ORDER BY time DESC LIMIT 20'; | $sql = 'SELECT time,until,reason,name,banned_by_name FROM bans WHERE active=1 INNER JOIN history on bans.uuid=history.uuid ORDER BY time DESC LIMIT 20'; | ||||||
| 
 | 
 | ||||||
| $retval = mysql_query($sql, $conn); | $retval = mysql_query($sql, $conn); | ||||||
| if (!$retval) { | if (!$retval) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ruan
						Ruan