XPressME Integration Kit

Trac

Changeset 276 for trunk


Ignore:
Timestamp:
Jun 11, 2009, 3:05:12 PM (15 years ago)
Author:
toemon
Message:

fixes#131 モジュール管理メニューに「WordPress管理」追加
WordPress側で権限を剥奪しても
XOOPS管理者グループに属するユーザは強制的にWordPress管理者権限を持つユーザとして、毎回、登録し直しまたは追加が行われるようにする。
但し、XOOPSの初期管理者グループに限る。 (group_typeをAdminにしてもgroupidが1で無ければ初期管理者グループとしてみなさない。)

Location:
trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/external/xpress_i18n/ja_EUC/language/japanese/modinfo.php

    r263 r276  
    77        define("_MI_XP2_MENU_BLOCK_ADMIN","¥Ö¥í¥Ã¥¯¸¢¸Â"); 
    88        define("_MI_XP2_MENU_BLOCK_CHECK","¥Ö¥í¥Ã¥¯¥Á¥§¥Ã¥¯"); 
     9        define("_MI_XP2_MENU_WP_ADMIN","WordPress´ÉÍý"); 
    910         
    1011        // The name of this module 
  • trunk/external/xpress_i18n/ja_UTF/language/ja_utf8/modinfo.php

    r252 r276  
    77        define("_MI_XP2_MENU_BLOCK_ADMIN","ブロック権限"); 
    88        define("_MI_XP2_MENU_BLOCK_CHECK","ブロックチェック"); 
     9        define("_MI_XP2_MENU_WP_ADMIN","WordPress管理"); 
    910         
    1011        // The name of this module 
  • trunk/xpressme_integration_kit/admin/menu.php

    r232 r276  
    5252$adminmenu[$i++]['link'] = "admin/block_check.php"; 
    5353 
     54$adminmenu[$i]['title'] = _MI_XP2_MENU_WP_ADMIN ; 
     55$adminmenu[$i++]['link'] = "admin/wp_admin.php"; 
     56 
    5457?> 
  • trunk/xpressme_integration_kit/language/english/modinfo.php

    r232 r276  
    77        define("_MI_XP2_MENU_BLOCK_ADMIN","blocks/permissions"); 
    88        define("_MI_XP2_MENU_BLOCK_CHECK","blocks check"); 
     9        define("_MI_XP2_MENU_WP_ADMIN","WordPress Admin"); 
    910         
    1011        // The name of this module 
  • trunk/xpressme_integration_kit/language/ja_utf8/modinfo.php

    r232 r276  
    77        define("_MI_XP2_MENU_BLOCK_ADMIN","ブロック権限"); 
    88        define("_MI_XP2_MENU_BLOCK_CHECK","ブロックチェック"); 
     9        define("_MI_XP2_MENU_WP_ADMIN","WordPress管理"); 
    910         
    1011        // The name of this module 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r274 r276  
    767767        // Quick check. If we have no posts at all, abort! 
    768768        if ( !$posts ) { 
    769                 $gotsome = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1"); 
     769//              $gotsome = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1"); 
     770                $gotsome = $wpdb->get_var("SELECT 1 as test FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1"); //WP2.8 
    770771                if ( !$gotsome ) 
    771772                        return; 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/user_sync_xoops.php

    r260 r276  
    5757                if ($user_group->group_type == 'Admin'){ 
    5858                        $ans['capabillities'] = 'administrator'; 
    59                         $ans['allway_update'] = 0; 
     59                        if ($user_group->groupid =1){ 
     60                                //It always rewrites it as WordPress adninistrator for an initial admin group of XOOPS.  
     61                                $ans['allway_update'] = 1; 
     62                        } else { 
     63                                // admin groups other than initial admin group of XOOPS  
     64                                // It group rewrites group_type of the data base in Admin. 
     65                                $ans['allway_update'] = $user_group->login_all;  
     66                        } 
    6067                        break; 
    6168                } 
Note: See TracChangeset for help on using the changeset viewer.