[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.22.27.222: ~ $
<?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;
	}
}

Filemanager

Name Type Size Permission Actions
3rd-party Folder 0755
_inc Folder 0755
css Folder 0755
extensions Folder 0755
images Folder 0755
jetpack_vendor Folder 0755
json-endpoints Folder 0755
modules Folder 0755
sal Folder 0755
src Folder 0755
vendor Folder 0755
views Folder 0755
CHANGELOG.md File 675.69 KB 0644
LICENSE.txt File 17.98 KB 0644
SECURITY.md File 2.45 KB 0644
class-jetpack-connection-status.php File 728 B 0644
class-jetpack-gallery-settings.php File 3.38 KB 0644
class-jetpack-pre-connection-jitms.php File 2.34 KB 0644
class-jetpack-stats-dashboard-widget.php File 7.77 KB 0644
class-jetpack-xmlrpc-methods.php File 8.38 KB 0644
class.frame-nonce-preview.php File 3.22 KB 0644
class.jetpack-admin.php File 18.47 KB 0644
class.jetpack-affiliate.php File 205 B 0644
class.jetpack-autoupdate.php File 9.74 KB 0644
class.jetpack-bbpress-json-api.compat.php File 220 B 0644
class.jetpack-cli.php File 71.65 KB 0644
class.jetpack-client-server.php File 2.62 KB 0644
class.jetpack-gutenberg.php File 46.52 KB 0644
class.jetpack-heartbeat.php File 4.55 KB 0644
class.jetpack-modules-list-table.php File 14.79 KB 0644
class.jetpack-network-sites-list-table.php File 5.98 KB 0644
class.jetpack-network.php File 21.06 KB 0644
class.jetpack-plan.php File 4.09 KB 0644
class.jetpack-post-images.php File 33.83 KB 0644
class.jetpack-twitter-cards.php File 12.92 KB 0644
class.jetpack-user-agent.php File 25.3 KB 0644
class.jetpack.php File 203.25 KB 0644
class.json-api-endpoints.php File 83.06 KB 0644
class.json-api.php File 34.47 KB 0644
class.photon.php File 1.74 KB 0644
composer.json File 3.92 KB 0644
enhanced-open-graph.php File 4.35 KB 0644
functions.compat.php File 4.28 KB 0644
functions.cookies.php File 2.04 KB 0644
functions.global.php File 15.37 KB 0644
functions.is-mobile.php File 2.47 KB 0644
functions.opengraph.php File 21.38 KB 0644
functions.photon.php File 3.04 KB 0644
global.d.ts File 48 B 0644
jetpack.php File 8.58 KB 0644
json-api-config.php File 338 B 0644
json-endpoints.php File 6.92 KB 0644
load-jetpack.php File 3.1 KB 0644
locales.php File 324 B 0644
readme.txt File 32.03 KB 0644
uninstall.php File 1.6 KB 0644
wpml-config.xml File 1.26 KB 0644