SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > jetpack > > modules > sitemaps


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/jetpack//modules/sitemaps

NameTypeSizeLast ModifiedActions
sitemap-buffer-factory.php File 1986 bytes May 12 2025 23:04:36.
sitemap-buffer-fallback.php File 4135 bytes September 20 2023 01:19:10.
sitemap-buffer-image-fallback.php File 2142 bytes March 25 2024 22:39:50.
sitemap-buffer-image-xmlwriter.php File 2997 bytes April 28 2025 19:38:34.
sitemap-buffer-image.php File 2630 bytes June 21 2022 20:20:10.
sitemap-buffer-master-fallback.php File 1501 bytes March 25 2024 22:39:50.
sitemap-buffer-master-xmlwriter.php File 1443 bytes April 28 2025 19:38:34.
sitemap-buffer-master.php File 1950 bytes June 21 2022 20:20:10.
sitemap-buffer-news-fallback.php File 2166 bytes March 25 2024 22:39:50.
sitemap-buffer-news-xmlwriter.php File 2828 bytes April 28 2025 19:38:34.
sitemap-buffer-news.php File 2645 bytes June 21 2022 20:20:10.
sitemap-buffer-page-fallback.php File 2069 bytes March 25 2024 22:39:50.
sitemap-buffer-page-xmlwriter.php File 1996 bytes April 28 2025 19:38:34.
sitemap-buffer-page.php File 2562 bytes June 21 2022 20:20:10.
sitemap-buffer-video-fallback.php File 2151 bytes March 25 2024 22:39:50.
sitemap-buffer-video-xmlwriter.php File 2572 bytes May 05 2025 21:43:40.
sitemap-buffer-video.php File 2628 bytes June 21 2022 20:20:10.
sitemap-buffer-xmlwriter.php File 5451 bytes April 28 2025 19:38:34.
sitemap-buffer.php File 8322 bytes February 10 2025 18:44:16.
sitemap-builder.php File 41309 bytes April 28 2025 19:38:34.
sitemap-constants.php File 5795 bytes May 05 2025 21:43:40.
sitemap-finder.php File 3022 bytes September 20 2023 01:19:10.
sitemap-librarian.php File 12737 bytes October 07 2024 23:44:04.
sitemap-logger.php File 2592 bytes May 12 2025 23:04:36.
sitemap-state.php File 4335 bytes September 20 2023 01:19:10.
sitemap-stylist.php File 20977 bytes October 24 2023 18:28:46.
sitemaps.php File 18851 bytes April 28 2025 19:38:34.

Reading File: /home/codekrsu//ameliagraphics.com/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,
		);
	}
}

SILENT KILLER Tool