403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.138.68.216
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/www/wp-content/plugins/duplicator-pro/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/www/wp-content/plugins/duplicator-pro/classes/class.restoreonly.package.php
<?php
/**
 * Restore only package
 *
 * Standard: PSR-2
 *
 * @package SC\DUPX\
 * @link http://www.php-fig.org/psr/psr-2/
 *
 */
defined('ABSPATH') || defined('DUPXABSPATH') || exit;

class DUP_PRO_RestoreOnly_Package
{

    /**
     *
     * @var DUP_PRO_RestoreOnly_Package
     */
    protected static $instance = null;

    private function __construct()
    {
        
    }

    /**
     *
     * @return self
     */
    public static function getInstance()
    {
        if (is_null(self::$instance)) {
            self::$instance = new self;
        }
        return self::$instance;
    }

    public function init()
    {
        if (!self::canBeMigrate()) {
            add_filter('duplicator_pro_overwrite_params_data', array(__CLASS__, 'forceSkipReplace'));
        }
    }

    public static function isRestoreOnly()
    {
        $overwriteInstallerParams = apply_filters('duplicator_pro_overwrite_params_data', array());
        return (
            isset($overwriteInstallerParams['mode_chunking']['value']) &&
            $overwriteInstallerParams['mode_chunking']['value'] == 3 &&
            isset($overwriteInstallerParams['mode_chunking']['formStatus']) &&
            $overwriteInstallerParams['mode_chunking']['formStatus'] == 'st_infoonly'
            );
    }

    public static function forceSkipReplace($data)
    {
        $data['mode_chunking'] = array(
            'value'      => 3,
            'formStatus' => 'st_infoonly'
        );
        return $data;
    }

    private static function canBeMigrate()
    {
        $homePath = DUP_PRO_Archive::getArchiveListPaths('home');
        return apply_filters('duplicator_pro_package_can_be_migrate', (strlen($homePath) > 2));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit