Index: /trunk/extras/for_wordpressme2011/ja_EUC/wp-config.php
===================================================================
--- /trunk/extras/for_wordpressme2011/ja_EUC/wp-config.php	(revision 354)
+++ /trunk/extras/for_wordpressme2011/ja_EUC/wp-config.php	(revision 355)
@@ -1,7 +1,5 @@
 <?php
-require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
-require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ;
-$xoops_config = new ConfigFromXoops;
-require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
+/** It is an additional loading for XPressME. */
+require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ;
 
 /**
@@ -94,47 +92,7 @@
 	define('ABSPATH', dirname(__FILE__).'/');
 
-require_once( ABSPATH .'/include/request_url.php');
-if (is_xpress_index_page_call()){
-	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
-	require_once(ABSPATH.'wp-settings.php');
-	wp();
-	
-	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
-		require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ;
-		xpress_pulugin_activation('xpressme/xpressme.php');
-		// reloaded 
-		header('Location: ' . $xoops_config->module_url . '/');
-		
-		$err_str = "The activation of the XPressME plugin was executed.<br />\n";
-		$err_str .= "Because the XPressME plugin was invalid.<br />\n";
-		$err_str .= "Please do the rereading seeing on the page.\n";			
-		die($err_str);
-	}
+/** Processing for XPressME is done.*/
+require_once( ABSPATH .'/include/add_xpress_process.php');
 
-	ob_start();	
-		if($xoops_config->is_wp20 )
-			require_once dirname( __FILE__ ).'/include/old_template-loader.php' ;
-		else
-			require_once( ABSPATH . WPINC . '/template-loader.php' );
-		$wp_output = ob_get_contents();
-	ob_end_clean();
-	// It judges it here because it does in is_index_page() through feed to which the permalink is set. 
-	if (is_wordpress_style() || is_feed()) {
-		echo $wp_output;
-	} else {
-		require_once( ABSPATH .'/include/xpress_render.php' );
-		xpress_render($wp_output);
-	}
-
-	//When there is no block cache, and an optional block is different, cache is refreshed. 
-	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
-	// This Function in xpressme plugin
-	require_once( ABSPATH .'/include/xpress_block_render.php' );	
-	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
-	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
-	exit();		// The return to wp-blog-header.php is stolen here
-}
-if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
-if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;
 require_once(ABSPATH.'wp-settings.php');
 ?>
Index: /trunk/extras/for_wordpressme2011/ja_UTF/wp-config.php
===================================================================
--- /trunk/extras/for_wordpressme2011/ja_UTF/wp-config.php	(revision 354)
+++ /trunk/extras/for_wordpressme2011/ja_UTF/wp-config.php	(revision 355)
@@ -1,7 +1,5 @@
 <?php
-require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
-require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ;
-$xoops_config = new ConfigFromXoops;
-require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
+/** It is an additional loading for XPressME. */
+require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ;
 
 /**
@@ -93,47 +91,7 @@
 	define('ABSPATH', dirname(__FILE__).'/');
 
-require_once( ABSPATH .'/include/request_url.php');
-if (is_xpress_index_page_call()){
-	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
-	require_once(ABSPATH.'wp-settings.php');
-	wp();
-	
-	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
-		require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ;
-		xpress_pulugin_activation('xpressme/xpressme.php');
-		// reloaded 
-		header('Location: ' . $xoops_config->module_url . '/');
-		
-		$err_str = "The activation of the XPressME plugin was executed.<br />\n";
-		$err_str .= "Because the XPressME plugin was invalid.<br />\n";
-		$err_str .= "Please do the rereading seeing on the page.\n";			
-		die($err_str);
-	}
+/** Processing for XPressME is done.*/
+require_once( ABSPATH .'/include/add_xpress_process.php');
 
-	ob_start();	
-		if($xoops_config->is_wp20 )
-			require_once dirname( __FILE__ ).'/include/old_template-loader.php' ;
-		else
-			require_once( ABSPATH . WPINC . '/template-loader.php' );
-		$wp_output = ob_get_contents();
-	ob_end_clean();
-	// It judges it here because it does in is_index_page() through feed to which the permalink is set. 
-	if (is_wordpress_style() || is_feed()) {
-		echo $wp_output;
-	} else {
-		require_once( ABSPATH .'/include/xpress_render.php' );
-		xpress_render($wp_output);
-	}
-
-	//When there is no block cache, and an optional block is different, cache is refreshed. 
-	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
-	// This Function in xpressme plugin
-	require_once( ABSPATH .'/include/xpress_block_render.php' );	
-	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
-	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
-	exit();		// The return to wp-blog-header.php is stolen here
-}
-if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
-if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;
 require_once(ABSPATH.'wp-settings.php');
 ?>
