aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-02-21 22:31:57 +0000
committerRomain d'Alverny <rda@mageia.org>2012-02-21 22:31:57 +0000
commit2006bbe743a4623dedf9080581ddf10d1ec7ba1a (patch)
treea62310af4a66ef375d16d48aed7264535738a3df
parente7428ce8166419fc3f566786f4cdb7ed66fa34be (diff)
downloadwww-2006bbe743a4623dedf9080581ddf10d1ec7ba1a.tar
www-2006bbe743a4623dedf9080581ddf10d1ec7ba1a.tar.gz
www-2006bbe743a4623dedf9080581ddf10d1ec7ba1a.tar.bz2
www-2006bbe743a4623dedf9080581ddf10d1ec7ba1a.tar.xz
www-2006bbe743a4623dedf9080581ddf10d1ec7ba1a.zip
more tests
-rw-r--r--en/downloads/debug/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php
index 00ba3b39b..caca93827 100644
--- a/en/downloads/debug/index.php
+++ b/en/downloads/debug/index.php
@@ -18,7 +18,7 @@ else
echo '<html><body>';
-echo '<h3>Testing functions:</h3>';
+echo '<h3>testing geoip PHP functions:</h3>';
echo '<ul>';
foreach ($functions as $f) {
echo sprintf('<li>%s: %s available</li>',
@@ -28,7 +28,7 @@ echo '<li>DB version: ', geoip_database_info(), '</li>';
echo '</ul>';
-echo '<h3>Testing IP, country, continent</h3>';
+echo '<h3>using geoip PHP module</h3>';
foreach ($ips as $label => $ip) {
echo ' * ', $label, ': ', $ip, ' => ';
echo geoip_country_code_by_name($ip), ', ';
@@ -40,5 +40,8 @@ foreach ($ips as $label => $ip) {
echo implode(', ', geoip_record_by_name($ip));
echo "\n";
}
+echo '<h3>using mod_geoip</h3>';
+echo 'Country: ', apache_note("GEOIP_COUNTRY_CODE"), '<br>';
+echo 'Country name: ', apache_note("GEOIP_COUNTRY_NAME"), '<br>';
echo '----</pre></body></html>';