get_wordpress_version();
if (version_compare($wp_version, '3.8.0', '<')) {
$image_url = $image_folder_url.'lock.png';
?>
';
}
}
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];
?>
|
'.__('Site', 'updraftplus').': '.htmlspecialchars($backup['remotesend_url']).''; } 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); } ?> | restore_button($backup, $key, $pretty_date, $entities); echo $upload_button; echo $delete_button; if (empty($backup['meta_foreign'])) echo $log_button; ?> |