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> |                 </thead> | ||||||
|                 <tbody> |                 <tbody> | ||||||
|                 <?php |                 <?php | ||||||
|                 global $table_bans, $conn; |                 global $table_bans, $conn, $show_inactive_bans; | ||||||
|                 $result = run_query($table_bans); |                 $result = run_query($table_bans); | ||||||
|                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { |                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||||
|                     $timeResult = millis_to_date($row['time']); |                     $timeResult = millis_to_date($row['time']); | ||||||
| @ -72,7 +72,7 @@ | |||||||
|                             <?php if ($row['until'] <= 0) { |                             <?php if ($row['until'] <= 0) { | ||||||
|                                 $expiresResult = 'Permanent Ban'; |                                 $expiresResult = 'Permanent Ban'; | ||||||
|                             } |                             } | ||||||
|                             if ($row['active'] == 0) { |                             if ($show_inactive_bans && $row['active'] == 0) { | ||||||
|                                 $expiresResult .= ' (Unbanned)'; |                                 $expiresResult .= ' (Unbanned)'; | ||||||
|                             } |                             } | ||||||
|                             echo $expiresResult; |                             echo $expiresResult; | ||||||
|  | |||||||
| @ -24,7 +24,7 @@ | |||||||
|                 </thead> |                 </thead> | ||||||
|                 <tbody> |                 <tbody> | ||||||
|                 <?php |                 <?php | ||||||
|                 global $table_mutes, $conn; |                 global $table_mutes, $conn, $show_inactive_bans; | ||||||
|                 $result = run_query($table_mutes); |                 $result = run_query($table_mutes); | ||||||
|                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { |                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||||
|                     $timeResult = millis_to_date($row['time']); |                     $timeResult = millis_to_date($row['time']); | ||||||
| @ -39,7 +39,7 @@ | |||||||
|                             <?php if ($row['until'] <= 0) { |                             <?php if ($row['until'] <= 0) { | ||||||
|                                 $expiresResult = 'Permanent Mute'; |                                 $expiresResult = 'Permanent Mute'; | ||||||
|                             } |                             } | ||||||
|                             if ($row['active'] == 0) { |                             if ($show_inactive_bans && $row['active'] == 0) { | ||||||
|                                 $expiresResult .= ' (Unmuted)'; |                                 $expiresResult .= ' (Unmuted)'; | ||||||
|                             } |                             } | ||||||
|                             echo $expiresResult; |                             echo $expiresResult; | ||||||
|  | |||||||
| @ -31,7 +31,7 @@ | |||||||
|                 </thead> |                 </thead> | ||||||
|                 <tbody> |                 <tbody> | ||||||
|                 <?php |                 <?php | ||||||
|                 global $table_warnings, $conn; |                 global $table_warnings, $conn, $show_inactive_bans; | ||||||
|                 $result = run_query($table_warnings); |                 $result = run_query($table_warnings); | ||||||
|                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { |                 while ($row = $result->fetch(PDO::FETCH_ASSOC)) { | ||||||
|                     $expiresResult = millis_to_date($row['until']); |                     $expiresResult = millis_to_date($row['until']); | ||||||
| @ -44,7 +44,7 @@ | |||||||
|                             <?php if ($row['until'] <= 0) { |                             <?php if ($row['until'] <= 0) { | ||||||
|                                 $expiresResult = 'Permanent Warning'; |                                 $expiresResult = 'Permanent Warning'; | ||||||
|                             } |                             } | ||||||
|                             if ($row['active'] == 0) { |                             if ($show_inactive_bans && $row['active'] == 0) { | ||||||
|                                 $expiresResult .= ' (Expired)'; |                                 $expiresResult .= ' (Expired)'; | ||||||
|                             } |                             } | ||||||
|                             echo $expiresResult; |                             echo $expiresResult; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ruan
						Ruan