Webwho/
Web Who Module for SWR 1.0
==========================================
http://ew.xidus.net

Disclaimer
==========
This should work on all Smaug derivitives, mainly on SWR. This code was tested on a heavily
modified version of SWR 1.0, but it should work on everyones code anyway. I retain no
responsibility if this code does anything to you code, your game, or the system it's running
on.

This code WILL need to be modified to work correctly on your system.
Basic web site knowledge (maybe some HTML) recommended.

All code here belongs to its/their respective owners, and I would like to say that I didn't
write all of this, I just modified it to work with SWR correctly.

What this snippet will do for you
=================================
This snippet will output the who is on the mud to an html file located somewhere on
your web site. The web site must be contained on the system in which the mud is
running on, and since most muds have that anyway, it shouldn't be much a problem
for the majority of you. The page will be regenerated roughly every 10 seconds. Also,
the meta tags at the beginning of the html will make your browser refresh the page
automatically every 30 seconds.

This snippet is small, easy to install, and efficient. Good luck, I hope you find it as
useful as I have.

=============
Installation
=============
This code is very easy to install.

(1) update.c

Find:
int	move_gain	args( ( CHAR_DATA *ch ) );

Add (under):
void	web_html_update	args( ( CHAR_DATA *ch ) );

Find:
    if ( --pulse_space   <= 0 )
    {
       pulse_space    = PULSE_SPACE;
       update_space  ( );
       update_bus ( );
       update_traffic ( );
    }

Make it look like this:
    if ( --pulse_space   <= 0 )
    {
       pulse_space    = PULSE_SPACE;
       update_space  ( );
       update_bus ( );
       update_traffic ( );
       who_html_update ( );
    }

(2) Makefile


Find your make file where it looks something like this:

O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
	  build.o clans.o color.o comm.o comments.o const.o db.o fight.o \
	  handler.o hashstr.o id.o interp.o magic.o makeobjs.o \
	  misc.o mud_comm.o mud_prog.o player.o \
	  reset.o save.o shops.o skills.o special.o tables.o track.o update.o \
	  space.o bounty.o swskills.o

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
	  build.c clans.c color.c comm.c comments.c const.c db.c fight.c \
	  handler.c hashstr.c id.c interp.c magic.c makeobjs.c \
	  misc.c mud_comm.c mud_prog.c player.c \
	  reset.c save.c shops.c skills.c special.c tables.c track.c update.c \
	  space.c bounty.c swskills.c


Add webwho.o and webwho.c to make it look like this:

O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
	  build.o clans.o color.o comm.o comments.o const.o db.o fight.o \
	  handler.o hashstr.o id.o interp.o magic.o makeobjs.o \
	  misc.o mud_comm.o mud_prog.o player.o \
	  reset.o save.o shops.o skills.o special.o tables.o track.o update.o \
	  space.o bounty.o swskills.o webwho.o

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
	  build.c clans.c color.c comm.c comments.c const.c db.c fight.c \
	  handler.c hashstr.c id.c interp.c magic.c makeobjs.c \
	  misc.c mud_comm.c mud_prog.c player.c \
	  reset.c save.c shops.c skills.c special.c tables.c track.c update.c \
	  space.c bounty.c swskills.c webwho.c

(3) Put webwho.c into the src folder

(4) Go into your web directory (public_html in the path included with the code) and create
a file called online.html (by default, you can change that). Leave it blank, but save it.

(5) Compile your code (Make)

You should be all set now, supposing it compiled without any errors. Go to online.html on 
the internet. If you don't know where it is then refer to the example below.

Example: if your domain was www.iwashere.com, then it would be at www.iwashere.com/online.html

Contact Information:
====================

Please send comments, questions, bugs, suggestions, etc. to either e-mail.

Odis, Owner, Coder, and Head Immortal of Gundam Wing: The Awakening
huhahua@yahoo.com
admin@ew.xidus.net
http://ew.xidus.net