1 | <?php
|
---|
2 | require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ;
|
---|
3 | require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ;
|
---|
4 | $xoops_config = new ConfigFromXoops;
|
---|
5 | require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * mb_language() sets language. If language is omitted, it returns current language as string.
|
---|
9 | * language setting is used for encoding e-mail messages.
|
---|
10 | * Valid languages are "Japanese", "ja","English","en" and "uni" (UTF-8).
|
---|
11 | * mb_send_mail() uses this setting to encode e-mail.
|
---|
12 | * Language and its setting is ISO-2022-JP/Base64 for Japanese, UTF-8/Base64 for uni, ISO-8859-1/quoted printable for English.
|
---|
13 | */
|
---|
14 | if (function_exists("mb_language")) mb_language('uni');
|
---|
15 |
|
---|
16 |
|
---|
17 | // ** MySQL settings - You can get this info from your web host ** //
|
---|
18 | // Do not change 'DB_NAME','DB_USER','DB_PASSWORD' & 'DB_HOST'
|
---|
19 | // because copies a set value of XOOPS.
|
---|
20 |
|
---|
21 | /** Do not change. The name of the database for WordPress */
|
---|
22 | define('DB_NAME', $xoops_config->xoops_db_name);
|
---|
23 |
|
---|
24 | /** Do not change. MySQL database username */
|
---|
25 | define('DB_USER', $xoops_config->xoops_db_user);
|
---|
26 |
|
---|
27 | /** Do not change. MySQL database password */
|
---|
28 | define('DB_PASSWORD', $xoops_config->xoops_db_pass);
|
---|
29 |
|
---|
30 | /** Do not change. MySQL hostname */
|
---|
31 | define('DB_HOST', $xoops_config->xoops_db_host);
|
---|
32 |
|
---|
33 | /** Database Charset to use in creating database tables. */
|
---|
34 | define('DB_CHARSET', 'utf8');
|
---|
35 |
|
---|
36 | /** The Database Collate type. Don't change this if in doubt. */
|
---|
37 | define('DB_COLLATE', '');
|
---|
38 |
|
---|
39 | //define('WP_DEBUG' ,true);
|
---|
40 |
|
---|
41 | /**#@+
|
---|
42 | * Authentication Unique Keys.
|
---|
43 | *
|
---|
44 | * Change these to different unique phrases!
|
---|
45 | * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
|
---|
46 | *
|
---|
47 | * @since 2.6.0
|
---|
48 | */
|
---|
49 | define('AUTH_KEY', 'put your unique phrase here');
|
---|
50 | define('SECURE_AUTH_KEY', 'put your unique phrase here');
|
---|
51 | define('LOGGED_IN_KEY', 'put your unique phrase here');
|
---|
52 | define('NONCE_KEY', 'put your unique phrase here');
|
---|
53 |
|
---|
54 | /**
|
---|
55 | * WordPress Database Table prefix.
|
---|
56 | *
|
---|
57 | * You can have multiple installations in one database if you give each a unique
|
---|
58 | * prefix. Only numbers, letters, and underscores please!
|
---|
59 | */
|
---|
60 | // Do not change. $table_prefix is generated from XOOPS DB Priefix and the module directory name.
|
---|
61 | $table_prefix = $xoops_config->module_db_prefix;
|
---|
62 |
|
---|
63 | /**
|
---|
64 | * WordPress Localized Language, defaults to Japanese.
|
---|
65 | *
|
---|
66 | * Change this to localize WordPress. A corresponding MO file for the chosen
|
---|
67 | * language must be installed to wp-content/languages. For example, install
|
---|
68 | * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
|
---|
69 | * language support.
|
---|
70 | *
|
---|
71 | * Example:
|
---|
72 | * define ('WPLANG', ''); // language support to English
|
---|
73 | */
|
---|
74 | define ('WPLANG', 'ja'); // language support to Japanese
|
---|
75 |
|
---|
76 | /* That's all, stop editing! Happy blogging. */
|
---|
77 |
|
---|
78 | /** WordPress absolute path to the Wordpress directory. */
|
---|
79 | if ( !defined('ABSPATH') )
|
---|
80 | define('ABSPATH', dirname(__FILE__).'/');
|
---|
81 |
|
---|
82 | require_once( ABSPATH .'/include/request_url.php');
|
---|
83 | if (is_xpress_index_page_call()){
|
---|
84 | require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.
|
---|
85 | require_once(ABSPATH.'wp-settings.php');
|
---|
86 | wp();
|
---|
87 | ob_start();
|
---|
88 | require_once( ABSPATH . WPINC . '/template-loader.php' );
|
---|
89 | $wp_output = ob_get_contents();
|
---|
90 | ob_end_clean();
|
---|
91 | require_once( ABSPATH .'/include/xpress_render.php' );
|
---|
92 | xpress_render($wp_output);
|
---|
93 |
|
---|
94 | //When there is no block cache, and an optional block is different, cache is refreshed.
|
---|
95 | //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.
|
---|
96 | // This Function in xpressme plugin
|
---|
97 | xpress_unnecessary_block_cache_delete();
|
---|
98 | if (is_home()) xpress_block_cache_refresh();
|
---|
99 | exit(); // The return to wp-blog-header.php is stolen here
|
---|
100 | }
|
---|
101 | if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;
|
---|
102 | require_once(ABSPATH.'wp-settings.php');
|
---|
103 | ?> |
---|