/** * Return a pretty provider name for a given domain name * * @param string $in hostname * @return string Real ISP name, IP (if IP address didn't resolve), or Unknown */ function getPrettyProviderName($in) { $providerName = getHostnameName($in); $prettyNames = Common::getProviderNames(); if (is_array($prettyNames) && array_key_exists(strtolower($providerName), $prettyNames)) { $providerName = $prettyNames[strtolower($providerName)]; } return $providerName; }