HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/latinothug.com/public_html/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'] );
	}
}