AA-Template.php
11 months ago
other_config.php
11 months ago
save-button.php
11 months ago
staging.php
11 months ago
store_config.php
11 months ago
troubleshooting.php
11 months ago
what_backed_up.php
11 months ago
where_config.php
11 months ago
other_config.php
646 lines
| 1 | <?php |
| 2 | |
| 3 | // Namespace |
| 4 | namespace BMI\Plugin\Dashboard; |
| 5 | |
| 6 | use BMI\Plugin\Checker\System_Info; |
| 7 | |
| 8 | // Exit on direct access |
| 9 | if (!defined('ABSPATH')) { |
| 10 | exit; |
| 11 | } |
| 12 | |
| 13 | $pros = false; |
| 14 | if (defined('BMI_BACKUP_PRO') && BMI_BACKUP_PRO == 1) { |
| 15 | $pros = true; |
| 16 | } |
| 17 | |
| 18 | // Tooltips |
| 19 | $deinstalled_info = __('This will be triggered on plugin removal via WordPress plugins tab', 'backup-backup'); |
| 20 | $experimental_info = __('It will change some fundamental logics of the plugin', 'backup-backup'); |
| 21 | $experimental_info_1 = __('Use this option if you have full access to your server and you know how to make basic configuration of the server. Wrong configuration may give you hick-ups without error due to e.g. web server server timeout (for small sites below 300 MB this is the best option).', 'backup-backup'); |
| 22 | $experimental_info_2 = __('Use this option before the third one. It should work fine on SSD/NVMe hosting, even for large backups — but it may still time out if you are running on a slow drive with high I/O.', 'backup-backup'); |
| 23 | $experimental_info_3 = __('This option will require you to not close the backup window since it will use your connection to keep the backup in parts, it will disable automatic backups. Use this only if all of the above does not work. Recommended for huge sites +100k files / 5+ GB.', 'backup-backup'); |
| 24 | $db_query_info = __('Lower value means slower process but more stable restore, higher value means quicker backup and restore but it may be unstable (depends on database server performance). Default value: 300.', 'backup-backup'); |
| 25 | $sqlsplitting = __('This will split the SQL files (before migration or restore) into parts, which should make the process more stable and also allows to track the progress more precisely.', 'backup-backup'); |
| 26 | $deprecatedsinglefile = __('It will force to use V1 engine (first export function of this plugin), it is usually much quicker but search & replace may not work well for recursively santisized data - but may be recommended for not complex sites.', 'backup-backup'); |
| 27 | $cleanupbeforerestore = __('Advanced details: This will remove all plugins (excluding Backup Migration) and themes before performing the migration. During migration, these files will be kept in the directory wp-content/backup-migration/clean-ups. If you want to keep them after migration, you can use the wp-config.php constant BMI_KEEP_CLEANUPS set to TRUE.', 'backup-backup'); |
| 28 | $disabledspacechecking = __('This option will disable validation of free space on your server i.e. if there is enough space to make the backup. Use it only when you are 100% sure that you have enough space, otherwise backup process may fail with fatal error. In corner cases, if there will not be enough space it may make your site slow or even limit functionality.', 'backup-backup'); |
| 29 | $dbbatching = __('This option will enable batching for database table export (backup). It will affect only non-default methods of the backup. It will significantly slow down the backup process, but it will make it much more stable.', 'backup-backup'); |
| 30 | |
| 31 | $basicMessageHidePromos = __('%sHide the carousel at the bottom of the plugin page, and all plugin’s messages in the Dashboard area.%s', 'backup-backup'); |
| 32 | |
| 33 | if (!$pros) { |
| 34 | $bmiHidePromos = $basicMessageHidePromos . __('%sUpgrade to %sPremium%s today%s%s%sWe made it really affordable!%s', 'backup-backup'); |
| 35 | $bmiHidePromos = sprintf($bmiHidePromos, '<div class="bmi-center-text">', '<br>', '<a href="' . BMI_AUTHOR_URI . '" target="_blank">', '<span class="bmi-premium-bg-stars">', '</span>', '</a>', '<br>', '<b>', '</b>', '</div>'); |
| 36 | } else { |
| 37 | $bmiHidePromos = $basicMessageHidePromos; |
| 38 | $bmiHidePromos = sprintf($bmiHidePromos, '', ''); |
| 39 | } |
| 40 | |
| 41 | |
| 42 | require_once BMI_INCLUDES . '/check/system_info.php'; |
| 43 | $is_curl_work = System_Info::is_curl_work(); |
| 44 | |
| 45 | ?> |
| 46 | |
| 47 | <div class="mt mb f18 lh30"> |
| 48 | |
| 49 | <!-- --> |
| 50 | <div class="mm"> |
| 51 | |
| 52 | <div class="fo-title bold mbll"> |
| 53 | <?php _e('Email notifications', 'backup-backup'); ?> (#1) |
| 54 | </div> |
| 55 | |
| 56 | </div> |
| 57 | |
| 58 | <div class="mm mbl"> |
| 59 | <div class="mm mm-border"> |
| 60 | |
| 61 | <!-- --> |
| 62 | <div class="cf"> |
| 63 | <div class="left mw250 lh65"> |
| 64 | <?php _e('Email address:', 'backup-backup'); ?> |
| 65 | </div> |
| 66 | <div class="left" style="max-width: calc(100% - 250px);"> |
| 67 | <div class=""> |
| 68 | <?php |
| 69 | $ee = sanitize_text_field(bmi_get_config('OTHER:EMAIL')); |
| 70 | if (strlen($ee) <= 1) { |
| 71 | $ee = get_bloginfo('admin_email'); |
| 72 | } |
| 73 | ?> |
| 74 | <input type="text" id="email-for-notices" autocomplete="off" class="bmi-text-input small" value="<?php echo $ee; ?>" readonly onfocus="this.removeAttribute('readonly');" /> |
| 75 | </div> |
| 76 | <div class="f16"> |
| 77 | <?php _e('This is where the log files will be sent to. You can enter several email addresses, separated by comma.', 'backup-backup'); ?> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | |
| 82 | <!-- --> |
| 83 | <div class="cf mbl"> |
| 84 | <div class="left mw250 lh65"> |
| 85 | <?php _e('From field:', 'backup-backup'); ?> |
| 86 | </div> |
| 87 | <div class="left"> |
| 88 | <div class=""> |
| 89 | <input type="text" id="email-title-for-notices" autocomplete="off" class="bmi-text-input small" value="<?php echo sanitize_text_field(bmi_get_config('OTHER:EMAIL:TITLE')); ?>" /> |
| 90 | </div> |
| 91 | <div class="f16"> |
| 92 | <?php _e('This will show up as the sender of the emails.', 'backup-backup'); ?> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | |
| 97 | <!-- --> |
| 98 | <div class="cf mbl"> |
| 99 | |
| 100 | <div class="left mw250 lh50" style="line-height: 145px;"> |
| 101 | <?php _e("You'll get an email if...", 'backup-backup'); ?> |
| 102 | </div> |
| 103 | |
| 104 | <div class="left lh40"> |
| 105 | <table> |
| 106 | <tbody> |
| 107 | <tr> |
| 108 | <td> |
| 109 | <label class="premium-<?php bmi_pro_features($pros, true, __('Receive an email notification when a backup is successfully created', 'backup-backup')); ?>"> |
| 110 | <input type="checkbox" <?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> id="backup-success-notify" <?php echo ($pros) ? bmi_try_checked('OTHER:BACKUP:SUCCEED:NOTIS') : ''; ?>> |
| 111 | <span <?php echo ($pros) ? "" : 'class="not-allowed"' ?>><?php _e("Backup was created successfully", 'backup-backup'); ?></span> |
| 112 | <span class="premium premium-img premium-ntt"></span> |
| 113 | </label> |
| 114 | </td> |
| 115 | <td> |
| 116 | <label class="premium-<?php bmi_pro_features($pros, true, __('Receive an email notification when a backup creation failed', 'backup-backup')); ?>"> |
| 117 | <input type="checkbox" <?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> id="backup-failed-notify" <?php echo ($pros) ? bmi_try_checked('OTHER:BACKUP:FAILED:NOTIS') : ''; ?>> |
| 118 | <span <?php echo ($pros) ? "" : 'class="not-allowed"' ?>><?php _e("Backup creation failed", 'backup-backup'); ?></span> |
| 119 | <span class="premium premium-img premium-ntt"></span> |
| 120 | </label> |
| 121 | </td> |
| 122 | </tr> |
| 123 | <tr> |
| 124 | <td> |
| 125 | <label class="premium-<?php bmi_pro_features($pros, true, __('Receive an email notification when a restore is successfully created', 'backup-backup')); ?>"> |
| 126 | <input type="checkbox" <?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> id="restore-success-notify" <?php echo ($pros) ? bmi_try_checked('OTHER:RESTORE:SUCCEED:NOTIS'): ''; ?>> |
| 127 | <span <?php echo ($pros) ? "" : ' class="not-allowed"' ?>><?php _e("Restore succeeded", 'backup-backup'); ?></span> |
| 128 | <span class="premium premium-img premium-ntt"></span> |
| 129 | </label> |
| 130 | </td> |
| 131 | <td> |
| 132 | <label class="premium-<?php bmi_pro_features($pros, true, __('Receive an email notification when a restore creation failed', 'backup-backup')); ?>"> |
| 133 | <input <?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> type="checkbox" id="restore-failed-notify" <?php echo ($pros) ? bmi_try_checked('OTHER:RESTORE:FAILED:NOTIS') : ''; ?>> |
| 134 | <span <?php echo ($pros) ? "" : ' class="not-allowed"' ?>><?php _e("Restore failed", 'backup-backup'); ?></span> |
| 135 | <span class="premium premium-img premium-ntt"></span> |
| 136 | </label> |
| 137 | </td> |
| 138 | </tr> |
| 139 | <tr> |
| 140 | <td colspan="2"> |
| 141 | <label for="scheduled-issues"> |
| 142 | <input type="checkbox" id="scheduled-issues"<?php bmi_try_checked('OTHER:EMAIL:NOTIS'); ?>> |
| 143 | <span> |
| 144 | <?php _e("There are (new) issues with scheduling (automatic backup creation)", 'backup-backup'); ?><br> |
| 145 | <span class="f14"> |
| 146 | <?php _e("(Make sure your hosting provider does not block mail functions. Otherwise, you will need to configure SMTP mail.)", 'backup-backup'); ?> |
| 147 | </span> |
| 148 | </span> |
| 149 | </label> |
| 150 | </td> |
| 151 | </tr> |
| 152 | </tbody> |
| 153 | </table> |
| 154 | </div> |
| 155 | |
| 156 | </div> |
| 157 | |
| 158 | <!-- --> |
| 159 | <div> |
| 160 | <div class="cf radio-grid"> |
| 161 | |
| 162 | <div class="left"> |
| 163 | <?php _e("Add logs to emails?", 'backup-backup'); ?> |
| 164 | </div> |
| 165 | |
| 166 | <div class="left"> |
| 167 | <div class="left d-flex mr60 ia-center"> |
| 168 | <label class="container-radio <?php echo ($pros) ? "" : ' not-allowed' ?>"> |
| 169 | <?php _e("No", 'backup-backup'); ?> |
| 170 | <input type="radio" name="add_logs_email" id="add-logs-email-no" <?php echo ($pros) ? "" : ' class="not-allowed" disabled checked' ?> <?php $pros ? bmi_try_checked('OTHER:ATTACH:LOGS:TO:EMAIL', true): ''; ?>> |
| 171 | <span class="checkmark-radio <?php echo ($pros) ? "" : ' not-allowed' ?>"></span> |
| 172 | </label> |
| 173 | <div class="inline cf premium-<?php bmi_pro_features($pros, true, __('The logs will be attached to the email in case of issues', 'backup-backup')); ?>"> |
| 174 | <label class="left container-radio ml25 <?php echo ($pros) ? "" : ' not-allowed' ?>"> |
| 175 | <?php _e("Yes", 'backup-backup'); ?> |
| 176 | <input type="radio" <?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> name="add_logs_email" id="add-logs-email-yes" <?php $pros ? bmi_try_checked('OTHER:ATTACH:LOGS:TO:EMAIL'): ''; ?>> |
| 177 | <span class="checkmark-radio <?php echo ($pros) ? "" : ' not-allowed' ?>"></span> |
| 178 | </label> |
| 179 | <span class="left premium premium-img premium-nt mtf3"></span> |
| 180 | </div> |
| 181 | </div> |
| 182 | </div> |
| 183 | |
| 184 | </div> |
| 185 | |
| 186 | <div class="cf radio-grid"> |
| 187 | |
| 188 | <div class="left"> |
| 189 | <?php _e("Generate debug code?", 'backup-backup'); ?> |
| 190 | </div> |
| 191 | |
| 192 | <div class="left"> |
| 193 | <div class="left d-flex mr60 ia-center"> |
| 194 | <label class="container-radio <?php echo ($pros) ? "" : ' not-allowed' ?>"> |
| 195 | <?php _e("No", 'backup-backup'); ?> |
| 196 | <input type="radio" name="generate_debug_code" id="generate-debug-code-no" <?php echo ($pros) ? "" : ' class="not-allowed" disabled checked' ?> <?php $pros ? bmi_try_checked('OTHER:ATTACH:DEBUG:CODE:TO:EMAIL',true): ''; ?>> |
| 197 | <span class="checkmark-radio <?php echo ($pros) ? "" : ' not-allowed' ?>"></span> |
| 198 | </label> |
| 199 | <div class="inline cf premium-<?php bmi_pro_features($pros, true, __('The debug code will be attached to the email in case of issues', 'backup-backup')); ?>"> |
| 200 | <label class="left container-radio ml25 <?php echo ($pros) ? "" : ' not-allowed' ?>"> |
| 201 | <?php _e("Yes", 'backup-backup'); ?> |
| 202 | <input type="radio" name="generate_debug_code" id="generate-debug-code-yes" <?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> <?php $pros ? bmi_try_checked('OTHER:ATTACH:DEBUG:CODE:TO:EMAIL'): ''; ?>> |
| 203 | <span class="checkmark-radio <?php echo ($pros) ? "" : ' not-allowed' ?>"></span> |
| 204 | </label> |
| 205 | <span class="left premium premium-img premium-nt mtf3"></span> |
| 206 | </div> |
| 207 | </div> |
| 208 | </div> |
| 209 | |
| 210 | </div> |
| 211 | |
| 212 | <div class="f16 mtll"> |
| 213 | <?php _e("If you want to also receive the backup file as attachment of the email (for backup notifications), please set this in the chapter \"Where will backups be stored?\".", 'backup-backup'); ?> |
| 214 | </div> |
| 215 | </div> |
| 216 | |
| 217 | </div> |
| 218 | </div> |
| 219 | |
| 220 | <hr> |
| 221 | |
| 222 | <!-- --> |
| 223 | <div class="mm mtl mbll"> |
| 224 | |
| 225 | <div class="fo-title bold"> |
| 226 | <?php _e("Backup triggers", 'backup-backup'); ?> (#2) |
| 227 | </div> |
| 228 | |
| 229 | <div class="f16"> |
| 230 | <?php _e('At the top of the plugin you can create a backup instantly ("Create backup now" - button), or schedule them. Here are more options which trigger the backup creation:', 'backup-backup'); ?> |
| 231 | </div> |
| 232 | |
| 233 | </div> |
| 234 | |
| 235 | <!-- --> |
| 236 | <div class="mbl overlayed"> |
| 237 | |
| 238 | <?php if (has_action('bmi_pro_backup_triggers')) : ?> |
| 239 | <?php do_action('bmi_pro_backup_triggers'); ?> |
| 240 | <?php else : ?> |
| 241 | <?php include BMI_INCLUDES . '/dashboard/templates/premium-function-overlay.php'; ?> |
| 242 | |
| 243 | <!-- It is intended to use double .mm --> |
| 244 | <div class="mm mbl"> |
| 245 | <div class="mm mm-border"> |
| 246 | <div> |
| 247 | <div class="cf"> |
| 248 | <div class="left"> |
| 249 | <div class="f20 bold mr20 premium-wrapper"> |
| 250 | <?php _e("Before updates", 'backup-backup'); ?> |
| 251 | <span class="premium premium-img premium-ntt"></span> |
| 252 | </div> |
| 253 | </div> |
| 254 | <div class="left"> |
| 255 | <label for="before-updates-switch" class="bmi-switch"> |
| 256 | <input type="checkbox" disabled checked id="before-updates-switch"> |
| 257 | <div class="bmi-switch-slider round"> |
| 258 | <span class="on"><?php _e("On", 'backup-backup'); ?></span> |
| 259 | <span class="off"><?php _e("Off", 'backup-backup'); ?></span> |
| 260 | </div> |
| 261 | </label> |
| 262 | </div> |
| 263 | </div> |
| 264 | </div> |
| 265 | |
| 266 | <div> |
| 267 | <div class="mtll f16"> |
| 268 | <?php _e("Activate this so that a backup is created before there are automatic WordPress updates (WordPress core, plugins, themes, or language files).", 'backup-backup'); ?> |
| 269 | </div> |
| 270 | </div> |
| 271 | |
| 272 | <table> |
| 273 | <tbody> |
| 274 | <tr> |
| 275 | <td style="vertical-align: top;"> |
| 276 | <div class="f20 bold mw250 lh65 premium-wrapper"> |
| 277 | <?php _e("Trigger by URI", 'backup-backup'); ?> |
| 278 | <span class="premium premium-img premium-ntt"></span> |
| 279 | </div> |
| 280 | </td> |
| 281 | <td> |
| 282 | <div class=""> |
| 283 | <div class="cf"> |
| 284 | <div class="left mr20"> |
| 285 | <input type="text" class="bmi-text-input small" id="trigger-input1" autocomplete="off"/> |
| 286 | </div> |
| 287 | <div class="left"> |
| 288 | <a href="#" class="btn inline btn-with-img btn-img-low-pad btn-pad left bmi-copper othersec mm30" data-copy="trigger-input1"> |
| 289 | <div class="text"> |
| 290 | <img src="<?php echo $this->get_asset('images', 'copy-icon.png'); ?>" alt="copy-img"> |
| 291 | <div class="f18 semibold"><?php _e('Copy', 'backup-backup') ?></div> |
| 292 | </div> |
| 293 | </a> |
| 294 | </div> |
| 295 | </div> |
| 296 | <div class="f16 mtlll"> |
| 297 | <?php _e("Copy and paste this URL into a browser and press Enter to trigger the backup creation.", 'backup-backup'); ?><br> |
| 298 | <?php _e("Make sure you keep this URL a secret. For safety reasons, this only works once per hour, and you'll receive an email when it is used.", 'backup-backup'); ?> |
| 299 | </div> |
| 300 | <div class="mtll cf"> |
| 301 | <div class="left lh60 mr20"><?php _e("Key:", 'backup-backup'); ?></div> |
| 302 | <div class="left mr20"> |
| 303 | <input type="text" class="bmi-text-input small" autocomplete="off"/> |
| 304 | </div> |
| 305 | <div class="left"> |
| 306 | <a href="#" class="btn mm30 othersec"><?php _e("Save", 'backup-backup'); ?></a> |
| 307 | </div> |
| 308 | </div> |
| 309 | <div class="f16 mtlll"> |
| 310 | <?php _e("Change the key (which is part of the URL above) if you suspect an unauthorized person has gained access to it.", 'backup-backup'); ?> |
| 311 | </div> |
| 312 | </div> |
| 313 | </td> |
| 314 | </tr> |
| 315 | </tbody> |
| 316 | </table> |
| 317 | </div> |
| 318 | </div> |
| 319 | |
| 320 | <?php endif; ?> |
| 321 | </div> |
| 322 | |
| 323 | <!-- --> |
| 324 | <div class="mbl mtl overlayed" style="display: none;"> |
| 325 | |
| 326 | <?php include BMI_INCLUDES . '/dashboard/templates/premium-overlay.php'; ?> |
| 327 | |
| 328 | <div class="mm fo-title bold premium-wrapper"> |
| 329 | <?php _e("WP CLI", 'backup-backup'); ?> |
| 330 | <span class="premium premium-img premium-ntt"></span> |
| 331 | </div> |
| 332 | <div class="mm mtll f16"> |
| 333 | <?php _e('Trigger backups via WP CLI.', 'backup-backup'); ?> |
| 334 | </div> |
| 335 | <div class="mm mtll"> |
| 336 | <?php _e('If you selected the "schedule backups" - option at the top of the plugin, and backups are not created, then please check out the Cron settings. Or just ask us in the forum.', 'backup-backup'); ?> |
| 337 | </div> |
| 338 | </div> |
| 339 | |
| 340 | <hr> |
| 341 | |
| 342 | <!-- --> |
| 343 | <div class="mm mbl mtl"> |
| 344 | <div class="fo-title mbll bold"> |
| 345 | <?php _e("Change functionality of the plugin", 'backup-backup'); ?> (#3) |
| 346 | </div> |
| 347 | <div class="mm mm-border"> |
| 348 | <div> |
| 349 | <span class="relative"> |
| 350 | <?php _e("Some", 'backup-backup'); ?> <b><?php _e("experimental", 'backup-backup'); ?></b> <?php _e("features", 'backup-backup'); ?>: |
| 351 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $experimental_info; ?>"></span> |
| 352 | </span> |
| 353 | </div> |
| 354 | |
| 355 | <div class="lh40"> |
| 356 | <label for="normal-timeout" class="container-radio"> |
| 357 | <input type="radio" name="experimental_features" id="normal-timeout"<?php bmi_try_checked('OTHER:USE:TIMEOUT:NORMAL'); ?> /> |
| 358 | <span class="f18"> |
| 359 | <?php _e("Method 1 - Do not change the default plugin functions - it may require adjusting your server for stable backup.", 'backup-backup'); ?> |
| 360 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $experimental_info_1; ?>"></span> |
| 361 | </span> |
| 362 | <span class="checkmark-radio" style="margin-top: 2px;"></span> |
| 363 | </label> |
| 364 | </div> |
| 365 | <div class="lh40 <?php echo ($is_curl_work) ? "": "container-radio-disabled"; ?>"> |
| 366 | <label for="experimental-timeout" class="container-radio"> |
| 367 | <input type="radio" name="experimental_features" id="experimental-timeout"<?php bmi_try_checked('OTHER:EXPERIMENT:TIMEOUT'); ?> <?php echo ($is_curl_work) ? "" : 'disabled'; ?> /> |
| 368 | <span class="f18"> |
| 369 | <?php _e("Method 2 - Bypass the web server timeout directive - the backup process may be slower.", 'backup-backup'); ?> |
| 370 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $experimental_info_2; ?>"></span> |
| 371 | </span> |
| 372 | <span class="checkmark-radio" style="margin-top: 2px;"></span> |
| 373 | </label> |
| 374 | <?php if (!$is_curl_work): ?> |
| 375 | <div class="error-msg"> |
| 376 | <span><?php _e("This feature requires cURL PHP extension installed to be used", 'backup-backup'); ?></span> |
| 377 | </div> |
| 378 | <?php endif; ?> |
| 379 | </div> |
| 380 | <div class="lh40"> |
| 381 | <label for="experimental-hard-timeout" class="container-radio"> |
| 382 | <input type="radio" name="experimental_features" id="experimental-hard-timeout"<?php bmi_try_checked('OTHER:EXPERIMENT:TIMEOUT:HARD'); ?> /> |
| 383 | <span class="f18"> |
| 384 | <?php _e("Method 3 - Bypass the web server limits - it will disable automatic backup and the possibility of running it in the background.", 'backup-backup'); ?> |
| 385 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $experimental_info_3; ?>"></span> |
| 386 | </span> |
| 387 | <span class="checkmark-radio" style="margin-top: 2px;"></span> |
| 388 | </label> |
| 389 | </div> |
| 390 | </div> |
| 391 | </div> |
| 392 | |
| 393 | <hr> |
| 394 | |
| 395 | <!-- --> |
| 396 | <div class="mbl mtl"> |
| 397 | <div class="mm fo-title mbll bold"> |
| 398 | <?php _e("Backup & Restore – PHP CLI Settings (advanced)", 'backup-backup'); ?> (#4) |
| 399 | </div> |
| 400 | |
| 401 | <div class="mm"> |
| 402 | <div class="mm mm-border"> |
| 403 | <div class="cf"> |
| 404 | <div class="left mw250 lh65"> |
| 405 | <?php _e('PHP CLI executable path:', 'backup-backup'); ?> |
| 406 | </div> |
| 407 | <div class="left"> |
| 408 | <div class=""> |
| 409 | <?php $cli_path = sanitize_text_field(bmi_get_config('OTHER:CLI:PATH')); ?> |
| 410 | <input type="text" id="cli-manual-path" class="bmi-text-input small" value="<?php echo $cli_path; ?>" placeholder="<?php _e("Automatic", 'backup-backup'); ?>" autocomplete="off" /> |
| 411 | </div> |
| 412 | <div class="f16"> |
| 413 | <?php _e('This field has no effect if PHP CLI is not available on the server or it is disabled due to settings.', 'backup-backup'); ?><br> |
| 414 | <?php _e('Please leave it empty if you do not know what you are doing, unless our support has told you what it does.', 'backup-backup'); ?> |
| 415 | </div> |
| 416 | </div> |
| 417 | </div> |
| 418 | |
| 419 | <div class="lh40"> |
| 420 | <label for="cli-disable-others"> |
| 421 | <input type="checkbox" id="cli-disable-others"<?php bmi_try_checked('OTHER:CLI:DISABLE'); ?> /> |
| 422 | <span><?php _e("Disable PHP CLI checking; try using alternate methods.", 'backup-backup'); ?></span> |
| 423 | </label> |
| 424 | </div> |
| 425 | </div> |
| 426 | </div> |
| 427 | </div> |
| 428 | |
| 429 | <hr> |
| 430 | |
| 431 | <!-- --> |
| 432 | <div class="mm mbl mtl"> |
| 433 | <div class="fo-title mbll bold"> |
| 434 | <?php _e("Change basic functions of the plugin", 'backup-backup'); ?> (#5) |
| 435 | </div> |
| 436 | <div class="mm mm-border"> |
| 437 | |
| 438 | <div> |
| 439 | <span class="relative"> |
| 440 | <?php printf(__("Backup %sdownloading%s technique", 'backup-backup'), '<b>', '</b>'); ?>: |
| 441 | </span> |
| 442 | </div> |
| 443 | <div class="lh40"> |
| 444 | <label for="download-technique"> |
| 445 | <input type="checkbox" id="download-technique"<?php bmi_try_checked('OTHER:DOWNLOAD:DIRECT'); ?> /> |
| 446 | <span><?php _e("Use direct downloading - it will remove .htaccess protection right before the download (it can solve download issues).", 'backup-backup'); ?></span> |
| 447 | </label> |
| 448 | </div> |
| 449 | |
| 450 | <div class="mtll"> |
| 451 | <span class="relative"> |
| 452 | <?php _e("Additional actions during", 'backup-backup'); ?> <b><?php _e("restoration", 'backup-backup'); ?></b>: |
| 453 | </span> |
| 454 | </div> |
| 455 | <div class="lh40"> |
| 456 | <label for="remove-assets-before-restore"> |
| 457 | <input type="checkbox" id="remove-assets-before-restore"<?php bmi_try_checked('OTHER:RESTORE:BEFORE:CLEANUP'); ?> /> |
| 458 | <span class="relative"><?php _e("Remove existing plugins and themes before migration.", 'backup-backup'); ?><span class="bmi-info-icon tooltip" tooltip="<?php echo $cleanupbeforerestore; ?>"></span></span> |
| 459 | </label> |
| 460 | </div> |
| 461 | </div> |
| 462 | </div> |
| 463 | |
| 464 | <hr> |
| 465 | |
| 466 | <!-- --> |
| 467 | <div class="mm mbl mtl"> |
| 468 | |
| 469 | <div class="fo-title bold"> |
| 470 | <?php _e("Database import/export settings", 'backup-backup'); ?> (#6) |
| 471 | </div> |
| 472 | |
| 473 | <div class="mbll"> |
| 474 | <span class="relative"> |
| 475 | <?php _e("Adjust the amount of queries per batch for your ", 'backup-backup'); ?> <b><?php _e("database", 'backup-backup'); ?></b> |
| 476 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $db_query_info; ?>"></span> |
| 477 | </span><br> |
| 478 | </div> |
| 479 | |
| 480 | <div class="mm mm-border"> |
| 481 | |
| 482 | <div class="lh40 cf"> |
| 483 | <div class="left mw250 lh65"> |
| 484 | <?php _e("Queries per batch for import/export: ", 'backup-backup'); ?> |
| 485 | </div> |
| 486 | <div class="left"> |
| 487 | <?php $query_amount = sanitize_text_field(bmi_get_config('OTHER:DB:QUERIES')); ?> |
| 488 | <label for="db_queries_amount"> |
| 489 | <input type="number" id="db_queries_amount" class="bmi-text-input small" value="<?php echo $query_amount; ?>" placeholder="2000" min="15" max="15000" /> |
| 490 | </label> |
| 491 | </div> |
| 492 | </div> |
| 493 | |
| 494 | <div class="lh40 cf"> |
| 495 | <div class="left mw250 lh65"> |
| 496 | <?php _e("Search & Replace max Page Size: ", 'backup-backup'); ?> |
| 497 | </div> |
| 498 | <div class="left"> |
| 499 | <?php $sr_max_amount = sanitize_text_field(bmi_get_config('OTHER:DB:SEARCHREPLACE:MAX')); ?> |
| 500 | <label for="db_search_replace_max"> |
| 501 | <input type="number" id="db_search_replace_max" class="bmi-text-input small" value="<?php echo $sr_max_amount; ?>" placeholder="300" min="10" max="30000" /> |
| 502 | </label> |
| 503 | </div> |
| 504 | </div> |
| 505 | |
| 506 | <div class="lh40 cf"> |
| 507 | <div class="left mw250 lh65"> |
| 508 | <?php _e("File limit for extraction batching (set to \"auto\" for automatic choice): ", 'backup-backup'); ?> |
| 509 | </div> |
| 510 | <div class="left"> |
| 511 | <?php $fel_max_amount = sanitize_text_field(bmi_get_config('OTHER:FILE:EXTRACT:MAX')); ?> |
| 512 | <label for="file_limit_extraction_max"> |
| 513 | <input type="text" autocomplete="off" id="file_limit_extraction_max" class="bmi-text-input small" value="<?php echo $fel_max_amount; ?>" placeholder="auto" min="50" max="20000" /> |
| 514 | </label> |
| 515 | </div> |
| 516 | </div> |
| 517 | |
| 518 | <div class="lh40"> |
| 519 | <label for="bmi-restore-splitting"> |
| 520 | <input type="checkbox" id="bmi-restore-splitting"<?php bmi_try_checked('OTHER:RESTORE:SPLITTING'); ?> /> |
| 521 | <span class="relative"><?php _e("Enable SQL splitting for the migration process.", 'backup-backup'); ?> <span class="bmi-info-icon tooltip" tooltip="<?php echo $sqlsplitting; ?>"></span></span> |
| 522 | </label> |
| 523 | </div> |
| 524 | |
| 525 | <div class="lh40"> |
| 526 | <label for="bmi-db-v3-restore-engine"> |
| 527 | <input type="checkbox" id="bmi-db-v3-restore-engine"<?php bmi_try_checked('OTHER:RESTORE:DB:V3'); ?> /> |
| 528 | <span><?php _e("Restoration: Perform new Search & Replace after database import.", 'backup-backup'); ?></span> |
| 529 | </label> |
| 530 | </div> |
| 531 | |
| 532 | <div class="lh40"> |
| 533 | <label for="bmi-db-batching-backup"> |
| 534 | <input type="checkbox" id="bmi-db-batching-backup"<?php bmi_try_checked('OTHER:BACKUP:DB:BATCHING'); ?> /> |
| 535 | <span class="relative"> |
| 536 | <?php _e("Use batching technique for database export (backup).", 'backup-backup'); ?> |
| 537 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $dbbatching; ?>"></span> |
| 538 | </span> |
| 539 | </label> |
| 540 | </div> |
| 541 | |
| 542 | <div class="lh40"> |
| 543 | <label for="bmi-db-single-file-backup"> |
| 544 | <input type="checkbox" id="bmi-db-single-file-backup"<?php bmi_try_checked('OTHER:BACKUP:DB:SINGLE:FILE'); ?> /> |
| 545 | <span class="relative"> |
| 546 | <?php _e("Deprecated: Force the plugin to backup all tables into one file.", 'backup-backup'); ?> |
| 547 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $deprecatedsinglefile; ?>"></span> |
| 548 | </span> |
| 549 | </label> |
| 550 | </div> |
| 551 | |
| 552 | </div> |
| 553 | |
| 554 | </div> |
| 555 | |
| 556 | <hr> |
| 557 | |
| 558 | <!-- --> |
| 559 | <div class="mm mbl mtl"> |
| 560 | |
| 561 | <div class="fo-title mbll bold"> |
| 562 | <?php _e("Trust settings", 'backup-backup'); ?> (#7) |
| 563 | </div> |
| 564 | |
| 565 | <div class="mm mm-border"> |
| 566 | <div class="lh40"> |
| 567 | <label for="bmi-do-not-check-free-space-backup"> |
| 568 | <input type="checkbox" id="bmi-do-not-check-free-space-backup"<?php bmi_try_checked('OTHER:BACKUP:SPACE:CHECKING'); ?> /> |
| 569 | <span class="relative"> |
| 570 | <?php _e("Disable space checking during backup and restore process - please read additional info.", 'backup-backup'); ?> |
| 571 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $disabledspacechecking; ?>"></span> |
| 572 | </span> |
| 573 | </label> |
| 574 | </div> |
| 575 | </div> |
| 576 | |
| 577 | </div> |
| 578 | |
| 579 | <hr> |
| 580 | |
| 581 | <!-- --> |
| 582 | <div class="mm mbl mtl"> |
| 583 | |
| 584 | <div class="fo-title bold"> |
| 585 | <?php _e("Clean-ups", 'backup-backup'); ?> (#8) |
| 586 | </div> |
| 587 | |
| 588 | <div class="mbll"> |
| 589 | <span class="relative"> |
| 590 | <?php _e("When this plugins is", 'backup-backup'); ?> <b><?php _e("uninstalled:", 'backup-backup'); ?></b> |
| 591 | <span class="bmi-info-icon tooltip" tooltip="<?php echo $deinstalled_info; ?>"></span> |
| 592 | </span><br> |
| 593 | </div> |
| 594 | |
| 595 | <div class="mm mm-border"> |
| 596 | <div class="lh40"> |
| 597 | <label for="uninstalling-configs"> |
| 598 | <input type="checkbox" id="uninstalling-configs"<?php bmi_try_checked('OTHER:UNINSTALL:CONFIGS'); ?> /> |
| 599 | <span><?php _e("Delete all plugin settings (this means that if you install it again, you will have to configure it again).", 'backup-backup'); ?></span> |
| 600 | </label> |
| 601 | </div> |
| 602 | <div class="lh40"> |
| 603 | <label for="uninstalling-backups"> |
| 604 | <input type="checkbox" id="uninstalling-backups"<?php bmi_try_checked('OTHER:UNINSTALL:BACKUPS'); ?> /> |
| 605 | <span><?php _e("Delete all backups (created by this plugin)", 'backup-backup'); ?></span> |
| 606 | </label> |
| 607 | </div> |
| 608 | </div> |
| 609 | |
| 610 | </div> |
| 611 | |
| 612 | <hr> |
| 613 | |
| 614 | <div class="mm mbl mtl"> |
| 615 | <div class="fo-title bold"> |
| 616 | <?php _e("Other Premium Options", 'backup-backup'); ?> (#9) |
| 617 | </div> |
| 618 | |
| 619 | <div class="mtll"> |
| 620 | <span class="relative"> |
| 621 | <?php _e("Display settings", 'backup-backup'); ?>: |
| 622 | </span> |
| 623 | </div> |
| 624 | <div class="lh40"> |
| 625 | <label for="hide-promotional-bmi-banners"> |
| 626 | <input type="checkbox"<?php echo ($pros) ? "" : ' class="not-allowed" disabled' ?> id="hide-promotional-bmi-banners"<?php bmi_try_checked('OTHER:PROMOTIONAL:DISPLAY'); ?> /> |
| 627 | <span class="relative<?php echo ($pros) ? "" : ' not-allowed' ?>"><?php _e("Hide promotional banners and carousel.", 'backup-backup'); ?> |
| 628 | <span class="inline premium-wrapper<?php echo (!$pros) ? "" : ' is-pro' ?>" tooltip="<?php echo esc_attr( $bmiHidePromos ); ?>"> |
| 629 | <span class="premium premium-img premium-ntt"></span> |
| 630 | </span> |
| 631 | </span> |
| 632 | </label> |
| 633 | </div> |
| 634 | </div> |
| 635 | |
| 636 | <hr> |
| 637 | |
| 638 | <!-- --> |
| 639 | <div class="mm mtll"> |
| 640 | <?php _e("If you're looking for other options not listed above, check out the", 'backup-backup'); ?> <a href="#" class="secondary hoverable nodec collapser-openner" data-el="#troubleshooting-chapter"><?php _e("troubleshooting", 'backup-backup'); ?></a> <?php _e("chapter as they might be there.", 'backup-backup'); ?> |
| 641 | </div> |
| 642 | |
| 643 | </div> |
| 644 | |
| 645 | <?php include BMI_INCLUDES . '/dashboard/chapter/save-button.php'; ?> |
| 646 |