Index: branches/Ver3.0/xpressme_integration_kit/include/add_xpress_config.php
===================================================================
--- branches/Ver3.0/xpressme_integration_kit/include/add_xpress_config.php	(revision 733)
+++ branches/Ver3.0/xpressme_integration_kit/include/add_xpress_config.php	(revision 734)
@@ -2,11 +2,21 @@
 //load XOOPS
 $request_method =  (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
-$_SERVER['REQUEST_METHOD'] = 'POST';  // The xoops data base is opened in the mode that can be written.  
-if ( defined('WP_ADMIN') )	
-	$php_script_name = $_SERVER['SCRIPT_NAME'];
-	if (strstr($php_script_name,'wp-admin/async-upload.php') !== false) {
-		
-	$xoopsOption['nocommon'] = 1; // The WP file uploading must work normally.  
+//$_SERVER['REQUEST_METHOD'] = 'POST' is
+//When notifying by a private message, Notification_reserve_send();
+//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';
+
+if ( defined('WP_ADMIN') )	{
+	$nocommon_scripts = array(
+		'wp-admin/async-upload.php',
+	);
+	foreach($nocommon_scripts as $nocommon_script){
+		if (strstr($_SERVER['SCRIPT_NAME'],$nocommon_script) !== false) {
+			$xoopsOption['nocommon'] = 1;
+			break;
+		}
 	}
+}
+
 require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ;
 $_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data. 
