Parent Directory | Revision Log
Revision 1 - (view) (download)
1 : | ian | 1 | /* GeoIP module functions for AMX Mod X |
2 : | by David "BAILOPAN" Anderson | ||
3 : | (C)Copyrighted under the GNU General Public License, Version 2 | ||
4 : | */ | ||
5 : | |||
6 : | #if defined geoip_included | ||
7 : | #endinput | ||
8 : | #endif | ||
9 : | #define _geoip_included | ||
10 : | |||
11 : | #if AMXX_VERSION_NUM >= 175 | ||
12 : | #pragma reqlib geoip | ||
13 : | #if !defined AMXMODX_NOAUTOLOAD | ||
14 : | #pragma loadlib geoip | ||
15 : | #endif | ||
16 : | #else | ||
17 : | #pragma library geoip | ||
18 : | #endif | ||
19 : | |||
20 : | //IP address can contain ports, the ports will be stripped out | ||
21 : | |||
22 : | //get a two character country code (eg US, CA etc) | ||
23 : | native geoip_code2(const ip[], ccode[3]); | ||
24 : | |||
25 : | //get a three character country code (eg USA, cAN etc) | ||
26 : | native geoip_code3(const ip[], result[4]); | ||
27 : | |||
28 : | //get a full country name. max name is 45 chars | ||
29 : | native geoip_country(const ip[], result[], len=45); |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |