Completed
Push — master ( adb512...260239 )
by Michael
03:10
created
xoops_version.php 1 patch
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 include __DIR__ . '/include/vars.php';
31 31
 
32 32
 $modversion                 = array(
33
-    'name'        => planet_constant('MI_NAME'),
34
-    'version'     => 2.10,
35
-    'description' => planet_constant('MI_DESC'),
36
-    'credits'     => 'XOOPS Project',
37
-    'image'       => 'assets/images/logoModule.png',
38
-    'dirname'     => $GLOBALS['moddirname'],
39
-    'author'      => 'D.J. (phppp)',
40
-    'help'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
33
+	'name'        => planet_constant('MI_NAME'),
34
+	'version'     => 2.10,
35
+	'description' => planet_constant('MI_DESC'),
36
+	'credits'     => 'XOOPS Project',
37
+	'image'       => 'assets/images/logoModule.png',
38
+	'dirname'     => $GLOBALS['moddirname'],
39
+	'author'      => 'D.J. (phppp)',
40
+	'help'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
41 41
 );
42 42
 $modversion['help']         = 'page=help';
43 43
 $modversion['license']      = 'GNU see LICENSE';
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
 $modversion['min_xoops']           = '2.5.8';
58 58
 $modversion['min_admin']           = '1.2';
59 59
 $modversion['min_db']              = array(
60
-    'mysql'  => '5.0.7',
61
-    'mysqli' => '5.0.7'
60
+	'mysql'  => '5.0.7',
61
+	'mysqli' => '5.0.7'
62 62
 );
63 63
 
64 64
 // database tables
65 65
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
66 66
 $modversion['tables']           = array(
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
71
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
72
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
67
+	$GLOBALS['MOD_DB_PREFIX'] . '_category',
68
+	$GLOBALS['MOD_DB_PREFIX'] . '_article',
69
+	$GLOBALS['MOD_DB_PREFIX'] . '_blog',
70
+	$GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
71
+	$GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
72
+	$GLOBALS['MOD_DB_PREFIX'] . '_rate'
73 73
 );
74 74
 
75 75
 // Admin things
@@ -151,162 +151,162 @@  discard block
 block discarded – undo
151 151
 // Configs
152 152
 // Config items
153 153
 $modversion['config'][] = array(
154
-    'name'        => 'do_debug',
155
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
156
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
157
-    'formtype'    => 'yesno',
158
-    'valuetype'   => 'int',
159
-    'default'     => 1
154
+	'name'        => 'do_debug',
155
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
156
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
157
+	'formtype'    => 'yesno',
158
+	'valuetype'   => 'int',
159
+	'default'     => 1
160 160
 );
161 161
 
162 162
 $modversion['config'][] = array(
163
-    'name'        => 'do_urw',
164
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
165
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
166
-    'formtype'    => 'yesno',
167
-    'valuetype'   => 'int',
168
-    'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
163
+	'name'        => 'do_urw',
164
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
165
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
166
+	'formtype'    => 'yesno',
167
+	'valuetype'   => 'int',
168
+	'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
169 169
 );
170 170
 
171 171
 $modversion['config'][] = array(
172
-    'name'        => 'theme_set',
173
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
174
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
175
-    'formtype'    => 'select',
176
-    'valuetype'   => 'text',
177
-    'options'     => array(_NONE => '0'),
178
-    'default'     => ''
172
+	'name'        => 'theme_set',
173
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
174
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
175
+	'formtype'    => 'select',
176
+	'valuetype'   => 'text',
177
+	'options'     => array(_NONE => '0'),
178
+	'default'     => ''
179 179
 );
180 180
 
181 181
 $modversion['config'][] = array(
182
-    'name'        => 'timeformat',
183
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
184
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
185
-    'formtype'    => 'select',
186
-    'valuetype'   => 'text',
187
-    'options'     => array(
188
-        _DATESTRING                                       => 'l',
189
-        _MEDIUMDATESTRING                                 => 'm',
190
-        _SHORTDATESTRING                                  => 's',
191
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
192
-    ),
193
-    'default'     => 'c'
182
+	'name'        => 'timeformat',
183
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
184
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
185
+	'formtype'    => 'select',
186
+	'valuetype'   => 'text',
187
+	'options'     => array(
188
+		_DATESTRING                                       => 'l',
189
+		_MEDIUMDATESTRING                                 => 'm',
190
+		_SHORTDATESTRING                                  => 's',
191
+		$GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
192
+	),
193
+	'default'     => 'c'
194 194
 );
195 195
 
196 196
 $modversion['config'][] = array(
197
-    'name'        => 'articles_perpage',
198
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
199
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
200
-    'formtype'    => 'textbox',
201
-    'valuetype'   => 'int',
202
-    'default'     => 10
197
+	'name'        => 'articles_perpage',
198
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
199
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
200
+	'formtype'    => 'textbox',
201
+	'valuetype'   => 'int',
202
+	'default'     => 10
203 203
 );
204 204
 
205 205
 $modversion['config'][] = array(
206
-    'name'        => 'list_perpage',
207
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
208
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
209
-    'formtype'    => 'textbox',
210
-    'valuetype'   => 'int',
211
-    'default'     => 20
206
+	'name'        => 'list_perpage',
207
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
208
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
209
+	'formtype'    => 'textbox',
210
+	'valuetype'   => 'int',
211
+	'default'     => 20
212 212
 );
