62,27 → 62,6 |
} |
} |
|
#maximum length for top-level DNS |
function max_tld() |
{ |
$url_tld = "http://data.iana.org/TLD/tlds-alpha-by-domain.txt"; |
$result_tld = file_get_contents($url_tld,false); |
$max_tld = 18; #valeur de base si le site ne répond plus |
if($result_tld !== FALSE){ |
foreach(explode("\n", $result_tld) as $line) |
{ |
if((strpos($line,'-') === false) and (strpos($line,'#') === false)) |
{ |
if(strlen($line) > $max_tld) |
{ |
$max_tld = strlen($line); |
} |
} |
} |
} |
return $max_tld; |
} |
|
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){ |