Initial commit: Atomaste website
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access.');
|
||||
|
||||
global $updraftplus;
|
||||
|
||||
$premium_link = apply_filters('updraftplus_com_link', 'https://teamupdraft.com/updraftplus/pricing/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=take-a-new-backup&utm_creative_format=text');
|
||||
|
||||
$free_ret = '<em>'.__('All WordPress tables will be backed up.', 'updraftplus').' <a href="'.esc_url($premium_link).'">'. __('With UpdraftPlus Premium, you can choose to backup non-WordPress tables, backup only specified tables, and backup other databases too.', 'updraftplus').'</a></em>'."\n";
|
||||
?>
|
||||
|
||||
<p>
|
||||
<h3 class="new-backups-only"><?php esc_html_e('Take a new backup', 'updraftplus');?></h3>
|
||||
<h3 class="incremental-backups-only"><?php esc_html_e('Take an incremental backup', 'updraftplus');?></h3>
|
||||
</p>
|
||||
|
||||
<div class="incremental-free-only">
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %s: "UpdraftPlus Premiums" as the product name that has incremental backups feature */
|
||||
echo sprintf(esc_html__('Incremental backups are a feature of %s (upgrade by following this link).', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/pricing/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=incremental-backup&utm_creative_format=text" target="_blank">UpdraftPlus Premium').'</a>';
|
||||
?>
|
||||
</a>
|
||||
<br>
|
||||
<a href="https://teamupdraft.com/updraftplus/features/wordpress-incremental-backup?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=take-a-new-backup&utm_creative_format=text" target="_blank"><?php esc_html_e('Find out more about incremental backups here.', 'updraftplus'); ?></a></p>
|
||||
</div>
|
||||
|
||||
<p id="backupnow_database_container" class="new-backups-only">
|
||||
|
||||
<input type="checkbox" id="backupnow_includedb" checked="checked">
|
||||
<label for="backupnow_includedb"><?php esc_html_e('Include your database in the backup', 'updraftplus'); ?></label>
|
||||
|
||||
(<a href="#" id="backupnow_database_showmoreoptions">...</a>)<br>
|
||||
|
||||
<div id="backupnow_database_moreoptions" class="updraft-hidden" style="display:none;">
|
||||
|
||||
<?php
|
||||
echo apply_filters('updraft_backupnow_database_showmoreoptions', $free_ret, '');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- needs to be presented in html
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="new-backups-only" id="backupnow_includefiles" checked="checked">
|
||||
<label id="backupnow_includefiles_label" for="backupnow_includefiles"><?php esc_html_e("Include your files in the backup", 'updraftplus'); ?></label>
|
||||
|
||||
(<a href="<?php echo esc_url($updraftplus->get_current_clean_url()); ?>" id="backupnow_includefiles_showmoreoptions">...</a>)<br>
|
||||
|
||||
<div id="backupnow_includefiles_moreoptions" class="updraft-hidden" style="display:none;">
|
||||
<em><?php esc_html_e('Your saved settings also affect what is backed up - e.g. files excluded.', 'updraftplus'); ?></em><br>
|
||||
|
||||
<?php
|
||||
echo $updraftplus_admin->files_selector_widgetry('backupnow_files_', false, 'sometimes');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- needs to be presented in html
|
||||
?>
|
||||
</div>
|
||||
|
||||
</p>
|
||||
|
||||
<div class="backupnow_modal_afterfileoptions">
|
||||
<?php
|
||||
echo apply_filters('updraft_backupnow_modal_afterfileoptions', '', '');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- needs to be presented in html
|
||||
?>
|
||||
</div>
|
||||
|
||||
<span id="backupnow_remote_container"><?php echo $this->backup_now_remote_message(); ?></span>
|
||||
|
||||
<p id="backupnow_always_keep_container" class="new-backups-only">
|
||||
<input type="checkbox" id="always_keep">
|
||||
<label for="always_keep"><?php esc_html_e('Only allow this backup to be deleted manually (i.e. keep it even if retention limits are hit).', 'updraftplus'); ?></label>
|
||||
</p>
|
||||
|
||||
<div class="backupnow_modal_afteroptions">
|
||||
<?php
|
||||
echo apply_filters('updraft_backupnow_modal_afteroptions', '', '');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- needs to be presented in html
|
||||
?>
|
||||
</div>
|
||||
<p class="incremental-backups-only">
|
||||
<a href="https://updraftplus.com/tell-me-more-about-incremental-backups/" target="_blank"><?php esc_html_e('Find out more about incremental backups here.', 'updraftplus'); ?></a>
|
||||
</p>
|
||||
@@ -0,0 +1,105 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
|
||||
<div id="updraft-message-modal" title="UpdraftPlus">
|
||||
<div id="updraft-message-modal-innards">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="updraft-delete-modal" title="<?php esc_html_e('Delete backup set', 'updraftplus');?>">
|
||||
<form id="updraft_delete_form" method="post">
|
||||
<p id="updraft_delete_question_singular">
|
||||
<?php printf(esc_html__('Are you sure that you wish to remove %s from UpdraftPlus?', 'updraftplus'), esc_html__('this backup set', 'updraftplus')); ?>
|
||||
</p>
|
||||
<p id="updraft_delete_question_plural" class="updraft-hidden" style="display:none;">
|
||||
<?php printf(esc_html__('Are you sure that you wish to remove %s from UpdraftPlus?', 'updraftplus'), esc_html__('these backup sets', 'updraftplus')); ?>
|
||||
</p>
|
||||
<fieldset>
|
||||
<input type="hidden" name="nonce" value="<?php echo esc_attr(wp_create_nonce('updraftplus-credentialtest-nonce'));?>">
|
||||
<input type="hidden" name="action" value="updraft_ajax">
|
||||
<input type="hidden" name="subaction" value="deleteset">
|
||||
<input type="hidden" name="backup_timestamp" value="0" id="updraft_delete_timestamp">
|
||||
<input type="hidden" name="backup_nonce" value="0" id="updraft_delete_nonce">
|
||||
<div id="updraft-delete-remote-section">
|
||||
<input checked="checked" type="checkbox" name="delete_remote" id="updraft_delete_remote" value="1"> <label for="updraft_delete_remote"><?php esc_html_e('Also delete from remote storage', 'updraftplus');?></label><br>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="updraft_restore_container" style="display: none;">
|
||||
<div class="updraft_restore_main--header"><?php esc_html_e('UpdraftPlus Restoration', 'updraftplus'); ?> — <strong><?php esc_html_e('Restore files from', 'updraftplus');?>:</strong> <span class="updraft_restore_date"></span></div>
|
||||
<div class="updraft_restore_main">
|
||||
<div id="updraft-restore-modal" title="UpdraftPlus - <?php esc_html_e('Restore backup', 'updraftplus');?>">
|
||||
|
||||
<div class="updraft-restore-modal--stage updraft--flex" id="updraft-restore-modal-stage2">
|
||||
<div class="updraft--two-halves">
|
||||
<p><strong><?php esc_html_e('Retrieving (if necessary) and preparing backup files...', 'updraftplus');?></strong></p>
|
||||
<div id="updraft-restore-modal-stage2a"></div>
|
||||
<div id="ud_downloadstatus2"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="updraft-restore-modal--stage updraft--flex" id="updraft-restore-modal-stage1">
|
||||
<div class="updraft--one-half updraft-color--very-light-grey">
|
||||
<p><?php echo esc_html(__("Restoring will replace this site's themes, plugins, uploads, database and/or other content directories (according to what is contained in the backup set, and your selection).", 'updraftplus').' '.__('Choose the components to restore', 'updraftplus')); ?>:</p>
|
||||
<p><em><a href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/faqs/what-should-i-understand-before-undertaking-a-restoration/"));?>" target="_blank"><?php esc_html_e('Do read this helpful article of useful things to know before restoring.', 'updraftplus');?></a></em></p>
|
||||
</div>
|
||||
<div class="updraft--one-half">
|
||||
<form id="updraft_restore_form" method="post">
|
||||
<fieldset>
|
||||
<input type="hidden" name="action" value="updraft_restore">
|
||||
<input type="hidden" name="updraftplus_ajax_restore" value="start_ajax_restore">
|
||||
<input type="hidden" name="backup_timestamp" value="0" id="updraft_restore_timestamp">
|
||||
<input type="hidden" name="meta_foreign" value="0" id="updraft_restore_meta_foreign">
|
||||
<input type="hidden" name="updraft_restorer_backup_info" value="" id="updraft_restorer_backup_info">
|
||||
<input type="hidden" name="updraft_restorer_restore_options" value="" id="updraft_restorer_restore_options">
|
||||
<?php
|
||||
|
||||
// The 'off' check is for badly configured setups - http://wordpress.org/support/topic/plugin-wp-super-cache-warning-php-safe-mode-enabled-but-safe-mode-is-off
|
||||
if ($updraftplus->detect_safe_mode()) {
|
||||
echo wp_kses_post("<p><em>".__("Your web server has PHP's so-called safe_mode active.", 'updraftplus').' '.__('This makes time-outs much more likely.', 'updraftplus').' '.__('You are recommended to turn safe_mode off, or to restore only one entity at a time', 'updraftplus').' <a href="'.esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/faqs/i-want-to-restore-but-have-either-cannot-or-have-failed-to-do-so-from-the-wp-admin-console/")).'" target="_blank">'.__('or to restore manually', 'updraftplus').'.</a></em></p>');
|
||||
}
|
||||
?>
|
||||
<p><strong><?php esc_html_e('Choose the components to restore:', 'updraftplus'); ?></strong></p>
|
||||
<?php
|
||||
$backupable_entities = $updraftplus->get_backupable_file_entities(true, true);
|
||||
|
||||
foreach ($backupable_entities as $type => $info) {
|
||||
if (!isset($info['restorable']) || true == $info['restorable']) {
|
||||
$sdescrip = isset($info['shortdescription']) ? $info['shortdescription'] : $info['description'];
|
||||
echo '<div class="updraft-restore-item"><input id="updraft_restore_'.esc_attr($type).'" type="checkbox" name="updraft_restore[]" value="'.esc_attr($type).'"> <label id="updraft_restore_label_'.esc_attr($type).'" for="updraft_restore_'.esc_attr($type).'">'.esc_html($sdescrip).'</label><br>';
|
||||
do_action("updraftplus_restore_form_$type");
|
||||
echo '</div>';
|
||||
} else {
|
||||
$sdescrip = isset($info['shortdescription']) ? $info['shortdescription'] : $info['description'];
|
||||
echo "<div class=\"updraft-restore-item cannot-restore\"><em>".esc_html(sprintf(__('The following entity cannot be restored automatically: "%s".', 'updraftplus'), $sdescrip))." ".esc_html__('You will need to restore it manually.', 'updraftplus')."</em><br>".'<input id="updraft_restore_'.esc_attr($type).'" type="hidden" name="updraft_restore[]" value="'.esc_attr($type).'">';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="updraft-restore-item">
|
||||
<input id="updraft_restore_db" type="checkbox" name="updraft_restore[]" value="db"> <label for="updraft_restore_db"><?php esc_html_e('Database', 'updraftplus'); ?></label>
|
||||
<div id="updraft_restorer_dboptions" class="udp-notice below-h2 updraft-restore-option updraft-hidden"><h4><?php echo sprintf(esc_html__('%s restoration options:', 'updraftplus'), esc_html__('Database', 'updraftplus')); ?></h4>
|
||||
<?php
|
||||
do_action("updraftplus_restore_form_db");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="updraft-restore--footer">
|
||||
<button type="button" class="button updraft-restore--cancel"><?php esc_html_e('Cancel', 'updraftplus'); ?></button>
|
||||
<ul class="updraft-restore--stages">
|
||||
<li class="active"><span>1. <?php esc_html_e('Component selection', 'updraftplus'); ?></span></li>
|
||||
<li><span>2. <?php esc_html_e('Verifications', 'updraftplus'); ?></span></li>
|
||||
<li><span>3. <?php esc_html_e('Restoration', 'updraftplus'); ?></span></li>
|
||||
</ul>
|
||||
<button type="button" class="button button-primary updraft-restore--next-step"><?php esc_html_e('Next', 'updraftplus'); ?></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
|
||||
// $options is passed in
|
||||
$default_options = array(
|
||||
'include_uploader' => true,
|
||||
'include_opera_warning' => false,
|
||||
'will_immediately_calculate_disk_space' => true,
|
||||
'include_whitespace_warning' => true,
|
||||
'include_header' => false,
|
||||
);
|
||||
|
||||
foreach ($default_options as $k => $v) {
|
||||
if (!isset($options[$k])) $options[$k] = $v;
|
||||
}
|
||||
|
||||
// $backup_history is passed in
|
||||
if (false === $backup_history) $backup_history = UpdraftPlus_Backup_History::get_history();
|
||||
|
||||
if (!empty($options['include_header'])) echo '<h2>'.esc_html__('Existing backups', 'updraftplus').' ('.count($backup_history).')</h2>';
|
||||
|
||||
?>
|
||||
<div class="download-backups form-table">
|
||||
<?php if (!empty($options['include_whitespace_warning'])) { ?>
|
||||
<p class="ud-whitespace-warning updraft-hidden" style="display:none;">
|
||||
<?php echo wp_kses_post('<strong>'.__('Warning', 'updraftplus').':</strong> '.__('Your WordPress installation has a problem with outputting extra whitespace.', 'updraftplus').' '.__('This can corrupt backups that you download from here.', 'updraftplus').' <a href="'.esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/problems-with-extra-white-space/")).'" target="_blank">'.__('Follow this link for more information', 'updraftplus').'</a>');?>
|
||||
</p>
|
||||
<?php }
|
||||
$bom_warning = $updraftplus_admin->get_bom_warning_text();
|
||||
if (!empty($bom_warning)) {
|
||||
?>
|
||||
<p class="ud-bom-warning">
|
||||
<?php echo wp_kses_post($bom_warning); ?>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<ul class="updraft-disk-space-actions">
|
||||
<?php
|
||||
echo wp_kses_post(UpdraftPlus_Filesystem_Functions::web_server_disk_space($options['will_immediately_calculate_disk_space']));
|
||||
?>
|
||||
|
||||
<li class="updraft-server-scan">
|
||||
<strong><?php esc_html_e('More tasks:', 'updraftplus');?></strong>
|
||||
<?php
|
||||
if (!empty($options['include_uploader'])) {
|
||||
?>
|
||||
<a class="updraft_uploader_toggle" href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>"><?php esc_html_e('Upload backup files', 'updraftplus'); ?></a> |
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>" class="updraft_rescan_local" title="<?php echo esc_attr(__('Press here to look inside your UpdraftPlus directory (in your web hosting space) for any new backup sets that you have uploaded.', 'updraftplus').' '.__('The location of this directory is set in the expert settings, in the Settings tab.', 'updraftplus')); ?>"><?php esc_html_e('Rescan local folder for new backup sets', 'updraftplus');?></a>
|
||||
| <a href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>" class="updraft_rescan_remote" title="<?php esc_html_e('Press here to look inside your remote storage methods for any existing backup sets (from any site, if they are stored in the same folder).', 'updraftplus'); ?>"><?php esc_html_e('Rescan remote storage', 'updraftplus');?></a>
|
||||
</li>
|
||||
<?php if (!empty($options['include_opera_warning'])) { ?>
|
||||
<li class="updraft-opera-warning"><strong><?php esc_html_e('Opera web browser', 'updraftplus');?>:</strong> <?php esc_html_e('If you are using this, then turn Turbo/Road mode off.', 'updraftplus');?></li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
if (!empty($options['include_uploader'])) {
|
||||
?>
|
||||
|
||||
<div id="updraft-plupload-modal" style="display:none;" title="<?php echo esc_attr(__('UpdraftPlus - Upload backup files', 'updraftplus')); ?>">
|
||||
<p class="upload"><em><?php echo esc_html(__("Upload files into UpdraftPlus.", 'updraftplus').' '.__('Or, you can place them manually into your UpdraftPlus directory (usually wp-content/updraft), e.g. via FTP, and then use the "rescan" link above.', 'updraftplus'));?></em></p>
|
||||
<?php
|
||||
if (version_compare($updraftplus->get_wordpress_version(), '3.3', '<')) {
|
||||
echo wp_kses_post('<em>'.sprintf(__('This feature requires %s version %s or later', 'updraftplus'), 'WordPress', '3.3').'</em>');
|
||||
} else {
|
||||
?>
|
||||
<div id="plupload-upload-ui">
|
||||
<div id="drag-drop-area">
|
||||
<div class="drag-drop-inside">
|
||||
<p class="drag-drop-info"><?php esc_html_e('Drop backup files here', 'updraftplus'); ?></p>
|
||||
<p><?php echo esc_html_x('or', 'Uploader: Drop backup files here - or - Select Files'); ?></p>
|
||||
<p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" /></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="filelist">
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="ud_downloadstatus"></div>
|
||||
<div class="updraft_existing_backups">
|
||||
<?php
|
||||
echo UpdraftPlus_Backup_History::existing_backup_table($backup_history);// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- aleady escaped, and wp_kses() cannot be used due to included onclick attribute.
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
<div id="updraft_exclude_modal" title="UpdraftPlus - <?php esc_html_e('Exclude files/directories', 'updraftplus');?>">
|
||||
<input type="hidden" id="updraft_exclude_modal_for" value=""/>
|
||||
<input type="hidden" id="updraft_exclude_modal_path" value=""/>
|
||||
<div id="updraft_exclude_modal_main">
|
||||
<p><?php esc_html_e("Select a way to exclude files or directories from the backup", 'updraftplus');?>:</p>
|
||||
<ol class="updraft_exclude_actions_list">
|
||||
<li>
|
||||
<a href="#" class="updraft-exclude-link" data-panel="file-dir"><?php esc_html_e('File/directory', 'updraftplus');?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="updraft-exclude-link" data-panel="extension"><?php esc_html_e('All files with this extension', 'updraftplus');?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="updraft-exclude-link" data-panel="begin-with"><?php esc_html_e('All files beginning with given characters', 'updraftplus');?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="updraft-exclude-link" data-panel="contain-clause"><?php esc_html_e('Files/Directories containing the given characters in their names', 'updraftplus');?></a>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<?php $panel = 'file-dir';?>
|
||||
<div class="updraft-exclude-panel updraft-hidden" data-panel="<?php echo esc_attr($panel);?>" style="display:none;">
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-heading.php', false, array('title' => __('File/directory', 'updraftplus')));
|
||||
?>
|
||||
<div class="updraft-add-dir-file-cont">
|
||||
<div id="updraft_exclude_jstree_info_container" class="updraft-jstree-info-container">
|
||||
<p>
|
||||
<span id="updraft_exclude_jstree_path_text">
|
||||
<?php esc_html_e('Select a file/folder which you would like to exclude', 'updraftplus'); ?>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div id="updraft_exclude_files_jstree_container">
|
||||
<div id="updraft_exclude_files_folders_jstree" class="updraft_jstree"></div>
|
||||
</div>
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-submit.php', false, array('panel' => $panel));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $panel = 'extension';?>
|
||||
<div class="updraft-exclude-panel updraft-hidden" data-panel="<?php echo esc_attr($panel);?>" style="display:none;">
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-heading.php', false, array('title' => __('All files with this extension', 'updraftplus')));
|
||||
?>
|
||||
<label for="updraft_exclude_extension_field"><?php esc_html_e('All files with this extension', 'updraftplus');?>: </label>
|
||||
<input type="text" name="updraft_exclude_extension_field" id="updraft_exclude_extension_field" size="25" placeholder="<?php esc_html_e('Type an extension like zip', 'updraftplus');?>" />
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-submit.php', false, array('panel' => $panel));
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php $panel = 'begin-with';?>
|
||||
<div class="updraft-exclude-panel updraft-hidden" data-panel="<?php echo esc_attr($panel);?>" style="display:none;">
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-heading.php', false, array('title' => __('All files beginning with these characters', 'updraftplus')));
|
||||
?>
|
||||
<label for="updraft_exclude_prefix_field"><?php esc_html_e('All files beginning with these characters', 'updraftplus');?>: </label>
|
||||
<input type="text" name="updraft_exclude_prefix_field" id="updraft_exclude_prefix_field" size="25" placeholder="<?php esc_html_e('Type a file prefix', 'updraftplus');?>" />
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-submit.php', false, array('panel' => $panel));
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php $panel = 'contain-clause';?>
|
||||
<div class="updraft-exclude-panel updraft-hidden" data-panel="<?php echo esc_attr($panel);?>" style="display:none;">
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-heading.php', false, array('title' => __('All files/directories containing the given characters in their names', 'updraftplus')));
|
||||
?>
|
||||
<div id="updraft_exclude_jstree_info_container" class="updraft-jstree-info-container">
|
||||
<p>
|
||||
<span id="updraft_exclude_jstree_path_text">
|
||||
<?php esc_html_e('Select the folder in which the files or sub-directories you would like to exclude are located', 'updraftplus'); ?>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div id="updraft_exclude_files_jstree_container">
|
||||
<div id="updraft_exclude_files_folders_wildcards_jstree" class="updraft_jstree"></div>
|
||||
</div>
|
||||
<label for="updraft_exclude_prefix_field" class="contain-clause-sub-label"><?php esc_html_e('All files/directories containing ', 'updraftplus');?></label>
|
||||
<div class="clause-input-container">
|
||||
<input class="wildcards-input" type="text" size="25" placeholder="<?php esc_html_e('these characters', 'updraftplus');?>" />
|
||||
<select class="clause-options wildcards-input">
|
||||
<option value="beginning"><?php esc_html_e('at the beginning of their names', 'updraftplus');?></option>
|
||||
<option value="middle"><?php esc_html_e('anywhere in their names', 'updraftplus');?></option>
|
||||
<option value="end"><?php esc_html_e('at the end of their names', 'updraftplus');?></option>
|
||||
</select>
|
||||
</div>
|
||||
<?php
|
||||
$updraftplus_admin->include_template('wp-admin/settings/exclude-settings-modal/exclude-panel-submit.php', false, array('panel' => $panel, 'text_button' => __('Add exclusion rule', 'updraftplus')));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
<div class="updraft-exclude-panel-heading">
|
||||
<h3><?php echo esc_html($title);?></h3>
|
||||
<a href="#" class="updraft-exclude-modal-reset" style="display: inline;"><?php esc_html_e('Back...', 'updraftplus');?></a>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
<br>
|
||||
<input type="button" class="updraft-exclude-submit button-primary" value="<?php echo esc_attr(empty($text_button) ? __('Add an exclusion rule', 'updraftplus') : $text_button);?>" data-panel="<?php echo esc_attr($panel);?>"/>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
|
||||
$accept = apply_filters('updraftplus_accept_archivename', array());
|
||||
if (!is_array($accept)) $accept = array();
|
||||
$image_folder = UPDRAFTPLUS_DIR.'/images/icons/';
|
||||
$image_folder_url = UPDRAFTPLUS_URL.'/images/icons/';
|
||||
|
||||
?>
|
||||
<table class="existing-backups-table wp-list-table widefat striped">
|
||||
<thead>
|
||||
<tr style="margin-bottom: 4px;">
|
||||
<?php if (!defined('UPDRAFTCENTRAL_COMMAND')) : ?>
|
||||
<th class="check-column"><label class="screen-reader-text" for="cb-select-all"><?php esc_html_e('Select All'); ?></label><input id="cb-select-all" type="checkbox"></th>
|
||||
<?php endif; ?>
|
||||
<th class="backup-date"><?php esc_html_e('Backup date', 'updraftplus');?></th>
|
||||
<th class="backup-data"><?php esc_html_e('Backup data (click to download)', 'updraftplus');?></th>
|
||||
<th class="updraft_backup_actions"><?php esc_html_e('Actions', 'updraftplus');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTCENTRAL_COMMAND') && $backup_count <= count($backup_history) - 1) {
|
||||
$backup_history = array_slice($backup_history, 0, $backup_count, true);
|
||||
$show_paging_actions = true;
|
||||
}
|
||||
|
||||
foreach ($backup_history as $key => $backup) {
|
||||
|
||||
$remote_sent = !empty($backup['service']) && ((is_array($backup['service']) && in_array('remotesend', $backup['service'])) || 'remotesend' === $backup['service']);
|
||||
|
||||
// https://core.trac.wordpress.org/ticket/25331 explains why the following line is wrong
|
||||
// $pretty_date = date_i18n('Y-m-d G:i',$key);
|
||||
// Convert to blog time zone
|
||||
// $pretty_date = get_date_from_gmt(gmdate('Y-m-d H:i:s', (int)$key), 'Y-m-d G:i');
|
||||
$pretty_date = get_date_from_gmt(gmdate('Y-m-d H:i:s', (int) $key), 'M d, Y G:i');
|
||||
|
||||
$esc_pretty_date = esc_attr($pretty_date);
|
||||
$entities = '';
|
||||
|
||||
$nonce = $backup['nonce'];
|
||||
|
||||
$jobdata = isset($backup['jobdata']) ? $backup['jobdata'] : $updraftplus->jobdata_getarray($nonce);
|
||||
|
||||
$rawbackup = $updraftplus_admin->raw_backup_info($backup_history, $key, $nonce, $jobdata);
|
||||
|
||||
$date_label = $updraftplus_admin->date_label($pretty_date, $key, $backup, $jobdata, $nonce);
|
||||
|
||||
// Remote backups with no log result in useless empty rows. However, not showing anything messes up the "Existing backups (14)" display, until we tweak that code to count differently
|
||||
// if ($remote_sent && !$log_button) continue;
|
||||
|
||||
?>
|
||||
<tr class="updraft_existing_backups_row updraft_existing_backups_row_<?php echo esc_attr($key);?>" data-key="<?php echo esc_attr($key);?>" data-nonce="<?php echo esc_attr($nonce);?>">
|
||||
<?php if (!defined('UPDRAFTCENTRAL_COMMAND')) : ?>
|
||||
<td class="backup-select">
|
||||
<label class="screen-reader-text"><?php esc_html_e('Select All'); ?></label><input type="checkbox">
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<td class="updraft_existingbackup_date " data-nonce="<?php echo esc_attr(wp_create_nonce("updraftplus-credentialtest-nonce")); ?>" data-timestamp="<?php echo esc_attr($key); ?>" data-label="<?php esc_attr_e('Backup date', 'updraftplus');?>">
|
||||
<div tabindex="0" class="backup_date_label">
|
||||
<?php
|
||||
echo wp_kses_post($date_label);
|
||||
if (!empty($backup['always_keep'])) {
|
||||
$wp_version = $updraftplus->get_wordpress_version();
|
||||
if (version_compare($wp_version, '3.8.0', '<')) {
|
||||
$image_url = $image_folder_url.'lock.png';
|
||||
?>
|
||||
<img class="stored_icon" src="<?php echo esc_url($image_url);?>" title="<?php esc_attr_e('Only allow this backup to be deleted manually (i.e. keep it even if retention limits are hit).', 'updraftplus');?>">
|
||||
<?php
|
||||
} else {
|
||||
echo '<span class="dashicons dashicons-lock" title="'.esc_attr(__('Only allow this backup to be deleted manually (i.e. keep it even if retention limits are hit).', 'updraftplus')).'"></span>';
|
||||
}
|
||||
}
|
||||
if (!isset($backup['service'])) $backup['service'] = array();
|
||||
if (!is_array($backup['service'])) $backup['service'] = array($backup['service']);
|
||||
foreach ($backup['service'] as $service) {
|
||||
if ('none' === $service || '' === $service || (is_array($service) && (empty($service) || array('none') === $service || array('') === $service))) {
|
||||
// Do nothing
|
||||
} else {
|
||||
$image_url = file_exists($image_folder.$service.'.png') ? $image_folder_url.$service.'.png' : $image_folder_url.'folder.png';
|
||||
|
||||
$remote_storage = ('remotesend' === $service) ? __('remote site', 'updraftplus') : $updraftplus->backup_methods[$service];
|
||||
?>
|
||||
<img class="stored_icon" src="<?php echo esc_url($image_url);?>" title="<?php echo esc_attr(sprintf(__('Remote storage: %s', 'updraftplus'), $remote_storage));?>">
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td data-label="<?php esc_attr_e('Backup data (click to download)', 'updraftplus');?>"><?php
|
||||
|
||||
if ($remote_sent) {
|
||||
|
||||
esc_html_e('Backup sent to remote site - not available for download.', 'updraftplus');
|
||||
if (!empty($backup['remotesend_url'])) echo '<br>'.esc_html__('Site', 'updraftplus').': <a href="'.esc_url($backup['remotesend_url']).'">'.esc_html($backup['remotesend_url']).'</a>';
|
||||
|
||||
} else {
|
||||
|
||||
if (empty($backup['meta_foreign']) || !empty($accept[$backup['meta_foreign']]['separatedb'])) {
|
||||
|
||||
if (isset($backup['db'])) {
|
||||
$entities .= '/db=0/';
|
||||
|
||||
// Set a flag according to whether or not $backup['db'] ends in .crypt, then pick this up in the display of the decrypt field.
|
||||
$db = is_array($backup['db']) ? $backup['db'][0] : $backup['db'];
|
||||
if (UpdraftPlus_Encryption::is_file_encrypted($db)) $entities .= '/dbcrypted=1/';
|
||||
|
||||
$updraftplus_admin->download_db_button('db', $key, $esc_pretty_date, $backup, $accept);
|
||||
}
|
||||
|
||||
// External databases
|
||||
foreach ($backup as $bkey => $binfo) {
|
||||
if ('db' == $bkey || 'db' != substr($bkey, 0, 2) || '-size' == substr($bkey, -5, 5)) continue;
|
||||
$updraftplus_admin->download_db_button($bkey, $key, $esc_pretty_date, $backup);
|
||||
}
|
||||
|
||||
} else {
|
||||
// Foreign without separate db
|
||||
$entities = '/db=0/meta_foreign=1/';
|
||||
}
|
||||
|
||||
if (!empty($backup['meta_foreign']) && !empty($accept[$backup['meta_foreign']]) && !empty($accept[$backup['meta_foreign']]['separatedb'])) {
|
||||
$entities .= '/meta_foreign=2/';
|
||||
}
|
||||
|
||||
$updraftplus_admin->download_buttons($backup, $key, $accept, $entities, $esc_pretty_date);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
<td class="before-restore-button" data-label="<?php esc_attr_e('Actions', 'updraftplus');?>">
|
||||
<?php
|
||||
$updraftplus_admin->restore_button($backup, $key, $pretty_date, $entities);
|
||||
$updraftplus_admin->upload_button($key, $nonce, $backup, $jobdata);
|
||||
$updraftplus_admin->delete_button($key, $nonce, $backup);
|
||||
if (empty($backup['meta_foreign'])) $updraftplus_admin->log_button($backup);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
<?php if ($show_paging_actions) : ?>
|
||||
<tfoot>
|
||||
<tr class="updraft_existing_backups_page_actions">
|
||||
<td colspan="4" style="text-align: center;">
|
||||
<a class="updraft-load-more-backups"><?php esc_html_e('Show more backups...', 'updraftplus');?></a> | <a class="updraft-load-all-backups"><?php esc_html_e('Show all backups...', 'updraftplus');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php if (!defined('UPDRAFTCENTRAL_COMMAND')) : ?>
|
||||
<div id="ud_massactions">
|
||||
<strong><?php esc_html_e('Actions upon selected backups', 'updraftplus');?></strong>
|
||||
<div class="updraftplus-remove"><button title="<?php esc_attr_e('Delete selected backups', 'updraftplus');?>" type="button" class="button button-remove js--delete-selected-backups"><?php esc_html_e('Delete', 'updraftplus');?></button></div>
|
||||
<div class="updraft-viewlogdiv"><button title="<?php esc_attr_e('Select all backups', 'updraftplus');?>" type="button" class="button js--select-all-backups" href="#"><?php esc_html_e('Select all', 'updraftplus');?></button></div>
|
||||
<div class="updraft-viewlogdiv"><button title="<?php esc_attr_e('Deselect all backups', 'updraftplus');?>" type="button" class="button js--deselect-all-backups" href="#"><?php esc_html_e('Deselect', 'updraftplus');?></button></div>
|
||||
<small class="ud_massactions-tip"><?php esc_html_e('Use ctrl / cmd + press to select several items, or ctrl / cmd + shift + press to select all in between', 'updraftplus'); ?></small>
|
||||
</div>
|
||||
<div id="updraft-delete-waitwarning" class="updraft-hidden" style="display:none;">
|
||||
<span class="spinner"></span> <em><?php esc_html_e('Deleting...', 'updraftplus');?> <span class="updraft-deleting-remote"><?php esc_html_e('Please allow time for the communications with the remote storage to complete.', 'updraftplus');?><span></em>
|
||||
<p id="updraft-deleted-files-total"></p>
|
||||
</div>
|
||||
<?php endif;
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
?>
|
||||
<div class="updraft_exclude_entity_container" data-include-backup-file="<?php echo esc_attr($key);?>">
|
||||
<?php
|
||||
if (!empty($include_exclude)) {
|
||||
$include_exclude_entities = explode(',', $include_exclude);
|
||||
foreach ($include_exclude_entities as $include_exclude_entity) {
|
||||
?>
|
||||
<div class="updraft_exclude_entity_wrapper">
|
||||
<input type="text" class="updraft_exclude_entity_field" name="<?php echo esc_attr('updraft_include_'.$key.'_exclude_entity[]');?>" value="<?php echo esc_attr($include_exclude_entity);?>" data-val="<?php echo esc_attr($include_exclude_entity);?>" data-include-backup-file="<?php echo esc_attr($key);?>" readonly="readonly"/><a href="#" class="updraft_exclude_entity_edit dashicons dashicons-edit" data-include-backup-file="<?php echo esc_attr($key);?>" title="<?php esc_attr_e('Edit', 'updraftplus'); ?>"></a><a href="#" class="updraft_exclude_entity_update dashicons dashicons-yes" data-include-backup-file="<?php echo esc_attr($key);?>" style="display: none;" title="<?php esc_attr_e('Confirm change', 'updraftplus'); ?>"></a><a href="#" class="updraft_exclude_entity_delete dashicons dashicons-no" data-include-backup-file="<?php echo esc_attr($key);?>" title="<?php esc_attr_e('Delete', 'updraftplus'); ?>"></a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a href="#" class="updraft_add_exclude_item updraft_icon_link" data-include-backup-file="<?php echo esc_attr($key);?>" data-path="<?php echo esc_attr($path);?>" aria-label="<?php echo esc_attr(sprintf(__('Add an exclusion rule for %s', 'updraftplus'), $key));?>"><span class="dashicons dashicons-plus"></span><?php echo esc_html__('Add an exclusion rule', 'updraftplus');?></a>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
<footer class="updraftplus-settings-footer">
|
||||
</footer>
|
||||
</div><!-- end #updraft-wrap -->
|
||||
@@ -0,0 +1,400 @@
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
|
||||
$updraft_dir = $updraftplus->backups_dir_location();
|
||||
$really_is_writable = UpdraftPlus_Filesystem_Functions::really_is_writable($updraft_dir);
|
||||
|
||||
// $options is passed through
|
||||
$default_options = array(
|
||||
'include_database_decrypter' => true,
|
||||
'include_adverts' => true,
|
||||
'include_save_button' => true
|
||||
);
|
||||
|
||||
foreach ($default_options as $k => $v) {
|
||||
if (!isset($options[$k])) $options[$k] = $v;
|
||||
}
|
||||
|
||||
?>
|
||||
<table class="form-table backup-schedule">
|
||||
<tr>
|
||||
<th><?php _e('Files backup schedule', 'updraftplus'); ?>:</th>
|
||||
<td class="js-file-backup-schedule">
|
||||
<div>
|
||||
<select title="<?php echo __('Files backup interval', 'updraftplus'); ?>" class="updraft_interval" name="updraft_interval">
|
||||
<?php
|
||||
$intervals = $updraftplus_admin->get_intervals('files');
|
||||
$selected_interval = UpdraftPlus_Options::get_updraft_option('updraft_interval', 'manual');
|
||||
foreach ($intervals as $cronsched => $descrip) {
|
||||
echo "<option value=\"$cronsched\" ";
|
||||
if ($cronsched == $selected_interval) echo 'selected="selected"';
|
||||
echo ">".htmlspecialchars($descrip)."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select> <span class="updraft_files_timings"><?php echo apply_filters('updraftplus_schedule_showfileopts', '<input type="hidden" name="updraftplus_starttime_files" value="">', $selected_interval); ?></span>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$updraft_retain = max((int) UpdraftPlus_Options::get_updraft_option('updraft_retain', 2), 1);
|
||||
|
||||
$retain_files_config = __('and retain this many scheduled backups', 'updraftplus').': <input type="number" min="1" step="1" title="'.__('Retain this many scheduled file backups', 'updraftplus').'" name="updraft_retain" value="'.$updraft_retain.'" class="retain-files" />';
|
||||
|
||||
echo $retain_files_config;
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
do_action('updraftplus_incremental_cell', $selected_interval);
|
||||
do_action('updraftplus_after_filesconfig');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php apply_filters('updraftplus_after_file_intervals', false, $selected_interval); ?>
|
||||
<tr>
|
||||
<th>
|
||||
<?php _e('Database backup schedule', 'updraftplus'); ?>:
|
||||
</th>
|
||||
<td class="js-database-backup-schedule">
|
||||
<div>
|
||||
<select class="updraft_interval_database" title="<?php echo __('Database backup interval', 'updraftplus'); ?>" name="updraft_interval_database">
|
||||
<?php
|
||||
$intervals = $updraftplus_admin->get_intervals('db');
|
||||
$selected_interval_db = UpdraftPlus_Options::get_updraft_option('updraft_interval_database', UpdraftPlus_Options::get_updraft_option('updraft_interval'));
|
||||
foreach ($intervals as $cronsched => $descrip) {
|
||||
echo "<option value=\"$cronsched\" ";
|
||||
if ($cronsched == $selected_interval_db) echo 'selected="selected"';
|
||||
echo ">$descrip</option>\n";
|
||||
}
|
||||
?>
|
||||
</select> <span class="updraft_same_schedules_message"><?php echo apply_filters('updraftplus_schedule_sametimemsg', '');?></span><span class="updraft_db_timings"><?php echo apply_filters('updraftplus_schedule_showdbopts', '<input type="hidden" name="updraftplus_starttime_db" value="">', $selected_interval_db); ?></span>
|
||||
|
||||
<?php
|
||||
$updraft_retain_db = max((int) UpdraftPlus_Options::get_updraft_option('updraft_retain_db', $updraft_retain), 1);
|
||||
$retain_dbs_config = __('and retain this many scheduled backups', 'updraftplus').': <input type="number" min="1" step="1" title="'.__('Retain this many scheduled database backups', 'updraftplus').'" name="updraft_retain_db" value="'.$updraft_retain_db.'" class="retain-files" />';
|
||||
|
||||
echo $retain_dbs_config;
|
||||
?>
|
||||
</div>
|
||||
<?php do_action('updraftplus_after_dbconfig'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="backup-interval-description">
|
||||
<th></th>
|
||||
<td><div><p>
|
||||
<?php
|
||||
/* translators: $1$s: translatable text ,%2$s: translatable text, %3$s: translatable text,%4$s: UpdraftPlus Premium product name*/
|
||||
echo wp_kses_post(sprintf(__('To %1$s (e.g. if your server is busy in the day and you want to run overnight), to take %2$s, or to %3$s, use %4$s', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/features/schedule-wordpress-backup-at-set-times?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=fix-the-time&utm_creative_format=text" target="_blank">'.__('fix the time at which a backup should take place', 'updraftplus').'</a>', '<a href="https://teamupdraft.com/updraftplus/features/wordpress-incremental-backup?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=incremental-backups&utm_creative_format=text" target="_blank">'.__('incremental backups', 'updraftplus').'</a>', '<a href="https://teamupdraft.com/updraftplus/features/backup-retention-rules/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=delete-backups-as-they-age&utm_creative_format=text" target="_blank">'.__('automatically delete backups as they age', 'updraftplus').'</a>', '<a href="https://teamupdraft.com/updraftplus/pricing?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=updraftplus-premium&utm_creative_format=text" target="_blank">UpdraftPlus Premium</a>')).'.';
|
||||
?>
|
||||
<p></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2 class="updraft_settings_sectionheading"><?php _e('Sending Your Backup To Remote Storage', 'updraftplus');?></h2>
|
||||
|
||||
<?php
|
||||
$debug_mode = UpdraftPlus_Options::get_updraft_option('updraft_debug_mode') ? 'checked="checked"' : "";
|
||||
$active_service = UpdraftPlus_Options::get_updraft_option('updraft_service');
|
||||
?>
|
||||
|
||||
<table id="remote-storage-holder" class="form-table width-900">
|
||||
<tr>
|
||||
<th><?php
|
||||
echo __('Choose your remote storage', 'updraftplus').'<br>'.apply_filters('updraftplus_after_remote_storage_heading_message', '<em>'.__('(tap on an icon to select or unselect)', 'updraftplus').'</em>');
|
||||
?>:</th>
|
||||
<td>
|
||||
<div id="remote-storage-container">
|
||||
<?php
|
||||
if (is_array($active_service)) $active_service = $updraftplus->just_one($active_service);
|
||||
|
||||
// Change this to give a class that we can exclude
|
||||
$multi = apply_filters('updraftplus_storage_printoptions_multi', '');
|
||||
|
||||
foreach ($updraftplus->backup_methods as $method => $description) {
|
||||
$backup_using = esc_attr(sprintf(__("Backup using %s?", 'updraftplus'), $description));
|
||||
|
||||
echo "<input aria-label=\"$backup_using\" name=\"updraft_service[]\" class=\"updraft_servicecheckbox $method $multi\" id=\"updraft_servicecheckbox_$method\" type=\"checkbox\" value=\"$method\"";
|
||||
if ($active_service === $method || (is_array($active_service) && in_array($method, $active_service))) echo ' checked="checked"';
|
||||
echo " data-labelauty=\"".esc_attr($description)."\">";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (false === apply_filters('updraftplus_storage_printoptions', false, $active_service)) {
|
||||
echo '</div>';
|
||||
echo '<p><a href="'.esc_url($updraftplus->get_url('premium_more_than_one_storage')).'" target="_blank">'.esc_html(__('You can send a backup to more than one destination with Premium.', 'updraftplus')).'</a></p>';
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="updraftplusmethod none ud_nostorage" style="display:none;">
|
||||
<td></td>
|
||||
<td><em><?php echo htmlspecialchars(__('If you choose no remote storage, then the backups remain on the web-server.', 'updraftplus').' '.__('This is not recommended (unless you plan to manually copy them to your computer), as losing the web-server would mean losing both your website and the backups in one event.', 'updraftplus'));?></em></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<hr class="updraft_separator">
|
||||
|
||||
<h2 class="updraft_settings_sectionheading"><?php _e('File Options', 'updraftplus');?></h2>
|
||||
|
||||
<table class="form-table js-tour-settings-more width-900" >
|
||||
<tr>
|
||||
<th><?php _e('Include in files backup', 'updraftplus');?>:</th>
|
||||
<td>
|
||||
<?php echo $updraftplus_admin->files_selector_widgetry('', true, true); ?>
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %1$s: translated link text 'backup more files', %2$s: product link text 'UpdraftPlus Premium'*/
|
||||
echo wp_kses_post(__('The above includes all WordPress file directories, except for WordPress core which you can download afresh from WordPress.org.', 'updraftplus').' '.sprintf(__('You can %1$s e.g. customisations made to WordPress core, wp-config.php or custom directories outside of the normal WordPress structure with %2$s.', 'updraftplus'), ' <a href="'.esc_url(apply_filters('updraftplus_com_link', "https://teamupdraft.com/updraftplus/features/backup-more-files-wordpress/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=back-up-more_files&utm_creative_format=text")).'" target="_blank">'.__('backup more files', 'updraftplus').'</a>', '<a href="'.esc_url(apply_filters('updraftplus_com_link', "https://teamupdraft.com/updraftplus/features/backup-more-files-wordpress/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=back-up-more_files&utm_creative_format=text")).'" target="_blank">UpdraftPlus Premium</a>'));
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2 class="updraft_settings_sectionheading"><?php _e('Database Options', 'updraftplus');?></h2>
|
||||
|
||||
<table class="form-table width-900">
|
||||
|
||||
<tr>
|
||||
<th><?php _e('Database encryption phrase', 'updraftplus');?>:</th>
|
||||
|
||||
<td>
|
||||
<?php
|
||||
echo wp_kses_post(apply_filters('updraft_database_encryption_config', sprintf(__('%s with UpdraftPlus Premium.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/features/database-encryption/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=encrypt-the-datbase&utm_creative_format=text" target="_blank">'.__('Encrypt the database', 'updraftplus').'</a>').' '.sprintf(__('You can also %s.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/features/more-database-options/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=back-up-non-wp-tables&utm_creative_format=text" target="_blank">'.__('back up non-WP tables and external databases', 'updraftplus').'</a>')));
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if (!empty($options['include_database_decrypter'])) {
|
||||
?>
|
||||
|
||||
<tr class="backup-crypt-description">
|
||||
<td></td>
|
||||
|
||||
<td>
|
||||
|
||||
<a href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>" class="updraft_show_decryption_widget"><?php _e('You can manually decrypt an encrypted database here.', 'updraftplus');?></a>
|
||||
|
||||
<div id="updraft-manualdecrypt-modal" class="updraft-hidden" style="display:none;">
|
||||
<p><h3><?php _e("Manually decrypt a database backup file", 'updraftplus'); ?></h3></p>
|
||||
|
||||
<?php
|
||||
if (version_compare($updraftplus->get_wordpress_version(), '3.3', '<')) {
|
||||
echo '<em>'.sprintf(__('This feature requires %s version %s or later', 'updraftplus'), 'WordPress', '3.3').'</em>';
|
||||
} else {
|
||||
?>
|
||||
|
||||
<div id="plupload-upload-ui2">
|
||||
<div id="drag-drop-area2">
|
||||
<div class="drag-drop-inside">
|
||||
<p class="drag-drop-info"><?php _e('Drop encrypted database files (db.gz.crypt files) here to upload them for decryption', 'updraftplus'); ?></p>
|
||||
<p><?php _ex('or', 'Uploader: Drop db.gz.crypt files here to upload them for decryption - or - Select Files', 'updraftplus'); ?></p>
|
||||
<p class="drag-drop-buttons"><input id="plupload-browse-button2" type="button" value="<?php esc_attr_e('Select Files', 'updraftplus'); ?>" class="button" /></p>
|
||||
<p style="margin-top: 18px;"><?php _e('First, enter the decryption key', 'updraftplus'); ?>: <input id="updraftplus_db_decrypt" type="text" size="12"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="filelist2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$plugins = get_plugins();
|
||||
$wp_optimize_file = false;
|
||||
|
||||
foreach ($plugins as $key => $value) {
|
||||
if ('wp-optimize' == $value['TextDomain']) {
|
||||
$wp_optimize_file = $key;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$wp_optimize_file) {
|
||||
?><br><a href="https://wordpress.org/plugins/wp-optimize/" target="_blank"><?php _e('Recommended: optimize your database with WP-Optimize.', 'updraftplus');?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
$moredbs_config = apply_filters('updraft_database_moredbs_config', false);
|
||||
if (!empty($moredbs_config)) {
|
||||
?>
|
||||
<tr>
|
||||
<th><?php _e('Backup more databases', 'updraftplus');?>:</th>
|
||||
<td><?php echo $moredbs_config; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
<h2 class="updraft_settings_sectionheading"><?php _e('Reporting', 'updraftplus');?></h2>
|
||||
|
||||
<table class="form-table width-900">
|
||||
|
||||
<?php
|
||||
$report_rows = apply_filters('updraftplus_report_form', false);
|
||||
if (is_string($report_rows)) {
|
||||
echo $report_rows;
|
||||
} else {
|
||||
?>
|
||||
|
||||
<tr id="updraft_report_row_no_addon">
|
||||
<th><?php _e('Email', 'updraftplus'); ?>:</th>
|
||||
<td>
|
||||
<?php
|
||||
$updraft_email = UpdraftPlus_Options::get_updraft_option('updraft_email');
|
||||
// in case that premium users doesn't have the reporting addon, then the same email report setting's functionality will be applied to the premium version
|
||||
// since the free version allows only one service at a time, $active_service contains just a string name of particular service, in this case 'email'
|
||||
// so we need to make the checking a bit more universal by transforming it into an array of services in which we can check whether email is the only service (free onestorage) or one of the services (premium multistorage)
|
||||
$temp_services = $active_service;
|
||||
if (is_string($temp_services)) $temp_services = (array) $temp_services;
|
||||
$is_email_storage = !empty($temp_services) && in_array('email', $temp_services);
|
||||
?>
|
||||
<label for="updraft_email" class="updraft_checkbox email_report">
|
||||
<input type="checkbox" id="updraft_email" name="updraft_email" value="<?php echo esc_attr(get_bloginfo('admin_email')); ?>"<?php if ($is_email_storage || !empty($updraft_email)) echo ' checked="checked"';?> <?php if ($is_email_storage) echo 'disabled onclick="return false"'; ?>>
|
||||
<?php
|
||||
// have to add this hidden input so that when the form is submitted and if the updraft_email checkbox is disabled, this hidden input will be passed to the server along with other active elements
|
||||
if ($is_email_storage) echo '<input type="hidden" name="updraft_email" value="'.esc_attr(get_bloginfo('admin_email')).'">';
|
||||
?>
|
||||
<div id="cb_not_email_storage_label" <?php echo ($is_email_storage) ? 'style="display: none"' : 'style="display: inline"'; ?>>
|
||||
<?php echo __("Check this box to have a basic report sent to", 'updraftplus').' <a href="'.admin_url('options-general.php').'">'.__("your site's admin address", 'updraftplus').'</a> ('.htmlspecialchars(get_bloginfo('admin_email')).")."; ?>
|
||||
</div>
|
||||
<div id="cb_email_storage_label" <?php echo (!$is_email_storage) ? 'style="display: none"' : 'style="display: inline"'; ?>>
|
||||
<?php echo esc_html__("Your email backup and a report will be sent to", 'updraftplus').' <a href="'.admin_url('options-general.php').'">'.esc_html__("your site's admin address", 'updraftplus').'</a> ('.htmlspecialchars(get_bloginfo('admin_email')).').'; ?>
|
||||
</div>
|
||||
</label>
|
||||
<?php
|
||||
if (!class_exists('UpdraftPlus_Addon_Reporting')) echo '<a href="https://teamupdraft.com/updraftplus/features/advanced-wordpress-backup-reports?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=check-this-box-basic-report&utm_creative_format=text" target="_blank">'.esc_html__('For more reporting features, use the Premium version', 'updraftplus').'</a>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
<?php
|
||||
$storage_objects_and_ids = UpdraftPlus_Storage_Methods_Interface::get_storage_objects_and_ids(array_keys($updraftplus->backup_methods));
|
||||
// In PHP 5.5+, there's array_column() for this
|
||||
$method_objects = array();
|
||||
foreach ($storage_objects_and_ids as $method => $method_information) {
|
||||
$method_objects[$method] = $method_information['object'];
|
||||
}
|
||||
|
||||
echo $updraftplus_admin->get_settings_js($method_objects, $really_is_writable, $updraft_dir, $active_service);
|
||||
?>
|
||||
</script>
|
||||
<table class="form-table width-900">
|
||||
<tr>
|
||||
<td colspan="2"><h2 class="updraft_settings_sectionheading"><?php _e('Advanced / Debugging Settings', 'updraftplus'); ?></h2></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><?php esc_html_e('Expert settings', 'updraftplus');?>:</th>
|
||||
<td><a class="enableexpertmode" href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>#enableexpertmode"><?php _e('Show expert settings', 'updraftplus');?></a> - <?php _e("open this to show some further options; don't bother with this unless you have a problem or are curious.", 'updraftplus');?> <?php do_action('updraftplus_expertsettingsdescription'); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$delete_local = UpdraftPlus_Options::get_updraft_option('updraft_delete_local', 1);
|
||||
$split_every_mb = UpdraftPlus_Options::get_updraft_option('updraft_split_every', 400);
|
||||
if (!is_numeric($split_every_mb)) $split_every_mb = 400;
|
||||
if ($split_every_mb < UPDRAFTPLUS_SPLIT_MIN) $split_every_mb = UPDRAFTPLUS_SPLIT_MIN;
|
||||
?>
|
||||
|
||||
<tr class="expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php _e('Debug mode', 'updraftplus');?>:</th>
|
||||
<td><input type="checkbox" id="updraft_debug_mode" data-updraft_settings_test="debug_mode" name="updraft_debug_mode" value="1" <?php echo $debug_mode; ?> /> <br><label for="updraft_debug_mode"><?php _e('Check this to receive more information and emails on the backup process - useful if something is going wrong.', 'updraftplus');?> <?php esc_html_e('This will also cause debugging output from all plugins to be shown upon this screen - please do not be surprised to see these.', 'updraftplus');?></label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php _e('Split archives every:', 'updraftplus');?></th>
|
||||
<td><input type="text" name="updraft_split_every" class="updraft_split_every" value="<?php echo $split_every_mb; ?>" size="5" /> MB<br><?php echo sprintf(esc_html__('UpdraftPlus will split up backup archives when they exceed this file size.', 'updraftplus').' '.__('The default value is %s megabytes.', 'updraftplus').' '.esc_html__('Be careful to leave some margin if your web-server has a hard size limit (e.g. the 2 GB / 2048 MB limit on some 32-bit servers/file systems).', 'updraftplus'), 400).' '.esc_html__('The higher the value, the more server resources are required to create the archive.', 'updraftplus'); ?></td>
|
||||
</tr>
|
||||
|
||||
<tr class="deletelocal expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php _e('Delete local backup', 'updraftplus');?>:</th>
|
||||
<td><input type="checkbox" id="updraft_delete_local" name="updraft_delete_local" value="1" <?php if ($delete_local) echo 'checked="checked"'; ?>> <br><label for="updraft_delete_local"><?php esc_html_e('Check this to delete any superfluous backup files from your server after the backup run finishes (i.e. Whilst this option is unchecked, files sent to remote storage will also remain stored locally, and no locally stored files will be deleted in response to any retention rules).', 'updraftplus');?></label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="expertmode backupdirrow updraft-hidden" style="display:none;">
|
||||
<th><?php _e('Backup directory', 'updraftplus');?>:</th>
|
||||
<td><input type="text" name="updraft_dir" id="updraft_dir" style="width:525px" value="<?php echo htmlspecialchars(UpdraftPlus_Manipulation_Functions::prune_updraft_dir_prefix($updraft_dir)); ?>" /></td>
|
||||
</tr>
|
||||
<tr class="expertmode backupdirrow updraft-hidden" style="display:none;">
|
||||
<td></td>
|
||||
<td>
|
||||
<span id="updraft_writable_mess">
|
||||
<?php echo $updraftplus_admin->really_writable_message($really_is_writable, $updraft_dir); ?>
|
||||
</span>
|
||||
<?php
|
||||
echo esc_html__('This is where UpdraftPlus will write the zip files it creates initially.', 'updraftplus').' '.esc_html__('This directory must be writable by your web server.', 'updraftplus').' '.esc_html__('It is relative to your content directory (which by default is called wp-content).', 'updraftplus').' '.esc_html__("Do not place it inside your uploads or plugins directory, as that will cause recursion (backups of backups of backups of...).", 'updraftplus');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php _e("Use the server's SSL certificates", 'updraftplus');?>:</th>
|
||||
<td><input data-updraft_settings_test="useservercerts" type="checkbox" id="updraft_ssl_useservercerts" name="updraft_ssl_useservercerts" value="1" <?php if (UpdraftPlus_Options::get_updraft_option('updraft_ssl_useservercerts')) echo 'checked="checked"'; ?>> <br><label for="updraft_ssl_useservercerts"><?php echo esc_html__('By default UpdraftPlus uses its own store of SSL certificates to verify the identity of remote sites (i.e. to make sure it is talking to the real Dropbox, Amazon S3, etc., and not an attacker).', 'updraftplus').' '.esc_html__('We keep these up to date.', 'updraftplus').' '.esc_html__('However, if you get an SSL error, then choosing this option (which causes UpdraftPlus to use your web server\'s collection instead) may help.', 'updraftplus');?></label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php esc_html_e('Do not verify SSL certificates', 'updraftplus');?>:</th>
|
||||
<td><input data-updraft_settings_test="disableverify" type="checkbox" id="updraft_ssl_disableverify" name="updraft_ssl_disableverify" value="1" <?php if (UpdraftPlus_Options::get_updraft_option('updraft_ssl_disableverify')) echo 'checked="checked"'; ?>> <br><label for="updraft_ssl_disableverify"><?php echo __('Choosing this option lowers your security by stopping UpdraftPlus from verifying the identity of encrypted sites that it connects to (e.g. Dropbox, Google Drive).', 'updraftplus').' '.__('It means that UpdraftPlus will be using SSL only for encryption of traffic, and not for authentication.', 'updraftplus').' '.__('Note that not all cloud backup methods are necessarily using SSL authentication.', 'updraftplus');?></label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php _e('Disable SSL entirely where possible', 'updraftplus');?>:</th>
|
||||
<td><input data-updraft_settings_test="nossl" type="checkbox" id="updraft_ssl_nossl" name="updraft_ssl_nossl" value="1" <?php if (UpdraftPlus_Options::get_updraft_option('updraft_ssl_nossl')) echo 'checked="checked"'; ?>> <br><label for="updraft_ssl_nossl"><?php echo __('Choosing this option lowers your security by stopping UpdraftPlus from using SSL for authentication and encrypted transport at all, where possible.', 'updraftplus').' '.__('Note that some cloud storage providers do not allow this (e.g. Dropbox), so with those providers this setting will have no effect.', 'updraftplus');?> <a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/faqs/i-get-ssl-certificate-errors-when-backing-up-andor-restoring/");?>" target="_blank"><?php _e('See this FAQ also.', 'updraftplus');?></a></label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="expertmode updraft-hidden" style="display:none;">
|
||||
<th><?php _e('Automatic updates', 'updraftplus');?>:</th>
|
||||
<td><label><input type="checkbox" id="updraft_auto_updates" data-updraft_settings_test="updraft_auto_updates" name="updraft_auto_updates" value="1" <?php if ($updraftplus->is_automatic_updating_enabled()) echo 'checked="checked"'; ?>><br /><?php _e('Ask WordPress to automatically update UpdraftPlus when it finds an available update.', 'updraftplus');?></label><p><a href="https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/" target="_blank"><?php _e('Read more about Easy Updates Manager', 'updraftplus'); ?></a></p></td>
|
||||
</tr>
|
||||
|
||||
<?php do_action('updraftplus_configprint_expertoptions'); ?>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<?php
|
||||
if (!empty($options['include_adverts'])) {
|
||||
if (!class_exists('UpdraftPlus_Notices')) updraft_try_include_file('includes/updraftplus-notices.php', 'include_once');
|
||||
global $updraftplus_notices;
|
||||
$updraftplus_notices->do_notice(false, 'bottom');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (!empty($options['include_save_button'])) { ?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="hidden" name="action" value="update" />
|
||||
<input type="submit" class="button-primary" id="updraftplus-settings-save" value="<?php esc_html_e('Save Changes', 'updraftplus');?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
|
||||
<div class="wrap" id="updraft-wrap">
|
||||
|
||||
<h1><?php echo esc_html($updraftplus->plugin_title); ?></h1>
|
||||
<div class="updraftplus-top-menu">
|
||||
<a href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://teamupdraft.com?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=teamupdraft&utm_creative_format=menu"));?>" target="_blank">TeamUpdraft</a> |
|
||||
<?php
|
||||
if (!defined('UPDRAFTPLUS_NOADS_B')) {
|
||||
?>
|
||||
<a href="<?php echo esc_url($updraftplus->get_url('premium'));?>" target="_blank"><?php esc_html_e("Premium", 'updraftplus'); ?></a> |
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://teamupdraft.com/topic/updraftplus?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=blog&utm_creative_format=menu"));?>" target="_blank"><?php esc_html_e('Blogs', 'updraftplus');?></a> |
|
||||
<a href="https://x.com/TeamUpdraftWP" target="_blank"><?php esc_html_e('Twitter / X', 'updraftplus');?></a> |
|
||||
<a href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://teamupdraft.com/support?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=support&utm_creative_format=menu"));?>" target="_blank"><?php esc_html_e('Support', 'updraftplus');?></a> |
|
||||
<?php
|
||||
if (!is_file(UPDRAFTPLUS_DIR.'/udaddons/updraftplus-addons.php')) {
|
||||
?>
|
||||
<a href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/newsletter-signup"));?>" target="_blank"><?php esc_html_e("Newsletter sign-up", 'updraftplus'); ?></a> |
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a href="https://david.dw-perspective.org.uk" target="_blank"><?php esc_html_e("Lead developer's homepage", 'updraftplus');?></a> | <a aria-label="F, A, Q" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://teamupdraft.com/documentation/updraftplus?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=documentation&utm_creative_format=menu"));?>" target="_blank"><?php esc_html_e('Documentation', 'updraftplus'); ?></a> | <a aria-label="more plug-ins" href="https://www.simbahosting.co.uk/s3/shop/" target="_blank"><?php esc_html_e('More plugins', 'updraftplus');?></a> - <span tabindex="0"><?php esc_html_e('Version', 'updraftplus');?>: <?php echo esc_html($updraftplus->version); ?></span>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
|
||||
<div id="updraft_migrate_tab_main">
|
||||
<?php $updraftplus_admin->include_template('wp-admin/settings/temporary-clone.php'); ?>
|
||||
|
||||
<h2><?php esc_html_e('Migrate (create a copy of a site on hosting you control)', 'updraftplus'); ?></h2>
|
||||
<div id="updraft_migrate" class="postbox">
|
||||
<p>
|
||||
<strong><?php esc_html_e('Do you want to migrate or clone/duplicate a site?', 'updraftplus');?></strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php echo esc_html(__('Then, try out our "Migrator" add-on which can perform a direct site-to-site migration.', 'updraftplus').' '.__('After using it once, you\'ll have saved the purchase price compared to the time needed to copy a site by hand.', 'updraftplus')); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/landing/migrator/"));?>" target="_blank"><?php esc_html_e('More information here.', 'updraftplus'); ?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,352 @@
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
|
||||
global $updraftplus_checkout_embed;
|
||||
$tick = UPDRAFTPLUS_URL.'/images/updraft_tick.png';
|
||||
$cross = UPDRAFTPLUS_URL.'/images/updraft_cross.png';
|
||||
$freev = UPDRAFTPLUS_URL.'/images/updraft_freev.png';
|
||||
$premv = UPDRAFTPLUS_URL.'/images/updraft_premv.png';
|
||||
|
||||
$checkout_embed_premium_attribute = '';
|
||||
|
||||
if ($updraftplus_checkout_embed) {
|
||||
$checkout_embed_premium_attribute = $updraftplus_checkout_embed->get_product('updraftpremium') ? 'data-embed-checkout="'.apply_filters('updraftplus_com_link', $updraftplus_checkout_embed->get_product('updraftpremium', UpdraftPlus_Options::admin_page_url().'?page=updraftplus&tab=addons')).'"' : '';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="updraft_premium">
|
||||
<section>
|
||||
<div class="updraft_premium_cta udpdraft__lifted">
|
||||
<div class="updraft_premium_cta__top">
|
||||
<div class="updraft_premium_cta__summary">
|
||||
<h2 id="premium-upgrade-header">UpdraftPlus <strong>Premium</strong></h2>
|
||||
<ul class="updraft_premium_description_list">
|
||||
<li><a target="_blank" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/updraftplus-full-feature-list/"));?>"><?php esc_html_e('Full feature list', 'updraftplus');?></a></li>
|
||||
<li><a target="_blank" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/faq-category/general-and-pre-sales-questions/"));?>"><?php esc_html_e('Pre-sales FAQs', 'updraftplus');?></a></li>
|
||||
<li><a target="_blank" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/ask-a-pre-sales-question/"));?>"><?php esc_html_e('Ask a pre-sales question', 'updraftplus');?></a></li>
|
||||
<li><a target="_blank" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/support/"));?>"><?php esc_html_e('Support', 'updraftplus');?></a></li>
|
||||
<li><a href="#other-plugins"><?php esc_html_e('Other great plugins', 'updraftplus');?></a></li>
|
||||
<li><a target="_blank" href="https://www.simbahosting.co.uk/s3/shop/"><?php esc_html_e('WooCommerce plugins', 'updraftplus');?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="updraft_premium_cta__action">
|
||||
<?php
|
||||
$user_bought_udp = isset($_REQUEST['updraftplus_product']) && 'updraftpremium' === $_REQUEST['updraftplus_product'] && isset($_REQUEST['status']) && 'complete' === $_REQUEST['status'];
|
||||
if (!$user_bought_udp) {
|
||||
?>
|
||||
<a aria-label="<?php echo esc_attr(sprintf(__('Get %s here', 'updraftplus'), 'UpdraftPlus Premium').'. '.__('Goes to the updraftplus.com checkout page', 'updraftplus')); ?>" target="_blank" class="button button-primary button-hero" href="<?php echo esc_url(apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_premium')));?>" <?php echo wp_kses($checkout_embed_premium_attribute, array()); ?>><?php esc_html_e('Get it here', 'updraftplus');?></a>
|
||||
<small><span class="dashicons dashicons-external dashicons-adapt-size"></span> <?php esc_html_e('Goes to updraftplus.com checkout page', 'updraftplus'); ?></small>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (!$user_bought_udp) : ?>
|
||||
<div class="updraft_premium_cta__bottom">
|
||||
<p class="premium-upgrade-prompt">
|
||||
<?php esc_html_e('You are currently using the free version of UpdraftPlus.', 'updraftplus');?> <a target="_blank" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/support/installing-updraftplus-premium-your-add-on/"));?>"> <?php esc_html_e('If you have purchased from UpdraftPlus.Com, then follow this link to the installation instructions (particularly step 1).', 'updraftplus');?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="premium-upgrade-purchase-success" <?php if (!$user_bought_udp) echo 'style="display: none;"';?>>
|
||||
<h3><span class="dashicons dashicons-yes"></span><?php esc_html_e('You successfully purchased UpdraftPremium.', 'updraftplus');?></h3>
|
||||
<p><a target="_blank" href="<?php echo esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/support/installing-updraftplus-premium-your-add-on/"));?>"> <?php esc_html_e('Follow this link to the installation instructions (particularly step 1).', 'updraftplus');?></a></p>
|
||||
</section>
|
||||
|
||||
<?php if (!$user_bought_udp) : ?>
|
||||
<section>
|
||||
<h2 class="updraft_feat_table__title"><?php esc_html_e('Features comparison', 'updraftplus');?></h2>
|
||||
<table class="updraft_feat_table udpdraft__lifted">
|
||||
<tbody>
|
||||
<tr class="updraft_feat_table__header">
|
||||
<td></td>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/ud-logo.png');?>" alt="UpdraftPlus" width="80" height="80">
|
||||
<?php esc_html_e('Free', 'updraftplus');?>
|
||||
</td>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/ud-logo.png');?>" alt="<?php esc_attr_e('UpdraftPlus Premium', 'updraftplus');?>" width="80" height="80">
|
||||
<?php esc_html_e('Premium', 'updraftplus');?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span class="installed updraft-yes"><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span> <?php esc_html_e('Installed', 'updraftplus');?></span>
|
||||
</td>
|
||||
<td>
|
||||
<a class="button button-primary" href="<?php echo esc_url(apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_premium')));?>" <?php echo wp_kses($checkout_embed_premium_attribute, array()); ?>><?php esc_html_e('Upgrade now', 'updraftplus');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/morestorage.png');?>" alt="<?php esc_attr_e('Remote storage', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Backup to remote storage locations', 'updraftplus');?></h4>
|
||||
<p><?php echo esc_html(__('To avoid server-wide risks, always backup to remote cloud storage.', 'updraftplus').' '.__('UpdraftPlus free includes Dropbox, Google Drive, Amazon S3, Rackspace and more.', 'updraftplus'));?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/migrator.png');?>" alt="<?php esc_attr_e('Migrator', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Cloning and migration', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('UpdraftPlus Migrator clones your WordPress site and moves it to a new domain directly and simply.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/anonymisation.png');?>" alt="<?php esc_attr_e('Anonymisation functions', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Anonymisation functions', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Anonymise personal data in your database backups.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/incremental.png');?>" alt="<?php esc_attr_e('Incremental backups', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Incremental backups', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Allows you to only backup changes to your files (such as a new image) that have been made to your site since the last backup.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/notices/support.png');?>" alt="<?php esc_attr_e('Support', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Fast, personal support', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Provides expert help and support from the developers whenever you need it.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/automaticbackup.png');?>" alt="<?php esc_attr_e('Pre-update backups', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Pre-update backups', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Automatically backs up your website before any updates to plugins, themes and WordPress core.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/morefiles.png');?>" alt="<?php esc_attr_e('Backup non-WordPress files and databases', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Backup non-WordPress files and databases', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Backup WordPress core and non-WP files and databases.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/multisite.png');?>" alt="<?php esc_attr_e('Network and multisite', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Network / multisite', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Backup WordPress multisites (i.e, networks), securely.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/fixtime.png');?>" alt="<?php esc_attr_e('Backup time and scheduling', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Backup time and scheduling', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Set exact times to create or delete backups.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/wp-cli.png');?>" alt="<?php esc_attr_e('WP CLI', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('WP-CLI support', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('WP-CLI commands to take, list and delete backups.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/moredatabase.png');?>" alt="<?php esc_attr_e('More database options', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('More database options', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Encrypt your sensitive databases (e.g. customer information or passwords); Backup external databases too.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/morestorage.png');?>" alt="<?php esc_attr_e('Additional storage', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Additional and enhanced remote storage locations', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Get enhanced versions of the free remote storage options (Dropbox, Google Drive & S3) and even more remote storage options like OneDrive, SFTP, Azure, WebDAV, Backblaze and more with UpdraftPlus Premium.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/reporting.png');?>" alt="<?php esc_attr_e('Reporting', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Reporting', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Sophisticated reporting and emailing capabilities.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/noadverts.png');?>" alt="<?php esc_attr_e('No ads', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('No ads', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Tidy things up for clients and remove all adverts for our other products.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/importer.png');?>" alt="<?php esc_attr_e('Importer', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Importer', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e("Some backup plugins can't restore a backup, so Premium allows you to restore backups from other plugins.", 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/addons-images/lockadmin.png');?>" alt="<?php esc_attr_e('Lock settings', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('Lock settings', 'updraftplus');?></h4>
|
||||
<p><?php esc_html_e('Lock access to UpdraftPlus via a password so you choose which admin users can access backups.', 'updraftplus');?></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/updraft_vault_logo.png');?>" alt="<?php esc_attr_e('UpdraftVault', 'updraftplus');?>" width="100" height="100" class="udp-premium-image">
|
||||
<h4><?php esc_html_e('UpdraftVault storage', 'updraftplus');?></h4>
|
||||
<p>
|
||||
<?php esc_html_e('UpdraftPlus has its own embedded storage option, providing a zero-hassle way to download, store and manage all your backups from one place.', 'updraftplus');?>
|
||||
<a href="<?php echo esc_url(apply_filters('updraftplus_com_link', 'https://updraftplus.com/landing/updraftvault'));?>"><?php esc_html_e('Premium / Find out more', 'updraftplus');?></a>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'updraftplus');?>"></span></span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span class="updraft-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>">1 GB</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span class="installed updraft-yes"><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'updraftplus');?>"></span> <?php esc_html_e('Installed', 'updraftplus');?></span>
|
||||
</td>
|
||||
<td>
|
||||
<p><a class="button button-primary" href="<?php echo esc_url(apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_premium')));?>" <?php echo wp_kses($checkout_embed_premium_attribute, array()); ?>><?php esc_html_e('Upgrade now', 'updraftplus');?></a></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
<section id="other-plugins">
|
||||
<h2><?php esc_html_e('More great plugins by the Updraft Team', 'updraftplus'); ?></h2>
|
||||
<div class="updraft-more-plugins">
|
||||
<div class="udp-box">
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/other-plugins/wp-optimize.png'); ?>" alt="WP-Optimize">
|
||||
<p><?php echo esc_html(__('Makes your site fast and efficient.', 'updraftplus').' '.__('It cleans the database, compresses images and caches pages for ultimate speed.', 'updraftplus')); ?></p>
|
||||
<a aria-label="<?php echo 'WP-Optimize. '.esc_attr(__('Makes your site fast and efficient.', 'updraftplus').' '.__('It cleans the database, compresses images and caches pages for ultimate speed.', 'updraftplus').' '.__('Find out more', 'updraftplus')); ?>" target="_blank" href="https://getwpo.com/?utm_source=updraftplus&utm_medium=cross-sell&utm_campaign=addons-tab"><?php esc_html_e('Find out more', 'updraftplus'); ?></a>
|
||||
<p><a href="https://playground.wordpress.net/?plugin=wp-optimize&url=/wp-admin/admin.php?page=WP-Optimize" aria-label="<?php echo 'WP-Optimize'.' '.esc_attr__('Demo in WP Playground', 'updraftplus'); ?>" target="_blank"><?php esc_html_e('Demo in WP Playground', 'updraftplus'); ?></a></p>
|
||||
</div>
|
||||
<div class="udp-box">
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/other-plugins/aios.png'); ?>" alt="<?php echo esc_attr('All In One WP Security & Firewall');?>">
|
||||
<p><?php esc_html_e('A comprehensive and easy to use security plugin and site scanning service.', 'updraftplus'); ?></p>
|
||||
<a aria-label="<?php echo esc_attr('All In One WP Security & Firewall.'.' '.__('A comprehensive and easy to use security plugin and site scanning service.', 'updraftplus').' '.__('Find out more', 'updraftplus')); ?>" target="_blank" href="https://aiosplugin.com/"><?php esc_html_e('Find out more', 'updraftplus'); ?></a>
|
||||
<p><a href="https://playground.wordpress.net/?plugin=all-in-one-wp-security-and-firewall&url=/wp-admin/admin.php?page=aiowpsec" aria-label="<?php echo esc_attr('All In One WP Security & Firewall'.' '.__('Demo in WP Playground', 'updraftplus'));?>" target="_blank"><?php esc_html_e('Demo in WP Playground', 'updraftplus');?></a></p>
|
||||
</div>
|
||||
<div class="udp-box">
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/other-plugins/updraft-central.png'); ?>" alt="UpdraftCentral">
|
||||
<p><?php esc_html_e('Highly efficient way to manage, optimize, update and backup multiple websites from one place.', 'updraftplus'); ?></p>
|
||||
<a aria-label="<?php echo 'UpdraftCentral. '.esc_attr(__('Highly efficient way to manage, optimize, update and backup multiple websites from one place.', 'updraftplus').' '.__('Find out more', 'updraftplus')); ?>" target="_blank" href="https://updraftplus.com/updraftcentral/?utm_source=updraftplus&utm_medium=cross-sell&utm_campaign=addons-tab"><?php esc_html_e('Find out more', 'updraftplus'); ?></a>
|
||||
<p><a href="https://playground.wordpress.net/?plugin=updraftcentral&url=/wp-admin/admin.php?page=updraft-central" aria-label="<?php echo 'UpdraftCentral'.' '.esc_attr__('Demo in WP Playground', 'updraftplus'); ?>" target="_blank"><?php esc_html_e('Demo in WP Playground', 'updraftplus'); ?></a></p>
|
||||
</div>
|
||||
<div class="udp-box">
|
||||
<img src="<?php echo esc_url(UPDRAFTPLUS_URL.'/images/other-plugins/easy-updates-manager-logo.png'); ?>" alt="Easy Updates Manager">
|
||||
<p><?php esc_html_e('Keeps your WordPress site up to date and bug free.', 'updraftplus'); ?></p>
|
||||
<a aria-label="<?php echo 'EasyUpdatesManager. '.esc_attr(__('Keeps your WordPress site up to date and bug free.', 'updraftplus').' '.__('Find out more', 'updraftplus')); ?>" target="_blank" href="https://easyupdatesmanager.com/"><?php esc_html_e('Find out more', 'updraftplus'); ?></a>
|
||||
<p><a href="https://playground.wordpress.net/?plugin=stops-core-theme-and-plugin-updates&url=/wp-admin/index.php?page=mpsum-update-options&tab=general" aria-label="<?php echo 'Easy Updates Manager'.' '.esc_attr__('Demo in WP Playground', 'updraftplus'); ?>" target="_blank"><?php esc_html_e('Demo in WP Playground', 'updraftplus'); ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
|
||||
// $options is passed in
|
||||
$default_options = array(
|
||||
'include_uploader' => true,
|
||||
'include_opera_warning' => false,
|
||||
'will_immediately_calculate_disk_space' => true,
|
||||
'include_whitespace_warning' => true,
|
||||
'include_header' => false,
|
||||
);
|
||||
|
||||
foreach ($default_options as $k => $v) {
|
||||
if (!isset($options[$k])) $options[$k] = $v;
|
||||
}
|
||||
|
||||
// $backup_history is passed in
|
||||
if (false === $backup_history) $backup_history = UpdraftPlus_Backup_History::get_history();
|
||||
|
||||
if (!empty($options['include_header'])) echo '<h2>'.esc_html(__('Existing backups', 'updraftplus').' ('.count($backup_history).')').'</h2>';
|
||||
|
||||
?>
|
||||
<div class="download-backups form-table">
|
||||
<?php if (!empty($options['include_whitespace_warning'])) { ?>
|
||||
<p class="ud-whitespace-warning updraft-hidden" style="display:none;">
|
||||
<?php echo '<strong>'.esc_html__('Warning', 'updraftplus').':</strong> '.esc_html(__('Your WordPress installation has a problem with outputting extra whitespace.', 'updraftplus').' '.__('This can corrupt backups that you download from here.', 'updraftplus')).' <a href="'.esc_url(apply_filters('updraftplus_com_link', "https://updraftplus.com/problems-with-extra-white-space/")).'" target="_blank">'.esc_html__('Follow this link for more information', 'updraftplus').'</a>';?>
|
||||
</p>
|
||||
<?php }
|
||||
$bom_warning = $updraftplus_admin->get_bom_warning_text();
|
||||
if (!empty($bom_warning)) {
|
||||
?>
|
||||
<p class="ud-bom-warning">
|
||||
<?php
|
||||
echo wp_kses_post($bom_warning);
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
$updraftplus_admin->take_backup_content();
|
||||
?>
|
||||
|
||||
<div class="updraft_existing_backups_wrapper">
|
||||
<h3 id="updraft-existing-backups-heading"><?php esc_html_e('Existing backups', 'updraftplus');?> <span class="updraft_existing_backups_count"><?php echo esc_html(count($backup_history));?></span></h3>
|
||||
<ul class="updraft-disk-space-actions">
|
||||
<?php
|
||||
echo wp_kses_post(UpdraftPlus_Filesystem_Functions::web_server_disk_space($options['will_immediately_calculate_disk_space']));
|
||||
?>
|
||||
|
||||
<li class="updraft-server-scan">
|
||||
<strong><?php esc_html_e('More tasks:', 'updraftplus');?></strong>
|
||||
<?php
|
||||
if (!empty($options['include_uploader'])) {
|
||||
?>
|
||||
<a class="updraft_uploader_toggle" href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>"><?php esc_html_e('Upload backup files', 'updraftplus'); ?></a> |
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>" class="updraft_rescan_local" title="<?php echo esc_attr(__('Press here to look inside your UpdraftPlus directory (in your web hosting space) for any new backup sets that you have uploaded.', 'updraftplus').' '.__('The location of this directory is set in the expert settings, in the Settings tab.', 'updraftplus')); ?>"><?php esc_html_e('Rescan local folder for new backup sets', 'updraftplus');?></a>
|
||||
| <a href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>" class="updraft_rescan_remote" title="<?php esc_attr_e('Press here to look inside your remote storage methods for any existing backup sets (from any site, if they are stored in the same folder).', 'updraftplus'); ?>"><?php esc_html_e('Rescan remote storage', 'updraftplus');?></a>
|
||||
</li>
|
||||
<?php if (!empty($options['include_opera_warning'])) { ?>
|
||||
<li class="updraft-opera-warning"><strong><?php esc_html_e('Opera web browser', 'updraftplus');?>:</strong> <?php esc_html_e('If you are using this, then turn Turbo/Road mode off.', 'updraftplus');?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
if (!empty($options['include_uploader'])) {
|
||||
?>
|
||||
|
||||
<div id="updraft-plupload-modal" style="display:none;" title="<?php esc_attr_e('UpdraftPlus - Upload backup files', 'updraftplus'); ?>">
|
||||
<p class="upload"><em><?php echo esc_html(__("Upload files into UpdraftPlus.", 'updraftplus').__('Or, you can place them manually into your UpdraftPlus directory (usually wp-content/updraft), e.g. via FTP, and then use the "rescan" link above.', 'updraftplus'));?></em></p>
|
||||
<?php
|
||||
if (version_compare($updraftplus->get_wordpress_version(), '3.3', '<')) {
|
||||
echo '<em>'.esc_html(sprintf(__('This feature requires %s version %s or later', 'updraftplus'), 'WordPress', '3.3')).'</em>';
|
||||
} else {
|
||||
?>
|
||||
<div id="plupload-upload-ui">
|
||||
<div id="drag-drop-area">
|
||||
<div class="drag-drop-inside">
|
||||
<p class="drag-drop-info"><?php esc_html_e('Drop your backup files', 'updraftplus'); ?></p>
|
||||
<p><?php echo esc_html_x('or', 'Uploader: Drop your backup files - or - Select Files'); ?></p>
|
||||
<p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" /></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="filelist">
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="ud_downloadstatus"></div>
|
||||
<div class="updraft_existing_backups">
|
||||
<?php
|
||||
echo UpdraftPlus_Backup_History::existing_backup_table($backup_history);// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML has an onclick attribute, but otherwise is already sanitised
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
|
||||
<h2 class="nav-tab-wrapper">
|
||||
<?php
|
||||
foreach ($main_tabs as $tab_slug => $tab_label) {
|
||||
$tab_slug_as_attr = sanitize_title($tab_slug);
|
||||
?>
|
||||
<a class="updraftplus-nav-tab <?php if ($tabflag == $tab_slug) echo 'nav-tab-active'; ?>" id="updraft-navtab-<?php echo esc_attr($tab_slug_as_attr);?>" href="<?php echo esc_url(UpdraftPlus::get_current_clean_url());?>#updraft-navtab-<?php echo esc_attr($tab_slug_as_attr);?>-content" ><?php echo esc_html($tab_label);?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access.'); ?>
|
||||
<div class="updraft_backup_content">
|
||||
<div id="updraft-insert-admin-warning"></div>
|
||||
<noscript>
|
||||
<div>
|
||||
<?php _e('JavaScript warning', 'updraftplus').': ';?><span style="color:red"><?php echo __('This admin interface uses JavaScript heavily.', 'updraftplus').' '.__('You either need to activate it within your browser, or to use a JavaScript-capable browser.', 'updraftplus');?></span>
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<?php
|
||||
if ($backup_disabled) {
|
||||
$this->show_admin_warning(
|
||||
htmlspecialchars(__("The 'Backup Now' button is disabled as your backup directory is not writable (go to the 'Settings' tab and find the relevant option).", 'updraftplus')),
|
||||
'error'
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<h3 class="updraft_next_scheduled_backups_heading"><?php _e('Next scheduled backups', 'updraftplus');?>:</h3>
|
||||
<div class="updraft_next_scheduled_backups_wrapper postbox">
|
||||
<div class="schedule">
|
||||
<div class="updraft_next_scheduled_entity">
|
||||
<div class="updraft_next_scheduled_heading">
|
||||
<strong><?php echo __('Files', 'updraftplus').':';?></strong>
|
||||
</div>
|
||||
<div id="updraft-next-files-backup-inner">
|
||||
<?php
|
||||
$updraftplus_admin->next_scheduled_files_backups_output();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updraft_next_scheduled_entity">
|
||||
<div class="updraft_next_scheduled_heading">
|
||||
<strong><?php echo __('Database', 'updraftplus').':';?></strong>
|
||||
</div>
|
||||
<div id="updraft-next-database-backup-inner">
|
||||
<?php
|
||||
$updraftplus_admin->next_scheduled_database_backups_output();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updraft_time_now_wrapper">
|
||||
<?php
|
||||
// wp_date() is WP 5.3+, but performs translation into the site locale
|
||||
$current_time = function_exists('wp_date') ? wp_date('D, F j, Y H:i') : get_date_from_gmt(gmdate('Y-m-d H:i:s'), 'D, F j, Y H:i');
|
||||
?>
|
||||
<span class="updraft_time_now_label"><?php echo __('Time now', 'updraftplus').': ';?></span>
|
||||
<span class="updraft_time_now"><?php echo $current_time;?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updraft_backup_btn_wrapper">
|
||||
<button id="updraft-backupnow-button" type="button" <?php echo $backup_disabled; ?> class="button button-primary button-large button-hero" <?php if ($backup_disabled) echo 'title="'.esc_attr(__('This button is disabled because your backup directory is not writable (see the settings).', 'updraftplus')).'" ';?> onclick="updraft_backup_dialog_open(); return false;"><?php echo str_ireplace('Back Up', 'Backup', __('Backup Now', 'updraftplus'));?></button>
|
||||
<?php
|
||||
if (!$backup_disabled) {
|
||||
$link = '<p><a href="#" id="updraftplus_incremental_backup_link" onclick="updraft_backup_dialog_open(\'incremental\'); return false;" data-incremental="0">'.__('Add changed files (incremental backup) ...', ' updraftplus ') . '</a></p>';
|
||||
echo apply_filters('updraftplus_incremental_backup_link', $link);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div id="updraft_activejobs_table">
|
||||
<?php
|
||||
$active_jobs = $this->print_active_jobs();
|
||||
?>
|
||||
<div id="updraft_activejobsrow">
|
||||
<?php echo $active_jobs;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="updraft_lastlogmessagerow">
|
||||
<h3><?php _e('Last log message', 'updraftplus');?>:</h3>
|
||||
<?php $this->most_recently_modified_log_link(); ?>
|
||||
<div class="postbox">
|
||||
<span id="updraft_lastlogcontainer"><?php echo htmlspecialchars(UpdraftPlus_Options::get_updraft_lastmessage()); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="updraft-iframe-modal">
|
||||
<div id="updraft-iframe-modal-innards">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="updraft-authenticate-modal" style="display:none;" title="<?php esc_attr_e('Remote storage authentication', 'updraftplus');?>">
|
||||
<p><?php _e('You have selected a remote storage option which has an authorization step to complete:', 'updraftplus'); ?></p>
|
||||
<div id="updraft-authenticate-modal-innards">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="updraft-backupnow-modal" title="UpdraftPlus - <?php _e('Perform a backup', 'updraftplus'); ?>">
|
||||
<?php echo $updraftplus_admin->backupnow_modal_contents(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_multisite() && !file_exists(UPDRAFTPLUS_DIR.'/addons/multisite.php')) { ?>
|
||||
<h2>UpdraftPlus <?php _e('Multisite', 'updraftplus');?></h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="multisite-advert-width"><?php echo __('Do you need WordPress Multisite support?', 'updraftplus').' <a href="'.$updraftplus->get_url('premium').'" target="_blank">'. __('Please check out UpdraftPlus Premium.', 'updraftplus');?></a>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
if (!defined('ABSPATH')) die('No direct access.');
|
||||
|
||||
// N.B. This just turns off the UI. It's still there internally (e.g. AJAX commands)
|
||||
if (defined('UPDRAFTPLUS_TEMPORARY_CLONE') && !UPDRAFTPLUS_TEMPORARY_CLONE) return;
|
||||
|
||||
UpdraftPlus::load_checkout_embed();
|
||||
|
||||
global $updraftplus_checkout_embed;
|
||||
$checkout_url = $updraftplus_checkout_embed->get_product('updraftplus-clone-tokens', UpdraftPlus_Options::admin_page_url().'?page=updraftplus&tab=migrate');
|
||||
$checkout_clone_token_attributes = 'href="'.esc_attr($checkout_url).'" target="_blank"';
|
||||
?>
|
||||
|
||||
<h2><?php esc_html_e('Create a temporary clone on our servers (UpdraftClone)', 'updraftplus'); ?></h2>
|
||||
|
||||
<div class="postbox updraftplus-clone">
|
||||
|
||||
<div class="updraft_migrate_widget_module_content">
|
||||
<header>
|
||||
<h3><span class="dashicons dashicons-admin-page"></span>UpdraftClone</h3>
|
||||
<button class="button button-link updraft_migrate_widget_temporary_clone_show_stage0"><span class="dashicons dashicons-info"></span></button>
|
||||
</header>
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage0">
|
||||
<p>
|
||||
<?php
|
||||
echo esc_html(__('A temporary clone is an instant copy of this website, running on our servers.', 'updraftplus').' '.__('Rather than test things on your live site, you can UpdraftClone it, and then throw away your clone when done.', 'updraftplus')).' <a target="_blank" href="https://updraftplus.com/updraftclone/">'.esc_html(__('Find out more here.', 'updraftplus')).'</a> <a target="_blank" href="https://updraftplus.com/faq-category/updraftclone/">'.esc_html__('Read FAQs here.', 'updraftplus').'</a> <a '.wp_kses($checkout_clone_token_attributes, array()).'>'.esc_html(__("You can buy UpdraftClone tokens from our shop, here.", 'updraftplus')).'</a>';
|
||||
?>
|
||||
</p>
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage0_container">
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage0_box">
|
||||
<ul style="list-style: disc inside;">
|
||||
<li><strong><?php echo esc_html__('Easy', 'updraftplus'); ?>:</strong> <?php esc_html_e(__('Press the buttons...', 'updraftplus').' '.__('UpdraftClone does the work.', 'updraftplus')); ?></li>
|
||||
<li><strong><?php esc_html_e('Reliable', 'updraftplus'); ?>:</strong> <?php esc_html_e('Runs on capacity from a leading cloud computing provider.', 'updraftplus'); ?></li>
|
||||
<li><strong><?php esc_html_e('Secure', 'updraftplus'); ?>:</strong> <?php esc_html_e('One VPS (Virtual Private Server) per clone, shared with nobody.', 'updraftplus'); ?></li>
|
||||
<li><strong><?php esc_html_e('Fast', 'updraftplus'); ?>:</strong> <?php esc_html_e('Takes just the time needed to create a backup and send it.', 'updraftplus'); ?></li>
|
||||
<li><strong><?php esc_html_e('Flexible', 'updraftplus'); ?>:</strong> <?php esc_html_e('If you want, test upgrading to a different PHP or WP version.', 'updraftplus'); ?></li>
|
||||
</ul>
|
||||
<?php if (is_multisite() && is_subdomain_install()) { ?>
|
||||
<p><?php echo '<a target="_blank" href="https://updraftplus.com/faqs/how-do-i-migrate-to-a-new-site-location/">' . esc_html(__('Temporary clones of WordPress subdomain multisite installations are not yet supported.', 'updraftplus').' '.__('See our documentation on how to carry out a normal migration here', 'updraftplus')) . '.</a>'; ?></p>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<button class="button button-primary button-hero updraftclone_show_step_1"><span class="dashicons dashicons-admin-page"></span><?php esc_html_e("Create a temporary clone on our servers (UpdraftClone)", "updraftplus"); ?></button>
|
||||
<p>
|
||||
<small><?php echo esc_html(__("To create a temporary clone you need credit in your account.", "updraftplus")); ?> <a <?php echo wp_kses($checkout_clone_token_attributes, array()); ?>><?php esc_html_e("You can buy UpdraftClone tokens from our shop, here.", "updraftplus"); ?></a></small>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage0_box">
|
||||
<a href="https://player.vimeo.com/video/299632775?color=df6926&autoplay=1&title=0&byline=0&portrait=0" class="udp-replace-with-iframe--js"><img src="<?php echo esc_url(trailingslashit(UPDRAFTPLUS_URL) . 'images/upraftplus-clone-screenshot.jpg'); ?>" style="max-height: 200px;" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage1" style="display: none;">
|
||||
<p>
|
||||
<?php echo esc_html(__("To create a temporary clone you need: 1) credit in your account and 2) to connect to your account, below.", "updraftplus")); ?> <a <?php echo wp_kses($checkout_clone_token_attributes, array()); ?>><?php esc_html_e("You can buy UpdraftClone tokens from our shop, here.", "updraftplus"); ?></a>
|
||||
</p>
|
||||
<?php $updraftplus_admin->build_credentials_form('temporary_clone', true, false, array('under_username' => __('Not got an account? Get one by buying some tokens here.', 'updraftplus'), 'under_username_link' => $checkout_url, 'terms_and_conditions' => __('I accept the UpdraftClone terms and conditions', 'updraftplus'), 'terms_and_conditions_link' => 'https://updraftplus.com/faqs/what-are-the-updraftclone-terms-and-conditions/')); ?>
|
||||
<h2> <?php esc_html_e('Or, use an UpdraftClone key', 'updraftplus'); ?></h2>
|
||||
<p class="updraftplus_com_key_status"></p>
|
||||
<div class="updraftplus_com_key">
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Key', 'updraftplus'); ?></th>
|
||||
<td>
|
||||
<label for="temporary_clone_options_key">
|
||||
<input id="temporary_clone_options_key" type="text" size="36" name="temporary_clone_options[key]" value="" tabindex="1" />
|
||||
<br/>
|
||||
<a target="_blank" href="https://updraftplus.com/updraftclone-keys/"><?php esc_html_e('You can find out more about clone keys here.', 'updraftplus'); ?></a>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td>
|
||||
<input type="checkbox" class="temporary_clone_terms_and_conditions" name="temporary_clone_terms_and_conditions" value="1" tabindex="1">
|
||||
<a target="_blank" href="https://updraftplus.com/faqs/what-are-the-updraftclone-terms-and-conditions/"><?php esc_html_e('I accept the UpdraftClone terms and conditions', 'updraftplus'); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="updraft-after-form-table">
|
||||
<button class="button-primary ud_key_connectsubmit" tabindex="1"><?php esc_html_e('Connect', 'updraftplus'); ?></button>
|
||||
<span class="updraftplus_spinner spinner"><?php esc_html_e('Processing', 'updraftplus'); ?>...</span></p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage2" style="display: none;"></div>
|
||||
<div class="updraft_migrate_widget_temporary_clone_stage3" style="display: none;"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
|
||||
|
||||
?>
|
||||
<div>
|
||||
<div class="updraftcentral_cloud_wizard_container">
|
||||
<div class="updraftcentral_cloud_wizard_image">
|
||||
<img src="<?php echo esc_attr(UPDRAFTPLUS_URL.'/images/updraftcentral_cloud.png');?>" alt="<?php esc_attr_e('UpdraftCentral Cloud', 'updraftplus');?>" width="150" height="150">
|
||||
</div>
|
||||
<div class="updraftcentral_cloud_wizard">
|
||||
<h2>UpdraftCentral - <?php esc_attr_e('Backup, update and manage all your WordPress sites from one dashboard', 'updraftplus');?></h2>
|
||||
<p>
|
||||
<?php echo esc_html(__('If you have a few sites, it\'ll save hours.', 'updraftplus').' '.__('It\'s free to use or try up to 5 sites.', 'updraftplus'));?> <a href="https://updraftplus.com/updraftcentral" target="_blank"><?php esc_html_e('Follow this link for more information', 'updraftplus'); ?></a>.
|
||||
</p>
|
||||
<p>
|
||||
<button id="btn_cloud_connect" class="btn btn-primary button-primary"><?php esc_html_e('Connect this site to UpdraftCentral Cloud', 'updraftplus');?></button>
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://wordpress.org/plugins/updraftcentral/" target="_blank"><?php esc_html_e('Or if you prefer to self-host, then you can get the self-hosted version here.', 'updraftplus');?></a> <a id="self_hosted_connect" href="<?php echo esc_url(UpdraftPlus::get_current_clean_url()); ?>"><?php esc_html_e('Go here to connect it.', 'updraftplus');?></a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="updraftcentral_cloud_clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="updraftcentral_cloud_login_form" style="display:none;">
|
||||
<div>
|
||||
<h2><?php esc_html_e('Login or register for UpdraftCentral Cloud', 'updraftplus');?></h2>
|
||||
<div class="updraftcentral-subheading">
|
||||
<?php esc_html_e('Add this website to your UpdraftCentral Cloud dashboard at updraftplus.com.', 'updraftplus');?>
|
||||
<ul style="list-style: disc inside;">
|
||||
<li><?php esc_html_e('If you already have an updraftplus.com account, then enter the details below.', 'updraftplus');?></li>
|
||||
<li><?php esc_html_e('If not, then choose your details and a new account will be registered.', 'updraftplus');?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updraftcentral_cloud_notices"></div>
|
||||
<form id="updraftcentral_cloud_redirect_form" method="POST"></form>
|
||||
<div class="updraftcentral_cloud_form_container">
|
||||
<table id="updraftcentral_cloud_form">
|
||||
<tbody>
|
||||
<tr class="non_tfa_fields">
|
||||
<td><?php esc_html_e('Email', 'updraftplus');?></td>
|
||||
<td>
|
||||
<input id="email" name="email" type="text" value="<?php echo esc_attr($email);?>" placeholder="<?php esc_attr_e('Login or register with this email address', 'updraftplus'); ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="non_tfa_fields">
|
||||
<td><?php esc_html_e('Password', 'updraftplus');?></td>
|
||||
<td>
|
||||
<input id="password" name="password" type="password">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tfa_fields" style="display:none;">
|
||||
<td colspan="2"><?php esc_html_e('One Time Password (check your OTP app to get this password)', 'updraftplus');?></td>
|
||||
</tr>
|
||||
<tr class="tfa_fields" style="display:none;">
|
||||
<td colspan="2">
|
||||
<input id="two_factor_code" name="two_factor_code" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="non_tfa_fields"></td>
|
||||
<td class="updraftcentral_cloud_form_buttons">
|
||||
<span class="form_hidden_fields"></span>
|
||||
<div class="non_tfa_fields updraftcentral-data-consent">
|
||||
<input type="checkbox" name="i_consent" value="1"> <label><?php echo sprintf(esc_html__('I consent to %s', 'updraftplus'), '<a href="https://updraftplus.com/data-protection-and-privacy-centre/" target="_blank">'.esc_html__('UpdraftPlus.Com account terms and policies', 'updraftplus').'</a>');?></label>
|
||||
</div>
|
||||
<button id="updraftcentral_cloud_login" class="btn btn-primary button-primary"><?php esc_html_e('Connect to UpdraftCentral Cloud', 'updraftplus');?></button>
|
||||
<span class="updraftplus_spinner spinner"><?php esc_html_e('Processing', 'updraftplus');?>...</span>
|
||||
<small><span class="updraftcentral_cloud_messages"></span></small>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
|
||||
|
||||
<div id="updraft-upload-modal" title="UpdraftPlus - <?php esc_attr_e('Upload backup', 'updraftplus');?>">
|
||||
<p><?php esc_html_e("Select the remote storage destinations you want to upload this backup set to", 'updraftplus');?>:</p>
|
||||
<form id="updraft_upload_form" method="post">
|
||||
<fieldset>
|
||||
<input type="hidden" name="backup_timestamp" value="0" id="updraft_upload_timestamp">
|
||||
<input type="hidden" name="backup_nonce" value="0" id="updraft_upload_nonce">
|
||||
|
||||
<?php
|
||||
global $updraftplus;
|
||||
|
||||
$service = (array) $updraftplus->just_one($updraftplus->get_canonical_service_list());
|
||||
|
||||
foreach ($service as $value) {
|
||||
if ('' == $value) continue;
|
||||
echo '<input class="updraft_remote_storage_destination" id="updraft_remote_'.esc_attr($value).'" checked="checked" type="checkbox" name="updraft_remote_storage_destination_'. esc_attr($value) . '" value="'.esc_attr($value).'"> <label for="updraft_remote_'.esc_attr($value).'">'.esc_html($updraftplus->backup_methods[$value]).' <span style="display: none">('.esc_html__('already uploaded', 'updraftplus').')</span></label><br>';
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
</form>
|
||||
<p id="updraft-upload-modal-error"></p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user