213 213
 
214 214
 $modversion['config'][] = array(
215
-    'name'        => 'blogs_perupdate',
216
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
217
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
218
-    'formtype'    => 'textbox',
219
-    'valuetype'   => 'int',
220
-    'default'     => 10
215
+	'name'        => 'blogs_perupdate',
216
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
217
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
218
+	'formtype'    => 'textbox',
219
+	'valuetype'   => 'int',
220
+	'default'     => 10
221 221
 );
222 222
 
223 223
 $modversion['config'][] = array(
224
-    'name'        => 'article_expire',
225
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
226
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
227
-    'formtype'    => 'textbox',
228
-    'valuetype'   => 'int',
229
-    'default'     => 30
224
+	'name'        => 'article_expire',
225
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
226
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
227
+	'formtype'    => 'textbox',
228
+	'valuetype'   => 'int',
229
+	'default'     => 30
230 230
 );
231 231
 
232 232
 $modversion['config'][] = array(
233
-    'name'        => 'display_summary',
234
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
235
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
236
-    'formtype'    => 'textbox',
237
-    'valuetype'   => 'int',
238
-    'default'     => 0
233
+	'name'        => 'display_summary',
234
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
235
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
236
+	'formtype'    => 'textbox',
237
+	'valuetype'   => 'int',
238
+	'default'     => 0
239 239
 );
240 240
 
241 241
 $modversion['config'][] = array(
242
-    'name'        => 'do_sibling',
243
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
244
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
245
-    'formtype'    => 'yesno',
246
-    'valuetype'   => 'int',
247
-    'default'     => 1
242
+	'name'        => 'do_sibling',
243
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
244
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
245
+	'formtype'    => 'yesno',
246
+	'valuetype'   => 'int',
247
+	'default'     => 1
248 248
 );
249 249
 
250 250
 $modversion['config'][] = array(
251
-    'name'        => 'pings',
252
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
253
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
254
-    'formtype'    => 'textarea',
255
-    'valuetype'   => 'text',
256
-    'default'     => ''
251
+	'name'        => 'pings',
252
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
253
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
254
+	'formtype'    => 'textarea',
255
+	'valuetype'   => 'text',
256
+	'default'     => ''
257 257
 );
258 258
 
259 259
 $modversion['config'][] = array(
260
-    'name'        => 'trackback_option',
261
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
262
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
263
-    'formtype'    => 'select',
264
-    'valuetype'   => 'int',
265
-    'default'     => 0,
266
-    'options'     => array(planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2)
260
+	'name'        => 'trackback_option',
261
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
262
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
263
+	'formtype'    => 'select',
264
+	'valuetype'   => 'int',
265
+	'default'     => 0,
266
+	'options'     => array(planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2)
267 267
 );
268 268
 
269 269
 $modversion['config'][] = array(
270
-    'name'        => 'copyright',
271
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
272
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
273
-    'formtype'    => 'textbox',
274
-    'valuetype'   => 'text',
275
-    'default'     => 'Copyright© %s & ' . $xoopsConfig['sitename']
270
+	'name'        => 'copyright',
271
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
272
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
273
+	'formtype'    => 'textbox',
274
+	'valuetype'   => 'text',
275
+	'default'     => 'Copyright© %s & ' . $xoopsConfig['sitename']
276 276
 );
277 277
 
278 278
 $modversion['config'][] = array(
279
-    'name'        => 'newblog_submit',
280
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
281
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
282
-    'formtype'    => 'select',
283
-    'valuetype'   => 'int',
284
-    'default'     => 2,
285
-    'options'     => array(
286
-        _NONE                            => 0,
287
-        planet_constant('MI_MODERATION') => 1,
288
-        planet_constant('MI_MEMBER')     => 2,
289
-        _ALL                             => 3
290
-    )
291
-    // 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
279
+	'name'        => 'newblog_submit',
280
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
281
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
282
+	'formtype'    => 'select',
283
+	'valuetype'   => 'int',
284
+	'default'     => 2,
285
+	'options'     => array(
286
+		_NONE                            => 0,
287
+		planet_constant('MI_MODERATION') => 1,
288
+		planet_constant('MI_MEMBER')     => 2,
289
+		_ALL                             => 3
290
+	)
291
+	// 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
292 292
 );
293 293
 
294 294
 $modversion['config'][] = array(
295
-    'name'        => 'anonymous_rate',
296
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
297
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
298
-    'formtype'    => 'yesno',
299
-    'valuetype'   => 'int',
300
-    'default'     => 0
295
+	'name'        => 'anonymous_rate',
296
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
297
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
298
+	'formtype'    => 'yesno',
299
+	'valuetype'   => 'int',
300
+	'default'     => 0
301 301
 );
302 302
 
303 303
 $modversion['config'][] = array(
304
-    'name'        => 'do_pseudocron',
305
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
306
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
307
-    'formtype'    => 'yesno',
308
-    'valuetype'   => 'int',
309
-    'default'     => 1
304
+	'name'        => 'do_pseudocron',
305
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
306
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
307
+	'formtype'    => 'yesno',
308
+	'valuetype'   => 'int',
309
+	'default'     => 1
310 310
 );
311 311
 
312 312
 // Notification
Please login to merge, or discard this patch.