diff options
-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>'; |