aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-02-21 23:12:03 +0000
committerRomain d'Alverny <rda@mageia.org>2012-02-21 23:12:03 +0000
commit0f0b921f2ab9a1578066d18ea9b93ee13474a0f7 (patch)
tree0d78a677cdd7946ea04d48eab782bb0256d06334
parent5416b74173ef12f2cdb33bc55f7737fd3147959f (diff)
downloadwww-0f0b921f2ab9a1578066d18ea9b93ee13474a0f7.tar
www-0f0b921f2ab9a1578066d18ea9b93ee13474a0f7.tar.gz
www-0f0b921f2ab9a1578066d18ea9b93ee13474a0f7.tar.bz2
www-0f0b921f2ab9a1578066d18ea9b93ee13474a0f7.tar.xz
www-0f0b921f2ab9a1578066d18ea9b93ee13474a0f7.zip
test updates
-rw-r--r--en/downloads/debug/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php
index 35c8e47f0..0edc7a895 100644
--- a/en/downloads/debug/index.php
+++ b/en/downloads/debug/index.php
@@ -17,6 +17,10 @@ if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])
else
$ips['ip'] = $_SERVER['REMOTE_ADDR'];
+$ips = array(
+ 'ip' => '2a01:e35:8a03:9990:223:dfff:fe7e:e7f0'
+);
+
echo '<html><body>';
echo '<h3>IP addresses</h3>';
@@ -58,7 +62,7 @@ require realpath(__DIR__ . '/../../../lib/mga_geoip.php');
echo '<ul>';
foreach ($ips as $label => $ip) {
echo '<li>', $label, ': ', $ip, ' => ';
- $country = mga_geoip_country_by_ip($ip);
+ $country = mga_geoip_country_by_ip($ip, false);
echo $country, ', ';
$C = mga_geoip_continent_by_country($country);
echo $C, '</li>';