XPressME Integration Kit

Trac

Changeset 170


Ignore:
Timestamp:
Apr 9, 2009, 12:52:12 AM (15 years ago)
Author:
toemon
Message:

Bump Ver0.30 #100 ImpressCMSでのモジュール管理画面ではモジュールのサブメニューが出ないので、画面トップにメニューを付け加える
ついでにALTSYSに対応メニューとする。

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/block_check.php

    r151 r170  
    3030//include_once 'cp_functions.php'; 
    3131$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 
    32 include_once('./../../../include/cp_header.php'); 
     32require_once '../../../include/cp_header.php' ; 
     33//require_once '../include/gtickets.php' ; 
     34//define( '_MYMENU_CONSTANT_IN_MODINFO' , '_MI_TELLAFRIEND_MODNAME' ) ; 
     35 
     36// branch for altsys 
     37if( defined( 'XOOPS_TRUST_PATH' ) && ! empty( $_GET['lib'] ) ) { 
     38        $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 
     39        $mydirpath = dirname( dirname( __FILE__ ) ) ; 
     40 
     41        // common libs (eg. altsys) 
     42        $lib = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $_GET['lib'] ) ; 
     43        $page = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , @$_GET['page'] ) ; 
     44         
     45        if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ) ) { 
     46                include XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ; 
     47        } else if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ) ) { 
     48                include XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ; 
     49        } else { 
     50                die( 'wrong request' ) ; 
     51        } 
     52        exit ; 
     53} 
     54 
     55//include_once('./menu.php'); 
     56//include_once('./../../../include/cp_header.php'); 
    3357xoops_cp_header(); 
     58include( './mymenu.php' ) ; 
     59 
    3460include_once(dirname(__FILE__) . '/../class/check_blocks_class.php'); 
    3561 
  • trunk/admin/index.php

    r169 r170  
    104104        if ($is_report) { 
    105105                echo "******** "  . _AM_XPRESS_PLUGIN . "********" . "<br />\n"; 
    106                 echo get_xpress_active_plugin_list('') . "<br />\n"; 
     106                echo get_xpress_active_plugin_list('&emsp;') . "<br />\n"; 
    107107        } else { 
    108108                echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XPRESS_PLUGIN . "</legend>"; 
     
    121121        if ($is_report) { 
    122122                echo "******** "  . _AM_SYSTEM_INFO . "********" . "<br />\n"; 
    123                 echo "SERVER:  ". $_SERVER['SERVER_SOFTWARE']. "<br />\n"; 
    124                 echo "PHP Version:   " . phpversion() . "<br />\n"; 
    125                 echo "MySQL Version:   " . mysql_get_server_info() . "</text><br />"; 
    126                 echo "XOOPS Version:   " . XOOPS_VERSION . "</text><br />"; 
    127                 echo "XPressME Version:   " . $xoopsModule->getInfo('version') . ' ' . $xoopsModule->getInfo('codename') . "<br />\n"; 
    128                 echo "WordPress Version:   " . $wp_version . "<br />\n"; 
    129                 echo "WP DB Version:   " . $wp_db_version . "<br />\n"; 
    130                 echo "<br />\n"; 
    131                 echo "safemode:   " ; 
     123                echo '&emsp;' . "SERVER:  ". $_SERVER['SERVER_SOFTWARE']. "<br />\n"; 
     124                echo '&emsp;' . "PHP Version:   " . phpversion() . "<br />\n"; 
     125                echo '&emsp;' . "MySQL Version:   " . mysql_get_server_info() . "</text><br />"; 
     126                echo '&emsp;' . "XOOPS Version:   " . XOOPS_VERSION . "</text><br />"; 
     127                echo '&emsp;' . "XPressME Version:   " . $xoopsModule->getInfo('version') . ' ' . $xoopsModule->getInfo('codename') . "<br />\n"; 
     128                echo '&emsp;' . "WordPress Version:   " . $wp_version . "<br />\n"; 
     129                echo '&emsp;' . "WP DB Version:   " . $wp_db_version . "<br />\n"; 
     130                echo "<br />\n"; 
     131                echo '&emsp;' . "safemode:   " ; 
    132132                echo ( ini_get( 'safe_mode' ) ) ? "ON" : "OFF"; 
    133133                echo "<br />\n"; 
    134                 echo "register_globals:   " ; 
     134                echo '&emsp;' . "register_globals:   " ; 
    135135                echo ( ini_get( 'register_globals' )) ? "ON" : "OFF" ; 
    136136                echo "<br />\n"; 
    137                 echo "magic_quotes_gpc:   " ; 
     137                echo '&emsp;' . "magic_quotes_gpc:   " ; 
    138138                echo ( ini_get( 'magic_quotes_gpc' )) ? "ON" : "OFF"; 
    139139                echo "<br />\n"; 
    140                 echo "XML extension:   " ; 
     140                echo '&emsp;' . "XML extension:   " ; 
    141141                echo ( extension_loaded( 'xml' )) ? "ON" : "OFF"; 
    142142                echo "<br />\n"; 
    143                 echo "memory_limit:   " ; 
     143                echo '&emsp;' . "memory_limit:   " ; 
    144144                echo  ini_get( 'memory_limit' ); 
    145145                echo "<br />\n"; 
    146                 echo "post_max_size:   " ; 
     146                echo '&emsp;' . "post_max_size:   " ; 
    147147                echo  ini_get( 'post_max_size' ); 
    148148                echo "<br />\n"; 
    149                 echo "upload_max_filesize:   " ; 
     149                echo '&emsp;' . "upload_max_filesize:   " ; 
    150150                echo  ini_get( 'upload_max_filesize' ); 
    151151                echo "<br />\n"; 
    152                 echo "display_errors:   " ; 
     152                echo '&emsp;' . "display_errors:   " ; 
    153153                echo ( ini_get( 'display_errors' )) ? "ON" : "OFF"; 
    154154                echo "<br />\n"; 
    155                 echo "MB extension:   " ; 
     155                echo '&emsp;' . "MB extension:   " ; 
    156156                echo ( extension_loaded( 'mbstring' )) ? "ON" : "OFF"; 
    157157                echo "<br />\n"; 
    158                 echo "mbstring.language:   " ; 
     158                echo '&emsp;' . "mbstring.language:   " ; 
    159159                echo  ini_get( 'mbstring.language' ); 
    160160                echo "<br />\n"; 
    161                 echo "mbstring.encoding_translation:   " ; 
     161                echo '&emsp;' . "mbstring.encoding_translation:   " ; 
    162162                echo  ( ini_get( 'mbstring.encoding_translation' )) ? "ON" : "OFF"; 
    163163                echo "<br />\n"; 
    164                 echo "mbstring.internal_encoding:   " ; 
     164                echo '&emsp;' . "mbstring.internal_encoding:   " ; 
    165165                echo  ini_get( 'mbstring.internal_encoding' ); 
    166166                echo "<br />\n"; 
    167                 echo "mbstring.http_input:   " ; 
     167                echo '&emsp;' . "mbstring.http_input:   " ; 
    168168                echo  ini_get( 'mbstring.http_input' ); 
    169169                echo "<br />\n"; 
    170                 echo "mbstring.http_output:   " ; 
     170                echo '&emsp;' . "mbstring.http_output:   " ; 
    171171                echo  ini_get( 'mbstring.http_output' ); 
    172172                echo "<br />\n"; 
    173                 echo "mbstring.detect_order:   " ; 
     173                echo '&emsp;' . "mbstring.detect_order:   " ; 
    174174                echo  ini_get( 'mbstring.detect_order' ); 
    175175                echo "<br />\n"; 
    176                 echo "mbstring.substitute_character:   " ; 
     176                echo '&emsp;' . "mbstring.substitute_character:   " ; 
    177177                echo  ini_get( 'mbstring.substitute_character' ); 
    178178                echo "<br />\n"; 
    179                 echo "mbstring.func_overload:   " ; 
     179                echo '&emsp;' . "mbstring.func_overload:   " ; 
    180180                echo  ( ini_get( 'mbstring.func_overload' )) ? "ON" : "OFF"; 
    181181                echo "<br />\n"; 
     
    256256        if ($is_report) { 
    257257                echo "******** "  . _AM_XOOPS_CONFIG_INFO . "********" . "<br />\n"; 
    258                 echo 'XOOPS_ROOT_PATH:  ' ;  
     258                echo '&emsp;' . 'XOOPS_ROOT_PATH:  ' ;  
    259259                if(XOOPS_ROOT_PATH !== $xoops_config->xoops_root_path) 
    260260                        echo 'ERROR '; 
     
    263263                echo "<br />\n"; 
    264264 
    265                 echo 'XOOPS_TRUST_PATH:  ' ;  
     265                echo '&emsp;' . 'XOOPS_TRUST_PATH:  ' ;  
    266266                if(XOOPS_TRUST_PATH !== $xoops_config->xoops_trust_path) 
    267267                        echo 'ERROR '; 
     
    270270                echo "<br />\n"; 
    271271 
    272                 echo 'XOOPS_URL:  ' ;  
     272                echo '&emsp;' . 'XOOPS_URL:  ' ;  
    273273                if(XOOPS_URL !== $xoops_config->xoops_url) 
    274274                        echo 'ERROR '; 
     
    278278 
    279279                if (defined('XOOPS_SALT')){ 
    280                         echo 'XOOPS_SALT:  ' ;  
     280                        echo '&emsp;' . 'XOOPS_SALT:  ' ;  
    281281                        if(XOOPS_SALT !== $xoops_config->xoops_salt) 
    282282                                echo 'ERROR '; 
     
    287287 
    288288                if (defined('XOOPS_DB_SALT')){ 
    289                         echo 'XOOPS_DB_SALT:  ' ;  
     289                        echo '&emsp;' . 'XOOPS_DB_SALT:  ' ;  
    290290                        if(XOOPS_DB_SALT !== $xoops_config->xoops_db_salt) 
    291291                                echo 'ERROR '; 
     
    295295                } 
    296296 
    297                 echo 'XOOPS_DB_HOST:  ' ;  
     297                echo '&emsp;' . 'XOOPS_DB_HOST:  ' ;  
    298298                if(XOOPS_DB_HOST !== $xoops_config->xoops_db_host) 
    299299                        echo 'ERROR '; 
     
    302302                echo "<br />\n"; 
    303303 
    304                 echo 'XOOPS_DB_USER:  ' ;  
     304                echo '&emsp;' . 'XOOPS_DB_USER:  ' ;  
    305305                if(XOOPS_DB_USER !== $xoops_config->xoops_db_user) 
    306306                        echo 'ERROR '; 
     
    309309                echo "<br />\n"; 
    310310 
    311                 echo 'XOOPS_DB_PASS:  ' ;  
     311                echo '&emsp;' . 'XOOPS_DB_PASS:  ' ;  
    312312                if(XOOPS_DB_PASS !== $xoops_config->xoops_db_pass) 
    313313                        echo 'ERROR '; 
     
    316316                echo "<br />\n"; 
    317317 
    318                 echo 'XOOPS_DB_NAME:  ' ;  
     318                echo '&emsp;' . 'XOOPS_DB_NAME:  ' ;  
    319319                if(XOOPS_DB_NAME !== $xoops_config->xoops_db_name) 
    320320                        echo 'ERROR '; 
     
    323323                echo "<br />\n"; 
    324324 
    325                 echo 'XOOPS_DB_PREFIX:  ' ;  
     325                echo '&emsp;' . 'XOOPS_DB_PREFIX:  ' ;  
    326326                if(XOOPS_DB_PREFIX !== $xoops_config->xoops_db_prefix) 
    327327                        echo 'ERROR '; 
     
    473473        if ($is_report){ 
    474474                echo "******** " . _AM_XPRESS_STATS . "********" . "<br />\n"; 
    475                 echo _AM_XPRESS_CATEGORIES .":  ".@$count_category. "<br />\n"; 
    476                 echo _AM_XPRESS_ARTICLES .":  ". $count_article. "<br />\n"; 
    477                 echo _AM_XPRESS_AUTHORS .":  ". $count_author. "<br />\n"; 
     475                echo '&emsp;' . _AM_XPRESS_CATEGORIES .":  ".@$count_category. "<br />\n"; 
     476                echo '&emsp;' . _AM_XPRESS_ARTICLES .":  ". $count_article. "<br />\n"; 
     477                echo '&emsp;' . _AM_XPRESS_AUTHORS .":  ". $count_author. "<br />\n"; 
    478478                 
    479479        } else { 
     
    490490        } 
    491491} 
    492  
    493 include_once('./../../../include/cp_header.php'); 
     492require_once '../../../include/cp_header.php' ; 
     493//require_once '../include/gtickets.php' ; 
     494//define( '_MYMENU_CONSTANT_IN_MODINFO' , '_MI_TELLAFRIEND_MODNAME' ) ; 
     495 
     496// branch for altsys 
     497if( defined( 'XOOPS_TRUST_PATH' ) && ! empty( $_GET['lib'] ) ) { 
     498        $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 
     499        $mydirpath = dirname( dirname( __FILE__ ) ) ; 
     500 
     501        // common libs (eg. altsys) 
     502        $lib = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $_GET['lib'] ) ; 
     503        $page = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , @$_GET['page'] ) ; 
     504         
     505        if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ) ) { 
     506                include XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ; 
     507        } else if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ) ) { 
     508                include XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ; 
     509        } else { 
     510                die( 'wrong request' ) ; 
     511        } 
     512        exit ; 
     513} 
     514 
     515//include_once('./menu.php'); 
     516//include_once('./../../../include/cp_header.php'); 
    494517xoops_cp_header(); 
    495  
     518include( './mymenu.php' ) ; 
    496519echo " 
    497520        <style type=\"text/css\"> 
  • trunk/admin/menu.php

    r151 r170  
    4646$adminmenu[$i++]['link'] = "admin/index.php"; 
    4747 
    48 $adminmenu[$i]['title'] = _MI_MENU_BLOCK_ADMIN ; 
    49 $adminmenu[$i++]['link'] = "admin/admin_blocks.php"; 
     48//$adminmenu[$i]['title'] = _MI_MENU_BLOCK_ADMIN ; 
     49//$adminmenu[$i++]['link'] = "admin/admin_blocks.php"; 
    5050 
    5151$adminmenu[$i]['title'] = _MI_MENU_BLOCK_CHECK ; 
  • trunk/language/ja_utf8/admin.php

    r160 r170  
    33        define( 'XPRESS_ADMIN_LANG_INCLUDED' , 1 ) ; 
    44         
     5// altsys 
     6        define('_MD_A_MYMENU_MYTPLSADMIN','テンプレート管理'); 
     7        define('_MD_A_MYMENU_MYBLOCKSADMIN','アクセス権限'); 
     8        define('_MD_A_MYMENU_MYLANGADMIN','言語定数管理'); 
     9        define('_MD_A_MYMENU_MYPREFERENCES','一般設定'); 
     10 
    511        define("_AM_SYSTEM_INFO","システム情報"); 
    612        define("_AM_XOOPS_CONFIG_INFO","XPressMEがXOOPSより取得した設定値"); 
  • trunk/xoops_version.php

    r167 r170  
    3131$modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 
    3232$modversion['description'] = constant( '_MI_XPRESS_DESC'); 
    33 $modversion['version'] = "0.29"; 
     33$modversion['version'] = "0.30"; 
    3434$modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
     
    4040 
    4141// status 
    42 $modversion['codename'] = "r167"; 
     42$modversion['codename'] = "r170"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.