HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/bulk-delete/include/compatibility/simple-login-log.php
<?php
/**
 * Code to enable compatibility with other plugins.
 *
 * @since 5.5
 *
 * @author Sudar
 *
 * @package BulkDelete\Util\Compatibility
 */
defined( 'ABSPATH' ) || exit; // Exit if accessed directly

/**
 * Find out if Simple Login Log is installed or not.
 * http://wordpress.org/plugins/simple-login-log/.
 *
 * @since 5.5
 *
 * @return bool True if plugin is installed, False otherwise
 */
function bd_is_simple_login_log_present() { //phpcs:ignore
	global $wpdb;
	$simple_login_log_table = 'simple_login_log';

	return (bool) $wpdb->get_row( "SHOW TABLES LIKE '{$wpdb->prefix}{$simple_login_log_table}'" ); //phpcs:ignore
}

/**
 * Find the last login date/time of a user.
 *
 * @since 5.5
 *
 * @param int $user_id
 *
 * @return string
 */
function bd_get_last_login( $user_id ) { //phpcs:ignore
	global $wpdb;

	$simple_login_log_table = 'simple_login_log';

	return $wpdb->get_var( $wpdb->prepare( "SELECT time FROM {$wpdb->prefix}{$simple_login_log_table} WHERE uid = %d ORDER BY time DESC LIMIT 1", $user_id ) ); //phpcs:ignore
}