Server IP : 172.67.158.161 / Your IP : 18.224.69.83 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/cwd/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); } } }