HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: agritoday (1002)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/agritoday/www/wp-content/plugins-x/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'] );
	}
}