| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: Prime Mover - Backup and Migration |
| 5 |
Plugin URI: https://codexonics.com/ |
| 6 |
Description: The simplest all-around plugin to migrate WordPress and do backups. These support multisite backup/migration or cloning a WP site/multisite subsite. |
| 7 |
Version: 2.2.0 |
| 8 |
Author: Codexonics |
| 9 |
Author URI: https://codexonics.com/ |
| 10 |
License: GPL-3.0-or-later |
| 11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 12 |
Text Domain: prime-mover |
| 13 |
Network: True |
| 14 |
*/ |
| 15 |
// Exit if accessed directly |
| 16 |
if ( !defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
if ( !defined( 'PRIME_MOVER_MAINPLUGIN_FILE' ) ) { |
| 20 |
define( 'PRIME_MOVER_MAINPLUGIN_FILE', __FILE__ ); |
| 21 |
} |
| 22 |
if ( !defined( 'PRIME_MOVER_MAINDIR' ) ) { |
| 23 |
define( 'PRIME_MOVER_MAINDIR', dirname( PRIME_MOVER_MAINPLUGIN_FILE ) ); |
| 24 |
} |
| 25 |
if ( !defined( 'PRIME_MOVER_OPENSSL_CIPHER' ) ) { |
| 26 |
define( 'PRIME_MOVER_OPENSSL_CIPHER', 'AES-256-CBC' ); |
| 27 |
} |
| 28 |
if ( function_exists( 'prime_mover_fs' ) ) { |
| 29 |
prime_mover_fs()->set_basename( false, __FILE__ ); |
| 30 |
} else { |
| 31 |
if ( !function_exists( 'prime_mover_fs' ) ) { |
| 32 |
// Create a helper function for easy SDK access. |
| 33 |
function prime_mover_fs() { |
| 34 |
global $prime_mover_fs; |
| 35 |
if ( !isset( $prime_mover_fs ) ) { |
| 36 |
// Activate multisite network integration. |
| 37 |
if ( !defined( 'WP_FS__PRODUCT_3826_MULTISITE' ) ) { |
| 38 |
define( 'WP_FS__PRODUCT_3826_MULTISITE', true ); |
| 39 |
} |
| 40 |
// Include Freemius SDK. |
| 41 |
require_once dirname( __FILE__ ) . '/vendor/freemius/start.php'; |
| 42 |
$prime_mover_fs = fs_dynamic_init( array( |
| 43 |
'id' => '3826', |
| 44 |
'slug' => 'prime-mover', |
| 45 |
'premium_slug' => 'prime-mover-pro', |
| 46 |
'type' => 'plugin', |
| 47 |
'public_key' => 'pk_a69fd5401be20bf46608b1c38165b', |
| 48 |
'is_premium' => false, |
| 49 |
'premium_suffix' => 'PRO', |
| 50 |
'has_addons' => false, |
| 51 |
'has_paid_plans' => true, |
| 52 |
'is_org_compliant' => true, |
| 53 |
'trial' => array( |
| 54 |
'days' => 14, |
| 55 |
'is_require_payment' => true, |
| 56 |
), |
| 57 |
'menu' => array( |
| 58 |
'slug' => 'migration-panel-settings', |
| 59 |
'network' => true, |
| 60 |
), |
| 61 |
'is_live' => true, |
| 62 |
) ); |
| 63 |
} |
| 64 |
return $prime_mover_fs; |
| 65 |
} |
| 66 |
|
| 67 |
// Init Freemius. |
| 68 |
prime_mover_fs(); |
| 69 |
// Signal that SDK was initiated. |
| 70 |
do_action( 'prime_mover_fs_loaded' ); |
| 71 |
} |
| 72 |
require_once PRIME_MOVER_MAINDIR . '/global/PrimeMoverBridgeIO.php'; |
| 73 |
require_once PRIME_MOVER_MAINDIR . '/global/PrimeMoverGlobalFunctions.php'; |
| 74 |
if ( defined( 'PRIME_MOVER_PLUGIN_PATH' ) || defined( 'PRIME_MOVER_PLUGIN_UTILITIES_PATH' ) || defined( 'PRIME_MOVER_PLUGIN_CORE_PATH' ) || defined( 'PRIME_MOVER_THEME_CORE_PATH' ) ) { |
| 75 |
return; |
| 76 |
} |
| 77 |
include PRIME_MOVER_MAINDIR . '/global/PrimeMoverGlobalConstants.php'; |
| 78 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverPHPVersionDependencies.php'; |
| 79 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverWPCoreDependencies.php'; |
| 80 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverRequirementsCheck.php'; |
| 81 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverPHPCoreFunctionDependencies.php'; |
| 82 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverFileSystemDependencies.php'; |
| 83 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverPluginSlugDependencies.php'; |
| 84 |
include PRIME_MOVER_MAINDIR . '/dependency-checks/PrimeMoverCoreSaltDependencies.php'; |
| 85 |
include PRIME_MOVER_MAINDIR . '/global/PrimeMoverGlobalDependencies.php'; |
| 86 |
$prime_mover_global_dependencies = new PrimeMoverGlobalDependencies(); |
| 87 |
$prime_mover_requisitecheck = $prime_mover_global_dependencies->primeMoverGetRequisiteCheck(); |
| 88 |
if ( is_object( $prime_mover_requisitecheck ) && !$prime_mover_requisitecheck->passes() ) { |
| 89 |
return; |
| 90 |
} |
| 91 |
include PRIME_MOVER_MAINDIR . '/PrimeMoverLoader.php'; |
| 92 |
if ( file_exists( PRIME_MOVER_PLUGIN_PATH . '/vendor/autoload.php' ) ) { |
| 93 |
require_once PRIME_MOVER_PLUGIN_PATH . '/vendor/autoload.php'; |
| 94 |
} |
| 95 |
include PRIME_MOVER_MAINDIR . '/PrimeMoverFactory.php'; |
| 96 |
include PRIME_MOVER_MAINDIR . '/engines/prime-mover-panel/prime-mover-panel.php'; |
| 97 |
} |