403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.145.163.242
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 :  /home/giankuin/khowordpress.com/wp-content/plugins/duplicator-pro/classes/utilities/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/khowordpress.com/wp-content/plugins/duplicator-pro/classes/utilities/class.u.import.php
<?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);
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit