✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ cp240.webserver.pt ​🇻​♯➤ 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

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

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/albatroz/public_html/wp-content/plugins/updraftplus/includes//updraftplus-clone.php
<?php

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

if (!class_exists('UpdraftPlus_Login')) require_once('updraftplus-login.php');

class UpdraftPlus_Clone extends UpdraftPlus_Login {
	
	/**
	 * Pulls the appropriate message for the given code and translate it before
	 * returning it to the caller
	 *
	 * @internal
	 * @param string $code The code of the message to pull
	 * @return string - The translated message
	 */
	protected function translate_message($code) {
		switch ($code) {
			case 'generic':
			default:
				return __('An error has occurred while processing your request. The server might be busy or you have lost your connection to the internet at the time of the request. Please try again later.', 'updraftplus');
				break;
		}
	}

	/**
	 * This function will check the passed in response from the remote call and check for various errors and return the parsed response
	 *
	 * @param array $response - the response from the remote call
	 *
	 * @return array          - the parsed response
	 */
	private function parse_response($response) {
		
		if (is_wp_error($response)) {
			$response = array('status' => 'error', 'code' => $response->get_error_code(), 'message' => $response->get_error_message());
		} else {
			if (isset($response['status'])) {
				if ('error' === $response['status']) {
					$response = array(
						'status' => 'error',
						'code' => isset($response['code']) ? $response['code'] : -1,
						'message' => isset($response['message']) ? $response['message'] : $this->translate_message('generic'),
						'response' => $response,
					);
				}
			} else {
				$response = array('status' => 'error', 'message' => $this->translate_message('generic'));
			}
		}

		return $response;
	}

	/**
	 * Executes login or registration process. Connects and sends request to the UpdraftPlus clone
	 * and returns the response coming from the server
	 *
	 * @internal
	 * @param array   $data     The submitted form data
	 * @param boolean $register Indicates whether the current call is for a registration process or not. Defaults to false. Currently will always be false.
	 * @return array - The response from the request
	 */
	protected function login_or_register($data, $register = false) {

		$action = ($register) ? 'updraftplus_clone_register' : 'updraftplus_clone_login';
		if (empty($data['site_url'])) $data['site_url'] = trailingslashit(network_site_url());

		$response = $this->send_remote_request($data, $action);

		return $this->parse_response($response);
	}

	/**
	 * The ajax based request point of entry for the create clone process
	 *
	 * @param array $data - The submitted form data
	 *
	 * @return array      - Response of the process
	 */
	public function ajax_process_clone($data = array()) {
		try {
			if (isset($data['form_data']) && is_array($data['form_data'])) {
				$form_data = $data['form_data'];
			}

			$response = $this->create_clone($form_data);
		} catch (Exception $e) {
			$response = array('error' => true, 'message' => $e->getMessage());
		}

		return $response;
	}

	/**
	 * Executes the create clone process. Connects and sends request to the UpdraftPlus clone and returns the response coming from the server
	 *
	 * @internal
	 * @param array $data - The submitted form data
	 * @return array      - The response from the request
	 */
	public function create_clone($data) {
		global $updraftplus, $table_prefix;
		
		$action = 'updraftplus_clone_create';
		if (empty($data['site_url'])) $data['site_url'] = trailingslashit(network_site_url());
		if (empty($data['label'])) $data['label'] = sprintf(__('Clone of %s', 'updraftplus'), trailingslashit(network_site_url()));
		if (empty($data['install_info']['table_prefix'])) $data['install_info']['table_prefix'] = $table_prefix;
		$subdirectory = parse_url(network_site_url(), PHP_URL_PATH);
		if (empty($data['install_info']['package'])) $data['install_info']['package'] = 'starter';
		if (empty($data['install_info']['subdirectory'])) $data['install_info']['subdirectory'] = !empty($subdirectory) ? $subdirectory : '/';
		if (empty($data['install_info']['locale'])) $data['install_info']['locale'] = get_locale();
		if (empty($data['install_info']['owner_id']) && empty($data['install_info']['owner_login'])) {
			$user = wp_get_current_user();
			$data['install_info']['owner_id'] = $user->ID;
			$data['install_info']['owner_login'] = $user->user_login;
		}
		if (is_multisite()) {
			$data['install_info']['multisite'] = true;
			$data['install_info']['multisite_type'] = is_subdomain_install() ? 'subdomain' : 'subfolder';
		}
		if (empty($data['install_info']['requested_by'])) $data['install_info']['requested_by'] = $updraftplus->version;

		$response = $this->send_remote_request($data, $action);
		
		return $this->parse_response($response);
	}

