Index: trunk/wp-config.php
===================================================================
--- trunk/wp-config.php	(revision 71)
+++ trunk/wp-config.php	(revision 92)
@@ -1,4 +1,6 @@
 <?php
-require dirname( __FILE__ ).'/include/include_xoops_define.php' ;
+require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
+require_once dirname( __FILE__ ).'/include/config_from_xoops.class.php' ;
+$xoops_config = new ConfigFromXoops;
 require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
 
@@ -7,8 +9,8 @@
 
 // ** MySQL settings ** //
-define('DB_NAME', XOOPS_DB_NAME);    // The name of the database
-define('DB_USER', XOOPS_DB_USER);     // Your MySQL username
-define('DB_PASSWORD', XOOPS_DB_PASS); // ...and password
-define('DB_HOST', XOOPS_DB_HOST);    // 99% chance you won't need to change this value
+define('DB_NAME', $xoops_config->xoops_db_name);    // The name of the database
+define('DB_USER', $xoops_config->xoops_db_user);     // Your MySQL username
+define('DB_PASSWORD', $xoops_config->xoops_db_pass); // ...and password
+define('DB_HOST', $xoops_config->xoops_db_host);    // 99% chance you won't need to change this value
 define('DB_CHARSET', 'utf8');
 define('DB_COLLATE', '');
@@ -26,5 +28,5 @@
  	$xp_prefix = 'wp';
 }
-$table_prefix  = XOOPS_DB_PREFIX . '_' . $xp_prefix . '_';   // Only numbers, letters, and underscores please!
+$table_prefix  = $xoops_config->xoops_db_prefix . '_' . $xp_prefix . '_';   // Only numbers, letters, and underscores please!
 
 // Change this to localize WordPress.  A corresponding MO file for the
@@ -38,7 +40,6 @@
 if ( !defined('ABSPATH') )
 	define('ABSPATH', dirname(__FILE__).'/');
-
 require_once(ABSPATH.'wp-settings.php');
-
+require dirname( __FILE__ ).'/include/include_xoops_define.php' ;
 if (is_xpress_index_page_call()){
 	// The return to wp-blog-header.php is stolen here
