MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
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>&nbsp;

<A HREF="config.html"><IMG src="images/up.gif" width="25" height="25" border="0" alt="Parent"></A>&nbsp;

<IMG src="images/right0.gif" width="25" height="25" border="0"></TD>

<TD valign=middle>&nbsp;&nbsp;<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>
&lt;?
//#
//#       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>&nbsp;

<A HREF="config.html"><IMG src="images/up.gif" width="25" height="25" border="0" alt="Parent"></A>&nbsp;

<IMG src="images/right0.gif" width="25" height="25" border="0"></TD>

<TD valign=middle>&nbsp;&nbsp;<A HREF="index.html">Contents</A></TD>

</TR></TABLE>

</BODY>

</HTML>