Just a quick note for anyone pondering about updates. MaxMind has, as I'm sure you're aware, updated their database format and PHP API. While getting to grips with these updates will obviously be of benefit in the longer term, there is a stop-gap measure for compatibility with existing IpToCountry UT configurations.
If you grab an (apparently more recent) copy of "geoip.inc" from
here, you can then get a recent copy of the IP database from various websites. These databases have been converted to work with the "legacy" API, so they'll function correctly with the UT IpToCountry setup.
I've used one from
here -> grab the "IPv4" item from the "Maxmind - Country" category, extract the gzipped file (7zip will do this for you, for example), and then rename the file "GeoIP.dat" and upload it to your host. Another source is
this website (the GeoIP.dat.gz file), which has an even more up-to-date copy, but I haven't tested whether this is equally compatible.
The only other thing I had to change (after switching web hosts to a provider running PHP8, which has much stricter type-checking compared to PHP5.6 on our previous host) was a line near the top of "iptocountry16.php":
Code:
FROM:
$timestamp = mktime(gmdate("H, i, s, m, d, Y")); // UTC time
TO:
$timestamp = mktime(time()); // UTC time
With these changes, we're now running with a nicely contemporary set of IP data again.