PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.1.7
Backup Migration v2.1.7
2.1.7 2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / includes / dashboard / modules / cloud-backup-notice.php
backup-backup / includes / dashboard / modules Last commit date
backup-ongoing.php 3 weeks ago backup_controller.php 3 weeks ago backups-table-header.php 3 weeks ago backups-under-table.php 3 weeks ago before-update-backup-errors.php 3 weeks ago cloud-backup-notice.php 3 weeks ago email-errors.php 3 weeks ago ping-server-is-not-working-notice.php 3 weeks ago plugins-auto-update-notice.php 3 weeks ago quota-errors.php 3 weeks ago security-plugins-warning.php 3 weeks ago site-is-local-notice.php 3 weeks ago stream-backup-notice.php 3 weeks ago super-quick-migration.php 3 weeks ago support-chat.php 3 weeks ago upload-backup.php 3 weeks ago
cloud-backup-notice.php
59 lines
1 <?php
2 // Exit on direct access
3 if (!defined('ABSPATH')) exit;
4
5 use BMI\Plugin\Dashboard as Dashboard;
6
7 $currentConfig = Dashboard\bmi_get_config('STORAGE:STRATEGY');
8
9 if ($currentConfig === 'local_and_cloud') {
10 return; // No notice needed if we're already in a safe state
11 }
12
13 if (!defined('BMI_BACKUP_PRO') || !BMI_BACKUP_PRO) {
14 $notices[] = __('Your backup strategy is configured to use cloud storage, but the Pro version of the plugin is not active. Please activate the Pro version to enable cloud backup features.', 'backup-backup');
15 Dashboard\bmi_set_config('STORAGE:STRATEGY', 'local_and_cloud');
16 } else {
17 require_once BMI_PRO_INC . 'services/class-bmi-pro-backup-lifecycle-manager.php';
18 require_once BMI_INCLUDES . '/external/external-storage-manager.php';
19 $backupLifecycleManager = \BMI\Plugin\Services\BackupLifecycleManager::getInstance();
20 $configuredOption = $backupLifecycleManager->getConfiguredOption();
21
22 // Check if cloud-based strategy requires storage configuration
23 if (in_array($configuredOption, [
24 \BMI\Plugin\Services\BackupLifecycleManager::STORAGE_STRATEGY_CLOUD_ONLY,
25 \BMI\Plugin\Services\BackupLifecycleManager::STORAGE_STRATEGY_HYBRID
26 ]) && !\BMI\Plugin\External\BMI_External_Storage_Manager::getInstance()->isAnyStorageConfigured()) {
27
28 $notices[] = __('Backups will henceforth be kept locally, because all cloud locations are disconnected.', 'backup-backup');
29 Dashboard\bmi_set_config('STORAGE:STRATEGY', 'local_and_cloud');
30 } else {
31 return;
32 }
33 }
34
35
36 ?>
37
38 <div class="error-noticer" id="cloud-strategy-issue">
39 <div class="error-header">
40 <div class="cf">
41 <div class="left">
42 <?php esc_html_e('We have some issue(s) regarding your configured settings.', 'backup-backup'); ?>
43 </div>
44 <div class="right hoverable">
45 <span class="bmi-error-toggle" data-expand="<?php esc_attr_e('Expand', 'backup-backup'); ?>" data-collapse="<?php esc_attr_e('Collapse', 'backup-backup'); ?>">
46 <?php esc_html_e('Expand', 'backup-backup'); ?>
47 </span> |
48 <span class="bmi-error-dismiss">
49 <?php esc_html_e('Dismiss', 'backup-backup'); ?>
50 </span>
51 </div>
52 </div>
53 </div>
54 <div class="error-body">
55 <?php
56 echo wp_kses_post(implode("<br /><br />", $notices));
57 ?>
58 </div>
59 </div>