mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-29 22:12:25 +00:00 
			
		
		
		
	Check configuration, just in case
This commit is contained in:
		
							parent
							
								
									fa94244758
								
							
						
					
					
						commit
						16af5f2c15
					
				
							
								
								
									
										4
									
								
								bans.php
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								bans.php
									
									
									
									
									
								
							| @ -57,7 +57,7 @@ | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php | ||||
|                 global $table_bans, $conn; | ||||
|                 global $table_bans, $conn, $show_inactive_bans; | ||||
|                 $result = run_query($table_bans); | ||||
|                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||
|                     $timeResult = millis_to_date($row['time']); | ||||
| @ -72,7 +72,7 @@ | ||||
|                             <?php if ($row['until'] <= 0) { | ||||
|                                 $expiresResult = 'Permanent Ban'; | ||||
|                             } | ||||
|                             if ($row['active'] == 0) { | ||||
|                             if ($show_inactive_bans && $row['active'] == 0) { | ||||
|                                 $expiresResult .= ' (Unbanned)'; | ||||
|                             } | ||||
|                             echo $expiresResult; | ||||
|  | ||||
| @ -24,7 +24,7 @@ | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php | ||||
|                 global $table_mutes, $conn; | ||||
|                 global $table_mutes, $conn, $show_inactive_bans; | ||||
|                 $result = run_query($table_mutes); | ||||
|                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||
|                     $timeResult = millis_to_date($row['time']); | ||||
| @ -39,7 +39,7 @@ | ||||
|                             <?php if ($row['until'] <= 0) { | ||||
|                                 $expiresResult = 'Permanent Mute'; | ||||
|                             } | ||||
|                             if ($row['active'] == 0) { | ||||
|                             if ($show_inactive_bans && $row['active'] == 0) { | ||||
|                                 $expiresResult .= ' (Unmuted)'; | ||||
|                             } | ||||
|                             echo $expiresResult; | ||||
|  | ||||
| @ -31,7 +31,7 @@ | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php | ||||
|                 global $table_warnings, $conn; | ||||
|                 global $table_warnings, $conn, $show_inactive_bans; | ||||
|                 $result = run_query($table_warnings); | ||||
|                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||
|                     $expiresResult = millis_to_date($row['until']); | ||||
| @ -44,7 +44,7 @@ | ||||
|                             <?php if ($row['until'] <= 0) { | ||||
|                                 $expiresResult = 'Permanent Warning'; | ||||
|                             } | ||||
|                             if ($row['active'] == 0) { | ||||
|                             if ($show_inactive_bans && $row['active'] == 0) { | ||||
|                                 $expiresResult .= ' (Expired)'; | ||||
|                             } | ||||
|                             echo $expiresResult; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ruan
						Ruan