GRAYBYTE WORDPRESS FILE MANAGER4860

Server IP : 162.213.255.40 / Your IP : 216.73.216.143
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/sitemaps/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/sitemaps//sitemap-finder.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * The functions in this class provide an API for handling
 * sitemap related URIs.
 *
 * @package automattic/jetpack
 * @since 4.8.0
 * @author Automattic
 */

/**
 * The Jetpack_Sitemap_Finder object deals with constructing
 * sitemap URIs.
 *
 * @since 4.8.0
 */
class Jetpack_Sitemap_Finder {

	/**
	 * Construct the complete URL of a sitemap file. Depends on
	 * permalink settings.
	 *
	 * @access public
	 * @since 4.8.0
	 * @since 4.8.1 Call jetpack_sitemap_uri()
	 *
	 * @param string $filename The filename of the sitemap.
	 *
	 * @return string Complete URI of the given sitemap file.
	 */
	public function construct_sitemap_url( $filename ) {
		$url = jetpack_sitemap_uri( $filename );

		if ( pathinfo( $filename, PATHINFO_EXTENSION ) === 'xsl' ) {
			// Strip scheme for sites where sitemap could be access via http or https.
			$url = preg_replace( '/^https?:/', '', $url );
		}

		return $url;
	}

	/**
	 * Path and query prefix of sitemap files. Depends on permalink
	 * settings.
	 *
	 * @access public
	 * @since 4.8.0
	 *
	 * @return string The path+query prefix.
	 */
	public function the_jetpack_sitemap_path_and_query_prefix() {
		global $wp_rewrite;

		// Get path fragment from home_url().
		$home = wp_parse_url( home_url() );
		if ( isset( $home['path'] ) ) {
			$home_path = $home['path'];
		} else {
			$home_path = '';
		}

		// Get additional path fragment from filter.
		$location = Jetpack_Options::get_option_and_ensure_autoload(
			'jetpack_sitemap_location',
			''
		);

		if ( $wp_rewrite->using_index_permalinks() ) {
			return $home_path . '/index.php' . $location . '/';
		} elseif ( $wp_rewrite->using_permalinks() ) {
			return $home_path . $location . '/';
		} else {
			return $home_path . $location . '/?jetpack-sitemap=';
		}
	}

	/**
	 * Examine a path+query URI fragment looking for a sitemap request.
	 *
	 * @access public
	 * @since 4.8.0
	 *
	 * @param string $raw_uri A URI (path+query only) to test for sitemap-ness.
	 *
	 * @return array @args {
	 *   @type string $sitemap_name The recognized sitemap name (or null).
	 * }
	 */
	public function recognize_sitemap_uri( $raw_uri ) {
		// The path+query where sitemaps are served.
		$sitemap_path = $this->the_jetpack_sitemap_path_and_query_prefix();

		// A regex which detects $sitemap_path at the beginning of a string.
		$path_regex = '/^' . preg_quote( $sitemap_path, '/' ) . '/';

		// Check that the request URI begins with the sitemap path.
		if ( preg_match( $path_regex, $raw_uri ) ) {
			// Strip off the $sitemap_path and any trailing slash.
			$stripped_uri = preg_replace( $path_regex, '', rtrim( $raw_uri, '/' ) );
		} else {
			$stripped_uri = '';
		}

		// Check that the stripped uri begins with one of the sitemap prefixes.
		if ( preg_match( '/^sitemap|^image-s|^news-s|^video-s/', $stripped_uri ) ) {
			$filename = $stripped_uri;
		} else {
			$filename = null;
		}

		return array(
			'sitemap_name' => $filename,
		);
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
sitemap-buffer-fallback.php
4.038 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-image-fallback.php
2.092 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-image.php
2.568 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-master-fallback.php
1.466 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-master.php
1.904 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-news-fallback.php
2.115 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-news.php
2.583 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-page-fallback.php
2.021 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-page.php
2.502 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-video-fallback.php
2.101 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer-video.php
2.566 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-buffer.php
8.013 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-builder.php
40.062 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-constants.php
5.659 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-finder.php
2.951 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-librarian.php
12.438 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-logger.php
2.345 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-state.php
4.233 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemap-stylist.php
20.485 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemaps.php
17.946 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF