modify( '-6 days' )->format( 'Y-m-d' ); $end = $now->format( 'Y-m-d' ); $summary = Login_Audit_Entity::get_event_summary( $start, $end ); $total_events = 0; $success_count = 0; $failed_count = 0; $password_reset_count = 0; foreach ( $summary as $row ) { $total_events += (int) $row['total']; if ( Login_Audit_Entity::EVENT_LOGIN_SUCCESS === $row['event_type'] ) { $success_count += (int) $row['total']; } if ( Login_Audit_Entity::EVENT_LOGIN_FAILED === $row['event_type'] ) { $failed_count += (int) $row['total']; } if ( Login_Audit_Entity::EVENT_PASSWORD_RESET === $row['event_type'] || Login_Audit_Entity::EVENT_PASSWORD_REQUEST === $row['event_type'] ) { $password_reset_count += (int) $row['total']; } } // Create and prepare the list table. $list_table = new Login_Audit_List(); $list_table->prepare_items(); ?>


', \esc_attr( $page ) ); printf( '', \esc_attr( (string) $paged ) ); echo '
'; $list_table->search_box( \__( 'Search Events', '0-day-analytics' ), 'login-audit-find' ); echo '
'; $list_table->display(); ?>