[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
includes
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 admin-templates
SET
[ DEL ]
📁 base
SET
[ DEL ]
📁 controls
SET
[ DEL ]
📁 editor-templates
SET
[ DEL ]
📁 elements
SET
[ DEL ]
📁 interfaces
SET
[ DEL ]
📁 libraries
SET
[ DEL ]
📁 managers
SET
[ DEL ]
📁 settings
SET
[ DEL ]
📁 template-library
SET
[ DEL ]
📁 widgets
SET
[ DEL ]
📄 api.php
8,813 B
SET
[ EDIT ]
|
[ DEL ]
📄 autoloader.php
10,022 B
SET
[ EDIT ]
|
[ DEL ]
📄 beta-testers.php
3,059 B
SET
[ EDIT ]
|
[ DEL ]
📄 compatibility.php
11,221 B
SET
[ EDIT ]
|
[ DEL ]
📄 conditions.php
2,768 B
SET
[ EDIT ]
|
[ DEL ]
📄 db.php
16,276 B
SET
[ EDIT ]
|
[ DEL ]
📄 editor-assets-api.php
3,054 B
SET
[ EDIT ]
|
[ DEL ]
📄 embed.php
8,679 B
SET
[ EDIT ]
|
[ DEL ]
📄 fonts.php
64,029 B
SET
[ EDIT ]
|
[ DEL ]
📄 frontend.php
40,527 B
SET
[ EDIT ]
|
[ DEL ]
📄 heartbeat.php
2,635 B
SET
[ EDIT ]
|
[ DEL ]
📄 maintenance-mode.php
11,426 B
SET
[ EDIT ]
|
[ DEL ]
📄 maintenance.php
2,881 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin.php
16,886 B
SET
[ EDIT ]
|
[ DEL ]
📄 preview.php
7,874 B
SET
[ EDIT ]
|
[ DEL ]
📄 rollback.php
4,255 B
SET
[ EDIT ]
|
[ DEL ]
📄 shapes.php
7,999 B
SET
[ EDIT ]
|
[ DEL ]
📄 stylesheet.php
9,124 B
SET
[ EDIT ]
|
[ DEL ]
📄 tracker.php
17,407 B
SET
[ EDIT ]
|
[ DEL ]
📄 user-data.php
3,522 B
SET
[ EDIT ]
|
[ DEL ]
📄 user.php
10,230 B
SET
[ EDIT ]
|
[ DEL ]
📄 utils.php
24,940 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: conditions.php
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor conditions. * * Elementor conditions handler class introduce the compare conditions and the * check conditions methods. * * @since 1.0.0 */ class Conditions { /** * Compare conditions. * * Whether the two values comply the comparison operator. * * @since 1.0.0 * @access public * @static * * @param mixed $left_value First value to compare. * @param mixed $right_value Second value to compare. * @param string $operator Comparison operator. * * @return bool Whether the two values complies the comparison operator. */ public static function compare( $left_value, $right_value, $operator ) { switch ( $operator ) { case '==': return $left_value == $right_value; case '!=': return $left_value != $right_value; case '!==': return $left_value !== $right_value; case 'in': return in_array( $left_value, $right_value, true ); case '!in': return ! in_array( $left_value, $right_value, true ); case 'contains': return in_array( $right_value, $left_value, true ); case '!contains': return ! in_array( $right_value, $left_value, true ); case '<': return $left_value < $right_value; case '<=': return $left_value <= $right_value; case '>': return $left_value > $right_value; case '>=': return $left_value >= $right_value; default: return $left_value === $right_value; } } /** * Check conditions. * * Whether the comparison conditions comply. * * @since 1.0.0 * @access public * @static * * @param array $conditions The conditions to check. * @param array $comparison The comparison parameter. * * @return bool Whether the comparison conditions comply. */ public static function check( array $conditions, array $comparison ) { $is_or_condition = isset( $conditions['relation'] ) && 'or' === $conditions['relation']; $condition_succeed = ! $is_or_condition; foreach ( $conditions['terms'] as $term ) { if ( ! empty( $term['terms'] ) ) { $comparison_result = self::check( $term, $comparison ); } else { preg_match( '/(\w+)(?:\[(\w+)])?/', $term['name'], $parsed_name ); $value = $comparison[ $parsed_name[1] ]; if ( ! empty( $parsed_name[2] ) ) { $value = $value[ $parsed_name[2] ]; } $operator = null; if ( ! empty( $term['operator'] ) ) { $operator = $term['operator']; } $comparison_result = self::compare( $value, $term['value'], $operator ); } if ( $is_or_condition ) { if ( $comparison_result ) { return true; } } elseif ( ! $comparison_result ) { return false; } } return $condition_succeed; } }