Index: trunk/include/onupdate.php
===================================================================
--- trunk/include/onupdate.php	(revision 137)
+++ trunk/include/onupdate.php	(revision 151)
@@ -136,8 +136,14 @@
 		$msgs[] = "$group_role table of XPressME was made.";
 	}
-	
+	if ( xpress_block_check($mydirname)) {
+		$msgs[] = '<span style="color:#ff0000;">Block Check OK</span>';
+	} else {
+		$msgs[] = "Block Check NG.  You need Repar Block on This Mobule 'Block Check' Menu";
+	}
+
 	// make templates
 	include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/xpress_templates_make.php' ;
 	$t_mess = xpress_templates_make($mid,$mydirname);
+	
 	$msgs = array_merge($msgs,$t_mess);
 	
@@ -206,3 +212,30 @@
 endif;
 
+if( ! function_exists( 'xpress_block_check' ) ) :
+function xpress_block_check($mydirname){
+	include_once(dirname(dirname(__FILE__)) . '/class/check_blocks_class.php');
+
+	$xoops_block_check =& xoops_block_check::getInstance();
+
+	if ( !$xoops_block_check->is_admin() )
+	{
+		$cont = 'Block Check Pass';
+		return cont;
+	}
+
+	switch ( $xoops_block_check->get_op() ) 
+	{
+		case "remove_block":
+			$cont = $xoops_block_check->remove_block();
+			break;
+
+		default:
+			$cont = $xoops_block_check->check_blocks($mydirname);
+			break;
+	}
+	return $cont;
+}
+endif;
+
+
 ?>
