diff --git a/inc/spbc-settings.php b/inc/spbc-settings.php index 36facfc9c..5fc788fd1 100644 --- a/inc/spbc-settings.php +++ b/inc/spbc-settings.php @@ -2125,21 +2125,27 @@ function spbc_field_traffic_control_logs__prepare_data(&$table) . '
' . $row->http_user_agent . '
' : $row->http_user_agent; + $is_personal_text = $row->is_personal + ? esc_html__('by personal lists.', 'security-malware-firewall') + : esc_html__('by common lists.', 'security-malware-firewall'); + $passed_text = esc_html__('Passed', 'security-malware-firewall') . ' ' . $is_personal_text; + $blocked_text = esc_html__('Blocked', 'security-malware-firewall') . ' ' . $is_personal_text; + switch ($row->status) { case 'PASS': - $status = '' . __('Passed', 'security-malware-firewall') . ''; + $status = '' . $passed_text . ''; break; case 'PASS_BY_TRUSTED_NETWORK': - $status = '' . __('Passed. Trusted network. Click on IP for details.', 'security-malware-firewall') . ''; + $status = '' . $passed_text . ' '. __('Trusted network. Click on IP for details.', 'security-malware-firewall') . ''; break; case 'PASS_BY_WHITELIST': - $status = '' . __('Passed. Whitelisted.', 'security-malware-firewall') . ''; + $status = '' . $passed_text . ' ' .__('Whitelisted.', 'security-malware-firewall') . ''; break; case 'DENY': - $status = '' . __('Blocked. Blacklisted.', 'security-malware-firewall') . ''; + $status = '' . $blocked_text . ' ' . __('Blacklisted.', 'security-malware-firewall') . ''; break; case 'DENY_BY_NETWORK': - $status = '' . __('Blocked. Hazardous network. Common source.', 'security-malware-firewall') . ''; + $status = '' . $blocked_text . ' ' . __('Hazardous network.', 'security-malware-firewall') . ''; break; case 'DENY_BY_DOS': $status = '' . __('Blocked by Traffic control', 'security-malware-firewall') . ''; @@ -3304,7 +3310,7 @@ function spbc_list_table__get_args_by_type($table_type) 'id' => 'spbc_tbl__traffic_control_logs', 'sql' => array( 'except_cols' => array('country', 'entries', 'requests_per'), - 'add_col' => array('entry_id', 'pattern'), + 'add_col' => array('entry_id', 'pattern', 'is_personal'), 'table' => SPBC_TBL_FIREWALL_LOG, 'offset' => 0, 'limit' => SPBC_LAST_ACTIONS_TO_VIEW,