| Server IP : 162.253.224.18 / Your IP : 216.73.217.81 Web Server : Apache System : Linux s18.infinitysrv.com 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64 User : dejavumk ( 1184) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dejavumk/perbec.com/wp-content/plugins/duplicator-pro/classes/utilities/ |
Upload File : |
<?php
defined("ABSPATH") or die("");
class DUP_PRO_Import_U
{
public static function PurgeOldImports()
{
if(file_exists(DUPLICATOR_PRO_PATH_IMPORTS)) {
$files = scandir(DUPLICATOR_PRO_PATH_IMPORTS);
if($files !== false) {
foreach ($files as $file) {
$filepath = DUPLICATOR_PRO_PATH_IMPORTS . "/{$file}";
DUP_PRO_LOG::trace("checking {$filepath}");
if(is_file($filepath)) {
if (filemtime($filepath) <= time() - DUP_PRO_Constants::IMPORTS_CLEANUP_SECS) {
@unlink($filepath);
}
}
}
} else {
DUP_PRO_LOG::trace("Couldn't get list of files in " . DUPLICATOR_PRO_PATH_IMPORTS);
}
}
}
public static function PurgeAllImports()
{
$files = scandir(DUPLICATOR_PRO_PATH_IMPORTS);
if($files !== false) {
foreach ($files as $file) {
$filepath = DUPLICATOR_PRO_PATH_IMPORTS . "/{$file}";
@unlink($filepath);
}
} else {
DUP_PRO_LOG::trace("Couldn't get list of files in " . DUPLICATOR_PRO_PATH_IMPORTS);
}
}
public static function hasAllRequiredTables($muMode, $muIsFiltered, $DBInfo)
{
if ($muMode > 0 && $muIsFiltered) {
//If it's a subside -> standalone migration allow absence of tables filtered by us
if (($DBInfo->tablesFinalCount + $DBInfo->muFilteredTableCount) !== $DBInfo->tablesBaseCount) {
return false;
}
} else {
if ($DBInfo->tablesBaseCount !== $DBInfo->tablesFinalCount) {
return false;
}
}
return true;
}
}