home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
maxcgis.zip
/
maxcgis.doc
< prev
next >
Wrap
Text File
|
1998-09-12
|
5KB
|
108 lines
-----------------------------
Maximus CGI Pack for OS/2
-----------------------------
What it is:
~~~~~~~~~~~
A package of three CGI programs which allow visitors on the World
Wide Wait to view your user listing, your last few callers and who's
currently online.
Requirements:
~~~~~~~~~~~~~
- OS/2 Warp 3.0 or higher
- 386DX or better with atleast 8 megs of RAM
- Maximus BBS software
- Connection to the internet
- Web server
Legal Stuff:
~~~~~~~~~~~~
This collection of programs should only take up room on your hard
drive, and should (hopefully :> ) do what they were meant to do. Nothing
more, nothing less. If they do cause any damage to your system, I take
no responsibility, but ask that you report the damage(s) to myself as
soon as possible so that I may look into/fix the problem immediately.
Installation:
~~~~~~~~~~~~~
Unzip all the files in the distribution archive to a temp directory.
Place the file USERINFO.MEX in Maximus' MEX directory, the three
executables (and their corresponding config files) into your web
server's CGI-BIN directory, and the DOC file wherever you store your
junk :>
Next, edit the three config files to suit your needs. They're all
commented, and should be pretty self-explanatory.
You may need to edit the USERINFO.MEX file to suit the paricular
needs of your BBS. If you don't know MEX, don't worry, I don't either,
but I've commented it enough that we should both be able to understand
it :>
When you load the USERINFO.MEX file in your text editor, you'll
notice two #define's near the top, those are the only real things you'll
need to worry about. They should look like this by default;
#define telnet_node 2 // Telnet node number
#define local_node 3 // Local node number
The numbers in the third column are the node numbers, for the telnet
node and the local node, respectively. (Sorry, at the moment I only have
support for one of each, as I'm not a MEX expert. If you know how to
easily add support for more than one of each, please see the "Contacting Me"
section and let me know).
Once you've edited this file to suit your needs, compile it with
MEX(p). Now you'll need to call it somewhere within the regular login
procedure. I reccommend adding a link to it at the beginning of your
WELCOME.MEC file, (IE: [MEX]M\Userinfo).
When a user logs off of your BBS, you should have some method of
automagically deleting the file UONLINE.# (in the main Maximus
directory), where # is the task number. There are several ways of doing
this;
1 - Add a line to the batch file that calls your BBS immediately after
the call to MAX(p).EXE that deletes the file (if you run a single-
node system, you should be able to just have the batch file delete
UONLINE.1, but if you run a multi-node system, you should have an
environment variable (IE: %TASK%) or a parameter (IE: %1) that you
would use to delete the file, IE: "del c:\max\uonline.%1").
2 - Within the file BYEBYE.MEC (in the \MAX\MISC dir) add a line like
the following for each of your nodes (replacing the node number
where appropriate);
[iftask]1 [delete]C:\Max\Uonline.1
3 - Put the included DELFLAG.MEX file into Maximus' MEX directory and
compile it, and call it before each logoff in your MENUS.CTL file
like the following;
NoDsp MEX M\Delflag Transient "Goodbye (log off)"
Goodbye Transient "Goodbye (log off)"
Now, you're finally ready to add a link to the CGI's in some HTML
code! The three programs can be called as follows;
LASTTEN.EXE - If called with no parameters, it will display the last ten
callers to the BBS. If you add a parameter to it's command
line (IE: lastten.exe?20) it will display that number of
callers.
MAXLIST.EXE - This CGI has no parameters, so it should be called with
the executable name only.
WHOONNOW.EXE - If called with no parameters, this will display the users
online on nodes 1 through 3, if you specify a number on
the command line (IE: whoonnow.exe?8) it will display the
users online on nodes 1 through the number specified.
Contacting Me:
~~~~~~~~~~~~~~
If you feel the need to contact me, I can be reached on the World
Wide Wait at http://tinys.oix.com/blackdeath or by E-Mail at
s_honsberger@usa.net. I've included my PGP public key if you wish to
encrypt your message to me.