From 4bf43fcf92ccbbdf1017ea9297e6b5a63399bb7d Mon Sep 17 00:00:00 2001 From: AntonV1211 Date: Tue, 21 Jan 2025 19:15:52 +0700 Subject: [PATCH] Upd. ScannerTbl. Remove the display of empty files in unknown --- inc/spbc-scanner.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/inc/spbc-scanner.php b/inc/spbc-scanner.php index ee73756c..33f154c0 100644 --- a/inc/spbc-scanner.php +++ b/inc/spbc-scanner.php @@ -1066,20 +1066,11 @@ function spbc_get_sql_where_addiction_for_table_of_category($category) $res = ' WHERE last_sent IS NOT NULL'; break; case 'unknown': - // uses constant to skip zero-byte files https://doboard.com/1/task/11599 - if ( - defined('SPBC_SCAN_RESULTS_HIDE_ZERO_BYTES_UNKNOWN_FILES') && - SPBC_SCAN_RESULTS_HIDE_ZERO_BYTES_UNKNOWN_FILES - ) { - $size_chunk = ' size > 0 AND '; - } else { - $size_chunk = ''; - } - $res = ' WHERE status NOT IN ("APPROVED_BY_USER","APPROVED_BY_CT","APPROVED_BY_CLOUD","DENIED_BY_CT", "ERROR") AND + $res = ' WHERE status NOT IN ("APPROVED_BY_USER","APPROVED_BY_CT","APPROVED_BY_CLOUD","DENIED_BY_CT","ERROR") AND detected_at >= ' . (time() - $spbc->settings['scanner__list_unknown__older_than'] * 86400) . ' AND source IS NULL AND source_type IS NULL AND - ' . $size_chunk . ' + size > 0 AND path NOT LIKE "%wp-content%themes%" AND path NOT LIKE "%wp-content%plugins%" AND path NOT LIKE "%wp-content%cache%" AND