403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.14
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/rhodeworks/wp-content/plugins/elementor/core/editor/data/globals/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rhodeworks/wp-content/plugins/elementor/core/editor/data/globals/controller.php
<?php
namespace Elementor\Core\Editor\Data\Globals;

use Elementor\Data\V2\Base\Controller as Controller_Base;
use Elementor\Data\V2\Base\Endpoint;
use Elementor\Plugin;

class Controller extends Controller_Base {
	public function get_name() {
		return 'globals';
	}

	public function register_endpoints() {
		$this->register_endpoint( new Endpoints\Colors( $this ) );
		$this->register_endpoint( new Endpoints\Typography( $this ) );
	}

	public function get_collection_params() {
		// Does not have 'get_items' args (OPTIONS).
		// Maybe TODO: try `$this->get_index_endpoint()->get_collection_params()`.
		return [];
	}

	public function get_permission_callback( $request ) {
		// Allow internal get global values. (e.g render global.css for a visitor)
		if ( 'GET' === $request->get_method() && Plugin::$instance->data_manager_v2->is_internal() ) {
			return true;
		}

		return current_user_can( 'edit_posts' );
	}

	protected function register_index_endpoint() {
		$this->register_endpoint( new Endpoint\Index\AllChildren( $this ) );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit