diff options
-rw-r--r-- | en/downloads/debug/index.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php index c49310917..e5add963b 100644 --- a/en/downloads/debug/index.php +++ b/en/downloads/debug/index.php @@ -12,18 +12,13 @@ if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) else $ips['ip'] = $_SERVER['REMOTE_ADDR']; -$s = ''; +echo '<html><body><pre>Testing IP, country, continent', + "\n------------------------------\n\n"; + foreach ($ips as $label => $ip) { - $s .= sprintf('<li>%s is in %s, %s</li>', - geoip_country_code_by_name($ip), - geoip_continent_code_by_name($ip)); + echo ' * ', $label, ': ', $ip, ' => '; + echo geoip_country_code_by_name($ip), ', '; + echo geoip_continent_code_by_name($ip), "\n"; } -echo <<<S -<html><body> -<h1>Testing your IP, country, continent.</h1> -<ul>$s</ul> -<hr> -</body></html> -S; - +echo '----</pre></body></html>'; |