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 | // ------------------------------------------------------------------------- //
|
---|
30 | $dir_path = dirname(dirname(__FILE__));
|
---|
31 | $dir_name = basename($dir_path);
|
---|
32 |
|
---|
33 | $lang = @$GLOBALS["xoopsConfig"]['language'];
|
---|
34 |
|
---|
35 |
|
---|
36 | if( 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;
|
---|
43 | include_once $dir_path .'/include/wp_check.php' ;
|
---|
44 | $adminmenu[$i]['title'] = _MI_XP2_MENU_SYS_INFO ;
|
---|
45 | $adminmenu[$i++]['link'] = "admin/index.php";
|
---|
46 | if(is_wpdb_installed()){
|
---|
47 |
|
---|
48 | //$adminmenu[$i]['title'] = _MI_XP2_MENU_BLOCK_ADMIN ;
|
---|
49 | //$adminmenu[$i++]['link'] = "admin/admin_blocks.php";
|
---|
50 |
|
---|
51 | $adminmenu[$i]['title'] = _MI_XP2_MENU_BLOCK_CHECK ;
|
---|
52 | $adminmenu[$i++]['link'] = "admin/block_check.php";
|
---|
53 |
|
---|
54 | $adminmenu[$i]['title'] = _MI_XP2_MENU_WP_ADMIN ;
|
---|
55 | $adminmenu[$i++]['link'] = "admin/wp_admin.php";
|
---|
56 |
|
---|
57 | $adminmenu[$i]['title'] = _MI_XP2_MENU_TO_MODULE ;
|
---|
58 | $adminmenu[$i++]['link'] = "index.php";
|
---|
59 |
|
---|
60 | $adminmenu[$i]['title'] = _MI_XP2_TO_UPDATE ;
|
---|
61 | $adminmenu[$i++]['link'] = "admin/update.php";
|
---|
62 | }
|
---|
63 | ?> |
---|