PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.1.2
Backup Migration v2.1.2
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 / chapter / where_config.php
backup-backup / includes / dashboard / chapter Last commit date
AA-Template.php 3 months ago other_config.php 3 months ago save-button.php 3 months ago staging.php 3 months ago store_config.php 3 months ago troubleshooting.php 3 months ago what_backed_up.php 3 months ago where_config.php 3 months ago
where_config.php
204 lines
1 <?php
2
3 // Namespace
4 namespace BMI\Plugin\Dashboard;
5
6 // Exit on direct access
7 if (!defined('ABSPATH')) {
8 exit;
9 }
10
11 $preorder = BMI_AUTHOR_URI;
12 $askMoreESText = sprintf(
13 __('Need another external storage option? Please %sTell us%s!', 'backup-backup'),
14 '<a href="mailto:' . BMI_SUPPORT_EMAIL .'?subject=Suggestion for new storage option&body=Please tell us which external storage option you need" target="_blank" class="secondary hoverable nodec">',
15 '</a>'
16 );
17
18 ?>
19
20 <div class="mm mt mbl f20">
21 <?php esc_html_e("Select all the storage options you want to use:", 'backup-backup'); ?>
22 </div>
23
24 <div class="mm60">
25 <div class="mm tilo">
26
27 <div class="tab2">
28
29 <!-- Locally start -->
30 <div class="tab2-item d-flex jst-sb ia-center activeList">
31 <div class="d-flex ia-center">
32 <img src="<?php echo esc_url( $this->get_asset('images', '002-monitor-white.svg') ); ?>" alt="logo" class="tab2-img">
33 <span class="ml25">
34 <span class="title_whereStored"><?php esc_html_e("Locally", 'backup-backup'); ?></span>
35 <?php esc_html_e("(on this web server)", 'backup-backup'); ?>
36 </span>
37 </div>
38 <div class="ia-center">
39 <!-- <div class="b2 bmi-switch"><input type="checkbox" checked class="checkbox storage-checkbox" data-toggle="storage-locally-row">
40 <div class="bmi-knobs"><span></span></div>
41 <div class="bmi-layer_str"></div>
42 </div> -->
43 </div>
44 </div>
45 <div class="bg_grey" id="storage-locally-row">
46 <div class="container-40 lh30 pt30 pb30">
47 <div class="d-flex">
48 <div class="w270" style="margin-top: 23px;"><span><?php esc_html_e("Backup directory path:", 'backup-backup'); ?></span></div>
49 <div>
50 <div class="w100 pos-r local-backup-path-wrapper"><input type="text" id="bmi_path_storage_default" placeholder="<?php esc_attr_e("Enter directory path", 'backup-backup'); ?>" class="input-locally_web_server" value="<?php echo esc_attr( sanitize_text_field(bmi_get_config('STORAGE::LOCAL::PATH')) ); ?>" autocomplete="off">
51 <span class="backups-suffix" id="local-backups-suffix"> /backups</span>
52 <!---->
53 </div>
54 <div class="mt10"><span>
55 <?php esc_html_e("That's where your local backups will be stored. If you picked external storage this folder will also be used (to store your backup temporarily, until it is uploaded to the external storage).", 'backup-backup'); ?>
56 </span></div>
57 </div>
58 </div>
59 <div class="d-flex">
60 <div class="w270" style="margin-top: 23px;"><span><?php esc_html_e("Accessible via direct link?", 'backup-backup'); ?></span></div>
61 <div>
62 <div class="w100">
63 <div class="d-flex mr60 ia-center" style="margin-top: 23px;">
64
65 <label class="container-radio">
66 <?php esc_html_e("No", 'backup-backup'); ?>
67 <input type="radio" name="radioAccessViaLink" value="false"<?php echo (bmi_get_config('STORAGE::DIRECT::URL') === 'false')?' checked':'' ?>>
68 <span class="checkmark-radio"></span>
69 </label>
70
71 <label class="container-radio ml25">
72 <?php esc_html_e("Yes", 'backup-backup'); ?>
73 <input type="radio" name="radioAccessViaLink" value="true"<?php echo (bmi_get_config('STORAGE::DIRECT::URL') === 'true')?' checked':'' ?>>
74 <span class="checkmark-radio"></span>
75 </label>
76
77 </div>
78 </div>
79 <div class="mt10">
80 <span>
81 <?php esc_html_e('Select "Yes" if you want your (manually created) backups to be available via a direct link. This makes migration from one site to another super-fast.', 'backup-backup'); ?>
82 </span>
83 </div>
84 </div>
85 </div>
86 </div>
87 </div>
88
89 <?php include BMI_INCLUDES . '/bodies/storage/backupbliss.php'; ?>
90
91 <?php require_once BMI_INCLUDES . '/bodies/storage/dropbox.php'; ?>
92
93 <?php require_once BMI_INCLUDES . '/bodies/storage/gdrive.php'; ?>
94
95 <?php require_once BMI_INCLUDES . '/bodies/storage/ftp.php'; ?>
96
97 <?php require_once BMI_INCLUDES . '/bodies/storage/aws.php'; ?>
98
99 <?php require_once BMI_INCLUDES . '/bodies/storage/wasabi.php'; ?>
100
101 <?php
102 if (has_action('bmi_pro_google_drive_template')) {
103 do_action('bmi_pro_google_drive_template');
104 }
105
106 if (has_action('bmi_pro_dropbox_template')) {
107 do_action('bmi_pro_dropbox_template');
108 }
109 ?>
110
111 <?php
112 if (has_action('bmi_pro_one_drive_template')) {
113 do_action('bmi_pro_one_drive_template');
114 } else {
115 ?>
116 <div class="tab2-item">
117 <div class="already_ready"></div>
118 <div class="bg_clock_day2">
119 <img src="<?php echo esc_url( $this->get_asset('images', 'premium.svg') ); ?>" alt="crown" class="crown_img" height="30px" width="30px">
120 <?php echo wp_kses_post( BMI_ALREADY_IN_PRO ); ?>
121 </div>
122 <div class="d-flex ia-center">
123 <img src="<?php echo esc_url( $this->get_asset('images', 'one-drive.svg') ); ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">OneDrive</span>
124 <img src="<?php echo esc_url( $this->get_asset('images', 'premium.svg') ); ?>" alt="logo" class="crown2">
125 </div>
126 <div class="ia-center">
127 <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox">
128 <div class="bmi-knobs"><span></span></div>
129 <div class="bmi-layer_str"></div>
130 </div>
131 </div>
132 </div>
133 <?php } ?>
134 <?php
135 if (has_action('bmi_pro_pcloud_template')) {
136 do_action('bmi_pro_pcloud_template');
137 } else {
138 ?>
139 <div class="tab2-item">
140 <div class="already_ready"></div>
141 <div class="bg_clock_day2">
142 <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px">
143 <?php echo BMI_ALREADY_IN_PRO; ?>
144 </div>
145 <div class="d-flex ia-center">
146 <img src="<?php echo $this->get_asset('images', 'pcloud.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">pCloud</span>
147 <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2">
148 </div>
149 <div class="ia-center">
150 <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox">
151 <div class="bmi-knobs"><span></span></div>
152 <div class="bmi-layer_str"></div>
153 </div>
154 </div>
155 </div>
156 <?php } ?>
157
158 <?php
159 if (has_action('bmi_pro_sftp_template')) {
160
161 do_action('bmi_pro_sftp_template');
162 } else {
163 ?>
164 <div class="tab2-item">
165 <div class="already_ready"></div>
166 <div class="bg_clock_day2">
167 <img src="<?php echo esc_url( $this->get_asset('images', 'premium.svg') ); ?>" alt="crown" class="crown_img" height="30px" width="30px">
168 <?php echo wp_kses_post( BMI_ALREADY_IN_PRO ); ?>
169 </div>
170 <div class="d-flex ia-center">
171 <img src="<?php echo esc_url( $this->get_asset('images', 'sftp-scp.svg') ); ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">SFTP</span>
172 <img src="<?php echo esc_url( $this->get_asset('images', 'premium.svg') ); ?>" alt="logo" class="crown2">
173 </div>
174 <div class="ia-center">
175 <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox">
176 <div class="bmi-knobs"><span></span></div>
177 <div class="bmi-layer_str"></div>
178 </div>
179 </div>
180 </div>
181 <?php } ?>
182
183 <?php
184 if (has_action('bmi_pro_ftp_template')) {
185 do_action('bmi_pro_ftp_template');
186 }
187
188 if (has_action('bmi_pro_aws_s3_template')) {
189 do_action('bmi_pro_aws_s3_template');
190 }
191
192 if (has_action('bmi_pro_wasabi_template')) {
193 do_action('bmi_pro_wasabi_template');
194 }
195 ?>
196 </div>
197 <div class="center f16" style="margin-top: 10px;">
198 <span><?php echo wp_kses_post( $askMoreESText ); ?></span>
199 </div>
200 </div>
201 </div>
202
203 <?php include BMI_INCLUDES . '/dashboard/chapter/save-button.php'; ?>
204