HEX
Server:Apache
System:Linux localhost 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64
User:enlugo-es (10006)
PHP:7.4.33
Disabled:opcache_get_status
Upload Files
File: /var/www/vhosts/enlugo.es/httpdocs/wp-content/plugins/w3-total-cache/Mobile_UserAgent.php
<?php
namespace W3TC;

/**
 * W3TC Mobile detection
 */

/**
 * class Mobile
 */
class Mobile_UserAgent extends Mobile_Base {
	/**
	 * PHP5-style constructor
	 */
	function __construct() {
		parent::__construct( 'mobile.rgroups', 'agents' );
	}

	function group_verifier( $group_compare_value ) {
		return isset( $_SERVER['HTTP_USER_AGENT'] ) && preg_match( '~' . $group_compare_value . '~i', $_SERVER['HTTP_USER_AGENT'] );
	}
}