Commit Graph

156 Commits

Author SHA1 Message Date
Arkshine
181cbae74c Use upstream AMTL as a submodule 2015-03-09 22:53:58 +01:00
Arkshine
e95d5ed43c Cleanup some code from previous commits 2015-02-08 11:23:54 +01:00
HttrckCldHKS
780ce669d0 >> RENAMED maxminddb.cpp (FILTERS)
RENAMED maxminddb.cpp TO maxminddb.c (FILTERS)
2015-02-07 18:42:01 -08:00
HttrckCldHKS
47b5ff9a93 >> FIXED lookupString() LENGTH ISSUE
In (const char *) lookupString() :
For (const char *) NULL result :

Length must be ZERO, if defined.
2015-02-07 18:40:52 -08:00
HttrckCldHKS
2bc6ced671 >> RENAMED maxminddb.cpp (MAKEFILE)
RENAMED maxminddb.cpp TO maxminddb.c (MAKEFILE)
2015-02-07 18:39:21 -08:00
HttrckCldHKS
83c0789246 >> RENAMED maxminddb.cpp (VCXPROJ)
>> RENAMED maxminddb.cpp TO maxminddb.c (VCXPROJ)
2015-02-07 18:34:46 -08:00
Arkshine
34de3964e6 More cleanup 2015-02-07 16:33:48 +01:00
Arkshine
5241fdf673 Add geoip_country_ex, mark geoip_country as deprecated, and do some cleanup 2015-02-07 16:26:40 +01:00
Arkshine
51adb7385c Fix a compatibility issue with geoip_country native 2015-02-06 23:25:26 +01:00
Vincent Herbet
7f9d677f89 Merge pull request #178 from Arkshine/feature/update-libmaxminddb-1.0.4
Geoip: Update libmaxminddb to 1.0.4
2015-01-14 12:48:44 +01:00
Arkshine
314f2ec568 Geoip: Fix linux compilation 2015-01-14 12:37:43 +01:00
Arkshine
f09f4a4c6c Geoip: Remove previous C99 compatibility changes with v100
Since we're compiling against v120_xp now, C99 is supported, which makes the previous compatibility changes pointless.
This reverts to the state of the original content.
For maintainability reason, it's welcomed.

For reference, the only change now is the moving of PACKAGE_VERSION define to be available for linux too (since we don't use configure.ac)
2015-01-14 12:35:04 +01:00
Arkshine
dd9975cd67 Rename msvc10 directories to msvc12 2015-01-14 10:31:33 +01:00
Arkshine
97369c5d6c Upgrade VS projetcs to use v120_xp toolset and fix missing include paths 2015-01-14 10:25:46 +01:00
Arkshine
16874378f1 Geoip: Update libmaxminddb to 1.0.4 2015-01-12 00:00:31 +01:00
Arkshine
b4399f42da Geoip: Move C99 headers in its own directory 2015-01-11 16:08:52 +01:00
Arkshine
539823f565 Keep geoip_country backward compatible after #99 2015-01-10 14:07:51 +01:00
Vincent Herbet
4a3fcdb937 Merge pull request #171 from Arkshine/fix/geoip-invalid-memory
Geoip: Fix possible crash
2015-01-08 10:37:36 +01:00
Arkshine
a543db5dc6 Geoip: Fix possible crash 2015-01-06 22:36:14 +01:00
Arkshine
8443a836aa Add the actual version.rc file for all modules 2014-12-08 01:44:51 +01:00
Arkshine
f5e23903a2 Add version.rc in AMBuilder for all modules 2014-12-08 01:44:27 +01:00
Arkshine
291a33ce65 Update moduleconfig.h for all modules 2014-12-08 01:43:33 +01:00
HttrckCldHKS
e08e140c3c Fixed Switch Statement
Fixed Switch Statement.
2014-10-18 10:10:09 -07:00
Arkshine
d9efe61030 Fix typo in #99 (reported by Hattrick) 2014-09-18 19:24:37 +02:00
Arkshine
4f776ee56b Update geoip module project files. 2014-08-09 20:59:21 +02:00
Vincent Herbet
570c9cfc6b Merge pull request #110 from Arkshine/replace-more-snprintf
Replace more snprintf by UTIL_Format.
2014-08-08 20:38:38 +02:00
Arkshine
62eac5d91c Replace _snprintf too. 2014-08-08 13:23:38 +02:00
Arkshine
b47aa6871d Replace more snprintf by UTIL_Format. 2014-08-08 12:47:15 +02:00
Arkshine
eeb4ecd109 Update project files. 2014-08-08 11:27:40 +02:00
Arkshine
023c1e3baf Geoip: Fix missing continent id and fix indentation. 2014-08-05 23:00:00 +02:00
Arkshine
adde73123f Geoip: Update license headers.
Hope this won't break merging.
2014-08-05 20:14:22 +02:00
Arkshine
178608c5f8 Geoip: Make some natives UTF-8 safe. 2014-08-05 20:12:26 +02:00
Arkshine
6babcafbec Geoip: Add a fallback to default language (en) in case of unsuccessful lookup with user's language. 2014-08-05 20:12:24 +02:00
Arkshine
ec3ff1deb9 Geoip: Add command to get database metadata and to dump all data of an IP address for debugging purposes.
And for some reason some project files were not pushed.
2014-08-05 20:12:23 +02:00
Arkshine
67bfe6bb36 Geoip: Fix possible buffer overflow. 2014-08-05 20:12:21 +02:00
Arkshine
674600bab2 Geoip: Reorganize and update project files. 2014-08-05 20:11:31 +02:00
Arkshine
52543481dd Geoip: Increase buffer and fix potential overflow crash. 2014-08-05 20:09:18 +02:00
Arkshine
d2ed9e70cd Geoip: Add an optional parameter in some natves to get a result in player's language.
This is new with Geoip2 database where some entries, like country, city, etc, are translated in several languages.
So far: de, en, es, fr, ru, pt-BR, zh-CN.
2014-08-05 20:09:16 +02:00
Arkshine
210cba53b9 Geoip: Fix stripPort typo. 2014-08-05 20:08:31 +02:00
Arkshine
abaee9f4a3 Geoip: Add geoip_continent_name() native. 2014-08-05 20:08:30 +02:00
Arkshine
fc19f53ea9 Geoip: Add geoip_continent_code() native. 2014-08-05 20:08:28 +02:00
Arkshine
81d56dfdc0 Geoip: Add geoip_distance() native. 2014-08-05 20:08:27 +02:00
Arkshine
6941e406f4 Geoip: Add geoip_latitude() and geoip_longitude() natives. 2014-08-05 20:08:25 +02:00
Arkshine
b439753ac5 Geoip: Add geoip_timezone() native. 2014-08-05 20:08:24 +02:00
Arkshine
c11f721ad4 Geoip: Add geoip_region_name() native. 2014-08-05 20:08:22 +02:00
Arkshine
b61ed9fa3e Geoip: Add geoip_region_code() native. 2014-08-05 20:08:20 +02:00
Arkshine
95bc1703a6 Geoip: Add geoip_city() native. 2014-08-05 20:08:19 +02:00
Arkshine
0d59209e4c Geoip: Replace GeoIP.dat by GeoLite2-Country.mmdb. 2014-08-05 20:08:17 +02:00
Arkshine
7dd1ea3719 Geoip: Convert code to libmaxminddb API. 2014-08-05 20:08:16 +02:00
Arkshine
9d59de41a2 Geoip: Fix compilation #4. 2014-08-05 20:07:10 +02:00