|
// Once users have been logged in, the following values are overridden by those in config.php. |
|
// You should set these to be the same as the ones in config.php to avoid confusion. |
|
|
|
// Session identification, used for style and setting cookies: |
|
sessionName: 'ajax_chat', |
|
// The time in days until the style and setting cookies expire: |
|
cookieExpiration: 365, |
|
// The path of the cookies, '/' allows to read the cookies from all directories: |
|
cookiePath: '/', |
|
// The domain of the cookies, defaults to the hostname of the server if set to null: |
|
cookieDomain: null, |
|
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections: |
|
cookieSecure: false, |
|
// SameSite prevents the browser from sending this cookie along with cross-site requests. |
|
// The main goal is to mitigate the risk of cross-origin information leakage. It also provides |
|
// some protection against cross- site request forgery attacks.Possible values for the flag are none, lax, or strict: |
|
cookieSamesite: 'Lax', |
|
// The name of the chat bot: |
|
chatBotName: 'ChatBot', |
|
// The userID of the chat bot: |
|
chatBotID: 2147483647, |
|
// Allow/Disallow registered users to delete their own messages: |
|
allowUserMessageDelete: true, |
|
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes: |
|
inactiveTimeout: 2, |
|
// UserID plus this value are private channels (this is also the max userID and max channelID): |
|
privateChannelDiff: 500000000, |
|
// UserID plus this value are used for private messages: |
|
privateMessageDiff: 1000000000, |
|
// Defines if login/logout and channel enter/leave are displayed: |
|
showChannelMessages: true, |
|
// Max messageText length: |
|
messageTextMaxLength: 1040, |
|
|
|
// Debug allows console logging or alerts on caught errors - false/0 = no debug, true/1/2 = console log, 2 = alerts |
|
debug: false |
ToDo
This must be removed as it overwrites the configuration of the config.php file. This also puts an end to a source of error that causes the use of Ajax Chat to fail.
AJAX-Chat/public/js/config.js
Lines 215 to 250 in 352e51f