XPressME Integration Kit

Trac

source: trunk/wp-config.php @ 66

Last change on this file since 66 was 66, checked in by toemon, 16 years ago

is_root_index_page_call()からis_xpress_index_page_call()への名前変更(気まぐれ?)

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