SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > elementor > core > utils


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/elementor/core/utils

NameTypeSizeLast ModifiedActions
import-export Directory - -
promotions Directory - -
svg Directory - -
assets-config-provider.php File 1522 bytes August 23 2023 17:47:32.
assets-translation-loader.php File 2560 bytes March 17 2025 17:28:54.
collection.php File 10116 bytes April 28 2025 11:15:16.
exceptions.php File 709 bytes March 17 2025 17:28:54.
force-locale.php File 3640 bytes April 23 2023 15:22:46.
hints.php File 10506 bytes March 17 2025 17:28:54.
http.php File 981 bytes April 23 2023 15:22:46.
isolation-manager.php File 415 bytes December 19 2024 15:59:46.
plugins-manager.php File 2908 bytes April 28 2025 11:15:16.
static-collection.php File 1111 bytes April 23 2023 15:22:46.
str.php File 1001 bytes March 17 2025 17:28:54.
version.php File 3749 bytes March 17 2025 17:28:54.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/elementor/core/utils/str.php

<?php
namespace Elementor\Core\Utils;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Str {

	/**
	 * Convert a non-latin URL to an IDN one.
	 * Note: Max length is 64 chars.
	 *
	 * @param string $url - A URL to encode.
	 *
	 * @return string - IDN encoded URL ( e.g. `http://é.com` will be encoded to `http://xn--9ca.com` ).
	 */
	public static function encode_idn_url( $url ) {
		return preg_replace_callback( '/(https?:\/\/)(.+)/', function ( $matches ) {
			// WP >= 6.2-alpha
			if ( class_exists( '\WpOrg\Requests\IdnaEncoder' ) ) {
				$class = \WpOrg\Requests\IdnaEncoder::class;
			} else {
				$class = \Requests_IDNAEncoder::class;
			}

			return $matches[1] . $class::encode( $matches[2] );
		}, $url );
	}

	/**
	 * Checks if a string ends with a given substring
	 *
	 * @param $haystack
	 * @param $needle
	 * @return bool
	 */
	public static function ends_with( $haystack, $needle ) {
		return substr( $haystack, -strlen( $needle ) ) === $needle;
	}
}

SILENT KILLER Tool