PluginProbe
Prime Mover – Backup and Migration / 2.2.0
Prime Mover – Backup and Migration v2.2.0
2.2.0 2.1.6 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 All 103 releases
prime-mover / prime-mover.php

prime-mover.php in Prime Mover – Backup and Migration 2.2.0, at prime-mover.php

97 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }