Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- class Profit_Redirect
- {
- /**
- * The loader that's responsible for maintaining and registering all hooks that power
- * the plugin.
- *
- * @since 1.0.0
- * @access protected
- * @var Profit_Redirect_Loader $loader Maintains and registers all hooks for the plugin.
- */
- protected $loader;
- /**
- * The unique identifier of this plugin.
- *
- * @since 1.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 1.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 1.0.0
- */
- protected $languages;
- public function __construct()
- {
- $this->plugin_name = 'profit-redirect';
- $this->version = '3.9.7';
- $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:
- *
- * - Profit_Redirect_Loader. Orchestrates the hooks of the plugin.
- * - Profit_Redirect_i18n. Defines internationalization functionality.
- * - Profit_Redirect_Admin. Defines all hooks for the admin area.
- * - Profit_Redirect_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 1.0.0
- * @access private
- */
- private function load_dependencies()
- {
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/vendor/autoload.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-loader.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-i18n.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-update-definition.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/list-table-campaign-redirect.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/utils.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/meta-box/meta-box.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/UserAgentParser.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/Mobile_Detect.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-admin.php';
- require_once plugin_dir_path(dirname(__FILE__)) . 'public/class-public.php';
- $this->loader = new Loader();
- }
- /**
- * Define the locale for this plugin for internationalization.
- *
- * Uses the Profit_Redirect_i18n class in order to set the domain and to register the hook
- * with WordPress.
- *
- * @since 1.0.0
- * @access private
- */
- private function set_locale()
- {
- $plugin_i18n = new 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 1.0.0
- * @access private
- */
- private function define_admin_hooks()
- {
- global $post;
- $plugin_admin = new Profit_Redirect_Admin($this->get_plugin_name(), $this->get_version());
- $this->loader->add_action('admin_init', $plugin_admin, 'buffer_start');
- $this->loader->add_action('activated_plugin', $plugin_admin, 'detect_plugin_activation', 10, 2);
- ......................................................................................
- .............................................
- ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement