GRAYBYTE WORDPRESS FILE MANAGER4222

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/elementor/core/utils/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.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;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:27
giriqfky / giriqfky
0755
import-export
--
July 10 2025 04:32:27
giriqfky / giriqfky
0755
promotions
--
July 10 2025 04:32:27
giriqfky / giriqfky
0755
svg
--
July 10 2025 04:32:27
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:27
giriqfky / giriqfky
0644
assets-config-provider.php
1.486 KB
August 23 2023 17:47:32
giriqfky / giriqfky
0644
assets-translation-loader.php
2.5 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
collection.php
9.879 KB
April 28 2025 11:15:16
giriqfky / giriqfky
0644
exceptions.php
0.692 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
force-locale.php
3.555 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
hints.php
10.26 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
http.php
0.958 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
isolation-manager.php
0.405 KB
December 19 2024 15:59:46
giriqfky / giriqfky
0644
plugins-manager.php
2.84 KB
April 28 2025 11:15:16
giriqfky / giriqfky
0644
static-collection.php
1.085 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
str.php
0.978 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
version.php
3.661 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF