Repository navigation
Expand file tree
/
Copy pathxoops_version.php
More file actions
73 lines (62 loc) · 2.35 KB
/
Copy pathxoops_version.php
File metadata and controls
73 lines (62 loc) · 2.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
<?php
$modversion = [];
$modversion['name'] = _MI_TADBLOCKS_NAME;
$modversion['version'] = $_SESSION['xoops_version'] >= 20511 ? '3.8.0-Stable' : '3.8';
$modversion['description'] = _MI_TADBLOCKS_DESC;
$modversion['author'] = _MI_TADBLOCKS_AUTHOR;
$modversion['credits'] = _MI_TADBLOCKS_CREDITS;
$modversion['help'] = 'page=help';
$modversion['license'] = 'GPL see LICENSE';
$modversion['image'] = "images/logo.png";
$modversion['dirname'] = basename(__DIR__);
//---模組狀態資訊---//
$modversion['release_date'] = '2026-10-30';
$modversion['module_website_url'] = 'https://www.tad0616.net';
$modversion['module_website_name'] = _MI_TADBLOCKS_AUTHOR_WEB;
$modversion['module_status'] = 'release';
$modversion['author_website_url'] = 'https://www.tad0616.net';
$modversion['author_website_name'] = _MI_TADBLOCKS_AUTHOR_WEB;
$modversion['min_php'] = '8.3';
$modversion['min_xoops'] = '2.5.11';
//---paypal資訊---//
$modversion['paypal'] = [
'business' => 'tad0616@gmail.com',
'item_name' => 'Donation : ' . _MI_TAD_WEB,
'amount' => 0,
'currency_code' => 'USD',
];
//---安裝設定---//
$modversion['onInstall'] = "include/onInstall.php";
$modversion['onUpdate'] = "include/onUpdate.php";
$modversion['onUninstall'] = "include/onUninstall.php";
//---資料表架構---//
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'] = [
"tad_blocks_files_center",
"tad_blocks_data_center",
"tad_blocks",
];
//---後台使用系統選單---//
$modversion['system_menu'] = 1;
//---後台管理介面設定---//
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = 'admin/main.php';
$modversion['adminmenu'] = 'admin/menu.php';
//---前台主選單設定---//
$modversion['hasMain'] = 1;
//---樣板設定---//
$modversion['templates'] = [
['file' => 'tad_blocks_adm_main.tpl', 'description' => 'tad_blocks_adm_main.tpl'],
['file' => 'tad_blocks_index.tpl', 'description' => 'tad_blocks_index.tpl'],
];
//---偏好設定---//
$modversion['config'] = [
[
'name' => 'show_build_logo',
'title' => '_MI_TADBLOCKS_SHOW_BUILD_LOGO',
'description' => '_MI_TADBLOCKS_SHOW_BUILD_LOGO_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 0,
],
];