UT Query & Stats hacks collection

Auther: Rolf Koedam (alias kE)
Contact: rcowdam@hotmail.com or unrealadmin fora.

Based on: 
UTStats Beta 4.2  2005 azazel, AnthraX and toa
UT Query PHP script v1.2 by Almar Joling, 2003
Uses: 
XMLParser by Adam A Flynn

Package details:
- Query script
This is an updated version of the query script. Modifications I made:
* Team info support (score & number of players) - thanks to ares.
* I splitted the code. You can have the query script that outputs xml on a host that allows the query to be made, and parse it on your webhost where your site is. Some hosts have firewalled outgoing udp ports.
* Update to xml formatting was also necessary to enable team info.
* Splitting the code also allows you to parse the xml file the way you want. For example, I link statsnicks to statsid if they're available. This is enabled in the code provided, but it needs small_search.php in your stats/pages dir.

- Stats blocks
* Small player info block, outputting things like effi, total & avg caps etc., recent games and ranks.
* Small map info, outputting things like total matches etc.
* Small rank info, which shows the top 5.
* Small search page, which can return the nick for an id and the otherway around.

- Stats integration hacks
* These hacks make it possible to totally integrate the stats into your site. Without these hacks you can't have an header that access the database, cause the database connection to the stats database is already made.

Install:
You can simply move this files on your server. The files in folder stats should be moved to your stats folder. Be SURE you've backupped this directory. 
You'll have to edit the files yourself to edit variables like the url to your stats system and the ip of your unreal server.
You can find examples in the root directory for usage of the query script and small stats blocks.
Note that I used an ut stats installation for iCTF. Some of the queries will be made for this gametype.

Be carefull, it CAN and probably will break your system (Murphy's Law). I will try to give a bit of support and you can always email me for questions. I can't promise anything tho, so ALWAYS backup your stats sys before you install these hacks.
I'm not responsible for any damage done etc.

Example:
I use these scripts at the site for the ut99 cwl custom map server at http://cwl.godsofchaos.org

Credits:
Would be nice if you give me and especially the people mentioned above a bit of credit somewhere on your page if this code was usefull :) Feel free to improve these scripts :)

Licence:
This program is free software; you can redistribute and/or modify
it, but please share your modifications :)