-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathxoops_version.php
More file actions
158 lines (147 loc) · 5.35 KB
/
xoops_version.php
File metadata and controls
158 lines (147 loc) · 5.35 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
$modversion = [];
global $xoopsConfig;
//---模組基本資訊---//
$modversion['name'] = _MI_TADREPAIR_NAME;
$modversion['version'] = $_SESSION['xoops_version'] >= 20511 ? '3.0.1-Stable' : '3.01';
$modversion['description'] = _MI_TADREPAIR_DESC;
$modversion['author'] = _MI_TADREPAIR_AUTHOR;
$modversion['credits'] = _MI_TADREPAIR_CREDITS;
$modversion['help'] = 'page=help';
$modversion['license'] = 'GNU GPL 2.0';
$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/';
$modversion['image'] = "images/logo_{$xoopsConfig['language']}.png";
$modversion['dirname'] = basename(__DIR__);
//---模組狀態資訊---//
$modversion['release_date'] = '2025-05-14';
$modversion['module_website_url'] = 'https://tad0616.net/';
$modversion['module_website_name'] = _MI_TAD_WEB;
$modversion['module_status'] = 'release';
$modversion['author_website_url'] = 'https://tad0616.net/';
$modversion['author_website_name'] = _MI_TAD_WEB;
$modversion['min_php'] = 5.4;
$modversion['min_xoops'] = '2.5.10';
//---paypal資訊---//
$modversion['paypal'] = [
'business' => 'tad0616@gmail.com',
'item_name' => 'Donation : ' . _MI_TAD_WEB,
'amount' => 0,
'currency_code' => 'USD',
];
//---啟動後台管理界面選單---//
$modversion['system_menu'] = 1; //---資料表架構---//
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
$modversion['tables'] = [
'tad_repair',
'tad_repair_unit',
'tad_repair_files_center',
];
//---安裝設定---//
$modversion['onInstall'] = 'include/onInstall.php';
$modversion['onUpdate'] = 'include/onUpdate.php';
$modversion['onUninstall'] = 'include/onUninstall.php';
//---管理介面設定---//
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = 'admin/index.php';
$modversion['adminmenu'] = 'admin/menu.php';
//---使用者主選單設定---//
$modversion['hasMain'] = 1;
$modversion['sub'] = [
['name' => _MI_TADREPAIR_SMNAME1, 'url' => 'index.php'],
['name' => _MI_TADREPAIR_SMNAME2, 'url' => 'repair.php'],
];
//---樣板設定---//
$modversion['templates'] = [
['file' => 'tad_repair_index.tpl', 'description' => 'tad_repair_index.tpl'],
['file' => 'tad_repair_admin.tpl', 'description' => 'tad_repair_admin.tpl'],
];
//---區塊設定 (索引為固定值,若欲刪除區塊記得補上索引,避免區塊重複)---//
$modversion['blocks'] = [
1 => [
'file' => 'wait_to_repair.php',
'name' => _MI_TADREPAIR_BNAME1,
'description' => _MI_TADREPAIR_BDESC1,
'show_func' => 'wait_to_repair',
'template' => 'wait_to_repair.tpl',
],
];
//---偏好設定---//
$modversion['config'] = [
[
'name' => 'repair_status',
'title' => '_MI_TADREPAIR_REPAIR_STATUS',
'description' => '_MI_TADREPAIR_REPAIR_STATUS_DESC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => _MI_TADREPAIR_REPAIR_STATUS_VAL,
],
[
'name' => 'fixed_status',
'title' => '_MI_TADREPAIR_FIXED_STATUS',
'description' => '_MI_TADREPAIR_FIXED_STATUS_DESC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => _MI_TADREPAIR_FIXED_STATUS_VAL,
],
[
'name' => 'show_cols',
'title' => '_MI_TADREPAIR_SHOW_COLS',
'description' => '_MI_TADREPAIR_SHOW_COLS_DESC',
'formtype' => 'select_multi',
'valuetype' => 'array',
'default' => ['repair_date', 'repair_place', 'repair_uid', 'unit_sn', 'repair_status', 'fixed_uid', 'fixed_date', 'fixed_status'],
'options' => [
'_MI_TADREPAIR_SHOW_DATE' => 'repair_date',
'_MI_TADREPAIR_PLACE' => 'repair_place',
'_MI_TADREPAIR_SHOW_UID' => 'repair_uid',
'_MI_TADREPAIR_UNIT' => 'unit_sn',
'_MI_TADREPAIR_STATUS' => 'repair_status',
'_MI_TADREPAIR_SHOW_FIXED_UID' => 'fixed_uid',
'_MI_TADREPAIR_SHOW_FIXED_DATE' => 'fixed_date',
'_MI_TADREPAIR_SHOW_FIXED_STATUS' => 'fixed_status',
],
],
[
'name' => 'unuse_cols',
'title' => '_MI_TADREPAIR_UNUSE_COLS',
'description' => '_MI_TADREPAIR_UNUSE_COLS_DESC',
'formtype' => 'select_multi',
'valuetype' => 'array',
'default' => [],
'options' => [
'_MI_TADREPAIR_PLACE' => 'repair_place',
'_MI_TADREPAIR_STATUS' => 'repair_status',
'_MI_TADREPAIR_CONTENT' => 'repair_content',
],
],
[
'name' => 'text_replace',
'title' => '_MI_TADREPAIR_TEXT_REPLACE',
'description' => '_MI_TADREPAIR_TEXT_REPLACE_DESC',
'formtype' => 'textarea',
'valuetype' => 'text',
'default' => "",
],
[
'name' => 'can_send_mail',
'title' => '_MI_TADREPAIR_CAN_SEND_MAIL',
'description' => '_MI_TADREPAIR_CAN_SEND_MAIL_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1,
],
[
'name' => 'repair_group',
'title' => '_MI_TADREPAIR_REPAIR_GROUP',
'description' => '_MI_TADREPAIR_REPAIR_GROUP_DESC',
'formtype' => 'group_multi',
'valuetype' => 'array',
'default' => '1',
],
];
//---搜尋設定---//
$modversion['hasSearch'] = 1;
$modversion['search'] = [
'file' => 'include/tad_repair_search.php',
'func' => 'tad_repair_search',
];