403Webshell
Server IP : 104.21.74.147  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/envira-gallery/src/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/envira-gallery/src/Utils/Mobile_Detect.php
<?php
/**
 * Mobile Detect Library
 *
 * @deprecated 1.8.5.4
 *
 * @package Envira Gallery
 */

namespace Envira\Utils;

/**
 * Mobile Detect Class.
 */
class Mobile_Detect {
	// phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid -- legacy name.
	/**
	 * Replacement function for Legecy Class
	 *
	 * @return boolean
	 */
	public function isMobile() {
		if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
			$regex = '/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i';
			return preg_match( $regex, sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) );
		}

		return false;
	}
	// phpcs:enable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
}

Youez - 2016 - github.com/yon3zu
LinuXploit