| Server IP : www.new.bangkokfinder.com / Your IP : 162.158.88.106 Web Server : nginx/1.20.1 System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64 User : bangkokfinder ( 1000) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bangkokfinder/www/wp-content/plugins/cloudflare/src/ |
Upload File : |
<?php
namespace Cloudflare\APO;
use Cloudflare\APO\Vendor\Symfony\Polyfill\Intl\Idn as p;
if ( ! defined( 'IDNA_DEFAULT' ) ) {
define( 'IDNA_DEFAULT', 0 );
}
if ( ! defined( 'INTL_IDNA_VARIANT_UTS46' ) ) {
define( 'INTL_IDNA_VARIANT_UTS46', 1 );
}
/**
* Helper class for environments that do not have the intl extension installed.
* When the intl extension is no installed, the functions will use the symfony/polyfill-intl-idn package.
*/
class IntlUtil {
/**
* Wrapper for idn_to_ascii
*
* @param mixed $domain
* @param mixed $flags
* @param mixed $variant
* @param mixed $idna_info
* @return string|bool
*/
public static function idn_to_ascii( $domain, $flags = IDNA_DEFAULT, $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = null ) {
if ( function_exists( 'idn_to_ascii' ) ) {
return idn_to_ascii( $domain, $flags, $variant, $idna_info );
} else {
return p\Idn::idn_to_ascii( $domain, $flags, $variant, $idna_info );
}
}
/**
* Wrapper for idn_to_utf8
*
* @param mixed $domain
* @param mixed $flags
* @param mixed $variant
* @param mixed $idna_info
* @return bool|string
*/
public static function idn_to_utf8( $domain, $flags = IDNA_DEFAULT, $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = null ) {
if ( function_exists( 'idn_to_utf8' ) ) {
return idn_to_utf8( $domain, $flags, $variant, $idna_info );
} else {
return p\Idn::idn_to_utf8( $domain, $flags, $variant, $idna_info );
}
}
}