XPressME Integration Kit

Trac

Changeset 107 for trunk/admin/menu.php


Ignore:
Timestamp:
Mar 15, 2009, 12:01:24 AM (16 years ago)
Author:
toemon
Message:

XOOPSモジュール管理画面にシステム情報表示メニューを追加
チケット #23 実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/menu.php

    r61 r107  
    2828// URL: http://www.toemon.com                       // 
    2929// ------------------------------------------------------------------------- // 
     30$dir_path = dirname(dirname(__FILE__)); 
     31$dir_name = basename($dir_path); 
     32 
     33$lang = @$GLOBALS["xoopsConfig"]['language']; 
    3034 
    3135 
     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; 
     45$adminmenu[$i]['title'] = _MI_MENU_SYS_INFO ; 
     46$adminmenu[$i++]['link'] = "admin/index.php"; 
     47 
    3248?> 
Note: See TracChangeset for help on using the changeset viewer.