Changeset 355 for trunk/xpressme_integration_kit/wp-config.php
- Timestamp:
- Aug 3, 2009, 11:43:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-config.php
r352 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 /** … … 93 91 define('ABSPATH', dirname(__FILE__).'/'); 94 92 95 require_once( ABSPATH .'/include/request_url.php'); 96 if (is_xpress_index_page_call()){ 97 //When notifying by a private message, 98 //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method. 99 $_SERVER['REQUEST_METHOD'] = 'POST'; 93 /** Processing for XPressME is done.*/ 94 require_once( ABSPATH .'/include/add_xpress_process.php'); 100 95 101 require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.102 103 require_once(ABSPATH.'wp-settings.php');104 if (!is_object($xoopsUser)){ // before login auth cookie clear105 wp_logout();106 }107 wp();108 109 if (!function_exists('is_wordpress_style')){ // When the XPressME plug-in is invalid110 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ;111 xpress_pulugin_activation('xpressme/xpressme.php');112 // reloaded113 header('Location: ' . $xoops_config->module_url . '/');114 115 $err_str = "The activation of the XPressME plugin was executed.<br />\n";116 $err_str .= "Because the XPressME plugin was invalid.<br />\n";117 $err_str .= "Please do the rereading seeing on the page.\n";118 die($err_str);119 }120 121 Notification_reserve_send();122 ob_start();123 if($xoops_config->is_wp20 )124 require_once dirname( __FILE__ ).'/include/old_template-loader.php' ;125 else126 require_once( ABSPATH . WPINC . '/template-loader.php' );127 $wp_output = ob_get_contents();128 ob_end_clean();129 // It judges it here because it does in is_index_page() through feed to which the permalink is set.130 if (is_wordpress_style() || is_feed()) {131 echo $wp_output;132 } else {133 require_once( ABSPATH .'/include/xpress_render.php' );134 xpress_render($wp_output);135 }136 137 //When there is no block cache, and an optional block is different, cache is refreshed.138 //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.139 // This Function in xpressme plugin140 require_once( ABSPATH .'/include/xpress_block_render.php' );141 xpress_unnecessary_block_cache_delete($xoops_config->module_name);142 if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);143 exit(); // The return to wp-blog-header.php is stolen here144 }145 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;146 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;147 96 require_once(ABSPATH.'wp-settings.php'); 148 97 ?>
Note: See TracChangeset
for help on using the changeset viewer.