File: /home/asjudine/www/chat - Copia/doc/config-script.html
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>Morevil Web Chat 4.23 : PHP script <CODE>chat.php</CODE></TITLE>
<LINK rel="stylesheet" href="styles.css" type="text/css">
</HEAD>
<BODY>
<A HREF="http://www.morevil.com"><IMG SRC="images/logo.gif" width="117" height="39" ALT="Morevil" border=0></A>
<TABLE><TR>
<TD class=c1>
<A HREF="config-client.html"><IMG src="images/left.gif" width="25" height="25" border="0" alt="Previous"></A>
<A HREF="config.html"><IMG src="images/up.gif" width="25" height="25" border="0" alt="Parent"></A>
<IMG src="images/right0.gif" width="25" height="25" border="0"></TD>
<TD valign=middle> <A HREF="index.html">Contents</A></TD>
</TR></TABLE>
<SPAN class=c1>3.3. PHP script <CODE>chat.php</CODE></SPAN>
<HR SIZE=3>
<BLOCKQUOTE>
The PHP script file <CODE>chat.php</CODE> is the server side of the chat.
<BR><BR>
Beginning of the file <CODE>chat.php</CODE>:
<BR><BR>
<TABLE cellpadding=20 bgcolor=#DDDDDD><TR><TD>
<PRE>
<?
//#
//# Morevil Web Chat 4.23 http://www.morevil.com
//#
//#####################
$key =""; //# Registration key
$password = ""; //# to kick users from chat
$log = "Off"; //# Chat session Log, Set to one of: On | Off
$path = ""; //# The path to the directory where the datafile will be created.
//# NOTE: You must use forward slashes instead of backslashes
//# (e.g., "c:/chat" instead of "c:\chat").
//#####################
</PRE>
</TD></TR></TABLE>
<BR><BR>
The following settings must be set:
<BR><BR><BR>
<TABLE border=0 cellpadding=5 cellspacing=0>
<TR><TD valign=top><B>$key</B></TD><TD> Registration key to convert the evaluation version to a registered one. <BR>After you buy a license of the Morevil Web Chat you will have received the registration key by email.</TD></TR>
<TR><TD valign=top><B>$password</B></TD><TD> After sending command <B>/kick password</B> if the password is right the button "kick" appears under the userlist.</TD></TR>
<TR><TD valign=top><B>$log</B></TD><TD> Chat session Log, Set to one of: "On" | "Off". <BR>If "On", the chat session will be recorded in the files <CODE>room_X.log</CODE> where <CODE>X</CODE> - number of the room.</TD></TR>
<TR><TD valign=top><B>$path</B></TD><TD> Specifies the directory under which the datafiles will be created. <BR>If you leave this variable as is, the datafiles will be created in the same directory as the file <CODE>chat.php</CODE>. <BR>Set the permission on this directory to 0777.</TD></TR>
</TABLE>
<BR><BR>
<B>Note:</B> Variables in PHP are represented by a dollar sign followed by the name of the variable.
The variable name is case-sensitive.
The text values must be enclosed by quotes.
The values must be ended by a semicolon.
</BLOCKQUOTE>
<HR SIZE=3>
<TABLE><TR>
<TD class=c1>
<A HREF="config-client.html"><IMG src="images/left.gif" width="25" height="25" border="0" alt="Previous"></A>
<A HREF="config.html"><IMG src="images/up.gif" width="25" height="25" border="0" alt="Parent"></A>
<IMG src="images/right0.gif" width="25" height="25" border="0"></TD>
<TD valign=middle> <A HREF="index.html">Contents</A></TD>
</TR></TABLE>
</BODY>
</HTML>