aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads/debug
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-02-21 19:13:37 +0000
committerRomain d'Alverny <rda@mageia.org>2012-02-21 19:13:37 +0000
commit313de64af0d0dac543f0197ef1b79580f35ab220 (patch)
tree83acd01288753e959870827ac97ef776727c229d /en/downloads/debug
parent76418df88410e358da939faf08f3764fa4e7b887 (diff)
downloadwww-313de64af0d0dac543f0197ef1b79580f35ab220.tar
www-313de64af0d0dac543f0197ef1b79580f35ab220.tar.gz
www-313de64af0d0dac543f0197ef1b79580f35ab220.tar.bz2
www-313de64af0d0dac543f0197ef1b79580f35ab220.tar.xz
www-313de64af0d0dac543f0197ef1b79580f35ab220.zip
more debug output
Diffstat (limited to 'en/downloads/debug')
-rw-r--r--en/downloads/debug/index.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php
index c93ddfaeb..00ba3b39b 100644
--- a/en/downloads/debug/index.php
+++ b/en/downloads/debug/index.php
@@ -24,13 +24,21 @@ foreach ($functions as $f) {
echo sprintf('<li>%s: %s available</li>',
$f, function_exists($f) ? 'is' : 'is not');
}
+echo '<li>DB version: ', geoip_database_info(), '</li>';
+
echo '</ul>';
echo '<h3>Testing IP, country, continent</h3>';
foreach ($ips as $label => $ip) {
echo ' * ', $label, ': ', $ip, ' => ';
echo geoip_country_code_by_name($ip), ', ';
- echo geoip_continent_code_by_name($ip), "\n";
+ echo geoip_continent_code_by_name($ip), ', ';
+ echo geoip_record_by_name($ip), ', ';
+ echo geoip_id_by_name($ip), ', '; // GEOIP_UNKNOWN_SPEED GEOIP_DIALUP_SPEED GEOIP_CABLEDSL_SPEED GEOIP_CORPORATE_SPEED
+ echo geoip_isp_by_name($ip), ', ';
+ echo geoip_org_by_name($ip), ', ';
+ echo implode(', ', geoip_record_by_name($ip));
+ echo "\n";
}
echo '----</pre></body></html>';