XPressME Integration Kit

Trac

source: branches/Ver3.0/xpressme_integration_kit/admin/menu.php @ 744

Last change on this file since 744 was 744, checked in by toemon, 13 years ago

WPなしでのインストールに対応 Fixed#405

File size: 3.3 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$i=0;
[744]43include_once $dir_path .'/include/wp_check.php' ;
[183]44$adminmenu[$i]['title'] = _MI_XP2_MENU_SYS_INFO ;
[107]45$adminmenu[$i++]['link'] = "admin/index.php";
[744]46if(is_wpdb_installed()){
[107]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
[300]57$adminmenu[$i]['title'] = _MI_XP2_MENU_TO_MODULE ;
58$adminmenu[$i++]['link'] = "index.php";
59
[461]60$adminmenu[$i]['title'] = _MI_XP2_TO_UPDATE ;
61$adminmenu[$i++]['link'] = "admin/update.php";
[744]62}
[61]63?>
Note: See TracBrowser for help on using the repository browser.