Index: trunk/class/config_from_xoops.class.php
===================================================================
--- trunk/class/config_from_xoops.class.php	(revision 208)
+++ trunk/class/config_from_xoops.class.php	(revision 209)
@@ -35,4 +35,7 @@
 	var $is_impress;
 	var $impress_db_config_file;
+	var $is_wpmu;
+	var $mu_domain_current_site;
+	var $mu_path_current_site;
 	
 	
@@ -160,5 +163,6 @@
 		
 		$this->set_module_version();
-		
+		$this->set_is_wpmu();
+		$this->set_mu_current_site();
     }
     
@@ -190,4 +194,25 @@
     }
     
+    function set_is_wpmu(){
+    	include dirname(dirname(__FILE__)) . '/wp-includes/version.php';
+    	
+    	if (empty($wpmu_version))
+    		$this->is_wpmu  = false;
+    	else
+    		$this->is_wpmu  = true;
+    }
+    
+    function set_mu_current_site(){
+    	$pattern = 'http:\/\/([^\/]*).*';
+    	if (preg_match('/' . $pattern . '/' ,$this->xoops_url,$matchs)){
+				$this->mu_domain_current_site = $matchs[1];
+		}
+		
+    	$pattern = 'http:\/\/[^\/]*(\/.*)';
+    	if (preg_match('/' . $pattern . '/' ,$this->module_url,$matchs)){
+				$this->mu_path_current_site = $matchs[1] . '/';
+		}
+    }
+    
 }
 ?>
