Changeset 846 for trunk/xpressme_integration_kit/xoops_version.php
- Timestamp:
- Nov 17, 2013, 7:19:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/xoops_version.php
r837 r846 10 10 * @package module::xpressme 11 11 */ 12 12 13 13 if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 14 14 … … 23 23 function mod_access_level(){ 24 24 global $current_user; 25 25 26 26 $level = @$current_user->user_level; 27 27 $role = @$current_user->roles[0]; … … 35 35 case 'author': 36 36 $role_level = 2; 37 break; 37 break; 38 38 case 'contributor': 39 39 $role_level = 1; … … 42 42 $role_level = 0; 43 43 } 44 44 45 45 if ($level > $role_level){ 46 46 return $level; … … 53 53 function is_show_multi_blog_block($mydirname = ''){ 54 54 if(empty($mydirname)) return false; 55 // Before loading xpressme. 56 // The multi blog is judged by the presence of the blogs table. 55 // Before loading xpressme. 56 // The multi blog is judged by the presence of the blogs table. 57 57 global $xoopsDB; 58 58 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); … … 83 83 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XP2_NAME') ; 84 84 $modversion['description'] = constant( '_MI_XP2_DESC'); 85 $modversion['version'] = "2. 49";85 $modversion['version'] = "2.50"; 86 86 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://ja.xpressme.info) ;"; 87 87 $modversion['author'] = "toemon (http://ja.xpressme.info)"; … … 105 105 106 106 /* 107 * Table information is not described. 108 * 109 * The create of the table is do with oninstall.php. 110 * The drop of the table is do with onuninstall.php. 107 * Table information is not described. 108 * 109 * The create of the table is do with oninstall.php. 110 * The drop of the table is do with onuninstall.php. 111 111 * 112 112 * $modversion['tables'] = array( ,,,); 113 113 */ 114 114 115 115 116 116 // Search 117 117 $modversion['hasSearch'] = 1 ; … … 217 217 'options' => $mydirname. '||10|1|7||||0' , 218 218 'can_clone' => true , 219 'func_num' => $b_no, 219 'func_num' => $b_no, 220 220 ); 221 221 $b_no++; … … 228 228 'options' => $mydirname. '||10|0||||0' , 229 229 'can_clone' => true , 230 'func_num' => $b_no, 230 'func_num' => $b_no, 231 231 ); 232 232 $b_no++; … … 251 251 'options' => $mydirname. '||10|30|||0' , 252 252 'can_clone' => true , 253 'func_num' => $b_no, 253 'func_num' => $b_no, 254 254 ); 255 255 $b_no++; … … 262 262 'options' => '' , 263 263 'can_clone' => false , 264 'func_num' => $b_no, 264 'func_num' => $b_no, 265 265 ); 266 266 $b_no++; … … 273 273 'options' => $mydirname. '||18' , 274 274 'can_clone' => false , 275 'func_num' => $b_no , 275 'func_num' => $b_no , 276 276 ); 277 277 $b_no++; … … 295 295 'options' => $mydirname. '||monthly|0|1|0' , 296 296 'can_clone' => true , 297 'func_num' => $b_no, 297 'func_num' => $b_no, 298 298 ); 299 299 $b_no++; … … 306 306 'options' => $mydirname. '||0|1|0|1' , 307 307 'can_clone' => false , 308 'func_num' => $b_no, 308 'func_num' => $b_no, 309 309 ); 310 310 if (wp_version_compare($wp_version, '>=','2.3')){ … … 318 318 'options' => $mydirname. '||8|22|pt|45|flat|name|ASC||' , 319 319 'can_clone' => false , 320 'func_num' => $b_no, 320 'func_num' => $b_no, 321 321 ); 322 322 } … … 330 330 'options' => $mydirname. '||ALL|name|ASC|0|0|1|1|||1|0' , 331 331 'can_clone' => false , 332 'func_num' => $b_no, 332 'func_num' => $b_no, 333 333 ); 334 334 $b_no++; … … 341 341 'options' => $mydirname. '||1|1|1|1|1|1|1|1' , 342 342 'can_clone' => false , 343 'func_num' => $b_no, 343 'func_num' => $b_no, 344 344 ); 345 345 if (wp_version_compare($wp_version, '>=','2.7')){ … … 353 353 'options' => $mydirname. '||1|' , 354 354 'can_clone' => true , 355 'func_num' => $b_no, 355 'func_num' => $b_no, 356 356 ); 357 357 } … … 365 365 'options' => $mydirname. '||' , 366 366 'can_clone' => true , 367 'func_num' => $b_no, 367 'func_num' => $b_no, 368 368 ); 369 369 if (wp_version_compare($wp_version, '>=','3.0-alpha') && is_show_multi_blog_block($mydirname)){ … … 388 388 'options' => $mydirname. '||10|1|7||0|0' , 389 389 'can_clone' => true , 390 'func_num' => $b_no, 390 'func_num' => $b_no, 391 391 ); 392 392 $b_no++; … … 400 400 'options' => $mydirname. '||10|30|||0' , 401 401 'can_clone' => true , 402 'func_num' => $b_no, 402 'func_num' => $b_no, 403 403 ); 404 404 $b_no++; … … 411 411 'options' => $mydirname. '||10|0||' , 412 412 'can_clone' => true , 413 'func_num' => $b_no, 413 'func_num' => $b_no, 414 414 ); 415 415 } … … 481 481 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , 482 482 ) , 483 483 484 484 array( 485 485 'name' => 'newpost' ,
Note: See TracChangeset
for help on using the changeset viewer.