Приглашаем посетить
Техника (find-info.ru)

WWWChat

#######################################################################
#                                                                     #
#                  chat.cgi - v1.1 - by Michael Hall                  #
#                                                                     #
#         Copyright ©1996 by Virtual Marketing Technologies.          #
#                         All Rights Reserved.                        #
#                                                                     #
# The user of this script is licensed to use this script on one       #
# machine only for non-commercial use only.  For commercial use, a    #
# payment is required.  See The Scripts Home at                       #
# "http://www.virtualcenter.com/scripts2" for more details.  Use of   #
# this script means acceptance of this license agreement.  Commercial #
# use of this script without payment is a violation of copyright laws #
# and subject to fines and/or prosecution.  If you have questions     #
# regarding the use of this script for commercial purposes, please    #
# e-mail vmt@airmail.net.  The author of this script cannot be held   #
# responsible for any errors or cause of loss due to this program.    #
# Use of this program is provided as is.  No other warranties are     #
# expressed or implied.                                               #
#                                                                     #
# If you do not pay for a license to use this program, you may not    #
# edit out any sections of this script that give credit and links to  #
# the author, The Scripts Home, and Virtual Marketing Technologies.   #
#                                                                     #
#######################################################################

CHANGES IN THIS VERSION
-----------------------

The only major changes to this version are that it no longer requires the
cgi-lib.pl or cgi-test.pl libraries and has been renamed chat.cgi so
as to be compatible with directories that will only recognize Perl scripts with
the .cgi extension.  This should aid in installation of this program as no
other programs are needed for this to run.


INSTRUCTIONS FOR SETTING UP THE WWWCHAT SCRIPT

The script requires atleast Perl v4 to run.  Place it in your cgi-lib
directory on your web server and "chmod 755" to turn it into an
executable script.

The scripts need to be modified to your tastes before running.  First,
we'll need to edit "chat.cgi".

Edit "$BaseDir" to the full path of the bulletins directory where you want
the chat directory to be.  Each time somebody "speaks", the chat system will
read and write to "Chat.html" in this directory.  Make sure you "chmod 777"
this chat directory as well as "Chat.html".  Next, edit "$ChatFile" to the
filename of the "Chat.html" file if you rename it to something else.

$MaxMsgs is the maximum number of messages that will be viewed at once.
What happens is this:  when somebody "speaks", that's considered one message.
You want to keep this small so people don't have too much chatter to have
to read at once.  Each new message is placed at the top of the list while
each previous message is moved down one.  The 15th message is then moved off
the list.

Next, you need to edit the end of the script.  There are three lines at the
end of the script that contain html commands.  These commands describe how
the text field window should look.  This is the field where the user enters
the text they wish to broadcast throughout the room.  Be careful when editing
this.  If you add a quote here, make sure you add a "\" before the quote or
else you'll have problems.  The best thing to do would be to not touch this
part of the script unless you know what you're doing.  You will want to edit
the part in the second to last line that says "action=\"/cgi-bin/wwwchat.pl\"...
This points to the wwwchat.pl script.  You do want to edit this part.

Now we need to edit the file "Logo.html".  This is where the user enters a
message for the first time.  Make sure it points to the location of the
"wwwchat.pl" script.  Look at the section, too, that says "<a href="/chat/Chat.html"....
This should point to your Chat.html file.  The system is set up to automatically
reload the Chat.html file continuously every 10 seconds.  If the user wishes to
speed things up and go ahead and reload the page manually, they can hit the link
"View Text Now!" to load it.  This points to where that page is for manual reloading.

Everything else should be set correctly.  Your users will need a frames compatible
browser to use the chat room.  You're all set!

NOTICE ON SUPPORT
-----------------

Support is available only to those who purchased support when they purchased this script.
To gain that support, simply send an e-mail to "vmt@airmail.net" and include
the support number you got with the e-mail for this script.

If you did not purchase the support but find you are having problems, a special
message forum has been set up in The Scripts Home at "http://www.virtualcenter.com/scripts2"
for those needing help.  If you are able to successfully setup this program, please stop
by these message forums and help others set them up.

If you need help, please post a message to this message forum.  DO NOT send e-mail to the
author or Virtual Marketing Technologies unless you have purchased a license.  These scripts
are provided at no charge for personal, non-commercial use and we simply don't have the
resources to provide further support at no charge.


NOTICE ON INSTALLATION
----------------------

Installation of this program is available from Virtual Marketing Technologies at the
standard rate of $50/hour (minimum 1 hour).  If you find it too difficult to install
this program on your own, you may request custom installation.  $50 is due immediately
before installation can be started.