:: webmod docs : readme ::

:: webmod ::

I. About
WebMod is a multi-threaded HTTP Web server embedded into a MetaMod plugin (Linux and Win32 compatible). It allows you not to use specific tools like HLSW or AgentOrange, or additional software such as a web server, PHPRCon or a Perl capable shell account to run PsychoQuery.
Once installed, you can access it on http://server_ip:server_port/ ; for example if you connect to 123.45.67.89:27016 to play, you just have to add « http:// » at the beginning and give this to your web browser : http://123.45.67.89:27016/.
This addon provides a public live status page, and a private admin area (password-protected, currently using RCon password).
But this plugin is not only what's contained in the zip file : WebMod includes a script preprocessor that lets you customize its web pages totally, and to create yours at your own convenience. W scripting language reference document is provided in the archive. You'll learn how to use { } blocks, game server and HTTP related variables, etc.
Default package contains :
First, a public index page, with real-time server status (map, players, rules, addons). It has been designed for Counter-Strike since it's Half-Life's most popular mod, but can be easily adapted to any other mod thanks to W scripting language.
If you know the server's RCon password, you can log in as an admin, then enter console commands, kick/ban players, make them run commands (like AdminMod's admin_execclient first did), and edit main config files (mapcycle.txt, server.cfg, motd.txt, and any main config file for your other MetaMod plugins). Once again, all those features can be customized (just have a look at addons/w/www/*.w pages), you also can change these pages' design (quite djeyl.net-ified by default) so that they perfectly fit your own site's look and feel.
II. Requirements
You only need to have MetaMod (version 1.17.x recommended) running on your server.
III. Installation
Unzip this file in your mod's directory ("cstrike" for example).
It will create those directories :

addons/w | webmod base dir
addons/w/dlls | win32 & linux binaries
addons/w/docs | documentation (html format)
addons/w/www | web server root dir with .w pages
addons/w/www/mappics | some Counter-Strike map screenshots
addons/w/www/includes | some .inc files included by .w pages

Edit your addons/metamod/plugins.ini and add the following 2 lines (start, middle, end of file : no matter) :

win32 addons/w/dlls/w_mm.dll
linux addons/w/dlls/w_mm_i386.so

Now you just have to restart your server ! Enjoy :-)
IV. Contact

web page | http://djeyl.net/w
forums | http://djeyl.net/forum

V. Credits

djeyl.net team | http://djeyl.net
beta tests, ideas and support
OLO | http://olo.counter-strike.pl
StatsMe's little scripting language inspired me to create W's :-)
FireStarter | http://server.counter-strike.net
he's a carrot !!