PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/antonkerr/www/daltonstours.com/wp-content/plugins/xl-woocommerce-sales-triggers/
Server: Linux premium47.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
IP: 68.65.123.244
Choose File :

Url:
Dir : /home/antonkerr/www/daltonstours.com/wp-content/plugins/xl-woocommerce-sales-triggers/start.php

<?php

/**
 * This file is to initiate XL core and to run some common methods and decide which XL core should run
 */
if (!class_exists('XL_Common')) {

    class XL_Common {

        public static $current_version = '1.0.1';

        public static function include_xl_core() {


            global $xl_ultimate_latest_core;

            /**
             * Reset Loading of Core
             */
            if (is_null($xl_ultimate_latest_core)) {
                self::reset_latest_installed();

                $get_installed_plugins = get_option('xl_installed_addons');

                if (!$get_installed_plugins || count($get_installed_plugins) <= 0) {
                    $get_installed_plugins = array();
                    $get_installed_plugins['plugins'] = array();
                    $get_installed_plugins['plugins'][plugin_basename(__FILE__)] = array(
                        'version' => self::$current_version, 'plugin_path' => dirname(__FILE__)
                    );
                } else {
                    //if not registered yet
                    if (!isset($get_installed_plugins['plugins'][plugin_basename(__FILE__)])) {
                        $get_installed_plugins['plugins'][plugin_basename(__FILE__)] = array(
                            'version' => self::$current_version, 'plugin_path' => dirname(__FILE__)
                        );
                    }
                }

                //if not registered yet
                if (!isset($get_installed_plugins['latest'])) {
                    $get_installed_plugins['latest'] = array(
                        'basename' => plugin_basename(__FILE__),
                        'version' => self::$current_version, 'plugin_path' => dirname(__FILE__)
                    );
                    $xl_ultimate_latest_core = $get_installed_plugins['latest'];
                } else {
                    //if latest framework exists and have for the same plugin
                    //if current version is same as the saved one
                    if (version_compare(self::$current_version, $get_installed_plugins['latest']['version'], '<')) {
                        //do nothing
                    } else {
                        $get_installed_plugins['latest'] = array(
                            'basename' => plugin_basename(__FILE__),
                            'version' => self::$current_version, 'plugin_path' => dirname(__FILE__)
                        );
                        $xl_ultimate_latest_core = $get_installed_plugins['latest'];
                    }
                }
                update_option('xl_installed_addons', $get_installed_plugins);
            }

            if (isset($xl_ultimate_latest_core['plugin_path'])) {
                $get_global_path = $xl_ultimate_latest_core['plugin_path'] . "/xl/";
                /**
                 * Loading Core XL Files
                 */
                require_once $get_global_path . 'includes/class-xl-api.php';
                require_once $get_global_path . 'includes/class-xl-admin-notifications.php';
                require_once $get_global_path . 'includes/class-xl-opt-in-manager.php';
                require_once $get_global_path . 'includes/class-xl-addons.php';
                require_once $get_global_path . 'includes/class-xl-plugin-states.php';
                require_once $get_global_path . 'includes/class-xl-addon.php';
                require_once $get_global_path . 'includes/class-xl-licenses.php';
                require_once $get_global_path . 'includes/class-xl-support.php';
                require_once $get_global_path . 'includes/class-xl-process.php';
                require_once $get_global_path . 'includes/class-xl-deactivation.php';
                require_once $get_global_path . 'includes/class-xl-dashboard-loader.php';

                do_action('xl_loaded', $get_global_path);
            }
        }

        /**
         * Deleting option key where add-ons are set up
         */
        public static function reset_latest_installed() {
            delete_option('xl_installed_addons');
        }

        /**
         * Deleting option key where add-ons are set up
         */
        public static function load_text_domain($get_global_path) {
            if (!is_admin()) {
                return;
            }
            load_plugin_textdomain(
                    'xlplugins', false, $get_global_path . 'languages/'
            );
        }

    }

}
add_action('xl_loaded', array('XL_Common', 'load_text_domain'), 10, 1);

global $xl_ultimate_latest_core;

$get_installed_plugins = get_option('xl_installed_addons');
register_deactivation_hook(WCST_PLUGIN_BASENAME, array('XL_Common', 'reset_latest_installed'));


if (!$get_installed_plugins || count($get_installed_plugins) <= 0) {
    $get_installed_plugins = array();
    $get_installed_plugins['plugins'] = array();
    $get_installed_plugins['plugins'][plugin_basename(__FILE__)] = array(
        'version' => XL_Common::$current_version, 'plugin_path' => dirname(__FILE__)
    );
} else {
    //if not registered yet
    if (!isset($get_installed_plugins['plugins'][plugin_basename(__FILE__)])) {
        $get_installed_plugins['plugins'][plugin_basename(__FILE__)] = array(
            'version' => XL_Common::$current_version, 'plugin_path' => dirname(__FILE__)
        );
    }
}

//if not registered yet
if (!isset($get_installed_plugins['latest'])) {
    $get_installed_plugins['latest'] = array(
        'basename' => plugin_basename(__FILE__),
        'version' => XL_Common::$current_version, 'plugin_path' => dirname(__FILE__)
    );
    $xl_ultimate_latest_core = $get_installed_plugins['latest'];
} else {
    //if latest framework exists and have for the same plugin
    //if current version is same as the saved one
    if (version_compare(XL_Common::$current_version, $get_installed_plugins['latest']['version'], '<')) {
        //do nothing
    } else {


        $get_installed_plugins['latest'] = array(
            'basename' => plugin_basename(__FILE__),
            'version' => XL_Common::$current_version, 'plugin_path' => dirname(__FILE__)
        );
        $xl_ultimate_latest_core = $get_installed_plugins['latest'];
    }
}

update_option('xl_installed_addons', $get_installed_plugins);