403Webshell
Server IP : 192.158.238.246  /  Your IP : 13.58.214.82
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/php-xray/php/smart-advice-plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/php-xray/php/smart-advice-plugin/cl-smart-advice.php
<?php
/**
 * Plugin name: CloudLinux SmartAdvice
 * Plugin URI: https://www.cloudlinux.com
 * Description: AccelerateWP helps to solve performance issues of your website. It includes Optimization Modules that can be activated for WP sites easily.
 * Version: 0.6-33
 * Requires at least: 5.0.0
 * Requires PHP: 5.6
 * Author: CloudLinux
 * Author URI: https://www.cloudlinux.com
 * Licence: CloudLinux Commercial License
 *
 * Copyright 2022 CloudLinux
 */

use CloudLinux\SmartAdvice\App\Plugin;
use CloudLinux\SmartAdvice\App\Cli\Commands;

if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( getenv( 'CL_SMART_ADVICE_DISABLED' ) ) {
	return;
}

// Remove old version of plugin.
if ( is_link( WPMU_PLUGIN_DIR . '/' . basename( __FILE__ ) ) ) {
	// @phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
	@unlink( WPMU_PLUGIN_DIR . '/' . basename( __FILE__ ) );

	return;
}

define( 'CL_SMART_ADVICE_SLUG', 'cl-smart-advice' );
define( 'CL_SMART_ADVICE_PATH', dirname( __FILE__ ) );
define( 'CL_SMART_ADVICE_VERSION', '0.6-33' );
define( 'CL_SMART_ADVICE_XRAY_RELEASE', '0.6-33.el8' );
define( 'CL_SMART_ADVICE_FOLDER_PATH', CL_SMART_ADVICE_PATH . '/cl-smart-advice' );
define( 'CL_SMART_ADVICE_FILE_PATH', __FILE__ );
define( 'CL_SMART_ADVICE_PLUGIN_URL', WPMU_PLUGIN_URL . '/cl-smart-advice' );

spl_autoload_register(
	function ( $class ) {
		$namespace = 'CloudLinux\\SmartAdvice\\';
		if ( preg_match( '#^' . preg_quote( $namespace, '/' ) . '#', $class ) ) {
			$path  = CL_SMART_ADVICE_FOLDER_PATH;
			$name  = str_replace( $namespace, '', $class );
			$file  = preg_replace( '#\\\\#', '/', $name ) . '.php';
			$path .= '/' . $file;

			// @phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
			if ( @file_exists( $path ) ) {
				include_once $path;
			}
		}
	}
);

try {
	if ( ! class_exists( Plugin::class ) ) {
		return;
	}

	if ( defined( 'WP_CLI' ) && WP_CLI ) {
		// @phpstan-ignore-next-line
		WP_CLI::add_command( 'smart-advice', Commands::class );
	}

	Plugin::instance()->init();
} catch ( \Exception $e ) {
	do_action( 'cl_smart_advice_set_error', E_WARNING, 'Init plugin failed: ' . $e->getMessage(), __FILE__, __LINE__ );
}

Youez - 2016 - github.com/yon3zu
LinuXploit