403Webshell
Server IP : 185.143.234.238  /  Your IP : 185.215.232.195
Web Server : nginx/1.22.1
System : Linux server2065 6.1.0-35-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.137-1 (2025-05-07) x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/cwd/wp-content/plugins/jet-engine/includes/base/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/jet-engine/includes/base/base-api-endpoint.php
<?php
/**
 * Base class for REST API endpoint
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( ! class_exists( 'Jet_Engine_Base_API_Endpoint' ) ) {

	/**
	 * Define Jet_Engine_Base_API_Endpoint class
	 */
	abstract class Jet_Engine_Base_API_Endpoint {

		/**
		 * Returns route name
		 *
		 * @return string
		 */
		abstract public function get_name();

		/**
		 * API callback
		 *
		 * @return void
		 */
		abstract public function callback( $request );

		/**
		 * Returns endpoint request method - GET/POST/PUT/DELTE
		 *
		 * @return string
		 */
		public function get_method() {
			return 'GET';
		}

		/**
		 * Check user access to current end-popint
		 *
		 * @return bool
		 */
		public function permission_callback( $request ) {
			return true;
		}

		/**
		 * Get query param. Regex with query parameters
		 *
		 * Example:
		 *
		 * (?P<id>[\d]+)/(?P<meta_key>[\w-]+)
		 *
		 * @return string
		 */
		public function get_query_params() {
			return '';
		}

		/**
		 * Returns arguments config
		 *
		 * Example:
		 *
		 * 	array(
		 * 		array(
		 * 			'type' => array(
		 * 			'default'  => '',
		 * 			'required' => false,
		 * 		),
		 * 	)
		 *
		 * @return array
		 */
		public function get_args() {
			return array();
		}

	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit