Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../template.../wp-admin/settings
File: form-contents.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
[2] Fix | Delete
[3] Fix | Delete
$updraft_dir = $updraftplus->backups_dir_location();
[4] Fix | Delete
$really_is_writable = UpdraftPlus_Filesystem_Functions::really_is_writable($updraft_dir);
[5] Fix | Delete
[6] Fix | Delete
// $options is passed through
[7] Fix | Delete
$default_options = array(
[8] Fix | Delete
'include_database_decrypter' => true,
[9] Fix | Delete
'include_adverts' => true,
[10] Fix | Delete
'include_save_button' => true
[11] Fix | Delete
);
[12] Fix | Delete
[13] Fix | Delete
foreach ($default_options as $k => $v) {
[14] Fix | Delete
if (!isset($options[$k])) $options[$k] = $v;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
?>
[18] Fix | Delete
<table class="form-table backup-schedule">
[19] Fix | Delete
<tr>
[20] Fix | Delete
<th><?php _e('Files backup schedule', 'updraftplus'); ?>:</th>
[21] Fix | Delete
<td class="js-file-backup-schedule">
[22] Fix | Delete
<div>
[23] Fix | Delete
<select title="<?php echo __('Files backup interval', 'updraftplus'); ?>" class="updraft_interval" name="updraft_interval">
[24] Fix | Delete
<?php
[25] Fix | Delete
$intervals = $updraftplus_admin->get_intervals('files');
[26] Fix | Delete
$selected_interval = UpdraftPlus_Options::get_updraft_option('updraft_interval', 'manual');
[27] Fix | Delete
foreach ($intervals as $cronsched => $descrip) {
[28] Fix | Delete
echo "<option value=\"$cronsched\" ";
[29] Fix | Delete
if ($cronsched == $selected_interval) echo 'selected="selected"';
[30] Fix | Delete
echo ">".htmlspecialchars($descrip)."</option>\n";
[31] Fix | Delete
}
[32] Fix | Delete
?>
[33] Fix | Delete
</select> <span class="updraft_files_timings"><?php echo apply_filters('updraftplus_schedule_showfileopts', '<input type="hidden" name="updraftplus_starttime_files" value="">', $selected_interval); ?></span>
[34] Fix | Delete
[35] Fix | Delete
[36] Fix | Delete
<?php
[37] Fix | Delete
[38] Fix | Delete
$updraft_retain = max((int) UpdraftPlus_Options::get_updraft_option('updraft_retain', 2), 1);
[39] Fix | Delete
[40] Fix | Delete
$retain_files_config = __('and retain this many scheduled backups', 'updraftplus').': <input type="number" min="1" step="1" title="'.__('Retain this many scheduled file backups', 'updraftplus').'" name="updraft_retain" value="'.$updraft_retain.'" class="retain-files" />';
[41] Fix | Delete
[42] Fix | Delete
echo $retain_files_config;
[43] Fix | Delete
[44] Fix | Delete
?>
[45] Fix | Delete
</div>
[46] Fix | Delete
<?php
[47] Fix | Delete
do_action('updraftplus_incremental_cell', $selected_interval);
[48] Fix | Delete
do_action('updraftplus_after_filesconfig');
[49] Fix | Delete
?>
[50] Fix | Delete
</td>
[51] Fix | Delete
</tr>
[52] Fix | Delete
[53] Fix | Delete
<?php apply_filters('updraftplus_after_file_intervals', false, $selected_interval); ?>
[54] Fix | Delete
<tr>
[55] Fix | Delete
<th>
[56] Fix | Delete
<?php _e('Database backup schedule', 'updraftplus'); ?>:
[57] Fix | Delete
</th>
[58] Fix | Delete
<td class="js-database-backup-schedule">
[59] Fix | Delete
<div>
[60] Fix | Delete
<select class="updraft_interval_database" title="<?php echo __('Database backup interval', 'updraftplus'); ?>" name="updraft_interval_database">
[61] Fix | Delete
<?php
[62] Fix | Delete
$intervals = $updraftplus_admin->get_intervals('db');
[63] Fix | Delete
$selected_interval_db = UpdraftPlus_Options::get_updraft_option('updraft_interval_database', UpdraftPlus_Options::get_updraft_option('updraft_interval'));
[64] Fix | Delete
foreach ($intervals as $cronsched => $descrip) {
[65] Fix | Delete
echo "<option value=\"$cronsched\" ";
[66] Fix | Delete
if ($cronsched == $selected_interval_db) echo 'selected="selected"';
[67] Fix | Delete
echo ">$descrip</option>\n";
[68] Fix | Delete
}
[69] Fix | Delete
?>
[70] Fix | Delete
</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>
[71] Fix | Delete
[72] Fix | Delete
<?php
[73] Fix | Delete
$updraft_retain_db = max((int) UpdraftPlus_Options::get_updraft_option('updraft_retain_db', $updraft_retain), 1);
[74] Fix | Delete
$retain_dbs_config = __('and retain this many scheduled backups', 'updraftplus').': <input type="number" min="1" step="1" title="'.__('Retain this many scheduled database backups', 'updraftplus').'" name="updraft_retain_db" value="'.$updraft_retain_db.'" class="retain-files" />';
[75] Fix | Delete
[76] Fix | Delete
echo $retain_dbs_config;
[77] Fix | Delete
?>
[78] Fix | Delete
</div>
[79] Fix | Delete
<?php do_action('updraftplus_after_dbconfig'); ?>
[80] Fix | Delete
</td>
[81] Fix | Delete
</tr>
[82] Fix | Delete
<tr class="backup-interval-description">
[83] Fix | Delete
<th></th>
[84] Fix | Delete
<td><div>
[85] Fix | Delete
<?php
[86] Fix | Delete
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="'.$updraftplus->get_url('premium').'" target="_blank">'.htmlspecialchars(__('use UpdraftPlus Premium', 'updraftplus')).'</a></p>');
[87] Fix | Delete
?>
[88] Fix | Delete
</div></td>
[89] Fix | Delete
</tr>
[90] Fix | Delete
</table>
[91] Fix | Delete
[92] Fix | Delete
<h2 class="updraft_settings_sectionheading"><?php _e('Sending Your Backup To Remote Storage', 'updraftplus');?></h2>
[93] Fix | Delete
[94] Fix | Delete
<?php
[95] Fix | Delete
$debug_mode = UpdraftPlus_Options::get_updraft_option('updraft_debug_mode') ? 'checked="checked"' : "";
[96] Fix | Delete
$active_service = UpdraftPlus_Options::get_updraft_option('updraft_service');
[97] Fix | Delete
?>
[98] Fix | Delete
[99] Fix | Delete
<table id="remote-storage-holder" class="form-table width-900">
[100] Fix | Delete
<tr>
[101] Fix | Delete
<th><?php
[102] Fix | Delete
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>');
[103] Fix | Delete
?>:</th>
[104] Fix | Delete
<td>
[105] Fix | Delete
<div id="remote-storage-container">
[106] Fix | Delete
<?php
[107] Fix | Delete
if (is_array($active_service)) $active_service = $updraftplus->just_one($active_service);
[108] Fix | Delete
[109] Fix | Delete
// Change this to give a class that we can exclude
[110] Fix | Delete
$multi = apply_filters('updraftplus_storage_printoptions_multi', '');
[111] Fix | Delete
[112] Fix | Delete
foreach ($updraftplus->backup_methods as $method => $description) {
[113] Fix | Delete
$backup_using = esc_attr(sprintf(__("Backup using %s?", 'updraftplus'), $description));
[114] Fix | Delete
[115] Fix | Delete
echo "<input aria-label=\"$backup_using\" name=\"updraft_service[]\" class=\"updraft_servicecheckbox $method $multi\" id=\"updraft_servicecheckbox_$method\" type=\"checkbox\" value=\"$method\"";
[116] Fix | Delete
if ($active_service === $method || (is_array($active_service) && in_array($method, $active_service))) echo ' checked="checked"';
[117] Fix | Delete
echo " data-labelauty=\"".esc_attr($description)."\">";
[118] Fix | Delete
}
[119] Fix | Delete
?>
[120] Fix | Delete
[121] Fix | Delete
<?php
[122] Fix | Delete
if (false === apply_filters('updraftplus_storage_printoptions', false, $active_service)) {
[123] Fix | Delete
echo '</div>';
[124] Fix | Delete
echo '<p><a href="'.$updraftplus->get_url('premium').'" target="_blank">'.htmlspecialchars(__('You can send a backup to more than one destination with Premium.', 'updraftplus')).'</a></p>';
[125] Fix | Delete
}
[126] Fix | Delete
?>
[127] Fix | Delete
[128] Fix | Delete
</td>
[129] Fix | Delete
</tr>
[130] Fix | Delete
[131] Fix | Delete
<tr class="updraftplusmethod none ud_nostorage" style="display:none;">
[132] Fix | Delete
<td></td>
[133] Fix | Delete
<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>
[134] Fix | Delete
</tr>
[135] Fix | Delete
</table>
[136] Fix | Delete
[137] Fix | Delete
<hr class="updraft_separator">
[138] Fix | Delete
[139] Fix | Delete
<h2 class="updraft_settings_sectionheading"><?php _e('File Options', 'updraftplus');?></h2>
[140] Fix | Delete
[141] Fix | Delete
<table class="form-table js-tour-settings-more width-900" >
[142] Fix | Delete
<tr>
[143] Fix | Delete
<th><?php _e('Include in files backup', 'updraftplus');?>:</th>
[144] Fix | Delete
<td>
[145] Fix | Delete
<?php echo $updraftplus_admin->files_selector_widgetry('', true, true); ?>
[146] Fix | Delete
<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 Premium version from our shop.', 'updraftplus')).'</a>'); ?></p>
[147] Fix | Delete
</td>
[148] Fix | Delete
</tr>
[149] Fix | Delete
</table>
[150] Fix | Delete
[151] Fix | Delete
<h2 class="updraft_settings_sectionheading"><?php _e('Database Options', 'updraftplus');?></h2>
[152] Fix | Delete
[153] Fix | Delete
<table class="form-table width-900">
[154] Fix | Delete
[155] Fix | Delete
<tr>
[156] Fix | Delete
<th><?php _e('Database encryption phrase', 'updraftplus');?>:</th>
[157] Fix | Delete
[158] Fix | Delete
<td>
[159] Fix | Delete
<?php
[160] Fix | Delete
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'));
[161] Fix | Delete
?>
[162] Fix | Delete
</td>
[163] Fix | Delete
</tr>
[164] Fix | Delete
[165] Fix | Delete
<?php
[166] Fix | Delete
if (!empty($options['include_database_decrypter'])) {
[167] Fix | Delete
?>
[168] Fix | Delete
[169] Fix | Delete
<tr class="backup-crypt-description">
[170] Fix | Delete
<td></td>
[171] Fix | Delete
[172] Fix | Delete
<td>
[173] Fix | Delete
[174] Fix | Delete
<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>
[175] Fix | Delete
[176] Fix | Delete
<div id="updraft-manualdecrypt-modal" class="updraft-hidden" style="display:none;">
[177] Fix | Delete
<p><h3><?php _e("Manually decrypt a database backup file", 'updraftplus'); ?></h3></p>
[178] Fix | Delete
[179] Fix | Delete
<?php
[180] Fix | Delete
if (version_compare($updraftplus->get_wordpress_version(), '3.3', '<')) {
[181] Fix | Delete
echo '<em>'.sprintf(__('This feature requires %s version %s or later', 'updraftplus'), 'WordPress', '3.3').'</em>';
[182] Fix | Delete
} else {
[183] Fix | Delete
?>
[184] Fix | Delete
[185] Fix | Delete
<div id="plupload-upload-ui2">
[186] Fix | Delete
<div id="drag-drop-area2">
[187] Fix | Delete
<div class="drag-drop-inside">
[188] Fix | Delete
<p class="drag-drop-info"><?php _e('Drop encrypted database files (db.gz.crypt files) here to upload them for decryption', 'updraftplus'); ?></p>
[189] Fix | Delete
<p><?php _ex('or', 'Uploader: Drop db.gz.crypt files here to upload them for decryption - or - Select Files', 'updraftplus'); ?></p>
[190] Fix | Delete
<p class="drag-drop-buttons"><input id="plupload-browse-button2" type="button" value="<?php esc_attr_e('Select Files', 'updraftplus'); ?>" class="button" /></p>
[191] Fix | Delete
<p style="margin-top: 18px;"><?php _e('First, enter the decryption key', 'updraftplus'); ?>: <input id="updraftplus_db_decrypt" type="text" size="12"></p>
[192] Fix | Delete
</div>
[193] Fix | Delete
</div>
[194] Fix | Delete
<div id="filelist2">
[195] Fix | Delete
</div>
[196] Fix | Delete
</div>
[197] Fix | Delete
[198] Fix | Delete
<?php } ?>
[199] Fix | Delete
[200] Fix | Delete
</div>
[201] Fix | Delete
[202] Fix | Delete
<?php
[203] Fix | Delete
$plugins = get_plugins();
[204] Fix | Delete
$wp_optimize_file = false;
[205] Fix | Delete
[206] Fix | Delete
foreach ($plugins as $key => $value) {
[207] Fix | Delete
if ('wp-optimize' == $value['TextDomain']) {
[208] Fix | Delete
$wp_optimize_file = $key;
[209] Fix | Delete
break;
[210] Fix | Delete
}
[211] Fix | Delete
}
[212] Fix | Delete
[213] Fix | Delete
if (!$wp_optimize_file) {
[214] Fix | Delete
?><br><a href="https://wordpress.org/plugins/wp-optimize/" target="_blank"><?php _e('Recommended: optimize your database with WP-Optimize.', 'updraftplus');?></a>
[215] Fix | Delete
<?php
[216] Fix | Delete
}
[217] Fix | Delete
?>
[218] Fix | Delete
[219] Fix | Delete
[220] Fix | Delete
[221] Fix | Delete
[222] Fix | Delete
</td>
[223] Fix | Delete
</tr>
[224] Fix | Delete
[225] Fix | Delete
<?php
[226] Fix | Delete
}
[227] Fix | Delete
[228] Fix | Delete
$moredbs_config = apply_filters('updraft_database_moredbs_config', false);
[229] Fix | Delete
if (!empty($moredbs_config)) {
[230] Fix | Delete
?>
[231] Fix | Delete
<tr>
[232] Fix | Delete
<th><?php _e('Backup more databases', 'updraftplus');?>:</th>
[233] Fix | Delete
<td><?php echo $moredbs_config; ?>
[234] Fix | Delete
</td>
[235] Fix | Delete
</tr>
[236] Fix | Delete
<?php
[237] Fix | Delete
}
[238] Fix | Delete
?>
[239] Fix | Delete
[240] Fix | Delete
</table>
[241] Fix | Delete
[242] Fix | Delete
<h2 class="updraft_settings_sectionheading"><?php _e('Reporting', 'updraftplus');?></h2>
[243] Fix | Delete
[244] Fix | Delete
<table class="form-table width-900">
[245] Fix | Delete
[246] Fix | Delete
<?php
[247] Fix | Delete
$report_rows = apply_filters('updraftplus_report_form', false);
[248] Fix | Delete
if (is_string($report_rows)) {
[249] Fix | Delete
echo $report_rows;
[250] Fix | Delete
} else {
[251] Fix | Delete
?>
[252] Fix | Delete
[253] Fix | Delete
<tr id="updraft_report_row_no_addon">
[254] Fix | Delete
<th><?php _e('Email', 'updraftplus'); ?>:</th>
[255] Fix | Delete
<td>
[256] Fix | Delete
<?php
[257] Fix | Delete
$updraft_email = UpdraftPlus_Options::get_updraft_option('updraft_email');
[258] Fix | Delete
// in case that premium users doesn't have the reporting addon, then the same email report setting's functionality will be applied to the premium version
[259] Fix | Delete
// since the free version allows only one service at a time, $active_service contains just a string name of particular service, in this case 'email'
[260] Fix | Delete
// so we need to make the checking a bit more universal by transforming it into an array of services in which we can check whether email is the only service (free onestorage) or one of the services (premium multistorage)
[261] Fix | Delete
$temp_services = $active_service;
[262] Fix | Delete
if (is_string($temp_services)) $temp_services = (array) $temp_services;
[263] Fix | Delete
$is_email_storage = !empty($temp_services) && in_array('email', $temp_services);
[264] Fix | Delete
?>
[265] Fix | Delete
<label for="updraft_email" class="updraft_checkbox email_report">
[266] Fix | Delete
<input type="checkbox" id="updraft_email" name="updraft_email" value="<?php esc_attr_e(get_bloginfo('admin_email')); ?>"<?php if ($is_email_storage || !empty($updraft_email)) echo ' checked="checked"';?> <?php if ($is_email_storage) echo 'disabled onclick="return false"'; ?>>
[267] Fix | Delete
<?php
[268] Fix | Delete
// have to add this hidden input so that when the form is submited and if the udpraft_email checkbox is disabled, this hidden input will be passed to the server along with other active elements
[269] Fix | Delete
if ($is_email_storage) echo '<input type="hidden" name="updraft_email" value="'.esc_attr(get_bloginfo('admin_email')).'">';
[270] Fix | Delete
?>
[271] Fix | Delete
<div id="cb_not_email_storage_label" <?php echo ($is_email_storage) ? 'style="display: none"' : 'style="display: inline"'; ?>>
[272] Fix | Delete
<?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')).")."; ?>
[273] Fix | Delete
</div>
[274] Fix | Delete
<div id="cb_email_storage_label" <?php echo (!$is_email_storage) ? 'style="display: none"' : 'style="display: inline"'; ?>>
[275] Fix | Delete
<?php echo __("Your email backup and a report will be sent to", 'updraftplus').' <a href="'.admin_url('options-general.php').'">'.__("your site's admin address", 'updraftplus').'</a> ('.htmlspecialchars(get_bloginfo('admin_email')).').'; ?>
[276] Fix | Delete
</div>
[277] Fix | Delete
</label>
[278] Fix | Delete
<?php
[279] Fix | Delete
if (!class_exists('UpdraftPlus_Addon_Reporting')) echo '<a href="'.$updraftplus->get_url('premium').'" target="_blank">'.__('For more reporting features, use the Premium version', 'updraftplus').'</a>';
[280] Fix | Delete
?>
[281] Fix | Delete
</td>
[282] Fix | Delete
</tr>
[283] Fix | Delete
[284] Fix | Delete
<?php
[285] Fix | Delete
}
[286] Fix | Delete
?>
[287] Fix | Delete
</table>
[288] Fix | Delete
[289] Fix | Delete
<script>
[290] Fix | Delete
<?php
[291] Fix | Delete
$storage_objects_and_ids = UpdraftPlus_Storage_Methods_Interface::get_storage_objects_and_ids(array_keys($updraftplus->backup_methods));
[292] Fix | Delete
// In PHP 5.5+, there's array_column() for this
[293] Fix | Delete
$method_objects = array();
[294] Fix | Delete
foreach ($storage_objects_and_ids as $method => $method_information) {
[295] Fix | Delete
$method_objects[$method] = $method_information['object'];
[296] Fix | Delete
}
[297] Fix | Delete
[298] Fix | Delete
echo $updraftplus_admin->get_settings_js($method_objects, $really_is_writable, $updraft_dir, $active_service);
[299] Fix | Delete
?>
[300] Fix | Delete
</script>
[301] Fix | Delete
<table class="form-table width-900">
[302] Fix | Delete
<tr>
[303] Fix | Delete
<td colspan="2"><h2 class="updraft_settings_sectionheading"><?php _e('Advanced / Debugging Settings', 'updraftplus'); ?></h2></td>
[304] Fix | Delete
</tr>
[305] Fix | Delete
[306] Fix | Delete
<tr>
[307] Fix | Delete
<th><?php _e('Expert settings', 'updraftplus');?>:</th>
[308] Fix | Delete
<td><a class="enableexpertmode" href="<?php echo UpdraftPlus::get_current_clean_url();?>#enableexpertmode"><?php _e('Show expert settings', 'updraftplus');?></a> - <?php _e("open this to show some further options; don't bother with this unless you have a problem or are curious.", 'updraftplus');?> <?php do_action('updraftplus_expertsettingsdescription'); ?></td>
[309] Fix | Delete
</tr>
[310] Fix | Delete
<?php
[311] Fix | Delete
$delete_local = UpdraftPlus_Options::get_updraft_option('updraft_delete_local', 1);
[312] Fix | Delete
$split_every_mb = UpdraftPlus_Options::get_updraft_option('updraft_split_every', 400);
[313] Fix | Delete
if (!is_numeric($split_every_mb)) $split_every_mb = 400;
[314] Fix | Delete
if ($split_every_mb < UPDRAFTPLUS_SPLIT_MIN) $split_every_mb = UPDRAFTPLUS_SPLIT_MIN;
[315] Fix | Delete
?>
[316] Fix | Delete
[317] Fix | Delete
<tr class="expertmode updraft-hidden" style="display:none;">
[318] Fix | Delete
<th><?php _e('Debug mode', 'updraftplus');?>:</th>
[319] Fix | Delete
<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>
[320] Fix | Delete
</tr>
[321] Fix | Delete
[322] Fix | Delete
<tr class="expertmode updraft-hidden" style="display:none;">
[323] Fix | Delete
<th><?php _e('Split archives every:', 'updraftplus');?></th>
[324] Fix | Delete
<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>
[325] Fix | Delete
</tr>
[326] Fix | Delete
[327] Fix | Delete
<tr class="deletelocal expertmode updraft-hidden" style="display:none;">
[328] Fix | Delete
<th><?php _e('Delete local backup', 'updraftplus');?>:</th>
[329] Fix | Delete
<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>
[330] Fix | Delete
</tr>
[331] Fix | Delete
[332] Fix | Delete
<tr class="expertmode backupdirrow updraft-hidden" style="display:none;">
[333] Fix | Delete
<th><?php _e('Backup directory', 'updraftplus');?>:</th>
[334] Fix | Delete
<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>
[335] Fix | Delete
</tr>
[336] Fix | Delete
<tr class="expertmode backupdirrow updraft-hidden" style="display:none;">
[337] Fix | Delete
<td></td>
[338] Fix | Delete
<td>
[339] Fix | Delete
<span id="updraft_writable_mess">
[340] Fix | Delete
<?php echo $updraftplus_admin->really_writable_message($really_is_writable, $updraft_dir); ?>
[341] Fix | Delete
</span>
[342] Fix | Delete
<?php
[343] Fix | Delete
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');
[344] Fix | Delete
?>
[345] Fix | Delete
</td>
[346] Fix | Delete
</tr>
[347] Fix | Delete
[348] Fix | Delete
<tr class="expertmode updraft-hidden" style="display:none;">
[349] Fix | Delete
<th><?php _e("Use the server's SSL certificates", 'updraftplus');?>:</th>
[350] Fix | Delete
<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>
[351] Fix | Delete
</tr>
[352] Fix | Delete
[353] Fix | Delete
<tr class="expertmode updraft-hidden" style="display:none;">
[354] Fix | Delete
<th><?php _e('Do not verify SSL certificates', 'updraftplus');?>:</th>
[355] Fix | Delete
<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>
[356] Fix | Delete
</tr>
[357] Fix | Delete
[358] Fix | Delete
<tr class="expertmode updraft-hidden" style="display:none;">
[359] Fix | Delete
<th><?php _e('Disable SSL entirely where possible', 'updraftplus');?>:</th>
[360] Fix | Delete
<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>
[361] Fix | Delete
</tr>
[362] Fix | Delete
[363] Fix | Delete
<tr class="expertmode updraft-hidden" style="display:none;">
[364] Fix | Delete
<th><?php _e('Automatic updates', 'updraftplus');?>:</th>
[365] Fix | Delete
<td><label><input type="checkbox" id="updraft_auto_updates" data-updraft_settings_test="updraft_auto_updates" name="updraft_auto_updates" value="1" <?php if ($updraftplus->is_automatic_updating_enabled()) echo 'checked="checked"'; ?>><br /><?php _e('Ask WordPress to automatically update UpdraftPlus when it finds an available update.', 'updraftplus');?></label><p><a href="https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/" target="_blank"><?php _e('Read more about Easy Updates Manager', 'updraftplus'); ?></a></p></td>
[366] Fix | Delete
</tr>
[367] Fix | Delete
[368] Fix | Delete
<?php do_action('updraftplus_configprint_expertoptions'); ?>
[369] Fix | Delete
[370] Fix | Delete
<tr>
[371] Fix | Delete
<td></td>
[372] Fix | Delete
<td>
[373] Fix | Delete
<?php
[374] Fix | Delete
if (!empty($options['include_adverts'])) {
[375] Fix | Delete
if (!class_exists('UpdraftPlus_Notices')) include_once(UPDRAFTPLUS_DIR.'/includes/updraftplus-notices.php');
[376] Fix | Delete
global $updraftplus_notices;
[377] Fix | Delete
$updraftplus_notices->do_notice(false, 'bottom');
[378] Fix | Delete
}
[379] Fix | Delete
?>
[380] Fix | Delete
</td>
[381] Fix | Delete
</tr>
[382] Fix | Delete
[383] Fix | Delete
<?php if (!empty($options['include_save_button'])) { ?>
[384] Fix | Delete
<tr>
[385] Fix | Delete
<td></td>
[386] Fix | Delete
<td>
[387] Fix | Delete
<input type="hidden" name="action" value="update" />
[388] Fix | Delete
<input type="submit" class="button-primary" id="updraftplus-settings-save" value="<?php _e('Save Changes', 'updraftplus');?>" />
[389] Fix | Delete
</td>
[390] Fix | Delete
</tr>
[391] Fix | Delete
<?php } ?>
[392] Fix | Delete
</table>
[393] Fix | Delete
[394] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function