Index: /trunk/extras/xpress_i18n/en/xpressme_modules_root/wp-config.php
===================================================================
--- /trunk/extras/xpress_i18n/en/xpressme_modules_root/wp-config.php	(revision 354)
+++ /trunk/extras/xpress_i18n/en/xpressme_modules_root/wp-config.php	(revision 355)
@@ -1,7 +1,5 @@
 <?php
-require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
-require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ;
-$xoops_config = new ConfigFromXoops;
-require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
+/** It is an additional loading for XPressME. */
+require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ;
 
 /**
@@ -93,45 +91,7 @@
 	define('ABSPATH', dirname(__FILE__).'/');
 
-require_once( ABSPATH .'/include/request_url.php');
-if (is_xpress_index_page_call()){
-	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
-	require_once(ABSPATH.'wp-settings.php');
-	wp();
-	
-	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
-		require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ;
-		xpress_pulugin_activation('xpressme/xpressme.php');
-		// reloaded 
-		header('Location: ' . $xoops_config->module_url . '/');
-		
-		$err_str = "The activation of the XPressME plugin was executed.<br />\n";
-		$err_str .= "Because the XPressME plugin was invalid.<br />\n";
-		$err_str .= "Please do the rereading seeing on the page.\n";			
-		die($err_str);
-	}
+/** Processing for XPressME is done.*/
+require_once( ABSPATH .'/include/add_xpress_process.php');
 
-	// It judges it here because it does in is_index_page() through feed to which the permalink is set. 
-	if (is_wordpress_style() || is_feed()) {
-		require_once( ABSPATH . WPINC . '/template-loader.php' );
-	} else {
-		ob_start();	
-			require_once( ABSPATH . WPINC . '/template-loader.php' );
-			$wp_output = ob_get_contents();
-		ob_end_clean();
-		require_once( ABSPATH .'/include/xpress_render.php' );
-		xpress_render($wp_output);
-	}
-		
-	
-	//When there is no block cache, and an optional block is different, cache is refreshed. 
-	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
-	// This Function in xpressme plugin
-	require_once( ABSPATH .'/include/xpress_block_render.php' );	
-	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
-	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
-	exit();		// The return to wp-blog-header.php is stolen here
-}
-if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
-if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;
 require_once(ABSPATH.'wp-settings.php');
 ?>
Index: /trunk/extras/xpress_i18n/portuguese-br/xpressme_modules_root/wp-config.php
===================================================================
--- /trunk/extras/xpress_i18n/portuguese-br/xpressme_modules_root/wp-config.php	(revision 354)
+++ /trunk/extras/xpress_i18n/portuguese-br/xpressme_modules_root/wp-config.php	(revision 355)
@@ -1,7 +1,5 @@
 <?php
-require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
-require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ;
-$xoops_config = new ConfigFromXoops;
-require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
+/** It is an additional loading for XPressME. */
+require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ;
 
 /**
@@ -89,45 +87,7 @@
 	define('ABSPATH', dirname(__FILE__) . '/');
 
-require_once( ABSPATH .'/include/request_url.php');
-if (is_xpress_index_page_call()){
-	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
-	require_once(ABSPATH.'wp-settings.php');
-	wp();
-	
-	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
-		require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ;
-		xpress_pulugin_activation('xpressme/xpressme.php');
-		// reloaded 
-		header('Location: ' . $xoops_config->module_url . '/');
-		
-		$err_str = "The activation of the XPressME plugin was executed.<br />\n";
-		$err_str .= "Because the XPressME plugin was invalid.<br />\n";
-		$err_str .= "Please do the rereading seeing on the page.\n";			
-		die($err_str);
-	}
+/** Processing for XPressME is done.*/
+require_once( ABSPATH .'/include/add_xpress_process.php');
 
-	// It judges it here because it does in is_index_page() through feed to which the permalink is set. 
-	if (is_wordpress_style() || is_feed()) {
-		require_once( ABSPATH . WPINC . '/template-loader.php' );
-	} else {
-		ob_start();	
-			require_once( ABSPATH . WPINC . '/template-loader.php' );
-			$wp_output = ob_get_contents();
-		ob_end_clean();
-		require_once( ABSPATH .'/include/xpress_render.php' );
-		xpress_render($wp_output);
-	}
-		
-	
-	//When there is no block cache, and an optional block is different, cache is refreshed. 
-	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
-	// This Function in xpressme plugin
-	require_once( ABSPATH .'/include/xpress_block_render.php' );	
-	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
-	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
-	exit();		// The return to wp-blog-header.php is stolen here
-}
-if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
-if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;
 require_once(ABSPATH.'wp-settings.php');
 ?>
