diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-02-21 23:04:10 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-02-21 23:04:10 +0000 |
commit | 09728f52801d2cbb1bf7aaa2d82c622750bdc1f3 (patch) | |
tree | ffbe80d91594702e49b18cce828f0883a0989842 /en | |
parent | 9b749e073b46d43414106ca261d98ae01b9c0820 (diff) | |
download | www-09728f52801d2cbb1bf7aaa2d82c622750bdc1f3.tar www-09728f52801d2cbb1bf7aaa2d82c622750bdc1f3.tar.gz www-09728f52801d2cbb1bf7aaa2d82c622750bdc1f3.tar.bz2 www-09728f52801d2cbb1bf7aaa2d82c622750bdc1f3.tar.xz www-09728f52801d2cbb1bf7aaa2d82c622750bdc1f3.zip |
typo
Diffstat (limited to 'en')
-rw-r--r-- | en/downloads/debug/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php index 015488c5d..35c8e47f0 100644 --- a/en/downloads/debug/index.php +++ b/en/downloads/debug/index.php @@ -53,13 +53,15 @@ echo 'Country: ', apache_note("GEOIP_COUNTRY_CODE"), '<br>'; echo 'Country name: ', apache_note("GEOIP_COUNTRY_NAME"), '<br>'; echo '<h3>using mga wrapper around MaxMind library</h3>'; -include realpath(__DIR__ . '/../../../lib/mga_geoip.php'); +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); + echo $country, ', '; $C = mga_geoip_continent_by_country($country); - echo '<li>', $label, ': ', $ip, ' => ', $country, ', ', $C, '</li>'; + echo $C, '</li>'; } echo '</ul>'; |