403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/pia/wp-content/plugins/happy-elementor-addons-pro/extensions/conditions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/pia/wp-content/plugins/happy-elementor-addons-pro/extensions/conditions/browser.php
<?php

namespace Happy_Addons_Pro\Extension\Conditions;

use Elementor\Controls_Manager;

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * Class Browser
 * contain all element of browser condition
 * @package Happy_Addons_Pro\Extension\Conditions
 */
class Browser extends Condition {

	/**
	 * Get Condition Key
	 *
	 * @return string|void
	 */
	public function get_key_name () {
		return 'browser';
	}

	/**
	 * Get Condition Title
	 *
	 * @return string|void
	 */
	public function get_title () {
		return __( 'Browser', 'happy-addons-pro' );
	}

	/**
	 * Get Repeater Control Field Value
	 *
	 * @param array $condition
	 * @return array|void
	 */
	public function get_repeater_control ( array $condition ) {
		return [
			'label' => $this->get_title(),
			'show_label' => false,
			'type' => Controls_Manager::SELECT,
			'default' => 'chrome',
			'label_block' => true,
			'options' 		=> [
				'opera'			=> __( 'Opera', 'happy-addons-pro' ),
				'edge'			=> __( 'Edge', 'happy-addons-pro' ),
				'chrome'		=> __( 'Google Chrome', 'happy-addons-pro' ),
				'safari'		=> __( 'Safari', 'happy-addons-pro' ),
				'firefox'		=> __( 'Mozilla Firefox', 'happy-addons-pro' ),
				'ie'			=> __( 'Internet Explorer', 'happy-addons-pro' ),
				'others'			=> __( 'Others', 'happy-addons-pro' ),
			],
			'condition' => $condition,
		];

	}

	/**
	 * Compare Condition value
	 *
	 * @param $settings
	 * @param $operator
	 * @param $value
	 * @return bool|void
	 */
	public function compare_value ( $settings, $operator, $value ) {
		$user_agent = hapro_get_browser_name( $_SERVER['HTTP_USER_AGENT'] );
		//if $user_agent and $value is equal it return true
		return hapro_compare( $user_agent, $value, $operator );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit