XPressME Integration Kit

Trac


Ignore:
Timestamp:
Aug 3, 2009, 11:43:40 AM (15 years ago)
Author:
toemon
Message:

今後の変更にる各言語用のwp-config.phpへの影響を最小限に抑えるため、、wp-config.phpを極力変更しない構成にする。 fixes #196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/extras/xpress_i18n/en/xpressme_modules_root/wp-config.php

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