###############################################################################
# ABOUT                                                                       #
###############################################################################

This is a pre-release patch for UTStats 4.2.9, it contains new features and bug
fixes that are hardly tested and is released for testing purposes only. It's
even possible the database created with this version is incompatible with
future versions.

For these reasons I do not recommend putting this file on any third party sites
A new and more thouroughly tested release will be out in a few days so have
some patience.

This patch contains the following updates:
Added:
- CTF Flag capture events
- Assault events
- Recent matches on frontpage
- BT lagtime on mappage
- BT Fastest Captures sorting
- Chatlogs (requires Lin-WinChatLogger-V102 or similar)
- Import over sftp
- Import with curl
- Extra player id (configurable)
- Search on extra id
- Player merging by extra id
- Extra server configuration checks

Bug Fixes:
- Fixed import table creation
- Fixed LMS ttl
- Fixed BT captime rankings
- Instagib recognition for accugib

###############################################################################
# Requirements                                                                #
###############################################################################

- php5-curl (optional, for libcurl use only)
  See http://curl.haxx.se/libcurl/php/ for details, php5-curl might allready be
  installed or can be installed with your favourite package manager.

  In Ubuntu sftp might not be build in, see the bug report for details:
  https://bugs.launchpad.net/ubuntu/+source/curl/+bug/311029

- authenticated remote host (optional, for libcurl use only)
  cURL checks the authentication of the remote host but can't authenticate it
  if it's unknown. If you want to use sftp you'll have to manually authenticate
  the remote host. You can add the RSA fingerprint to ~/.ssh/known_hosts or
  simply connect to it once. (I have no idea how this works on windows
  servers).


###############################################################################
# Installation                                                                #
###############################################################################

It is recommended not to use this patch on a live utstats install and to make a
back-up before installing it.

1. Copy all files to your UTStats install
   This will not overwrite the config.txt

2. Open includes/config.ini

3. Add the following lines:

// UTStats can download and manage your chat logs
// Enable downloading chatlogs
$import_chatlog_download_enable = true;
$import_chatlog_start = "[ChatLog]";
$import_chatlog_extension = ".log";
$import_chatlog_compress = "compress";

// Extra ID, can pick up extra id's like HWID or GUID
// Should be logged as <time>	player	id	<player id>
$extra_id = "IP"; 			// identifier for the extra id [IP/HWID/GUID], NULL to disable
$merge_by_extra_id = false; 		// will set playername to the first with that ID, actual game name will be lost
$publicize_real_name = true;		// shows real name (first with that ID on player page

4. Go to Admin > Check Server Settings, make sure everything says OK

5. For libcurl / sftp configuration see curl-readme.txt

###############################################################################
# TODO                                                                        #
###############################################################################

 * Test
 * Mess around a bit with the chatlogger
