$tplData */ use Duplicator\Core\Controllers\ControllersManager; use Duplicator\Utils\LinkManager; use Duplicator\Libs\Snap\SnapUtil; use Duplicator\Core\Views\TplMng; global $wp_version; global $wpdb; $action_updated = null; $action_response = __("General Settings Saved", 'duplicator'); //SAVE RESULTS if (isset($_POST['action']) && $_POST['action'] == 'save') { //Nonce Check if (!isset($_POST['dup_settings_save_nonce_field']) || !wp_verify_nonce($_POST['dup_settings_save_nonce_field'], 'dup_settings_save')) { die('Invalid token permissions to perform this request.'); } DUP_Settings::Set('wpfront_integrate', isset($_POST['wpfront_integrate']) ? "1" : "0"); $skip_archive_scan = filter_input(INPUT_POST, 'skip_archive_scan', FILTER_VALIDATE_BOOLEAN); DUP_Settings::Set('skip_archive_scan', $skip_archive_scan); $unhook_third_party_js = filter_input(INPUT_POST, 'unhook_third_party_js', FILTER_VALIDATE_BOOLEAN); DUP_Settings::Set('unhook_third_party_js', $unhook_third_party_js); $unhook_third_party_css = filter_input(INPUT_POST, 'unhook_third_party_css', FILTER_VALIDATE_BOOLEAN); DUP_Settings::Set('unhook_third_party_css', $unhook_third_party_css); $email_summary_frequency = SnapUtil::sanitizeStrictInput(INPUT_POST, 'email_summary_frequency'); DUP_Settings::setEmailSummaryFrequency($email_summary_frequency); DUP_Settings::Save(); $action_updated = true; DUP_Util::initSnapshotDirectory(); } $wpfront_integrate = DUP_Settings::Get('wpfront_integrate'); $wpfront_ready = apply_filters('wpfront_user_role_editor_duplicator_integration_ready', false); $skip_archive_scan = DUP_Settings::Get('skip_archive_scan'); $unhook_third_party_js = DUP_Settings::Get('unhook_third_party_js'); $unhook_third_party_css = DUP_Settings::Get('unhook_third_party_css'); $actionUrl = ControllersManager::getMenuLink(ControllersManager::SETTINGS_SUBMENU_SLUG, 'general'); ?>

render('admin_pages/settings/general/license'); ?> render('admin_pages/settings/general/email_summary'); ?>


" data-tooltip="">

value="1" />

value="1"/>

'; esc_html_e("Do not modify this setting unless you know the expected result or have talked to support.", 'duplicator'); ?>

value="1"/>

'; esc_html_e("Do not modify this setting unless you know the expected result or have talked to support.", 'duplicator'); ?>


" style="display: inline-block;" />

title = __('Reset Backups ?', 'duplicator'); $reset_confirm->message = __('This will clear and reset all of the current temporary Backups. Would you like to continue?', 'duplicator'); $reset_confirm->progressText = __('Resetting settings, Please Wait...', 'duplicator'); $reset_confirm->jscallback = 'Duplicator.Pack.ResetAll()'; $reset_confirm->progressOn = false; $reset_confirm->okText = __('Yes', 'duplicator'); $reset_confirm->cancelText = __('No', 'duplicator'); $reset_confirm->closeOnConfirm = true; $reset_confirm->initConfirm(); $faqUrl = esc_url(LinkManager::getDocUrl('how-to-resolve-duplicator-plugin-user-interface-ui-issues', 'settings-admin_notice')); $msg_ajax_error = new DUP_UI_Messages( __('AJAX Call Error!', 'duplicator') . '
' . sprintf( _x( 'AJAX error encountered when resetting Backups. Please see %1$sthis FAQ entry%2$s for possible resolutions.', '1 and 2 are opening and closing tags', 'duplicator' ), '', '' ), DUP_UI_Messages::ERROR ); $msg_ajax_error->hide_on_init = true; $msg_ajax_error->is_dismissible = true; $msg_ajax_error->initMessage(); $msg_response_error = new DUP_UI_Messages(__('RESPONSE ERROR!', 'duplicator'), DUP_UI_Messages::ERROR); $msg_response_error->hide_on_init = true; $msg_response_error->is_dismissible = true; $msg_response_error->initMessage(); $msg_response_success = new DUP_UI_Messages('', DUP_UI_Messages::NOTICE); $msg_response_success->hide_on_init = true; $msg_response_success->is_dismissible = true; $msg_response_success->initMessage(); ?>