403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.143.5.248
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/package/duparchive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/khowordpress.com/wp-content/plugins/duplicator-pro/classes/package/duparchive/class.pack.archive.duparchive.state.expand.php
<?php
defined('ABSPATH') || defined('DUPXABSPATH') || exit;

require_once (DUPLICATOR_PRO_PLUGIN_PATH.'/lib/dup_archive/classes/states/class.duparchive.state.expand.php');
require_once (DUPLICATOR_PRO_PLUGIN_PATH.'/classes/entities/class.duparchive.expandstate.entity.php');

class DUP_PRO_DupArchive_Expand_State extends DupArchiveExpandState
{
    /* @var $entity DUP_PRO_DupArchive_Expand_State_Entity */
    public $entity;

    public function __construct($expandStateEntity)
    {
        $this->entity = $expandStateEntity;

        DUP_PRO_U::objectCopy($this->entity, $this, array('id', 'type', 'dirty', 'table_name', 'verifiers', 'parent_id', 'archiveHeaderString', 'currentFileHeaderString', 'failuresString'));

        if($this->entity->archiveHeaderString != null)
        {
            $this->archiveHeader = DUP_PRO_JSON_U::decode($this->entity->archiveHeaderString);
        }
        else
        {
            $this->archiveHeader = null;
        }

        if($this->entity->currentFileHeaderString)
        {
            $this->currentFileHeader = DUP_PRO_JSON_U::decode($this->entity->currentFileHeaderString);
        }
        else
        {
            $this->currentFileHeader = null;
        }
        
        if($this->entity->failuresString)
        {
            $this->failures = DUP_PRO_JSON_U::decode($this->entity->failuresString);
        }
        else
        {
            $this->failures = array();
        }
    }

    public function save()
    {
        DUP_PRO_U::objectCopy($this, $this->entity);

        if($this->archiveHeader != null)
        {
            $this->entity->archiveHeaderString = DUP_PRO_JSON_U::safeEncode($this->archiveHeader);
        }
        else
        {
            $this->entity->archiveHeaderString = null;
        }

        if($this->currentFileHeader != null)
        {
            $this->entity->currentFileHeaderString = DUP_PRO_JSON_U::safeEncode($this->currentFileHeader);
        }
        else
        {
            $this->entity->currentFileHeaderString = null;
        }
        
        $this->entity->failuresString = DUP_PRO_JSON_U::safeEncode($this->failures);

        $this->entity->save();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit