first commit
This commit is contained in:
@@ -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 active"
|
||||
title="Enable basic import mode"
|
||||
>
|
||||
Basic
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="s1-switch-template-btn-advanced"
|
||||
class="s1-switch-template-btn"
|
||||
data-template="<?php echo DUPX_Template::TEMPLATE_IMPORT_ADVANCED; ?>"
|
||||
title="Enable advanced import mode"
|
||||
>
|
||||
Advanced
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
?>
|
||||
<div id="base-setup-area-header" class="hdr-sub1 toggle-hdr close" data-type="toggle" data-target="#base-setup-area">
|
||||
<a href="javascript:void(0)"><i class="fa fa-minus-square"></i>Setup</a>
|
||||
</div>
|
||||
<div id="base-setup-area" class="hdr-sub1-area dupx-opts" >
|
||||
<?php dupxTplRender('pages-parts/step1/options-tabs/settings'); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
@@ -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">1</span> of 2: ' .
|
||||
'Deploy Uploaded Package <div class="sub-header">This step will extract the archive file, install & update the database.</div>',
|
||||
'showSwitchView' => true,
|
||||
'showHeaderLinks' => true,
|
||||
));
|
||||
@@ -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">2</span> of 2: 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>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package templates/default
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
||||
|
||||
use Duplicator\Installer\Core\Security;
|
||||
use Duplicator\Installer\Core\Params\PrmMng;
|
||||
use Duplicator\Installer\Utils\SecureCsrf;
|
||||
use Duplicator\Libs\Snap\SnapJson;
|
||||
|
||||
$nextStepPrams = array(
|
||||
PrmMng::PARAM_CTRL_ACTION => 'ctrl-step4',
|
||||
Security::CTRL_TOKEN => SecureCsrf::generate('ctrl-step4'),
|
||||
);
|
||||
?>
|
||||
<script>
|
||||
DUPX.deployStep1 = function () {
|
||||
DUPX.oneStepDeploy($('#s1-input-form'), <?php echo SnapJson::jsonEncode($nextStepPrams); ?>);
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user