| Server IP : 130.225.57.55 / Your IP : 216.73.216.60 Web Server : Apache System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /srv/www/reco2st.eu/https/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Cdnfsd_Util.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Cdnfsd_Util
*/
class Cdnfsd_Util {
/**
* Engine name retrieval.
*
* @param string $w3tc_engine The name of the engine to retrieve.
*
* @return string The name of the engine.
*/
public static function engine_name( $w3tc_engine ) {
return $w3tc_engine;
}
/**
* Get suggested home IP address.
*
* @return string The resolved IP address or an empty string if it resolves to a local IP.
*/
public static function get_suggested_home_ip() {
$ip = gethostbyname( Util_Environment::home_url_host() );
// check if it resolves to local IP, means host cant know its real IP.
if (
'127.' === substr( $ip, 0, 4 ) ||
'10.' === substr( $ip, 0, 3 ) ||
'192.168.' === substr( $ip, 0, 8 )
) {
return '';
}
return $ip;
}
}