Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Plugin Name: Backup Migration Pro * Description: Premium version ..
Decoded Output download
<?php
/**
* Plugin Name: Backup Migration Pro
* Description: Premium version of the Backup Migration plugin (please keep the free one activated).
* Author: Migrate
* Author URI: https://backupbliss.com
* Plugin URI: https://backupbliss.com
* Text Domain: backup-backup
* Version: 1.2.9
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Default namespace
namespace BMI\Plugin;
use BMI\Plugin\BMI_Pro_Core;
// Exit on direct access
if (!defined('ABSPATH')) exit;
// Not dynamic constants
if (!defined('BMI_PRO_VERSION')) {
define('BMI_PRO_VERSION', '1.2.9');
}
if (!defined('BMI_PRO_DEBUG')) {
define('BMI_PRO_DEBUG', false);
}
if (!defined('BMI_PRO_ROOT_DIR')) {
define('BMI_PRO_ROOT_DIR', __DIR__);
}
if (!defined('BMI_PRO_ROOT_FILE')) {
define('BMI_PRO_ROOT_FILE', __FILE__);
}
if (!defined('BMI_PRO_INC')) {
define('BMI_PRO_INC', trailingslashit(BMI_PRO_ROOT_DIR) . 'includes/');
}
if (!defined('BMI_PRO_ASSETS')) {
[root@cpanel7 backup-backup-pro]# ls -alt backup-backup-pro.php
-rw-r--r-- 1 pancr019 pancr019 3567 Aug 8 16:20 backup-backup-pro.php
[root@cpanel7 backup-backup-pro]# cat backup-backup-pro.php
<?php
/**
* Plugin Name: Backup Migration Pro
* Description: Premium version of the Backup Migration plugin (please keep the free one activated).
* Author: Migrate
* Author URI: https://backupbliss.com
* Plugin URI: https://backupbliss.com
* Text Domain: backup-backup
* Version: 1.2.9
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Default namespace
namespace BMI\Plugin;
use BMI\Plugin\BMI_Pro_Core;
// Exit on direct access
if (!defined('ABSPATH')) exit;
// Not dynamic constants
if (!defined('BMI_PRO_VERSION')) {
define('BMI_PRO_VERSION', '1.2.9');
}
if (!defined('BMI_PRO_DEBUG')) {
define('BMI_PRO_DEBUG', false);
}
if (!defined('BMI_PRO_ROOT_DIR')) {
define('BMI_PRO_ROOT_DIR', __DIR__);
}
if (!defined('BMI_PRO_ROOT_FILE')) {
define('BMI_PRO_ROOT_FILE', __FILE__);
}
if (!defined('BMI_PRO_INC')) {
define('BMI_PRO_INC', trailingslashit(BMI_PRO_ROOT_DIR) . 'includes/');
}
if (!defined('BMI_PRO_ASSETS')) {
define('BMI_PRO_ASSETS', plugin_dir_url(BMI_PRO_ROOT_FILE) . 'admin/');
}
// Activation hook
register_activation_hook(BMI_PRO_ROOT_FILE, function () {
update_option('_bmi_redirect', true);
});
// Load plugin after all
add_action('plugins_loaded', function () {
$scheduled_cron = false;
$crons = get_option('cron', false);
if ($crons != false) {
foreach ($crons as $timestamp => $cronhooks) {
if (isset($cronhooks['bmi_do_backup_right_now'])) {
if (microtime(true) >= $timestamp) $scheduled_cron = true;
}
}
}
// Check requirements
$newerThanFree = false;
if (defined('BMI_VERSION')) $newerThanFree = version_compare(BMI_VERSION, BMI_PRO_VERSION, '<');
if (version_compare(PHP_VERSION, '7.0.0', '<') || !function_exists('openssl_decrypt') || !defined('BMI_ROOT_FILE') || $newerThanFree) {
if (is_admin() || defined('STDIN')) require_once BMI_PRO_INC . 'misc.php';
return;
}
// Initialize backup-migration-pro
if (!class_exists('BMI_Pro_Core')) {
if (is_admin() || defined('STDIN') || strpos($_SERVER['REQUEST_URI'], 'doing_wp_cron') !== false || $scheduled_cron) {
require_once BMI_PRO_INC . 'misc.php';
// Disabled POST functions
$disabled = ['is-running-backup', 'scan-directory', 'calculate-cron', 'get-dynamic-names'];
// Verify (Don't use this plugin outside BMI Settings)
$method = $_SERVER['REQUEST_METHOD'];
if ($scheduled_cron || $method === 'POST' || strpos($_SERVER['REQUEST_URI'], 'admin.php?page=backup-migration') !== false || defined('STDIN') || defined('DOING_CRON') || defined('BMI_DOING_SCHEDULED_BACKUP')) {
if ($scheduled_cron || (isset($_POST['token']) && isset($_POST['f']) && !in_array($_POST['f'], $disabled) && $_POST['token'] == 'bmi') || ($method === 'GET' || defined('STDIN') || defined('BMI_DOING_SCHEDULED_BACKUP') || defined('DOING_CRON'))) {
require_once BMI_PRO_ROOT_DIR . '/classes/core' . ((BMI_PRO_DEBUG) ? '.to-enc' : '') . '.php';
$bmi_pro_instance = new BMI_Pro_Core($scheduled_cron);
$bmi_pro_instance->initialize();
}
}
// Handle updates
if (!class_exists('BMI_Pro_Updater')) {
require_once trailingslashit(BMI_PRO_ROOT_DIR) . 'classes/' . 'updates' . ((BMI_PRO_DEBUG) ? '.to-enc' : '') . '.php';
$updater = new BMI_Pro_Updater(BMI_PRO_ROOT_FILE, ['version' => BMI_PRO_VERSION]);
}
}
}
}, 11); ?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: Backup Migration Pro
* Description: Premium version of the Backup Migration plugin (please keep the free one activated).
* Author: Migrate
* Author URI: https://backupbliss.com
* Plugin URI: https://backupbliss.com
* Text Domain: backup-backup
* Version: 1.2.9
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Default namespace
namespace BMI\Plugin;
use BMI\Plugin\BMI_Pro_Core;
// Exit on direct access
if (!defined('ABSPATH')) exit;
// Not dynamic constants
if (!defined('BMI_PRO_VERSION')) {
define('BMI_PRO_VERSION', '1.2.9');
}
if (!defined('BMI_PRO_DEBUG')) {
define('BMI_PRO_DEBUG', false);
}
if (!defined('BMI_PRO_ROOT_DIR')) {
define('BMI_PRO_ROOT_DIR', __DIR__);
}
if (!defined('BMI_PRO_ROOT_FILE')) {
define('BMI_PRO_ROOT_FILE', __FILE__);
}
if (!defined('BMI_PRO_INC')) {
define('BMI_PRO_INC', trailingslashit(BMI_PRO_ROOT_DIR) . 'includes/');
}
if (!defined('BMI_PRO_ASSETS')) {
[root@cpanel7 backup-backup-pro]# ls -alt backup-backup-pro.php
-rw-r--r-- 1 pancr019 pancr019 3567 Aug 8 16:20 backup-backup-pro.php
[root@cpanel7 backup-backup-pro]# cat backup-backup-pro.php
<?php
/**
* Plugin Name: Backup Migration Pro
* Description: Premium version of the Backup Migration plugin (please keep the free one activated).
* Author: Migrate
* Author URI: https://backupbliss.com
* Plugin URI: https://backupbliss.com
* Text Domain: backup-backup
* Version: 1.2.9
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Default namespace
namespace BMI\Plugin;
use BMI\Plugin\BMI_Pro_Core;
// Exit on direct access
if (!defined('ABSPATH')) exit;
// Not dynamic constants
if (!defined('BMI_PRO_VERSION')) {
define('BMI_PRO_VERSION', '1.2.9');
}
if (!defined('BMI_PRO_DEBUG')) {
define('BMI_PRO_DEBUG', false);
}
if (!defined('BMI_PRO_ROOT_DIR')) {
define('BMI_PRO_ROOT_DIR', __DIR__);
}
if (!defined('BMI_PRO_ROOT_FILE')) {
define('BMI_PRO_ROOT_FILE', __FILE__);
}
if (!defined('BMI_PRO_INC')) {
define('BMI_PRO_INC', trailingslashit(BMI_PRO_ROOT_DIR) . 'includes/');
}
if (!defined('BMI_PRO_ASSETS')) {
define('BMI_PRO_ASSETS', plugin_dir_url(BMI_PRO_ROOT_FILE) . 'admin/');
}
// Activation hook
register_activation_hook(BMI_PRO_ROOT_FILE, function () {
update_option('_bmi_redirect', true);
});
// Load plugin after all
add_action('plugins_loaded', function () {
$scheduled_cron = false;
$crons = get_option('cron', false);
if ($crons != false) {
foreach ($crons as $timestamp => $cronhooks) {
if (isset($cronhooks['bmi_do_backup_right_now'])) {
if (microtime(true) >= $timestamp) $scheduled_cron = true;
}
}
}
// Check requirements
$newerThanFree = false;
if (defined('BMI_VERSION')) $newerThanFree = version_compare(BMI_VERSION, BMI_PRO_VERSION, '<');
if (version_compare(PHP_VERSION, '7.0.0', '<') || !function_exists('openssl_decrypt') || !defined('BMI_ROOT_FILE') || $newerThanFree) {
if (is_admin() || defined('STDIN')) require_once BMI_PRO_INC . 'misc.php';
return;
}
// Initialize backup-migration-pro
if (!class_exists('BMI_Pro_Core')) {
if (is_admin() || defined('STDIN') || strpos($_SERVER['REQUEST_URI'], 'doing_wp_cron') !== false || $scheduled_cron) {
require_once BMI_PRO_INC . 'misc.php';
// Disabled POST functions
$disabled = ['is-running-backup', 'scan-directory', 'calculate-cron', 'get-dynamic-names'];
// Verify (Don't use this plugin outside BMI Settings)
$method = $_SERVER['REQUEST_METHOD'];
if ($scheduled_cron || $method === 'POST' || strpos($_SERVER['REQUEST_URI'], 'admin.php?page=backup-migration') !== false || defined('STDIN') || defined('DOING_CRON') || defined('BMI_DOING_SCHEDULED_BACKUP')) {
if ($scheduled_cron || (isset($_POST['token']) && isset($_POST['f']) && !in_array($_POST['f'], $disabled) && $_POST['token'] == 'bmi') || ($method === 'GET' || defined('STDIN') || defined('BMI_DOING_SCHEDULED_BACKUP') || defined('DOING_CRON'))) {
require_once BMI_PRO_ROOT_DIR . '/classes/core' . ((BMI_PRO_DEBUG) ? '.to-enc' : '') . '.php';
$bmi_pro_instance = new BMI_Pro_Core($scheduled_cron);
$bmi_pro_instance->initialize();
}
}
// Handle updates
if (!class_exists('BMI_Pro_Updater')) {
require_once trailingslashit(BMI_PRO_ROOT_DIR) . 'classes/' . 'updates' . ((BMI_PRO_DEBUG) ? '.to-enc' : '') . '.php';
$updater = new BMI_Pro_Updater(BMI_PRO_ROOT_FILE, ['version' => BMI_PRO_VERSION]);
}
}
}
}, 11);
Function Calls
None |
Stats
MD5 | 24ff57cc654bf23500418aea0be2ed97 |
Eval Count | 0 |
Decode Time | 43 ms |