This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
1 | <?php declare(strict_types=1); |
||
2 | /* |
||
3 | You may not change or alter any portion of this comment or credits |
||
4 | of supporting developers from this source code or any supporting source code |
||
5 | which is considered copyrighted (c) material of the original comment or credit authors. |
||
6 | This program is distributed in the hope that it will be useful, |
||
7 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
9 | */ |
||
10 | /** |
||
11 | * @category Module |
||
12 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
13 | * @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) |
||
14 | * @author Marcello Brandão aka Suico, Mamba, LioMJ <https://xoops.org> |
||
15 | */ |
||
16 | $moduleDirName = basename( |
||
17 | __DIR__ |
||
18 | ); |
||
19 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
||
20 | // ------------------- Information ------------------- / |
||
21 | $modversion = [ |
||
22 | 'version' => '3.5.1', |
||
23 | 'module_status' => 'Beta-1', |
||
24 | 'release_date' => '2022/10/06', |
||
25 | 'name' => _MI_SUICO_MODULE_NAME, |
||
26 | 'description' => _MI_SUICO_MODULEDESC, |
||
27 | 'official' => 0, |
||
28 | //1 indicates official XOOPS module supported by XOOPS Dev Team, 0 means 3rd party supported |
||
29 | 'author' => 'Marcello Brandao', |
||
30 | 'credits' => 'XOOPS Development Team, The ImpressCMS Project, Jquery Lightbox, Komeia, vaughan, mamba, liomj', |
||
31 | 'author_mail' => 'author-email', |
||
32 | 'author_website_url' => 'https://xoops.org', |
||
33 | 'author_website_name' => 'XOOPS', |
||
34 | 'license' => 'GPL 2.0 or later', |
||
35 | 'license_url' => 'www.gnu.org/licenses/gpl-2.0.html/', |
||
36 | 'help' => 'page=help', |
||
37 | // ------------------- Folders & Files ------------------- |
||
38 | 'release_info' => 'Changelog', |
||
39 | 'release_file' => XOOPS_URL . "/modules/{$moduleDirName}/docs/changelog.txt", |
||
40 | 'manual' => 'link to manual file', |
||
41 | 'manual_file' => XOOPS_URL . "/modules/{$moduleDirName}/docs/install.txt", |
||
42 | // images |
||
43 | 'image' => 'assets/images/logoModule.png', |
||
44 | 'iconsmall' => 'assets/images/iconsmall.png', |
||
45 | 'iconbig' => 'assets/images/iconbig.png', |
||
46 | 'dirname' => $moduleDirName, |
||
47 | 'modicons16' => 'assets/images/icons/16', |
||
48 | 'modicons32' => 'assets/images/icons/32', |
||
49 | 'demo_site_url' => 'https://xoops.org', |
||
50 | 'demo_site_name' => 'XOOPS Demo Site', |
||
51 | 'support_url' => 'https://github.com/XoopsModules25x/' . $moduleDirName . '/issues', |
||
52 | 'support_name' => 'Support Forum', |
||
53 | 'submit_bug' => 'https://github.com/XoopsModules25x/' . $moduleDirName . '/issues', |
||
54 | 'module_website_url' => 'https://xoops.org', |
||
55 | 'module_website_name' => 'XOOPS Project', |
||
56 | // ------------------- Min Requirements ------------------- |
||
57 | 'min_php' => '7.1', |
||
58 | 'min_xoops' => '2.5.10', |
||
59 | 'min_admin' => '1.2', |
||
60 | 'min_db' => [ |
||
61 | 'mysql' => '5.5', |
||
62 | ], |
||
63 | // ------------------- Admin Menu ------------------- |
||
64 | 'system_menu' => 1, |
||
65 | 'hasAdmin' => 1, |
||
66 | 'adminindex' => 'admin/index.php', |
||
67 | 'adminmenu' => 'admin/menu.php', |
||
68 | // ------------------- Main Menu ------------------- |
||
69 | 'hasMain' => 1, |
||
70 | // ------------------- Install/Update ------------------- |
||
71 | 'onInstall' => 'include/oninstall.php', |
||
72 | 'onUpdate' => 'include/onupdate.php', |
||
73 | 'onUninstall' => 'include/onuninstall.php', |
||
74 | // ------------------- PayPal --------------------------- |
||
75 | 'paypal' => [ |
||
76 | 'business' => '[email protected]', |
||
77 | 'item_name' => 'Donation : ' . _MI_SUICO_MODULE_NAME, |
||
78 | 'amount' => 0, |
||
79 | 'currency_code' => 'USD', |
||
80 | ], |
||
81 | // ------------------- Mysql ----------------------------- |
||
82 | 'sqlfile' => [ |
||
83 | 'mysql' => 'sql/mysql.sql', |
||
84 | ], |
||
85 | // ------------------- Tables ---------------------------- |
||
86 | 'tables' => [ |
||
87 | $moduleDirName . '_' . 'friendrequests', |
||
88 | $moduleDirName . '_' . 'friendships', |
||
89 | $moduleDirName . '_' . 'images', |
||
90 | $moduleDirName . '_' . 'visitors', |
||
91 | $moduleDirName . '_' . 'videos', |
||
92 | $moduleDirName . '_' . 'relgroupuser', |
||
93 | $moduleDirName . '_' . 'groups', |
||
94 | $moduleDirName . '_' . 'notes', |
||
95 | $moduleDirName . '_' . 'configs', |
||
96 | $moduleDirName . '_' . 'suspensions', |
||
97 | $moduleDirName . '_' . 'audios', |
||
98 | $moduleDirName . '_' . 'privacy', |
||
99 | $moduleDirName . '_' . 'profile', |
||
100 | $moduleDirName . '_' . 'profile_category', |
||
101 | $moduleDirName . '_' . 'profile_field', |
||
102 | $moduleDirName . '_' . 'profile_regstep', |
||
103 | $moduleDirName . '_' . 'profile_visibility', |
||
104 | ], |
||
105 | ]; |
||
106 | // ------------------- Help files ------------------- // |
||
107 | $modversion['helpsection'] = [ |
||
108 | [ |
||
109 | 'name' => _MI_SUICO_OVERVIEW, |
||
110 | 'link' => 'page=help', |
||
111 | ], |
||
112 | [ |
||
113 | 'name' => _MI_SUICO_DISCLAIMER, |
||
114 | 'link' => 'page=disclaimer', |
||
115 | ], |
||
116 | [ |
||
117 | 'name' => _MI_SUICO_LICENSE, |
||
118 | 'link' => 'page=license', |
||
119 | ], |
||
120 | [ |
||
121 | 'name' => _MI_SUICO_SUPPORT, |
||
122 | 'link' => 'page=support', |
||
123 | ], |
||
124 | ]; |
||
125 | // SX Updater/Installer |
||
126 | $modversion['simpleversion'] = '3.4'; |
||
127 | $modversion['simplename'] = 'suico'; |
||
128 | $modversion['simpleid'] = 22; |
||
129 | //Adicionado para rodar no about |
||
130 | $modversion['developer_website_url'] = 'https://sourceforge.net/projects/galeriasuico/'; |
||
131 | $modversion['developer_website_name'] = 'Sourceforge - galeriasuico'; |
||
132 | $modversion['developer_email'] = '[email protected]'; |
||
133 | $modversion['status_version'] = 'Beta'; |
||
134 | $modversion['status'] = 'Beta'; |
||
135 | $modversion['date'] = '2017-11-11'; |
||
136 | $modversion['people']['developers'][] = 'Suico (Dev)'; |
||
137 | $modversion['people']['developers'][] = 'Alfred (Dev)'; |
||
138 | $modversion['people']['developers'][] = 'm0nty_ (Dev)'; |
||
139 | $modversion['people']['developers'][] = 'sato-san (Design)'; |
||
140 | $modversion['people']['testers'][] = 'Luix (xoopstotal.com.br)'; |
||
141 | $modversion['people']['testers'][] = 'BoOot (xoopstotal.com.br)'; |
||
142 | $modversion['people']['testers'][] = 'Rodrigo (komeia)'; |
||
143 | $modversion['people']['testers'][] = 'Casar Felipe (komeia)'; |
||
144 | $modversion['people']['translators'][] = 'Wizanda (english)'; |
||
145 | $modversion['people']['translators'][] = 'Daniel Woo (simplified chinese)'; |
||
146 | $modversion['people']['translators'][] = 'Werner Feichtlbauer (german)'; |
||
147 | $modversion['people']['translators'][] = 'Francesco (italian)'; |
||
148 | $modversion['people']['translators'][] = 'Erik Philippe (french)'; |
||
149 | //$modversion['people']['documenters'][] = "documenter 1"; |
||
150 | $modversion['people']['other'][] = 'Komeia (patrocanio)'; |
||
151 | $modversion['demo_site_url'] = 'https://www.marcellobrandao.eti.br'; |
||
152 | $modversion['demo_site_name'] = 'Marcello Brandao Site'; |
||
153 | $modversion['support_site_url'] = 'https://sourceforge.net/projects/galeriasuico/'; |
||
154 | $modversion['support_site_name'] = 'Sourceforge'; |
||
155 | $modversion['submit_bug'] = 'https://sourceforge.net/tracker/?func=add&group_id=204109&atid=988288'; |
||
156 | $modversion['submit_feature'] = 'https://sourceforge.net/tracker/?func=add&group_id=204109&atid=988291'; |
||
157 | //$modversion['config'][1]['valuetype'] = 'int'; |
||
158 | //can be 'int', 'float', 'textarea' or 'array'. All items with formtype 'multi_xxx' must have the valuetype 'array' |
||
159 | xoops_load( |
||
160 | 'xoopseditorhandler' |
||
161 | ); |
||
162 | |||
163 | //Configs |
||
164 | $modversion['config'][] = [ |
||
165 | 'name' => 'general_configs', |
||
166 | 'title' => '_MI_SUICO_CONFIG_GENERAL', |
||
167 | 'description' => '_MI_SUICO_CONFIG_GENERALDSC', |
||
168 | 'formtype' => 'line_break', |
||
169 | 'valuetype' => 'textbox', |
||
170 | 'default' => 'odd', |
||
171 | 'category' => 'group_header', |
||
172 | ]; |
||
173 | $modversion['config'][] = [ |
||
174 | 'name' => 'adminpager', |
||
175 | 'title' => 'MI_SUICO_ADMINPAGER', |
||
176 | 'description' => 'MI_SUICO_ADMINPAGER_DESC', |
||
177 | 'formtype' => 'textbox', |
||
178 | 'valuetype' => 'int', |
||
179 | 'default' => 10, |
||
180 | ]; |
||
181 | $modversion['config'][] = [ |
||
182 | 'name' => 'userpager', |
||
183 | 'title' => 'MI_SUICO_USERPAGER', |
||
184 | 'description' => 'MI_SUICO_USERPAGER_DESC', |
||
185 | 'formtype' => 'textbox', |
||
186 | 'valuetype' => 'int', |
||
187 | 'default' => 10, |
||
188 | ]; |
||
189 | $modversion['config'][] = [ |
||
190 | 'name' => 'enable_guestaccess', |
||
191 | 'title' => '_MI_SUICO_ENABLEGUESTACCESS_TITLE', |
||
192 | 'description' => '_MI_SUICO_ENABLEGUESTACCESS_DESC', |
||
193 | 'formtype' => 'yesno', |
||
194 | 'valuetype' => 'int', |
||
195 | 'default' => 0, |
||
196 | 'category' => 'general', |
||
197 | ]; |
||
198 | $modversion['config'][] = [ |
||
199 | 'name' => 'displaybreadcrumb', |
||
200 | 'title' => '_MI_SUICO_DISPLAYBREADCRUMB', |
||
201 | 'description' => '_MI_SUICO_DISPLAYBREADCRUMB_DSC', |
||
202 | 'formtype' => 'yesno', |
||
203 | 'valuetype' => 'int', |
||
204 | 'default' => 1, |
||
205 | 'category' => 'general', |
||
206 | ]; |
||
207 | $modversion['config'][] = [ |
||
208 | 'name' => 'allow_usersuspension', |
||
209 | 'title' => '_MI_SUICO_ENABLEUSERSUSPENSION_TITLE', |
||
210 | 'description' => '_MI_SUICO_ENABLEUSERSUSPENSION_DESC', |
||
211 | 'formtype' => 'yesno', |
||
212 | 'valuetype' => 'int', |
||
213 | 'default' => 0, |
||
214 | 'category' => 'general', |
||
215 | ]; |
||
216 | $modversion['config'][] = [ |
||
217 | 'name' => 'profile_search', |
||
218 | 'title' => '_MI_SUICO_PROFILE_SEARCH', |
||
219 | 'description' => '', |
||
220 | 'formtype' => 'yesno', |
||
221 | 'valuetype' => 'int', |
||
222 | 'default' => 1, |
||
223 | 'category' => 'general', |
||
224 | ]; |
||
225 | $modversion['config'][] = [ |
||
226 | 'name' => 'profileCaptchaAfterStep1', |
||
227 | 'title' => '_MI_SUICO_PROFILE_CAPTCHA_STEP1', |
||
228 | 'description' => '_MI_SUICO_PROFILE_CAPTCHA_STEP1_DESC', |
||
229 | 'formtype' => 'yesno', |
||
230 | 'valuetype' => 'int', |
||
231 | 'default' => 1, |
||
232 | 'category' => 'general', |
||
233 | ]; |
||
234 | // group header |
||
235 | $modversion['config'][] = [ |
||
236 | 'name' => 'notes_config', |
||
237 | 'title' => '_MI_SUICO_CONFIG_NOTES', |
||
238 | 'description' => '_MI_SUICO_CONFIG_NOTESDSC', |
||
239 | 'formtype' => 'line_break', |
||
240 | 'valuetype' => 'textbox', |
||
241 | 'default' => 'odd', |
||
242 | 'category' => 'group_header', |
||
243 | ]; |
||
244 | $modversion['config'][] = [ |
||
245 | 'name' => 'enable_notes', |
||
246 | 'title' => '_MI_SUICO_ENABLENOTES_TITLE', |
||
247 | 'description' => '_MI_SUICO_ENABLENOTES_DESC', |
||
248 | 'default' => 1, |
||
249 | 'formtype' => 'yesno', |
||
250 | 'valuetype' => 'int', |
||
251 | 'category' => 'notes', |
||
252 | ]; |
||
253 | $modversion['config'][] = [ |
||
254 | 'name' => 'notesperpage', |
||
255 | 'title' => '_MI_SUICO_NOTESPERPAGE_TITLE', |
||
256 | 'description' => '_MI_SUICO_NOTESPERPAGE_DESC', |
||
257 | 'default' => 20, |
||
258 | 'formtype' => 'textbox', |
||
259 | 'valuetype' => 'int', |
||
260 | 'category' => 'notes', |
||
261 | ]; |
||
262 | // group header |
||
263 | $modversion['config'][] = [ |
||
264 | 'name' => 'photos_config', |
||
265 | 'title' => '_MI_SUICO_CONFIG_PHOTOS', |
||
266 | 'description' => '_MI_SUICO_CONFIG_PHOTOSDSC', |
||
267 | 'formtype' => 'line_break', |
||
268 | 'valuetype' => 'textbox', |
||
269 | 'default' => 'odd', |
||
270 | 'category' => 'group_header', |
||
271 | ]; |
||
272 | $modversion['config'][] = [ |
||
273 | 'name' => 'enable_pictures', |
||
274 | 'title' => '_MI_SUICO_ENABLEPICT_TITLE', |
||
275 | 'description' => '_MI_SUICO_ENABLEPICT_DESC', |
||
276 | 'default' => 1, |
||
277 | 'formtype' => 'yesno', |
||
278 | 'valuetype' => 'int', |
||
279 | 'category' => 'photos', |
||
280 | ]; |
||
281 | $modversion['config'][] = [ |
||
282 | 'name' => 'countPicture', |
||
283 | 'title' => '_MI_SUICO_NUMBPICT_TITLE', |
||
284 | 'description' => '_MI_SUICO_NUMBPICT_DESC', |
||
285 | 'default' => 12, |
||
286 | 'formtype' => 'textbox', |
||
287 | 'valuetype' => 'int', |
||
288 | 'category' => 'photos', |
||
289 | ]; |
||
290 | $modversion['config'][] = [ |
||
291 | 'name' => 'resized_width', |
||
292 | 'title' => '_MI_SUICO_RESIZEDW_TITLE', |
||
293 | 'description' => '_MI_SUICO_RESIZEDW_DESC', |
||
294 | 'default' => 650, |
||
295 | 'formtype' => 'textbox', |
||
296 | 'valuetype' => 'int', |
||
297 | 'category' => 'photos', |
||
298 | ]; |
||
299 | $modversion['config'][] = [ |
||
300 | 'name' => 'resized_height', |
||
301 | 'title' => '_MI_SUICO_RESIZEDH_TITLE', |
||
302 | 'description' => '_MI_SUICO_RESIZEDH_DESC', |
||
303 | 'default' => 450, |
||
304 | 'formtype' => 'textbox', |
||
305 | 'valuetype' => 'int', |
||
306 | 'category' => 'photos', |
||
307 | ]; |
||
308 | $modversion['config'][] = [ |
||
309 | 'name' => 'max_original_width', |
||
310 | 'title' => '_MI_SUICO_ORIGINALW_TITLE', |
||
311 | 'description' => '_MI_SUICO_ORIGINALW_DESC', |
||
312 | 'default' => 2048, |
||
313 | 'formtype' => 'textbox', |
||
314 | 'valuetype' => 'int', |
||
315 | 'category' => 'photos', |
||
316 | ]; |
||
317 | $modversion['config'][] = [ |
||
318 | 'name' => 'max_original_height', |
||
319 | 'title' => '_MI_SUICO_ORIGINALH_TITLE', |
||
320 | 'description' => '_MI_SUICO_ORIGINALH_DESC', |
||
321 | 'default' => 1600, |
||
322 | 'formtype' => 'textbox', |
||
323 | 'valuetype' => 'int', |
||
324 | 'category' => 'photos', |
||
325 | ]; |
||
326 | $modversion['config'][] = [ |
||
327 | 'name' => 'maxfilesize', |
||
328 | 'title' => '_MI_SUICO_MAXFILEBYTES_TITLE', |
||
329 | 'description' => '_MI_SUICO_MAXFILEBYTES_DESC', |
||
330 | 'default' => 2048000, |
||
331 | 'formtype' => 'textbox', |
||
332 | 'valuetype' => 'int', |
||
333 | 'category' => 'photos', |
||
334 | ]; |
||
335 | $modversion['config'][] = [ |
||
336 | 'name' => 'thumb_width', |
||
337 | 'title' => '_MI_SUICO_THUMW_TITLE', |
||
338 | 'description' => '_MI_SUICO_THUMBW_DESC', |
||
339 | 'default' => 125, |
||
340 | 'formtype' => 'textbox', |
||
341 | 'valuetype' => 'int', |
||
342 | 'category' => 'photos', |
||
343 | ]; |
||
344 | $modversion['config'][] = [ |
||
345 | 'name' => 'thumb_height', |
||
346 | 'title' => '_MI_SUICO_THUMBH_TITLE', |
||
347 | 'description' => '_MI_SUICO_THUMBH_DESC', |
||
348 | 'default' => 175, |
||
349 | 'formtype' => 'textbox', |
||
350 | 'valuetype' => 'int', |
||
351 | 'category' => 'photos', |
||
352 | ]; |
||
353 | $modversion['config'][] = [ |
||
354 | 'name' => 'picturesperpage', |
||
355 | 'title' => '_MI_SUICO_PICTURESPERPAGE_TITLE', |
||
356 | 'description' => '_MI_SUICO_PICTURESPERPAGE_DESC', |
||
357 | 'default' => 6, |
||
358 | 'formtype' => 'textbox', |
||
359 | 'valuetype' => 'int', |
||
360 | 'category' => 'photos', |
||
361 | ]; |
||
362 | $modversion['config'][] = [ |
||
363 | 'name' => 'images_order', |
||
364 | 'title' => '_MI_SUICO_IMGORDER_TITLE', |
||
365 | 'description' => '_MI_SUICO_IMGORDER_DESC', |
||
366 | 'default' => 1, |
||
367 | 'formtype' => 'yesno', |
||
368 | 'valuetype' => 'int', |
||
369 | 'category' => 'photos', |
||
370 | ]; |
||
371 | // group header |
||
372 | $modversion['config'][] = [ |
||
373 | 'name' => 'audios_config', |
||
374 | 'title' => '_MI_SUICO_CONFIG_AUDIOS', |
||
375 | 'description' => '_MI_SUICO_CONFIG_AUDIOSDSC', |
||
376 | 'formtype' => 'line_break', |
||
377 | 'valuetype' => 'textbox', |
||
378 | 'default' => 'odd', |
||
379 | 'category' => 'group_header', |
||
380 | ]; |
||
381 | $modversion['config'][] = [ |
||
382 | 'name' => 'enable_audio', |
||
383 | 'title' => '_MI_SUICO_ENABLEAUDIO_TITLE', |
||
384 | 'description' => '_MI_SUICO_ENABLEAUDIO_DESC', |
||
385 | 'default' => 1, |
||
386 | 'formtype' => 'yesno', |
||
387 | 'valuetype' => 'int', |
||
388 | 'category' => 'audios', |
||
389 | ]; |
||
390 | $modversion['config'][] = [ |
||
391 | 'name' => 'countAudio', |
||
392 | 'title' => '_MI_SUICO_NUMBAUDIO_TITLE', |
||
393 | 'description' => '_MI_SUICO_NUMBAUDIO_DESC', |
||
394 | 'default' => 12, |
||
395 | 'formtype' => 'textbox', |
||
396 | 'valuetype' => 'int', |
||
397 | 'category' => 'audios', |
||
398 | ]; |
||
399 | $modversion['config'][] = [ |
||
400 | 'name' => 'audiosperpage', |
||
401 | 'title' => '_MI_SUICO_AUDIOSPERPAGE_TITLE', |
||
402 | 'description' => '_MI_SUICO_AUDIOSPERPAGE_DESC', |
||
403 | 'default' => 20, |
||
404 | 'formtype' => 'textbox', |
||
405 | 'valuetype' => 'int', |
||
406 | 'category' => 'audios', |
||
407 | ]; |
||
408 | // group header |
||
409 | $modversion['config'][] = [ |
||
410 | 'name' => 'videos_config', |
||
411 | 'title' => '_MI_SUICO_CONFIG_VIDEOS', |
||
412 | 'description' => '_MI_SUICO_CONFIG_VIDEOSDSC', |
||
413 | 'formtype' => 'line_break', |
||
414 | 'valuetype' => 'textbox', |
||
415 | 'default' => 'odd', |
||
416 | 'category' => 'group_header', |
||
417 | ]; |
||
418 | $modversion['config'][] = [ |
||
419 | 'name' => 'enable_videos', |
||
420 | 'title' => '_MI_SUICO_ENABLEVIDEOS_TITLE', |
||
421 | 'description' => '_MI_SUICO_ENABLEVIDEOS_DESC', |
||
422 | 'default' => 1, |
||
423 | 'formtype' => 'yesno', |
||
424 | 'valuetype' => 'int', |
||
425 | 'category' => 'videos', |
||
426 | ]; |
||
427 | $modversion['config'][] = [ |
||
428 | 'name' => 'videosperpage', |
||
429 | 'title' => '_MI_SUICO_VIDEOSPERPAGE_TITLE', |
||
430 | 'description' => '_MI_SUICO_VIDEOSPERPAGE_DESC', |
||
431 | 'default' => 6, |
||
432 | 'formtype' => 'textbox', |
||
433 | 'valuetype' => 'int', |
||
434 | 'category' => 'videos', |
||
435 | ]; |
||
436 | $modversion['config'][] = [ |
||
437 | 'name' => 'width_tube', |
||
438 | 'title' => '_MI_SUICO_TUBEW_TITLE', |
||
439 | 'description' => '_MI_SUICO_TUBEW_DESC', |
||
440 | 'default' => 450, |
||
441 | 'formtype' => 'textbox', |
||
442 | 'valuetype' => 'int', |
||
443 | 'category' => 'videos', |
||
444 | ]; |
||
445 | $modversion['config'][] = [ |
||
446 | 'name' => 'height_tube', |
||
447 | 'title' => '_MI_SUICO_TUBEH_TITLE', |
||
448 | 'description' => '_MI_SUICO_TUBEH_DESC', |
||
449 | 'default' => 350, |
||
450 | 'formtype' => 'textbox', |
||
451 | 'valuetype' => 'int', |
||
452 | 'category' => 'videos', |
||
453 | ]; |
||
454 | $modversion['config'][] = [ |
||
455 | 'name' => 'width_maintube', |
||
456 | 'title' => '_MI_SUICO_MAINTUBEW_TITLE', |
||
457 | 'description' => '_MI_SUICO_MAINTUBEW_DESC', |
||
458 | 'default' => 250, |
||
459 | 'formtype' => 'textbox', |
||
460 | 'valuetype' => 'int', |
||
461 | 'category' => 'videos', |
||
462 | ]; |
||
463 | $modversion['config'][] = [ |
||
464 | 'name' => 'height_maintube', |
||
465 | 'title' => '_MI_SUICO_MAINTUBEH_TITLE', |
||
466 | 'description' => '_MI_SUICO_MAINTUBEH_DESC', |
||
467 | 'default' => 210, |
||
468 | 'formtype' => 'textbox', |
||
469 | 'valuetype' => 'int', |
||
470 | 'category' => 'videos', |
||
471 | ]; |
||
472 | // group header |
||
473 | $modversion['config'][] = [ |
||
474 | 'name' => 'friends_config', |
||
475 | 'title' => '_MI_SUICO_CONFIG_FRIENDS', |
||
476 | 'description' => '_MI_SUICO_CONFIG_FRIENDSDSC', |
||
477 | 'formtype' => 'line_break', |
||
478 | 'valuetype' => 'textbox', |
||
479 | 'default' => 'odd', |
||
480 | 'category' => 'group_header', |
||
481 | ]; |
||
482 | $modversion['config'][] = [ |
||
483 | 'name' => 'enable_friends', |
||
484 | 'title' => '_MI_SUICO_ENABLEFRIENDS_TITLE', |
||
485 | 'description' => '_MI_SUICO_ENABLEFRIENDS_DESC', |
||
486 | 'default' => 1, |
||
487 | 'formtype' => 'yesno', |
||
488 | 'valuetype' => 'int', |
||
489 | 'category' => 'friends', |
||
490 | ]; |
||
491 | $modversion['config'][] = [ |
||
492 | 'name' => 'friendsperpage', |
||
493 | 'title' => '_MI_SUICO_FRIENDSPERPAGE_TITLE', |
||
494 | 'description' => '_MI_SUICO_FRIENDSPERPAGE_DESC', |
||
495 | 'default' => 12, |
||
496 | 'formtype' => 'textbox', |
||
497 | 'valuetype' => 'int', |
||
498 | 'category' => 'friends', |
||
499 | ]; |
||
500 | $modversion['config'][] = [ |
||
501 | 'name' => 'allow_friendshiplevel', |
||
502 | 'title' => '_MI_SUICO_ENABLEFRIENDSHIPLEVEL_TITLE', |
||
503 | 'description' => '_MI_SUICO_ENABLEFRIENDSHIPLEVEL_DESC', |
||
504 | 'default' => 1, |
||
505 | 'formtype' => 'yesno', |
||
506 | 'valuetype' => 'int', |
||
507 | 'category' => 'friends', |
||
508 | ]; |
||
509 | $modversion['config'][] = [ |
||
510 | 'name' => 'allow_fanssevaluation', |
||
511 | 'title' => '_MI_SUICO_ENABLEFANSSEVALUATION_TITLE', |
||
512 | 'description' => '_MI_SUICO_ENABLEFANSSEVALUATION_DESC', |
||
513 | 'default' => 0, |
||
514 | 'formtype' => 'yesno', |
||
515 | 'valuetype' => 'int', |
||
516 | 'category' => 'friends', |
||
517 | ]; |
||
518 | // group header |
||
519 | $modversion['config'][] = [ |
||
520 | 'name' => 'groups_config', |
||
521 | 'title' => '_MI_SUICO_CONFIG_GROUPS', |
||
522 | 'description' => '_MI_SUICO_CONFIG_GROUPSDSC', |
||
523 | 'formtype' => 'line_break', |
||
524 | 'valuetype' => 'textbox', |
||
525 | 'default' => 'odd', |
||
526 | 'category' => 'group_header', |
||
527 | ]; |
||
528 | $modversion['config'][] = [ |
||
529 | 'name' => 'enable_groups', |
||
530 | 'title' => '_MI_SUICO_ENABLEGROUPS_TITLE', |
||
531 | 'description' => '_MI_SUICO_ENABLEGROUPS_DESC', |
||
532 | 'default' => 1, |
||
533 | 'formtype' => 'yesno', |
||
534 | 'valuetype' => 'int', |
||
535 | 'category' => 'groups', |
||
536 | ]; |
||
537 | $modversion['config'][] = [ |
||
538 | 'name' => 'groupsperpage', |
||
539 | 'title' => '_MI_SUICO_GROUPSPERPAGE_TITLE', |
||
540 | 'description' => '_MI_SUICO_GROUPSPERPAGE_DESC', |
||
541 | 'default' => 6, |
||
542 | 'formtype' => 'textbox', |
||
543 | 'valuetype' => 'int', |
||
544 | 'category' => 'groups', |
||
545 | ]; |
||
546 | $modversion['config'][] = [ |
||
547 | 'name' => 'groupslogo_width', |
||
548 | 'title' => '_MI_SUICO_GROUPS_LOGO_WIDTH', |
||
549 | 'description' => '_MI_SUICO_GROUPS_LOGO_WIDTH_DESC', |
||
550 | 'default' => 125, |
||
551 | 'formtype' => 'textbox', |
||
552 | 'valuetype' => 'int', |
||
553 | 'category' => 'groups', |
||
554 | ]; |
||
555 | $modversion['config'][] = [ |
||
556 | 'name' => 'groupslogo_height', |
||
557 | 'title' => '_MI_SUICO_GROUPS_LOGO_HEIGHT', |
||
558 | 'description' => '_MI_SUICO_GROUPS_LOGO_HEIGHT_DESC', |
||
559 | 'default' => 80, |
||
560 | 'formtype' => 'textbox', |
||
561 | 'valuetype' => 'int', |
||
562 | 'category' => 'groups', |
||
563 | ]; |
||
564 | // group header |
||
565 | $modversion['config'][] = [ |
||
566 | 'name' => 'uploads_config', |
||
567 | 'title' => '_MI_SUICO_CONFIG_UPLOAD', |
||
568 | 'description' => '_MI_SUICO_CONFIG_UPLOADDSC', |
||
569 | 'formtype' => 'line_break', |
||
570 | 'valuetype' => 'textbox', |
||
571 | 'default' => 'odd', |
||
572 | 'category' => 'group_header', |
||
573 | ]; |
||
574 | // --------------Uploads : mimetypes of image -------------- |
||
575 | $modversion['config'][] = [ |
||
576 | 'name' => 'mimetypes', |
||
577 | 'title' => 'MI_SUICO_MIMETYPES', |
||
578 | 'description' => 'MI_SUICO_MIMETYPES_DESC', |
||
579 | 'formtype' => 'select_multi', |
||
580 | 'valuetype' => 'array', |
||
581 | 'default' => ['image/gif', 'image/jpeg', 'image/png'], |
||
582 | 'options' => [ |
||
583 | 'bmp' => 'image/bmp', |
||
584 | 'gif' => 'image/gif', |
||
585 | 'pjpeg' => 'image/pjpeg', |
||
586 | 'jpeg' => 'image/jpeg', |
||
587 | 'jpg' => 'image/jpg', |
||
588 | 'jpe' => 'image/jpe', |
||
589 | 'png' => 'image/png', |
||
590 | ], |
||
591 | 'category' => 'editor', |
||
592 | ]; |
||
593 | $modversion['config'][] = [ |
||
594 | 'name' => 'physical_delete', |
||
595 | 'title' => '_MI_SUICO_DELETEPHYSICAL_TITLE', |
||
596 | 'description' => '_MI_SUICO_DELETEPHYSICAL_DESC', |
||
597 | 'default' => 1, |
||
598 | 'formtype' => 'yesno', |
||
599 | 'valuetype' => 'int', |
||
600 | 'category' => 'upload', |
||
601 | ]; |
||
602 | // group header |
||
603 | $modversion['config'][] = [ |
||
604 | 'name' => 'editor_config', |
||
605 | 'title' => '_MI_SUICO_CONFIG_EDITOR', |
||
606 | 'description' => '_MI_SUICO_CONFIG_EDITORDSC', |
||
607 | 'formtype' => 'line_break', |
||
608 | 'valuetype' => 'textbox', |
||
609 | 'default' => 'odd', |
||
610 | 'category' => 'group_header', |
||
611 | ]; |
||
612 | $editorHandler = XoopsEditorHandler::getInstance(); |
||
613 | $modversion['config'][] = [ |
||
614 | 'name' => 'suicoEditorAdmin', |
||
615 | 'title' => 'MI_SUICO_EDITOR_ADMIN', |
||
616 | 'description' => 'MI_SUICO_EDITOR_DESC_ADMIN', |
||
617 | 'formtype' => 'select', |
||
618 | 'valuetype' => 'text', |
||
619 | 'options' => array_flip($editorHandler->getList()), |
||
620 | 'default' => 'tinymce', |
||
621 | 'category' => 'editor', |
||
622 | ]; |
||
623 | $modversion['config'][] = [ |
||
624 | 'name' => 'suicoEditorUser', |
||
625 | 'title' => 'MI_SUICO_EDITOR_USER', |
||
626 | 'description' => 'MI_SUICO_EDITOR_DESC_USER', |
||
627 | 'formtype' => 'select', |
||
628 | 'valuetype' => 'text', |
||
629 | 'options' => array_flip($editorHandler->getList()), |
||
630 | 'default' => 'dhtmltextarea', |
||
631 | 'category' => 'editor', |
||
632 | ]; |
||
633 | $modversion['config'][] = [ |
||
634 | 'name' => 'memberslist_configs', |
||
635 | 'title' => '_MI_SUICO_CONFIG_MEMBER_LIST', |
||
636 | 'description' => '_MI_SUICO_CONFIG_MEMBER_LIST', |
||
637 | 'formtype' => 'line_break', |
||
638 | 'valuetype' => 'textbox', |
||
639 | 'default' => 'odd', |
||
640 | 'category' => 'group_header', |
||
641 | ]; |
||
642 | $modversion['config'][] = [ |
||
643 | 'name' => 'displaywelcomemessage', |
||
644 | 'title' => '_MI_SUICO_MEMBER_LIST_DISPLAYWELCOMEMSG', |
||
645 | 'description' => '_MI_SUICO_MEMBER_LIST_DISPLAYWELCOMEMSG_DSC', |
||
646 | 'formtype' => 'yesno', |
||
647 | 'valuetype' => 'int', |
||
648 | 'default' => 1, |
||
649 | 'category' => 'memberslist', |
||
650 | ]; |
||
651 | $modversion['config'][] = [ |
||
652 | 'name' => 'welcomemessage', |
||
653 | 'title' => '_MI_SUICO_MEMBER_LIST_WELCOMEMSG', |
||
654 | 'description' => '_MI_SUICO_MEMBER_LIST_WELCOMEMSGDSC', |
||
655 | 'formtype' => 'textarea', |
||
656 | 'valuetype' => 'text', |
||
657 | 'default' => _MI_SUICO_MEMBER_LIST_DEFAULTWELCOMEMSG, |
||
658 | 'category' => 'memberslist', |
||
659 | ]; |
||
660 | $modversion['config'][] = [ |
||
661 | 'name' => 'displaylatestmember', |
||
662 | 'title' => '_MI_SUICO_MEMBER_LIST_LATESTMEMBER', |
||
663 | 'description' => '_MI_SUICO_MEMBER_LIST_LATESTMEMBER_DSC', |
||
664 | 'formtype' => 'yesno', |
||
665 | 'valuetype' => 'int', |
||
666 | 'default' => 1, |
||
667 | 'category' => 'memberslist', |
||
668 | ]; |
||
669 | $modversion['config'][] = [ |
||
670 | 'name' => 'membersperpage', |
||
671 | 'title' => '_MI_SUICO_MEMBER_LIST_MPAGE', |
||
672 | 'description' => '_MI_SUICO_MEMBER_LIST_MPAGE_DSC', |
||
673 | 'formtype' => 'textbox', |
||
674 | 'valuetype' => 'int', |
||
675 | 'default' => 15, |
||
676 | 'category' => 'memberslist', |
||
677 | ]; |
||
678 | $modversion['config'][] = [ |
||
679 | 'name' => 'sortmembers', |
||
680 | 'title' => '_MI_SUICO_MEMBER_LIST_SORT', |
||
681 | 'description' => '_MI_SUICO_MEMBER_LIST_SORT_DSC', |
||
682 | 'formtype' => 'select', |
||
683 | 'valuetype' => 'text', |
||
684 | 'default' => 'uname', |
||
685 | 'options' => [ |
||
686 | _MI_SUICO_UNAME => 'uname', |
||
687 | _MI_SUICO_REALNAME => 'name', |
||
688 | _MI_SUICO_LASTLOGIN => 'last_login', |
||
689 | _MI_SUICO_REGDATE => 'user_regdate', |
||
690 | _MI_SUICO_POSTS => 'posts', |
||
691 | ], |
||
692 | 'category' => 'memberslist', |
||
693 | ]; |
||
694 | $modversion['config'][] = [ |
||
695 | 'name' => 'membersorder', |
||
696 | 'title' => '_MI_SUICO_MEMBER_LIST_ORDER', |
||
697 | 'description' => '_MI_SUICO_MEMBER_LIST_ORDER_DSC', |
||
698 | 'formtype' => 'select', |
||
699 | 'valuetype' => 'text', |
||
700 | 'default' => 'ASC', |
||
701 | 'options' => [ |
||
702 | _MI_SUICO_ASCORDER => 'ASC', |
||
703 | _MI_SUICO_DESCORDER => 'DESC', |
||
704 | ], |
||
705 | 'category' => 'memberslist', |
||
706 | ]; |
||
707 | $modversion['config'][] = [ |
||
708 | 'name' => 'memberslisttemplate', |
||
709 | 'title' => '_MI_SUICO_MEMBER_LIST_TEMPSTYLE', |
||
710 | 'description' => '_MI_SUICO_MEMBER_LIST_TEMPSTYLE_DSC', |
||
711 | 'formtype' => 'select', |
||
712 | 'valuetype' => 'text', |
||
713 | 'default' => 'datatables', |
||
714 | 'options' => [ |
||
715 | _MI_SUICO_DATATABLESBASICTEMPLATE => 'datatables', |
||
716 | _MI_SUICO_TEMPLATE_NORMAL => 'normal', |
||
717 | ], |
||
718 | 'category' => 'memberslist', |
||
719 | ]; |
||
720 | // group header |
||
721 | $modversion['config'][] = [ |
||
722 | 'name' => 'memberslistsearch_configs', |
||
723 | 'title' => '_MI_SUICO_CONFIG_MEMBER_LIST_SEARCH', |
||
724 | 'description' => '_MI_SUICO_CONFIG_MEMBER_LIST_SEARCH', |
||
725 | 'formtype' => 'line_break', |
||
726 | 'valuetype' => 'textbox', |
||
727 | 'default' => 'even', |
||
728 | 'category' => 'group_header', |
||
729 | ]; |
||
730 | $modversion['config'][] = [ |
||
731 | 'name' => 'displaytotalmember', |
||
732 | 'title' => '_MI_SUICO_DISPLAYTOTALMEMBER', |
||
733 | 'description' => '_MI_SUICO_DISPLAYTOTALMEMBER_DSC', |
||
734 | 'formtype' => 'yesno', |
||
735 | 'valuetype' => 'int', |
||
736 | 'default' => 1, |
||
737 | 'category' => 'memberlistsearch', |
||
738 | ]; |
||
739 | $modversion['config'][] = [ |
||
740 | 'name' => 'displayavatar', |
||
741 | 'title' => '_MI_SUICO_DISPLAYAVATAR', |
||
742 | 'description' => '_MI_SUICO_DISPLAYAVATAR_DSC', |
||
743 | 'formtype' => 'yesno', |
||
744 | 'valuetype' => 'int', |
||
745 | 'default' => 1, |
||
746 | 'category' => 'memberlistsearch', |
||
747 | ]; |
||
748 | $modversion['config'][] = [ |
||
749 | 'name' => 'displayrealname', |
||
750 | 'title' => '_MI_SUICO_DISPLAYREALNAME', |
||
751 | 'description' => '_MI_SUICO_DISPLAYREALNAME_DSC', |
||
752 | 'formtype' => 'yesno', |
||
753 | 'valuetype' => 'int', |
||
754 | 'default' => 1, |
||
755 | 'category' => 'memberlistsearch', |
||
756 | ]; |
||
757 | $modversion['config'][] = [ |
||
758 | 'name' => 'displayemail', |
||
759 | 'title' => '_MI_SUICO_DISPLAYEMAIL', |
||
760 | 'description' => '_MI_SUICO_DISPLAYEMAIL_DSC', |
||
761 | 'formtype' => 'yesno', |
||
762 | 'valuetype' => 'int', |
||
763 | 'default' => 1, |
||
764 | 'category' => 'memberlistsearch', |
||
765 | ]; |
||
766 | $modversion['config'][] = [ |
||
767 | 'name' => 'displaypm', |
||
768 | 'title' => '_MI_SUICO_DISPLAYPM', |
||
769 | 'description' => '_MI_SUICO_DISPLAYPM_DSC', |
||
770 | 'formtype' => 'yesno', |
||
771 | 'valuetype' => 'int', |
||
772 | 'default' => 1, |
||
773 | 'category' => 'memberlistsearch', |
||
774 | ]; |
||
775 | $modversion['config'][] = [ |
||
776 | 'name' => 'displayurl', |
||
777 | 'title' => '_MI_SUICO_DISPLAYURL', |
||
778 | 'description' => '_MI_SUICO_DISPLAYURL_DSC', |
||
779 | 'formtype' => 'yesno', |
||
780 | 'valuetype' => 'int', |
||
781 | 'default' => 1, |
||
782 | 'category' => 'memberlistsearch', |
||
783 | ]; |
||
784 | $modversion['config'][] = [ |
||
785 | 'name' => 'displayregdate', |
||
786 | 'title' => '_MI_SUICO_DISPLAYREGDATE', |
||
787 | 'description' => '_MI_SUICO_DISPLAYREGDATE_DSC', |
||
788 | 'formtype' => 'yesno', |
||
789 | 'valuetype' => 'int', |
||
790 | 'default' => 1, |
||
791 | 'category' => 'memberlistsearch', |
||
792 | ]; |
||
793 | $modversion['config'][] = [ |
||
794 | 'name' => 'displayfrom', |
||
795 | 'title' => '_MI_SUICO_DISPLAYFROM', |
||
796 | 'description' => '_MI_SUICO_DISPLAYFROM_DSC', |
||
797 | 'formtype' => 'yesno', |
||
798 | 'valuetype' => 'int', |
||
799 | 'default' => 1, |
||
800 | 'category' => 'memberlistsearch', |
||
801 | ]; |
||
802 | $modversion['config'][] = [ |
||
803 | 'name' => 'displayposts', |
||
804 | 'title' => '_MI_SUICO_DISPLAYPOSTS', |
||
805 | 'description' => '_MI_SUICO_DISPLAYPOSTS_DSC', |
||
806 | 'formtype' => 'yesno', |
||
807 | 'valuetype' => 'int', |
||
808 | 'default' => 1, |
||
809 | 'category' => 'memberlistsearch', |
||
810 | ]; |
||
811 | $modversion['config'][] = [ |
||
812 | 'name' => 'displaylastlogin', |
||
813 | 'title' => '_MI_SUICO_DISPLAYLASTLOGIN', |
||
814 | 'description' => '_MI_SUICO_DISPLAYLASTLOGIN_DSC', |
||
815 | 'formtype' => 'yesno', |
||
816 | 'valuetype' => 'int', |
||
817 | 'default' => 1, |
||
818 | 'category' => 'memberlistsearch', |
||
819 | ]; |
||
820 | $modversion['config'][] = [ |
||
821 | 'name' => 'displayoccupation', |
||
822 | 'title' => '_MI_SUICO_DISPLAYOCC', |
||
823 | 'description' => '_MI_SUICO_DISPLAYOCC_DSC', |
||
824 | 'formtype' => 'yesno', |
||
825 | 'valuetype' => 'int', |
||
826 | 'default' => 1, |
||
827 | 'category' => 'memberlistsearch', |
||
828 | ]; |
||
829 | $modversion['config'][] = [ |
||
830 | 'name' => 'displayinterest', |
||
831 | 'title' => '_MI_SUICO_DISPLAYINTEREST', |
||
832 | 'description' => '_MI_SUICO_DISPLAYINTEREST_DSC', |
||
833 | 'formtype' => 'yesno', |
||
834 | 'valuetype' => 'int', |
||
835 | 'default' => 1, |
||
836 | 'category' => 'memberlistsearch', |
||
837 | ]; |
||
838 | $modversion['config'][] = [ |
||
839 | 'name' => 'displayextrainfo', |
||
840 | 'title' => '_MI_SUICO_DISPLAYBIO', |
||
841 | 'description' => '_MI_SUICO_DISPLAYBIO_DSC', |
||
842 | 'formtype' => 'yesno', |
||
843 | 'valuetype' => 'int', |
||
844 | 'default' => 1, |
||
845 | 'category' => 'memberlistsearch', |
||
846 | ]; |
||
847 | $modversion['config'][] = [ |
||
848 | 'name' => 'displayonlinestatus', |
||
849 | 'title' => '_MI_SUICO_DISPLAYONLINESTATUS', |
||
850 | 'description' => '_MI_SUICO_DISPLAYONLINESTATUS_DSC', |
||
851 | 'formtype' => 'yesno', |
||
852 | 'valuetype' => 'int', |
||
853 | 'default' => 1, |
||
854 | 'category' => 'memberlistsearch', |
||
855 | ]; |
||
856 | $modversion['config'][] = [ |
||
857 | 'name' => 'displaysignature', |
||
858 | 'title' => '_MI_SUICO_DISPLAYSIGNATURE', |
||
859 | 'description' => '_MI_SUICO_DISPLAYSIGNATURE_DSC', |
||
860 | 'formtype' => 'yesno', |
||
861 | 'valuetype' => 'int', |
||
862 | 'default' => 1, |
||
863 | 'category' => 'memberlistsearch', |
||
864 | ]; |
||
865 | $modversion['config'][] = [ |
||
866 | 'name' => 'displayrank', |
||
867 | 'title' => '_MI_SUICO_DISPLAYRANK', |
||
868 | 'description' => '_MI_SUICO_DISPLAYRANK_DSC', |
||
869 | 'formtype' => 'yesno', |
||
870 | 'valuetype' => 'int', |
||
871 | 'default' => 1, |
||
872 | 'category' => 'memberlistsearch', |
||
873 | ]; |
||
874 | $modversion['config'][] = [ |
||
875 | 'name' => 'displaygroups', |
||
876 | 'title' => '_MI_SUICO_DISPLAYGROUPS', |
||
877 | 'description' => '_MI_SUICO_DISPLAYGROUPS_DSC', |
||
878 | 'formtype' => 'yesno', |
||
879 | 'valuetype' => 'int', |
||
880 | 'default' => 1, |
||
881 | 'category' => 'memberlistsearch', |
||
882 | ]; |
||
883 | // group header |
||
884 | $modversion['config'][] = [ |
||
885 | 'name' => 'admin_config', |
||
886 | 'title' => '_MI_SUICO_CONFIG_ADMIN', |
||
887 | 'description' => '_MI_SUICO_CONFIG_ADMINDSC', |
||
888 | 'formtype' => 'line_break', |
||
889 | 'valuetype' => 'textbox', |
||
890 | 'default' => 'odd', |
||
891 | 'category' => 'group_header', |
||
892 | ]; |
||
893 | // -------------- Get Admin groups -------------- |
||
894 | $criteria = new CriteriaCompo(); |
||
895 | $criteria->add(new Criteria('group_type', 'Admin')); |
||
896 | /** @var \XoopsMemberHandler $memberHandler */ |
||
897 | $memberHandler = xoops_getHandler('member'); |
||
898 | $adminXoopsGroups = $memberHandler->getGroupList($criteria); |
||
899 | foreach ($adminXoopsGroups as $key => $adminGroup) { |
||
900 | $admin_groups[$adminGroup] = $key; |
||
901 | } |
||
902 | $modversion['config'][] = [ |
||
903 | 'name' => 'admin_groups', |
||
904 | 'title' => 'MI_SUICO_ADMINGROUPS', |
||
905 | 'description' => 'MI_SUICO_ADMINGROUPS_DESC', |
||
906 | 'formtype' => 'select_multi', |
||
907 | 'valuetype' => 'array', |
||
908 | 'options' => $admin_groups, |
||
909 | 'default' => $admin_groups, |
||
910 | 'category' => 'admin', |
||
911 | ]; |
||
912 | // Truncate Max. length |
||
913 | $modversion['config'][] = [ |
||
914 | 'name' => 'truncatelength', |
||
915 | 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', |
||
916 | 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', |
||
917 | 'formtype' => 'textbox', |
||
918 | 'valuetype' => 'int', |
||
919 | 'default' => 100, |
||
920 | ]; |
||
921 | /** |
||
922 | * Make Sample button visible? |
||
923 | */ |
||
924 | $modversion['config'][] = [ |
||
925 | 'name' => 'displaySampleButton', |
||
926 | 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
||
927 | 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
||
928 | 'formtype' => 'yesno', |
||
929 | 'valuetype' => 'int', |
||
930 | 'default' => 1, |
||
931 | 'category' => 'admin', |
||
932 | ]; |
||
933 | /** |
||
934 | * Show Developer Tools? |
||
935 | */ |
||
936 | $modversion['config'][] = [ |
||
937 | 'name' => 'displayDeveloperTools', |
||
938 | 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', |
||
939 | 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', |
||
940 | 'formtype' => 'yesno', |
||
941 | 'valuetype' => 'int', |
||
942 | 'default' => 0, |
||
943 | 'category' => 'admin', |
||
944 | ]; |
||
945 | $modversion['templates'] = [ |
||
946 | ['file' => 'admin/suico_admin_about.tpl', 'description' => ''], |
||
947 | ['file' => 'admin/suico_admin_audios.tpl', 'description' => ''], |
||
948 | ['file' => 'admin/suico_admin_configs.tpl', 'description' => ''], |
||
949 | ['file' => 'admin/suico_admin_friendrequest.tpl', 'description' => ''], |
||
950 | ['file' => 'admin/suico_admin_friendships.tpl', 'description' => ''], |
||
951 | ['file' => 'admin/suico_admin_groups.tpl', 'description' => ''], |
||
952 | ['file' => 'admin/suico_admin_help.tpl', 'description' => ''], |
||
953 | ['file' => 'admin/suico_admin_images.tpl', 'description' => ''], |
||
954 | ['file' => 'admin/suico_admin_notes.tpl', 'description' => ''], |
||
955 | ['file' => 'admin/suico_admin_privacy.tpl', 'description' => ''], |
||
956 | ['file' => 'admin/suico_admin_relgroupuser.tpl', 'description' => ''], |
||
957 | ['file' => 'admin/suico_admin_suspensions.tpl', 'description' => ''], |
||
958 | ['file' => 'admin/suico_admin_videos.tpl', 'description' => ''], |
||
959 | ['file' => 'admin/suico_admin_visitors.tpl', 'description' => ''], |
||
960 | ['file' => 'admin/suico_admin_fieldslist.tpl', 'description' => ''], |
||
961 | ['file' => 'admin/suico_admin_fieldscategory.tpl', 'description' => ''], |
||
962 | ['file' => 'admin/suico_admin_fieldspermission.tpl', 'description' => ''], |
||
963 | ['file' => 'admin/suico_admin_fieldsvisibility.tpl', 'description' => ''], |
||
964 | ['file' => 'admin/suico_admin_registrationstep.tpl', 'description' => ''], |
||
965 | ['file' => 'suico_form.tpl', 'description' => ''], |
||
966 | ['file' => 'suico_register.tpl', 'description' => ''], |
||
967 | ['file' => 'suico_changepass.tpl', 'description' => ''], |
||
968 | ['file' => 'suico_editprofile.tpl', 'description' => ''], |
||
969 | ['file' => 'suico_avatar.tpl', 'description' => ''], |
||
970 | ['file' => 'suico_email.tpl', 'description' => ''], |
||
971 | ['file' => 'blocks/suico_block_friends.tpl', 'description' => ''], |
||
972 | ['file' => 'blocks/suico_block_hotfriends.tpl', 'description' => ''], |
||
973 | ['file' => 'blocks/suico_block_hottest.tpl', 'description' => ''], |
||
974 | ['file' => 'blocks/suico_block_lastpictures.tpl', 'description' => ''], |
||
975 | ['file' => 'suico_search.tpl', 'description' => ''], |
||
976 | ['file' => 'suico_results.tpl', 'description' => ''], |
||
977 | ['file' => 'suico_album.tpl', 'description' => _MI_SUICO_TEMPLATE_ALBUMDESC], |
||
978 | ['file' => 'suico_audios.tpl', 'description' => _MI_SUICO_TEMPLATE_AUDIOSDESC], |
||
979 | ['file' => 'suico_configs.tpl', 'description' => _MI_SUICO_TEMPLATE_CONFIGSDESC], |
||
980 | ['file' => 'suico_editgroup.tpl', 'description' => _MI_SUICO_TEMPLATE_EDITGROUP], |
||
981 | ['file' => 'suico_fans.tpl', 'description' => _MI_SUICO_TEMPLATE_FANS], |
||
982 | ['file' => 'suico_footer.tpl', 'description' => _MI_SUICO_TEMPLATE_FOOTERDESC], |
||
983 | ['file' => 'suico_friends.tpl', 'description' => _MI_SUICO_TEMPLATE_FRIENDSDESC], |
||
984 | ['file' => 'suico_group.tpl', 'description' => _MI_SUICO_TEMPLATE_GROUPDESC], |
||
985 | ['file' => 'suico_groups.tpl', 'description' => _MI_SUICO_TEMPLATE_GROUPSDESC], |
||
986 | ['file' => 'suico_groups_results.tpl', 'description' => _MI_SUICO_TEMPLATE_SEARCHRESULTDESC], |
||
987 | ['file' => 'suico_index.tpl', 'description' => _MI_SUICO_TEMPLATE_INDEXDESC], |
||
988 | ['file' => 'suico_memberslist_datatables.tpl', 'description' => _MI_SUICO_TEMPLATE_MEMBERSDESC], |
||
989 | ['file' => 'suico_memberslist_normal.tpl', 'description' => _MI_SUICO_TEMPLATE_MEMBERSDESC], |
||
990 | ['file' => 'suico_navbar.tpl', 'description' => _MI_SUICO_TEMPLATE_NAVBARDESC], |
||
991 | ['file' => 'suico_notebook.tpl', 'description' => _MI_SUICO_TEMPLATE_NOTEBOOKDESC], |
||
992 | ['file' => 'suico_notifications.tpl', 'description' => _MI_SUICO_TEMPLATE_NOTIFICATIONS], |
||
993 | ['file' => 'suico_searchform.tpl', 'description' => _MI_SUICO_TEMPLATE_SEARCHFORMDESC], |
||
994 | ['file' => 'suico_searchresults.tpl', 'description' => _MI_SUICO_TEMPLATE_SEARCHRESULTSDESC], |
||
995 | ['file' => 'suico_user.tpl', 'description' => _MI_SUICO_TEMPLATE_USERDESC], |
||
996 | ['file' => 'suico_videos.tpl', 'description' => _MI_SUICO_TEMPLATE_VIDEOSDESC], |
||
997 | ]; |
||
998 | global $xoopsModule; |
||
999 | if (is_object($xoopsModule) && $xoopsModule->dirname() === $modversion['dirname']) { |
||
1000 | $moduleHandler = xoops_getHandler('module'); |
||
1001 | $moduleSuico = $moduleHandler->getByDirname('suico'); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
1002 | /** @var \XoopsConfigHandler $confHandler */ |
||
1003 | $confHandler = xoops_getHandler('config'); |
||
1004 | $moduleConfig = $confHandler->getConfigsByCat(0, $moduleSuico->getVar('mid')); |
||
1005 | if ($GLOBALS['xoopsUser']) { |
||
1006 | $modversion['sub'][0]['name'] = _MI_SUICO_MYPROFILE; |
||
1007 | $modversion['sub'][0]['url'] = 'index.php'; |
||
1008 | if (1 === $moduleConfig['enable_notes']) { |
||
1009 | $modversion['sub'][1]['name'] = _MI_SUICO_MYNOTES; |
||
1010 | $modversion['sub'][1]['url'] = 'notebook.php'; |
||
1011 | } |
||
1012 | if (1 === $moduleConfig['enable_pictures']) { |
||
1013 | $modversion['sub'][2]['name'] = _MI_SUICO_MYPICTURES; |
||
1014 | $modversion['sub'][2]['url'] = 'album.php'; |
||
1015 | } |
||
1016 | if (1 === $moduleConfig['enable_audio']) { |
||
1017 | $modversion['sub'][3]['name'] = _MI_SUICO_MYAUDIOS; |
||
1018 | $modversion['sub'][3]['url'] = 'audios.php'; |
||
1019 | } |
||
1020 | if (1 === $moduleConfig['enable_videos']) { |
||
1021 | $modversion['sub'][4]['name'] = _MI_SUICO_MYVIDEOS; |
||
1022 | $modversion['sub'][4]['url'] = 'videos.php'; |
||
1023 | } |
||
1024 | if (1 === $moduleConfig['enable_friends']) { |
||
1025 | $modversion['sub'][5]['name'] = _MI_SUICO_MYFRIENDS; |
||
1026 | $modversion['sub'][5]['url'] = 'friends.php'; |
||
1027 | } |
||
1028 | if (1 === $moduleConfig['enable_groups']) { |
||
1029 | $modversion['sub'][6]['name'] = _MI_SUICO_MYGROUPS; |
||
1030 | $modversion['sub'][6]['url'] = 'groups.php'; |
||
1031 | } |
||
1032 | } |
||
1033 | } |
||
1034 | if ($GLOBALS['xoopsUser']) { |
||
1035 | $modversion['sub'][7]['name'] = _MI_SUICO_MYCONFIGS; |
||
1036 | $modversion['sub'][7]['url'] = 'configs.php'; |
||
1037 | $modversion['sub'][8]['name'] = _MI_SUICO_EDITPROFILE; |
||
1038 | $modversion['sub'][8]['url'] = 'edituser.php'; |
||
1039 | $modversion['sub'][9]['name'] = _MI_SUICO_CHANGEPASS; |
||
1040 | $modversion['sub'][9]['url'] = 'changepass.php'; |
||
1041 | $modversion['sub'][10]['name'] = _MI_SUICO_CHANGEAVATAR; |
||
1042 | $modversion['sub'][10]['url'] = 'edituser.php?op=avatarform'; |
||
1043 | } |
||
1044 | $modversion['sub'][11]['name'] = _MI_SUICO_MEMBERSLIST; |
||
1045 | $modversion['sub'][11]['url'] = 'memberslist.php'; |
||
1046 | if ($GLOBALS['xoopsUser']) { |
||
1047 | $modversion['sub'][12]['name'] = _MI_SUICO_SEARCH; |
||
1048 | $modversion['sub'][12]['url'] = 'searchmembers.php'; |
||
1049 | } |
||
1050 | $modversion['hasComments'] = 1; |
||
1051 | $modversion['comments']['itemName'] = 'group_id'; |
||
1052 | $modversion['comments']['pageName'] = 'group.php'; |
||
1053 | // Search |
||
1054 | $modversion['hasSearch'] = 0; //disabled for version 3.0 will come back in a next release |
||
1055 | $modversion['search']['file'] = 'include/search.inc.php'; |
||
1056 | $modversion['search']['func'] = 'suico_search'; |
||
1057 | //Notifications |
||
1058 | $modversion['hasNotification'] = 1; |
||
1059 | $modversion['notification']['category'][1]['name'] = 'picture'; |
||
1060 | $modversion['notification']['category'][1]['title'] = _MI_SUICO_PICTURE_NOTIFYTIT; |
||
1061 | $modversion['notification']['category'][1]['description'] = _MI_SUICO_PICTURE_NOTIFYDSC; |
||
1062 | $modversion['notification']['category'][1]['subscribe_from'] = 'album.php'; |
||
1063 | $modversion['notification']['category'][1]['item_name'] = 'uid'; |
||
1064 | $modversion['notification']['category'][1]['allow_bookmark'] = 1; |
||
1065 | $modversion['notification']['event'][1]['name'] = 'new_picture'; |
||
1066 | $modversion['notification']['event'][1]['category'] = 'picture'; |
||
1067 | $modversion['notification']['event'][1]['title'] = _MI_SUICO_PICTURE_NEWPIC_NOTIFY; |
||
1068 | $modversion['notification']['event'][1]['caption'] = _MI_SUICO_PICTURE_NEWPIC_NOTIFYCAP; |
||
1069 | $modversion['notification']['event'][1]['description'] = _MI_SUICO_PICTURE_NEWPOST_NOTIFYDSC; |
||
1070 | $modversion['notification']['event'][1]['mail_template'] = 'picture_newpic_notify'; |
||
1071 | $modversion['notification']['event'][1]['mail_subject'] = _MI_SUICO_PICTURE_NEWPIC_NOTIFYSBJ; |
||
1072 | $modversion['notification']['category'][2]['name'] = 'video'; |
||
1073 | $modversion['notification']['category'][2]['title'] = _MI_SUICO_VIDEO_NOTIFYTIT; |
||
1074 | $modversion['notification']['category'][2]['description'] = _MI_SUICO_VIDEO_NOTIFYDSC; |
||
1075 | $modversion['notification']['category'][2]['subscribe_from'] = 'videos.php'; |
||
1076 | $modversion['notification']['category'][2]['item_name'] = 'uid'; |
||
1077 | $modversion['notification']['category'][2]['allow_bookmark'] = 1; |
||
1078 | $modversion['notification']['event'][2]['name'] = 'new_video'; |
||
1079 | $modversion['notification']['event'][2]['category'] = 'video'; |
||
1080 | $modversion['notification']['event'][2]['title'] = _MI_SUICO_VIDEO_NEWVIDEO_NOTIFY; |
||
1081 | $modversion['notification']['event'][2]['caption'] = _MI_SUICO_VIDEO_NEWVIDEO_NOTIFYCAP; |
||
1082 | $modversion['notification']['event'][2]['description'] = _MI_SUICO_VIDEO_NEWVIDEO_NOTIFYDSC; |
||
1083 | $modversion['notification']['event'][2]['mail_template'] = 'video_newvideo_notify'; |
||
1084 | $modversion['notification']['event'][2]['mail_subject'] = _MI_SUICO_VIDEO_NEWVIDEO_NOTIFYSBJ; |
||
1085 | $modversion['notification']['category'][3]['name'] = 'Note'; |
||
1086 | $modversion['notification']['category'][3]['title'] = _MI_SUICO_NOTE_NOTIFYTIT; |
||
1087 | $modversion['notification']['category'][3]['description'] = _MI_SUICO_NOTE_NOTIFYDSC; |
||
1088 | $modversion['notification']['category'][3]['subscribe_from'] = 'notebook.php'; |
||
1089 | $modversion['notification']['category'][3]['item_name'] = 'uid'; |
||
1090 | $modversion['notification']['category'][3]['allow_bookmark'] = 1; |
||
1091 | $modversion['notification']['event'][3]['name'] = 'new_Note'; |
||
1092 | $modversion['notification']['event'][3]['category'] = 'Note'; |
||
1093 | $modversion['notification']['event'][3]['title'] = _MI_SUICO_NOTE_NEWNOTE_NOTIFY; |
||
1094 | $modversion['notification']['event'][3]['caption'] = _MI_SUICO_NOTE_NEWNOTE_NOTIFYCAP; |
||
1095 | $modversion['notification']['event'][3]['description'] = _MI_SUICO_NOTE_NEWNOTE_NOTIFYDSC; |
||
1096 | $modversion['notification']['event'][3]['mail_template'] = 'note_newnote_notify'; |
||
1097 | $modversion['notification']['event'][3]['mail_subject'] = _MI_SUICO_NOTE_NEWNOTE_NOTIFYSBJ; |
||
1098 | $modversion['notification']['category'][4]['name'] = 'friendship'; |
||
1099 | $modversion['notification']['category'][4]['title'] = _MI_SUICO_FRIENDSHIP_NOTIFYTIT; |
||
1100 | $modversion['notification']['category'][4]['description'] = _MI_SUICO_FRIENDSHIP_NOTIFYDSC; |
||
1101 | $modversion['notification']['category'][4]['subscribe_from'] = 'friends.php'; |
||
1102 | $modversion['notification']['category'][4]['item_name'] = 'uid'; |
||
1103 | $modversion['notification']['category'][4]['allow_bookmark'] = 0; |
||
1104 | $modversion['notification']['event'][4]['name'] = 'new_friendship'; |
||
1105 | $modversion['notification']['event'][4]['category'] = 'friendship'; |
||
1106 | $modversion['notification']['event'][4]['title'] = _MI_SUICO_FRIEND_NEWFRIENDREQUEST_NOTIFY; |
||
1107 | $modversion['notification']['event'][4]['caption'] = _MI_SUICO_FRIEND_NEWFRIENDREQUEST_NOTIFYCAP; |
||
1108 | $modversion['notification']['event'][4]['description'] = _MI_SUICO_FRIEND_NEWFRIENDREQUEST_NOTIFYDSC; |
||
1109 | $modversion['notification']['event'][4]['mail_template'] = 'friendship_newFriendrequest_notify'; |
||
1110 | $modversion['notification']['event'][4]['mail_subject'] = _MI_SUICO_FRIEND_NEWFRIENDREQUEST_NOTIFYSBJ; |
||
1111 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
||
1112 | $modversion['notification']['lookup_func'] = 'suico_iteminfo'; |
||
1113 | //$modversion['notification']['tags_file'] = 'include/notification.inc.php'; |
||
1114 | //$modversion['notification']['tags_func'] = 'suico_tags'; |
||
1115 | $modversion['blocks'][] = [ |
||
1116 | 'file' => 'friends_block.php', |
||
1117 | 'name' => _MI_SUICO_FRIENDS, |
||
1118 | 'description' => _MI_SUICO_FRIENDS_DESC, |
||
1119 | 'show_func' => 'b_suico_friends_show', |
||
1120 | 'options' => '8|0', |
||
1121 | 'edit_func' => 'b_suico_friends_edit', |
||
1122 | 'template' => 'suico_block_friends.tpl', |
||
1123 | ]; |
||
1124 | $modversion['blocks'][] = [ |
||
1125 | 'file' => 'photos_block.php', |
||
1126 | 'name' => _MI_SUICO_LAST, |
||
1127 | 'description' => _MI_SUICO_LAST_DESC, |
||
1128 | 'show_func' => 'b_suico_lastpictures_show', |
||
1129 | 'options' => '1|0|0|1|8', |
||
1130 | 'edit_func' => 'b_suico_lastpictures_edit', |
||
1131 | 'template' => 'suico_block_lastpictures.tpl', |
||
1132 | ]; |
||
1133 |