$58 GRAYBYTE WORDPRESS FILE MANAGER $93

SERVER : premium267.web-hosting.com #1 SMP Wed Jun 4 13:01:13 UTC 2025
SERVER IP : 69.57.162.29 | ADMIN IP 216.73.216.187
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/njinenkb/tadkon.org/wp-content/plugins/updraftplus/includes/

HOME
Current File : /home/njinenkb/tadkon.org/wp-content/plugins/updraftplus/includes//updraftplus-login.php
<?php

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

abstract class 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
	 */
	abstract protected function translate_message($code);

	/**
	 * Executes login or registration process. Connects and sends request to the UpdraftCentral Cloud
	 * 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.
	 * @return array - The response from the request
	 */
	abstract protected function login_or_register($data, $register = false);

	/**
	 * Handles the actual sending of the request to the remote server (UpdraftCentral Cloud) and pre-checks the response
	 * and wraps it up for the caller before sending it back
	 *
	 * @internal
	 * @param array  $data   The submitted form data
	 * @param string $action The name of the action or service that will be triggered in UpdraftCentral Cloud
	 * @return array - The response from the server
	 */
	protected function send_remote_request($data, $action) {
		global $updraftplus;
		$result = wp_remote_post($updraftplus->get_url('mothership').'/?udm_action='.$action,
			array(
				'timeout' => 20,
				'headers' => apply_filters('updraftplus_auth_headers', ''),
				'body' => $data
			)
		);

		// If we got an error then we return the WP_Error object itself
		// and let the caller handle it.
		if (is_wp_error($result)) return $result;

		$response = json_decode(wp_remote_retrieve_body($result), true);
		if (!is_array($response) || !isset($response['mothership']) || !isset($response['status'])) {

			if (preg_match('/has banned your IP address \(([\.:0-9a-f]+)\)/', $result['body'], $matches)) {
				return new WP_Error('banned_ip', sprintf(__("UpdraftPlus.com has responded with 'Access Denied'.", 'updraftplus').'<br>'.__("It appears that your web server's IP Address (%s) is blocked.", 'updraftplus').' '.__('This most likely means that you share a webserver with a hacked website that has been used in previous attacks.', 'updraftplus').'<br> <a href="'.apply_filters("updraftplus_com_link", "https://updraftplus.com/unblock-ip-address/").'" target="_blank">'.__('To remove the block, please go here.', 'updraftplus').'</a> ', $matches[1]));
			} else {
				return new WP_Error('unknown_response', sprintf(__('UpdraftPlus.Com returned a response which we could not understand (data: %s)', 'updraftplus'), wp_remote_retrieve_body($result)));
			}
		}

		return $response;
	}

	/**
	 * The ajax based request point of entry for the login process
	 *
	 * @param array   $data         - The submitted form data
	 * @param boolean $echo_results - Whether to echo/display the results directly to the user or assign it to a variable
	 * @return array - Response of the process
	 */
	public function ajax_process_login($data = array(), $echo_results = true) {
		try {
			if (isset($data['form_data'])) {
				if (is_string($data['form_data'])) {
					parse_str($data['form_data'], $form_data);
				} elseif (is_array($data['form_data'])) {
					$form_data = $data['form_data'];
				}
			}
			$response = $this->login_or_register($form_data);
		} catch (Exception $e) {
			$response = array('error' => true, 'message' => $e->getMessage());
		}

		if ($echo_results) {
			echo json_encode($response);
		} else {
			return $response;
		}
	}

	/**
	 * The ajax based request point of entry for the registration process
	 *
	 * @param array   $data         - The submitted form data
	 * @param boolean $echo_results - Whether to echo/display the results directly to the user or assign it to a variable
	 * @return array - Response of the process
	 */
	public function ajax_process_registration($data = array(), $echo_results = true) {
		try {
			if (isset($data['form_data'])) parse_str($data['form_data'], $form_data);

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

		if ($echo_results) {
			echo json_encode($response);
		} else {
			return $response;
		}
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Apr 2026 7.46 AM
njinenkb / njinenkb
0755
Dropbox2
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
Google
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
blockui
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
checkout-embed
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
cloudfiles
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
handlebars
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
images
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
jquery-ui.dialog.extended
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
jquery.serializeJSON
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
jstree
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
labelauty
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
pcloud
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
tether
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
tether-shepherd
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
updraftclone
--
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0755
S3.php
76.644 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
S3compat.php
30.841 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
cacert.pem
216.279 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-backup-history.php
39.559 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-commands.php
48.795 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-database-utility.php
36.688 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-filesystem-functions.php
40.292 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-http-error-descriptions.php
11.396 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-job-scheduler.php
10.305 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-manipulation-functions.php
16.737 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-partialfileservlet.php
7.381 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-remote-send.php
31.992 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-search-replace.php
20.088 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-semaphore.php
6.273 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-storage-methods-interface.php
18.227 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-updraft-dashboard-news.php
8.049 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-updraft-semaphore.php
7.513 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-updraftcentral-updraftplus-commands.php
1.813 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-updraftplus-encryption.php
13.702 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-wpadmin-commands.php
38.522 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
class-zip.php
17.906 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
ftp.class.php
6.61 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
get-cpanel-quota-usage.pl
0.398 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
google-extensions.php
9.274 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
jquery-ui.custom-v1.11.4-1-25-5.min.css
37.843 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
jquery-ui.custom-v1.11.4-1-25-5.min.css.map
57.006 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
jquery-ui.custom-v1.11.4.css
42.181 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
jquery-ui.custom-v1.12.1-1-25-5.min.css
39.548 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
jquery-ui.custom-v1.12.1-1-25-5.min.css.map
59.413 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
jquery-ui.custom-v1.12.1.css
44.033 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
migrator-lite.php
52.476 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraft-admin-common-1-25-5.min.js
154.371 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraft-admin-common.js
255.18 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraft-restorer-skin-compatibility.php
0.441 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraft-restorer-skin.php
1.683 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraftcentral.php
3.383 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraftplus-clone.php
7.067 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraftplus-login.php
4.266 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraftplus-notices.php
21.548 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraftplus-tour.php
13.053 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644
updraftvault.php
1.992 KB
27 Apr 2025 10.47 PM
njinenkb / njinenkb
0644

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