first commit

This commit is contained in:
2026-04-27 23:13:18 +02:00
commit 8cc95300c7
10702 changed files with 3223926 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
?>
<style>
.recovery-main-info {
text-align: center;
margin: 0 100px;
}
</style>

View File

@@ -0,0 +1,31 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
use Duplicator\Installer\Core\Params\PrmMng;
?>
<div id="next_action" class="bottom-step-action no-display" >
<div class="footer-buttons">
<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" >
<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">
<i class="fas fa-undo-alt"></i> Restore Backup
</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
?>
<form id="s1-input-form" method="post" class="content-form" autocomplete="off" >
<?php
dupxTplRender('pages-parts/step1/info');
//dupxTplRender('pages-parts/step1/recovery-alert-info');
dupxTplRender('parts/validation/validate-area');
dupxTplRender('pages-parts/step1/actions-part');
?>
</form>
<?php
dupxTplRender(
'pages-parts/step1/proceed-confirm-dialog',
array('tableCount' => 0)
);

View File

@@ -0,0 +1,22 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
$packageLife = DUPX_ArchiveConfig::getInstance()->getPackageLife('hours');
$created = DUPX_ArchiveConfig::getInstance()->created;
?><div class="generic-box" >
<div class="box-title" >
<i class="fas fa-exclamation-triangle"></i>Restore Backup Site Info
</div>
<div class="box-content" >
<div class="recovery-main-info red" >
This installer is about to overwrite the current data in this site with data from the Backup
created on <b><?php echo $created; ?></b> which is <b><?php echo $packageLife; ?> hour(s) old</b>.
</div>
</div>
</div>

View File

@@ -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: ' .
'Restore Backup <div class="sub-header">Launch the installer to restore the site.</div>',
'showSwitchView' => false,
'showHeaderLinks' => false,
));

View File

@@ -0,0 +1,14 @@
<?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/installer-result-summary');
dupxTplRender('pages-parts/step4/final-review-actions');
dupxTplRender('pages-parts/step4/full-report');

View File

@@ -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: Recovery process done',
'showSwitchView' => false,
'showHeaderLinks' => false,
));

View File

@@ -0,0 +1,45 @@
<?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 installation process,
because of which it might fail.
</p>
<div class="sub-title">TROUBLESHOOT</div>
<p>
We recommend turning off the Wordfence firewall of the WordPress instance located at "<?php echo DUPX_U::esc_html($wordFencePath); ?>"
during the installation process and reactivate it after the migration 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>
<p>
If there is no WordPress installation present at that location please remove all of the following files from that directory:
</p>
<ol>
<li>.htaccess</li>
<li>.user.ini</li>
<li>.php.ini</li>
<li>wordfence-waf.php</li>
</ol>