403Webshell
Server IP : 54.36.91.62  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : uxhactp ( 169076)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/uxhactp/www/wp-content/plugins/link-factory/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/uxhactp/www/wp-content/plugins/link-factory/includes/class-health.php
<?php
/**
 * REST controller for the plugin health check.
 *
 * Exposes an unauthenticated endpoint that reports the plugin and protocol
 * versions, used by the backend to probe plugin presence and compatibility.
 *
 * @package LinkFactory
 */

namespace LinkFactory;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Health {

	public function register_routes() {
		register_rest_route(
			LINK_FACTORY_NAMESPACE,
			'/health',
			array(
				'methods'             => 'GET',
				'callback'            => array( $this, 'handle_health' ),
				'permission_callback' => '__return_true',
			)
		);
	}

	public function handle_health() {
		return rest_ensure_response(
			array(
				'status'          => 'ok',
				'version'         => LINK_FACTORY_VERSION,
				'protocolVersion' => LINK_FACTORY_PROTOCOL_VERSION,
			)
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit