XPressME Integration Kit

Trac

Changeset 199


Ignore:
Timestamp:
Apr 30, 2009, 11:43:16 PM (16 years ago)
Author:
toemon
Message:

#115 システム情報にブロックチェック結果表示を追加

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/index.php

    r191 r199  
    2929// ------------------------------------------------------------------------- // 
    3030//include_once 'cp_functions.php'; 
     31 
     32 
    3133function get_xpress_plugin_data( $plugin_file, $markup = true, $translate = true ) { 
    3234        // We don't need to write to the file, so just open for reading. 
     
    490492        } 
    491493} 
     494function xpress_block_state($is_report = false) 
     495{ 
     496        require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ; 
     497        $xoops_config = new ConfigFromXoops; 
     498         
     499        include_once(dirname(dirname(__FILE__) ). '/class/check_blocks_class.php'); 
     500        $xoops_block_check =& xoops_block_check::getInstance(); 
     501        $xoops_block_check->check_blocks($xoops_config->module_name); 
     502        if ($is_report){ 
     503                echo "******** " . _AM_XP2_BLOCK_STATS . "********" . "<br />\n"; 
     504                echo $xoops_block_check->get_message(); 
     505                echo "<br />\n"; 
     506                echo "<br />\n"; 
     507        } else { 
     508                echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XP2_BLOCK_STATS . "</legend>"; 
     509                echo "<div style='padding: 8px;'>"; 
     510                echo $xoops_block_check->get_message(); 
     511                echo "</div>"; 
     512                echo "</fieldset>"; 
     513        }                
     514} 
     515         
     516         
    492517require_once '../../../include/cp_header.php' ; 
    493518//require_once '../include/gtickets.php' ; 
     
    539564xpress_config_from_xoops_view($report); 
    540565xpress_active_plugin_list($report); 
     566xpress_block_state($report); 
    541567xpress_state($report); 
    542568echo '<form method="POST">'."\n"; 
  • trunk/language/english/admin.php

    r183 r199  
    1212        define("_AM_XP2_XOOPS_CONFIG_INFO","Set value that XPressME acquired from XOOPS"); 
    1313        define("_AM_XP2_PLUGIN","Active plug-in list at wordpress"); 
    14         define("_AM_XP2_STATS","WordPress Stats"); 
     14        define("_AM_XP2_BLOCK_STATS","Block Status"); 
     15        define("_AM_XP2_STATS","WordPress Status"); 
    1516        define("_AM_XP2_CATEGORIES","Category count"); 
    1617        define("_AM_XP2_ARTICLES","Blog article count"); 
  • trunk/language/ja_utf8/admin.php

    r192 r199  
    1212        define("_AM_XP2_XOOPS_CONFIG_INFO","XPressMEがXOOPSより取得した設定値"); 
    1313        define("_AM_XP2_PLUGIN","WordPressで使用中のプラグイン"); 
     14        define("_AM_XP2_BLOCK_STATS","ブロックステータス"); 
    1415        define("_AM_XP2_STATS","統計"); 
    1516        define("_AM_XP2_CATEGORIES","カテゴリー数"); 
  • trunk/xoops_version.php

    r198 r199  
    4040 
    4141// status 
    42 $modversion['codename'] = "Bata3(r198)"; 
     42$modversion['codename'] = "Bata3(r199)"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.