https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/www/wp-content/plugins/wpvivid-backuprestore/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/www/wp-content/plugins/wpvivid-backuprestore/includes/class-wpvivid-backup-site.php
<?php

if (!defined('WPVIVID_PLUGIN_DIR')){
    die;
}
require_once WPVIVID_PLUGIN_DIR . '/includes/class-wpvivid-zipclass.php';
class WPvivid_Backup_Site
{
    private $tools_collection=array();

    public function __construct()
    {
        add_filter('wpvivid_tools_register', array($this, 'init_tools'),10);
        $this->tools_collection=apply_filters('wpvivid_tools_register',$this->tools_collection);
        $this->load_hooks();
    }

    public function init_tools($tools_collection){
        $tools_collection['zip'][WPVIVID_COMPRESS_ZIPCLASS] = 'WPvivid_ZipClass';
        return $tools_collection;
    }

    public function get_tools($type){
        if(array_key_exists($type,$this->tools_collection))
        {
            foreach ($this -> tools_collection[$type] as $class_name){
                if(class_exists($class_name)){
                    $object = new $class_name();
                    $last_error = $object -> getLastError();
                    if(empty($last_error))
                        return $object;
                }
            }
        }
        $class_name = $this -> tools_collection['zip'][WPVIVID_COMPRESS_ZIPCLASS];
        $object = new $class_name();
        $last_error = $object -> getLastError();
        if(empty($last_error)){
            return $object;
        }else{
            return array('result' => WPVIVID_FAILED,'error' => $last_error);
        }
    }

    public function load_hooks(){
        foreach ($this -> tools_collection as $compressType){
            foreach ($compressType as $className){
                $object = new $className();
            }
        }
    }
}

https://t.me/ARX49 - 2025