El 21 Feb 2006 02:48:00 -0800
dbee escribió:
But what I was wondering was whether anyone had built an add-on, that
would output points on a map or country flags instead of just text ?
bbclone(
http://bbclone.de/) uses for the same purpouses a kind of
database called ip2ext(you can download it separately from their
website) that basically translates from an ip to a country, and it's
working very well, but that database needs to be updated regularly.
It shouldn't be very difficult to adapt it for your own proyect. Just
as a quick tip, there's a function called
bbc_get_extension($host, $addr)
that will return the extension for that host/ip. So if you call it like
this:
$ext=bbc_get_extension('blbalbla.com','217.127.67. 100');
echo $ext
should print "es"(spain)
of course, I've just made a quick grep, so I could be completely wrong,
but I think it shouldn't be much more work than that.
they also have a huge collection of flags(bbclone is a webstat system),
that I think you can use in /images directory called ext_$extension.png
so following the previous example you could use:
echo "<img src=\"images/ext_$ext.png\" />";
to display the flag of the country.
hope that helps
--
Juan José Gutiérrez de Quevedo
Director Técnico (ju****@iteisa.com)
ITEISA (
http://www.iteisa.com)
942544036 - 637447953