XPressME Integration Kit

Trac

Changeset 199 for trunk/admin/index.php


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

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

File:
1 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"; 
Note: See TracChangeset for help on using the changeset viewer.