Changeset 95 for trunk/wp-config.php
- Timestamp:
- Mar 3, 2009, 8:33:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-config.php
r92 r95 5 5 require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ; 6 6 7 mb_language('Japanese'); 8 mb_internal_encoding('UTF-8'); 7 8 if (function_exists("mb_language")) mb_language('Japanese'); 9 // The setting of mb_internal_encoding might be unnecessary. 10 // Because mb_internal_encoding setting wp-setting.php line 484 11 if (function_exists("mb_internal_encoding")) mb_internal_encoding('UTF-8'); 9 12 10 13 // ** MySQL settings ** // … … 16 19 define('DB_COLLATE', ''); 17 20 21 //define('WP_DEBUG' ,true); 22 18 23 // Change each KEY to a different unique phrase. You won't have to remember the phrases later, 19 24 // so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/ … … 24 29 25 30 // You can have multiple installations in one database if you give each a unique prefix 26 $xp_prefix = basename(dirname(__FILE__)); 27 if ($xp_prefix == 'wordpress'){ 28 $xp_prefix = 'wp'; 29 } 30 $table_prefix = $xoops_config->xoops_db_prefix . '_' . $xp_prefix . '_'; // Only numbers, letters, and underscores please! 31 $table_prefix = $xoops_config->module_db_prefix; // Only numbers, letters, and underscores please! 31 32 32 33 // Change this to localize WordPress. A corresponding MO file for the … … 40 41 if ( !defined('ABSPATH') ) 41 42 define('ABSPATH', dirname(__FILE__).'/'); 42 require_once(ABSPATH.'wp-settings.php'); 43 require dirname( __FILE__ ).'/include/include_xoops_define.php' ; 44 if (is_xpress_index_page_call()){ 43 44 require_once dirname( __FILE__ ).'/include/request_url.php' ; 45 if (!is_xpress_index_page_call()){ 46 // if ( is_wp_cron_page_call()){ 47 // if ( !defined("XOOPS_ROOT_PATH") ) { 48 // require_once $xoops_config->xoops_mainfile_path; 49 // } 50 // } 51 require_once(ABSPATH.'wp-settings.php'); 52 } else { 53 // If $xoops_config->xoops_mainfile_path is not executed before wp-settings.php is executed, log in cannot be done. 54 require_once $xoops_config->xoops_mainfile_path; 55 require_once(ABSPATH.'wp-settings.php'); 45 56 // The return to wp-blog-header.php is stolen here 46 57 wp(); … … 52 63 xpress_render($wp_output); 53 64 require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 54 include XOOPS_ROOT_PATH. '/footer.php';65 include $xoops_config->xoops_root_path . '/footer.php'; 55 66 exit(); 56 67 }
Note: See TracChangeset
for help on using the changeset viewer.