first commit
This commit is contained in:
@@ -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');
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user