getGlobalValue('blur'); $templates_tab_url = ControllersManager::getMenuLink( ControllersManager::TOOLS_SUBMENU_SLUG, ToolsPageController::L2_SLUG_TEMPLATE ); $edit_template_url = ControllersManager::getMenuLink( ControllersManager::TOOLS_SUBMENU_SLUG, ToolsPageController::L2_SLUG_TEMPLATE, null, array('inner_page' => 'edit') ); $bandListUrl = ControllersManager::getMenuLink( ControllersManager::SETTINGS_SUBMENU_SLUG, SettingsPageController::L2_SLUG_PACKAGE, SettingsPageController::L3_SLUG_PACKAGE_BRAND ); $brandDefaultEditUrl = ControllersManager::getMenuLink( ControllersManager::SETTINGS_SUBMENU_SLUG, SettingsPageController::L2_SLUG_PACKAGE, SettingsPageController::L3_SLUG_PACKAGE_BRAND, [ 'view' => 'edit', 'action' => 'default', ] ); $brandBaseEditUrl = ControllersManager::getMenuLink( ControllersManager::SETTINGS_SUBMENU_SLUG, SettingsPageController::L2_SLUG_PACKAGE, SettingsPageController::L3_SLUG_PACKAGE_BRAND, [ 'view' => 'edit', 'action' => 'edit', ] ); global $wp_version; global $wpdb; $global = DUP_PRO_Global_Entity::getInstance(); $nonce_action = 'duppro-template-edit'; $was_updated = false; $package_template_id = SnapUtil::sanitizeIntInput(SnapUtil::INPUT_REQUEST, 'package_template_id', -1); if (($package_templates = DUP_PRO_Package_Template_Entity::getAll()) === false) { $package_templates = array(); } $package_template_count = count($package_templates); // For now not including in filters since don't want to encourage use // with schedules since filtering creates incomplete multisite $displayMultisiteTab = (is_multisite() && License::can(License::CAPABILITY_MULTISITE_PLUS)); $view_state = DUP_PRO_UI_ViewState::getArray(); $ui_css_archive = (DUP_PRO_UI_ViewState::getValue('dup-template-archive-panel') ? 'display:block' : 'display:none'); $ui_css_install = (DUP_PRO_UI_ViewState::getValue('dup-template-install-panel') ? 'display:block' : 'display:none'); if ( $package_template_id == -1 || ($package_template = DUP_PRO_Package_Template_Entity::getById($package_template_id)) == false ) { $package_template = new DUP_PRO_Package_Template_Entity(); } DUP_PRO_Log::traceObject("getting template $package_template_id", $package_template); if (!empty($_REQUEST['action'])) { DUP_PRO_U::verifyNonce($_REQUEST['_wpnonce'], $nonce_action); if ($_REQUEST['action'] == 'save') { DUP_PRO_Log::traceObject('request', $_REQUEST); // Checkboxes don't set post values when off so have to manually set these $package_template->setFromInput(SnapUtil::INPUT_REQUEST); $package_template->save(); $was_updated = true; } elseif ($_REQUEST['action'] == 'copy-template') { $source_template_id = SnapUtil::sanitizeIntInput(SnapUtil::INPUT_REQUEST, 'duppro-source-template-id', -1); if ($source_template_id > 0) { $package_template->copy_from_source_id($source_template_id); $package_template->save(); } } } $installer_cpnldbaction = $package_template->installer_opts_cpnl_db_action; $upload_dir = DUP_PRO_Archive::getArchiveListPaths('uploads'); $content_path = DUP_PRO_Archive::getArchiveListPaths('wpcontent'); $archive_format = ($global->getBuildMode() == DUP_PRO_Archive_Build_Mode::DupArchive ? 'daf' : 'zip'); ?>
title = __('Transfer Error', 'duplicator-pro'); $alert1->message = __('You can\'t exclude all sites!', 'duplicator-pro'); $alert1->initAlert(); ?>