collectVulnerabilities(); $empty_class = ( $history_log_obj->history_log_data === null ) ? 'vm-empty-table' : ''; $mwp_class = ( $settings->isPremium() ) ? 'mwp-package' : 'non-mwp-package'; ?>
Back
history_log_data ) { // Loop through the data and populate table rows foreach ( $history_log_obj->history_log_data as $item ) { // Prepare vulnerabilities $vul_url = $item['url']; // Prepare the date and time format from WordPress settings $date_format = get_option( 'date_format' ); $time_format = get_option( 'time_format' ); $unix_timestamp = strtotime( $item['timestamp'] . ' UTC' ); $wp_timezone_string = ! empty( wp_timezone_string() ) ? wp_timezone_string() : 'UTC'; $wp_timezone = new DateTimeZone( $wp_timezone_string ); $datetime = new DateTime( '@' . $unix_timestamp ); $datetime->setTimezone( $wp_timezone ); $formatted_date = $datetime->format( $date_format . ' ' . $time_format ); $severity_info = $ocvm_notifications_obj->get_vul_severity( $item['cvss_score'] ); $fix_version_with_arrow = " " . $item['fix_version']; $fix_version = $item['fix_version'] ? $fix_version_with_arrow : ''; $item_type = $item['item_type']; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } } ?>
' . $formatted_date . '' . __( $item['vuln_type'], 'onecom-wp' ) . '
' . __( $severity_info['label'], 'onecom-wp' ) . '
' . __( $item_type, 'onecom-wp' ) . '' . __( $item['item_name'], 'onecom-wp' ) . '' . $item['installed_version'] . $fix_version . '' . __( $item['status'], 'onecom-wp' ) . '
history_log_data || $history_log_obj->history_log_data === null ) { ?>
isPremium() ) { ?>

', '' ); ?>