Issues (149)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

xoops_version.php (8 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
2
3
/*
4
 You may not change or alter any portion of this comment or credits
5
 of supporting developers from this source code or any supporting source code
6
 which is considered copyrighted (c) material of the original comment or credit authors.
7
8
 This program is distributed in the hope that it will be useful,
9
 but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
*/
12
/**
13
 * Module: Equipment
14
 *
15
 * @category        Module
16
 * @package         equipment
17
 * @author          swt02026 (https://github.com/swt02026/)
18
 * @author          XOOPS Development Team <http://xoops.org>
19
 * @copyright       {@link https://xoops.org/ XOOPS Project}
20
 * @license         GPL 2.0 or later
21
 * @link            https://xoops.org/
22
 * @since           1.0.0
23
 */
24
25
$moduleDirName = basename(__DIR__);
26
27
$modversion = array(
28
    'version'             => 1.1,
29
    'module_status'       => 'Beta 1',
30
    'release_date'        => '2017/07/20',
31
    'name'                => MI_EQUIPMENT_NAME,
32
    'description'         => MI_EQUIPMENT_DESC,
33
    'release'             => '2017-07-20',
34
    'author'              => 'swt02026, XOOPS Development Team',
35
    'author_mail'         => '[email protected]',
36
    'author_website_url'  => 'http://xoops.org',
37
    'author_website_name' => 'XOOPS Project',
38
    'credits'             => 'XOOPS Development Team',
39
    //    'license' => 'GPL 2.0 or later',
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% 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...
40
    'help'                => 'page=help',
41
    'license'             => 'GPL 2.0 or later',
42
    'license_url'         => 'www.gnu.org/licenses/gpl-2.0.html',
43
44
    'release_info' => 'release_info',
45
    'release_file' => XOOPS_URL . "/modules/{$moduleDirName}/docs/release_info file",
46
47
    'manual'              => 'Installation.txt',
48
    'manual_file'         => XOOPS_URL . "/modules/{$moduleDirName}/docs/link to manual file",
49
    'min_php'             => '5.5',
50
    'min_xoops'           => '2.5.8',
51
    'min_admin'           => '1.2',
52
    'min_db'              => array('mysql'  => '5.5'),
53
    'image'               => 'assets/images/logoModule.png',
54
    'dirname'             => $moduleDirName,
55
    'modicons16'          => 'assets/images/icons/16',
56
    'modicons32'          => 'assets/images/icons/32',
57
    //About
58
    'demo_site_url'       => 'http://www.xoops.org',
59
    'demo_site_name'      => 'XOOPS Demo Site',
60
    'support_url'         => 'http://xoops.org/modules/newbb',
61
    'support_name'        => 'Support Forum',
62
    'module_website_url'  => 'www.xoops.org',
63
    'module_website_name' => 'XOOPS Project',
64
    // Admin system menu
65
    'system_menu'         => 1,
66
    // Admin things
67
    'hasAdmin'            => 1,
68
    'adminindex'          => 'admin/index.php',
69
    'adminmenu'           => 'admin/menu.php',
70
    // Menu
71
    'hasMain'             => 1,
72
    'sub'                 => [
73
        [
74
            'name' => MI_EQUIPMENT_VIEW_INDEX,
75
            'url'  => 'index.php'
76
        ],
77
        [
78
            'name' => MI_EQUIPMENT_VIEW_INDEXVUE,
79
            'url'  => 'indexvue.php'
80
        ],
81
    ],
82
    // Scripts to run upon installation or update
83
    'onInstall'           => 'include/oninstall.php',
84
    'onUpdate'            => 'include/onupdate.php',
85
    'onUninstall'         => 'include/onuninstall.php',
86
    // ------------------- Mysql -----------------------------
87
    'sqlfile'             => array('mysql' => 'sql/mysql.sql'),
88
    // ------------------- Tables ----------------------------
89
    'tables'              => array(
90
        $moduleDirName . '_' . 'equipment',
91
        $moduleDirName . '_' . 'rentals',
92
        $moduleDirName . '_' . 'customer',
93
    ),
94
);
95
// ------------------- Search -----------------------------//
96
$modversion['hasSearch']      = 1;
97
$modversion['search']['file'] = 'include/search.inc.php';
98
$modversion['search']['func'] = 'equipment_search';
99
//  ------------------- Comments -----------------------------//
100
$modversion['hasComments']          = 1;
101
$modversion['comments']['itemName'] = 'com_id';
102
$modversion['comments']['pageName'] = 'comments.php';
103
// Comment callback functions
104
$modversion['comments']['callbackFile']        = 'include/comment_functions.php';
105
$modversion['comments']['callback']['approve'] = 'equipment_com_approve';
106
$modversion['comments']['callback']['update']  = 'equipment_com_update';
107
//  ------------------- Templates -----------------------------//
108
$modversion['templates'][] = array(
109
    'file'        => 'equipment_header.tpl',
110
    'description' => ''
111
);
112
$modversion['templates'][] = array(
113
    'file'        => 'equipment_index.tpl',
114
    'description' => ''
115
);
116
$modversion['templates'][] = array(
117
    'file'        => 'equipment_equipment.tpl',
118
    'description' => ''
119
);
120
121
$modversion['templates'][] = array(
122
    'file'        => 'equipment_equipment_list.tpl',
123
    'description' => ''
124
);
125
$modversion['templates'][] = array(
126
    'file'        => 'equipment_rentals.tpl',
127
    'description' => ''
128
);
129
130
$modversion['templates'][] = array(
131
    'file'        => 'equipment_rentals_list.tpl',
132
    'description' => ''
133
);
134
$modversion['templates'][] = array(
135
    'file'        => 'equipment_customer.tpl',
136
    'description' => ''
137
);
138
139
$modversion['templates'][] = array(
140
    'file'        => 'equipment_customer_list.tpl',
141
    'description' => ''
142
);
143
$modversion['templates'][] = array(
144
    'file'        => 'equipment_footer.tpl',
145
    'description' => ''
146
);
147
148
$modversion['templates'][] = array(
149
    'file'        => 'admin/equipment_admin_about.tpl',
150
    'description' => ''
151
);
152
$modversion['templates'][] = array(
153
    'file'        => 'admin/equipment_admin_help.tpl',
154
    'description' => ''
155
);
156
$modversion['templates'][] = array(
157
    'file'        => 'admin/equipment_admin_customer.tpl',
158
    'description' => ''
159
);
160
161
162
$modversion['templates'][] = array('file' => 'equipment_desc.tpl', 'description' => '');
163
164
$modversion['templates'][] = array('file' => 'equipment_desc_list.tpl', 'description' => '');
165
$modversion['templates'][] = array('file' => 'equipment_borrow.tpl', 'description' => '');
166
167
$modversion['templates'][] = array('file' => 'equipment_borrow_list.tpl', 'description' => '');
168
169
$modversion['templates'][] = array('file' => 'admin/equipment_admin_borrow.tpl', 'description' => '');
170
171
$modversion['templates'][] = array('file' => 'admin/equipment_admin_rentals_vue.tpl', 'description' => '');
172
$modversion['templates'][] = array('file' => 'admin/equipment_admin_equipment_vue.tpl', 'description' => '');
173
174
175
// ------------------- Help files ------------------- //
176
$modversion['helpsection'] = array(
177
    array(
178
        'name' => MI_EQUIPMENT_OVERVIEW,
179
        'link' => 'page=help'
180
    ),
181
    array(
182
        'name' => MI_EQUIPMENT_DISCLAIMER,
183
        'link' => 'page=disclaimer'
184
    ),
185
    array(
186
        'name' => MI_EQUIPMENT_LICENSE,
187
        'link' => 'page=license'
188
    ),
189
    array(
190
        'name' => MI_EQUIPMENT_SUPPORT,
191
        'link' => 'page=support'
192
    ),
193
194
    //    array('name' => MI_EQUIPMENT_HELP1, 'link' => 'page=help1'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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...
195
    //    array('name' => MI_EQUIPMENT_HELP2, 'link' => 'page=help2'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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...
196
    //    array('name' => MI_EQUIPMENT_HELP3, 'link' => 'page=help3'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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...
197
    //    array('name' => MI_EQUIPMENT_HELP4, 'link' => 'page=help4'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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...
198
    //    array('name' => MI_EQUIPMENT_HOWTO, 'link' => 'page=__howto'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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...
199
    //    array('name' => MI_EQUIPMENT_REQUIREMENTS, 'link' => 'page=__requirements'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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...
200
    //    array('name' => MI_EQUIPMENT_CREDITS, 'link' => 'page=__credits'),
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% 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
202
);
203
204
// ------------------- Blocks -----------------------------//
205
$modversion['blocks'][] = array(
206
    'file'        => 'equipment.php',
207
    'name'        => MI_EQUIPMENT_EQUIPMENT_BLOCK,
208
    'description' => '',
209
    'show_func'   => 'showEquipmentEquipment',
210
    'edit_func'   => 'editEquipmentEquipment',
211
    'options'     => '|5|25|0',
212
    'template'    => 'equipment_equipment_block.tpl'
213
);
214
215
$modversion['blocks'][] = array(
216
    'file'        => 'rentals.php',
217
    'name'        => MI_EQUIPMENT_RENTALS_BLOCK,
218
    'description' => '',
219
    'show_func'   => 'showEquipmentRentals',
220
    'edit_func'   => 'editEquipmentRentals',
221
    'options'     => '|5|25|0',
222
    'template'    => 'equipment_rentals_block.tpl'
223
);
224
225
$modversion['blocks'][] = array(
226
    'file'        => 'customer.php',
227
    'name'        => MI_EQUIPMENT_CUSTOMER_BLOCK,
228
    'description' => '',
229
    'show_func'   => 'showEquipmentCustomer',
230
    'edit_func'   => 'editEquipmentCustomer',
231
    'options'     => '|5|25|0',
232
    'template'    => 'equipment_customer_block.tpl'
233
);
234
235
// ------------------- Config Options -----------------------------//
236
xoops_load('xoopseditorhandler');
237
$editorHandler          = XoopsEditorHandler::getInstance();
238
$modversion['config'][] = array(
239
    'name'        => 'equipmentEditorAdmin',
240
    'title'       => 'MI_EQUIPMENT_EDITOR_ADMIN',
241
    'description' => 'MI_EQUIPMENT_EDITOR_DESC_ADMIN',
242
    'formtype'    => 'select',
243
    'valuetype'   => 'text',
244
    'options'     => array_flip($editorHandler->getList()),
245
    'default'     => 'tinymce'
246
);
247
248
$modversion['config'][] = array(
249
    'name'        => 'equipmentEditorUser',
250
    'title'       => 'MI_EQUIPMENT_EDITOR_USER',
251
    'description' => 'MI_EQUIPMENT_EDITOR_DESC_USER',
252
    'formtype'    => 'select',
253
    'valuetype'   => 'text',
254
    'options'     => array_flip($editorHandler->getList()),
255
    'default'     => 'dhtmltextarea'
256
);
257
258
// -------------- Get groups --------------
259
/** @var XoopsMemberHandler $memberHandler */
260
$memberHandler = xoops_getHandler('member');
261
$xoopsGroups   = $memberHandler->getGroupList();
262
foreach ($xoopsGroups as $key => $group) {
263
    $groups[$group] = $key;
264
}
265
$modversion['config'][] = array(
266
    'name'        => 'groups',
267
    'title'       => 'MI_EQUIPMENT_GROUPS',
268
    'description' => 'MI_EQUIPMENT_GROUPS_DESC',
269
    'formtype'    => 'select_multi',
270
    'valuetype'   => 'array',
271
    'options'     => $groups,
272
    'default'     => $groups
273
);
274
275
// -------------- Get Admin groups --------------
276
$criteria = new CriteriaCompo ();
277
$criteria->add(new Criteria ('group_type', 'Admin'));
278
/** @var XoopsMemberHandler $memberHandler */
279
$memberHandler    = xoops_getHandler('member');
280
$adminXoopsGroups = $memberHandler->getGroupList($criteria);
281
foreach ($adminXoopsGroups as $key => $adminGroup) {
282
    $admin_groups[$adminGroup] = $key;
283
}
284
$modversion['config'][] = array(
285
    'name'        => 'admin_groups',
286
    'title'       => 'MI_EQUIPMENT_ADMINGROUPS',
287
    'description' => 'MI_EQUIPMENT_ADMINGROUPS_DESC',
288
    'formtype'    => 'select_multi',
289
    'valuetype'   => 'array',
290
    'options'     => $admin_groups,
291
    'default'     => $admin_groups
292
);
293
294
$modversion['config'][] = array(
295
    'name'        => 'keywords',
296
    'title'       => 'MI_EQUIPMENT_KEYWORDS',
297
    'description' => 'MI_EQUIPMENT_KEYWORDS_DESC',
298
    'formtype'    => 'textbox',
299
    'valuetype'   => 'text',
300
    'default'     => 'equipment,equipment, rentals, customer'
301
);
302
303
// --------------Uploads : maxsize of image --------------
304
$modversion['config'][] = array(
305
    'name'        => 'maxsize',
306
    'title'       => 'MI_EQUIPMENT_MAXSIZE',
307
    'description' => 'MI_EQUIPMENT_MAXSIZE_DESC',
308
    'formtype'    => 'textbox',
309
    'valuetype'   => 'int',
310
    'default'     => 5000000
311
);
312
313
// --------------Uploads : mimetypes of image --------------
314
$modversion['config'][] = array(
315
    'name'        => 'mimetypes',
316
    'title'       => 'MI_EQUIPMENT_MIMETYPES',
317
    'description' => 'MI_EQUIPMENT_MIMETYPES_DESC',
318
    'formtype'    => 'select_multi',
319
    'valuetype'   => 'array',
320
    'default'     => array(
321
        'image/gif',
322
        'image/jpeg',
323
        'image/png'
324
    ),
325
    'options'     => array(
326
        'bmp'   => 'image/bmp',
327
        'gif'   => 'image/gif',
328
        'pjpeg' => 'image/pjpeg',
329
        'jpeg'  => 'image/jpeg',
330
        'jpg'   => 'image/jpg',
331
        'jpe'   => 'image/jpe',
332
        'png'   => 'image/png'
333
    )
334
);
335
336
$modversion['config'][] = array(
337
    'name'        => 'adminpager',
338
    'title'       => 'MI_EQUIPMENT_ADMINPAGER',
339
    'description' => 'MI_EQUIPMENT_ADMINPAGER_DESC',
340
    'formtype'    => 'textbox',
341
    'valuetype'   => 'int',
342
    'default'     => 10
343
);
344
345
$modversion['config'][] = array(
346
    'name'        => 'userpager',
347
    'title'       => 'MI_EQUIPMENT_USERPAGER',
348
    'description' => 'MI_EQUIPMENT_USERPAGER_DESC',
349
    'formtype'    => 'textbox',
350
    'valuetype'   => 'int',
351
    'default'     => 10
352
);
353
354
$modversion['config'][] = array(
355
    'name'        => 'advertise',
356
    'title'       => 'MI_EQUIPMENT_ADVERTISE',
357
    'description' => 'MI_EQUIPMENT_ADVERTISE_DESC',
358
    'formtype'    => 'textarea',
359
    'valuetype'   => 'text',
360
    'default'     => ''
361
);
362
363
$modversion['config'][] = array(
364
    'name'        => 'bookmarks',
365
    'title'       => 'MI_EQUIPMENT_BOOKMARKS',
366
    'description' => 'MI_EQUIPMENT_BOOKMARKS_DESC',
367
    'formtype'    => 'yesno',
368
    'valuetype'   => 'int',
369
    'default'     => 0
370
);
371
372
$modversion['config'][] = array(
373
    'name'        => 'fbcomments',
374
    'title'       => 'MI_EQUIPMENT_FBCOMMENTS',
375
    'description' => 'MI_EQUIPMENT_FBCOMMENTS_DESC',
376
    'formtype'    => 'yesno',
377
    'valuetype'   => 'int',
378
    'default'     => 0
379
);
380
381
// -------------- Notifications equipment --------------
382
$modversion['hasNotification']             = 1;
383
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
384
$modversion['notification']['lookup_func'] = 'equipment_notify_iteminfo';
385
386
$modversion['notification']['category'][] = array(
387
    'name'           => 'global',
388
    'title'          => MI_EQUIPMENT_GLOBAL_NOTIFY,
389
    'description'    => MI_EQUIPMENT_GLOBAL_NOTIFY_DESC,
390
    'subscribe_from' => array(
391
        'index.php',
392
        'viewcat.php',
393
        'singlefile.php'
394
    )
395
);
396
397
$modversion['notification']['category'][] = array(
398
    'name'           => 'category',
399
    'title'          => MI_EQUIPMENT_CATEGORY_NOTIFY,
400
    'description'    => MI_EQUIPMENT_CATEGORY_NOTIFY_DESC,
401
    'subscribe_from' => array(
402
        'viewcat.php',
403
        'singlefile.php'
404
    ),
405
    'item_name'      => 'cid',
406
    'allow_bookmark' => 1
407
);
408
409
$modversion['notification']['category'][] = array(
410
    'name'           => 'file',
411
    'title'          => MI_EQUIPMENT_FILE_NOTIFY,
412
    'description'    => MI_EQUIPMENT_FILE_NOTIFY_DESC,
413
    'subscribe_from' => 'singlefile.php',
414
    'item_name'      => 'lid',
415
    'allow_bookmark' => 1
416
);
417
418
$modversion['notification']['event'][] = array(
419
    'name'          => 'new_category',
420
    'category'      => 'global',
421
    'title'         => MI_EQUIPMENT_GLOBAL_NEWCATEGORY_NOTIFY,
422
    'caption'       => MI_EQUIPMENT_GLOBAL_NEWCATEGORY_NOTIFY_CAPTION,
423
    'description'   => MI_EQUIPMENT_GLOBAL_NEWCATEGORY_NOTIFY_DESC,
424
    'mail_template' => 'global_newcategory_notify',
425
    'mail_subject'  => MI_EQUIPMENT_GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT
426
);
427
428
$modversion['notification']['event'][] = array(
429
    'name'          => 'file_modify',
430
    'category'      => 'global',
431
    'admin_only'    => 1,
432
    'title'         => MI_EQUIPMENT_GLOBAL_FILEMODIFY_NOTIFY,
433
    'caption'       => MI_EQUIPMENT_GLOBAL_FILEMODIFY_NOTIFY_CAPTION,
434
    'description'   => MI_EQUIPMENT_GLOBAL_FILEMODIFY_NOTIFY_DESC,
435
    'mail_template' => 'global_filemodify_notify',
436
    'mail_subject'  => MI_EQUIPMENT_GLOBAL_FILEMODIFY_NOTIFY_SUBJECT
437
);
438
439
$modversion['notification']['event'][] = array(
440
    'name'          => 'file_broken',
441
    'category'      => 'global',
442
    'admin_only'    => 1,
443
    'title'         => MI_EQUIPMENT_GLOBAL_FILEBROKEN_NOTIFY,
444
    'caption'       => MI_EQUIPMENT_GLOBAL_FILEBROKEN_NOTIFY_CAPTION,
445
    'description'   => MI_EQUIPMENT_GLOBAL_FILEBROKEN_NOTIFY_DESC,
446
    'mail_template' => 'global_filebroken_notify',
447
    'mail_subject'  => MI_EQUIPMENT_GLOBAL_FILEBROKEN_NOTIFY_SUBJECT
448
);
449
450
$modversion['notification']['event'][] = array(
451
    'name'          => 'file_submit',
452
    'category'      => 'global',
453
    'admin_only'    => 1,
454
    'title'         => MI_EQUIPMENT_GLOBAL_FILESUBMIT_NOTIFY,
455
    'caption'       => MI_EQUIPMENT_GLOBAL_FILESUBMIT_NOTIFY_CAPTION,
456
    'description'   => MI_EQUIPMENT_GLOBAL_FILESUBMIT_NOTIFY_DESC,
457
    'mail_template' => 'global_filesubmit_notify',
458
    'mail_subject'  => MI_EQUIPMENT_GLOBAL_FILESUBMIT_NOTIFY_SUBJECT
459
);
460
461
$modversion['notification']['event'][] = array(
462
    'name'          => 'new_file',
463
    'category'      => 'global',
464
    'title'         => MI_EQUIPMENT_GLOBAL_NEWFILE_NOTIFY,
465
    'caption'       => MI_EQUIPMENT_GLOBAL_NEWFILE_NOTIFY_CAPTION,
466
    'description'   => MI_EQUIPMENT_GLOBAL_NEWFILE_NOTIFY_DESC,
467
    'mail_template' => 'global_newfile_notify',
468
    'mail_subject'  => MI_EQUIPMENT_GLOBAL_NEWFILE_NOTIFY_SUBJECT
469
);
470
471
$modversion['notification']['event'][] = array(
472
    'name'          => 'file_submit',
473
    'category'      => 'category',
474
    'admin_only'    => 1,
475
    'title'         => MI_EQUIPMENT_CATEGORY_FILESUBMIT_NOTIFY,
476
    'caption'       => MI_EQUIPMENT_CATEGORY_FILESUBMIT_NOTIFY_CAPTION,
477
    'description'   => MI_EQUIPMENT_CATEGORY_FILESUBMIT_NOTIFY_DESC,
478
    'mail_template' => 'category_filesubmit_notify',
479
    'mail_subject'  => MI_EQUIPMENT_CATEGORY_FILESUBMIT_NOTIFY_SUBJECT
480
);
481
482
$modversion['notification']['event'][] = array(
483
    'name'          => 'new_file',
484
    'category'      => 'category',
485
    'title'         => MI_EQUIPMENT_CATEGORY_NEWFILE_NOTIFY,
486
    'caption'       => MI_EQUIPMENT_CATEGORY_NEWFILE_NOTIFY_CAPTION,
487
    'description'   => MI_EQUIPMENT_CATEGORY_NEWFILE_NOTIFY_DESC,
488
    'mail_template' => 'category_newfile_notify',
489
    'mail_subject'  => MI_EQUIPMENT_CATEGORY_NEWFILE_NOTIFY_SUBJECT
490
);
491
492
$modversion['notification']['event'][] = array(
493
    'name'          => 'approve',
494
    'category'      => 'file',
495
    'admin_only'    => 1,
496
    'title'         => MI_EQUIPMENT_FILE_APPROVE_NOTIFY,
497
    'caption'       => MI_EQUIPMENT_FILE_APPROVE_NOTIFY_CAPTION,
498
    'description'   => MI_EQUIPMENT_FILE_APPROVE_NOTIFY_DESC,
499
    'mail_template' => 'file_approve_notify',
500
    'mail_subject'  => MI_EQUIPMENT_FILE_APPROVE_NOTIFY_SUBJECT
501
);
502