|
From: Lo?c C. <lo...@us...> - 2001-06-13 18:05:56
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/config
In directory usw-pr-cvs1:/tmp/cvs-serv7529/chat/config
Modified Files:
config.lib.php3
Log Message:
Added a directive to allow moderators to stay in the chat even if they are away and moved comments in the 'docs/configuration.txt' file
Index: config.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/config/config.lib.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** config.lib.php3 2001/06/10 14:57:47 1.9
--- config.lib.php3 2001/06/13 18:05:53 1.10
***************
*** 9,13 ****
// +--------------------------------------------------------------------------+
// | This is the main configuration file for phpMyChat. You have to complete |
! // | it. |
// | BEWARE: '," and \ characters must be slashed in the settings bellow. |
// | |
--- 9,13 ----
// +--------------------------------------------------------------------------+
// | This is the main configuration file for phpMyChat. You have to complete |
! // | it (see 'docs/configuration.txt' for details). |
// | BEWARE: '," and \ characters must be slashed in the settings bellow. |
// | |
***************
*** 31,61 ****
*/
// Database settings
! define('C_DB_TYPE', 'mysql'); // SQL server type ('mysql' or 'postgresql')
! define('C_DB_HOST', 'localhost'); // Hostname of your MySQL server
! define('C_DB_NAME', 'db_name'); // Logical database name on that server
! define('C_DB_USER', 'username'); // Database user
! define('C_DB_PASS', 'password'); // Database user's password
! define('C_SESS_TBL', 'pmc_sessions'); // Name of the table where session data are stored
! define('C_ROOM_TBL', 'pmc_rooms'); // Name of the table where rooms properties are stored
! define('C_MSG_TBL', 'pmc_messages'); // Name of the table where messages are stored
! define('C_RIGHT_TBL', 'pmc_rights'); // Name of the table where users' rights are stored
! define('C_USR_TBL', 'pmc_users'); // Name of the table where user names are stored
! define('C_REG_TBL', 'pmc_reg_users'); // Name of the table where registered users are stored
! define('C_BAN_TBL', 'pmc_ban_users'); // Name of the table where banished users are stored
// Cleaning settings for messages and usernames
! define('C_SESS_DEL', 8); // Sessions are deleted when its last use is 'xx' minutes old
! // This setting must be greater than the 'C_USR_DEL' one
! define('C_MSG_DEL', 96); // Messages are deleted when there are 'xx' hours old
! define('C_USR_AWAY', 4); // Users are considered as "away from their keyboard" when
! // the last message they sent is 'xx' minutes old
! // This setting must be greater than the maximum time
! // authorized between messages list refresh
! define('C_USR_DEL', 2); // Usernames are deleted when they are "away from their
! // keyboard" since more than 'xx' minutes
! // This setting must be greater than the maximum time
! // authorized between messages list refresh
! define('C_REG_DEL', 0); // Registered profiles are deleted when its last use is 'xx' days old
! // 'xx' should be 0 for never
--- 31,54 ----
*/
// Database settings
! define('C_DB_TYPE', 'mysql');
! define('C_DB_HOST', 'localhost');
! define('C_DB_NAME', 'db_name');
! define('C_DB_USER', 'username');
! define('C_DB_PASS', 'password');
! define('C_SESS_TBL', 'pmc_sessions');
! define('C_USR_TBL', 'pmc_users');
! define('C_REG_TBL', 'pmc_reg_users');
! define('C_BAN_TBL', 'pmc_ban_users');
! define('C_ROOM_TBL', 'pmc_rooms');
! define('C_RIGHT_TBL', 'pmc_rights');
! define('C_MSG_TBL', 'pmc_messages');
// Cleaning settings for messages and usernames
! define('C_SESS_DEL', 8);
! define('C_USR_AWAY', 4);
! define('C_DEL_AWAY_LEVEL', 5);
! define('C_USR_DEL', 2);
! define('C_REG_DEL', 0);
! define('C_MSG_DEL', 96);
***************
*** 68,126 ****
// Language settings
! define('C_LANGUAGE', 'english'); // Default language
! define('C_MULTI_LANG', 1); // Allow multi-languages/charset ? : 0 = no, 1 = yes
// Registration of users
! define('C_REQUIRE_REGISTER', 0); // Require registration ? : 0 = no, 1 = yes
! define('C_EMAIL_PASWD', 0); // Generate a password and send it to the user by e-mail ? 0 = no, 1 = yes
! // To enable this functionaly you also have to complete the settings in
! // the 'chat/lib/mail_validation.lib.php3' script
// Security and restrictions
! define('C_MAX_USERS', 0); // Maximum number of connected users? (0 for no limit)
! define('C_SHOW_ADMIN', 0); // Show link for admin resources at startup screen ? 0 = no, 1 = yes
! define('C_SHOW_DEL_PROF', 1); // Show link that allows users to delete their own profile ? 0 = no, 1 = yes
! define('C_VERSION', 2); // Available rooms : users can access...
! // 0 : only the first room within the public default ones
! // 1 : all the public default rooms but not create a room
! // 2 : all the rooms and create new ones
! define('C_BANISH', 0); // Enable the banishment feature and define the delay for banishment
! // 0 = disabled, any positive number = number of banishment day(s)
! // if you want all moderators (and not only yourself) to banish users
! // forever, set C_BANISH to 2000000 (six zero)
! define('C_NO_SWEAR', 0); // Check for swear words defined in chat/lib/swearing.lib.php3 file ?
! // 0 = no, 1 = yes
! define('C_SAVE', '*'); // Max number of message that an user may export with the /save command
! // Special values: 0 = none (disable the command), * = no limit
// Messages enhancements
! define('C_MAX_GSMILIES', 2); // Maximun number of graphical smilies per message (0 = none, * = no limit)
! define('C_HTML_TAGS_KEEP', 'simple'); // Keep HTML tags in messages ?
! // 'simple' : keep bold, italic and underline tags
! // 'none' : keep none
! define('C_HTML_TAGS_SHOW', 1); // Show discarded HTML tags ? : 0 = no, 1 = yes
// Default display settings
! define('C_TMZ_OFFSET', 0); // Timezone offset in hour between the server time and your country
! define('C_MSG_ORDER', 0); // Default order : 0 = last on top, 1 = last on bottom
! define('C_MSG_NB', 17); // Default number of messages to display
! define('C_MSG_REFRESH', 10); // Default timeout between each update
! define('C_SHOW_TIMESTAMP', 1); // Show Timsestamp before messages ? : 0 = no, 1 = yes
! define('C_NOTIFY', 1); // Show nofications of user entrance/exit as default. ? : 0 = no, 1 = yes
! define('C_WELCOME', 1); // Display a welcome message (defined inside 'chat/lib/welcome.lib.php3')
! // at user entrance
// E-mail stuff
! define('C_MAIL_FUNCTION', 1); // Whether the mail function is enabled or not
! define('C_REG_SENDER', 'your name'); // Full sender name to be used in the registration form
! define('C_REG_EMAIL', 'your e-mail'); // Sender e-mail to be used in the registration form
! define('C_ADM_SENDER', 'your name'); // Full sender name to be used in the fourth administration sheet
! define('C_ADM_EMAIL', 'your e-mail'); // Sender e-mail to be used in the fourth administration sheet
!
! // Name and version of this application
! define('APP_NAME', 'phpMyChat'); // Application name
! define('APP_VERSION', '0.15.0 - dev1'); // Application version number
! // Complete Url of the chat
define('C_CHAT_URL', 'http://www.mysite.net/chat/');
?>
--- 61,106 ----
// Language settings
! define('C_LANGUAGE', 'english');
! define('C_MULTI_LANG', 1);
// Registration of users
! define('C_REQUIRE_REGISTER', 0);
! define('C_EMAIL_PASWD', 0);
// Security and restrictions
! define('C_MAX_USERS', 0);
! define('C_SHOW_ADMIN', 0);
! define('C_SHOW_DEL_PROF', 1);
! define('C_VERSION', 2);
! define('C_BANISH', 0);
! define('C_NO_SWEAR', 0);
! define('C_SAVE', '*');
// Messages enhancements
! define('C_MAX_GSMILIES', 2);
! define('C_HTML_TAGS_KEEP', 'simple');
! define('C_HTML_TAGS_SHOW', 1);
// Default display settings
! define('C_TMZ_OFFSET', 0);
! define('C_MSG_ORDER', 0);
! define('C_MSG_NB', 17);
! define('C_MSG_REFRESH', 10);
! define('C_SHOW_TIMESTAMP', 1);
! define('C_NOTIFY', 1);
! define('C_WELCOME', 1);
// E-mail stuff
! define('C_MAIL_FUNCTION', 1);
! define('C_REG_SENDER', 'your full name');
! define('C_REG_EMAIL', 'your e-mail');
! define('C_ADM_SENDER', 'admin full name');
! define('C_ADM_EMAIL', 'admin e-mail');
!
! // Name and release number
! define('APP_NAME', 'phpMyChat');
! define('APP_VERSION', '0.15.0 - dev1');
! // Complete url of the chat
define('C_CHAT_URL', 'http://www.mysite.net/chat/');
?>
|