. * * Attribution: This code is part of the All-in-One WP Migration plugin, developed by * * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ */ if ( ! defined( 'ABSPATH' ) ) { die( 'Kangaroos cannot jump here' ); } // Check SSL mode if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && ( $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) ) { $_SERVER['HTTPS'] = 'on'; } // Plugin basename define( 'AI1WM_PLUGIN_BASENAME', basename( __DIR__ ) . '/' . basename( __FILE__ ) ); // Plugin path define( 'AI1WM_PATH', __DIR__ ); // Plugin URL define( 'AI1WM_URL', plugins_url( '', AI1WM_PLUGIN_BASENAME ) ); // Plugin storage URL define( 'AI1WM_STORAGE_URL', plugins_url( 'storage', AI1WM_PLUGIN_BASENAME ) ); // Include constants require_once __DIR__ . DIRECTORY_SEPARATOR . 'constants.php'; // Include deprecated require_once __DIR__ . DIRECTORY_SEPARATOR . 'deprecated.php'; // Include functions require_once __DIR__ . DIRECTORY_SEPARATOR . 'functions.php'; // Include exceptions require_once __DIR__ . DIRECTORY_SEPARATOR . 'exceptions.php'; // Include loader require_once __DIR__ . DIRECTORY_SEPARATOR . 'loader.php'; // Plugin initialization $main_controller = new Ai1wm_Main_Controller();