first commit

This commit is contained in:
Roman Pyrih
2026-04-21 15:48:41 +02:00
commit 7483681901
10216 changed files with 3236626 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
/**
* @package Duplicator
*/
use Duplicator\Package\PackageUtils;
defined("ABSPATH") or die("");
/**
* Variables
*
* @var Duplicator\Core\Controllers\ControllersManager $ctrlMng
* @var Duplicator\Core\Views\TplMng $tplMng
* @var array<string, mixed> $tplData
*/
$orphaned_filepaths = PackageUtils::getOrphanedPackageFiles();
if (count($orphaned_filepaths) > 0) {
esc_html_e(
"Clicking on the 'Delete Backup Orphans' button will remove the following files.
Orphaned files are typically generated from previous installations of Duplicator.
They may also exist if they did not get properly removed when they were selected from the main Backups screen.
The files below are no longer associated with active Backups in the main Backups screen and should be safe to remove.
<b>IMPORTANT: Don't click button if you want to retain any of the following files:</b>",
'duplicator-pro'
);
echo "<br/><br/>";
foreach ($orphaned_filepaths as $filepath) {
echo "<div class='failed'><i class='fa fa-exclamation-triangle'></i> " . esc_html($filepath) . " </div>";
}
} else {
esc_html_e('No orphaned Backup files found.', 'duplicator-pro');
}

View File

@@ -0,0 +1,43 @@
<?php
/**
* @package Duplicator
*/
use Duplicator\Core\MigrationMng;
defined("ABSPATH") or die("");
/**
* Variables
*
* @var Duplicator\Core\Controllers\ControllersManager $ctrlMng
* @var Duplicator\Core\Views\TplMng $tplMng
* @var array<string, mixed> $tplData
*/
?>
<p>
<?php
esc_html_e(
"Clicking on the 'Remove Installation Files' button will remove the following installation files.
These files are typically from a previous Duplicator install.
If you are unsure of the source, please validate the files.
These files should never be left on production systems for security reasons.
Below is a list of all the installation files used by Duplicator.
Please be sure these are removed from your server.",
'duplicator-pro'
);
?>
<p>
<ul>
<?php
foreach (MigrationMng::getGenericInstallerFiles() as $instFileName) {
?>
<li>
<?php echo esc_html($instFileName); ?>
</li>
<?php
}
?>
</ul>