SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > jetpack > _inc > lib


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/_inc/lib

NameTypeSizeLast ModifiedActions
admin-pages Directory - -
core-api Directory - -
debugger Directory - -
markdown Directory - -
class-jetpack-ai-helper.php File 14554 bytes May 19 2025 19:32:00.
class-jetpack-blog-stats-helper.php File 2798 bytes April 14 2025 18:35:52.
class-jetpack-currencies.php File 4847 bytes July 15 2024 22:48:12.
class-jetpack-instagram-gallery-helper.php File 2986 bytes April 22 2024 23:41:02.
class-jetpack-mapbox-helper.php File 3232 bytes November 08 2022 02:55:22.
class-jetpack-podcast-feed-locator.php File 3554 bytes April 28 2025 19:38:34.
class-jetpack-podcast-helper.php File 20716 bytes April 28 2025 19:38:34.
class-jetpack-recommendations.php File 15603 bytes February 26 2024 23:23:14.
class-jetpack-top-posts-helper.php File 4588 bytes May 05 2025 21:43:40.
class.color.php File 22310 bytes August 20 2024 12:34:10.
class.core-rest-api-endpoints.php File 151622 bytes April 28 2025 19:38:34.
class.jetpack-automatic-install-skin.php File 293 bytes September 20 2023 01:19:10.
class.jetpack-iframe-embed.php File 3178 bytes June 19 2023 23:16:28.
class.jetpack-password-checker.php File 33225 bytes April 16 2024 00:40:26.
class.jetpack-search-performance-logger.php File 3711 bytes March 29 2022 23:04:42.
class.media-extractor.php File 22088 bytes August 13 2024 00:04:40.
class.media-summary.php File 15803 bytes June 05 2025 20:49:04.
class.media.php File 15936 bytes May 06 2024 23:42:24.
components.php File 3111 bytes May 26 2025 19:03:40.
debugger.php File 872 bytes January 23 2024 00:02:16.
icalendar-reader.php File 33905 bytes February 24 2025 22:55:34.
markdown.php File 344 bytes September 22 2022 21:43:06.
plans.php File 1935 bytes January 25 2022 23:38:06.
plugins.php File 209 bytes February 02 2022 21:44:30.
tonesque.php File 7015 bytes August 20 2024 12:34:10.
widgets.php File 26822 bytes May 06 2024 23:42:24.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/jetpack/_inc/lib/class-jetpack-currencies.php

<?php
/**
 * Jetpack_Currencies: Utils for displaying and managing currencies.
 *
 * @package    Jetpack
 * @since      9.1.0
 */

/**
 * General currencies specific functionality
 */
class Jetpack_Currencies {
	/**
	 * Currencies definition
	 */
	const CURRENCIES = array(
		'USD' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => '$',
			'decimal' => 2,
		),
		'GBP' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => '&#163;',
			'decimal' => 2,
		),
		'JPY' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => '&#165;',
			'decimal' => 0,
		),
		'BRL' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'R$',
			'decimal' => 2,
		),
		'EUR' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => '&#8364;',
			'decimal' => 2,
		),
		'NZD' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'NZ$',
			'decimal' => 2,
		),
		'AUD' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'A$',
			'decimal' => 2,
		),
		'CAD' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'C$',
			'decimal' => 2,
		),
		'ILS' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => '₪',
			'decimal' => 2,
		),
		'RUB' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => '₽',
			'decimal' => 2,
		),
		'MXN' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'MX$',
			'decimal' => 2,
		),
		'MYR' => array(
			'format'  => '%2$s%1$s', // 1: Symbol 2: currency value
			'symbol'  => 'RM',
			'decimal' => 2,
		),
		'SEK' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'Skr',
			'decimal' => 2,
		),
		'HUF' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'Ft',
			'decimal' => 0, // Decimals are supported by Stripe but not by PayPal.
		),
		'CHF' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'CHF',
			'decimal' => 2,
		),
		'CZK' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'Kč',
			'decimal' => 2,
		),
		'DKK' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'Dkr',
			'decimal' => 2,
		),
		'HKD' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'HK$',
			'decimal' => 2,
		),
		'NOK' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'Kr',
			'decimal' => 2,
		),
		'PHP' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => '₱',
			'decimal' => 2,
		),
		'PLN' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => 'PLN',
			'decimal' => 2,
		),
		'SGD' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'S$',
			'decimal' => 2,
		),
		'TWD' => array(
			'format'  => '%1$s%2$s', // 1: Symbol 2: currency value
			'symbol'  => 'NT$',
			'decimal' => 0, // Decimals are supported by Stripe but not by PayPal.
		),
		'THB' => array(
			'format'  => '%2$s%1$s', // 1: Symbol 2: currency value
			'symbol'  => '฿',
			'decimal' => 2,
		),
		'INR' => array(
			'format'  => '%2$s %1$s', // 1: Symbol 2: currency value
			'symbol'  => '₹',
			'decimal' => 0,
		),
	);

	/**
	 * Format a price with currency.
	 *
	 * Uses currency-aware formatting to output a formatted price with a simple fallback.
	 *
	 * Largely inspired by WordPress.com's Store_Price::display_currency
	 *
	 * @param  string $price    Price.
	 * @param  string $currency Currency.
	 * @param  bool   $symbol   Whether to display the currency symbol.
	 * @return string           Formatted price.
	 */
	public static function format_price( $price, $currency, $symbol = true ) {
		// Add some basic formatting for the price.
		$formatted_number = new NumberFormatter( get_locale(), NumberFormatter::DECIMAL );
		$price            = (float) $formatted_number->parse( $price );

		// Fall back to unspecified currency symbol like `¤1,234.05`.
		// @link https://en.wikipedia.org/wiki/Currency_sign_(typography).
		if ( ! array_key_exists( $currency, self::CURRENCIES ) ) {
			return ( $symbol ? '¤' : '' ) . number_format_i18n( $price, 2 );
		}

		$currency_details = self::CURRENCIES[ $currency ];

		// Ensure USD displays as 1234.56 even in non-US locales.
		$amount = 'USD' === $currency
			? number_format( $price, $currency_details['decimal'], '.', ',' )
			: number_format_i18n( $price, $currency_details['decimal'] );

		return sprintf(
			$currency_details['format'],
			$symbol ? $currency_details['symbol'] : '',
			$amount
		);
	}
}

SILENT KILLER Tool