Index: trunk/admin/admin_blocks.php
===================================================================
--- trunk/admin/admin_blocks.php	(revision 151)
+++ trunk/admin/admin_blocks.php	(revision 151)
@@ -0,0 +1,17 @@
+<?php 
+
+include_once('./../../../include/cp_header.php');
+
+global $xoopsModule;
+$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+$module_dir = $mydirname;
+//$module_dir = $xoopsModule->getInfo('dirname');
+
+if (file_exists(XOOPS_ROOT_PATH . '/modules/altsys/admin/index.php')){
+	header("Location: ".XOOPS_URL."/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname=$module_dir");	
+} else if (file_exists(XOOPS_ROOT_PATH . '/modules/legacy/admin/index.php')){
+	header("Location: ".XOOPS_URL."/modules/legacy/admin/index.php?action=BlockList");	
+} else {
+	header("Location: ".XOOPS_URL."/modules/system/admin.php?fct=blocksadmin&selmod=".$xoopsModule->getVar("mid"));
+}
+?>
Index: trunk/admin/block_check.php
===================================================================
--- trunk/admin/block_check.php	(revision 151)
+++ trunk/admin/block_check.php	(revision 151)
@@ -0,0 +1,94 @@
+<?php 
+// $Id: xoops_version.php,v 1.8 2005/06/03 01:35:02 phppp Exp $
+//  ------------------------------------------------------------------------ //
+//                XOOPS - PHP Content Management System                      //
+//                    Copyright (c) 2000 XOOPS.org                           //
+//                       <http://www.xoops.org/>                             //
+//  ------------------------------------------------------------------------ //
+//  This program is free software; you can redistribute it and/or modify     //
+//  it under the terms of the GNU General Public License as published by     //
+//  the Free Software Foundation; either version 2 of the License, or        //
+//  (at your option) any later version.                                      //
+//                                                                           //
+//  You may not change or alter any portion of this comment or credits       //
+//  of supporting developers from this source code or any supporting         //
+//  source code which is considered copyrighted (c) material of the          //
+//  original comment or credit authors.                                      //
+//                                                                           //
+//  This program is distributed in the hope that it will be useful,          //
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
+//  GNU General Public License for more details.                             //
+//                                                                           //
+//  You should have received a copy of the GNU General Public License        //
+//  along with this program; if not, write to the Free Software              //
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
+//  ------------------------------------------------------------------------ //
+// Author: phppp (D.J.)                                                      //
+// URL: http://xoopsforge.com, http://xoops.org.cn                           //
+// ------------------------------------------------------------------------- //
+//include_once 'cp_functions.php';
+$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+include_once('./../../../include/cp_header.php');
+xoops_cp_header();
+include_once(dirname(__FILE__) . '/../class/check_blocks_class.php');
+
+//BLOCK CHECK
+echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . 'Check ' . $mydirname . ' block table' . "</legend>";
+echo "<div style='padding: 8px;'>";
+
+$xoops_block_check =& xoops_block_check::getInstance();
+
+if ( !$xoops_block_check->is_admin() )
+{
+	include XOOPS_ROOT_PATH.'/footer.php';
+	exit();
+}
+
+switch ( $xoops_block_check->get_op() ) 
+{
+case "remove_block":
+	echo $xoops_block_check->remove_block();
+	break;
+
+default:
+	if ($xoops_block_check->check_blocks($mydirname)){
+			echo $xoops_block_check->get_message();
+			echo "<br /><br />";
+			echo _AM_XP_BLOCK_OK ;
+	} else {
+
+			echo $xoops_block_check->get_message();
+			echo "<br /><br />\n";
+			echo _AM_XP_BLOCK_NG."<br />\n";
+			echo _AM_XP_BLOCK_REPAIR_HOWTO."<br />\n"; 
+			echo '<form method="POST">'."\n";
+			echo _AM_XP_BLOCK_REPAIR_STEP1 .' : '."\n"; 
+			echo '<input type="submit" name="mid:'.$xoops_block_check->module_id.'" value="' . _AM_XP_BLOCK_REMOVE . ': '.$xoops_block_check->module_name.'" />'."<br />\n";
+			echo '&emsp;&emsp;&emsp;&emsp;&nbsp;';
+			echo _AM_XP_BLOCK_REMOVE_NOTE;
+			echo "</form>\n";
+			echo "<br />\n";
+			echo _AM_XP_BLOCK_REPAIR_STEP2 . ' : ' . _AM_XP_BLOCK_UPDATE . "<br />\n";
+			echo '&emsp;&emsp;&emsp;&emsp;&nbsp;';
+			echo '<a href="'.$xoops_block_check->update_link.'">' .$xoops_block_check->module_name . ' ' . _AM_XP_TO_MODELE_UPDATE .'</a>';
+			echo "<br />\n";
+			echo "<br />\n";
+			
+			echo _AM_XP_BLOCK_REPAIR_STEP3 . ' : ' . _AM_XP_BLOCK_ADMIN_SETTING . "<br />\n";
+			echo '&emsp;&emsp;&emsp;&emsp;&nbsp;';
+			echo '<a href="admin_blocks.php">' .$xoops_block_check->module_name . ' ' . _AM_XP_BLOCK_TO_SETTING .'</a>';
+			echo "<br />\n";
+	}
+	break;
+
+}
+
+//if ( $xoops_block_check->get_xoops_version() == '2.1' ) {
+//	$xoopsTpl->assign( 'xoops_contents', $cont );
+//} else {
+//}
+echo "</fieldset>";
+xoops_cp_footer();
+	
+?>
Index: trunk/admin/menu.php
===================================================================
--- trunk/admin/menu.php	(revision 107)
+++ trunk/admin/menu.php	(revision 151)
@@ -46,3 +46,9 @@
 $adminmenu[$i++]['link'] = "admin/index.php";
 
+$adminmenu[$i]['title'] = _MI_MENU_BLOCK_ADMIN ;
+$adminmenu[$i++]['link'] = "admin/admin_blocks.php";
+
+$adminmenu[$i]['title'] = _MI_MENU_BLOCK_CHECK ;
+$adminmenu[$i++]['link'] = "admin/block_check.php";
+
 ?>
