Add upstream

This commit is contained in:
root
2019-10-24 00:12:05 +02:00
parent 85d41e4216
commit ac980f592c
3504 changed files with 1049983 additions and 29971 deletions

View File

@@ -0,0 +1,27 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="expertmode">
<p>
<em><?php _e('Unless you have a problem, you can completely ignore everything here.', 'updraftplus');?></em>
</p>
<div class="advanced_settings_container">
<div class="advanced_settings_menu">
<?php
$updraftplus_admin->include_template('/wp-admin/advanced/tools-menu.php');
?>
</div>
<div class="advanced_settings_content">
<?php
if (empty($options)) $options = array();
$updraftplus_admin->include_template('/wp-admin/advanced/site-info.php', false, array('options' => $options));
$updraftplus_admin->include_template('/wp-admin/advanced/lock-admin.php');
$updraftplus_admin->include_template('/wp-admin/advanced/updraftcentral.php');
$updraftplus_admin->include_template('/wp-admin/advanced/search-replace.php');
$updraftplus_admin->include_template('/wp-admin/advanced/total-size.php');
$updraftplus_admin->include_template('/wp-admin/advanced/export-settings.php');
$updraftplus_admin->include_template('/wp-admin/advanced/wipe-settings.php');
?>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools export_settings">
<h3><?php _e('Export / import settings', 'updraftplus');?></h3>
<p>
<?php printf(__('Here, you can export your UpdraftPlus settings (%s), either for using on another site, or to keep as a backup. This tool will export what is currently in the settings tab.', 'updraftplus'), '<strong>'.__('including any passwords', 'updraftplus').'</strong>');?>
</p>
<button type="button" style="clear:left;" class="button-primary" id="updraftplus-settings-export"><?php _e('Export settings', 'updraftplus');?></button>
<p>
<?php _e('You can also import previously-exported settings. This tool will replace all your saved settings.', 'updraftplus'); ?>
</p>
<button type="button" style="clear:left;" class="button-primary" id="updraftplus-settings-import"><?php _e('Import settings', 'updraftplus');?></button>
<input type="file" name="settings_file" id="import_settings">
</div>

View File

@@ -0,0 +1,26 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
if (!class_exists('UpdraftPlus_Addon_LockAdmin') || (defined('UPDRAFTPLUS_NOADMINLOCK') && UPDRAFTPLUS_NOADMINLOCK)) { ?>
<div class="advanced_tools lock_admin">
<p class="updraftplus-lock-advert">
<h3><?php _e('Lock access to the UpdraftPlus settings page', 'updraftplus'); ?></h3>
<?php
if (defined('UPDRAFTPLUS_NOADMINLOCK') && UPDRAFTPLUS_NOADMINLOCK) {
_e('This functionality has been disabled by the site administrator.', 'updraftplus');
} else {
?><a href="<?php apply_filters("updraftplus_com_link", "https://updraftplus.com/shop/updraftplus-premium/");?>" target="_blank">
<em><?php _e('For the ability to lock access to UpdraftPlus settings with a password, upgrade to UpdraftPlus Premium.', 'updraftplus'); ?></em>
</a><?php
}
?>
</p>
</div>
<?php }

View File

@@ -0,0 +1,13 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<?php if (!class_exists('UpdraftPlus_Addons_Migrator')) : ?>
<div class="advanced_tools search_replace">
<p class="updraftplus-search-replace-advert">
<h3><?php echo __('Search / replace database', 'updraftplus'); ?></h3>
<a href="<?php apply_filters("updraftplus_com_link", "https://updraftplus.com/shop/updraftplus-premium/");?>" target="_blank">
<em><?php _e('For the ability to migrate websites, upgrade to UpdraftPlus Premium.', 'updraftplus'); ?></em>
</a>
</p>
</div>
<?php endif;

View File

@@ -0,0 +1,108 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools site_info">
<h3><?php _e('Site information', 'updraftplus');?></h3>
<table>
<?php
// It appears (Mar 2015) that some mod_security distributions block the output of the string el6.x86_64 in PHP output, on the silly assumption that only hackers are interested in knowing what environment PHP is running on.
$uname_info = @php_uname('s').' '.@php_uname('n').' ';
$release_name = @php_uname('r');
if (preg_match('/^(.*)\.(x86_64|[3456]86)$/', $release_name, $matches)) {
$release_name = $matches[1].' ';
} else {
$release_name = '';
}
// In case someone does something similar with just the processor type string
$mtype = @php_uname('m');
if ('x86_64' == $mtype) {
$mtype = '64-bit';
} elseif (preg_match('/^i([3456]86)$/', $mtype, $matches)) {
$mtype = $matches[1];
}
$uname_info .= $release_name.$mtype.' '.@php_uname('v');
$web_server = $_SERVER["SERVER_SOFTWARE"];
$updraftplus_admin->settings_debugrow(__('Web server:', 'updraftplus'), htmlspecialchars($web_server).' ('.htmlspecialchars($uname_info).')');
$updraftplus_admin->settings_debugrow('ABSPATH:', htmlspecialchars(ABSPATH));
$updraftplus_admin->settings_debugrow('WP_CONTENT_DIR:', htmlspecialchars(WP_CONTENT_DIR));
$updraftplus_admin->settings_debugrow('WP_PLUGIN_DIR:', htmlspecialchars(WP_PLUGIN_DIR));
$updraftplus_admin->settings_debugrow('Table prefix:', htmlspecialchars($updraftplus->get_table_prefix()));
$updraftplus_admin->settings_debugrow(__('Web-server disk space in use by UpdraftPlus', 'updraftplus').':', '<span class="updraft_diskspaceused">'.UpdraftPlus_Filesystem_Functions::get_disk_space_used('updraft').'</span> <a class="updraft_diskspaceused_update" href="'.UpdraftPlus::get_current_clean_url().'">'.__('refresh', 'updraftplus').'</a>');
$peak_memory_usage = memory_get_peak_usage(true)/1048576;
$memory_usage = memory_get_usage(true)/1048576;
$updraftplus_admin->settings_debugrow(__('Peak memory usage', 'updraftplus').':', $peak_memory_usage.' MB');
$updraftplus_admin->settings_debugrow(__('Current memory usage', 'updraftplus').':', $memory_usage.' MB');
$updraftplus_admin->settings_debugrow(__('Memory limit', 'updraftplus').':', htmlspecialchars(ini_get('memory_limit')));
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'PHP'), htmlspecialchars(phpversion()).' - <a href="admin-ajax.php?page=updraftplus&amp;action=updraft_ajax&amp;subaction=phpinfo&amp;nonce='.wp_create_nonce('updraftplus-credentialtest-nonce').'" id="updraftplus-phpinfo">'.__('show PHP information (phpinfo)', 'updraftplus').'</a>');
$db_version = $wpdb->get_var('SELECT VERSION()');
// WPDB::db_version() uses mysqli_get_server_info() ; see: https://github.com/joomla/joomla-cms/issues/9062
if ('' == $db_version) $db_version = $wpdb->db_version();
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'MySQL'), htmlspecialchars($db_version));
if (function_exists('curl_version') && function_exists('curl_exec')) {
$cv = curl_version();
$cvs = $cv['version'].' / SSL: '.$cv['ssl_version'].' / libz: '.$cv['libz_version'];
} else {
$cvs = __('Not installed', 'updraftplus').' ('.__('required for some remote storage providers', 'updraftplus').')';
}
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'Curl'), htmlspecialchars($cvs));
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'OpenSSL'), defined('OPENSSL_VERSION_TEXT') ? OPENSSL_VERSION_TEXT : '-');
$updraftplus_admin->settings_debugrow('MCrypt:', function_exists('mcrypt_encrypt') ? __('Yes') : __('No'));
if (version_compare(PHP_VERSION, '5.2.0', '>=') && extension_loaded('zip')) {
$ziparchive_exists = __('Yes', 'updraftplus');
} else {
// First do class_exists, because method_exists still sometimes segfaults due to a rare PHP bug
$ziparchive_exists = (class_exists('ZipArchive') && method_exists('ZipArchive', 'addFile')) ? __('Yes', 'updraftplus') : __('No', 'updraftplus');
}
$updraftplus_admin->settings_debugrow('ZipArchive::addFile:', $ziparchive_exists);
$binzip = $updraftplus->find_working_bin_zip(false, false);
$updraftplus_admin->settings_debugrow(__('zip executable found:', 'updraftplus'), ((is_string($binzip)) ? __('Yes').': '.$binzip : __('No')));
$hosting_bytes_free = $updraftplus->get_hosting_disk_quota_free();
if (is_array($hosting_bytes_free)) {
$perc = round(100*$hosting_bytes_free[1]/(max($hosting_bytes_free[2], 1)), 1);
$updraftplus_admin->settings_debugrow(__('Free disk space in account:', 'updraftplus'), sprintf(__('%s (%s used)', 'updraftplus'), round($hosting_bytes_free[3]/1048576, 1)." MB", "$perc %"));
}
if (function_exists('apache_get_modules')) {
$apache_info = '';
$apache_modules = apache_get_modules();
if (is_array($apache_modules)) {
sort($apache_modules, SORT_STRING);
foreach ($apache_modules as $mod) {
if (0 === strpos($mod, 'mod_')) {
$apache_info .= ', '.substr($mod, 4);
} else {
$apache_info .= ', '.$mod;
}
}
}
$apache_info = substr($apache_info, 2);
$updraftplus_admin->settings_debugrow(__('Apache modules', 'updraftplus').':', $apache_info);
}
if (empty($options['suppress_plugins_for_debugging'])) {
$updraftplus_admin->settings_debugrow(__('Plugins for debugging:', 'updraftplus'), '<a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=wp-crontrol'), 'install-plugin_wp-crontrol').'">WP Crontrol</a> | <a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=sql-executioner'), 'install-plugin_sql-executioner').'">SQL Executioner</a> | <a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=advanced-code-editor'), 'install-plugin_advanced-code-editor').'">Advanced Code Editor</a> '.(current_user_can('edit_plugins') ? '<a href="'.self_admin_url('plugin-editor.php?file=updraftplus/updraftplus.php').'">(edit UpdraftPlus)</a>' : '').' | <a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=wp-filemanager'), 'install-plugin_wp-filemanager').'">WP Filemanager</a>');
}
$updraftplus_admin->settings_debugrow("HTTP Get: ", '<input id="updraftplus_httpget_uri" type="text" class="call-action"> <a href="'.UpdraftPlus::get_current_clean_url().'" id="updraftplus_httpget_go">'.__('Fetch', 'updraftplus').'</a> <a href="'.UpdraftPlus::get_current_clean_url().'" id="updraftplus_httpget_gocurl">'.__('Fetch', 'updraftplus').' (Curl)</a><p id="updraftplus_httpget_results"></p>');
$updraftplus_admin->settings_debugrow(__("Call WordPress action:", 'updraftplus'), '<input id="updraftplus_callwpaction" type="text" class="call-action"> <a href="'.UpdraftPlus::get_current_clean_url().'" id="updraftplus_callwpaction_go">'.__('Call', 'updraftplus').'</a><div id="updraftplus_callwpaction_results"></div>');
$updraftplus_admin->settings_debugrow('Site ID:', '(used to identify any Vault connections) <span id="updraft_show_sid">'.htmlspecialchars($updraftplus->siteid()).'</span> - <a href="'.UpdraftPlus::get_current_clean_url().'" id="updraft_reset_sid">'.__('reset', 'updraftplus')."</a>");
$updraftplus_admin->settings_debugrow('', '<a href="admin-ajax.php?page=updraftplus&amp;action=updraft_ajax&amp;subaction=backuphistoryraw&amp;nonce='.wp_create_nonce('updraftplus-credentialtest-nonce').'" id="updraftplus-rawbackuphistory">'.__('Show raw backup and file list', 'updraftplus').'</a><br><span class="hidden-in-updraftcentral"><a id="updraftplus-remote-rescan-debug" href="#">'.__('Rescan remote storage', 'updraftplus').' - '.__('log results to console', 'updraftplus').'</a></span>');
?>
</table>
</div>

View File

@@ -0,0 +1,31 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools_button active" id="site_info">
<span class="advanced_tools_text dashicons dashicons-info"></span>
<?php _e('Site information', 'updraftplus');?>
</div>
<div class="advanced_tools_button" id="lock_admin">
<span class="advanced_tools_text dashicons dashicons-lock"></span>
<?php _e('Lock settings', 'updraftplus');?>
</div>
<div class="advanced_tools_button" id="updraft_central">
<span class="advanced_tools_text dashicons dashicons-networking"></span>
UpdraftCentral
</div>
<div class="advanced_tools_button" id="search_replace">
<span class="advanced_tools_text dashicons dashicons-search"></span>
<?php _e('Search / replace database', 'updraftplus');?>
</div>
<div class="advanced_tools_button" id="total_size">
<span class="advanced_tools_text dashicons dashicons-performance"></span>
<?php _e('Site size', 'updraftplus');?>
</div>
<div class="advanced_tools_button" id="export_settings">
<span class="advanced_tools_text dashicons dashicons-media-default"></span>
<?php _e('Export / import settings', 'updraftplus');?>
</div>
<div class="advanced_tools_button" id="wipe_settings">
<span class="advanced_tools_text dashicons dashicons-trash"></span>
<?php _e('Wipe settings', 'updraftplus');?>
</div>

View File

@@ -0,0 +1,23 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
$backupable_entities = $updraftplus->get_backupable_file_entities(true, true);
?>
<div class="advanced_tools total_size">
<h3> <?php _e('Total (uncompressed) on-disk data:', 'updraftplus');?></h3>
<p class="uncompressed-data">
<em>
<?php _e('N.B. This count is based upon what was, or was not, excluded the last time you saved the options.', 'updraftplus');?>
</em>
</p>
<table>
<?php
foreach ($backupable_entities as $key => $info) {
$sdescrip = preg_replace('/ \(.*\)$/', '', $info['description']);
if (strlen($sdescrip) > 20 && isset($info['shortdescription'])) $sdescrip = $info['shortdescription'];
$updraftplus_admin->settings_debugrow(ucfirst($sdescrip).':', '<span id="updraft_diskspaceused_'.$key.'"><em></em></span> <a href="'.UpdraftPlus::get_current_clean_url().'" class="count" data-type="' . $key . '" onclick="updraftplus_diskspace_entity(\''.$key.'\'); return false;">'.__('count', 'updraftplus').'</a>');
}
?>
</table>
</div>

View File

@@ -0,0 +1,3 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
do_action('updraftplus_debugtools_dashboard');

View File

