|
|
Contents |
chat.php
The PHP script filechat.phpis the server side of the chat.
Beginning of the filechat.php:
<? //# //# 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"). //#####################
The following settings must be set:
$key Registration key to convert the evaluation version to a registered one.
After you buy a license of the Morevil Web Chat you will have received the registration key by email.$password After sending command /kick password if the password is right the button "kick" appears under the userlist. $log Chat session Log, Set to one of: "On" | "Off".
If "On", the chat session will be recorded in the filesroom_X.logwhereX- number of the room.$path Specifies the directory under which the datafiles will be created.
If you leave this variable as is, the datafiles will be created in the same directory as the filechat.php.
Set the permission on this directory to 0777.
Note: 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.
|
|
Contents |