XPressME Integration Kit

Trac

source: trunk/xpressme_integration_kit/admin/menu.php @ 276

Last change on this file since 276 was 276, checked in by toemon, 16 years ago

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

File size: 3.0 KB
RevLine 
[61]1<?php
2// $Id: xoops_version.php,v 1.8 2005/06/03 01:35:02 phppp Exp $
3//  ------------------------------------------------------------------------ //
4//                XOOPS - PHP Content Management System                      //
5//                    Copyright (c) 2000 XOOPS.org                           //
6//                       <http://www.xoops.org/>                             //
7//  ------------------------------------------------------------------------ //
8//  This program is free software; you can redistribute it and/or modify     //
9//  it under the terms of the GNU General Public License as published by     //
10//  the Free Software Foundation; either version 2 of the License, or        //
11//  (at your option) any later version.                                      //
12//                                                                           //
13//  You may not change or alter any portion of this comment or credits       //
14//  of supporting developers from this source code or any supporting         //
15//  source code which is considered copyrighted (c) material of the          //
16//  original comment or credit authors.                                      //
17//                                                                           //
18//  This program is distributed in the hope that it will be useful,          //
19//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
20//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
21//  GNU General Public License for more details.                             //
22//                                                                           //
23//  You should have received a copy of the GNU General Public License        //
24//  along with this program; if not, write to the Free Software              //
25//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26//  ------------------------------------------------------------------------ //
27// Author: toemon                                                      //
28// URL: http://www.toemon.com                       //
29// ------------------------------------------------------------------------- //
[107]30$dir_path = dirname(dirname(__FILE__));
31$dir_name = basename($dir_path);
[61]32
[107]33$lang = @$GLOBALS["xoopsConfig"]['language'];
[61]34
[107]35
36if( file_exists( $dir_path .'/language/'.$lang.'/modinfo.php' ) ) {
37        include_once $dir_path .'/language/'.$lang.'/modinfo.php' ;
38} else if( file_exists(  $dir_path .'/language/english/modinfo.php' ) ) {
39        include_once $dir_path .'/language/english/modinfo.php' ;
40}
41
42
43
44$i=0;
[183]45$adminmenu[$i]['title'] = _MI_XP2_MENU_SYS_INFO ;
[107]46$adminmenu[$i++]['link'] = "admin/index.php";
47
[183]48//$adminmenu[$i]['title'] = _MI_XP2_MENU_BLOCK_ADMIN ;
[170]49//$adminmenu[$i++]['link'] = "admin/admin_blocks.php";
[151]50
[183]51$adminmenu[$i]['title'] = _MI_XP2_MENU_BLOCK_CHECK ;
[151]52$adminmenu[$i++]['link'] = "admin/block_check.php";
53
[276]54$adminmenu[$i]['title'] = _MI_XP2_MENU_WP_ADMIN ;
55$adminmenu[$i++]['link'] = "admin/wp_admin.php";
56
[61]57?>
Note: See TracBrowser for help on using the repository browser.