aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-02-21 18:57:35 +0000
committerRomain d'Alverny <rda@mageia.org>2012-02-21 18:57:35 +0000
commitc5b6c37c7f09116ef1784a04144c7f46f21f0ccf (patch)
tree0eb294b58dc5f2e03037a22ba0394c71f27fb6aa /en/downloads
parent352e5cbec17adad7710006688e01fa9984e26604 (diff)
downloadwww-c5b6c37c7f09116ef1784a04144c7f46f21f0ccf.tar
www-c5b6c37c7f09116ef1784a04144c7f46f21f0ccf.tar.gz
www-c5b6c37c7f09116ef1784a04144c7f46f21f0ccf.tar.bz2
www-c5b6c37c7f09116ef1784a04144c7f46f21f0ccf.tar.xz
www-c5b6c37c7f09116ef1784a04144c7f46f21f0ccf.zip
other layout *sigh*
Diffstat (limited to 'en/downloads')
-rw-r--r--en/downloads/debug/index.php19
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>';