Issues (1149)

xoops_version.php (7 issues)

1
<?php
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
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 */
11
12
/**
13
 * @copyright    {@link https://xoops.org/ XOOPS Project}
14
 * @license      {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later}
15
 * @package
16
 * @since
17
 * @author       XOOPS Development Team,
18
 */
19
20
defined('XOOPS_ROOT_PATH') || exit('XOOPS Root Path not defined');
21
$moduleDirName = basename(__DIR__);
22
23
$modversion['version']       = 1.07;
24
$modversion['module_status'] = 'Beta 1';
25
$modversion['release_date']  = '2017/07/15';
26
$modversion['name']          = _MI_EFQDIR_NAME;
27
$modversion['description']   = _MI_EFQDIR_DESC;
28
$modversion['author']        = 'Martijn Hertog (EFQ Consultancy) aka wtravel';
29
$modversion['credits']       = 'XOOPS Module Development Team, Adam Frick';
30
$modversion['help']          = 'page=help';
31
$modversion['license']       = 'GNU GPL 2.0 or later';
32
$modversion['license_url']   = 'www.gnu.org/licenses/gpl-2.0.html';
33
$modversion['official']      = 0;
34
$modversion['image']         = 'assets/images/logoModule.png';
35
$modversion['dirname']       = $moduleDirName;
36
37
$modversion['modicons16'] = 'assets/images/icons/16';
38
$modversion['modicons32'] = 'assets/images/icons/32';
39
40
//about
41
$modversion['module_website_url']  = 'www.xoops.org';
42
$modversion['module_website_name'] = 'XOOPS';
43
$modversion['min_php']             = '5.5';
44
$modversion['min_xoops']           = '2.5.9';
45
$modversion['min_admin']           = '1.2';
46
$modversion['min_db']              = array('mysql' => '5.5');
47
48
// ------------------- Mysql ------------------- //
49
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
50
51
// Tables created by sql file (without prefix!)
52
$modversion['tables'] = array(
53
    $moduleDirName . '_' . 'cat',
54
    $moduleDirName . '_' . 'cat_txt',
55
    $moduleDirName . '_' . 'data',
56
    $moduleDirName . '_' . 'dir',
57
    $moduleDirName . '_' . 'item_x_cat',
58
    $moduleDirName . '_' . 'item_x_loc',
59
    $moduleDirName . '_' . 'items',
60
    $moduleDirName . '_' . 'item_text',
61
    $moduleDirName . '_' . 'item_img',
62
    $moduleDirName . '_' . 'itemtypes',
63
    $moduleDirName . '_' . 'fieldtypes',
64
    $moduleDirName . '_' . 'dtypes',
65
    $moduleDirName . '_' . 'dtypes_x_cat',
66
    $moduleDirName . '_' . 'coupon',
67
    $moduleDirName . '_' . 'loc',//In case not used in combo with destinations mod.
68
    $moduleDirName . '_' . 'loc_types',//In case not used in combo with destinations mod.
69
    $moduleDirName . '_' . 'loc_x_loctype',//In case not used in combo with destinations mod.
70
    $moduleDirName . '_' . 'votedata',
71
    //$moduleDirName . '_' . = "loc_x_address_types",
72
    $moduleDirName . '_' . 'form_options',
73
    $moduleDirName . '_' . 'address_types',
74
    $moduleDirName . '_' . 'searchresults',
75
    $moduleDirName . '_' . 'subscr_offers',
76
    $moduleDirName . '_' . 'subscr_orders',
77
    $moduleDirName . '_' . 'subscr_payments',
78
    $moduleDirName . '_' . 'subscr_scheduler',
79
    $moduleDirName . '_' . 'subscr_notify',
80
    $moduleDirName . '_' . 'cat_tpl',
81
    $moduleDirName . '_' . 'tpl',
82
);
83
84
// Admin things
85
$modversion['hasAdmin']    = 1;
86
$modversion['system_menu'] = 1;
87
$modversion['adminindex']  = 'admin/main.php';
88
$modversion['adminmenu']   = 'admin/menu.php';
89
90
// ------------------- Help files ------------------- //
91
$modversion['helpsection'] = array(
92
    ['name' => _MI_EFQDIR_OVERVIEW, 'link' => 'page=help'],
93
    ['name' => _MI_EFQDIR_DISCLAIMER, 'link' => 'page=disclaimer'],
94
    ['name' => _MI_EFQDIR_LICENSE, 'link' => 'page=license'],
95
    ['name' => _MI_EFQDIR_SUPPORT, 'link' => 'page=support'],
96
);
97
98
// Blocks
99
$modversion['blocks'][1]['file']        = 'efqdiralpha1_menu.php';
100
$modversion['blocks'][1]['name']        = _MI_EFQDIR_MENU;
101
$modversion['blocks'][1]['description'] = 'Shows directories menu';
102
$modversion['blocks'][1]['show_func']   = 'b_efqdiralpha1_menu_show';
103
$modversion['blocks'][1]['edit_func']   = 'b_efqdiralpha1_menu_edit';
104
$modversion['blocks'][1]['options']     = '';
105
$modversion['blocks'][1]['template']    = 'efqdiralpha1_block_directories.tpl';
106
107
// Menu
108
$modversion['hasMain'] = 1;
109
110
// Search
111
$modversion['hasSearch']      = 0;
112
$modversion['search']['file'] = 'include/search.inc.php';
113
$modversion['search']['func'] = 'links_search';
114
115
// Comments
116
$modversion['hasComments']             = 0;
117
$modversion['comments']['itemName']    = 'itemid';
118
$modversion['comments']['pageName']    = 'listing.php';
119
$modversion['comments']['extraParams'] = array('cid');
120
// Comment callback functions
121
$modversion['comments']['callbackFile']        = 'include/comment_functions.php';
122
$modversion['comments']['callback']['approve'] = 'listings_com_approve';
123
$modversion['comments']['callback']['update']  = 'listings_com_update';
124
125
// Templates
126
$modversion['templates'][1]['file']         = 'efqdiralpha1_editcategories.tpl';
127
$modversion['templates'][1]['description']  = '';
128
$modversion['templates'][2]['file']         = 'efqdiralpha1_editlisting.tpl';
129
$modversion['templates'][2]['description']  = '';
130
$modversion['templates'][3]['file']         = 'efqdiralpha1_index.tpl';
131
$modversion['templates'][3]['description']  = '';
132
$modversion['templates'][4]['file']         = 'efqdiralpha1_listing.tpl';
133
$modversion['templates'][4]['description']  = '';
134
$modversion['templates'][5]['file']         = 'efqdiralpha1_ratelisting.tpl';
135
$modversion['templates'][5]['description']  = '';
136
$modversion['templates'][6]['file']         = 'efqdiralpha1_smalllisting.tpl';
137
$modversion['templates'][6]['description']  = '';
138
$modversion['templates'][7]['file']         = 'efqdiralpha1_submit.tpl';
139
$modversion['templates'][7]['description']  = '';
140
$modversion['templates'][8]['file']         = 'efqdiralpha1_directories.tpl';
141
$modversion['templates'][8]['description']  = '';
142
$modversion['templates'][9]['file']         = 'efqdiralpha1_smalldirectory.tpl';
143
$modversion['templates'][9]['description']  = '';
144
$modversion['templates'][10]['file']        = 'efqdiralpha1_savings.tpl';
145
$modversion['templates'][10]['description'] = '';
146
$modversion['templates'][11]['file']        = 'efqdiralpha1_search.tpl';
147
$modversion['templates'][11]['description'] = '';
148
$modversion['templates'][12]['file']        = 'efqdiralpha1_subscriptions.tpl';
149
$modversion['templates'][12]['description'] = '';
150
$modversion['templates'][13]['file']        = 'efqdiralpha1_smallsubscription.tpl';
151
$modversion['templates'][13]['description'] = '';
152
$modversion['templates'][14]['file']        = 'efqdiralpha1_print_savings.tpl';
153
$modversion['templates'][14]['description'] = '';
154
155
// Config Settings (only for modules that need config settings generated automatically)
156
157
// name of config option for accessing its specified value. i.e. $xoopsModuleConfig['storyhome']
158
$modversion['config'][1]['name'] = 'popular';
159
160
// title of this config option displayed in config settings form
161
$modversion['config'][1]['title'] = '_MI_EFQDIR_POPULAR';
162
163
// description of this config option displayed under title
164
$modversion['config'][1]['description'] = '_MI_EFQDIR_POPULARDSC';
165
166
// form element type used in config form for this option. can be one of either textbox, textarea, select, select_multi, yesno, group, group_multi
167
$modversion['config'][1]['formtype'] = 'select';
168
169
// value type of this config option. can be one of either int, text, float, array, or other
170
// form type of 'group_multi', 'select_multi' must always be 'array'
171
// form type of 'yesno', 'group' must be always be 'int'
172
$modversion['config'][1]['valuetype'] = 'int';
173
174
// the default value for this option
175
// ignore it if no default
176
// 'yesno' formtype must be either 0(no) or 1(yes)
177
$modversion['config'][1]['default'] = 100;
178
179
// options to be displayed in selection box
180
// required and valid for 'select' or 'select_multi' formtype option only
181
// language constants can be used for both array keys and values
182
$modversion['config'][1]['options'] = array('5' => 5, '10' => 10, '50' => 50, '100' => 100, '200' => 200, '500' => 500, '1000' => 1000);
183
184
$modversion['config'][2]['name']        = 'newlistings';
185
$modversion['config'][2]['title']       = '_MI_EFQDIR_NEWLISTINGS';
186
$modversion['config'][2]['description'] = '_MI_EFQDIR_NEWLISTINGSDSC';
187
$modversion['config'][2]['formtype']    = 'select';
188
$modversion['config'][2]['valuetype']   = 'int';
189
$modversion['config'][2]['default']     = 10;
190
$modversion['config'][2]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
191
192
$modversion['config'][3]['name']        = 'perpage';
193
$modversion['config'][3]['title']       = '_MI_EFQDIR_PERPAGE';
194
$modversion['config'][3]['description'] = '_MI_EFQDIR_PERPAGEDSC';
195
$modversion['config'][3]['formtype']    = 'select';
196
$modversion['config'][3]['valuetype']   = 'int';
197
$modversion['config'][3]['default']     = 10;
198
$modversion['config'][3]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
199
200
/*$modversion['config'][4]['name'] = 'anonpost';
0 ignored issues
show
Unused Code Comprehensibility introduced by
76% 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...
201
$modversion['config'][4]['title'] = '_MI_EFQDIR_ANONPOST';
202
$modversion['config'][4]['description'] = '';
203
$modversion['config'][4]['formtype'] = 'yesno';
204
$modversion['config'][4]['valuetype'] = 'int';
205
$modversion['config'][4]['default'] = 0;*/
206
207
$modversion['config'][5]['name']        = 'autoapprove';
208
$modversion['config'][5]['title']       = '_MI_EFQDIR_AUTOAPPROVE';
209
$modversion['config'][5]['description'] = '_MI_EFQDIR_AUTOAPPROVEDSC';
210
$modversion['config'][5]['formtype']    = 'yesno';
211
$modversion['config'][5]['valuetype']   = 'int';
212
$modversion['config'][5]['default']     = 0;
213
214
$modversion['config'][6]['name']        = 'autoapproveadmin';
215
$modversion['config'][6]['title']       = '_MI_EFQDIR_AUTOAPPROVEADMIN';
216
$modversion['config'][6]['description'] = '_MI_EFQDIR_AUTOAPPROVEADMINDSC';
217
$modversion['config'][6]['formtype']    = 'yesno';
218
$modversion['config'][6]['valuetype']   = 'int';
219
$modversion['config'][6]['default']     = 1;
220
221
/*$modversion['config'][6]['name'] = 'usedestmod';
0 ignored issues
show
Unused Code Comprehensibility introduced by
76% 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...
222
$modversion['config'][6]['title'] = '_MI_EFQDIR_USEDESTMOD';
223
$modversion['config'][6]['description'] = '_MI_EFQDIR_USEDESTMOD_DSC';
224
$modversion['config'][6]['formtype'] = 'yesno';
225
$modversion['config'][6]['valuetype'] = 'int';
226
$modversion['config'][6]['default'] = 0;*/
227
228
$modversion['config'][7]['name']        = 'searchresults_perpage';
229
$modversion['config'][7]['title']       = '_MI_EFQDIR_RESULTSPERPAGE';
230
$modversion['config'][7]['description'] = '_MI_EFQDIR_RESULTSPERPAGE_DSC';
231
$modversion['config'][7]['formtype']    = 'select';
232
$modversion['config'][7]['valuetype']   = 'int';
233
$modversion['config'][7]['default']     = 10;
234
$modversion['config'][7]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
235
236
$modversion['config'][8]['name']        = 'anonvotes_waitdays';
237
$modversion['config'][8]['title']       = '_MI_EFQDIR_ANONVOTESWAITDAYS';
238
$modversion['config'][8]['description'] = '_MI_EFQDIR_ANONVOTESWAITDAYS_DSC';
239
$modversion['config'][8]['formtype']    = 'select';
240
$modversion['config'][8]['valuetype']   = 'int';
241
$modversion['config'][8]['default']     = 1;
242
$modversion['config'][8]['options']     = array('1' => 1, '2' => 2, '3' => 3, '7' => 7, '14' => 14, '30' => 30, '365' => 365);
243
244
$modversion['config'][9]['name']        = 'autoshowonedir';
245
$modversion['config'][9]['title']       = '_MI_EFQDIR_AUTOSHOWONEDIR';
246
$modversion['config'][9]['description'] = '_MI_EFQDIR_AUTOSHOWONEDIR_DSC';
247
$modversion['config'][9]['formtype']    = 'yesno';
248
$modversion['config'][9]['valuetype']   = 'int';
249
$modversion['config'][9]['default']     = 1;
250
//$modversion['config'][9]['options'] = array('1' => 1, '2' => 2, '3' => 3, '7' => 7, '14' => 14, '30' => 30, '365' => 365);
0 ignored issues
show
Unused Code Comprehensibility introduced by
65% 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...
251
252
$modversion['config'][10]['name']        = 'allowrating';
253
$modversion['config'][10]['title']       = '_MI_EFQDIR_ALLOWRATING';
254
$modversion['config'][10]['description'] = '_MI_EFQDIR_ALLOWRATING_DSC';
255
$modversion['config'][10]['formtype']    = 'yesno';
256
$modversion['config'][10]['valuetype']   = 'int';
257
$modversion['config'][10]['default']     = 1; //By default allow listings to be rated
258
259
$modversion['config'][11]['name']        = 'allowtellafriend';
260
$modversion['config'][11]['title']       = '_MI_EFQDIR_ALLOWTELLAFRIEND';
261
$modversion['config'][11]['description'] = '_MI_EFQDIR_ALLOWTELLAFRIEND_DSC';
262
$modversion['config'][11]['formtype']    = 'yesno';
263
$modversion['config'][11]['valuetype']   = 'int';
264
$modversion['config'][11]['default']     = 0; //By default allow to show tell a friend link in listing
265
266
/*$modversion['config'][12]['name'] = 'allowcomments';
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...
267
$modversion['config'][12]['title'] = '_MI_EFQDIR_ALLOWCOMMENTS';
268
$modversion['config'][12]['description'] = '_MI_EFQDIR_ALLOWCOMMENTS_DSC';
269
$modversion['config'][12]['formtype'] = 'yesno';
270
$modversion['config'][12]['valuetype'] = 'int';
271
$modversion['config'][12]['default'] = 1; //By default allow to add comments to listings
272
273
$modversion['config'][13]['name'] = 'allowreviews';
274
$modversion['config'][13]['title'] = '_MI_EFQDIR_ALLOWREVIEWS';
275
$modversion['config'][13]['description'] = '_MI_EFQDIR_ALLOWREVIEWS_DSC';
276
$modversion['config'][13]['formtype'] = 'yesno';
277
$modversion['config'][13]['valuetype'] = 'int';
278
$modversion['config'][13]['default'] = 1; //By default allow reviews of listings for each directory
279
*/
280
$modversion['config'][14]['name']        = 'allowcoupons';
281
$modversion['config'][14]['title']       = '_MI_EFQDIR_ALLOWCOUPONS';
282
$modversion['config'][14]['description'] = '_MI_EFQDIR_ALLOWCOUPONS_DSC';
283
$modversion['config'][14]['formtype']    = 'yesno';
284
$modversion['config'][14]['valuetype']   = 'int';
285
$modversion['config'][14]['default']     = 0; //By default allow coupons to be added to listings
286
287
/*$modversion['config'][15]['name'] = 'server_remote_address';
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...
288
$modversion['config'][15]['title'] = '_MI_EFQDIR_REMOTE_ADDRESS';
289
$modversion['config'][15]['description'] = '_MI_EFQDIR_REMOTE_ADDRESS_DSC';
290
$modversion['config'][15]['formtype'] = 'textbox';
291
$modversion['config'][15]['valuetype'] = 'text';
292
$modversion['config'][15]['default'] = '127.0.0.1'; //By default use the server address of localhost
293
*/
294
$modversion['config'][16]['name']        = 'warningtime';
295
$modversion['config'][16]['title']       = '_MI_EFQDIR_WARNINGTIME';
296
$modversion['config'][16]['description'] = '_MI_EFQDIR_WARNINGTIME_DSC';
297
$modversion['config'][16]['formtype']    = 'textbox';
298
$modversion['config'][16]['valuetype']   = 'int';
299
$modversion['config'][16]['default']     = '3'; //By default 3 days of warning time
300
301
$modversion['config'][17]['name']        = 'paypal_test';
302
$modversion['config'][17]['title']       = '_MI_EFQDIR_PAYPAL_TEST';
303
$modversion['config'][17]['description'] = '_MI_EFQDIR_PAYPAL_TEST_DSC';
304
$modversion['config'][17]['formtype']    = 'yesno';
305
$modversion['config'][17]['valuetype']   = 'int';
306
$modversion['config'][17]['default']     = 1; //By default set Paypal url to sandbox;
307
308
$modversion['config'][18]['name']        = 'paypal_secure_yn';
309
$modversion['config'][18]['title']       = '_MI_EFQDIR_PAYPAL_SECURE_YN';
310
$modversion['config'][18]['description'] = '_MI_EFQDIR_PAYPAL_SECURE_YN_DSC';
311
$modversion['config'][18]['formtype']    = 'yesno';
312
$modversion['config'][18]['valuetype']   = 'int';
313
$modversion['config'][18]['default']     = 1; //By default use https protocol for more secure payments.
314
315
$modversion['config'][19]['name']        = 'paypal_business_mail';
316
$modversion['config'][19]['title']       = '_MI_EFQDIR_PAYPAL_BUS_MAIL';
317
$modversion['config'][19]['description'] = '_MI_EFQDIR_PAYPAL_BUS_MAIL_DSC';
318
$modversion['config'][19]['formtype']    = 'textbox';
319
$modversion['config'][19]['valuetype']   = 'text';
320
$modversion['config'][19]['default']     = '';
321
322
$modversion['config'][20]['name']        = 'allowsubscr';
323
$modversion['config'][20]['title']       = '_MI_EFQDIR_ALLOW_SUBSCR';
324
$modversion['config'][20]['description'] = '_MI_EFQDIR_ALLOW_SUBSCR_DSC';
325
$modversion['config'][20]['formtype']    = 'yesno';
326
$modversion['config'][20]['valuetype']   = 'int';
327
$modversion['config'][20]['default']     = 0;
328
329
$modversion['config'][21]['name']        = 'showlinkimages';
330
$modversion['config'][21]['title']       = '_MI_EFQDIR_SHOW_LINK_IMAGES';
331
$modversion['config'][21]['description'] = '_MI_EFQDIR_SHOW_LINK_IMAGES_DSC';
332
$modversion['config'][21]['formtype']    = 'yesno';
333
$modversion['config'][21]['valuetype']   = 'int';
334
$modversion['config'][21]['default']     = 0;
335
336
$modversion['config'][22]['name']        = 'showdatafieldsincat';
337
$modversion['config'][22]['title']       = '_MI_EFQDIR_SHOW_DFIELDSINCAT';
338
$modversion['config'][22]['description'] = '_MI_EFQDIR_SHOW_DATAFIELDSINCAT_DSC';
339
$modversion['config'][22]['formtype']    = 'yesno';
340
$modversion['config'][22]['valuetype']   = 'int';
341
$modversion['config'][22]['default']     = 0;
342
343
$modversion['config'][23]['name']        = 'catimagemaxsize';
344
$modversion['config'][23]['title']       = '_MI_EFQDIR_CAT_IMGMAXSIZE';
345
$modversion['config'][23]['description'] = '_MI_EFQDIR_CAT_IMGMAXSIZE_DSC';
346
$modversion['config'][23]['formtype']    = 'textbox';
347
$modversion['config'][23]['valuetype']   = 'int';
348
$modversion['config'][23]['default']     = 100000;
349
350
$modversion['config'][24]['name']        = 'catimagemaxwidth';
351
$modversion['config'][24]['title']       = '_MI_EFQDIR_CAT_IMGMAXWIDTH';
352
$modversion['config'][24]['description'] = '_MI_EFQDIR_CAT_IMGMAXWIDTH_DSC';
353
$modversion['config'][24]['formtype']    = 'textbox';
354
$modversion['config'][24]['valuetype']   = 'int';
355
$modversion['config'][24]['default']     = 50;
356
357
$modversion['config'][25]['name']        = 'catimagemaxheight';
358
$modversion['config'][25]['title']       = '_MI_EFQDIR_CAT_IMGMAXHEIGHT';
359
$modversion['config'][25]['description'] = '_MI_EFQDIR_CAT_IMGMAXHEIGHT_DSC';
360
$modversion['config'][25]['formtype']    = 'textbox';
361
$modversion['config'][25]['valuetype']   = 'int';
362
$modversion['config'][25]['default']     = 50;
363
364
$modversion['config'][26]['name']        = 'dirimagemaxsize';
365
$modversion['config'][26]['title']       = '_MI_EFQDIR_DIR_IMGMAXSIZE';
366
$modversion['config'][26]['description'] = '_MI_EFQDIR_DIR_IMGMAXSIZE_DSC';
367
$modversion['config'][26]['formtype']    = 'textbox';
368
$modversion['config'][26]['valuetype']   = 'int';
369
$modversion['config'][26]['default']     = 100000;
370
371
$modversion['config'][27]['name']        = 'dirimagemaxwidth';
372
$modversion['config'][27]['title']       = '_MI_EFQDIR_DIR_IMGMAXWIDTH';
373
$modversion['config'][27]['description'] = '_MI_EFQDIR_DIR_IMGMAXWIDTH_DSC';
374
$modversion['config'][27]['formtype']    = 'textbox';
375
$modversion['config'][27]['valuetype']   = 'int';
376
$modversion['config'][27]['default']     = 50;
377
378
$modversion['config'][28]['name']        = 'dirimagemaxheight';
379
$modversion['config'][28]['title']       = '_MI_EFQDIR_DIR_IMGMAXHEIGHT';
380
$modversion['config'][28]['description'] = '_MI_EFQDIR_DIR_IMGMAXHEIGHT_DSC';
381
$modversion['config'][28]['formtype']    = 'textbox';
382
$modversion['config'][28]['valuetype']   = 'int';
383
$modversion['config'][28]['default']     = 50;
384
385
$modversion['config'][29]['name']        = 'imagemaxsize';
386
$modversion['config'][29]['title']       = '_MI_EFQDIR_IMGMAXSIZE';
387
$modversion['config'][29]['description'] = '_MI_EFQDIR_IMGMAXSIZE_DSC';
388
$modversion['config'][29]['formtype']    = 'textbox';
389
$modversion['config'][29]['valuetype']   = 'int';
390
$modversion['config'][29]['default']     = 100000;
391
392
// Notification
393
$modversion['hasNotification'] = 0;
394
/*
0 ignored issues
show
Unused Code Comprehensibility introduced by
76% 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...
395
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
396
$modversion['notification']['lookup_func'] = 'listings_notify_iteminfo';
397
398
$modversion['notification']['category'][1]['name'] = 'global';
399
$modversion['notification']['category'][1]['title'] = _MI_EFQDIR_GLOBAL_NOTIFY;
400
$modversion['notification']['category'][1]['description'] = _MI_EFQDIR_GLOBAL_NOTIFYDSC;
401
$modversion['notification']['category'][1]['subscribe_from'] = array('index.php','listing.php');
402
403
$modversion['notification']['category'][2]['name'] = 'category';
404
$modversion['notification']['category'][2]['title'] = _MI_EFQDIR_CATEGORY_NOTIFY;
405
$modversion['notification']['category'][2]['description'] = _MI_EFQDIR_CATEGORY_NOTIFYDSC;
406
$modversion['notification']['category'][2]['subscribe_from'] = array('index.php', 'listing.php');
407
$modversion['notification']['category'][2]['item_name'] = 'cid';
408
$modversion['notification']['category'][2]['allow_bookmark'] = 1;
409
410
$modversion['notification']['category'][3]['name'] = 'link';
411
$modversion['notification']['category'][3]['title'] = _MI_EFQDIR_LISTING_NOTIFY;
412
$modversion['notification']['category'][3]['description'] = _MI_EFQDIR_LISTING_NOTIFYDSC;
413
$modversion['notification']['category'][3]['subscribe_from'] = 'listing.php';
414
$modversion['notification']['category'][3]['item_name'] = 'lid';
415
$modversion['notification']['category'][3]['allow_bookmark'] = 1;
416
417
$modversion['notification']['event'][1]['name'] = 'new_category';
418
$modversion['notification']['event'][1]['category'] = 'global';
419
$modversion['notification']['event'][1]['title'] = _MI_EFQDIR_GLOBAL_NEWCATEGORY_NOTIFY;
420
$modversion['notification']['event'][1]['caption'] = _MI_EFQDIR_GLOBAL_NEWCATEGORY_NOTIFYCAP;
421
$modversion['notification']['event'][1]['description'] = _MI_EFQDIR_GLOBAL_NEWCATEGORY_NOTIFYDSC;
422
$modversion['notification']['event'][1]['mail_template'] = 'global_newcategory_notify';
423
$modversion['notification']['event'][1]['mail_subject'] = _MI_EFQDIR_GLOBAL_NEWCATEGORY_NOTIFYSBJ;
424
*/
425
$modversion['notification']['event'][2]['name']          = 'listing_modify';
426
$modversion['notification']['event'][2]['category']      = 'global';
427
$modversion['notification']['event'][2]['admin_only']    = 1;
428
$modversion['notification']['event'][2]['title']         = _MI_EFQDIR_GLOBAL_LISTINGMODIFY_NOTIFY;
429
$modversion['notification']['event'][2]['caption']       = _MI_EFQDIR_GLOBAL_LISTINGMODIFY_NOTIFYCAP;
430
$modversion['notification']['event'][2]['description']   = _MI_EFQDIR_GLOBAL_LISTINGMODIFY_NOTIFYDSC;
431
$modversion['notification']['event'][2]['mail_template'] = 'global_listingmodify_notify';
432
$modversion['notification']['event'][2]['mail_subject']  = _MI_EFQDIR_GLOBAL_LISTINGMODIFY_NOTIFYSBJ;
433
434
/*$modversion['notification']['event'][3]['name'] = 'listing_broken';
0 ignored issues
show
Unused Code Comprehensibility introduced by
77% 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...
435
$modversion['notification']['event'][3]['category'] = 'global';
436
$modversion['notification']['event'][3]['admin_only'] = 1;
437
$modversion['notification']['event'][3]['title'] = _MI_EFQDIR_GLOBAL_LISTINGBROKEN_NOTIFY;
438
$modversion['notification']['event'][3]['caption'] = _MI_EFQDIR_GLOBAL_LISTINGBROKEN_NOTIFYCAP;
439
$modversion['notification']['event'][3]['description'] = _MI_EFQDIR_GLOBAL_LISTINGBROKEN_NOTIFYDSC;
440
$modversion['notification']['event'][3]['mail_template'] = 'global_listingbroken_notify';
441
$modversion['notification']['event'][3]['mail_subject'] = _MI_EFQDIR_GLOBAL_LISTINGBROKEN_NOTIFYSBJ;*/
442
443
$modversion['notification']['event'][4]['name']          = 'listing_submit';
444
$modversion['notification']['event'][4]['category']      = 'global';
445
$modversion['notification']['event'][4]['admin_only']    = 1;
446
$modversion['notification']['event'][4]['title']         = _MI_EFQDIR_GLOBAL_LISTINGSUBMIT_NOTIFY;
447
$modversion['notification']['event'][4]['caption']       = _MI_EFQDIR_GLOBAL_LISTINGSUBMIT_NOTIFYCAP;
448
$modversion['notification']['event'][4]['description']   = _MI_EFQDIR_GLOBAL_LISTINGSUBMIT_NOTIFYDSC;
449
$modversion['notification']['event'][4]['mail_template'] = 'global_listingsubmit_notify';
450
$modversion['notification']['event'][4]['mail_subject']  = _MI_EFQDIR_GLOBAL_LISTINGSUBMIT_NOTIFYSBJ;
451
452
$modversion['notification']['event'][5]['name']          = 'new_listing';
453
$modversion['notification']['event'][5]['category']      = 'global';
454
$modversion['notification']['event'][5]['title']         = _MI_EFQDIR_GLOBAL_NEWLISTING_NOTIFY;
455
$modversion['notification']['event'][5]['caption']       = _MI_EFQDIR_GLOBAL_NEWLISTING_NOTIFYCAP;
456
$modversion['notification']['event'][5]['description']   = _MI_EFQDIR_GLOBAL_NEWLISTING_NOTIFYDSC;
457
$modversion['notification']['event'][5]['mail_template'] = 'global_newlisting_notify';
458
$modversion['notification']['event'][5]['mail_subject']  = _MI_EFQDIR_GLOBAL_NEWLISTING_NOTIFYSBJ;
459
460
$modversion['notification']['event'][8]['name']          = 'approve';
461
$modversion['notification']['event'][8]['category']      = 'listing';
462
$modversion['notification']['event'][8]['invisible']     = 1;
463
$modversion['notification']['event'][8]['title']         = _MI_EFQDIR_LISTING_APPROVE_NOTIFY;
464
$modversion['notification']['event'][8]['caption']       = _MI_EFQDIR_LISTING_APPROVE_NOTIFYCAP;
465
$modversion['notification']['event'][8]['description']   = _MI_EFQDIR_LISTING_APPROVE_NOTIFYDSC;
466
$modversion['notification']['event'][8]['mail_template'] = 'listing_approve_notify';
467
$modversion['notification']['event'][8]['mail_subject']  = _MI_EFQDIR_LISTING_APPROVE_NOTIFYSBJ;
468