- Timestamp:
- Feb 22, 2009, 12:09:14 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/set_cash_cookie_path.php
r27 r92 1 1 <?php 2 $modname= basename(dirname(dirname(__FILE__)));3 $modurl = XOOPS_URL . '/modules/' . $modname;2 $modname= $xoops_config->module_name; 3 $modurl = $xoops_config->module_url; 4 4 $hash = md5($modurl); 5 5 /** -
trunk/wp-config.php
r71 r92 1 1 <?php 2 require dirname( __FILE__ ).'/include/include_xoops_define.php' ; 2 require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ; 3 require_once dirname( __FILE__ ).'/include/config_from_xoops.class.php' ; 4 $xoops_config = new ConfigFromXoops; 3 5 require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ; 4 6 … … 7 9 8 10 // ** MySQL settings ** // 9 define('DB_NAME', XOOPS_DB_NAME); // The name of the database10 define('DB_USER', XOOPS_DB_USER); // Your MySQL username11 define('DB_PASSWORD', XOOPS_DB_PASS); // ...and password12 define('DB_HOST', XOOPS_DB_HOST); // 99% chance you won't need to change this value11 define('DB_NAME', $xoops_config->xoops_db_name); // The name of the database 12 define('DB_USER', $xoops_config->xoops_db_user); // Your MySQL username 13 define('DB_PASSWORD', $xoops_config->xoops_db_pass); // ...and password 14 define('DB_HOST', $xoops_config->xoops_db_host); // 99% chance you won't need to change this value 13 15 define('DB_CHARSET', 'utf8'); 14 16 define('DB_COLLATE', ''); … … 26 28 $xp_prefix = 'wp'; 27 29 } 28 $table_prefix = XOOPS_DB_PREFIX. '_' . $xp_prefix . '_'; // Only numbers, letters, and underscores please!30 $table_prefix = $xoops_config->xoops_db_prefix . '_' . $xp_prefix . '_'; // Only numbers, letters, and underscores please! 29 31 30 32 // Change this to localize WordPress. A corresponding MO file for the … … 38 40 if ( !defined('ABSPATH') ) 39 41 define('ABSPATH', dirname(__FILE__).'/'); 40 41 42 require_once(ABSPATH.'wp-settings.php'); 42 43 require dirname( __FILE__ ).'/include/include_xoops_define.php' ; 43 44 if (is_xpress_index_page_call()){ 44 45 // The return to wp-blog-header.php is stolen here
Note: See TracChangeset
for help on using the changeset viewer.