You are in: Root/MBox Documentation. vURL: /mbox/code.htm.
Introduction
Welcome to the MBox Sources page, which is the authoritative source for stuff relating to the MBox chat widget.
Table of Contents
1.0: Live MBox Sources [top]
Here's a list of source files which together comprise the current iteration of MBox (MBox/0.64a, released on Sun, January 3, 2009). Click one of the links in the list to view the contents of a particular source file.
NOTE: The source files provided here are the actual files which are used by my personal MBox. They are not copies of the files, and are therefore always current.
Released under the GNU GPL (v2+). For further information about this, please read the GPL license∗. If you want to reuse my code, you must abide by the terms set out in that document.
1.1: Main Code Files [top]
The following file is found in the "/" directory of the typical MBox
installation. This file was authored by myself.
- mbox.cgi - MBox server, ties everything together
1.2: System Code Packages [top]
The following 19 files are found in the "/lib/" subdirectory of the typical
MBox installation. These files were all authored by myself.
- access.pm - access control routines
- archive.pm - perpetual message archive
- bans.pm - user ban routines
- blacklist.pm - anti-spam blacklist, dragons
- bot.pm - bot command parser, system variable manager, bot logic
- cache.pm - data caches
- cookies.pm - HTTP cookie routines
- db.pm - regex-based database manager, orks
- heartbeat.pm - online presence sensing and related utilities
- instrumentation.pm - basic debug instrumentation, logging
- options.pm - global switches, file paths, hardcoded scalars, grues
- output.pm - HTML output and HTML utility routines
- search.pm - Message Archive user / text / date search
- sessions.pm - user session control
- styles.pm - visual theme handling (both local and remote)
- turkey.pm -
TurkeyCodeparser - users.pm - user account control
- util.pm - field validators, random code, miscellaneous junk, cows
- client-javascript - client-side javascript library
1.3: Additional JavaScript Files [top]
The following 2 files are found in the "/js/" subdirectory of the typical
MBox installation. The code contained within these files was not created by
myself. I just want to be entirely clear on this here, in case no-one bothers
to read the copyright headers in the files.
- md5.js - client-side MD5 library, written by Paul Johnston∗
- xmas.js - client-side Xmas script, written by Scott Schiller∗
2.0: Archived MBox Sources [top]
This section provides you with links to archived versions of MBox. Each archive
contains a full installation of MBox with factory-default settings. Three user
accounts exist in each archive ("Owner", "Administrator", "User", all
set to the default password of "12345"), and the Message Archive of each
contains three test messages.
You will need to change the $path variable in "/lib/options.pm" to
reflect the location of /mbox.cgi on your Web server, and you'll need to
change the password hashes of the included user accounts (in
"/data/db/USERS") so that random Internet strangers can't log in on those
accounts and break shit.
Finally, if you wish to make use of the bot (which is enabled by default), you
will need to do the following: make a registered user account for the bot to
use; log in as the owner; set -botname to the username of the new account.
If you want to disable the bot outright, ser -botactive to off (or, if
your bot has a user account, simply ban its user account using the 'bun' link
on your admin linksbar).
Apart from needing the above tasks performed, MBox will pretty much run
straight out of the box. Remember to CHMOD the /mbox.cgi file as 755 (to
make it executable), and to CHMOD the files in your /data/ and /tpl/
subdirectories as 600 (to hide them from public view).
2.1: Most Recent Archive [top]
Here is the most recent MBox archive.
- MBox v0.64a (201 K Zip Archive) [3.Jan.2010]
2.2: Older Archives [top]
Following is a list of legacy (i.e. old, unsupported, probably incompatible) versions of MBox that I actually bothered to package into archive files. Do what you like with these.
- MBox v0.6a (115 K Zip Archive) [5.Dec.2009]
- MBox v0.5a (133 K Zip Archive) [20.Nov.2009]
- MBox v0.4a (140 K Zip Archive) [8.Nov.2009]
- MBox v0.3a (74 K Zip Archive) [31.Oct.2009]
3.0: MBox Documentation [top]
The MBox documentation now has its own section. For breaking news of new upgrades and things which may appear on this page, hit up the announcements page.
![[RSS]](/cgi-bin/w3bl0g/feed.png)