forked from iflylabs/iflychat-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iflychatsettings.php
executable file
·298 lines (194 loc) · 7.55 KB
/
iflychatsettings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?php
/**
* @package iFlyChat
* @version 1.0.0
* @copyright Copyright (C) 2014 iFlyChat. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @author iFlyChat Team
* @link https://iflychat.com
*/
class iFlyChatSettings {
public $iflychat_settings;
public function __construct() {
$this->iflychat_settings = array(
/**
* api_key - Get a valid API key from following instructions given here - https://iflychat.com/installation-php-client
*/
'api_key' => 'XXXXXXX',
/**
* base - The base url of your website
*/
'base' => 'http://localhost/iflychat-php/',
/**
* path - The relative path from home or base URL to where this file is present
*/
'path' => '',
/**
* theme - The theme of the chat. Valid values are 'light' and 'dark'.
*/
'theme' => 'light',
/**
* user_picture - Display user avatars or pictures. Valid values are TRUE and FALSE.
*/
'user_picture' => TRUE,
/**
* notification sound - Enable sound notification by default. Valid values are TRUE and FALSE.
*/
'notification_sound' => TRUE,
/**
* enable_smileys - Enable emoticons.
* Valid values are TRUE and FALSE.
*/
'enable_smileys' => TRUE,
/**
* enable_mobile_browser_app - Enable browser based Mobile app.
* Valid values are TRUE and FALSE.
*/
'enable_mobile_browser_app' => TRUE,
/**
* log_chat - Enable logging of chat messages. Valid values are TRUE and FALSE.
*/
'log_chat' => TRUE,
/**
* anon_prefix - Prefix to be used with anonymous users (4 to 7 characters)
*/
'anon_prefix' => 'Guest',
/**
* anon_use_name - Select whether to use random generated name or number to assign to a new anonymous user
* Valid values are TRUE and FALSE
* TRUE - Use random names
* FALSE - Use random numbers
*/
'anon_use_name' => TRUE,
/**
* anon_change_name - Select whether user can change his/her name
* Valid values are TRUE and FALSE
* TRUE - Yes
* FALSE - No
*/
'anon_change_name' => TRUE,
/**
* public_chatroom - Enable public chatroom.
* Valid values are TRUE and FALSE.
*/
'public_chatroom' => TRUE,
/**
* allow_user_font_color - Specify whether to allow users to set color of their name in a room
*
* Valid values are TRUE and FALSE
**/
'allow_user_font_color' => TRUE,
/**
* chat_topbar_color - Chat Top Bar Color
*/
'chat_topbar_color' => '#222222',
/**
* chat_topbar_text_color - Chat Top Bar Text Color
*/
'chat_topbar_text_color' => '#FFFFFF',
/**
* chat_font_color - Chat Font Color
*/
'chat_font_color' => '#222222',
/**
* public_chatroom_header - Public Chatroom Header
*/
'public_chatroom_header' => 'Public Chatroom',
/**
* chat_list_header - Chat List Header
*/
'chat_list_header' => 'Chat',
/**
* stop_word_list - Stop Words (separated by comma)
*/
'stop_word_list' => 'asshole,assholes,bastard,beastial,beastiality,beastility,bestial,bestiality,bitch,bitcher,bitchers,bitches,bitchin,bitching,blowjob,blowjobs,bullshit,clit,cock,cocks,cocksuck,cocksucked,cocksucker,cocksucking,cocksucks,cum,cummer,cumming,cums,cumshot,cunillingus,cunnilingus,cunt,cuntlick,cuntlicker,cuntlicking,cunts,cyberfuc,cyberfuck,cyberfucked,cyberfucker,cyberfuckers,cyberfucking,damn,dildo,dildos,dick,dink,dinks,ejaculate,ejaculated,ejaculates,ejaculating,ejaculatings,ejaculation,fag,fagging,faggot,faggs,fagot,fagots,fags,fart,farted,farting,fartings,farts,farty,felatio,fellatio,fingerfuck,fingerfucked,fingerfucker,fingerfuckers,fingerfucking,fingerfucks,fistfuck,fistfucked,fistfucker,fistfuckers,fistfucking,fistfuckings,fistfucks,fuck,fucked,fucker,fuckers,fuckin,fucking,fuckings,fuckme,fucks,fuk,fuks,gangbang,gangbanged,gangbangs,gaysex,goddamn,hardcoresex,horniest,horny,hotsex,jism,jiz,jizm,kock,kondum,kondums,kum,kumer,kummer,kumming,kums,kunilingus,lust,lusting,mothafuck,mothafucka,mothafuckas,mothafuckaz,mothafucked,mothafucker,mothafuckers,mothafuckin,mothafucking,mothafuckings,mothafucks,motherfuck,motherfucked,motherfucker,motherfuckers,motherfuckin,motherfucking,motherfuckings,motherfucks,niger,nigger,niggers,orgasim,orgasims,orgasm,orgasms,phonesex,phuk,phuked,phuking,phukked,phukking,phuks,phuq,pis,piss,pisser,pissed,pisser,pissers,pises,pisses,pisin,pissin,pising,pissing,pisof,pissoff,porn,porno,pornography,pornos,prick,pricks,pussies,pusies,pussy,pusy,pussys,pusys,slut,sluts,smut,spunk',
/**
* use_stop_word_list - Specify how to use Stop Words to filter chat
*
* Valid values are defined below:
* 1 - Don't filter
* 2 - Filter in public chatroom
* 3 - Filter in private chats
* 4 - Filter in all rooms
*/
'use_stop_word_list' => '4',
/**
* stop_links - Specify whether to allow/block hyperlinks posted in chats
*
* Valid values are defined below:
*
* 1 - Don't block
* 2 - Block in public chatroom
* 3 - Block in private chats
* 4 - Block in all rooms
*/
'stop_links' => '1',
/**
* allow_anon_links - Specify whether to apply above defined hyperlinks setting only to unregistered users
* Valid values are TRUE and FALSE
*/
'allow_anon_links' => TRUE,
/**
* allow_render_images - Specify whether to render image and video hyperlinks inline in chat
* Valid values are TRUE and FALSE
*/
'allow_render_images' => TRUE,
/**
* enable_file_attachment - Specify whether to allow user to share/upload file in chat
* Valid values are TRUE and FALSE
*/
'enable_file_attachment' => TRUE,
/**
* allow_single_message_delete - Specify whether to allow users to delete messages selectively when in private conversation
*
* Valid values are defined below:
* 1 - Allow all users
* 2 - Allow only moderators
* 3 - Disable
*/
'allow_single_message_delete' => '1',
/**
* allow_clear_room_history - Specify whether to allow users to clear all messages in a room
*
* Valid values are defined below:
* 1 - Allow all users
* 2 - Allow only moderators
* 3 - Disable
*/
'allow_clear_room_history' => '1',
/**
* chat_type - Specify which chat version to use
*
* Valid values are defined below:
* 1 - Community Chat
* 2 - Support Chat
*/
'chat_type' => '1',
/**
* enable_search_bar - Specify whether to display search bar in online user list
* Valid values are TRUE and FALSE
* TRUE - Yes
* FALSE - No
*/
'enable_search_bar' => TRUE,
/**
* minimize_chat_user_list - Specify whether to minimize online user list on page load
* Valid values are TRUE and FALSE
* TRUE - Yes
* FALSE - No
*/
'minimize_chat_user_list' => FALSE,
'enable_user_group_filtering' => FALSE,
'enable_user_relationships' => FALSE,
'load_async' => TRUE,
/**
* ajax_file - Do not change this value
*/
'ajax_file' => 'ajax-chat.php',
/**
* mobile_file - Do not change this value
*/
'mobile_file' => 'mobile-chat.php',
);
}
}