Changeset 355 for trunk/extras/for_wordpressme2011/ja_EUC/wp-config.php
- Timestamp:
- Aug 3, 2009, 11:43:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/extras/for_wordpressme2011/ja_EUC/wp-config.php
r344 r355 1 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' ; 2 /** It is an additional loading for XPressME. */ 3 require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ; 6 4 7 5 /** … … 94 92 define('ABSPATH', dirname(__FILE__).'/'); 95 93 96 require_once( ABSPATH .'/include/request_url.php'); 97 if (is_xpress_index_page_call()){ 98 require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 99 require_once(ABSPATH.'wp-settings.php'); 100 wp(); 101 102 if (!function_exists('is_wordpress_style')){ // When the XPressME plug-in is invalid 103 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 104 xpress_pulugin_activation('xpressme/xpressme.php'); 105 // reloaded 106 header('Location: ' . $xoops_config->module_url . '/'); 107 108 $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 109 $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 110 $err_str .= "Please do the rereading seeing on the page.\n"; 111 die($err_str); 112 } 94 /** Processing for XPressME is done.*/ 95 require_once( ABSPATH .'/include/add_xpress_process.php'); 113 96 114 ob_start();115 if($xoops_config->is_wp20 )116 require_once dirname( __FILE__ ).'/include/old_template-loader.php' ;117 else118 require_once( ABSPATH . WPINC . '/template-loader.php' );119 $wp_output = ob_get_contents();120 ob_end_clean();121 // It judges it here because it does in is_index_page() through feed to which the permalink is set.122 if (is_wordpress_style() || is_feed()) {123 echo $wp_output;124 } else {125 require_once( ABSPATH .'/include/xpress_render.php' );126 xpress_render($wp_output);127 }128 129 //When there is no block cache, and an optional block is different, cache is refreshed.130 //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.131 // This Function in xpressme plugin132 require_once( ABSPATH .'/include/xpress_block_render.php' );133 xpress_unnecessary_block_cache_delete($xoops_config->module_name);134 if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);135 exit(); // The return to wp-blog-header.php is stolen here136 }137 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;138 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;139 97 require_once(ABSPATH.'wp-settings.php'); 140 98 ?>
Note: See TracChangeset
for help on using the changeset viewer.