Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../ajaxchat
File: config.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* @package AJAX_Chat
[2] Fix | Delete
* @author Sebastian Tschan
[3] Fix | Delete
* @copyright (c) Sebastian Tschan
[4] Fix | Delete
* @license Modified MIT License
[5] Fix | Delete
* @link https://blueimp.net/ajax/
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
// Define AJAX Chat user roles:
[9] Fix | Delete
define('AJAX_CHAT_BANNED', 6);
[10] Fix | Delete
define('AJAX_CHAT_CUSTOM', 5);
[11] Fix | Delete
define('AJAX_CHAT_CHATBOT', 4);
[12] Fix | Delete
define('AJAX_CHAT_ADMIN', 3);
[13] Fix | Delete
define('AJAX_CHAT_MODERATOR', 2);
[14] Fix | Delete
define('AJAX_CHAT_USER', 1);
[15] Fix | Delete
define('AJAX_CHAT_GUEST', 0);
[16] Fix | Delete
[17] Fix | Delete
// AJAX Chat config parameters:
[18] Fix | Delete
$config = array();
[19] Fix | Delete
[20] Fix | Delete
// Database connection values:
[21] Fix | Delete
$config['dbConnection'] = array();
[22] Fix | Delete
// Database hostname:
[23] Fix | Delete
$config['dbConnection']['host'] = '[[softdbhost]]';
[24] Fix | Delete
// Database username:
[25] Fix | Delete
$config['dbConnection']['user'] = '[[softdbuser]]';
[26] Fix | Delete
// Database password:
[27] Fix | Delete
$config['dbConnection']['pass'] = '[[softdbpass]]';
[28] Fix | Delete
// Database name:
[29] Fix | Delete
$config['dbConnection']['name'] = '[[softdb]]';
[30] Fix | Delete
// Database type:
[31] Fix | Delete
$config['dbConnection']['type'] = null;
[32] Fix | Delete
// Database link:
[33] Fix | Delete
$config['dbConnection']['link'] = null;
[34] Fix | Delete
[35] Fix | Delete
// Database table names:
[36] Fix | Delete
$config['dbTableNames'] = array();
[37] Fix | Delete
$config['dbTableNames']['online'] = 'ajax_chat_online';
[38] Fix | Delete
$config['dbTableNames']['messages'] = 'ajax_chat_messages';
[39] Fix | Delete
$config['dbTableNames']['bans'] = 'ajax_chat_bans';
[40] Fix | Delete
$config['dbTableNames']['invitations'] = 'ajax_chat_invitations';
[41] Fix | Delete
[42] Fix | Delete
// Available languages:
[43] Fix | Delete
$config['langAvailable'] = array(
[44] Fix | Delete
'ar','bg','ca','cy','cz','da','de','el','en','es','et','fa','fi','fr','gl','he','hr','hu','in','it','ja','ka','kr','mk','nl','nl-be','no','pl','pt-br','pt-pt','ro','ru','sk','sl','sr','sv','th','tr','uk','zh','zh-tw'
[45] Fix | Delete
);
[46] Fix | Delete
// Default language:
[47] Fix | Delete
$config['langDefault'] = 'en';
[48] Fix | Delete
// Language names (each languge code in available languages must have a display name assigned here):
[49] Fix | Delete
$config['langNames'] = array(
[50] Fix | Delete
'ar'=>'عربي', 'bg'=>'Български', 'ca'=>'Català', 'cy'=>'Cymraeg', 'cz'=>'Česky', 'da'=>'Dansk', 'de'=>'Deutsch', 'el'=>'Ελληνικα', 'en'=>'English',
[51] Fix | Delete
'es'=>'Español', 'et'=>'Eesti', 'fa'=>'فارسی', 'fi'=>'Suomi', 'fr'=>'Français', 'gl'=>'Galego', 'he'=>'עברית', 'hr' => 'Hrvatski', 'hu' => 'Magyar', 'in'=>'Bahasa Indonesia', 'it'=>'Italiano',
[52] Fix | Delete
'ja'=>'日本語','ka'=>'ქართული','kr'=>'한 글','mk'=>'Македонски', 'nl'=>'Nederlands', 'nl-be'=>'Nederlands (België)', 'no'=>'Norsk', 'pl'=> 'Polski', 'pt-br'=>'Português (Brasil)', 'pt-pt'=>'Português (Portugal)',
[53] Fix | Delete
'ro'=>'România', 'ru'=>'Русский', 'sk'=> 'Slovenčina', 'sl'=>'Slovensko', 'sr'=>'Srpski', 'sv'=> 'Svenska', 'th'=>'&#x0e20;&#x0e32;&#x0e29;&#x0e32;&#x0e44;&#x0e17;&#x0e22;',
[54] Fix | Delete
'tr'=>'Türkçe', 'uk'=>'Українська', 'zh'=>'中文 (简体)', 'zh-tw'=>'中文 (繁體)'
[55] Fix | Delete
);
[56] Fix | Delete
[57] Fix | Delete
// Available styles:
[58] Fix | Delete
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Uranium','Pine','Plum','prosilver','Core','MyBB','vBulletin','XenForo');
[59] Fix | Delete
// Default style:
[60] Fix | Delete
$config['styleDefault'] = 'prosilver';
[61] Fix | Delete
[62] Fix | Delete
// The encoding used for the XHTML content:
[63] Fix | Delete
$config['contentEncoding'] = 'UTF-8';
[64] Fix | Delete
// The encoding of the data source, like userNames and channelNames:
[65] Fix | Delete
$config['sourceEncoding'] = 'UTF-8';
[66] Fix | Delete
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
[67] Fix | Delete
$config['contentType'] = null;
[68] Fix | Delete
[69] Fix | Delete
// Session name used to identify the session cookie:
[70] Fix | Delete
$config['sessionName'] = 'ajax_chat';
[71] Fix | Delete
// Prefix added to every session key:
[72] Fix | Delete
$config['sessionKeyPrefix'] = 'ajaxChat';
[73] Fix | Delete
// The lifetime of the language, style and setting cookies in days:
[74] Fix | Delete
$config['sessionCookieLifeTime'] = 365;
[75] Fix | Delete
// The path of the cookies, '/' allows to read the cookies from all directories:
[76] Fix | Delete
$config['sessionCookiePath'] = '/';
[77] Fix | Delete
// The domain of the cookies, defaults to the hostname of the server if set to null:
[78] Fix | Delete
$config['sessionCookieDomain'] = null;
[79] Fix | Delete
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
[80] Fix | Delete
$config['sessionCookieSecure'] = null;
[81] Fix | Delete
[82] Fix | Delete
// Default channelName used together with the defaultChannelID if no channel with this ID exists:
[83] Fix | Delete
$config['defaultChannelName'] = 'Public';
[84] Fix | Delete
// ChannelID used when no channel is given:
[85] Fix | Delete
$config['defaultChannelID'] = 0;
[86] Fix | Delete
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
[87] Fix | Delete
$config['limitChannelList'] = null;
[88] Fix | Delete
[89] Fix | Delete
// UserID plus this value are private channels (this is also the max userID and max channelID):
[90] Fix | Delete
$config['privateChannelDiff'] = 500000000;
[91] Fix | Delete
// UserID plus this value are used for private messages:
[92] Fix | Delete
$config['privateMessageDiff'] = 1000000000;
[93] Fix | Delete
[94] Fix | Delete
// Enable/Disable private Channels:
[95] Fix | Delete
$config['allowPrivateChannels'] = true;
[96] Fix | Delete
// Enable/Disable private Messages:
[97] Fix | Delete
$config['allowPrivateMessages'] = true;
[98] Fix | Delete
[99] Fix | Delete
// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
[100] Fix | Delete
$config['privateChannelPrefix'] = '[';
[101] Fix | Delete
// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
[102] Fix | Delete
$config['privateChannelSuffix'] = ']';
[103] Fix | Delete
[104] Fix | Delete
// If enabled, users will be logged in automatically as guest users (if allowed), if not authenticated:
[105] Fix | Delete
$config['forceAutoLogin'] = false;
[106] Fix | Delete
[107] Fix | Delete
// Defines if login/logout and channel enter/leave are displayed:
[108] Fix | Delete
$config['showChannelMessages'] = true;
[109] Fix | Delete
[110] Fix | Delete
// If enabled, the chat will only be accessible for the admin:
[111] Fix | Delete
$config['chatClosed'] = false;
[112] Fix | Delete
// Defines the timezone offset in seconds (-12*60*60 to 12*60*60) - if null, the server timezone is used:
[113] Fix | Delete
$config['timeZoneOffset'] = null;
[114] Fix | Delete
// Defines the hour of the day the chat is opened (0 - closingHour):
[115] Fix | Delete
$config['openingHour'] = 0;
[116] Fix | Delete
// Defines the hour of the day the chat is closed (openingHour - 24):
[117] Fix | Delete
$config['closingHour'] = 24;
[118] Fix | Delete
// Defines the weekdays the chat is opened (0=Sunday to 6=Saturday):
[119] Fix | Delete
$config['openingWeekDays'] = array(0,1,2,3,4,5,6);
[120] Fix | Delete
[121] Fix | Delete
// Enable/Disable guest logins:
[122] Fix | Delete
$config['allowGuestLogins'] = true;
[123] Fix | Delete
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
[124] Fix | Delete
$config['allowGuestWrite'] = true;
[125] Fix | Delete
// Allow/Disallow guest users to choose their own userName:
[126] Fix | Delete
$config['allowGuestUserName'] = true;
[127] Fix | Delete
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
[128] Fix | Delete
$config['guestUserPrefix'] = '(';
[129] Fix | Delete
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
[130] Fix | Delete
$config['guestUserSuffix'] = ')';
[131] Fix | Delete
// Guest userIDs may not be lower than this value (and not higher than privateChannelDiff):
[132] Fix | Delete
$config['minGuestUserID'] = 400000000;
[133] Fix | Delete
[134] Fix | Delete
// Allow/Disallow users to change their userName (Nickname):
[135] Fix | Delete
$config['allowNickChange'] = true;
[136] Fix | Delete
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
[137] Fix | Delete
$config['changedNickPrefix'] = '(';
[138] Fix | Delete
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
[139] Fix | Delete
$config['changedNickSuffix'] = ')';
[140] Fix | Delete
[141] Fix | Delete
// Allow/Disallow registered users to delete their own messages:
[142] Fix | Delete
$config['allowUserMessageDelete'] = true;
[143] Fix | Delete
[144] Fix | Delete
// The userID used for ChatBot messages:
[145] Fix | Delete
$config['chatBotID'] = 2147483647;
[146] Fix | Delete
// The userName used for ChatBot messages
[147] Fix | Delete
$config['chatBotName'] = 'ChatBot';
[148] Fix | Delete
[149] Fix | Delete
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
[150] Fix | Delete
$config['inactiveTimeout'] = 2;
[151] Fix | Delete
// Interval in minutes to check for inactive users:
[152] Fix | Delete
$config['inactiveCheckInterval'] = 5;
[153] Fix | Delete
[154] Fix | Delete
// Defines if messages are shown which have been sent before the user entered the channel:
[155] Fix | Delete
$config['requestMessagesPriorChannelEnter'] = true;
[156] Fix | Delete
// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
[157] Fix | Delete
$config['requestMessagesPriorChannelEnterList'] = null;
[158] Fix | Delete
// Max time difference in hours for messages to display on each request:
[159] Fix | Delete
$config['requestMessagesTimeDiff'] = 24;
[160] Fix | Delete
// Max number of messages to display on each request:
[161] Fix | Delete
$config['requestMessagesLimit'] = 10;
[162] Fix | Delete
[163] Fix | Delete
// Max users in chat (does not affect moderators or admins):
[164] Fix | Delete
$config['maxUsersLoggedIn'] = 100;
[165] Fix | Delete
// Max userName length:
[166] Fix | Delete
$config['userNameMaxLength'] = 16;
[167] Fix | Delete
// Max messageText length:
[168] Fix | Delete
$config['messageTextMaxLength'] = 1040;
[169] Fix | Delete
// Defines the max number of messages a user may send per minute:
[170] Fix | Delete
$config['maxMessageRate'] = 20;
[171] Fix | Delete
[172] Fix | Delete
// Defines the default time in minutes a user gets banned if kicked from a moderator without ban minutes parameter:
[173] Fix | Delete
$config['defaultBanTime'] = 5;
[174] Fix | Delete
[175] Fix | Delete
// Argument that is given to the handleLogout JavaScript method:
[176] Fix | Delete
$config['logoutData'] = './?logout=true';
[177] Fix | Delete
[178] Fix | Delete
// If true, checks if the user IP is the same when logged in:
[179] Fix | Delete
$config['ipCheck'] = true;
[180] Fix | Delete
[181] Fix | Delete
// Defines the max time difference in hours for logs when no period or search condition is given:
[182] Fix | Delete
$config['logsRequestMessagesTimeDiff'] = 1;
[183] Fix | Delete
// Defines how many logs are returned on each logs request:
[184] Fix | Delete
$config['logsRequestMessagesLimit'] = 10;
[185] Fix | Delete
[186] Fix | Delete
// Defines the earliest year used for the logs selection:
[187] Fix | Delete
$config['logsFirstYear'] = 2007;
[188] Fix | Delete
[189] Fix | Delete
// Defines if old messages are purged from the database:
[190] Fix | Delete
$config['logsPurgeLogs'] = false;
[191] Fix | Delete
// Max time difference in days for old messages before they are purged from the database:
[192] Fix | Delete
$config['logsPurgeTimeDiff'] = 365;
[193] Fix | Delete
[194] Fix | Delete
// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
[195] Fix | Delete
$config['logsUserAccess'] = false;
[196] Fix | Delete
// Defines a list of channels (e.g. array(0, 1)) to limit the logs access for registered users, includes all channels the user has access to if set to null:
[197] Fix | Delete
$config['logsUserAccessChannelList'] = null;
[198] Fix | Delete
[199] Fix | Delete
// Defines if the socket server is enabled:
[200] Fix | Delete
$config['socketServerEnabled'] = false;
[201] Fix | Delete
// Defines the hostname of the socket server used to connect from client side (the server hostname is used if set to null):
[202] Fix | Delete
$config['socketServerHost'] = null;
[203] Fix | Delete
// Defines the IP of the socket server used to connect from server side to broadcast update messages:
[204] Fix | Delete
$config['socketServerIP'] = '127.0.0.1';
[205] Fix | Delete
// Defines the port of the socket server:
[206] Fix | Delete
$config['socketServerPort'] = 1935;
[207] Fix | Delete
// This ID can be used to distinguish between different chat installations using the same socket server:
[208] Fix | Delete
$config['socketServerChatID'] = 0;
[209] Fix | Delete
?>
[210] Fix | Delete
[211] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function