403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.217.58
Web Server : Apache
System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : delarice ( 2406)
PHP Version : 8.3.36
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home2/delarice/www/wp-content/plugins/elementor-pro/license/data/endpoints/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/www/wp-content/plugins/elementor-pro/license/data/endpoints/get-license-status.php
<?php
namespace ElementorPro\License\Data\Endpoints;

use ElementorPro\Core\Data\Endpoints\Base;
use ElementorPro\Core\Data\Interfaces\Endpoint;
use ElementorPro\License\API;

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

class Get_License_Status extends Base implements Endpoint {

	public function get_name(): string {
		return 'get-license-status';
	}

	public function get_route(): string {
		return 'get-license-status';
	}

	protected function register() {
		register_rest_route(
			$this->controller->get_namespace(),
			'/' . $this->controller->get_name() . '/' . $this->get_route(),
			[
				[
					'methods' => 'GET',
					'callback' => [ $this, 'get_status' ],
					'permission_callback' => [ $this, 'permission_callback' ],
				],
			]
		);
	}

	public function get_status( $request ) {
		return new \WP_REST_Response(
			[
				'isExpired' => API::is_license_expired(),
			],
			200
		);
	}

	public function permission_callback( $request ) {
		return is_user_logged_in();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit