parent_base, array('plugins', 'duplicator'))) {
return;
}
?>
%s to %s', 'duplicator'),
esc_html("test 1"),
esc_html(time()));
?>
General Settings', 'duplicator'), 'admin.php?page=duplicator-settings'); ?>
id == 'duplicator_page_duplicator-tools' && isset($_GET['action']) && $_GET['action'] == 'installer');
if (DUP_Server::hasInstallerFiles() && !$is_installer_cleanup_req) {
DUP_Migration::renameInstallersPhpFiles();
$on_active_tab = isset($_GET['section']) ? $_GET['section'] : '';
echo '';
//Safe Mode Notice
$safe_html = '';
if (get_option("duplicator_exe_safe_mode", 0) > 0) {
$safe_msg1 = __('Safe Mode:', 'duplicator');
$safe_msg2 = __('During the install safe mode was enabled deactivating all plugins.
Please be sure to ', 'duplicator');
$safe_msg3 = __('re-activate the plugins', 'duplicator');
$safe_html = "
";
}
//On Tools > Cleanup Page
if ($screen->id == 'duplicator_page_duplicator-tools' && ($on_active_tab == "info" || $on_active_tab == '')) {
$title = __('This site has been successfully migrated!', 'duplicator');
$msg1 = __('Final step(s):', 'duplicator');
$msg2 = __('This message will be removed after all installer files are removed. Installer files must be removed to maintain a secure site. '
.'Click the link above or button below to remove all installer files and complete the migration.', 'duplicator');
echo "
".esc_html($title)." {$safe_html}
".esc_html($msg1)." ";
printf("1.
%s", esc_html__('Remove Installation Files Now!', 'duplicator'));
printf("2.
%s ", esc_html__('Optionally, Review Duplicator at WordPress.org...', 'duplicator'));
echo "
".esc_html($msg2)."
";
//All other Pages
} else {
$title = __('Migration Almost Complete!', 'duplicator');
$msg = __('Reserved Duplicator installation files have been detected in the root directory. Please delete these installation files to '
.'avoid security issues.
Go to:Duplicator > Tools > Information >Stored Data and click the "Remove Installation Files" button', 'duplicator');
$nonce = wp_create_nonce('duplicator_cleanup_page');
$url = self_admin_url('admin.php?page=duplicator-tools&tab=diagnostics§ion=info&_wpnonce='.$nonce);
echo "
{$title} {$safe_html} {$msg}";
@printf("
%s", __('Take me there now!', 'duplicator'));
}
echo "
";
}
}
/**
* Shows a message for redirecting a page
*
* @return string The location to redirect to
*/
public static function redirect($location)
{
echo '
".esc_html__("Warning!", "duplicator")." ".esc_html__("Migration Almost Complete!", "duplicator")."
";
echo esc_html__("Plugin(s) listed here have been deactivated during installation to help prevent issues. Please activate them to finish this migration: ", "duplicator")."
";
echo implode(' ,', $activatePluginsAnchors);
?>
id, $duplicator_pages) || (isset($notices[$notice_id]) && 'true' === $notices[$notice_id])) {
return;
}
// not using DUP_Util::getTablePrefix() in place of $tablePrefix because DUP_UI_Notice included initially (Duplicator\Lite\Requirement is depended on the DUP_UI_Notice)
$tablePrefix = (is_multisite() && is_plugin_active_for_network('duplicator/duplicator.php')) ? $GLOBALS['wpdb']->base_prefix : $GLOBALS['wpdb']->prefix;
$packagesCount = $GLOBALS['wpdb']->get_var('SELECT count(id) FROM '.$tablePrefix.'duplicator_packages WHERE status=100');
if ($packagesCount < DUPLICATOR_FEEDBACK_NOTICE_SHOW_AFTER_NO_PACKAGE) {
return;
}
$notices[$notice_id] = 'false';
update_user_meta(get_current_user_id(), DUPLICATOR_ADMIN_NOTICES_USER_META_KEY, $notices);
$dismiss_url = wp_nonce_url(
add_query_arg(array(
'action' => 'duplicator_set_admin_notice_viewed',
'notice_id' => esc_attr($notice_id),
), admin_url('admin-post.php')),
'duplicator_set_admin_notice_viewed',
'nonce'
);
?>