Morevil Chat
Previous  Parent  Next   Contents
3.2. Configuration file
The chat applet is configured by placing directives in the plain text file config.txt. This file must reside in the same directory as the chat applet archive chat.jar.

The configuration file contain one directive per line. Directives are case sensitive. Lines which begin with the hash character "#" are considered comments, and are ignored.

Contents of the file config.txt:

bad_words "word1;word2"
font_choice "yes"
permitted_hosts "domain_1;domain_2"
kickpage "kick.html"

banner_height "60"
banner_text "CHAT FOR WEBSITE"
banner_font "SansSerif"
banner_font_size "28"
banner_font_style "1"
banner_color "#EE00EE"

# You can translate the following phrases in any language.

1 "private"
2 "has come in chat"
3 "has left the chat"
4 "Welcome to Chat"
5 "Style"
6 "Incorrect Password"
7 "Nickname : "
8 "Password (optionally) : "
9 "Nickname is used"
10 "Please, enter your nickname"
11 "Login"
12 "Logout"
13 "to All "
14 "Ignore"
15 "Unignore"

bad_words List of bad words. The words must be separated by a semicolon.
These words will be displayed as "#$%&" in the chatting area.
font_choice Whether or not to display the component of choice of a font. Values - "Yes" | "No". Default - "No".
permitted_hosts List of permitted domain names. Domain names must be separated by a semicolon.
The chat applet will work if HTML page with the chat is loaded from the web server whose domain is listed here.
If this list is empty the chat will work if HTML page is loaded from any web server.
kickpage This is the link from the chat page to the "kick" page. This page will be displayed in the browser of the user who was kicked by the administrator.
banner_height Height in pixels of the panel with the banner. Default - "30".
banner_text The text of the banner.
banner_font Name of the text font. Valid values are: "Serif", "SansSerif", "Monospaced". Default - "Serif".
banner_font_size Size of the text font. Default - "18".
banner_font_style Style of the text font ("0" - plain, "1" - bold, "2" - italic, "3" - bold-italic). Default - "0".
banner_color Color of the text of the banner. Must be specified as "#RRGGBB". Default - "#FFFFFF".

Previous  Parent  Next   Contents