Index: /trunk/xpressme_integration_kit/include/add_xpress_config.php
===================================================================
--- /trunk/xpressme_integration_kit/include/add_xpress_config.php	(revision 355)
+++ /trunk/xpressme_integration_kit/include/add_xpress_config.php	(revision 355)
@@ -0,0 +1,6 @@
+<?php
+require_once dirname( __FILE__ ).'/xpress_debug_log.php' ;
+require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ;
+$xoops_config = new ConfigFromXoops;
+require_once dirname( __FILE__ ).'/set_cash_cookie_path.php' ;
+?>
Index: /trunk/xpressme_integration_kit/include/add_xpress_process.php
===================================================================
--- /trunk/xpressme_integration_kit/include/add_xpress_process.php	(revision 355)
+++ /trunk/xpressme_integration_kit/include/add_xpress_process.php	(revision 355)
@@ -0,0 +1,48 @@
+<?php
+require_once( dirname( __FILE__ ).'/request_url.php');
+if (is_xpress_index_page_call()){
+	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
+	require_once(ABSPATH.'wp-settings.php');
+	if (!is_object($xoopsUser)){	// before login auth cookie clear
+		wp_logout();
+	}
+	wp();
+	
+	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
+		require_once dirname( __FILE__ ).'/xpress_active_plugin.php' ;
+		xpress_pulugin_activation('xpressme/xpressme.php');
+		// reloaded 
+		header('Location: ' . $xoops_config->module_url . '/');
+		
+		$err_str = "The activation of the XPressME plugin was executed.<br />\n";
+		$err_str .= "Because the XPressME plugin was invalid.<br />\n";
+		$err_str .= "Please do the rereading seeing on the page.\n";			
+		die($err_str);
+	}
+
+	ob_start();	
+		if($xoops_config->is_wp20 )
+			require_once dirname( __FILE__ ).'/old_template-loader.php' ;
+		else
+			require_once( ABSPATH . WPINC . '/template-loader.php' );
+		$wp_output = ob_get_contents();
+	ob_end_clean();
+	// It judges it here because it does in is_index_page() through feed to which the permalink is set. 
+	if (is_wordpress_style() || is_feed()) {
+		echo $wp_output;
+	} else {
+		require_once( dirname( __FILE__ ).'/xpress_render.php' );
+		xpress_render($wp_output);
+	}
+
+	//When there is no block cache, and an optional block is different, cache is refreshed. 
+	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
+	// This Function in xpressme plugin
+	require_once( dirname( __FILE__ ).'/xpress_block_render.php' );	
+	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
+	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
+	exit();		// The return to wp-blog-header.php is stolen here
+}
+if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
+if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;
+?>
Index: /trunk/xpressme_integration_kit/wp-config.php
===================================================================
--- /trunk/xpressme_integration_kit/wp-config.php	(revision 354)
+++ /trunk/xpressme_integration_kit/wp-config.php	(revision 355)
@@ -1,7 +1,5 @@
 <?php
-require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
-require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ;
-$xoops_config = new ConfigFromXoops;
-require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
+/** It is an additional loading for XPressME. */
+require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ;
 
 /**
@@ -93,56 +91,7 @@
 	define('ABSPATH', dirname(__FILE__).'/');
 
-require_once( ABSPATH .'/include/request_url.php');
-if (is_xpress_index_page_call()){
-	//When notifying by a private message, 
-	//it is evaded that the data base becomes read-only as a result of the check on the referrer and the method. 
-	$_SERVER['REQUEST_METHOD'] = 'POST';
+/** Processing for XPressME is done.*/
+require_once( ABSPATH .'/include/add_xpress_process.php');
 
-	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
-	
-	require_once(ABSPATH.'wp-settings.php');
-	if (!is_object($xoopsUser)){	// before login auth cookie clear
-		wp_logout();
-	}
-	wp();
-	
-	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
-		require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ;
-		xpress_pulugin_activation('xpressme/xpressme.php');
-		// reloaded 
-		header('Location: ' . $xoops_config->module_url . '/');
-		
-		$err_str = "The activation of the XPressME plugin was executed.<br />\n";
-		$err_str .= "Because the XPressME plugin was invalid.<br />\n";
-		$err_str .= "Please do the rereading seeing on the page.\n";
-		die($err_str);
-	}
-	
-	Notification_reserve_send();
-	ob_start();	
-		if($xoops_config->is_wp20 )
-			require_once dirname( __FILE__ ).'/include/old_template-loader.php' ;
-		else
-			require_once( ABSPATH . WPINC . '/template-loader.php' );
-		$wp_output = ob_get_contents();
-	ob_end_clean();
-	// It judges it here because it does in is_index_page() through feed to which the permalink is set. 
-	if (is_wordpress_style() || is_feed()) {
-		echo $wp_output;
-	} else {
-		require_once( ABSPATH .'/include/xpress_render.php' );
-		xpress_render($wp_output);
-	}
-
-	//When there is no block cache, and an optional block is different, cache is refreshed. 
-	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
-	// This Function in xpressme plugin
-	require_once( ABSPATH .'/include/xpress_block_render.php' );	
-	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
-	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
-	exit();		// The return to wp-blog-header.php is stolen here
-}
-if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
-if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;
 require_once(ABSPATH.'wp-settings.php');
 ?>
