esc_html__('The following files were added to your website.', 'all-in-one-wp-security-and-firewall'),
'files_removed' => esc_html__('The following files were removed from your website.', 'all-in-one-wp-security-and-firewall'),
'files_changed' => esc_html__('The following files were changed on your website.', 'all-in-one-wp-security-and-firewall')
);
foreach ($file_change_types as $type => $description) {
if (empty($last_scan_results[$type])) continue;
echo '
' . esc_html($description) . '
';
$output = '
';
$output .= '
';
$output .= '';
foreach ($last_scan_results[$type] as $key => $value) {
$output .= '';
$output .= '| ' . esc_html($key) . ' | ';
$file_size = AIOWPSecurity_Utility::convert_numeric_size_to_text($value['filesize']);
$output .= '' . esc_html($file_size) . ' | ';
$last_modified = AIOWPSecurity_Utility::convert_timestamp($value['last_modified']);
$output .= '' . esc_html($last_modified) . ' | ';
$output .= '
';
}
$output .= '
';
$output .= '
';
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Variables escaped early inside HTML.
echo $output;
echo '
';
}
?>