SuperWebAdmin v0.95 - hope it's a last release before UnrealWebAdmin times ;)
Author: [es]Rush*bR

WHAT'S THIS ?!
---------
It's a powerful tool for administrating your server via a web interface.
Basing on the original one included in the standard UT installation, SWA provides you with a very similiar interface,
however much more simple in many ways, giving lots of additional features and security measures at the same time.

FEATURES:
---------
 - Multi user - there can be up to 50 users each with other privileges.
 - QuickSet function - instantly switch to your preset gametypes. Included nice setup in the SuperAdmin page.
 - Extended PlayerList with full compatibility with the latest UTGLA or if UTGLMode if off, with EasyMute.
 - Extended Mutator page will allow to add your custom mutators.
 - Current Rules for instant changing max players/spec and password.
 - Most of the things the user does is logged. When he sends a message to the server his nick is also showed.
 - OPBan v.07 integrated for easy ban limit extension and managment. 
 - SuperAdmin page which includes the most important server settings. Useful when you don't want others to play with it. :)
 - Fast and nice text interface. However I plan to make also a graphic one in the future.
 - Extended console. Allows sending mutate commands. Users with low privileges will be able to do only "say". No more "admin get" spying. :P
 - CurrentGame shows all maps from now. No more useless maplists.
 - There are 2 stages of privileges which can administrate only public games without Tournament.
 - Port redirrection friendly - for ppl having problems with Linux server version 436 !
 - MvReporter2 compatibility. Control and config pages included.

INSTALLATION AND SETTINGS:
---------
 1. Copy System and Web directories with all files to the main ut-server path.

 2. Open your server's ini and change ...
	[UWeb.WebServer]
	Applications[0]=SuperWebAdmin.SuperServerAdmin
	ApplicationPaths[0]=/ServerAdmin

 3. Edit SWAConfig.ini to your needs ...

	# Set only main user for now. Caution: Case-sensitive !!
	UserList[0]=<user>:<password>

	#For example: AdminRealm=[es]ClanServer #1 - WebAdmin
	AdminRealm=<ServerName>

	#This one's used to properly refresh the console when you fixed the webadmin issue on linux by rewriting the webadmin port to another. For example: ServerURL=153.19.49.13:5001
	ServerURL=<IP>:<Redirected Port or normal port>

	#Check it to true if you use UTGL but don't want its features in WebAdmin.
	bForceUTGLModeOff=false

	#When set to true SuperWebAdmin will automatically spawn OPBan and enable its features in the menu.
	bOPBanEnabled=False

	Other can be set from the WebAdmin interface.

    MORE ABOUT OPBAN IN opban.txt !!!


PRIVILEGES:
---------
 There are currently 5 levels of privileges.
 1 - PublicModerator(Switch Map, ServerConsole-say, PlayerList, Bans Managment) - cannot change anything while Tournament
 2 - PublicAdmin(Public Moderator+ SwitchGameType, Mutators, GameOptions, RestartLevel) - cannot change anything while Tournament
 3 - ServerModerator(Switch Map, QuickSet, ServerConsole-say, PlayerList, RestartLevel, GameOptions, Mutators, Bans Managment, MvrControl)
 4 - ServerAdmin(ServerModerator+ SwitchGameType, ALL Defaults, ServerConsole-mutate)
 5 - SuperAdmin(ServerAdmin+SuperAdmin Menu+ServerConsole Commands)


UTGL - UT Global Login System
---------
If you don't know what is it just visit http://unrealadmin.org > Forums > UTGL and download the latest version. 

If already installed, you have to set this:

[UTGLAv<version>.GLMutator]
webLogin=<login>     <- It must be the login with Admin rights.
webPass=<password>

UTGL is a great tool, it is still being in development and becomes more and more advanced.
I advise everyone running public servers to use it. It's also good for tournament games because
of its very advanced scoreboard. The best I have ever seen.


EasyMute
---------
This small mod allows a server administrator to mute naughty players from sending messages.

If you don't use UTGL see EasyMuteV16.zip(which should be included) for more details.


MvReporter2
---------
It's an Unreal Tournament Server Actor, which connects to the IRC network, and posts message from the game into IRC.
This lets people follow any game without being on the server themselves.

SuperWebAdmin should detect this tool and enable additional pages automatically.

See MvReporter2beta2.zip for more details.


How to fix the WebAdmin on Linux UT436.
---------
 There are several ways to do this:

 1. With xinetd:
    To /etc/services add:
	
	UTAdmin <rewrited port>/tcp

    To /etc/xinetd.conf add:

	service UTAdmin
	{
	port = <rewrited port>
	socket_type = stream
	protocol = tcp
	wait = no
	user = root
	log_on_failure += USERID
	disable = no
	redirect = x.x.x.x <original port set in the ut.ini>
	}

	Now restart xinetd with command "killall xinetd -HUP".

 2. With apache:
    You need an apache webserver with working ReWrite module. Set to some path this options:

	RewriteEngine on
	RewriteRule ^(.+) http://localhost:<originalport>/$1 [R,L,P]

	You can ignore the port in the ServerURL option here.

 3. With Redir:
	Download it and compile: http://www.netsw.org/net/ip/socket/redir/redir-2.2.1.tar.gz

	Run with:
	
	/usr/sbin/redir --lport=<redirected port> --cport=<original port> --caddr=<IP> &

 !!!! USE THIS URL TO CONNECT TO THE WEBADMIN: !!!
   http://<IP>:<redirected port>/ServerAdmin/


CHANGELOG:
---------
 0.95:
 -Fixed a bug with Custom Mutators in Mutators page.
 -Fixed a bug with Spectators setting for Public in QuickSetConfig page.
 -Improved QuickSet speed by few times.
 0.94:
 -Added Custom Mutators into Mutator page.
 -As usual, fixed few bugs. :P
 0.93:
 -Added MvReporter2 support.
 -Fixed few html bugs. (thx to Gspot)
 -Added option to force maxplayers and spectators values in QuickSet. 
 0.92:
 -Added Bots section. ({ROW}Mase's request)
 -Fixed bad diplaying Friendly Fire value in QuickSetConfig. (reported by BlackWolf)
 0.91:
 -Fixed Settings page not updating the values. (reported by BlackWolf)
 -Fixed EasyMute compatibility.
 0.9:
 -First release

PLANS for 0.95beta:
---------
-Improve the interface with a little of javascript.
-Make the QuickSet Config more user-friendly.
-Provide as much as it is possible support for the newest UTGL version(which will be released soon.
 
CREDITS:
---------
-TheFury, author of AdvWebAdmin. Thx for a a very nice idea. Honestly I used some of your functions. ;)

-Anthrax for making the UTGL system, it was the main reason to code this little thing.

-PurplePants for sending me the OPBan's v0.7 code and allowing me to use it. Really, it's a powerful tool. Great work.

-All ppl giving me support. Thx. :)

CONTACT & FEEDBACK:
---------
If you find any bugs or just have some ideas please let me know. ;)
Email & MSN: rush@u.one.pl
ICQ: 257547545
GG: 1930553
AIM: RushESpl
JID: rush@jabber.org.uk

Enough ? :> Hope so.


