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