[1] | 1 | <?php
|
---|
[92] | 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;
|
---|
[31] | 5 | require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
|
---|
[1] | 6 |
|
---|
| 7 | mb_language('Japanese');
|
---|
| 8 | mb_internal_encoding('UTF-8');
|
---|
| 9 |
|
---|
| 10 | // ** MySQL settings ** //
|
---|
[92] | 11 | 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
|
---|
[1] | 15 | define('DB_CHARSET', 'utf8');
|
---|
| 16 | define('DB_COLLATE', '');
|
---|
| 17 |
|
---|
| 18 | // Change each KEY to a different unique phrase. You won't have to remember the phrases later,
|
---|
| 19 | // so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
|
---|
| 20 | // to get keys generated for you, or just make something up. Each key should have a different phrase.
|
---|
| 21 | define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
|
---|
| 22 | define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
|
---|
| 23 | define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
|
---|
| 24 |
|
---|
| 25 | // 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 | }
|
---|
[92] | 30 | $table_prefix = $xoops_config->xoops_db_prefix . '_' . $xp_prefix . '_'; // Only numbers, letters, and underscores please!
|
---|
[1] | 31 |
|
---|
| 32 | // Change this to localize WordPress. A corresponding MO file for the
|
---|
| 33 | // chosen language must be installed to wp-content/languages.
|
---|
| 34 | // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
|
---|
| 35 | // to enable German language support.
|
---|
| 36 | define ('WPLANG', 'ja');
|
---|
| 37 |
|
---|
| 38 | /* That's all, stop editing! Happy blogging. */
|
---|
| 39 |
|
---|
| 40 | if ( !defined('ABSPATH') )
|
---|
| 41 | define('ABSPATH', dirname(__FILE__).'/');
|
---|
| 42 | require_once(ABSPATH.'wp-settings.php');
|
---|
[92] | 43 | require dirname( __FILE__ ).'/include/include_xoops_define.php' ;
|
---|
[66] | 44 | if (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 | }
|
---|
[92] | 57 | ?>
|
---|