- Extends
- Mutator
- Modifiers
- config
UTAN Ban Manager v1.04
Core.Object
|
+-- Engine.Actor
|
+-- Engine.Info
|
+-- Engine.Mutator
|
+-- UTANBanManager104.MutUTAN
Enumerations Summary |
ELogLevel LL_Status,
LL_DumpBans,
LL_Update,
LL_Message,
LL_Warning,
LL_Kick,
LL_ExternalKick,
LL_Error |
Structures Summary |
CIDR IP, Prefix |
IPBan Index, IP |
TListEntry ID, GUID, IP, bIsRemote, bIsExclude, bIsCheater, bIsDisabled, HashNext |
TQueuedPlayerData PlayerName, PlayerGUID, PlayerIP |
Inherited Functions from Engine.Mutator |
AddMutator, AlwaysKeep, CanEnterVehicle, CanLeaveVehicle, CheckRelevance, CheckReplacement, Destroyed, DriverEnteredVehicle, DriverLeftVehicle, GetDefaultWeapon, GetInventoryClass, GetInventoryClassOverride, GetServerDetails, GetServerPlayers, IsRelevant, ModifyLogin, ModifyPlayer, Mutate, MutatorFillPlayInfo, MutatorIsAllowed, MyDefaultWeapon, NewRecommendCombo, NotifyLogout, OverrideDownload, ParseChatPercVar, PlayerChangedClass, PreBeginPlay, RecommendCombo, ReplaceWith, ServerTraveling |
const HASH_SIZE = 2048;
var private config string AppealContactInfo;
var private config string BanDatabaseName;
var private localized string BanMessage;
var private localized string BanMessageGUID;
var private localized string BanMessageIP;
var array<
IPBan> BannedIPs;
bForceCreateDatabaseFile Source code
var private config bool bForceCreateDatabaseFile;
var private config bool bGetFreshList;
var bool bLogFileOpened;
var bool bLogFileSaved;
bReceivedInitialUpdate Source code
var bool bReceivedInitialUpdate;
var private config bool bSendNamesAsUTF8;
var private config bool bShowInServerName;
var private config bool bStoreDatabaseInINI;
var private config bool bTrackPlayerJoins;
var string CurrentLogFileName;
var array<string> DelayedLogs;
var localized string descAppealContactInfo;
var localized string descBanDatabaseName;
descForceCreateDatabaseFile Source code
var localized string descForceCreateDatabaseFile;
var localized string descGetFreshList;
var localized string descLogFileNameMask;
var localized string descLogFileTimeStamp;
descMasterserverAuthPass Source code
var localized string descMasterserverAuthPass;
descMasterserverAuthUser Source code
var localized string descMasterserverAuthUser;
var localized string descMasterserverHost;
var localized string descMasterserverPort;
descMasterserverTrackURL Source code
var localized string descMasterserverTrackURL;
descMasterserverUpdateURL Source code
var localized string descMasterserverUpdateURL;
var localized string descSendNamesAsUTF8;
var localized string descShowInServerName;
descStoreDatabaseInINI Source code
var localized string descStoreDatabaseInINI;
var localized string descTrackPlayerJoins;
ExcludesHash[HASH_SIZE] Source code
var int ExcludesHash[HASH_SIZE];
var int GUIDsHash[HASH_SIZE];
var float LastLogSaveTime;
var float LastLogWriteTime;
var localized string lblAppealContactInfo;
var localized string lblBanDatabaseName;
lblForceCreateDatabaseFile Source code
var localized string lblForceCreateDatabaseFile;
var localized string lblGetFreshList;
var localized string lblLogFileNameMask;
var localized string lblLogFileTimeStamp;
lblMasterserverAuthPass Source code
var localized string lblMasterserverAuthPass;
lblMasterserverAuthUser Source code
var localized string lblMasterserverAuthUser;
var localized string lblMasterserverHost;
var localized string lblMasterserverPort;
lblMasterserverTrackURL Source code
var localized string lblMasterserverTrackURL;
lblMasterserverUpdateURL Source code
var localized string lblMasterserverUpdateURL;
var localized string lblSendNamesAsUTF8;
var localized string lblShowInServerName;
var localized string lblStoreDatabaseInINI;
var localized string lblTrackPlayerJoins;
var private config string LogFileNameMask;
var private config string LogFileTimeStamp;
var private config string MasterserverAuthPass;
var private config string MasterserverAuthUser;
var private config string MasterserverHost;
var private config int MasterserverPort;
var private config string MasterserverTrackURL;
var private config string MasterserverUpdateURL;
var string MatchStartTime;
UTAN
var(UTAN) noexport const editconst string Build;
var(UTAN) noexport const editconst string Copyright;
enum
ELogLevel
{
LL_Status,
LL_DumpBans,
LL_Update,
LL_Message,
LL_Warning,
LL_Kick,
LL_ExternalKick,
LL_Error
};
struct
CIDR
{
var int IP;
var byte Prefix;
};
struct
TListEntry
{
var bool bIsCheater;
var bool bIsDisabled;
var bool bIsExclude;
var bool bIsRemote;
var GUID GUID;
var int HashNext;
var int ID;
var CIDR IP;
};
struct
TQueuedPlayerData
{
var string PlayerGUID;
var string PlayerIP;
var string PlayerName;
};
static final operator
bool < (
GUID A,
GUID B) )
static final preoperator
int < (
CIDR A) )
static final preoperator
int > (
CIDR A) )
static final function string CharToUTF8 ( int Code) )
static final function
string CidrToString (
CIDR IP) )
function CompactIPBans ( ) )
protected function string FillMaskValues ( string str) )
function int FindIPBan ( int IP) )
function string GetAdminContact ( ) )
function array<string> GetCurrentLog ( optional out string LogFileName, optional out string StartTime) )
static event string GetDescriptionText ( string PropName) )
protected function string GetServerIP ( ) )
static function string GetVersionString ( optional bool bNoBuild) )
static final function
string GuidToString (
GUID ID) )
function HashBan ( int Index) )
static final function
int HashGUID (
GUID g) )
static final function int HexToInt ( string HexNumber) )
static final function string IntToHex ( int i) )
static final function string IpToString ( int IP) )
function LogLine (
string Text,
ELogLevel LogLevel) )
protected function OpenLog ( ) )
static final function string Plural ( string Word, int Num) )
event PostBeginPlay ( ) )
function ProcessDatabaseUpdate ( ) )
function RecheckForUTANBans ( ) )
static final function
CIDR StringToCidr (
string IP) )
static final function
GUID StringToGuid (
string ID) )
static final function int StringToIP ( string IP) )
static function string StripInvalidChars ( string PlayerName) )
event Tick ( float DeltaTime) )
event Timer ( ) )
static final function string URLEncode ( coerce string InputString, bool bEncodeAsUTF8) )
static final function string UTF8Encode ( string str) )
static final operator
bool ~= (
CIDR A,
int B) )
static final operator
bool ~= (
CIDR A,
CIDR B) )
defaultproperties
{
Build="%%%%-%%-%% %%:%%"
Copyright="Copyright (c) 2003-2006 UTAN, 2009-2011 Wormbo"
FriendlyName = "UTAN Ban Manager v1.04"
Description = "The UTAN Ban Manager enforces bans stored in a special ban database.|This version can either load ban updates from a UTAN-compatible masterserver, or rely upon the UTAN Ban List Editor (UBLE) to modify the binary ban database file directly, or load bans from an INI file that can be edited manually with any plain text editor."
bAlwaysTick = True
DefaultBan = (ID=1,GUID=(A=850354575,B=1000468354,C=1694031599,D=-1829262653),bIsDisabled=True)
BanDatabaseName = ""
bStoreDatabaseInINI = True
LogFileNameMask = "UTAN_%i_%p_%y-%m-%d_%h-%n-%s_%g_%l"
LogFileTimeStamp = "[%y-%m-%d %h:%n:%s] -"
bShowInServerName = False
AppealContactInfo = "contact %%admin%%"
MasterserverHost = ""
MasterserverPort = 80
MasterserverAuthUser = ""
MasterserverAuthPass = ""
MasterserverUpdateURL = "/utanupdate.php"
MasterserverTrackURL = "/utantrack.php"
bTrackPlayerJoins = True
bSendNamesAsUTF8 = True
lblBanDatabaseName = "Ban database name"
lblForceCreateDatabaseFile = "Force creation of ban database"
lblStoreDatabaseInINI = "Store database in INI"
lblLogFileNameMask = "Log file name mask"
lblLogFileTimeStamp = "Time stamp mask"
lblShowInServerName = "Show in server name"
lblAppealContactInfo = "Appeal contact info"
lblMasterserverHost = "Masterserver host name or IP"
lblMasterserverPort = "Masterserver port number"
lblMasterserverAuthUser = "Masterserver auth username"
lblMasterserverAuthPass = "Masterserver auth password"
lblMasterserverUpdateURL = "Masterserver update URL"
lblMasterserverTrackURL = "Masterserver tracker URL"
lblTrackPlayerJoins = "Track player joins"
lblGetFreshList = "Get fresh ban list"
lblSendNamesAsUTF8 = "Send data as UTF-8"
descBanDatabaseName = "The package/INI name to use for the ban data base. Only change this if you run multiple servers from the same directory."
descForceCreateDatabaseFile = "If the ban database file does not exist yet, create a new file for the empty database at map change. (turns off automatically)"
descStoreDatabaseInINI = "Store the ban database as text in a separate INI file. An INI file will be considerably larger than a binary database file, but can be edited with a simple text editor."
descLogFileNameMask = "A mask for the log file name. %y=year, %m=month, %d=day, %h=hour (include am or pm for 12 hours format), %n=minute, %s=second, %i=IP, %p=port, %g=gametype, %l=level"
descLogFileTimeStamp = "A mask for the log file name. %y=year, %m=month, %d=day, %h=hour (include am or pm for 12 hours format), %n=minute, %s=second"
descShowInServerName = "Add the [UTAN] tag to the server name."
descAppealContactInfo = "Banned players see 'Please <AppealContactInfo> for details about this ban', with %%admin%% being replaced by the server admin name and email."
descMasterserverHost = "The host name or IP of a HTTP server to load ban list updates from and send player tracking data to. Leave empty to disable remote updating."
descMasterserverPort = "The port at which the HTTP server is listening for ban list requests."
descMasterserverAuthUser = "The user name for HTTP authentification at the masterserver, if required."
descMasterserverAuthPass = "The password for HTTP authentification at the masterserver, if required."
descMasterserverUpdateURL = "The URL to request initial ban list updates from."
descMasterserverTrackURL = "The URL to send player tracking data to."
descTrackPlayerJoins = "Whether to send player tracking data to the masterserver."
descGetFreshList = "Request a fresh ban list instead of only the diff on next update. (automatically unchecked after receiving a fresh list)"
descSendNamesAsUTF8 = "Encode player names as UTF-8 instead of ISO-8859-1."
BanMessage = "Your %%idtype%% matches ban #%%id%%.||Please %%contact%% for details about this ban, providing your GUID (%%guid%%), IP (%%ip%%) and the ban number.||"
BanMessageIP = "IP"
BanMessageGUID = "GUID"
}
|
Creation time: Sa 23.8.2014 09:18:21.869 - Created with
UnCodeX