@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $configHandler = xoops_getHandler('config'); |
13 | 13 | $GLOBALS['songlistModule'] = $moduleHandler->getByDirname('songlist'); |
14 | 14 | if (is_object($GLOBALS['songlistModule'])) { |
15 | - $GLOBALS['songlistModuleConfig'] = $configHandler->getConfigList($GLOBALS['songlistModule']->getVar('mid')); |
|
15 | + $GLOBALS['songlistModuleConfig'] = $configHandler->getConfigList($GLOBALS['songlistModule']->getVar('mid')); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | $modversion['version'] = '2.0.0'; |
@@ -52,18 +52,18 @@ discard block |
||
52 | 52 | |
53 | 53 | // ------------------- Tables ------------------ // |
54 | 54 | $modversion['tables'] = [ |
55 | - $moduleDirName . '_' . 'albums', |
|
56 | - $moduleDirName . '_' . 'artists', |
|
57 | - $moduleDirName . '_' . 'category', |
|
58 | - $moduleDirName . '_' . 'extra', |
|
59 | - $moduleDirName . '_' . 'field', |
|
60 | - $moduleDirName . '_' . 'genre', |
|
61 | - $moduleDirName . '_' . 'voice', |
|
62 | - $moduleDirName . '_' . 'requests', |
|
63 | - $moduleDirName . '_' . 'songs', |
|
64 | - $moduleDirName . '_' . 'utf8map', |
|
65 | - $moduleDirName . '_' . 'visibility', |
|
66 | - $moduleDirName . '_' . 'votes', |
|
55 | + $moduleDirName . '_' . 'albums', |
|
56 | + $moduleDirName . '_' . 'artists', |
|
57 | + $moduleDirName . '_' . 'category', |
|
58 | + $moduleDirName . '_' . 'extra', |
|
59 | + $moduleDirName . '_' . 'field', |
|
60 | + $moduleDirName . '_' . 'genre', |
|
61 | + $moduleDirName . '_' . 'voice', |
|
62 | + $moduleDirName . '_' . 'requests', |
|
63 | + $moduleDirName . '_' . 'songs', |
|
64 | + $moduleDirName . '_' . 'utf8map', |
|
65 | + $moduleDirName . '_' . 'visibility', |
|
66 | + $moduleDirName . '_' . 'votes', |
|
67 | 67 | ]; |
68 | 68 | |
69 | 69 | // Admin things |
@@ -95,52 +95,52 @@ discard block |
||
95 | 95 | |
96 | 96 | // ------------------- Help files ------------------- // |
97 | 97 | $modversion['helpsection'] = [ |
98 | - ['name' => _MI_SONGLIST_OVERVIEW, 'link' => 'page=help'], |
|
99 | - ['name' => _MI_SONGLIST_DISCLAIMER, 'link' => 'page=disclaimer'], |
|
100 | - ['name' => _MI_SONGLIST_LICENSE, 'link' => 'page=license'], |
|
101 | - ['name' => _MI_SONGLIST_SUPPORT, 'link' => 'page=support'], |
|
98 | + ['name' => _MI_SONGLIST_OVERVIEW, 'link' => 'page=help'], |
|
99 | + ['name' => _MI_SONGLIST_DISCLAIMER, 'link' => 'page=disclaimer'], |
|
100 | + ['name' => _MI_SONGLIST_LICENSE, 'link' => 'page=license'], |
|
101 | + ['name' => _MI_SONGLIST_SUPPORT, 'link' => 'page=support'], |
|
102 | 102 | ]; |
103 | 103 | |
104 | 104 | // ------------------- Templates ------------------- // |
105 | 105 | $modversion['templates'] = [ |
106 | - ['file' => 'songlist_albums_index.tpl', 'description' => ''], |
|
107 | - ['file' => 'songlist_albums_item.tpl', 'description' => ''], |
|
108 | - ['file' => 'songlist_albums_list.tpl', 'description' => ''], |
|
109 | - ['file' => 'songlist_alpha_browse.tpl', 'description' => ''], |
|
110 | - ['file' => 'songlist_artists_index.tpl', 'description' => ''], |
|
111 | - ['file' => 'songlist_artists_item.tpl', 'description' => ''], |
|
112 | - ['file' => 'songlist_artists_list.tpl', 'description' => ''], |
|
113 | - ['file' => 'songlist_category_item.tpl', 'description' => ''], |
|
114 | - ['file' => 'songlist_category_list.tpl', 'description' => ''], |
|
115 | - ['file' => 'songlist_cpanel_albums_edit.tpl', 'description' => ''], |
|
116 | - ['file' => 'songlist_cpanel_albums_list.tpl', 'description' => ''], |
|
117 | - ['file' => 'songlist_cpanel_artists_edit.tpl', 'description' => ''], |
|
118 | - ['file' => 'songlist_cpanel_artists_list.tpl', 'description' => ''], |
|
119 | - ['file' => 'songlist_cpanel_category_edit.tpl', 'description' => ''], |
|
120 | - ['file' => 'songlist_cpanel_category_list.tpl', 'description' => ''], |
|
121 | - ['file' => 'songlist_cpanel_fieldlist.tpl', 'description' => ''], |
|
122 | - ['file' => 'songlist_cpanel_genre_edit.tpl', 'description' => ''], |
|
123 | - ['file' => 'songlist_cpanel_genre_list.tpl', 'description' => ''], |
|
124 | - ['file' => 'songlist_cpanel_import_actiona.tpl', 'description' => ''], |
|
125 | - ['file' => 'songlist_cpanel_import_actionb.tpl', 'description' => ''], |
|
126 | - ['file' => 'songlist_cpanel_requests_edit.tpl', 'description' => ''], |
|
127 | - ['file' => 'songlist_cpanel_requests_list.tpl', 'description' => ''], |
|
128 | - ['file' => 'songlist_cpanel_songs_edit.tpl', 'description' => ''], |
|
129 | - ['file' => 'songlist_cpanel_songs_list.tpl', 'description' => ''], |
|
130 | - ['file' => 'songlist_cpanel_utf8map_edit.tpl', 'description' => ''], |
|
131 | - ['file' => 'songlist_cpanel_utf8map_list.tpl', 'description' => ''], |
|
132 | - ['file' => 'songlist_cpanel_visibility.tpl', 'description' => ''], |
|
133 | - ['file' => 'songlist_cpanel_voice_edit.tpl', 'description' => ''], |
|
134 | - ['file' => 'songlist_cpanel_voice_list.tpl', 'description' => ''], |
|
135 | - ['file' => 'songlist_cpanel_votes_edit.tpl', 'description' => ''], |
|
136 | - ['file' => 'songlist_cpanel_votes_list.tpl', 'description' => ''], |
|
137 | - ['file' => 'songlist_requests_index.tpl', 'description' => ''], |
|
138 | - ['file' => 'songlist_search_index.tpl', 'description' => ''], |
|
139 | - ['file' => 'songlist_search_results.tpl', 'description' => ''], |
|
140 | - ['file' => 'songlist_search_search.tpl', 'description' => ''], |
|
141 | - ['file' => 'songlist_songs_index.tpl', 'description' => ''], |
|
142 | - ['file' => 'songlist_songs_item.tpl', 'description' => ''], |
|
143 | - ['file' => 'songlist_songs_list.tpl', 'description' => ''], |
|
106 | + ['file' => 'songlist_albums_index.tpl', 'description' => ''], |
|
107 | + ['file' => 'songlist_albums_item.tpl', 'description' => ''], |
|
108 | + ['file' => 'songlist_albums_list.tpl', 'description' => ''], |
|
109 | + ['file' => 'songlist_alpha_browse.tpl', 'description' => ''], |
|
110 | + ['file' => 'songlist_artists_index.tpl', 'description' => ''], |
|
111 | + ['file' => 'songlist_artists_item.tpl', 'description' => ''], |
|
112 | + ['file' => 'songlist_artists_list.tpl', 'description' => ''], |
|
113 | + ['file' => 'songlist_category_item.tpl', 'description' => ''], |
|
114 | + ['file' => 'songlist_category_list.tpl', 'description' => ''], |
|
115 | + ['file' => 'songlist_cpanel_albums_edit.tpl', 'description' => ''], |
|
116 | + ['file' => 'songlist_cpanel_albums_list.tpl', 'description' => ''], |
|
117 | + ['file' => 'songlist_cpanel_artists_edit.tpl', 'description' => ''], |
|
118 | + ['file' => 'songlist_cpanel_artists_list.tpl', 'description' => ''], |
|
119 | + ['file' => 'songlist_cpanel_category_edit.tpl', 'description' => ''], |
|
120 | + ['file' => 'songlist_cpanel_category_list.tpl', 'description' => ''], |
|
121 | + ['file' => 'songlist_cpanel_fieldlist.tpl', 'description' => ''], |
|
122 | + ['file' => 'songlist_cpanel_genre_edit.tpl', 'description' => ''], |
|
123 | + ['file' => 'songlist_cpanel_genre_list.tpl', 'description' => ''], |
|
124 | + ['file' => 'songlist_cpanel_import_actiona.tpl', 'description' => ''], |
|
125 | + ['file' => 'songlist_cpanel_import_actionb.tpl', 'description' => ''], |
|
126 | + ['file' => 'songlist_cpanel_requests_edit.tpl', 'description' => ''], |
|
127 | + ['file' => 'songlist_cpanel_requests_list.tpl', 'description' => ''], |
|
128 | + ['file' => 'songlist_cpanel_songs_edit.tpl', 'description' => ''], |
|
129 | + ['file' => 'songlist_cpanel_songs_list.tpl', 'description' => ''], |
|
130 | + ['file' => 'songlist_cpanel_utf8map_edit.tpl', 'description' => ''], |
|
131 | + ['file' => 'songlist_cpanel_utf8map_list.tpl', 'description' => ''], |
|
132 | + ['file' => 'songlist_cpanel_visibility.tpl', 'description' => ''], |
|
133 | + ['file' => 'songlist_cpanel_voice_edit.tpl', 'description' => ''], |
|
134 | + ['file' => 'songlist_cpanel_voice_list.tpl', 'description' => ''], |
|
135 | + ['file' => 'songlist_cpanel_votes_edit.tpl', 'description' => ''], |
|
136 | + ['file' => 'songlist_cpanel_votes_list.tpl', 'description' => ''], |
|
137 | + ['file' => 'songlist_requests_index.tpl', 'description' => ''], |
|
138 | + ['file' => 'songlist_search_index.tpl', 'description' => ''], |
|
139 | + ['file' => 'songlist_search_results.tpl', 'description' => ''], |
|
140 | + ['file' => 'songlist_search_search.tpl', 'description' => ''], |
|
141 | + ['file' => 'songlist_songs_index.tpl', 'description' => ''], |
|
142 | + ['file' => 'songlist_songs_item.tpl', 'description' => ''], |
|
143 | + ['file' => 'songlist_songs_list.tpl', 'description' => ''], |
|
144 | 144 | ]; |
145 | 145 | |
146 | 146 | // Submenus |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | $modversion['sub'][$i]['url'] = 'artists.php'; |
150 | 150 | ++$i; |
151 | 151 | if (isset($GLOBALS['songlistModuleConfig']['album'])) { |
152 | - if ($GLOBALS['songlistModuleConfig']['album']) { |
|
153 | - $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ALBUMS; |
|
154 | - $modversion['sub'][$i]['url'] = 'albums.php'; |
|
155 | - ++$i; |
|
156 | - } |
|
152 | + if ($GLOBALS['songlistModuleConfig']['album']) { |
|
153 | + $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ALBUMS; |
|
154 | + $modversion['sub'][$i]['url'] = 'albums.php'; |
|
155 | + ++$i; |
|
156 | + } |
|
157 | 157 | } |
158 | 158 | $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_SEARCH; |
159 | 159 | $modversion['sub'][$i]['url'] = 'search.php'; |
@@ -165,90 +165,90 @@ discard block |
||
165 | 165 | $i = 0; |
166 | 166 | // ------------------- Blocks ------------------- // |
167 | 167 | $modversion['blocks'][$i] = [ |
168 | - 'file' => 'songlist_popular_artist.php', |
|
169 | - 'name' => _MI_SONGLIST_BLOCK_TOP_ARTIST, |
|
170 | - 'description' => 'Shows top artist', |
|
171 | - 'show_func' => 'b_songlist_popular_artist_show', |
|
172 | - 'options' => '', |
|
173 | - 'edit_func' => 'b_songlist_popular_artist_edit', |
|
174 | - 'template' => 'songlist_popular_artist.tpl', |
|
168 | + 'file' => 'songlist_popular_artist.php', |
|
169 | + 'name' => _MI_SONGLIST_BLOCK_TOP_ARTIST, |
|
170 | + 'description' => 'Shows top artist', |
|
171 | + 'show_func' => 'b_songlist_popular_artist_show', |
|
172 | + 'options' => '', |
|
173 | + 'edit_func' => 'b_songlist_popular_artist_edit', |
|
174 | + 'template' => 'songlist_popular_artist.tpl', |
|
175 | 175 | ]; |
176 | 176 | |
177 | 177 | ++$i; |
178 | 178 | $modversion['blocks'][$i] = [ |
179 | - 'file' => 'songlist_popular_artists.php', |
|
180 | - 'name' => _MI_SONGLIST_BLOCK_POPULAR_ARTISTS, |
|
181 | - 'description' => 'Shows popular artists', |
|
182 | - 'show_func' => 'b_songlist_popular_artists_show', |
|
183 | - 'options' => '6', |
|
184 | - 'edit_func' => 'b_songlist_popular_artists_edit', |
|
185 | - 'template' => 'songlist_popular_artists.tpl', |
|
179 | + 'file' => 'songlist_popular_artists.php', |
|
180 | + 'name' => _MI_SONGLIST_BLOCK_POPULAR_ARTISTS, |
|
181 | + 'description' => 'Shows popular artists', |
|
182 | + 'show_func' => 'b_songlist_popular_artists_show', |
|
183 | + 'options' => '6', |
|
184 | + 'edit_func' => 'b_songlist_popular_artists_edit', |
|
185 | + 'template' => 'songlist_popular_artists.tpl', |
|
186 | 186 | ]; |
187 | 187 | |
188 | 188 | ++$i; |
189 | 189 | $modversion['blocks'][$i] = [ |
190 | - 'file' => 'songlist_popular_album.php', |
|
191 | - 'name' => _MI_SONGLIST_BLOCK_TOP_ALBUM, |
|
192 | - 'description' => 'Shows top album', |
|
193 | - 'show_func' => 'b_songlist_popular_album_show', |
|
194 | - 'options' => '', |
|
195 | - 'edit_func' => 'b_songlist_popular_album_edit', |
|
196 | - 'template' => 'songlist_popular_album.tpl', |
|
190 | + 'file' => 'songlist_popular_album.php', |
|
191 | + 'name' => _MI_SONGLIST_BLOCK_TOP_ALBUM, |
|
192 | + 'description' => 'Shows top album', |
|
193 | + 'show_func' => 'b_songlist_popular_album_show', |
|
194 | + 'options' => '', |
|
195 | + 'edit_func' => 'b_songlist_popular_album_edit', |
|
196 | + 'template' => 'songlist_popular_album.tpl', |
|
197 | 197 | ]; |
198 | 198 | |
199 | 199 | ++$i; |
200 | 200 | $modversion['blocks'][$i] = [ |
201 | - 'file' => 'songlist_popular_albums.php', |
|
202 | - 'name' => _MI_SONGLIST_BLOCK_POPULAR_ALBUMS, |
|
203 | - 'description' => 'Shows popular albums', |
|
204 | - 'show_func' => 'b_songlist_popular_albums_show', |
|
205 | - 'options' => '6', |
|
206 | - 'edit_func' => 'b_songlist_popular_albums_edit', |
|
207 | - 'template' => 'songlist_popular_albums.tpl', |
|
201 | + 'file' => 'songlist_popular_albums.php', |
|
202 | + 'name' => _MI_SONGLIST_BLOCK_POPULAR_ALBUMS, |
|
203 | + 'description' => 'Shows popular albums', |
|
204 | + 'show_func' => 'b_songlist_popular_albums_show', |
|
205 | + 'options' => '6', |
|
206 | + 'edit_func' => 'b_songlist_popular_albums_edit', |
|
207 | + 'template' => 'songlist_popular_albums.tpl', |
|
208 | 208 | ]; |
209 | 209 | |
210 | 210 | ++$i; |
211 | 211 | $modversion['blocks'][$i] = [ |
212 | - 'file' => 'songlist_popular_genre.php', |
|
213 | - 'name' => _MI_SONGLIST_BLOCK_TOP_GENRE, |
|
214 | - 'description' => 'Shows top genre', |
|
215 | - 'show_func' => 'b_songlist_popular_genre_show', |
|
216 | - 'options' => '', |
|
217 | - 'edit_func' => 'b_songlist_popular_genre_edit', |
|
218 | - 'template' => 'songlist_popular_genre.tpl', |
|
212 | + 'file' => 'songlist_popular_genre.php', |
|
213 | + 'name' => _MI_SONGLIST_BLOCK_TOP_GENRE, |
|
214 | + 'description' => 'Shows top genre', |
|
215 | + 'show_func' => 'b_songlist_popular_genre_show', |
|
216 | + 'options' => '', |
|
217 | + 'edit_func' => 'b_songlist_popular_genre_edit', |
|
218 | + 'template' => 'songlist_popular_genre.tpl', |
|
219 | 219 | ]; |
220 | 220 | |
221 | 221 | ++$i; |
222 | 222 | $modversion['blocks'][$i] = [ |
223 | - 'file' => 'songlist_popular_genres.php', |
|
224 | - 'name' => _MI_SONGLIST_BLOCK_POPULAR_GENRES, |
|
225 | - 'description' => 'Shows popular genres', |
|
226 | - 'show_func' => 'b_songlist_popular_genres_show', |
|
227 | - 'options' => '6', |
|
228 | - 'edit_func' => 'b_songlist_popular_genres_edit', |
|
229 | - 'template' => 'songlist_popular_genres.tpl', |
|
223 | + 'file' => 'songlist_popular_genres.php', |
|
224 | + 'name' => _MI_SONGLIST_BLOCK_POPULAR_GENRES, |
|
225 | + 'description' => 'Shows popular genres', |
|
226 | + 'show_func' => 'b_songlist_popular_genres_show', |
|
227 | + 'options' => '6', |
|
228 | + 'edit_func' => 'b_songlist_popular_genres_edit', |
|
229 | + 'template' => 'songlist_popular_genres.tpl', |
|
230 | 230 | ]; |
231 | 231 | |
232 | 232 | ++$i; |
233 | 233 | $modversion['blocks'][$i] = [ |
234 | - 'file' => 'songlist_popular_song.php', |
|
235 | - 'name' => _MI_SONGLIST_BLOCK_TOP_SONG, |
|
236 | - 'description' => 'Shows top song', |
|
237 | - 'show_func' => 'b_songlist_popular_song_show', |
|
238 | - 'options' => '', |
|
239 | - 'edit_func' => 'b_songlist_popular_song_edit', |
|
240 | - 'template' => 'songlist_popular_song.tpl', |
|
234 | + 'file' => 'songlist_popular_song.php', |
|
235 | + 'name' => _MI_SONGLIST_BLOCK_TOP_SONG, |
|
236 | + 'description' => 'Shows top song', |
|
237 | + 'show_func' => 'b_songlist_popular_song_show', |
|
238 | + 'options' => '', |
|
239 | + 'edit_func' => 'b_songlist_popular_song_edit', |
|
240 | + 'template' => 'songlist_popular_song.tpl', |
|
241 | 241 | ]; |
242 | 242 | |
243 | 243 | ++$i; |
244 | 244 | $modversion['blocks'][$i] = [ |
245 | - 'file' => 'songlist_popular_songs.php', |
|
246 | - 'name' => _MI_SONGLIST_BLOCK_POPULAR_SONGS, |
|
247 | - 'description' => 'Shows popular songs', |
|
248 | - 'show_func' => 'b_songlist_popular_songs_show', |
|
249 | - 'options' => '6', |
|
250 | - 'edit_func' => 'b_songlist_popular_songs_edit', |
|
251 | - 'template' => 'songlist_popular_songs.tpl', |
|
245 | + 'file' => 'songlist_popular_songs.php', |
|
246 | + 'name' => _MI_SONGLIST_BLOCK_POPULAR_SONGS, |
|
247 | + 'description' => 'Shows popular songs', |
|
248 | + 'show_func' => 'b_songlist_popular_songs_show', |
|
249 | + 'options' => '6', |
|
250 | + 'edit_func' => 'b_songlist_popular_songs_edit', |
|
251 | + 'template' => 'songlist_popular_songs.tpl', |
|
252 | 252 | ]; |
253 | 253 | |
254 | 254 | // default admin editor |
@@ -257,127 +257,127 @@ discard block |
||
257 | 257 | $editorList = array_flip($editorHandler->getList()); |
258 | 258 | |
259 | 259 | $modversion['config'][] = [ |
260 | - 'name' => 'editor', |
|
261 | - 'title' => '_MI_SONGLIST_EDITORS', |
|
262 | - 'description' => '_MI_SONGLIST_EDITORS_DESC', |
|
263 | - 'formtype' => 'select', |
|
264 | - 'valuetype' => 'text', |
|
265 | - 'default' => 'tinymce', |
|
266 | - 'options' => $editorList, |
|
260 | + 'name' => 'editor', |
|
261 | + 'title' => '_MI_SONGLIST_EDITORS', |
|
262 | + 'description' => '_MI_SONGLIST_EDITORS_DESC', |
|
263 | + 'formtype' => 'select', |
|
264 | + 'valuetype' => 'text', |
|
265 | + 'default' => 'tinymce', |
|
266 | + 'options' => $editorList, |
|
267 | 267 | ]; |
268 | 268 | |
269 | 269 | $modversion['config'][] = [ |
270 | - 'name' => 'salt', |
|
271 | - 'title' => '_MI_SONGLIST_SALT', |
|
272 | - 'description' => '_MI_SONGLIST_SALT_DESC', |
|
273 | - 'formtype' => 'text', |
|
274 | - 'valuetype' => 'text', |
|
275 | - 'default' => (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
276 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
277 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
278 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
279 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
280 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
281 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
282 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
283 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
284 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
285 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
286 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
287 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
288 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : ''), |
|
289 | - |
|
290 | - 'options' => [], |
|
270 | + 'name' => 'salt', |
|
271 | + 'title' => '_MI_SONGLIST_SALT', |
|
272 | + 'description' => '_MI_SONGLIST_SALT_DESC', |
|
273 | + 'formtype' => 'text', |
|
274 | + 'valuetype' => 'text', |
|
275 | + 'default' => (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
276 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
277 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
278 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
279 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
280 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
281 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
282 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
283 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
284 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
285 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
286 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
287 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
288 | + . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : ''), |
|
289 | + |
|
290 | + 'options' => [], |
|
291 | 291 | ]; |
292 | 292 | |
293 | 293 | $modversion['config'][] = [ |
294 | - 'name' => 'cols', |
|
295 | - 'title' => '_MI_SONGLIST_COLS', |
|
296 | - 'description' => '_MI_SONGLIST_COLS_DESC', |
|
297 | - 'formtype' => 'text', |
|
298 | - 'valuetype' => 'int', |
|
299 | - 'default' => 4, |
|
300 | - 'options' => [], |
|
294 | + 'name' => 'cols', |
|
295 | + 'title' => '_MI_SONGLIST_COLS', |
|
296 | + 'description' => '_MI_SONGLIST_COLS_DESC', |
|
297 | + 'formtype' => 'text', |
|
298 | + 'valuetype' => 'int', |
|
299 | + 'default' => 4, |
|
300 | + 'options' => [], |
|
301 | 301 | ]; |
302 | 302 | |
303 | 303 | $modversion['config'][] = [ |
304 | - 'name' => 'rows', |
|
305 | - 'title' => '_MI_SONGLIST_ROWS', |
|
306 | - 'description' => '_MI_SONGLIST_ROWS_DESC', |
|
307 | - 'formtype' => 'text', |
|
308 | - 'valuetype' => 'int', |
|
309 | - 'default' => 4, |
|
310 | - 'options' => [], |
|
304 | + 'name' => 'rows', |
|
305 | + 'title' => '_MI_SONGLIST_ROWS', |
|
306 | + 'description' => '_MI_SONGLIST_ROWS_DESC', |
|
307 | + 'formtype' => 'text', |
|
308 | + 'valuetype' => 'int', |
|
309 | + 'default' => 4, |
|
310 | + 'options' => [], |
|
311 | 311 | ]; |
312 | 312 | |
313 | 313 | $modversion['config'][] = [ |
314 | - 'name' => 'email', |
|
315 | - 'title' => '_MI_SONGLIST_EMAIL', |
|
316 | - 'description' => '_MI_SONGLIST_EMAIL_DESC', |
|
317 | - 'formtype' => 'textarea', |
|
318 | - 'valuetype' => 'text', |
|
319 | - 'default' => $GLOBALS['xoopsConfig']['adminmail'], |
|
320 | - 'options' => [], |
|
314 | + 'name' => 'email', |
|
315 | + 'title' => '_MI_SONGLIST_EMAIL', |
|
316 | + 'description' => '_MI_SONGLIST_EMAIL_DESC', |
|
317 | + 'formtype' => 'textarea', |
|
318 | + 'valuetype' => 'text', |
|
319 | + 'default' => $GLOBALS['xoopsConfig']['adminmail'], |
|
320 | + 'options' => [], |
|
321 | 321 | ]; |
322 | 322 | |
323 | 323 | $modversion['config'][] = [ |
324 | - 'name' => 'mp3_filesize', |
|
325 | - 'title' => '_MI_SONGLIST_MP3FILESIZE', |
|
326 | - 'description' => '_MI_SONGLIST_MP3FILESIZE_DESC', |
|
327 | - 'formtype' => 'textbox', |
|
328 | - 'valuetype' => 'int', |
|
329 | - 'default' => '195035100', |
|
324 | + 'name' => 'mp3_filesize', |
|
325 | + 'title' => '_MI_SONGLIST_MP3FILESIZE', |
|
326 | + 'description' => '_MI_SONGLIST_MP3FILESIZE_DESC', |
|
327 | + 'formtype' => 'textbox', |
|
328 | + 'valuetype' => 'int', |
|
329 | + 'default' => '195035100', |
|
330 | 330 | ]; |
331 | 331 | |
332 | 332 | $modversion['config'][] = [ |
333 | - 'name' => 'mp3_mimetype', |
|
334 | - 'title' => '_MI_SONGLIST_MP3MIMETYPE', |
|
335 | - 'description' => '_MI_SONGLIST_MP3MIMETYPE_DESC', |
|
336 | - 'formtype' => 'textarea', |
|
337 | - 'valuetype' => 'text', |
|
338 | - 'default' => 'audio/mpeg|audio/x-mpeg|audio/mp3|audio/x-mp3|audio/mpeg3|audio/x-mpeg3|audio/mpg|audio/x-mpg|audio/x-mpegaudio', |
|
333 | + 'name' => 'mp3_mimetype', |
|
334 | + 'title' => '_MI_SONGLIST_MP3MIMETYPE', |
|
335 | + 'description' => '_MI_SONGLIST_MP3MIMETYPE_DESC', |
|
336 | + 'formtype' => 'textarea', |
|
337 | + 'valuetype' => 'text', |
|
338 | + 'default' => 'audio/mpeg|audio/x-mpeg|audio/mp3|audio/x-mp3|audio/mpeg3|audio/x-mpeg3|audio/mpg|audio/x-mpg|audio/x-mpegaudio', |
|
339 | 339 | ]; |
340 | 340 | |
341 | 341 | $modversion['config'][] = [ |
342 | - 'name' => 'mp3_extensions', |
|
343 | - 'title' => '_MI_SONGLIST_MP3EXTENSIONS', |
|
344 | - 'description' => '_MI_SONGLIST_MP3EXTENSIONS_DESC', |
|
345 | - 'formtype' => 'textarea', |
|
346 | - 'valuetype' => 'text', |
|
347 | - 'default' => 'mp3', |
|
342 | + 'name' => 'mp3_extensions', |
|
343 | + 'title' => '_MI_SONGLIST_MP3EXTENSIONS', |
|
344 | + 'description' => '_MI_SONGLIST_MP3EXTENSIONS_DESC', |
|
345 | + 'formtype' => 'textarea', |
|
346 | + 'valuetype' => 'text', |
|
347 | + 'default' => 'mp3', |
|
348 | 348 | ]; |
349 | 349 | |
350 | 350 | $modversion['config'][] = [ |
351 | - 'name' => 'filesize_upload', |
|
352 | - 'title' => '_MI_SONGLIST_FILESIZEUPLD', |
|
353 | - 'description' => '_MI_SONGLIST_FILESIZEUPLD_DESC', |
|
354 | - 'formtype' => 'textbox', |
|
355 | - 'valuetype' => 'int', |
|
356 | - 'default' => '1950351', |
|
351 | + 'name' => 'filesize_upload', |
|
352 | + 'title' => '_MI_SONGLIST_FILESIZEUPLD', |
|
353 | + 'description' => '_MI_SONGLIST_FILESIZEUPLD_DESC', |
|
354 | + 'formtype' => 'textbox', |
|
355 | + 'valuetype' => 'int', |
|
356 | + 'default' => '1950351', |
|
357 | 357 | ]; |
358 | 358 | |
359 | 359 | $modversion['config'][] = [ |
360 | - 'name' => 'allowed_mimetype', |
|
361 | - 'title' => '_MI_SONGLIST_ALLOWEDMIMETYPE', |
|
362 | - 'description' => '_MI_SONGLIST_ALLOWEDMIMETYPE_DESC', |
|
363 | - 'formtype' => 'textarea', |
|
364 | - 'valuetype' => 'text', |
|
365 | - 'default' => 'image/gif|image/pjpeg|image/jpeg|image/x-png|image/png', |
|
360 | + 'name' => 'allowed_mimetype', |
|
361 | + 'title' => '_MI_SONGLIST_ALLOWEDMIMETYPE', |
|
362 | + 'description' => '_MI_SONGLIST_ALLOWEDMIMETYPE_DESC', |
|
363 | + 'formtype' => 'textarea', |
|
364 | + 'valuetype' => 'text', |
|
365 | + 'default' => 'image/gif|image/pjpeg|image/jpeg|image/x-png|image/png', |
|
366 | 366 | ]; |
367 | 367 | |
368 | 368 | $modversion['config'][] = [ |
369 | - 'name' => 'allowed_extensions', |
|
370 | - 'title' => '_MI_SONGLIST_ALLOWEDEXTENSIONS', |
|
371 | - 'description' => '_MI_SONGLIST_ALLOWEDEXTENSIONS_DESC', |
|
372 | - 'formtype' => 'textarea', |
|
373 | - 'valuetype' => 'text', |
|
374 | - 'default' => 'gif|pjpeg|jpeg|jpg|png', |
|
369 | + 'name' => 'allowed_extensions', |
|
370 | + 'title' => '_MI_SONGLIST_ALLOWEDEXTENSIONS', |
|
371 | + 'description' => '_MI_SONGLIST_ALLOWEDEXTENSIONS_DESC', |
|
372 | + 'formtype' => 'textarea', |
|
373 | + 'valuetype' => 'text', |
|
374 | + 'default' => 'gif|pjpeg|jpeg|jpg|png', |
|
375 | 375 | ]; |
376 | 376 | |
377 | 377 | $modversion['config'][] = [ |
378 | - 'name' => 'upload_areas', |
|
379 | - 'title' => '_MI_SONGLIST_UPLOADAREAS', |
|
380 | - 'description' => '_MI_SONGLIST_UPLOADAREAS_DESC', |
|
378 | + 'name' => 'upload_areas', |
|
379 | + 'title' => '_MI_SONGLIST_UPLOADAREAS', |
|
380 | + 'description' => '_MI_SONGLIST_UPLOADAREAS_DESC', |
|
381 | 381 | // 'formtype' => 'select', |
382 | 382 | // 'valuetype' => 'text', |
383 | 383 | // 'default' => 'uploads' . DS . 'songlist' . DS, |
@@ -385,45 +385,45 @@ discard block |
||
385 | 385 | // 'uploads' . DS => 'uploads' . DS, |
386 | 386 | // 'uploads' . DS . 'songlist' . DS => 'uploads' . DS . 'songlist' . DS, |
387 | 387 | //], |
388 | - 'formtype' => 'textbox', |
|
389 | - 'valuetype' => 'text', |
|
390 | - 'default' => '/uploads/songlist/', |
|
388 | + 'formtype' => 'textbox', |
|
389 | + 'valuetype' => 'text', |
|
390 | + 'default' => '/uploads/songlist/', |
|
391 | 391 | ]; |
392 | 392 | |
393 | 393 | $modversion['config'][] = [ |
394 | - 'name' => 'album', |
|
395 | - 'title' => '_MI_SONGLIST_ALBUM', |
|
396 | - 'description' => '_MI_SONGLIST_ALBUM_DESC', |
|
397 | - 'formtype' => 'yesno', |
|
398 | - 'valuetype' => 'int', |
|
399 | - 'default' => '0', |
|
394 | + 'name' => 'album', |
|
395 | + 'title' => '_MI_SONGLIST_ALBUM', |
|
396 | + 'description' => '_MI_SONGLIST_ALBUM_DESC', |
|
397 | + 'formtype' => 'yesno', |
|
398 | + 'valuetype' => 'int', |
|
399 | + 'default' => '0', |
|
400 | 400 | ]; |
401 | 401 | |
402 | 402 | $modversion['config'][] = [ |
403 | - 'name' => 'genre', |
|
404 | - 'title' => '_MI_SONGLIST_GENRE', |
|
405 | - 'description' => '_MI_SONGLIST_GENRE_DESC', |
|
406 | - 'formtype' => 'yesno', |
|
407 | - 'valuetype' => 'int', |
|
408 | - 'default' => '0', |
|
403 | + 'name' => 'genre', |
|
404 | + 'title' => '_MI_SONGLIST_GENRE', |
|
405 | + 'description' => '_MI_SONGLIST_GENRE_DESC', |
|
406 | + 'formtype' => 'yesno', |
|
407 | + 'valuetype' => 'int', |
|
408 | + 'default' => '0', |
|
409 | 409 | ]; |
410 | 410 | |
411 | 411 | $modversion['config'][] = [ |
412 | - 'name' => 'voice', |
|
413 | - 'title' => '_MI_SONGLIST_VOICE', |
|
414 | - 'description' => '_MI_SONGLIST_VOICE_DESC', |
|
415 | - 'formtype' => 'yesno', |
|
416 | - 'valuetype' => 'int', |
|
417 | - 'default' => '0', |
|
412 | + 'name' => 'voice', |
|
413 | + 'title' => '_MI_SONGLIST_VOICE', |
|
414 | + 'description' => '_MI_SONGLIST_VOICE_DESC', |
|
415 | + 'formtype' => 'yesno', |
|
416 | + 'valuetype' => 'int', |
|
417 | + 'default' => '0', |
|
418 | 418 | ]; |
419 | 419 | |
420 | 420 | $modversion['config'][] = [ |
421 | - 'name' => 'lyrics', |
|
422 | - 'title' => '_MI_SONGLIST_LYRICS', |
|
423 | - 'description' => '_MI_SONGLIST_LYRICS_DESC', |
|
424 | - 'formtype' => 'yesno', |
|
425 | - 'valuetype' => 'int', |
|
426 | - 'default' => '0', |
|
421 | + 'name' => 'lyrics', |
|
422 | + 'title' => '_MI_SONGLIST_LYRICS', |
|
423 | + 'description' => '_MI_SONGLIST_LYRICS_DESC', |
|
424 | + 'formtype' => 'yesno', |
|
425 | + 'valuetype' => 'int', |
|
426 | + 'default' => '0', |
|
427 | 427 | ]; |
428 | 428 | |
429 | 429 | /* |
@@ -438,110 +438,110 @@ discard block |
||
438 | 438 | */ |
439 | 439 | |
440 | 440 | $modversion['config'][] = [ |
441 | - 'name' => 'htaccess', |
|
442 | - 'title' => '_MI_SONGLIST_HTACCESS', |
|
443 | - 'description' => '_MI_SONGLIST_HTACCESS_DESC', |
|
444 | - 'formtype' => 'yesno', |
|
445 | - 'valuetype' => 'int', |
|
446 | - 'default' => '0', |
|
441 | + 'name' => 'htaccess', |
|
442 | + 'title' => '_MI_SONGLIST_HTACCESS', |
|
443 | + 'description' => '_MI_SONGLIST_HTACCESS_DESC', |
|
444 | + 'formtype' => 'yesno', |
|
445 | + 'valuetype' => 'int', |
|
446 | + 'default' => '0', |
|
447 | 447 | ]; |
448 | 448 | |
449 | 449 | $modversion['config'][] = [ |
450 | - 'name' => 'baseofurl', |
|
451 | - 'title' => '_MI_SONGLIST_HTACCESS_BASEOFURL', |
|
452 | - 'description' => '_MI_SONGLIST_HTACCESS_BASEOFURL_DESC', |
|
453 | - 'formtype' => 'text', |
|
454 | - 'valuetype' => 'text', |
|
455 | - 'default' => 'songlist', |
|
450 | + 'name' => 'baseofurl', |
|
451 | + 'title' => '_MI_SONGLIST_HTACCESS_BASEOFURL', |
|
452 | + 'description' => '_MI_SONGLIST_HTACCESS_BASEOFURL_DESC', |
|
453 | + 'formtype' => 'text', |
|
454 | + 'valuetype' => 'text', |
|
455 | + 'default' => 'songlist', |
|
456 | 456 | ]; |
457 | 457 | |
458 | 458 | $modversion['config'][] = [ |
459 | - 'name' => 'endofurl', |
|
460 | - 'title' => '_MI_SONGLIST_HTACCESS_ENDOFURL', |
|
461 | - 'description' => '_MI_SONGLIST_HTACCESS_ENDOFURL_DESC', |
|
462 | - 'formtype' => 'text', |
|
463 | - 'valuetype' => 'text', |
|
464 | - 'default' => '.tpl', |
|
459 | + 'name' => 'endofurl', |
|
460 | + 'title' => '_MI_SONGLIST_HTACCESS_ENDOFURL', |
|
461 | + 'description' => '_MI_SONGLIST_HTACCESS_ENDOFURL_DESC', |
|
462 | + 'formtype' => 'text', |
|
463 | + 'valuetype' => 'text', |
|
464 | + 'default' => '.tpl', |
|
465 | 465 | ]; |
466 | 466 | |
467 | 467 | $modversion['config'][] = [ |
468 | - 'name' => 'tags', |
|
469 | - 'title' => '_MI_SONGLIST_TAGS', |
|
470 | - 'description' => '_MI_SONGLIST_TAGS_DESC', |
|
471 | - 'formtype' => 'yesno', |
|
472 | - 'valuetype' => 'int', |
|
473 | - 'default' => '0', |
|
468 | + 'name' => 'tags', |
|
469 | + 'title' => '_MI_SONGLIST_TAGS', |
|
470 | + 'description' => '_MI_SONGLIST_TAGS_DESC', |
|
471 | + 'formtype' => 'yesno', |
|
472 | + 'valuetype' => 'int', |
|
473 | + 'default' => '0', |
|
474 | 474 | ]; |
475 | 475 | |
476 | 476 | $modversion['config'][] = [ |
477 | - 'name' => 'force_jquery', |
|
478 | - 'title' => '_MI_SONGLIST_FORCE_JQUERY', |
|
479 | - 'description' => '_MI_SONGLIST_FORCE_JQUERY_DESC', |
|
480 | - 'formtype' => 'yesno', |
|
481 | - 'valuetype' => 'int', |
|
482 | - 'default' => true, |
|
477 | + 'name' => 'force_jquery', |
|
478 | + 'title' => '_MI_SONGLIST_FORCE_JQUERY', |
|
479 | + 'description' => '_MI_SONGLIST_FORCE_JQUERY_DESC', |
|
480 | + 'formtype' => 'yesno', |
|
481 | + 'valuetype' => 'int', |
|
482 | + 'default' => true, |
|
483 | 483 | ]; |
484 | 484 | |
485 | 485 | $modversion['config'][] = [ |
486 | - 'name' => 'memory_admin', |
|
487 | - 'title' => '_MI_SONGLIST_MEMORY_ADMIN', |
|
488 | - 'description' => '_MI_SONGLIST_MEMORY_ADMIN_DESC', |
|
489 | - 'formtype' => 'text', |
|
490 | - 'valuetype' => 'int', |
|
491 | - 'default' => 128, |
|
492 | - 'options' => [], |
|
486 | + 'name' => 'memory_admin', |
|
487 | + 'title' => '_MI_SONGLIST_MEMORY_ADMIN', |
|
488 | + 'description' => '_MI_SONGLIST_MEMORY_ADMIN_DESC', |
|
489 | + 'formtype' => 'text', |
|
490 | + 'valuetype' => 'int', |
|
491 | + 'default' => 128, |
|
492 | + 'options' => [], |
|
493 | 493 | ]; |
494 | 494 | |
495 | 495 | $modversion['config'][] = [ |
496 | - 'name' => 'memory_user', |
|
497 | - 'title' => '_MI_SONGLIST_MEMORY_USER', |
|
498 | - 'description' => '_MI_SONGLIST_MEMORY_USER_DESC', |
|
499 | - 'formtype' => 'text', |
|
500 | - 'valuetype' => 'int', |
|
501 | - 'default' => 128, |
|
502 | - 'options' => [], |
|
496 | + 'name' => 'memory_user', |
|
497 | + 'title' => '_MI_SONGLIST_MEMORY_USER', |
|
498 | + 'description' => '_MI_SONGLIST_MEMORY_USER_DESC', |
|
499 | + 'formtype' => 'text', |
|
500 | + 'valuetype' => 'int', |
|
501 | + 'default' => 128, |
|
502 | + 'options' => [], |
|
503 | 503 | ]; |
504 | 504 | |
505 | 505 | $modversion['config'][] = [ |
506 | - 'name' => 'time_admin', |
|
507 | - 'title' => '_MI_SONGLIST_TIME_ADMIN', |
|
508 | - 'description' => '_MI_SONGLIST_TIME_ADMIN_DESC', |
|
509 | - 'formtype' => 'text', |
|
510 | - 'valuetype' => 'int', |
|
511 | - 'default' => 360, |
|
512 | - 'options' => [], |
|
506 | + 'name' => 'time_admin', |
|
507 | + 'title' => '_MI_SONGLIST_TIME_ADMIN', |
|
508 | + 'description' => '_MI_SONGLIST_TIME_ADMIN_DESC', |
|
509 | + 'formtype' => 'text', |
|
510 | + 'valuetype' => 'int', |
|
511 | + 'default' => 360, |
|
512 | + 'options' => [], |
|
513 | 513 | ]; |
514 | 514 | |
515 | 515 | $modversion['config'][] = [ |
516 | - 'name' => 'time_user', |
|
517 | - 'title' => '_MI_SONGLIST_TIME_USER', |
|
518 | - 'description' => '_MI_SONGLIST_TIME_USER_DESC', |
|
519 | - 'formtype' => 'text', |
|
520 | - 'valuetype' => 'int', |
|
521 | - 'default' => 360, |
|
522 | - 'options' => [], |
|
516 | + 'name' => 'time_user', |
|
517 | + 'title' => '_MI_SONGLIST_TIME_USER', |
|
518 | + 'description' => '_MI_SONGLIST_TIME_USER_DESC', |
|
519 | + 'formtype' => 'text', |
|
520 | + 'valuetype' => 'int', |
|
521 | + 'default' => 360, |
|
522 | + 'options' => [], |
|
523 | 523 | ]; |
524 | 524 | |
525 | 525 | /** |
526 | 526 | * Make Sample button visible? |
527 | 527 | */ |
528 | 528 | $modversion['config'][] = [ |
529 | - 'name' => 'displaySampleButton', |
|
530 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
|
531 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
|
532 | - 'formtype' => 'yesno', |
|
533 | - 'valuetype' => 'int', |
|
534 | - 'default' => 1, |
|
529 | + 'name' => 'displaySampleButton', |
|
530 | + 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
|
531 | + 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
|
532 | + 'formtype' => 'yesno', |
|
533 | + 'valuetype' => 'int', |
|
534 | + 'default' => 1, |
|
535 | 535 | ]; |
536 | 536 | |
537 | 537 | /** |
538 | 538 | * Show Developer Tools? |
539 | 539 | */ |
540 | 540 | $modversion['config'][] = [ |
541 | - 'name' => 'displayDeveloperTools', |
|
542 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', |
|
543 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', |
|
544 | - 'formtype' => 'yesno', |
|
545 | - 'valuetype' => 'int', |
|
546 | - 'default' => 0, |
|
541 | + 'name' => 'displayDeveloperTools', |
|
542 | + 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', |
|
543 | + 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', |
|
544 | + 'formtype' => 'yesno', |
|
545 | + 'valuetype' => 'int', |
|
546 | + 'default' => 0, |
|
547 | 547 | ]; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php declare(strict_types=1); |
2 | 2 | |
3 | -require_once __DIR__ . '/preloads/autoloader.php'; |
|
3 | +require_once __DIR__.'/preloads/autoloader.php'; |
|
4 | 4 | |
5 | 5 | error_reporting(E_ALL); |
6 | 6 | $moduleDirName = basename(__DIR__); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $modversion['releasedate'] = 'Thursday, 03rd July, 2022'; |
30 | 30 | $modversion['website'] = 'www.chronolabs.coop'; |
31 | 31 | $modversion['release_info'] = 'Stable 2012/08/16'; |
32 | -$modversion['release_file'] = XOOPS_URL . '/modules/songlist/docs/changelog.txt'; |
|
32 | +$modversion['release_file'] = XOOPS_URL.'/modules/songlist/docs/changelog.txt'; |
|
33 | 33 | $modversion['author_realname'] = 'Wishcraft'; |
34 | 34 | $modversion['author_website_url'] = 'https://www.chronolabs.coop'; |
35 | 35 | $modversion['author_website_name'] = 'Chronolabs'; |
@@ -52,18 +52,18 @@ discard block |
||
52 | 52 | |
53 | 53 | // ------------------- Tables ------------------ // |
54 | 54 | $modversion['tables'] = [ |
55 | - $moduleDirName . '_' . 'albums', |
|
56 | - $moduleDirName . '_' . 'artists', |
|
57 | - $moduleDirName . '_' . 'category', |
|
58 | - $moduleDirName . '_' . 'extra', |
|
59 | - $moduleDirName . '_' . 'field', |
|
60 | - $moduleDirName . '_' . 'genre', |
|
61 | - $moduleDirName . '_' . 'voice', |
|
62 | - $moduleDirName . '_' . 'requests', |
|
63 | - $moduleDirName . '_' . 'songs', |
|
64 | - $moduleDirName . '_' . 'utf8map', |
|
65 | - $moduleDirName . '_' . 'visibility', |
|
66 | - $moduleDirName . '_' . 'votes', |
|
55 | + $moduleDirName.'_'.'albums', |
|
56 | + $moduleDirName.'_'.'artists', |
|
57 | + $moduleDirName.'_'.'category', |
|
58 | + $moduleDirName.'_'.'extra', |
|
59 | + $moduleDirName.'_'.'field', |
|
60 | + $moduleDirName.'_'.'genre', |
|
61 | + $moduleDirName.'_'.'voice', |
|
62 | + $moduleDirName.'_'.'requests', |
|
63 | + $moduleDirName.'_'.'songs', |
|
64 | + $moduleDirName.'_'.'utf8map', |
|
65 | + $moduleDirName.'_'.'visibility', |
|
66 | + $moduleDirName.'_'.'votes', |
|
67 | 67 | ]; |
68 | 68 | |
69 | 69 | // Admin things |
@@ -272,20 +272,20 @@ discard block |
||
272 | 272 | 'description' => '_MI_SONGLIST_SALT_DESC', |
273 | 273 | 'formtype' => 'text', |
274 | 274 | 'valuetype' => 'text', |
275 | - 'default' => (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
276 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
277 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
278 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
279 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
280 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
281 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
282 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
283 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
284 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
285 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
286 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
287 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
288 | - . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : ''), |
|
275 | + 'default' => (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
276 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
277 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
278 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
279 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
280 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
281 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
282 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
283 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
284 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
285 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
286 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
287 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '') |
|
288 | + . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : ''), |
|
289 | 289 | |
290 | 290 | 'options' => [], |
291 | 291 | ]; |
@@ -527,8 +527,8 @@ discard block |
||
527 | 527 | */ |
528 | 528 | $modversion['config'][] = [ |
529 | 529 | 'name' => 'displaySampleButton', |
530 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
|
531 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
|
530 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', |
|
531 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', |
|
532 | 532 | 'formtype' => 'yesno', |
533 | 533 | 'valuetype' => 'int', |
534 | 534 | 'default' => 1, |
@@ -539,8 +539,8 @@ discard block |
||
539 | 539 | */ |
540 | 540 | $modversion['config'][] = [ |
541 | 541 | 'name' => 'displayDeveloperTools', |
542 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', |
|
543 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', |
|
542 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', |
|
543 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', |
|
544 | 544 | 'formtype' => 'yesno', |
545 | 545 | 'valuetype' => 'int', |
546 | 546 | 'default' => 0, |