XPressME Integration Kit

Trac

source: trunk/wp-config.php @ 17

Last change on this file since 17 was 17, checked in by toemon, 15 years ago

xoops_include.phpからinclude_xoops_define.phpにリネーム
wp-config.phpにて/include/xpress_action_filter.phpを呼び出し

File size: 2.2 KB
RevLine 
[1]1<?php
[17]2require dirname( __FILE__ ).'/include/include_xoops_define.php' ;
[1]3
4mb_language('Japanese');
5mb_internal_encoding('UTF-8');
6
7// ** MySQL settings ** //
8define('DB_NAME', XOOPS_DB_NAME);    // The name of the database
9define('DB_USER', XOOPS_DB_USER);     // Your MySQL username
10define('DB_PASSWORD', XOOPS_DB_PASS); // ...and password
11define('DB_HOST', XOOPS_DB_HOST);    // 99% chance you won't need to change this value
12define('DB_CHARSET', 'utf8');
13define('DB_COLLATE', '');
14
15// Change each KEY to a different unique phrase.  You won't have to remember the phrases later,
16// so make them long and complicated.  You can visit http://api.wordpress.org/secret-key/1.1/
17// to get keys generated for you, or just make something up.  Each key should have a different phrase.
18define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
19define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
20define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
21
22// You can have multiple installations in one database if you give each a unique prefix
23$xp_prefix = basename(dirname(__FILE__));
24if ($xp_prefix == 'wordpress'){
25        $xp_prefix = 'wp';
26}
27$table_prefix  = XOOPS_DB_PREFIX . '_' . $xp_prefix . '_';   // Only numbers, letters, and underscores please!
28
29// Change this to localize WordPress.  A corresponding MO file for the
30// chosen language must be installed to wp-content/languages.
31// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
32// to enable German language support.
33define ('WPLANG', 'ja');
34
35/* That's all, stop editing! Happy blogging. */
36
37if ( !defined('ABSPATH') )
38        define('ABSPATH', dirname(__FILE__).'/');
39
[17]40require dirname( __FILE__ ).'/include/xpress_action_filter.php' ;
41
42
[1]43require_once(ABSPATH.'wp-settings.php');
[15]44
[1]45if (is_root_index_page_call()){
[15]46        // The return to wp-blog-header.php is stolen here
[1]47        wp();
48        ob_start();     
49                require_once( ABSPATH . WPINC . '/template-loader.php' );
50                $wp_output = ob_get_contents();
51        ob_end_clean();
52        require_once( ABSPATH .'/include/xpress_render.php' );
53        xpress_render($wp_output);
54        include XOOPS_ROOT_PATH . '/footer.php';
55        exit();
56}
57?>
Note: See TracBrowser for help on using the repository browser.