Completed
Branch master (1b2f30)
by Michael
06:29 queued 03:22
created

xoops_version.php (4 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 502 and the first side effect is on line 10.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
3
/**
4
 * Module: SmartFAQ
5
 * Author: The SmartFactory <www.smartfactory.ca>
6
 * Licence: GNU
7
 */
8
// defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
0 ignored issues
show
Unused Code Comprehensibility introduced by
70% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
9
10
$modversion['name']        = _MI_SF_MD_NAME;
11
$modversion['version']     = 1.12;
12
$modversion['description'] = _MI_SF_MD_DESC;
13
$modversion['author']      = 'The SmartFactory | Xuups';
14
$modversion['credits']     = 'w4z004, hsalazar, Carnuke, Mariuss, Mithrandir, phppp, Predator, GIJOE, outch, rowdie, Xvitry, Xavier & Catzwolf, trabis';
15
$modversion['help']        = 'page=help';
16
$modversion['license']     = 'GNU GPL 2.0 or later';
17
$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html';
18
$modversion['official']    = 1; //1 indicates supported by XOOPS Dev Team, 0 means 3rd party supported
19
$modversion['image']       = 'assets/images/logo_module.png';
20
$modversion['dirname']     = basename(__DIR__);
21
22
$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin';
23
$modversion['icons16']        = '../../Frameworks/moduleclasses/icons/16';
24
$modversion['icons32']        = '../../Frameworks/moduleclasses/icons/32';
25
//about
26
$modversion['module_status']       = 'RC 1';
27
$modversion['release_date']        = '2016/03/28';
28
$modversion['release_file']        = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt';
29
$modversion['module_website_url']  = 'www.xoops.org';
30
$modversion['module_website_name'] = 'XOOPS';
31
$modversion['min_php']             = '5.5';
32
$modversion['min_xoops']           = '2.5.8';
33
$modversion['min_admin']           = '1.1';
34
$modversion['min_db']              = array(
35
    'mysql'  => '5.0.7',
36
    'mysqli' => '5.0.7'
37
);
38
39
// Added by marcan for the About page in admin section
40
$modversion['developer_lead']         = 'marcan [Marc-André Lanciault]';
41
$modversion['developer_contributor']  = 'w4z004, hsalazar, Carnuke, Mariuss, Mithrandir, phppp, Predator, GIJOE, outch, rowdie, Xvitry, Xavier & Catzwolf, trabis';
42
$modversion['developer_website_url']  = 'http://www.xuups.com';
43
$modversion['developer_website_name'] = 'Xuups';
44
$modversion['developer_email']        = '[email protected]';
45
$modversion['status_version']         = 'Final';
46
$modversion['status']                 = 'Final';
47
$modversion['date']                   = '2010-09-20';
48
49
$modversion['warning'] = _MI_SF_WARNING_FINAL;
50
51
$modversion['demo_site_url']     = 'http://www.xuups.com/modules/smartfaq';
52
$modversion['demo_site_name']    = 'Xuups';
53
$modversion['support_site_url']  = 'http://www.xuups.com';
54
$modversion['support_site_name'] = 'Xuups';
55
$modversion['submit_bug']        = 'http://www.xuups.com/modules/xhelp';
56
$modversion['submit_feature']    = 'http://www.xuups.com/modules/xhelp';
57
58
$modversion['author_word'] = "
59
<B>SmartFAQ</B> is the result of multiple ideas from multiple people and a work of outstanding
60
collaboration. It all began with Herko talking to me about a 'contextual help system' for XOOPS,
61
inspired by the one on the Developers Forge. I found that idea more than brilliant, so I decided
62
to start coding the thing !
63
<BR><BR>As I was new in the developers world, I had to look for quality ideas that had already been
64
established and represented the best in Xoops programming. I chose the Soapbox module by hsalazar
65
(Horacio Salazar) which I had found absolutely amazing ! So, many thanks to Horacio, as his work offered
66
considerable inspiration. I would also like to thank him for helping me establish the workflow of
67
the SmartFAQ module, as well as for helping me in all the development process.
68
<BR><BR>When about half the coding was done, I met a special Xoopser who would become an important
69
player in this project : w4z004 (Sergio Kohl). Many thanks to you w4z004, as you multiplied many
70
times the possibilities and potential of this module. By testing it over and over again, by
71
submitting the code to be checked by security experts and other advanced developers, by suggesting
72
more features, by encouraging me when things were not going the way I wanted and by doing a thousand
73
other things for this project. Thank you, thank you, thank you !
74
<BR><BR>Special thanks also to Mithrandir (Jan Pedersen) for all the 'little' answers to my 'little'
75
questions (lol). You made my life so much easier by helping me see things more clearly !
76
<BR><BR>I would also like to thank Mariuss (Marius Scurtescu) for adapting <B>FAQ for New Xoopsers
77
</B> for SmartFAQ, for developing the import scripts, for teaching me the CVS (lol) as well as for
78
suggesting a lot of interesting improvements along the way.
79
<BR><BR>Another special thank-you to Carnuke (Richard Strauss) for writing such impressive
80
documentation for this module. You have now set up a new quality standard for XOOPS module
81
documentation. I'm confident that all the Xoopsers of the world are gratefull for this :-) !
82
<BR><BR>Finally, thanks to all the people who made this module possible : Herko, phppp, Solo71,
83
Yoyo2021, Christian, Hervé and so many others ! Also, a final thank to Zabou who has been
84
really understanding during all the hours I spent behind my laptop developing SmartFAQ.
85
<BR><BR>So I guess this is it, I could thank the Academy, my Mother and Father but that would be
86
pushing it I think ! (lol)
87
<BR><BR>Enjoy <b>SmartFAQ</b> (by marcan)!
88
";
89
90
// Admin things
91
$modversion['hasAdmin']    = 1;
92
$modversion['system_menu'] = 1;
93
$modversion['adminindex']  = 'admin/index.php';
94
$modversion['adminmenu']   = 'admin/menu.php';
95
// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin)
96
// All tables should not have any prefix!
97
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
98
// Tables created by sql file (without prefix!)
99
$modversion['tables'][0] = 'smartfaq_categories';
100
$modversion['tables'][1] = 'smartfaq_faq';
101
$modversion['tables'][2] = 'smartfaq_answers';
102
//$modversion['tables'][3] = "smartfaq_moderators";
0 ignored issues
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
103
// Search
104
$modversion['hasSearch']      = 1;
105
$modversion['search']['file'] = 'include/search.inc.php';
106
$modversion['search']['func'] = 'smartfaq_search';
107
// Menu
108
$modversion['hasMain'] = 1;
109
110
$modversion['onInstall'] = 'include/onupdate.inc.php';
111
$modversion['onUpdate']  = 'include/onupdate.inc.php';
112
113
global $xoopsModule;
114
115
if (isset($xoopsModule) && is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $modversion['dirname']) {
116
    global $xoopsModuleConfig, $xoopsUser;
117
118
    $isAdmin = false;
119
    if (!empty($xoopsUser) && is_object($xoopsModule)) {
120
        $isAdmin = $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
121
    }
122
123
    if ($smartModule = $xoopsModule) {
124
        $smartConfig = $xoopsModuleConfig;
125
        // Add the Submit new faq button
126 View Code Duplication
        if ($isAdmin || (isset($smartConfig['allowsubmit']) && $smartConfig['allowsubmit'] == 1 && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) {
127
            $modversion['sub'][1]['name'] = _MI_SF_SUB_SMNAME1;
128
            $modversion['sub'][1]['url']  = 'submit.php?op=add';
129
        }
130
        // Add the Request new faq
131 View Code Duplication
        if ($isAdmin || (isset($smartConfig['allowrequest']) && $smartConfig['allowrequest'] == 1 && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) {
132
            $modversion['sub'][2]['name'] = _MI_SF_SUB_SMNAME2;
133
            $modversion['sub'][2]['url']  = 'request.php?op=add';
134
        }
135
136
        include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
137
138
        // Creating the FAQ handler object
139
        $faqHandler = sf_gethandler('faq');
140
141
        if ($faqHandler->getFaqsCount(-1, _SF_STATUS_OPENED) > 0) {
142
            $modversion['sub'][3]['name'] = _MI_SF_SUB_SMNAME3;
143
            $modversion['sub'][3]['url']  = 'open_index.php';
144
        }
145
    }
146
}
147
148
$modversion['blocks'][1]['file']        = 'faqs_new.php';
149
$modversion['blocks'][1]['name']        = _MI_SF_ARTSNEW;
150
$modversion['blocks'][1]['description'] = 'Shows new faqs';
151
$modversion['blocks'][1]['show_func']   = 'b_faqs_new_show';
152
$modversion['blocks'][1]['edit_func']   = 'b_faqs_new_edit';
153
$modversion['blocks'][1]['options']     = '0|datesub|5|65|1';
154
$modversion['blocks'][1]['template']    = 'faqs_new.tpl';
155
156
$modversion['blocks'][2]['file']        = 'faqs_recent.php';
157
$modversion['blocks'][2]['name']        = _MI_SF_RECENTFAQS;
158
$modversion['blocks'][2]['description'] = 'Shows recent faqs';
159
$modversion['blocks'][2]['show_func']   = 'b_faqs_recent_show';
160
$modversion['blocks'][2]['edit_func']   = 'b_faqs_recent_edit';
161
$modversion['blocks'][2]['options']     = '0|datesub|5|65';
162
$modversion['blocks'][2]['template']    = 'faqs_recent.tpl';
163
164
$modversion['blocks'][3]['file']        = 'faqs_context.php';
165
$modversion['blocks'][3]['name']        = _MI_SF_ARTSCONTEXT;
166
$modversion['blocks'][3]['description'] = 'Shows contextual faqs';
167
$modversion['blocks'][3]['show_func']   = 'b_faqs_context_show';
168
$modversion['blocks'][3]['edit_func']   = 'b_faqs_context_edit';
169
$modversion['blocks'][3]['options']     = '5';
170
$modversion['blocks'][3]['template']    = 'faqs_context.tpl';
171
172
$modversion['blocks'][4]['file']        = 'faqs_random_how.php';
173
$modversion['blocks'][4]['name']        = _MI_SF_ARTSRANDOM_HOW;
174
$modversion['blocks'][4]['description'] = "Shows a random 'How do I' faq";
175
$modversion['blocks'][4]['show_func']   = 'b_faqs_random_how_show';
176
$modversion['blocks'][4]['template']    = 'faqs_random_how.tpl';
177
178
$modversion['blocks'][5]['file']        = 'faqs_random_diduno.php';
179
$modversion['blocks'][5]['name']        = _MI_SF_ARTSRANDOM_DIDUNO;
180
$modversion['blocks'][5]['description'] = "Shows a random 'Did You Know' faq";
181
$modversion['blocks'][5]['show_func']   = 'b_faqs_random_diduno_show';
182
$modversion['blocks'][5]['template']    = 'faqs_random_diduno.tpl';
183
184
$modversion['blocks'][6]['file']        = 'faqs_random_faq.php';
185
$modversion['blocks'][6]['name']        = _MI_SF_ARTSRANDOM_FAQ;
186
$modversion['blocks'][6]['description'] = "Shows a random 'faq' faq";
187
$modversion['blocks'][6]['show_func']   = 'b_faqs_random_faq_show';
188
$modversion['blocks'][6]['template']    = 'faqs_random_faq.tpl';
189
190
$modversion['blocks'][7]['file']        = 'faqs_recent_questions.php';
191
$modversion['blocks'][7]['name']        = _MI_SF_RECENT_QUESTIONS;
192
$modversion['blocks'][7]['description'] = 'Shows recent questions';
193
$modversion['blocks'][7]['show_func']   = 'b_faqs_recent_questions_show';
194
$modversion['blocks'][7]['edit_func']   = 'b_faqs_recent_questions_edit';
195
$modversion['blocks'][7]['options']     = '0|datesub|5|65|1';
196
$modversion['blocks'][7]['template']    = 'faqs_recent_questions.tpl';
197
198
$modversion['blocks'][8]['file']        = 'faqs_most_viewed.php';
199
$modversion['blocks'][8]['name']        = _MI_SF_MOST_VIEWED;
200
$modversion['blocks'][8]['description'] = 'Shows most viewed Q&A';
201
$modversion['blocks'][8]['show_func']   = 'b_faqs_most_viewed_show';
202
$modversion['blocks'][8]['edit_func']   = 'b_faqs_most_viewed_edit';
203
$modversion['blocks'][8]['options']     = '0|5|65';
204
$modversion['blocks'][8]['template']    = 'faqs_most_viewed.tpl';
205
206
// Templates
207
$modversion['templates'][1]['file']        = 'smartfaq_singlefaq.tpl';
208
$modversion['templates'][1]['description'] = 'Display a single FAQ';
209
210
$modversion['templates'][2]['file']        = 'smartfaq_lastfaqs.tpl';
211
$modversion['templates'][2]['description'] = 'Display the last faqs';
212
213
$modversion['templates'][3]['file']        = 'smartfaq_category.tpl';
214
$modversion['templates'][3]['description'] = 'Display a category';
215
216
$modversion['templates'][4]['file']        = 'smartfaq_index.tpl';
217
$modversion['templates'][4]['description'] = 'Display index';
218
219
$modversion['templates'][5]['file']        = 'smartfaq_faq.tpl';
220
$modversion['templates'][5]['description'] = 'Display faq';
221
222
$modversion['templates'][6]['file']        = 'smartfaq_submit.tpl';
223
$modversion['templates'][6]['description'] = 'Form to submit request or answer a question';
224
225
// Config Settings (only for modules that need config settings generated automatically)
226
227
$i                                       = 1;
228
$modversion['config'][$i]['name']        = 'allowsubmit';
229
$modversion['config'][$i]['title']       = '_MI_SF_ALLOWSUBMIT';
230
$modversion['config'][$i]['description'] = '_MI_SF_ALLOWSUBMITDSC';
231
$modversion['config'][$i]['formtype']    = 'yesno';
232
$modversion['config'][$i]['valuetype']   = 'int';
233
$modversion['config'][$i]['default']     = 1;
234
++$i;
235
$modversion['config'][$i]['name']        = 'allowrequest';
236
$modversion['config'][$i]['title']       = '_MI_SF_ALLOWREQUEST';
237
$modversion['config'][$i]['description'] = '_MI_SF_ALLOWREQUESTDSC';
238
$modversion['config'][$i]['formtype']    = 'yesno';
239
$modversion['config'][$i]['valuetype']   = 'int';
240
$modversion['config'][$i]['default']     = 1;
241
++$i;
242
$modversion['config'][$i]['name']        = 'allownewanswer';
243
$modversion['config'][$i]['title']       = '_MI_SF_NEWANSWER';
244
$modversion['config'][$i]['description'] = '_MI_SF_NEWANSWERDSC';
245
$modversion['config'][$i]['formtype']    = 'yesno';
246
$modversion['config'][$i]['valuetype']   = 'int';
247
$modversion['config'][$i]['default']     = 1;
248
++$i;
249
$modversion['config'][$i]['name']        = 'anonpost';
250
$modversion['config'][$i]['title']       = '_MI_SF_ANONPOST';
251
$modversion['config'][$i]['description'] = '_MI_SF_ANONPOSTDSC';
252
$modversion['config'][$i]['formtype']    = 'yesno';
253
$modversion['config'][$i]['valuetype']   = 'int';
254
$modversion['config'][$i]['default']     = 0;
255
256
$memberHandler = xoops_getHandler('member');
257
$groups        = $memberHandler->getGroupList();
258
++$i;
259
$modversion['config'][$i]['name']        = 'dateformat';
260
$modversion['config'][$i]['title']       = '_MI_SF_DATEFORMAT';
261
$modversion['config'][$i]['description'] = '_MI_SF_DATEFORMATDSC';
262
$modversion['config'][$i]['formtype']    = 'textbox';
263
$modversion['config'][$i]['valuetype']   = 'text';
264
$modversion['config'][$i]['default']     = 'd-M-Y H:i';
265
++$i;
266
$modversion['config'][$i]['name']        = 'displaycollaps';
267
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_COLLAPS';
268
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_COLLAPSDSC';
269
$modversion['config'][$i]['formtype']    = 'yesno';
270
$modversion['config'][$i]['valuetype']   = 'int';
271
$modversion['config'][$i]['default']     = 1;
272
++$i;
273
$modversion['config'][$i]['name']        = 'displaylastfaqs';
274
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_LAST_FAQS';
275
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_LAST_FAQSDSC';
276
$modversion['config'][$i]['formtype']    = 'yesno';
277
$modversion['config'][$i]['valuetype']   = 'int';
278
$modversion['config'][$i]['default']     = 1;
279
++$i;
280
$modversion['config'][$i]['name']        = 'displaytype';
281
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAYTYPE';
282
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAYTYPEDSC';
283
$modversion['config'][$i]['formtype']    = 'select';
284
$modversion['config'][$i]['valuetype']   = 'text';
285
$modversion['config'][$i]['options']     = array(_MI_SF_DISPLAYTYPE_SUMMARY => 'summary', _MI_SF_DISPLAYTYPE_FULL => 'full');
286
$modversion['config'][$i]['default']     = 'full';
287
++$i;
288
$modversion['config'][$i]['name']        = 'displaylastfaq';
289
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_LAST_FAQ';
290
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_LAST_FAQDSC';
291
$modversion['config'][$i]['formtype']    = 'yesno';
292
$modversion['config'][$i]['valuetype']   = 'int';
293
$modversion['config'][$i]['default']     = 1;
294
++$i;
295
$modversion['config'][$i]['name']        = 'lastfaqsize';
296
$modversion['config'][$i]['title']       = '_MI_SF_LAST_FAQ_SIZE';
297
$modversion['config'][$i]['description'] = '_MI_SF_LAST_FAQ_SIZEDSC';
298
$modversion['config'][$i]['formtype']    = 'textbox';
299
$modversion['config'][$i]['valuetype']   = 'text';
300
$modversion['config'][$i]['default']     = '50';
301
++$i;
302
$modversion['config'][$i]['name']        = 'questionsize';
303
$modversion['config'][$i]['title']       = '_MI_SF_QUESTION_SIZE';
304
$modversion['config'][$i]['description'] = '_MI_SF_QUESTION_SIZEDSC';
305
$modversion['config'][$i]['formtype']    = 'textbox';
306
$modversion['config'][$i]['valuetype']   = 'text';
307
$modversion['config'][$i]['default']     = '60';
308
++$i;
309
$modversion['config'][$i]['name']        = 'displaytopcatdsc';
310
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_TOPCAT_DSC';
311
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_TOPCAT_DSCDSC';
312
$modversion['config'][$i]['formtype']    = 'yesno';
313
$modversion['config'][$i]['valuetype']   = 'int';
314
$modversion['config'][$i]['default']     = 1;
315
++$i;
316
$modversion['config'][$i]['name']        = 'displaysubcatonindex';
317
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_SUBCAT_INDEX';
318
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_SUBCAT_INDEXDSC';
319
$modversion['config'][$i]['formtype']    = 'yesno';
320
$modversion['config'][$i]['valuetype']   = 'int';
321
$modversion['config'][$i]['default']     = 1;
322
++$i;
323
$modversion['config'][$i] ['name']       = 'displaysubcatdsc';
324
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_SBCAT_DSC';
325
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_SBCAT_DSCDSC';
326
$modversion['config'][$i]['formtype']    = 'yesno';
327
$modversion['config'][$i]['valuetype']   = 'int';
328
$modversion['config'][$i]['default']     = 1;
329
++$i;
330
$modversion['config'][$i]['name']        = 'orderbydate';
331
$modversion['config'][$i]['title']       = '_MI_SF_ORDERBYDATE';
332
$modversion['config'][$i]['description'] = '_MI_SF_ORDERBYDATEDSC';
333
$modversion['config'][$i]['formtype']    = 'yesno';
334
$modversion['config'][$i]['valuetype']   = 'int';
335
$modversion['config'][$i]['default']     = 0;
336
++$i;
337
$modversion['config'][$i]['name']        = 'display_date_col';
338
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_DATE_COL';
339
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_DATE_COLDSC';
340
$modversion['config'][$i]['formtype']    = 'yesno';
341
$modversion['config'][$i]['valuetype']   = 'int';
342
$modversion['config'][$i]['default']     = 1;
343
++$i;
344
$modversion['config'][$i]['name']        = 'display_hits_col';
345
$modversion['config'][$i]['title']       = '_MI_SF_DISPLAY_HITS_COL';
346
$modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_HITS_COLDSC';
347
$modversion['config'][$i]['formtype']    = 'yesno';
348
$modversion['config'][$i]['valuetype']   = 'int';
349
$modversion['config'][$i]['default']     = 1;
350
++$i;
351
$modversion['config'][$i]['name']        = 'useimagenavpage';
352
$modversion['config'][$i]['title']       = '_MI_SF_USEIMAGENAVPAGE';
353
$modversion['config'][$i]['description'] = '_MI_SF_USEIMAGENAVPAGEDSC';
354
$modversion['config'][$i]['formtype']    = 'yesno';
355
$modversion['config'][$i]['valuetype']   = 'int';
356
$modversion['config'][$i]['default']     = 0;
357
++$i;
358
$modversion['config'][$i]['name']        = 'globaldisplaycomments';
359
$modversion['config'][$i]['title']       = '_MI_SF_ALLOWCOMMENTS';
360
$modversion['config'][$i]['description'] = '_MI_SF_ALLOWCOMMENTSDSC';
361
$modversion['config'][$i]['formtype']    = 'yesno';
362
$modversion['config'][$i]['valuetype']   = 'int';
363
$modversion['config'][$i]['default']     = 1;
364
++$i;
365
$modversion['config'][$i]['name']        = 'adminhits';
366
$modversion['config'][$i]['title']       = '_MI_SF_ALLOWADMINHITS';
367
$modversion['config'][$i]['description'] = '_MI_SF_ALLOWADMINHITSDSC';
368
$modversion['config'][$i]['formtype']    = 'yesno';
369
$modversion['config'][$i]['valuetype']   = 'int';
370
$modversion['config'][$i]['default']     = 0;
371
++$i;
372
$modversion['config'][$i]['name']        = 'autoapprove_submitted_faq';
373
$modversion['config'][$i]['title']       = '_MI_SF_AUTOAPPROVE_SUB_FAQ';
374
$modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_SUB_FAQ_DSC';
375
$modversion['config'][$i]['formtype']    = 'yesno';
376
$modversion['config'][$i]['valuetype']   = 'int';
377
$modversion['config'][$i]['default']     = 0;
378
++$i;
379
$modversion['config'][$i]['name']        = 'autoapprove_request';
380
$modversion['config'][$i]['title']       = '_MI_SF_AUTOAPPROVE_REQUEST';
381
$modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_REQUEST_DSC';
382
$modversion['config'][$i]['formtype']    = 'yesno';
383
$modversion['config'][$i]['valuetype']   = 'int';
384
$modversion['config'][$i]['default']     = 0;
385
++$i;
386
$modversion['config'][$i]['name']        = 'autoapprove_answer';
387
$modversion['config'][$i]['title']       = '_MI_SF_AUTOAPPROVE_ANS';
388
$modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_ANS_DSC';
389
$modversion['config'][$i]['formtype']    = 'yesno';
390
$modversion['config'][$i]['valuetype']   = 'int';
391
$modversion['config'][$i]['default']     = 0;
392
++$i;
393
$modversion['config'][$i]['name']        = 'autoapprove_answer_new';
394
$modversion['config'][$i]['title']       = '_MI_SF_AUTOAPPROVE_ANS_NEW';
395
$modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_ANS_NEW_DSC';
396
$modversion['config'][$i]['formtype']    = 'yesno';
397
$modversion['config'][$i]['valuetype']   = 'int';
398
$modversion['config'][$i]['default']     = 0;
399
++$i;
400
$modversion['config'][$i]['name']        = 'catperpage';
401
$modversion['config'][$i]['title']       = '_MI_SF_CATPERPAGE';
402
$modversion['config'][$i]['description'] = '_MI_SF_CATPERPAGEDSC';
403
$modversion['config'][$i]['formtype']    = 'select';
404
$modversion['config'][$i]['valuetype']   = 'int';
405
$modversion['config'][$i]['default']     = 5;
406
$modversion['config'][$i]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
407
++$i;
408
$modversion['config'][$i]['name']        = 'perpage';
409
$modversion['config'][$i]['title']       = '_MI_SF_PERPAGE';
410
$modversion['config'][$i]['description'] = '_MI_SF_PERPAGEDSC';
411
$modversion['config'][$i]['formtype']    = 'select';
412
$modversion['config'][$i]['valuetype']   = 'int';
413
$modversion['config'][$i]['default']     = 5;
414
$modversion['config'][$i]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
415
++$i;
416
$modversion['config'][$i]['name']        = 'indexperpage';
417
$modversion['config'][$i]['title']       = '_MI_SF_PERPAGEINDEX';
418
$modversion['config'][$i]['description'] = '_MI_SF_PERPAGEINDEXDSC';
419
$modversion['config'][$i]['formtype']    = 'select';
420
$modversion['config'][$i]['valuetype']   = 'int';
421
$modversion['config'][$i]['default']     = 5;
422
$modversion['config'][$i]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
423
++$i;
424
$modversion['config'][$i]['name']        = 'indexwelcomemsg';
425
$modversion['config'][$i]['title']       = '_MI_SF_INDEXWELCOMEMSG';
426
$modversion['config'][$i]['description'] = '_MI_SF_INDEXWELCOMEMSGDSC';
427
$modversion['config'][$i]['formtype']    = 'textarea';
428
$modversion['config'][$i]['valuetype']   = 'text';
429
$modversion['config'][$i]['default']     = _MI_SF_INDEXWELCOMEMSGDEF;
430
++$i;
431
$modversion['config'][$i]['name']        = 'requestintromsg';
432
$modversion['config'][$i]['title']       = '_MI_SF_REQUESTINTROMSG';
433
$modversion['config'][$i]['description'] = '_MI_SF_REQUESTINTROMSGDSC';
434
$modversion['config'][$i]['formtype']    = 'textarea';
435
$modversion['config'][$i]['valuetype']   = 'text';
436
$modversion['config'][$i]['default']     = _MI_SF_REQUESTINTROMSGDEF;
437
++$i;
438
$modversion['config'][$i]['name']        = 'openquestionintromsg';
439
$modversion['config'][$i]['title']       = '_MI_SF_OPENINTROMSG';
440
$modversion['config'][$i]['description'] = '_MI_SF_OPENINTROMSGDSC';
441
$modversion['config'][$i]['formtype']    = 'textarea';
442
$modversion['config'][$i]['valuetype']   = 'text';
443
$modversion['config'][$i]['default']     = _MI_SF_OPENINTROMSGDEF;
444
++$i;
445
$modversion['config'][$i]['name']        = 'userealname';
446
$modversion['config'][$i]['title']       = '_MI_SF_USEREALNAME';
447
$modversion['config'][$i]['description'] = '_MI_SF_USEREALNAMEDSC';
448
$modversion['config'][$i]['formtype']    = 'yesno';
449
$modversion['config'][$i]['valuetype']   = 'int';
450
$modversion['config'][$i]['default']     = 0;
451
452
/*
0 ignored issues
show
Unused Code Comprehensibility introduced by
75% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
453
++$i;
454
$modversion['config'][$i]['name'] = 'moderatorsedit';
455
$modversion['config'][$i]['title'] = '_MI_SF_MODERATORSEDIT';
456
$modversion['config'][$i]['description'] = '_MI_SF_MODERATORSEDITDSC';
457
$modversion['config'][$i]['formtype'] = 'yesno';
458
$modversion['config'][$i]['valuetype'] = 'int';
459
$modversion['config'][$i]['default'] = 0;*/
460
++$i;
461
$modversion['config'][$i]['name']        = 'helppath_select';
462
$modversion['config'][$i]['title']       = '_MI_SF_HELP_PATH_SELECT';
463
$modversion['config'][$i]['description'] = '_MI_SF_HELP_PATH_SELECT_DSC';
464
$modversion['config'][$i]['formtype']    = 'select';
465
$modversion['config'][$i]['valuetype']   = 'text';
466
$modversion['config'][$i]['options']     = array(_MI_SF_HELP_INSIDE => 'inside', _MI_SF_HELP_CUSTOM => 'custom');
467
$modversion['config'][$i]['default']     = 'docs.xoops.org';
468
++$i;
469
$modversion['config'][$i]['name']        = 'helppath_custom';
470
$modversion['config'][$i]['title']       = '_MI_SF_HELP_PATH_CUSTOM';
471
$modversion['config'][$i]['description'] = '_MI_SF_HELP_PATH_CUSTOM_DSC';
472
$modversion['config'][$i]['formtype']    = 'textbox';
473
$modversion['config'][$i]['valuetype']   = 'text';
474
$modversion['config'][$i]['default']     = '';
475
++$i;
476
xoops_load('XoopsEditorHandler');
477
$editorHandler = XoopsEditorHandler::getInstance();
478
$editorList    = array_flip($editorHandler->getList());
479
480
$modversion['config'][$i] = array(
481
    'name'        => 'form_editorOptions',
482
    'title'       => '_MI_SF_EDITOR',
483
    'description' => '_MI_SF_EDITORCHOICE',
484
    'formtype'    => 'select',
485
    'valuetype'   => 'text',
486
    'options'     => $editorList,
487
    'default'     => 'dhtmltextarea'
488
);
489
490
++$i;
491
$modversion['config'][$i] = array(
492
    'name'        => 'form_editorOptionsUser',
493
    'title'       => '_MI_SF_EDITORUSER',
494
    'description' => '_MI_SF_EDITORCHOICEUSER',
495
    'formtype'    => 'select',
496
    'valuetype'   => 'text',
497
    'options'     => $editorList,
498
    'default'     => 'dhtmltextarea'
499
);
500
//mb------------ START ---------------------
501
502
define('_MI_SF_SHOTWIDTH2', '<span style="color:#FF0000; font-size:12px;"><b>Upload Files/Images</b></span> ');
503
504
$modversion['config'][] = array(
505
    'name'        => 'logfile',
506
    'title'       => '_MI_SF_SHOTWIDTH2',
507
    'description' => '_MI_SF_USERLOG_CONFCAT_LOGFILE_DSC',
508
    'formtype'    => 'line_break',
509
    'valuetype'   => 'textbox',
510
    'default'     => 'odd'
511
);
512
513
$modversion['config'][] = array(
514
    'name'        => 'attach_ext',
515
    'title'       => '_AM_SF_ALLOWED_EXTENSIONS',
516
    'description' => '_AM_SF_ALLOWED_EXTENSIONS_DESC',
517
    'formtype'    => 'textbox',
518
    'valuetype'   => 'text',
519
    'default'     => 'zip|jpg|gif|png'
520
);
521
522
$modversion['config'][] = array(
523
    'name'        => 'dir_attachments',
524
    'title'       => '_MI_SF_DIR_ATTACHMENT',
525
    'description' => '_MI_SF_DIR_ATTACHMENT_DESC',
526
    'formtype'    => 'textbox',
527
    'valuetype'   => 'text',
528
    'default'     => 'uploads/smartfaq'
529
);
530
531
$modversion['config'][] = array(
532
    'name'        => 'media_allowed',
533
    'title'       => '_MI_SF_MEDIA_ENABLE',
534
    'description' => '_MI_SF_MEDIA_ENABLE_DESC',
535
    'formtype'    => 'yesno',
536
    'valuetype'   => 'int',
537
    'default'     => 1
538
);
539
540
$modversion['config'][] = array(
541
    'name'        => 'path_magick',
542
    'title'       => '_MI_SF_PATH_MAGICK',
543
    'description' => '_MI_SF_PATH_MAGICK_DESC',
544
    'formtype'    => 'textbox',
545
    'valuetype'   => 'text',
546
    'default'     => '/usr/bin/X11'
547
);
548
549
$modversion['config'][] = array(
550
    'name'        => 'path_netpbm',
551
    'title'       => '_MI_SF_PATH_NETPBM',
552
    'description' => '_MI_SF_PATH_NETPBM_DESC',
553
    'formtype'    => 'textbox',
554
    'valuetype'   => 'text',
555
    'default'     => '/usr/bin'
556
);
557
558
$modversion['config'][] = array(
559
    'name'        => 'image_lib',
560
    'title'       => '_MI_SF_IMAGELIB',
561
    'description' => '_MI_SF_IMAGELIB_DESC',
562
    'formtype'    => 'select',
563
    'valuetype'   => 'int',
564
    'default'     => 0,
565
    'options'     => array(
566
        _MI_SF_AUTO   => 0,
567
        _MI_SF_MAGICK => 1,
568
        _MI_SF_NETPBM => 2,
569
        _MI_SF_GD1    => 3,
570
        _MI_SF_GD2    => 4
571
    )
572
);
573
574
$modversion['config'][] = array(
575
    'name'        => 'show_userattach',
576
    'title'       => '_MI_SF_USERATTACH_ENABLE',
577
    'description' => '_MI_SF_USERATTACH_ENABLE_DESC',
578
    'formtype'    => 'yesno',
579
    'valuetype'   => 'int',
580
    'default'     => 1
581
);
582
583
$modversion['config'][] = array(
584
    'name'        => 'max_img_width',
585
    'title'       => '_MI_SF_MAX_IMG_WIDTH',
586
    'description' => '_MI_SF_MAX_IMG_WIDTH_DESC',
587
    'formtype'    => 'textbox',
588
    'valuetype'   => 'int',
589
    'default'     => 800
590
);
591
592
$modversion['config'][] = array(
593
    'name'        => 'max_img_height',
594
    'title'       => '_MI_SF_MAX_IMG_HEIGHT',
595
    'description' => '_MI_SF_MAX_IMG_HEIGHT_DESC',
596
    'formtype'    => 'textbox',
597
    'valuetype'   => 'int',
598
    'default'     => 640
599
);
600
601
$modversion['config'][] = array(
602
    'name'        => 'max_image_width',
603
    'title'       => '_MI_SF_MAX_IMAGE_WIDTH',
604
    'description' => '_MI_SF_MAX_IMAGE_WIDTH_DESC',
605
    'formtype'    => 'textbox',
606
    'valuetype'   => 'int',
607
    'default'     => 150
608
);
609
610
$modversion['config'][] = array(
611
    'name'        => 'max_image_height',
612
    'title'       => '_MI_SF_MAX_IMAGE_HEIGHT',
613
    'description' => '_MI_SF_MAX_IMAGE_HEIGHT_DESC',
614
    'formtype'    => 'textbox',
615
    'valuetype'   => 'int',
616
    'default'     => 150
617
);
618
619
$modversion['config'][] = array(
620
    'name'        => 'max_image_size',
621
    'title'       => '_MI_SF_MAX_IMAGE_SIZE',
622
    'description' => '_MI_SF_MAX_IMAGE_SIZE_DESC',
623
    'formtype'    => 'textbox',
624
    'valuetype'   => 'int',
625
    'default'     => 1024
626
);
627
628
define('_MI_XDIR_SHOTWIDTH3', '<span style="color:#FF0000; font-size:12px;"><b>Comments/Notifications</b></span> ');
629
630
$modversion['config'][] = array(
631
    'name'        => 'logfile',
632
    'title'       => '_MI_XDIR_SHOTWIDTH3',
633
    'description' => '_MI_USERLOG_CONFCAT_LOGFILE_DSC',
634
    'formtype'    => 'line_break',
635
    'valuetype'   => 'textbox',
636
    'default'     => 'odd'
637
);
638
639
//mb ------------- end --------------------------
640
641
// Comments
642
$modversion['hasComments']          = 1;
643
$modversion['comments']['itemName'] = 'faqid';
644
$modversion['comments']['pageName'] = 'faq.php';
645
// Comment callback functions
646
$modversion['comments']['callbackFile']        = 'include/comment_functions.php';
647
$modversion['comments']['callback']['approve'] = 'smartfaq_com_approve';
648
$modversion['comments']['callback']['update']  = 'smartfaq_com_update';
649
// Notification
650
$modversion['hasNotification']             = 1;
651
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
652
$modversion['notification']['lookup_func'] = 'smartfaq_notify_iteminfo';
653
654
$modversion['notification']['category'][1]['name']           = 'global_faq';
655
$modversion['notification']['category'][1]['title']          = _MI_SF_GLOBAL_FAQ_NOTIFY;
656
$modversion['notification']['category'][1]['description']    = _MI_SF_GLOBAL_FAQ_NOTIFY_DSC;
657
$modversion['notification']['category'][1]['subscribe_from'] = array('index.php', 'category.php', 'faq.php');
658
659
$modversion['notification']['category'][2]['name']           = 'category_faq';
660
$modversion['notification']['category'][2]['title']          = _MI_SF_CATEGORY_FAQ_NOTIFY;
661
$modversion['notification']['category'][2]['description']    = _MI_SF_CATEGORY_FAQ_NOTIFY_DSC;
662
$modversion['notification']['category'][2]['subscribe_from'] = array('index.php', 'category.php', 'faq.php');
663
$modversion['notification']['category'][2]['item_name']      = 'categoryid';
664
$modversion['notification']['category'][2]['allow_bookmark'] = 1;
665
666
$modversion['notification']['category'][3]['name']           = 'faq';
667
$modversion['notification']['category'][3]['title']          = _MI_SF_FAQ_NOTIFY;
668
$modversion['notification']['category'][3]['description']    = _MI_SF_FAQ_NOTIFY_DSC;
669
$modversion['notification']['category'][3]['subscribe_from'] = array('faq.php');
670
$modversion['notification']['category'][3]['item_name']      = 'faqid';
671
$modversion['notification']['category'][3]['allow_bookmark'] = 1;
672
673
$modversion['notification']['category'][4]['name']           = 'global_question';
674
$modversion['notification']['category'][4]['title']          = _MI_SF_GLOBAL_QUESTION_NOTIFY;
675
$modversion['notification']['category'][4]['description']    = _MI_SF_GLOBAL_QUESTION_NOTIFY_DSC;
676
$modversion['notification']['category'][4]['subscribe_from'] = array('open_index.php');
677
678
$modversion['notification']['category'][5]['name']           = 'category_question';
679
$modversion['notification']['category'][5]['title']          = _MI_SF_CATEGORY_QUESTION_NOTIFY;
680
$modversion['notification']['category'][5]['description']    = _MI_SF_CATEGORY_QUESTION_NOTIFY_DSC;
681
$modversion['notification']['category'][5]['subscribe_from'] = array('open_index.php, open_category.php');
682
683
$modversion['notification']['category'][6]['name']           = 'question';
684
$modversion['notification']['category'][6]['title']          = _MI_SF_QUESTION_NOTIFY;
685
$modversion['notification']['category'][6]['description']    = _MI_SF_QUESTION_NOTIFY_DSC;
686
$modversion['notification']['category'][6]['subscribe_from'] = array('open_index.php');
687
688
$modversion['notification']['event'][1]['name']          = 'category_created';
689
$modversion['notification']['event'][1]['category']      = 'global_faq';
690
$modversion['notification']['event'][1]['title']         = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY;
691
$modversion['notification']['event'][1]['caption']       = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY_CAP;
692
$modversion['notification']['event'][1]['description']   = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY_DSC;
693
$modversion['notification']['event'][1]['mail_template'] = 'global_faq_category_created';
694
$modversion['notification']['event'][1]['mail_subject']  = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY_SBJ;
695
696
$modversion['notification']['event'][2]['name']          = 'submitted';
697
$modversion['notification']['event'][2]['category']      = 'global_faq';
698
$modversion['notification']['event'][2]['admin_only']    = 1;
699
$modversion['notification']['event'][2]['title']         = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY;
700
$modversion['notification']['event'][2]['caption']       = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY_CAP;
701
$modversion['notification']['event'][2]['description']   = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY_DSC;
702
$modversion['notification']['event'][2]['mail_template'] = 'global_faq_submitted';
703
$modversion['notification']['event'][2]['mail_subject']  = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY_SBJ;
704
705
$modversion['notification']['event'][3]['name']          = 'published';
706
$modversion['notification']['event'][3]['category']      = 'global_faq';
707
$modversion['notification']['event'][3]['title']         = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY;
708
$modversion['notification']['event'][3]['caption']       = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY_CAP;
709
$modversion['notification']['event'][3]['description']   = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY_DSC;
710
$modversion['notification']['event'][3]['mail_template'] = 'global_faq_published';
711
$modversion['notification']['event'][3]['mail_subject']  = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY_SBJ;
712
713
$modversion['notification']['event'][4]['name']          = 'answer_proposed';
714
$modversion['notification']['event'][4]['category']      = 'global_faq';
715
$modversion['notification']['event'][4]['admin_only']    = 1;
716
$modversion['notification']['event'][4]['title']         = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY;
717
$modversion['notification']['event'][4]['caption']       = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY_CAP;
718
$modversion['notification']['event'][4]['description']   = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY_DSC;
719
$modversion['notification']['event'][4]['mail_template'] = 'global_faq_answer_proposed';
720
$modversion['notification']['event'][4]['mail_subject']  = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY_SBJ;
721
722
$modversion['notification']['event'][5]['name']          = 'answer_published';
723
$modversion['notification']['event'][5]['category']      = 'global_faq';
724
$modversion['notification']['event'][5]['title']         = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY;
725
$modversion['notification']['event'][5]['caption']       = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY_CAP;
726
$modversion['notification']['event'][5]['description']   = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY_DSC;
727
$modversion['notification']['event'][5]['mail_template'] = 'global_faq_answer_published';
728
$modversion['notification']['event'][5]['mail_subject']  = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY_SBJ;
729
730
$modversion['notification']['event'][6]['name']          = 'submitted';
731
$modversion['notification']['event'][6]['category']      = 'category_faq';
732
$modversion['notification']['event'][6]['admin_only']    = 1;
733
$modversion['notification']['event'][6]['title']         = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY;
734
$modversion['notification']['event'][6]['caption']       = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY_CAP;
735
$modversion['notification']['event'][6]['description']   = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY_DSC;
736
$modversion['notification']['event'][6]['mail_template'] = 'category_faq_submitted';
737
$modversion['notification']['event'][6]['mail_subject']  = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY_SBJ;
738
739
$modversion['notification']['event'][7]['name']          = 'published';
740
$modversion['notification']['event'][7]['category']      = 'category_faq';
741
$modversion['notification']['event'][7]['title']         = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY;
742
$modversion['notification']['event'][7]['caption']       = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY_CAP;
743
$modversion['notification']['event'][7]['description']   = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY_DSC;
744
$modversion['notification']['event'][7]['mail_template'] = 'category_faq_published';
745
$modversion['notification']['event'][7]['mail_subject']  = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY_SBJ;
746
747
$modversion['notification']['event'][8]['name']          = 'answer_proposed';
748
$modversion['notification']['event'][8]['category']      = 'category_faq';
749
$modversion['notification']['event'][8]['admin_only']    = 1;
750
$modversion['notification']['event'][8]['title']         = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY;
751
$modversion['notification']['event'][8]['caption']       = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY_CAP;
752
$modversion['notification']['event'][8]['description']   = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY_DSC;
753
$modversion['notification']['event'][8]['mail_template'] = 'category_faq_answer_proposed';
754
$modversion['notification']['event'][8]['mail_subject']  = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY_SBJ;
755
756
$modversion['notification']['event'][9]['name']          = 'answer_published';
757
$modversion['notification']['event'][9]['category']      = 'category_faq';
758
$modversion['notification']['event'][9]['title']         = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY;
759
$modversion['notification']['event'][9]['caption']       = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY_CAP;
760
$modversion['notification']['event'][9]['description']   = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY_DSC;
761
$modversion['notification']['event'][9]['mail_template'] = 'category_faq_answer_published';
762
$modversion['notification']['event'][9]['mail_subject']  = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY_SBJ;
763
764
$modversion['notification']['event'][10]['name']          = 'rejected';
765
$modversion['notification']['event'][10]['category']      = 'faq';
766
$modversion['notification']['event'][10]['invisible']     = 1;
767
$modversion['notification']['event'][10]['title']         = _MI_SF_FAQ_REJECTED_NOTIFY;
768
$modversion['notification']['event'][10]['caption']       = _MI_SF_FAQ_REJECTED_NOTIFY_CAP;
769
$modversion['notification']['event'][10]['description']   = _MI_SF_FAQ_REJECTED_NOTIFY_DSC;
770
$modversion['notification']['event'][10]['mail_template'] = 'faq_rejected';
771
$modversion['notification']['event'][10]['mail_subject']  = _MI_SF_FAQ_REJECTED_NOTIFY_SBJ;
772
773
$modversion['notification']['event'][11]['name']          = 'approved';
774
$modversion['notification']['event'][11]['category']      = 'faq';
775
$modversion['notification']['event'][11]['invisible']     = 1;
776
$modversion['notification']['event'][11]['title']         = _MI_SF_FAQ_APPROVED_NOTIFY;
777
$modversion['notification']['event'][11]['caption']       = _MI_SF_FAQ_APPROVED_NOTIFY_CAP;
778
$modversion['notification']['event'][11]['description']   = _MI_SF_FAQ_APPROVED_NOTIFY_DSC;
779
$modversion['notification']['event'][11]['mail_template'] = 'faq_approved';
780
$modversion['notification']['event'][11]['mail_subject']  = _MI_SF_FAQ_APPROVED_NOTIFY_SBJ;
781
782
$modversion['notification']['event'][12]['name']          = 'answer_approved';
783
$modversion['notification']['event'][12]['category']      = 'faq';
784
$modversion['notification']['event'][12]['invisible']     = 1;
785
$modversion['notification']['event'][12]['title']         = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY;
786
$modversion['notification']['event'][12]['caption']       = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY_CAP;
787
$modversion['notification']['event'][12]['description']   = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY_DSC;
788
$modversion['notification']['event'][12]['mail_template'] = 'faq_answer_approved';
789
$modversion['notification']['event'][12]['mail_subject']  = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY_SBJ;
790
791
$modversion['notification']['event'][13]['name']          = 'answer_rejected';
792
$modversion['notification']['event'][13]['category']      = 'faq';
793
$modversion['notification']['event'][13]['invisible']     = 1;
794
$modversion['notification']['event'][13]['title']         = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY;
795
$modversion['notification']['event'][13]['caption']       = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY_CAP;
796
$modversion['notification']['event'][13]['description']   = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY_DSC;
797
$modversion['notification']['event'][13]['mail_template'] = 'faq_answer_rejected';
798
$modversion['notification']['event'][13]['mail_subject']  = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY_SBJ;
799
800
$modversion['notification']['event'][14]['name']          = 'submitted';
801
$modversion['notification']['event'][14]['category']      = 'global_question';
802
$modversion['notification']['event'][14]['admin_only']    = 1;
803
$modversion['notification']['event'][14]['title']         = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY;
804
$modversion['notification']['event'][14]['caption']       = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY_CAP;
805
$modversion['notification']['event'][14]['description']   = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY_DSC;
806
$modversion['notification']['event'][14]['mail_template'] = 'global_question_submitted';
807
$modversion['notification']['event'][14]['mail_subject']  = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY_SBJ;
808
809
$modversion['notification']['event'][15]['name']          = 'published';
810
$modversion['notification']['event'][15]['category']      = 'global_question';
811
$modversion['notification']['event'][15]['title']         = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY;
812
$modversion['notification']['event'][15]['caption']       = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY_CAP;
813
$modversion['notification']['event'][15]['description']   = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY_DSC;
814
$modversion['notification']['event'][15]['mail_template'] = 'global_question_published';
815
$modversion['notification']['event'][15]['mail_subject']  = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY_SBJ;
816
817
$modversion['notification']['event'][16]['name']          = 'answer_proposed';
818
$modversion['notification']['event'][16]['category']      = 'global_question';
819
$modversion['notification']['event'][16]['admin_only']    = 1;
820
$modversion['notification']['event'][16]['title']         = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY;
821
$modversion['notification']['event'][16]['caption']       = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY_CAP;
822
$modversion['notification']['event'][16]['description']   = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY_DSC;
823
$modversion['notification']['event'][16]['mail_template'] = 'global_question_answer_proposed';
824
$modversion['notification']['event'][16]['mail_subject']  = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY_SBJ;
825
826
$modversion['notification']['event'][17]['name']          = 'submitted';
827
$modversion['notification']['event'][17]['category']      = 'category_question';
828
$modversion['notification']['event'][17]['admin_only']    = 1;
829
$modversion['notification']['event'][17]['title']         = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY;
830
$modversion['notification']['event'][17]['caption']       = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY_CAP;
831
$modversion['notification']['event'][17]['description']   = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY_DSC;
832
$modversion['notification']['event'][17]['mail_template'] = 'category_question_submitted';
833
$modversion['notification']['event'][17]['mail_subject']  = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY_SBJ;
834
835
$modversion['notification']['event'][18]['name']          = 'published';
836
$modversion['notification']['event'][18]['category']      = 'category_question';
837
$modversion['notification']['event'][18]['title']         = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY;
838
$modversion['notification']['event'][18]['caption']       = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY_CAP;
839
$modversion['notification']['event'][18]['description']   = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY_DSC;
840
$modversion['notification']['event'][18]['mail_template'] = 'category_question_published';
841
$modversion['notification']['event'][18]['mail_subject']  = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY_SBJ;
842
843
$modversion['notification']['event'][19]['name']          = 'answer_proposed';
844
$modversion['notification']['event'][19]['category']      = 'category_question';
845
$modversion['notification']['event'][19]['title']         = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY;
846
$modversion['notification']['event'][19]['caption']       = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY_CAP;
847
$modversion['notification']['event'][19]['description']   = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY_DSC;
848
$modversion['notification']['event'][19]['mail_template'] = 'category_question_answer_proposed';
849
$modversion['notification']['event'][19]['mail_subject']  = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY_SBJ;
850
851
$modversion['notification']['event'][20]['name']          = 'rejected';
852
$modversion['notification']['event'][20]['category']      = 'question';
853
$modversion['notification']['event'][20]['invisible']     = 1;
854
$modversion['notification']['event'][20]['title']         = _MI_SF_QUESTION_REJECTED_NOTIFY;
855
$modversion['notification']['event'][20]['caption']       = _MI_SF_QUESTION_REJECTED_NOTIFY_CAP;
856
$modversion['notification']['event'][20]['description']   = _MI_SF_QUESTION_REJECTED_NOTIFY_DSC;
857
$modversion['notification']['event'][20]['mail_template'] = 'question_rejected';
858
$modversion['notification']['event'][20]['mail_subject']  = _MI_SF_QUESTION_REJECTED_NOTIFY_SBJ;
859
860
$modversion['notification']['event'][21]['name']          = 'approved';
861
$modversion['notification']['event'][21]['category']      = 'question';
862
$modversion['notification']['event'][21]['invisible']     = 1;
863
$modversion['notification']['event'][21]['title']         = _MI_SF_QUESTION_APPROVED_NOTIFY;
864
$modversion['notification']['event'][21]['caption']       = _MI_SF_QUESTION_APPROVED_NOTIFY_CAP;
865
$modversion['notification']['event'][21]['description']   = _MI_SF_QUESTION_APPROVED_NOTIFY_DSC;
866
$modversion['notification']['event'][21]['mail_template'] = 'question_approved';
867
$modversion['notification']['event'][21]['mail_subject']  = _MI_SF_QUESTION_APPROVED_NOTIFY_SBJ;
868
869
$modversion['notification']['event'][22]['name']          = 'answer_approved';
870
$modversion['notification']['event'][22]['category']      = 'question';
871
$modversion['notification']['event'][22]['invisible']     = 1;
872
$modversion['notification']['event'][22]['title']         = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY;
873
$modversion['notification']['event'][22]['caption']       = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY_CAP;
874
$modversion['notification']['event'][22]['description']   = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY_DSC;
875
$modversion['notification']['event'][22]['mail_template'] = 'question_answer_approved';
876
$modversion['notification']['event'][22]['mail_subject']  = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY_SBJ;
877
878
$modversion['notification']['event'][23]['name']          = 'answer_rejected';
879
$modversion['notification']['event'][23]['category']      = 'question';
880
$modversion['notification']['event'][23]['invisible']     = 1;
881
$modversion['notification']['event'][23]['title']         = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY;
882
$modversion['notification']['event'][23]['caption']       = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY_CAP;
883
$modversion['notification']['event'][23]['description']   = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY_DSC;
884
$modversion['notification']['event'][23]['mail_template'] = 'question_answer_rejected';
885
$modversion['notification']['event'][23]['mail_subject']  = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY_SBJ;
886