-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxoops_version.php
More file actions
99 lines (85 loc) · 3.92 KB
/
xoops_version.php
File metadata and controls
99 lines (85 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php declare(strict_types=1);
/**
* tools Module for XOOPS
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @copyright XOOPS Project (https://xoops.org)
* @license https://www.fsf.org/copyleft/gpl.html GNU public license
* @since 2.00
* @author Susheng Yang <ezskyyoung@gmail.com>
*/
defined('XOOPS_ROOT_PATH') || exit('Restricted access');
$moduleDirName = basename(__DIR__);
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
$modversion = [];
$modversion['version'] = '2.1.0';
$modversion['module_status'] = 'Beta 1';
$modversion['release_date'] = '2021/06/19';
$modversion['name'] = _MI_TOOLS_NAME;
$modversion['description'] = _MI_TOOLS_DESC;
$modversion['image'] = 'assets/images/logoModule.png';
$modversion['dirname'] = basename(__DIR__);
$modversion['author'] = 'Susheng Yang <ezskyyoung@gmail.com>';
$modversion['credits'] = 'XOOPS Development Team';
$modversion['license'] = 'GNU GPL 2.0 or later';
$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html';
$modversion['dirname'] = $moduleDirName;
$modversion['modicons16'] = 'assets/images/icons/16';
$modversion['modicons32'] = 'assets/images/icons/32';
$modversion['image'] = 'assets/images/logoModule.png';
$modversion['module_website_url'] = 'https://xoops.org';
$modversion['module_website_name'] = 'XOOPS';
$modversion['min_php'] = '7.0';
$modversion['min_xoops'] = '2.5.10';
$modversion['min_admin'] = '1.2';
$modversion['min_db'] = ['mysql' => '5.5'];
$modversion['system_menu'] = 1;
// database tables, not applicable for this module
$modversion['sqlfile']['mysql'] = 'sql/sql.sql';
$modversion['tables'] = [
$moduleDirName . '_' . 'blocks',
];
// Admin things, not applicable for this module
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = 'admin/index.php';
$modversion['adminmenu'] = 'admin/menu.php';
// Main Menu
$modversion['hasMain'] = 0;
// Module install/update, not applicable for this module
$modversion['onInstall'] = '';
$modversion['onUninstall'] = '';
$modversion['onUpdate'] = '';
// ------------------- Help files ------------------- //
$modversion['help'] = 'page=help';
$modversion['helpsection'] = [
['name' => _MI_TOOLS_OVERVIEW, 'link' => 'page=help'],
['name' => _MI_TOOLS_DISCLAIMER, 'link' => 'page=disclaimer'],
['name' => _MI_TOOLS_LICENSE, 'link' => 'page=license'],
['name' => _MI_TOOLS_SUPPORT, 'link' => 'page=support'],
];
// ------------------- Templates ------------------- //
$modversion['templates'] = [
['file' => 'tools_admin_blockscall.tpl', 'description' => ''],
['file' => 'tools_admin_blockscall_new.tpl', 'description' => ''],
['file' => 'tools_admin_blockscall_edit.tpl', 'description' => ''],
];
// ------------------- Blocks ------------------- //
// Blocks, not applicable for this module
$modversion['blocks'] = [];
// Search, not applicable for this module
$modversion['hasSearch'] = 0;
$modversion['search']['file'] = '';
$modversion['search']['func'] = '';
// Configs, not applicable for this module
//$modversion["config"] = [];
// Comments, not applicable for this module
$modversion['hasComments'] = 0;
// Notification, not applicable for this module
$modversion['hasNotification'] = 0;
$modversion['notification'] = [];