[ Avaa Bypassed ]




Upload:

Command:

www-data@18.225.72.113: ~ $
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
 * Compatibility functions for YouTube URLs and WP.com helper functions.
 *
 * @package automattic/jetpack
 */

use Automattic\Jetpack\Connection\Manager as Connection_Manager;

/**
 * Required for class.media-extractor.php to match expected function naming convention.
 *
 * @param $url Can be just the $url or the whole $atts array.
 * @return bool|mixed The Youtube video ID via jetpack_get_youtube_id
 */
function jetpack_shortcode_get_youtube_id( $url ) {
	return jetpack_get_youtube_id( $url );
}

/**
 * Extract video ID from a YouTube url.
 *
 * @param string $url YouTube URL.
 * @return bool|mixed The Youtube video ID
 */
function jetpack_get_youtube_id( $url ) {
	// Do we have an $atts array?  Get first att
	if ( is_array( $url ) ) {
		$url = reset( $url );
	}

	$url = youtube_sanitize_url( $url );
	$url = wp_parse_url( $url );
	$id  = false;

	if ( ! isset( $url['query'] ) ) {
		return false;
	}

	parse_str( $url['query'], $qargs );

	if ( ! isset( $qargs['v'] ) && ! isset( $qargs['list'] ) ) {
		return false;
	}

	if ( isset( $qargs['list'] ) ) {
		$id = preg_replace( '|[^_a-z0-9-]|i', '', $qargs['list'] );
	}

	if ( empty( $id ) ) {
		$id = preg_replace( '|[^_a-z0-9-]|i', '', $qargs['v'] );
	}

	return $id;
}

if ( ! function_exists( 'youtube_sanitize_url' ) ) :
	/**
	 * Normalizes a YouTube URL to include a v= parameter and a query string free of encoded ampersands.
	 *
	 * @param string $url YouTube URL.
	 * @return string The normalized URL
	 */
	function youtube_sanitize_url( $url ) {
		$url = trim( $url, ' "' );
		$url = trim( $url );
		$url = str_replace( array( 'youtu.be/', '/v/', '#!v=', '&amp;', '&#038;', 'playlist' ), array( 'youtu.be/?v=', '/?v=', '?v=', '&', '&', 'videoseries' ), $url );

		// Replace any extra question marks with ampersands - the result of a URL like "https://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US" being passed in.
		$query_string_start = strpos( $url, '?' );

		if ( false !== $query_string_start ) {
			$url = substr( $url, 0, $query_string_start + 1 ) . str_replace( '?', '&', substr( $url, $query_string_start + 1 ) );
		}

		return $url;
	}
endif;

/**
 * Merge in three string helper functions from WPCOM to make working with strings easier.
 *
 * @see WPCOM/wp-content/mu-plugins/string-helpers.php
 */
if ( ! function_exists( 'wp_startswith' ) ) :
	/**
	 * Check whether a string starts with a specific substring.
	 *
	 * @param string $haystack String we are filtering.
	 * @param string $needle The substring we are looking for.
	 * @return bool
	 */
	function wp_startswith( $haystack, $needle ) {
		if ( ! $haystack || ! $needle || ! is_scalar( $haystack ) || ! is_scalar( $needle ) ) {
			return false;
		}

		$haystack = (string) $haystack;
		$needle   = (string) $needle;

		return str_starts_with( $haystack, $needle );
	}
endif;

if ( ! function_exists( 'wp_endswith' ) ) :
	/**
	 * Check whether a string ends with a specific substring.
	 *
	 * @param string $haystack String we are filtering.
	 * @param string $needle The substring we are looking for.
	 * @return bool
	 */
	function wp_endswith( $haystack, $needle ) {
		if ( ! $haystack || ! $needle || ! is_scalar( $haystack ) || ! is_scalar( $needle ) ) {
			return false;
		}

		$haystack = (string) $haystack;
		$needle   = (string) $needle;

		return str_ends_with( $haystack, $needle );
	}
endif;

