Index: trunk/wp-config.php
===================================================================
--- trunk/wp-config.php	(revision 173)
+++ trunk/wp-config.php	(revision 179)
@@ -85,4 +85,17 @@
 	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);
+	}
+
 	if (is_wordpress_style()) {
 		require_once( ABSPATH . WPINC . '/template-loader.php' );
