-
Notifications
You must be signed in to change notification settings - Fork 1
/
xoops_version.php
97 lines (94 loc) · 4.13 KB
/
xoops_version.php
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
<?php
/*
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.
*/
/**
* wgPhpOffice module for xoops
*
* @copyright 2020 XOOPS Project (https://xooops.org)
* @license GPL 2.0 or later
* @package wgphpoffice
* @since 1.0
* @min_xoops 2.5.11
* @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://xoops.wedega.com>
*/
//
$moduleDirName = \basename(__DIR__);
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
// ------------------- Informations ------------------- //
$modversion = [
'name' => _MI_WGPHPOFFICE_NAME,
'version' => 1.0,
'description' => _MI_WGPHPOFFICE_DESC,
'author' => 'XOOPS Development Team',
'author_mail' => '[email protected]',
'author_website_url' => 'https://xoops.wedega.com',
'author_website_name' => 'XOOPS on Wedega',
'credits' => 'XOOPS Development Team',
'license' => 'GPL 2.0 or later',
'license_url' => 'http://www.gnu.org/licenses/gpl-3.0.en.html',
'help' => 'page=help',
'release_info' => 'release_info',
'release_file' => XOOPS_URL . '/modules/wgphpoffice/docs/release_info file',
'release_date' => '2020/10/27',
'manual' => 'link to manual file',
'manual_file' => XOOPS_URL . '/modules/wgphpoffice/docs/install.txt',
'min_php' => '7.3',
'min_xoops' => '2.5.10',
'min_admin' => '1.2',
'min_db' => ['mysql' => '5.5', 'mysqli' => '5.5'],
'image' => 'assets/images/logoModule.png',
'dirname' => \basename(__DIR__),
'dirmoduleadmin' => 'Frameworks/moduleclasses/moduleadmin',
'sysicons16' => '../../Frameworks/moduleclasses/icons/16',
'sysicons32' => '../../Frameworks/moduleclasses/icons/32',
'modicons16' => 'assets/icons/16',
'modicons32' => 'assets/icons/32',
'demo_site_url' => 'https://xoops.org',
'demo_site_name' => 'XOOPS Demo Site',
'support_url' => 'https://xoops.org/modules/newbb',
'support_name' => 'Support Forum',
'module_website_url' => 'www.xoops.org',
'module_website_name' => 'XOOPS Project',
'release' => '09/01/2020',
'module_status' => 'Beta 1',
'system_menu' => 1,
'hasAdmin' => 1,
'hasMain' => 0,
'adminindex' => 'admin/index.php',
'adminmenu' => 'admin/menu.php',
'onInstall' => 'include/install.php',
'onUninstall' => 'include/uninstall.php',
'onUpdate' => 'include/update.php',
];
// ------------------- Templates ------------------- //
$modversion['templates'] = [
// Admin templates
['file' => 'wgphpoffice_admin_about.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'wgphpoffice_admin_header.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'wgphpoffice_admin_index.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'wgphpoffice_admin_spreadsheet.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'wgphpoffice_admin_word.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'wgphpoffice_admin_presentation.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'wgphpoffice_admin_footer.tpl', 'description' => '', 'type' => 'admin'],
];
// ------------------- Mysql ------------------- //
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
// Tables
$modversion['tables'] = [
];
// ------------------- Config ------------------- //
// Maintained by
$modversion['config'][] = [
'name' => 'maintainedby',
'title' => '_MI_WGPHPOFFICE_MAINTAINEDBY',
'description' => '_MI_WGPHPOFFICE_MAINTAINEDBY_DESC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => 'https://xoops.org/modules/newbb',
];