Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/uploads/flags/plugin.php.tar
Назад
var/www/xthruster/html/wp-content/plugins/wpml-string-translation/plugin.php 0000755 00000006177 14717220162 0023621 0 ustar 00 <?php /** * Plugin Name: WPML String Translation * Plugin URI: https://wpml.org/ * Description: Adds theme and plugins localization capabilities to WPML | <a href="https://wpml.org">Documentation</a> | <a href="https://wpml.org/version/string-translation-3-2-14/">WPML String Translation 3.2.14 release notes</a> * Author: OnTheGoSystems * Author URI: http://www.onthegosystems.com/ * Version: 3.2.14 * Plugin Slug: wpml-string-translation * * @package WPML\ST */ if ( defined( 'WPML_ST_VERSION' ) || get_option( '_wpml_inactive' ) ) { return; } define( 'WPML_ST_VERSION', '3.2.14' ); // Do not uncomment the following line! // If you need to use this constant, use it in the wp-config.php file // define( 'WPML_PT_VERSION_DEV', '2.2.3-dev' ); define( 'WPML_ST_PATH', dirname( __FILE__ ) ); require_once WPML_ST_PATH . '/classes/class-wpml-st-initialize.php'; $wpml_st_initialize = new WPML_ST_Initialize(); $wpml_st_initialize->load(); add_action( 'admin_init', 'wpml_st_verify_wpml' ); function wpml_st_verify_wpml() { if ( ! class_exists( 'WPML_ST_Verify_Dependencies' ) ) { require_once WPML_ST_PATH . '/classes/class-wpml-st-verify-dependencies.php'; } $verifier = new WPML_ST_Verify_Dependencies(); $wpml_version = defined( 'ICL_SITEPRESS_VERSION' ) ? ICL_SITEPRESS_VERSION : false; $verifier->verify_wpml( $wpml_version ); } /** * WPML ST Core loaded hook. * * @throws \WPML\Auryn\InjectionException Auryn Exception. */ function wpml_st_core_loaded() { global $sitepress, $wpdb, $wpml_admin_notices; new WPML_ST_TM_Jobs( $wpdb ); $setup_complete = apply_filters( 'wpml_get_setting', false, 'setup_complete' ); $is_admin = $sitepress->get_wp_api()->is_admin(); if ( isset( $wpml_admin_notices ) && $is_admin && $setup_complete ) { global $wpml_st_admin_notices; $themes_and_plugins_settings = new WPML_ST_Themes_And_Plugins_Settings(); $wpml_st_admin_notices = new WPML_ST_Themes_And_Plugins_Updates( $wpml_admin_notices, $themes_and_plugins_settings ); $wpml_st_admin_notices->init_hooks(); } $action_filter_loader = new WPML_Action_Filter_Loader(); $action_filter_loader->load( WPML\ST\Actions::get() ); \WPML\ST\Batch\Translation\Module::init(); } /** * @throws \WPML\Auryn\InjectionException */ function load_wpml_st_basics() { if ( ! WPML_Core_Version_Check::is_ok( dirname( __FILE__ ) . '/wpml-dependencies.json' ) ) { return; } global $WPML_String_Translation, $sitepress; require WPML_ST_PATH . '/inc/functions-load.php'; require WPML_ST_PATH . '/inc/constants.php'; $WPML_String_Translation = WPML\Container\make( WPML_String_Translation::class ); $WPML_String_Translation->set_basic_hooks(); require WPML_ST_PATH . '/inc/package-translation/wpml-package-translation.php'; add_action( 'wpml_loaded', 'wpml_st_core_loaded', 10 ); if ( $sitepress->is_setup_complete() ) { $mo_scan_factory = new WPML_ST_Translations_File_Scan_Factory(); if ( $mo_scan_factory->check_core_dependencies() ) { $mo_scan_hooks = $mo_scan_factory->create_hooks(); foreach ( $mo_scan_hooks as $mo_scan_hook ) { $mo_scan_hook->add_hooks(); } } } } add_action( 'wpml_before_init', 'load_wpml_st_basics' ); var/www/xthruster/html/wp-content/plugins/image-optimization/plugin.php 0000644 00000004261 14717636066 0022613 0 ustar 00 <?php namespace ImageOptimization; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Class Plugin * Main Plugin class */ class Plugin { /** * Instance * * @access public * @static * * @var Plugin The single instance of the class. */ public static $instance = null; /** * Modules Manager * @var null|Manager */ public $modules_manager = null; /** * class aliases * @access private * @var array */ private $classes_aliases = []; /** * Instance * * Ensures only one instance of the class is loaded or can be loaded. * * @access public * * @return Plugin An instance of the class. */ public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } public function autoload( $class ) { if ( 0 !== strpos( $class, __NAMESPACE__ ) ) { return; } $has_class_alias = isset( $this->classes_aliases[ $class ] ); // Backward Compatibility: Save old class name for set an alias after the new class is loaded if ( $has_class_alias ) { $class_alias_name = $this->classes_aliases[ $class ]; $class_to_load = $class_alias_name; } else { $class_to_load = $class; } if ( ! class_exists( $class_to_load ) ) { $filename = strtolower( preg_replace( [ '/^' . __NAMESPACE__ . '\\\/', '/([a-z])([A-Z])/', '/_/', '/\\\/' ], [ '', '$1-$2', '-', DIRECTORY_SEPARATOR ], $class_to_load ) ); $filename = IMAGE_OPTIMIZATION_PATH . $filename . '.php'; if ( is_readable( $filename ) ) { include $filename; } } if ( $has_class_alias ) { class_alias( $class_alias_name, $class ); } } private function includes() { require_once IMAGE_OPTIMIZATION_PATH . 'includes/modules-manager.php'; $this->modules_manager = new Manager(); } /** * Plugin class constructor * * Register plugin action hooks and filters * * @access public */ public function __construct() { static $autoloader_registered = false; if ( ! $autoloader_registered ) { $autoloader_registered = spl_autoload_register( [ $this, 'autoload' ] ); } $this->includes(); } } // Instantiate Plugin Class Plugin::instance();
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка