XPressME Integration Kit

Trac

Changeset 846 for trunk


Ignore:
Timestamp:
Nov 17, 2013, 7:19:14 PM (10 years ago)
Author:
toemon
Message:

bump Version 2.5.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/xoops_version.php

    r837 r846  
    1010 * @package             module::xpressme 
    1111 */ 
    12   
     12 
    1313if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 
    1414 
     
    2323        function mod_access_level(){ 
    2424                global $current_user; 
    25                  
     25 
    2626                $level = @$current_user->user_level; 
    2727                $role = @$current_user->roles[0]; 
     
    3535                        case 'author': 
    3636                                $role_level = 2; 
    37                                 break;           
     37                                break; 
    3838                        case 'contributor': 
    3939                                $role_level = 1; 
     
    4242                                $role_level = 0; 
    4343                } 
    44                  
     44 
    4545                if ($level > $role_level){ 
    4646                        return $level; 
     
    5353        function is_show_multi_blog_block($mydirname = ''){ 
    5454                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. 
    5757                global $xoopsDB; 
    5858                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
     
    8383$modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XP2_NAME') ; 
    8484$modversion['description'] = constant( '_MI_XP2_DESC'); 
    85 $modversion['version'] = "2.49"; 
     85$modversion['version'] = "2.50"; 
    8686$modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://ja.xpressme.info) ;"; 
    8787$modversion['author'] = "toemon (http://ja.xpressme.info)"; 
     
    105105 
    106106/* 
    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. 
    111111 * 
    112112 * $modversion['tables'] = array( ,,,); 
    113113 */ 
    114114 
    115          
     115 
    116116// Search 
    117117$modversion['hasSearch'] = 1 ; 
     
    217217        'options'               => $mydirname. '||10|1|7||||0' , 
    218218        'can_clone'             => true , 
    219         'func_num'              => $b_no,        
     219        'func_num'              => $b_no, 
    220220); 
    221221$b_no++; 
     
    228228        'options'               => $mydirname. '||10|0||||0' , 
    229229        'can_clone'             => true , 
    230         'func_num'              => $b_no,        
     230        'func_num'              => $b_no, 
    231231); 
    232232$b_no++; 
     
    251251        'options'               => $mydirname. '||10|30|||0' , 
    252252        'can_clone'             => true , 
    253         'func_num'              => $b_no,        
     253        'func_num'              => $b_no, 
    254254); 
    255255$b_no++; 
     
    262262        'options'               => '' , 
    263263        'can_clone'             => false , 
    264         'func_num'              => $b_no,        
     264        'func_num'              => $b_no, 
    265265); 
    266266$b_no++; 
     
    273273        'options'               => $mydirname. '||18' , 
    274274        'can_clone'             => false , 
    275         'func_num'              => $b_no ,       
     275        'func_num'              => $b_no , 
    276276); 
    277277$b_no++; 
     
    295295        'options'               => $mydirname. '||monthly|0|1|0' , 
    296296        'can_clone'             => true , 
    297         'func_num'              => $b_no,        
     297        'func_num'              => $b_no, 
    298298); 
    299299$b_no++; 
     
    306306        'options'               => $mydirname. '||0|1|0|1' , 
    307307        'can_clone'             => false , 
    308         'func_num'              => $b_no,        
     308        'func_num'              => $b_no, 
    309309); 
    310310if (wp_version_compare($wp_version, '>=','2.3')){ 
     
    318318                'options'               => $mydirname. '||8|22|pt|45|flat|name|ASC||' , 
    319319                'can_clone'             => false , 
    320                 'func_num'              => $b_no,        
     320                'func_num'              => $b_no, 
    321321        ); 
    322322} 
     
    330330        'options'               => $mydirname. '||ALL|name|ASC|0|0|1|1|||1|0' , 
    331331        'can_clone'             => false , 
    332         'func_num'              => $b_no,        
     332        'func_num'              => $b_no, 
    333333); 
    334334$b_no++; 
     
    341341        'options'               => $mydirname. '||1|1|1|1|1|1|1|1' , 
    342342        'can_clone'             => false , 
    343         'func_num'              => $b_no,        
     343        'func_num'              => $b_no, 
    344344); 
    345345if (wp_version_compare($wp_version, '>=','2.7')){ 
     
    353353                'options'               => $mydirname. '||1|' , 
    354354                'can_clone'             => true , 
    355                 'func_num'              => $b_no,        
     355                'func_num'              => $b_no, 
    356356        ); 
    357357} 
     
    365365        'options'               => $mydirname. '||' , 
    366366        'can_clone'             => true , 
    367         'func_num'              => $b_no,        
     367        'func_num'              => $b_no, 
    368368); 
    369369if (wp_version_compare($wp_version, '>=','3.0-alpha') && is_show_multi_blog_block($mydirname)){ 
     
    388388                'options'               => $mydirname. '||10|1|7||0|0' , 
    389389                'can_clone'             => true , 
    390                 'func_num'              => $b_no,        
     390                'func_num'              => $b_no, 
    391391        ); 
    392392        $b_no++; 
     
    400400                'options'               => $mydirname. '||10|30|||0' , 
    401401                'can_clone'             => true , 
    402                 'func_num'              => $b_no,        
     402                'func_num'              => $b_no, 
    403403        ); 
    404404        $b_no++; 
     
    411411                'options'               => $mydirname. '||10|0||' , 
    412412                'can_clone'             => true , 
    413                 'func_num'              => $b_no,        
     413                'func_num'              => $b_no, 
    414414        ); 
    415415} 
     
    481481                        'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , 
    482482                ) , 
    483                  
     483 
    484484                array( 
    485485                        'name' => 'newpost' , 
Note: See TracChangeset for help on using the changeset viewer.