| Server IP : 116.202.121.150 / Your IP : 216.73.217.174 Web Server : Apache System : Linux server5.febas.net 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64 User : k9887-1 ( 1171) PHP Version : 8.2.32 Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/k9887-1/htdocs/_fisch/wp-content/plugins/duplicator/classes/host/ |
Upload File : |
<?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;
}
}