diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-02-21 18:45:05 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-02-21 18:45:05 +0000 |
commit | 44cf7414a3c0f5f146658ec51bbfc6284b745aa7 (patch) | |
tree | 4213af936bb66e4c9a8c3af7dd18665e43164ccc /en/downloads | |
parent | 2013377a19263013aa83c1cefc76ef1b674b231d (diff) | |
download | www-44cf7414a3c0f5f146658ec51bbfc6284b745aa7.tar www-44cf7414a3c0f5f146658ec51bbfc6284b745aa7.tar.gz www-44cf7414a3c0f5f146658ec51bbfc6284b745aa7.tar.bz2 www-44cf7414a3c0f5f146658ec51bbfc6284b745aa7.tar.xz www-44cf7414a3c0f5f146658ec51bbfc6284b745aa7.zip |
better output
Diffstat (limited to 'en/downloads')
-rw-r--r-- | en/downloads/debug/index.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php index c540523d7..c9d5f1d30 100644 --- a/en/downloads/debug/index.php +++ b/en/downloads/debug/index.php @@ -12,10 +12,18 @@ if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) else $ips['ip'] = $_SERVER['REMOTE_ADDR']; -echo '<ul>'; +$s = ''; foreach ($ips as $label => $ip) { - echo sprintf('<li>%s is in %s, %s</li>', + $s .= sprintf('<li>%s is in %s, %s</li>', @geoip_country_code_by_name($ip), @geoip_continent_code_by_name($ip)); } +echo <<<S +<html><body> +<h1>Testing your IP, country, continent.</h1> +<ul>$s</ul> +<hr> +</body></html> +S; + |