prefix . 'aio_lockouts'; $current_time_mysql = current_time( 'mysql' ); $current_time = time(); $active_blocks = array(); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching if ( $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $lockouts_table ) ) === $lockouts_table ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared $active_blocks = $wpdb->get_results( $wpdb->prepare( "SELECT ip_address, reason, expires_at FROM {$lockouts_table} WHERE expires_at > %s ORDER BY expires_at DESC LIMIT 100", $current_time_mysql ) ); } $blocked_cnt = is_array( $active_blocks ) ? count( $active_blocks ) : 0; $shield_keys = array( 'optEnableLimitLogin', 'optEnableWAF', 'optEnableUploadProtection', 'opt-perf-disable-xmlrpc', 'optEnableDisableFileEdit', 'optEnableAuditLog', ); $shield_active = 0; foreach ( $shield_keys as $sk ) { if ( ! empty( $settings[ $sk ] ) ) { ++$shield_active; } } ?>
/6

Profile.', 'aio-tools' ); ?>

()

()
()

location ~* /wp-content/uploads/.*\.(?:php|phtml|phar)$ { deny all; }

expires_at ); $is_permanent = $exp_ts && (int) gmdate( 'Y', $exp_ts ) >= 2090; $mins = $exp_ts ? max( 1, (int) ceil( ( $exp_ts - $current_time ) / 60 ) ) : 0; ?>
ip_address ); ?> reason ?: '—' ); ?> ' . esc_html__( 'Permanent', 'aio-tools' ) . ''; } else { /* translators: %d: number of minutes */ printf( esc_html__( '%d mins', 'aio-tools' ), (int) $mins ); } ?>

—