	/**
	 * Executes the clone status process. Connects and sends request to the UpdraftPlus clone and returns the response coming from the server
	 *
	 * @internal
	 * @param array $data - The submitted form data
	 * @return array      - The response from the request
	 */
	public function clone_status($data) {

		$action = 'updraftplus_clone_status';
		if (empty($data['site_url'])) $data['site_url'] = trailingslashit(network_site_url());

		$response = $this->send_remote_request($data, $action);
		
		return $this->parse_response($response);
	}

	/**
	 * Executes the clone info poll. Connects and sends request to the UpdraftPlus clone and returns the response coming from the server
	 *
	 * @internal
	 * @param array $data - The submitted form data
	 * @return array      - The response from the request
	 */
	public function clone_info_poll($data) {

		$action = 'updraftplus_clone_info_poll';
		if (empty($data['site_url'])) $data['site_url'] = trailingslashit(network_site_url());

		$response = $this->send_remote_request($data, $action);
		
		return $this->parse_response($response);
	}

	/**
	 * Executes the backup checkin. Connects and sends request to UpdraftPlus and returns the response coming from the server
	 *
	 * @internal
	 * @param array $data - The submitted form data
	 * @return array      - The response from the request
	 */
	public function backup_checkin($data) {
		$action = 'updraftplus_backup_checkin';
		if (empty($data['site_url'])) $data['site_url'] = trailingslashit(network_site_url());
		if (!empty($data['log_contents'])) {
			$data['log_contents'] = base64_encode(gzcompress($data['log_contents']));
			$data['format'] = 'gzcompress';
		}

		$response = $this->send_remote_request($data, $action);

		return $this->parse_response($response);
	}

	/**
	 * Executes the clone failed delete process. Connects and sends request to the UpdraftPlus clone and returns the response coming from the server
	 *
	 * @internal
	 * @param array $data - The submitted form data
	 * @return array      - The response from the request
	 */
	public function clone_failed_delete($data) {

		$action = 'updraftplus_clone_failed_delete';
		if (empty($data['site_url'])) $data['site_url'] = trailingslashit(network_site_url());

		$response = $this->send_remote_request($data, $action);
		
		return $this->parse_response($response);
	}
}


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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
11 Jun 2026 3.10 AM
albatroz / albatroz
0755
Dropbox2
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
Google
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
blockui
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
checkout-embed
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
cloudfiles
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
handlebars
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
images
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
jquery-ui.dialog.extended
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
jquery.serializeJSON
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
jstree
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
labelauty
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
pcloud
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
tether
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
tether-shepherd
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
updraftclone
--
22 Jan 2026 12.11 PM
albatroz / albatroz
0755
S3.php
76.634 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
S3compat.php
30.938 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
cacert.pem
203.188 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-backup-history.php
39.023 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-commands.php
47.189 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-database-utility.php
33.517 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-filesystem-functions.php
34.13 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-http-error-descriptions.php
9.999 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-job-scheduler.php
10.237 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-manipulation-functions.php
16.734 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-partialfileservlet.php
6.916 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-remote-send.php
29.587 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-search-replace.php
19.785 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-semaphore.php
6.273 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-storage-methods-interface.php
18.038 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-updraft-dashboard-news.php
7.877 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-updraft-semaphore.php
7.513 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-updraftcentral-updraftplus-commands.php
1.813 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-updraftplus-encryption.php
13.492 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-wpadmin-commands.php
35.475 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
class-zip.php
17.664 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
ftp.class.php
6.502 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
get-cpanel-quota-usage.pl
0.398 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
google-extensions.php
9.153 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
jquery-ui.custom-v1.11.4-1-23-3.min.css
37.843 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
jquery-ui.custom-v1.11.4-1-23-3.min.css.map
57.006 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
jquery-ui.custom-v1.11.4.css
42.181 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
jquery-ui.custom-v1.12.1-1-23-3.min.css
39.548 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
jquery-ui.custom-v1.12.1-1-23-3.min.css.map
59.413 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
jquery-ui.custom-v1.12.1.css
44.033 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraft-admin-common-1-23-3.min.js
148.677 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraft-admin-common.js
245.155 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraft-restorer-skin-compatibility.php
0.441 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraft-restorer-skin.php
1.683 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraftcentral.php
2.694 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraftplus-clone.php
6.993 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraftplus-login.php
4.266 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraftplus-notices.php
20.175 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraftplus-tour.php
12.983 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644
updraftvault.php
1.992 KB
5 Dec 2024 3.02 PM
albatroz / albatroz
0644

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