@@ -0,0 +1,15 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools wipe_settings">
<h3><?php _e('Wipe settings', 'updraftplus');?></h3>
<p><?php echo __('This button will delete all UpdraftPlus settings and progress information for in-progress backups (but not any of your existing backups from your cloud storage).', 'updraftplus').' '.__('You will then need to enter all your settings again. You can also do this before deactivating/deinstalling UpdraftPlus if you wish.', 'updraftplus');?></p>
<form method="post" action="<?php echo esc_url(add_query_arg(array('error' => false, 'updraft_restore_success' => false, 'action' => false, 'page' => 'updraftplus'))); ?>">
<input type="hidden" name="action" value="updraft_wipesettings" />
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('updraftplus-wipe-setting-nonce');?>">
<input type="submit" class="button-primary updraft_wipe_settings" value="<?php _e('Wipe settings', 'updraftplus'); ?>" onclick="var updraftplus_wipe_settings = confirm('<?php echo esc_js(__('This will delete all your UpdraftPlus settings - are you sure you want to do this?', 'updraftplus'));?>'); if (updraftplus_wipe_settings) { updraft_settings_form_changed = false; }; return updraftplus_wipe_settings;">
</form>
<h3><?php _e('UpdraftPlus Tour', 'updraftplus');?></h3>
<p><?php _e('Press this button to take a tour of the plugin.', 'updraftplus'); ?></p>
<a href="<?php echo UpdraftPlus_Options::admin_page_url(); ?>?page=updraftplus&updraftplus_tour=1" class="js-updraftplus-tour button button-primary"><?php _e("Reset tour", "updraftplus"); ?></a>
</div>

View File

@@ -0,0 +1,40 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<div class="updraft-ad-container updated">
<div class="updraft_notice_container">
<div class="updraft_advert_content_left">
<img src="<?php echo UPDRAFTPLUS_URL.'/images/'.$image;?>" width="60" height="60" alt="<?php _e('notice image', 'updraftplus');?>" />
</div>
<div class="updraft_advert_content_right">
<h3 class="updraft_advert_heading">
<?php
if (!empty($prefix)) echo $prefix.' ';
echo $title;
?>
<div class="updraft-advert-dismiss">
<?php if (!empty($dismiss_time)) { ?>
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'updraft_ajax', subaction: '<?php echo $dismiss_time;?>', nonce: '<?php echo wp_create_nonce('updraftplus-credentialtest-nonce');?>' });"><?php _e('Dismiss', 'updraftplus'); ?></a>
<?php } else { ?>
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp();"><?php _e('Dismiss', 'updraftplus'); ?></a>
<?php } ?>
</div>
</h3>
<p>
<?php
echo $text;
?>
</p>
<p>
<?php
echo $text2;
?>
</p>
<p>
<?php
echo $text3;
?>
</p>
</div>
</div>
<div class="clear"></div>
</div>

View File

@@ -0,0 +1,40 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<div class="updraft_advert_bottom">
<div class="updraft_advert_content_right">
<h4 class="updraft_advert_heading">
<?php
if (!empty($prefix)) echo $prefix.' ';
echo $title;
?>
</h4>
<p>
<?php
echo $text;
if (isset($discount_code)) echo ' <b>' . $discount_code . '</b>';
if (!empty($button_link) && !empty($button_meta)) {
?>
<a class="updraft_notice_link" href="<?php esc_attr_e(apply_filters('updraftplus_com_link', $button_link));?>"><?php
if ('updraftcentral' == $button_meta) {
_e('Get UpdraftCentral', 'updraftplus');
} elseif ('review' == $button_meta) {
_e('Review UpdraftPlus', 'updraftplus');
} elseif ('updraftplus' == $button_meta) {
_e('Get Premium', 'updraftplus');
} elseif ('signup' == $button_meta) {
_e('Sign up', 'updraftplus');
} elseif ('go_there' == $button_meta) {
_e('Go there', 'updraftplus');
} else {
_e('Read more', 'updraftplus');
}
?></a>
<?php
}
?>
</p>
</div>
<div class="clear"></div>
</div>

View File

@@ -0,0 +1,52 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<div class="updraft-ad-container updated">
<div class="updraft_notice_container">
<div class="updraft_advert_content_left">
<img src="<?php echo UPDRAFTPLUS_URL.'/images/'.$image;?>" width="60" height="60" alt="<?php _e('notice image', 'updraftplus');?>" />
</div>
<div class="updraft_advert_content_right">
<h3 class="updraft_advert_heading">
<?php
if (!empty($prefix)) echo $prefix.' ';
echo $title;
?>
<div class="updraft-advert-dismiss">
<?php if (!empty($dismiss_time)) { ?>
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'updraft_ajax', subaction: '<?php echo $dismiss_time;?>', nonce: '<?php echo wp_create_nonce('updraftplus-credentialtest-nonce');?>' });"><?php _e('Dismiss', 'updraftplus'); ?></a>
<?php } else { ?>
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp();"><?php _e('Dismiss', 'updraftplus'); ?></a>
<?php } ?>
</div>
</h3>
<p>
<?php
echo $text;
if (isset($discount_code)) echo ' <b>' . $discount_code . '</b>';
if (!empty($button_link) && !empty($button_meta)) {
?>
<a class="updraft_notice_link" href="<?php esc_attr_e(apply_filters('updraftplus_com_link', $button_link));?>"><?php
if ('updraftcentral' == $button_meta) {
_e('Get UpdraftCentral', 'updraftplus');
} elseif ('review' == $button_meta) {
_e('Review UpdraftPlus', 'updraftplus');
} elseif ('updraftplus' == $button_meta) {
_e('Get Premium', 'updraftplus');
} elseif ('signup' == $button_meta) {
_e('Sign up', 'updraftplus');
} elseif ('go_there' == $button_meta) {
_e('Go there', 'updraftplus');
} else {
_e('Read more', 'updraftplus');
}
?></a>
<?php
}
?>
</p>
</div>
</div>
<div class="clear"></div>
</div>

View File

@@ -0,0 +1,39 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
if (!empty($prefix)) echo $prefix.' ';
echo $title.': ';
echo empty($text_plain) ? $text : $text_plain;
if (!empty($discount_code)) echo $discount_code.' ';
// if (isset($text2)) {
// echo "\r\n\r\n" . $text2 . "\r\n\r\n";
// }
if (!empty($button_link) && !empty($button_meta)) {
echo ' ';
$link = apply_filters('updraftplus_com_link', $button_link);
if ('updraftcentral' == $button_meta) {
_e('Get UpdraftCentral', 'updraftplus');
} elseif ('review' == $button_meta) {
_e('Review UpdraftPlus', 'updraftplus');
} elseif ('updraftplus' == $button_meta) {
_e('Get Premium', 'updraftplus');
} elseif ('signup' == $button_meta) {
_e('Sign up', 'updraftplus');
} elseif ('go_there' == $button_meta) {
_e('Go there', 'updraftplus');
} else {
_e('Read more', 'updraftplus');
}
echo ' - '.$link;
echo "\r\n";
}

View File

@@ -0,0 +1,34 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<strong><?php
if (!empty($prefix)) echo $prefix.' ';
echo $title;
?></strong>:
<?php
echo $text;
if (isset($discount_code)) echo ' <b>' . $discount_code . '</b>';
// if (isset($text2)) {
// echo '</p><p>' . $text2 . '</p><p>';
// }
if (!empty($button_link) && !empty($button_meta)) {
?>
<a class="updraft_notice_link" href="<?php esc_attr_e(apply_filters('updraftplus_com_link', $button_link));?>"><?php
if ('updraftcentral' ==$button_meta) {
_e('Get UpdraftCentral', 'updraftplus');
} elseif ('review' == $button_meta) {
_e('Review UpdraftPlus', 'updraftplus');
} elseif ('updraftplus' == $button_meta) {
_e('Get Premium', 'updraftplus');
} elseif ('signup' == $button_meta) {
_e('Sign up', 'updraftplus');
} elseif ('go_there' == $button_meta) {
_e('Go there', 'updraftplus');
} else {
_e('Read more', 'updraftplus');
}
?></a><br> <br>
<?php }

View File

@@ -0,0 +1,37 @@
<div id="updraft-dashnotice" class="updated">
<div style="float:right;"><a href="#" onclick="jQuery('#updraft-dashnotice').slideUp(); jQuery.post(ajaxurl, {action: 'updraft_ajax', subaction: 'dismissdashnotice', nonce: '<?php echo wp_create_nonce('updraftplus-credentialtest-nonce');?>' });"><?php printf(__('Dismiss (for %s months)', 'updraftplus'), 12); ?></a></div>
<h3><?php _e('Thank you for installing UpdraftPlus!', 'updraftplus');?></h3>
<a href="<?php echo apply_filters('updraftplus_com_link', 'https://updraftplus.com/');?>"><img style="border: 0px; float: right; height: 150px; width: 150px; margin: 20px 15px 15px 35px;" alt="UpdraftPlus" src="<?php echo UPDRAFTPLUS_URL.'/images/ud-logo-150.png'; ?>"></a>
<?php
echo '<p>'.__('Super-charge and secure your WordPress site with our other top plugins:', 'updraftplus').'</p>';
?>
<p>
<?php echo '<strong><a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/updraftplus-premium/").'" target="_blank">'.__('UpdraftPlus Premium', 'updraftplus').'</a>: </strong>'.__("For personal support, the ability to copy sites, more storage destinations, encrypted backups for security, multiple backup destinations, better reporting, no adverts and plenty more, take a look at the premium version of UpdraftPlus - the world's most popular backup plugin.", 'updraftplus');
echo ' <a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/comparison-updraftplus-free-updraftplus-premium/").'" target="_blank">'.__('Compare with the free version', 'updraftplus').'</a> / <a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/updraftplus-premium/").'" target="_blank">'.__('Go to the shop.', 'updraftplus').'</a>';
?>
</p>
<p>
<?php echo '<strong><a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/updraftcentral/").'" target="_blank">'.__('UpdraftCentral', 'updraftplus').'</a> </strong>'.__('is a highly efficient way to manage, update and backup multiple websites from one place.', 'updraftplus'); ?>
</p>
<p>
<?php echo '<strong><a href="https://www.metaslider.com" target="_blank">MetaSlider</a>: </strong>'.__('Add style and flare easily with beautifully-designed sliders on the #1 WP slider plugin', 'updraftplus'); ?>
</p>
<p>
<?php echo '<strong><a href="https://getwpo.com" target="_blank">WP-Optimize</a>: </strong>'.__('Auto-clean your WordPress database so that it runs at maximum efficiency. 800,000 users!', 'updraftplus'); ?>
</p>
<p>
<?php echo '<strong><a href="https://getkeyy.com/" target="_blank">Keyy: </a></strong>'.__('Simple and secure login with a wave of your phone.', 'updraftplus'); ?>
</p>
<p>
<?php echo '<strong><a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/newsletter-signup").'" target="_blank">'.__('Free Newsletter', 'updraftplus').'</a>: </strong>'.__('UpdraftPlus news, high-quality training materials for WordPress developers and site-owners, and general WordPress news. You can de-subscribe at any time.', 'updraftplus'); ?>
</p>
<p>
<?php echo '<strong>'.__('More quality plugins', 'updraftplus').' :</strong>';?>
<a href="https://www.simbahosting.co.uk/s3/shop/" target="_blank"><?php echo __('Premium WooCommerce plugins', 'updraftplus').'</a> | <a href="https://wordpress.org/plugins/two-factor-authentication/" target="_blank">'.__('Free two-factor security plugin', 'updraftplus');?></a>
</p>
<div style="float:right;"><a href="#>" onclick="jQuery('#updraft-dashnotice').slideUp(); jQuery.post(ajaxurl, {action: 'updraft_ajax', subaction: 'dismissdashnotice', nonce: '<?php echo wp_create_nonce('updraftplus-credentialtest-nonce');?>' });"><?php printf(__('Dismiss (for %s months)', 'updraftplus'), 12); ?></a></div>
<p>&nbsp;</p>
</div>

View File

@@ -0,0 +1,68 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access.');
global $updraftplus;
$premium_link = apply_filters('updraftplus_com_link', 'https://updraftplus.com/landing/updraftplus-premium');
$free_ret = '<em>'.__('All WordPress tables will be backed up.', 'updraftplus').' <a href="'.$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 _e('Take a new backup', 'updraftplus');?></h3>
<h3 class="incremental-backups-only"><?php _e('Take an incremental backup', 'updraftplus');?></h3>
</p>
<div class="incremental-free-only">
<p><?php echo sprintf(__('Incremental backups are a feature of %s (upgrade by following this link).', 'updraftplus'), '<a href="'.$updraftplus->get_url('premium').'" target="_blank">UpdraftPlus Premium').'</a>'; ?>
</a>
<br>
<a href="https://updraftplus.com/tell-me-more-about-incremental-backups/" target="_blank"><?php _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 _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, '');?>
</div>
</p>
<p>
<input type="checkbox" class="new-backups-only" id="backupnow_includefiles" checked="checked">
<label id="backupnow_includefiles_label" for="backupnow_includefiles"><?php _e("Include your files in the backup", 'updraftplus'); ?></label>
(<a href="<?php echo $updraftplus->get_current_clean_url(); ?>" id="backupnow_includefiles_showmoreoptions">...</a>)<br>
<div id="backupnow_includefiles_moreoptions" class="updraft-hidden" style="display:none;">
<em><?php _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'); ?>
</div>
</p>
<div class="backupnow_modal_afterfileoptions">
<?php echo apply_filters('updraft_backupnow_modal_afterfileoptions', '', ''); ?>
</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 _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', '', ''); ?>
</div>
<p class="incremental-backups-only">
<a href="https://updraftplus.com/tell-me-more-about-incremental-backups/" target="_blank"><?php _e('Find out more about incremental backups here.', 'updraftplus'); ?></a>
</p>

View File

@@ -0,0 +1,86 @@
<?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 _e('Delete backup set', 'updraftplus');?>">
<form id="updraft_delete_form" method="post">
<p id="updraft_delete_question_singular">
<?php printf(__('Are you sure that you wish to remove %s from UpdraftPlus?', 'updraftplus'), __('this backup set', 'updraftplus')); ?>
</p>
<p id="updraft_delete_question_plural" class="updraft-hidden" style="display:none;">
<?php printf(__('Are you sure that you wish to remove %s from UpdraftPlus?', 'updraftplus'), __('these backup sets', 'updraftplus')); ?>
</p>
<fieldset>
<input type="hidden" name="nonce" value="<?php echo 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 _e('Also delete from remote storage', 'updraftplus');?></label><br>
</div>
</fieldset>
</form>
</div>
<div id="updraft-restore-modal" title="UpdraftPlus - <?php _e('Restore backup', 'updraftplus');?>">
<p><strong><?php _e('Restore files from', 'updraftplus');?>:</strong> <span class="updraft_restore_date"></span></p>
<div id="updraft-restore-modal-stage2">
<p><strong><?php _e('Retrieving (if necessary) and preparing backup files...', 'updraftplus');?></strong></p>
<div id="ud_downloadstatus2"></div>
<div id="updraft-restore-modal-stage2a"></div>
</div>
<div id="updraft-restore-modal-stage1">
<p><?php _e("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');?> <?php _e('Choose the components to restore', 'updraftplus');?>:</p>
<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 "<p><em>".__("Your web server has PHP's so-called safe_mode active.", 'updraftplus').' '.__('This makes time-outs much more likely. You are recommended to turn safe_mode off, or to restore only one entity at a time', 'updraftplus').' <a href="'.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><br>';
}
$backupable_entities = $updraftplus->get_backupable_file_entities(true, true);
foreach ($backupable_entities as $type => $info) {
if (!isset($info['restorable']) || true == $info['restorable']) {
echo '<div><input id="updraft_restore_'.$type.'" type="checkbox" name="updraft_restore[]" value="'.$type.'"> <label id="updraft_restore_label_'.$type.'" for="updraft_restore_'.$type.'">'.$info['description'].'</label><br>';
do_action("updraftplus_restore_form_$type");
echo '</div>';
} else {
$sdescrip = isset($info['shortdescription']) ? $info['shortdescription'] : $info['description'];
echo "<div class=\"cannot-restore\"><em>".htmlspecialchars(sprintf(__('The following entity cannot be restored automatically: "%s".', 'updraftplus'), $sdescrip))." ".__('You will need to restore it manually.', 'updraftplus')."</em><br>".'<input id="updraft_restore_'.$type.'" type="hidden" name="updraft_restore[]" value="'.$type.'">';
echo '</div>';
}
}
?>
<div>
<input id="updraft_restore_db" type="checkbox" name="updraft_restore[]" value="db"> <label for="updraft_restore_db"><?php _e('Database', 'updraftplus'); ?></label>
<div id="updraft_restorer_dboptions" class="updraft-hidden" style="display:none;"><h4><?php echo sprintf(__('%s restoration options:', 'updraftplus'), __('Database', 'updraftplus')); ?></h4>
<?php
do_action("updraftplus_restore_form_db");
?>
</div>
</div>
</fieldset>
</form>
<p><em><a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/faqs/what-should-i-understand-before-undertaking-a-restoration/");?>" target="_blank"><?php _e('Do read this helpful article of useful things to know before restoring.', 'updraftplus');?></a></em></p>
</div>
</div>

View File

