first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Duplicator
|
||||
* @copyright (c) 2022, Snap Creek LLC
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Variables
|
||||
*
|
||||
* @var string $bodyId;
|
||||
* @var string $bodyClasses;
|
||||
*/
|
||||
|
||||
?>
|
||||
<body id="<?php echo $bodyId; ?>" class="<?php echo $bodyClasses; ?> backend-import" >
|
||||
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
use Duplicator\Installer\Core\Params\PrmMng;
|
||||
|
||||
$importSiteInfo = PrmMng::getInstance()->getValue(PrmMng::PARAM_FROM_SITE_IMPORT_INFO);
|
||||
|
||||
if (isset($importSiteInfo['color-scheme'])) {
|
||||
$colorScheme = $importSiteInfo['color-scheme'];
|
||||
} else {
|
||||
$colorScheme = array();
|
||||
$colorScheme['colors'] = array(
|
||||
'#222',
|
||||
'#333',
|
||||
'#0073aa',
|
||||
'#00a0d2',
|
||||
);
|
||||
}
|
||||
$colorPrimaryButton = isset($importSiteInfo['color-primary-button']) ? $importSiteInfo['color-primary-button'] : $colorScheme->colors[2];
|
||||
?>
|
||||
<style>
|
||||
body.backend-import {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.backend-import #page-top-messages,
|
||||
#ajaxerr-area,
|
||||
#progress-area,
|
||||
.backend-import #main-content-wrapper {
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.backend-import #header-main-wrapper .hdr-main {
|
||||
max-width: calc(900px - 150px);
|
||||
}
|
||||
|
||||
.backend-import #page-top-messages,
|
||||
#ajaxerr-area,
|
||||
#progress-area {
|
||||
padding: 0;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
||||
.backend-import #content {
|
||||
border: 0 none;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.backend-import #content-inner {
|
||||
margin: 0 20px 40px 0;
|
||||
}
|
||||
|
||||
.backend-import .main-form-content {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.backend-import .sub-header,
|
||||
.backend-import #header-main-wrapper .dupx-logfile-link {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.backend-import .generic-box,
|
||||
.backend-import .hdr-sub1,
|
||||
.backend-import .hdr-sub1-area {
|
||||
border-radius: 3px;
|
||||
border-color: #e5e5e5;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
.backend-import .generic-box .box-title,
|
||||
.backend-import .hdr-sub1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
padding: 8px 12px;
|
||||
background: #E0E0E0;
|
||||
}
|
||||
|
||||
.backend-import #validation-result .category-wrapper {
|
||||
border-radius:2px;
|
||||
}
|
||||
|
||||
.backend-import #validation-result .category-wrapper > .header {
|
||||
background: #E0E0E0;
|
||||
}
|
||||
|
||||
.backend-import #validation-result .test-title {
|
||||
background: #F3F3F3;
|
||||
}
|
||||
|
||||
.backend-import #validation-result .test-title:hover {
|
||||
background: #E0E0E0;
|
||||
}
|
||||
|
||||
.backend-import .default-btn {
|
||||
background: <?php echo $colorPrimaryButton; ?>;
|
||||
border-color: <?php echo $colorPrimaryButton; ?>;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.backend-import .default-btn,
|
||||
.backend-import .secondary-btn {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
line-height: 32px;
|
||||
min-height: 32px;
|
||||
margin: 0;
|
||||
margin-left: 0px;
|
||||
padding: 0 12px;
|
||||
cursor: pointer;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
-webkit-appearance: none;
|
||||
border-radius: 3px;
|
||||
white-space: nowrap;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.backend-import .default-btn:hover {
|
||||
background: <?php echo $colorScheme['colors'][3]; ?>;
|
||||
border-color: <?php echo $colorScheme['colors'][3]; ?>;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.backend-import .default-btn.disabled,
|
||||
.backend-import .default-btn.disabled:hover,
|
||||
|
||||
.backend-import .default-btn:disabled,
|
||||
.backend-import .default-btn:disabled:hover,
|
||||
|
||||
.backend-import .secondary-btn.disabled,
|
||||
.backend-import .secondary-btn.disabled:hover,
|
||||
.backend-import .secondary-btn:disabled,
|
||||
.backend-import .secondary-btn:disabled:hover {
|
||||
color:silver;
|
||||
background-color: #f3f5f6;
|
||||
border: 1px solid silver;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.backend-import .secondary-btn {
|
||||
color: black;
|
||||
background-color: #f3f5f6;
|
||||
border: 1px solid #7e8993;
|
||||
}
|
||||
|
||||
.backend-import .secondary-btn:hover {
|
||||
color: #FEFEFE;
|
||||
background-color: #CFCFCF;
|
||||
}
|
||||
|
||||
.backend-import .ui-widget-overlay {
|
||||
background: #f1f1f1;
|
||||
opacity: .7;
|
||||
filter: Alpha(Opacity=70);
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
use Duplicator\Installer\Core\Params\PrmMng;
|
||||
|
||||
$importSiteInfo = PrmMng::getInstance()->getValue(PrmMng::PARAM_FROM_SITE_IMPORT_INFO);
|
||||
$importPage = isset($importSiteInfo['import_page']) ? $importSiteInfo['import_page'] : false;
|
||||
|
||||
?>
|
||||
<div id="next_action" class="bottom-step-action no-display" >
|
||||
<div class="footer-buttons margin-top-2">
|
||||
<div class="content-left">
|
||||
<?php
|
||||
dupxTplRender('pages-parts/step1/terms-and-conditions');
|
||||
PrmMng::getInstance()->getHtmlFormParam(PrmMng::PARAM_ACCEPT_TERM_COND);
|
||||
?>
|
||||
</div>
|
||||
<div class="content-right" >
|
||||
<a class="secondary-btn" href="<?php echo DUPX_U::esc_attr($importPage) ?>" target="_parent" >Cancel</a>
|
||||
<button
|
||||
id="s1-deploy-btn"
|
||||
type="button"
|
||||
title="<?php echo DUPX_U::esc_attr('To enable this button the checkbox above under the "Terms & Notices" must be checked.'); ?>"
|
||||
class="default-btn">
|
||||
Next <i class="fa fa-caret-right"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
?>
|
||||
<div id="installer-switch-wrapper">
|
||||
<span class="btn-group small">
|
||||
<button
|
||||
type="button"
|
||||
id="s1-switch-template-btn-basic"
|
||||
class="s1-switch-template-btn"
|
||||
data-template="<?php echo DUPX_Template::TEMPLATE_IMPORT_BASE; ?>"
|
||||
title="Enable basic import mode"
|
||||
>
|
||||
Basic
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="s1-switch-template-btn-advanced"
|
||||
class="s1-switch-template-btn active"
|
||||
title="Enable advanced import mode"
|
||||
>
|
||||
Advanced
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
?>
|
||||
<div class="box warning margin-bottom-1" >
|
||||
<h3>
|
||||
<i class="fas fa-exclamation-triangle"></i> Site Overwrite Notice
|
||||
</h3>
|
||||
<p class="maroon" >
|
||||
This process will <u><b class='warn'>overwrite</b></u> the entire site you're currently logged into.
|
||||
All plugins, themes, content and data will be replaced with the content found in the archive file.
|
||||
The database credentials of the imported site will be used for the database overwrite by default.
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
dupxTplRender('pages-parts/head/header-main', array(
|
||||
'htmlTitle' => 'Step <span class="step">1</span> of 4: Extract Uploaded Package <div class="sub-header">This step will extract package.</div>',
|
||||
'showSwitchView' => true,
|
||||
'showHeaderLinks' => true,
|
||||
));
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
dupxTplRender('pages-parts/head/header-main', array(
|
||||
'htmlTitle' => 'Step <span class="step">2</span> of 4: ' .
|
||||
'Install Database <div class="sub-header">This step will install the database from the archive.</div>',
|
||||
'showSwitchView' => false,
|
||||
'showHeaderLinks' => true,
|
||||
));
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
dupxTplRender('pages-parts/head/header-main', array(
|
||||
'htmlTitle' => 'Step <span class="step">3</span> of 4: ' .
|
||||
'Update Data <div class="sub-header">This step will update the database and config files to match your new sites values.</div>',
|
||||
'showSwitchView' => false,
|
||||
'showHeaderLinks' => true,
|
||||
));
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
use Duplicator\Installer\Core\Params\PrmMng;
|
||||
|
||||
$paramsManager = PrmMng::getInstance();
|
||||
$recoveryLink = $paramsManager->getValue(PrmMng::PARAM_RECOVERY_LINK);
|
||||
|
||||
if (empty($recoveryLink)) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<div class="margin-top-2 margin-bottom-2" >
|
||||
<hr class="separator dotted">
|
||||
<div class="sub-title">Restore Options</div>
|
||||
<div class="flex-final-button-wrapper" >
|
||||
<div class="button-wrapper" >
|
||||
<a href="<?php echo DUPX_U::esc_url($recoveryLink); ?>" class="secondary-btn" target="_blank">
|
||||
<i class="fas fa-house-fire"></i> Run Disaster Recovery Wizard
|
||||
</a>
|
||||
</div>
|
||||
<div class="content-wrapper" >
|
||||
The new import has finished.
|
||||
Optionally this site can be restored to its previous recovery point by running the recovery wizard.
|
||||
If no recovery is needed then this option can be ignored.
|
||||
</div>
|
||||
</div>
|
||||
<hr class="separator dotted">
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
dupxTplRender('pages-parts/step4/actions/admin-login-button');
|
||||
dupxTplRender('pages-parts/step4/important-final-notice');
|
||||
dupxTplRender('pages-parts/step4/actions/recovery-point-button');
|
||||
dupxTplRender('pages-parts/step4/installer-result-summary');
|
||||
dupxTplRender('pages-parts/step4/final-review-actions');
|
||||
dupxTplRender('pages-parts/step4/full-report');
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
dupxTplRender('pages-parts/head/header-main', array(
|
||||
'htmlTitle' => 'Step <span class="step">4</span> of 4: Import Finished',
|
||||
'showSwitchView' => false,
|
||||
'showHeaderLinks' => true,
|
||||
));
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Duplicator
|
||||
* @copyright (c) 2022, Snap Creek LLC
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Variables
|
||||
*
|
||||
* @var string $wordFencePath
|
||||
*/
|
||||
?>
|
||||
<div class="sub-title">STATUS</div>
|
||||
<p class="maroon"> A Wordfence firewall instance was detected at <b><?php echo DUPX_U::esc_html($wordFencePath); ?></b>. </p>
|
||||
|
||||
<div class="sub-title">DETAILS</div>
|
||||
<p>
|
||||
The Wordfence Web Application Firewall is a PHP based, application level firewall that filters out malicious
|
||||
requests to your site. Sometimes Wordfence returns false positives on requests done during the import, because of which
|
||||
the import might fail.
|
||||
</p>
|
||||
|
||||
<div class="sub-title">TROUBLESHOOT</div>
|
||||
<p>
|
||||
If you have Wordfence installed on the current WordPress instance (or the current WordPress instance is located in a
|
||||
subdirectory of another WordPress instance which has Wordfence installed) we recommend turning it off during the import
|
||||
and reactivating it after the import is completed. To deactivate the firewall follow these steps:
|
||||
</p>
|
||||
<ol>
|
||||
<li>Go to WordPress Admin Dashboard ❯ Wordfence ❯ Firewall and click on the "Manage WAF".</li>
|
||||
<li>Choose Web Application Firewall Status to the "Disabled" option.</li>
|
||||
<li>Click on the "SAVE CHANGES" button and save the changed settings.</li>
|
||||
<li>Wait for the changes to take place</li>
|
||||
</ol>
|
||||
Reference in New Issue
Block a user