b0563a493c
* Add support for Maxmind GeoIP2 database files (#913). * Copy/paste error. * Mark GeoipCode3 as deprecated. * Fix build when compiling with AMBuild. * Replace loose libmaxminddb files with submodule. * Fix Linux build. * One more hack for submodule. * Actually fix Linux build. * GeoIP2 extension to sourcemod * Update basevotes When a player leaves during a voteban, he will be banned anyway. Also added a cvar with a ban time setting. * Update basevotes.sp * Update AMBuilder * ke::AString to std::string * Update extension.cpp * Update AMBuilder * Added coordination natives Added GeoipLatitude, GeoipLongitude, GeoipDistance natives. * Create osdefs.h * Update maxminddb_config.h * Update extension.cpp * Update extension.cpp * Added automatic search for database file * Fix automatic search for database file * Update extension.cpp * Update geoip.inc * .gitmodules revert * Update geoip.inc * Update libmaxminddb to version 1.5.2 * Update extension.cpp * Check language in the DB * Removed langCount variable * Determination of the client's language * Update geoip.inc * Update geoip.inc * Update extension.cpp * Update geoip.inc * Update extension.cpp * space instead of tab in .inc * Update extension.cpp * Update geoip.inc * Optimizing length measurement region code * Update package script to fetch the new GeoLite2 database This package is the last CC-BY-SA licensed GeoLite2-City database extracted from https://src.fedoraproject.org/rpms/geolite2 from december 2019. This doubles the download size for SM packages, but it's what we have to deal with atm :( * Fix potentially returning uninitialized memory in GeoipRegionCode If the lookup failed, we'd copy back whatever is on the stack in the ccode buffer. Co-authored-by: Nick Hastings <nshastings@gmail.com> Co-authored-by: Headline <michaelwflaherty@me.com> Co-authored-by: Accelerator74 <dmitry@447751-accele74.tmweb.ru> Co-authored-by: Peace-Maker <peace-maker@wcfan.de>
71 lines
2.7 KiB
C++
71 lines
2.7 KiB
C++
/**
|
|
* vim: set ts=4 :
|
|
* =============================================================================
|
|
* SourceMod GeoIP Extension
|
|
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
* =============================================================================
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
* Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
* this exception to all derivative works. AlliedModders LLC defines further
|
|
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
* or <http://www.sourcemod.net/license.php>.
|
|
*
|
|
* Version: $Id$
|
|
*/
|
|
|
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
|
|
|
/**
|
|
* @file smsdk_config.h
|
|
* @brief Contains macros for configuring basic extension information.
|
|
*/
|
|
|
|
/* Basic information exposed publicly */
|
|
#define SMEXT_CONF_NAME "GeoIP"
|
|
#define SMEXT_CONF_DESCRIPTION "Geographical IP information"
|
|
#define SMEXT_CONF_VERSION ""
|
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
|
#define SMEXT_CONF_LOGTAG "GEOIP"
|
|
#define SMEXT_CONF_LICENSE "GPL"
|
|
#define SMEXT_CONF_DATESTRING ""
|
|
|
|
/**
|
|
* @brief Exposes plugin's main interface.
|
|
*/
|
|
#define SMEXT_LINK(name) SDKExtension *g_pExtensionIface = name;
|
|
|
|
/**
|
|
* @brief Sets whether or not this plugin required Metamod.
|
|
* NOTE: Uncomment to enable, comment to disable.
|
|
*/
|
|
//#define SMEXT_CONF_METAMOD
|
|
|
|
/** Enable interfaces you want to use here by uncommenting lines */
|
|
//#define SMEXT_ENABLE_FORWARDSYS
|
|
//#define SMEXT_ENABLE_HANDLESYS
|
|
#define SMEXT_ENABLE_PLAYERHELPERS
|
|
//#define SMEXT_ENABLE_DBMANAGER
|
|
//#define SMEXT_ENABLE_GAMECONF
|
|
#define SMEXT_ENABLE_LIBSYS
|
|
#define SMEXT_ENABLE_TRANSLATOR
|
|
|
|
#endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|