uawdijnntqw1x1x1
IP : 52.15.83.130
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
wp-content
/
..
/
.
/
wp-content
/
plugins
/
php-everywhere
/
includes
/
class-php-everywhere.php
/
/
<?php /** * The file that defines the core plugin class * * A class definition that includes attributes and functions used across both the * public-facing side of the site and the admin area. * * @link http://www.alexander-fuchs.net * @since 3.0.0 * * @package Php_Everywhere * @subpackage Php_Everywhere/includes */ /** * The core plugin class. * * This is used to define internationalization, admin-specific hooks, and * public-facing site hooks. * * Also maintains the unique identifier of this plugin as well as the current * version of the plugin. * * @since 3.0.0 * @package Php_Everywhere * @subpackage Php_Everywhere/includes * @author Alexander Fuchs <info@alexander-fuchs.net> */ class Php_Everywhere { /** * The loader that's responsible for maintaining and registering all hooks that power * the plugin. * * @since 3.0.0 * @access protected * @var Php_Everywhere_Loader $loader Maintains and registers all hooks for the plugin. */ protected $loader; /** * The unique identifier of this plugin. * * @since 3.0.0 * @access protected * @var string $plugin_name The string used to uniquely identify this plugin. */ protected $plugin_name; /** * The current version of the plugin. * * @since 3.0.0 * @access protected * @var string $version The current version of the plugin. */ protected $version; /** * Define the core functionality of the plugin. * * Set the plugin name and the plugin version that can be used throughout the plugin. * Load the dependencies, define the locale, and set the hooks for the admin area and * the public-facing side of the site. * * @since 3.0.0 */ public function __construct() { if ( defined( 'PHP_EVERYWHERE_VERSION' ) ) { $this->version = PHP_EVERYWHERE_VERSION; } else { $this->version = '3.0.0'; } $this->plugin_name = 'php-everywhere'; $this->load_dependencies(); $this->set_locale(); $this->define_admin_hooks(); $this->define_public_hooks(); } /** * Load the required dependencies for this plugin. * * Include the following files that make up the plugin: * * - Php_Everywhere_Loader. Orchestrates the hooks of the plugin. * - Php_Everywhere_i18n. Defines internationalization functionality. * - Php_Everywhere_Admin. Defines all hooks for the admin area. * - Php_Everywhere_Block. Defines php everywhere block. * - Php_Everywhere_Public. Defines all hooks for the public side of the site. * * Create an instance of the loader which will be used to register the hooks * with WordPress. * * @since 3.0.0 * @access private */ private function load_dependencies() { /** * The class responsible for orchestrating the actions and filters of the * core plugin. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-php-everywhere-loader.php'; /** * The class responsible for defining internationalization functionality * of the plugin. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-php-everywhere-i18n.php'; /** * The class responsible for defining all actions that occur in the admin area. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-php-everywhere-admin.php'; /** * The class responsible for defining all actions that occur in the php everywhere block. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-php-everywhere-block.php'; /** * The class responsible for defining all actions that occur in the public-facing * side of the site. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-php-everywhere-public.php'; $this->loader = new Php_Everywhere_Loader(); } /** * Define the locale for this plugin for internationalization. * * Uses the Php_Everywhere_i18n class in order to set the domain and to register the hook * with WordPress. * * @since 3.0.0 * @access private */ private function set_locale() { $plugin_i18n = new Php_Everywhere_i18n(); $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); } /** * Register all of the hooks related to the admin area functionality * of the plugin. * * @since 3.0.0 * @access private */ private function define_admin_hooks() { $plugin_admin = new Php_Everywhere_Admin( $this->get_plugin_name(), $this->get_version() ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); $this->loader->add_action( 'admin_menu', $plugin_admin, 'register_admin_menu' ); $this->loader->add_filter( 'plugin_action_links_php-everywhere/phpeverywhere.php', $plugin_admin, 'add_admin_menu_link_to_plugin' ); $this->loader->add_action( 'init', $plugin_admin, 'register_php_everywhere_block' ); $this->loader->add_filter( 'wp_insert_post_empty_content' , $plugin_admin->get_php_everywhere_block(), 'filter_post_data_for_block', 999999, 2 ); $this->loader->add_action( 'admin_notices', $plugin_admin, 'display_upgrade_admin_notice' ); } /** * Register all of the hooks related to the public-facing functionality * of the plugin. * * @since 3.0.0 * @access private */ private function define_public_hooks() { $plugin_public = new Php_Everywhere_Public( $this->get_plugin_name(), $this->get_version() ); } /** * Run the loader to execute all of the hooks with WordPress. * * @since 3.0.0 */ public function run() { $this->loader->run(); } /** * The name of the plugin used to uniquely identify it within the context of * WordPress and to define internationalization functionality. * * @since 3.0.0 * @return string The name of the plugin. */ public function get_plugin_name() { return $this->plugin_name; } /** * The reference to the class that orchestrates the hooks with the plugin. * * @since 3.0.0 * @return Php_Everywhere_Loader Orchestrates the hooks of the plugin. */ public function get_loader() { return $this->loader; } /** * Retrieve the version number of the plugin. * * @since 3.0.0 * @return string The version number of the plugin. */ public function get_version() { return $this->version; } }
/home/sudancam/public_html/wp-content/.././wp-content/plugins/php-everywhere/includes/class-php-everywhere.php