if ( ! function_exists( 'wp_in' ) ) :
	/**
	 * Checks whether a string contains a specific substring.
	 *
	 * @param string $needle The substring we are looking for.
	 * @param string $haystack String we are filtering.
	 * @return bool
	 */
	function wp_in( $needle, $haystack ) {
		if ( ! $haystack || ! $needle || ! is_scalar( $haystack ) || ! is_scalar( $needle ) ) {
			return false;
		}

		$haystack = (string) $haystack;
		$needle   = (string) $needle;

		return str_contains( $haystack, $needle );
	}
endif;

/**
 * Deprecated connection function.
 *
 * @param string $text Deprecated.
 * @deprecated 7.5 Use Connection_Manager instead.
 */
function jetpack_sha1_base64( $text ) {
	$connection = new Connection_Manager();
	return $connection->sha1_base64( $text );
}

Filemanager

Name Type Size Permission Actions
3rd-party Folder 0777
_inc Folder 0777
css Folder 0777
extensions Folder 0777
images Folder 0777
jetpack_vendor Folder 0777
json-endpoints Folder 0777
modules Folder 0777
sal Folder 0777
src Folder 0777
vendor Folder 0777
views Folder 0777
CHANGELOG.md File 562.84 KB 0777
LICENSE.txt File 17.98 KB 0777
SECURITY.md File 2.45 KB 0777
class-jetpack-connection-status.php File 728 B 0777
class-jetpack-connection-widget.php File 3.27 KB 0777
class-jetpack-gallery-settings.php File 3.38 KB 0777
class-jetpack-pre-connection-jitms.php File 5.77 KB 0777
class-jetpack-recommendations-banner.php File 9.08 KB 0777
class-jetpack-stats-dashboard-widget.php File 7.77 KB 0777
class-jetpack-wizard-banner.php File 214 B 0777
class-jetpack-xmlrpc-methods.php File 8.33 KB 0777
class.frame-nonce-preview.php File 3.22 KB 0777
class.jetpack-admin.php File 20.11 KB 0777
class.jetpack-affiliate.php File 205 B 0777
class.jetpack-autoupdate.php File 9.74 KB 0777
class.jetpack-bbpress-json-api.compat.php File 220 B 0777
class.jetpack-boost-modules.php File 1.23 KB 0777
class.jetpack-cli.php File 71.41 KB 0777
class.jetpack-client-server.php File 2.79 KB 0777
class.jetpack-connection-banner.php File 13.8 KB 0777
class.jetpack-data.php File 275 B 0777
class.jetpack-gutenberg.php File 41.16 KB 0777
class.jetpack-heartbeat.php File 4.55 KB 0777
class.jetpack-idc.php File 351 B 0777
class.jetpack-modules-list-table.php File 14.79 KB 0777
class.jetpack-network-sites-list-table.php File 5.93 KB 0777
class.jetpack-network.php File 21.03 KB 0777
class.jetpack-plan.php File 4.09 KB 0777
class.jetpack-post-images.php File 31.98 KB 0777
class.jetpack-twitter-cards.php File 12.92 KB 0777
class.jetpack-user-agent.php File 25.84 KB 0777
class.jetpack.php File 228.13 KB 0777
class.json-api-endpoints.php File 82.39 KB 0777
class.json-api.php File 33.34 KB 0777
class.photon.php File 1.74 KB 0777
composer.json File 3.84 KB 0777
enhanced-open-graph.php File 4.35 KB 0777
functions.compat.php File 4.1 KB 0777
functions.cookies.php File 2.04 KB 0777
functions.global.php File 15.08 KB 0777
functions.is-mobile.php File 2.47 KB 0777
functions.opengraph.php File 17.72 KB 0777
functions.photon.php File 3.04 KB 0777
jetpack.php File 8.24 KB 0777
json-api-config.php File 338 B 0777
json-endpoints.php File 6.92 KB 0777
load-jetpack.php File 3.39 KB 0777
locales.php File 324 B 0777
readme.txt File 26.87 KB 0777
uninstall.php File 1.59 KB 0777
wpml-config.xml File 1.26 KB 0777