403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/elementor-pro-off/license/data/endpoints/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/elementor-pro-off/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