Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	readme.txt
  • Loading branch information
alexandergull committed Mar 28, 2023
2 parents 5fc5b43 + 3548b58 commit 8e7418f
Show file tree
Hide file tree
Showing 18 changed files with 168 additions and 43 deletions.
2 changes: 1 addition & 1 deletion css/spbc-admin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/spbc-settings.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions css/src/spbc-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,12 @@ span.red_dot{
border-radius: 50% !important;
display: inline-block !important;
margin-left: 5px !important;
}

#spbct-upload-checker-details {
overflow-y: scroll;
height: 150px;
}
#spbct-upload-checker-details li:nth-child(2n+1) {
background: #d3d3d3;
}
4 changes: 3 additions & 1 deletion inc/spbc-scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ function spbc_scanner_file_quarantine($direct_call = false, $file_id = null)
'status' => $file_info['status'],
)),
),
array('path' => $file_info['path']),
array('full_hash' => $file_info['full_hash']),
array('%s', '%s', '%d', '%s'),
array('%s')
);
Expand Down Expand Up @@ -1439,6 +1439,8 @@ function spbc_scanner_analysis_log_delete_from_log()

$file_id = Post::get('file_id', 'hash');

$output = array('error' => false);

if ($file_id) {
$updated_rows = $wpdb->update(
SPBC_TBL_SCAN_FILES,
Expand Down
17 changes: 13 additions & 4 deletions inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,12 @@ function spbc_settings__register()
'input_type' => 'select',
'options' => array(
array('val' => 60, 'label' => __('1 minute', 'security-malware-firewall'),),
array('val' => 180, 'label' => __('3 minutes', 'security-malware-firewall'),),
array('val' => 300, 'label' => __('5 minutes', 'security-malware-firewall'),),
array('val' => 600, 'label' => __('10 minutes', 'security-malware-firewall'),),
array('val' => 900, 'label' => __('15 minutes', 'security-malware-firewall'),),
array('val' => 3600, 'label' => __('1 hour', 'security-malware-firewall'),),
array('val' => 43200, 'label' => __('12 hours', 'security-malware-firewall'),),
array('val' => 86400, 'label' => __('24 hours', 'security-malware-firewall'),),
array('val' => 259200, 'label' => __('3 days', 'security-malware-firewall'),),
),
'title' => __('Block a visitor if they exceeded the limit of opened pages for', 'security-malware-firewall'),
'parent' => 'traffic_control__enabled',
Expand Down Expand Up @@ -3086,7 +3088,13 @@ function spbc_list_table__get_args_by_type($table_type)
),
'sql' => array(
// 'where' => ' WHERE severity IN("CRITICAL", "DANGER", "SUSPICIOUS") AND status <> "QUARANTINED"',
'where' => ' WHERE severity IN("CRITICAL") AND (status <> "QUARANTINED" AND status <> "APROVED" AND status <> "APPROVED_BY_CT") AND (last_sent IS NULL OR analysis_status="DANGEROUS")',
'where' => ' WHERE severity IN("CRITICAL") AND
(status <> "QUARANTINED" AND
status <> "APROVED" AND
status <> "APPROVED_BY_CT")
AND
(last_sent IS NULL OR
analysis_status="DANGEROUS")',
),
'order_by' => array('path' => 'asc'),
)
Expand Down Expand Up @@ -3133,7 +3141,8 @@ function spbc_list_table__get_args_by_type($table_type)
),
'sql' => array(
'where' => ' WHERE severity <> "CRITICAL" AND
(STATUS = "MODIFIED" OR severity IS NOT NULL)',
last_sent IS NULL AND
(status = "MODIFIED" AND severity IS NOT NULL)',
),
'order_by' => array('path' => 'asc'),
)
Expand Down
Loading

0 comments on commit 8e7418f

Please sign in to comment.