@@ -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>'.__('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>'.__('Warning', 'updraftplus').':</strong> '.__('Your WordPress installation has a problem with outputting extra whitespace. This can corrupt backups that you download from here.', 'updraftplus').' <a href="'.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 $bom_warning;
?>
</p>
<?php
}
?>
<ul class="updraft-disk-space-actions">
<?php
echo UpdraftPlus_Filesystem_Functions::web_server_disk_space($options['will_immediately_calculate_disk_space']);
?>
<li class="updraft-server-scan">
<strong><?php _e('More tasks:', 'updraftplus');?></strong>
<?php
if (!empty($options['include_uploader'])) {
?>
<a class="updraft_uploader_toggle" href="<?php echo UpdraftPlus::get_current_clean_url();?>"><?php _e('Upload backup files', 'updraftplus'); ?></a> |
<?php
}
?>
<a href="<?php echo UpdraftPlus::get_current_clean_url();?>" class="updraft_rescan_local" title="<?php echo __('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 _e('Rescan local folder for new backup sets', 'updraftplus');?></a>
| <a href="<?php echo UpdraftPlus::get_current_clean_url();?>" class="updraft_rescan_remote" title="<?php _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 _e('Rescan remote storage', 'updraftplus');?></a>
</li>
<?php if (!empty($options['include_opera_warning'])) { ?>
<li class="updraft-opera-warning"><strong><?php _e('Opera web browser', 'updraftplus');?>:</strong> <?php _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 _e('UpdraftPlus - Upload backup files', 'updraftplus'); ?>">
<p class="upload"><em><?php _e("Upload files into UpdraftPlus.", 'updraftplus');?> <?php echo htmlspecialchars(__('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>'.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 _e('Drop backup files here', 'updraftplus'); ?></p>
<p><?php _ex('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); ?>
</div>
</div>

View File

@@ -0,0 +1,64 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<div id="updraft_exclude_modal" title="UpdraftPlus - <?php _e('Exclude files/directories', 'updraftplus');?>">
<div id="updraft_exclude_modal_main">
<input type="hidden" id="updraft_exclude_modal_for" value=""/>
<input type="hidden" id="updraft_exclude_modal_path" value=""/>
<p><?php _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 _e('File/directory', 'updraftplus');?></a>
</li>
<li>
<a href="#" class="updraft-exclude-link" data-panel="extension"><?php _e('All files with this extension', 'updraftplus');?></a>
</li>
<li>
<a href="#" class="updraft-exclude-link" data-panel="begin-with"><?php _e('All files beginning with given characters', 'updraftplus');?></a>
</li>
</ol>
</div>
<?php $panel = 'file-dir';?>
<div class="updraft-exclude-panel updraft-hidden" data-panel="<?php echo $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 _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 $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 _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 _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 $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 _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 _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>
</div>

View File

@@ -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 echo __('Back...', 'updraftplus');?></a>
</div>

View File

@@ -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 _e('Add an exclusion rule', 'updraftplus');?>" data-panel="<?php echo esc_attr($panel);?>"/>

View File

@@ -0,0 +1,162 @@
<?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 _e('Select All'); ?></label><input id="cb-select-all" type="checkbox"></th>
<?php endif; ?>
<th class="backup-date"><?php _e('Backup date', 'updraftplus');?></th>
<th class="backup-data"><?php _e('Backup data (click to download)', 'updraftplus');?></th>
<th class="updraft_backup_actions"><?php _e('Actions', 'updraftplus');?></th>
</tr>
</thead>
<tbody>
<?php
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);
$delete_button = $updraftplus_admin->delete_button($key, $nonce, $backup);
$upload_button = $updraftplus_admin->upload_button($key, $nonce, $backup, $jobdata);
$date_label = $updraftplus_admin->date_label($pretty_date, $key, $backup, $jobdata, $nonce);
$log_button = $updraftplus_admin->log_button($backup);
// 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 $key;?>" data-key="<?php echo $key;?>" data-nonce="<?php echo $nonce;?>">
<?php if (!defined('UPDRAFTCENTRAL_COMMAND')) : ?>
<td class="backup-select">
<label class="screen-reader-text"><?php _e('Select All'); ?></label><input type="checkbox">
</td>
<?php endif; ?>
<td class="updraft_existingbackup_date " data-rawbackup="<?php echo $rawbackup;?>" data-label="<?php _e('Backup date', 'updraftplus');?>">
<div class="backup_date_label">
<?php
echo $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_attr($image_url);?>" title="<?php echo esc_attr(__('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_attr($image_url);?>" title="<?php echo esc_attr(sprintf(__('Remote storage: %s', 'updraftplus'), $remote_storage));?>">
<?php
}
}
?>
</div>
</td>
<td data-label="<?php _e('Backup data (click to download)', 'updraftplus');?>"><?php
if ($remote_sent) {
_e('Backup sent to remote site - not available for download.', 'updraftplus');
if (!empty($backup['remotesend_url'])) echo '<br>'.__('Site', 'updraftplus').': <a href="'.esc_attr($backup['remotesend_url']).'">'.htmlspecialchars($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/';
echo $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;
echo $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/';
}
echo $updraftplus_admin->download_buttons($backup, $key, $accept, $entities, $esc_pretty_date);
}
?>
</td>
<td class="before-restore-button" data-label="<?php _e('Actions', 'updraftplus');?>">
<?php
echo $updraftplus_admin->restore_button($backup, $key, $pretty_date, $entities);
echo $upload_button;
echo $delete_button;
if (empty($backup['meta_foreign'])) echo $log_button;
?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if (!defined('UPDRAFTCENTRAL_COMMAND')) : ?>
<div id="ud_massactions">
<strong><?php _e('Actions upon selected backups', 'updraftplus');?></strong>
<div class="updraftplus-remove"><button type="button" class="button button-remove js--delete-selected-backups"><?php _e('Delete', 'updraftplus');?></button></div>
<div class="updraft-viewlogdiv"><button type="button" class="button js--select-all-backups" href="#"><?php _e('Select all', 'updraftplus');?></button></div>
<div class="updraft-viewlogdiv"><button type="button" class="button js--deselect-all-backups" href="#"><?php _e('Deselect', 'updraftplus');?></button></div>
<small class="ud_massactions-tip"><?php _e('Use ctrl / cmd + press to select several items', 'updraftplus'); ?></small>
</div>
<div id="updraft-delete-waitwarning" class="updraft-hidden" style="display:none;">
<span class="spinner"></span> <em><?php _e('Deleting...', 'updraftplus');?> <span class="updraft-deleting-remote"><?php _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;

View File

@@ -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 _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 _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 _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);?>"><span class="dashicons dashicons-plus"></span><?php echo __('Add an exclusion rule', 'updraftplus');?></a>

View File

@@ -0,0 +1,4 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<footer class="updraftplus-settings-footer">
</footer>
</div><!-- end #updraft-wrap -->

View File

@@ -0,0 +1,378 @@
<?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 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" 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" 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" 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>
<?php
echo apply_filters('updraftplus_fixtime_ftinfo', '<p>'.__('To fix the time at which a backup should take place,', 'updraftplus').' ('.__('e.g. if your server is busy at day and you want to run overnight', 'updraftplus').'), '.__('to take incremental backups', 'updraftplus').', '.__('or to configure more complex schedules', 'updraftplus').', <a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/updraftplus-premium/").'" target="_blank">'.htmlspecialchars(__('use UpdraftPlus Premium', 'updraftplus')).'</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="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/morestorage/").'" target="_blank">'.htmlspecialchars(__('You can send a backup to more than one destination with an add-on.', '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. 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 echo apply_filters('updraftplus_admin_directories_description', __('The above directories are everything, except for WordPress core itself which you can download afresh from WordPress.org.', 'updraftplus').' <a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/").'" target="_blank">'.htmlspecialchars(__('See also the "More Files" add-on from our shop.', 'updraftplus')).'</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 apply_filters('updraft_database_encryption_config', '<a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/landing/updraftplus-premium").'" target="_blank">'.__("Don't want to be spied on? UpdraftPlus Premium can encrypt your database backup.", 'updraftplus').'</a> '.__('It can also backup external databases.', 'updraftplus'));
?>
</td>
</tr>
<?php
if (!empty($options['include_database_decrypter'])) {
?>
<tr class="backup-crypt-description">
<td></td>
<td>
<a href="<?php echo 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>
<th><?php _e('Email', 'updraftplus'); ?>:</th>
<td>
<?php
$updraft_email = UpdraftPlus_Options::get_updraft_option('updraft_email');
?>
<label for="updraft_email" class="updraft_checkbox"><input type="checkbox" id="updraft_email" name="updraft_email" value="<?php esc_attr_e(get_bloginfo('admin_email')); ?>"<?php if (!empty($updraft_email)) echo ' checked="checked"';?> > <?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')).")."; ?></label>
<?php
if (!class_exists('UpdraftPlus_Addon_Reporting')) echo '<a href="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/reporting/").'" target="_blank">'.__('For more reporting features, use the Reporting add-on.', 'updraftplus').'</a>';
?>
</td>
</tr>
<?php
}
?>
</table>
<script type="text/javascript">
/* <![CDATA[ */
<?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 _e('Expert settings', 'updraftplus');?>:</th>
<td><a class="enableexpertmode" href="<?php echo UpdraftPlus::get_current_clean_url();?>#enableexpertmode"><?php _e('Show expert settings', 'updraftplus');?></a> - <?php _e("click 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 _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(__('UpdraftPlus will split up backup archives when they exceed this file size. The default value is %s megabytes. 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).' '.__('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 _e('Check this to delete any superfluous backup files from your server after the backup run finishes (i.e. if you uncheck, then any files despatched remotely will also remain locally, and any files being kept locally will not be subject to the retention limits).', '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 __("This is where UpdraftPlus will write the zip files it creates initially. This directory must be writable by your web server. It is relative to your content directory (which by default is called wp-content).", 'updraftplus').' '.__("<b>Do not</b> 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 _e('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). We keep these up to date. 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 _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 _e('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). It means that UpdraftPlus will be using SSL only for encryption of traffic, and not for authentication.', 'updraftplus');?> <?php _e('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 _e('Choosing this option lowers your security by stopping UpdraftPlus from using SSL for authentication and encrypted transport at all, where possible. 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_Options::get_updraft_option('updraft_auto_updates')) 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')) include_once(UPDRAFTPLUS_DIR.'/includes/updraftplus-notices.php');
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 _e('Save Changes', 'updraftplus');?>" />
</td>
</tr>
<?php } ?>
</table>

View File

@@ -0,0 +1,27 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<div class="wrap" id="updraft-wrap">
<h1><?php echo $updraftplus->plugin_title; ?></h1>
<div class="updraftplus-top-menu">
<a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/");?>" target="_blank">UpdraftPlus.Com</a> |
<?php
if (!defined('UPDRAFTPLUS_NOADS_B')) {
?>
<a href="<?php echo apply_filters('updraftplus_com_link', 'https://updraftplus.com/shop/updraftplus-premium/');?>" target="_blank"><?php _e("Premium", 'updraftplus'); ?></a> |
<?php
}
?>
<a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/news/");?>" target="_blank"><?php _e('News', 'updraftplus');?></a> |
<a href="https://twitter.com/updraftplus" target="_blank"><?php _e('Twitter', 'updraftplus');?></a> |
<a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/support/");?>" target="_blank"><?php _e("Support", 'updraftplus');?></a> |
<?php
if (!is_file(UPDRAFTPLUS_DIR.'/udaddons/updraftplus-addons.php')) {
?>
<a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/newsletter-signup");?>" target="_blank"><?php _e("Newsletter sign-up", 'updraftplus'); ?></a> |
<?php
}
?>
<a href="https://david.dw-perspective.org.uk" target="_blank"><?php _e("Lead developer's homepage", 'updraftplus');?></a> |
<a href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/support/frequently-asked-questions/");?>" target="_blank"><?php _e('FAQs', 'updraftplus'); ?></a> | <a href="https://www.simbahosting.co.uk/s3/shop/" target="_blank"><?php _e('More plugins', 'updraftplus');?></a> - <?php _e('Version', 'updraftplus');?>: <?php echo $updraftplus->version; ?>
</div>

View File

@@ -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 _e('Migrate (create a copy of a site on hosting you control)', 'updraftplus'); ?></h2>
<div id="updraft_migrate" class="postbox">
<p>
<strong><?php _e('Do you want to migrate or clone/duplicate a site?', 'updraftplus');?></strong>
</p>
<p>
<?php _e('Then, try out our "Migrator" add-on which can perform a direct site-to-site migration. 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 apply_filters('updraftplus_com_link', "https://updraftplus.com/landing/migrator/");?>" target="_blank"><?php _e('More information here.', 'updraftplus'); ?></a>
</p>
</div>
</div>

View File

@@ -0,0 +1,335 @@
<?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 apply_filters('updraftplus_com_link', "https://updraftplus.com/updraftplus-full-feature-list/");?>"><?php _e('Full feature list', 'updraftplus');?></a></li>
<li><a target="_blank" href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/faq-category/general-and-pre-sales-questions/");?>"><?php _e('Pre-sales FAQs', 'updraftplus');?></a></li>
<li><a target="_blank" href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/ask-a-pre-sales-question/");?>"><?php _e('Ask a pre-sales question', 'updraftplus');?></a></li>
<li><a target="_blank" href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/support/");?>"><?php _e('Support', 'updraftplus');?></a></li>
<li><a href="#other-plugins"><?php _e('Other great plugins', 'updraftplus');?></a></li>
<li><a target="_blank" href="https://www.simbahosting.co.uk/s3/shop/"><?php _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 target="_blank" class="button button-primary button-hero" href="<?php echo apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_premium'));?>" <?php echo $checkout_embed_premium_attribute; ?>><?php _e('Get it here', 'updraftplus');?></a>
<small><span class="dashicons dashicons-external dashicons-adapt-size"></span> <?php _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 _e('You are currently using the free version of UpdraftPlus.', 'updraftplus');?> <a target="_blank" href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/support/installing-updraftplus-premium-your-add-on/");?>"> <?php echo __('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 _e('You successfully purchased UpdraftPremium.', 'updraftplus');?></h3>
<p><a target="_blank" href="<?php echo apply_filters('updraftplus_com_link', "https://updraftplus.com/support/installing-updraftplus-premium-your-add-on/");?>"> <?php echo __('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">Features comparison</h2>
<table class="updraft_feat_table udpdraft__lifted">
<tbody>
<tr class="updraft_feat_table__header">
<td></td>
<td>
<img src="<?php echo UPDRAFTPLUS_URL.'/images/ud-logo.png';?>" alt="UpdraftPlus" width="80" height="80">
<?php _e('Free', 'updraftplus');?>
</td>
<td>
<img src="<?php echo UPDRAFTPLUS_URL.'/images/ud-logo.png';?>" alt="<?php esc_attr_e('UpdraftPlus Premium', 'updraftplus');?>" width="80" height="80">
<?php _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 _e('Installed', 'updraftplus');?></span>
</td>
<td>
<a class="button button-primary" href="<?php esc_attr_e(apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_premium')));?>" <?php echo $checkout_embed_premium_attribute; ?>><?php _e('Upgrade now', 'updraftplus');?></a>
</td>
</tr>
<tr>
<td>
<img src="<?php echo 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 _e('Backup to remote storage locations', 'updraftplus');?></h4>
<p><?php _e('To avoid server-wide risks, always backup to remote cloud storage. 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 UPDRAFTPLUS_URL.'/images/addons-images/migrator.png';?>" alt="<?php esc_attr_e('Migrator', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
<h4><?php _e('Cloning and migration', 'updraftplus');?></h4>
<p><?php _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 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 _e('Incremental backups', 'updraftplus');?></h4>
<p><?php _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 UPDRAFTPLUS_URL.'/images/notices/support.png';?>" alt="<?php esc_attr_e('Support', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
<h4><?php _e('Fast, personal support', 'updraftplus');?></h4>
<p><?php _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 UPDRAFTPLUS_URL.'/images/automaticbackup.png';?>" alt="<?php esc_attr_e('Pre-update backups', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
<h4><?php _e('Pre-update backups', 'updraftplus');?></h4>
<p><?php _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 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 _e('Backup non-WordPress files and databases', 'updraftplus');?></h4>
<p><?php _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 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 _e('Network / multisite', 'updraftplus');?></h4>
<p><?php _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 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 _e('Backup time and scheduling', 'updraftplus');?></h4>
<p><?php _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 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 _e('WP-CLI support', 'updraftplus');?></h4>
<p><?php _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 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 _e('More database options', 'updraftplus');?></h4>
<p><?php _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 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 _e('Additional and enhanced remote storage locations', 'updraftplus');?></h4>
<p><?php _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 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 UPDRAFTPLUS_URL.'/images/addons-images/reporting.png';?>" alt="<?php esc_attr_e('Reporting', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
<h4><?php _e('Reporting', 'updraftplus');?></h4>
<p><?php _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 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 _e('No ads', 'updraftplus');?></h4>
<p><?php _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 UPDRAFTPLUS_URL.'/images/addons-images/importer.png';?>" alt="<?php esc_attr_e('Importer', 'updraftplus');?>" width="80" height="80" class="udp-premium-image">
<h4><?php _e('Importer', 'updraftplus');?></h4>
<p><?php _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 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 _e('Lock settings', 'updraftplus');?></h4>
<p><?php _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 UPDRAFTPLUS_URL.'/images/updraft_vault_logo.png';?>" alt="<?php esc_attr_e('UpdraftVault', 'updraftplus');?>" width="100" height="100" class="udp-premium-image">
<h4><?php _e('UpdraftVault storage', 'updraftplus');?></h4>
<p>
<?php _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 esc_attr_e(apply_filters('updraftplus_com_link', 'https://updraftplus.com/landing/updraftvault'));?>"><?php _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 _e('Installed', 'updraftplus');?></span>
</td>
<td>
<p><a class="button button-primary" href="<?php esc_attr_e(apply_filters('updraftplus_com_link', $updraftplus->get_url('shop_premium')));?>" <?php echo $checkout_embed_premium_attribute; ?>><?php _e('Upgrade now', 'updraftplus');?></a></p>
</td>
</tr>
</tbody>
</table>
</section>
<?php endif; ?>
<section id="other-plugins">
<h2><?php _e('More great plugins by the Updraft Team', 'updraftplus'); ?></h2>
<div class="updraft-more-plugins">
<div class="udp-box">
<h3><img src="<?php echo UPDRAFTPLUS_URL; ?>/images/other-plugins/updraft-central.png" alt="UpdraftCentral"></h3>
<p><?php _e('Manage multiple WordPress sites from one central dashboard', 'updraftplus'); ?></p>
<a target="_blank" href="https://updraftcentral.com/?utm_source=updraftplus&utm_medium=cross-sell&utm_campaign=addons-tab"><?php _e('Find out more', 'updraftplus'); ?></a>
</div>
<div class="udp-box">
<h3><img src="<?php echo UPDRAFTPLUS_URL; ?>/images/other-plugins/wp-optimize.png" alt="WP Optimize"></h3>
<p><?php _e('Keep your database fast & efficient', 'updraftplus'); ?></p>
<a target="_blank" href="https://getwpo.com/?utm_source=updraftplus&utm_medium=cross-sell&utm_campaign=addons-tab"><?php _e('Find out more', 'updraftplus'); ?></a>
</div>
<div class="udp-box">
<h3><img src="<?php echo UPDRAFTPLUS_URL; ?>/images/other-plugins/keyy.png" alt="Keyy"></h3>
<p><?php _e('Instant & secure logins with a wave of your phone', 'updraftplus'); ?></p>
<a target="_blank" href="https://getkeyy.com/?utm_source=updraftplus&utm_medium=cross-sell&utm_campaign=addons-tab"><?php _e('Find out more', 'updraftplus'); ?></a>
</div>
<div class="udp-box">
<h3><img src="<?php echo UPDRAFTPLUS_URL; ?>/images/other-plugins/meta-slider.png" alt="MetaSlider"></h3>
<p><?php _e('Create powerful, seo-optimized slideshows in minutes', 'updraftplus'); ?></p>
<a target="_blank" href="https://www.metaslider.com/?utm_source=updraftplus&utm_medium=cross-sell&utm_campaign=addons-tab"><?php _e('Find out more', 'updraftplus'); ?></a>
</div>
</div>
</section>
</div>

View File

@@ -0,0 +1,100 @@
<?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>'.__('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>'.__('Warning', 'updraftplus').':</strong> '.__('Your WordPress installation has a problem with outputting extra whitespace. This can corrupt backups that you download from here.', 'updraftplus').' <a href="'.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 $bom_warning;
?>
</p>
<?php
}
$updraftplus_admin->take_backup_content();
?>
<div class="updraft_existing_backups_wrapper">
<h3 id="updraft-existing-backups-heading"><?php echo __('Existing Backups', 'updraftplus');?> <span class="updraft_existing_backups_count"><?php echo count($backup_history);?></span></h3>
<ul class="updraft-disk-space-actions">
<?php
echo UpdraftPlus_Filesystem_Functions::web_server_disk_space($options['will_immediately_calculate_disk_space']);
?>
<li class="updraft-server-scan">
<strong><?php _e('More tasks:', 'updraftplus');?></strong>
<?php
if (!empty($options['include_uploader'])) {
?>
<a class="updraft_uploader_toggle" href="<?php echo UpdraftPlus::get_current_clean_url();?>"><?php _e('Upload backup files', 'updraftplus'); ?></a> |
<?php
}
?>
<a href="<?php echo UpdraftPlus::get_current_clean_url();?>" class="updraft_rescan_local" title="<?php echo __('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 _e('Rescan local folder for new backup sets', 'updraftplus');?></a>
| <a href="<?php echo UpdraftPlus::get_current_clean_url();?>" class="updraft_rescan_remote" title="<?php _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 _e('Rescan remote storage', 'updraftplus');?></a>
</li>
<?php if (!empty($options['include_opera_warning'])) { ?>
<li class="updraft-opera-warning"><strong><?php _e('Opera web browser', 'updraftplus');?>:</strong> <?php _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 _e('UpdraftPlus - Upload backup files', 'updraftplus'); ?>">
<p class="upload"><em><?php _e("Upload files into UpdraftPlus.", 'updraftplus');?> <?php echo htmlspecialchars(__('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>'.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 _e('Drop backup files here', 'updraftplus'); ?></p>
<p><?php _ex('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); ?>
</div>
</div>
</div>

View File

@@ -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 = esc_attr(sanitize_title($tab_slug));
?>
<a class="nav-tab <?php if ($tabflag == $tab_slug) echo 'nav-tab-active'; ?>" id="updraft-navtab-<?php echo $tab_slug_as_attr;?>" href="<?php echo UpdraftPlus::get_current_clean_url();?>#updraft-navtab-<?php echo $tab_slug_as_attr;?>-content" ><?php echo $tab_label;?></a>
<?php
}
?>
</h2>

View File

@@ -0,0 +1,101 @@
<?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 _e('This admin interface uses JavaScript heavily. 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
$current_time = 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
$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="'.apply_filters('updraftplus_com_link', "https://updraftplus.com/shop/updraftplus-premium/").'" target="_blank">'. __('Please check out UpdraftPlus Premium, or the stand-alone Multisite add-on.', 'updraftplus');?></a>.</p>
</td>
</tr>
</table>
<?php } ?>
</div>

View File

@@ -0,0 +1,90 @@
<?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;
?>
<h2><?php _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 __("A temporary clone is an instant copy of this website, running on our servers. 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/">'.__('Find out more here.', 'updraftplus').'</a> <a target="_blank" href="https://updraftplus.com/faq-category/updraftclone/">'.__('Read FAQs here.', 'updraftplus').'</a> <a target="_blank" href="'.$updraftplus->get_url('buy-tokens').'">'.__("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 _e('Easy', 'updraftplus'); ?>:</strong> <?php _e('Press the buttons... UpdraftClone does the work.', 'updraftplus'); ?></li>
<li><strong><?php _e('Reliable', 'updraftplus'); ?>:</strong> <?php _e('Runs on capacity from a leading cloud computing provider.', 'updraftplus'); ?></li>
<li><strong><?php _e('Secure', 'updraftplus'); ?>:</strong> <?php _e('One VPS (Virtual Private Server) per clone, shared with nobody.', 'updraftplus'); ?></li>
<li><strong><?php _e('Fast', 'updraftplus'); ?>:</strong> <?php _e('Takes just the time needed to create a backup and send it.', 'updraftplus'); ?></li>
<li><strong><?php _e('Flexible', 'updraftplus'); ?>:</strong> <?php _e('If you want, test upgrading to a different PHP or WP version.', 'updraftplus'); ?></li>
</ul>
<?php if (is_multisite()) { ?>
<p><?php echo '<a target="_blank" href="https://updraftplus.com/faqs/how-do-i-migrate-to-a-new-site-location/">' . __('Temporary clones of WordPress multisite installations are not yet supported. 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 _e("Create a temporary clone on our servers (UpdraftClone)", "updraftplus"); ?></button>
<p>
<small><?php echo __("To create a temporary clone you need credit in your account.", "updraftplus"); ?> <a target="_blank" href="<?php echo $updraftplus->get_url('buy-tokens'); ?>"><?php _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 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 __("To create a temporary clone you need: 1) credit in your account and 2) to connect to your account, below.", "updraftplus"); ?> <a target="_blank" href="<?php echo $updraftplus->get_url('buy-tokens'); ?>"><?php _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' => $updraftplus->get_url('buy-tokens'), '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 _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 _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 _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 _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 _e('Connect', 'updraftplus'); ?></button>
<span class="updraftplus_spinner spinner"><?php _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>

View File

@@ -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 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 _e('Backup, update and manage all your WordPress sites from one dashboard', 'updraftplus');?></h2>
<p>
<?php _e("If you have a few sites, it'll save hours. It's free to use or try up to 5 sites.", 'updraftplus');?> <a href="https://updraftplus.com/updraftcentral" target="_blank"><?php _e('Follow this link for more information', 'updraftplus'); ?></a>.
</p>
<p>
<button id="btn_cloud_connect" class="btn btn-primary button-primary"><?php _e('Connect this site to UpdraftCentral Cloud', 'updraftplus');?></button>
</p>
<p>
<a href="https://wordpress.org/plugins/updraftcentral/" target="_blank"><?php _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 UpdraftPlus::get_current_clean_url();?>"><?php _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 _e('Login or register for UpdraftCentral Cloud', 'updraftplus');?></h2>
<div class="updraftcentral-subheading">
<?php _e('Add this website to your UpdraftCentral Cloud dashboard at updraftplus.com.', 'updraftplus');?>
<ul style="list-style: disc inside;">
<li><?php _e('If you already have an updraftplus.com account, then enter the details below.', 'updraftplus');?></li>
<li><?php _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 _e('Email', 'updraftplus');?></td>
<td>
<input id="email" name="email" type="text" value="<?php echo $email;?>" placeholder="<?php esc_attr_e('Login or register with this email address', 'updraftplus'); ?>">
</td>
</tr>
<tr class="non_tfa_fields">
<td><?php _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 _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(__('I consent to %s', 'updraftplus'), '<a href="https://updraftplus.com/data-protection-and-privacy-centre/" target="_blank">'.__('UpdraftPlus.Com account terms and policies', 'updraftplus').'</a>');?></label>
</div>
<button id="updraftcentral_cloud_login" class="btn btn-primary button-primary"><?php _e('Connect to UpdraftCentral Cloud', 'updraftplus');?></button>
<span class="updraftplus_spinner spinner"><?php _e('Processing', 'updraftplus');?>...</span>
<small><span class="updraftcentral_cloud_messages"></span></small>
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); ?>
<div id="updraft-upload-modal" title="UpdraftPlus - <?php _e('Upload backup', 'updraftplus');?>">
<p><?php _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_'.$value.'" checked="checked" type="checkbox" name="updraft_remote_storage_destination_'. $value . '" value="'.$value.'"> <label for="updraft_remote_'.$value.'">'.$updraftplus->backup_methods[$value].'</label><br>';
}
?>
</fieldset>
</form>
<p id="updraft-upload-modal-error"></p>
</div>