-
Notifications
You must be signed in to change notification settings - Fork 0
/
xoops_version.php
207 lines (185 loc) · 7.04 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?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.
*/
/**
* presenter module for xoops
*
* @copyright XOOPS Project (https://xoops.org)
* @license GPL 2.0 or later
* @package presenter
* @since 2.5.5
* @author XOOPS Development Team <[email protected]> - <https://xoops.org>
*/
// defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
$moduleDirName = basename(__DIR__);
$modversion = [
'version' => 1.0,
'module_status' => 'Beta 2',
'release_data' => '2017/07/20',
'name' => _MI_PRESENTER_NAME,
'description' => _MI_PRESENTER_DESC,
'author' => "Michael Beck (aka Mamba)",
'author_mail' => "[email protected]",
'author_website_url' => "https://xoops.org",
'author_website_name' => "XOOPS Project",
'credits' => 'XOOPS Development Team',
'license' => 'GPL 2.0 or later',
'license_url' => 'www.gnu.org/licenses/gpl-2.0.html/',
'help' => 'page=help',
'release_info' => 'release_info',
'release_file' => XOOPS_URL . "/modules/{$moduleDirName}/docs/release_info file",
'release_date' => '2013/08/28',
'manual' => 'Installation.txt',
'manual_file' => XOOPS_URL . "/modules/$moduleDirName/docs/install.txt",
'min_php' => '5.5',
'min_xoops' => '2.5.9',
'min_admin' => '1.2',
'min_db' => ['mysql' => '5.5'],
'image' => "assets/images/logoModule.png",
'dirname' => $moduleDirName,
// Local path icons
'modicons16' => 'assets/images/icons/16',
'modicons32' => 'assets/images/icons/32',
//About
'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' => '2013/08/28',
// Admin system menu
'system_menu' => 1,
// Admin things
'hasAdmin' => 1,
'adminindex' => 'admin/index.php',
'adminmenu' => 'admin/menu.php',
// Menu
'hasMain' => 1,
// Scripts to run upon installation or update
'onInstall' => 'include/oninstall.php',
'onUpdate' => 'include/onupdate.php'
];
// Mysql file
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
// Tables
$modversion['tables'][1] = 'presenter_categories';
$modversion['tables'][2] = 'presenter_slides';
// ------------------- Help files ------------------- //
$modversion['helpsection'] = [
['name' => _MI_PRESENTER_OVERVIEW, 'link' => 'page=help'],
['name' => _MI_PRESENTER_DISCLAIMER, 'link' => 'page=disclaimer'],
['name' => _MI_PRESENTER_LICENSE, 'link' => 'page=license'],
['name' => _MI_PRESENTER_SUPPORT, 'link' => 'page=support'],
];
// Templates
$modversion['templates'][] = ['file' => 'presenter_header.tpl', 'description' => ''];
$modversion['templates'][] = ['file' => 'presenter_index.tpl', 'description' => ''];
$modversion['templates'][] = ['file' => 'presenter_categories.tpl', 'description' => ''];
$modversion['templates'][] = ['file' => 'presenter_slides.tpl', 'description' => ''];
$modversion['templates'][] = ['file' => 'presenter_footer.tpl', 'description' => ''];
$modversion['templates'][] = ['file' => 'presenter_iframe.tpl', 'description' => ''];
$modversion['templates'][] = ['file' => 'presenter_iframeslides.tpl', 'description' => ''];
//Blocks
$modversion['blocks'][] = [
'file' => 'slides.php',
'name' => _MI_PRESENTER_SLIDES_BLOCK,
'description' => '',
'show_func' => 'b_presenter_slides_show',
'edit_func' => 'b_presenter_slides_edit',
'options' => 'slides|5|25|0',
'template' => 'slides_block.tpl'
];
// Config
xoops_load('xoopseditorhandler');
$editorHandler = XoopsEditorHandler::getInstance();
$modversion['config'][] = [
'name' => 'presenter_editor',
'title' => '_MI_PRESENTER_EDITOR',
'description' => '_MI_PRESENTER_EDITOR_DESC',
'formtype' => 'select',
'valuetype' => 'text',
'options' => array_flip($editorHandler->getList()),
'default' => 'dhtml'
];
$modversion['config'][] = [
'name' => 'keywords',
'title' => '_MI_PRESENTER_KEYWORDS',
'description' => '_MI_PRESENTER_KEYWORDS_DESC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => 'presenter, slides'
];
//Uploads : filesize of slides_mp3
$modversion['config'][] = [
'name' => 'filesize',
'title' => '_MI_PRESENTER_SIZE',
'description' => '_MI_PRESENTER_SIZE_DESC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => 10485760
];
//Uploads : filemimetypes of slides_mp3
$modversion['config'][] = [
'name' => 'filemimetypes',
'title' => '_MI_PRESENTER_MIMETYPES',
'description' => '_MI_PRESENTER_MIMETYPES_DESC',
'formtype' => 'select_multi',
'valuetype' => 'array',
'default' => ['image/gif', 'image/jpeg', 'image/png'],
'options' => [
'bmp' => 'image/bmp',
'gif' => 'image/gif',
'pjpeg' => 'image/pjpeg',
'jpeg' => 'image/jpeg',
'jpg' => 'image/jpg',
'jpe' => 'image/jpe',
'png' => 'image/png'
]
];
$modversion['config'][] = [
'name' => 'adminpager',
'title' => '_MI_PRESENTER_ADMINPAGER',
'description' => '_MI_PRESENTER_ADMINPAGER_DESC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => 10
];
$modversion['config'][] = [
'name' => 'userpager',
'title' => '_MI_PRESENTER_USERPAGER',
'description' => '_MI_PRESENTER_USERPAGER_DESC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => 10
];
$modversion['config'][] = [
'name' => 'advertise',
'title' => '_MI_PRESENTER_ADVERTISE',
'description' => '_MI_PRESENTER_ADVERTISE_DESC',
'formtype' => 'textarea',
'valuetype' => 'text',
'default' => ''
];
$modversion['config'][] = [
'name' => 'bookmarks',
'title' => '_MI_PRESENTER_BOOKMARKS',
'description' => '_MI_PRESENTER_BOOKMARKS_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 0
];
$modversion['config'][] = [
'name' => 'fbcomments',
'title' => '_MI_PRESENTER_FBCOMMENTS',
'description' => '_MI_PRESENTER_FBCOMMENTS_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 0
];