Index: trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php	(revision 96)
+++ trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php	(revision 99)
@@ -1,3 +1,9 @@
 <?php
+global $xoops_config;
+if (!is_object($xoops_config)){ // is call other modules
+	require_once dirname( __FILE__ ) .'/config_from_xoops.class.php' ;
+	$xoops_config = new ConfigFromXoops;
+}
+
 // xoops db
 function get_xpress_dir_path()
@@ -27,4 +33,12 @@
 	return $ret;
 }
+
+function get_xoops_root_path()
+{
+	global $xoops_config;
+	$ret =$xoops_config->xoops_root_path;
+	return $ret;
+}
+
 function get_wp_prefix()
 {
@@ -118,5 +132,5 @@
 		$blockID = $block->bid;
 		$options = explode("|", $block->options);
-					
+
 		$block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name);
 		require_once $block_theme_file;
